Commit Graph

9466 Commits

Author SHA1 Message Date
Alexander von Gluck IV
7c91a33c84 * RIP Radeon register banging
Remove old non-atombios code
* add encoder.c and encoder.h to handle
  encoder management
* fix pll code to use encoder object id
  vs crtcid


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42797 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-10-03 00:59:44 +00:00
Alexander von Gluck IV
f35af704c8 * use bit-banged edid for monitor ranges
* add function to set encoder to crtc
* clean up some comments


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42796 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-10-03 00:15:04 +00:00
Alexander von Gluck IV
39bc159e6e * small bit of common i2c / ddc white space cleanup
* small bit of tracing cleanup
* no functional change


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42794 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-10-01 03:11:21 +00:00
Alexander von Gluck IV
ae347a6ce0 * squash a *silly* bug
don't set up a pointer and not malloc it.
* small cleanups to radeon_hd i2c bit-banging code
* i2c bit banging is now functioning


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42793 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-10-01 03:07:33 +00:00
Alexander von Gluck IV
70b41cd671 * improve Nothern Islands PCI ID information using FreeBSD
list of Radeon HD Cards
* break tradition of sorting by chipset id because they really
  are not in any kind of order.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42792 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-09-30 20:25:05 +00:00
Matt Madia
ac592b5638 Fixed the build under Haiku.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42790 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-09-30 01:11:24 +00:00
Axel Dörfler
f9a7bd8e55 * install-test-apps is now running through again.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42785 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-09-29 23:19:49 +00:00
Axel Dörfler
e373834fe9 * Minor cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42783 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-09-29 22:48:46 +00:00
Axel Dörfler
fbe9bdf095 * Minor cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42782 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-09-29 22:47:46 +00:00
Alexander von Gluck IV
f61b3e2026 * there's one 'l' in Philips
* no functional change


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42778 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-09-29 15:08:44 +00:00
Alexander von Gluck IV
495a05fa9f * reading through i2c specs, little comment cleanup
* add a few notes for future i2c bit-bangers
* cleanup of tracing
* no real functional change


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42777 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-09-29 15:03:49 +00:00
Alexander von Gluck IV
dd29505893 * remap GPIO pin storage to global struct as they really aren't tied to
a connector. (thus allowing for future non-ddc gpio devices like fan speed)
* map all i2c gpio pins on accelerant init
* use a smaller sub function to attach gpio info to connector i2c info


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42773 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-09-27 21:34:28 +00:00
Alexander von Gluck IV
4a0f028c4d * perform some i2c cleanup from xorg ati driver
* read gpio pins back after setting them to improve reliability


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42772 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-09-27 20:08:46 +00:00
Alexander von Gluck IV
2ce1337c71 * fix several i2c communication bugs
dealing with i2c register addresses.
* cleanup i2c hacks
* now receive the following message in SimNow:
  "No device present at I2C slave address 0x66"


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42769 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-09-26 16:50:29 +00:00
Clemens Zeidler
6c5757eedb Check if the socket has been created successfully.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42766 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-09-23 02:11:32 +00:00
Clemens Zeidler
a8e3ae78c9 Switch to BWeakReference class. Hope this does not break anything. Calling virtual destructur on a struct
should work fine, right?



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42764 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-09-22 22:46:14 +00:00
Alexander von Gluck IV
e40c00685c * correct some naming after deeper investigation of
linux drm driver.  Seems radeon_hd isn't limited to the
  standard 0xa0 i2c slave address.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42762 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-09-21 21:36:00 +00:00
Alexander von Gluck IV
6655050606 * style fix
* clean up int types
* curly brace cleanup
* move vars away from top of functions
  when possible
* split DDR timings to seperate header to
  avoid warnings on unused items
* quite a few automated changes, please excuse
  things within diff still not fixed / incorrect


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42761 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-09-20 13:39:40 +00:00
Alexander von Gluck IV
6fca1a84fc * fix header function define
* while doing our last-resort fallback, skip
  TV DAC encoders as it is likely that is not
  what the user wants. This may need to change
  as the driver matures. (ex: only a tv is
  connected, no edid)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42760 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-09-20 12:47:47 +00:00
Siarzhuk Zharski
1724ebde55 usb_asix driver refactoring:
* work with multicast filter table implemented;
* new device lookup and creation procedure: avoid duplication 
  of supported devices information;
* coding style fixes;
 


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42758 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-09-18 16:47:47 +00:00
Alexander von Gluck IV
117e135799 * ddc still giving 128 bytes of 0's
* add code to check if 0 valid displays were found
* if 0 edid's were found, we inject the first connector
  as a last resort... SimNow seems to be ok with this and
  I get a valid screen mode set :)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42757 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-09-18 15:29:24 +00:00
Siarzhuk Zharski
b1312c5c64 Updating vt612x and jmicron2x0 drivers to FreeBSD Release 8.2 sources.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42754 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-09-14 18:11:04 +00:00
Alexander von Gluck IV
54c0390b90 * remove un-needed i2c_bus on each connector... we simply set this up each time
it's needed using the gpio information
* rename gpio information struct to be cleaner and shorter
* add function to debug found connectors
* set gpio mask to 1 vs the defined mask... this seems to get us closer
  to working ddc / edid per connector
* change gpio_info u16's to u32's to ensure we aren't overflowing anything
* fix bug always setting hw_capable true
* change TRACE to ERROR to always show debug data when called


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42751 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-09-14 15:40:30 +00:00
Siarzhuk Zharski
288723f429 Bringing usb_davicom to life: part 3 of 3:
* Lot of code refactoring and code style fixes;
* Promiscuous mode implemented;
* Multicasting support implemented;
* Binary-search devices table lookup procedure used
  instead of switch one.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42749 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-09-12 19:42:52 +00:00
Siarzhuk Zharski
b337f35c45 Bringing usb_davicom to life: part 2 of 3:
* This part is just fixes to let the driver work. I have decided
  to separate this changes just for Adrien's information because 
  final version will be refactored significantly.
