uart_bus_at91usart.c (238325) | uart_bus_at91usart.c (238787) |
---|---|
1/*- 2 * Copyright (c) 2005 Olivier Houchard. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 12 unchanged lines hidden (view full) --- 21 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23 * SUCH DAMAGE. 24 */ 25 26#include "opt_uart.h" 27 28#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2005 Olivier Houchard. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 12 unchanged lines hidden (view full) --- 21 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23 * SUCH DAMAGE. 24 */ 25 26#include "opt_uart.h" 27 28#include <sys/cdefs.h> |
29__FBSDID("$FreeBSD: head/sys/arm/at91/uart_bus_at91usart.c 238325 2012-07-10 01:13:00Z imp $"); | 29__FBSDID("$FreeBSD: head/sys/arm/at91/uart_bus_at91usart.c 238787 2012-07-26 05:46:56Z imp $"); |
30 31#include <sys/param.h> 32#include <sys/systm.h> 33#include <sys/bus.h> 34#include <sys/conf.h> 35#include <sys/kernel.h> 36#include <sys/module.h> 37#include <machine/bus.h> --- 52 unchanged lines hidden (view full) --- 90 device_set_desc(dev, "USART1"); 91 break; 92 case 3: 93 device_set_desc(dev, "USART2"); 94 break; 95 case 4: 96 device_set_desc(dev, "USART3"); 97 break; | 30 31#include <sys/param.h> 32#include <sys/systm.h> 33#include <sys/bus.h> 34#include <sys/conf.h> 35#include <sys/kernel.h> 36#include <sys/module.h> 37#include <machine/bus.h> --- 52 unchanged lines hidden (view full) --- 90 device_set_desc(dev, "USART1"); 91 break; 92 case 3: 93 device_set_desc(dev, "USART2"); 94 break; 95 case 4: 96 device_set_desc(dev, "USART3"); 97 break; |
98 case 5: 99 device_set_desc(dev, "USART4"); 100 break; 101 case 6: 102 device_set_desc(dev, "USART5"); 103 break; |
|
98 } 99 sc->sc_class = &at91_usart_class; 100 if (sc->sc_class->uc_rclk == 0) 101 sc->sc_class->uc_rclk = at91_master_clock; 102 return (uart_bus_probe(dev, 0, 0, 0, device_get_unit(dev))); 103} 104 105 106DRIVER_MODULE(uart, atmelarm, usart_at91_driver, uart_devclass, 0, 0); | 104 } 105 sc->sc_class = &at91_usart_class; 106 if (sc->sc_class->uc_rclk == 0) 107 sc->sc_class->uc_rclk = at91_master_clock; 108 return (uart_bus_probe(dev, 0, 0, 0, device_get_unit(dev))); 109} 110 111 112DRIVER_MODULE(uart, atmelarm, usart_at91_driver, uart_devclass, 0, 0); |