Commit Graph

19215 Commits

Author SHA1 Message Date
Stephan Aßmus
f688476148 * add a new export format to get the vector icon data as C source
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22953 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-19 10:17:52 +00:00
Axel Dörfler
647c0044ff The "drag&duplicate value" feature was not working reliably when removing hints
after a value was set, as fLastField was not updated.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22952 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-19 09:15:04 +00:00
Ingo Weinhold
e0fa65f7bd Filter PCI_address_space bit out of bus_master_base in
ide_adapter_probe_controller(). ide_adapter_detect_controller() does
that itself, but ide_adapter_detect_channel() doesn't. Fixes off-by-one
bus master status register access. Shouldn't have caused any serious
problems, though.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22950 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-18 18:41:24 +00:00
Ingo Weinhold
ac30a23b8b Patch by Vasilis Kaoutsis:
* Added sigset() tests to the posix test suite (changes by me: fixed tests
  5, 6, and 7).
* Modified output to include the name of the test.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22948 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-18 16:44:49 +00:00
Ingo Weinhold
f969977bc1 Patch by Vasilis Kaoutsis (modified by myself): Implemented sigset().
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22947 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-18 16:39:18 +00:00
Ingo Weinhold
d138d70be4 Link libroot_build.so and libbe_build.so against the C++ runtime. Should
fix build problems on MacOS X.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22946 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-18 15:10:36 +00:00
Axel Dörfler
d4fc2b7db7 * Fixed a bug reported by Ryan: the stack_end pointer of a thread was reported
one too low in comparison with BeOS (ie. the end pointer was inclusive, now
  it's exclusive).
* Moved static functions fill_thread_info(), and {send|receive}_data_etc() to
  the private function section.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22945 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-18 11:59:53 +00:00
Axel Dörfler
79939c8d1e The KDL command "teams" now also prints the team ID in decimal rather than hex.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22944 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-18 11:57:35 +00:00
Michael Lotz
7f07482988 * Removed the two extra submit functions and combined them directly into SubmitTransfer()
* The sparation based on async and periodic schedule made no sense as it is a question of queued/non-queued
* Therefore removed the near complete code duplication for adding interrupt transfers (that are also queued)

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22943 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-18 01:25:04 +00:00
Michael Lotz
ed1eff2fec * Implement interrupt transfers in EHCI
* Uses a "collapsed binary tree" (for lack of a better name) to support the different intervals
* Remove a leftover variable declaration that was hiding error conditions away...
* Some cleanup

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22942 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-18 01:05:39 +00:00
Oliver Ruiz Dorantes
8354ae8795 Auxiliary structure to handle with BT commands and events. To consider later moving to a module. This is part of the USB-BT driver
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22939 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-17 20:48:50 +00:00
Salvatore Benedetto
4ff174438e * Implemented _InsertEndpointForPipe
* usual clean up


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22938 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-17 15:12:31 +00:00
Axel Dörfler
91adcde60f When having set/removed a value or hint, you can duplicate that action (or
remove the hint for that value) by dragging the mouse over other fields with
the mouse button held.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22937 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-17 14:15:31 +00:00
Michael Lotz
5524595645 Store the polling interval in the InterruptPipe class to make it accessible to the controller.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22936 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-17 11:38:38 +00:00
Salvatore Benedetto
eaa35fb2d1 * Replaced snooze with spin (Thanks Axel)
* Fixing TRACE messages
* minor clean up


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22935 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-17 11:03:16 +00:00
Salvatore Benedetto
e1abd4c8ce * Moved disable_interrupt right before resetting the controller
* Reworked on NotifyPipeChange
* Added _RemoveEndpointForPipe (not implemented)



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22934 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-16 10:11:02 +00:00
François Revol
05c6416eba Add macros for syscalls with 11 to 13 args.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22933 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-15 22:59:35 +00:00
Salvatore Benedetto
3f652d19a6 * Completed SubmitTransfer
* Added SubmitAsyncTransfer and SubmitPeriodicTransfer (not implemented)
* Removed unecessary spinlock 
* Wrapped some lines to follow coding guidelines



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22932 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-15 21:25:16 +00:00
Michael Lotz
76748b3cb1 Add a small cookie function to the Pipe. This can be used by the controller to store internal data related to a specific transfer pipe.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22931 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-15 20:17:18 +00:00
Axel Dörfler
8d2fdf2b0e Added Flush() to SetMouseEventMask(); this should definitely be sent immediately.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22930 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-15 15:06:51 +00:00
Michael Lotz
13508e8bd0 Completely redesign the USB explore process. Replaces the scary race conditions of the previous locking mechanism and simplifies handling of device changes by a more centralized approach.
Changes are now collected during explore and notifications as well as rescans are done at once. Through this a driver is also not rescanned multiple times anymore.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22929 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-14 22:11:05 +00:00
Stephan Aßmus
d3625d72ed * print the codec id a little later when tracing is on, when the id is better
knwon


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22928 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-14 18:08:15 +00:00
Salvatore Benedetto
ca73cdd62f * Renamed some variables
* Reworking the interrupts endpoints tree parts
* Added spin_locker, semaphore, finisher thread and interrupt handler (not implemented)
* Made fInterruptEndpoints allocation dynamic instead of static
* Fixed Start method (it should be correct now)




git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22927 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-14 13:37:41 +00:00
Axel Dörfler
7301a7fbdb bonefish+axeld:
* The debug_server now sends the registrar messages whenever the debug alert
  is shown, and also, if the user wants to debug the team.
* In the latter case, the registrar will now cancel a shutdown process.
* Also, it will now wait with the shutdown process until the user has
  acknowledged the debugger alert.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22926 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-14 01:28:47 +00:00
Axel Dörfler
bfccde1f6a Forwarding did not work anymore for direct targets, since the header::flags
field was not initialized properly, and the reply target was taken from the
wrong header in this case.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22925 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-14 01:22:43 +00:00
Axel Dörfler
28143c31d1 Build fix: iso9660_identify.cpp still included the old header.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22924 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-13 20:31:31 +00:00
Axel Dörfler
63d2ded05d Added a "net_timer" KDL command that dumps all network timers.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22923 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-13 15:20:51 +00:00
Axel Dörfler
fb431b443b * vfs_unmount() can now safely be called from the kernel (fs_unmount() still
tried to access the uninitialized vnode in that case).
* That means that it's now safe to remove a mounted CD from the drive, it
  will then be unmounted automatically.
* Added a check for partition::Device() - even though Ingo tells me it's
  impossible, it was NULL once.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22922 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-13 15:19:21 +00:00
Axel Dörfler
dc9a52b917 Renamed iso.h to iso9660.h.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22921 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-13 14:57:11 +00:00
Axel Dörfler
5b2c5d03e8 * Fixed a crashing bug in the identification code: it copied a C++ object on
the stack to an allocated one - on destruction of the latter, the resources
  were already freed.
* Made the identify code more negligent against bad CDs - ie. it will identify
  even broken CDs if they can be mounted.
* Made identification endian aware (it should now also work on big endian
  systems).
* Renamed many structures, methods, and fields to be less verbose, and follow
  our style guide.
* Renamed iso9660.cpp|h to iso9660_identify.cpp|h.
* Renamed iso.c to iso9660.c, rock.h to rock_ridge.h.
* Removed unnecessary cruft from the Jamfile.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22920 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-13 14:55:11 +00:00
Axel Dörfler
64a19b4444 Philippe was right, of course, the media checker thread did not bother to
check the fTerminating flag, so it would never quit (too bad no one ever quits
it anyway :-)). Thanks for proofreading!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22919 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-13 12:20:39 +00:00
Axel Dörfler
7333992516 On a media change, the KDiskDevice must do a bit more than it did:
* it now updates the partition data,
* the flags,
* and the disk geometry - and that now allows the session add-on to actually
  detect a newly inserted CD.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22918 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-13 12:18:06 +00:00
