Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102902218
D35079.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D35079.diff
View Options
diff --git a/sys/dev/pbio/pbio.c b/sys/dev/pbio/pbio.c
--- a/sys/dev/pbio/pbio.c
+++ b/sys/dev/pbio/pbio.c
@@ -117,8 +117,6 @@
int iomode; /* Virtualized I/O mode port value */
/* The real port is write-only */
struct resource *res;
- bus_space_tag_t bst;
- bus_space_handle_t bsh;
};
typedef struct pbio_softc *sc_p;
@@ -146,14 +144,14 @@
pbinb(struct pbio_softc *scp, int off)
{
- return bus_space_read_1(scp->bst, scp->bsh, off);
+ return (bus_read_1(scp->res, off));
}
static __inline void
pboutb(struct pbio_softc *scp, int off, uint8_t val)
{
- bus_space_write_1(scp->bst, scp->bsh, off, val);
+ bus_write_1(scp->res, off, val);
}
static int
@@ -174,8 +172,6 @@
return (ENXIO);
#ifdef GENERIC_PBIO_PROBE
- scp->bst = rman_get_bustag(scp->res);
- scp->bsh = rman_get_bushandle(scp->res);
/*
* try see if the device is there.
* This probe works only if the device has no I/O attached to it
@@ -228,8 +224,6 @@
IO_PBIOSIZE, RF_ACTIVE);
if (sc->res == NULL)
return (ENXIO);
- sc->bst = rman_get_bustag(sc->res);
- sc->bsh = rman_get_bushandle(sc->res);
/*
* Store whatever seems wise.
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 19, 12:56 PM (13 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14700840
Default Alt Text
D35079.diff (1 KB)
Attached To
Mode
D35079: pbio: Axe bus_space tag/handle using bus_read/write_1 instead.
Attached
Detach File
Event Timeline
Log In to Comment