diff options
author | jkim <jkim@FreeBSD.org> | 2009-09-24 19:24:42 +0000 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2009-09-24 19:24:42 +0000 |
commit | 54c804074ecdf9d3a36bef43e6fbb8e2a8c52819 (patch) | |
tree | 46b08901708e419c992950ad16056ee89d89b73b /sys/compat | |
parent | 15d9d0a9d238acd3c3b36ca55fe5b17ad061b477 (diff) | |
download | FreeBSD-src-54c804074ecdf9d3a36bef43e6fbb8e2a8c52819.zip FreeBSD-src-54c804074ecdf9d3a36bef43e6fbb8e2a8c52819.tar.gz |
- Use FreeBSD function naming convention.
- Change x86biosCall() to more appropriate x86bios_intr().[1]
Discussed with: delphij, paradox (ddkprog yahoo com)
Submitted by: paradox (ddkprog yahoo com)[1]
Diffstat (limited to 'sys/compat')
-rw-r--r-- | sys/compat/x86bios/x86bios.c | 8 | ||||
-rw-r--r-- | sys/compat/x86bios/x86bios.h | 8 | ||||
-rw-r--r-- | sys/compat/x86bios/x86bios_alloc.c | 4 |
3 files changed, 10 insertions, 10 deletions
diff --git a/sys/compat/x86bios/x86bios.c b/sys/compat/x86bios/x86bios.c index 5cb6bdf..e922ef4 100644 --- a/sys/compat/x86bios/x86bios.c +++ b/sys/compat/x86bios/x86bios.c @@ -91,7 +91,7 @@ x86bios_emu_outl(struct x86emu *emu, uint16_t port, uint32_t val) } void -x86biosCall(struct x86regs *regs, int intno) +x86bios_intr(struct x86regs *regs, int intno) { if (intno < 0 || intno > 255) @@ -107,7 +107,7 @@ x86biosCall(struct x86regs *regs, int intno) } void * -x86biosOffs(uint32_t offs) +x86bios_offset(uint32_t offs) { return (pbiosMem + offs); @@ -138,14 +138,14 @@ x86bios_init(void *arg __unused) memset(busySegMap, 0, sizeof(busySegMap)); - pbiosStack = x86biosAlloc(1, &offs); + pbiosStack = x86bios_alloc(1, &offs); } static void x86bios_uninit(void *arg __unused) { - x86biosFree(pbiosStack, 1); + x86bios_free(pbiosStack, 1); if (pbiosMem) pmap_unmapdev((vm_offset_t)pbiosMem, diff --git a/sys/compat/x86bios/x86bios.h b/sys/compat/x86bios/x86bios.h index 3785f3c..adf8b7c 100644 --- a/sys/compat/x86bios/x86bios.h +++ b/sys/compat/x86bios/x86bios.h @@ -129,10 +129,10 @@ typedef struct x86regs x86regs_t; #define PAGE_RESERV (4096*5) __BEGIN_DECLS -void x86biosCall(struct x86regs *regs, int intno); -void *x86biosAlloc(int count, int *segs); -void x86biosFree(void *pbuf, int count); -void *x86biosOffs(uint32_t offs); +void *x86bios_alloc(int count, int *segs); +void x86bios_free(void *pbuf, int count); +void x86bios_intr(struct x86regs *regs, int intno); +void *x86bios_offset(uint32_t offs); __END_DECLS #endif /* !_X86BIOS_H_ */ diff --git a/sys/compat/x86bios/x86bios_alloc.c b/sys/compat/x86bios/x86bios_alloc.c index 624a75c..0a364e7 100644 --- a/sys/compat/x86bios/x86bios_alloc.c +++ b/sys/compat/x86bios/x86bios_alloc.c @@ -33,7 +33,7 @@ extern u_char *pbiosMem; extern int busySegMap[5]; void * -x86biosAlloc(int count, int *segs) +x86bios_alloc(int count, int *segs) { int i; int j; @@ -69,7 +69,7 @@ x86biosAlloc(int count, int *segs) } void -x86biosFree(void *pbuf, int count) +x86bios_free(void *pbuf, int count) { int i; int busySeg; |