Axel Dörfler
ddd1769901 The file map code isn't that smart yet...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22916 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-13 11:20:17 +00:00
Stephan Aßmus
3c5dd34528 * contributed my "Spider" screen saver to Haiku
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22914 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-13 10:43:41 +00:00
Axel Dörfler
4a31d30e84 * The file map needs to know the actual file size to be able to know if it has
the complete extent info or not.
* file_map_translate() now cuts down the request to the file bounds.
* Adjusted BFS and FAT to the API changes.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22913 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-13 10:34:48 +00:00
Axel Dörfler
88ef411154 * Added an UninitializeMedia() method to KDiskDevice that also resets the
device geometry.
* If SetTo() reports no media, and GetGeometry() fails, the device geometry
  is now reset as well.
* KDiskDeviceManager::_ScanPartition() no longer unmarks the partition busy;
  this is now done by the caller, and done independently from the outcome of
  _ScanPartition(). This also fixes the problem that devices with no media
  were never marked unbusy (and thus were ignored subsequently).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22912 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-12 23:20:33 +00:00
Axel Dörfler
ef6f42349c * The session module deleted its cookie twice, after identifying, and when the
partition cookie was deleted - when removing a CD it would crash.
* Since the partition cookies are not needed at all, we don't use it anymore.
* scan_partition() deleted the identify cookie on error, but that's not its
  job - free_identify_cookie() is always called, no matter what scan partition
  does.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22911 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-12 22:38:39 +00:00
Ingo Weinhold
6e122bd99e axeld + bonefish: Missed those changes in the previous commit:
* Added vfs_unmount(), which allows unmounting by dev_t (used by the DDM).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22910 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-12 20:54:17 +00:00
Ingo Weinhold
b3a5629b9e axeld + bonefish:
* Unmount when uninitializing a partition.
* Finished the media checker implementation, i.e. we rescan when a media
  was inserted and uninitialize when ejected.
* Turned the disk device media checker from a kernel daemon into a thread.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22909 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-12 18:41:36 +00:00
Axel Dörfler
5b1f301a11 * _FindBestMode() can now also take the aspect ratio into account.
* Reduced rating of the color space - after all, the resolution is more
  important.
* The EDID detailed modes are now scanned for the best mode available, this
  could be done in various ways, so please report any problems you have with
  it.
* Ignore resolutions below 640x350 - this should also fix bug #1615.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22908 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-12 11:44:55 +00:00
Ingo Weinhold
2a6d40aea3 Patch by Vasilis Kaoutsis (slightly edited):
* The POSIX test suite is copied to the image when the jam variable
  HAIKU_ADD_POSIX_TEST_SUITE_TO_IMAGE is defined (cf. UserBuildConfig.sample).
* Added difftime and fork tests to the test suite run script.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22907 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-12 00:08:06 +00:00
Stephan Aßmus
c50a1ab8a4 * fix spelling mistake diamont -> diamond (fixes #1618)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22906 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-11 23:00:11 +00:00
François Revol
6548a8f371 Put return types for funcs on their own line.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22905 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-11 20:37:10 +00:00
François Revol
3503c8b0f4 Fix signature.
References for GL stuff to do:
http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=23
http://www.3dbuzz.com/vbforum/showthread.php?t=118279


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22904 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-11 20:12:01 +00:00
François Revol
c8bf21444a Fix wrong copyright.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22903 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-11 18:26:37 +00:00
Axel Dörfler
637c2a8557 A tiny bit more debug output when tracing is enabled.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22902 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-11 16:33:28 +00:00
Axel Dörfler
364759e0d2 * The "bytes" as passed to {read|write}_file_io_vec_pages() was never
initialized, causing those functions to read|write a random amount.
* This fixes bug #1614 - amazing how well the system worked with those randomly
  sized requests...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22901 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-11 16:28:56 +00:00
Jérôme Duval
aa42ed6ec6 fix int24 to float conversion : the formula was correct, but the sign bit of int32 doesn't help, and my ears confirmed.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22900 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-11 15:50:11 +00:00
François Revol
98f16eeec8 A canvas for a reimplementation of the memorable 3DMov demo, this time using OpenGL and the Media Kit.
Stippi, an HVIF icon please ;)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22899 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-11 14:56:22 +00:00
Stephan Aßmus
a878b1d91c * remove superfluous tab
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22898 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-11 14:45:04 +00:00
Axel Dörfler
f0d9382047 * The previous locking order "inode write" -> "journal" was not only not
honoured (in the Inode attribute code), it also couldn't be honoured there.
  Therefore, the locking order is now reversed, that is "journal" comes first,
  then the Inode write lock. This should also help with the lock ups that
  appeared after r22886.
* Got rid of INODE_NO_TRANSACTION; it doesn't make any sense to use.
* When Inode::WriteAttribute() changed the type, the type field was actually
  never written back within the current transaction.
* If the attribute data fit into the inode again, the attribute's write lock
  was never released.
* Since r22886, Inode::ReadAt() does its own locking, so we must no longer lock
  the inode before calling it.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22897 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-11 13:07:56 +00:00
Axel Dörfler
6edf637ba6 Minor cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22896 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-11 13:00:59 +00:00
Stephan Aßmus
1185d93240 * patch by vzsolt which really fixes the problem with zero byte buffers
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22895 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-11 12:56:46 +00:00
Axel Dörfler
0d8939aea7 There is absolutely no need that the interface packet consumer runs at a
priority that high.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22894 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-11 12:55:22 +00:00
Stephan Aßmus
a9cde6d274 * this should cover the case where the buffer is one byte long but is _not_
a text file


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22893 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-11 10:29:07 +00:00
Stephan Aßmus
acdf38f663 * fixed a bug researched by Varadi Zsolt Gyula, if the buffer is one byte long
or empty, assume text anyways, fixes Styled Edit opening empty files (#1610)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22892 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-11 10:21:29 +00:00
Stephan Aßmus
92deda607e * removed the Styled Edit Text translator from the "CVS" package for BeOS,
since it doesn't build for BeOS


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22891 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-11 10:19:27 +00:00
Ryan Leavengood
0e230349da I needed nextafterf support in WebKit, so I added it here. It was already
defined in the headers. If this is not the correct way to do this, let me
know, but it seems to work (well it compiled at least.)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22890 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-11 03:23:17 +00:00
Stephan Aßmus
0be6cbd37d * extract a Support.cpp/h with utility functions
* fix the problem with duplicated parent partition entries, we need to recurse
  into child rows when findig a particular BRow, or else RowAt() or CountRows()
  will only return the top level list entries
* disabled the bitmap column for now, to get a better overview of "level"
* display the device path also for partitions, not just devices


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22889 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-10 23:48:53 +00:00
Axel Dörfler
c98d35dc33 This might help with the build on Linux.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22888 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-10 21:46:57 +00:00
Marcus Overhagen
f668d91b37 This hopefully stops BPoligon from corrupting memory.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22887 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-10 21:23:04 +00:00
Axel Dörfler
3d268eda3d * Extracted file_map API out of the file cache - it's now an optional service
that can be used by file systems.
* Changed the way the file cache works: instead of reading/writing to the
  underlying device directly, it can now be used for any data source, ie.
  also network file systems.
* As a result, the former pages_io() moved to the VFS layer, and can now be
  called by a file system via {read|write}_file_io_vec_pages() (naming
  suggestions are always welcomed :-)). It now gets an FD, and uses that to
  communicate with the device (via its fs_{read|write}_pages() hooks).
