Commit Graph
100 Commits
Author SHA1 Message Date
Axel Dörfler 3475107981 network stack: added missing put_device_interface().
* Part of #7040, thanks diver!
2013-06-03 21:22:59 +02:00
Axel Dörfler 0c9bc63e5c app_server: added more debug output on screen change problems. 2013-05-27 21:54:14 +00:00
Axel Dörfler 90f195890f bfsinfo: Added double indirect block output. 2013-05-14 22:47:48 +02:00
Axel Dörfler c895d331c9 app_server: added an ASSERT to Desktop::_Windows().
* So that something like #9595 should not happen again.
2013-05-12 21:05:05 +02:00
Axel Dörfler 4b723e3fb8 boot loader: Almost removed use of kernel_cpp.h.
* For some reason that is beyond me, fat/CachedBlock.cpp needs this header,
  or else building the boot loader fails.
2013-05-11 19:34:22 +02:00
Axel Dörfler a1566b06b7 bfs: removed kernel_cpp.h's new operator.
* This fixes bug #9715 from the POV of BFS, ie. the new operator seems
  to call the constructor on a NULL object on failure.
2013-05-06 21:45:50 +02:00
Axel Dörfler 4e78098e7c DatagramSocket: don't use absolute timeout 0.
* Use relative instead, or else the return value will be B_TIMED_OUT instead
  of B_WOULD_BLOCK.
* This fixes bug #9734.
2013-05-03 21:03:54 +02:00
Axel Dörfler 3bf9915247 Removed superfluous class definitions from OutlineListView.h
* Why?
2013-05-03 13:24:30 +00:00
Axel Doerfler c946981296 This should get the DEBUG=1 build further than the net.
* We need to start with a zero reference count, and we also don't want to
  be deleted by that mechanism.
* Note, I could not test the changes yet.
2013-04-15 20:26:09 +02:00
Axel Dörfler 4f96ace6d5 app_server: detach client allocator on quit.
* This prevents sending out notification to applications that are already
  gone, and should thus fix #9116 according to John.
2013-04-02 23:38:43 +02:00
Axel Dörfler 40440e7419 Clarified why the documentation does not belong into headers.
* Haiku is slow, and that's why we do not put documentation in headers???
  Hell yeah.
2013-03-22 20:56:17 +01:00
Axel Dörfler 928001cea9 Further tuned AMD CPU identifier parsing.
* Thanks to a list of 1384 entries with AMD CPU identifiers from Alex.
2013-03-22 09:37:47 +01:00
Axel Dörfler df4d35e837 Added a parse_amd() for CPU identification.
* This parses the reported CPU name, and tries to translate it to a normal
  and concise identifier.
* For example, it will translate "AMD FX(tm)-8320 Eight-core Processor" into
  "FX™ 8320" or "Dual Core AMD Opteron(tm) Processor 275 HE" into
  "Opteron™ 275 HE".
* This means we can remove AMD strings for those models for which this
  function produces useful results.
2013-03-20 21:04:23 +01:00
Axel Dörfler bc4dd456f9 ActivityMonitor: fixed minor issue CID 609788.
* If the circular buffer was created with a size of zero, fBuffer would
  be freed without being initialized.
2013-03-19 00:56:47 +01:00
Axel Dörfler 161400fbcc intel_extreme: sanitize EDID modes as well.
* Since we add those modes to our mode list, we should better accept them.
* This may help with bug #9145, and #7523 if they still occur.
2013-03-18 22:11:26 +01:00
Axel Dörfler 77dfc67033 mountvolume: open mounted images/volumes in Tracker.
* This can be done from the command line using the new "-open" option.
* When the application is invoked via Tracker, ie. by double clicking
  on an image, then it's being used implicitly.
2013-03-10 22:28:23 +01:00
Axel Dörfler e43a7e3db6 intel_extreme: sanitize BIOS mode.
* For LVDS output, the sync parameters aren't really used which is why the mode
  set from the BIOS might not be valid if the PLL hardware would actually be
  used.
