Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions
sticore.h File Reference
#include <asm/io.h>

Go to the source code of this file.

Data Structures

union  region
 
struct  sti_glob_cfg_ext
 
struct  sti_glob_cfg
 
struct  sti_init_flags
 
struct  sti_init_inptr_ext
 
struct  sti_init_inptr
 
struct  sti_init_outptr
 
struct  sti_conf_flags
 
struct  sti_conf_inptr
 
struct  sti_conf_outptr_ext
 
struct  sti_conf_outptr
 
struct  sti_rom
 
struct  sti_rom_font
 
struct  sti_cooked_font
 
struct  sti_cooked_rom
 
struct  sti_font_inptr
 
struct  sti_font_flags
 
struct  sti_font_outptr
 
struct  sti_blkmv_flags
 
struct  sti_blkmv_inptr
 
struct  sti_blkmv_outptr
 
struct  sti_struct
 

Macros

#define DPRINTK(x)
 
#define MAX_STI_ROMS   4 /* max no. of ROMs which this driver handles */
 
#define STI_REGION_MAX   8 /* hardcoded STI constants */
 
#define STI_DEV_NAME_LENGTH   32
 
#define STI_MONITOR_MAX   256
 
#define STI_FONT_HPROMAN8   1
 
#define STI_FONT_KANA8   2
 
#define STI_WAIT   1
 
#define STI_PTR(p)   ( virt_to_phys(p) )
 
#define PTR_STI(p)   ( phys_to_virt((unsigned long)p) )
 
#define STI_CALL(func, flags, inptr, outptr, glob_cfg)
 
#define sti_onscreen_x(sti)   (sti->glob_cfg->onscreen_x)
 
#define sti_onscreen_y(sti)   (sti->glob_cfg->onscreen_y)
 
#define sti_font_x(sti)   (PTR_STI(sti->font)->width)
 
#define sti_font_y(sti)   (PTR_STI(sti->font)->height)
 
#define REGION_OFFSET_TO_PHYS(rt, hpa)   (((rt).region_desc.offset << 12) + (hpa))
 

Typedefs

typedef union region region_t
 

Functions

struct sti_structsti_get_rom (unsigned int index)
 
void sti_putc (struct sti_struct *sti, int c, int y, int x)
 
void sti_set (struct sti_struct *sti, int src_y, int src_x, int height, int width, u8 color)
 
void sti_clear (struct sti_struct *sti, int src_y, int src_x, int height, int width, int c)
 
void sti_bmove (struct sti_struct *sti, int src_y, int src_x, int dst_y, int dst_x, int height, int width)
 

Macro Definition Documentation

#define DPRINTK (   x)

Definition at line 9 of file sticore.h.

#define MAX_STI_ROMS   4 /* max no. of ROMs which this driver handles */

Definition at line 12 of file sticore.h.

#define PTR_STI (   p)    ( phys_to_virt((unsigned long)p) )

Definition at line 42 of file sticore.h.

#define REGION_OFFSET_TO_PHYS (   rt,
  hpa 
)    (((rt).region_desc.offset << 12) + (hpa))

Definition at line 75 of file sticore.h.

#define STI_CALL (   func,
  flags,
  inptr,
  outptr,
  glob_cfg 
)
Value:
({ \
pdc_sti_call( func, STI_PTR(flags), \
STI_PTR(outptr), \
STI_PTR(glob_cfg)); \
})

Definition at line 43 of file sticore.h.

#define STI_DEV_NAME_LENGTH   32

Definition at line 15 of file sticore.h.

#define STI_FONT_HPROMAN8   1

Definition at line 18 of file sticore.h.

#define STI_FONT_KANA8   2

Definition at line 19 of file sticore.h.

#define sti_font_x (   sti)    (PTR_STI(sti->font)->width)

Definition at line 56 of file sticore.h.

#define sti_font_y (   sti)    (PTR_STI(sti->font)->height)

Definition at line 57 of file sticore.h.

#define STI_MONITOR_MAX   256

Definition at line 16 of file sticore.h.

#define sti_onscreen_x (   sti)    (sti->glob_cfg->onscreen_x)

Definition at line 52 of file sticore.h.

#define sti_onscreen_y (   sti)    (sti->glob_cfg->onscreen_y)

Definition at line 53 of file sticore.h.

#define STI_PTR (   p)    ( virt_to_phys(p) )

Definition at line 41 of file sticore.h.

#define STI_REGION_MAX   8 /* hardcoded STI constants */

Definition at line 14 of file sticore.h.

#define STI_WAIT   1

Definition at line 39 of file sticore.h.

Typedef Documentation

typedef union region region_t

Function Documentation

void sti_bmove ( struct sti_struct sti,
int  src_y,
int  src_x,
int  dst_y,
int  dst_x,
int  height,
int  width 
)

Definition at line 212 of file sticore.c.

void sti_clear ( struct sti_struct sti,
int  src_y,
int  src_x,
int  height,
int  width,
int  c 
)

Definition at line 182 of file sticore.c.

struct sti_struct* sti_get_rom ( unsigned int  index)
read

Definition at line 1070 of file sticore.c.

void sti_putc ( struct sti_struct sti,
int  c,
int  y,
int  x 
)

Definition at line 127 of file sticore.c.

void sti_set ( struct sti_struct sti,
int  src_y,
int  src_x,
int  height,
int  width,
u8  color 
)

Definition at line 156 of file sticore.c.