Home | History | Annotate | Line # | Download | only in usb
      1  1.2   andvar /* $NetBSD: aubtfwlreg.h,v 1.2 2021/08/26 21:33:36 andvar Exp $ */
      2  1.1  aymeric 
      3  1.1  aymeric #define AR3K_FIRMWARE_HEADER_SIZE 20
      4  1.1  aymeric 
      5  1.1  aymeric #define AR3K_SEND_FIRMWARE	1
      6  1.1  aymeric #define AR3K_GET_STATE		5
      7  1.1  aymeric #define AR3K_SET_NORMAL_MODE	7
      8  1.1  aymeric #define AR3K_GET_VERSION	9
      9  1.1  aymeric #define AR3K_SWITCH_VID_PID	10
     10  1.1  aymeric 
     11  1.1  aymeric #define AR3K_STATE_MODE_MASK	0x3f
     12  1.1  aymeric #define AR3K_STATE_MODE_NORMAL	14
     13  1.1  aymeric #define AR3K_STATE_IS_SYSCFGED	0x40
     14  1.1  aymeric #define AR3K_STATE_IS_PATCHED	0x80
     15  1.1  aymeric 
     16  1.1  aymeric struct ar3k_version {
     17  1.1  aymeric 	uint32_t rom;
     18  1.1  aymeric 	uint32_t build;
     19  1.1  aymeric 	uint32_t ram;
     20  1.1  aymeric 	uint8_t clock;
     21  1.1  aymeric #define AR3K_CLOCK_26M		0
     22  1.1  aymeric #define AR3K_CLOCK_40M		1
     23  1.1  aymeric #define AR3K_CLOCK_19M		2
     24  1.1  aymeric 	uint8_t pad[7];
     25  1.1  aymeric };
     26