pcdp.c (e5451c8f8330e03ad3cfa16048b4daf961af434f) pcdp.c (f7750a79568788473c5e8092ee58a52248f34329)
1/*
2 * Parse the EFI PCDP table to locate the console device.
3 *
4 * (c) Copyright 2002, 2003, 2004 Hewlett-Packard Development Company, L.P.
5 * Khalid Aziz <khalid.aziz@hp.com>
6 * Alex Williamson <alex.williamson@hp.com>
7 * Bjorn Helgaas <bjorn.helgaas@hp.com>
8 *

--- 81 unchanged lines hidden (view full) ---

90 struct pcdp_uart *uart;
91 struct pcdp_device *dev, *end;
92 int i, serial = 0;
93 int rc = -ENODEV;
94
95 if (efi.hcdp == EFI_INVALID_TABLE_ADDR)
96 return -ENODEV;
97
1/*
2 * Parse the EFI PCDP table to locate the console device.
3 *
4 * (c) Copyright 2002, 2003, 2004 Hewlett-Packard Development Company, L.P.
5 * Khalid Aziz <khalid.aziz@hp.com>
6 * Alex Williamson <alex.williamson@hp.com>
7 * Bjorn Helgaas <bjorn.helgaas@hp.com>
8 *

--- 81 unchanged lines hidden (view full) ---

90 struct pcdp_uart *uart;
91 struct pcdp_device *dev, *end;
92 int i, serial = 0;
93 int rc = -ENODEV;
94
95 if (efi.hcdp == EFI_INVALID_TABLE_ADDR)
96 return -ENODEV;
97
98 pcdp = early_ioremap(efi.hcdp, 4096);
98 pcdp = early_memremap(efi.hcdp, 4096);
99 printk(KERN_INFO "PCDP: v%d at 0x%lx\n", pcdp->rev, efi.hcdp);
100
101 if (strstr(cmdline, "console=hcdp")) {
102 if (pcdp->rev < 3)
103 serial = 1;
104 } else if (strstr(cmdline, "console=")) {
105 printk(KERN_INFO "Explicit \"console=\"; ignoring PCDP\n");
106 goto out;

--- 19 unchanged lines hidden (view full) ---

126 if (dev->type == PCDP_CONSOLE_VGA) {
127 rc = setup_vga_console(dev);
128 goto out;
129 }
130 }
131 }
132
133out:
99 printk(KERN_INFO "PCDP: v%d at 0x%lx\n", pcdp->rev, efi.hcdp);
100
101 if (strstr(cmdline, "console=hcdp")) {
102 if (pcdp->rev < 3)
103 serial = 1;
104 } else if (strstr(cmdline, "console=")) {
105 printk(KERN_INFO "Explicit \"console=\"; ignoring PCDP\n");
106 goto out;

--- 19 unchanged lines hidden (view full) ---

126 if (dev->type == PCDP_CONSOLE_VGA) {
127 rc = setup_vga_console(dev);
128 goto out;
129 }
130 }
131 }
132
133out:
134 early_iounmap(pcdp, 4096);
134 early_memunmap(pcdp, 4096);
135 return rc;
136}
135 return rc;
136}