summaryrefslogtreecommitdiffstats
path: root/sys/pci/pcivar.h
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1995-03-17 04:27:21 +0000
committerdg <dg@FreeBSD.org>1995-03-17 04:27:21 +0000
commitb553215b12e7b5a5694196a76a7eeaaab7c61e4e (patch)
tree70ee5f641c6ef0c9cab22daae6a9b2a8ede50326 /sys/pci/pcivar.h
parent865b8325a4b6237f192b4c21e221c3c003e8bef1 (diff)
downloadFreeBSD-src-b553215b12e7b5a5694196a76a7eeaaab7c61e4e.zip
FreeBSD-src-b553215b12e7b5a5694196a76a7eeaaab7c61e4e.tar.gz
Added a new field to the pci_device struct called pd_shutdown to specify
a device specific shutdown routine for devconf. Assign the value of this to the kern_devconf struct. Implement a device shutdown routine for if_de that disables the device. This will stop the device from corrupting memory after a reboot.
Diffstat (limited to 'sys/pci/pcivar.h')
-rw-r--r--sys/pci/pcivar.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/pci/pcivar.h b/sys/pci/pcivar.h
index 73ce43e..4e62dbf 100644
--- a/sys/pci/pcivar.h
+++ b/sys/pci/pcivar.h
@@ -1,6 +1,6 @@
/**************************************************************************
**
-** $Id: pcivar.h,v 1.1 1995/02/01 22:56:55 se Exp $
+** $Id: pcivar.h,v 1.2 1995/02/27 17:17:14 se Exp $
**
** Declarations for pci device drivers.
**
@@ -129,6 +129,7 @@ struct pci_device {
char* (*pd_probe ) (pcici_t tag, pcidi_t type);
void (*pd_attach) (pcici_t tag, int unit);
u_long *pd_count;
+ int (*pd_shutdown) (struct kern_devconf *, int);
};
/*-----------------------------------------------------------------
OpenPOWER on IntegriCloud