* The file_cache_{read|write}() functions must now be called without holding
  an I/O relevant file system lock. That allows the file cache to prepare the
  pages without colliding with the page writer, IOW the "mayBlock" flag can
  go into the attic again (yay!).
* This also results in a much better performance when the system does I/O and
  is low on memory, as the page writer can now finally write back some pages,
  and that even without maxing out the CPU :)
* The API changes put slightly more burden on the fs_{read|write}_pages()
  hooks, but in combination with the file_map it's still pretty straight
  forward. It just will have to dispatch the call to the underlying device
  directly, usually it will just call its fs_{read|write}_pages() hooks
  via the above mentioned calls.
* Ported BFS and FAT to the new API, the latter has not been tested, though.
* Also ported the API changes to the fs_shell. I also completely removed its
  file cache level page handling - the downside is that device access is no
  longer cached (ie. depends on the host OS now), the upside is that the code
  is greatly simplified.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22886 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-10 21:19:52 +00:00
Ingo Weinhold
68f73bd1e5 The API expects the disk systems' to be referred to by pretty name.
Initializing a partition with BFS works again.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22884 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-10 20:38:39 +00:00
Ingo Weinhold
5ac3152dfe * Added some debug output.
* Don't generate an uninitialize job, when there's the partition wasn't
  initialized anyway (the syscall would fail in this case).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22883 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-10 20:36:30 +00:00
Ingo Weinhold
54a5f0b731 Implemented BPartition::_IsModified(), so that BDiskDevice::IsModified()
does actually work now.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22882 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-10 20:33:43 +00:00
Ingo Weinhold
17fdd1f071 Initialize ref count.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22881 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-10 20:31:50 +00:00
Ingo Weinhold
c9830ce0f5 * KDiskDeviceManager::{Find,Load}DiskSystem() can also find the disk
system by pretty name (not only module name) now.
* _user_initialize_partition() loads the disk system by pretty name.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22880 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-10 20:30:22 +00:00
Marcus Overhagen
aee1388ada improved debug output
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22879 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-10 19:15:12 +00:00
Marcus Overhagen
68cbf40298 Switch Intel AHCI controller from IDE into AHCI mode.
Clears BAR5 on ICH8 and ICH9.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22878 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-10 18:59:29 +00:00
Marcus Overhagen
f41613d5b2 Removed non-AHCI id. Reverts bugreport #1599 change.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22877 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-10 18:55:57 +00:00
Marcus Overhagen
f53094e7ea fail gracefully when base address register or irq hasn't been assigned.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22876 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-10 18:41:24 +00:00
Salvatore Benedetto
e3677c6d3c * ups :)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22875 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-10 18:36:56 +00:00
Marcus Overhagen
79844706c2 Propagate is-ATAPI restriction to the SCSI bus manager.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22874 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-10 17:47:57 +00:00
Salvatore Benedetto
a097d8c8ee * Placed underscore to private methods like ReadReg and WriteReg
* Rewrote _AllocateEndpoint
* More work in the constructor


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22873 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-10 17:47:03 +00:00
Ingo Weinhold
db81403db4 Beginnings of a BFS userland disk system add-on.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22872 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-10 17:34:44 +00:00
Ingo Weinhold
57225f0367 * Moved helper function to check initialization parameters to separate
source file. Added function to check the volume name.
* Removed bfs_validate_initialize(). This functionality is to be implemented
  in a userland add-on.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22871 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-10 17:33:47 +00:00
Marcus Overhagen
117c680d90 Warn when lun is not 0. Might be needed for SATA PM support.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22870 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-10 16:49:39 +00:00
Marcus Overhagen
8d722116c2 Enable SATA ports 5 and 6 on Intel ICH8 and ICH9 based
systems, and possibly enable ports 7 and 8 in the future.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22869 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-10 16:25:49 +00:00
Marcus Overhagen
65621982c9 New PCI quirk/fixup support.
The Jmicron AHCI controller has a mode that combines IDE and AHCI functionality
into a single PCI device at function 0. This happens when the controller is set
in the BIOS to "basic" or "IDE" mode (but not in "RAID" or "AHCI" mode).
To avoid needing two drivers to handle a single PCI device, we switch to the
multifunction (split device) AHCI mode. This will set PCI device at function 0
to AHCI, and PCI device at function 1 to IDE controller.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22868 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-10 15:51:40 +00:00
Ingo Weinhold
83274b7115 Patch by Vasilis Kaoutsis: Shell script to run the POSIX conformance tests.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22867 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-09 23:36:37 +00:00
Ingo Weinhold
627c5b3f82 Patch by Vasilis Kaoutsis: Added posixtestsuite tests for sigrelse().
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22866 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-09 23:27:30 +00:00
Ingo Weinhold
99ed286c94 Patch by Vasilis Kaoutsis: Implemented sigrelse().
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22865 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-09 23:23:46 +00:00
Axel Dörfler
c84c58e41a Extracted file_map API for later use.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22864 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-09 17:09:54 +00:00
Marcus Overhagen
270d4ee0ec disabled most debug output, this makes the driver useable
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22863 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-09 16:36:59 +00:00
Marcus Overhagen
8c8d63ee00 added more device IDs
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22862 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-09 15:49:55 +00:00
Axel Dörfler
3af0509ddb No wonder the page writer sucked so many cycles: the PageCacheLocker constructor
did not propagate the "dontWait" argument, letting the page writer never wait
for its pages.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22860 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-08 15:24:27 +00:00
Axel Dörfler
9edc2b526f The reserved pages computation used the same broken logic as read_into_cache()
and write_to_cache() before, IOW the cache could reserve too few pages.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22859 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-08 14:44:13 +00:00
Axel Dörfler
cfe386c2d5 * read_into_cache() and write_to_cache() both did not compute the number of
needed pages correctly, and would also not read/write enough in case the
  offset didn't start at 0 resulting in undetected short reads/writes. It's
  amazing how many bugs can be hidden in a few lines of code.
