summaryrefslogtreecommitdiff
path: root/sys/arch/mvme88k/stand/libbug/libbug.h
blob: 005ae94b617937a4813a11129af721ad7ff61020 (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
/*	$OpenBSD: libbug.h,v 1.4 2006/05/16 22:51:30 miod Exp $ */

/*
 * prototypes and such.   note that get/put char are in stand.h
 */

void	mvmeprom_delay(int);
int	mvmeprom_diskrd(struct mvmeprom_dskio *);
int	mvmeprom_diskwr(struct mvmeprom_dskio *);
struct mvmeprom_brdid *mvmeprom_getbrdid(void);
int	mvmeprom_netfopen(struct mvmeprom_netfopen *);
int	mvmeprom_netfread(struct mvmeprom_netfread *);
void	mvmeprom_outln(char *, char *);
void	mvmeprom_outstr(char *, char *);
void	mvmeprom_rtc_rd(struct mvmeprom_time *);

/*
 * bugcrt stuff
 */

struct mvmeprom_args {
	u_int	dev_lun;
	u_int	ctrl_lun;
	u_int	flags;
	u_int	ctrl_addr;
	u_int	entry;
	u_int	conf_blk;
	char	*arg_start;
	char	*arg_end;
	char	*nbarg_start;
	char	*nbarg_end;
};

extern struct mvmeprom_args bugargs;

void	bugexec(void (*)());