xref: /optee_os/core/include/drivers/ns16550.h (revision 2e5aa31ba0454b74d619671061093ebfcf913aec)
185278139SSumit Garg /*
285278139SSumit Garg  * Copyright (C) 2015 Freescale Semiconductor, Inc.
385278139SSumit Garg  * All rights reserved.
485278139SSumit Garg  *
585278139SSumit Garg  * Redistribution and use in source and binary forms, with or without
685278139SSumit Garg  * modification, are permitted provided that the following conditions are met:
785278139SSumit Garg  *
885278139SSumit Garg  * 1. Redistributions of source code must retain the above copyright notice,
985278139SSumit Garg  * this list of conditions and the following disclaimer.
1085278139SSumit Garg  *
1185278139SSumit Garg  * 2. Redistributions in binary form must reproduce the above copyright notice,
1285278139SSumit Garg  * this list of conditions and the following disclaimer in the documentation
1385278139SSumit Garg  * and/or other materials provided with the distribution.
1485278139SSumit Garg  *
1585278139SSumit Garg  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
1685278139SSumit Garg  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1785278139SSumit Garg  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1885278139SSumit Garg  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
1985278139SSumit Garg  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
2085278139SSumit Garg  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
2185278139SSumit Garg  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
2285278139SSumit Garg  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
2385278139SSumit Garg  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
2485278139SSumit Garg  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2585278139SSumit Garg  * POSSIBILITY OF SUCH DAMAGE.
2685278139SSumit Garg  */
2785278139SSumit Garg #ifndef NS16550_H
2885278139SSumit Garg #define NS16550_H
2985278139SSumit Garg 
3085278139SSumit Garg #include <types_ext.h>
31*2e5aa31bSJerome Forissier #include <drivers/serial.h>
3285278139SSumit Garg 
33*2e5aa31bSJerome Forissier struct ns16550_data {
34*2e5aa31bSJerome Forissier 	struct io_pa_va base;
35*2e5aa31bSJerome Forissier 	struct serial_chip chip;
36*2e5aa31bSJerome Forissier };
3785278139SSumit Garg 
38*2e5aa31bSJerome Forissier void ns16550_init(struct ns16550_data *pd, paddr_t base);
3985278139SSumit Garg 
4085278139SSumit Garg #endif /* NS16550_H */
41