reorg
This commit is contained in:
parent
fe28715943
commit
d0d1e8dea2
10 changed files with 1804 additions and 1026 deletions
1002
src/include/pci.h
1002
src/include/pci.h
File diff suppressed because it is too large
Load diff
1295
src/include/pci_ids.h
Normal file
1295
src/include/pci_ids.h
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -241,7 +241,7 @@ void intel_check_irq_routing_table(void)
|
|||
sum += addr[i];
|
||||
|
||||
printk(KERN_DEBUG "%s:%6d:%s() - "
|
||||
"irq_routing_table located at: 0x%08x\n",
|
||||
"irq_routing_table located at: 0x%p\n",
|
||||
__FILE__, __LINE__, __FUNCTION__, addr);
|
||||
|
||||
sum = (unsigned char)(rt->checksum-sum);
|
||||
|
|
|
|||
|
|
@ -12,10 +12,11 @@ static char rcsid[] =
|
|||
|
||||
|
||||
#include <printk.h>
|
||||
#include <intel_conf.h>
|
||||
#include <intel_subr.h>
|
||||
#include <lbpci.h>
|
||||
#include <sis630.h>
|
||||
#include <pciconf.h>
|
||||
#include <subr.h>
|
||||
#include <pci.h>
|
||||
#include <pci_ids.h>
|
||||
#include <northsouthbridge/sis/630/param.h>
|
||||
|
||||
/* these functions query the hardware to figure out how much ram is in
|
||||
* the machine. They then place that information in the parameter block.
|
||||
|
|
@ -27,7 +28,7 @@ static char rcsid[] =
|
|||
*/
|
||||
|
||||
/* table for calculate the DRAM size, the unit is Mega Bytes */
|
||||
const static ramsizes[16] =
|
||||
const static int ramsizes[16] =
|
||||
{
|
||||
8, 32, 32, 64, 16, 64, 64, 128,
|
||||
32, 128, 128, 256, 16, 256, 256, 512
|
||||
|
|
@ -94,11 +95,11 @@ unsigned long sizeram()
|
|||
|
||||
#ifdef HAVE_FRAMEBUFFER
|
||||
|
||||
void intel_framebuffer_on()
|
||||
void framebuffer_on()
|
||||
{
|
||||
unsigned long devfn = PCI_DEVFN(0, 0);
|
||||
unsigned int bus = 0;
|
||||
u8 dramstatus;
|
||||
// unsigned int bus = 0;
|
||||
// u8 dramstatus;
|
||||
u32 command;
|
||||
|
||||
#if 0
|
||||
|
|
@ -121,12 +122,6 @@ void intel_framebuffer_on()
|
|||
|
||||
#endif /* HAVE_FRAMEBUFFER */
|
||||
|
||||
// mainboard fixup.
|
||||
|
||||
void mainboard_fixup()
|
||||
{
|
||||
}
|
||||
|
||||
#define RTABLE_DEST 0xf0000
|
||||
|
||||
void copy_irq_routing_table(void)
|
||||
|
|
|
|||
|
|
@ -12,10 +12,11 @@ static char rcsid[] =
|
|||
|
||||
|
||||
#include <printk.h>
|
||||
#include <intel_conf.h>
|
||||
#include <intel_subr.h>
|
||||
#include <lbpci.h>
|
||||
#include <sis630.h>
|
||||
#include <pciconf.h>
|
||||
#include <subr.h>
|
||||
#include <pci.h>
|
||||
#include <pci_ids.h>
|
||||
#include <northsouthbridge/sis/630/param.h>
|
||||
|
||||
void keyboard_on()
|
||||
{
|
||||
|
|
|
|||
131
src/ram/ramtest.inc
Normal file
131
src/ram/ramtest.inc
Normal file
|
|
@ -0,0 +1,131 @@
|
|||
|
||||
/*
|
||||
* This is much more of a "Is my SDRAM properly configured?"
|
||||
* test than a "Is my SDRAM faulty?" test. Not all bits
|
||||
* are tested. -Tyson
|
||||
*/
|
||||
|
||||
jmp rt_skip
|
||||
|
||||
rt_test: .string "Testing SDRAM : "
|
||||
rt_fill: .string "SDRAM fill:\r\n"
|
||||
rt_verify: .string "SDRAM verify:\r\n"
|
||||
rt_toomany: .string "Too many errors.\r\n"
|
||||
rt_done: .string "Done.\r\n"
|
||||
|
||||
ramtest:
|
||||
#ifdef RAMTEST
|
||||
mov %eax, %esi
|
||||
mov %ebx, %edi
|
||||
mov %esp, %ebp
|
||||
|
||||
#ifdef SERIAL_CONSOLE
|
||||
TTYS0_TX_STRING($rt_test)
|
||||
TTYS0_TX_HEX32(%esi)
|
||||
TTYS0_TX_CHAR($'-')
|
||||
TTYS0_TX_HEX32(%edi)
|
||||
TTYS0_TX_CHAR($'\r')
|
||||
TTYS0_TX_CHAR($'\n')
|
||||
|
||||
/* ============== Fill ram block ==== */
|
||||
|
||||
TTYS0_TX_STRING($rt_fill)
|
||||
#endif
|
||||
|
||||
mov %esi, %ebx
|
||||
1:
|
||||
cmp $0, %bx
|
||||
jne 2f
|
||||
|
||||
#ifdef SERIAL_CONSOLE
|
||||
/* Display address being filled */
|
||||
/* TTYS0_TX_HEX32(arg) will overwrite %ebx with arg */
|
||||
|
||||
TTYS0_TX_HEX32(%ebx)
|
||||
TTYS0_TX_CHAR($'\r')
|
||||
#endif
|
||||
2:
|
||||
mov %ebx, (%ebx)
|
||||
add $4, %ebx
|
||||
cmp %edi, %ebx
|
||||
jl 1b
|
||||
|
||||
#ifdef SERIAL_CONSOLE
|
||||
/* Display final address */
|
||||
|
||||
TTYS0_TX_HEX32(%edi)
|
||||
TTYS0_TX_CHAR($'\r')
|
||||
TTYS0_TX_CHAR($'\n')
|
||||
|
||||
/* ========= Verify ram block ========== */
|
||||
|
||||
TTYS0_TX_STRING($rt_verify)
|
||||
#endif
|
||||
mov %esi, %ebx
|
||||
|
||||
1:
|
||||
cmp $0, %bx
|
||||
jne 2f
|
||||
|
||||
#ifdef SERIAL_CONSOLE
|
||||
/* Display address being tested */
|
||||
|
||||
TTYS0_TX_HEX32(%ebx)
|
||||
TTYS0_TX_CHAR($'\r')
|
||||
#endif
|
||||
|
||||
2:
|
||||
cmp %ebx, (%ebx)
|
||||
jne 4f
|
||||
3:
|
||||
add $4, %ebx
|
||||
cmp %edi, %ebx
|
||||
jl 1b
|
||||
|
||||
#ifdef SERIAL_CONSOLE
|
||||
/* Display final address */
|
||||
|
||||
TTYS0_TX_HEX32(%edi)
|
||||
TTYS0_TX_CHAR($'\r')
|
||||
TTYS0_TX_CHAR($'\n')
|
||||
#endif
|
||||
jmp 6f
|
||||
|
||||
4:
|
||||
#ifdef SERIAL_CONSOLE
|
||||
/* Display address with error */
|
||||
|
||||
TTYS0_TX_HEX32(%ebx)
|
||||
TTYS0_TX_CHAR($':')
|
||||
|
||||
/* Display data in address with error */
|
||||
|
||||
/* TTYS0_TX_HEX32(arg) will overwrite %ebx with arg */
|
||||
|
||||
mov %ebx, %esi
|
||||
mov 0(%ebx), %eax
|
||||
TTYS0_TX_HEX32(%eax)
|
||||
mov %esi, %ebx
|
||||
|
||||
TTYS0_TX_CHAR($'\r')
|
||||
TTYS0_TX_CHAR($'\n')
|
||||
#endif
|
||||
sub $1, %ecx
|
||||
jz 5f
|
||||
jmp 3b
|
||||
5:
|
||||
#ifdef SERIAL_CONSOLE
|
||||
TTYS0_TX_STRING($rt_toomany)
|
||||
#endif
|
||||
intel_chip_post_macro(0xf1)
|
||||
jmp .Lhlt
|
||||
|
||||
6:
|
||||
#ifdef SERIAL_CONSOLE
|
||||
TTYS0_TX_STRING($rt_done)
|
||||
#endif
|
||||
mov %ebp, %esp
|
||||
#endif
|
||||
RETSP
|
||||
|
||||
rt_skip:
|
||||
Loading…
Add table
Add a link
Reference in a new issue