summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/dcreg.h3
-rw-r--r--sys/dev/pci/if_dc_pci.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/sys/dev/ic/dcreg.h b/sys/dev/ic/dcreg.h
index 3b92dc6e6a9..f1d4978b8a0 100644
--- a/sys/dev/ic/dcreg.h
+++ b/sys/dev/ic/dcreg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: dcreg.h,v 1.2 2000/04/26 03:28:56 mickey Exp $ */
+/* $OpenBSD: dcreg.h,v 1.3 2000/04/26 13:58:28 mickey Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
@@ -657,6 +657,7 @@ struct dc_softc {
struct dc_list_data *dc_ldata;
caddr_t dc_ldata_ptr;
struct dc_chain_data dc_cdata;
+ u_int32_t dc_csid;
u_int dc_revision;
};
diff --git a/sys/dev/pci/if_dc_pci.c b/sys/dev/pci/if_dc_pci.c
index d6eb4c9597e..9552bc71cfc 100644
--- a/sys/dev/pci/if_dc_pci.c
+++ b/sys/dev/pci/if_dc_pci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_dc_pci.c,v 1.2 2000/04/26 03:28:57 mickey Exp $ */
+/* $OpenBSD: if_dc_pci.c,v 1.3 2000/04/26 13:58:28 mickey Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
@@ -200,6 +200,8 @@ void dc_pci_attach(parent, self, aux)
pci_conf_write(pc, pa->pa_tag, PCI_COMMAND_STATUS_REG, command);
command = pci_conf_read(pc, pa->pa_tag, PCI_COMMAND_STATUS_REG);
+ sc->dc_csid = pci_conf_read(pc, pa->pa_tag, PCI_SUBSYS_ID_REG);
+
#ifdef DC_USEIOSPACE
if (!(command & PCI_COMMAND_IO_ENABLE)) {
printf(": failed to enable I/O ports\n");