Commit Graph

6567 Commits

Author SHA1 Message Date
Ingo Weinhold
203c622934 * Added condition variables.
* Added a dummy slab implementation.
* Updated the lock, hash, and block cache implementations.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29336 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-27 16:17:58 +00:00
Ingo Weinhold
3594d63b34 Got the kernel interface compiling.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29333 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-27 11:38:26 +00:00
Ingo Weinhold
b19b5f9dda More adjustments to the new FS interface. The enabled sources compile again,
but don't link yet.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29332 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-27 10:54:26 +00:00
Ingo Weinhold
f6583b4a17 Got rid of no longer needed LookupNoType(). The lookup hook doesn't doesn't
have a type return parameter anymore.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29331 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-27 10:52:19 +00:00
David McPaul
42e4132ed3 made comment a TODO
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29330 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-27 09:06:53 +00:00
David McPaul
905faca0bf Output as Stereo as AudioChannelConverter cannot handle > 2 channels
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29329 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-27 08:58:59 +00:00
François Revol
bbc84914d4 Working version of the driver. At least it does seem to work with my onboard com port, but not the OxfordSemi PCI card I have here. Still requires tty_manager, and config_manager too, so won't work in Haiku yet. Needs cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29328 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-27 00:15:20 +00:00
Jérôme Duval
b5aca78a04 * compute offset based on vendor (32 for non intel) and sample rate
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29327 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-26 23:27:28 +00:00
Bruno G. Albuquerque
2144797f02 This fixes retrieval of email from IMAP servers. It seems there is a difference between the behaviour of BPath in R5 and Haiku (as this used to work in R5). More specifically:
BPath blah("blah");
printf("%s\n", blah.Path());

It seems that in R5 it would print "blah" (untested as I don't have R5 anymore, but this code definitelly used to work). And in Haiku it prints "/currrent/path/blah".

This fixed bug #3187.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29326 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-26 22:38:24 +00:00
Ingo Weinhold
cdebdeb0aa Some more work towards adjusting the UserlandFS to the current FS interface:
* Split the FSCapabilities bit mask into three bit masks for the FS, the
  volume, and the vnodes, since we have three independent FS interface
  structures, now. The latter is not supported in the kernel add-on, yet.
* Server:
  - Temporarily removed some things from the build (the BeOS interface
    and the cache implementations).
  - Some WIP in HaikuKernelVolume and [haiku_]kernel_emu.{h,cpp}.
  - Added HaikuKernelNode, which wraps fs_vnode for the client FS.
  The server is still quite a bit away from being buildable again.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29323 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-26 00:09:43 +00:00
Jérôme Duval
346ae57c93 * Stream interrupts seem to arrive too early on most HDA chips:
we adjust buffer descriptors to take this into account. It defaults to one sample, but it should depend also on the sample rate or the chip vendor.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29322 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-25 19:12:23 +00:00
Ingo Weinhold
2bcdce290b First work towards adjusting the UserlandFS to the changed FS API. The
kernel module compiles again, though newer features like VM file support,
asynchronous I/O, and FS layers aren't supported yet. The userland code is
still completely out of sync and won't even compile.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29318 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-24 21:07:40 +00:00
David McPaul
be125ae02f Remove wrong format
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29313 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-24 12:50:31 +00:00
Stephan Aßmus
50d6da5a0e Fix GCC 4 build. Implemented constructors/destructors and standard operators.
Hopefully, I am not stepping on your toes, David! Please check these changes,
I've added some TODOs where problems may be lurking.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29312 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-24 12:15:40 +00:00
David McPaul
201970d309 First cut at improving avi seeking
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29308 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-24 08:12:27 +00:00
David McPaul
3e02e6ae4d Seek functionality changes
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29307 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-24 08:05:18 +00:00
David McPaul
379d4bb08f implement basic C yuv422toRGB function
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29306 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-24 08:00:46 +00:00
David McPaul
decfff7c4d implement seek function
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29305 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-24 08:00:06 +00:00
David McPaul
c6527ff508 add additional motion jpeg fourcc
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29304 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-24 07:56:25 +00:00
Bruno G. Albuquerque
a440ab6ef1 - Small update.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29294 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-23 18:05:36 +00:00
Michael Lotz
1c053f1771 Obviously forgot this in the last commit...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29292 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-22 20:47:14 +00:00
Michael Lotz
6eba063647 * Added simplified possibility to schedule UHCI transfers from within KDL.
* Added debugger commands to resolve usb_ids to pipes.
* Adjusted the physical memory allocator to be usable in a slimmed down mode
  when running inside the kernel debugger.
* Implemented USB keyboard support for KDL through a kernel debugger add-on.
* Added kgetc() and made use of it where previously individual methods were used
  to ensure that reading characters always goes through the kernel debugger
  add-ons and the other methods.

This has some preconditions to meet though:
1) The keyboard must be in the boot protocol (currently the case but needs to
   be revisited once we have a full usb_hid).
