9946 Commits

Author SHA1 Message Date
Adrien Destugues - PulkoMandy
028ad0311c Fix collecting of ifdef dependant strings
Following some recent changes, the collection of strings does not use
B_COLLECTING_CATKEYS define anymore. Adjust the code to use
B_TRANSLATE_MARK_VOID instead, leading to the same result (string is
added to catalog, but not used)
2012-05-27 08:42:33 +02:00
Axel Dörfler
936b7fe433 Fixed a possible FD leak, CID 702009. 2012-05-25 01:40:31 +02:00
Siarzhuk Zharski
80cbddc9f7 Preventive fixes for possible Coverity complaints in the future. 2012-05-18 22:23:45 +02:00
Siarzhuk Zharski
34e730c8fa Fixes for Coverity CIDs 702013,702014,702015,702016,702017.
Satisfying Coverity for case of resource leak in case open() returns
file descriptor equal to 0.
2012-05-18 22:22:10 +02:00
Alexander von Gluck IV
605041242a radeon_hd: Build fix
* Misplaced '"', sorry for spam
2012-05-09 11:52:51 -05:00
Alexander von Gluck IV
e62d1ff387 radeon_hd: Better handle and detect load on DVI-I connectors
* A tricky situation as DVI-I digital + analog paths show
  up as two display connectors sharing one EDID data source.
2012-05-09 09:08:26 -05:00
Jérôme Duval
91bc463512 USB transport addon: support for alternate interfaces.
* Tested with a Profilic USB-Parallel adapter and a Laserjet printer.
2012-05-03 22:25:40 +02:00
Siarzhuk Zharski
408c7ab11d Publishing USB Audio driver from my dev.branch on the old SVN repo. 2012-05-03 20:37:59 +02:00
Hannah Boneß
7d48219b47 Update layout building code in translators
update layout builder code to new api in:
	* src/add-ons/translators/raw
	* src/add-ons/translators/exr
	* src/add-ons/translators/hvif
	* src/add-ons/translators/tga
	* src/add-ons/translators/webp
	* src/add-ons/translators/gif
	* src/add-ons/translators/sgi
	* src/add-ons/translators/tiff
	* src/add-ons/translators/jpeg
	* src/add-ons/translators/jpeg2000
	* src/add-ons/translators/ppm

Signed-off-by: Alex Wilson <yourpalal2@gmail.com>
2012-05-04 03:13:51 +12:00
Jérôme Duval
77a7e76cc1 Work in progress on xHCI bus driver, testing on emulation.
* Initial testing with QEmu emulation works with interrupt/bulk,
   testing on real hardware still not working. Small bulk requests work
   OK, not bigger ones (for instance it can't load the MediaPlayer
   application at 800KB).
* QEmu doesn't support byte read in the MMIO space, switch to double word.
* added SubmitNormalRequest() for interrupt and bulk endpoints.
* AllocateDevice(): fixed the physical address of the link TRB pointing
   to the beginning of the ring.
* _InsertEndpointForPipe(): setup context for non-default endpoints
   on creation. This should get the device to the configured state.
* _UnlinkDescriptorForPipe(): the next pointer wasn't null after unlinking.
* HandleTransferComplete(): add descriptor to a list to be processed by the
   finisher thread.
* FinishThread(): process finished transfers and call the callback,
   then free the TRB.
2012-05-02 23:45:14 +02:00
Alex Wilson
de245ca017 Adjust IMAP addon for changes in BALMLayout. 2012-05-03 08:44:40 +12:00
Jérôme Duval
2b31b4a88c Work in progress on xHCI bus driver.
* added more traces, coding style
* added xhci_td, xhci_endpoint structs.
* SubmitRequest: this links a 3-stage TD control request into
    the endpoint ring.
* _InsertEndpointForPipe: when a pipe is created, configure the
    endpoint and set up the controller cookie.
* CreateDescriptor and FreeDescriptor: allocates memory for a TD.
* _LinkDescriptorForPipe: link a TD in an endpoint ring.
* _UnlinkDescriptorForPipe: unlink a TD
* AllocateDevice:
    slot number zero isn't valid.
    stick the slot number to the device struct.
    configure the default endpoint before calling SetAddress.
    address is found in the device context instead of the input context.
    device address passed to the USB stack has to begin with 1.
* Ring:
    check for invalid slot/endpoint combination.
    ring the slot doorbell instead of the doorbell 0.
* Root hub: fixed USB version.
* HandleTransferComplete: finds out the TD which submitted a
    transfer.
2012-05-01 22:13:23 +02:00
Jérôme Duval
319a3798bc Work in progress on XHCI bus driver.
* USB Core:
Hub: pass more correct speed, port and address for USB3 devices.
Transfer: doesn't care for bandwidth computation for super speed.
BusManager: Make AllocateDevice() and FreeDevice() virtual, XHCI needs to setup
	a slot and an address for the device.