* Fixed a bug that might have been the cause for bug #1601: when the last part
  of the write did not end on a page boundary, the last page had to be read
  first, but that was done from the wrong offset. Also, if only parts of that
  page could be read (because the file size didn't span over the whole page)
  the remaining parts needed to be cleared.
* The cache_funcs were always called with the same value for numBytes and
  bufferSize so I've eliminated the former.
* Large reads now also bypass the cache in case of low memory, large writes now
  also only bypass the cache in that case, following Ingo's suggestion.
* Fixed compilation with debugging turned on.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22858 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-08 13:45:04 +00:00
Axel Dörfler
09149281e0 The file cache now completely bypasses the cache for writes equal or larger
than 64KB. Reads should probably get a similar logic, at least if memory is
tight.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22857 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-08 09:30:58 +00:00
Axel Dörfler
67f0ddf604 Added the sModifiedTemporaryPages counter to the output of the "page_stats" KDL
command.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22856 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-07 22:26:55 +00:00
Stephan Aßmus
c900be6501 * fix saving settings (don't let the window quit by itself)
* add partition creation menu items
* filter filesystems by their support for "initializing"


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22855 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-07 22:16:06 +00:00
Stephan Aßmus
f9ca8faab7 * renamed main.cpp to DriveSetup.cpp
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22854 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-07 20:11:56 +00:00
Stephan Aßmus
753e3d4ef7 cleaned up the code:
* conforming app signature
* tracked down copyright info
* removed too technical list columns
* reimplemented storing/restoring settings (removed PosSettings)
* relayouted/simplified menu structure
* rewrote rdef
* enabled debug output for now


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22853 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-07 20:10:19 +00:00
Axel Dörfler
f7e414f22b * Made page_writer() use a marker page as well, so that it won't try to get
the same pages over and over.
* Increased the priority of the page writer a bit, so that it is higher than
  the one of the page daemon.
* Added a sModifiedTemporaryPages counter to let the page_writer decide how
  many pages are there to write back (temporary pages would go to the swap file
  and are only written back when memory is low).
* In case there are more than 1024 modified (non-temporary) pages around, the
  page writer will constantly write out pages, not only when being pushed.
* The page writer now temporarily always leave out temporary pages (as long as
  we don't have a swap file).
* Shuffled functions around a bit.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22852 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-07 17:09:05 +00:00
Axel Dörfler
a425a5ae4d Keyboard navigation only worked after the first field was set.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22851 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-07 14:42:07 +00:00
Axel Dörfler
82a54995b5 * Fixed _ComputeColumnLayout() optimization introduced in r22658: it actually
never worked correctly for any case which was very visible in Tracker (and
  especially so if you had "sorting apps" turned on).
* Removed superfluous white space at the end of lines.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22850 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-07 14:24:09 +00:00
Stefano Ceccherini
afd60167e3 Reverted r21395. Many people didn't like the change, and after all I too
think it wasn't a really good idea. The alignment of shortcut 
charachters and submenu symbols could use some more work, though.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22849 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-07 09:38:55 +00:00
Jérôme Duval
0aded81728 clean the background for all workspaces when no image is selected
this fixes bug #1602


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22848 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-06 23:35:07 +00:00
Ingo Weinhold
f88e00f507 Patch by Vasilis Kaoutsis: Added posixtestsuite tests for sighold().
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22847 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-06 22:14:01 +00:00
Ingo Weinhold
0a1968cf8f Patch by Vasilis Kaoutsis: Implemented sighold().
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22846 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-06 22:11:43 +00:00
Ingo Weinhold
def1a8a91c Patch by Vasilis Kaoutsis: The Open Group Base Specs for signal() require
errno to be set to a positive value on error, but since BeOS error codes are
negative numbers, we can't comply. Changed the tests accordingly to check for
the expected error code (EINVAL) instead.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22845 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-06 22:06:40 +00:00
Hugo Santos
5450cae172 try to hide the gruesome details from the glue code as much as possible.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22844 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-06 16:45:10 +00:00
Axel Dörfler
b35a3514f1 Now allows you to store a state of the current puzzle, and to restore it later on.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22843 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-06 13:45:32 +00:00
Axel Dörfler
6405549873 No wonder no one noticed that the silicon_image_3112 driver was broken; I
actually forgot to commit the changes I made to the ide_adapter...
* the IDE bus master command/status stuff is now used via flags; it's no
  bitfield anymore.
* Changed a few constants to upper case.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22842 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-06 02:26:44 +00:00
Ingo Weinhold
a81e874ffb * Added opt-in debugging feature: Recent allocation-related operations
on pages are recorded in a history and can be printed via the
  "page_allocations" command.
* Fixed a problem in the page scrubber. It temporarily removed pages
  from the free list, which could have been reserved by someone else.
  When actually allocating the reserved pages, that someone could find
  free and clear lists empty and would therefore rightfully panic
  ("Had reserved page, but there is none!").


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22841 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-06 01:07:13 +00:00
Axel Dörfler
ee75b36dea * My changes to the ide_adapter.h broke the silicon_image_3112 which I didn't
notice until now. Fixed again.
* Cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22840 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-05 23:08:58 +00:00
Axel Dörfler
8e185f271f DO NOT MAKE UNTESTED LAST MINUTE CHANGES (and also don't forget about them
before committing :-)) - this fixes the build.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22839 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-05 22:35:38 +00:00
Axel Dörfler
618ef1498d * Made at least scsi_cmd_rw_10 the same as the one in private/drivers/scsi_cmds.h;
ideally, we would only have one file and no copies - later.
* That also changed how READ/WRITE_6 commands are translated to READ/WRITE_10
  commands, but it was obviously correct before, at least I can still reproduce
  bug #1577 (so it has to be something else).
* Spotted a few suspicious uses of transform_6_10() vs. transform_cmd_6_10();
  at least the FreeBSD driver seem to work differently here, anyway (it always
  uses 12 byte commands for most of these).
* Cleaned up the file.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22838 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-05 22:28:03 +00:00
Jérôme Duval
8bef760f81 create media settings directory before saving default nodes
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22837 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-05 21:54:12 +00:00
Axel Dörfler
a00a1f4144 * Added the device/vendor pair of the ICH7 used in the MacBooks, courtesy of
"chrisjp", see bug #1599.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22836 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-05 17:45:31 +00:00
Stephan Aßmus
d4983ec0c8 * use BListItem::Height() consistently (clicking a nick in Vision now selects
that same nick, not a different one)
* performance improvement in Draw() (using ItemFrame() in the inner loop scales
  really bad)
* fixed scroll range for when BListItem::Height() is non-integer (scrolling
  all the way to the bottom in Visions nick list works now)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22835 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-05 15:29:25 +00:00
Axel Dörfler
5ff3d4f2db * If steal_pages() stole more than originally asked for, it might have lost those pages in the
non-reserve case.
* vm_page_allocate_page() could also lose a stolen page in case more free pages were available
  after steal_pages() was called.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22834 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-05 11:37:02 +00:00
Bruno G. Albuquerque
a66c2a2c9e Made the FreeBSD rtl8139 driver the default one and removed the other driver.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22833 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-05 11:13:27 +00:00
Ingo Weinhold
7b45b55be1 * Added back and partially reimplemented the
K{Disk,File,Partitioning}System writing methods. It is now required
  that the caller has marked the concerned partitions busy, hence we can
  (read-)access them without needing a lock. The module interfaces will
  will be changed to take advantage of the fact as well. The methods take a
  disk_job_id instead of a KDiskDeviceJob* now, though I haven't quite
  decided, whether we need it at all or just want to add a special
  handling in the cases where notifications during the operation make
  sense.
* Reimplemented the disk device write support syscalls (save
  _user_move_partition() for which other module hooks are needed). They
  call the KDiskSystem methods, now.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22832 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-05 00:42:47 +00:00
Ingo Weinhold
2128ea4f31 Added IsBusy(bool) version, which optionally also checks the
descendants.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22831 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-05 00:30:14 +00:00
Ingo Weinhold
a56a0c276a Patch by Vasilis Kaoutsis: Removed redundant parameter check (sigaction()
does it anyway).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22830 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-04 17:48:49 +00:00
Bruno G. Albuquerque
8ae2f054c7 Added miibus initialization. The driver now seems to work flawleslly. Please test and report problems. Comming up next, enabling it by default.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22829 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-04 17:46:28 +00:00
Ingo Weinhold
3ee9275573 Patch by Vasilis Kaoutsis: Added tests for signal().
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22828 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-04 17:46:08 +00:00
Bruno G. Albuquerque
13f2a5fa31 First cut at a fix to the FreeBSD rtl9139 driver. Some drivers require softc to
be initialized when probe(0 is called. The driver now loads and works for a
while until it hangs. Looking into it.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22826 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-04 17:17:41 +00:00
Axel Dörfler
888514b231 * Applied our coding style.
* Made output much more readable and useful (especially with 80 characters).
* Removed useless -u option when built for Haiku.
* Added a new option -t that shows the tunables.
* Removed the hack to let be_app run - it works fine without on BeOS.
* Improved parameter parsing (now uses getopt_long()), also added long names
  for all options.
* I'm all for removing BeOS/Dano support completely from this app.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22825 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-04 14:21:12 +00:00
Axel Dörfler
21599cafab Renamed via-rhine directory to via_rhine - that's how the driver is named now.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22824 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-03 23:19:30 +00:00
Axel Dörfler
f6d16d80f5 * Replaced the VIA Rhine driver in the network boot archive as well.
* Removed the old non-working VIA driver.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22823 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-03 23:10:10 +00:00
François Revol
4e44040df4 Ditto.
cleanup
Less ppc, more m68k :)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22822 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-03 21:04:42 +00:00
Jérôme Duval
67cf86ff49 added Haiku for telnetd login
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22819 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-03 19:13:42 +00:00
Axel Dörfler
b7d3b2fe8f * Calmed down the FreeBSD drivers even more - compat_{read|write}() no longer
print anything.
* Added (commented out) debug output to compat_control().
* Renamed variables "len" to "length" where possible.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22818 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-03 17:32:14 +00:00
Axel Dörfler
1662c6dfc9 Added ukphy fallback MII PHY driver for 3com as well.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22817 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-03 16:51:44 +00:00
Axel Dörfler
f7a7cab9e7 The promiscuous work-around is no longer needed; the MAC address is now set correctly in the filter,
so that we can receive all of our packets.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22816 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-03 16:45:49 +00:00
Axel Dörfler
e25593c034 I accidently didn't revert the delayed MII bus scan correctly which resulted in callling the
device's attach() method twice - this would let every network device that found a MII PHY fall into 
an endless loop on start. In other words 3com and VIA Rhine should now work fine.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22815 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-03 16:43:28 +00:00
Axel Dörfler
e60d7937c9 The MAC address might need to be copied to the arpcom structure as well
(the 3com driver needs this, for example).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22814 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-03 15:10:22 +00:00
Axel Dörfler
3e01ad3517 Made DELAY() fall back to spin() for times below 1000 usecs; it's often used that way, and snooze()
just wouldn't work right then.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22813 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-03 13:39:39 +00:00
Axel Dörfler
7242a223a1 * Added miibus_linkchg and miibus_mediainit methods to device_set_driver(); this was the actual
reason the MII bus did not work as mediainit was never called.
* Got rid of the delayed MII bus scanning again; not only did it not solve the problem, it was
  also completely unnecessary.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22812 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-03 13:00:12 +00:00
Axel Dörfler
38d3e0e20c Added VIA Rhine driver from FreeBSD 6.2 unchanged. It does not work yet, though, because of problems
with the MII bus support in the compatibility layer.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22811 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-03 12:07:26 +00:00
Hugo Santos
3c7287cce1 r10168@haiku-devel: hugo | 2007-11-03 12:35:29 +0100
find_route() is not really IPv4 specific.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22809 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-03 11:36:02 +00:00
Jérôme Duval
f87a6142a4 SYSCALL20 is needed on x64-64
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22808 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-02 19:18:01 +00:00
Axel Dörfler
84eb0b5f5b Delayed scanning the MII bus until the first ifm_media has been set for the
device.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22807 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-02 18:24:05 +00:00
Axel Dörfler
2949df37ae The MII stuff did not work at all, this is at least an improvement for that; apparently,
probing/attaching the MII bus should come later, though.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22806 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-02 18:09:02 +00:00
Axel Dörfler
1c0d11a0a7 Turned off extensive debug output, minor cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22805 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-02 15:47:47 +00:00
Axel Dörfler
689177bed5 Added contigfree() as well.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22804 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-02 15:07:50 +00:00
Axel Dörfler
01ada2057f Accidently messed up the vtophys() macro...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22803 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-02 15:05:12 +00:00
Axel Dörfler
00abfdbe15 * Since vtophys() is no public API in FreeBSD, vtophys() is now a macro to
pmap_kextract() not vice versa, just like it is done in FreeBSD itself.
* Added missing contigmalloc() definition for kernel drivers.
* Fixed the "*_devclass defined but not used" warning.
* Fixed warnings.
* Added/adjusted (to our style guide) the license headers for the files I
  touched.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22802 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-02 15:00:45 +00:00
Ingo Weinhold
53715fe060 * Got rid of the B_PARTITION_DESCENDANT_BUSY flag.
* Added CheckAndMarkBusy() and UnmarkBusy() methods to KPartition.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22801 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-02 00:29:46 +00:00
Ingo Weinhold
8354dac78e Folded KPhysicalPartition into KPartition. Removed the notion of shadow
partitions from the disk device manager.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22800 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-01 23:36:21 +00:00
Ingo Weinhold
327887959e * Moved partition scanning back to KDiskDeviceManager. ATM only
synchronous scanning is supported.
* Removed the disk device job support from the disk device manager.
* K{Disk,File,Partitioning}System:
  - Remove querying and validation methods.
  - Commented out the modification methods until their fate is decided.
* Removed obsolete _user_get_partitionable_spaces().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22799 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-01 22:41:22 +00:00
François Revol
c5e454a288 Add listfont
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22798 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-01 21:53:25 +00:00
François Revol
7269d269be Added a listfont command to dump fonts and their properties.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22797 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-01 21:52:58 +00:00
François Revol
8d5ab5bb5e Fixed the in8/16/32 command.
Added out8/16/32 commands.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22796 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-01 21:40:32 +00:00
François Revol
a48345971e fix building with make
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22795 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-01 21:22:53 +00:00
François Revol
078a47ed03 We now have BTextParameter even if BMediaTheme doesn't know about it yet.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22794 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-01 21:21:44 +00:00
Jérôme Duval
7d2666b85a added a few more syscalls arguments for _kern_create_child_partition()
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22793 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-01 19:36:34 +00:00
Ingo Weinhold
07ebcc2d2b Patch by Vasilis Kaoutsis:
* Added sigignore() tests.
* Renamed names of the test executables to avoid clashes in the build system.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22792 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-01 18:12:55 +00:00
Jérôme Duval
2d01adeaf4 clean up
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22791 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-01 18:08:42 +00:00
Ingo Weinhold
c727d6fd76 Patch by Vasilis Kaoutsis: Style cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22790 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-01 18:05:22 +00:00
Ingo Weinhold
74fa73bac6 Patch by Vasilis Kaoutsis: Implemented sigignore(). Small changes by myself.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22789 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-01 18:03:36 +00:00
Jérôme Duval
d284de3249 fixed handling of parameters
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22788 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-01 18:01:10 +00:00
Stephan Aßmus
23b6ac7e15 this should complete the work on password mode for BTextView:
* fixed +/- 1 bug in _BTextGapBuffer_::GetString()
* used the correct text and offsets in BTextView whenever the visible
  text is to be used
* when copying to the clipboard, copy the bullets
* when dragging the text, drag the bullets
TODO:
* test more with UTF8 chars in the original text (I am unsure if fSelStart
  and so on is really in bytes rather than glyphs)
* test with multiple font styles



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22787 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-01 15:58:07 +00:00
Stephan Aßmus
6a0f79107d * fix the build of the libbe_test target
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22786 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-01 15:03:58 +00:00
Stephan Aßmus
206f31b981 * fix build on test environment
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22785 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-01 14:14:43 +00:00
Stephan Aßmus
acf8b5d11c * despite what the BeBook suggests, using CopyBits() on a non-attached BView
does not drop you into the debugger on R5. Should fix #1598.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22784 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-01 12:05:56 +00:00
François Revol
1b6ddd3492 Optimized 64bit atomics:
- use movem
- fix return value: the convention is to return in d0:d1 (MSB:LSB)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22783 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-01 03:43:08 +00:00
Jérôme Duval
5aa27f74da updated zip to version 2.32
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22782 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-11-01 01:27:31 +00:00
Ingo Weinhold
300868ce27 * Removed no longer needed disk device related syscalls
(_kern_{supports,validate}_*(), etc.).
* Adjusted the prototypes of the disk device modification syscalls.
  Commented out their implementations for the time -- they'll mostly
  have to be rewritten completely.
* Implemented the userland disk device jobs.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22781 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-31 21:16:22 +00:00
Axel Dörfler
61291964c3 The intel_extreme driver now finally works with the i965 chipset;
acceleration works fine, but overlay doesn't - that's next on my list.
Turns out the i965 differentiates between RGB-32 and RGB-32-alpha, and 
didn't like trying to use the latter as display mode (the i865 didn't 
care at all)... finding that took me *way* too long, though.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22780 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-31 19:23:59 +00:00
Ingo Weinhold
3ca9267ce3 * The BMutablePartition setters adjust the change flags accordingly.
* PartitionDelegate::Uninitialize() uninitializes the mutable partition. 


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22779 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-31 17:02:52 +00:00
Axel Dörfler
b289dec88c * Factored out a _FindBestMethod() from _SetFallbackMode() - it now also takes
the timing of the original mode into account (I haven't tested if the computed
  score makes that much sense, though).
* GetPreferredMode() now also works correctly for EDID data): it now returns
  the correct status, and also constructs the mode correctly. Furthermore, it
  will now search for the mode in the mode list, instead of using that mode
  directly (so that it can take hardware limits into account).
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22778 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-31 14:05:24 +00:00
Axel Dörfler
9121620d41 Added sigsuspend_test, courtesy of Vasilis Kaoutsis - thanks!
It currently fails on Haiku.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22777 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-30 21:44:46 +00:00
Ingo Weinhold
6e927a5fc0 malloc.h ain't no standard header. Use stdlib.h instead.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22776 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-30 17:32:27 +00:00
Axel Dörfler
f6e4b669b9 * Fixed warnings.
* Turned off debug output for interrupts.
* Temporarily turned on IFF_PROMISC mode so that the driver can at least be used a bit. 


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22775 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-30 17:19:07 +00:00
Ingo Weinhold
a2db5acb28 At least one file is C++, so we have to link against the C++ runtime.
Should fix the build on Darwin.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22774 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-30 17:18:59 +00:00
Axel Dörfler
d8f9591fa7 * Fixed the loop in bus_generic_attach() that I accidently broke with the previous commit.
* Calmed down the FreeBSD compatibility layer considerably.
* Now also sets the arpcom's ac_ifp field for completeness.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22772 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-30 16:56:15 +00:00
Axel Dörfler
d8ff7084f2 Implemented interrupt handling for the 3com driver; unfortunately, it does not work unchanged:
turning off interrupts on the device doesn't seem to work, and when one only acknowledges the
interrupts, they are also removed from XL_STATUS register.
The driver now starts to work: it can send and receive packets, though it currently only seem
to receive broadcast packets.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22771 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-30 16:53:16 +00:00
Axel Dörfler
31154c5cc6 * Fixed the KASSERT() macro - it panicked without reason.
* Fixed device_set_driver(): it needs to clear the allocated buffer (it's
  allocated with M_ZERO in FreeBSD).
