diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2006-11-04 23:32:21 +0000 |
---|---|---|
committer | Thomas Schwinge <tschwinge@gnu.org> | 2009-06-18 00:26:49 +0200 |
commit | 59109a24209263600cee53978850b7f5432d5dc7 (patch) | |
tree | 49492eb4264db8ea7b763885ee0ed497aaf6e44c /i386/i386/pit.c | |
parent | 600380d987bc1f30d592cb4311172fcd910f8e18 (diff) |
2006-11-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
Drop PS2 architecture support.
* i386/i386/fpu.c (fpintr): Remove PS2 from #if.
* i386/i386/gdt.c (abios_int_return, abios_th_return, intstack): Remove
extern declaration.
* i386/i386/gdt.h (ABIOS_INT_RET, ABIOS_TH_RET, ABIOS_INT_SS,
ABIOS_TH_SS, ABIOS_FIRST_AVAIL_SEL): Remove macros.
(GDTSZ): Remove PS2 case.
* i386/i386/hardclock.c: Don't include `i386/pic.h' and `i386/pio.h'.
(hardclock): Remove PS2 prototype and code.
* i386/i386/locore.S (RET_OFFSET): Remove PS2 stack layout.
* i386/i386/pic.c (picinit): Remove #ifdef PS2.
* i386/i386/pic.h: Remove PS2 from #if.
* i386/i386/pit.c (clock_int_handler): Remove extern declaration.
(clock_request_block, clock_flags, cqbuf): Remove variables.
(clkstart): Remove call to abios_clock_start function.
(abios_clock_start, ackrtclock): Remove function.
* i386/i386/pit.h: Remove PS2 from #if.
Diffstat (limited to 'i386/i386/pit.c')
-rw-r--r-- | i386/i386/pit.c | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/i386/i386/pit.c b/i386/i386/pit.c index 68661f58..8e9f953b 100644 --- a/i386/i386/pit.c +++ b/i386/i386/pit.c @@ -64,16 +64,6 @@ int pit0_mode = PIT_C0|PIT_SQUAREMODE|PIT_READMODE ; unsigned int clknumb = CLKNUM; /* interrupt interval for timer 0 */ -#ifdef PS2 -extern int clock_int_handler(); - -#include <sys/types.h> -#include <i386ps2/abios.h> -static struct generic_request *clock_request_block; -static int clock_flags; -char cqbuf[200]; /*XXX temporary.. should use kmem_alloc or whatever..*/ -#endif /* PS2 */ - clkstart() { unsigned int flags; @@ -85,10 +75,6 @@ clkstart() s = sploff(); /* disable interrupts */ -#ifdef PS2 - abios_clock_start(); -#endif /* PS2 */ - /* Since we use only timer 0, we program that. * 8254 Manual specifically says you do not need to program * timers you do not use @@ -101,47 +87,3 @@ clkstart() outb(pitctr0_port, byte); splon(s); /* restore interrupt state */ } - -#define COUNT 10000 /* should be a multiple of 1000! */ - -#ifdef PS2 - -abios_clock_start() -{ - struct generic_request temp_request_block; - int rc; - - nmi_enable(); /* has to happen somewhere! */ - temp_request_block.r_current_req_blck_len = ABIOS_MIN_REQ_SIZE; - temp_request_block.r_logical_id = abios_next_LID(SYSTIME_ID, - ABIOS_FIRST_LID); - temp_request_block.r_unit = 0; - temp_request_block.r_function = ABIOS_LOGICAL_PARAMETER; - temp_request_block.r_return_code = ABIOS_UNDEFINED; - - abios_common_start(&temp_request_block,0); - if (temp_request_block.r_return_code != ABIOS_DONE) { - panic("couldn init abios time code!\n"); - } - - /* - * now build the clock request for the hardware system clock - */ - clock_request_block = (struct generic_request *)cqbuf; - clock_request_block->r_current_req_blck_len = - temp_request_block.r_request_block_length; - clock_request_block->r_logical_id = temp_request_block.r_logical_id; - clock_request_block->r_unit = 0; - clock_request_block->r_function = ABIOS_DEFAULT_INTERRUPT; - clock_request_block->r_return_code = ABIOS_UNDEFINED; - clock_flags = temp_request_block.r_logical_id_flags; -} - -ackrtclock() -{ - if (clock_request_block) { - clock_request_block->r_return_code = ABIOS_UNDEFINED; - abios_common_interrupt(clock_request_block,clock_flags); - } - } -#endif /* PS2 */ |