genode/repos/os/src/drivers/ahci
Norman Feske 6609aafb05 Replace Quota_exceeded by Insufficient_ram_quota
This patch replaces the 'Parent::Quota_exceeded',
'Service::Quota_exceeded', and 'Root::Quota_exceeded' exceptions
by the single 'Insufficient_ram_quota' exception type.

Furthermore, the 'Parent' interface distinguished now between
'Out_of_ram' (the child's RAM is exhausted) from
'Insufficient_ram_quota' (the child's RAM donation does not suffice to
establish the session).

This eliminates ambiguities and removes the need to convert exception
types along the path of the session creation.

Issue #2398
2017-05-31 13:16:05 +02:00
..
spec drivers/ahci: clean exit when no controllers are found 2017-05-31 13:16:02 +02:00
ahci.cc ahci: do not copy port MMIO objects 2017-03-15 12:32:23 +01:00
ahci.h drivers/ahci: clean exit when no controllers are found 2017-05-31 13:16:02 +02:00
ata_driver.h ahci: do not copy port MMIO objects 2017-03-15 12:32:23 +01:00
atapi_driver.h ahci: do not copy port MMIO objects 2017-03-15 12:32:23 +01:00
main.cc Replace Quota_exceeded by Insufficient_ram_quota 2017-05-31 13:16:05 +02:00
README Make label prefixing more strict 2016-11-30 13:37:07 +01:00
target.mk ahci: transition to the new base API 2016-06-28 11:08:13 +02:00

This directory contains the implementation of Genode's AHCI driver

Behavior
--------

The driver supports x86 32/64 bit platforms and the Exynos5 SOC. If
more than one AHCI controller is present, the first one will be used.
Each active device on each AHCI port will be represented by a Genode
block session. The server must be configured via a policy, that states
which client can access a certain device:


!<start name="ahci">
!  <binary name="ahci_drv" />
!  <resource name="RAM" quantum="10M" />
!  <provides><service name="Block" /></provides> }
!  <route>
!    <any-service> <parent /> <any-child /> </any-service>
!  </route>
!  <config atapi="no">
!    <!-- use model and serial number -->
!    <policy label_prefix="test-ahci" model="QEMU HARDDISK" serial="QM00005" />
!    <!-- use controller port number -->
!    <policy label_prefix="bench" device="1" />
!  </config>
!</start>

In the example above, a session request labeled with "test-ahci" gains access to
a device with certain model and serial numbers, while "bench" gains access to
device at port 1. ATAPI support is by default disabled and can be enabled by
setting the config attribute "atapi" to "yes".