aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/aic7xxx/aic79xx.h
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2007-01-19 22:37:52 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2007-01-19 22:37:52 +0000
commit6eb7ebfe259b6055d1435abb756eee32a287f61e (patch)
tree5dbe44bb5661b5f61460b4a2a9e58c0516a7e276 /sys/dev/aic7xxx/aic79xx.h
parent7b8bfa0de96554f8c4f024245fe6dcccc74eba47 (diff)
downloadsrc-6eb7ebfe259b6055d1435abb756eee32a287f61e.tar.gz
src-6eb7ebfe259b6055d1435abb756eee32a287f61e.zip
- Change the PCI-X registers constants to be relative to the PCI-X PCI
capability rather than hardcoded offsets for a particular card. While I'm here, expand the constants some. - Change the ahd(4) driver to use pci_find_extcap() to locate the PCI-X capability to keep up with the first change. Reviewed by: scottl, gibbs (earlier version)
Notes
Notes: svn path=/head/; revision=166109
Diffstat (limited to 'sys/dev/aic7xxx/aic79xx.h')
-rw-r--r--sys/dev/aic7xxx/aic79xx.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/aic7xxx/aic79xx.h b/sys/dev/aic7xxx/aic79xx.h
index c8de9b776dfe..2f6368303dcc 100644
--- a/sys/dev/aic7xxx/aic79xx.h
+++ b/sys/dev/aic7xxx/aic79xx.h
@@ -1244,6 +1244,9 @@ struct ahd_softc {
/* PCI cacheline size. */
u_int pci_cachesize;
+ /* PCI-X capability offset. */
+ int pcix_ptr;
+
/* IO Cell Parameters */
uint8_t iocell_opts[AHD_NUM_PER_DEV_ANNEXCOLS];