36 #include <linux/types.h>
39 #include <linux/string.h>
40 #include <linux/pci.h>
43 #include <asm/uaccess.h>
52 #define MODULE_NAME "ccio"
54 #define U2_IOA_RUNWAY 0x580
55 #define U2_BC_GSC 0x501
56 #define UTURN_IOA_RUNWAY 0x581
57 #define UTURN_BC_GSC 0x502
60 (((id)->hw_type == HPHW_IOA) && ((id)->hversion == U2_IOA_RUNWAY)) || \
61 (((id)->hw_type == HPHW_BCPORT) && ((id)->hversion == U2_BC_GSC)) \
64 #define IS_UTURN(id) ( \
65 (((id)->hw_type == HPHW_IOA) && ((id)->hversion == UTURN_IOA_RUNWAY)) || \
66 (((id)->hw_type == HPHW_BCPORT) && ((id)->hversion == UTURN_BC_GSC)) \
78 return((
int) (mask >= 0xffffffffUL));
82 static void *ccio_alloc_consistent(
struct pci_dev *
dev,
size_t size,
96 static void ccio_free_consistent(
struct pci_dev *dev,
size_t size,
131 static void ccio_unmap_sg(
struct pci_dev *dev,
struct scatterlist *sglist,
int nents,
int direction)
146 static struct pci_dma_ops ccio_ops = {
148 ccio_alloc_consistent,
149 ccio_free_consistent,
180 ccio_hw_init(ccio_dev);
181 ccio_common_init(ccio_dev);
195 .id_table = ccio_tbl,