⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 drmp.h

📁 linux和2410结合开发 用他可以生成2410所需的zImage文件
💻 H
📖 第 1 页 / 共 3 页
字号:
	drm_device_dma_t  *dma;		/* Optional pointer for DMA support */				/* Context support */	int		  irq;		/* Interrupt used by board	   */	__volatile__ long context_flag;	/* Context swapping flag	   */	__volatile__ long interrupt_flag; /* Interruption handler flag	   */	__volatile__ long dma_flag;	/* DMA dispatch flag		   */	struct timer_list timer;	/* Timer for delaying ctx switch   */	wait_queue_head_t context_wait; /* Processes waiting on ctx switch */	int		  last_checked;	/* Last context checked for DMA	   */	int		  last_context;	/* Last current context		   */	unsigned long	  last_switch;	/* jiffies at last context switch  */	struct tq_struct  tq;	cycles_t	  ctx_start;	cycles_t	  lck_start;#if __HAVE_DMA_HISTOGRAM	drm_histogram_t	  histo;#endif				/* Callback to X server for context switch				   and for heavy-handed reset. */	char		  buf[DRM_BSZ]; /* Output buffer		   */	char		  *buf_rp;	/* Read pointer			   */	char		  *buf_wp;	/* Write pointer		   */	char		  *buf_end;	/* End pointer			   */	struct fasync_struct *buf_async;/* Processes waiting for SIGIO	   */	wait_queue_head_t buf_readers;	/* Processes waiting to read	   */	wait_queue_head_t buf_writers;	/* Processes waiting to ctx switch */#if __REALLY_HAVE_AGP	drm_agp_head_t    *agp;#endif	struct pci_dev *pdev;#ifdef __alpha__#if LINUX_VERSION_CODE < 0x020403	struct pci_controler *hose;#else	struct pci_controller *hose;#endif#endif	drm_sg_mem_t      *sg;  /* Scatter gather memory */	unsigned long     *ctx_bitmap;	void		  *dev_private;	drm_sigdata_t     sigdata; /* For block_all_signals */	sigset_t          sigmask;} drm_device_t;/* ================================================================ * Internal function definitions */				/* Misc. support (drm_init.h) */extern int	     DRM(flags);extern void	     DRM(parse_options)( char *s );extern int           DRM(cpu_valid)( void );				/* Driver support (drm_drv.h) */extern int           DRM(version)(struct inode *inode, struct file *filp,				  unsigned int cmd, unsigned long arg);extern int           DRM(open)(struct inode *inode, struct file *filp);extern int           DRM(release)(struct inode *inode, struct file *filp);extern int           DRM(ioctl)(struct inode *inode, struct file *filp,				unsigned int cmd, unsigned long arg);extern int           DRM(lock)(struct inode *inode, struct file *filp,			       unsigned int cmd, unsigned long arg);extern int           DRM(unlock)(struct inode *inode, struct file *filp,				 unsigned int cmd, unsigned long arg);				/* Device support (drm_fops.h) */extern int	     DRM(open_helper)(struct inode *inode, struct file *filp,				      drm_device_t *dev);extern int	     DRM(flush)(struct file *filp);extern int	     DRM(release_fuck)(struct inode *inode, struct file *filp);extern int	     DRM(fasync)(int fd, struct file *filp, int on);extern ssize_t	     DRM(read)(struct file *filp, char *buf, size_t count,			       loff_t *off);extern int	     DRM(write_string)(drm_device_t *dev, const char *s);extern unsigned int  DRM(poll)(struct file *filp,			       struct poll_table_struct *wait);				/* Mapping support (drm_vm.h) */#if LINUX_VERSION_CODE < 0x020317extern unsigned long DRM(vm_nopage)(struct vm_area_struct *vma,				    unsigned long address,				    int unused);extern unsigned long DRM(vm_shm_nopage)(struct vm_area_struct *vma,					unsigned long address,					int unused);extern unsigned long DRM(vm_dma_nopage)(struct vm_area_struct *vma,					unsigned long address,					int unused);extern unsigned long DRM(vm_sg_nopage)(struct vm_area_struct *vma,				       unsigned long address,				       int unused);#else				/* Return type changed in 2.3.23 */extern struct page *DRM(vm_nopage)(struct vm_area_struct *vma,				   unsigned long address,				   int unused);extern struct page *DRM(vm_shm_nopage)(struct vm_area_struct *vma,				       unsigned long address,				       int unused);extern struct page *DRM(vm_dma_nopage)(struct vm_area_struct *vma,				       unsigned long address,				       int unused);extern struct page *DRM(vm_sg_nopage)(struct vm_area_struct *vma,				      unsigned long address,				      int unused);#endifextern void	     DRM(vm_open)(struct vm_area_struct *vma);extern void	     DRM(vm_close)(struct vm_area_struct *vma);extern void	     DRM(vm_shm_close)(struct vm_area_struct *vma);extern int	     DRM(mmap_dma)(struct file *filp,				   struct vm_area_struct *vma);extern int	     DRM(mmap)(struct file *filp, struct vm_area_struct *vma);				/* Memory management support (drm_memory.h) */extern void	     DRM(mem_init)(void);extern int	     DRM(mem_info)(char *buf, char **start, off_t offset,				   int request, int *eof, void *data);extern void	     *DRM(alloc)(size_t size, int area);extern void	     *DRM(realloc)(void *oldpt, size_t oldsize, size_t size,				   int area);extern char	     *DRM(strdup)(const char *s, int area);extern void	     DRM(strfree)(const char *s, int area);extern void	     DRM(free)(void *pt, size_t size, int area);extern unsigned long DRM(alloc_pages)(int order, int area);extern void	     DRM(free_pages)(unsigned long address, int order,				     int area);extern void	     *DRM(ioremap)(unsigned long offset, unsigned long size);extern void	     DRM(ioremapfree)(void *pt, unsigned long size);#if __REALLY_HAVE_AGPextern agp_memory    *DRM(alloc_agp)(int pages, u32 type);extern int           DRM(free_agp)(agp_memory *handle, int pages);extern int           DRM(bind_agp)(agp_memory *handle, unsigned int start);extern int           DRM(unbind_agp)(agp_memory *handle);#endif				/* Misc. IOCTL support (drm_ioctl.h) */extern int	     DRM(irq_busid)(struct inode *inode, struct file *filp,				    unsigned int cmd, unsigned long arg);extern int	     DRM(getunique)(struct inode *inode, struct file *filp,				    unsigned int cmd, unsigned long arg);extern int	     DRM(setunique)(struct inode *inode, struct file *filp,				    unsigned int cmd, unsigned long arg);extern int	     DRM(getmap)(struct inode *inode, struct file *filp,				 unsigned int cmd, unsigned long arg);extern int	     DRM(getclient)(struct inode *inode, struct file *filp,				    unsigned int cmd, unsigned long arg);extern int	     DRM(getstats)(struct inode *inode, struct file *filp,				   unsigned int cmd, unsigned long arg);				/* Context IOCTL support (drm_context.h) */extern int	     DRM(resctx)( struct inode *inode, struct file *filp,				  unsigned int cmd, unsigned long arg );extern int	     DRM(addctx)( struct inode *inode, struct file *filp,				  unsigned int cmd, unsigned long arg );extern int	     DRM(modctx)( struct inode *inode, struct file *filp,				  unsigned int cmd, unsigned long arg );extern int	     DRM(getctx)( struct inode *inode, struct file *filp,				  unsigned int cmd, unsigned long arg );extern int	     DRM(switchctx)( struct inode *inode, struct file *filp,				     unsigned int cmd, unsigned long arg );extern int	     DRM(newctx)( struct inode *inode, struct file *filp,				  unsigned int cmd, unsigned long arg );extern int	     DRM(rmctx)( struct inode *inode, struct file *filp,				 unsigned int cmd, unsigned long arg );extern int	     DRM(context_switch)(drm_device_t *dev, int old, int new);extern int	     DRM(context_switch_complete)(drm_device_t *dev, int new);#if __HAVE_CTX_BITMAPextern int	     DRM(ctxbitmap_init)( drm_device_t *dev );extern void	     DRM(ctxbitmap_cleanup)( drm_device_t *dev );#endifextern int	     DRM(setsareactx)( struct inode *inode, struct file *filp,				       unsigned int cmd, unsigned long arg );extern int	     DRM(getsareactx)( struct inode *inode, struct file *filp,				       unsigned int cmd, unsigned long arg );				/* Drawable IOCTL support (drm_drawable.h) */extern int	     DRM(adddraw)(struct inode *inode, struct file *filp,				  unsigned int cmd, unsigned long arg);extern int	     DRM(rmdraw)(struct inode *inode, struct file *filp,				 unsigned int cmd, unsigned long arg);				/* Authentication IOCTL support (drm_auth.h) */extern int	     DRM(add_magic)(drm_device_t *dev, drm_file_t *priv,				    drm_magic_t magic);extern int	     DRM(remove_magic)(drm_device_t *dev, drm_magic_t magic);extern int	     DRM(getmagic)(struct inode *inode, struct file *filp,				   unsigned int cmd, unsigned long arg);extern int	     DRM(authmagic)(struct inode *inode, struct file *filp,				    unsigned int cmd, unsigned long arg);				/* Locking IOCTL support (drm_lock.h) */extern int	     DRM(block)(struct inode *inode, struct file *filp,				unsigned int cmd, unsigned long arg);extern int	     DRM(unblock)(struct inode *inode, struct file *filp,				  unsigned int cmd, unsigned long arg);extern int	     DRM(lock_take)(__volatile__ unsigned int *lock,				    unsigned int context);extern int	     DRM(lock_transfer)(drm_device_t *dev,					__volatile__ unsigned int *lock,					unsigned int context);extern int	     DRM(lock_free)(drm_device_t *dev,				    __volatile__ unsigned int *lock,				    unsigned int context);extern int	     DRM(finish)(struct inode *inode, struct file *filp,				 unsigned int cmd, unsigned long arg);extern int	     DRM(flush_unblock)(drm_device_t *dev, int context,					drm_lock_flags_t flags);extern int	     DRM(flush_block_and_flush)(drm_device_t *dev, int context,						drm_lock_flags_t flags);extern int           DRM(notifier)(void *priv);				/* Buffer management support (drm_bufs.h) */extern int	     DRM(order)( unsigned long size );extern int	     DRM(addmap)( struct inode *inode, struct file *filp,				  unsigned int cmd, unsigned long arg );extern int	     DRM(rmmap)( struct inode *inode, struct file *filp,				 unsigned int cmd, unsigned long arg );#if __HAVE_DMAextern int	     DRM(addbufs)( struct inode *inode, struct file *filp,				   unsigned int cmd, unsigned long arg );extern int	     DRM(infobufs)( struct inode *inode, struct file *filp,				    unsigned int cmd, unsigned long arg );extern int	     DRM(markbufs)( struct inode *inode, struct file *filp,				    unsigned int cmd, unsigned long arg );extern int	     DRM(freebufs)( struct inode *inode, struct file *filp,				    unsigned int cmd, unsigned long arg );extern int	     DRM(mapbufs)( struct inode *inode, struct file *filp,				   unsigned int cmd, unsigned long arg );				/* DMA support (drm_dma.h) */extern int	     DRM(dma_setup)(drm_device_t *dev);extern void	     DRM(dma_takedown)(drm_device_t *dev);extern void	     DRM(free_buffer)(drm_device_t *dev, drm_buf_t *buf);extern void	     DRM(reclaim_buffers)(drm_device_t *dev, pid_t pid);#if __HAVE_OLD_DMA/* GH: This is a dirty hack for now... */extern void	     DRM(clear_next_buffer)(drm_device_t *dev);extern int	     DRM(select_queue)(drm_device_t *dev,				       void (*wrapper)(unsigned long));extern int	     DRM(dma_enqueue)(drm_device_t *dev, drm_dma_t *dma);extern int	     DRM(dma_get_buffers)(drm_device_t *dev, drm_dma_t *dma);#endif#if __HAVE_DMA_IRQextern int           DRM(control)( struct inode *inode, struct file *filp,				   unsigned int cmd, unsigned long arg );extern int           DRM(irq_install)( drm_device_t *dev, int irq );extern int           DRM(irq_uninstall)( drm_device_t *dev );extern void          DRM(dma_service)( int irq, void *device,				       struct pt_regs *regs );#if __HAVE_DMA_IRQ_BHextern void          DRM(dma_immediate_bh)( void *dev );#endif#endif#if DRM_DMA_HISTOGRAMextern int	     DRM(histogram_slot)(unsigned long count);extern void	     DRM(histogram_compute)(drm_device_t *dev, drm_buf_t *buf);#endif				/* Buffer list support (drm_lists.h) */#if __HAVE_DMA_WAITLISTextern int	     DRM(waitlist_create)(drm_waitlist_t *bl, int count);extern int	     DRM(waitlist_destroy)(drm_waitlist_t *bl);extern int	     DRM(waitlist_put)(drm_waitlist_t *bl, drm_buf_t *buf);extern drm_buf_t     *DRM(waitlist_get)(drm_waitlist_t *bl);#endif#if __HAVE_DMA_FREELISTextern int	     DRM(freelist_create)(drm_freelist_t *bl, int count);extern int	     DRM(freelist_destroy)(drm_freelist_t *bl);extern int	     DRM(freelist_put)(drm_device_t *dev, drm_freelist_t *bl,				       drm_buf_t *buf);extern drm_buf_t     *DRM(freelist_get)(drm_freelist_t *bl, int block);#endif#endif /* __HAVE_DMA */#if __REALLY_HAVE_AGP				/* AGP/GART support (drm_agpsupport.h) */extern drm_agp_head_t *DRM(agp_init)(void);extern void           DRM(agp_uninit)(void);extern int            DRM(agp_acquire)(struct inode *inode, struct file *filp,				       unsigned int cmd, unsigned long arg);extern void           DRM(agp_do_release)(void);extern int            DRM(agp_release)(struct inode *inode, struct file *filp,				       unsigned int cmd, unsigned long arg);extern int            DRM(agp_enable)(struct inode *inode, struct file *filp,				      unsigned int cmd, unsigned long arg);extern int            DRM(agp_info)(struct inode *inode, struct file *filp,				    unsigned int cmd, unsigned long arg);extern int            DRM(agp_alloc)(struct inode *inode, struct file *filp,				     unsigned int cmd, unsigned long arg);extern int            DRM(agp_free)(struct inode *inode, struct file *filp,				    unsigned int cmd, unsigned long arg);extern int            DRM(agp_unbind)(struct inode *inode, struct file *filp,				      unsigned int cmd, unsigned long arg);extern int            DRM(agp_bind)(struct inode *inode, struct file *filp,				    unsigned int cmd, unsigned long arg);extern agp_memory     *DRM(agp_allocate_memory)(size_t pages, u32 type);extern int            DRM(agp_free_memory)(agp_memory *handle);extern int            DRM(agp_bind_memory)(agp_memory *handle, off_t start);extern int            DRM(agp_unbind_memory)(agp_memory *handle);#endif				/* Stub support (drm_stub.h) */int                   DRM(stub_register)(const char *name,					 struct file_operations *fops,					 drm_device_t *dev);int                   DRM(stub_unregister)(int minor);				/* Proc support (drm_proc.h) */extern struct proc_dir_entry *DRM(proc_init)(drm_device_t *dev,					     int minor,					     struct proc_dir_entry *root,					     struct proc_dir_entry **dev_root);extern int            DRM(proc_cleanup)(int minor,					struct proc_dir_entry *root,					struct proc_dir_entry *dev_root);#if __HAVE_SG				/* Scatter Gather Support (drm_scatter.h) */extern void           DRM(sg_cleanup)(drm_sg_mem_t *entry);extern int            DRM(sg_alloc)(struct inode *inode, struct file *filp,				    unsigned int cmd, unsigned long arg);extern int            DRM(sg_free)(struct inode *inode, struct file *filp,				   unsigned int cmd, unsigned long arg);#endif                               /* ATI PCIGART support (ati_pcigart.h) */extern int            DRM(ati_pcigart_init)(drm_device_t *dev,					    unsigned long *addr,					    dma_addr_t *bus_addr);extern int            DRM(ati_pcigart_cleanup)(drm_device_t *dev,					       unsigned long addr,					       dma_addr_t bus_addr);#endif /* __KERNEL__ */#endif

⌨️ 快捷键说明

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