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

📄 baget.h

📁 linux-2.4.29操作系统的源码
💻 H
字号:
/* * baget.h: Definitions specific to Baget/MIPS machines. * * Copyright (C) 1998 Gleb Raiko & Vladimir Roganov */#ifndef _MIPS_BAGET_H#define _MIPS_BAGET_H#include "vic.h"#include "vac.h"#define VIC_BASE         0xBFFC0000#define VAC_BASE         0xBFFD0000/* Baget interrupt registers and their sizes */struct  baget_int_reg {	unsigned long address;	int size;  /* in bytes */};#define BAGET_INT_NONE   {0,0}#define BAGET_INT0_ACK   {0xbffa0003,1}#define BAGET_INT1_ACK   {0xbffa0008,4}#define BAGET_INT5_ACK   {0xbff00000,1}#define BAGET_WRERR_ACK  ((volatile char*)0xbff00000)/* Baget address spaces */#define BAGET_A24M_BASE       0xFC000000      /* VME-master A24 base address  */#define BAGET_A24S_BASE       0x00000000      /* VME-slave A24 base address   */#define BAGET_A24S_MASK       0x00c00000      /* VME-slave A24 address mask   */#define BAGET_GSW_BASE        0xf000          /* global switches address base */#define BAGET_MSW_BASE(P) (0xe000+(P)*0x100)  /* module switches address base */#define BAGET_LED_BASE  ((volatile short *)(0xbffd0000 + 0x00001800))#define BAGET_PIL_NR            8#define BAGET_IRQ_NR            NR_IRQS /* 64 */#define BAGET_IRQ_MASK(x)       ((NR_IRQS-1) & (x))#define BAGET_FPU_IRQ           0x26#define BAGET_VIC_TIMER_IRQ     0x32#define BAGET_VAC_TIMER_IRQ     0x36#define BAGET_BSM_IRQ           0x3C#define BAGET_LANCE_MEM_BASE    0xfcf10000#define BAGET_LANCE_MEM_SIZE    0x10000#define BAGET_LANCE_IO_BASE     0xbffeff00#define BALO_OFFSET     0x400000 /* sync with ld.script.balo  */#define BALO_SIZE       0x200000 /* sync with image segs size *//* move it to the right place, somehere in include/asm */#define CAUSE_DBE       0x1C#define CAUSE_MASK      0x7C/* Simple debug fascilities */extern void outc(char);extern void outs(char *);extern void baget_write(char *s, int l);extern int  baget_printk(const char *, ...);extern void balo_printf( char *f, ... );extern void balo_hungup(void);#endif /* !(_MIPS_BAGET_H) */

⌨️ 快捷键说明

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