usr/src/uts/sun4/io/efcode/fcpci.c
changeset 13452 6bec9720e054
parent 11584 c37f0e59295e
equal deleted inserted replaced
13451:4349f1403dad 13452:6bec9720e054
    20  */
    20  */
    21 
    21 
    22 /*
    22 /*
    23  * Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
    23  * Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
    24  * Use is subject to license terms.
    24  * Use is subject to license terms.
       
    25  * Copyright (c) 2011 Bayard G. Bell. All rights reserved.
    25  */
    26  */
    26 
    27 
    27 /*
    28 /*
    28  * fcpci.c: Framework PCI fcode ops
    29  * fcpci.c: Framework PCI fcode ops
    29  */
    30  */
    90 	0xFFFFFFFFull,	/* segment boundary */
    91 	0xFFFFFFFFull,	/* segment boundary */
    91 	1,		 /* s/g list length */
    92 	1,		 /* s/g list length */
    92 	1,		/* granularity of device */
    93 	1,		/* granularity of device */
    93 	0		/* DMA transfer flags */
    94 	0		/* DMA transfer flags */
    94 };
    95 };
    95 
       
    96 #ifndef	lint
       
    97 char _depends_on[] = "misc/fcodem misc/busra";
       
    98 #endif
       
    99 
    96 
   100 #define	HIADDR(n) ((uint32_t)(((uint64_t)(n) & 0xFFFFFFFF00000000)>> 32))
    97 #define	HIADDR(n) ((uint32_t)(((uint64_t)(n) & 0xFFFFFFFF00000000)>> 32))
   101 #define	LOADDR(n)((uint32_t)((uint64_t)(n) & 0x00000000FFFFFFFF))
    98 #define	LOADDR(n)((uint32_t)((uint64_t)(n) & 0x00000000FFFFFFFF))
   102 #define	LADDR(lo, hi)    (((uint64_t)(hi) << 32) | (uint32_t)(lo))
    99 #define	LADDR(lo, hi)    (((uint64_t)(hi) << 32) | (uint32_t)(lo))
   103 #define	PCI_4GIG_LIMIT 0xFFFFFFFFUL
   100 #define	PCI_4GIG_LIMIT 0xFFFFFFFFUL