Commit Graph

4895 Commits

Author SHA1 Message Date
Jérôme Duval
15a2aa6842 clean up
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22248 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-09-18 19:51:27 +00:00
Jérôme Duval
ce1e9a2d44 remove executable bit on test.c
clean up poke.c
don't need to check the module in uninit_driver()



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22247 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-09-18 19:40:32 +00:00
Jérôme Duval
b76d376bab release modules on error in init_driver()
free devices pointer in uninit_driver()


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22246 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-09-18 19:30:20 +00:00
Jérôme Duval
3ba665ca69 destroy benaphore lock on error in init_driver()
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22245 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-09-18 19:25:59 +00:00
Rudolf Cornelissen
a9a35a3919 fixed shared_info problem occuring with the 3D accelerant: updated docs, bumped version to 0.82
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22243 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-09-18 19:22:08 +00:00
Rudolf Cornelissen
36d218b7c7 fixed shared_info problem occuring with the 3D accelerant: the TVencoder list definition is now outside of the definition of shared_info.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22242 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-09-18 19:21:36 +00:00
Jérôme Duval
15f309e265 release module on error in init_driver()
free devices pointer in uninit_driver()


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22241 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-09-18 19:17:13 +00:00
Marcus Overhagen
9382f57691 correct port number handling
allocate memory for command list and fis


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22221 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-09-11 22:09:13 +00:00
Jérôme Duval
9727f39c82 added the pci id for GeForce 6100 nForce 405, bug #1472
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22219 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-09-11 16:43:49 +00:00
Jérôme Duval
98b6decb77 renamed via.driver to via
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22217 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-09-10 19:32:34 +00:00
Ingo Weinhold
8a10c0b5a7 Changes in BPlusTree::_SplitNode():
* Added check for invalid keyIndex parameter.
* Removed superfluous break condition in the second loop.
* Increment "out" in the second loop only when we have processed a key
  that will end up in the node. Thus, after the loop, the variable will
  contain the numbers of keys to be copied/moved, not that number + 1.
  Adjusted later use of "out" accordingly, save in one place where it
  was used incorrectly, which resulted in one key length and value to
  many to be copied, thus occasionally causing a page fault (bug #1363).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22195 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-09-06 21:04:13 +00:00
Jérôme Duval
759833c921 patch from JiSheng: fixed usage for option -M, added examples for testing
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22194 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-09-06 18:12:33 +00:00
Ingo Weinhold
923efaa872 * We store the ID of the controlling terminal and the foreground process
group ID with the session and let the terminal update them.
* Added an "orphaned" flag to the process_group structure and code to
  maintain it.
* Handle the death of a controlling process correctly: The
  foreground process group gets a SIGHUP and all newly-orphaned process
  groups containing at least one stopped processes are sent
  SIGHUP+SIGCONT.
* The tty handles the O_NOCTTY flag correctly, now.
* The tty handles reads/writes from processes from other sessions
  correctly, now.
* Handle tcsetpgrp() from background processes correctly.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22187 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-09-06 02:16:25 +00:00
Ingo Weinhold
97d5bb2bf3 Disabled the attribute name checks for "name", "size", and
"last_modified" for the time being. BeOS allows creating and reading
attributes with those names.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22180 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-09-05 03:07:40 +00:00
Jérôme Duval
c4ec032d19 ooops it was le32toh
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22160 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-09-03 20:59:02 +00:00
Jérôme Duval
9b17641496 missing le32toh()
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22158 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-09-03 19:52:44 +00:00
Marcus Overhagen
23c7bf9da2 enable interrupts
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22147 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-09-01 20:49:07 +00:00
Marcus Overhagen
25f926d8e4 forward scsi request to the ports
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22146 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-09-01 20:26:07 +00:00
Marcus Overhagen
4f733fe93b added Interrupt handling framework
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22145 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-09-01 19:54:45 +00:00
Marcus Overhagen
3d41648479 implemented controller reset and AHCI enable, init a port object for each implemented device port
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22144 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-09-01 18:51:57 +00:00
Marcus Overhagen
9815383e54 a class for the SATA ports
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22143 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-09-01 18:51:03 +00:00
Marcus Overhagen
105f622310 print proper values for zero-based numbers
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22141 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-09-01 16:52:46 +00:00
Marcus Overhagen
093a713df2 map registers and print some information
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22137 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-09-01 14:29:10 +00:00
Marcus Overhagen
1a941c2e04 added more definitions from specification
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22136 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-09-01 14:28:47 +00:00
Marcus Overhagen
06c88385e8 copied
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22133 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-09-01 12:40:39 +00:00
Jérôme Duval
0735851ca7 readme for firewire from JiSheng
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22131 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-08-31 18:21:34 +00:00
Jérôme Duval
afa1b9a59c added fwcontrol and firewire to the build
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22125 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-08-30 22:02:34 +00:00
Jérôme Duval
bb5ea4eb08 work from JiSheng Zhang : firewire and ohci modules from FreeBSD current, update for fw_raw and fw_control. Thanks!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22124 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-08-30 21:59:49 +00:00
François Revol
60e8637484 Should help building in zeta.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22109 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-08-29 12:37:12 +00:00
François Revol
8cfb4e2c76 Add opensound media node to the build
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22108 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-08-29 12:33:41 +00:00
François Revol
de6be214a0 OpenSound System media node, current version.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22106 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-08-29 12:28:49 +00:00
Marcus Overhagen
036a8857a6 added a workaround to prevent loading the driver multiple times for the same device
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22099 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-08-28 21:10:39 +00:00
François Revol
11902c74d8 Fix warnings
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22096 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-08-28 17:37:15 +00:00
Marcus Overhagen
5461952df6 improved debug output
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22085 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-08-27 22:02:28 +00:00
Axel Dörfler
4f6fa362cf * Fixed driver initialization - you are supposed to call init_driver()
and uninit_driver() yourself. We're also using this to let the controller
  access the pci_device object.
* Fixed some style violations for your pleasure ;-)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22082 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-08-27 09:36:35 +00:00
Marcus Overhagen
fc002ebb35 print PCI vendor and device ID
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22079 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-08-26 21:26:16 +00:00
Marcus Overhagen
e63ca93e6a compile fix for gcc 2.95
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22078 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-08-26 21:19:52 +00:00
Jérôme Duval
183bd9f434 black on black isn't easy to read : it's better to switch to the default color
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22077 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-08-26 20:54:48 +00:00
Marcus Overhagen
83a2d4db1a make sure the request failes
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22076 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-08-26 20:53:35 +00:00
Marcus Overhagen
48a55608e6 added a completely broken way to get the pci_device
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22075 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-08-26 20:45:59 +00:00
Marcus Overhagen
9f8f7442f3 pci_device can't be made static, it identifies the individual controller PCI device
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22073 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-08-26 20:28:30 +00:00
Marcus Overhagen
a53e060c17 set scsi target id maximum to 33 (32 devices + controller) for ahci controller
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22072 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-08-26 19:59:12 +00:00
Marcus Overhagen
402a4a4e7b Set scsi target id limit to 16, was previously hardcoded to 2. Add a node attribute to allow overriding this value.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22071 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-08-26 19:57:51 +00:00
Marcus Overhagen
ddf188703a Moved PCI access code, but the compiler refuses to convert 'device_node_info*' to 'pci_device_info*' in argument passing...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22070 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-08-26 19:19:57 +00:00
Marcus Overhagen
21255d1fc7 moved controller specific functionality into it's own class
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22069 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-08-26 19:06:14 +00:00
Marcus Overhagen
2210148f94 compile the sim as C++
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22068 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-08-26 16:57:31 +00:00
Marcus Overhagen
64ceb67ba3 even more debugging
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22066 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-08-26 16:49:53 +00:00
Ingo Weinhold
b637ab846f * Send SIGTTIN/SIGTTOU when a background process tries to read
from/write to a tty.
* Send SIGTSTP when the suspend character is typed.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22064 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-08-26 16:10:21 +00:00
Marcus Overhagen
8eca44fa7e added more debug output
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22063 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-08-26 16:04:10 +00:00
Axel Dörfler
8be13cd585 * SCSI SIM module driver shell for the AHCI driver for Marcus.
It is loaded on boot, and the SCSI bus manager tries to scan its bus which
  of course fails at the moment. Hope that helps :-)
* Moved the driver to its new location; it's a SCSI bus controller, so it
  should be placed in busses/scsi.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22048 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-08-23 23:29:08 +00:00