* Therefore, we sanitize this mode to make sure it's within allowed parameters
  so that intel_set_mode() will accept it.
* This should fix at least #8132, and #8796.
* Sorry for looking into this so late! I obviously messed up testing this
  before, as my EeePC 900 was actually affected by this, too.
2013-03-10 17:34:11 +01:00
Axel Dörfler 087341fcfb intel_extreme: reordered functions.
* retrieve_current_mode() was not static, but should have been.
* static functions come now first, as usual.
2013-03-10 17:34:11 +01:00
Axel Dörfler 58d1a26eea Enabled cpuidle by default.
* Works fine on my system (Ivy bridge), and saves a few watts.
2013-02-17 12:28:22 +01:00
Axel Dörfler 33b9016ddd intel disk_system: Renamed file to match class name.
* Renamed CreationParameterEditor.(cpp|h) to PrimaryParameterEditor.(cpp|h)
  as that's what the sole class in there is called.
2013-02-14 14:34:30 +01:00
Axel Dörfler 8940ad259a DriveSetup: Added support for changing partition parameters.
* Does not seem to work yet, though. The intel disk system should support it
  now, but apparently the partition's delegate is not yet fully initialized
  for whatever reason.
2013-02-12 23:28:24 +01:00
Axel Dörfler 1b2662019b Cleanup.
* There is no BDiskSystemAddOn::GetInitializationParameterEditor() method,
  and it's therefore never being called.
2013-02-12 23:26:49 +01:00
Axel Dörfler 0ec2317830 Cleanup.
* Removed superfluous redundant comments.
2013-02-12 23:09:53 +01:00
Axel Dörfler 32da57f74b DriveSetup: solved a few issues of CreateParametersPanel.
* I obviously wasn't really done last time: now the panel behaves as it should.
2013-02-12 22:24:16 +01:00
Axel Dörfler d2239cb8b9 BMessage::SetString() was broken.
* We cannot use the macro for this, unfortunately.
2013-02-12 22:22:52 +01:00
Axel Dörfler 4db1a8c61d app_server: reworked SetFocusWindow() logic a bit.
* The normal mouse mode now only uses the window that had focus last if that
  window is one that does not support to be the front window (such as the
  desktop).
* This should keep the logic of r41264 without the drawbacks (see #7280 for
  more information).
* Added _WindowCanHaveFocus() method.
* This should fix #7630.
2013-02-08 00:59:15 +01:00
Axel Dörfler d6bb64d848 app_server: Added NormalMouse() and ClickToFocusMouse() methods.
* Made FocusFollowsMouse() inline.
* For convenience only.
2013-02-08 00:59:15 +01:00
Axel Dörfler 5c1b6cc3d4 Style cleanup. 2013-02-08 00:59:14 +01:00
Axel Dörfler 43ee85f69c BMenuField: fixed broken view color.
* Apparently, I only tested the other case :-)
* This fixes bug #9433.
2013-02-05 23:19:20 +01:00
Axel Dörfler fdff8a09a1 Minor cleanup.
* Slipped through; forgot to save.
2013-02-05 00:25:57 +01:00
Axel Dörfler 0a7975bfed BSlider::SetPosition() now calls BSlider's SetValue().
* Before it directly called the BControl version which doesn't really
  make any sense, and prevented visual updates.
2013-02-05 00:23:10 +01:00
Axel Dörfler 0b319bd6f3 Minor cleanup. 2013-02-05 00:22:52 +01:00
Axel Dörfler 0d7d4957aa DriveSetup: improved size slider.
* It uses size_for_string() to display all sizes which also fixes
  using MiB for one, and MB for the other size string.
* It is no longer limited to 1M granularity by itself, but can have
  arbitrary granularity as long as the number of possible values
  remain smaller than 2^31.
