Displaying 2 results from an estimated 2 matches for "get_serial_port".
2016 Oct 09
3
Enumeration of ISA serial ports inconsistent between Linux and Syslinux
...i with default BIOS settings) have a
different order stored in BIOS:
---
# hexdump -s 0x400 -n 8 /dev/mem
0000400 02f8 03f8 0000 0000
---
Best regards,
Oliver
--- /syslinux/core/include/bios.h ---
#define SERIAL_BASE 0x0400 /* Base address for 4 serial ports */
...
static inline uint16_t get_serial_port(uint16_t port)
{
/* Magic array in BIOS memory, contains four entries */
const uint16_t * const serial_ports = (const uint16_t *)SERIAL_BASE;
/*
* If port > 3 then the port is simply the I/O base address
*/
if (port > 3)
return port;
/*...
2016 Oct 09
0
Enumeration of ISA serial ports inconsistent between Linux and Syslinux
...>
> ---
> # hexdump -s 0x400 -n 8 /dev/mem
> 0000400 02f8 03f8 0000 0000
> ---
>
>
> Best regards,
>
> Oliver
>
> --- /syslinux/core/include/bios.h ---
> #define SERIAL_BASE 0x0400 /* Base address for 4 serial ports */
> ...
> static inline uint16_t get_serial_port(uint16_t port)
> {
> /* Magic array in BIOS memory, contains four entries */
> const uint16_t * const serial_ports = (const uint16_t *)SERIAL_BASE;
>
> /*
> * If port > 3 then the port is simply the I/O base address
> */
> if (port > 3)...