diff options
author | 1999-08-14 04:39:12 +0000 | |
---|---|---|
committer | 1999-08-14 04:39:12 +0000 | |
commit | 1e09bb6be8da0600589644545dfd0ed218f7af28 (patch) | |
tree | 6bfbc32a88bfbd735cb54bc0465d95b73d91e152 | |
parent | fix debug printfs, ipl name (diff) | |
download | wireguard-openbsd-1e09bb6be8da0600589644545dfd0ed218f7af28.tar.xz wireguard-openbsd-1e09bb6be8da0600589644545dfd0ed218f7af28.zip |
update
-rw-r--r-- | sys/arch/hppa/TODO | 5 | ||||
-rw-r--r-- | sys/arch/hppa/gsc/lpt_gsc.c | 25 |
2 files changed, 9 insertions, 21 deletions
diff --git a/sys/arch/hppa/TODO b/sys/arch/hppa/TODO index 5e04b47d153..261cbf2633c 100644 --- a/sys/arch/hppa/TODO +++ b/sys/arch/hppa/TODO @@ -33,13 +33,12 @@ boots (sys/arch/hppa/stand/*): mickey@ fries@ kernel (sys/arch/hppa/*): mickey@ * HPPA STACK GROWS UP, major kernel cleanup (diffs mickey@) * several harware problems (ie non-functional drivers) - (floppy controller, if_ie) * user-land support (signal stuff) * ddb (breakpoints left) * some MI files/changes to integrate into the repo * wscons devices (sti, hil/*, pckbc/*) unfinished -* "original snakes" (700,705,710,...) support * 7300lc-based machines, 8k-based machines +* "original snakes" (700,705,710,...) support * advanced audio driver * general cleanup (far-east future) @@ -58,7 +57,7 @@ userland (*): mickey@ X11 (X11/*): fries@ mickey@ * patch is available, nothing to run at tho (; -$OpenBSD: TODO,v 1.4 1999/07/27 23:36:33 mickey Exp $ +$OpenBSD: TODO,v 1.5 1999/08/14 04:40:59 mickey Exp $ -- paranoic mickey diff --git a/sys/arch/hppa/gsc/lpt_gsc.c b/sys/arch/hppa/gsc/lpt_gsc.c index a6f631f6ef4..64777ea66d6 100644 --- a/sys/arch/hppa/gsc/lpt_gsc.c +++ b/sys/arch/hppa/gsc/lpt_gsc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lpt_gsc.c,v 1.3 1999/04/20 21:17:07 mickey Exp $ */ +/* $OpenBSD: lpt_gsc.c,v 1.4 1999/08/14 04:39:12 mickey Exp $ */ /* * Copyright (c) 1998 Michael Shalayeff @@ -116,17 +116,14 @@ lpt_gsc_probe(parent, match, aux) do { \ printf("lpt_gsc_probe: mask %x data %x failed\n", mask, \ data); \ - goto out; \ + return 0; \ } while (0) #else -#define ABORT goto out +#define ABORT return 0 #endif - base = ca->ca_hpa; - if (bus_space_map(ca->ca_iot, base, IOMOD_HPASIZE, 0, &ioh)) - return 0; - ioh += LPTGSC_OFFSET; - base += LPTGSC_OFFSET; + base = ca->ca_hpa + LPTGSC_OFFSET; + ioh = ca->ca_hpa + LPTGSC_OFFSET; rv = 0; mask = 0xff; @@ -154,12 +151,7 @@ lpt_gsc_probe(parent, match, aux) bus_space_write_1(ca->ca_iot, ioh, lpt_data, 0); bus_space_write_1(ca->ca_iot, ioh, lpt_control, 0); - rv = 1; - -out: - ioh -= LPTGSC_OFFSET; - bus_space_unmap(ca->ca_iot, ioh, IOMOD_HPASIZE); - return rv; + return 1; } void @@ -175,10 +167,7 @@ lpt_gsc_attach(parent, self, aux) sc->sc_state = 0; sc->sc_iot = ga->ga_iot; - if (bus_space_map(sc->sc_iot, ga->ga_hpa, IOMOD_HPASIZE, - 0, &sc->sc_ioh)) - panic("lpt_gsc_attach: couldn't map I/O ports"); - sc->sc_ioh += LPTGSC_OFFSET; + sc->sc_ioh = ga->ga_hpa + LPTGSC_OFFSET; printf("\n"); |