* The first mbuf buffer needs to have the M_PKTHDR flag set.
* With these changes, the 3com driver now fails where it should have failed
  before, that is in the missing interrupt handling.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22769 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-30 12:01:21 +00:00
Ingo Weinhold
96d028bd6a Missed in the previous commit.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22768 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-29 23:52:41 +00:00
Ingo Weinhold
25ab0d1a4a * Fixed typos in the disk device job constants.
* Added missing job classes (they don't do anything yet, though) and
  completed the implementation of the job generator.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22767 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-29 23:51:02 +00:00
Axel Dörfler
afa1bfe51d IFT_ETHER expects an arpcom structure at if_l2com; this would actually need
to be expanded for other types, but for now, we'll probably only get IFT_ETHER
anyway.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22766 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-29 23:37:35 +00:00
Ingo Weinhold
91c1b58f82 Attempt to make unzip build for MacOS X as well.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22765 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-29 22:27:43 +00:00
Axel Dörfler
3ecd9d8fbb Added a small test for B_LOCK_FOCUS and B_SUSPEND_VIEW_FOCUS.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22764 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-29 20:24:18 +00:00
Jérôme Duval
9bfd424271 replaced '_RRC' with B_REFS_RECEIVED
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22763 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-29 19:25:04 +00:00
Jérôme Duval
69e65f2f57 replaced misc values with respective constants
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22762 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-29 19:10:30 +00:00
Axel Dörfler
1fbd9939b9 NewRegion is gone.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22761 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-29 15:03:57 +00:00
Stefano Ceccherini
c20e6cca18 Deleted useless new(old) region implementation
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22760 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-29 10:49:03 +00:00
Stefano Ceccherini
795a2888e7 Rewrote PopUpMenu.h and MenuBar.h. Adjusted source files accordingly.
Added license to SeparatorItem.h


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22759 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-29 10:40:16 +00:00
Axel Dörfler
6ae06ef86a Implemented AS_IDLE_TIME, this closes bug #1593.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22758 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-29 09:11:25 +00:00
Michael Pfeiffer
3fc0398b6f Removed duplicate code. MarginView is already in libprintutils.a.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22757 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-29 07:53:10 +00:00
Michael Pfeiffer
79d7211056 Write more detailed error message in case font cannot be embedded (closes #1584).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22756 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-29 07:50:12 +00:00
Jérôme Duval
09f147fb33 test app for idle_time() (bug 1593)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22755 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-28 23:13:47 +00:00
Ryan Leavengood
b052daff3b Applying patch from Łukasz Zemczak to fix bug #1570.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22754 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-28 22:37:53 +00:00
Rudolf Cornelissen
0835c0e0dc updated docs to reflect non-G80 support.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22753 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-28 19:50:29 +00:00
Rudolf Cornelissen
05b8bc332c disabled G80 and higher support. The driver recognizes the card, but the accelerant will refuse to operate the card. It might be a good idea to create a new seperate accelerant for G80 and higher support due to what looks to be extensive hardware architecture changes. You're stuck to VESA for now. Sorry. Bumped version to 0.84.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22752 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-28 19:49:59 +00:00
Stephan Aßmus
ed7081f728 * 'PNG ' -> B_PNG_FORMAT
* reformat long lines so that they don't exceed 80 chars


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22751 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-28 19:13:46 +00:00
François Revol
ac1a8a0c8d Note on 060 equivalent of HLT.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22750 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-27 23:50:58 +00:00
François Revol
eb226d26e8 Add note about extended partitions and boot code...
I started this from the amiga code but it's closer to the DOS layout.
TODO: rewrite from the DOS code to support extended partitions.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22749 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-27 22:32:01 +00:00
François Revol
7986b7e36d Make use of the kernel's elf loader code instead of duplicating it.
Add placeholder for m68k.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22748 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-27 12:01:52 +00:00
François Revol
0743882d32 Make kernel elf loaders usable by bootloader to factor them out of it.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22747 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-27 11:49:59 +00:00
François Revol
66cda9d0d7 Report the partition type as string. Not the best way yet.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22745 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-26 23:09:14 +00:00
François Revol
e99c785f5c Add atari partitioning addon to the build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22744 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-26 22:29:24 +00:00
François Revol
b82ae48b36 Note on use of TAS,CAS and CAS2 on Amiga.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22743 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-26 22:27:31 +00:00
François Revol
8161a0aff8 Work around gcc issue: change (0x1fe-0x3a) to (0x1fe - 0x3a), to avoid missinterpretation.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22742 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-26 22:14:52 +00:00
François Revol
0e596fcaf9 Naive partitioning system addon for Atari...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22741 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-26 21:39:26 +00:00
Jérôme Duval
295059869b updated libpng to 1.2.22
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22740 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-26 18:09:44 +00:00
François Revol
fac9743e5c s/ppc/m68k/
Lure the preprocessor to not replace #n by "123" for syscalls...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22739 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-26 17:09:08 +00:00
François Revol
dd68e9e8b4 More of the libc...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22738 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-26 17:07:23 +00:00
Stephan Aßmus
42a2db3602 * track the fact if Painter is attached to a frame buffer, incorporate
this information in the fValidClipping flag... which should prevent
  any drawing code to run if Painter is not attached properly


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22736 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-26 15:31:27 +00:00
Axel Dörfler
d1516993c2 Made the menu fields variable width again; it looked a bit ugly before to me.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22734 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-26 13:32:06 +00:00
Salvatore Benedetto
9d211eb104 * Removed endpoint and descriptor wrappers, everything is in the related structure like it's done in the uhci driver.
* Clean up continues


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22733 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-26 12:55:16 +00:00
Axel Dörfler
c657332910 * The file cache now remembers the last 3 accesses to be able to detect
sequential access.
* This is now used to let the cache free some pages (or schedule them to be
  written back) before vm_reserve_pages() is called, but only if that cache
  is not mapped, and there is a memory shortage.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22731 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-26 09:15:33 +00:00
Ingo Weinhold
77c02b906b Patch by Vasilis Kaoutsis: Check for a valid signal number before
doing something. If the signal is not valid, set errno and return -1.
Mini style changes by myself.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22728 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-25 22:01:16 +00:00
François Revol
2bbf13b7a5 Add syscalls.
Fix CAS2 usage, only supports (An) addressing mode.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22727 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-25 18:45:34 +00:00
Jérôme Duval
99d0c19e37 whenever a node has already a child, it means a driver has already attached to this node
for this reason, we don't add such a node in the list of nodes to be scanned
this fixes the bug #1578


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22726 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-25 18:25:23 +00:00
Stephan Aßmus
cf91c9e850 * some disabled code that was supposed to reveal more info on why
it can happen that a view's background region is outside the
  framebuffer... for some weird reason, it doesn't get triggered
  though.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22725 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-25 18:20:03 +00:00
Axel Dörfler
fcfbb8aa6c libprefs.so uses the private _klock_node_() syscall, and even loops until it
returns success - since this stub always returned failure, this prevented all
apps using that library (like Gobe Productive) from running.
It now calls the Haiku equivalent _kern_lock_node(), and Gobe now runs fine!
This closes bug #562.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22724 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-25 17:04:10 +00:00
Axel Dörfler
ce78b3653a Now only removes a default route for a domain in case a new one is specified;
this fixes bug #1423, the loop interface removed the default route for the
other interface (didn't happen previously, as routes were bound to devices).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22723 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-25 15:15:25 +00:00
Axel Dörfler
9004a56437 * Made some functions static that should have been.
* Added a commented out dump_routes() function for debugging purposes.
* Removed weird spaces, fixed indentation.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22722 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-25 15:13:34 +00:00
Stephan Aßmus
ff85245718 * fixed the crashing result of bug #634, check if the supplied region
falls within the frame buffer bounds. This should not happen, and
  I am going to search for the cause next, but at least app_server
  dosn't crash anymore in this context. Left a comment on my findings
  so far.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22721 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-25 15:11:58 +00:00
Stephan Aßmus
e48d0f097b * fix trailing tabs in FPS.h, thanks Michael!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22720 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-25 13:33:07 +00:00
Stefano Ceccherini
2d05e85cb5 decide -> device
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22719 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-25 13:30:36 +00:00
Stephan Aßmus
450bb3e557 patch by Fredrik Modéen:
* extensive code cleanup
* small additional clean ups by myself


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22716 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-25 12:28:22 +00:00
François Revol
42b025bece No need for ppc code there.
68030 invalidates only 1 long of a cache line each time.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22715 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-25 12:10:46 +00:00
Stefano Ceccherini
09d6e976df Looks like I deleted too much... copied Region.h back from the os
folder, updated Region.cpp and RegionSupport.cpp accordingly. Also 
implemented empty BStatable destructor. Needed, since it's virtual now.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22713 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-25 11:46:06 +00:00
François Revol
829748d89d Fix flushing the ATC, add flushing icache.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22709 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-25 02:24:38 +00:00
François Revol
ee75f8527b This should handle TLB flushing on m68k (it's called ATC though).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22706 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-25 00:45:01 +00:00
François Revol
00c8f3104c Add a warning about CAS2: 060 doesn't have it, we'll loose 64bit atomics :^)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22704 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-25 00:39:27 +00:00
Stephan Aßmus
5913d84eb8 patch by "anxiety":
* added a Query menu to the main menu, giving access to some
  email queries
I refactored the patch a little and added monitoring the query folder,
so that all open Mail windows should update. However, I might not have
got it to work as intended, at least I got no entries for the query results,
even though the same query did return results when run in Tracker.

This should implement the idea in #1208, and that's also where the patch
was attached. 


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22702 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-24 23:01:54 +00:00
François Revol
cc9ad8e824 Start of math support from glibc.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22701 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-24 22:54:33 +00:00
Stephan Aßmus
20b56fdd92 * actually initialize the static sLocker with NULL too...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22700 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-24 22:51:43 +00:00
François Revol
fd5679a989 Empty arch specific drivers folder.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22699 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-24 20:43:10 +00:00
François Revol
d0e366a937 Empty cpu module. Might do something there later, should be possible to emulate mtrr as the page descriptors have a cache-disable bit.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22698 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-24 20:41:04 +00:00
Ingo Weinhold
6bd2f399e8 Patch by Vasilis Kaoutsis: Implemented killpg().
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22697 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-24 13:49:42 +00:00
François Revol
51238e6bd3 Missing Jamfile.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22693 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-23 23:38:34 +00:00
François Revol
90f87904fc Some m68k fixes.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22692 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-23 23:34:20 +00:00
François Revol
df05c21550 Default code for m68k.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22691 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-23 23:31:01 +00:00
Axel Dörfler
13ca2d942d Patch by Vasilis Kaoutsis - thanks!:
* Rewrote TextView.h
* Renamed all private methods to have the underscore prefix.
And also:
* Whitespace and line width cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22688 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-23 20:44:17 +00:00
Rudolf Cornelissen
877ed9ed93 updated docs. The driver is now synced against nVidia's official april 2007 ID list.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22687 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-23 19:57:21 +00:00
Rudolf Cornelissen
5f3e6740f1 updated naming for some previous unknown cards, added 25 new cards for support/recognition in the driver, being GF 6xxx, 7xxx and 8xxx types. Also two more nforce 6100 4x0 cards recognized now. Please note: GF8xxx support is experimental, and without acceleration. Reports are welcome.. Bumped version to 0.83.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22686 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-23 19:45:43 +00:00
Rudolf Cornelissen
37bf6a6a6e disabled acceleration engine init and exporting the hooks on G80 and above for now.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22684 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-23 18:55:52 +00:00
Rudolf Cornelissen
40685b3e4d added a laptop, G86: 8600M GT, submitted by pieter panman.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22682 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-23 18:42:25 +00:00
Oliver Ruiz Dorantes
86aceda984 -Dummy implementation of DiscoveryListener\n-Add to jamfile
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22680 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-23 17:27:49 +00:00
Axel Dörfler
45ae0aa1aa It's not a good idea to write back large files while keeping the vnode busy.
The low memory handler now has two passes which should help there; however, it
might also accidently remove recently used vnodes, too. We could mark the clean
ones in some way if that turns out to be a problem.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22678 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-23 16:05:38 +00:00
Axel Dörfler
1d0b34faae * If a new buffer had its last part in common with an existing larger buffer,
BufferQueue::Add() tried to remove a negative amount of bytes. This could
  bring a download to a complete halt (as could the other one due to the list
  link mixup).
* While the RTT computation still seems to work not that good (with a drop quote
  of 50% I would easily reach retransmit timeouts of 80 secs), TCP should now
  work a lot better on a flaky connection.
* Renamed _GetMSS() to _MaxSegmentSize().
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22677 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-23 10:42:46 +00:00
Axel Dörfler
875c4627fd The TCP shell now works again.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22675 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-23 01:49:37 +00:00
Axel Dörfler
abbff8b909 SendQueued() could send empty buffers in case fSendQueue.Get() failed.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22674 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-23 01:47:18 +00:00
Axel Dörfler
157da1cd6e * net_buffer is a module, so it shouldn't have its initializers called
indirectly by the stack - they are now again usable separately as well.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22673 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-23 00:04:41 +00:00
François Revol
8c5602829e arch-specific stubs for config manager.
Will allow hardcoding ISA devices for platform faking an ISA bus, and the PC floppy and PS/2 ports.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22672 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-22 23:55:19 +00:00
Ingo Weinhold
56a63c3b2a Patch by Vasilis Kaoutsis: Style and copyright header cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22671 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-22 23:51:46 +00:00
Axel Dörfler
568bb32385 Applied patch by Gerald Zajac:
1) Some video modes which did not work properly with the Savage chips
have been removed from the mode list, and a few wide-screen modes which
work have been added.
2) The code which loads the cursor image has been simplified.  This code
is similar to the code I'm using in the S3 Virge video driver which I
will be submitting to the Haiku project in a few days.  This change also
removes the last piece of code that came from Erdi Chen's BeSavage
driver;  thus,  this diff file also removes his copyright from the file
savage_cursor.c.

I did a minor modification to fix a warning in ProposeDisplayMode.c (it
now includes savage.h). Thanks!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22670 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-22 22:05:16 +00:00
Axel Dörfler
30eca597da * Implemented support for the module_dependency extension in Haiku.
* Added a way to initialize built-in dependencies that the tcp_shell is now
  using - at least it gets to the prompt again (it still doesn't work, though).
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22669 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-22 18:18:29 +00:00
Oliver Ruiz Dorantes
7236d2c1c8 Fix coding style
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22668 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-22 17:53:08 +00:00
Axel Dörfler
2eaecb7b33 Fix build for Haiku.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22666 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-22 16:18:34 +00:00
François Revol
c87d0ba1fb E2BIG wasn't catched by the sed scripts... added.
Some #ifdefs to allow building under BeOS.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22665 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-22 16:01:15 +00:00
François Revol
cb44673606 Naive swap_float/double. Not sure sizeof(double) is 8 on m68k...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22664 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-22 15:50:27 +00:00
Stefano Ceccherini
3c5bd34432 Rewrote OptionPopUp.h and OptionControl.h
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22663 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-22 14:59:04 +00:00