cherry pick device tree modifications from isa/arm64
[lunaix-os.git] / lunaix-os / includes / hal / serial.h
index c346c51cc2068fd2e0ea716b562d266847263b33..af345dad6d50ffa358d0449d696db48e91afdaed 100644 (file)
@@ -7,7 +7,7 @@
 #include <lunaix/ds/waitq.h>
 #include <lunaix/ds/rbuffer.h>
 
-#include <hal/term.h>
+#include <usr/lunaix/serial.h>
 
 #define SERIAL_RW_RX 0x0
 #define SERIAL_RW_TX 0x1
@@ -28,12 +28,13 @@ struct serial_dev
     struct device* dev;
     struct waitq wq_rxdone;
     struct waitq wq_txdone;
-    struct term* at_term;
     void* backend;
 
     struct rbuffer rxbuf;
     int wr_len;
 
+    struct capability_meta* tp_cap;
+
     /**
      * @brief Write buffer to TX. The return code indicate
      * the transaction is either done in synced mode (TX_DONE) or will be