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

📄 fipuser_linux.c

📁 这是一个SIGMA方案的PMP播放器的UCLINUX程序,可播放DVD,VCD,CD MP3...有很好的参考价值.
💻 C
字号:
/* * Here are all PRIVATE definitios and functions definied, which are the same for all players. * To simplify it, we also declare common functions here!!! * * Copyright(c) 2002 Sigma Designs, Inc. * Author: Markus Brenner * September 2002 */#include <asm/hardware.h>//common functions (we do it here, so that we get only one object file resp. don't have to change makefiles)#include <stdio.h>#include <fcntl.h>#include <unistd.h>#include <sys/ioctl.h>#include "fipioctl.h"#include "fipuser_private.h"int fip_fd;#ifndef FIP_NO_LOAD#warning fip_loadmodule#include "loadmodule.h"int fip_loadmodule(){		return loadmodule("fipmodule.o");}#endif /* !FIP_NO_LOAD */int fip_open(){	fip_fd = open("/dev/fip", O_RDONLY | O_NONBLOCK);//turn on all leds//		*(FIP_LED_DATA_REG) = 0x00;//		*(FIP_COMMAND_REG) = FIP_CMD_DATA_SET_RW_MODE_WRITE_LED_PORT;//		fip_wait_ready();	return fip_fd;}int fip_gethandle() {	return fip_fd;}void fip_flushfifo(void) { //flush all scancode in the fifos	ioctl(fip_fd, FIP_IOCTL_FLUSH_FIFO);	}void fip_close(void) {	close(fip_fd);	fip_fd = -1;}

⌨️ 快捷键说明

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