* This means it can also handle values beyond 4TB now.
* The sizes that are set programmatically retain their full resolution.
* CreateParametersPanel still uses 1M granularity for now, though,
  as we would otherwise need to be able to parse a size string with
  a unit.
2013-02-05 00:21:59 +01:00
Axel Dörfler 7ff0829758 Minor style cleanup. 2013-02-04 23:52:32 +01:00
Axel Dörfler cf0ea4fbba DriveSetup: fixed crash in CreateParametersPanel.
* Changed order of calling Init() vs. _CreateViewControls(). This
  fixes bug #9422.
* The panel now hides (instead of disabling) the name or type control
  if those aren't supported, anyway.
2013-02-04 23:06:13 +01:00
Axel Dörfler dbd6a97c7b Minor cleanup.
* Reordred methods to their declaration order.
2013-02-04 23:05:15 +01:00
Axel Dörfler 39b9d0f07f BMenuField: use panel background color as default.
* There is no reason the BMenuField should behave differently from
  any BControl here.
2013-02-04 22:11:14 +01:00
Axel Dörfler 4ec2ca4e16 DriveSetup: renamed some files, fixed catalog.
* Already renamed the classes within those files earlier.
* The AbstractParametersPanel class was missing from the catalog.
2013-02-02 01:13:20 +01:00
Axel Dörfler 9deef7d466 DriveSetup: show content type if there is no type. 2013-02-02 01:13:19 +01:00
Axel Dörfler 443522551e Fixed design issues in BPartitionParameterEditor.
* The user of an editor needed knowledge about the editor in order to make
  use of it.
* Furthermore, the BPartitionParameterEditor exposed type specific
  functionality that it shouldn't know anything about, either.
* We may now define a number of known parameters per editor type; right now
  there is only "type" as it's needed by DriveSetup.
* Adapted all disk systems, and DriveSetup to the new API.
* Renamed CreateParamsPanel, and InitializeParamsPanel to *ParametersPanel
  in DriveSetup.
* They now share a common base class AbstractParametersPanel.
2013-02-02 01:13:19 +01:00
Axel Dörfler a206dee38e DriveSetup: improved default window size.
* The default width will no longer make the parameters and partition type
  columns visible.
* Fixed default size of those two columns -- I did not notice that the column
  state was being restored before, and thought it would just be another oddity
  of BColumnListView :-)
* Since MainWindow maintains its size pretty much itself, the constructor no
  longer gets a BRect.
* The window will now also be resized vertically to make space for all the
  partitions (only affects first launch without settings file).
* Also made the window a bit higher by default.
2013-02-02 01:13:18 +01:00
Axel Dörfler 8317edb350 DriveSetup: Removed (some) knowledge about initialization.
* Instead of guessing whether or not to show the InitParamsPanel, the panel
  will now no longer show itself if the disk system does not have an editor,
  and silently succeed.
* This also fixed a potential crash if the editor could not be created for
  some reason.
* Minor cleanup.
2013-01-29 01:13:42 +01:00
Axel Dörfler 856f538b79 Minor cleanup. 2013-01-29 01:12:06 +01:00
Axel Dörfler d0ecb6dafc BPartition::CanInitialize() now returns false if the size is 0.
* This should fix #9405; I cannot test it right now due to a missing
  CD-ROM.
2013-01-29 00:20:01 +01:00
Axel Dörfler 5a81662642 DriveSetup: Added column for the partition type.
* This implements ticket #4235.
2013-01-29 00:12:31 +01:00
Axel Dörfler 2dd0a26ac0 gpt: Fixed off by one error.
* The backup header would have been written one block behind the actual
  last block. Well, at least it would have tried to do so :-)
