/
githubmirror
/
ipxe
Обзор
Документация
Войти
/
githubmirror
/
ipxe
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/include/bits/ns16550.h
43 строки
874 B
Michael Brown
[build] Mark dummy architecture headers as permitted for UEFI Secure Boot
28 янв 2026, 16:55
28 янв 2026, 16:55
8e31ac9
Код
Авторство
О чём код?
#ifndef _BITS_NS16550_H #define _BITS_NS16550_H /** @file * * 16550-compatible UART * */ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); FILE_SECBOOT ( PERMITTED ); #include <stdint.h> #include <ipxe/io.h> /** * Write to UART register * * @v ns16550 16550 UART * @v address Register address * @v data Data */ static inline __attribute__ (( always_inline )) void ns16550_write ( struct ns16550_uart *ns16550, unsigned int address, uint8_t data ) { iowrite8 ( data, ( ns16550->base + ( address << ns16550->shift ) ) ); } /** * Read from UART register * * @v ns16550 16550 UART * @v address Register address * @ret data Data */ static inline __attribute__ (( always_inline )) uint8_t ns16550_read ( struct ns16550_uart *ns16550, unsigned int address ) { return ioread8 ( ns16550->base + ( address << ns16550->shift ) ); } #endif /* _BITS_NS16550_H */