mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-20 11:11:24 +00:00
There's nothing AT91RM9200 specific about this file at all.
This commit is contained in:
parent
5ebe387ff7
commit
0d814a369c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=238325
@ -42,33 +42,32 @@ __FBSDID("$FreeBSD$");
|
||||
#include <dev/uart/uart_bus.h>
|
||||
#include <dev/uart/uart_cpu.h>
|
||||
|
||||
#include <arm/at91/at91rm92reg.h>
|
||||
#include <arm/at91/at91var.h>
|
||||
|
||||
#include "uart_if.h"
|
||||
|
||||
static int usart_at91rm92_probe(device_t dev);
|
||||
static int usart_at91_probe(device_t dev);
|
||||
|
||||
extern struct uart_class at91_usart_class;
|
||||
|
||||
static device_method_t usart_at91rm92_methods[] = {
|
||||
static device_method_t usart_at91_methods[] = {
|
||||
/* Device interface */
|
||||
DEVMETHOD(device_probe, usart_at91rm92_probe),
|
||||
DEVMETHOD(device_probe, usart_at91_probe),
|
||||
DEVMETHOD(device_attach, uart_bus_attach),
|
||||
DEVMETHOD(device_detach, uart_bus_detach),
|
||||
{ 0, 0 }
|
||||
};
|
||||
|
||||
static driver_t usart_at91rm92_driver = {
|
||||
static driver_t usart_at91_driver = {
|
||||
uart_driver_name,
|
||||
usart_at91rm92_methods,
|
||||
usart_at91_methods,
|
||||
sizeof(struct uart_softc),
|
||||
};
|
||||
|
||||
extern SLIST_HEAD(uart_devinfo_list, uart_devinfo) uart_sysdevs;
|
||||
|
||||
static int
|
||||
usart_at91rm92_probe(device_t dev)
|
||||
usart_at91_probe(device_t dev)
|
||||
{
|
||||
struct uart_softc *sc;
|
||||
|
||||
@ -104,4 +103,4 @@ usart_at91rm92_probe(device_t dev)
|
||||
}
|
||||
|
||||
|
||||
DRIVER_MODULE(uart, atmelarm, usart_at91rm92_driver, uart_devclass, 0, 0);
|
||||
DRIVER_MODULE(uart, atmelarm, usart_at91_driver, uart_devclass, 0, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user