Add USB_SPEED_WIRELESS usb_speed definition.
Add USB2.0 erratum definition and some USB3 definitions
* XHCI:
Find outs which port supports SuperSpeed or not.
Override AllocateDevice() to configure slot and address for a connected device.
Override FreeDevice() to free ressources associated to a slot.
Add context struct definitions.
2012-05-01 22:13:22 +02:00
Jérôme Duval
d11be97572 XHCI improvements
* remove the xhci cmd complete thread
* creation of the scratchpad area
* wait for running status after starting the controller
* increase delays on controller reset (250ms instead of 100ms)
* use of SpinLocker from AutoLock.h
* add a DoCommand() method to queue a command, ring and wait for the event
  response
* add a method for each command
* XHCI_PORTSC macro was off 1 port
* add definitions for TRB types, Completion Codes.
2012-05-01 22:13:20 +02:00
Siarzhuk Zharski
9930418fd7 Fix the device lookup algorithm
* Fix the device lookup algorithm - sync with correct version used in usb_asix;
* Small code style fix.
2012-05-01 20:32:44 +02:00
Jérôme Duval
80ee381a5f ffmpeg: use the cpu count as decoding thread count. 2012-04-29 15:40:14 +02:00
czeidler
dab1609baf Use BSecureSocket and BSocket instead of ServerConnection.
* When sending a new command, drain all leftover data and not only 1025 chars.
2012-04-29 16:53:40 +12:00
czeidler
3245d56441 Cleanup POP3 connection code.
* Use the ServerConnection class in POP3 too. This means no #ifdef USE_SSL for the connection anymore.
* I remember from the mailing list that there were problems with to many open connection using POP3. Thus, if there is an error or nothing to retrieve close the connection.
2012-04-27 16:04:23 +12:00
czeidler
e2b24ac4ba Update ralink2860 to Korli's version from ticket #8325. 2012-04-27 16:04:23 +12:00
Alexander von Gluck IV
f4647825e7 radeon_hd: display_info struct style cleanup
* No functional change
2012-04-18 21:55:57 +00:00
Alexander von Gluck IV
c363019152 radeon_hd: Make crtc lookup fault less catastrophic 2012-04-18 21:50:39 +00:00
Alexander von Gluck IV
e47f861975 radeon_hd: Fix digital output
* Resolves blocker #8322.
* Should resolve #8151, #8163, #8282, #8457
* Digital output on DVII was getting hard set
  in the encoder to analog / CRT mode.
* We now check the edid "type" flag
* Flag gets set to 1 if edid data from digital
  transmitter, 0 if analog transmitter.
2012-04-18 21:36:16 +00:00
Alexander von Gluck IV
af6e0179ca radeon_hd: DIG encoder work
* Cleanup some AtomBIOS arg versions
* Add tracing to encoder calls
* Program a missing dig lane count
2012-04-18 20:18:21 +00:00
Alexander von Gluck IV
bb228d7ca6 radeon_hd: Only assign encoder to crtc after dpms call
* This is the order I received via email long ago and
  it makes more sense to me then the drm method
2012-04-18 20:18:17 +00:00
Alexander von Gluck IV
9e195872df radeon_hd: Begin work on radeon_hd command processor
* First steps at getting card command processor wired
  up to the ring buffers.
* Code doesn't run yet as I have *no* idea what happens
  when these rings are in an invalid state.
2012-04-17 16:10:40 -05:00
François Revol
3b52696411 Fix gcc2 build. 2012-04-17 19:34:45 +02:00
Alexander von Gluck IV
b213b1bdd8 opengl addons: Add rdef to swrast engines
* Only cosmetic
* Helps differentiate GL renderers.
* Had to use AddResources vs Addon rule for
  resources as the Addon rule doesn't take rdef's
2012-04-17 16:15:38 +00:00
Oliver Tappe
546208a539 More catalog-related cleanup.
* rename B_TRANSLATE_CONTEXT to B_TRANSLATION_CONTEXT and
  B_TRANSLATE_WITH_CONTEXT to B_TRANSLATE_CONTEXT, squashing a TODO
* adjust all uses of both macros in Haiku's source tree
* use correct header guard for collecting/Catalog.h

The renamed macros require adjustments to all external applications
using catalogs.
2012-04-16 21:31:22 +02:00
Oliver Tappe
541ff51a6e Cleanup BCatalogAddOn.
* rename BCatalogAddOn to BCatalogData, since it doesn't represent an
  add-on, but rather the catalog data provided by an add-on
* move BCatalogData out of Catalog.{h,cpp} into its own header and
  implementation file
* drop BCatalogData::MarkForTranslation() methods, they're not needed
* drop BCatalog::GetNoAutoCollectString() methods, they're not being
  used anywhere
* cleanup the B_TRANSLATE_... macros somewhat
* add versions of the B_TRANSLATE_MARK_... macros that are meant to be
  used in void context (when the string isn't being used by the program,
  just meant to be picked up by collectcatkeys).
