Linux Kernel
3.7.1
|
#include "../../comedidev.h"
Go to the source code of this file.
Data Structures | |
struct | pcilst_struct |
Functions | |
void | v_pci_card_list_init (unsigned short pci_vendor, char display) |
void | v_pci_card_list_cleanup (unsigned short pci_vendor) |
struct pcilst_struct * | ptr_find_free_pci_card_by_device (unsigned short vendor_id, unsigned short device_id) |
int | i_find_free_pci_card_by_position (unsigned short vendor_id, unsigned short device_id, unsigned short pci_bus, unsigned short pci_slot, struct pcilst_struct **card) |
struct pcilst_struct * | ptr_select_and_alloc_pci_card (unsigned short vendor_id, unsigned short device_id, unsigned short pci_bus, unsigned short pci_slot, int i_Master) |
int | pci_card_alloc (struct pcilst_struct *amcc, int master) |
int | i_pci_card_free (struct pcilst_struct *amcc) |
void | v_pci_card_list_display (void) |
int | i_pci_card_data (struct pcilst_struct *amcc, unsigned char *pci_bus, unsigned char *pci_slot, unsigned char *pci_func, resource_size_t *io_addr, unsigned int *irq) |
#define A2P_FIFO_WRITE_ENABLE 0x01 |
Definition at line 31 of file addi_amcc_s5933.h.
#define A2P_HI_PRIORITY 0x00000100L |
Definition at line 183 of file addi_amcc_s5933.h.
#define AGCSTS_A2P_TCOUNT 0x00000080 |
Definition at line 139 of file addi_amcc_s5933.h.
#define AGCSTS_BIST_MASK 0x0000f000 |
Definition at line 129 of file addi_amcc_s5933.h.
#define AGCSTS_CONTROL_MASK 0xfffff000 |
Definition at line 125 of file addi_amcc_s5933.h.
#define AGCSTS_FIFO_ST_MASK 0x0000003f |
Definition at line 132 of file addi_amcc_s5933.h.
#define AGCSTS_FS_A2P_EMPTY 0x00000004 |
Definition at line 146 of file addi_amcc_s5933.h.
#define AGCSTS_FS_A2P_FULL 0x00000001 |
Definition at line 148 of file addi_amcc_s5933.h.
#define AGCSTS_FS_A2P_HALF 0x00000002 |
Definition at line 147 of file addi_amcc_s5933.h.
#define AGCSTS_FS_P2A_EMPTY 0x00000020 |
Definition at line 142 of file addi_amcc_s5933.h.
#define AGCSTS_FS_P2A_FULL 0x00000008 |
Definition at line 144 of file addi_amcc_s5933.h.
#define AGCSTS_FS_P2A_HALF 0x00000010 |
Definition at line 143 of file addi_amcc_s5933.h.
#define AGCSTS_NV_ACC_MASK 0xe0000000 |
Definition at line 126 of file addi_amcc_s5933.h.
#define AGCSTS_NV_DA_MASK 0x00ff0000 |
Definition at line 128 of file addi_amcc_s5933.h.
#define AGCSTS_P2A_TCOUNT 0x00000040 |
Definition at line 140 of file addi_amcc_s5933.h.
#define AGCSTS_RESET_A2P_FIFO 0x02000000 |
Definition at line 136 of file addi_amcc_s5933.h.
#define AGCSTS_RESET_FIFOS (AGCSTS_RESET_A2P_FIFO | AGCSTS_RESET_P2A_FIFO) |
Definition at line 137 of file addi_amcc_s5933.h.
#define AGCSTS_RESET_MASK 0x0e000000 |
Definition at line 127 of file addi_amcc_s5933.h.
#define AGCSTS_RESET_MBFLAGS 0x08000000 |
Definition at line 134 of file addi_amcc_s5933.h.
#define AGCSTS_RESET_P2A_FIFO 0x04000000 |
Definition at line 135 of file addi_amcc_s5933.h.
#define AGCSTS_STATUS_MASK 0x000000ff |
Definition at line 130 of file addi_amcc_s5933.h.
#define AGCSTS_TC_ENABLE 0x10000000 |
Definition at line 34 of file addi_amcc_s5933.h.
#define AGCSTS_TCZERO_MASK 0x000000c0 |
Definition at line 131 of file addi_amcc_s5933.h.
#define AINT_BIST_INT 0x00100000 |
Definition at line 159 of file addi_amcc_s5933.h.
#define AINT_BM_ERROR 0x00200000 |
Definition at line 158 of file addi_amcc_s5933.h.
#define AINT_IMB_BYTE 0x00000003 |
Definition at line 176 of file addi_amcc_s5933.h.
#define AINT_IMB_ENABLE 0x00000010 |
Definition at line 174 of file addi_amcc_s5933.h.
#define AINT_IMB_SELECT 0x0000000c |
Definition at line 175 of file addi_amcc_s5933.h.
#define AINT_IN_MB_INT 0x00010000 |
Definition at line 165 of file addi_amcc_s5933.h.
#define AINT_INT_ASSERTED 0x00800000 |
Definition at line 157 of file addi_amcc_s5933.h.
#define AINT_INT_MASK 0x00ff0000 |
Definition at line 153 of file addi_amcc_s5933.h.
#define AINT_IS_ENSEL_MASK 0x00001f1f |
Definition at line 155 of file addi_amcc_s5933.h.
#define AINT_OMB_BYTE 0x00000300 |
Definition at line 172 of file addi_amcc_s5933.h.
#define AINT_OMB_ENABLE 0x00001000 |
Definition at line 170 of file addi_amcc_s5933.h.
#define AINT_OMB_SELECT 0x00000c00 |
Definition at line 171 of file addi_amcc_s5933.h.
#define AINT_OUT_MB_INT 0x00020000 |
Definition at line 164 of file addi_amcc_s5933.h.
#define AINT_READ_COMPL 0x00008000 |
Definition at line 167 of file addi_amcc_s5933.h.
#define AINT_RT_COMPLETE 0x00080000 |
Definition at line 161 of file addi_amcc_s5933.h.
#define AINT_SEL_MASK 0x0000ffff |
Definition at line 154 of file addi_amcc_s5933.h.
#define AINT_WRITE_COMPL 0x00004000 |
Definition at line 168 of file addi_amcc_s5933.h.
#define AINT_WT_COMPLETE 0x00040000 |
Definition at line 162 of file addi_amcc_s5933.h.
Definition at line 93 of file addi_amcc_s5933.h.
#define AMCC_FIFO_DEPTH_DWORD 8 |
Definition at line 92 of file addi_amcc_s5933.h.
#define AMCC_OP_REG_AFIFO 0x20 |
Definition at line 111 of file addi_amcc_s5933.h.
#define AMCC_OP_REG_AGCSTS 0x3c |
Definition at line 118 of file addi_amcc_s5933.h.
#define AMCC_OP_REG_AIMB1 0x00 |
Definition at line 103 of file addi_amcc_s5933.h.
#define AMCC_OP_REG_AIMB2 0x04 |
Definition at line 104 of file addi_amcc_s5933.h.
#define AMCC_OP_REG_AIMB3 0x08 |
Definition at line 105 of file addi_amcc_s5933.h.
#define AMCC_OP_REG_AIMB4 0x0c |
Definition at line 106 of file addi_amcc_s5933.h.
#define AMCC_OP_REG_AINT 0x38 |
Definition at line 117 of file addi_amcc_s5933.h.
#define AMCC_OP_REG_AMBEF 0x34 |
Definition at line 116 of file addi_amcc_s5933.h.
#define AMCC_OP_REG_AMRAR 0x30 |
Definition at line 115 of file addi_amcc_s5933.h.
#define AMCC_OP_REG_AMRTC 0x5c |
Definition at line 120 of file addi_amcc_s5933.h.
#define AMCC_OP_REG_AMWAR 0x24 |
Definition at line 112 of file addi_amcc_s5933.h.
#define AMCC_OP_REG_AMWTC 0x58 |
Definition at line 119 of file addi_amcc_s5933.h.
#define AMCC_OP_REG_AOMB1 0x10 |
Definition at line 107 of file addi_amcc_s5933.h.
#define AMCC_OP_REG_AOMB2 0x14 |
Definition at line 108 of file addi_amcc_s5933.h.
#define AMCC_OP_REG_AOMB3 0x18 |
Definition at line 109 of file addi_amcc_s5933.h.
#define AMCC_OP_REG_AOMB4 0x1c |
Definition at line 110 of file addi_amcc_s5933.h.
#define AMCC_OP_REG_APTA 0x28 |
Definition at line 113 of file addi_amcc_s5933.h.
#define AMCC_OP_REG_APTD 0x2c |
Definition at line 114 of file addi_amcc_s5933.h.
#define AMCC_OP_REG_FIFO 0x20 |
Definition at line 75 of file addi_amcc_s5933.h.
#define AMCC_OP_REG_IMB1 0x10 |
Definition at line 71 of file addi_amcc_s5933.h.
#define AMCC_OP_REG_IMB2 0x14 |
Definition at line 72 of file addi_amcc_s5933.h.
#define AMCC_OP_REG_IMB3 0x18 |
Definition at line 73 of file addi_amcc_s5933.h.
#define AMCC_OP_REG_IMB4 0x1c |
Definition at line 74 of file addi_amcc_s5933.h.
#define AMCC_OP_REG_INTCSR 0x38 |
Definition at line 81 of file addi_amcc_s5933.h.
#define AMCC_OP_REG_INTCSR_FEC (AMCC_OP_REG_INTCSR + 3) |
Definition at line 85 of file addi_amcc_s5933.h.
#define AMCC_OP_REG_INTCSR_SRC (AMCC_OP_REG_INTCSR + 2) |
Definition at line 83 of file addi_amcc_s5933.h.
#define AMCC_OP_REG_MBEF 0x34 |
Definition at line 80 of file addi_amcc_s5933.h.
#define AMCC_OP_REG_MCSR 0x3c |
Definition at line 86 of file addi_amcc_s5933.h.
#define AMCC_OP_REG_MCSR_NVCMD (AMCC_OP_REG_MCSR + 3) |
Definition at line 90 of file addi_amcc_s5933.h.
#define AMCC_OP_REG_MCSR_NVDATA (AMCC_OP_REG_MCSR + 2) |
Definition at line 88 of file addi_amcc_s5933.h.
#define AMCC_OP_REG_MRAR 0x2c |
Definition at line 78 of file addi_amcc_s5933.h.
#define AMCC_OP_REG_MRTC 0x30 |
Definition at line 79 of file addi_amcc_s5933.h.
#define AMCC_OP_REG_MWAR 0x24 |
Definition at line 76 of file addi_amcc_s5933.h.
#define AMCC_OP_REG_MWTC 0x28 |
Definition at line 77 of file addi_amcc_s5933.h.
#define AMCC_OP_REG_OMB1 0x00 |
Definition at line 67 of file addi_amcc_s5933.h.
#define AMCC_OP_REG_OMB2 0x04 |
Definition at line 68 of file addi_amcc_s5933.h.
#define AMCC_OP_REG_OMB3 0x08 |
Definition at line 69 of file addi_amcc_s5933.h.
#define AMCC_OP_REG_OMB4 0x0c |
Definition at line 70 of file addi_amcc_s5933.h.
Definition at line 98 of file addi_amcc_s5933.h.
#define AMWEN_ENABLE 0x02 |
Definition at line 29 of file addi_amcc_s5933.h.
#define ANY_S593X_INT 0x00800000L |
Definition at line 185 of file addi_amcc_s5933.h.
#define APCI3120_A2P_FIFO_MANAGEMENT 0x04000400L |
Definition at line 42 of file addi_amcc_s5933.h.
#define APCI3120_A2P_FIFO_WRITE_ENABLE 0x01 |
Definition at line 44 of file addi_amcc_s5933.h.
#define APCI3120_ADD_ON_AGCSTS_HIGH (APCI3120_ADD_ON_AGCSTS_LOW + 2) |
Definition at line 54 of file addi_amcc_s5933.h.
#define APCI3120_ADD_ON_AGCSTS_LOW 0x3C |
Definition at line 53 of file addi_amcc_s5933.h.
#define APCI3120_ADD_ON_MWAR_HIGH (APCI3120_ADD_ON_MWAR_LOW + 2) |
Definition at line 56 of file addi_amcc_s5933.h.
#define APCI3120_ADD_ON_MWAR_LOW 0x24 |
Definition at line 55 of file addi_amcc_s5933.h.
#define APCI3120_ADD_ON_MWTC_HIGH (APCI3120_ADD_ON_MWTC_LOW + 2) |
Definition at line 58 of file addi_amcc_s5933.h.
#define APCI3120_ADD_ON_MWTC_LOW 0x058 |
Definition at line 57 of file addi_amcc_s5933.h.
#define APCI3120_AMCC_OP_MCSR 0x3C |
Definition at line 61 of file addi_amcc_s5933.h.
#define APCI3120_AMCC_OP_REG_INTCSR 0x38 |
Definition at line 62 of file addi_amcc_s5933.h.
#define APCI3120_AMWEN_ENABLE 0x02 |
Definition at line 43 of file addi_amcc_s5933.h.
#define APCI3120_CLEAR_WRITE_TC_INT 0x00040000L |
Definition at line 47 of file addi_amcc_s5933.h.
#define APCI3120_DISABLE_AMWEN_AND_A2P_FIFO_WRITE 0x0 |
Definition at line 48 of file addi_amcc_s5933.h.
#define APCI3120_DISABLE_BUS_MASTER_ADD_ON 0x0 |
Definition at line 49 of file addi_amcc_s5933.h.
#define APCI3120_DISABLE_BUS_MASTER_PCI 0x0 |
Definition at line 50 of file addi_amcc_s5933.h.
#define APCI3120_ENABLE_TRANSFER_ADD_ON_HIGH 0x1200 |
Definition at line 41 of file addi_amcc_s5933.h.
#define APCI3120_ENABLE_TRANSFER_ADD_ON_LOW 0x00 |
Definition at line 40 of file addi_amcc_s5933.h.
#define APCI3120_ENABLE_WRITE_TC_INT 0x00004000L |
Definition at line 46 of file addi_amcc_s5933.h.
#define APCI3120_FIFO_ADVANCE_ON_BYTE_2 0x20000000L |
Definition at line 45 of file addi_amcc_s5933.h.
#define BUS_MASTER_INT 0x00200000L |
Definition at line 191 of file addi_amcc_s5933.h.
#define EN_A2P_TRANSFERS 0x00000400 |
Definition at line 179 of file addi_amcc_s5933.h.
#define FIFO_ADVANCE_ON_BYTE_2 0x20000000 |
Definition at line 26 of file addi_amcc_s5933.h.
#define IN_MB_INT 0x00020000L |
Definition at line 188 of file addi_amcc_s5933.h.
#define MASTER_ABORT_INT 0x00100000L |
Definition at line 189 of file addi_amcc_s5933.h.
#define READ_TC_INT 0x00080000L |
Definition at line 186 of file addi_amcc_s5933.h.
#define RESET_A2P_FLAGS 0x04000000L |
Definition at line 181 of file addi_amcc_s5933.h.
#define TARGET_ABORT_INT 0x00200000L |
Definition at line 190 of file addi_amcc_s5933.h.
#define WRITE_TC_INT 0x00040000L |
Definition at line 187 of file addi_amcc_s5933.h.
int i_find_free_pci_card_by_position | ( | unsigned short | vendor_id, |
unsigned short | device_id, | ||
unsigned short | pci_bus, | ||
unsigned short | pci_slot, | ||
struct pcilst_struct ** | card | ||
) |
Definition at line 321 of file addi_amcc_s5933.h.
int i_pci_card_data | ( | struct pcilst_struct * | amcc, |
unsigned char * | pci_bus, | ||
unsigned char * | pci_slot, | ||
unsigned char * | pci_func, | ||
resource_size_t * | io_addr, | ||
unsigned int * | irq | ||
) |
Definition at line 411 of file addi_amcc_s5933.h.
int i_pci_card_free | ( | struct pcilst_struct * | amcc | ) |
Definition at line 375 of file addi_amcc_s5933.h.
int pci_card_alloc | ( | struct pcilst_struct * | amcc, |
int | master | ||
) |
Definition at line 352 of file addi_amcc_s5933.h.
|
read |
Definition at line 303 of file addi_amcc_s5933.h.
|
read |
Definition at line 431 of file addi_amcc_s5933.h.
Definition at line 289 of file addi_amcc_s5933.h.
Definition at line 389 of file addi_amcc_s5933.h.
Definition at line 242 of file addi_amcc_s5933.h.