diff options
author | imp <imp@FreeBSD.org> | 2005-06-26 04:19:45 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2005-06-26 04:19:45 +0000 |
commit | 77c5d7a36d189d1c4f1b1d55847443a0cc46a001 (patch) | |
tree | 5035c08dd3f927e7b0ee6df0b81b0ebc2a05b11e /sys/dev/ep/if_epvar.h | |
parent | 991a0a96327d5811129df168ecd42872b043cd28 (diff) | |
download | FreeBSD-src-77c5d7a36d189d1c4f1b1d55847443a0cc46a001.zip FreeBSD-src-77c5d7a36d189d1c4f1b1d55847443a0cc46a001.tar.gz |
o When calling ep_get_macaddr(), provide it a local buffer. Add a comment
that says why we do this (or rather, explains that it is some voodoo magic
that's poorly understood). The local buffer fixes the crash on attach.
o Rename get_e() to ep_get_e() to avoid namespace pollution.
Submitted by: mux
Approved by: re (scottl)
Diffstat (limited to 'sys/dev/ep/if_epvar.h')
-rw-r--r-- | sys/dev/ep/if_epvar.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ep/if_epvar.h b/sys/dev/ep/if_epvar.h index 231d4ed..31ff786 100644 --- a/sys/dev/ep/if_epvar.h +++ b/sys/dev/ep/if_epvar.h @@ -79,7 +79,7 @@ int ep_detach(device_t); void ep_get_media(struct ep_softc *); int ep_attach(struct ep_softc *); void ep_intr(void *); -int get_e(struct ep_softc *, uint16_t, uint16_t *); +int ep_get_e(struct ep_softc *, uint16_t, uint16_t *); int ep_get_macaddr(struct ep_softc *, u_char *); #define CSR_READ_1(sc, off) (bus_space_read_1((sc)->bst, (sc)->bsh, off)) |