Go to the documentation of this file.
28 #include <linux/types.h>
31 #define ATOM_BIOS_MAGIC 0xAA55
32 #define ATOM_ATI_MAGIC_PTR 0x30
33 #define ATOM_ATI_MAGIC " 761295520"
34 #define ATOM_ROM_TABLE_PTR 0x48
36 #define ATOM_ROM_MAGIC "ATOM"
37 #define ATOM_ROM_MAGIC_PTR 4
39 #define ATOM_ROM_MSG_PTR 0x10
40 #define ATOM_ROM_CMD_PTR 0x1E
41 #define ATOM_ROM_DATA_PTR 0x20
43 #define ATOM_CMD_INIT 0
44 #define ATOM_CMD_SETSCLK 0x0A
45 #define ATOM_CMD_SETMCLK 0x0B
46 #define ATOM_CMD_SETPCLK 0x0C
47 #define ATOM_CMD_SPDFANCNTL 0x39
49 #define ATOM_DATA_FWI_PTR 0xC
50 #define ATOM_DATA_IIO_PTR 0x32
52 #define ATOM_FWI_DEFSCLK_PTR 8
53 #define ATOM_FWI_DEFMCLK_PTR 0xC
54 #define ATOM_FWI_MAXSCLK_PTR 0x24
55 #define ATOM_FWI_MAXMCLK_PTR 0x28
57 #define ATOM_CT_SIZE_PTR 0
58 #define ATOM_CT_WS_PTR 4
59 #define ATOM_CT_PS_PTR 5
60 #define ATOM_CT_PS_MASK 0x7F
61 #define ATOM_CT_CODE_PTR 6
63 #define ATOM_OP_CNT 123
64 #define ATOM_OP_EOT 91
66 #define ATOM_CASE_MAGIC 0x63
67 #define ATOM_CASE_END 0x5A5A
69 #define ATOM_ARG_REG 0
74 #define ATOM_ARG_IMM 5
75 #define ATOM_ARG_PLL 6
78 #define ATOM_SRC_DWORD 0
79 #define ATOM_SRC_WORD0 1
80 #define ATOM_SRC_WORD8 2
81 #define ATOM_SRC_WORD16 3
82 #define ATOM_SRC_BYTE0 4
83 #define ATOM_SRC_BYTE8 5
84 #define ATOM_SRC_BYTE16 6
85 #define ATOM_SRC_BYTE24 7
87 #define ATOM_WS_QUOTIENT 0x40
88 #define ATOM_WS_REMAINDER 0x41
89 #define ATOM_WS_DATAPTR 0x42
90 #define ATOM_WS_SHIFT 0x43
91 #define ATOM_WS_OR_MASK 0x44
92 #define ATOM_WS_AND_MASK 0x45
93 #define ATOM_WS_FB_WINDOW 0x46
94 #define ATOM_WS_ATTRIBUTES 0x47
95 #define ATOM_WS_REGPTR 0x48
97 #define ATOM_IIO_NOP 0
98 #define ATOM_IIO_START 1
99 #define ATOM_IIO_READ 2
100 #define ATOM_IIO_WRITE 3
101 #define ATOM_IIO_CLEAR 4
102 #define ATOM_IIO_SET 5
103 #define ATOM_IIO_MOVE_INDEX 6
104 #define ATOM_IIO_MOVE_ATTR 7
105 #define ATOM_IIO_MOVE_DATA 8
106 #define ATOM_IIO_END 9
109 #define ATOM_IO_PCI 1
110 #define ATOM_IO_SYSIO 2
111 #define ATOM_IO_IIO 0x80