Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/uart/uart_cpu_fdt.h
Show All 40 Lines | |||||
SET_DECLARE(uart_fdt_class_and_device_set, struct ofw_compat_data ); | SET_DECLARE(uart_fdt_class_and_device_set, struct ofw_compat_data ); | ||||
#define UART_FDT_CLASS_AND_DEVICE(data) \ | #define UART_FDT_CLASS_AND_DEVICE(data) \ | ||||
DATA_SET(uart_fdt_class_and_device_set, data) | DATA_SET(uart_fdt_class_and_device_set, data) | ||||
/* | /* | ||||
* If your UART driver implements uart_class and custom device layer, | * If your UART driver implements uart_class and custom device layer, | ||||
* then use UART_FDT_CLASS for its declaration | * then use UART_FDT_CLASS for its declaration | ||||
*/ | */ | ||||
SET_DECLARE(uart_fdt_class_set, struct ofw_compat_data ); | SET_DECLARE_WEAK(uart_fdt_class_set, struct ofw_compat_data ); | ||||
#define UART_FDT_CLASS(data) \ | #define UART_FDT_CLASS(data) \ | ||||
DATA_SET(uart_fdt_class_set, data) | DATA_SET(uart_fdt_class_set, data) | ||||
int uart_cpu_fdt_probe(struct uart_class **, bus_space_tag_t *, | int uart_cpu_fdt_probe(struct uart_class **, bus_space_tag_t *, | ||||
bus_space_handle_t *, int *, u_int *, u_int *, u_int *, const int); | bus_space_handle_t *, int *, u_int *, u_int *, u_int *, const int); | ||||
int uart_fdt_get_clock(phandle_t node, pcell_t *cell); | int uart_fdt_get_clock(phandle_t node, pcell_t *cell); | ||||
int uart_fdt_get_shift(phandle_t node, pcell_t *cell); | int uart_fdt_get_shift(phandle_t node, pcell_t *cell); | ||||
int uart_fdt_get_io_width(phandle_t node, pcell_t *cell); | int uart_fdt_get_io_width(phandle_t node, pcell_t *cell); | ||||
#endif /* _DEV_UART_CPU_FDT_H_ */ | #endif /* _DEV_UART_CPU_FDT_H_ */ |