Deleted Added
full compact
md_var.h (140485) md_var.h (176197)
1/*-
2 * Copyright (c) 1995 Bruce D. Evans.
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

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

22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, 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 * from: FreeBSD: src/sys/i386/include/md_var.h,v 1.40 2001/07/12
1/*-
2 * Copyright (c) 1995 Bruce D. Evans.
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

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

22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, 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 * from: FreeBSD: src/sys/i386/include/md_var.h,v 1.40 2001/07/12
30 * $FreeBSD: head/sys/sparc64/include/md_var.h 140485 2005-01-19 18:24:07Z jhb $
30 * $FreeBSD: head/sys/sparc64/include/md_var.h 176197 2008-02-11 21:40:22Z marius $
31 */
32
33#ifndef _MACHINE_MD_VAR_H_
34#define _MACHINE_MD_VAR_H_
35
36typedef void cpu_block_copy_t(const void *src, void *dst, size_t len);
37typedef void cpu_block_zero_t(void *dst, size_t len);
38

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

55struct md_utrap *utrap_hold(struct md_utrap *ut);
56
57cpu_block_copy_t spitfire_block_copy;
58cpu_block_zero_t spitfire_block_zero;
59
60extern cpu_block_copy_t *cpu_block_copy;
61extern cpu_block_zero_t *cpu_block_zero;
62
31 */
32
33#ifndef _MACHINE_MD_VAR_H_
34#define _MACHINE_MD_VAR_H_
35
36typedef void cpu_block_copy_t(const void *src, void *dst, size_t len);
37typedef void cpu_block_zero_t(void *dst, size_t len);
38

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

55struct md_utrap *utrap_hold(struct md_utrap *ut);
56
57cpu_block_copy_t spitfire_block_copy;
58cpu_block_zero_t spitfire_block_zero;
59
60extern cpu_block_copy_t *cpu_block_copy;
61extern cpu_block_zero_t *cpu_block_zero;
62
63/*
64 * Given that the Sun disk label only uses 16-bit fields for cylinders,
65 * heads and sectors we might need to adjust the geometry of large IDE
66 * disks.
67 * We have to have a knowledge that a device_t is a struct device * here
68 * to avoid including too many things from this file.
69 */
70struct disk;
71struct device;
72void sparc64_ad_firmware_geom_adjust(struct device *dev, struct disk *disk);
73#define ad_firmware_geom_adjust(dev, dsk) \
74 sparc64_ad_firmware_geom_adjust(dev, dsk)
75
63#endif /* !_MACHINE_MD_VAR_H_ */
76#endif /* !_MACHINE_MD_VAR_H_ */