summaryrefslogtreecommitdiffstats
path: root/sys/pci/if_dcreg.h
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2002-10-07 05:26:35 +0000
committerimp <imp@FreeBSD.org>2002-10-07 05:26:35 +0000
commit3c13760e8ac6448cd3a0e8467b5cab54ab1b3cc2 (patch)
tree75cbd504f8a21d6b9e302e35b1ae8d2d74ebad31 /sys/pci/if_dcreg.h
parenta9892a335e6fdaa4b8b3149312e4baa1eff74c86 (diff)
downloadFreeBSD-src-3c13760e8ac6448cd3a0e8467b5cab54ab1b3cc2.zip
FreeBSD-src-3c13760e8ac6448cd3a0e8467b5cab54ab1b3cc2.tar.gz
Dynamically configure the width of the srom. This code comes from
OpenBSD who got the code (or the idea) from the NetBSD tlp driver. This gets some cardbus dc cards working (either completely or nearly so). It also appears to get additional pci cards working, without breaking working ones. # Maybe some additional work is needed here. Also, the cardbus attachment # might need to match on the CIS rather than on the vendor/device so we have # a finer level of detail as to what the card is. Technically, the # vendor/device fields are undefined for CardBus (even though most cards are # using common silicon with pci models).
Diffstat (limited to 'sys/pci/if_dcreg.h')
-rw-r--r--sys/pci/if_dcreg.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/pci/if_dcreg.h b/sys/pci/if_dcreg.h
index 3be7658..432d9be 100644
--- a/sys/pci/if_dcreg.h
+++ b/sys/pci/if_dcreg.h
@@ -710,13 +710,14 @@ struct dc_softc {
u_int8_t dc_pmode;
u_int8_t dc_link;
u_int8_t dc_cachesize;
+ int dc_romwidth;
int dc_pnic_rx_bug_save;
unsigned char *dc_pnic_rx_buf;
int dc_if_flags;
int dc_if_media;
u_int32_t dc_flags;
u_int32_t dc_txthresh;
- u_int8_t dc_srom[1024];
+ u_int8_t *dc_srom;
struct dc_mediainfo *dc_mi;
struct dc_list_data *dc_ldata;
struct dc_chain_data dc_cdata;
OpenPOWER on IntegriCloud