summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorkato <kato@FreeBSD.org>1999-02-10 13:02:38 +0000
committerkato <kato@FreeBSD.org>1999-02-10 13:02:38 +0000
commit84517f5f620559a5bd506c82c59c3a9060c8d123 (patch)
treeee5df99bab6552010f93b565cb6dc26ac0be4b65 /sys
parent0f26402a3e03f7f95a3aa76c96659c9e88dbbeb9 (diff)
downloadFreeBSD-src-84517f5f620559a5bd506c82c59c3a9060c8d123.zip
FreeBSD-src-84517f5f620559a5bd506c82c59c3a9060c8d123.tar.gz
Sync with sys/i386/i386/userconfig.c revision 1.130.
Diffstat (limited to 'sys')
-rw-r--r--sys/pc98/i386/userconfig.c30
1 files changed, 27 insertions, 3 deletions
diff --git a/sys/pc98/i386/userconfig.c b/sys/pc98/i386/userconfig.c
index 2d7d092..42c7a06 100644
--- a/sys/pc98/i386/userconfig.c
+++ b/sys/pc98/i386/userconfig.c
@@ -46,7 +46,7 @@
** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
** THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
**
- ** $Id: userconfig.c,v 1.67 1999/01/31 17:44:06 kato Exp $
+ ** $Id: userconfig.c,v 1.68 1999/02/04 13:58:44 kato Exp $
**/
/**
@@ -135,7 +135,7 @@
static MALLOC_DEFINE(M_DEVL, "isa_devlist", "isa_device lists in userconfig()");
-static struct isa_device *isa_devlist; /* list read by dset to extract changes */
+static struct isa_device *isa_devlist; /* list read by kget to extract changes */
static int userconfig_boot_parsing; /* set if we are reading from the boot instructions */
@@ -2525,7 +2525,7 @@ visuserconfig(void)
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: userconfig.c,v 1.67 1999/01/31 17:44:06 kato Exp $
+ * $Id: userconfig.c,v 1.68 1999/02/04 13:58:44 kato Exp $
*/
#include "scbus.h"
@@ -2908,6 +2908,30 @@ set_device_disable(CmdParm *parms)
}
#if NPNP > 0
+
+static int
+sysctl_machdep_uc_pnplist SYSCTL_HANDLER_ARGS
+{
+ int error=0;
+
+ if(!req->oldptr) {
+ /* Only sizing */
+ return(SYSCTL_OUT(req,0,sizeof(struct pnp_cinfo)*MAX_PNP_LDN));
+ } else {
+ /*
+ * Output the pnp_ldn_overrides[] table.
+ */
+ error=sysctl_handle_opaque(oidp,&pnp_ldn_overrides,
+ sizeof(struct pnp_cinfo)*MAX_PNP_LDN,req);
+ if(error) return(error);
+ return(0);
+ }
+}
+
+SYSCTL_PROC( _machdep, OID_AUTO, uc_pnplist, CTLFLAG_RD,
+ 0, 0, sysctl_machdep_uc_pnplist, "A",
+ "List of PnP overrides changed in UserConfig");
+
/*
* this function sets the kernel table to override bios PnP
* configuration.
OpenPOWER on IntegriCloud