mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-01 00:18:15 +01:00
Changed read_csr and write_csr to static so that they don't clash
with another driver. Reviewed by: Paul Richards Submitted by: Brian Litzinger
This commit is contained in:
parent
dfa4c76f74
commit
4039006ad7
@ -154,14 +154,14 @@ static struct kern_devconf kdc_lnc = {
|
|||||||
DC_CLS_NETIF
|
DC_CLS_NETIF
|
||||||
};
|
};
|
||||||
|
|
||||||
inline void
|
static inline void
|
||||||
write_csr(int unit, u_short port, u_short val)
|
write_csr(int unit, u_short port, u_short val)
|
||||||
{
|
{
|
||||||
outw(lnc_softc[unit].rap, port);
|
outw(lnc_softc[unit].rap, port);
|
||||||
outw(lnc_softc[unit].rdp, val);
|
outw(lnc_softc[unit].rdp, val);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline u_short
|
static inline u_short
|
||||||
read_csr(int unit, u_short port)
|
read_csr(int unit, u_short port)
|
||||||
{
|
{
|
||||||
outw(lnc_softc[unit].rap, port);
|
outw(lnc_softc[unit].rap, port);
|
||||||
|
@ -154,14 +154,14 @@ static struct kern_devconf kdc_lnc = {
|
|||||||
DC_CLS_NETIF
|
DC_CLS_NETIF
|
||||||
};
|
};
|
||||||
|
|
||||||
inline void
|
static inline void
|
||||||
write_csr(int unit, u_short port, u_short val)
|
write_csr(int unit, u_short port, u_short val)
|
||||||
{
|
{
|
||||||
outw(lnc_softc[unit].rap, port);
|
outw(lnc_softc[unit].rap, port);
|
||||||
outw(lnc_softc[unit].rdp, val);
|
outw(lnc_softc[unit].rdp, val);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline u_short
|
static inline u_short
|
||||||
read_csr(int unit, u_short port)
|
read_csr(int unit, u_short port)
|
||||||
{
|
{
|
||||||
outw(lnc_softc[unit].rap, port);
|
outw(lnc_softc[unit].rap, port);
|
||||||
|
Loading…
Reference in New Issue
Block a user