1 #define STI_REGION_MAX 8
2 #define STI_DEV_NAME_LENGTH 32
7 } __attribute__((packed
)) sti_u8
;
11 } __attribute__((packed
)) sti_u16
;
15 } __attribute__((packed
)) sti_u32
;
17 #define STI_U8( u8) ((u8).data)
18 #define STI_U16(u16) ((STI_U8((u16).data[0])<<8) | STI_U8((u16).data[1]))
19 #define STI_U32(u32) ((STI_U8((u32).data[0])<<24) | \
20 (STI_U8((u32).data[1])<<16) | \
21 (STI_U8((u32).data[2])<< 8) | \
22 (STI_U8((u32).data[3])<< 0))
24 struct sti_rom_region
{
34 sti_u8 bytes_per_char
;
36 sti_u8 underline_height
;
46 sti_u8 graphics_id
[8]; /* 0x010 */
48 sti_u32 font_start
; /* 0x030 */
53 sti_u16 reentsize
; /* 0x070 */
56 sti_u32 user_data_addr
;
59 sti_u32 user_data_size
; /* 0x0b0 */
60 sti_u16 power
; /* 0x0c0 */
62 sti_u8 ext_bus_support
;
63 sti_u8 alt_code_type
; /* 0x0d0 */
64 sti_u8 ext_dd_struct
[3];
65 sti_u32 cfb_addr
; /* 0x0e0 */
69 sti_u32 init_graph
; /* 0x0e0 */
86 sti_u32 init_graph_m68k
; /* 0x0e0 */
87 sti_u32 state_mgmt_m68k
;
88 sti_u32 font_unpmv_m68k
;
89 sti_u32 block_move_m68k
;
90 sti_u32 self_test_m68k
;
91 sti_u32 excep_hdlr_m68k
;
92 sti_u32 inq_conf_m68k
;
93 sti_u32 set_cm_entry_m68k
;
94 sti_u32 dma_ctrl_m68k
;
95 sti_u32 flow_ctrl_m68k
;
96 sti_u32 user_timing_m68k
;
97 sti_u32 process_mgr_m68k
;
98 sti_u32 sti_util_m68k
;
99 sti_u32 end_addr_m68k
;
103 sti_u8 res040
[7 * 4];
106 struct sti_cooked_font
{
107 struct sti_rom_font
*raw
;
108 struct sti_cooked_font
*next_font
;
111 struct sti_cooked_rom
{
113 struct sti_cooked_font
*font_start
;
117 struct sti_glob_cfg_ext
{
126 struct sti_glob_cfg
{
134 u32 region_ptrs
[STI_REGION_MAX
];
137 struct sti_glob_cfg_ext
*ext_ptr
;
140 struct sti_init_flags
{
147 u32 enable_be_timer
: 1;
148 u32 enable_be_int
: 1;
153 u32 init_cmap_tx
: 1;
161 struct sti_init_inptr_ext
{
168 struct sti_init_inptr
{
170 struct sti_init_inptr_ext
*ext_ptr
;
173 struct sti_init_outptr
{
179 struct sti_conf_flags
{
185 struct sti_conf_inptr
{
189 struct sti_conf_outptr_ext
{
195 struct sti_conf_outptr
{
206 u8 dev_name
[STI_DEV_NAME_LENGTH
];
208 struct sti_conf_outptr_ext
*ext_ptr
;
212 struct sti_font_inptr
{
222 struct sti_font_flags
{
230 struct sti_font_outptr
{
235 struct sti_blkmv_flags
{
244 struct sti_blkmv_inptr
{
256 struct sti_blkmv_outptr
{
264 struct sti_cooked_rom
*rom
;
266 unsigned long font_unpmv
;
267 unsigned long block_move
;
268 unsigned long init_graph
;
269 unsigned long inq_conf
;
271 struct sti_glob_cfg
*glob_cfg
;
272 struct sti_rom_font
*font
;
281 #define STI_CALL(func, flags, inptr, outptr, glob_cfg) \
283 real32_call( func, (unsigned long)STI_PTR(flags), \
284 STI_PTR(inptr), STI_PTR(outptr), \