Date: Mon, 11 Nov 1996 13:57:10 +1030 (CST) From: Michael Smith <msmith@atrad.adelaide.edu.au> To: current@freebsd.org Subject: Updates for UserConfig Message-ID: <199611110327.NAA05096@genesis.atrad.adelaide.edu.au>
next in thread | raw e-mail | index | archive | help
I can't get to freefall at the moment (I presume it's still down for PM). The following attempt to address the drivers missing from UserConfig's database, and improves the handling of unknown or changed PCI devices. This should _properly_ fix Joerg's problem. Poul, _please_ consider at least the code portion of this for 2.2; as it stands, UserConfig can be fatally confused by unknown devices. --- userconfig.c.old Mon Nov 11 13:35:03 1996 +++ userconfig.c Mon Nov 11 13:47:13 1996 @@ -259,6 +259,11 @@ {"cx", "Cronyx/Sigma multiport sync/async adapter",0, CLS_COMMS}, {"rc", "RISCom/8 multiport async adapter", 0, CLS_COMMS}, {"cy", "Cyclades multiport async adapter", 0, CLS_COMMS}, +{"cyy", "Cyclades Ye/PCI multiport async adapter",FLG_INVISBLE, CLS_COMMS}, +{"dgb", "Digiboard PC/Xe, PC/Xi async adapter", 0, CLS_COMMS}, +{"si", "Specialix SI/XIO async adapter", 0, CLS_COMMS}, +{"stl", "Stallion EasyIO/Easy Connection 8/32 async adapter",0, CLS_COMMS}, +{"stli", "Stallion intelligent async adapter" ,0, CLS_COMMS}, {"lpt", "Parallel printer port", 0, CLS_COMMS}, {"gp", "National Instruments AT-GPIB/TNT driver", 0, CLS_COMMS}, @@ -282,7 +287,9 @@ {"pca", "PC speaker PCM audio driver", FLG_FIXED, CLS_MMEDIA}, {"ctx", "Coretex-I frame grabber", 0, CLS_MMEDIA}, {"spigot", "Creative Labs Video Spigot video capture", 0, CLS_MMEDIA}, +{"scc", "IBM Smart Capture Card", 0, CLS_MMEDIA}, {"gsc", "Genius GS-4500 hand scanner", 0, CLS_MMEDIA}, +{"asc", "AmiScan scanner", 0, CLS_MMEDIA}, {"qcam", "QuickCam parallel port camera", 0, CLS_MMEDIA}, {"apm", "Advanced Power Management", FLG_FIXED, CLS_MISC}, @@ -673,11 +680,10 @@ while (list) { - if ((list->comment == DEV_DEVICE) && list->changed) - { - if ((list->iobase == -2) || /* is a PCI device; can't save */ - (list->device == NULL)) /* no isa_device associated at all?! */ - continue; + if ((list->comment == DEV_DEVICE) && /* is a device */ + (list->changed) && /* has been changed */ + (list->iobase != -2) && /* is not a PCI device */ + (list->device != NULL)) { /* has an isa_device structure */ setdev(list,active); /* set the device itself */ -- ]] Mike Smith, Software Engineer msmith@gsoft.com.au [[ ]] Genesis Software genesis@gsoft.com.au [[ ]] High-speed data acquisition and (GSM mobile) 0411-222-496 [[ ]] realtime instrument control. (ph) +61-8-8267-3493 [[ ]] Unix hardware collector. "Where are your PEZ?" The Tick [[
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199611110327.NAA05096>