File: novena-eeprom.h

package info (click to toggle)
novena-eeprom 1.0-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 92 kB
  • ctags: 38
  • sloc: ansic: 352; makefile: 15
file content (68 lines) | stat: -rw-r--r-- 1,176 bytes parent folder | download
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#ifndef __NOVENA_EEPROM_H__
#define __NOVENA_EEPROM_H__

#include <stdint.h>

#define NOVENA_SIGNATURE "Novena"
#define NOVENA_VERSION 1

/*
 * For structure documentation, see:
 * http://www.kosagi.com/w/index.php?title=Novena/EEPROM
 */
struct novena_eeprom_data {
	uint8_t		signature[6];	/* 'Novena' */
	uint8_t		version;	/* 1 */
	uint8_t		reserved1;
	uint32_t	serial;
	uint8_t		mac[6];
	uint16_t	features;
} __attribute__((__packed__));

struct feature {
        uint32_t        flags;
        char            *name;
	char		*descr;
};

struct feature features[] = {
	{
		.name  = "es8328",
		.flags = 0x01,
		.descr = "ES8328 audio codec",
	},
	{
		.name  = "senoko",
		.flags = 0x02,
		.descr = "Senoko battery board",
	},
	{
		.name  = "retina",
		.flags = 0x04,
		.descr = "Retina-class dual-LVDS display",
	},
	{
		.name  = "pixelqi",
		.flags = 0x08,
		.descr = "PixelQi LVDS display",
	},
	{
		.name  = "pcie",
		.flags = 0x10,
		.descr = "PCI Express support",
	},
	{
		.name  = "gbit",
		.flags = 0x20,
		.descr = "Gigabit Ethernet",
	},
	{
		.name  = "hdmi",
		.flags = 0x40,
		.descr = "HDMI Output",
	},
	{} /* Sentinal */
};


#endif /* __NOVENA_EEPROM_H__ */