blob: d7dd2ec23dd2c923421f8d7b70c63315794e6b32 (
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
|
/* $OpenBSD: dev_hppa.h,v 1.1 1998/06/23 18:46:42 mickey Exp $ */
struct hppa_dev {
dev_t bootdev;
struct disklabel label;
};
#define CN_HPA PAGE0->mem_cons.pz_hpa
#define CN_SPA PAGE0->mem_cons.pz_spa
#define CN_LAYER PAGE0->mem_cons.pz_layers
#define CN_IODC PAGE0->mem_cons.pz_iodc_io
#define CN_CLASS PAGE0->mem_cons.pz_class
#define KY_HPA PAGE0->mem_kbd.pz_hpa
#define KY_SPA PAGE0->mem_kbd.pz_spa
#define KY_LAYER PAGE0->mem_kbd.pz_layers
#define KY_IODC PAGE0->mem_kbd.pz_iodc_io
#define KY_CLASS PAGE0->mem_kbd.pz_class
#define BT_HPA PAGE0->mem_boot.pz_hpa
#define BT_SPA PAGE0->mem_boot.pz_spa
#define BT_LAYER PAGE0->mem_boot.pz_layers
#define BT_IODC PAGE0->mem_boot.pz_iodc_io
#define BT_CLASS PAGE0->mem_boot.pz_class
#define MINIOSIZ 64 /* minimum buffer size for IODC call */
#define MAXIOSIZ (64 * 1024) /* maximum buffer size for IODC call */
#define BTIOSIZ (8 * 1024) /* size of boot device I/O buffer */
#define IONBPG (2 * 1024) /* page alignment for I/O buffers */
#define IOPGSHIFT 11 /* LOG2(IONBPG) */
#define IOPGOFSET (IONBPG-1) /* byte offset into I/O buffer */
#define ANYSLOT (-1)
#define NOSLOT (-2)
extern char btbuf[];
extern int pdcbuf[]; /* PDC returns, pdc.c */
extern struct pz_device ctdev; /* cartridge tape (boot) device path */
int iodc_rw __P((char *, u_int, u_int, int func, struct pz_device *));
|