2) The keyboard must be attached to a UHCI root port (i.e. not use EHCI or OHCI,
   also not through hubs unless those are USB 1.1).
3) the usb_hid driver has to be opened for this to work. This means that for the
   time between initializing USB and when usb_hid is opened by the input_server
   there is no keyboard support.

Also note that this has no way of detecting hot-plug, meaning that you can't
re-attach your USB keyboard from the hub to the root port once in KDL.

On the bright side of things, since this is a non-destructive mechanism it is
possible to enter and leave KDL without loosing the USB state.

Tested OK in QEMU, not tested on real hardware yet, will see in a few minutes.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29291 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-22 20:46:27 +00:00
François Revol
d29cb41521 Fix ZETA build, USBKit doesn't have the AltInterface stuff.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29288 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-22 15:27:39 +00:00
Bruno G. Albuquerque
ae2bf46029 The Spam DBM may not have the best interface in the world but it is one of the best anti-spam tool I saw so I am adding it to the image (in fact the interface with changes by darkwyrm looks worse than the original one, IMHO).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29284 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-22 13:45:40 +00:00
Ithamar R. Adema
19b602bcb0 Some initial code for USB Video-based Webcams. It currently parses the USB Video descriptors and dumps the information out via stdout. I'd be very pleased if anyone with a USB Video webcam (or other device) could take the following steps:
* hey media_server QUIT
* /system/servers/media_server > /boot/home/media_server.log
* listusb -v > /boot/home/listusb.log

and mail the two resulting files to ithamar AT unet DOT nl. Thanks!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29282 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-22 13:19:13 +00:00
Ithamar R. Adema
32bf83a34b * Fix initialisation of CamDevice::fIsoIn.
* Fix debug message on IsoIn path.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29280 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-22 10:53:13 +00:00
Ithamar R. Adema
6595d6836d * Make usb device detection in usb_webcam identical to the way the usb bus_manager handles it.
* Fix some minor printf()-style warnings in the debug build of usb_webcam.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29279 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-22 10:39:31 +00:00
Philippe Houdoin
bcd9a7e1d4 Implemented ETHER_GET_LINK_STATE and ETHER_SET_LINK_STATE_SEM for rtl8169.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29278 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-22 01:35:15 +00:00
Michael Lotz
f9e9051d3e * Implemented create/create dir/create symlink and remove/remove dir in the
write_overlay and add the necessary infrastructure for it.
* Fix setting permissions through write stat.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29268 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-21 02:35:55 +00:00
Michael Lotz
c41ac5b0e1 * Remove the original overlay filesystem.
* Add attribute_overlay and write_overlay to the image/floppy instead.
* Mount a iso9660 boot volume with both write and attribute overlay for now.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29261 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-19 23:01:42 +00:00
Michael Lotz
66728ad8b8 Implemented write stat.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29260 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-19 22:40:30 +00:00
Michael Lotz
9c67a177a8 No need to relay the attribute calls. Fixes attribute overlays when used with another layer.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29258 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-19 21:45:46 +00:00
Michael Lotz
4ef4945001 Rename the trace output as well.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29256 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-19 21:13:02 +00:00
Michael Lotz
af4245f8a3 Split overlay filesystem into attribute_overlay and write_overlay.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29255 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-19 21:11:59 +00:00
Michael Lotz
77fdecfec8 Preparing to split the overlay filesystem into an attribute_overlay and write_overlay module.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29253 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-19 20:30:51 +00:00
Michael Lotz
a4041d8a6e * Fix missing initialization of the entry size on SetSize() that'd cause some
attribute writes to not be visible.
* Don't read past the current node size when emulating write support.
* Fix writing calculations so that writing actually works as intended.
* Actually follow the linked list when joining write_buffers instead of using
  the same pointer that becomes invalid after the first iteration.
