Commit Graph

8276 Commits

Author SHA1 Message Date
Philippe Houdoin
307ff45454 Promoted newest 3dfx video driver by Gerald Zajac in place of the outdated tdfx driver.
Added to Haiku image.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37294 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-28 20:43:37 +00:00
Wim van der Meer
f52d672815 Compiler warning and code style fixes. No functional change.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37273 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-27 08:40:54 +00:00
Wim van der Meer
0b392e0ec9 Fixes compiler warnings and a few minor code style violations. No functional change.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37272 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-27 06:20:23 +00:00
Wim van der Meer
8bef36786e Compiler warning fix. No functional change.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37271 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-27 06:00:17 +00:00
Wim van der Meer
f1143621ca Compiler warning fixes. No functional change.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37270 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-27 05:49:19 +00:00
Wim van der Meer
23c0ae0362 Compiler warning fixes and code style cleanup. No Functional changes.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37269 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-27 03:02:48 +00:00
Fredrik Holmqvist
cfb281bd72 ACPI Module info for prepare_sleep_state, enter_sleep_state, reboot didn't look to be right.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37260 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-26 09:59:36 +00:00
Ingo Weinhold
45bd7bb3db Removed unnecessary inclusions of <boot/kernel_args.h> in private kernel
headers and respectively added includes in source files.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37259 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-25 22:16:10 +00:00
Wim van der Meer
27a54cf005 Compiler warning fix and code style cleanup. No functional change.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37257 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-25 14:27:20 +00:00
Ingo Weinhold
b3dc81b1c6 Renamed to C++.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37255 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-25 13:39:06 +00:00
Wim van der Meer
fc86770ba9 Compiler warning fixes.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37253 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-25 13:31:17 +00:00
Philippe Houdoin
fd9fa13896 Style cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37242 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-24 04:29:38 +00:00
Philippe Houdoin
a56bc48835 ImÃport new 3dfx graphics driver from Gerald Zajac (see #6215.
Supports Banshee, Voodoo3 and Voodoo5 chips.
It will be promoted as older tdfx replacement soon, but not until 
my small changes around phys_addr_t are validated.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37241 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-24 03:47:49 +00:00
Ingo Weinhold
8d71819a01 Restrict B_DMA_HIGH_ADDRESS to 4 GB. AHCI can generally support 64 bit DMA,
but whether the respective controller does is indicated by a capability flag,
which we can't easily access at this point.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37228 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-23 13:36:08 +00:00
Ingo Weinhold
5e679f282f Set B_DMA_HIGH_ADDRESS to 4 GB in the ATA/IDE modules.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37227 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-23 13:31:03 +00:00
Ingo Weinhold
9fb2d73772 Replaced B_32_BIT_MEMORY by B_32_BIT_FULL_LOCK and B_32_BIT_CONTIGUOUS, so
the constraint can be expressed more precisely. ATM B_32_BIT_FULL_LOCK is
implemented as B_32_BIT_CONTIGUOUS when B_HAIKU_PHYSICAL_BITS > 32, though.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37226 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-23 13:29:25 +00:00
Ingo Weinhold
06a6bec0c0 Force 32 bit physical addresses.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37220 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-21 23:22:59 +00:00
Ingo Weinhold
3553f1894d Use the correct type for physical addresses.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37219 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-21 23:22:19 +00:00
Ingo Weinhold
6a76b51960 * Force 32 bit physical addresses.
* Added TODO about apparently ignored 64 KB boundary.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37218 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-21 23:21:07 +00:00
Ingo Weinhold
24309cde24 Fixed more issues with 64 bit physical addresses. Mostly by restricting
allocations to 32 bit.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37217 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-21 22:54:42 +00:00
Ingo Weinhold
34a662eda7 Force 32 bit physical addresses. Added TODOs.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37215 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-21 22:02:31 +00:00
Ingo Weinhold
509c0b22d5 Radeon_PrepareDMA(): Fail when encountering physical addresses > 4 GB.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37214 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-21 21:48:02 +00:00
Ingo Weinhold
d108c41998 Force memory allocations to 32 bit physical addresses. The code using them
has implicit limitations (probably because the devices/controllers/... do).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37213 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-21 21:17:23 +00:00
Ingo Weinhold
2cbd922b91 Removed undead code.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37212 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-21 21:00:51 +00:00
Ingo Weinhold
fb2ec51289 Fixed build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37211 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-21 21:00:28 +00:00
Ingo Weinhold
c53724f7bf Added work-arounds for intel_gart not being able to deal with physical
addresses > 4 GB.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37210 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-21 20:21:06 +00:00
Ingo Weinhold
160c9c661d scsi_alloc_dma_buffer():
* Use create_area_etc() instead of create_area() so we don't have to deal
  with the physical address restrictions by hand.
* Force physical addresses < 4 GB for the time being.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37209 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-21 19:25:50 +00:00
Ingo Weinhold
bf48aa4321 scsi_init_emulation_buffer():
* Use create_area_etc() instead of create_area(), so the alignment doesn't
  need to be ensured by hand.
* Use B_32_BIT_MEMORY for the time being.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37207 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-21 18:50:51 +00:00
Adrien Destugues
bb61af4f64 iPatch by Jorma Karvonen : fix warning about deprecated convertion in raw translator.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37206 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-21 18:49:53 +00:00
Ingo Weinhold
84161eb0da Removed useless code.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37205 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-21 18:26:41 +00:00
Ingo Weinhold
41ad209240 For the time being use B_32_BIT_MEMORY to allocate the auto-sense area.
Should rather use the device's DMA restrictions.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37204 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-21 18:26:12 +00:00
Ingo Weinhold
ae531e279d prepare_sleep_state():
* Use the respective error types for OS and ACPICA functions.
* Don't lock the memory. The caller must do that, since there's no balancing
  function that would unlock the memory again.
* Get the memory map of the given function, not of the on-stack variable.
* Added 64 bit support and a check for the PAE case.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37202 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-21 17:15:52 +00:00
Ingo Weinhold
64cf56f5cd Force allocation of physical memory < 4 GB until the related TODOs are fixed.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37201 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-21 16:47:29 +00:00
Ingo Weinhold
02507604e7 read_write(): Consider a request created from an io_operation DMA safe. This
saves some checking in the bus manager.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37199 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-21 16:19:49 +00:00
Ingo Weinhold
1043be1d7c Fixed build -- code including <vm/vm.h> must be C++.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37198 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-21 16:14:31 +00:00
Ingo Weinhold
0a35130cc6 Removed undead code.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37196 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-21 16:00:37 +00:00
David McPaul
7436ac49e5 Code Cleanup, Performance improvements, Seeking Improvements. Audio Seek still not quite right though.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37165 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-18 09:16:05 +00:00
Rudolf Cornelissen
e48ec1b5e7 added engine function OFFSCREEN_TO_SCREEN_SCALED_FILTERED_BLIT. Not used yet, testing and wip. Function is confirmed up and running on geforce 7200, 6200, 6600, 5200.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37158 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-16 20:06:44 +00:00
Rudolf Cornelissen
baf432d5f6 added recognition for case 0x03d510de: /* Nvidia Geforce 6100 nForce 420 */
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37157 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-16 19:32:31 +00:00
Rudolf Cornelissen
e904206b8b added recognition for Geforce 7300 GT id 0x02e2, ticket #5872, by Ziusudra. Thanks!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37156 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-16 18:47:34 +00:00
Rudolf Cornelissen
d311275f45 added recognition for Geforce 7100 nForce 630i, ticket #6135, diver. Thanks!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37155 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-16 18:30:43 +00:00
Rudolf Cornelissen
01654a9daa modified force_ws option to include 16:9 aspect modes so both 16:9 and 16:10 modes are settable with this option. version is 1.08.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37152 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-15 20:24:57 +00:00
Philippe Houdoin
945ca4378b Style cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37150 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-15 19:12:29 +00:00
Philippe Houdoin
6985b0a46f USB devices should report better than generic B_ERROR in order to
help the stack to detect and handle hotplug device removal.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37144 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-15 01:29:20 +00:00
Ingo Weinhold
d6e307aed9 Until the adapter interface has been changed, play it safe and restrict the
high address for DMA to 4 GB.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37142 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-15 00:08:27 +00:00
Philippe Houdoin
2aab101928 Register for only supported devices, which reduce a bit overhead when unrelated USB device is plugged-in.
Applied patch for #5209 by oruizdorantes for usb_asix, do the same for usb_davicom.
Will eventually rework it in order to remove duplicated IDs list.
The usb_serial driver also needs the same optimization, 
but gathering the IDs list will take more time than refactor the code and since 
usb_serial is not yet included in haiku image neither ready (no tty module), there is less user experience immediate gain...



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37135 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-14 21:43:29 +00:00
Oliver Ruiz Dorantes
a5bf12376d *Incorrect endianess handling from bdaddr at parsing from string.
*Remove bluetooth_util deprecated header
*Issue conn_req for socket connect() call



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37132 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-14 20:04:10 +00:00
Ingo Weinhold
a8ad734f1c * Introduced structures {virtual,physical}_address_restrictions, which specify
restrictions for virtual/physical addresses.
* vm_page_allocate_page_run():
  - Fixed conversion of base/limit to array indexes. sPhysicalPageOffset was not
    taken into account.
  - Takes a physical_address_restrictions instead of base/limit and also
    supports alignment and boundary restrictions, now.
* map_backing_store(), VM[User,Kernel]AddressSpace::InsertArea()/
  ReserveAddressRange() take a virtual_address_restrictions parameter, now. They
  also support an alignment independent from the range size.
* create_area_etc(), vm_create_anonymous_area(): Take
  {virtual,physical}_address_restrictions parameters, now.
* Removed no longer needed B_PHYSICAL_BASE_ADDRESS.
* DMAResources:
  - Fixed potential overflows of uint32 when initializing from device node
    attributes.
  - Fixed bounce buffer creation TODOs: By using create_area_etc() with the
    new restrictions parameters we can directly support physical high address,
    boundary, and alignment.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37131 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-14 16:25:14 +00:00
Axel Dörfler
35f8d08009 * Fixed the good old operator& precedence bug I noticed while looking over a
patch by Ziusudra.
* Use new(std::nothrow) instead of new.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37126 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-13 16:52:21 +00:00
Jérôme Duval
30dabe8cd9 added missing return, noticed by stippi. Thanks!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37123 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-12 19:00:11 +00:00
Jérôme Duval
3f0827a2d1 * fixes a warning
* try to launch screen_blanker by path when a launch by signature fails.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37120 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-12 17:47:47 +00:00
Jérôme Duval
b14ae02b95 some verbs use a 16 bits payload
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37114 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-12 14:16:30 +00:00
Jérôme Duval
9a0a4979d5 * add some helper functions to read/write verbs.
* try at support realtek alc888. alsa uses this init sequence.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37113 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-12 14:02:50 +00:00
Ingo Weinhold
bdc4a73afc Disable debug output also in C++ mode.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37102 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-11 18:04:25 +00:00
Ingo Weinhold
1d26c7248f vm_page_allocate_page_run(): Added parameter "limit", specifying the upper
physical address limit for the page run to allocate.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37086 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-10 17:30:49 +00:00
Axel Dörfler
4c75e72cde * Fixed style violations introduced by Rudolf.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37083 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-10 10:56:05 +00:00
Rudolf Cornelissen
a586cdf275 added ricatech netbook touchpad recognition. works ok now. hope nobody minds..
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37082 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-10 10:48:07 +00:00
Ingo Weinhold
297bfa1aba Converted sources that include the private <vm/vm.h> to C++. Fixes the build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37081 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-10 10:38:29 +00:00
Joachim Seemer
2d192e7a80 Improved TeamManager default button behaviour, closing #6051.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37063 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-08 16:43:14 +00:00
Jérôme Duval
fede7ab530 * updated if_re to HEAD from FreeBSD, keeping most Haiku changes (re_defrag was removed for the time being).
I'd like to know if keeping re_defrag is required. Tests welcome (see #5180).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37041 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-06 17:53:25 +00:00
Jérôme Duval
786171e012 * Locks fLocker when drawing. This avoids a cleanup while drawing (fixes bug #6138).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37035 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-06 14:05:04 +00:00
Axel Dörfler
cdfd124b11 * Now phys_addr_t should be used where needed.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37028 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-06 09:39:38 +00:00
Rene Gollent
5003f66a4c The physical base pointer can be NULL since it's only allocated if certain flags are passed. Fixes regression introduced in r36999 and hopefully ticket #6137. Axel, please review.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37016 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-05 02:10:14 +00:00
Jérôme Duval
77ba3b5259 * whitespace cleanup and some style fixes
* fixes TODO about using phys_addr_t instead of void*


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37015 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-04 23:04:09 +00:00
Jérôme Duval
ac0b32534b * whitespace cleanup and some style fixes
* fixes TODO about using phys_addr_t instead of void*


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37013 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-04 22:52:06 +00:00
Jérôme Duval
e43d37db09 * added idt codec vendor id
* added quirks for idt 0x76b2 and apple macbook 0x00a1
* add headphones to the output path in case one input has a path to a used output


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37012 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-04 22:25:51 +00:00
Axel Dörfler
32ebe87c01 * Enabled debug output for now.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37006 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-04 07:42:38 +00:00
Ingo Weinhold
1d578e15fe Fixed more address types related issues. Mostly printf() or comparison
warnings, but also some oversights from earlier changes.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37000 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-02 20:46:49 +00:00
Ingo Weinhold
19a0767e35 Quick and dirty work-around for broken interface.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36999 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-02 20:43:59 +00:00
Ingo Weinhold
435c43f591 * Introduced type generic_io_vec, which is similar to iovec, but uses types
that are wide enough for both virtual and physical addresses.
* DMABuffer, IORequest, IOScheduler,... and code using them: Use
  generic_io_vec and generic_{addr,size}_t where necessary.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36997 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-02 18:42:20 +00:00
François Revol
0c538753e2 Attempt to fix several flaws that prevented me from backing up my 650MB of mails from my BeOS partition:
- Select() didn't actually reselect even when asked to force things from AddMessage(), making the uploaded mail get an off-by-one unique id assigned and a second copy downloaded on subsequent fetching, though this would really need proofreading as I'm not really sure how it all works,
- the allocated buffer wasn't freed, making mail_daemon allocate 650MB, which obviously crashed when out of physical ram, now it only uses 15MB :p,
- try to find workable IMAP flags for sent and pending mails, or use custom ones when the server allows arbitrary flags,
- the LIST command wasn't checked for correct response, making subsequent commands like CREATE mailbox fail from the OK answer of previous ones when syncing on a new accound,
- try to read the creating time (actually modification time since creation time is reset when copying files around) and pass it to APPEND command so I won't get the whole 10000 mails all received as of today.
Now I can put all my old mails on an imap server (tested on dovecot) to read it from other OSes.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36995 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-01 19:04:00 +00:00
Siarzhuk Zharski
a5bc5bb66d Fixed Haiku coding style violations mostly pointed by FuncHaikuCheck.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36991 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-01 18:50:04 +00:00
Axel Dörfler
8b5a01bb4d * The adjusted capacity was one block too short.
* Added debug output to test_capacity().
* Minor other cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36990 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-01 14:34:51 +00:00
Axel Dörfler
8e8739eb3c * Try at solving bug #6036; similar to Linux, we now try to cut down the
capacity by trying to read at the end of the medium.
* Not tested at all yet.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36989 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-01 13:39:12 +00:00
Axel Dörfler
455b379c27 * Added a read_write() function to the scsi_periph module.
* Internally, moved the contents of periph_io() into a static read_write()
  function, and use it from the new periph_read_write() as well.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36988 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-01 13:37:55 +00:00
Axel Dörfler
8825d45d57 * Minor cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36987 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-01 12:06:56 +00:00
Axel Dörfler
03768a4052 * Introduced IOScheduler::MediaChanged() - this is now called by scsi_cd instead
of having the logic be triggered by IOScheduler::SetDeviceCapacity(), as that
  one might actually be called more often (for each call to update_capacity(),
  ie. each B_GET_GEOMETRY/B_GET_DEVICE_SIZE will trigger it), and there is no
  reason to throw away the cache every time (will make a difference during
  partition/file system detection).
* In cd_init_device() just call update_capacity() instead of duplicating its
  code.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36986 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-01 12:05:24 +00:00
Axel Dörfler
266ee1f290 * Added a TODO about reporting partial transfers.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36985 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-01 11:59:23 +00:00
Axel Dörfler
36f016ddbe * Enlarged the identify TOC buffer to 2048 bytes just to be sure.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36984 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-06-01 11:56:21 +00:00
Siarzhuk Zharski
98694dd385 Fixed using user_memcpy for data received from userlad. This fixes ticket #6082.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36975 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-05-31 19:30:48 +00:00
Axel Dörfler
9a063f059c * Fixed the AGP interface to correctly use phys_addr_t where needed.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36962 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-05-28 09:19:11 +00:00
Ingo Weinhold
64d79eff72 * Changed physical_entry::{address,size} to phys_{addr,size}_t and changed
map_physical_memory()'s physicalAddress parameter type from void* to
  phys_addr_t. This breaks source compatibility, but -- as long as
  phys_{addr,size}_t remain 32 bit wide -- keeps binary compatibility with
  BeOS.
* Adjusted all code using the affected interfaces (Oh what fun!). Added a few
  TODOs in places where the wrong types (e.g. void* for physical addresses
  are used). Looks like quite a few drivers aren't 64 bit safe and others
  will break with PAE.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36960 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-05-27 22:07:27 +00:00
Jérôme Duval
1716472d36 try at unmuting the headphone pin complex when the jack is present, see ticket #6057
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36959 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-05-27 21:20:48 +00:00
Ingo Weinhold
8984ae973b * Added TODO.
* Automatic whitespace cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36957 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-05-27 20:42:53 +00:00
Ingo Weinhold
4c214152e8 * Added TODO.
* Automatic whitespace cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36956 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-05-27 20:09:03 +00:00
Ingo Weinhold
13f956b116 Added TODO.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36955 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-05-27 20:06:42 +00:00
Axel Dörfler
d7e91d9253 * The DPMS code tried to enable the LVDS panel already if a digital display
was detected; however, it should only do so when there is an actual LVDS panel
  detected.
* This should fix one part of ticket #3149 - looks like there are two different
  issues. Thanks to Robert J. Gebis for providing me remote access to his
  system.
* Minor debug output improvements.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36941 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-05-26 13:48:46 +00:00
David McPaul
c436ab319d gcc4 fixes and add removal of buffer when source disconnected
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36932 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-05-25 09:06:26 +00:00
Ingo Weinhold
386be45abc Fixed 64 bit warnings.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36928 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-05-24 21:41:20 +00:00
Ingo Weinhold
9d570af7c8 Changed the type of the "op" parameter of the fs_vnode_ops::ioctl() hook and
the _kern_ioctl() syscall from ulong to uint32.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36927 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-05-24 21:04:22 +00:00
David McPaul
a3d9c49a18 Use the alpha from the source
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36922 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-05-24 09:43:24 +00:00
David McPaul
8391490adc make the block more dynamic
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36921 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-05-24 09:42:33 +00:00
Stephan Aßmus
59193042cc Make header selfcontained.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36907 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-05-23 12:29:35 +00:00
Fredrik Holmqvist
e427cb78f7 * Fixing acpi_embedded_controller to work with the acpi 20100428.
* Fixed one instance where ACPI and BeOS status codes was not handled right.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36897 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-05-22 09:45:18 +00:00
David McPaul
e615fd4dda add video_mixer to Jamfile
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36894 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-05-22 05:29:29 +00:00
David McPaul
0fe9fd368f Start of a video mixer node
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36893 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-05-22 05:27:49 +00:00
David McPaul
da4fcd47f5 Try to use overlay first
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36892 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-05-22 05:27:15 +00:00
David McPaul
dc706a1b49 additional option to display a color block
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36891 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-05-22 05:25:32 +00:00
Axel Dörfler
b70311a396 * The RTF parser only accepted lower case hex numbers which prevented the
prices.rtf to be parsed correctly as reported by humdinger.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36884 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-05-21 11:39:19 +00:00
Axel Dörfler
db90422897 * The RTF-Translator will now convert all command line arguments to plain text
to stdout (mostly for testing).
* Removed no longer needed packaging jam rule.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36883 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-05-21 11:26:48 +00:00
Ingo Weinhold
5023986b41 USBWebcamHeaderGen rule: Add grist to both header and sources. Simplifies the
invocation and fixes the dependency problem (missing grist on the sources)
that caused the headers not to be regenerated when the sources changed.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36878 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-05-20 19:01:18 +00:00
Fredrik Holmqvist
ffb873afec Merge acpi from acpica vendor branch 20100428:
* AcpiSetGpeType no longer exists, replaced with AcpiSetGpe. Since acpi changed gpe handling embedded controller might need improvements.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36867 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-05-19 21:33:02 +00:00
Stephan Aßmus
941e7bddbc Patch by herdemir: Fix codec table to include correct fourcc for H.264 video
streams in AVI files. Could confirm this with a test video. Thanks and sorry
for the delay!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36847 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-05-17 16:27:25 +00:00
Stephan Aßmus
1b603b3f39 Implement a fall-back for calculating the media_header start time when the
packet did not specify a PTS. Made this change long ago, I don't believe it
helped much...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36846 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-05-17 16:22:41 +00:00
Stephan Aßmus
e2a53a81d1 White space cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36845 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-05-17 16:18:39 +00:00
Stephan Aßmus
be1140e1e5 Added some more defines for demuxers that could in theory be enabled. But we
have native implementations.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36844 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-05-17 16:17:06 +00:00
Stephan Aßmus
3e3162e3af Patch by idefix: Add support for four different Bamboo devices. Closes ticket
#3744, thanks a bunch!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36843 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-05-17 15:39:42 +00:00
Stephan Aßmus
a9f29dd29c Patch by idefix: Code cleanup and debug output cleanup. Part of patch to
ticket #3744, thanks!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36842 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-05-17 15:38:25 +00:00
Stephan Aßmus
19ec74b048 Patch by Wim van der Meer: Use the new get_mouse() function instead of the
previous hack. Thanks a bunch! Closes #6019.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36841 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-05-17 12:13:36 +00:00
Michael Pfeiffer
4339f8be19 Style clean up.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36810 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-05-14 09:36:26 +00:00
Michael Pfeiffer
13dfd6ccca * Avoid null pointer reference if configuration dialog is canceled
(fixes #5988).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36809 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-05-14 09:20:55 +00:00
Stephan Aßmus
62355113cf Fixed coding style violation...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36792 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-05-11 18:36:02 +00:00
Stephan Aßmus
9716ee3e47 For Intuos3, use an additional bit from another data bucket. This is what the
Linux driver does, thanks for idefix for tracking down the problem! Should fix
ticket #5960, but I don't personally have the hardware. The change can only
affect Intuos3 tablets, though.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36791 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-05-11 18:32:16 +00:00
François Revol
7a2f989819 Make sure native drivers are loaded first, by openning the /dev directories to let devfs scan them. Also make sure oss is loaded so we can open /dev/sndstat.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36761 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-05-08 22:36:37 +00:00
François Revol
ee9a07fc52 Seems I presumed too much about my copy-pasting skills, doing continue in the loop without incrementing doesn't go much further. Fixes busy-loop on error.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36760 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-05-08 22:10:08 +00:00
François Revol
bbb55d159e Add PCI device reservation to the drivers that still missed it in the image. This along with the updated OpenSound should fix the KDLs. Hopefully the init_driver() code was identical enough I didn't make any copy-paste error.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36751 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-05-08 18:45:28 +00:00
François Revol
7d8c577325 - use DRIVER_NAME in dprintf.
- unreserve the device in case init failed.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36749 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-05-08 17:44:35 +00:00
Michael Lotz
6bb5960fd6 Temporary workaround to the MSI issue on broadcom570x. Fixing for real later,
but this one should go into alpha2 to make the card work as before.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36746 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-05-08 15:38:26 +00:00
Michael Lotz
b59539c7ce Ensure that the PCI module is initialized when using the x86 specific module as
it makes use of gPCI which is initialized during pci module init. Might help
with #5936.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36745 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-05-08 15:09:28 +00:00
Michael Lotz
dea3dab422 Forgot to commit the removal of the old file in r36223.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36741 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-05-08 14:57:21 +00:00
Jérôme Duval
cea369ce9d UVC webcam addon isn't ready yet.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36740 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-05-08 14:51:02 +00:00
Ithamar R. Adema
9661f324d9 * Don't mark edid_detailed_timing entries with a pixel_clock <= 0 as EDID1_IS_DETAILED_TIMING. This prevents decode_edid clients to incorrectly interpret the entries as valid.
This fixes booting on the Samsung NP-N135, which used to reset before being able to enter the bootloader menu. It would be interesting if tickets #4408, #5539, #5696, and #5720 could be retested.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36734 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-05-07 21:51:06 +00:00
Matt Madia
4eb0cbb044 Updated TR_CONTEXT to be B_TRANSLATE_CONTEXT, relating to #5408.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36733 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-05-07 20:19:06 +00:00
Ingo Weinhold
8da96bede1 Disabled the driver on SMP machines.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36726 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-05-07 17:30:31 +00:00
Axel Dörfler
709b35256a * No longer keep the write lock when accessing the attribute data; instead, we
now make sure no one else touched it in the mean time (in order to retrieve
  consistent data for the index update). This should fix bug #5878.
* Squashed a TODO by locking the inode in the transaction as well.
* Fixed a quasi bug that would not have read the attribute data if there was no
  live query for it; "fortunately", Volume::CheckForLiveQuery() is not
  implemented yet, and always returns true.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36707 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-05-07 08:36:31 +00:00
Axel Dörfler
51576f91e8 * Fixed broken build with TRACE_PS2 defined as reported by Pieter.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36706 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-05-07 07:56:26 +00:00
Matt Madia
b842a5efaf Updated add-ons/* to use B_TRANSLATE* macros. relates to #5408.
To note, I'm grepping for "TR_CONTEXT" to identify which files to update.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36660 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-05-06 15:55:56 +00:00
Clemens Zeidler
da0e57ba62 Remove leftover from the intel driver.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36617 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-05-04 21:56:53 +00:00
Matt Madia
fe0335fc5a Added two HVIF for the PDF Writer, applied the 2nd as its icon.
Improvements welcomed.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36603 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-05-04 13:09:47 +00:00
Matt Madia
ed620d575c Updated to build with HVIF+rdef instead of bitmap+rsrc.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36582 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-05-02 15:08:21 +00:00
Fredrik Holmqvist
3a8771067d Trying to cleanup header order. No functional change.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36576 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-05-02 08:29:41 +00:00
Fredrik Holmqvist
d52ea9c90e Trying to fix #5861. As we are now so early in the boot process, we should really avoid functions that wait. The change in r36565 from waiting on condvar seems to have moved the problems over to the snooze method.
We now use spinlocks instead of snoozing while booting.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36569 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-05-01 18:25:33 +00:00
Fredrik Holmqvist
30653a9ed0 Use polling in embedded controller while booting. Might fix #5861. Is this usage of the flag ok?
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36565 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-05-01 07:59:48 +00:00
Ingo Weinhold
523d310585 * get_emulation_buffer(): Don't replace the request data. Both callers
(scsi_start_mode_sense_6(), scsi_start_mode_select_6()) also call
  replace_request_data(), which does the same. Therefore the original request
  data were lost. scsi_start_mode_select_6() also copied the wrong data due
  to this.
* scsi_finish_mode_sense_10_6(): In case of error also call
  restore_request_data() to restore the request data.

Fixes #5855 -- since the request data length was changed, unlock_memory() was
called with a different length than lock_memory(), thus triggering the
panic(). After starting CDPlayer the syslog is still spammed with failing
requests, so obviously something is still not OK.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36539 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-29 20:26:19 +00:00
Ingo Weinhold
d3166e469c Replaced no longer necessary send_signal_etc() work-arounds for
resume_thread().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36531 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-29 15:23:29 +00:00
Axel Dörfler
d3a302aae8 * embedded_controller_support() now actually checks all entries of the
supporting ID array (just that it only contains one entry).
* Fixed missing malloc() result check in embedded_controller_init_driver().
* Style fixes.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36529 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-29 15:09:38 +00:00
François Revol
79bda6fd6e Fix #5754 so at least the driver builds. It is not yet usable since we do not have a tty manager. For now it should be possible to get the BeOS one to work in Haiku though, but it's not tested.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36515 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-28 09:58:18 +00:00
Fredrik Holmqvist
8b0107016a The embedded controller handled timeouts wrong in several ways:
* It confused ms and usecs for ec_timeout
 * It tried to handle waiting like on platforms that can't do better timing than ms. Haiku can do much better, which simplifies the code a lot.

This should fix #4623 and #5825. At least on my laptop BatteryStatus never shows weirdness or reports errors in syslog.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36511 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-27 20:55:01 +00:00
Ithamar R. Adema
d023a58407 * Fix problem reported by stippi: The IPP transport addon expected the URL in a custom printer attribute instead of the standard transport_address attribute. This caused the IPP transport to ask for the URL even though the Printers preference panel had already stored the URL in the transport_address attribute.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36505 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-27 16:04:34 +00:00
Stephan Aßmus
c497ec3773 Patch by Alex Wilson (yourpalal): Converted the remaining two translators to use
layout management. Fixed a bug in the HVIFTranslator which did not release
the TranslatorSettings in it's destructor. Thanks a bunch!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36501 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-27 10:39:39 +00:00
Ingo Weinhold
e76856a4a5 Enabled the IOCache depending on the amount of free pages. Currently the
limit is 180 MB.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36495 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-26 16:56:37 +00:00
Ingo Weinhold
0715529b59 Renamed IOScheduler to IOSchedulerSimple and pulled an interface IOScheduler
out of it.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36492 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-26 14:47:24 +00:00
Axel Dörfler
3179449933 * Renamed ATAInfoblock.h to ATAInfoBlock.h.
* Fixed copyright as pointed out by Ingo.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36480 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-26 09:13:12 +00:00
Stephan Aßmus
94a204f083 Patch by Alex Wilson (yourpalal): Convert the JPEG2000 Translator to use the
BaseTranslator framework and layout management. Big coding style clean up, too.
Thanks a bunch, great work!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36466 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-25 11:12:20 +00:00
Stephan Aßmus
b98ef4f94b Patch by Alex Wilson (yourpalal): Converting the JPEG Translator to using the
same BaseTranslator framework as many other translators are already using and
converting it to using layout management for the interface. Great work! Thanks
a lot!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36465 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-25 10:59:55 +00:00
Ingo Weinhold
574e5742ad Optionally use the IOCache instead of the IOScheduler (specified by
USE_IO_CACHE macro in the header). Currently disabled, though. It works fine,
if the machine has a good deal of RAM. I tested with the anyboot CD -- the
boot and installation times drop dramatically. On machines with little RAM
there are issues, though. Apparently the cache isn't drained fast enough, so
that other allocations can fail.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36438 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-23 18:14:53 +00:00
Axel Dörfler
11a40e6d46 * Fixed wrong indentation.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36430 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-23 10:56:39 +00:00
Axel Dörfler
6c7bc7cd22 * Added missing const in ATAPIDevice::IsATAPI() that prevented CD-ROMs from
working since r36416.
* Added more const, and removed all superfluous semicolons.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36429 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-23 10:43:10 +00:00
Fredrik Holmqvist
5d9cc10f80 Moving ACPI Embedded Controller to ACPI bus manager.
* Removed irq_routing struct from ACPI.h to where it is used. Might be able to use acrestype.h instead of duplication.
 * Disable old embedded controller and remove it from image.
 * Move embedded controller code to busmanager module.
 * Remove (some) code duplication

Should work as before, but is now initialized right after the bus manager. Can probably remove further code duplication.
I hope I've done it correctly, feedback is most welcome.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36420 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-22 16:19:41 +00:00
Axel Dörfler
63400da873 * Got rid of the ATA_BLOCK_SIZE define.
* The logical and physical block sizes are now retrieved from the info block,
  though only the logical one is actually used (where ATA_BLOCK_SIZE was used
  before).
* Also added retrieving the offset of the first logical block inside the first
  physical one.
* All this stupidity just for Windows XP, it's really sad.
* Added "const" to some methods, removed some superfluous ';'.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36416 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-22 14:13:32 +00:00
Axel Dörfler
46d3d6949b * Fixed warnings.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36414 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-22 13:42:13 +00:00
Axel Dörfler
dba5fcaed8 * Use the ATAInfoblock.h header file instead of redoing it somehow.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36412 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-22 12:14:05 +00:00
Axel Dörfler
0b46a85e47 * Added missing definitions to support the concept of physical vs. logical
block sizes.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36411 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-22 12:12:32 +00:00
Axel Dörfler
a2f2499840 * Style and automatic whitespace cleanup, no functional change.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36410 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-22 12:03:47 +00:00
Jérôme Duval
17c5e0648d Fix #5587: added B_CLOSE_ON_ESCAPE on team monitor window and a close shortcut for Command+W.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36404 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-21 19:32:19 +00:00
Axel Dörfler
b19e758b80 * The Keymap::IsDeadKey() of the Keymap preferences which was the main source
of BKeymap was not compatible with IsDeadKey() of the other Keymap
  incarnations.
* Now, I've renamed IsDeadKey() to DeadKey(), and introduced a new
  ActiveDeadKey() method that works like the other former IsDeadKey().
* This fixes the dead key problems my earlier BKeymap work introduced.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36400 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-21 16:36:54 +00:00
Clemens Zeidler
66f1ecdae7 Start to cleanup radeon_hd driver.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36393 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-21 10:03:01 +00:00
Jérôme Duval
17aad616d2 Patch from Janito Ferreira Filho (bug #5706): limit the Inode ID to the maximum number of Inodes. Thanks!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36358 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-19 19:04:40 +00:00
Clemens Zeidler
8bb679076d Set the write combine flag for the framebuffer area.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36330 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-16 15:29:30 +00:00
Axel Dörfler
b44c25de42 * Factored out a single base class out of the three Keymap implementations we
had in our tree.
* Adapted Keymap, <input>keyboard, and consoled to use it - the additional
  functionality is implemented via a subclass in the first two cases.
* "keymap" will come next.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36328 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-16 07:47:41 +00:00
Fredrik Holmqvist
186058c517 Some corrections and cleanup to ACPI Embedded controller:
* Exposed ACPI API needed by Embedded Controller
	This will be removed again if moved inside the bus manager.
	It also duplicates ACPI's own headers so it might go out of sync atm.
 * Added mutex to controller and fixed the mixup between acpi_status needed in int handlers and Haiku status.
 * Major code cleanup
	Not for headers as they are mostly redundant if we move the controller.
	Variable names still needs some cleanup

This makes the ACPI errors from the controller understandable. I get AE_NO_HARDWARE_RESPONSE now.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36318 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-15 19:23:43 +00:00
François Revol
af0bb8e3d3 Implement creating attributes, though still with a broken mapping loosing the type.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36296 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-15 15:15:36 +00:00
Axel Dörfler
8f49507c1d * Added MSI support (might help with bug #5511).
* Fixed wrong return type from wpi_read_prom_data().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36292 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-15 13:04:05 +00:00
Axel Dörfler
e1bef3de00 * Use send_signal_etc() instead of resume_thread() to prevent immediate
rescheduling; this allows DPC queues to be created before the scheduler is
  running.
* Removed BeOS R5 support.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36289 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-15 12:31:56 +00:00
Axel Dörfler
7380abeb44 * Implemented the debugger mode for the USB keyboard driver.
* Made the USB keyboard driver safe to be used from more than one team - only
  the first one will be able to retrieve any keys. Before, since there was no
  locking, internal structures would have been messed up in that case.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36283 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-15 09:03:32 +00:00
Clemens Zeidler
d5009951b7 Scale the output to the correct resolution. Finally got the correct resolution on my laptop :-)
Possibly fixed the monitor timming.

TODO: 
- Very big code cleanup.
- At the moment there is only one hardcoded dislplay_mode (1366 x 768).




git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36282 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-15 09:01:35 +00:00
Axel Dörfler
7089514138 * Pass the cookie to ProtocolHandler::Close() as well.
* Removed superfluous semicolons.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36280 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-15 08:31:50 +00:00
Axel Dörfler
447b0afd93 * Use const where appropriate.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36279 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-15 08:18:37 +00:00
Adrien Destugues
8025477189 * Implement a function to get all the available languages for a given application
* use it in readonlybootprompt instead of previous workaround code.
This makes the readonlybootprompt faster and lighter as it doesn't open and parse all the catalogs anymore, but only checks for their existence.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36276 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-14 23:48:01 +00:00
Axel Dörfler
48450caac5 * Prepared driver for the implementation of the debugger mode: there is now a
uint32 cookie that is saved per file handle and passed to the ProtocolHandler
  objects.
* Beware that the output of the driver no longer shows the handler as pointer,
  but the internal device cookie.
* Added handling of KB_SET_DEBUG_READER to the KeyboardDevice class (it just
  doesn't do anything with that).
* Cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36274 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-14 21:59:15 +00:00
Axel Dörfler
2c49465329 * Removed the at_kbd_io and AT keyboard stuff; this is now done within the PS/2
driver, and that driver is using the raw_key_info structure as well.
* Renamed kb_mouse_driver.h to keyboard_mouse_driver.h.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36267 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-14 19:19:14 +00:00
Axel Dörfler
f3cf9af6bf * Fill the gap between a write and the former file size with zeros, too.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36263 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-14 14:36:02 +00:00
Axel Dörfler
39aab96e4c * Removed the old keyboard driver - it's no longer needed as consoled no longer
uses it.
* While I were at it, I removed the ps2mouse driver as well, as well the whole
  arch directory (as it is otherwise empty).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36261 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-14 13:06:12 +00:00
Axel Dörfler
64e57f07ce * Added a bit of code to Keymap that lets it load a keymap from disk; I might
unify the three or so version we have of that class into one in the not so
  distant future.
* Moved the AT keycode map into its own file.
* Cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36259 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-14 12:51:44 +00:00
Axel Dörfler
897ca37d52 * Introduced a new debugger access to the keyboard drivers, and implemented that
in the PS/2 driver for now. The basic idea is to allow everyone to open the
  device, but only allow one key reader (as usual). However, once someone
  registers itself as a debugger, the original reader is blocked, and the
  debugger can read the key presses instead.
* Renamed ps2_keyboard.c to .cpp.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36256 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-14 12:30:23 +00:00
Axel Dörfler
3856867b03 * Made C++ safe.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36255 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-14 12:20:30 +00:00
Michael Lotz
38fc536e05 Some more constness.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36250 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-14 09:44:15 +00:00
Michael Lotz
19b8f8a080 Cleanup and some added constness.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36249 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-14 09:32:11 +00:00
Michael Lotz
cc9f959d8b Rename usbspec_p.h to usbspec_private.h and fix header guards.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36248 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-14 09:13:55 +00:00
Michael Lotz
853e6be8ca * Rename usb_p.h to usb_private.h.
* Some automatic whitespace cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36247 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-14 09:10:48 +00:00
Michael Lotz
72457eddbc Add a yet unused physical memory version of queue_bulk_v(). For full/lowspeed
devices it's uninteresting, but for EHCI it may be implemented some day.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36246 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-14 08:42:20 +00:00
Michael Lotz
661d8af64c The cloned area to access the userspace buffer in the case of fragmented
transfers was created with wrong permissions leading to a read-protected area.
Since we actually support read-protection in Haiku this caused a crash for all
fragmented transfers (transfers > 384K) leading to #5538.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36245 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-14 08:32:22 +00:00
Clemens Zeidler
c9abe8265d Revert wrongly committed files.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36244 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-13 22:43:50 +00:00
Clemens Zeidler
a90ebd77ee Work in progress of a Radeon HD 3200 driver to change the display mode (status when I leave the coding spring). At least it shows a picture but with a wrong scaling.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36243 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-13 22:35:53 +00:00
François Revol
d9590f1cc2 Remove duplicate assignment.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36241 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-13 22:01:49 +00:00
Michael Lotz
ee6e756ef1 Add license headers as pointed out by Jérôme.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36240 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-13 21:55:52 +00:00
Michael Lotz
696914f907 If device allocation fails, retry the attach process, i.e. reset and initialize
the device again. Makes Axel's USB stick work and might also help with other
(broken) devices.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36234 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-13 18:26:26 +00:00
Ingo Weinhold
f6f047841e Use debug_memcpy() instead of user_memcpy() in the kernel debugger.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36231 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-13 17:40:50 +00:00
Michael Lotz
2548ea219a * Add the framework for adding an arch specific module to the PCI bus_manager.
* Implement such a module for x86 which currently exports only an MSI API.
* Implement the PCI part for configuring and enabling MSIs.
* Some automatic whitespace cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36223 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-13 15:18:46 +00:00
Axel Dörfler
2d4ce06468 * Changed the latency computation a bit to make it somewhat clearer.
* Only report lateness if it is beyond the accepted jitter.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36205 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-12 21:51:40 +00:00
Axel Dörfler
d0085d25d1 * We now limit the maximum latency in MediaPlayer and the audio mixer, as a
latency can easily get annoying if too high.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36200 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-12 20:53:15 +00:00
Jérôme Duval
02af02f93a partial clean up
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36198 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-12 20:34:04 +00:00
Jérôme Duval
ac8b5878d7 clean up
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36196 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-12 20:13:40 +00:00
Oliver Tappe
ab1a4bef4f cleaning up after myself 4 years later:
* remove matches_broadcast_address slot in address module, as it
  doesn't exist anywhere
* automatic whitespace cleanup



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36193 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-12 19:06:46 +00:00
Oliver Tappe
56f097ebd9 Applying patch by Atis Elsts:
* fix connecting to INADDR_ANY work for tcp (effectively will
  connect to INADDR_LOOPBACK)
* add same behaviour to udp
* move some ipv4-specific code out of tcp into ipv4 address module
* bind() and connect() now reject addresses from non-matching 
  families
* myself: minor cleanup in udp.cpp with respect to 80 chars limit
Closes #5716 - many thanks!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36192 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-12 18:39:34 +00:00
Axel Dörfler
b289aaf66b * A BBuffer does not know where it came from, so
BBufferConsumer::BufferReceived() cannot know whom to send the "buffer is
  late" notification (unless we only have a single input). To solve this, the
  media_header now contains extra fields that can be used to create a
  media_source object.
* Unfortunately, BBufferProducer::SendBuffer() cannot know the output either in
  case there is more than one. Hence, I deprecated the existing SendBuffer()
  call and moved it into "private" - IOW old sources using it won't compile
  anymore under Haiku.
* I introduced a new SendBuffer() variant that also gets the media_source as
  argument.
* Updated all sources (that are part of the image) to use the new variant.
* Removed some purposely commented out code in the audio mixer.
* Implemented late buffer notification, as well as late buffer handling in the
  audio mixer; this is a bit of work in progress, so the debug output is left
  in there.
* Some cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36184 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-12 13:15:46 +00:00
Rene Gollent
0d6b5aa1ea Fix build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36179 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-12 01:17:15 +00:00
François Revol
4b19582754 First implementation of attribute support on NTFS. Currently lists and reads named streams as such, but the name mapping is not yet correct.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36178 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-12 00:07:52 +00:00
François Revol
e16c15a7e7 Fix a possible mem leak in case of error.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36177 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-12 00:05:40 +00:00
Ithamar R. Adema
f7b0c08cae This modifies the Postscript printer to be able to insert a pipe in between the Postscript generation
and the transport addon. The actual command use as pipe is retrieved from the PPD that can be selected
at printer creation time.

Currently PPD selection is not shown (as the PPD directory is not available) and therefore the pipe
will not be inserted.

This still needs a bit of TLC, so hope to commit the last changes to fully support this later this week.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36173 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-11 22:01:13 +00:00