Commit Graph

22381 Commits

Author SHA1 Message Date
Marcus Overhagen
dd7579a79b started reimplementing pio command completition...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23336 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-01-09 23:59:00 +00:00
François Revol
17b30c87ea Notes on prg file format.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23335 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-01-09 23:41:15 +00:00
Axel Dörfler
3e5b9076f9 * Fixed (or rather, worked around) a deadlock in the VM: when a file was
resized but still had dirty pages to be written back, 
  vm_cache_resize() (which is called with the inode lock being held)
  deadlocked with the page writer.
* Now, I reintroduced busy_writing: it'll be set by everything that
  writes back pages (vm_page_write_modified(), and the page writer),
  and will be checked for in vm_cache_resize() - other functions are not
  affected for now, AFAICT.
* vm_cache_resize() will clear that flag, and the writer will check it
  again after it wrote back the page (which will fail when it's outside
  the file bounds), and if it's cleared, it will get rid of the page
  (if the file has been resized again in the mean time, writing it will
  succeed then, and we'll keep the page around).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23334 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-01-09 22:25:21 +00:00
Michael Lotz
2c5faa49db Fix multi-line single-line comment warning...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23333 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-01-09 22:05:26 +00:00
Michael Lotz
d7074530fd Clean out some of the spurious whitespace.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23332 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-01-09 22:00:51 +00:00
Marcus Overhagen
5558f70663 Renamed ide_qrequest *qrequest into ata_request *request.
Removed synced pcs.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23331 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-01-09 21:58:23 +00:00
Stephan Aßmus
6e796d9fbe * applied the same logic with regards to the ringbuffer to the
mouse case in the ioctl() hook. Should be considered work in progress.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23330 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-01-09 21:26:05 +00:00
Jérôme Duval
2db1814b1f fix warnings
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23329 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-01-09 21:05:50 +00:00
Stephan Aßmus
e7447cc4bb mmlr+stippi+axeld:
* changed the way the interrupt schedules and repeats are handled, the
  input server thread (via ioctl) is now triggering the scheduling and
  processing of usb interrupt transfers. As long as it is blocking on
  the usb_callback semaphore, it is using it as timeout for the key
  repeats.
-> no more deadlock because the driver is issuing usb commands from
   within the usb_callback function (hotplugging should be fixed
   when using the Haiku usb stack)
-> the driver is no longer installing one timer per key down event
-> simplifications


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23328 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-01-09 19:46:54 +00:00
Marcus Overhagen
d688a5ad65 set bus state to ata_state_busy during device scanning
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23327 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-01-09 19:45:44 +00:00
Marcus Overhagen
a0183a22a1 removed fast_log usage
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23326 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-01-09 19:35:03 +00:00
François Revol
61946f580b sftp doesn't allow renaming to an existing file, so remove it first.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23325 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-01-09 19:29:35 +00:00
Marcus Overhagen
a094d41047 Rewrote bus state functions, commented out much code to make it compile.
Moved bus_reset from basic_protocol.c into ata.c


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23324 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-01-09 19:26:05 +00:00
Karsten Heimrich
952fdf7851 fix the build
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23323 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-01-09 19:13:29 +00:00
François Revol
6298fd4531 sftp also needs chmod...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23322 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-01-09 18:56:20 +00:00
François Revol
42b2e5d59a Might work better with the files :)))
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23321 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-01-09 18:51:55 +00:00
François Revol
718140546e sftp uploader seems to be working now :)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23320 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-01-09 18:50:59 +00:00
Axel Dörfler
34dafb6352 Minor refactoring.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23319 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-01-09 18:39:42 +00:00
Axel Dörfler
bcb71f00e8 * My last change to vm_page.cpp made an existing bug much more likely to
appear: when freeing a modified page, it wouldn't have a cache
  anymore, but set_page_state_nolock() depended on it.
* To work around this, I added a vm_page_free() function, which the
  caches that free modified pages have to call (but others may, too).
  It will correctly maintain the sModifiedTemporaryPages counter in case
  the cache has already been removed.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23318 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-01-09 18:15:28 +00:00
