From 452406ddeb5817b5e6e62be5b0df0b65180ffb53 Mon Sep 17 00:00:00 2001 From: Bahadir Balban Date: Sat, 28 Nov 2009 19:23:07 +0200 Subject: [PATCH] Added irqctrl as a possible capability type --- config/caps.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/config/caps.py b/config/caps.py index a1bfa40..75e8cff 100644 --- a/config/caps.py +++ b/config/caps.py @@ -31,6 +31,17 @@ cap_strings = { 'ipc' : \ \t\t\t\t.start = 0, .end = 0, .size = 0, \t\t\t}, ''' +, 'irqctrl' : \ +''' +\t\t\t[${idx}] = { +\t\t\t\t.target = ${cid}, +\t\t\t\t.type = CAP_TYPE_IRQCTRL | ${target_rtype}, +\t\t\t\t.access = CAP_IRQCTRL_REGISTER +\t\t\t\t | CAP_CHANGEABLE | CAP_REPLICABLE +\t\t\t\t | CAP_TRANSFERABLE, +\t\t\t\t.start = 0, .end = 0, .size = 0, +\t\t\t}, +''' , 'exregs' : \ ''' \t\t\t[${idx}] = { @@ -131,6 +142,9 @@ cap_strings = { 'ipc' : \ } +# +# These are carefully crafted functions, touch with care. +# def prepare_custom_capability(cont, param, val): if 'TYPE' in param: capkey, captype, rest = param.split('_', 2)