* The fixes:
  - Endpoint 3 acknowledgements must be enabled in USB Control Register
    to let async notifications work;
  - Functions to handle MII registers and MII initialization routines
    are implemented and used;
  - Sending WRITE1_REGISTER request typo was fixed;
  - Small typo in queueing RX iovec fixed: we are receiving 2 blocks not 1;
  - one byte size padding is required in case TX packet length is multiple 
    of pipe max packet size;
  - StopDevice procedure implemented;
  - StartDevice procedure fixed;

* Code style fixes are coming soon. Please be patient.  



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42748 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-09-12 19:35:28 +00:00
Siarzhuk Zharski
ed2e27f066 Bringing usb_davicom to life: part 1 of 3:
* Unfortunately I have to rollback r42712 completely because it was 
"the attempt in the wrong direction" and the working version was already
implemented on top of previous revision. Just fixed version and code style
refactored one are coming soon. Please be patient.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42747 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-09-12 19:19:11 +00:00
Alexander von Gluck IV
3cd033a15c * i2c locking should happen just before reading the edid
locking and unlocked on every bit read sounds excessive
* set vdif and vdif size to NULL... they really aren't needed


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42746 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-09-11 23:26:12 +00:00
Alexander von Gluck IV
f6be39e0ae * correct naming error. (a shift is a shift until you use it.. then its a mask)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42745 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-09-11 21:34:06 +00:00
Axel Dörfler
57f2ed7eb3 * This should fix the GCC4 build (we should really try to eliminate those tiny
include differences between our compiler setups).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42744 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-09-11 20:16:09 +00:00
Axel Dörfler
654613b661 * Implemented intel_propose_display_mode() using the new helper functions.
* In intel_set_display_mode(), we now use the sanitize_display_mode() method
  directly in order to see if the mode is valid (it's valid when it doesn't
  need to be altered anymore).
* This should be the final nail on ticket #7419.
* Automatic whitespace cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42742 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-09-11 18:32:56 +00:00
Axel Dörfler
83187b29d3 * Added helper functions for the "propose mode" accelerant hook.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42741 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-09-11 18:29:50 +00:00
Alexander von Gluck IV
b053beab99 * refactor GPU i2c bit-banging code to be correct using drm as reference
* add i2c locking code that represents common things we need to do before
  and after access


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42740 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-09-11 18:20:41 +00:00
Alexander von Gluck IV
d06251a95a * make ERROR define to always show AtomBIOS parsing errors
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42739 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-09-11 17:15:14 +00:00
Axel Dörfler
8a0a741db6 * Added missing but very common 1920x1080 resolution at 60Hz refresh. This
should help with #7419.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42737 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-09-11 12:21:33 +00:00
Alexander von Gluck IV
f6766f291e * rework i2c read / write to make sense using values provided
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42731 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-09-09 19:43:09 +00:00
Alexander von Gluck IV
f3ccbf7121 * document GPIO values better based on AMD docs
* no functional change


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42730 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-09-09 18:45:38 +00:00
Alexander von Gluck IV
c3ec7fedec * bug fix in AtomBIOS data table parser, incorrect int size causing issues
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42729 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-09-09 17:09:04 +00:00
Alexander von Gluck IV
a9d08e5e27 * adjust error to make more sense
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42728 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-09-09 15:44:27 +00:00
Alexander von Gluck IV
a8b357c747 * run edid check on all connectors regardless of encoder
* correction to output check (B_OK != true)
* check for invalid gpio (prevents seg violation)
* tab cleanup


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42727 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-09-08 22:11:20 +00:00
Alexander von Gluck IV
6b8f21461e * change c to cpp to resolve C89/C99 issue. (thanks Deadyak!)
* changing to cpp uncovered a few bugs in ide_adaptor
* correct losing signed integer
* correct a variable name that conflicted with a type
* gcc2 build now fixed after r42724


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42725 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-09-08 15:47:25 +00:00
Alexander von Gluck IV
51928f9997 * make ata/ide channel pretty names more descriptive
* verified nothing in the source tree references "IDE PCI"
* line length fixes


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42724 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-09-08 03:15:37 +00:00
Alexander von Gluck IV
b5fc0237e1 * add i2c/ddc info storage to connector
* add edid info storage to display
* pass i2c/ddc information to common i2c code
* add code to read/write i2c/ddc
* i2c/ddc read/write code works 'in theory', needs tested
* detect monitors based on presence of edid on connector


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42718 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-09-06 23:00:07 +00:00
Alexander von Gluck IV
440381c60f * rename video_electronics to video_configuration as per Axel
* rename decode_* to get_*
* clean up get_* text when unknown connector/encoder


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42717 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-09-06 16:01:33 +00:00
Adrien Destugues
9bf2d48690 Some more work on usb_davicom driver :
* Setup the interrupt endpoint on device setup, not start
 * Fixup some flags I was setting wrong
 * Add even more debug traces


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42712 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-09-03 20:11:27 +00:00
Alexander von Gluck IV
cfda569d7f * add function to set up i2c bus for connector
* few tab fixes
* add Axel as author as the base i2c stuff is from intel_extreme


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42709 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-09-02 21:11:01 +00:00
Alexander von Gluck IV
a88394e56e * find GPIO pin connector i2c is on for DDC / EDID
* add i2c_bus to connector information


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42708 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-09-02 17:47:14 +00:00
Alexander von Gluck IV
f78f38a51c * rename wimax driver directory to wwan to be more generic
* given the rise of other 4G wwan technology such as lte, this
  seems cleaner and better matches wlan directory for wifi.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42707 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-09-02 16:27:35 +00:00
Alexander von Gluck IV
e53d637520 * reformulate display and connector storage to match AtomBIOS requirements
* each active gDisplay references a gConnector index
* add atombios DAC sense.. this really won't be the main call used...
  AtomBIOS expects you to attempt an EDID read to detect connected displays
