forked from Icenowy/xradio
-
Notifications
You must be signed in to change notification settings - Fork 50
/
fwio.h
33 lines (29 loc) · 957 Bytes
/
fwio.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
* Firmware APIs for XRadio drivers
*
* Copyright (c) 2013, XRadio
* Author: XRadio
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#ifndef FWIO_H_INCLUDED
#define FWIO_H_INCLUDED
#define XR819_HW_REV0 (8190)
#define XR819_BOOTLOADER ("xr819/boot_xr819.bin")
#define XR819_FIRMWARE ("xr819/fw_xr819.bin")
#define XR819_SDD_FILE ("xr819/sdd_xr819.bin")
#define SDD_PTA_CFG_ELT_ID 0xEB
#define SDD_REFERENCE_FREQUENCY_ELT_ID 0xC5
#define FIELD_OFFSET(type, field) ((u8 *)&((type *)0)->field - (u8 *)0)
#define FIND_NEXT_ELT(e) (struct xradio_sdd *)((u8 *)&e->data + e->length)
struct xradio_sdd {
u8 id;
u8 length;
u8 data[];
};
struct xradio_common;
int xradio_load_firmware(struct xradio_common *hw_priv);
int xradio_dev_deinit(struct xradio_common *hw_priv);
#endif