sh7722gfx.h

来自「Linux操作系统的著名硬件加速绘图API软件。可以利用网卡提供的硬件加速功能完」· C头文件 代码 · 共 61 行

H
61
字号
#ifndef __SH7722GFX_H__#define __SH7722GFX_H__#include <asm/types.h>#define SH7722GFX_BUFFER_WORDS  0x1f000      /* Number of 32bit words in display list (ring buffer). */#define SH7722GFX_SHARED_MAGIC  0x77220001   /* Increase if binary compatibility is broken. */typedef volatile struct {     __u32          buffer[SH7722GFX_BUFFER_WORDS];     int            hw_start;     int            hw_end;     int            hw_running;     int            next_start;     int            next_end;     int            next_valid;     unsigned long  buffer_phys;     unsigned int   num_words;     unsigned int   num_starts;     unsigned int   num_done;     unsigned int   num_interrupts;     unsigned int   num_wait_idle;     unsigned int   num_wait_next;     unsigned int   num_idle;     __u32          magic;} SH7722GfxSharedArea;typedef struct {     __u32          address;  /* in */     __u32          value;    /* in/out */} SH7722Register;/* Just initialization and synchronization. * Hardware is started from user space via MMIO to DMA registers. */#define SH7722GFX_IOCTL_RESET      _IO ( 'G', 0 )#define SH7722GFX_IOCTL_WAIT_IDLE  _IO ( 'G', 1 )#define SH7722GFX_IOCTL_WAIT_NEXT  _IO ( 'G', 2 )/* Access limited to BEU, LCDC, VOU and JPU. */#define SH7722GFX_IOCTL_SETREG32   _IOW( 'g', 0, SH7722Register )#define SH7722GFX_IOCTL_GETREG32   _IOR( 'g', 1, SH7722Register )#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?