diff options
author | Stefan Sperling <stsp@cvs.openbsd.org> | 2016-03-21 12:00:33 +0000 |
---|---|---|
committer | Stefan Sperling <stsp@cvs.openbsd.org> | 2016-03-21 12:00:33 +0000 |
commit | b035e3d07c38fac27521c14f1565c4dc21ba3de4 (patch) | |
tree | d2dda57e20b00b84d3af2f0ff2bd32145ed12247 /sys/dev/ic/rtwnvar.h | |
parent | f7d1892d42fcd9b4f7148fb10f4c4002b9157394 (diff) |
The common part of rtwn(4) needs help from attachment drivers to determine
the chip type. Require chip type as a parameter to rtwn_attach().
ok mpi@
Diffstat (limited to 'sys/dev/ic/rtwnvar.h')
-rw-r--r-- | sys/dev/ic/rtwnvar.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sys/dev/ic/rtwnvar.h b/sys/dev/ic/rtwnvar.h index fedfa8cca0b..8d47c37431b 100644 --- a/sys/dev/ic/rtwnvar.h +++ b/sys/dev/ic/rtwnvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: rtwnvar.h,v 1.4 2016/03/15 10:28:31 stsp Exp $ */ +/* $OpenBSD: rtwnvar.h,v 1.5 2016/03/21 12:00:32 stsp Exp $ */ /*- * Copyright (c) 2010 Damien Bergamini <damien.bergamini@free.fr> @@ -49,16 +49,17 @@ struct rtwn_softc { enum ieee80211_state, int); struct task init_task; int ac2idx[EDCA_NUM_AC]; - u_int sc_flags; + uint32_t sc_flags; #define RTWN_FLAG_CCK_HIPWR 0x01 #define RTWN_FLAG_BUSY 0x02 - u_int chip; -#define RTWN_CHIP_88C 0x00 + uint32_t chip; #define RTWN_CHIP_92C 0x01 #define RTWN_CHIP_92C_1T2R 0x02 #define RTWN_CHIP_UMC 0x04 #define RTWN_CHIP_UMC_A_CUT 0x08 +#define RTWN_CHIP_88C 0x10 +#define RTWN_CHIP_88E 0x20 uint8_t board_type; uint8_t regulatory; @@ -77,7 +78,7 @@ struct rtwn_softc { uint32_t rf_chnlbw[R92C_MAX_CHAINS]; }; -int rtwn_attach(struct device *, struct rtwn_softc *); +int rtwn_attach(struct device *, struct rtwn_softc *, uint32_t); int rtwn_detach(struct rtwn_softc *, int); int rtwn_activate(struct rtwn_softc *, int); int8_t rtwn_get_rssi(struct rtwn_softc *, int, void *); |