rewrite the lunabuild toolchain with enhanced feature
[lunaix-os.git] / lunaix-os / hal / char / uart / LConfig
1
2 @"16x50 Serial Controller"
3 @(parent := char_device)
4 def uart_16x50():
5     """ 16x50 serial controller  """
6
7     @"16x50 XT-Compat"
8     def xt_16x50() -> bool:
9         """ Enable the 16x50 for PC-compatible platform  """
10
11         return arch.val in ["i386", "x86_64"]
12     
13     @"16x50 PCI"
14     def pci_16x50() -> bool:
15         """ Enable the support of PCI 16x50 """
16
17         return True