2013-01-29 00:02:31 +01:00
Axel Dörfler 7775bfeb6b gpt: Always use at least 4K to align partitions.
* Many of today's disks that use 4K internally don't advertize this.
2013-01-28 22:51:53 +01:00
Axel Dörfler 9e8f937437 gpt: Added some missing pieces of supporting the backup header.
* The alternate block was not set correctly.
* The CRC of the backup header was never updated.
* We now dump both headers.
2013-01-28 22:51:52 +01:00
Axel Dörfler 403869b9fe DriveSetup: improved error reporting. 2013-01-28 22:49:48 +01:00
Axel Dörfler 5ec5667de7 ata/ahci: Move some ATA functionality into the ATAInfoBlock.
* The AHCI driver was actually ignoring sector size information, and always
  set the size to 512.
* Now both, the AHCI driver, and the ATA bus manager, use the same method of
  retrieving the sector count, and size.
2013-01-28 22:49:47 +01:00
Axel Dörfler 5257160668 gpt: Fixed boot loader build.
* Thanks, Alex!
2013-01-27 20:34:47 +01:00
Axel Dörfler e9cdc3129e gpt: Fixed incorrect revision. 2013-01-27 20:34:47 +01:00
Axel Dörfler 953d310a47 gpt: Added support for the backup header/entries. 2013-01-27 14:16:01 +01:00
Axel Dörfler 90308ec327 gpt: Pointer style changed to preferred. 2013-01-26 21:13:00 +01:00
Axel Dörfler ef2558c0ae gpt: Fixed a number of remaining issues.
* The header and table is now correctly written; the backup is still
  missing, though.
* The Header class is now responsible for both, the primary, and the
  backup header.
* Changed the Header constructors: the block is no longer needed. Also,
  under GCC 4 the initialization code accidentally used the read
  Header constructor.
* Fixed incorrectly copied GUID - the static_guid cannot be copied
  into a guid_t directly.
* Fixed copy&paste bug that would overwrite the offset for the child
  partition to be created.
* With all of this in place I successfully created a BFS partition
  with a GUID partition table. However, I have not yet tested if other
  systems can still read this. Also, creating two partitions doesn't
  seem to work yet, either (luckily I only need a single one ;-)).
2013-01-26 21:13:00 +01:00
Axel Dörfler 959e02aa56 gpt: for now, always add partitions at the end. 2013-01-26 21:13:00 +01:00
Axel Dörfler 9e8d42ac44 Work in progress in getting GPTPartitionHandle working.
* Tried to use EFI::Header class, but there doesn't seem to be an easy
  way to actually hit the disk -- which we'll have to do to find out
  how large the GPT table is.
* Initialization of GPT disks is now working which is why I added the disk
  system add-on to the image. However, there is a caveat, as the backup
  header and table aren't written yet.
* Partitions can be deleted.
* Creating partitions does not work yet, but I don't know yet why; in
  theory it could already work.
2013-01-26 01:33:27 +01:00
Axel Dörfler ab31389341 Implemented write support, reorganized source files.
* Moved some functionality into their own files so that they can easily
  be reused by other code.
* Added crc32() function from FreeBSD. Implemented CRC handling and
  validation.
* Implemented missing write functionality.
2013-01-26 01:30:23 +01:00
Axel Dörfler d013c8e96a Possibly fixed BootLoaderTest build.
* Adapted to x86_64 changes.
2013-01-25 23:37:41 +01:00
Axel Dörfler e26ef5524c gpt: the disk system now correctly maintains free space.
* Ie. the BPartitioningInfo should now be correctly filled.
2013-01-24 01:15:26 +01:00
Axel Dörfler f142407b03 DriveSetup: improved error reporting when deleting a partition. 2013-01-24 01:15:26 +01:00
Axel Dörfler 7f33c9cda3 Lost the "EFI" in front of "GUID Partition Map" name.
* This is how other systems refer to it as well, and is shorter, too.
2013-01-24 01:15:26 +01:00
Axel Dörfler 99fc216a95 gpt: do not advertize the partition as read-only. 2013-01-24 00:45:50 +01:00
Axel Dörfler 2077b23f14 intel disk system: restrict maximum supported size.
* The MBR can only address 2^32 blocks.
* This prevents you from initializing a disk larger than 2TB with a block
  size of 512 bytes.
