bios_wini driver

This commit is contained in:
Philip Homburg
2005-07-29 10:21:04 +00:00
parent f6b0544de9
commit 49c25df569
18 changed files with 640 additions and 11 deletions
+1 -3
View File
@@ -44,9 +44,7 @@ union reg86 {
} b;
};
#ifdef _SYSTEM /* Kernel: Registers used in an 8086 interrupt */
EXTERN union reg86 reg86;
#endif
struct reg86u { union reg86 u; }; /* Better for forward declarations */
/* Parameters passed on ioctls to the memory task. */
+9 -3
View File
@@ -49,13 +49,14 @@
#define FXP (RTL8139 + ENABLE_FXP) /* Intel Pro/100 */
#define DPETH (FXP + ENABLE_DPETH) /* ISA Network task */
#define LOG_PROC_NR (DPETH + ENABLE_LOG) /* log device */
#define INIT_PROC_NR (LOG_PROC_NR + 1) /* init -- goes multiuser */
#define BIOS_WINI (LOG_PROC_NR + ENABLE_BIOS_WINI) /* BIOS disk device */
#define INIT_PROC_NR (BIOS_WINI + 1) /* init -- goes multiuser */
/* Number of processes contained in the system image. */
#define NR_BOOT_PROCS (NR_TASKS + \
6 + ENABLE_AT_WINI + ENABLE_FLOPPY + \
ENABLE_PRINTER + ENABLE_RTL8139 + ENABLE_FXP + \
ENABLE_DPETH + ENABLE_LOG + 1 )
ENABLE_DPETH + ENABLE_LOG + ENABLE_BIOS_WINI + 1 )
/*===========================================================================*
@@ -265,7 +266,8 @@
# define SYS_VIRVCOPY (KERNEL_CALL + 32) /* sys_virvcopy() */
# define SYS_MEMSET (KERNEL_CALL + 33) /* sys_memset() */
# define SYS_NICE (KERNEL_CALL + 34) /* sys_nice() */
#define NR_SYS_CALLS 35 /* number of system calls */
# define SYS_INT86 (KERNEL_CALL + 35) /* sys_int86() */
#define NR_SYS_CALLS 36 /* number of system calls */
/* Field names for SYS_MEMSET, SYS_SEGCTL. */
#define MEM_PTR m1_p1 /* base */
@@ -366,6 +368,7 @@
# define GET_PROC 11 /* get process slot if given process */
# define GET_MACHINE 12 /* get machine information */
# define GET_LOCKTIMING 13 /* get lock()/unlock() latency timing */
# define GET_BIOSBUFFER 14 /* get a buffer for BIOS calls */
#define I_PROC_NR m7_i4 /* calling process */
#define I_VAL_PTR m7_p1 /* virtual address at caller */
#define I_VAL_LEN m7_i1 /* max length of value */
@@ -412,6 +415,9 @@
#define PR_IP_PTR m1_p3 /* initial value for ip after exec */
#define PR_MEM_PTR m1_p1 /* tells where memory map is for sys_newmap */
/* Field names for SYS_INT86 */
#define INT86_REG86 m1_p1 /* Point to registers */
/* Field names for SELECT (FS). */
#define SEL_NFDS m8_i1
#define SEL_READFDS m8_p1
+2 -2
View File
@@ -70,7 +70,7 @@
#define ENABLE_BOOTDEV 0
/* Include or exclude device drivers. Set to 1 to include, 0 to exclude. */
#define ENABLE_BIOS_WINI 0 /* enable BIOS winchester driver */
#define ENABLE_BIOS_WINI 1 /* enable BIOS winchester driver */
#define ENABLE_ESDI_WINI 0 /* enable ESDI winchester driver */
#define ENABLE_XT_WINI 0 /* enable XT winchester driver */
#define ENABLE_AHA1540 0 /* enable Adaptec 1540 SCSI driver */
@@ -81,7 +81,7 @@
/* Include or exclude user-level device drivers (and supporting servers). */
#define ENABLE_PRINTER 0 /* user-level Centronics printer driver */
#define ENABLE_FLOPPY 1 /* enable floppy disk driver */
#define ENABLE_FLOPPY 0 /* enable floppy disk driver */
#define ENABLE_AT_WINI 1 /* enable AT winchester driver */
#define ENABLE_ATAPI 1 /* add ATAPI support to AT driver */
+6
View File
@@ -15,6 +15,9 @@
#include <minix/devio.h>
#endif
/* Forward declaration */
struct reg86u;
#define SYSTASK SYSTEM
/*==========================================================================*
@@ -33,6 +36,7 @@ _PROTOTYPE( int sys_trace, (int req, int proc, long addr, long *data_p) );
_PROTOTYPE( int sys_svrctl, (int proc, int req, int priv,vir_bytes argp));
_PROTOTYPE( int sys_nice, (int proc, int prio) );
_PROTOTYPE( int sys_int86, (struct reg86u *reg86p) );
/* Shorthands for sys_sdevio() system call. */
#define sys_insb(port, proc_nr, buffer, count) \
@@ -101,6 +105,8 @@ _PROTOTYPE(int sys_segctl, (int *index, u16_t *seg, vir_bytes *off,
#define sys_getmonparams(v,vl) sys_getinfo(GET_MONPARAMS, v,vl, 0,0)
#define sys_getschedinfo(v1,v2) sys_getinfo(GET_SCHEDINFO, v1,0, v2,0)
#define sys_getlocktimings(dst) sys_getinfo(GET_LOCKTIMING, dst, 0,0,0)
#define sys_getbiosbuffer(virp, sizep) sys_getinfo(GET_BIOSBUFFER, virp, \
sizeof(*virp), sizep, sizeof(*sizep))
_PROTOTYPE(int sys_getinfo, (int request, void *val_ptr, int val_len,
void *val_ptr2, int val_len2) );