43 unsigned long address,
int count)
63 static inline int read_data(
off_t offset,
struct fdc_context *priv,
void *buf,
size_t size)
94 static inline int write_data(
off_t offset,
struct fdc_context *priv,
void *buf,
size_t size)
157 printf(
"Failed to allocate page frame\n");
163 printf(
"Failed to do onetime mapping\n");
174 ret = read_data(off, priv, pma,
FD_BLKSZ);
176 printf(
"Failed to read data\n");
181 sz = (size > sz) ? sz : size;
182 memcpy(ptr, vma + gap, sz);
198 const void *buf,
size_t size)
228 ret = read_data(off, priv, pma,
FD_BLKSZ);
234 sz = (size > sz) ? sz : size;
235 memcpy(vma + gap, ptr, sz);
237 ret = write_data(off, priv, pma,
FD_BLKSZ);
266 val =
va_arg(va,
unsigned char *);
300 priv =
malloc(
sizeof(*priv));
332 struct ninfo *parent;