219d22404b
the response queue. Instead of the ad hoc ISP_SWIZZLE_REQUEST, we now have a complete set of inline functions in isp_inline.h. Each platform is responsible for providing just one of a set of ISP_IOX_{GET,PUT}{8,16,32} macros. The reason this needs to be done is that we need to have a single set of functions that will work correctly on multiple architectures for both little and big endian machines. It also needs to work correctly in the case that we have the request or response queues in memory that has to be treated specially (e.g., have ddi_dma_sync called on it for Solaris after we update it or before we read from it). One thing that falls out of this is that we no longer build requests in the request queue itself. Instead, we build the request locally (e.g., on the stack) and then as part of the swizzling operation, copy it to the request queue entry we've allocated. I thought long and hard about whether this was too expensive a change to make as it in a lot of cases requires an extra copy. On balance, the flexbility is worth it. With any luck, the entry that we build locally stays in a processor writeback cache (after all, it's only 64 bytes) so that the cost of actually flushing it to the memory area that is the shared queue with the PCI device is not all that expensive. We may examine this again and try to get clever in the future to try and avoid copies. Another change that falls out of this is that MEMORYBARRIER should be taken a lot more seriously. The macro ISP_ADD_REQUEST does a MEMORYBARRIER on the entry being added. But there had been many other places this had been missing. It's now very important that it be done. For NetBSD, it does a ddi_dmamap_sync as appropriate. This gets us out of the explicit ddi_dmamap_sync on the whole response queue that we did for SBus cards at each interrupt. Set things up so that platforms that cannot have an SBus don't get a lot of the SBus code checks (dead coded out). Additional changes: Fix a longstanding buglet of sorts. When we get an entry via isp_getrqentry, the iptr value that gets returned is the value we intend to eventually plug into the ISP registers as the entry *one past* the last one we've written- *not* the current entry we're updating. All along we've been calling sync functions on the wrong index value. Argh. The 'fix' here is to rename all 'iptr' variables as 'nxti' to remember that this is the 'next' pointer- not the current pointer. Devote a single bit to mboxbsy- and set aside bits for output mbox registers that we need to pick up- we can have at least one command which does not have any defined output registers (MBOX_EXECUTE_FIRMWARE). Explicitly decode GetAllNext SNS Response back *as* a GetAllNext response. Otherwise, we won't unswizzle it correctly. Nuke some additional __P macros. |
||
---|---|---|
.. | ||
bktr | ||
adv_pci.c | ||
adw_pci.c | ||
agp_ali.c | ||
agp_amd.c | ||
agp_i810.c | ||
agp_intel.c | ||
agp_sis.c | ||
agp_via.c | ||
agp.c | ||
agpreg.h | ||
agpvar.h | ||
ahc_pci.c | ||
auich.c | ||
auichreg.h | ||
autri.c | ||
autrireg.h | ||
autrivar.h | ||
auvia.c | ||
auviavar.h | ||
bha_pci.c | ||
btvmei.c | ||
btvmeii.c | ||
btvmeireg.h | ||
btvmeivar.h | ||
cac_pci.c | ||
cmpci.c | ||
cmpcireg.h | ||
cmpcivar.h | ||
com_puc.c | ||
cs428x.c | ||
cs428x.h | ||
cs428xreg.h | ||
cs4280_image.h | ||
cs4280.c | ||
cs4280reg.h | ||
cs4281.c | ||
cs4281reg.h | ||
cy82c693.c | ||
cy82c693reg.h | ||
cy82c693var.h | ||
cy_pci.c | ||
cz.c | ||
czreg.h | ||
devlist2h.awk | ||
dpt_pci.c | ||
eap.c | ||
eapreg.h | ||
ehci_pci.c | ||
emuxki.c | ||
emuxkireg.h | ||
emuxkivar.h | ||
esm.c | ||
esmreg.h | ||
esmvar.h | ||
eso.c | ||
esoreg.h | ||
esovar.h | ||
files.agp | ||
files.pci | ||
fms.c | ||
fmsvar.h | ||
fwlynx_pci.c | ||
fwohci_pci.c | ||
hifn7751.c | ||
hifn7751reg.h | ||
hifn7751var.h | ||
i82365_pci.c | ||
i82365_pcivar.h | ||
if_an_pci.c | ||
if_de.c | ||
if_devar.h | ||
if_en_pci.c | ||
if_ep_pci.c | ||
if_epic_pci.c | ||
if_esh_pci.c | ||
if_ex_pci.c | ||
if_fpa.c | ||
if_fxp_pci.c | ||
if_gem_pci.c | ||
if_gsip.c | ||
if_hme_pci.c | ||
if_le_pci.c | ||
if_levar.h | ||
if_lmc_common.c | ||
if_lmc_media.c | ||
if_lmc_nbsd.c | ||
if_lmc_types.h | ||
if_lmc.c | ||
if_lmcioctl.h | ||
if_lmcvar.h | ||
if_ne_pci.c | ||
if_ntwoc_pci.c | ||
if_ntwoc_pcireg.h | ||
if_pcn.c | ||
if_pcnreg.h | ||
if_rtk_pci.c | ||
if_sf_pci.c | ||
if_sip.c | ||
if_sipreg.h | ||
if_ste.c | ||
if_stereg.h | ||
if_stge.c | ||
if_stgereg.h | ||
if_ti.c | ||
if_tireg.h | ||
if_tl.c | ||
if_tlp_pci.c | ||
if_tlregs.h | ||
if_tlvar.h | ||
if_vr.c | ||
if_vrreg.h | ||
if_wi_pci.c | ||
iha_pci.c | ||
iop_pci.c | ||
isic_pci_avm_fritz_pci.c | ||
isic_pci_elsa_qs1p.c | ||
isic_pci.c | ||
isic_pci.h | ||
isp_pci.c | ||
ld_twe.c | ||
lpt_puc.c | ||
Makefile | ||
Makefile.pcidevs | ||
mlx_pci.c | ||
mly_tables.h | ||
mly.c | ||
mlyio.h | ||
mlyreg.h | ||
mlyvar.h | ||
mpu_cmpci.c | ||
mpu_eso.c | ||
mpu_fms.c | ||
mpu_yds.c | ||
neo-coeff.h | ||
neo.c | ||
neoreg.h | ||
oboe.c | ||
oboereg.h | ||
ohci_pci.c | ||
opl_cmpci.c | ||
opl_eso.c | ||
opl_fms.c | ||
opl_sv.c | ||
opl_yds.c | ||
pccbb.c | ||
pccbbreg.h | ||
pccbbvar.h | ||
pci_map.c | ||
pci_quirks.c | ||
pci_subr.c | ||
pci_usrreq.c | ||
pci.c | ||
pciconf.c | ||
pciconf.h | ||
pcidevs | ||
pcidevs_data.h | ||
pcidevs.h | ||
pciide_acard_reg.h | ||
pciide_acer_reg.h | ||
pciide_amd_reg.h | ||
pciide_apollo_reg.h | ||
pciide_cmd_reg.h | ||
pciide_cy693_reg.h | ||
pciide_hpt_reg.h | ||
pciide_opti_reg.h | ||
pciide_pdc202xx_reg.h | ||
pciide_piix_reg.h | ||
pciide_sis_reg.h | ||
pciide.c | ||
pciidereg.h | ||
pciidevar.h | ||
pciio.h | ||
pcireg.h | ||
pcivar.h | ||
pcscp.c | ||
pcscpreg.h | ||
plx9060reg.h | ||
plx9060var.h | ||
ppb.c | ||
ppbreg.h | ||
puc.c | ||
puccn.c | ||
puccn.h | ||
pucdata.c | ||
pucvar.h | ||
README | ||
siop_pci_common.c | ||
siop_pci_common.h | ||
siop_pci.c | ||
sv.c | ||
svreg.h | ||
svvar.h | ||
tga_conf.c | ||
tga.c | ||
tgareg.h | ||
tgavar.h | ||
trm.c | ||
trmreg.h | ||
twe.c | ||
twereg.h | ||
twevar.h | ||
uhci_pci.c | ||
universe_pci_var.h | ||
universe_pci.c | ||
usb_pci.h | ||
vga_pci.c | ||
vga_pcivar.h | ||
viaenv.c | ||
viapm.c | ||
viapmvar.h | ||
yds.c | ||
ydsreg.h | ||
ydsvar.h |
$NetBSD: README,v 1.3 1998/08/15 03:02:46 mycroft Exp $ This directory contains files which are used during PCI configuration and PCI device drivers. Eventually, most of the device drivers and some of the configuration support should become machine-independent and be moved to a more general location. The configuration support was implemented according to the `PCI Local Bus Specification, Production Version, Revision 2.0' dated April 30, 1993. Section numbers referred to in the code may be specific to that edition of the specification. Some attempt has been made to insure that the code works on rogue machines where the BIOS doesn't do its job, but in general I can't guarantee that. -- - Charles M. Hannum NetBSD group August 8, 1994