+ Please bulit-in kernel if you need early console support.This driver needs to be built into the kernel to use early console
support.
+ switch (dev->device) {
+ case FINTEK_F81504: /* 4 ports */
+ /* F81504 max 2 sets of GPIO, others are max 6 sets*/
+ gpio_en &= 0x03;
+ case FINTEK_F81508: /* 8 ports */
+ max_port = dev->device & 0xff;
If that is meant to fall through from F81504 into F81508 it's worth
commenting, otherwise someone reviewing the code can't always be sure it
was intentional.
+ /* Get the UART IO address dispatch from the BIOS */
+ pci_read_config_dword(dev, 0x24, &bar_data[0]);
+ pci_read_config_dword(dev, 0x20, &bar_data[1]);
+ pci_read_config_dword(dev, 0x1c, &bar_data[2]);
Take these from the pci device itself. On some non PC platforms the
values in the pci bar may be remapped by bridges and not give you the
true answer.
pci_resource_start(dev, barnumber)