François Revol
e3145a8d8d Start of an SFTP uploader.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23317 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-01-09 18:15:26 +00:00
Axel Dörfler
f4748003ed * Added a KDL function "call" that can show the arguments together with
a function in the stack trace (only works reliably when a stack frame
  is exists, and you'll have to know the number of arguments).
* Refactored the functions a bit and extracted setup_for_thread() out
  of stack_trace() to be used by show_call() as well.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23316 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-01-09 18:08:15 +00:00
Marcus Overhagen
84fe450d15 fix the build
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23315 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-01-09 17:54:10 +00:00
Marcus Overhagen
478a8f0151 fix build
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23314 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-01-09 17:53:30 +00:00
Marcus Overhagen
27d6150677 fix gcc4 build
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23313 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-01-09 17:48:32 +00:00
Marcus Overhagen
1f1863e2a8 fix gcc4 build
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23312 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-01-09 17:45:12 +00:00
Ithamar R. Adema
e2eba858bb [HDA] Pass correct Cyclic Buffer Length to hardware...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23311 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-01-09 15:42:54 +00:00
Marcus Overhagen
cc91279875 removed command queuing and refactored device configuration
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23310 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-01-09 15:37:49 +00:00
Axel Dörfler
3d2595d16a The modified temporary page counter could go out of sync pretty easily.
This could cause the page writer to run endlessly.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23309 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-01-09 14:56:50 +00:00
Axel Dörfler
527b14e9d5 Renamed AttributeEditors.{cpp|h} to TypeEditors.{cpp|h}.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23308 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-01-09 14:29:14 +00:00
François Revol
6bb8b29f48 Make CamFrame a subclass of BMallocIO to add a timestamp field.
Set the field on allocation and pass it around.
Still disabled as CodyCam drops everything, I should probably drop old frames from the buffer... 
for now it uses system_time() to make CodyCam happy.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23307 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-01-09 14:10:37 +00:00
Axel Dörfler
7815f565dc Added a very simplistic BMessage viewer to the attribute editors - it
should later be replaced by something more useful (when we have a 
usable column list/tree view class).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23306 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-01-09 13:42:05 +00:00
Marcus Overhagen
f017b372bd added more debug output, read device error register after a reset
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23305 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-01-09 12:39:03 +00:00
François Revol
d51474999c Make sure the image format settings is saved.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23304 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-01-09 12:24:37 +00:00
Marcus Overhagen
479c2cafbc added more debug output
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23303 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-01-09 12:08:12 +00:00
Marcus Overhagen
f0e260b3bf added more debug output
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23302 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-01-09 12:07:38 +00:00
Marcus Overhagen
152fffc418 added more debug output
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23301 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-01-09 12:06:15 +00:00
Stephan Aßmus
826ea6b6f1 * the change to support B_DRAW_ON_CHILDREN broke ViewLayer::ViewAt(), ie
mouse events would not be passed to the correct children of views with
  B_DRAW_ON_CHILDREN flag set -> fixed. (fixes #1673)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23300 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-01-09 11:37:05 +00:00
François Revol
89740c7897 Add a base class for FtpClient to allow different clients later.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23299 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-01-09 11:22:39 +00:00
François Revol
ef89d96701 Work around BeOS ftpd (sets 640) + robinhood (doesn't like 640) by adding Chmod() support.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23298 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-01-09 11:12:16 +00:00
Stephan Aßmus
669717f740 * added a few recent contributors... I probably forgot a few others who
deserve to be mentioned... please speak up and I will correct it on
  the spot! :-)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23297 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-01-09 11:05:40 +00:00
Stephan Aßmus
3dfc4833e3 applied patch by aldeck:
* the Revert button always returns to the settings which were active
  when the preflet was started
* the Defaults button always applies the default settings (the Revert
  button then still reverts to the original settings instead of those
  which were active when "Defaults" was pressed)
* the enabled state of the two buttons is correctly maintained
* code cleanup and refactoring

Thanks a lot, aldeck!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23296 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-01-09 10:36:47 +00:00
Ithamar R. Adema
afc104a083 [HDA] When controller has multiple codecs, make sure we try to use the one with audio features. This should improve laptop support. More to come ;)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23295 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-01-09 10:20:07 +00:00
Stephan Aßmus
789091541e * cache the result of visiting the partitions
* make sure the colors are bright enough


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23294 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-01-09 00:30:24 +00:00
Marcus Overhagen
5f50c05486 cleanup of the rescanning code
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23293 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-01-09 00:17:51 +00:00
Stephan Aßmus
2787214419 * VisitEachPartition() was not working correctly, terminatedEarly was not
maintained


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23292 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-01-08 23:35:51 +00:00
François Revol
866072435f When running with relative path, Zeta complains: "Don't change the current working directory before creating the BApplication.".
Should work this way.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23291 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-01-08 22:47:59 +00:00
Stephan Aßmus
65a544dfb6 * the DiskView is now displaying the partition layout grafically and draws a
frame around the currently selected partition (in the listview)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23290 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-01-08 22:35:45 +00:00
Marcus Overhagen
d394cf760c check for device presence before trying to read the signature
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23289 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-01-08 22:31:35 +00:00
Marcus Overhagen
4e9047599d Modified device reset and detection, still broken
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23288 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-01-08 21:46:30 +00:00
François Revol
4a76630832 Seems I forgot to commit the overlay on that one.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23287 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-01-08 19:58:50 +00:00