|
|
1.1 root 1: #pragma once
2:
3: #ifndef __ND_NBIC_H__
4: #define __ND_NBIC_H__
5:
6: #define ND_NBIC_ID 0xC0000001
7:
8: #ifdef __cplusplus
9:
10: class NBIC {
11: int slot;
12: // Uint32 control; // unused
13: Uint32 id;
14: Uint8 intstatus;
15: Uint8 intmask;
16: public:
17: static volatile Uint32 remInter;
18: static volatile Uint32 remInterMask;
19:
20: NBIC(int slot, int id);
21:
22: Uint8 read(int addr);
23: void write(int addr, Uint8 val);
24:
25: Uint32 lget(Uint32 addr);
26: Uint16 wget(Uint32 addr);
27: Uint8 bget(Uint32 addr);
28: void lput(Uint32 addr, Uint32 l);
29: void wput(Uint32 addr, Uint16 w);
30: void bput(Uint32 addr, Uint8 b);
31:
32: void init(void);
33: void set_intstatus(bool set);
34: };
35:
36: extern "C" {
37: #endif /* __cplusplus */
38: void nd_nbic_interrupt(void);
39: #ifdef __cplusplus
40: }
41: #endif /* __cplusplus */
42:
43: #endif /* __ND_NBIC_H__ */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.