X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=include%2Fserial.h;h=d87f01082a056f07a05a3161785fc4231318b157;hb=0f44d33536a50ef65259c322fa2d4a058585caf9;hp=f4171964ae6ce55d7da35a1ec6bc5b01c8538f95;hpb=7e09145ea2e985511c660bdf567b61614acd75b3;p=people%2Fms%2Fu-boot.git diff --git a/include/serial.h b/include/serial.h index f4171964ae..d87f01082a 100644 --- a/include/serial.h +++ b/include/serial.h @@ -148,10 +148,18 @@ struct dm_serial_ops { /** * struct serial_dev_priv - information about a device used by the uclass * - * @sdev: stdio device attached to this uart + * @sdev: stdio device attached to this uart + * + * @buf: Pointer to the RX buffer + * @rd_ptr: Read pointer in the RX buffer + * @wr_ptr: Write pointer in the RX buffer */ struct serial_dev_priv { struct stdio_dev *sdev; + + char *buf; + int rd_ptr; + int wr_ptr; }; /* Access the serial operations for a device */