mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-04 04:54:12 +00:00
4d442bca30
This patch reduces the number of exception types by facilitating globally defined exceptions for common usage patterns shared by most services. In particular, RPC functions that demand a session-resource upgrade not longer reflect this condition via a session-specific exception but via the 'Out_of_ram' or 'Out_of_caps' types. Furthermore, the 'Parent::Service_denied', 'Parent::Unavailable', 'Root::Invalid_args', 'Root::Unavailable', 'Service::Invalid_args', 'Service::Unavailable', and 'Local_service::Factory::Denied' types have been replaced by the single 'Service_denied' exception type defined in 'session/session.h'. This consolidation eases the error handling (there are fewer exceptions to handle), alleviates the need to convert exceptions along the session-creation call chain, and avoids possible aliasing problems (catching the wrong type with the same name but living in a different scope). |
||
---|---|---|
.. | ||
spec | ||
ahci.cc | ||
ahci.h | ||
ata_driver.h | ||
atapi_driver.h | ||
main.cc | ||
README | ||
target.mk |
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".