* remove old manual DACSense
* next we attempt to add ddc / edid


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42705 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-09-01 15:27:57 +00:00
Jérôme Duval
67eb6cdee8 * extracted some private methods to have a more readable code
* fixed negative parameter values handling
* clean up and method shuffle


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42703 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-30 22:10:46 +00:00
Jérôme Duval
f7ca82dc00 Read the previous descriptor pointer before freeing transfer and transfer descriptors.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42701 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-30 20:46:07 +00:00
Philippe Houdoin
a46e462db9 * Fix the "USB USB Webcam" name: now generic UVC USB webcam will be named, well, that:
Generic UVC USB Webcam.
* Added my own Logitech HD Pro C910, which publish a compound device class, not an UVC class.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42693 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-27 05:54:55 +00:00
Jérôme Duval
51a01ea03b Patch from Gabriel Hartmann for his GSoC UVC project. Coding style updates by myself. Thanks!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42688 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-25 16:36:48 +00:00
Alexander von Gluck IV
b81f42ecbc * complete encoder detection
* need to break out connector and encoder addition into seperate functions as
  the linux kernel did... that function is getting pretty large and deep.
* my card seems to map everything as TV DAC or TMDS... weird.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42684 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-24 14:49:31 +00:00
Alexander von Gluck IV
2c062f84e5 * as we are doing a lot of math on bios in gAtomContext, lets make it a
uint8 vs a void pointer.
* guys at AMD confirmed that the method looking directly at the object table
  should be the only method used on modern cards (r600 or later)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42683 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-24 04:28:46 +00:00
Siarzhuk Zharski
d1e1709087 * ipro1000 driver updated to FreeBSD 8.2 level:
it incorporate now "em" and "lem" freebsd drivers.
  Note: if_igb is not used - too much "undeclared"
  stuff required from the compatibility layer. :-(



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42680 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-23 18:54:25 +00:00
Jérôme Duval
77660b03e8 * threshold higher bit means a full frame. Also use the threshold for micro frames instead of frames.
* introduces fNextStartingFrame to keep track of the next frame to use on next submit.
* set the IOC bit for the last ITD
* computes multiply field of the ITD based on the packed size (1, 2 or 3).
* use locking around linking of ITD
* free descriptors on errors
* on finishing, whenever a non success status is found, set actual length to zero
* on finishing, when copying data to the Transfer object, copy starting on packet boundaries (skipping unused bytes).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42679 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-23 18:36:57 +00:00
Alexander von Gluck IV
77b301cb8b * tab fix, no functional change
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42674 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-21 22:04:34 +00:00
Alexander von Gluck IV
ec89b98617 * remove excess NULL check
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42673 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-21 22:03:36 +00:00
Alexander von Gluck IV
aee8efc244 * add gConnector for card connector storage
* add detect_connectors to detect card connectors
* add infinitely compex detect_connectors_manual
  (used when detect_connectors fails)
* add missing AtomBIOS header


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42670 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-21 21:21:36 +00:00
Alexander von Gluck IV
583110831e * remove tracing on AtomBIOS parser
* fix a few compile issues when tracing is disabled


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42669 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-21 21:10:24 +00:00
Alexander von Gluck IV
3671476941 * add video_electronics.c
(.c to keep compatibility with older C accelerants)
* use functions for decoding video_electronics
* thanks for the guidance Axel!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42668 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-21 17:30:55 +00:00
Siarzhuk Zharski
fab63078c9 No functional changes. Code style violations fixes. Thanks to Axel for pointing out.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42664 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-21 16:56:16 +00:00
Philippe Houdoin
c3688b17e9 Fix gcc 4.5.2 build (unused static function is now an error).
No functional change, sorry.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42661 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-21 14:02:58 +00:00
Siarzhuk Zharski
283db26d5c * FreeBSD compatibility layer for network drivers is modified to handle
NULL-terminated list of driver_t* entries instead of single entry.
  That allows to combine multiple FreeBSD drivers into single Haiku
  driver add-ons;
* Support for DEC 21140 (Tulip) chipsets (provided by the 'de' driver) 
  incorporated into dec21xxx driver. That brings network connectivity to 
  Haiku systems running in MS Virtual PC VMs.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42658 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-21 12:45:12 +00:00
Alexander von Gluck IV
20fbef1e74 * a few additions to the PCI ID list
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42652 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-21 02:57:07 +00:00
Alexander von Gluck IV
11390ce010 * correction to AtomBIOS register loopback calls
* cail calls have their registers multiplied by 4
* solves infinite loops


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42647 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-20 14:29:06 +00:00
Alexander von Gluck IV
d3e8b64208 * introduce mc control calls
* malloc storage for mc state info
* redo pll range struct
* change to ATOM_ENCODER_MODE for connector info
* redo pll calculations to match AtomBIOS requirements
* some structure changes
* no longer init already posted AtomBIOS as it
  causes an infinite loop of AtomBIOS calls


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42644 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-19 23:07:45 +00:00
François Revol
03e3327d33 Add some tracing of PCI device reservations.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42642 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-19 12:18:32 +00:00
Fredrik Holmqvist
fcb8a5cb4e * Updated ACPICA to 20110623.
See http://www.acpica.org/download/changes.txt done after 2010-10-13 for info on ACPI changes.
 * Adapted the embedded controller to match current FreeBSD one.

There will probably be some issues with these changes initially.




git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42637 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-17 19:16:21 +00:00
Alexander von Gluck IV
7a2bb2b04c * backport a missed endian change
* clean up some tabs and spaces


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42625 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-12 02:04:32 +00:00
Alexander von Gluck IV
5cdfd17b4b * backport some additional linux atom parser fixes
* backport fixes to ATOM_IIO_MOVE_ register offsets
* small bit of style correction


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42624 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-12 01:00:34 +00:00
Jérôme Duval
425eff67d6 Locking around descriptors list handling isn't enough, locking is also needed when traversing the list: we instead lock the whole traversing/handling loop.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42623 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-11 17:32:14 +00:00
Alexander von Gluck IV
a823207363 * add card instance to accelerant shared info
* when TRACE_ATOM is enabled in bios.c, we dump
  each accelerant instance of the AtomBIOS rom
  to disk in /boot/common/cache/tmp/ (next to usb
  hid descriptors in the same file name format)
* these images can be parsed with the AtomDis application


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42622 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-11 05:17:34 +00:00
Alexander von Gluck IV
93d4d55295 * a few small style fixes to last commit
* no functional change


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42617 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-10 15:51:00 +00:00
Alexander von Gluck IV
d356bf5033 * consolidate and remove unneeded Xorg headers
* move mc code to more generic gpu source/header
* add gpu reset functions (with r600 documented)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42616 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-10 15:48:20 +00:00
Matt Madia
591d9620b5 Updated (TM) to (R). No functional change.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42613 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-10 00:10:58 +00:00
Matt Madia
10bc147290 Automatic whitespace cleanup. No functional change.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42612 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-10 00:08:43 +00:00
Alexander von Gluck IV
336835776b * clean up tracing and exit gracefully to vesa if
we can't locate an AtomBIOS for the card.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42601 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-08 18:36:45 +00:00
Bruno G. Albuquerque
18fe0231df Add initial vesa modes even if EDID information is present. EDID does not
include all supported video modes. Fixes #4166.

Note that this change will probably show several weird resolution is some
configurations. They are all valid resolutions but are not commom so we need
a way to filter those out.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42600 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-08 16:13:56 +00:00
Alexander von Gluck IV
5348fbe689 * fix trace typedef size to fix iso9660 tracing
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42597 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-07 20:24:34 +00:00
Alexander von Gluck IV
c9c7be9a54 * add initial set of Northern Island cards
* add igp property to pciid map
* add disabled bios pull for r700 and ni cards
* refactor model numbering as >R700 AMD switched
  to named card families


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42596 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-07 20:16:32 +00:00
Axel Dörfler
dc036ee5e1 * Minor simplification.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42595 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-07 15:42:21 +00:00
Jérôme Duval
105eeb9c84 When checkfs stop checking, the block allocator tries to write more blocks than present in fCheckBitmap, so we constrain it
to fNumBlocks.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42594 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-07 14:53:10 +00:00
Jérôme Duval
bdce14985b added std::nothrow for some new calls, and initialize fCheckCookie
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42593 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-07 12:05:22 +00:00
Alexander von Gluck IV
0cd93754a4 * init scratch before card post
* B_OK != 1!, so don't if (status_t)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42592 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-07 05:24:23 +00:00
Alexander von Gluck IV
77e8ac07c6 * add allocation of atombios fb scratch
* add free of allocated fb scratch


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42591 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-07 05:19:42 +00:00
Alexander von Gluck IV
7a2d0c5e92 * lets not make AtomBIOS calls until our
semaphore is created :)
* delete semaphore on AtomBIOS destroy


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42590 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-07 03:48:58 +00:00
Alexander von Gluck IV
ee5d8bd0a8 * tab fix
* add atom_parse_cmd|table_header functions to evaluate
  data structure versions
