summaryrefslogtreecommitdiff
path: root/sys/arch/mvmeppc/stand/libsa/libsa.h
blob: 153583cb9675c4a7e9cde0c72356246576f81ad9 (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
/*	$OpenBSD: libsa.h,v 1.3 2002/03/14 01:26:41 millert Exp $	*/

/*
 * libsa prototypes 
 */

#include "libbug.h"

/* bugdev.c */
int dsk_open(struct open_file *, ...);
int dsk_close(struct open_file *);
int dsk_ioctl(struct open_file *, u_long, void *);
int dsk_strategy(void *, int, daddr_t, size_t, void *, size_t *);
int net_open(struct open_file *, ...);
int net_close(struct open_file *);
int net_ioctl(struct open_file *, u_long, void *);
int net_strategy(void *, int, daddr_t, size_t, void *, size_t *);
int tape_open(struct open_file *, ...);
int tape_close(struct open_file *);
int tape_ioctl(struct open_file *, u_long, void *);
int tape_strategy(void *, int, daddr_t, size_t, void *, size_t *);

/* exec_mvme.c */
void exec_mvme(char *, int);

/* parse_args.c */
int parse_args(char **, int *);

#define BUGDEV_DISK	0
#define BUGDEV_NET	1
#define BUGDEV_TAPE	2

extern int bootdev_type;