summaryrefslogtreecommitdiffstats
path: root/sys/dev/fb
Commit message (Collapse)AuthorAgeFilesLines
* Start each of the license/copyright comments with /*-, minor shuffle of linesimp2005-01-064-4/+4
|
* Fixed compilation warnings with option VGA_NO_MODE_CHANGE.ru2004-12-151-1/+3
| | | | PR: kern/71130
* Converge towards i386. I originally resisted creating <machine/pc/bios.h>peter2004-09-241-5/+1
| | | | | | | | | | | | because it was mostly irrelevant - except for the silly BIOS_PADDRTOVADDR etc macros. Along the way of working around this, I missed a few things. * Make syscons properly inherit the bios capslock/shiftlock/etc state like i386 does. Note that we cannot inherit the bios key repeat rate because that requires a bios call (which is impossible for us). * Give syscons the ability to beep on amd64. Oops. While here, make bios.c compile and add it to files.amd64.
* While we're revisiting old sins, try to clean up the code a little anddes2004-08-061-168/+176
| | | | make it more style(9)ish.
* Do a pass over all modules in the kernel and make them return EOPNOTSUPPphk2004-07-152-0/+4
| | | | | | | | for unknown events. A number of modules return EINVAL in this instance, and I have left those alone for now and instead taught MOD_QUIESCE to accept this as "didn't do anything".
* - Add missing <sys/module.h>. [1]marius2004-07-091-6/+2
| | | | | | | - Remove unused includes. - Sort includes. Reported by: Pyun YongHyeon <yongari@kt-is.co.kr> [1]
* Do the dreaded s/dev_t/struct cdev */phk2004-06-164-14/+14
| | | | Bump __FreeBSD_version accordingly.
* Remove atdevbase and replace it's remaining uses with direct references tojhb2004-06-101-1/+1
| | | | KERNBASE instead.
* Add missing <sys/module.h> includes currently relying on nested includephk2004-06-031-0/+1
| | | | in <sys/kernel.h>
* add missing #include <sys/module.h>phk2004-05-302-0/+2
|
* Add missing <sys/module.h> includesphk2004-05-301-0/+1
|
* 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
OpenPOWER on IntegriCloud