Deleted Added
full compact
cfi_var.h (189606) cfi_var.h (233553)
1/*-
2 * Copyright (c) 2007, Juniper Networks, Inc.
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 * 1. Redistributions of source code must retain the above copyright

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

21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
22 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
24 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
25 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
1/*-
2 * Copyright (c) 2007, Juniper Networks, Inc.
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 * 1. Redistributions of source code must retain the above copyright

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

21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
22 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
24 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
25 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * $FreeBSD: head/sys/dev/cfi/cfi_var.h 189606 2009-03-09 23:16:02Z sam $
29 * $FreeBSD: head/sys/dev/cfi/cfi_var.h 233553 2012-03-27 15:13:12Z jchandra $
30 */
31
32#ifndef _DEV_CFI_VAR_H_
33#define _DEV_CFI_VAR_H_
34
35struct cfi_region {
36 u_int r_blocks;
37 u_int r_blksz;

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

66extern char cfi_driver_name[];
67extern devclass_t cfi_devclass;
68extern devclass_t cfi_diskclass;
69
70int cfi_probe(device_t);
71int cfi_attach(device_t);
72int cfi_detach(device_t);
73
30 */
31
32#ifndef _DEV_CFI_VAR_H_
33#define _DEV_CFI_VAR_H_
34
35struct cfi_region {
36 u_int r_blocks;
37 u_int r_blksz;

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

66extern char cfi_driver_name[];
67extern devclass_t cfi_devclass;
68extern devclass_t cfi_diskclass;
69
70int cfi_probe(device_t);
71int cfi_attach(device_t);
72int cfi_detach(device_t);
73
74uint32_t cfi_read_raw(struct cfi_softc *, u_int);
74uint32_t cfi_read(struct cfi_softc *, u_int);
75uint8_t cfi_read_qry(struct cfi_softc *, u_int);
76int cfi_write_block(struct cfi_softc *);
77int cfi_block_start(struct cfi_softc *, u_int);
78int cfi_block_finish(struct cfi_softc *);
79
80#ifdef CFI_SUPPORT_STRATAFLASH
81int cfi_intel_get_factory_pr(struct cfi_softc *sc, uint64_t *);
82int cfi_intel_get_oem_pr(struct cfi_softc *sc, uint64_t *);
83int cfi_intel_set_oem_pr(struct cfi_softc *sc, uint64_t);
84int cfi_intel_get_plr(struct cfi_softc *sc, uint32_t *);
85int cfi_intel_set_plr(struct cfi_softc *sc);
86#endif /* CFI_SUPPORT_STRATAFLASH */
87#endif /* _DEV_CFI_VAR_H_ */
75uint32_t cfi_read(struct cfi_softc *, u_int);
76uint8_t cfi_read_qry(struct cfi_softc *, u_int);
77int cfi_write_block(struct cfi_softc *);
78int cfi_block_start(struct cfi_softc *, u_int);
79int cfi_block_finish(struct cfi_softc *);
80
81#ifdef CFI_SUPPORT_STRATAFLASH
82int cfi_intel_get_factory_pr(struct cfi_softc *sc, uint64_t *);
83int cfi_intel_get_oem_pr(struct cfi_softc *sc, uint64_t *);
84int cfi_intel_set_oem_pr(struct cfi_softc *sc, uint64_t);
85int cfi_intel_get_plr(struct cfi_softc *sc, uint32_t *);
86int cfi_intel_set_plr(struct cfi_softc *sc);
87#endif /* CFI_SUPPORT_STRATAFLASH */
88#endif /* _DEV_CFI_VAR_H_ */