2013-01-24 00:44:26 +01:00
Axel Dörfler 61ba12594b Renamed partitioning system "efi" directory to "gpt". 2013-01-23 23:21:25 +01:00
Axel Dörfler b44f9282b7 gpt: early work in progress of a disk system add-on.
* It currently allows to initialize a disk using GPT. However, this then
  fails somewhere in the kernel.
2013-01-23 23:16:30 +01:00
Axel Dörfler 3478d6ab2d gpt: moved type map into its own header. 2013-01-23 23:15:48 +01:00
Axel Dörfler b039ee6572 Minor cleanup.
* Renamed *MI members to *MenuItem.
2013-01-23 21:44:13 +01:00
Axel Dörfler 5e081035a7 DriveSetup: fixed device row size/name.
* Apparently, the order the fields are set matters, so the drive name
  and the size now appear in the list as they should have before.
* Leave the size field empty if the size is 0.
2013-01-23 21:27:25 +01:00
Axel Dörfler 06d477cd64 ipv6: added missing put_interface() call.
* Thanks to Stefano for pointing this out!
2013-01-14 12:15:14 +01:00
Axel Dörfler eb8a124325 bfs_tools: recover is now using a set to reduce memory.
* The hashtable stored complete Inode objects (albeit without the actual block).
* Now we only store the block_run which should reduce the memory footprint
  considerably; before "recover" could easily run out of memory. In any case,
  a 64 bit version would still make sense to have :-)
* Saved an extra hash table traversal by counting the node types directly.
* This isn't that well tested yet, though.
2012-12-02 21:03:44 +01:00
Axel Dörfler fd919c2c1a bfs_tools: Disk is now using a BBufferIO.
* Automatic whitespace cleanup.
2012-12-02 21:03:43 +01:00
Axel Dörfler 91d335e0b7 Automatic whitespace cleanup. 2012-12-02 21:03:42 +01:00
Axel Dörfler 772c9704b9 Added Hashtable::Size() method.
* Automatic whitespace cleanup.
2012-12-02 21:03:41 +01:00
Axel Dörfler 587cd228ba Fixed regression: Terminal cursor color is back to black. 2012-11-30 13:42:00 +01:00
Axel Dörfler f0ae953990 Added libmedia.so, ActivityMonitor, and Sudoku to the 64 bit image. 2012-11-30 13:16:38 +01:00
Axel Dörfler 332cc6bc3b 64 bit fixes for libmedia.so, ActivityMonitor, and Sudoku.
* Alex, I feel your pain :-)
2012-11-30 13:16:38 +01:00
Axel Dörfler 9d5955453c Add partition type to fs column for unknown file systems.
* Original patch by Morgul as part of #4235. This does not close the ticket,
  however.
* Updated the patch to not show empty '()' in case the partition type
  returned was NULL.
2012-11-28 23:26:39 +01:00
Axel Dörfler 8df20d2c85 Minor coding style cleanup. 2012-11-28 22:34:48 +01:00
Axel Dörfler ed80f189ce Applied an updated patch by looncraz to enable hardware cursor.
I made the following changes to the original patch:
 * Add const to the cursor setting functions.
 * Removed the legacy cursor copying code.
 * Minor coding style cleanup.
2012-11-28 22:33:08 +01:00
Axel Dörfler b20073726a Added BEntry::Name() method.
* GetName() is a bad API, and should be deprecated.
2012-11-12 23:56:23 +01:00
Axel Dörfler a2f6e5ac9c Added missing BMessage::{Get|Set}String() methods.
* Forgot to add those before accidentally.
2012-11-12 23:56:14 +01:00
Axel Dörfler 1cd0e20c56 Unbroke GCC4 BRect const compatibility.
* This can be removed again next time all GCC4 packages are rebuilt for
  whatever reason.