* convert asic function to status_t and reflect
  execute_table result
* cleanup logic in destroy atombios parser function


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42589 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-07 03:40:23 +00:00
Alexander von Gluck IV
81e071b76e * more style cleanup
* backport additional bugfixes from drm version
* add logic to detect infinite execution loops
* add a semephore to prevent multiple executions on
  non-thread safe code ( this needs testing )


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42585 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-06 07:00:49 +00:00
Alexander von Gluck IV
7eb6bbc78c * style cleanup
* add some missing functions from drm version


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42583 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-06 04:39:47 +00:00
Alexander von Gluck IV
6da3f7d4c1 * lots of changes
* add missing header for some radeon registers
* begin removing now un-needed direct register calls
* move and refactor crtc functions
* fix function naming to be clearer
* create more AtomBIOS style calls
* this will eat your cat at the moment, don't bother testing


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42582 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-05 22:24:57 +00:00
Alexander von Gluck IV
88932cfb41 * repair time by slowing it down
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42580 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-05 05:47:31 +00:00
Alexander von Gluck IV
e7f4040697 * improve debugging in AtomBIOS atom.c parser
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42579 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-05 05:34:28 +00:00
Alexander von Gluck IV
d77ff85e1f * add required atombios.h from drm driver from linux 3.0 with a few tweaks
(we aren't taking ownership of this one.. yikes)
* add first AtomBIOS call to test the waters


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42578 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-05 02:37:05 +00:00
Jérôme Duval
0839540d1e use locking when messing ITD and SITD queues. itd->prev was becoming NULL, thus leading to KDL.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42575 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-04 21:52:03 +00:00
Alexander von Gluck IV
7949c8cbe4 * move create_area for kernel AtomBIOS into radeon_hd_getbios
* only create_area if we found a valid AtomBIOS
* lock down write access to kernel AtomBIOS area after populating
* remove locking on kernel AtomBIOS area as it's not needed


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42573 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-04 15:28:50 +00:00
Alexander von Gluck IV
94e15508ec * clean up style
* remove some un-needed log messages
* memset area from create_area just incase
* add enabled bios read in addition to disabled one


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42566 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-04 04:57:42 +00:00
Alexander von Gluck IV
f0b0d6cb37 * use create_area correctly
* AtomBIOS is now loaded and passed into the radeon_hd accelerant
* correct pointer passing in bios_init
* AtomBIOS is now read and initialized by AtomBIOS parser
* feel free to start testing the driver again :-)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42564 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-04 03:55:01 +00:00
Alexander von Gluck IV
2168cdbddd * bug fix, wrong offset
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42561 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-03 23:26:26 +00:00
Alexander von Gluck IV
3f98c1831c * create area for AtomBIOS
* clone mapped AtomBIOS area into accelerant


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42560 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-03 23:23:16 +00:00
Alexander von Gluck IV
c3cfda776d * don't trample PCI rom config
* better error checking
* the driver can now locate the AtomBIOS on real hw!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42558 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-03 21:42:28 +00:00
Alexander von Gluck IV
77a64ff2c8 * use new PCI.h rom flags
* clean up tracing
* remove infinite loop :)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42556 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-03 20:46:26 +00:00
Alexander von Gluck IV
5cf44dda39 * move obtaining / copying the vga bios into the driver.
* add missing r500 header
* replace r600 headers with newer one from kernel


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42554 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-03 18:16:10 +00:00
Alexander von Gluck IV
1d5cfc649a * move bios functions into bios.cpp
* implement various methods to pull AtomBIOS from card
* add some missing registers to headers from linux drm driver


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42553 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-03 03:02:57 +00:00
Alexander von Gluck IV
8992f603ed * var typo fix in driver rom shared area creation
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42551 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-02 23:13:45 +00:00
Alexander von Gluck IV
81cd663666 * refactor accelerant debugging
* clone VGA rom shared area in accelerant
* enable access, and make a copy of the VGA bios
* give malloc'ed VGA bios pointer to AtomBIOS parser
* Still invalid BIOS magic
* TODO : Move atomBIOS pointer and reorganize some stuff


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42550 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-02 23:11:15 +00:00
Alexander von Gluck IV
39b96f9e92 * Rename PCI rom shared area.. isn't AtomBios until we verify it is
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42546 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-02 22:16:23 +00:00
Alexander von Gluck IV
32e7d18a75 * Quick style cleanup
* Check for failed malloc in atom_parse


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42544 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-02 18:14:54 +00:00
Alexander von Gluck IV
22582a297c * Map AtomBIOS specified by PCI rom into virtual memory
* Point AtomBIOS to PCI rom mapped in memory
* Things no longer crash, but we get an Invalid BIOS Magic error
  in the logs.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42543 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-02 18:05:52 +00:00
