summaryrefslogtreecommitdiffstats
path: root/sys/dev/pbio
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2004-10-11 00:58:24 +0000
committerimp <imp@FreeBSD.org>2004-10-11 00:58:24 +0000
commitbc7aea493bcaeac179e22ccbf789af1f6fc3a312 (patch)
treefa3498d284f0cb6153ce269845c079c42b5b38b1 /sys/dev/pbio
parentd83296ea0ce1ef1188f67a8d453abc25bad72c96 (diff)
downloadFreeBSD-src-bc7aea493bcaeac179e22ccbf789af1f6fc3a312.zip
FreeBSD-src-bc7aea493bcaeac179e22ccbf789af1f6fc3a312.tar.gz
Fix conflicts I didn't fix before I committed my busspace changes.
Noticed by: ru@ (and likely tinderbox, I haven't checked)
Diffstat (limited to 'sys/dev/pbio')
-rw-r--r--sys/dev/pbio/pbio.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/pbio/pbio.c b/sys/dev/pbio/pbio.c
index 00a0463..37a46a3 100644
--- a/sys/dev/pbio/pbio.c
+++ b/sys/dev/pbio/pbio.c
@@ -113,7 +113,6 @@ struct portdata {
* One of these per allocated device
*/
struct pbio_softc {
- int iobase; /* I/O base */
struct portdata pd[PBIO_NPORTS];/* Per port data */
int iomode; /* Virtualized I/O mode port value */
/* The real port is write-only */
@@ -186,7 +185,7 @@ pbioprobe(device_t dev)
/* Set all ports to output */
pboutb(scp, PBIO_CFG, 0x80);
printf("pbio val(CFG: 0x%03x)=0x%02x (should be 0x80)\n",
- iobase, pbinb(scp, PBIO_CFG));
+ rman_get_start(scp->res), pbinb(scp, PBIO_CFG));
pboutb(scp, PBIO_PORTA, 0xa5);
val = pbinb(scp, PBIO_PORTA);
printf("pbio val=0x%02x (should be 0xa5)\n", val);
@@ -221,7 +220,6 @@ pbioattach (device_t dev)
int i;
int rid;
struct pbio_softc *sc;
- int flags, i, iobase, rid, unit;
sc = device_get_softc(dev);
unit = device_get_unit(dev);
@@ -403,7 +401,7 @@ static int
pbiowrite(struct cdev *dev, struct uio *uio, int ioflag)
{
struct pbio_softc *scp;
- int i, iobase, port, ret, towrite, unit;
+ int i, port, ret, towrite, unit;
char val, oval;
unit = UNIT(dev);
OpenPOWER on IntegriCloud