|
@@ -12,10 +12,6 @@
|
12
|
12
|
#include <gpxe/init.h>
|
13
|
13
|
#include <gpxe/pci.h>
|
14
|
14
|
|
15
|
|
-#ifdef CONFIG_FILO
|
16
|
|
-#include <lib.h>
|
17
|
|
-#endif
|
18
|
|
-
|
19
|
15
|
#undef __BIG_ENDIAN
|
20
|
16
|
#if 0
|
21
|
17
|
#define __LITTLE_ENDIAN
|
|
@@ -388,13 +384,6 @@ draw_byte_8(const unsigned char *font, u32 *base, u32 rb)
|
388
|
384
|
}
|
389
|
385
|
}
|
390
|
386
|
|
391
|
|
-#ifdef CONFIG_FILO
|
392
|
|
-#define USE_FILO_PCI_FIND 1
|
393
|
|
-#else
|
394
|
|
-#define USE_FILO_PCI_FIND 0
|
395
|
|
-#endif
|
396
|
|
-
|
397
|
|
-
|
398
|
387
|
static void btext_init(void)
|
399
|
388
|
{
|
400
|
389
|
#if 0
|
|
@@ -403,7 +392,6 @@ static void btext_init(void)
|
403
|
392
|
#else
|
404
|
393
|
uint32_t frame_buffer;// 0xfc000000
|
405
|
394
|
|
406
|
|
-#if USE_FILO_PCI_FIND==0
|
407
|
395
|
struct pci_device dev;
|
408
|
396
|
|
409
|
397
|
#warning "pci_find_device_x no longer exists; use find_pci_device instead"
|
|
@@ -411,18 +399,6 @@ static void btext_init(void)
|
411
|
399
|
if(dev.vendor==0) return; // no fb
|
412
|
400
|
|
413
|
401
|
frame_buffer = (uint32_t)dev.membase;
|
414
|
|
-#else
|
415
|
|
- struct pci_device *dev = 0;
|
416
|
|
-
|
417
|
|
- pci_init();
|
418
|
|
- dev = pci_find_device(0x1002, 0x4752, -1, -1, 0);
|
419
|
|
- if(!dev) {
|
420
|
|
- return; // no fb
|
421
|
|
- }
|
422
|
|
-
|
423
|
|
- pci_read_config_dword(dev, 0x10, &frame_buffer);
|
424
|
|
-#endif
|
425
|
|
-
|
426
|
402
|
#endif
|
427
|
403
|
|
428
|
404
|
btext_setup_display(640, 480, 8, 640,frame_buffer);
|