tag | line | file | source code |
pciData | 4130 | drivers/scsi/advansys.c | PCI_DATA pciData; |
pciData | 4135 | drivers/scsi/advansys.c | memset(&pciData, 0, sizeof(pciData)); |
pciData | 4137 | drivers/scsi/advansys.c | pciData.type = type; |
pciData | 4139 | drivers/scsi/advansys.c | pciData.slot = slot; |
pciData | 4140 | drivers/scsi/advansys.c | data = asc_get_cfg_word(&pciData); |
pciData | 4159 | drivers/scsi/advansys.c | PCI_DATA pciData; |
pciData | 4165 | drivers/scsi/advansys.c | pciData.type = pciDevice->type; |
pciData | 4166 | drivers/scsi/advansys.c | pciData.bus = pciDevice->busNumber; |
pciData | 4167 | drivers/scsi/advansys.c | pciData.func = pciDevice->devFunc; |
pciData | 4170 | drivers/scsi/advansys.c | pciData.slot = lslot; |
pciData | 4171 | drivers/scsi/advansys.c | pciData.offset = VENDORID_OFFSET; |
pciData | 4172 | drivers/scsi/advansys.c | vendorid = asc_get_cfg_word(&pciData); |
pciData | 4175 | drivers/scsi/advansys.c | pciData.offset = DEVICEID_OFFSET; |
pciData | 4176 | drivers/scsi/advansys.c | deviceid = asc_get_cfg_word(&pciData); |
pciData | 4185 | drivers/scsi/advansys.c | pciData.offset = SUBCLASS_OFFSET; |
pciData | 4186 | drivers/scsi/advansys.c | subclass = asc_get_cfg_byte(&pciData); |
pciData | 4187 | drivers/scsi/advansys.c | pciData.offset = CLASSCODE_OFFSET; |
pciData | 4188 | drivers/scsi/advansys.c | classcode = asc_get_cfg_byte(&pciData); |
pciData | 4207 | drivers/scsi/advansys.c | PCI_DATA pciData; |
pciData | 4214 | drivers/scsi/advansys.c | pciData.type = pciDevice->type; |
pciData | 4215 | drivers/scsi/advansys.c | pciData.bus = pciDevice->busNumber; |
pciData | 4216 | drivers/scsi/advansys.c | pciData.slot = pciDevice->slotFound; |
pciData | 4217 | drivers/scsi/advansys.c | pciData.func = pciDevice->devFunc; |
pciData | 4221 | drivers/scsi/advansys.c | pciData.offset = counter; |
pciData | 4222 | drivers/scsi/advansys.c | *localConfig = asc_get_cfg_byte(&pciData); |
pciData | 4235 | drivers/scsi/advansys.c | asc_get_cfg_word(PCI_DATA *pciData) |
pciData | 4239 | drivers/scsi/advansys.c | ulong lbus = pciData->bus; |
pciData | 4240 | drivers/scsi/advansys.c | ulong lslot = pciData->slot; |
pciData | 4241 | drivers/scsi/advansys.c | ulong lfunc = pciData->func; |
pciData | 4246 | drivers/scsi/advansys.c | pciData->type, lbus, lslot, lfunc); |
pciData | 4251 | drivers/scsi/advansys.c | if (pciData->type == 2) { |
pciData | 4262 | drivers/scsi/advansys.c | outp(0xCFA, pciData->bus); |
pciData | 4264 | drivers/scsi/advansys.c | outp(0xCF8, 0x10 | (pciData->func << 1)) ; |
pciData | 4269 | drivers/scsi/advansys.c | tmp = (ushort) inpw(0xC000 | ((pciData->slot << 8) + pciData->offset)); |
pciData | 4286 | drivers/scsi/advansys.c | (lfunc << 8) | (pciData->offset & 0xFC) | 0x80000000L); |
pciData | 4297 | drivers/scsi/advansys.c | ((pciData->offset & 2) * 8)) & 0xFFFF); |
pciData | 4309 | drivers/scsi/advansys.c | asc_get_cfg_byte(PCI_DATA *pciData) |
pciData | 4313 | drivers/scsi/advansys.c | ulong lbus = pciData->bus, lslot = pciData->slot, lfunc = pciData->func; |
pciData | 4317 | drivers/scsi/advansys.c | ASC_DBG1(4, "asc_get_cfg_byte: type: %d\n", pciData->type); |
pciData | 4322 | drivers/scsi/advansys.c | if (pciData->type == 2) { |
pciData | 4333 | drivers/scsi/advansys.c | outp(0xCFA, pciData->bus); |
pciData | 4335 | drivers/scsi/advansys.c | outp(0xCF8, 0x10 | (pciData->func << 1)); |
pciData | 4340 | drivers/scsi/advansys.c | tmp = inp(0xC000 | ((pciData->slot << 8) + pciData->offset)); |
pciData | 4363 | drivers/scsi/advansys.c | (lfunc << 8) | (pciData->offset & 0xFC) | 0x80000000L); |
pciData | 4373 | drivers/scsi/advansys.c | tmp = (uchar) ((inl(0xCFC) >> ((pciData->offset & 3) * 8)) & 0xFF); |