From a6364b20541dbcf91256feea36f42489e376663b Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Fri, 3 Jul 1998 08:21:47 +0000 Subject: who cares if joystick is attached --- sys/arch/i386/isa/joy_isa.c | 4 ++++ sys/arch/i386/isa/joy_isapnp.c | 4 ++++ 2 files changed, 8 insertions(+) (limited to 'sys') diff --git a/sys/arch/i386/isa/joy_isa.c b/sys/arch/i386/isa/joy_isa.c index 773ed7404a2..14c1a095e67 100644 --- a/sys/arch/i386/isa/joy_isa.c +++ b/sys/arch/i386/isa/joy_isa.c @@ -87,6 +87,10 @@ joy_isa_attach(parent, self, aux) sc->timeout[0] = sc->timeout[1] = 0; outb(iobase, 0xff); DELAY(10000); /* 10 ms delay */ +#if 0 printf(": joystick%sconnected\n", (inb(iobase) & 0x0f) == 0x0f ? " not " : " "); +#else + printf("\n"); +#endif } diff --git a/sys/arch/i386/isa/joy_isapnp.c b/sys/arch/i386/isa/joy_isapnp.c index b343150e716..a3010aa8985 100644 --- a/sys/arch/i386/isa/joy_isapnp.c +++ b/sys/arch/i386/isa/joy_isapnp.c @@ -76,6 +76,10 @@ joy_isapnp_attach(parent, self, aux) sc->timeout[0] = sc->timeout[1] = 0; outb(iobase, 0xff); DELAY(10000); /* 10 ms delay */ +#if 0 printf(": joystick%sconnected\n", (inb(iobase) & 0x0f) == 0x0f ? " not " : " "); +#else + printf("\n"); +#endif } -- cgit v1.2.3