mouse.c File Reference

#include <isa/mouse.h>
#include <isa/8259.h>
#include <sys/idt.h>
#include <sys/gdt.h>
#include <sys/io.h>
#include <lib/kprintf.h>
#include <ubixos/types.h>

Go to the source code of this file.

Functions

 asm (".globl mouseISR \n""mouseISR: \n"" pusha \n"" call mouseHandler \n"" popa \n"" iret \n")
static uInt8 kbdRead ()
static void kbdWrite (uInt16 port, uInt8 data)
static uInt8 kbdWriteRead (uInt16 port, uInt8 data, const char *expect)
void mouseHandler ()
int mouseInit ()


Function Documentation

asm ( ".globl mouseISR \n""mouseISR: \n"" pusha \n"" call mouseHandler \n"" popa \n"" iret \n"   ) 

static uInt8 kbdRead (  )  [static]

Definition at line 38 of file mouse.c.

References inportByte().

Referenced by kbdWriteRead(), and mouseInit().

static void kbdWrite ( uInt16  port,
uInt8  data 
) [static]

Definition at line 59 of file mouse.c.

References inportByte(), and outportByte().

Referenced by kbdWriteRead(), and mouseInit().

static uInt8 kbdWriteRead ( uInt16  port,
uInt8  data,
const char *  expect 
) [static]

Definition at line 75 of file mouse.c.

References kbdRead(), and kbdWrite().

Referenced by mouseInit().

void mouseHandler (  ) 

Definition at line 141 of file mouse.c.

References eoi, kprintf(), mPic, outportByte(), and sPic.

int mouseInit (  ) 

Definition at line 94 of file mouse.c.

References dDpl3, dInt, dPresent, eoi, irqEnable(), kbdRead(), kbdWrite(), kbdWriteRead(), kprintf(), mouseISR(), mPic, mVec, outportByte(), setVector(), and sPic.


Generated on Tue Dec 5 09:28:06 2006 for UbixOS V2 by  doxygen 1.4.7