blob: 63c85ef9d5a6d3897ac9559415c30613482b4e9f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
/* $NetBSD: so.h,v 1.2 1994/10/26 08:25:57 cgd Exp $ */
#ifndef _SO_H_INCLUDE
#define _SO_H_INCLUDE
/* Definitions for standalone I/O lib */
#define DUART0 0x28000000
#define DUART1 0x28000020
#define DUART2 0x28000040
#define DUART3 0x28000060
#define PARRDU 0x28000080
#define PARCLU 0x280000A0
#define SCSI_POLLED 0x30000000
#define SCSI_DMA 0x38000000
#define ICU_ADDR 0xFFFFFE00
/* Which UART to use by default */
#define DEFAULT_UART 0
/* Which SCSI device to use by default */
#define DEFAULT_SCSI_ADR 1
#define DEFAULT_SCSI_LUN 0
/* Low level scsi operation codes */
#define DISK_READ 3
#define DISK_WRITE 4
/* The size of a disk block */
#define DBLKSIZE 512
/* Some disk address that will never be used */
#define INSANE_BADDR 0x800000
struct scsi_args {
long ptr [8];
};
#ifndef NULL
#define NULL 0L
#endif
/*
* The next macro defines where the "break" area in memory ends for
* malloc() and friends. The area between edata and this address will
* then be reserved and should not be used for anything else (or you will
* no doubt have big problems). Depending on where your program's end-of-data
* is, you may wish to locate this in such a way as to usurp a minimum
* amount of memory.
*/
#define BREAK_END_ADDR ((char *)0x400000) /* to 4MB */
/* Selectivly enable inline functions */
#ifndef NO_INLINE
#define Inline inline
#else
#define Inline
#endif
extern void fatal(), warn();
extern long ulimit(int, long);
extern int brk(char *);
extern char *sbrk(int);
extern int sc_rdwt();
#endif /* _SO_H_INCLUDE */
|