From: Martin Bachem Date: Tue, 4 Nov 2008 13:11:22 +0000 (+0100) Subject: mISDN: Add layer1 prim MPH_INFORMATION_REQ X-Git-Tag: v3.0~10971^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3f75e84a6a697c5cffb78ee15e79498a35473e05;p=platform%2Fkernel%2Flinux-amlogic.git mISDN: Add layer1 prim MPH_INFORMATION_REQ MPH_INFORMATION provides full D- and B-Channel status overview - new layer1 primitive: MPF_INFORMATON_REQ - layer1 replies with MPH_INFORMATION_IND containing - dch->[state,Flags,nrbchan] - bch[]->[protocol,Flags] - hardware driver should send MPH_INFORMATION_IND on all ph state changes and BChannel state changes to MISDN_ID_ANY Signed-off-by: Martin Bachem Signed-off-by: Karsten Keil --- diff --git a/include/linux/mISDNif.h b/include/linux/mISDNif.h index d4229ae..557477a 100644 --- a/include/linux/mISDNif.h +++ b/include/linux/mISDNif.h @@ -289,6 +289,23 @@ struct mISDN_devrename { char name[MISDN_MAX_IDLEN]; /* new name */ }; +/* MPH_INFORMATION_REQ payload */ +struct ph_info_ch { + __u32 protocol; + __u64 Flags; +}; + +struct ph_info_dch { + struct ph_info_ch ch; + __u16 state; + __u16 num_bch; +}; + +struct ph_info { + struct ph_info_dch dch; + struct ph_info_ch bch[]; +}; + /* timer device ioctl */ #define IMADDTIMER _IOR('I', 64, int) #define IMDELTIMER _IOR('I', 65, int)