Commit Graph

21667 Commits

Author SHA1 Message Date
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
Ingo Weinhold 851e6dca97 Some of Darwin's C++ runtime seems to live in libstdc++.so, so I moved
it to HOST_LIBSUBC++. Now it should be possible to remove HOST_LIBSTDC++
from the library list for build tools which don't use the STL -- it had
been added due to the Darwin peculiarity in the first place.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22773 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-30 17:17:50 +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
François Revol 6b3123cf2f Add the Amiga and Atari platforms (sorry to force a rebuild :p).
Mac is there already (TODO: rename some stuff from apple to mac).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22770 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-30 13:59:48 +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
Stephan Aßmus d5f662106a * define more classes for non-selfcontained R5 headers... maybe I would have
to define even more if I did a clean build


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22746 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-26 23:43:55 +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
François Revol a790413138 More regs in m68k iframe.
Removed DOS CR.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22735 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-26 14:28:54 +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 662e5c8ce4 Fixed warnings when building something for BeOS.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22732 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-10-26 12:53:25 +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