diff options
author | jkh <jkh@FreeBSD.org> | 1999-02-10 00:26:47 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1999-02-10 00:26:47 +0000 |
commit | aa5893d547b8d182f351151d2717a15f33313405 (patch) | |
tree | 82ee22c4c8007d32760b3e38ad47a413cadccdf1 | |
parent | 542b263658139322bf3d5bd62bad9800e74aad45 (diff) | |
download | FreeBSD-src-aa5893d547b8d182f351151d2717a15f33313405.zip FreeBSD-src-aa5893d547b8d182f351151d2717a15f33313405.tar.gz |
Save pnp changes into a sysctl variable for kget, just as is done
with the isa changes.
-rw-r--r-- | sys/i386/i386/userconfig.c | 30 |
1 files changed, 27 insertions, 3 deletions
diff --git a/sys/i386/i386/userconfig.c b/sys/i386/i386/userconfig.c index 6c841b8..c92856c 100644 --- a/sys/i386/i386/userconfig.c +++ b/sys/i386/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.128 1999/01/31 13:08:25 yokota Exp $ + ** $Id: userconfig.c,v 1.129 1999/02/04 10:36:57 yokota Exp $ **/ /** @@ -131,7 +131,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 */ @@ -2507,7 +2507,7 @@ visuserconfig(void) * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: userconfig.c,v 1.128 1999/01/31 13:08:25 yokota Exp $ + * $Id: userconfig.c,v 1.129 1999/02/04 10:36:57 yokota Exp $ */ #include "scbus.h" @@ -2886,6 +2886,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. |