removed unused assignirq.c and aute generated irq_tables.c
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1502 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
@@ -2,25 +2,23 @@
|
|||||||
#LINUXBIOSROOT=/home/rminnich/src//freebios/
|
#LINUXBIOSROOT=/home/rminnich/src//freebios/
|
||||||
LINUXBIOSROOT=../..
|
LINUXBIOSROOT=../..
|
||||||
|
|
||||||
INCLUDEPATH=$(LINUXBIOSROOT)/src/arch/i386/include/arch
|
INCLUDEPATH=$(LINUXBIOSROOT)/src/arch/i386/include
|
||||||
INCLUDE2=$(LINUXBIOSROOT)/src/include
|
INCLUDE2=$(LINUXBIOSROOT)/src/include
|
||||||
INCLUDE3=$(LINUXBIOSROOT)/src/arch/i386/include
|
|
||||||
|
|
||||||
|
|
||||||
getpir: getpir.c
|
getpir: getpir.c
|
||||||
gcc -o getpir -I$(INCLUDEPATH) -I$(INCLUDE2) getpir.c
|
gcc -o getpir -I$(INCLUDEPATH) -I$(INCLUDE2) getpir.c
|
||||||
|
|
||||||
|
all: getpir checkpir
|
||||||
|
|
||||||
checkpir: checkpir.c irq_tables.o
|
checkpir: checkpir.c irq_tables.o
|
||||||
gcc -o checkpir -I$(INCLUDEPATH) -I$(INCLUDE2) irq_tables.o checkpir.c
|
gcc -o checkpir -I$(INCLUDEPATH) -I$(INCLUDE2) irq_tables.o checkpir.c
|
||||||
|
|
||||||
assignirq: assignirq.c irq_tables.o
|
|
||||||
gcc -g -o assignirq -I$(INCLUDEPATH) -I$(INCLUDE2) assignirq.c -lpci
|
|
||||||
|
|
||||||
irq_tables.o: irq_tables.c
|
irq_tables.o: irq_tables.c
|
||||||
gcc -c -I$(INCLUDEPATH) -I$(INCLUDE2) -I$(INCLUDE3) irq_tables.c
|
gcc -c -I$(INCLUDEPATH) -I$(INCLUDE2) irq_tables.c
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f irq_tables.o getpir checkpir assignirq *~
|
rm -f irq_tables.o getpir checkpir *~
|
||||||
|
|
||||||
cleantable:
|
cleantable:
|
||||||
rm -f irq_table.o
|
rm -f irq_table.o
|
||||||
|
@@ -3,15 +3,10 @@
|
|||||||
Aug 26 2001 , Nikolai Vladychevski, <niko@isl.net.mx>
|
Aug 26 2001 , Nikolai Vladychevski, <niko@isl.net.mx>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <unistd.h>
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
|
||||||
|
|
||||||
#include <device/pci.h>
|
#include <device/pci.h>
|
||||||
#include <pirq_routing.h>
|
#include <arch/pirq_routing.h>
|
||||||
|
|
||||||
#define PIRQ_SIGNATURE (('$' << 0) + ('P' << 8) + ('I' << 16) + ('R' << 24))
|
|
||||||
#define PIRQ_VERS 0x0100
|
|
||||||
|
|
||||||
struct irq_info se_arr[50];
|
struct irq_info se_arr[50];
|
||||||
struct irq_routing_table *rt;
|
struct irq_routing_table *rt;
|
||||||
|
@@ -3,15 +3,10 @@
|
|||||||
Aug 26 2001 , Nikolai Vladychevski, <niko@isl.net.mx>
|
Aug 26 2001 , Nikolai Vladychevski, <niko@isl.net.mx>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <unistd.h>
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
|
||||||
|
|
||||||
#include <device/pci.h>
|
#include <device/pci.h>
|
||||||
#include <pirq_routing.h>
|
#include <arch/pirq_routing.h>
|
||||||
|
|
||||||
#define PIRQ_SIGNATURE (('$' << 0) + ('P' << 8) + ('I' << 16) + ('R' << 24))
|
|
||||||
#define PIRQ_VERS 0x0100
|
|
||||||
|
|
||||||
struct irq_info se_arr[50];
|
struct irq_info se_arr[50];
|
||||||
struct irq_routing_table rt;
|
struct irq_routing_table rt;
|
||||||
@@ -65,7 +60,7 @@ main()
|
|||||||
count = count + rcount;
|
count = count + rcount;
|
||||||
printf("Version is:%d Table size:%d\n",
|
printf("Version is:%d Table size:%d\n",
|
||||||
rt.version, rt.size);
|
rt.version, rt.size);
|
||||||
if (rt.version != PIRQ_VERS) {
|
if (rt.version != PIRQ_VERSION) {
|
||||||
printf("Invalid version\n");
|
printf("Invalid version\n");
|
||||||
valid = 0;
|
valid = 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user