blob: 4f3c3620a6836038333e56b296403f022fc97dcb (
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
|
#include <sys/param.h>
#include "stand.h"
#include "samachdep.h"
#ifndef RD_START
#define RD_START 0x288000
#endif
rdopen(f, ctlr, unit, part)
struct open_file *f;
int ctlr, unit, part;
{
f->f_devdata = (void *) RD_START;
return(0);
}
int
rdstrategy(ss, func, dblk, size, buf, rsize)
void *ss;
int func;
daddr_t dblk; /* block number */
u_int size; /* request size in bytes */
void *buf;
u_int *rsize; /* out: bytes transferred */
{
memcpy(buf, ss + (dblk << DEV_BSHIFT), size);
*rsize = size;
return(0);
}
|