Deleted Added
full compact
mk48txxvar.h (201004) mk48txxvar.h (201005)
1/*-
2 * Copyright (c) 2000 The NetBSD Foundation, Inc.
3 * All rights reserved.
4 *
5 * This code is derived from software contributed to The NetBSD Foundation
6 * by Paul Kranenburg.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 14 unchanged lines hidden (view full) ---

23 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
25 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27 * POSSIBILITY OF SUCH DAMAGE.
28 *
29 * $NetBSD: mk48txxvar.h,v 1.6 2008/04/28 20:23:50 martin Exp $
30 *
1/*-
2 * Copyright (c) 2000 The NetBSD Foundation, Inc.
3 * All rights reserved.
4 *
5 * This code is derived from software contributed to The NetBSD Foundation
6 * by Paul Kranenburg.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 14 unchanged lines hidden (view full) ---

23 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
25 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27 * POSSIBILITY OF SUCH DAMAGE.
28 *
29 * $NetBSD: mk48txxvar.h,v 1.6 2008/04/28 20:23:50 martin Exp $
30 *
31 * $FreeBSD: head/sys/dev/mk48txx/mk48txxvar.h 201004 2009-12-25 21:41:05Z marius $
31 * $FreeBSD: head/sys/dev/mk48txx/mk48txxvar.h 201005 2009-12-25 21:53:20Z marius $
32 */
33
34typedef uint8_t (*mk48txx_nvrd_t)(device_t dev, int off);
35typedef void (*mk48txx_nvwr_t)(device_t dev, int off, uint8_t v);
36
37struct mk48txx_softc {
32 */
33
34typedef uint8_t (*mk48txx_nvrd_t)(device_t dev, int off);
35typedef void (*mk48txx_nvwr_t)(device_t dev, int off, uint8_t v);
36
37struct mk48txx_softc {
38 bus_space_tag_t sc_bst; /* bus space tag */
39 bus_space_handle_t sc_bsh; /* bus space handle */
38 struct resource *sc_res;/* bus resource */
40
41 struct mtx sc_mtx; /* hardware mutex */
42 eventhandler_tag sc_wet; /* watchdog event handler tag */
43
44 const char *sc_model; /* chip model name */
45 bus_size_t sc_nvramsz; /* Size of NVRAM on the chip */
46 bus_size_t sc_clkoffset; /* Offset in NVRAM to clock bits */
47 u_int sc_year0; /* year counter offset */

--- 15 unchanged lines hidden ---
39
40 struct mtx sc_mtx; /* hardware mutex */
41 eventhandler_tag sc_wet; /* watchdog event handler tag */
42
43 const char *sc_model; /* chip model name */
44 bus_size_t sc_nvramsz; /* Size of NVRAM on the chip */
45 bus_size_t sc_clkoffset; /* Offset in NVRAM to clock bits */
46 u_int sc_year0; /* year counter offset */

--- 15 unchanged lines hidden ---