* Small optimizations.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29251 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-19 20:03:05 +00:00
Michael Lotz
49004dc730 Remove the additional fs_vnode_ops arugment from get_vnode() again as it's not
needed at all when used as intended. Thanks Ingo for the explanation on how this
is intended to work. Adjusted the overlay fs accordingly and updated/reverted
the changes to the other filesystems.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29250 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-19 18:13:01 +00:00
Michael Lotz
ef38aa7efc * Add preliminary write support to the overlay filesystem when the underlying
fs is read-only. Not yet fully working, also directory operations like file
  creation/removal are yet missing.
* Add notifications for stat and attribute changes.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29249 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-19 01:20:10 +00:00
Karsten Heimrich
44ec2ebd20 * update freebsd compat with stubbed eventhandler
* get e1000 to compile
* remove dev/em from the build (might be removed later on)
* tested on VirtualBox (gcc2,gcc4), VMware(gcc4) and natively on
  ThinkPad T500 (gcc4)

* courtesy of Michael Weirauch (emwe)



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29247 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-18 22:34:52 +00:00
Karsten Heimrich
ab64e1faa3 * integrate e1000 FreeBSD driver
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29246 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-18 20:52:02 +00:00
Michael Lotz
3b5507a987 * Added create/write/remove/rename support for attributes to the overlay fs.
* Implemented writing attributes back to attribute files. Not tested or enabled.
* Fix reading attribute dirs, they need a separate cookie that links attribute
  files to the dir index as multiple read-dirs could happen at the same time.
* Fix some obvious bugs in size calculations.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29239 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-17 02:05:58 +00:00
Jérôme Duval
5076aaf050 * some style improvements again (ie lower case variables as pointed by Axel)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29238 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-16 23:05:54 +00:00
Jérôme Duval
79d4b99e40 * fix get_mix()
* style improvements


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29237 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-16 19:09:34 +00:00
Axel Dörfler
3c13a5f5b3 * Renamed net_device_interface::rx_lock to receive_lock.
* Cleanup, improved comments, removed useless ones.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29232 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-16 11:13:28 +00:00
Axel Dörfler
86a0cf15e4 * You can now use SIOCGIFFLAGS on the AF_LINK level as well.
* Cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29231 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-16 11:05:25 +00:00
Axel Dörfler
f964cf0772 * No longer leaks the EndpointManagers at unload.
* Now uses an array instead of a doubly linked list to find the endpoint
  manager for a domain.
* No longer locks the endpoint managers during TCP processing, which actually
  made all TCP input serialized.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29210 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-15 14:33:41 +00:00
Axel Dörfler
f6874c7b31 * When there was no link, the wrong route was chosen as a candidate when trying
to get a local connection (the first candidate must be used, not the last).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29208 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-15 12:59:34 +00:00
Michael Lotz
66a8699255 Fix build for GCC4 also.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29205 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-15 12:27:45 +00:00
Michael Lotz
1ba7617834 Fix build. The header is not needed at all.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29204 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-15 12:12:45 +00:00
Michael Lotz
a413108c54 Make the overlay filesystem a standalone module. It can now be mounted as an
additional layer by supplying "-t <actualFileSystem>:overlay" to a mount command.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29201 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-14 20:57:15 +00:00