* adjust several apps to use B_TRANSLATE_MARK_..._VOID where needed
* adjust users of BCatalogAddOn accordingly
2012-04-16 00:04:41 +02:00
Oliver Tappe
5ac65b7f11 More cleanup in locale kit, this time regarding namespaces.
* it's bad practice to do a 'using <namespace>' in a header, as that
  is very likely to have unintended effects, so drop those from a couple
  of private Locale headers
* adjust files all over the locale kit in order to fix the problems
  (by explicitly importing the required classes in the implementation
  files)
2012-04-16 00:04:40 +02:00
Oliver Tappe
7ae67a9920 Drop empty 'zeta' catalog add-on, wouldn't be useful anyway. 2012-04-16 00:04:40 +02:00
Alexander von Gluck IV
325089f1fc radeon_hd: Stub out gfx ring boot.
* Tab fix as well
2012-04-15 11:23:55 -05:00
Axel Dörfler
6ea60bcdba This must be a 64 bit computation for disks larger than 4GB.
* This closes ticket #8460.
* Patch from jahaiku, thanks!
2012-04-15 13:32:19 +02:00
Alexander von Gluck IV
1f0f781876 radeon_hd: Add bunch of Radeon HD Southern Island cards
* Found in recent Gallium RadeonSI commit
2012-04-14 20:14:50 -05:00
Jérôme Duval
b95fa2488a ffmpeg: don't use deprecated API in AVCodecDecoder. 2012-04-11 23:49:30 +02:00
Alexander von Gluck IV
5af067fba4 radeon_hd: Style fix in new ring code
* Thanks Axel for catching this.
2012-04-11 14:23:45 -05:00
Alexander von Gluck IV
745450ade8 radeon_hd: More initial ring queue work
* Rename RenderQueue to RingQueue to be more generic
* We will need two Ring Buffer types, one for
  host -> gpu (render/cp data) and one gpu -> host (irq)
* Add header guard to ringqueue.h
* Things still may change as I work up to a bigger picture.
2012-04-11 14:23:44 -05:00
Jérôme Duval
663a698165 ffmpeg: switch to 0.10 API
* let ffmpeg handle probing buffer sizes.
* definitely helps with #8458. Noticed less drops for #8393.
2012-04-10 23:40:44 +02:00
Jérôme Duval
932ed21aea marvell_yukon: status is actually a uint32. 2012-04-10 22:06:00 +02:00
Alexander von Gluck IV
138f826121 radeon_hd: Add simple ring buffer
* Does radeon specific buffer alignment.
* Still very early (and not used yet).
2012-04-10 13:53:14 -05:00
Alexander von Gluck IV
893c33e1be radeon_hd: Fix silly scope bug in connector_read_mode_lvds
* Local malloc isn't guaranteed outside function
2012-04-09 21:42:39 -05:00
Jérôme Duval
05326911fc ntfs: fixed coverity resource leaks.
* CID 5723, 5724, 5725, 5726, 5728, 5736, 5737
2012-04-08 23:37:19 +02:00
Alexander von Gluck IV
05779cd9e3 glife: Enhance controls
* Re-organize controls to fit small ScreenSaver window
* Add life delay factor slider
* Make control labels more dynamic
* Style cleanup
2012-04-08 00:38:58 -05:00
Alexander von Gluck IV
c81caff900 glife: Redesign control layout
* Use BGroupLayoutBuilder vs static BRect's
2012-04-08 00:38:55 -05:00
Alexander von Gluck IV
09e2df87ba glife: Style cleanup
* BScreenSaver control view cleanup
* Style cleanup some variable names
2012-04-08 00:38:53 -05:00
Alexander von Gluck IV
4b66f476de glife: Style cleanup. Spaces. No functional change. 2012-04-08 00:38:50 -05:00
Alexander von Gluck IV
f6dff25576 glife: Style cleanup. Class var names. No functional change. 2012-04-08 00:38:48 -05:00
Alexander von Gluck IV
cfe5c09adf glife: Ensure viewport isn't null.
* Ensure we don't dereference a null pointer.
* Fixes GLife crash
2012-04-08 00:38:46 -05:00
Pawel Dziepak
3c1afd351d Fix #8420: NetFS does not compile with DEBUG
Debug macros like PRINT, ERROR, etc. are defined differently in NetFS
and UserlandFS. In NetFS they use single parentheses while in UserlandFS
double parentheses are required. Somehow this got mixed up in NetFS and
there were both styles of calling these macros what caused the incorrect
one to produce compilation errors.

Signed-off-by: Ingo Weinhold <ingo_weinhold@gmx.de>
2012-04-07 19:10:52 +02:00
Pawel Dziepak
96944cbb3c Fix #4125: NULL device is translated to '//'
The problem appeared to be on the request creating side (i.e. in the
kernel add-on) which did not support NULL pointers properly.

Relocation of addresses in request when it is received translates
offset = 0, size = 0 to pointer NULL so that no change in that part
of code was required.

Signed-off-by: Ingo Weinhold <ingo_weinhold@gmx.de>
2012-04-07 15:57:53 +02:00