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

📄 bios32.h

📁 高速同步串口芯片PEB20534的驱动程序
💻 H
字号:
//
//  File Description:
//      This file contains the structures and prototypes
//      for 32bit interrupt routines
//

#ifndef _BIOS32_H_
#define _BIOS32_H_

// Structures and union for accessing 32bit registers with interrupt 0x1a
struct DWordRegs
{
	unsigned long eax;
	unsigned long ebx;
	unsigned long ecx;
	unsigned long edx;
	unsigned int  si;
	unsigned int  di;
	unsigned int  cflag;
};

struct WordRegs
{
	unsigned int ax;
	unsigned int hax;
	unsigned int bx;
	unsigned int hbx;
	unsigned int cx;
	unsigned int hcx;
	unsigned int dx;
	unsigned int hdx;
	unsigned int si;
	unsigned int di;
	unsigned int cflag;
};

struct ByteRegs
{
	unsigned char al, ah;
	unsigned int hax;
	unsigned char bl, bh;
	unsigned int hbx;
	unsigned char cl, ch;
	unsigned int hcx;
	unsigned char dl, dh;
	unsigned int hdx;
};

typedef union TAG_DRegs
{
	struct DWordRegs e;
	struct WordRegs x;
	struct ByteRegs h;
} DRegs;

//
// Performs int 0x1a (PCI Bios stuff)
// Allows use of 32bit registers
//
// Entry:
//      pointer to structure of registers (input and output)
//
// Return:
//      OutRegs structure updated.
//
void Bios32(DRegs *inregs, DRegs *outregs);

#endif
	

⌨️ 快捷键说明

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