代码搜索结果
找到约 10,000 项符合
DMA 的代码
dma.h
#ifndef __DMA_H__
#define __DMA_H__
void Test_Zdma0(void);
void Test_Zdma1(void);
//void Test_Zdma0Xdreq(void);
#endif /*__DMA_H__*/
dma.h
#ifndef __DMA_H__
#define __DMA_H__
void Test_Zdma0(void);
void Test_Zdma1(void);
//void Test_Zdma0Xdreq(void);
#endif /*__DMA_H__*/
dma.h
#ifndef _DMA_H
#define _DMA_H
#define CIF_mod_lum 473
#define CIF_mod_chro 233
#define D1_mod_lum 841
#define D1_mod_chro 417
#define config_s1 0x4501
#define config_d1_2d 0x4713
#defin
dma.h
/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT
dma.h
int setup_dma(int chan, int32 physaddr, uint16 length,int mode);
uint16 dma_cnt(int chan);
int dma_disable(int chan);
int dma_enable(int chan);
void *dma_malloc(int32 *,unsigned short);
int dis_d
dma.c
/* PC DMA support functions
*/
#include
#include
#include "global.h"
#include "dma.h"
#include "nospc.h"
/* I/O port addresses for DMA page registers on the PC/AT */
static
dma.h
#ifndef _DMA_H
#define _DMA_H
#include "virt_mem.h"
#include "xms.h"
class DMA_BUFFER : public VIRTUAL_MEM
{
private:
XMS xms;
public:
DMA_BUFFER(int size);
//~DMA_BUFFER(v
dma.cpp
#include "dma.h"
#include
DMA_BUFFER::DMA_BUFFER(int size)
{
xms.Allocate(size);
if(xms.status != 0) {
printf("%s\n", xms.ErrString());
exit(10);
}
dma.h
// dma.h -- inheritance and dynamic memory allocation
#ifndef DMA_H_
#define DMA_H_
#include
// Base Class Using DMA
class baseDMA
{
private:
char * label;
int rating;
dma.cpp
// dma.cpp --dma class methods
#include "dma.h"
#include
// baseDMA methods
baseDMA::baseDMA(const char * l, int r)
{
label = new char[std::strlen(l) + 1];
std::strcpy(lab