Rev 4582 | Rev 4706 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4582 | Rev 4704 | ||
---|---|---|---|
Line 89... | Line 89... | ||
89 | { NULL, NULL, NULL, NULL, NULL, NULL, NULL }, |
89 | { NULL, NULL, NULL, NULL, NULL, NULL, NULL }, |
90 | { PAGE_SIZE, PAGE_SIZE * 2, PAGE_SIZE * 4, PAGE_SIZE * 8, PAGE_SIZE * 16, PAGE_SIZE * 32, PAGE_SIZE * 64 }, |
90 | { PAGE_SIZE, PAGE_SIZE * 2, PAGE_SIZE * 4, PAGE_SIZE * 8, PAGE_SIZE * 16, PAGE_SIZE * 32, PAGE_SIZE * 64 }, |
91 | 0 |
91 | 0 |
92 | }; |
92 | }; |
93 | 93 | ||
- | 94 | /** @name Packet server support functions |
|
- | 95 | */ |
|
- | 96 | /*@{*/ |
|
- | 97 | ||
94 | /** Returns the packet of dimensions at least as given. |
98 | /** Returns the packet of dimensions at least as given. |
95 | * Tries to reuse free packets first. |
99 | * Tries to reuse free packets first. |
96 | * Creates a new packet aligned to the memory page size if none available. |
100 | * Creates a new packet aligned to the memory page size if none available. |
97 | * Locks the global data during its processing. |
101 | * Locks the global data during its processing. |
98 | * @param addr_len The source and destination addresses maximal length in bytes. Input parameter. |
102 | * @param addr_len The source and destination addresses maximal length in bytes. Input parameter. |
Line 146... | Line 150... | ||
146 | * @returns ENOMEM if the desired and actual sizes differ. |
150 | * @returns ENOMEM if the desired and actual sizes differ. |
147 | * @returns Other error codes as defined for the ipc_share_in_finalize() function. |
151 | * @returns Other error codes as defined for the ipc_share_in_finalize() function. |
148 | */ |
152 | */ |
149 | int packet_reply( const packet_t packet ); |
153 | int packet_reply( const packet_t packet ); |
150 | 154 | ||
- | 155 | /*@}*/ |
|
- | 156 | ||
151 | int packet_translate( int phone, packet_ref packet, packet_id_t packet_id ){ |
157 | int packet_translate( int phone, packet_ref packet, packet_id_t packet_id ){ |
152 | if( ! packet ) return EINVAL; |
158 | if( ! packet ) return EINVAL; |
153 | * packet = pm_find( packet_id ); |
159 | * packet = pm_find( packet_id ); |
154 | return ( * packet ) ? EOK : ENOENT; |
160 | return ( * packet ) ? EOK : ENOENT; |
155 | } |
161 | } |