fbio.h (276679) | fbio.h (278846) |
---|---|
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 276679 2015-01-05 00:50:16Z nwhitehorn $ | 35 * $FreeBSD: head/sys/sys/fbio.h 278846 2015-02-16 11:49:48Z hselasky $ |
36 */ 37 38#ifndef _SYS_FBIO_H_ 39#define _SYS_FBIO_H_ 40 41#ifndef _KERNEL 42#include <sys/types.h> 43#else --- 66 unchanged lines hidden (view full) --- 110#define FBTYPE_GET_BYTESPP(_fb) ((_fb)->fb_bpp / 8) 111 112#ifdef _KERNEL 113 114struct fb_info; 115 116typedef int fb_enter_t(void *priv); 117typedef int fb_leave_t(void *priv); | 36 */ 37 38#ifndef _SYS_FBIO_H_ 39#define _SYS_FBIO_H_ 40 41#ifndef _KERNEL 42#include <sys/types.h> 43#else --- 66 unchanged lines hidden (view full) --- 110#define FBTYPE_GET_BYTESPP(_fb) ((_fb)->fb_bpp / 8) 111 112#ifdef _KERNEL 113 114struct fb_info; 115 116typedef int fb_enter_t(void *priv); 117typedef int fb_leave_t(void *priv); |
118typedef int fb_setblankmode_t(void *priv, int mode); |
|
118 119struct fb_info { 120 /* Raw copy of fbtype. Do not change. */ 121 int fb_type; /* as defined above */ 122 int fb_height; /* in pixels */ 123 int fb_width; /* in pixels */ 124 int fb_depth; /* bits to define color */ 125 int fb_cmsize; /* size of color map (entries) */ 126 int fb_size; /* total size in bytes */ 127 128 struct cdev *fb_cdev; 129 130 fb_enter_t *enter; 131 fb_leave_t *leave; | 119 120struct fb_info { 121 /* Raw copy of fbtype. Do not change. */ 122 int fb_type; /* as defined above */ 123 int fb_height; /* in pixels */ 124 int fb_width; /* in pixels */ 125 int fb_depth; /* bits to define color */ 126 int fb_cmsize; /* size of color map (entries) */ 127 int fb_size; /* total size in bytes */ 128 129 struct cdev *fb_cdev; 130 131 fb_enter_t *enter; 132 fb_leave_t *leave; |
133 fb_setblankmode_t *setblankmode; |
|
132 133 intptr_t fb_pbase; /* For FB mmap. */ 134 intptr_t fb_vbase; /* if NULL, use fb_write/fb_read. */ 135 void *fb_priv; /* First argument for read/write. */ 136 const char *fb_name; 137 uint32_t fb_flags; 138#define FB_FLAG_NOMMAP 1 /* mmap unsupported. */ 139#define FB_FLAG_NOWRITE 2 /* disable writes for the time being */ --- 480 unchanged lines hidden --- | 134 135 intptr_t fb_pbase; /* For FB mmap. */ 136 intptr_t fb_vbase; /* if NULL, use fb_write/fb_read. */ 137 void *fb_priv; /* First argument for read/write. */ 138 const char *fb_name; 139 uint32_t fb_flags; 140#define FB_FLAG_NOMMAP 1 /* mmap unsupported. */ 141#define FB_FLAG_NOWRITE 2 /* disable writes for the time being */ --- 480 unchanged lines hidden --- |