summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornate <nate@FreeBSD.org>1993-10-26 22:25:20 +0000
committernate <nate@FreeBSD.org>1993-10-26 22:25:20 +0000
commitbc9e7efe61ad03ce628750eea5b31b85dbc7698a (patch)
tree3d9ba8fd07cc644f17928e8dce6ffbeebaa5aa07
parentfbbc42a492bd98a81977b77a598a7083f3bb7329 (diff)
downloadFreeBSD-src-bc9e7efe61ad03ce628750eea5b31b85dbc7698a.zip
FreeBSD-src-bc9e7efe61ad03ce628750eea5b31b85dbc7698a.tar.gz
Added character 21 to conf.c table for future ps/2 mouse driver. This
finishes the install of the device short of adding the driver itself to i386/isa/psm.c
-rw-r--r--sys/i386/i386/conf.c19
1 files changed, 15 insertions, 4 deletions
diff --git a/sys/i386/i386/conf.c b/sys/i386/i386/conf.c
index 32295a1..f2e2c1a 100644
--- a/sys/i386/i386/conf.c
+++ b/sys/i386/i386/conf.c
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)conf.c 5.8 (Berkeley) 5/12/91
- * $Id: conf.c,v 1.11 1993/10/23 10:49:24 jkh Exp $
+ * $Id: conf.c,v 1.12 1993/10/23 22:13:08 jkh Exp $
*/
#include "param.h"
@@ -279,6 +279,17 @@ int sbselect();
#define sbselect seltrue
#endif
+#include "psm.h"
+#if NPSM > 0
+int psmopen(),psmclose(),psmread(),psmselect(),psmioctl();
+#else
+#define psmopen enxio
+#define psmclose enxio
+#define psmread enxio
+#define psmselect enxio
+#define psmioctl enxio
+#endif
+
#include "snd.h" /* General Sound Driver */
#if NSND > 0
int sndopen(), sndclose(), sndioctl(), sndread(), sndwrite();
@@ -430,9 +441,9 @@ struct cdevsw cdevsw[] =
{ sbopen, sbclose, sbread, sbwrite, /*20*/
sbioctl, enodev, enodev, NULL, /* soundblaster*/
sbselect, enodev, NULL },
- { enodev, enodev, enodev, enodev, /*21*/
- enodev, enodev, nullop, NULL, /* psm */
- enodev, enodev, enodev },
+ { psmopen, psmclose, psmread, nullop, /*21*/
+ psmioctl, enodev, nullop, NULL, /* psm mice */
+ psmselect, enodev, NULL },
{ fdopen, enxio, enxio, enxio, /*22*/
enxio, enxio, enxio, NULL, /* fd (!=Fd) */
enxio, enxio, enxio },
OpenPOWER on IntegriCloud