Annotation of sys/arch/macppc/pci/vgafbvar.h, Revision 1.1
1.1 ! nbrk 1: /* $OpenBSD: vgafbvar.h,v 1.11 2006/04/09 12:22:56 matthieu Exp $ */
! 2: /* $NetBSD: vgavar.h,v 1.2 1996/11/23 06:06:43 cgd Exp $ */
! 3:
! 4: /*
! 5: * Copyright (c) 1995, 1996 Carnegie-Mellon University.
! 6: * All rights reserved.
! 7: *
! 8: * Author: Chris G. Demetriou
! 9: *
! 10: * Permission to use, copy, modify and distribute this software and
! 11: * its documentation is hereby granted, provided that both the copyright
! 12: * notice and this permission notice appear in all copies of the
! 13: * software, derivative works or modified versions, and any portions
! 14: * thereof, and that both notices appear in supporting documentation.
! 15: *
! 16: * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
! 17: * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
! 18: * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
! 19: *
! 20: * Carnegie Mellon requests users of this software to return to
! 21: *
! 22: * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
! 23: * School of Computer Science
! 24: * Carnegie Mellon University
! 25: * Pittsburgh PA 15213-3890
! 26: *
! 27: * any improvements or extensions that they make and grant Carnegie the
! 28: * rights to redistribute these changes.
! 29: */
! 30:
! 31: struct vgafb_config {
! 32: /*
! 33: * Filled in by front-ends.
! 34: */
! 35: int vc_ofh; /* openfirmware handle */
! 36: bus_space_tag_t vc_iot, vc_memt;
! 37: bus_space_handle_t vc_ioh_b, vc_ioh_c, vc_ioh_d, vc_memh, vc_mmioh;
! 38: paddr_t vc_paddr; /* physical address */
! 39: /* Colormap */
! 40: u_char vc_cmap_red[256];
! 41: u_char vc_cmap_green[256];
! 42: u_char vc_cmap_blue[256];
! 43:
! 44: /*
! 45: * Private to back-end.
! 46: */
! 47: int vc_ncol, vc_nrow; /* screen width & height */
! 48: int vc_ccol, vc_crow; /* current cursor position */
! 49:
! 50: char vc_so; /* in standout mode? */
! 51: char vc_at; /* normal attributes */
! 52: char vc_so_at; /* standout attributes */
! 53:
! 54: int (*vc_ioctl)(void *, u_long,
! 55: caddr_t, int, struct proc *);
! 56: paddr_t (*vc_mmap)(void *, off_t, int);
! 57:
! 58: struct rasops_info dc_rinfo; /* raster display data*/
! 59:
! 60: bus_addr_t membase;
! 61: bus_size_t memsize;
! 62:
! 63: bus_addr_t mmiobase;
! 64: bus_size_t mmiosize;
! 65:
! 66: int vc_backlight_on;
! 67: int nscreens;
! 68: u_int vc_mode;
! 69: };
! 70:
! 71: int vgafb_common_probe(bus_space_tag_t, bus_space_tag_t,
! 72: u_int32_t, size_t, u_int32_t, size_t, u_int32_t, size_t );
! 73: void vgafb_common_setup(bus_space_tag_t, bus_space_tag_t,
! 74: struct vgafb_config *, u_int32_t, size_t, u_int32_t, size_t,
! 75: u_int32_t, size_t);
! 76: void vgafb_wscons_attach(struct device *, struct vgafb_config *, int);
! 77: void vgafb_wscons_console(struct vgafb_config *);
! 78: void vgafb_cnprobe(struct consdev *cp);
! 79: void vgafb_cnattach(bus_space_tag_t iot, bus_space_tag_t memt,
! 80: void *pc, int bus, int device, int function);
! 81: void vgafb_wsdisplay_attach(struct device *parent,
! 82: struct vgafb_config *vc, int console);
! 83: int vgafbioctl(void *, u_long, caddr_t, int, struct proc *);
! 84: paddr_t vgafbmmap(void *, off_t, int);
! 85: int vgafb_ioctl(void *, u_long, caddr_t, int, struct proc *);
! 86: paddr_t vgafb_mmap(void *, off_t, int);
! 87: int vgafb_alloc_screen(void *v, const struct wsscreen_descr *type,
! 88: void **cookiep, int *curxp, int *curyp, long *attrp);
! 89: void vgafb_free_screen(void *v, void *cookie);
! 90: int vgafb_show_screen(void *v, void *cookie, int waitok,
! 91: void (*cb)(void *, int, int), void *cbarg);
! 92: void vgafb_burn(void *v, u_int on, u_int flags);
CVSweb