Alexander von Gluck IV
4034e8950e * Fix Jamfile to properly reference external source file.
(thanks DeadYak!)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42542 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-02 16:15:32 +00:00
Alexander von Gluck IV
ef2909a10f * Move bios_info into shared info
* Pull pci_rom base address from pci subsystem
* Point AtomBIOS parser to pci rom address
  to set up and malloc atom_context
* This is untested! Don't run on an
  expensive card until I test it on a cheaper
  one!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42541 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-02 14:58:56 +00:00
Alexander von Gluck IV
5136067474 * Initial work on bios_init for setting up AtomBIOS parser
* Refactor AtomBIOS parser to use non-linux-kernel calls
  (normally I would keep it as-is and do wrappers, but the
  AtomBIOS parser has been rewritten from scratch twice
  by its creator  in the last 5 years.. so eh.
* Refactor AtomBIOS parser to be more haiku-like stylewise


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42538 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-02 06:07:49 +00:00
Alexander von Gluck IV
b375e9cd65 * Program DATA_FORMAT to non-interlaced
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42536 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-02 01:07:10 +00:00
Alexander von Gluck IV
cc9e8e94d4 * Add card_info struct used by AtomBIOS parser
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42535 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-01 22:56:18 +00:00
Alexander von Gluck IV
2df3def596 * Remove old legacy internal AtomBIOS parser
* Import "new" AMD AtomBios Parser (aka AMD KGrids)
* Add a new global storage struct for BIOS info
  (ex. location, size, etc)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42534 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-01 22:41:04 +00:00
Adrien Destugues
ab7cbe31c2 Always set the palette registers even if the head is not connected. This will not do anything bad (if the display is disabled, it has no
effect), and since the test was a bit too constraining (I have an LVDS panel on head A), it would prevent setting colors for the CMAP modes.

This finally gets the \n demo working from the original binary from BeOS, without any change.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42523 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-07-31 18:11:26 +00:00
Alexander von Gluck IV
ef3a7658fa bug fix, POWER_SHUTDOWN vs POWER_ON
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42522 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-07-31 16:48:59 +00:00
Alexander von Gluck IV
0e3075fb4d * Provide device chipset in accelerant_device_info
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42516 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-07-30 18:25:08 +00:00
Alexander von Gluck IV
6ab8261b98 * Pass device name into shared info
* Refactor MCFBsetup to be a little simpler for now
* Implement radeon accelerant_device_info for screen preflet
* Re-add CRT Power calls to display code.
* Disable blanking setting for now... just can't figure out
  what AMD wants for this.
* Remove some un-needed locking in the scaling code
* Be sure to disable VGA when set_display_mode is called
* Refactor mode setting code to loop over all possible displays
  and set the provided mode on the attached ones.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42515 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-07-30 17:45:14 +00:00
Jérôme Duval
d6e4f54f2d Patch by Jian Chiang as part of his GSoc Project (coding style fixes by myself):
* xhci controller start operation
* command ring and event ring initialization
* No-Op Command test and real xhci irq handle
* xhci root hub support
* add Super Speed enumeration and xhci_rh.cpp into jamfile


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42511 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-07-29 10:06:34 +00:00
Alexander von Gluck IV
3b1fd3270e * Remove return from testing
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42510 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-07-29 06:12:01 +00:00
Alexander von Gluck IV
eb02753779 * Little cleanup
* Add missing Idle call for connectors
* Reformulate blanking.. this should match what the
  register is after the GTF vesa call
* Set FrameBuffer to card internal address


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42509 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-07-29 06:10:52 +00:00
Alexander von Gluck IV
e1b9d6e674 * Add LVDS handling for TMDSB
* Fix crash situation if no monitors detected
* Assume TMDSB if no monitors sensed (temporary)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42508 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-07-29 03:32:01 +00:00
Alexander von Gluck IV
a956672a33 * Fix a few spots where we were checking for NULL unneededly
* Fix a few spots where we *should* of been checking for NULL
  to prevent referencing a null pointer.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42505 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-07-27 02:26:49 +00:00
Alexander von Gluck IV
13e2521356 * Fix free NULL check style violations
* Remove linux style EINVAL


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42504 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-07-27 01:42:43 +00:00
Clemens Zeidler
6a0ed7da53 Move S&T back into the app server.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42501 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-07-26 22:18:55 +00:00
Alexander von Gluck IV
659fefbd43 * Insert missing case break, CID 10659
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42500 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-07-26 18:36:49 +00:00
Alexander von Gluck IV
271ed0f390 * Fix improper sizeof, CID 10628
* Improve malloc check to look for NULL, CID 10698
* Remove unused size_t


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42499 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-07-26 18:27:39 +00:00
Clemens Zeidler
7c5525e834 Only allow windows with a normal thick border to S&T. Fixes #6647.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42492 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-07-26 04:37:27 +00:00
Clemens Zeidler
837ad4a36f Activate only the top window in a group and not all windows. Fixes #6652 and #6616.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42487 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-07-25 22:26:44 +00:00
Alexander von Gluck IV
0bb924af97 * Add 4250, 4290 PCIIDs as per #7871
* Fix a few tabs to make things consistent


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42485 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-07-25 17:39:20 +00:00
Clemens Zeidler
f4f30311aa Cleanup app server directory a bit by creating a font and a decorator sub folder.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42483 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-07-25 04:31:54 +00:00
Clemens Zeidler
bdfe478e9d Fix the SATDecorator. Much of the stacking part is handled by the DefaultDecorator now.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42479 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-07-25 01:10:02 +00:00
François Revol
811ac4d502 No point in checking the new device for NULL if it's not nothrow.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42474 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-07-24 18:27:05 +00:00
Jérôme Duval
0990a31aa2 fix comments
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42473 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-07-24 16:34:41 +00:00
Alexander von Gluck IV
422a49d2f8 * Add TMDS Set and Power controls
* Call TMDS controls if the monitor is TMDS connected


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42467 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-07-23 14:38:48 +00:00
Alexander von Gluck IV
9e26987aff * Tab fix
* No functional change


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42466 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-07-23 01:32:25 +00:00
Alexander von Gluck IV
d17bf8d4fb * Add fancy detected monitors debug function
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42465 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-07-23 01:27:59 +00:00
Alexander von Gluck IV
f09dc6d975 * Small bit of comment cleanup
* Rename crt_info display_info


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42463 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-07-22 05:14:39 +00:00
Alexander von Gluck IV
95e1d7e828 * Large refactoring of display detection and storage
* Create new display.c/h for display management
* Rename global gCRT to gDisplay
* Add CRT connection type into gDisplay
* Add CRT connection index into gDisplay
* Refactor registers for each display into gDisplay via regs
* We now shouldn't freak out too badly on multi-monitors


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42462 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-07-22 04:59:07 +00:00
Alexander von Gluck IV
787929837b * Add AtomBIOS memory controller callbacks
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42461 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-07-22 01:24:26 +00:00
Axel Dörfler
69b1511d01 * Don't crash on invalid EDID modes.
* This might fix #7847, as well as #7510.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42456 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-07-19 21:54:27 +00:00
Axel Dörfler
d3d53515a9 * Add the width, and height to fill_display_mode(). This should help with #7751
this time.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42454 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-07-19 18:16:58 +00:00
Axel Dörfler
c97f0d47c1 * Coding style cleanup.
* Removed excessive debug output, and values that aren't needed for the timing
  computation.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42450 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-07-19 16:59:50 +00:00
Adrien Destugues
cd4db9ee5d Update usb-floppy icon with a fixed one by jstressman (tweaks the persective and overall look of the icon). Thanks !
Fixes #6677.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42443 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-07-17 11:41:00 +00:00
Axel Dörfler
b2a7732258 * Don't crash if initialModes is NULL, but the count is not.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42440 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-07-16 20:37:35 +00:00
Bruno G. Albuquerque
5eed3d9892 Fix crash in VESA accelerant.
- Keep track of the correct number of initial modes available.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42438 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-07-16 13:59:06 +00:00
Adrien Destugues
eadad13a4f * Fix one more off-by-one error in the interpolating resampler
* Since it now doesn't crash anymore; set it as default.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42436 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-07-16 11:18:54 +00:00
Adrien Destugues
61215fd53d fix bugs in interpolating resampler :
* I got the downsampling version completely wrong. It should now be much better.
 * A small bug in the delta calculation sometimes caused an off-by-one read to the source and a crash of the media add-on server

Effect of this resampler can be heard very clearly using the following setup in Cortex :
 * Demo Audio producer producing a sinewave at any frequency (sampling rate is hardcoded at 44100Hz)
 * Audio output set to 48000 Hz
 * system mixer in between
select either resampler in the mixer and you'll hear the difference immediately.

Should finally fix #1351.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42435 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-07-16 09:15:21 +00:00
Axel Dörfler
2ff8a6237a * Fixed coding style violation introduced with the last commit.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42429 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-07-14 21:30:38 +00:00
Axel Dörfler
0ba65dce69 * Added TODOs.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42428 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-07-14 21:23:47 +00:00
Axel Dörfler
d8c71f47c3 * Only add the VESA modes if there is no EDID available.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42427 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-07-14 21:22:53 +00:00
Axel Dörfler
f7d98b0923 * The VESA accelerant now always makes sure that all supported resolutions are
added to the mode list (in 60 Hz, but that doesn't really matter).
* It does this by iterating over the modes found, and computes the
  display_timings from them using the GTF code.
* This should help with one of the problems of ticket #7751.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42421 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-07-13 23:28:33 +00:00
Axel Dörfler
95009aeeb0 * Imported Andy Ritger's GTF code in compute_display_timing.cpp, and mangled it
into a usable function - this has some coding style issues I did not care to
  fix.
* _AddBaseMode() now computes the mode in case it is not present in the list
  yet.
* This should help with bug #7787.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42420 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-07-13 23:26:26 +00:00
Axel Dörfler
429d0b8c0b * Fixed build.
* Automatic whitespace cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42417 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-07-12 21:51:24 +00:00
Alexander von Gluck IV
84bcfa3d4b * Add mc.cpp for memory controller functions
* Remove read32MC as it doesn't apply to radeon cards >= r600
* Add tmds.cpp for tmds connected monitor management (current radeons
  only have TMDSA for the moment) still needs TDMSPower, etc.
* Add some MC calls to mode.cpp, causes KDL so commented out atm.
* Add command to idle all DACs (although POWER_RESET doesn't do
  anything on DACs, we should be consistent)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42416 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-07-12 20:14:31 +00:00
Alexander von Gluck IV
037bc8a188 * Lots of style cleanup on my code
* Remove some badly ported code in FlashBulkWrite


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42414 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-07-11 21:35:27 +00:00
Alexander von Gluck IV
ff2898e24a * Use haiku provided arch defines Axel pointed out
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42413 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-07-11 20:06:39 +00:00
Alexander von Gluck IV
b8d5c5cec2 * Some cleanup of some really bad style introduced by myself
* No functional change


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42412 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-07-11 20:02:19 +00:00
Alexander von Gluck IV
3fe7883778 * remove superfluous parentheses as per Axel
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42411 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-07-11 18:46:37 +00:00
Alexander von Gluck IV
70d8929d63 * Wrap x86 asm in defines
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42410 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-07-11 18:05:46 +00:00
Alexander von Gluck IV
414b6dd98e DeadYak gave a better solution to r42407, simply typecast the defines as we don't want to modify the AMD radeon_hd register headers
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42409 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-07-11 17:59:36 +00:00
Alexander von Gluck IV
c59e093db8 wrap x86-only asm code in ifdef's to ensure radeon driver compiles on powerpc and other platforms
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42408 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-07-11 17:50:58 +00:00
Alexander von Gluck IV
5da2e46394 prevent radeon_hd enumeral mismatch on powerpc/gcc4
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42407 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-07-11 17:28:14 +00:00
Siarzhuk Zharski
fca9893516 Just for porter's comfort: Original FreeBSD code snippet restored and moved under #ifndef __HAIKU__ section. That should make a hint during updating this file to upcoming releases of FreeBSD.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42406 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-07-11 11:44:10 +00:00
Axel Dörfler
af66203031 * Converted the hash used to the BOpenHashTable instead of khash - basically
just applied r38391 to the IPv6 code (no time to resolve the TODO, and put
  that into a shared class).
* Fixed failure on init handling.
* Not tested, but should work at least better than before, as the hashtable has
  never been initialized before...
* This closes bug #7795.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42399 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-07-09 13:28:51 +00:00
Siarzhuk Zharski
96b88da011 Local Haiku change, missed during update to FreeBSD 8.2 restored.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42398 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-07-09 09:39:58 +00:00
Alexander von Gluck IV
f2fe29a0db * Final (hopefully?) calculation for blank start/end
* Lets actually call PLLPower after PLLSet
* Improve screen blanking function
* Detect DAC/PLL to use separately from CRT id
* Add DACSense that senses displays on DACA/DACB
* Grab CRT in PLL code via gRegister crtid
* Set overscan to 0 for now
* Setting extended video modes now kinda works sometimes :-/


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42397 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-07-09 05:23:51 +00:00
Siarzhuk Zharski
698b6790bc * Network driver for DEC/21143 and K° ("dc") ported from FreeBSD 8.2;
* Network drivers for 3com, ipro100, rtl8139 are updated from FreeBSD 8.2 Release branch;
* Some functions, defines and typedef required by updated and fresh ported FreeBSD
  drivers were added into freebsd_compat layer.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42393 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-07-08 23:00:38 +00:00
Alexander von Gluck IV
eb5c4b0745 * Style Cleanup
* Remove some un-needed test stuff
* Perform a little re-ordering
* Make scale corrections


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42390 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-07-08 04:25:21 +00:00
Alexander von Gluck IV
d97da786e1 * Refactor PLL legacy registers to be pllIndex aware
* Rename PLL register vars to more closely match AMD defines
* Small logic fixes
* Fix pretty large PLLControlTable bug in legacy set.
  Wasn't using output of PLLControlTable.
* Fix *REALLY* big bug in CRTCGrab.
  Using PLL2 value instead of PLL1 due to incorrect
  index offset of pllIndex.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42389 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-07-08 03:35:01 +00:00
Alexander von Gluck IV
b6c5f46896 * Add D2 GRPH update lock register to priv headers
* Add crtControl global register
* Add grphUpdate storage
* Do some logical reordering of register writes
* Correct crt final power-on checks
* Enhance tracing
* Disable PLL, it is needed but seems to completely break
  the modesetting resulting in black-screen-of-doom.
  (fixing PLL set/calibration is now priority one)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42380 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-07-04 22:24:17 +00:00
Clemens Zeidler
33dd44da71 Small leftover from my debug code. Return the correct status now.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42379 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-07-04 21:14:11 +00:00
Clemens Zeidler
63bf94e273 The complete S&T group has an additional, surrounding magnetic border now. Fixes #7437.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42378 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-07-04 21:10:10 +00:00
Alexander von Gluck IV
4c330e8cfd small order of operations fix
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42368 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-07-04 03:10:32 +00:00
Michael Lotz
4cde5cc228 * Fix binding to link level sockets. The bound type was constructed using the
sdl_e_type in network byte order, causing such a socket not to receive
  anything.
  When working around that by not using htons() on bind, sending would then fail
  on such a socket because the byte order is actually required to be swapped
  there.
* Extend the comment for the B_NET_FRAME_TYPE macro to document that the input
  types are supposed to be in host byte order to avoid future confusion.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42357 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-07-01 20:26:37 +00:00
Alexander von Gluck IV
26e18b1f89 gcc2 buildfix; few style adjustments
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42347 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-06-30 21:57:39 +00:00
Clemens Zeidler
9879c0bc8b Forgot this one.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42345 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-06-29 23:40:33 +00:00
Clemens Zeidler
83c3aba207 More localization support by taos, thanks!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42344 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-06-29 22:37:44 +00:00
Clemens Zeidler
531eb250f7 Missed this one.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42338 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-06-28 23:43:34 +00:00
Clemens Zeidler
aba82385f1 Patch by taos. Adds rdef files to make localization working.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42337 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-06-28 23:42:37 +00:00
Rene Gollent
43ad8a3327 Should have been part of r42335.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42336 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-06-28 20:19:41 +00:00
Rene Gollent
124cdd4f57 Applied patch by Gerald Zajac: Adds hardware overlay support to the ATI
mach64/Rage driver. Resolves #5314. Thanks!



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42335 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-06-28 19:13:49 +00:00
Siarzhuk Zharski
4b722b91db Proper handling of middle mouse event on capFourButtons and capMiddleButton
capable touchpads.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42329 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-06-27 18:19:45 +00:00
Michael Lotz
d535a2bec8 While there are USE_SSL checks in the code, provide the corresponding Jamfile
rules. Otherwise the IMAP add-on is always built without SSL support.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42326 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-06-26 22:30:36 +00:00
Siarzhuk Zharski
7f4deb4400 * Implemented PS2_CMD_RESEND command handlig;
* Workaround for touchpad reset timeouts on some HP/Compaq KBCs. Looks like such 
  KBC marks the mouse reset request (xFF) as correctly sent (by xFA answer) but 
  does not wait enough time for the answer from touchpad. So complete answer 
  finally contains xFE xAA x00 bytes. The workaround detects this xFE xAA answer
  and issues the RESEND (xFE) request to touchpad. This forces touchpad to resend
  the last packet of data (xAA x00) that can be processed normally by the host;

* Fix for handling passthrough_command() call. The parent device was disabled at
  start of processing command and was not re-enabled back in case any error return.
  This fixes the touchpad "pass-through" feature handling on the same HP/Compaq HW.
  This KBC has the "pass-through" capability marked ON but cannot handle it as
  currently implemented - there is no answer from corresponding port. The parent 
  device stay in disabled state after this;

* Fix ps2_dev_publish() for handling passthrough devices (parent_dev != NULL)
  This workaround postpone the publishing such device until the parent device
  finishes it's opening and set the PS2_ENABLED_FALG. It prevent from mixing 
  the Synaptics multi-command sequences from synaptics_open() and ps2_dev_publish()
  routines and failing both initializations;

Fixes #2867 #3594 #4315



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42325 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-06-26 19:38:26 +00:00
Siarzhuk Zharski
6b61d62e98 Suppress the keyboard and AUX interrupts during sending
PS/2 active multiplexing activation sequence. This prevent from
IRQ storm on some controllers. Fixes #7635.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42323 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-06-26 18:04:29 +00:00
Jérôme Duval
aaebe6a96f merged changes from 8.2 FreeBSD release for ale, alc and ae drivers
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42317 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-06-25 11:26:35 +00:00
Axel Dörfler
9674328ebe * Minor style cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42296 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-06-24 16:20:46 +00:00
Michael Lotz
80ad7275a9 Fix the build of the pcnet driver. It should probably be updated to the current
FreeBSD version though.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42294 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-06-24 15:19:05 +00:00
Clemens Zeidler
8a26696cbf Patch by mt who also puts the Japanese mail translation into HTA. Thanks! Closes #7689.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42293 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-06-23 19:59:00 +00:00
Alexander von Gluck IV
a1d3b4af1e * Add missing DAC code for >= r620
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42286 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-06-22 22:09:44 +00:00
Alexander von Gluck IV
e3e0bb558a finish off DACPower modes
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42285 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-06-22 21:17:56 +00:00
Clemens Zeidler
839429d5eb - Use soft inequality constraints to describe the window max size. This means the max size of a window is only violated when it is really necessary. In this case the affected windows get a temporary sufficient large max size limit.
- When resizing a window the window size constraint stays soft when solving the layout. This makes sure that the layout constraints can be fulfilled. Fixes r41759.
- Some other refactoring.

S&T should work much better now. Sorry that I wasn't able to finish it before a3.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42280 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-06-22 05:22:04 +00:00
Clemens Zeidler
6a9178f51c Fix the build and put B_UTF8_ELLIPSIS into the B_TRANSLATE macro, my fault.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42269 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-06-20 21:23:07 +00:00
Clemens Zeidler
b2a55ebf98 Apply a nice patch from Taos, just some smaller fixes by myself.
Localize the mail add-ons.
The Japanese translation is attached to #7689. Please give a notice when it is in the translation system and the ticket can be closed.
Does the B_UTF8_ELLIPSIS comes into the B_TRANSLATE macro?



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42265 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-06-20 21:09:11 +00:00
Jérôme Duval
c57f433713 fix the PPC build: don't use NULL for an int parameter, found by gcc 4.5
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42264 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-06-20 17:02:44 +00:00
Axel Dörfler
21c22141b8 * Removed default_sent_directory(), and introduced
default_mail{_in|_out}_directory() methods in the BPrivate namespace.
* Used these methods in the inbound/outbound protocols.
* Moved WriteMessageFile() into the BPrivate namespace as well, and put its
  prototype into a new header MailPrivate.h along with the new directory
  getters.
* Removed the automatic copy to the sent directory again, and only have one
  directory for incoming mail. Incidentally, this fixed #7509, although the
  underlying filter restriction remains.
* Automatic whitespace cleanups, some style cleanups. Sorry for the mess.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42260 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-06-19 22:11:04 +00:00
Axel Dörfler
cffd2917a3 * Style cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42259 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-06-19 22:06:30 +00:00
Jérôme Duval
e53da92708 Part of patch from #6840:
* GCC 4.5 complains about switchs with cases not part of the window_look enum (see WindowPrivate.h).
* To keep them private, cast the enum to int before use in switchs.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42250 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-06-19 18:13:21 +00:00