Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/fbio.h
Show First 20 Lines • Show All 149 Lines • ▼ Show 20 Lines | struct fb_info { | ||||
vm_paddr_t fb_pbase; /* For FB mmap. */ | vm_paddr_t fb_pbase; /* For FB mmap. */ | ||||
vm_offset_t fb_vbase; /* if NULL, use fb_write/fb_read. */ | vm_offset_t fb_vbase; /* if NULL, use fb_write/fb_read. */ | ||||
void *fb_priv; /* First argument for read/write. */ | void *fb_priv; /* First argument for read/write. */ | ||||
const char *fb_name; | const char *fb_name; | ||||
uint32_t fb_flags; | uint32_t fb_flags; | ||||
#define FB_FLAG_NOMMAP 1 /* mmap unsupported. */ | #define FB_FLAG_NOMMAP 1 /* mmap unsupported. */ | ||||
#define FB_FLAG_NOWRITE 2 /* disable writes for the time being */ | #define FB_FLAG_NOWRITE 2 /* disable writes for the time being */ | ||||
#define FB_FLAG_MEMATTR 4 /* override memattr for mmap */ | #define FB_FLAG_MEMATTR 4 /* override memattr for mmap */ | ||||
#define FB_FLAG_ROTATE_90 0x10 /* rotate vt */ | |||||
#define FB_FLAG_ROTATE_180 0x20 | |||||
vm_memattr_t fb_memattr; | vm_memattr_t fb_memattr; | ||||
cem: Maybe 0x10, 0x20? | |||||
Not Done Inline ActionsI am not even sure these belong in fbio.h at all; i'm also unsure about the naming. before this change elements of fb_info where relevant for all fb users, the _ROTATE_ flags are only relevant for vt. but i needed a place to stash 2 bits. sg2342_googlemail.com: I am not even sure these belong in fbio.h at all; i'm also unsure about the naming. before this… | |||||
int fb_stride; | int fb_stride; | ||||
int fb_bpp; /* bits per pixel */ | int fb_bpp; /* bits per pixel */ | ||||
uint32_t fb_cmap[16]; | uint32_t fb_cmap[16]; | ||||
struct fb_rgboffs fb_rgboffs; /* RGB offsets */ | struct fb_rgboffs fb_rgboffs; /* RGB offsets */ | ||||
}; | }; | ||||
int fbd_list(void); | int fbd_list(void); | ||||
▲ Show 20 Lines • Show All 327 Lines • Show Last 20 Lines |
Maybe 0x10, 0x20?