Deleted Added
full compact
fbio.h (259016) fbio.h (259777)
1/*-
2 * Copyright (c) 1992, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software developed by the Computer Systems
6 * Engineering group at Lawrence Berkeley Laboratory under DARPA
7 * contract BG 91-66 and contributed to Berkeley.
8 *

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

27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * @(#)fbio.h 8.2 (Berkeley) 10/30/93
34 *
1/*-
2 * Copyright (c) 1992, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software developed by the Computer Systems
6 * Engineering group at Lawrence Berkeley Laboratory under DARPA
7 * contract BG 91-66 and contributed to Berkeley.
8 *

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

27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * @(#)fbio.h 8.2 (Berkeley) 10/30/93
34 *
35 * $FreeBSD: head/sys/sys/fbio.h 259016 2013-12-05 22:38:53Z ray $
35 * $FreeBSD: head/sys/sys/fbio.h 259777 2013-12-23 18:09:10Z ray $
36 */
37
38#ifndef _SYS_FBIO_H_
39#define _SYS_FBIO_H_
40
41#ifndef _KERNEL
42#include <sys/types.h>
43#else

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

120
121/* XXX: should use priv instead of fb_info too. */
122typedef void fb_copy_t(struct fb_info *sc, uint32_t offset_to, uint32_t offset_from,
123 uint32_t size);
124typedef void fb_wr1_t(struct fb_info *sc, uint32_t offset, uint8_t value);
125typedef void fb_wr2_t(struct fb_info *sc, uint32_t offset, uint16_t value);
126typedef void fb_wr4_t(struct fb_info *sc, uint32_t offset, uint32_t value);
127
36 */
37
38#ifndef _SYS_FBIO_H_
39#define _SYS_FBIO_H_
40
41#ifndef _KERNEL
42#include <sys/types.h>
43#else

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

120
121/* XXX: should use priv instead of fb_info too. */
122typedef void fb_copy_t(struct fb_info *sc, uint32_t offset_to, uint32_t offset_from,
123 uint32_t size);
124typedef void fb_wr1_t(struct fb_info *sc, uint32_t offset, uint8_t value);
125typedef void fb_wr2_t(struct fb_info *sc, uint32_t offset, uint16_t value);
126typedef void fb_wr4_t(struct fb_info *sc, uint32_t offset, uint32_t value);
127
128typedef int fb_ioctl_t(struct cdev *, u_long, caddr_t, int, struct thread *);
129typedef int fb_mmap_t(struct cdev *dev, vm_ooffset_t offset, vm_paddr_t *paddr,
130 int prot, vm_memattr_t *memattr);
131
128struct fb_info {
129 /* Raw copy of fbtype. Do not change. */
130 int fb_type; /* as defined above */
131 int fb_height; /* in pixels */
132 int fb_width; /* in pixels */
133 int fb_depth; /* bits to define color */
134 int fb_cmsize; /* size of color map (entries) */
135 int fb_size; /* total size in bytes */
136
137 /* Methods. */
138 fb_write_t *fb_write; /* if NULL, direct mem write. */
139 fb_read_t *fb_read; /* if NULL, direct mem read. */
132struct fb_info {
133 /* Raw copy of fbtype. Do not change. */
134 int fb_type; /* as defined above */
135 int fb_height; /* in pixels */
136 int fb_width; /* in pixels */
137 int fb_depth; /* bits to define color */
138 int fb_cmsize; /* size of color map (entries) */
139 int fb_size; /* total size in bytes */
140
141 /* Methods. */
142 fb_write_t *fb_write; /* if NULL, direct mem write. */
143 fb_read_t *fb_read; /* if NULL, direct mem read. */
144 fb_ioctl_t *fb_ioctl; /* Can be NULL. */
145 fb_mmap_t *fb_mmap; /* Can be NULL. */
140
146
147 struct cdev *fb_cdev;
148
141 fb_wr1_t *wr1;
142 fb_wr2_t *wr2;
143 fb_wr4_t *wr4;
144 fb_copy_t *copy;
145 fb_enter_t *enter;
146 fb_leave_t *leave;
147
148 intptr_t fb_pbase; /* For FB mmap. */

--- 485 unchanged lines hidden ---
149 fb_wr1_t *wr1;
150 fb_wr2_t *wr2;
151 fb_wr4_t *wr4;
152 fb_copy_t *copy;
153 fb_enter_t *enter;
154 fb_leave_t *leave;
155
156 intptr_t fb_pbase; /* For FB mmap. */

--- 485 unchanged lines hidden ---