summaryrefslogtreecommitdiff
path: root/sys/dev/fb
Commit message (Collapse)AuthorAgeFilesLines
* This commit was manufactured by cvs2svn to create branch 'RELENG_5_2'.cvs2svn2003-12-074-7264/+0
| | | | Notes: svn path=/releng/5.2/; revision=123193
* Fix a typo. Allow for the creator not being stdout.Jake Burkholder2003-11-111-9/+8
| | | | Notes: svn path=/head/; revision=122471
* Change fb_attach() and fb_detach() to take a integer unit number ratherPoul-Henning Kamp2003-09-262-83/+5
| | | | | | | | | than a dev_t. All of the dev_t's passed were bogusly created with makedev() Notes: svn path=/head/; revision=120465
* Use __FBSDID().David E. O'Brien2003-08-247-7/+21
| | | | | | | Also some minor style cleanups. Notes: svn path=/head/; revision=119418
* Changed ??? to foo in dead code since ??? screws up my editor.Jake Burkholder2003-08-241-1/+1
| | | | Notes: svn path=/head/; revision=119384
* Add a driver for creator upa frame buffers found in many sparc64 machines.Jake Burkholder2003-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. Notes: svn path=/head/; revision=119381
* o Explicitly cast the second argument to bus_space_set_region_#()Marcel Moolenaar2003-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 Notes: svn path=/head/; revision=119359
* Prefer new location of pci include files (which have only been in theWarner Losh2003-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. Notes: svn path=/head/; revision=119277
* Low risk amd64 fix. Use a vm_offset_t for the virtual location of thePeter Wemm2003-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) Notes: svn path=/head/; revision=115253
* Unbreak alpha and ia64 builds. The previous change made the inclusionMarcel Moolenaar2003-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... Notes: svn path=/head/; revision=114485
* Add AMD64 support to dev/fb. It isn't optimized.Peter Wemm2003-05-012-7/+22
| | | | Notes: svn path=/head/; revision=114383
* Keep syscons specific I/O functions internal/specific to syscons onMarcel Moolenaar2003-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. Notes: svn path=/head/; revision=114199
* - Add vm_paddr_t, a physical address type. This is required for systemsJake Burkholder2003-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) Notes: svn path=/head/; revision=112569
* Including <sys/stdint.h> is (almost?) universally only to be able to usePoul-Henning Kamp2003-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. Notes: svn path=/head/; revision=112367
* Gigacommit to improve device-driver source compatibility betweenPoul-Henning Kamp2003-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) Notes: svn path=/head/; revision=111815
* NODEVFS cleanup:Poul-Henning Kamp2003-02-261-2/+3
| | | | | | | | Don't call cdevsw_{add,remove}() Bracket a more correct subset in "#if experimental" Notes: svn path=/head/; revision=111576
* Cleanup of the d_mmap_t interface.Maxime Henrion2003-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 Notes: svn path=/head/; revision=111462
* Back out M_* changes, per decision of the TRB.Warner Losh2003-02-192-5/+5
| | | | | | | Approved by: trb Notes: svn path=/head/; revision=111119
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.Alfred Perlstein2003-01-212-5/+5
| | | | | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT. Notes: svn path=/head/; revision=109623
* Warning fixes.Maxime Henrion2002-11-111-3/+4
| | | | Notes: svn path=/head/; revision=106766
* Warning fix.Maxime Henrion2002-11-111-2/+2
| | | | Notes: svn path=/head/; revision=106765
* Fix printf warnings with %j and uintmax_t.John Baldwin2002-11-081-2/+3
| | | | Notes: svn path=/head/; revision=106662
* Fix rare and probably inconsequential memory leak.Poul-Henning Kamp2002-10-021-1/+3
| | | | | | | Spotted by: FlexeLint Notes: svn path=/head/; revision=104389
* use __packed.Alfred Perlstein2002-09-231-24/+24
| | | | Notes: svn path=/head/; revision=103870
* Replace various spelling with FALLTHROUGH which is lint()ablePhilippe Charnier2002-08-251-5/+5
| | | | Notes: svn path=/head/; revision=102412
* Turn on TGA support.David E. O'Brien2002-04-134-13/+49
| | | | | | | Submitted by: Andrew M. Miklic <AndrwMklc@cs.com> Notes: svn path=/head/; revision=94617
* GC various bits and pieces of USERCONFIG from all over the place.Poul-Henning Kamp2002-04-091-2/+1
| | | | Notes: svn path=/head/; revision=94275
* Update to C99, s/__FUNCTION__/__func__/,David E. O'Brien2001-12-101-5/+5
| | | | | | | also don't use ANSI string concatenation. Notes: svn path=/head/; revision=87599
* syscons' set_border() is now named sc_set_border(), so there is no longerDag-Erling Smørgrav2001-11-061-2/+0
| | | | | | | a naming conflict. Notes: svn path=/head/; revision=86119
* Add the TGA video driver. This is a great accomplishtment and will helpDavid E. O'Brien2001-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> Notes: svn path=/head/; revision=85810
* Make this compile on ia64.Marcel Moolenaar2001-10-061-1/+4
| | | | Notes: svn path=/head/; revision=84580
* KSE Milestone 2Julian Elischer2001-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 Notes: svn path=/head/; revision=83366
* Fix missing splx().Kazutaka YOKOTA2001-08-101-0/+1
| | | | Notes: svn path=/head/; revision=81455
* Include opt_splash.h.Kazutaka YOKOTA2001-08-021-0/+2
| | | | Notes: svn path=/head/; revision=81051
* Add FBIO_BLANK ioctl support. Return ENODEV for yet-to-be-Kazutaka YOKOTA2001-08-021-0/+9
| | | | | | | supported ioctls for now. Notes: svn path=/head/; revision=81039
* Add some definitions. Their actual support will be addedKazutaka YOKOTA2001-08-021-0/+2
| | | | | | | to video drivers later. Notes: svn path=/head/; revision=81038
* s/adress/address/Kris Kennaway2001-07-231-1/+1
| | | | | | | | Inspired by: OpenBSD MFC After: 1 week Notes: svn path=/head/; revision=80203
* With this commit, I hereby pronounce gensetdefs past its use-by date.Peter Wemm2001-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 Notes: svn path=/head/; revision=78161
* Send the remains (such as I have located) of "block major numbers" toPoul-Henning Kamp2001-03-261-1/+0
| | | | | | | the bit-bucket. Notes: svn path=/head/; revision=74810
* #if 0 out a variable only used in #if 0'd code to quiet a warning.John Baldwin2001-03-061-0/+4
| | | | Notes: svn path=/head/; revision=73857
* Exterminate the use of PSEUDO_SET() with extreme prejudice.Peter Wemm2001-01-311-9/+21
| | | | Notes: svn path=/head/; revision=71862
* #if 0 out local variables only used in #if 0'd code and remove unusedJohn Baldwin2001-01-231-1/+4
| | | | | | | local variables. Notes: svn path=/head/; revision=71465
* Add the VESA S3 linear framebuffer driver. It works on top of VESA by replacingNicolas Souchu2001-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> Notes: svn path=/head/; revision=70688
* Convert more malloc+bzero to malloc+M_ZERO.David Malone2000-12-081-6/+5
| | | | | | | | Submitted by: josh@zipperup.org Submitted by: Robert Drehmel <robd@gmx.net> Notes: svn path=/head/; revision=69781
* Disabled EGA/VGA 1bpp/4bpp modes support. This is not real fix, but this comesYoshihiro Takahashi2000-10-311-0/+2
| | | | | | | back to support 8bpp mode. Notes: svn path=/head/; revision=68050
* Remove unneeded #include <sys/proc.h> lines.Poul-Henning Kamp2000-10-291-1/+0
| | | | Notes: svn path=/head/; revision=67882
* Removed extra calculation for X position (PC-98 only).Yoshihiro Takahashi2000-10-281-1/+0
| | | | | | | Submitted by: chi@bd.mbn.or.jp (Chiharu Shibata) Notes: svn path=/head/; revision=67784
* * Completely rewrite the alpha busspace to hide the implementation fromDoug Rabson2000-08-281-0/+1
| | | | | | | | | | | | | | | the drivers. * Remove legacy inx/outx support from chipset and replace with macros which call busspace. * Rework pci config accesses to route through the pcib device instead of calling a MD function directly. With these changes it is possible to cleanly support machines which have more than one independantly numbered PCI busses. As a bonus, the new busspace implementation should be measurably faster than the old one. Notes: svn path=/head/; revision=65176
* Unused include: #include "fb.h"Peter Wemm2000-06-101-1/+0
| | | | Notes: svn path=/head/; revision=61471
* Prevent vidcontrol -i from crashing alphasAndrew Gallatin2000-05-211-0/+8
| | | | | | | | Reported by: Christian Weisgerber <naddy@mips.inka.de> Approved by: yokota@FreeBSD.ORG Notes: svn path=/head/; revision=60742