2012-11-06 20:54:34 +01:00
Axel Dörfler 634feff0e9 Cut off the trailing spaces from the key dump.
* Noticed these on the keymap changes made by John, however, I have no
  idea how they did get there (the keymap command doesn't use this code).
2012-11-05 13:34:58 +01:00
Axel Dörfler 095d038578 Reverted hrev42962 - there is no right command key in US internatinal.
* This makes the keymap behave as in every other operating system.
* I don't really understand the original purpose of this change. Please
  enlighten me (see #4464).
2012-11-05 13:29:52 +01:00
Axel Dörfler 17ad59afd3 Added BLayoutBuilder::{Group|Grid}::SetExplicitAlignment(). 2012-11-05 12:50:04 +01:00
Axel Dörfler 762e4ecaff BMessage::Append() is now actually working. 2012-11-05 12:50:04 +01:00
Axel Dörfler 9e42a44cad Added BPath::IsAbsolute() method. 2012-11-05 12:50:03 +01:00
Axel Dörfler 09d87d9151 The text control is now more flexible with its layout items.
* Before, you had to have both, the text view layout item, and the label
  layout item or else nothing would ever be visible.
* Now you can only create the text view item, and it will still work.
* Also, no matter the order you added the layout items, they would always
  put the label on the left, and the control to the right.
* You can place the label and text view layout items anywhere now, although
  you should keep in mind that the view spans over their frame unions; IOW
  they should always adjacent to each other, but not necessarily horizontally
  and left to right.
* No longer uses a fixed label spacing, but utilizes
  BControlLook::DefaultLabelSpacing() instead.
* However, the spacing is always added to the right of the label, no matter
  how you place it in the layout. Maybe one wants to add a SetLabelTextViewGap()
  like method.
2012-11-05 12:50:02 +01:00
Axel Dörfler 6643ead593 Made the BRect::*Copy() methods const as they should have been. 2012-11-05 12:50:02 +01:00
Axel Dörfler 2267b7e7fb Added Grid::AddGlue(), and SetExplicit*Size() methods. 2012-11-05 12:50:01 +01:00
Axel Dörfler 4656e550b0 Added method SetExplicitSize() for convenience. 2012-11-05 12:50:00 +01:00
Axel Dörfler d2c8db267d Just ignore unknown ELF program headers instead of failing.
* This fixes loading executables with a TLS section (which we do not support
  so far, though). Still, no reason to let the runtime loader choke on it.
2012-11-05 12:18:46 +01:00
Axel Dörfler 0a361580ad Added HDA quirks for enabling snoop.
* Enabled snoop for all Intel hardware as found in the Linux driver.
* This fixes #8949.
2012-11-05 10:13:32 +01:00
Axel Dörfler de62b051e4 Disabled HDA MSI for now again.
* At least on my hardware, audio becomes a bit flaky (ie. sometimes it would
  just stop doing anything at all).
2012-11-05 10:02:13 +01:00
Axel Dörfler 6e50e79e54 Added Get*()/Set*() methods like the ones from KMessage. 2012-11-03 11:54:21 +01:00
Axel Dörfler 87e7009019 Style cleanup. 2012-11-02 23:42:31 +01:00
Axel Dörfler 009fd25715 Added BMessage::Append(), and new(std::nothrow_t).
* Append() copies all fields from the specified message.
* The nothrow operator new allows you to add BMessages to a BObjectList.
2012-11-02 23:42:29 +01:00
Axel Dörfler 5262b98eab Converted the promise_tx2 driver to the device manager.
* This is part of ticket #9087. I have not added it to the image yet, before
  it's getting tested, though.
2012-10-26 12:18:42 +02:00
Axel Dörfler adf340f0ed Style cleanup. 2012-10-08 13:59:16 +02:00