libsa.h revision 1.5
1/*	$OpenBSD: libsa.h,v 1.5 2014/07/12 21:54:58 jasper Exp $	*/
2
3/*
4 * Copyright (c) 2006 Michael Shalayeff
5 * All rights reserved.
6 *
7 * Permission to use, copy, modify, and distribute this software for any
8 * purpose with or without fee is hereby granted, provided that the above
9 * copyright notice and this permission notice appear in all copies.
10 *
11 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
12 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
13 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
14 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
15 * WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER IN
16 * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
17 * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18 */
19
20#include <lib/libsa/stand.h>
21
22#define	EXEC_ELF
23
24#define	DEFAULT_KERNEL_ADDRESS	0
25
26#define	PCLOCK	33333333
27
28int readsects(int dev, uint32_t lba, void *buf, size_t size);
29int blkdevopen(struct open_file *, ...);
30int blkdevclose(struct open_file *);
31int blkdevstrategy(void *, int, daddr32_t, size_t, void *, size_t *);
32void scif_init(unsigned int);
33int  getc(void);
34void scif_putc(int);
35void cache_flush(void);
36void cache_disable(void);
37