summaryrefslogtreecommitdiffstats
path: root/sys/dev/fb
Commit message (Collapse)AuthorAgeFilesLines
* Remove advertising clause from University of California Regent'simp2004-04-072-8/+0
| | | | | | | license, per letter dated July 22, 1999 and email from Peter Wemm, Alan Cox and Robert Watson. Approved by: core, peter, alc, rwatson
* - Use an ihandle_t to store the stdout instance handle instead of atmm2004-04-041-2/+2
| | | | | | | | | | | | phandle_t. Since both are typedefed to unsigned int, this is more or less cosmetic. - Fix the code that determines whether a creator instance was used for firmware output (and should not be blanked on initialization). Since r1.2 of dev/fb/creator.c, this consisted comparing a handle of an instance of a package with a handle of the package itself. Use the test from r1.1, which utilizes OF_instance_to_package(). Submitted by: Marius Strobl <marius@alchemy.franken.de>
* Correct a potential panic condition that could be caused when getting ornectar2004-04-031-2/+4
| | | | | | | setting the VGA palette. Reported by: Christer Öberg <christer.oberg@texonet.com> Reviewed by: bde
* Convert callers to the new bus_alloc_resource_any(9) API.njl2004-03-171-2/+2
| | | | | Submitted by: Mark Santcroos <marks@ripe.net> Reviewed by: imp, dfr, bde
* Device megapatch 4/6:phk2004-02-211-0/+2
| | | | | | | | Introduce d_version field in struct cdevsw, this must always be initialized to D_VERSION. Flip sense of D_NOGIANT flag to D_NEEDGIANT, this involves removing four D_NOGIANT flags and adding 145 D_NEEDGIANT flags.
* Device megapatch 1/6:phk2004-02-211-2/+0
| | | | | | | Free approx 86 major numbers with a mostly automatically generated patch. A number of strategic drivers have been left behind by caution, and a few because they still (ab)use their major number.
* __powerpc__ conditional code for the syscons OpenFirmware/PPC framebuffer.grehan2004-01-211-1/+17
| | | | | | | | | | | | Took the opportunity to reduce __i386__ || __ia64__ || __amd64__ || __sparc64__ || __powerpc__ to !__alpha__ reviewed by: gallatin
* Don't confuse NULL with 0.obrien2004-01-021-3/+3
|
* Fix a typo. Allow for the creator not being stdout.jake2003-11-111-9/+8
|
* Change fb_attach() and fb_detach() to take a integer unit number ratherphk2003-09-262-83/+5
| | | | | | than a dev_t. All of the dev_t's passed were bogusly created with makedev()
* Use __FBSDID().obrien2003-08-247-7/+21
| | | | Also some minor style cleanups.
* Changed ??? to foo in dead code since ??? screws up my editor.jake2003-08-241-1/+1
|
* Add a driver for creator upa frame buffers found in many sparc64 machines.jake2003-08-244-0/+13197
| | | | | | | | | | These are fixed resolution and operate only in pixel mode so they present a challenge to syscons (square peg, round hole, etc, etc). The driver provides a video driver interface for syscons and a separate character device for X to mmap. Wherever possible the creator's accelarated graphics functions are used so text mode is very fast. Based roughly on the openbsd driver.
* o Explicitly cast the second argument to bus_space_set_region_#()marcel2003-08-231-9/+8
| | | | | | | | | | | to intptr_t. This fixes a compiler warning (integer from pointer without cast) in scvgarndr.c when SC_PIXEL_MODE is defined. o Define readb() and writeb(). Both are used in scvgarndr.c when, guess what, SC_PIXEL_MODE is defined. Both changes are ia64 specific. Found by: LINT
* Prefer new location of pci include files (which have only been in theimp2003-08-224-8/+8
| | | | | tree for two or more years now), except in a few places where there's code to be compatible with older versions of FreeBSD.
* Low risk amd64 fix. Use a vm_offset_t for the virtual location of thepeter2003-05-231-2/+2
| | | | | | | buffer space instead of a u_int32_t. Otherwise the upper 32 bits of the address space get truncated and syscons blows up. Approved by: re (safe, low risk amd64 fixes)
* Unbreak alpha and ia64 builds. The previous change made the inclusionmarcel2003-05-021-1/+6
| | | | | | | | | | of <machine/pc/bios.h> specific to i386 and added a conditional define for BIOS_PADDRTOVADDR that depends on ISA_HOLE_START. The latter is undefined on alpha and ia64. Since the former is defined the same on both alpha and ia64, assume the ISA_HOLE_START dependent definition is specific to amd64 and use the identity-mapping in all other cases. This of course is getting uglier every day...
* Add AMD64 support to dev/fb. It isn't optimized.peter2003-05-012-7/+22
|
* Keep syscons specific I/O functions internal/specific to syscons onmarcel2003-04-291-1/+27
| | | | | | | ia64 by defining them in terms of newbus. Add a static inline for fillw(), which doesn't have anything to do with I/O. It's still ugly, but now the ugliness can be removed from ia64 specific headers.
* - Add vm_paddr_t, a physical address type. This is required for systemsjake2003-03-253-3/+3
| | | | | | | | | | | | | | | where physical addresses larger than virtual addresses, such as i386s with PAE. - Use this to represent physical addresses in the MI vm system and in the i386 pmap code. This also changes the paddr parameter to d_mmap_t. - Fix printf formats to handle physical addresses >4G in the i386 memory detection code, and due to kvtop returning vm_paddr_t instead of u_long. Note that this is a name change only; vm_paddr_t is still the same as vm_offset_t on all currently supported platforms. Sponsored by: DARPA, Network Associates Laboratories Discussed with: re, phk (cdevsw change)
* Including <sys/stdint.h> is (almost?) universally only to be able to usephk2003-03-181-1/+0
| | | | | %j in printfs, so put a newsted include in <sys/systm.h> where the printf prototype lives and save everybody else the trouble.
* Gigacommit to improve device-driver source compatibility betweenphk2003-03-031-13/+8
| | | | | | | | | | | | | branches: Initialize struct cdevsw using C99 sparse initializtion and remove all initializations to default values. This patch is automatically generated and has been tested by compiling LINT with all the fields in struct cdevsw in reverse order on alpha, sparc64 and i386. Approved by: re(scottl)
* NODEVFS cleanup:phk2003-02-261-2/+3
| | | | | Don't call cdevsw_{add,remove}() Bracket a more correct subset in "#if experimental"
* Cleanup of the d_mmap_t interface.mux2003-02-256-32/+23
| | | | | | | | | | | | | | | | | | | | | | | | | - Get rid of the useless atop() / pmap_phys_address() detour. The device mmap handlers must now give back the physical address without atop()'ing it. - Don't borrow the physical address of the mapping in the returned int. Now we properly pass a vm_offset_t * and expect it to be filled by the mmap handler when the mapping was successful. The mmap handler must now return 0 when successful, any other value is considered as an error. Previously, returning -1 was the only way to fail. This change thus accidentally fixes some devices which were bogusly returning errno constants which would have been considered as addresses by the device pager. - Garbage collect the poorly named pmap_phys_address() now that it's no longer used. - Convert all the d_mmap_t consumers to the new API. I'm still not sure wheter we need a __FreeBSD_version bump for this, since and we didn't guarantee API/ABI stability until 5.1-RELEASE. Discussed with: alc, phk, jake Reviewed by: peter Compile-tested on: LINT (i386), GENERIC (alpha and sparc64) Runtime-tested on: i386
* Back out M_* changes, per decision of the TRB.imp2003-02-192-5/+5
| | | | Approved by: trb
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.alfred2003-01-212-5/+5
| | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
* Warning fixes.mux2002-11-111-3/+4
|
* Warning fix.mux2002-11-111-2/+2
|
* Fix printf warnings with %j and uintmax_t.jhb2002-11-081-2/+3
|
* Fix rare and probably inconsequential memory leak.phk2002-10-021-1/+3
| | | | Spotted by: FlexeLint
* use __packed.alfred2002-09-231-24/+24
|
* Replace various spelling with FALLTHROUGH which is lint()ablecharnier2002-08-251-5/+5
|
* Turn on TGA support.obrien2002-04-134-13/+49
| | | | Submitted by: Andrew M. Miklic <AndrwMklc@cs.com>
* GC various bits and pieces of USERCONFIG from all over the place.phk2002-04-091-2/+1
|
* Update to C99, s/__FUNCTION__/__func__/,obrien2001-12-101-5/+5
| | | | also don't use ANSI string concatenation.
* syscons' set_border() is now named sc_set_border(), so there is no longerdes2001-11-061-2/+0
| | | | a naming conflict.
* Add the TGA video driver. This is a great accomplishtment and will helpobrien2001-11-015-0/+8384
| | | | | | | | us a lot on older Alphas. Andrew Gallatin, Thomas V. Crimi, and Peter Jeremy contributed to this work along with the submitter. Submitted by: Andrew M. Miklic <miklic@home.com>
* Make this compile on ia64.marcel2001-10-061-1/+4
|
* KSE Milestone 2julian2001-09-124-21/+21
| | | | | | | | | | | | | | Note ALL MODULES MUST BE RECOMPILED make the kernel aware that there are smaller units of scheduling than the process. (but only allow one thread per process at this time). This is functionally equivalent to teh previousl -current except that there is a thread associated with each process. Sorry john! (your next MFC will be a doosie!) Reviewed by: peter@freebsd.org, dillon@freebsd.org X-MFC after: ha ha ha ha
* Fix missing splx().yokota2001-08-101-0/+1
|
* Include opt_splash.h.yokota2001-08-021-0/+2
|
* Add FBIO_BLANK ioctl support. Return ENODEV for yet-to-be-yokota2001-08-021-0/+9
| | | | supported ioctls for now.
* Add some definitions. Their actual support will be addedyokota2001-08-021-0/+2
| | | | to video drivers later.
* s/adress/address/kris2001-07-231-1/+1
| | | | | Inspired by: OpenBSD MFC After: 1 week
* With this commit, I hereby pronounce gensetdefs past its use-by date.peter2001-06-132-7/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace the a.out emulation of 'struct linker_set' with something a little more flexible. <sys/linker_set.h> now provides macros for accessing elements and completely hides the implementation. The linker_set.h macros have been on the back burner in various forms since 1998 and has ideas and code from Mike Smith (SET_FOREACH()), John Polstra (ELF clue) and myself (cleaned up API and the conversion of the rest of the kernel to use it). The macros declare a strongly typed set. They return elements with the type that you declare the set with, rather than a generic void *. For ELF, we use the magic ld symbols (__start_<setname> and __stop_<setname>). Thanks to Richard Henderson <rth@redhat.com> for the trick about how to force ld to provide them for kld's. For a.out, we use the old linker_set struct. NOTE: the item lists are no longer null terminated. This is why the code impact is high in certain areas. The runtime linker has a new method to find the linker set boundaries depending on which backend format is in use. linker sets are still module/kld unfriendly and should never be used for anything that may be modular one day. Reviewed by: eivind
* Send the remains (such as I have located) of "block major numbers" tophk2001-03-261-1/+0
| | | | the bit-bucket.
* #if 0 out a variable only used in #if 0'd code to quiet a warning.jhb2001-03-061-0/+4
|
* Exterminate the use of PSEUDO_SET() with extreme prejudice.peter2001-01-311-10/+22
|
* #if 0 out local variables only used in #if 0'd code and remove unusedjhb2001-01-231-1/+4
| | | | local variables.
* Add the VESA S3 linear framebuffer driver. It works on top of VESA by replacingnsouch2001-01-051-0/+564
| | | | | | | | | the video switch by another. Exactly as VESA does on top of VGA. It adds linear framebuffer to S3 VESA 1.2 cards. Obtained from: The original S3 ISA code comes from Peter Horton <pdh@colonel-panic.com>
OpenPOWER on IntegriCloud