scc_dev_sab82532.c (157299) | scc_dev_sab82532.c (157351) |
---|---|
1/*- 2 * Copyright (c) 2004-2006 Marcel Moolenaar 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * --- 11 unchanged lines hidden (view full) --- 20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2004-2006 Marcel Moolenaar 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * --- 11 unchanged lines hidden (view full) --- 20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> |
28__FBSDID("$FreeBSD: head/sys/dev/scc/scc_dev_sab82532.c 157299 2006-03-30 18:33:22Z marcel $"); | 28__FBSDID("$FreeBSD: head/sys/dev/scc/scc_dev_sab82532.c 157351 2006-04-01 04:51:56Z marcel $"); |
29 30#include <sys/param.h> 31#include <sys/systm.h> 32#include <sys/bus.h> 33#include <sys/conf.h> 34#include <machine/bus.h> 35#include <sys/rman.h> 36#include <sys/serial.h> 37 38#include <dev/scc/scc_bfe.h> 39#include <dev/scc/scc_bus.h> 40 41#include <dev/ic/sab82532.h> 42 43#include "scc_if.h" 44 | 29 30#include <sys/param.h> 31#include <sys/systm.h> 32#include <sys/bus.h> 33#include <sys/conf.h> 34#include <machine/bus.h> 35#include <sys/rman.h> 36#include <sys/serial.h> 37 38#include <dev/scc/scc_bfe.h> 39#include <dev/scc/scc_bus.h> 40 41#include <dev/ic/sab82532.h> 42 43#include "scc_if.h" 44 |
45#define DEFAULT_RCLK 29491200 46 | |
47static int sab82532_bfe_attach(struct scc_softc *, int); 48static int sab82532_bfe_iclear(struct scc_softc *, struct scc_chan *); 49static int sab82532_bfe_ipend(struct scc_softc *); 50static int sab82532_bfe_probe(struct scc_softc *); 51 52static kobj_method_t sab82532_methods[] = { 53 KOBJMETHOD(scc_attach, sab82532_bfe_attach), 54 KOBJMETHOD(scc_iclear, sab82532_bfe_iclear), --- 5 unchanged lines hidden (view full) --- 60struct scc_class scc_sab82532_class = { 61 "sab82532 class", 62 sab82532_methods, 63 sizeof(struct scc_softc), 64 .cl_channels = SAB_NCHAN, 65 .cl_class = SCC_CLASS_SAB82532, 66 .cl_modes = SCC_MODE_ASYNC | SCC_MODE_BISYNC | SCC_MODE_HDLC, 67 .cl_range = SAB_CHANLEN, | 45static int sab82532_bfe_attach(struct scc_softc *, int); 46static int sab82532_bfe_iclear(struct scc_softc *, struct scc_chan *); 47static int sab82532_bfe_ipend(struct scc_softc *); 48static int sab82532_bfe_probe(struct scc_softc *); 49 50static kobj_method_t sab82532_methods[] = { 51 KOBJMETHOD(scc_attach, sab82532_bfe_attach), 52 KOBJMETHOD(scc_iclear, sab82532_bfe_iclear), --- 5 unchanged lines hidden (view full) --- 58struct scc_class scc_sab82532_class = { 59 "sab82532 class", 60 sab82532_methods, 61 sizeof(struct scc_softc), 62 .cl_channels = SAB_NCHAN, 63 .cl_class = SCC_CLASS_SAB82532, 64 .cl_modes = SCC_MODE_ASYNC | SCC_MODE_BISYNC | SCC_MODE_HDLC, 65 .cl_range = SAB_CHANLEN, |
68 .cl_rclk = DEFAULT_RCLK, 69 .cl_regshft = 0 | |
70}; 71 72static int 73sab82532_bfe_attach(struct scc_softc *sc, int reset) 74{ 75 struct scc_bas *bas; 76 77 bas = &sc->sc_bas; --- 60 unchanged lines hidden --- | 66}; 67 68static int 69sab82532_bfe_attach(struct scc_softc *sc, int reset) 70{ 71 struct scc_bas *bas; 72 73 bas = &sc->sc_bas; --- 60 unchanged lines hidden --- |