blob_id
stringlengths 40
40
| directory_id
stringlengths 40
40
| path
stringlengths 4
721
| content_id
stringlengths 40
40
| detected_licenses
listlengths 0
57
| license_type
stringclasses 2
values | repo_name
stringlengths 5
91
| snapshot_id
stringlengths 40
40
| revision_id
stringlengths 40
40
| branch_name
stringclasses 321
values | visit_date
timestamp[ns]date 2016-08-12 09:31:09
2023-09-06 10:45:07
| revision_date
timestamp[ns]date 2010-09-28 14:01:40
2023-09-06 06:22:19
| committer_date
timestamp[ns]date 2010-09-28 14:01:40
2023-09-06 06:22:19
| github_id
int64 426
681M
| star_events_count
int64 101
243k
| fork_events_count
int64 0
110k
| gha_license_id
stringclasses 23
values | gha_event_created_at
timestamp[ns]date 2012-06-28 18:51:49
2023-09-14 21:59:16
⌀ | gha_created_at
timestamp[ns]date 2008-02-11 22:55:26
2023-08-10 11:14:58
⌀ | gha_language
stringclasses 147
values | src_encoding
stringclasses 26
values | language
stringclasses 2
values | is_vendor
bool 2
classes | is_generated
bool 2
classes | length_bytes
int64 6
10.2M
| extension
stringclasses 115
values | filename
stringlengths 3
113
| content
stringlengths 6
10.2M
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
17913d6ea65cfe50ae4a5d7db39c5fbd401690ed
|
f47cb02269307e83d86373d9ab4bfb8b46283d22
|
/src/guaclog/instructions.c
|
257e1343bf9536474f25a2c0a1509f927b387348
|
[
"Apache-2.0"
] |
permissive
|
apache/guacamole-server
|
7c8adf3f389f0539df353ef8f7ea6d44144ffb16
|
fe24e2d45ac0ac90588f64b43da6e0d518e59177
|
refs/heads/master
| 2023-09-04T02:42:34.907413
| 2023-08-30T22:57:11
| 2023-08-30T22:57:11
| 54,452,627
| 2,019
| 580
|
Apache-2.0
| 2023-09-13T00:15:57
| 2016-03-22T07:00:06
|
C
|
UTF-8
|
C
| false
| false
| 1,975
|
c
|
instructions.c
|
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
#include "config.h"
#include "state.h"
#include "instructions.h"
#include "log.h"
#include <string.h>
guaclog_instruction_handler_mapping guaclog_instruction_handler_map[] = {
{"key", guaclog_handle_key},
{NULL, NULL}
};
int guaclog_handle_instruction(guaclog_state* state, const char* opcode,
int argc, char** argv) {
/* Search through mapping for instruction handler having given opcode */
guaclog_instruction_handler_mapping* current = guaclog_instruction_handler_map;
while (current->opcode != NULL) {
/* Invoke handler if opcode matches (if defined) */
if (strcmp(current->opcode, opcode) == 0) {
/* Invoke defined handler */
guaclog_instruction_handler* handler = current->handler;
if (handler != NULL)
return handler(state, argc, argv);
/* Log defined but unimplemented instructions */
guaclog_log(GUAC_LOG_DEBUG, "\"%s\" not implemented", opcode);
return 0;
}
/* Next candidate handler */
current++;
} /* end opcode search */
/* Ignore any unknown instructions */
return 0;
}
|
463bffe12add4eec3125837b61ef8f7ff8a1df7c
|
e65a4dbfbfb0e54e59787ba7741efee12f7687f3
|
/databases/rubygem-bdb1/files/patch-ext_bdb1_bdb1.c
|
fc506303d49b67d974c89cb18b68d951b6d02e98
|
[
"BSD-2-Clause"
] |
permissive
|
freebsd/freebsd-ports
|
86f2e89d43913412c4f6b2be3e255bc0945eac12
|
605a2983f245ac63f5420e023e7dce56898ad801
|
refs/heads/main
| 2023-08-30T21:46:28.720924
| 2023-08-30T19:33:44
| 2023-08-30T19:33:44
| 1,803,961
| 916
| 918
|
NOASSERTION
| 2023-09-08T04:06:26
| 2011-05-26T11:15:35
| null |
UTF-8
|
C
| false
| false
| 7,937
|
c
|
patch-ext_bdb1_bdb1.c
|
--- ext/bdb1/bdb1.c.orig 2023-07-08 13:26:04 UTC
+++ ext/bdb1/bdb1.c
@@ -115,7 +115,6 @@ VALUE
bdb1_test_load(VALUE obj, const DBT *a, int type_kv)
{
VALUE res;
- int i;
bdb1_DB *dbst;
Data_Get_Struct(obj, bdb1_DB, dbst);
@@ -270,7 +269,7 @@ bdb1_mark(bdb1_DB *dbst)
}
static VALUE
-bdb1_i185_btree(VALUE obj, VALUE dbstobj)
+bdb1_i185_btree(VALUE obj, VALUE dbstobj, int _argc, const VALUE *_argv, VALUE _blockarg)
{
VALUE key, value;
bdb1_DB *dbst;
@@ -323,7 +322,7 @@ bdb1_i185_btree(VALUE obj, VALUE dbstobj)
}
static VALUE
-bdb1_i185_hash(VALUE obj, VALUE dbstobj)
+bdb1_i185_hash(VALUE obj, VALUE dbstobj, int _argc, const VALUE *_argv, VALUE _blockarg)
{
VALUE key, value;
bdb1_DB *dbst;
@@ -363,7 +362,7 @@ bdb1_i185_hash(VALUE obj, VALUE dbstobj)
}
static VALUE
-bdb1_i185_recno(VALUE obj, VALUE dbstobj)
+bdb1_i185_recno(VALUE obj, VALUE dbstobj, int _argc, const VALUE *_argv, VALUE _blockarg)
{
VALUE key, value;
bdb1_DB *dbst;
@@ -379,7 +378,6 @@ bdb1_i185_recno(VALUE obj, VALUE dbstobj)
dbst->info.ri.flags = NUM2INT(value);
}
else if (strcmp(options, "set_re_delim") == 0) {
- int ch;
if (TYPE(value) == T_STRING) {
str = StringValueCStr(value);
dbst->info.ri.bval = str[0];
@@ -396,7 +394,6 @@ bdb1_i185_recno(VALUE obj, VALUE dbstobj)
dbst->info.ri.flags |= R_FIXEDLEN;
}
else if (strcmp(options, "set_re_pad") == 0) {
- int ch;
if (TYPE(value) == T_STRING) {
str = StringValueCStr(value);
dbst->info.ri.bval = str[0];
@@ -444,7 +441,7 @@ bdb1_load_dump(VALUE obj)
}
static VALUE
-bdb1_i185_common(VALUE obj, VALUE dbstobj)
+bdb1_i185_common(VALUE obj, VALUE dbstobj, int _argc, const VALUE *_argv, VALUE _blockarg)
{
VALUE key, value;
bdb1_DB *dbst;
@@ -682,7 +679,7 @@ bdb1_init(int argc, VALUE *argv, VALUE obj)
}
switch(dbst->type) {
case 0:
- rb_iterate(rb_each, f, bdb1_i185_btree, obj);
+ rb_block_call(f, rb_intern("each"), 0, NULL, bdb1_i185_btree, obj);
if (dbst->bt_compare == 0 && rb_respond_to(obj, id_bt_compare)) {
dbst->has_info = Qtrue;
dbst->options |= BDB1_BT_COMPARE;
@@ -695,7 +692,7 @@ bdb1_init(int argc, VALUE *argv, VALUE obj)
}
break;
case 1:
- rb_iterate(rb_each, f, bdb1_i185_hash, obj);
+ rb_block_call(f, rb_intern("each"), 0, NULL, bdb1_i185_hash, obj);
if (dbst->h_hash == 0 && rb_respond_to(obj, id_h_hash)) {
dbst->has_info = Qtrue;
dbst->options |= BDB1_H_HASH;
@@ -703,10 +700,10 @@ bdb1_init(int argc, VALUE *argv, VALUE obj)
}
break;
case 2:
- rb_iterate(rb_each, f, bdb1_i185_recno, obj);
+ rb_block_call(f, rb_intern("each"), 0, NULL, bdb1_i185_recno, obj);
break;
}
- rb_iterate(rb_each, f, bdb1_i185_common, obj);
+ rb_block_call(f, rb_intern("each"), 0, NULL, bdb1_i185_common, obj);
}
if (name == NULL) oflags = O_CREAT | O_RDWR;
if (dbst->has_info) openinfo = &dbst->info;
@@ -733,9 +730,11 @@ bdb1_close(VALUE obj)
VALUE opt;
bdb1_DB *dbst;
+#if defined(RUBY_SAFE_LEVEL_MAX) && RUBY_SAFE_LEVEL_MAX >= 4
if (!OBJ_TAINTED(obj) && rb_safe_level() >= 4) {
rb_raise(rb_eSecurityError, "Insecure: can't close the database");
}
+#endif
Data_Get_Struct(obj, bdb1_DB, dbst);
bdb1_i_close(dbst);
return Qnil;
@@ -752,15 +751,15 @@ bdb1_s_alloc(VALUE obj)
dbst->options |= BDB1_NOT_OPEN;
cl = obj;
while (cl) {
- if (cl == bdb1_cBtree || RCLASS(cl)->m_tbl == RCLASS(bdb1_cBtree)->m_tbl) {
+ if (cl == bdb1_cBtree || rb_obj_classname(cl) == rb_class2name(bdb1_cBtree)) {
dbst->type = DB_BTREE;
break;
}
- else if (cl == bdb1_cHash || RCLASS(cl)->m_tbl == RCLASS(bdb1_cHash)->m_tbl) {
+ else if (cl == bdb1_cHash || rb_obj_classname(cl) == rb_class2name(bdb1_cHash)) {
dbst->type = DB_HASH;
break;
}
- else if (cl == bdb1_cRecnum || RCLASS(cl)->m_tbl == RCLASS(bdb1_cRecnum)->m_tbl) {
+ else if (cl == bdb1_cRecnum || rb_obj_classname(cl) == rb_class2name(bdb1_cRecnum)) {
dbst->type = DB_RECNO;
break;
}
@@ -802,7 +801,7 @@ bdb1_s_create(int argc, VALUE *argv, VALUE obj)
}
static VALUE
-bdb1_i_create(VALUE obj, VALUE db)
+bdb1_i_create(VALUE obj, VALUE db, int _argc, const VALUE *_argv, VALUE _blockarg)
{
VALUE tmp[2];
tmp[0] = rb_ary_entry(obj, 0);
@@ -826,12 +825,12 @@ bdb1_i_create(VALUE obj, VALUE db)
static VALUE
bdb1_s_aref(int argc, VALUE *argv, VALUE obj)
{
- VALUE res, tmp[2];
+ VALUE res;
int i;
res = rb_funcall2(obj, rb_intern("new"), 0, 0);
if (argc == 1 && TYPE(argv[0]) == T_HASH) {
- rb_iterate(rb_each, argv[0], bdb1_i_create, res);
+ rb_block_call(argv[0], rb_intern("each"), 0, NULL, bdb1_i_create, res);
return res;
}
if (argc % 2 != 0) {
@@ -870,7 +869,7 @@ bdb1_s_open(int argc, VALUE *argv, VALUE obj)
VALUE
bdb1_put(int argc, VALUE *argv, VALUE obj)
{
- volatile VALUE a0 = Qnil;
+ volatile VALUE a0;
volatile VALUE b0 = Qnil;
VALUE a, b, c;
bdb1_DB *dbst;
@@ -878,7 +877,9 @@ bdb1_put(int argc, VALUE *argv, VALUE obj)
int ret, flags;
db_recno_t recno;
+#if defined(RUBY_SAFE_LEVEL_MAX) && RUBY_SAFE_LEVEL_MAX >= 4
rb_secure(4);
+#endif
GetDB(obj, dbst);
if (rb_scan_args(argc, argv, "21", &a, &b, &c) == 3)
flags = NUM2INT(c);
@@ -935,7 +936,6 @@ bdb1_get_internal(int argc, VALUE *argv, VALUE obj, VA
VALUE b, c;
bdb1_DB *dbst;
DBT key, data;
- DBT datas;
int flagss;
int ret, flags;
db_recno_t recno;
@@ -994,7 +994,7 @@ bdb1_fetch(int argc, VALUE *argv, VALUE obj)
if (val == Qundef) {
if (rb_block_given_p()) {
if (argc > 1) {
- rb_raise(rb_eArgError, "wrong # of arguments", argc);
+ rb_raise(rb_eArgError, "wrong # of arguments, %d", argc);
}
return rb_yield(key);
}
@@ -1026,8 +1026,8 @@ bdb1_has_both(VALUE obj, VALUE a, VALUE b)
DBT keys, datas;
int ret, flags;
db_recno_t recno;
- volatile VALUE c = Qnil;
- volatile VALUE d = Qnil;
+ volatile VALUE c;
+ volatile VALUE d;
GetDB(obj, dbst);
DATA_ZERO(key);
@@ -1071,7 +1071,9 @@ bdb1_del(VALUE obj, VALUE a)
db_recno_t recno;
volatile VALUE c = Qnil;
+#if defined(RUBY_SAFE_LEVEL_MAX) && RUBY_SAFE_LEVEL_MAX >= 4
rb_secure(4);
+#endif
GetDB(obj, dbst);
if (dbst->type == DB_HASH) {
rb_warning("delete can give strange result with DB_HASH");
@@ -1090,7 +1092,7 @@ bdb1_empty(VALUE obj)
{
bdb1_DB *dbst;
DBT key, data;
- int ret, flags;
+ int ret;
db_recno_t recno;
GetDB(obj, dbst);
@@ -1109,10 +1111,12 @@ bdb1_delete_if(VALUE obj)
{
bdb1_DB *dbst;
DBT key, data, save;
- int ret, ret1, flags;
+ int ret, flags;
db_recno_t recno;
+#if defined(RUBY_SAFE_LEVEL_MAX) && RUBY_SAFE_LEVEL_MAX >= 4
rb_secure(4);
+#endif
GetDB(obj, dbst);
INIT_RECNO(dbst, key, recno);
DATA_ZERO(data);
@@ -1134,11 +1138,13 @@ VALUE
bdb1_clear(VALUE obj)
{
bdb1_DB *dbst;
- DBT key, data, save;
+ DBT key, data;
int ret, value, flags;
db_recno_t recno;
+#if defined(RUBY_SAFE_LEVEL_MAX) && RUBY_SAFE_LEVEL_MAX >= 4
rb_secure(4);
+#endif
GetDB(obj, dbst);
INIT_RECNO(dbst, key, recno);
DATA_ZERO(data);
@@ -1360,7 +1366,7 @@ bdb1_each_kv(VALUE obj, VALUE a, VALUE result, VALUE f
int ret, flags;
db_recno_t recno;
VALUE k;
- volatile VALUE b = Qnil;
+ volatile VALUE b;
GetDB(obj, dbst);
b = test_recno(obj, &key, &recno, a);
@@ -1536,8 +1542,10 @@ bdb1_sync(VALUE obj)
{
bdb1_DB *dbst;
+#if defined(RUBY_SAFE_LEVEL_MAX) && RUBY_SAFE_LEVEL_MAX >= 4
if (!OBJ_TAINTED(obj) && rb_safe_level() >= 4)
rb_raise(rb_eSecurityError, "Insecure: can't sync the database");
+#endif
GetDB(obj, dbst);
bdb1_test_error(dbst->dbp->sync(dbst->dbp, 0));
return Qtrue;
|
bed4c05f0fd3805b71a05e428d5a33f700982018
|
59864cbd213b5da6f50d6255b0a021564b3d5bd4
|
/challenges/Recipe_Database/src/get_ingredients.c
|
8f2353e106ab3bd929acaf5bd88655306efb1fb2
|
[
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-unknown",
"BSD-2-Clause"
] |
permissive
|
trailofbits/cb-multios
|
8af96a4fbc3b34644367faa135347f88e0e0d0a3
|
810d7b24b1f62f56ef49b148fe155b0d0629cad2
|
refs/heads/master
| 2023-09-05T03:56:20.229403
| 2022-12-27T15:47:54
| 2022-12-27T15:47:54
| 41,688,943
| 522
| 133
|
MIT
| 2023-06-29T02:47:13
| 2015-08-31T17:04:31
|
C
|
UTF-8
|
C
| false
| false
| 2,447
|
c
|
get_ingredients.c
|
/*
Author: Steve Wood <swood@cromulence.co>
Copyright (c) 2014 Cromulence LLC
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
#include "libcgc.h"
#include "cgc_stdlib.h"
#include "cgc_service.h"
int cgc_get_ingredients(Recipe_Type *recipe) {
int ingredients_count;
cgc_size_t size;
char buffer[1024];
char item[1024];
char measurement[1024];
Ingredient_Type *ingredient;
ingredients_count=0;
ingredient = 0;
cgc_printf("Enter the measurement and ingredients, one per line. A blank line ends.\n\n");
size=cgc_getline(buffer, sizeof(buffer));
if (size <= 1) {
return 0;
}
else {
ingredient = cgc_malloc(sizeof(Ingredient_Type));
if (ingredient == 0) {
cgc_printf("unable to malloc memory\n");
cgc__terminate(-1);
}
}
recipe->Ingredient_List=ingredient;
while(size > 1) {
// validate ingredient entry
cgc_bzero(measurement, 1024);
cgc_bzero(item,1024);
cgc_split_ingredient(buffer, measurement, 1024, item, 1024);
ingredient->next = 0;
cgc_memcpy( ingredient->item, item, 99);
cgc_memcpy( ingredient->measurement, measurement, 19);
// store ingredient
++ingredients_count;
// get next input line
size=cgc_getline(buffer, sizeof(buffer));
if (size > 1 ) {
ingredient->next = cgc_malloc(sizeof(Ingredient_Type));
if (ingredient->next == 0) {
cgc_printf("unable to malloc\n");
cgc__terminate(-1);
}
ingredient = ingredient->next;
}
}
return (ingredients_count);
}
|
06e2a1738d795fa3f3c640fa3eaef18c57927f5e
|
55540f3e86f1d5d86ef6b5d295a63518e274efe3
|
/components/stage/yloop/src/yloop.c
|
8735839e88611d4f30c6eed2f605334c784d77be
|
[
"Apache-2.0"
] |
permissive
|
bouffalolab/bl_iot_sdk
|
bc5eaf036b70f8c65dd389439062b169f8d09daa
|
b90664de0bd4c1897a9f1f5d9e360a9631d38b34
|
refs/heads/master
| 2023-08-31T03:38:03.369853
| 2023-08-16T08:50:33
| 2023-08-18T09:13:27
| 307,347,250
| 244
| 101
|
Apache-2.0
| 2023-08-28T06:29:02
| 2020-10-26T11:16:30
|
C
|
UTF-8
|
C
| false
| false
| 7,156
|
c
|
yloop.c
|
/*
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
*/
#include <string.h>
#include <stdbool.h>
#include <stdlib.h>
#include <errno.h>
#include <FreeRTOS.h>
#include <sys/fcntl.h>
#include <aos/list.h>
#include <aos/kernel.h>
#include <aos/yloop.h>
#include <logger.h>
#include <yloop_types.h>
#include <vfs.h>
#include "yloop.h"
#define TAG "yloop"
typedef struct yloop_timeout_s {
dlist_t next;
long long timeout_ms;
void *private_data;
aos_call_t cb;
int ms;
} yloop_timeout_t;
yloop_ctx_t *g_main_ctx = NULL;
static aos_task_key_t g_loop_key;
static inline void _set_context(yloop_ctx_t *ctx)
{
aos_task_setspecific(g_loop_key, ctx);
}
static inline yloop_ctx_t *_get_context(void)
{
return aos_task_getspecific(g_loop_key);
}
static inline yloop_ctx_t *get_context(void)
{
yloop_ctx_t *ctx = _get_context();
if (!ctx) {
_set_context(g_main_ctx);
return g_main_ctx;
}
return ctx;
}
void aos_loop_set_eventfd(int fd)
{
yloop_ctx_t *ctx = get_context();
ctx->eventfd = fd;
}
int aos_loop_get_eventfd(void *loop)
{
yloop_ctx_t *ctx = loop ? loop : get_context();
return ctx->eventfd;
}
aos_loop_t aos_current_loop(void)
{
return get_context();
}
aos_loop_t aos_loop_init(void)
{
yloop_ctx_t *ctx = _get_context();
if (!g_main_ctx) {
aos_task_key_create(&g_loop_key);
} else if (ctx) {
LOGE(TAG, "yloop already inited");
return ctx;
}
ctx = pvPortMalloc(sizeof(*g_main_ctx));
if (ctx) {
memset(ctx, 0, sizeof(*g_main_ctx));
}
if (!g_main_ctx) {
g_main_ctx = ctx;
}
dlist_init(&ctx->timeouts);
ctx->eventfd = -1;
_set_context(ctx);
aos_event_service_init();
return ctx;
}
int aos_poll_read_fd(int sock, aos_poll_call_t cb, void *private_data)
{
yloop_ctx_t *ctx = get_context();
if (sock < 0) {
return -EINVAL;
}
yloop_sock_t *new_sock;
struct pollfd *new_loop_pollfds;
int cnt = ctx->reader_count + 1;
new_sock = pvPortMalloc(cnt * sizeof(yloop_sock_t));
new_loop_pollfds = pvPortMalloc(cnt * sizeof(struct pollfd));
if (new_sock == NULL || new_loop_pollfds == NULL) {
LOGE(TAG, "out of memory");
vPortFree(new_sock);
vPortFree(new_loop_pollfds);
return -ENOMEM;
}
int status = aos_fcntl(sock, F_GETFL, 0);
aos_fcntl(sock, F_SETFL, status | O_NONBLOCK);
ctx->reader_count++;
memcpy(new_sock, ctx->readers, (cnt - 1) * sizeof(yloop_sock_t));
vPortFree(ctx->readers);
ctx->readers = new_sock;
memcpy(new_loop_pollfds, ctx->pollfds, (cnt - 1) * sizeof(struct pollfd));
vPortFree(ctx->pollfds);
ctx->pollfds = new_loop_pollfds;
new_sock += cnt - 1;
new_sock->sock = sock;
new_sock->private_data = private_data;
new_sock->cb = cb;
if (sock > ctx->max_sock) {
ctx->max_sock = sock;
}
return 0;
}
void aos_cancel_poll_read_fd(int sock, aos_poll_call_t action, void *param)
{
yloop_ctx_t *ctx = get_context();
if (ctx->readers == NULL || ctx->reader_count == 0) {
return;
}
int i;
for (i = 0; i < ctx->reader_count; i++) {
if (ctx->readers[i].sock == sock) {
break;
}
}
if (i == ctx->reader_count) {
return;
}
if (i != ctx->reader_count - 1) {
memmove(&ctx->readers[i], &ctx->readers[i + 1],
(ctx->reader_count - i - 1) *
sizeof(yloop_sock_t));
}
ctx->reader_count--;
}
int aos_post_delayed_action(int ms, aos_call_t action, void *param)
{
if (action == NULL) {
return -EINVAL;
}
yloop_ctx_t *ctx = get_context();
yloop_timeout_t *timeout = pvPortMalloc(sizeof(*timeout));
if (timeout == NULL) {
return -ENOMEM;
}
timeout->timeout_ms = aos_now_ms() + ms;
timeout->private_data = param;
timeout->cb = action;
timeout->ms = ms;
yloop_timeout_t *tmp;
dlist_for_each_entry(&ctx->timeouts, tmp, yloop_timeout_t, next) {
if (timeout->timeout_ms < tmp->timeout_ms) {
break;
}
}
dlist_add_tail(&timeout->next, &tmp->next);
return 0;
}
void aos_cancel_delayed_action(int ms, aos_call_t cb, void *private_data)
{
yloop_ctx_t *ctx = get_context();
yloop_timeout_t *tmp;
dlist_for_each_entry(&ctx->timeouts, tmp, yloop_timeout_t, next) {
if (ms != -1 && tmp->ms != ms) {
continue;
}
if (tmp->cb != cb) {
continue;
}
if (tmp->private_data != private_data) {
continue;
}
dlist_del(&tmp->next);
vPortFree(tmp);
return;
}
}
void aos_loop_run(void)
{
yloop_ctx_t *ctx = get_context();
while (!ctx->terminate &&
(!dlist_empty(&ctx->timeouts) || ctx->reader_count > 0)) {
int delayed_ms = -1;
int readers = ctx->reader_count;
int i;
if (!dlist_empty(&ctx->timeouts)) {
yloop_timeout_t *tmo = dlist_first_entry(&ctx->timeouts, yloop_timeout_t, next);
long long now = aos_now_ms();
if (now < tmo->timeout_ms) {
delayed_ms = tmo->timeout_ms - now;
} else {
delayed_ms = 0;
}
}
for (i = 0; i < readers; i++) {
ctx->pollfds[i].fd = ctx->readers[i].sock;
ctx->pollfds[i].events = POLLIN;
}
int res = aos_poll(ctx->pollfds, readers, delayed_ms);
if (res < 0 && errno != EINTR) {
LOGE(TAG, "aos_poll");
return;
}
/* check if some registered timeouts have occurred */
if (!dlist_empty(&ctx->timeouts)) {
yloop_timeout_t *tmo = dlist_first_entry(&ctx->timeouts, yloop_timeout_t, next);
long long now = aos_now_ms();
if (now >= tmo->timeout_ms) {
dlist_del(&tmo->next);
tmo->cb(tmo->private_data);
vPortFree(tmo);
}
}
if (res <= 0) {
continue;
}
for (i = 0; i < readers; i++) {
if (ctx->pollfds[i].revents & POLLIN) {
ctx->readers[i].cb(
ctx->readers[i].sock,
ctx->readers[i].private_data);
}
}
}
ctx->terminate = 0;
}
void aos_loop_exit(void)
{
yloop_ctx_t *ctx = get_context();
ctx->terminate = 1;
}
void aos_loop_destroy(void)
{
yloop_ctx_t *ctx = _get_context();
if (ctx == NULL) {
return;
}
aos_event_service_deinit(ctx->eventfd);
while (!dlist_empty(&ctx->timeouts)) {
yloop_timeout_t *timeout = dlist_first_entry(&ctx->timeouts, yloop_timeout_t,
next);
dlist_del(&timeout->next);
vPortFree(timeout);
}
vPortFree(ctx->readers);
vPortFree(ctx->pollfds);
_set_context(NULL);
if (ctx == g_main_ctx) {
g_main_ctx = NULL;
}
vPortFree(ctx);
}
|
e452dda4a4e11d8a5732a68f591dbd9c8a6c779d
|
4edd539e79d33f7a08a4c928d113771e9dac0740
|
/lib/burger/flushkeys.c
|
645bb860b34d13553fb7080227f36239bc3410ca
|
[
"MIT"
] |
permissive
|
Olde-Skuul/doom3do
|
84ae4f312e919d070dcb838f7765c5c1ad3f5efd
|
8a5cdae476e09f2bedd2cc4dcd105dae4b35d4af
|
refs/heads/master
| 2023-03-07T19:10:13.752129
| 2023-01-11T22:54:07
| 2023-01-11T22:54:07
| 27,351,671
| 658
| 55
|
MIT
| 2022-11-03T04:07:37
| 2014-11-30T22:02:07
|
C
|
UTF-8
|
C
| false
| false
| 350
|
c
|
flushkeys.c
|
#include "Burger.h"
#include <String.h>
/**********************************
Flush the keyboard buffer of all events
**********************************/
void FlushKeys(void)
{
while (MyKbhit()) { /* Any keys pending? */
MyGetch(); /* Remove from queue */
}
memset((char *)KeyArray,0,sizeof(KeyArray)); /* Clear out the keydown array */
}
|
7de17779d09e2d1bcd7dfbb26e538818270d1616
|
28d0f8c01599f8f6c711bdde0b59f9c2cd221203
|
/sys/dev/raidframe/rf_dagdegrd.c
|
8ad3744469a5ce349fb9340da4f1bb0fb1df852b
|
[] |
no_license
|
NetBSD/src
|
1a9cbc22ed778be638b37869ed4fb5c8dd616166
|
23ee83f7c0aea0777bd89d8ebd7f0cde9880d13c
|
refs/heads/trunk
| 2023-08-31T13:24:58.105962
| 2023-08-27T15:50:47
| 2023-08-27T15:50:47
| 88,439,547
| 656
| 348
| null | 2023-07-20T20:07:24
| 2017-04-16T20:03:43
| null |
UTF-8
|
C
| false
| false
| 40,888
|
c
|
rf_dagdegrd.c
|
/* $NetBSD: rf_dagdegrd.c,v 1.33 2022/01/24 09:14:37 andvar Exp $ */
/*
* Copyright (c) 1995 Carnegie-Mellon University.
* All rights reserved.
*
* Author: Mark Holland, Daniel Stodolsky, William V. Courtright II
*
* Permission to use, copy, modify and distribute this software and
* its documentation is hereby granted, provided that both the copyright
* notice and this permission notice appear in all copies of the
* software, derivative works or modified versions, and any portions
* thereof, and that both notices appear in supporting documentation.
*
* CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
* CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
* FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
*
* Carnegie Mellon requests users of this software to return to
*
* Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
* School of Computer Science
* Carnegie Mellon University
* Pittsburgh PA 15213-3890
*
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*/
/*
* rf_dagdegrd.c
*
* code for creating degraded read DAGs
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: rf_dagdegrd.c,v 1.33 2022/01/24 09:14:37 andvar Exp $");
#include <dev/raidframe/raidframevar.h>
#include "rf_archs.h"
#include "rf_raid.h"
#include "rf_dag.h"
#include "rf_dagutils.h"
#include "rf_dagfuncs.h"
#include "rf_debugMem.h"
#include "rf_general.h"
#include "rf_dagdegrd.h"
#include "rf_map.h"
/******************************************************************************
*
* General comments on DAG creation:
*
* All DAGs in this file use roll-away error recovery. Each DAG has a single
* commit node, usually called "Cmt." If an error occurs before the Cmt node
* is reached, the execution engine will halt forward execution and work
* backward through the graph, executing the undo functions. Assuming that
* each node in the graph prior to the Cmt node are undoable and atomic - or -
* does not make changes to permanent state, the graph will fail atomically.
* If an error occurs after the Cmt node executes, the engine will roll-forward
* through the graph, blindly executing nodes until it reaches the end.
* If a graph reaches the end, it is assumed to have completed successfully.
*
* A graph has only 1 Cmt node.
*
*/
/******************************************************************************
*
* The following wrappers map the standard DAG creation interface to the
* DAG creation routines. Additionally, these wrappers enable experimentation
* with new DAG structures by providing an extra level of indirection, allowing
* the DAG creation routines to be replaced at this single point.
*/
void
rf_CreateRaidFiveDegradedReadDAG(RF_Raid_t *raidPtr,
RF_AccessStripeMap_t *asmap,
RF_DagHeader_t *dag_h,
void *bp,
RF_RaidAccessFlags_t flags,
RF_AllocListElem_t *allocList)
{
rf_CreateDegradedReadDAG(raidPtr, asmap, dag_h, bp, flags, allocList,
&rf_xorRecoveryFuncs);
}
/******************************************************************************
*
* DAG creation code begins here
*/
/******************************************************************************
* Create a degraded read DAG for RAID level 1
*
* Hdr -> Nil -> R(p/s)d -> Commit -> Trm
*
* The "Rd" node reads data from the surviving disk in the mirror pair
* Rpd - read of primary copy
* Rsd - read of secondary copy
*
* Parameters: raidPtr - description of the physical array
* asmap - logical & physical addresses for this access
* bp - buffer ptr (for holding write data)
* flags - general flags (e.g. disk locking)
* allocList - list of memory allocated in DAG creation
*****************************************************************************/
void
rf_CreateRaidOneDegradedReadDAG(RF_Raid_t *raidPtr,
RF_AccessStripeMap_t *asmap,
RF_DagHeader_t *dag_h,
void *bp,
RF_RaidAccessFlags_t flags,
RF_AllocListElem_t *allocList)
{
RF_DagNode_t *rdNode, *blockNode, *commitNode, *termNode;
RF_StripeNum_t parityStripeID;
RF_ReconUnitNum_t which_ru;
RF_PhysDiskAddr_t *pda;
int useMirror;
useMirror = 0;
parityStripeID = rf_RaidAddressToParityStripeID(&(raidPtr->Layout),
asmap->raidAddress, &which_ru);
#if RF_DEBUG_DAG
if (rf_dagDebug) {
printf("[Creating RAID level 1 degraded read DAG]\n");
}
#endif
dag_h->creator = "RaidOneDegradedReadDAG";
/* alloc the Wnd nodes and the Wmir node */
if (asmap->numDataFailed == 0)
useMirror = RF_FALSE;
else
useMirror = RF_TRUE;
/* total number of nodes = 1 + (block + commit + terminator) */
rdNode = rf_AllocDAGNode(raidPtr);
rdNode->list_next = dag_h->nodes;
dag_h->nodes = rdNode;
blockNode = rf_AllocDAGNode(raidPtr);
blockNode->list_next = dag_h->nodes;
dag_h->nodes = blockNode;
commitNode = rf_AllocDAGNode(raidPtr);
commitNode->list_next = dag_h->nodes;
dag_h->nodes = commitNode;
termNode = rf_AllocDAGNode(raidPtr);
termNode->list_next = dag_h->nodes;
dag_h->nodes = termNode;
/* this dag can not commit until the commit node is reached. errors
* prior to the commit point imply the dag has failed and must be
* retried */
dag_h->numCommitNodes = 1;
dag_h->numCommits = 0;
dag_h->numSuccedents = 1;
/* initialize the block, commit, and terminator nodes */
rf_InitNode(blockNode, rf_wait, RF_FALSE, rf_NullNodeFunc, rf_NullNodeUndoFunc,
NULL, 1, 0, 0, 0, dag_h, "Nil", allocList);
rf_InitNode(commitNode, rf_wait, RF_TRUE, rf_NullNodeFunc, rf_NullNodeUndoFunc,
NULL, 1, 1, 0, 0, dag_h, "Cmt", allocList);
rf_InitNode(termNode, rf_wait, RF_FALSE, rf_TerminateFunc, rf_TerminateUndoFunc,
NULL, 0, 1, 0, 0, dag_h, "Trm", allocList);
pda = asmap->physInfo;
RF_ASSERT(pda != NULL);
/* parityInfo must describe entire parity unit */
RF_ASSERT(asmap->parityInfo->next == NULL);
/* initialize the data node */
if (!useMirror) {
/* read primary copy of data */
rf_InitNode(rdNode, rf_wait, RF_FALSE, rf_DiskReadFunc, rf_DiskReadUndoFunc,
rf_GenericWakeupFunc, 1, 1, 4, 0, dag_h, "Rpd", allocList);
rdNode->params[0].p = pda;
rdNode->params[1].p = pda->bufPtr;
rdNode->params[2].v = parityStripeID;
rdNode->params[3].v = RF_CREATE_PARAM3(RF_IO_NORMAL_PRIORITY,
which_ru);
} else {
/* read secondary copy of data */
rf_InitNode(rdNode, rf_wait, RF_FALSE, rf_DiskReadFunc, rf_DiskReadUndoFunc,
rf_GenericWakeupFunc, 1, 1, 4, 0, dag_h, "Rsd", allocList);
rdNode->params[0].p = asmap->parityInfo;
rdNode->params[1].p = pda->bufPtr;
rdNode->params[2].v = parityStripeID;
rdNode->params[3].v = RF_CREATE_PARAM3(RF_IO_NORMAL_PRIORITY,
which_ru);
}
/* connect header to block node */
RF_ASSERT(dag_h->numSuccedents == 1);
RF_ASSERT(blockNode->numAntecedents == 0);
dag_h->succedents[0] = blockNode;
/* connect block node to rdnode */
RF_ASSERT(blockNode->numSuccedents == 1);
RF_ASSERT(rdNode->numAntecedents == 1);
blockNode->succedents[0] = rdNode;
rdNode->antecedents[0] = blockNode;
rdNode->antType[0] = rf_control;
/* connect rdnode to commit node */
RF_ASSERT(rdNode->numSuccedents == 1);
RF_ASSERT(commitNode->numAntecedents == 1);
rdNode->succedents[0] = commitNode;
commitNode->antecedents[0] = rdNode;
commitNode->antType[0] = rf_control;
/* connect commit node to terminator */
RF_ASSERT(commitNode->numSuccedents == 1);
RF_ASSERT(termNode->numAntecedents == 1);
RF_ASSERT(termNode->numSuccedents == 0);
commitNode->succedents[0] = termNode;
termNode->antecedents[0] = commitNode;
termNode->antType[0] = rf_control;
}
/******************************************************************************
*
* creates a DAG to perform a degraded-mode read of data within one stripe.
* This DAG is as follows:
*
* Hdr -> Block -> Rud -> Xor -> Cmt -> T
* -> Rrd ->
* -> Rp -->
*
* Each R node is a successor of the L node
* One successor arc from each R node goes to C, and the other to X
* There is one Rud for each chunk of surviving user data requested by the
* user, and one Rrd for each chunk of surviving user data _not_ being read by
* the user
* R = read, ud = user data, rd = recovery (surviving) data, p = parity
* X = XOR, C = Commit, T = terminate
*
* The block node guarantees a single source node.
*
* Note: The target buffer for the XOR node is set to the actual user buffer
* where the failed data is supposed to end up. This buffer is zero'd by the
* code here. Thus, if you create a degraded read dag, use it, and then
* re-use, you have to be sure to zero the target buffer prior to the re-use.
*
* The recfunc argument at the end specifies the name and function used for
* the redundancy
* recovery function.
*
*****************************************************************************/
void
rf_CreateDegradedReadDAG(RF_Raid_t *raidPtr, RF_AccessStripeMap_t *asmap,
RF_DagHeader_t *dag_h, void *bp,
RF_RaidAccessFlags_t flags,
RF_AllocListElem_t *allocList,
const RF_RedFuncs_t *recFunc)
{
RF_DagNode_t *rudNodes, *rrdNodes, *xorNode, *blockNode;
RF_DagNode_t *commitNode, *rpNode, *termNode;
RF_DagNode_t *tmpNode, *tmprudNode, *tmprrdNode;
int nRrdNodes, nRudNodes, nXorBufs, i;
int j, paramNum;
RF_SectorCount_t sectorsPerSU;
RF_ReconUnitNum_t which_ru;
char overlappingPDAs[RF_MAXCOL];/* a temporary array of flags */
RF_AccessStripeMapHeader_t *new_asm_h[2];
RF_PhysDiskAddr_t *pda, *parityPDA;
RF_StripeNum_t parityStripeID;
RF_PhysDiskAddr_t *failedPDA;
RF_RaidLayout_t *layoutPtr;
char *rpBuf;
layoutPtr = &(raidPtr->Layout);
/* failedPDA points to the pda within the asm that targets the failed
* disk */
failedPDA = asmap->failedPDAs[0];
parityStripeID = rf_RaidAddressToParityStripeID(layoutPtr,
asmap->raidAddress, &which_ru);
sectorsPerSU = layoutPtr->sectorsPerStripeUnit;
#if RF_DEBUG_DAG
if (rf_dagDebug) {
printf("[Creating degraded read DAG]\n");
}
#endif
RF_ASSERT(asmap->numDataFailed == 1);
dag_h->creator = "DegradedReadDAG";
/*
* generate two ASMs identifying the surviving data we need
* in order to recover the lost data
*/
/* overlappingPDAs array must be zero'd */
memset(overlappingPDAs, 0, RF_MAXCOL);
rf_GenerateFailedAccessASMs(raidPtr, asmap, failedPDA, dag_h, new_asm_h, &nXorBufs,
&rpBuf, overlappingPDAs, allocList);
/*
* create all the nodes at once
*
* -1 because no access is generated for the failed pda
*/
nRudNodes = asmap->numStripeUnitsAccessed - 1;
nRrdNodes = ((new_asm_h[0]) ? new_asm_h[0]->stripeMap->numStripeUnitsAccessed : 0) +
((new_asm_h[1]) ? new_asm_h[1]->stripeMap->numStripeUnitsAccessed : 0);
blockNode = rf_AllocDAGNode(raidPtr);
blockNode->list_next = dag_h->nodes;
dag_h->nodes = blockNode;
commitNode = rf_AllocDAGNode(raidPtr);
commitNode->list_next = dag_h->nodes;
dag_h->nodes = commitNode;
xorNode = rf_AllocDAGNode(raidPtr);
xorNode->list_next = dag_h->nodes;
dag_h->nodes = xorNode;
rpNode = rf_AllocDAGNode(raidPtr);
rpNode->list_next = dag_h->nodes;
dag_h->nodes = rpNode;
termNode = rf_AllocDAGNode(raidPtr);
termNode->list_next = dag_h->nodes;
dag_h->nodes = termNode;
for (i = 0; i < nRudNodes; i++) {
tmpNode = rf_AllocDAGNode(raidPtr);
tmpNode->list_next = dag_h->nodes;
dag_h->nodes = tmpNode;
}
rudNodes = dag_h->nodes;
for (i = 0; i < nRrdNodes; i++) {
tmpNode = rf_AllocDAGNode(raidPtr);
tmpNode->list_next = dag_h->nodes;
dag_h->nodes = tmpNode;
}
rrdNodes = dag_h->nodes;
/* initialize nodes */
dag_h->numCommitNodes = 1;
dag_h->numCommits = 0;
/* this dag can not commit until the commit node is reached errors
* prior to the commit point imply the dag has failed */
dag_h->numSuccedents = 1;
rf_InitNode(blockNode, rf_wait, RF_FALSE, rf_NullNodeFunc, rf_NullNodeUndoFunc,
NULL, nRudNodes + nRrdNodes + 1, 0, 0, 0, dag_h, "Nil", allocList);
rf_InitNode(commitNode, rf_wait, RF_TRUE, rf_NullNodeFunc, rf_NullNodeUndoFunc,
NULL, 1, 1, 0, 0, dag_h, "Cmt", allocList);
rf_InitNode(termNode, rf_wait, RF_FALSE, rf_TerminateFunc, rf_TerminateUndoFunc,
NULL, 0, 1, 0, 0, dag_h, "Trm", allocList);
rf_InitNode(xorNode, rf_wait, RF_FALSE, recFunc->simple, rf_NullNodeUndoFunc,
NULL, 1, nRudNodes + nRrdNodes + 1, 2 * nXorBufs + 2, 1, dag_h,
recFunc->SimpleName, allocList);
/* fill in the Rud nodes */
tmprudNode = rudNodes;
for (pda = asmap->physInfo, i = 0; i < nRudNodes; i++, pda = pda->next) {
if (pda == failedPDA) {
i--;
continue;
}
rf_InitNode(tmprudNode, rf_wait, RF_FALSE, rf_DiskReadFunc,
rf_DiskReadUndoFunc, rf_GenericWakeupFunc, 1, 1, 4, 0, dag_h,
"Rud", allocList);
RF_ASSERT(pda);
tmprudNode->params[0].p = pda;
tmprudNode->params[1].p = pda->bufPtr;
tmprudNode->params[2].v = parityStripeID;
tmprudNode->params[3].v = RF_CREATE_PARAM3(RF_IO_NORMAL_PRIORITY, which_ru);
tmprudNode = tmprudNode->list_next;
}
/* fill in the Rrd nodes */
i = 0;
tmprrdNode = rrdNodes;
if (new_asm_h[0]) {
for (pda = new_asm_h[0]->stripeMap->physInfo;
i < new_asm_h[0]->stripeMap->numStripeUnitsAccessed;
i++, pda = pda->next) {
rf_InitNode(tmprrdNode, rf_wait, RF_FALSE, rf_DiskReadFunc,
rf_DiskReadUndoFunc, rf_GenericWakeupFunc, 1, 1, 4, 0,
dag_h, "Rrd", allocList);
RF_ASSERT(pda);
tmprrdNode->params[0].p = pda;
tmprrdNode->params[1].p = pda->bufPtr;
tmprrdNode->params[2].v = parityStripeID;
tmprrdNode->params[3].v = RF_CREATE_PARAM3(RF_IO_NORMAL_PRIORITY, which_ru);
tmprrdNode = tmprrdNode->list_next;
}
}
if (new_asm_h[1]) {
/* tmprrdNode = rrdNodes; */ /* don't set this here -- old code was using i+j, which means
we need to just continue using tmprrdNode for the next 'j' elements. */
for (j = 0, pda = new_asm_h[1]->stripeMap->physInfo;
j < new_asm_h[1]->stripeMap->numStripeUnitsAccessed;
j++, pda = pda->next) {
rf_InitNode(tmprrdNode, rf_wait, RF_FALSE, rf_DiskReadFunc,
rf_DiskReadUndoFunc, rf_GenericWakeupFunc, 1, 1, 4, 0,
dag_h, "Rrd", allocList);
RF_ASSERT(pda);
tmprrdNode->params[0].p = pda;
tmprrdNode->params[1].p = pda->bufPtr;
tmprrdNode->params[2].v = parityStripeID;
tmprrdNode->params[3].v = RF_CREATE_PARAM3(RF_IO_NORMAL_PRIORITY, which_ru);
tmprrdNode = tmprrdNode->list_next;
}
}
/* make a PDA for the parity unit */
parityPDA = rf_AllocPhysDiskAddr(raidPtr);
parityPDA->next = dag_h->pda_cleanup_list;
dag_h->pda_cleanup_list = parityPDA;
parityPDA->col = asmap->parityInfo->col;
parityPDA->startSector = ((asmap->parityInfo->startSector / sectorsPerSU)
* sectorsPerSU) + (failedPDA->startSector % sectorsPerSU);
parityPDA->numSector = failedPDA->numSector;
/* initialize the Rp node */
rf_InitNode(rpNode, rf_wait, RF_FALSE, rf_DiskReadFunc, rf_DiskReadUndoFunc,
rf_GenericWakeupFunc, 1, 1, 4, 0, dag_h, "Rp ", allocList);
rpNode->params[0].p = parityPDA;
rpNode->params[1].p = rpBuf;
rpNode->params[2].v = parityStripeID;
rpNode->params[3].v = RF_CREATE_PARAM3(RF_IO_NORMAL_PRIORITY, which_ru);
/*
* the last and nastiest step is to assign all
* the parameters of the Xor node
*/
paramNum = 0;
tmprrdNode = rrdNodes;
for (i = 0; i < nRrdNodes; i++) {
/* all the Rrd nodes need to be xored together */
xorNode->params[paramNum++] = tmprrdNode->params[0];
xorNode->params[paramNum++] = tmprrdNode->params[1];
tmprrdNode = tmprrdNode->list_next;
}
tmprudNode = rudNodes;
for (i = 0; i < nRudNodes; i++) {
/* any Rud nodes that overlap the failed access need to be
* xored in */
if (overlappingPDAs[i]) {
pda = rf_AllocPhysDiskAddr(raidPtr);
memcpy((char *) pda, (char *) tmprudNode->params[0].p, sizeof(RF_PhysDiskAddr_t));
/* add it into the pda_cleanup_list *after* the copy, TYVM */
pda->next = dag_h->pda_cleanup_list;
dag_h->pda_cleanup_list = pda;
rf_RangeRestrictPDA(raidPtr, failedPDA, pda, RF_RESTRICT_DOBUFFER, 0);
xorNode->params[paramNum++].p = pda;
xorNode->params[paramNum++].p = pda->bufPtr;
}
tmprudNode = tmprudNode->list_next;
}
/* install parity pda as last set of params to be xor'd */
xorNode->params[paramNum++].p = parityPDA;
xorNode->params[paramNum++].p = rpBuf;
/*
* the last 2 params to the recovery xor node are
* the failed PDA and the raidPtr
*/
xorNode->params[paramNum++].p = failedPDA;
xorNode->params[paramNum++].p = raidPtr;
RF_ASSERT(paramNum == 2 * nXorBufs + 2);
/*
* The xor node uses results[0] as the target buffer.
* Set pointer and zero the buffer. In the kernel, this
* may be a user buffer in which case we have to remap it.
*/
xorNode->results[0] = failedPDA->bufPtr;
memset(failedPDA->bufPtr, 0, rf_RaidAddressToByte(raidPtr,
failedPDA->numSector));
/* connect nodes to form graph */
/* connect the header to the block node */
RF_ASSERT(dag_h->numSuccedents == 1);
RF_ASSERT(blockNode->numAntecedents == 0);
dag_h->succedents[0] = blockNode;
/* connect the block node to the read nodes */
RF_ASSERT(blockNode->numSuccedents == (1 + nRrdNodes + nRudNodes));
RF_ASSERT(rpNode->numAntecedents == 1);
blockNode->succedents[0] = rpNode;
rpNode->antecedents[0] = blockNode;
rpNode->antType[0] = rf_control;
tmprrdNode = rrdNodes;
for (i = 0; i < nRrdNodes; i++) {
RF_ASSERT(tmprrdNode->numSuccedents == 1);
blockNode->succedents[1 + i] = tmprrdNode;
tmprrdNode->antecedents[0] = blockNode;
tmprrdNode->antType[0] = rf_control;
tmprrdNode = tmprrdNode->list_next;
}
tmprudNode = rudNodes;
for (i = 0; i < nRudNodes; i++) {
RF_ASSERT(tmprudNode->numSuccedents == 1);
blockNode->succedents[1 + nRrdNodes + i] = tmprudNode;
tmprudNode->antecedents[0] = blockNode;
tmprudNode->antType[0] = rf_control;
tmprudNode = tmprudNode->list_next;
}
/* connect the read nodes to the xor node */
RF_ASSERT(xorNode->numAntecedents == (1 + nRrdNodes + nRudNodes));
RF_ASSERT(rpNode->numSuccedents == 1);
rpNode->succedents[0] = xorNode;
xorNode->antecedents[0] = rpNode;
xorNode->antType[0] = rf_trueData;
tmprrdNode = rrdNodes;
for (i = 0; i < nRrdNodes; i++) {
RF_ASSERT(tmprrdNode->numSuccedents == 1);
tmprrdNode->succedents[0] = xorNode;
xorNode->antecedents[1 + i] = tmprrdNode;
xorNode->antType[1 + i] = rf_trueData;
tmprrdNode = tmprrdNode->list_next;
}
tmprudNode = rudNodes;
for (i = 0; i < nRudNodes; i++) {
RF_ASSERT(tmprudNode->numSuccedents == 1);
tmprudNode->succedents[0] = xorNode;
xorNode->antecedents[1 + nRrdNodes + i] = tmprudNode;
xorNode->antType[1 + nRrdNodes + i] = rf_trueData;
tmprudNode = tmprudNode->list_next;
}
/* connect the xor node to the commit node */
RF_ASSERT(xorNode->numSuccedents == 1);
RF_ASSERT(commitNode->numAntecedents == 1);
xorNode->succedents[0] = commitNode;
commitNode->antecedents[0] = xorNode;
commitNode->antType[0] = rf_control;
/* connect the termNode to the commit node */
RF_ASSERT(commitNode->numSuccedents == 1);
RF_ASSERT(termNode->numAntecedents == 1);
RF_ASSERT(termNode->numSuccedents == 0);
commitNode->succedents[0] = termNode;
termNode->antType[0] = rf_control;
termNode->antecedents[0] = commitNode;
}
#if (RF_INCLUDE_CHAINDECLUSTER > 0)
/******************************************************************************
* Create a degraded read DAG for Chained Declustering
*
* Hdr -> Nil -> R(p/s)d -> Cmt -> Trm
*
* The "Rd" node reads data from the surviving disk in the mirror pair
* Rpd - read of primary copy
* Rsd - read of secondary copy
*
* Parameters: raidPtr - description of the physical array
* asmap - logical & physical addresses for this access
* bp - buffer ptr (for holding write data)
* flags - general flags (e.g. disk locking)
* allocList - list of memory allocated in DAG creation
*****************************************************************************/
void
rf_CreateRaidCDegradedReadDAG(RF_Raid_t *raidPtr, RF_AccessStripeMap_t *asmap,
RF_DagHeader_t *dag_h, void *bp,
RF_RaidAccessFlags_t flags,
RF_AllocListElem_t *allocList)
{
RF_DagNode_t *nodes, *rdNode, *blockNode, *commitNode, *termNode;
RF_StripeNum_t parityStripeID;
int useMirror, i, shiftable;
RF_ReconUnitNum_t which_ru;
RF_PhysDiskAddr_t *pda;
if ((asmap->numDataFailed + asmap->numParityFailed) == 0) {
shiftable = RF_TRUE;
} else {
shiftable = RF_FALSE;
}
useMirror = 0;
parityStripeID = rf_RaidAddressToParityStripeID(&(raidPtr->Layout),
asmap->raidAddress, &which_ru);
#if RF_DEBUG_DAG
if (rf_dagDebug) {
printf("[Creating RAID C degraded read DAG]\n");
}
#endif
dag_h->creator = "RaidCDegradedReadDAG";
/* alloc the Wnd nodes and the Wmir node */
if (asmap->numDataFailed == 0)
useMirror = RF_FALSE;
else
useMirror = RF_TRUE;
/* total number of nodes = 1 + (block + commit + terminator) */
nodes = RF_MallocAndAdd(4 * sizeof(*nodes), allocList);
i = 0;
rdNode = &nodes[i];
i++;
blockNode = &nodes[i];
i++;
commitNode = &nodes[i];
i++;
termNode = &nodes[i];
i++;
/*
* This dag can not commit until the commit node is reached.
* Errors prior to the commit point imply the dag has failed
* and must be retried.
*/
dag_h->numCommitNodes = 1;
dag_h->numCommits = 0;
dag_h->numSuccedents = 1;
/* initialize the block, commit, and terminator nodes */
rf_InitNode(blockNode, rf_wait, RF_FALSE, rf_NullNodeFunc, rf_NullNodeUndoFunc,
NULL, 1, 0, 0, 0, dag_h, "Nil", allocList);
rf_InitNode(commitNode, rf_wait, RF_TRUE, rf_NullNodeFunc, rf_NullNodeUndoFunc,
NULL, 1, 1, 0, 0, dag_h, "Cmt", allocList);
rf_InitNode(termNode, rf_wait, RF_FALSE, rf_TerminateFunc, rf_TerminateUndoFunc,
NULL, 0, 1, 0, 0, dag_h, "Trm", allocList);
pda = asmap->physInfo;
RF_ASSERT(pda != NULL);
/* parityInfo must describe entire parity unit */
RF_ASSERT(asmap->parityInfo->next == NULL);
/* initialize the data node */
if (!useMirror) {
rf_InitNode(rdNode, rf_wait, RF_FALSE, rf_DiskReadFunc, rf_DiskReadUndoFunc,
rf_GenericWakeupFunc, 1, 1, 4, 0, dag_h, "Rpd", allocList);
if (shiftable && rf_compute_workload_shift(raidPtr, pda)) {
/* shift this read to the next disk in line */
rdNode->params[0].p = asmap->parityInfo;
rdNode->params[1].p = pda->bufPtr;
rdNode->params[2].v = parityStripeID;
rdNode->params[3].v = RF_CREATE_PARAM3(RF_IO_NORMAL_PRIORITY, which_ru);
} else {
/* read primary copy */
rdNode->params[0].p = pda;
rdNode->params[1].p = pda->bufPtr;
rdNode->params[2].v = parityStripeID;
rdNode->params[3].v = RF_CREATE_PARAM3(RF_IO_NORMAL_PRIORITY, which_ru);
}
} else {
/* read secondary copy of data */
rf_InitNode(rdNode, rf_wait, RF_FALSE, rf_DiskReadFunc, rf_DiskReadUndoFunc,
rf_GenericWakeupFunc, 1, 1, 4, 0, dag_h, "Rsd", allocList);
rdNode->params[0].p = asmap->parityInfo;
rdNode->params[1].p = pda->bufPtr;
rdNode->params[2].v = parityStripeID;
rdNode->params[3].v = RF_CREATE_PARAM3(RF_IO_NORMAL_PRIORITY, which_ru);
}
/* connect header to block node */
RF_ASSERT(dag_h->numSuccedents == 1);
RF_ASSERT(blockNode->numAntecedents == 0);
dag_h->succedents[0] = blockNode;
/* connect block node to rdnode */
RF_ASSERT(blockNode->numSuccedents == 1);
RF_ASSERT(rdNode->numAntecedents == 1);
blockNode->succedents[0] = rdNode;
rdNode->antecedents[0] = blockNode;
rdNode->antType[0] = rf_control;
/* connect rdnode to commit node */
RF_ASSERT(rdNode->numSuccedents == 1);
RF_ASSERT(commitNode->numAntecedents == 1);
rdNode->succedents[0] = commitNode;
commitNode->antecedents[0] = rdNode;
commitNode->antType[0] = rf_control;
/* connect commit node to terminator */
RF_ASSERT(commitNode->numSuccedents == 1);
RF_ASSERT(termNode->numAntecedents == 1);
RF_ASSERT(termNode->numSuccedents == 0);
commitNode->succedents[0] = termNode;
termNode->antecedents[0] = commitNode;
termNode->antType[0] = rf_control;
}
#endif /* (RF_INCLUDE_CHAINDECLUSTER > 0) */
#if (RF_INCLUDE_DECL_PQ > 0) || (RF_INCLUDE_RAID6 > 0) || (RF_INCLUDE_EVENODD > 0)
/*
* XXX move this elsewhere?
*/
void
rf_DD_GenerateFailedAccessASMs(RF_Raid_t *raidPtr, RF_AccessStripeMap_t *asmap,
RF_PhysDiskAddr_t **pdap, int *nNodep,
RF_PhysDiskAddr_t **pqpdap, int *nPQNodep,
RF_AllocListElem_t *allocList)
{
RF_RaidLayout_t *layoutPtr = &(raidPtr->Layout);
int PDAPerDisk, i;
RF_SectorCount_t secPerSU = layoutPtr->sectorsPerStripeUnit;
int numDataCol = layoutPtr->numDataCol;
int state;
RF_SectorNum_t suoff, suend;
unsigned firstDataCol, napdas, count;
RF_SectorNum_t fone_start, fone_end, ftwo_start = 0, ftwo_end = 0;
RF_PhysDiskAddr_t *fone = asmap->failedPDAs[0], *ftwo = asmap->failedPDAs[1];
RF_PhysDiskAddr_t *pda_p;
RF_PhysDiskAddr_t *phys_p;
RF_RaidAddr_t sosAddr;
/* determine how many pda's we will have to generate per unaccess
* stripe. If there is only one failed data unit, it is one; if two,
* possibly two, depending whether they overlap. */
fone_start = rf_StripeUnitOffset(layoutPtr, fone->startSector);
fone_end = fone_start + fone->numSector;
#define BUF_ALLOC(num) \
RF_MallocAndAdd(rf_RaidAddressToByte(raidPtr, num), allocList)
#define CONS_PDA(if,start,num) \
pda_p->col = asmap->if->col; \
pda_p->startSector = ((asmap->if->startSector / secPerSU) * secPerSU) + start; \
pda_p->numSector = num; \
pda_p->next = NULL; \
pda_p->bufPtr = BUF_ALLOC(num)
if (asmap->numDataFailed == 1) {
PDAPerDisk = 1;
state = 1;
*pqpdap = RF_MallocAndAdd(2 * sizeof(**pqpdap), allocList);
pda_p = *pqpdap;
/* build p */
CONS_PDA(parityInfo, fone_start, fone->numSector);
pda_p->type = RF_PDA_TYPE_PARITY;
pda_p++;
/* build q */
CONS_PDA(qInfo, fone_start, fone->numSector);
pda_p->type = RF_PDA_TYPE_Q;
} else {
ftwo_start = rf_StripeUnitOffset(layoutPtr, ftwo->startSector);
ftwo_end = ftwo_start + ftwo->numSector;
if (fone->numSector + ftwo->numSector > secPerSU) {
PDAPerDisk = 1;
state = 2;
*pqpdap = RF_MallocAndAdd(2 * sizeof(**pqpdap), allocList);
pda_p = *pqpdap;
CONS_PDA(parityInfo, 0, secPerSU);
pda_p->type = RF_PDA_TYPE_PARITY;
pda_p++;
CONS_PDA(qInfo, 0, secPerSU);
pda_p->type = RF_PDA_TYPE_Q;
} else {
PDAPerDisk = 2;
state = 3;
/* four of them, fone, then ftwo */
*pqpdap = RF_MallocAndAdd(4 * sizeof(**pqpdap), allocList);
pda_p = *pqpdap;
CONS_PDA(parityInfo, fone_start, fone->numSector);
pda_p->type = RF_PDA_TYPE_PARITY;
pda_p++;
CONS_PDA(qInfo, fone_start, fone->numSector);
pda_p->type = RF_PDA_TYPE_Q;
pda_p++;
CONS_PDA(parityInfo, ftwo_start, ftwo->numSector);
pda_p->type = RF_PDA_TYPE_PARITY;
pda_p++;
CONS_PDA(qInfo, ftwo_start, ftwo->numSector);
pda_p->type = RF_PDA_TYPE_Q;
}
}
/* figure out number of nonaccessed pda */
napdas = PDAPerDisk * (numDataCol - asmap->numStripeUnitsAccessed - (ftwo == NULL ? 1 : 0));
*nPQNodep = PDAPerDisk;
/* sweep over the over accessed pda's, figuring out the number of
* additional pda's to generate. Of course, skip the failed ones */
count = 0;
for (pda_p = asmap->physInfo; pda_p; pda_p = pda_p->next) {
if ((pda_p == fone) || (pda_p == ftwo))
continue;
suoff = rf_StripeUnitOffset(layoutPtr, pda_p->startSector);
suend = suoff + pda_p->numSector;
switch (state) {
case 1: /* one failed PDA to overlap */
/* if a PDA doesn't contain the failed unit, it can
* only miss the start or end, not both */
if ((suoff > fone_start) || (suend < fone_end))
count++;
break;
case 2: /* whole stripe */
if (suoff) /* leak at beginning */
count++;
if (suend < numDataCol) /* leak at end */
count++;
break;
case 3: /* two disjoint units */
if ((suoff > fone_start) || (suend < fone_end))
count++;
if ((suoff > ftwo_start) || (suend < ftwo_end))
count++;
break;
default:
RF_PANIC();
}
}
napdas += count;
*nNodep = napdas;
if (napdas == 0)
return; /* short circuit */
/* allocate up our list of pda's */
pda_p = RF_MallocAndAdd(napdas * sizeof(*pdap), allocList);
*pdap = pda_p;
/* linkem together */
for (i = 0; i < (napdas - 1); i++)
pda_p[i].next = pda_p + (i + 1);
/* march through the one's up to the first accessed disk */
firstDataCol = rf_RaidAddressToStripeUnitID(&(raidPtr->Layout), asmap->physInfo->raidAddress) % numDataCol;
sosAddr = rf_RaidAddressOfPrevStripeBoundary(layoutPtr, asmap->raidAddress);
for (i = 0; i < firstDataCol; i++) {
if ((pda_p - (*pdap)) == napdas)
continue;
pda_p->type = RF_PDA_TYPE_DATA;
pda_p->raidAddress = sosAddr + (i * secPerSU);
(raidPtr->Layout.map->MapSector) (raidPtr, pda_p->raidAddress, &(pda_p->col), &(pda_p->startSector), 0);
/* skip over dead disks */
if (RF_DEAD_DISK(raidPtr->Disks[pda_p->col].status))
continue;
switch (state) {
case 1: /* fone */
pda_p->numSector = fone->numSector;
pda_p->raidAddress += fone_start;
pda_p->startSector += fone_start;
pda_p->bufPtr = BUF_ALLOC(pda_p->numSector);
break;
case 2: /* full stripe */
pda_p->numSector = secPerSU;
pda_p->bufPtr = BUF_ALLOC(secPerSU);
break;
case 3: /* two slabs */
pda_p->numSector = fone->numSector;
pda_p->raidAddress += fone_start;
pda_p->startSector += fone_start;
pda_p->bufPtr = BUF_ALLOC(pda_p->numSector);
pda_p++;
pda_p->type = RF_PDA_TYPE_DATA;
pda_p->raidAddress = sosAddr + (i * secPerSU);
(raidPtr->Layout.map->MapSector) (raidPtr, pda_p->raidAddress, &(pda_p->col), &(pda_p->startSector), 0);
pda_p->numSector = ftwo->numSector;
pda_p->raidAddress += ftwo_start;
pda_p->startSector += ftwo_start;
pda_p->bufPtr = BUF_ALLOC(pda_p->numSector);
break;
default:
RF_PANIC();
}
pda_p++;
}
/* march through the touched stripe units */
for (phys_p = asmap->physInfo; phys_p; phys_p = phys_p->next, i++) {
if ((phys_p == asmap->failedPDAs[0]) || (phys_p == asmap->failedPDAs[1]))
continue;
suoff = rf_StripeUnitOffset(layoutPtr, phys_p->startSector);
suend = suoff + phys_p->numSector;
switch (state) {
case 1: /* single buffer */
if (suoff > fone_start) {
RF_ASSERT(suend >= fone_end);
/* The data read starts after the mapped
* access, snip off the beginning */
pda_p->numSector = suoff - fone_start;
pda_p->raidAddress = sosAddr + (i * secPerSU) + fone_start;
(raidPtr->Layout.map->MapSector) (raidPtr, pda_p->raidAddress, &(pda_p->col), &(pda_p->startSector), 0);
pda_p->bufPtr = BUF_ALLOC(pda_p->numSector);
pda_p++;
}
if (suend < fone_end) {
RF_ASSERT(suoff <= fone_start);
/* The data read stops before the end of the
* failed access, extend */
pda_p->numSector = fone_end - suend;
pda_p->raidAddress = sosAddr + (i * secPerSU) + suend; /* off by one? */
(raidPtr->Layout.map->MapSector) (raidPtr, pda_p->raidAddress, &(pda_p->col), &(pda_p->startSector), 0);
pda_p->bufPtr = BUF_ALLOC(pda_p->numSector);
pda_p++;
}
break;
case 2: /* whole stripe unit */
RF_ASSERT((suoff == 0) || (suend == secPerSU));
if (suend < secPerSU) { /* short read, snip from end
* on */
pda_p->numSector = secPerSU - suend;
pda_p->raidAddress = sosAddr + (i * secPerSU) + suend; /* off by one? */
(raidPtr->Layout.map->MapSector) (raidPtr, pda_p->raidAddress, &(pda_p->col), &(pda_p->startSector), 0);
pda_p->bufPtr = BUF_ALLOC(pda_p->numSector);
pda_p++;
} else
if (suoff > 0) { /* short at front */
pda_p->numSector = suoff;
pda_p->raidAddress = sosAddr + (i * secPerSU);
(raidPtr->Layout.map->MapSector) (raidPtr, pda_p->raidAddress, &(pda_p->col), &(pda_p->startSector), 0);
pda_p->bufPtr =
BUF_ALLOC(pda_p->numSector);
pda_p++;
}
break;
case 3: /* two nonoverlapping failures */
if ((suoff > fone_start) || (suend < fone_end)) {
if (suoff > fone_start) {
RF_ASSERT(suend >= fone_end);
/* The data read starts after the
* mapped access, snip off the
* beginning */
pda_p->numSector = suoff - fone_start;
pda_p->raidAddress = sosAddr + (i * secPerSU) + fone_start;
(raidPtr->Layout.map->MapSector) (raidPtr, pda_p->raidAddress, &(pda_p->col), &(pda_p->startSector), 0);
pda_p->bufPtr =
BUF_ALLOC(pda_p->numSector);
pda_p++;
}
if (suend < fone_end) {
RF_ASSERT(suoff <= fone_start);
/* The data read stops before the end
* of the failed access, extend */
pda_p->numSector = fone_end - suend;
pda_p->raidAddress = sosAddr + (i * secPerSU) + suend; /* off by one? */
(raidPtr->Layout.map->MapSector) (raidPtr, pda_p->raidAddress, &(pda_p->col), &(pda_p->startSector), 0);
pda_p->bufPtr =
BUF_ALLOC(pda_p->numSector);
pda_p++;
}
}
if ((suoff > ftwo_start) || (suend < ftwo_end)) {
if (suoff > ftwo_start) {
RF_ASSERT(suend >= ftwo_end);
/* The data read starts after the
* mapped access, snip off the
* beginning */
pda_p->numSector = suoff - ftwo_start;
pda_p->raidAddress = sosAddr + (i * secPerSU) + ftwo_start;
(raidPtr->Layout.map->MapSector) (raidPtr, pda_p->raidAddress, &(pda_p->col), &(pda_p->startSector), 0);
pda_p->bufPtr =
BUF_ALLOC(pda_p->numSector);
pda_p++;
}
if (suend < ftwo_end) {
RF_ASSERT(suoff <= ftwo_start);
/* The data read stops before the end
* of the failed access, extend */
pda_p->numSector = ftwo_end - suend;
pda_p->raidAddress = sosAddr + (i * secPerSU) + suend; /* off by one? */
(raidPtr->Layout.map->MapSector) (raidPtr, pda_p->raidAddress, &(pda_p->col), &(pda_p->startSector), 0);
pda_p->bufPtr =
BUF_ALLOC(pda_p->numSector);
pda_p++;
}
}
break;
default:
RF_PANIC();
}
}
/* after the last accessed disk */
for (; i < numDataCol; i++) {
if ((pda_p - (*pdap)) == napdas)
continue;
pda_p->type = RF_PDA_TYPE_DATA;
pda_p->raidAddress = sosAddr + (i * secPerSU);
(raidPtr->Layout.map->MapSector) (raidPtr, pda_p->raidAddress, &(pda_p->col), &(pda_p->startSector), 0);
/* skip over dead disks */
if (RF_DEAD_DISK(raidPtr->Disks[pda_p->col].status))
continue;
switch (state) {
case 1: /* fone */
pda_p->numSector = fone->numSector;
pda_p->raidAddress += fone_start;
pda_p->startSector += fone_start;
pda_p->bufPtr = BUF_ALLOC(pda_p->numSector);
break;
case 2: /* full stripe */
pda_p->numSector = secPerSU;
pda_p->bufPtr = BUF_ALLOC(secPerSU);
break;
case 3: /* two slabs */
pda_p->numSector = fone->numSector;
pda_p->raidAddress += fone_start;
pda_p->startSector += fone_start;
pda_p->bufPtr = BUF_ALLOC(pda_p->numSector);
pda_p++;
pda_p->type = RF_PDA_TYPE_DATA;
pda_p->raidAddress = sosAddr + (i * secPerSU);
(raidPtr->Layout.map->MapSector) (raidPtr, pda_p->raidAddress, &(pda_p->col), &(pda_p->startSector), 0);
pda_p->numSector = ftwo->numSector;
pda_p->raidAddress += ftwo_start;
pda_p->startSector += ftwo_start;
pda_p->bufPtr = BUF_ALLOC(pda_p->numSector);
break;
default:
RF_PANIC();
}
pda_p++;
}
RF_ASSERT(pda_p - *pdap == napdas);
return;
}
#define INIT_DISK_NODE(node,name) \
rf_InitNode(node, rf_wait, RF_FALSE, rf_DiskReadFunc, rf_DiskReadUndoFunc, rf_GenericWakeupFunc, 2,1,4,0, dag_h, name, allocList); \
(node)->succedents[0] = unblockNode; \
(node)->succedents[1] = recoveryNode; \
(node)->antecedents[0] = blockNode; \
(node)->antType[0] = rf_control
#define DISK_NODE_PARAMS(_node_,_p_) \
(_node_).params[0].p = _p_ ; \
(_node_).params[1].p = (_p_)->bufPtr; \
(_node_).params[2].v = parityStripeID; \
(_node_).params[3].v = RF_CREATE_PARAM3(RF_IO_NORMAL_PRIORITY, which_ru)
void
rf_DoubleDegRead(RF_Raid_t *raidPtr, RF_AccessStripeMap_t *asmap,
RF_DagHeader_t *dag_h, void *bp,
RF_RaidAccessFlags_t flags,
RF_AllocListElem_t *allocList,
const char *redundantReadNodeName,
const char *recoveryNodeName,
void (*recovFunc) (RF_DagNode_t *))
{
RF_RaidLayout_t *layoutPtr = &(raidPtr->Layout);
RF_DagNode_t *nodes, *rudNodes, *rrdNodes, *recoveryNode, *blockNode,
*unblockNode, *rpNodes, *rqNodes, *termNode;
RF_PhysDiskAddr_t *pda, *pqPDAs;
RF_PhysDiskAddr_t *npdas;
int nNodes, nRrdNodes, nRudNodes, i;
RF_ReconUnitNum_t which_ru;
int nReadNodes, nPQNodes;
RF_PhysDiskAddr_t *failedPDA = asmap->failedPDAs[0];
RF_PhysDiskAddr_t *failedPDAtwo = asmap->failedPDAs[1];
RF_StripeNum_t parityStripeID = rf_RaidAddressToParityStripeID(layoutPtr, asmap->raidAddress, &which_ru);
#if RF_DEBUG_DAG
if (rf_dagDebug)
printf("[Creating Double Degraded Read DAG]\n");
#endif
rf_DD_GenerateFailedAccessASMs(raidPtr, asmap, &npdas, &nRrdNodes, &pqPDAs, &nPQNodes, allocList);
nRudNodes = asmap->numStripeUnitsAccessed - (asmap->numDataFailed);
nReadNodes = nRrdNodes + nRudNodes + 2 * nPQNodes;
nNodes = 4 /* block, unblock, recovery, term */ + nReadNodes;
nodes = RF_MallocAndAdd(nNodes * sizeof(*nodes), allocList);
i = 0;
blockNode = &nodes[i];
i += 1;
unblockNode = &nodes[i];
i += 1;
recoveryNode = &nodes[i];
i += 1;
termNode = &nodes[i];
i += 1;
rudNodes = &nodes[i];
i += nRudNodes;
rrdNodes = &nodes[i];
i += nRrdNodes;
rpNodes = &nodes[i];
i += nPQNodes;
rqNodes = &nodes[i];
i += nPQNodes;
RF_ASSERT(i == nNodes);
dag_h->numSuccedents = 1;
dag_h->succedents[0] = blockNode;
dag_h->creator = "DoubleDegRead";
dag_h->numCommits = 0;
dag_h->numCommitNodes = 1; /* unblock */
rf_InitNode(termNode, rf_wait, RF_FALSE, rf_TerminateFunc, rf_TerminateUndoFunc, NULL, 0, 2, 0, 0, dag_h, "Trm", allocList);
termNode->antecedents[0] = unblockNode;
termNode->antType[0] = rf_control;
termNode->antecedents[1] = recoveryNode;
termNode->antType[1] = rf_control;
/* init the block and unblock nodes */
/* The block node has all nodes except itself, unblock and recovery as
* successors. Similarly for predecessors of the unblock. */
rf_InitNode(blockNode, rf_wait, RF_FALSE, rf_NullNodeFunc, rf_NullNodeUndoFunc, NULL, nReadNodes, 0, 0, 0, dag_h, "Nil", allocList);
rf_InitNode(unblockNode, rf_wait, RF_TRUE, rf_NullNodeFunc, rf_NullNodeUndoFunc, NULL, 1, nReadNodes, 0, 0, dag_h, "Nil", allocList);
for (i = 0; i < nReadNodes; i++) {
blockNode->succedents[i] = rudNodes + i;
unblockNode->antecedents[i] = rudNodes + i;
unblockNode->antType[i] = rf_control;
}
unblockNode->succedents[0] = termNode;
/* The recovery node has all the reads as predecessors, and the term
* node as successors. It gets a pda as a param from each of the read
* nodes plus the raidPtr. For each failed unit is has a result pda. */
rf_InitNode(recoveryNode, rf_wait, RF_FALSE, recovFunc, rf_NullNodeUndoFunc, NULL,
1, /* succesors */
nReadNodes, /* preds */
nReadNodes + 2, /* params */
asmap->numDataFailed, /* results */
dag_h, recoveryNodeName, allocList);
recoveryNode->succedents[0] = termNode;
for (i = 0; i < nReadNodes; i++) {
recoveryNode->antecedents[i] = rudNodes + i;
recoveryNode->antType[i] = rf_trueData;
}
/* build the read nodes, then come back and fill in recovery params
* and results */
pda = asmap->physInfo;
for (i = 0; i < nRudNodes; pda = pda->next) {
if ((pda == failedPDA) || (pda == failedPDAtwo))
continue;
INIT_DISK_NODE(rudNodes + i, "Rud");
RF_ASSERT(pda);
DISK_NODE_PARAMS(rudNodes[i], pda);
i++;
}
pda = npdas;
for (i = 0; i < nRrdNodes; i++, pda = pda->next) {
INIT_DISK_NODE(rrdNodes + i, "Rrd");
RF_ASSERT(pda);
DISK_NODE_PARAMS(rrdNodes[i], pda);
}
/* redundancy pdas */
pda = pqPDAs;
INIT_DISK_NODE(rpNodes, "Rp");
RF_ASSERT(pda);
DISK_NODE_PARAMS(rpNodes[0], pda);
pda++;
INIT_DISK_NODE(rqNodes, redundantReadNodeName);
RF_ASSERT(pda);
DISK_NODE_PARAMS(rqNodes[0], pda);
if (nPQNodes == 2) {
pda++;
INIT_DISK_NODE(rpNodes + 1, "Rp");
RF_ASSERT(pda);
DISK_NODE_PARAMS(rpNodes[1], pda);
pda++;
INIT_DISK_NODE(rqNodes + 1, redundantReadNodeName);
RF_ASSERT(pda);
DISK_NODE_PARAMS(rqNodes[1], pda);
}
/* fill in recovery node params */
for (i = 0; i < nReadNodes; i++)
recoveryNode->params[i] = rudNodes[i].params[0]; /* pda */
recoveryNode->params[i++].p = (void *) raidPtr;
recoveryNode->params[i++].p = (void *) asmap;
recoveryNode->results[0] = failedPDA;
if (asmap->numDataFailed == 2)
recoveryNode->results[1] = failedPDAtwo;
/* zero fill the target data buffers? */
}
#endif /* (RF_INCLUDE_DECL_PQ > 0) || (RF_INCLUDE_RAID6 > 0) || (RF_INCLUDE_EVENODD > 0) */
|
6d0870a37b8141a806dc289e50a3298e0c8c3c6e
|
30b736259b38c916e96f8e1517f92231070f5464
|
/apps/blemesh_models_example_1/src/main.c
|
80a69c705202bd233ab835190ccb7747f1a99757
|
[
"Apache-2.0",
"LicenseRef-scancode-gary-s-brown",
"BSD-3-Clause"
] |
permissive
|
apache/mynewt-nimble
|
5bcc87df4482705c5a6542467bab028c8fd4e5fe
|
b5e107e9c55f32d18b16e5afc0a7e1720b901b68
|
refs/heads/master
| 2023-09-01T19:28:57.874159
| 2023-08-31T09:07:59
| 2023-08-31T14:46:07
| 113,086,218
| 606
| 354
|
Apache-2.0
| 2023-09-14T12:14:19
| 2017-12-04T19:34:47
|
C
|
UTF-8
|
C
| false
| false
| 19,899
|
c
|
main.c
|
/* main.c - Application main entry point */
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/*
* Copyright (c) 2017 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
/*
* This application is specific to the Nordic nRF52840-PDK board.
*
* It supports the 4 buttons and 4 LEDs as mesh clients and servers.
*
* Prior to provisioning, a button inverts the state of the
* corresponding LED.
*
* Button and LED 1 are in the root node.
* The 3 remaining button/LED pairs are in element 1 through 3.
* Assuming the provisioner assigns 0x100 to the root node,
* the secondary elements will appear at 0x101, 0x102 and 0x103.
*
* It's anticipated that after provisioning, the button clients would
* be configured to publish and the LED servers to subscribe.
*
* If a LED server is provided with a publish address, it will
* also publish its status on a state change.
*
* Messages from a button to its corresponding LED are ignored as
* the LED's state has already been changed locally by the button client.
*
* The buttons are debounced at a nominal 250ms. That value can be
* changed as needed.
*
*/
#include "os/mynewt.h"
#include "bsp/bsp.h"
#include "console/console.h"
#include "hal/hal_gpio.h"
#include "host/ble_hs.h"
#include "mesh/glue.h"
#include "mesh/mesh.h"
#define CID_RUNTIME 0x05C3
/* Model Operation Codes */
#define BT_MESH_MODEL_OP_GEN_ONOFF_GET BT_MESH_MODEL_OP_2(0x82, 0x01)
#define BT_MESH_MODEL_OP_GEN_ONOFF_SET BT_MESH_MODEL_OP_2(0x82, 0x02)
#define BT_MESH_MODEL_OP_GEN_ONOFF_SET_UNACK BT_MESH_MODEL_OP_2(0x82, 0x03)
#define BT_MESH_MODEL_OP_GEN_ONOFF_STATUS BT_MESH_MODEL_OP_2(0x82, 0x04)
static int gen_onoff_set(struct bt_mesh_model *model,
struct bt_mesh_msg_ctx *ctx,
struct os_mbuf *buf);
static int gen_onoff_set_unack(struct bt_mesh_model *model,
struct bt_mesh_msg_ctx *ctx,
struct os_mbuf *buf);
static int gen_onoff_get(struct bt_mesh_model *model,
struct bt_mesh_msg_ctx *ctx,
struct os_mbuf *buf);
static int gen_onoff_status(struct bt_mesh_model *model,
struct bt_mesh_msg_ctx *ctx,
struct os_mbuf *buf);
/*
* Client Configuration Declaration
*/
static struct bt_mesh_cfg_cli cfg_cli = {
};
/*
* Health Server Declaration
*/
static struct bt_mesh_health_srv health_srv = {
};
/*
* Publication Declarations
*
* The publication messages are initialized to the
* the size of the opcode + content
*
* For publication, the message must be in static or global as
* it is re-transmitted several times. This occurs
* after the function that called bt_mesh_model_publish() has
* exited and the stack is no longer valid.
*
* Note that the additional 4 bytes for the AppMIC is not needed
* because it is added to a stack variable at the time a
* transmission occurs.
*
*/
static struct bt_mesh_model_pub health_pub;
static struct bt_mesh_model_pub gen_onoff_pub_srv;
static struct bt_mesh_model_pub gen_onoff_pub_cli;
static struct bt_mesh_model_pub gen_onoff_pub_srv_s_0;
static struct bt_mesh_model_pub gen_onoff_pub_cli_s_0;
static struct bt_mesh_model_pub gen_onoff_pub_srv_s_1;
static struct bt_mesh_model_pub gen_onoff_pub_cli_s_1;
static struct bt_mesh_model_pub gen_onoff_pub_srv_s_2;
static struct bt_mesh_model_pub gen_onoff_pub_cli_s_2;
static struct os_mbuf *bt_mesh_pub_msg_health_pub;
static struct os_mbuf *bt_mesh_pub_msg_gen_onoff_pub_srv;
static struct os_mbuf *bt_mesh_pub_msg_gen_onoff_pub_cli;
static struct os_mbuf *bt_mesh_pub_msg_gen_onoff_pub_srv_s_0;
static struct os_mbuf *bt_mesh_pub_msg_gen_onoff_pub_cli_s_0;
static struct os_mbuf *bt_mesh_pub_msg_gen_onoff_pub_srv_s_1;
static struct os_mbuf *bt_mesh_pub_msg_gen_onoff_pub_cli_s_1;
static struct os_mbuf *bt_mesh_pub_msg_gen_onoff_pub_srv_s_2;
static struct os_mbuf *bt_mesh_pub_msg_gen_onoff_pub_cli_s_2;
void init_pub(void)
{
bt_mesh_pub_msg_health_pub = NET_BUF_SIMPLE(1 + 3 + 0);
bt_mesh_pub_msg_gen_onoff_pub_srv = NET_BUF_SIMPLE(2 + 2);
bt_mesh_pub_msg_gen_onoff_pub_cli = NET_BUF_SIMPLE(2 + 2);
bt_mesh_pub_msg_gen_onoff_pub_srv_s_0 = NET_BUF_SIMPLE(2 + 2);
bt_mesh_pub_msg_gen_onoff_pub_cli_s_0 = NET_BUF_SIMPLE(2 + 2);
bt_mesh_pub_msg_gen_onoff_pub_srv_s_1 = NET_BUF_SIMPLE(2 + 2);
bt_mesh_pub_msg_gen_onoff_pub_cli_s_1 = NET_BUF_SIMPLE(2 + 2);
bt_mesh_pub_msg_gen_onoff_pub_srv_s_2 = NET_BUF_SIMPLE(2 + 2);
bt_mesh_pub_msg_gen_onoff_pub_cli_s_2 = NET_BUF_SIMPLE(2 + 2);
health_pub.msg = bt_mesh_pub_msg_health_pub;
gen_onoff_pub_srv.msg = bt_mesh_pub_msg_gen_onoff_pub_srv;
gen_onoff_pub_cli.msg = bt_mesh_pub_msg_gen_onoff_pub_cli;
gen_onoff_pub_srv_s_0.msg = bt_mesh_pub_msg_gen_onoff_pub_srv_s_0;
gen_onoff_pub_cli_s_0.msg = bt_mesh_pub_msg_gen_onoff_pub_cli_s_0;
gen_onoff_pub_srv_s_1.msg = bt_mesh_pub_msg_gen_onoff_pub_srv_s_1;
gen_onoff_pub_cli_s_1.msg = bt_mesh_pub_msg_gen_onoff_pub_cli_s_1;
gen_onoff_pub_srv_s_2.msg = bt_mesh_pub_msg_gen_onoff_pub_srv_s_2;
gen_onoff_pub_cli_s_2.msg = bt_mesh_pub_msg_gen_onoff_pub_cli_s_2;
}
/*
* Models in an element must have unique op codes.
*
* The mesh stack dispatches a message to the first model in an element
* that is also bound to an app key and supports the op code in the
* received message.
*
*/
/*
* OnOff Model Server Op Dispatch Table
*
*/
static const struct bt_mesh_model_op gen_onoff_srv_op[] = {
{ BT_MESH_MODEL_OP_GEN_ONOFF_GET, 0, gen_onoff_get },
{ BT_MESH_MODEL_OP_GEN_ONOFF_SET, 2, gen_onoff_set },
{ BT_MESH_MODEL_OP_GEN_ONOFF_SET_UNACK, 2, gen_onoff_set_unack },
BT_MESH_MODEL_OP_END,
};
/*
* OnOff Model Client Op Dispatch Table
*/
static const struct bt_mesh_model_op gen_onoff_cli_op[] = {
{ BT_MESH_MODEL_OP_GEN_ONOFF_STATUS, 1, gen_onoff_status },
BT_MESH_MODEL_OP_END,
};
struct onoff_state {
uint8_t current;
uint8_t previous;
uint8_t led_gpio_pin;
};
/*
* Declare and Initialize Element Contexts
* Change to select different GPIO output pins
*/
static struct onoff_state onoff_state_arr[] = {
{ .led_gpio_pin = LED_1 },
{ .led_gpio_pin = LED_2 },
{ .led_gpio_pin = LED_3 },
{ .led_gpio_pin = LED_4 },
};
/*
*
* Element Model Declarations
*
* Element 0 Root Models
*/
static struct bt_mesh_model root_models[] = {
BT_MESH_MODEL_CFG_SRV,
BT_MESH_MODEL_CFG_CLI(&cfg_cli),
BT_MESH_MODEL_HEALTH_SRV(&health_srv, &health_pub),
BT_MESH_MODEL(BT_MESH_MODEL_ID_GEN_ONOFF_SRV, gen_onoff_srv_op,
&gen_onoff_pub_srv, &onoff_state_arr[0]),
BT_MESH_MODEL(BT_MESH_MODEL_ID_GEN_ONOFF_CLI, gen_onoff_cli_op,
&gen_onoff_pub_cli, &onoff_state_arr[0]),
};
/*
* Element 1 Models
*/
static struct bt_mesh_model secondary_0_models[] = {
BT_MESH_MODEL(BT_MESH_MODEL_ID_GEN_ONOFF_SRV, gen_onoff_srv_op,
&gen_onoff_pub_srv_s_0, &onoff_state_arr[1]),
BT_MESH_MODEL(BT_MESH_MODEL_ID_GEN_ONOFF_CLI, gen_onoff_cli_op,
&gen_onoff_pub_cli_s_0, &onoff_state_arr[1]),
};
/*
* Element 2 Models
*/
static struct bt_mesh_model secondary_1_models[] = {
BT_MESH_MODEL(BT_MESH_MODEL_ID_GEN_ONOFF_SRV, gen_onoff_srv_op,
&gen_onoff_pub_srv_s_1, &onoff_state_arr[2]),
BT_MESH_MODEL(BT_MESH_MODEL_ID_GEN_ONOFF_CLI, gen_onoff_cli_op,
&gen_onoff_pub_cli_s_1, &onoff_state_arr[2]),
};
/*
* Element 3 Models
*/
static struct bt_mesh_model secondary_2_models[] = {
BT_MESH_MODEL(BT_MESH_MODEL_ID_GEN_ONOFF_SRV, gen_onoff_srv_op,
&gen_onoff_pub_srv_s_2, &onoff_state_arr[3]),
BT_MESH_MODEL(BT_MESH_MODEL_ID_GEN_ONOFF_CLI, gen_onoff_cli_op,
&gen_onoff_pub_cli_s_2, &onoff_state_arr[3]),
};
/*
* Button to Client Model Assignments
*/
struct bt_mesh_model *mod_cli_sw[] = {
&root_models[4],
&secondary_0_models[1],
&secondary_1_models[1],
&secondary_2_models[1],
};
/*
* LED to Server Model Assigmnents
*/
struct bt_mesh_model *mod_srv_sw[] = {
&root_models[3],
&secondary_0_models[0],
&secondary_1_models[0],
&secondary_2_models[0],
};
/*
* Root and Secondary Element Declarations
*/
static struct bt_mesh_elem elements[] = {
BT_MESH_ELEM(0, root_models, BT_MESH_MODEL_NONE),
BT_MESH_ELEM(0, secondary_0_models, BT_MESH_MODEL_NONE),
BT_MESH_ELEM(0, secondary_1_models, BT_MESH_MODEL_NONE),
BT_MESH_ELEM(0, secondary_2_models, BT_MESH_MODEL_NONE),
};
static const struct bt_mesh_comp comp = {
.cid = CID_RUNTIME,
.elem = elements,
.elem_count = ARRAY_SIZE(elements),
};
struct sw {
uint8_t sw_num;
uint8_t onoff_state;
struct os_callout button_work;
struct os_callout button_timer;
};
static uint8_t button_press_cnt;
static struct sw sw;
static uint8_t trans_id;
static uint32_t time, last_time;
static uint16_t primary_addr;
static uint16_t primary_net_idx;
/*
* Generic OnOff Model Server Message Handlers
*
* Mesh Model Specification 3.1.1
*
*/
static int gen_onoff_get(struct bt_mesh_model *model,
struct bt_mesh_msg_ctx *ctx,
struct os_mbuf *buf)
{
struct os_mbuf *msg = NET_BUF_SIMPLE(2 + 1 + 4);
struct onoff_state *state = model->user_data;
int rc;
BT_INFO("addr 0x%04x onoff 0x%02x",
bt_mesh_model_elem(model)->addr, state->current);
bt_mesh_model_msg_init(msg, BT_MESH_MODEL_OP_GEN_ONOFF_STATUS);
net_buf_simple_add_u8(msg, state->current);
rc = bt_mesh_model_send(model, ctx, msg, NULL, NULL);
if (rc) {
BT_ERR("Unable to send On Off Status response");
}
os_mbuf_free_chain(msg);
return rc;
}
static int gen_onoff_set_unack(struct bt_mesh_model *model,
struct bt_mesh_msg_ctx *ctx,
struct os_mbuf *buf)
{
struct os_mbuf *msg = model->pub->msg;
struct onoff_state *state = model->user_data;
int err;
state->current = net_buf_simple_pull_u8(buf);
BT_INFO("addr 0x%02x state 0x%02x",
bt_mesh_model_elem(model)->addr, state->current);
/* Pin set low turns on LED's on the nrf52840-pca10056 board */
hal_gpio_write(state->led_gpio_pin,
state->current ? 0 : 1);
/*
* If a server has a publish address, it is required to
* publish status on a state change
*
* See Mesh Profile Specification 3.7.6.1.2
*
* Only publish if there is an assigned address
*/
if (state->previous != state->current &&
model->pub->addr != BT_MESH_ADDR_UNASSIGNED) {
BT_INFO("publish last 0x%02x cur 0x%02x",
state->previous,
state->current);
state->previous = state->current;
bt_mesh_model_msg_init(msg,
BT_MESH_MODEL_OP_GEN_ONOFF_STATUS);
net_buf_simple_add_u8(msg, state->current);
err = bt_mesh_model_publish(model);
if (err != 0) {
BT_ERR("bt_mesh_model_publish err %d", err);
return err;
}
}
return 0;
}
static int gen_onoff_set(struct bt_mesh_model *model,
struct bt_mesh_msg_ctx *ctx,
struct os_mbuf *buf)
{
BT_INFO("");
int rc;
rc = gen_onoff_set_unack(model, ctx, buf);
if (rc != 0) {
return rc;
}
rc = gen_onoff_get(model, ctx, buf);
if (rc != 0) {
return rc;
}
return 0;
}
static int gen_onoff_status(struct bt_mesh_model *model,
struct bt_mesh_msg_ctx *ctx,
struct os_mbuf *buf)
{
uint8_t state;
state = net_buf_simple_pull_u8(buf);
BT_INFO("Node 0x%04x OnOff status from 0x%04x with state 0x%02x",
bt_mesh_model_elem(model)->addr, ctx->addr, state);
return 0;
}
static int output_number(bt_mesh_output_action_t action, uint32_t number)
{
BT_INFO("OOB Number %u", number);
return 0;
}
static int output_string(const char *str)
{
BT_INFO("OOB String %s", str);
return 0;
}
static void prov_complete(uint16_t net_idx, uint16_t addr)
{
BT_INFO("provisioning complete for net_idx 0x%04x addr 0x%04x",
net_idx, addr);
primary_addr = addr;
primary_net_idx = net_idx;
}
static void prov_reset(void)
{
bt_mesh_prov_enable(BT_MESH_PROV_ADV | BT_MESH_PROV_GATT);
}
static uint8_t dev_uuid[16] = MYNEWT_VAL(BLE_MESH_DEV_UUID);
#define BUTTON_DEBOUNCE_DELAY_MS 250
/*
* Map GPIO pins to button number
* Change to select different GPIO input pins
*/
static uint8_t pin_to_sw(int pin_pos)
{
switch (pin_pos) {
case BUTTON_1: return 0;
case BUTTON_2: return 1;
case BUTTON_3: return 2;
case BUTTON_4: return 3;
default:break;
}
BT_ERR("No match for GPIO pin 0x%08x", pin_pos);
return 0;
}
static void button_pressed(struct os_event *ev)
{
int pin_pos = (int ) ev->ev_arg;
/*
* One button press within a 1 second interval sends an on message
* More than one button press sends an off message
*/
time = k_uptime_get_32();
/* debounce the switch */
if (time < last_time + BUTTON_DEBOUNCE_DELAY_MS) {
last_time = time;
return;
}
if (button_press_cnt == 0) {
os_callout_reset(&sw.button_timer, os_time_ms_to_ticks32(K_SECONDS(1)));
}
BT_INFO("button_press_cnt 0x%02x", button_press_cnt);
button_press_cnt++;
/* The variable pin_pos is the pin position in the GPIO register,
* not the pin number. It's assumed that only one bit is set.
*/
sw.sw_num = pin_to_sw(pin_pos);
last_time = time;
}
/*
* Button Count Timer Worker
*/
static void button_cnt_timer(struct os_event *work)
{
struct sw *button_sw = work->ev_arg;
button_sw->onoff_state = button_press_cnt == 1 ? 1 : 0;
BT_INFO("button_press_cnt 0x%02x onoff_state 0x%02x",
button_press_cnt, button_sw->onoff_state);
button_press_cnt = 0;
os_callout_reset(&sw.button_work, 0);
}
/*
* Button Pressed Worker Task
*/
static void button_pressed_worker(struct os_event *work)
{
struct os_mbuf *msg = NET_BUF_SIMPLE(1);
struct bt_mesh_model *mod_cli, *mod_srv;
struct bt_mesh_model_pub *pub_cli, *pub_srv;
struct sw *sw = work->ev_arg;
uint8_t sw_idx = sw->sw_num;
int err;
mod_cli = mod_cli_sw[sw_idx];
pub_cli = mod_cli->pub;
mod_srv = mod_srv_sw[sw_idx];
pub_srv = mod_srv->pub;
(void)pub_srv;
/* If unprovisioned, just call the set function.
* The intent is to have switch-like behavior
* prior to provisioning. Once provisioned,
* the button and its corresponding led are no longer
* associated and act independently. So, if a button is to
* control its associated led after provisioning, the button
* must be configured to either publish to the led's unicast
* address or a group to which the led is subscribed.
*/
if (primary_addr == BT_MESH_ADDR_UNASSIGNED) {
struct bt_mesh_msg_ctx ctx = {
.addr = sw_idx + primary_addr,
};
/* This is a dummy message sufficient
* for the led server
*/
net_buf_simple_add_u8(msg, sw->onoff_state);
gen_onoff_set_unack(mod_srv, &ctx, msg);
goto done;
}
if (pub_cli->addr == BT_MESH_ADDR_UNASSIGNED) {
goto done;
}
BT_INFO("publish to 0x%04x onoff 0x%04x sw_idx 0x%04x",
pub_cli->addr, sw->onoff_state, sw_idx);
bt_mesh_model_msg_init(pub_cli->msg,
BT_MESH_MODEL_OP_GEN_ONOFF_SET);
net_buf_simple_add_u8(pub_cli->msg, sw->onoff_state);
net_buf_simple_add_u8(pub_cli->msg, trans_id++);
err = bt_mesh_model_publish(mod_cli);
if (err) {
BT_ERR("bt_mesh_model_publish err %d", err);
}
done:
os_mbuf_free_chain(msg);
}
/* Disable OOB security for SILabs Android app */
static const struct bt_mesh_prov prov = {
.uuid = dev_uuid,
#if 1
.output_size = 6,
.output_actions = (BT_MESH_DISPLAY_NUMBER | BT_MESH_DISPLAY_STRING),
.output_number = output_number,
.output_string = output_string,
#else
.output_size = 0,
.output_actions = 0,
.output_number = 0,
#endif
.complete = prov_complete,
.reset = prov_reset,
};
void init_led(uint8_t dev)
{
hal_gpio_init_out(onoff_state_arr[dev].led_gpio_pin, 1);
}
static struct os_event button_event;
static void
gpio_irq_handler(void *arg)
{
button_event.ev_arg = arg;
os_eventq_put(os_eventq_dflt_get(), &button_event);
}
void init_button(int button)
{
button_event.ev_cb = button_pressed;
hal_gpio_irq_init(button, gpio_irq_handler, (void *)button,
HAL_GPIO_TRIG_FALLING, HAL_GPIO_PULL_UP);
hal_gpio_irq_enable(button);
}
static void
blemesh_on_reset(int reason)
{
BLE_HS_LOG(ERROR, "Resetting state; reason=%d\n", reason);
}
static void
blemesh_on_sync(void)
{
int err;
ble_addr_t addr;
console_printf("Bluetooth initialized\n");
/* Use NRPA */
err = ble_hs_id_gen_rnd(1, &addr);
assert(err == 0);
err = ble_hs_id_set_rnd(addr.val);
assert(err == 0);
err = bt_mesh_init(addr.type, &prov, &comp);
if (err) {
console_printf("Initializing mesh failed (err %d)\n", err);
return;
}
if (IS_ENABLED(CONFIG_SETTINGS)) {
settings_load();
}
if (bt_mesh_is_provisioned()) {
console_printf("Mesh network restored from flash\n");
}
bt_mesh_prov_enable(BT_MESH_PROV_GATT | BT_MESH_PROV_ADV);
console_printf("Mesh initialized\n");
}
int main(void)
{
#ifdef ARCH_sim
mcu_sim_parse_args(argc, argv);
#endif
/* Initialize OS */
sysinit();
BT_INFO("Initializing...");
/* Initialize the button debouncer */
last_time = k_uptime_get_32();
/* Initialize button worker task*/
os_callout_init(&sw.button_work, os_eventq_dflt_get(),
button_pressed_worker, &sw);
/* Initialize button count timer */
os_callout_init(&sw.button_timer, os_eventq_dflt_get(),
button_cnt_timer, &sw);
/* Initialize LED's */
init_led(0);
init_led(1);
init_led(2);
init_led(3);
init_button(BUTTON_1);
init_button(BUTTON_2);
init_button(BUTTON_3);
init_button(BUTTON_4);
init_pub();
/* Initialize the NimBLE host configuration. */
ble_hs_cfg.reset_cb = blemesh_on_reset;
ble_hs_cfg.sync_cb = blemesh_on_sync;
ble_hs_cfg.store_status_cb = ble_store_util_status_rr;
while (1) {
os_eventq_run(os_eventq_dflt_get());
}
return 0;
}
|
b5446bf9a9701471b214458281db7e43a266eec9
|
7eaf54a78c9e2117247cb2ab6d3a0c20719ba700
|
/SOFTWARE/A64-TERES/linux-a64/drivers/staging/panel/panel.c
|
4d0a87b93b96b7e6b66ee40f2d24b2547e90f705
|
[
"LicenseRef-scancode-free-unknown",
"Apache-2.0",
"Linux-syscall-note",
"GPL-2.0-only",
"GPL-1.0-or-later"
] |
permissive
|
OLIMEX/DIY-LAPTOP
|
ae82f4ee79c641d9aee444db9a75f3f6709afa92
|
a3fafd1309135650bab27f5eafc0c32bc3ca74ee
|
refs/heads/rel3
| 2023-08-04T01:54:19.483792
| 2023-04-03T07:18:12
| 2023-04-03T07:18:12
| 80,094,055
| 507
| 92
|
Apache-2.0
| 2023-04-03T07:05:59
| 2017-01-26T07:25:50
|
C
|
UTF-8
|
C
| false
| false
| 61,134
|
c
|
panel.c
|
/*
* Front panel driver for Linux
* Copyright (C) 2000-2008, Willy Tarreau <w@1wt.eu>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version
* 2 of the License, or (at your option) any later version.
*
* This code drives an LCD module (/dev/lcd), and a keypad (/dev/keypad)
* connected to a parallel printer port.
*
* The LCD module may either be an HD44780-like 8-bit parallel LCD, or a 1-bit
* serial module compatible with Samsung's KS0074. The pins may be connected in
* any combination, everything is programmable.
*
* The keypad consists in a matrix of push buttons connecting input pins to
* data output pins or to the ground. The combinations have to be hard-coded
* in the driver, though several profiles exist and adding new ones is easy.
*
* Several profiles are provided for commonly found LCD+keypad modules on the
* market, such as those found in Nexcom's appliances.
*
* FIXME:
* - the initialization/deinitialization process is very dirty and should
* be rewritten. It may even be buggy.
*
* TODO:
* - document 24 keys keyboard (3 rows of 8 cols, 32 diodes + 2 inputs)
* - make the LCD a part of a virtual screen of Vx*Vy
* - make the inputs list smp-safe
* - change the keyboard to a double mapping : signals -> key_id -> values
* so that applications can change values without knowing signals
*
*/
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include <linux/module.h>
#include <linux/types.h>
#include <linux/errno.h>
#include <linux/signal.h>
#include <linux/sched.h>
#include <linux/spinlock.h>
#include <linux/interrupt.h>
#include <linux/miscdevice.h>
#include <linux/slab.h>
#include <linux/ioport.h>
#include <linux/fcntl.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/kernel.h>
#include <linux/ctype.h>
#include <linux/parport.h>
#include <linux/list.h>
#include <linux/notifier.h>
#include <linux/reboot.h>
#include <generated/utsrelease.h>
#include <linux/io.h>
#include <linux/uaccess.h>
#define LCD_MINOR 156
#define KEYPAD_MINOR 185
#define PANEL_VERSION "0.9.5"
#define LCD_MAXBYTES 256 /* max burst write */
#define KEYPAD_BUFFER 64
/* poll the keyboard this every second */
#define INPUT_POLL_TIME (HZ/50)
/* a key starts to repeat after this times INPUT_POLL_TIME */
#define KEYPAD_REP_START (10)
/* a key repeats this times INPUT_POLL_TIME */
#define KEYPAD_REP_DELAY (2)
/* keep the light on this times INPUT_POLL_TIME for each flash */
#define FLASH_LIGHT_TEMPO (200)
/* converts an r_str() input to an active high, bits string : 000BAOSE */
#define PNL_PINPUT(a) ((((unsigned char)(a)) ^ 0x7F) >> 3)
#define PNL_PBUSY 0x80 /* inverted input, active low */
#define PNL_PACK 0x40 /* direct input, active low */
#define PNL_POUTPA 0x20 /* direct input, active high */
#define PNL_PSELECD 0x10 /* direct input, active high */
#define PNL_PERRORP 0x08 /* direct input, active low */
#define PNL_PBIDIR 0x20 /* bi-directional ports */
/* high to read data in or-ed with data out */
#define PNL_PINTEN 0x10
#define PNL_PSELECP 0x08 /* inverted output, active low */
#define PNL_PINITP 0x04 /* direct output, active low */
#define PNL_PAUTOLF 0x02 /* inverted output, active low */
#define PNL_PSTROBE 0x01 /* inverted output */
#define PNL_PD0 0x01
#define PNL_PD1 0x02
#define PNL_PD2 0x04
#define PNL_PD3 0x08
#define PNL_PD4 0x10
#define PNL_PD5 0x20
#define PNL_PD6 0x40
#define PNL_PD7 0x80
#define PIN_NONE 0
#define PIN_STROBE 1
#define PIN_D0 2
#define PIN_D1 3
#define PIN_D2 4
#define PIN_D3 5
#define PIN_D4 6
#define PIN_D5 7
#define PIN_D6 8
#define PIN_D7 9
#define PIN_AUTOLF 14
#define PIN_INITP 16
#define PIN_SELECP 17
#define PIN_NOT_SET 127
#define LCD_FLAG_S 0x0001
#define LCD_FLAG_ID 0x0002
#define LCD_FLAG_B 0x0004 /* blink on */
#define LCD_FLAG_C 0x0008 /* cursor on */
#define LCD_FLAG_D 0x0010 /* display on */
#define LCD_FLAG_F 0x0020 /* large font mode */
#define LCD_FLAG_N 0x0040 /* 2-rows mode */
#define LCD_FLAG_L 0x0080 /* backlight enabled */
#define LCD_ESCAPE_LEN 24 /* max chars for LCD escape command */
#define LCD_ESCAPE_CHAR 27 /* use char 27 for escape command */
/* macros to simplify use of the parallel port */
#define r_ctr(x) (parport_read_control((x)->port))
#define r_dtr(x) (parport_read_data((x)->port))
#define r_str(x) (parport_read_status((x)->port))
#define w_ctr(x, y) (parport_write_control((x)->port, (y)))
#define w_dtr(x, y) (parport_write_data((x)->port, (y)))
/* this defines which bits are to be used and which ones to be ignored */
/* logical or of the output bits involved in the scan matrix */
static __u8 scan_mask_o;
/* logical or of the input bits involved in the scan matrix */
static __u8 scan_mask_i;
typedef __u64 pmask_t;
enum input_type {
INPUT_TYPE_STD,
INPUT_TYPE_KBD,
};
enum input_state {
INPUT_ST_LOW,
INPUT_ST_RISING,
INPUT_ST_HIGH,
INPUT_ST_FALLING,
};
struct logical_input {
struct list_head list;
pmask_t mask;
pmask_t value;
enum input_type type;
enum input_state state;
__u8 rise_time, fall_time;
__u8 rise_timer, fall_timer, high_timer;
union {
struct { /* valid when type == INPUT_TYPE_STD */
void (*press_fct) (int);
void (*release_fct) (int);
int press_data;
int release_data;
} std;
struct { /* valid when type == INPUT_TYPE_KBD */
/* strings can be non null-terminated */
char press_str[sizeof(void *) + sizeof(int)];
char repeat_str[sizeof(void *) + sizeof(int)];
char release_str[sizeof(void *) + sizeof(int)];
} kbd;
} u;
};
static LIST_HEAD(logical_inputs); /* list of all defined logical inputs */
/* physical contacts history
* Physical contacts are a 45 bits string of 9 groups of 5 bits each.
* The 8 lower groups correspond to output bits 0 to 7, and the 9th group
* corresponds to the ground.
* Within each group, bits are stored in the same order as read on the port :
* BAPSE (busy=4, ack=3, paper empty=2, select=1, error=0).
* So, each __u64 (or pmask_t) is represented like this :
* 0000000000000000000BAPSEBAPSEBAPSEBAPSEBAPSEBAPSEBAPSEBAPSEBAPSE
* <-----unused------><gnd><d07><d06><d05><d04><d03><d02><d01><d00>
*/
/* what has just been read from the I/O ports */
static pmask_t phys_read;
/* previous phys_read */
static pmask_t phys_read_prev;
/* stabilized phys_read (phys_read|phys_read_prev) */
static pmask_t phys_curr;
/* previous phys_curr */
static pmask_t phys_prev;
/* 0 means that at least one logical signal needs be computed */
static char inputs_stable;
/* these variables are specific to the keypad */
static char keypad_buffer[KEYPAD_BUFFER];
static int keypad_buflen;
static int keypad_start;
static char keypressed;
static wait_queue_head_t keypad_read_wait;
/* lcd-specific variables */
/* contains the LCD config state */
static unsigned long int lcd_flags;
/* contains the LCD X offset */
static unsigned long int lcd_addr_x;
/* contains the LCD Y offset */
static unsigned long int lcd_addr_y;
/* current escape sequence, 0 terminated */
static char lcd_escape[LCD_ESCAPE_LEN + 1];
/* not in escape state. >=0 = escape cmd len */
static int lcd_escape_len = -1;
/*
* Bit masks to convert LCD signals to parallel port outputs.
* _d_ are values for data port, _c_ are for control port.
* [0] = signal OFF, [1] = signal ON, [2] = mask
*/
#define BIT_CLR 0
#define BIT_SET 1
#define BIT_MSK 2
#define BIT_STATES 3
/*
* one entry for each bit on the LCD
*/
#define LCD_BIT_E 0
#define LCD_BIT_RS 1
#define LCD_BIT_RW 2
#define LCD_BIT_BL 3
#define LCD_BIT_CL 4
#define LCD_BIT_DA 5
#define LCD_BITS 6
/*
* each bit can be either connected to a DATA or CTRL port
*/
#define LCD_PORT_C 0
#define LCD_PORT_D 1
#define LCD_PORTS 2
static unsigned char lcd_bits[LCD_PORTS][LCD_BITS][BIT_STATES];
/*
* LCD protocols
*/
#define LCD_PROTO_PARALLEL 0
#define LCD_PROTO_SERIAL 1
#define LCD_PROTO_TI_DA8XX_LCD 2
/*
* LCD character sets
*/
#define LCD_CHARSET_NORMAL 0
#define LCD_CHARSET_KS0074 1
/*
* LCD types
*/
#define LCD_TYPE_NONE 0
#define LCD_TYPE_CUSTOM 1
#define LCD_TYPE_OLD 2
#define LCD_TYPE_KS0074 3
#define LCD_TYPE_HANTRONIX 4
#define LCD_TYPE_NEXCOM 5
/*
* keypad types
*/
#define KEYPAD_TYPE_NONE 0
#define KEYPAD_TYPE_OLD 1
#define KEYPAD_TYPE_NEW 2
#define KEYPAD_TYPE_NEXCOM 3
/*
* panel profiles
*/
#define PANEL_PROFILE_CUSTOM 0
#define PANEL_PROFILE_OLD 1
#define PANEL_PROFILE_NEW 2
#define PANEL_PROFILE_HANTRONIX 3
#define PANEL_PROFILE_NEXCOM 4
#define PANEL_PROFILE_LARGE 5
/*
* Construct custom config from the kernel's configuration
*/
#define DEFAULT_PROFILE PANEL_PROFILE_LARGE
#define DEFAULT_PARPORT 0
#define DEFAULT_LCD LCD_TYPE_OLD
#define DEFAULT_KEYPAD KEYPAD_TYPE_OLD
#define DEFAULT_LCD_WIDTH 40
#define DEFAULT_LCD_BWIDTH 40
#define DEFAULT_LCD_HWIDTH 64
#define DEFAULT_LCD_HEIGHT 2
#define DEFAULT_LCD_PROTO LCD_PROTO_PARALLEL
#define DEFAULT_LCD_PIN_E PIN_AUTOLF
#define DEFAULT_LCD_PIN_RS PIN_SELECP
#define DEFAULT_LCD_PIN_RW PIN_INITP
#define DEFAULT_LCD_PIN_SCL PIN_STROBE
#define DEFAULT_LCD_PIN_SDA PIN_D0
#define DEFAULT_LCD_PIN_BL PIN_NOT_SET
#define DEFAULT_LCD_CHARSET LCD_CHARSET_NORMAL
#ifdef CONFIG_PANEL_PROFILE
#undef DEFAULT_PROFILE
#define DEFAULT_PROFILE CONFIG_PANEL_PROFILE
#endif
#ifdef CONFIG_PANEL_PARPORT
#undef DEFAULT_PARPORT
#define DEFAULT_PARPORT CONFIG_PANEL_PARPORT
#endif
#if DEFAULT_PROFILE == 0 /* custom */
#ifdef CONFIG_PANEL_KEYPAD
#undef DEFAULT_KEYPAD
#define DEFAULT_KEYPAD CONFIG_PANEL_KEYPAD
#endif
#ifdef CONFIG_PANEL_LCD
#undef DEFAULT_LCD
#define DEFAULT_LCD CONFIG_PANEL_LCD
#endif
#ifdef CONFIG_PANEL_LCD_WIDTH
#undef DEFAULT_LCD_WIDTH
#define DEFAULT_LCD_WIDTH CONFIG_PANEL_LCD_WIDTH
#endif
#ifdef CONFIG_PANEL_LCD_BWIDTH
#undef DEFAULT_LCD_BWIDTH
#define DEFAULT_LCD_BWIDTH CONFIG_PANEL_LCD_BWIDTH
#endif
#ifdef CONFIG_PANEL_LCD_HWIDTH
#undef DEFAULT_LCD_HWIDTH
#define DEFAULT_LCD_HWIDTH CONFIG_PANEL_LCD_HWIDTH
#endif
#ifdef CONFIG_PANEL_LCD_HEIGHT
#undef DEFAULT_LCD_HEIGHT
#define DEFAULT_LCD_HEIGHT CONFIG_PANEL_LCD_HEIGHT
#endif
#ifdef CONFIG_PANEL_LCD_PROTO
#undef DEFAULT_LCD_PROTO
#define DEFAULT_LCD_PROTO CONFIG_PANEL_LCD_PROTO
#endif
#ifdef CONFIG_PANEL_LCD_PIN_E
#undef DEFAULT_LCD_PIN_E
#define DEFAULT_LCD_PIN_E CONFIG_PANEL_LCD_PIN_E
#endif
#ifdef CONFIG_PANEL_LCD_PIN_RS
#undef DEFAULT_LCD_PIN_RS
#define DEFAULT_LCD_PIN_RS CONFIG_PANEL_LCD_PIN_RS
#endif
#ifdef CONFIG_PANEL_LCD_PIN_RW
#undef DEFAULT_LCD_PIN_RW
#define DEFAULT_LCD_PIN_RW CONFIG_PANEL_LCD_PIN_RW
#endif
#ifdef CONFIG_PANEL_LCD_PIN_SCL
#undef DEFAULT_LCD_PIN_SCL
#define DEFAULT_LCD_PIN_SCL CONFIG_PANEL_LCD_PIN_SCL
#endif
#ifdef CONFIG_PANEL_LCD_PIN_SDA
#undef DEFAULT_LCD_PIN_SDA
#define DEFAULT_LCD_PIN_SDA CONFIG_PANEL_LCD_PIN_SDA
#endif
#ifdef CONFIG_PANEL_LCD_PIN_BL
#undef DEFAULT_LCD_PIN_BL
#define DEFAULT_LCD_PIN_BL CONFIG_PANEL_LCD_PIN_BL
#endif
#ifdef CONFIG_PANEL_LCD_CHARSET
#undef DEFAULT_LCD_CHARSET
#define DEFAULT_LCD_CHARSET CONFIG_PANEL_LCD_CHARSET
#endif
#endif /* DEFAULT_PROFILE == 0 */
/* global variables */
static int keypad_open_cnt; /* #times opened */
static int lcd_open_cnt; /* #times opened */
static struct pardevice *pprt;
static int lcd_initialized;
static int keypad_initialized;
static int light_tempo;
static char lcd_must_clear;
static char lcd_left_shift;
static char init_in_progress;
static void (*lcd_write_cmd) (int);
static void (*lcd_write_data) (int);
static void (*lcd_clear_fast) (void);
static DEFINE_SPINLOCK(pprt_lock);
static struct timer_list scan_timer;
MODULE_DESCRIPTION("Generic parallel port LCD/Keypad driver");
static int parport = -1;
module_param(parport, int, 0000);
MODULE_PARM_DESC(parport, "Parallel port index (0=lpt1, 1=lpt2, ...)");
static int lcd_height = -1;
module_param(lcd_height, int, 0000);
MODULE_PARM_DESC(lcd_height, "Number of lines on the LCD");
static int lcd_width = -1;
module_param(lcd_width, int, 0000);
MODULE_PARM_DESC(lcd_width, "Number of columns on the LCD");
static int lcd_bwidth = -1; /* internal buffer width (usually 40) */
module_param(lcd_bwidth, int, 0000);
MODULE_PARM_DESC(lcd_bwidth, "Internal LCD line width (40)");
static int lcd_hwidth = -1; /* hardware buffer width (usually 64) */
module_param(lcd_hwidth, int, 0000);
MODULE_PARM_DESC(lcd_hwidth, "LCD line hardware address (64)");
static int lcd_enabled = -1;
module_param(lcd_enabled, int, 0000);
MODULE_PARM_DESC(lcd_enabled, "Deprecated option, use lcd_type instead");
static int keypad_enabled = -1;
module_param(keypad_enabled, int, 0000);
MODULE_PARM_DESC(keypad_enabled, "Deprecated option, use keypad_type instead");
static int lcd_type = -1;
module_param(lcd_type, int, 0000);
MODULE_PARM_DESC(lcd_type,
"LCD type: 0=none, 1=compiled-in, 2=old, 3=serial ks0074, 4=hantronix, 5=nexcom");
static int lcd_proto = -1;
module_param(lcd_proto, int, 0000);
MODULE_PARM_DESC(lcd_proto,
"LCD communication: 0=parallel (//), 1=serial,"
"2=TI LCD Interface");
static int lcd_charset = -1;
module_param(lcd_charset, int, 0000);
MODULE_PARM_DESC(lcd_charset, "LCD character set: 0=standard, 1=KS0074");
static int keypad_type = -1;
module_param(keypad_type, int, 0000);
MODULE_PARM_DESC(keypad_type,
"Keypad type: 0=none, 1=old 6 keys, 2=new 6+1 keys, "
"3=nexcom 4 keys");
static int profile = DEFAULT_PROFILE;
module_param(profile, int, 0000);
MODULE_PARM_DESC(profile,
"1=16x2 old kp; 2=serial 16x2, new kp; 3=16x2 hantronix; "
"4=16x2 nexcom; default=40x2, old kp");
/*
* These are the parallel port pins the LCD control signals are connected to.
* Set this to 0 if the signal is not used. Set it to its opposite value
* (negative) if the signal is negated. -MAXINT is used to indicate that the
* pin has not been explicitly specified.
*
* WARNING! no check will be performed about collisions with keypad !
*/
static int lcd_e_pin = PIN_NOT_SET;
module_param(lcd_e_pin, int, 0000);
MODULE_PARM_DESC(lcd_e_pin,
"# of the // port pin connected to LCD 'E' signal, "
"with polarity (-17..17)");
static int lcd_rs_pin = PIN_NOT_SET;
module_param(lcd_rs_pin, int, 0000);
MODULE_PARM_DESC(lcd_rs_pin,
"# of the // port pin connected to LCD 'RS' signal, "
"with polarity (-17..17)");
static int lcd_rw_pin = PIN_NOT_SET;
module_param(lcd_rw_pin, int, 0000);
MODULE_PARM_DESC(lcd_rw_pin,
"# of the // port pin connected to LCD 'RW' signal, "
"with polarity (-17..17)");
static int lcd_bl_pin = PIN_NOT_SET;
module_param(lcd_bl_pin, int, 0000);
MODULE_PARM_DESC(lcd_bl_pin,
"# of the // port pin connected to LCD backlight, "
"with polarity (-17..17)");
static int lcd_da_pin = PIN_NOT_SET;
module_param(lcd_da_pin, int, 0000);
MODULE_PARM_DESC(lcd_da_pin,
"# of the // port pin connected to serial LCD 'SDA' "
"signal, with polarity (-17..17)");
static int lcd_cl_pin = PIN_NOT_SET;
module_param(lcd_cl_pin, int, 0000);
MODULE_PARM_DESC(lcd_cl_pin,
"# of the // port pin connected to serial LCD 'SCL' "
"signal, with polarity (-17..17)");
static const unsigned char *lcd_char_conv;
/* for some LCD drivers (ks0074) we need a charset conversion table. */
static const unsigned char lcd_char_conv_ks0074[256] = {
/* 0|8 1|9 2|A 3|B 4|C 5|D 6|E 7|F */
/* 0x00 */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
/* 0x08 */ 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f,
/* 0x10 */ 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17,
/* 0x18 */ 0x18, 0x19, 0x1a, 0x1b, 0x1c, 0x1d, 0x1e, 0x1f,
/* 0x20 */ 0x20, 0x21, 0x22, 0x23, 0xa2, 0x25, 0x26, 0x27,
/* 0x28 */ 0x28, 0x29, 0x2a, 0x2b, 0x2c, 0x2d, 0x2e, 0x2f,
/* 0x30 */ 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37,
/* 0x38 */ 0x38, 0x39, 0x3a, 0x3b, 0x3c, 0x3d, 0x3e, 0x3f,
/* 0x40 */ 0xa0, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47,
/* 0x48 */ 0x48, 0x49, 0x4a, 0x4b, 0x4c, 0x4d, 0x4e, 0x4f,
/* 0x50 */ 0x50, 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57,
/* 0x58 */ 0x58, 0x59, 0x5a, 0xfa, 0xfb, 0xfc, 0x1d, 0xc4,
/* 0x60 */ 0x96, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67,
/* 0x68 */ 0x68, 0x69, 0x6a, 0x6b, 0x6c, 0x6d, 0x6e, 0x6f,
/* 0x70 */ 0x70, 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77,
/* 0x78 */ 0x78, 0x79, 0x7a, 0xfd, 0xfe, 0xff, 0xce, 0x20,
/* 0x80 */ 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87,
/* 0x88 */ 0x88, 0x89, 0x8a, 0x8b, 0x8c, 0x8d, 0x8e, 0x8f,
/* 0x90 */ 0x90, 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97,
/* 0x98 */ 0x98, 0x99, 0x9a, 0x9b, 0x9c, 0x9d, 0x9e, 0x9f,
/* 0xA0 */ 0x20, 0x40, 0xb1, 0xa1, 0x24, 0xa3, 0xfe, 0x5f,
/* 0xA8 */ 0x22, 0xc8, 0x61, 0x14, 0x97, 0x2d, 0xad, 0x96,
/* 0xB0 */ 0x80, 0x8c, 0x82, 0x83, 0x27, 0x8f, 0x86, 0xdd,
/* 0xB8 */ 0x2c, 0x81, 0x6f, 0x15, 0x8b, 0x8a, 0x84, 0x60,
/* 0xC0 */ 0xe2, 0xe2, 0xe2, 0x5b, 0x5b, 0xae, 0xbc, 0xa9,
/* 0xC8 */ 0xc5, 0xbf, 0xc6, 0xf1, 0xe3, 0xe3, 0xe3, 0xe3,
/* 0xD0 */ 0x44, 0x5d, 0xa8, 0xe4, 0xec, 0xec, 0x5c, 0x78,
/* 0xD8 */ 0xab, 0xa6, 0xe5, 0x5e, 0x5e, 0xe6, 0xaa, 0xbe,
/* 0xE0 */ 0x7f, 0xe7, 0xaf, 0x7b, 0x7b, 0xaf, 0xbd, 0xc8,
/* 0xE8 */ 0xa4, 0xa5, 0xc7, 0xf6, 0xa7, 0xe8, 0x69, 0x69,
/* 0xF0 */ 0xed, 0x7d, 0xa8, 0xe4, 0xec, 0x5c, 0x5c, 0x25,
/* 0xF8 */ 0xac, 0xa6, 0xea, 0xef, 0x7e, 0xeb, 0xb2, 0x79,
};
static const char old_keypad_profile[][4][9] = {
{"S0", "Left\n", "Left\n", ""},
{"S1", "Down\n", "Down\n", ""},
{"S2", "Up\n", "Up\n", ""},
{"S3", "Right\n", "Right\n", ""},
{"S4", "Esc\n", "Esc\n", ""},
{"S5", "Ret\n", "Ret\n", ""},
{"", "", "", ""}
};
/* signals, press, repeat, release */
static const char new_keypad_profile[][4][9] = {
{"S0", "Left\n", "Left\n", ""},
{"S1", "Down\n", "Down\n", ""},
{"S2", "Up\n", "Up\n", ""},
{"S3", "Right\n", "Right\n", ""},
{"S4s5", "", "Esc\n", "Esc\n"},
{"s4S5", "", "Ret\n", "Ret\n"},
{"S4S5", "Help\n", "", ""},
/* add new signals above this line */
{"", "", "", ""}
};
/* signals, press, repeat, release */
static const char nexcom_keypad_profile[][4][9] = {
{"a-p-e-", "Down\n", "Down\n", ""},
{"a-p-E-", "Ret\n", "Ret\n", ""},
{"a-P-E-", "Esc\n", "Esc\n", ""},
{"a-P-e-", "Up\n", "Up\n", ""},
/* add new signals above this line */
{"", "", "", ""}
};
static const char (*keypad_profile)[4][9] = old_keypad_profile;
/* FIXME: this should be converted to a bit array containing signals states */
static struct {
unsigned char e; /* parallel LCD E (data latch on falling edge) */
unsigned char rs; /* parallel LCD RS (0 = cmd, 1 = data) */
unsigned char rw; /* parallel LCD R/W (0 = W, 1 = R) */
unsigned char bl; /* parallel LCD backlight (0 = off, 1 = on) */
unsigned char cl; /* serial LCD clock (latch on rising edge) */
unsigned char da; /* serial LCD data */
} bits;
static void init_scan_timer(void);
/* sets data port bits according to current signals values */
static int set_data_bits(void)
{
int val, bit;
val = r_dtr(pprt);
for (bit = 0; bit < LCD_BITS; bit++)
val &= lcd_bits[LCD_PORT_D][bit][BIT_MSK];
val |= lcd_bits[LCD_PORT_D][LCD_BIT_E][bits.e]
| lcd_bits[LCD_PORT_D][LCD_BIT_RS][bits.rs]
| lcd_bits[LCD_PORT_D][LCD_BIT_RW][bits.rw]
| lcd_bits[LCD_PORT_D][LCD_BIT_BL][bits.bl]
| lcd_bits[LCD_PORT_D][LCD_BIT_CL][bits.cl]
| lcd_bits[LCD_PORT_D][LCD_BIT_DA][bits.da];
w_dtr(pprt, val);
return val;
}
/* sets ctrl port bits according to current signals values */
static int set_ctrl_bits(void)
{
int val, bit;
val = r_ctr(pprt);
for (bit = 0; bit < LCD_BITS; bit++)
val &= lcd_bits[LCD_PORT_C][bit][BIT_MSK];
val |= lcd_bits[LCD_PORT_C][LCD_BIT_E][bits.e]
| lcd_bits[LCD_PORT_C][LCD_BIT_RS][bits.rs]
| lcd_bits[LCD_PORT_C][LCD_BIT_RW][bits.rw]
| lcd_bits[LCD_PORT_C][LCD_BIT_BL][bits.bl]
| lcd_bits[LCD_PORT_C][LCD_BIT_CL][bits.cl]
| lcd_bits[LCD_PORT_C][LCD_BIT_DA][bits.da];
w_ctr(pprt, val);
return val;
}
/* sets ctrl & data port bits according to current signals values */
static void panel_set_bits(void)
{
set_data_bits();
set_ctrl_bits();
}
/*
* Converts a parallel port pin (from -25 to 25) to data and control ports
* masks, and data and control port bits. The signal will be considered
* unconnected if it's on pin 0 or an invalid pin (<-25 or >25).
*
* Result will be used this way :
* out(dport, in(dport) & d_val[2] | d_val[signal_state])
* out(cport, in(cport) & c_val[2] | c_val[signal_state])
*/
static void pin_to_bits(int pin, unsigned char *d_val, unsigned char *c_val)
{
int d_bit, c_bit, inv;
d_val[0] = c_val[0] = d_val[1] = c_val[1] = 0;
d_val[2] = c_val[2] = 0xFF;
if (pin == 0)
return;
inv = (pin < 0);
if (inv)
pin = -pin;
d_bit = c_bit = 0;
switch (pin) {
case PIN_STROBE: /* strobe, inverted */
c_bit = PNL_PSTROBE;
inv = !inv;
break;
case PIN_D0...PIN_D7: /* D0 - D7 = 2 - 9 */
d_bit = 1 << (pin - 2);
break;
case PIN_AUTOLF: /* autofeed, inverted */
c_bit = PNL_PAUTOLF;
inv = !inv;
break;
case PIN_INITP: /* init, direct */
c_bit = PNL_PINITP;
break;
case PIN_SELECP: /* select_in, inverted */
c_bit = PNL_PSELECP;
inv = !inv;
break;
default: /* unknown pin, ignore */
break;
}
if (c_bit) {
c_val[2] &= ~c_bit;
c_val[!inv] = c_bit;
} else if (d_bit) {
d_val[2] &= ~d_bit;
d_val[!inv] = d_bit;
}
}
/* sleeps that many milliseconds with a reschedule */
static void long_sleep(int ms)
{
if (in_interrupt())
mdelay(ms);
else {
current->state = TASK_INTERRUPTIBLE;
schedule_timeout((ms * HZ + 999) / 1000);
}
}
/* send a serial byte to the LCD panel. The caller is responsible for locking
if needed. */
static void lcd_send_serial(int byte)
{
int bit;
/* the data bit is set on D0, and the clock on STROBE.
* LCD reads D0 on STROBE's rising edge. */
for (bit = 0; bit < 8; bit++) {
bits.cl = BIT_CLR; /* CLK low */
panel_set_bits();
bits.da = byte & 1;
panel_set_bits();
udelay(2); /* maintain the data during 2 us before CLK up */
bits.cl = BIT_SET; /* CLK high */
panel_set_bits();
udelay(1); /* maintain the strobe during 1 us */
byte >>= 1;
}
}
/* turn the backlight on or off */
static void lcd_backlight(int on)
{
if (lcd_bl_pin == PIN_NONE)
return;
/* The backlight is activated by setting the AUTOFEED line to +5V */
spin_lock_irq(&pprt_lock);
bits.bl = on;
panel_set_bits();
spin_unlock_irq(&pprt_lock);
}
/* send a command to the LCD panel in serial mode */
static void lcd_write_cmd_s(int cmd)
{
spin_lock_irq(&pprt_lock);
lcd_send_serial(0x1F); /* R/W=W, RS=0 */
lcd_send_serial(cmd & 0x0F);
lcd_send_serial((cmd >> 4) & 0x0F);
udelay(40); /* the shortest command takes at least 40 us */
spin_unlock_irq(&pprt_lock);
}
/* send data to the LCD panel in serial mode */
static void lcd_write_data_s(int data)
{
spin_lock_irq(&pprt_lock);
lcd_send_serial(0x5F); /* R/W=W, RS=1 */
lcd_send_serial(data & 0x0F);
lcd_send_serial((data >> 4) & 0x0F);
udelay(40); /* the shortest data takes at least 40 us */
spin_unlock_irq(&pprt_lock);
}
/* send a command to the LCD panel in 8 bits parallel mode */
static void lcd_write_cmd_p8(int cmd)
{
spin_lock_irq(&pprt_lock);
/* present the data to the data port */
w_dtr(pprt, cmd);
udelay(20); /* maintain the data during 20 us before the strobe */
bits.e = BIT_SET;
bits.rs = BIT_CLR;
bits.rw = BIT_CLR;
set_ctrl_bits();
udelay(40); /* maintain the strobe during 40 us */
bits.e = BIT_CLR;
set_ctrl_bits();
udelay(120); /* the shortest command takes at least 120 us */
spin_unlock_irq(&pprt_lock);
}
/* send data to the LCD panel in 8 bits parallel mode */
static void lcd_write_data_p8(int data)
{
spin_lock_irq(&pprt_lock);
/* present the data to the data port */
w_dtr(pprt, data);
udelay(20); /* maintain the data during 20 us before the strobe */
bits.e = BIT_SET;
bits.rs = BIT_SET;
bits.rw = BIT_CLR;
set_ctrl_bits();
udelay(40); /* maintain the strobe during 40 us */
bits.e = BIT_CLR;
set_ctrl_bits();
udelay(45); /* the shortest data takes at least 45 us */
spin_unlock_irq(&pprt_lock);
}
/* send a command to the TI LCD panel */
static void lcd_write_cmd_tilcd(int cmd)
{
spin_lock_irq(&pprt_lock);
/* present the data to the control port */
w_ctr(pprt, cmd);
udelay(60);
spin_unlock_irq(&pprt_lock);
}
/* send data to the TI LCD panel */
static void lcd_write_data_tilcd(int data)
{
spin_lock_irq(&pprt_lock);
/* present the data to the data port */
w_dtr(pprt, data);
udelay(60);
spin_unlock_irq(&pprt_lock);
}
static void lcd_gotoxy(void)
{
lcd_write_cmd(0x80 /* set DDRAM address */
| (lcd_addr_y ? lcd_hwidth : 0)
/* we force the cursor to stay at the end of the
line if it wants to go farther */
| ((lcd_addr_x < lcd_bwidth) ? lcd_addr_x &
(lcd_hwidth - 1) : lcd_bwidth - 1));
}
static void lcd_print(char c)
{
if (lcd_addr_x < lcd_bwidth) {
if (lcd_char_conv != NULL)
c = lcd_char_conv[(unsigned char)c];
lcd_write_data(c);
lcd_addr_x++;
}
/* prevents the cursor from wrapping onto the next line */
if (lcd_addr_x == lcd_bwidth)
lcd_gotoxy();
}
/* fills the display with spaces and resets X/Y */
static void lcd_clear_fast_s(void)
{
int pos;
lcd_addr_x = lcd_addr_y = 0;
lcd_gotoxy();
spin_lock_irq(&pprt_lock);
for (pos = 0; pos < lcd_height * lcd_hwidth; pos++) {
lcd_send_serial(0x5F); /* R/W=W, RS=1 */
lcd_send_serial(' ' & 0x0F);
lcd_send_serial((' ' >> 4) & 0x0F);
udelay(40); /* the shortest data takes at least 40 us */
}
spin_unlock_irq(&pprt_lock);
lcd_addr_x = lcd_addr_y = 0;
lcd_gotoxy();
}
/* fills the display with spaces and resets X/Y */
static void lcd_clear_fast_p8(void)
{
int pos;
lcd_addr_x = lcd_addr_y = 0;
lcd_gotoxy();
spin_lock_irq(&pprt_lock);
for (pos = 0; pos < lcd_height * lcd_hwidth; pos++) {
/* present the data to the data port */
w_dtr(pprt, ' ');
/* maintain the data during 20 us before the strobe */
udelay(20);
bits.e = BIT_SET;
bits.rs = BIT_SET;
bits.rw = BIT_CLR;
set_ctrl_bits();
/* maintain the strobe during 40 us */
udelay(40);
bits.e = BIT_CLR;
set_ctrl_bits();
/* the shortest data takes at least 45 us */
udelay(45);
}
spin_unlock_irq(&pprt_lock);
lcd_addr_x = lcd_addr_y = 0;
lcd_gotoxy();
}
/* fills the display with spaces and resets X/Y */
static void lcd_clear_fast_tilcd(void)
{
int pos;
lcd_addr_x = lcd_addr_y = 0;
lcd_gotoxy();
spin_lock_irq(&pprt_lock);
for (pos = 0; pos < lcd_height * lcd_hwidth; pos++) {
/* present the data to the data port */
w_dtr(pprt, ' ');
udelay(60);
}
spin_unlock_irq(&pprt_lock);
lcd_addr_x = lcd_addr_y = 0;
lcd_gotoxy();
}
/* clears the display and resets X/Y */
static void lcd_clear_display(void)
{
lcd_write_cmd(0x01); /* clear display */
lcd_addr_x = lcd_addr_y = 0;
/* we must wait a few milliseconds (15) */
long_sleep(15);
}
static void lcd_init_display(void)
{
lcd_flags = ((lcd_height > 1) ? LCD_FLAG_N : 0)
| LCD_FLAG_D | LCD_FLAG_C | LCD_FLAG_B;
long_sleep(20); /* wait 20 ms after power-up for the paranoid */
lcd_write_cmd(0x30); /* 8bits, 1 line, small fonts */
long_sleep(10);
lcd_write_cmd(0x30); /* 8bits, 1 line, small fonts */
long_sleep(10);
lcd_write_cmd(0x30); /* 8bits, 1 line, small fonts */
long_sleep(10);
lcd_write_cmd(0x30 /* set font height and lines number */
| ((lcd_flags & LCD_FLAG_F) ? 4 : 0)
| ((lcd_flags & LCD_FLAG_N) ? 8 : 0)
);
long_sleep(10);
lcd_write_cmd(0x08); /* display off, cursor off, blink off */
long_sleep(10);
lcd_write_cmd(0x08 /* set display mode */
| ((lcd_flags & LCD_FLAG_D) ? 4 : 0)
| ((lcd_flags & LCD_FLAG_C) ? 2 : 0)
| ((lcd_flags & LCD_FLAG_B) ? 1 : 0)
);
lcd_backlight((lcd_flags & LCD_FLAG_L) ? 1 : 0);
long_sleep(10);
/* entry mode set : increment, cursor shifting */
lcd_write_cmd(0x06);
lcd_clear_display();
}
/*
* These are the file operation function for user access to /dev/lcd
* This function can also be called from inside the kernel, by
* setting file and ppos to NULL.
*
*/
static inline int handle_lcd_special_code(void)
{
/* LCD special codes */
int processed = 0;
char *esc = lcd_escape + 2;
int oldflags = lcd_flags;
/* check for display mode flags */
switch (*esc) {
case 'D': /* Display ON */
lcd_flags |= LCD_FLAG_D;
processed = 1;
break;
case 'd': /* Display OFF */
lcd_flags &= ~LCD_FLAG_D;
processed = 1;
break;
case 'C': /* Cursor ON */
lcd_flags |= LCD_FLAG_C;
processed = 1;
break;
case 'c': /* Cursor OFF */
lcd_flags &= ~LCD_FLAG_C;
processed = 1;
break;
case 'B': /* Blink ON */
lcd_flags |= LCD_FLAG_B;
processed = 1;
break;
case 'b': /* Blink OFF */
lcd_flags &= ~LCD_FLAG_B;
processed = 1;
break;
case '+': /* Back light ON */
lcd_flags |= LCD_FLAG_L;
processed = 1;
break;
case '-': /* Back light OFF */
lcd_flags &= ~LCD_FLAG_L;
processed = 1;
break;
case '*':
/* flash back light using the keypad timer */
if (scan_timer.function != NULL) {
if (light_tempo == 0 && ((lcd_flags & LCD_FLAG_L) == 0))
lcd_backlight(1);
light_tempo = FLASH_LIGHT_TEMPO;
}
processed = 1;
break;
case 'f': /* Small Font */
lcd_flags &= ~LCD_FLAG_F;
processed = 1;
break;
case 'F': /* Large Font */
lcd_flags |= LCD_FLAG_F;
processed = 1;
break;
case 'n': /* One Line */
lcd_flags &= ~LCD_FLAG_N;
processed = 1;
break;
case 'N': /* Two Lines */
lcd_flags |= LCD_FLAG_N;
break;
case 'l': /* Shift Cursor Left */
if (lcd_addr_x > 0) {
/* back one char if not at end of line */
if (lcd_addr_x < lcd_bwidth)
lcd_write_cmd(0x10);
lcd_addr_x--;
}
processed = 1;
break;
case 'r': /* shift cursor right */
if (lcd_addr_x < lcd_width) {
/* allow the cursor to pass the end of the line */
if (lcd_addr_x <
(lcd_bwidth - 1))
lcd_write_cmd(0x14);
lcd_addr_x++;
}
processed = 1;
break;
case 'L': /* shift display left */
lcd_left_shift++;
lcd_write_cmd(0x18);
processed = 1;
break;
case 'R': /* shift display right */
lcd_left_shift--;
lcd_write_cmd(0x1C);
processed = 1;
break;
case 'k': { /* kill end of line */
int x;
for (x = lcd_addr_x; x < lcd_bwidth; x++)
lcd_write_data(' ');
/* restore cursor position */
lcd_gotoxy();
processed = 1;
break;
}
case 'I': /* reinitialize display */
lcd_init_display();
lcd_left_shift = 0;
processed = 1;
break;
case 'G': {
/* Generator : LGcxxxxx...xx; must have <c> between '0'
* and '7', representing the numerical ASCII code of the
* redefined character, and <xx...xx> a sequence of 16
* hex digits representing 8 bytes for each character.
* Most LCDs will only use 5 lower bits of the 7 first
* bytes.
*/
unsigned char cgbytes[8];
unsigned char cgaddr;
int cgoffset;
int shift;
char value;
int addr;
if (strchr(esc, ';') == NULL)
break;
esc++;
cgaddr = *(esc++) - '0';
if (cgaddr > 7) {
processed = 1;
break;
}
cgoffset = 0;
shift = 0;
value = 0;
while (*esc && cgoffset < 8) {
shift ^= 4;
if (*esc >= '0' && *esc <= '9')
value |= (*esc - '0') << shift;
else if (*esc >= 'A' && *esc <= 'Z')
value |= (*esc - 'A' + 10) << shift;
else if (*esc >= 'a' && *esc <= 'z')
value |= (*esc - 'a' + 10) << shift;
else {
esc++;
continue;
}
if (shift == 0) {
cgbytes[cgoffset++] = value;
value = 0;
}
esc++;
}
lcd_write_cmd(0x40 | (cgaddr * 8));
for (addr = 0; addr < cgoffset; addr++)
lcd_write_data(cgbytes[addr]);
/* ensures that we stop writing to CGRAM */
lcd_gotoxy();
processed = 1;
break;
}
case 'x': /* gotoxy : LxXXX[yYYY]; */
case 'y': /* gotoxy : LyYYY[xXXX]; */
if (strchr(esc, ';') == NULL)
break;
while (*esc) {
if (*esc == 'x') {
esc++;
if (kstrtoul(esc, 10, &lcd_addr_x) < 0)
break;
} else if (*esc == 'y') {
esc++;
if (kstrtoul(esc, 10, &lcd_addr_y) < 0)
break;
} else
break;
}
lcd_gotoxy();
processed = 1;
break;
}
/* Check whether one flag was changed */
if (oldflags != lcd_flags) {
/* check whether one of B,C,D flags were changed */
if ((oldflags ^ lcd_flags) &
(LCD_FLAG_B | LCD_FLAG_C | LCD_FLAG_D))
/* set display mode */
lcd_write_cmd(0x08
| ((lcd_flags & LCD_FLAG_D) ? 4 : 0)
| ((lcd_flags & LCD_FLAG_C) ? 2 : 0)
| ((lcd_flags & LCD_FLAG_B) ? 1 : 0));
/* check whether one of F,N flags was changed */
else if ((oldflags ^ lcd_flags) & (LCD_FLAG_F | LCD_FLAG_N))
lcd_write_cmd(0x30
| ((lcd_flags & LCD_FLAG_F) ? 4 : 0)
| ((lcd_flags & LCD_FLAG_N) ? 8 : 0));
/* check whether L flag was changed */
else if ((oldflags ^ lcd_flags) & (LCD_FLAG_L)) {
if (lcd_flags & (LCD_FLAG_L))
lcd_backlight(1);
else if (light_tempo == 0)
/* switch off the light only when the tempo
lighting is gone */
lcd_backlight(0);
}
}
return processed;
}
static ssize_t lcd_write(struct file *file,
const char *buf, size_t count, loff_t *ppos)
{
const char *tmp = buf;
char c;
for (; count-- > 0; (ppos ? (*ppos)++ : 0), ++tmp) {
if (!in_interrupt() && (((count + 1) & 0x1f) == 0))
/* let's be a little nice with other processes
that need some CPU */
schedule();
if (ppos == NULL && file == NULL)
/* let's not use get_user() from the kernel ! */
c = *tmp;
else if (get_user(c, tmp))
return -EFAULT;
/* first, we'll test if we're in escape mode */
if ((c != '\n') && lcd_escape_len >= 0) {
/* yes, let's add this char to the buffer */
lcd_escape[lcd_escape_len++] = c;
lcd_escape[lcd_escape_len] = 0;
} else {
/* aborts any previous escape sequence */
lcd_escape_len = -1;
switch (c) {
case LCD_ESCAPE_CHAR:
/* start of an escape sequence */
lcd_escape_len = 0;
lcd_escape[lcd_escape_len] = 0;
break;
case '\b':
/* go back one char and clear it */
if (lcd_addr_x > 0) {
/* check if we're not at the
end of the line */
if (lcd_addr_x < lcd_bwidth)
/* back one char */
lcd_write_cmd(0x10);
lcd_addr_x--;
}
/* replace with a space */
lcd_write_data(' ');
/* back one char again */
lcd_write_cmd(0x10);
break;
case '\014':
/* quickly clear the display */
lcd_clear_fast();
break;
case '\n':
/* flush the remainder of the current line and
go to the beginning of the next line */
for (; lcd_addr_x < lcd_bwidth; lcd_addr_x++)
lcd_write_data(' ');
lcd_addr_x = 0;
lcd_addr_y = (lcd_addr_y + 1) % lcd_height;
lcd_gotoxy();
break;
case '\r':
/* go to the beginning of the same line */
lcd_addr_x = 0;
lcd_gotoxy();
break;
case '\t':
/* print a space instead of the tab */
lcd_print(' ');
break;
default:
/* simply print this char */
lcd_print(c);
break;
}
}
/* now we'll see if we're in an escape mode and if the current
escape sequence can be understood. */
if (lcd_escape_len >= 2) {
int processed = 0;
if (!strcmp(lcd_escape, "[2J")) {
/* clear the display */
lcd_clear_fast();
processed = 1;
} else if (!strcmp(lcd_escape, "[H")) {
/* cursor to home */
lcd_addr_x = lcd_addr_y = 0;
lcd_gotoxy();
processed = 1;
}
/* codes starting with ^[[L */
else if ((lcd_escape_len >= 3) &&
(lcd_escape[0] == '[') &&
(lcd_escape[1] == 'L')) {
processed = handle_lcd_special_code();
}
/* LCD special escape codes */
/* flush the escape sequence if it's been processed
or if it is getting too long. */
if (processed || (lcd_escape_len >= LCD_ESCAPE_LEN))
lcd_escape_len = -1;
} /* escape codes */
}
return tmp - buf;
}
static int lcd_open(struct inode *inode, struct file *file)
{
if (lcd_open_cnt)
return -EBUSY; /* open only once at a time */
if (file->f_mode & FMODE_READ) /* device is write-only */
return -EPERM;
if (lcd_must_clear) {
lcd_clear_display();
lcd_must_clear = 0;
}
lcd_open_cnt++;
return nonseekable_open(inode, file);
}
static int lcd_release(struct inode *inode, struct file *file)
{
lcd_open_cnt--;
return 0;
}
static const struct file_operations lcd_fops = {
.write = lcd_write,
.open = lcd_open,
.release = lcd_release,
.llseek = no_llseek,
};
static struct miscdevice lcd_dev = {
LCD_MINOR,
"lcd",
&lcd_fops
};
/* public function usable from the kernel for any purpose */
static void panel_lcd_print(const char *s)
{
if (lcd_enabled && lcd_initialized)
lcd_write(NULL, s, strlen(s), NULL);
}
/* initialize the LCD driver */
static void lcd_init(void)
{
switch (lcd_type) {
case LCD_TYPE_OLD:
/* parallel mode, 8 bits */
if (lcd_proto < 0)
lcd_proto = LCD_PROTO_PARALLEL;
if (lcd_charset < 0)
lcd_charset = LCD_CHARSET_NORMAL;
if (lcd_e_pin == PIN_NOT_SET)
lcd_e_pin = PIN_STROBE;
if (lcd_rs_pin == PIN_NOT_SET)
lcd_rs_pin = PIN_AUTOLF;
if (lcd_width < 0)
lcd_width = 40;
if (lcd_bwidth < 0)
lcd_bwidth = 40;
if (lcd_hwidth < 0)
lcd_hwidth = 64;
if (lcd_height < 0)
lcd_height = 2;
break;
case LCD_TYPE_KS0074:
/* serial mode, ks0074 */
if (lcd_proto < 0)
lcd_proto = LCD_PROTO_SERIAL;
if (lcd_charset < 0)
lcd_charset = LCD_CHARSET_KS0074;
if (lcd_bl_pin == PIN_NOT_SET)
lcd_bl_pin = PIN_AUTOLF;
if (lcd_cl_pin == PIN_NOT_SET)
lcd_cl_pin = PIN_STROBE;
if (lcd_da_pin == PIN_NOT_SET)
lcd_da_pin = PIN_D0;
if (lcd_width < 0)
lcd_width = 16;
if (lcd_bwidth < 0)
lcd_bwidth = 40;
if (lcd_hwidth < 0)
lcd_hwidth = 16;
if (lcd_height < 0)
lcd_height = 2;
break;
case LCD_TYPE_NEXCOM:
/* parallel mode, 8 bits, generic */
if (lcd_proto < 0)
lcd_proto = LCD_PROTO_PARALLEL;
if (lcd_charset < 0)
lcd_charset = LCD_CHARSET_NORMAL;
if (lcd_e_pin == PIN_NOT_SET)
lcd_e_pin = PIN_AUTOLF;
if (lcd_rs_pin == PIN_NOT_SET)
lcd_rs_pin = PIN_SELECP;
if (lcd_rw_pin == PIN_NOT_SET)
lcd_rw_pin = PIN_INITP;
if (lcd_width < 0)
lcd_width = 16;
if (lcd_bwidth < 0)
lcd_bwidth = 40;
if (lcd_hwidth < 0)
lcd_hwidth = 64;
if (lcd_height < 0)
lcd_height = 2;
break;
case LCD_TYPE_CUSTOM:
/* customer-defined */
if (lcd_proto < 0)
lcd_proto = DEFAULT_LCD_PROTO;
if (lcd_charset < 0)
lcd_charset = DEFAULT_LCD_CHARSET;
/* default geometry will be set later */
break;
case LCD_TYPE_HANTRONIX:
/* parallel mode, 8 bits, hantronix-like */
default:
if (lcd_proto < 0)
lcd_proto = LCD_PROTO_PARALLEL;
if (lcd_charset < 0)
lcd_charset = LCD_CHARSET_NORMAL;
if (lcd_e_pin == PIN_NOT_SET)
lcd_e_pin = PIN_STROBE;
if (lcd_rs_pin == PIN_NOT_SET)
lcd_rs_pin = PIN_SELECP;
if (lcd_width < 0)
lcd_width = 16;
if (lcd_bwidth < 0)
lcd_bwidth = 40;
if (lcd_hwidth < 0)
lcd_hwidth = 64;
if (lcd_height < 0)
lcd_height = 2;
break;
}
/* this is used to catch wrong and default values */
if (lcd_width <= 0)
lcd_width = DEFAULT_LCD_WIDTH;
if (lcd_bwidth <= 0)
lcd_bwidth = DEFAULT_LCD_BWIDTH;
if (lcd_hwidth <= 0)
lcd_hwidth = DEFAULT_LCD_HWIDTH;
if (lcd_height <= 0)
lcd_height = DEFAULT_LCD_HEIGHT;
if (lcd_proto == LCD_PROTO_SERIAL) { /* SERIAL */
lcd_write_cmd = lcd_write_cmd_s;
lcd_write_data = lcd_write_data_s;
lcd_clear_fast = lcd_clear_fast_s;
if (lcd_cl_pin == PIN_NOT_SET)
lcd_cl_pin = DEFAULT_LCD_PIN_SCL;
if (lcd_da_pin == PIN_NOT_SET)
lcd_da_pin = DEFAULT_LCD_PIN_SDA;
} else if (lcd_proto == LCD_PROTO_PARALLEL) { /* PARALLEL */
lcd_write_cmd = lcd_write_cmd_p8;
lcd_write_data = lcd_write_data_p8;
lcd_clear_fast = lcd_clear_fast_p8;
if (lcd_e_pin == PIN_NOT_SET)
lcd_e_pin = DEFAULT_LCD_PIN_E;
if (lcd_rs_pin == PIN_NOT_SET)
lcd_rs_pin = DEFAULT_LCD_PIN_RS;
if (lcd_rw_pin == PIN_NOT_SET)
lcd_rw_pin = DEFAULT_LCD_PIN_RW;
} else {
lcd_write_cmd = lcd_write_cmd_tilcd;
lcd_write_data = lcd_write_data_tilcd;
lcd_clear_fast = lcd_clear_fast_tilcd;
}
if (lcd_bl_pin == PIN_NOT_SET)
lcd_bl_pin = DEFAULT_LCD_PIN_BL;
if (lcd_e_pin == PIN_NOT_SET)
lcd_e_pin = PIN_NONE;
if (lcd_rs_pin == PIN_NOT_SET)
lcd_rs_pin = PIN_NONE;
if (lcd_rw_pin == PIN_NOT_SET)
lcd_rw_pin = PIN_NONE;
if (lcd_bl_pin == PIN_NOT_SET)
lcd_bl_pin = PIN_NONE;
if (lcd_cl_pin == PIN_NOT_SET)
lcd_cl_pin = PIN_NONE;
if (lcd_da_pin == PIN_NOT_SET)
lcd_da_pin = PIN_NONE;
if (lcd_charset < 0)
lcd_charset = DEFAULT_LCD_CHARSET;
if (lcd_charset == LCD_CHARSET_KS0074)
lcd_char_conv = lcd_char_conv_ks0074;
else
lcd_char_conv = NULL;
if (lcd_bl_pin != PIN_NONE)
init_scan_timer();
pin_to_bits(lcd_e_pin, lcd_bits[LCD_PORT_D][LCD_BIT_E],
lcd_bits[LCD_PORT_C][LCD_BIT_E]);
pin_to_bits(lcd_rs_pin, lcd_bits[LCD_PORT_D][LCD_BIT_RS],
lcd_bits[LCD_PORT_C][LCD_BIT_RS]);
pin_to_bits(lcd_rw_pin, lcd_bits[LCD_PORT_D][LCD_BIT_RW],
lcd_bits[LCD_PORT_C][LCD_BIT_RW]);
pin_to_bits(lcd_bl_pin, lcd_bits[LCD_PORT_D][LCD_BIT_BL],
lcd_bits[LCD_PORT_C][LCD_BIT_BL]);
pin_to_bits(lcd_cl_pin, lcd_bits[LCD_PORT_D][LCD_BIT_CL],
lcd_bits[LCD_PORT_C][LCD_BIT_CL]);
pin_to_bits(lcd_da_pin, lcd_bits[LCD_PORT_D][LCD_BIT_DA],
lcd_bits[LCD_PORT_C][LCD_BIT_DA]);
/* before this line, we must NOT send anything to the display.
* Since lcd_init_display() needs to write data, we have to
* enable mark the LCD initialized just before. */
lcd_initialized = 1;
lcd_init_display();
/* display a short message */
#ifdef CONFIG_PANEL_CHANGE_MESSAGE
#ifdef CONFIG_PANEL_BOOT_MESSAGE
panel_lcd_print("\x1b[Lc\x1b[Lb\x1b[L*" CONFIG_PANEL_BOOT_MESSAGE);
#endif
#else
panel_lcd_print("\x1b[Lc\x1b[Lb\x1b[L*Linux-" UTS_RELEASE "\nPanel-"
PANEL_VERSION);
#endif
lcd_addr_x = lcd_addr_y = 0;
/* clear the display on the next device opening */
lcd_must_clear = 1;
lcd_gotoxy();
}
/*
* These are the file operation function for user access to /dev/keypad
*/
static ssize_t keypad_read(struct file *file,
char *buf, size_t count, loff_t *ppos)
{
unsigned i = *ppos;
char *tmp = buf;
if (keypad_buflen == 0) {
if (file->f_flags & O_NONBLOCK)
return -EAGAIN;
interruptible_sleep_on(&keypad_read_wait);
if (signal_pending(current))
return -EINTR;
}
for (; count-- > 0 && (keypad_buflen > 0);
++i, ++tmp, --keypad_buflen) {
put_user(keypad_buffer[keypad_start], tmp);
keypad_start = (keypad_start + 1) % KEYPAD_BUFFER;
}
*ppos = i;
return tmp - buf;
}
static int keypad_open(struct inode *inode, struct file *file)
{
if (keypad_open_cnt)
return -EBUSY; /* open only once at a time */
if (file->f_mode & FMODE_WRITE) /* device is read-only */
return -EPERM;
keypad_buflen = 0; /* flush the buffer on opening */
keypad_open_cnt++;
return 0;
}
static int keypad_release(struct inode *inode, struct file *file)
{
keypad_open_cnt--;
return 0;
}
static const struct file_operations keypad_fops = {
.read = keypad_read, /* read */
.open = keypad_open, /* open */
.release = keypad_release, /* close */
.llseek = default_llseek,
};
static struct miscdevice keypad_dev = {
KEYPAD_MINOR,
"keypad",
&keypad_fops
};
static void keypad_send_key(const char *string, int max_len)
{
if (init_in_progress)
return;
/* send the key to the device only if a process is attached to it. */
if (keypad_open_cnt > 0) {
while (max_len-- && keypad_buflen < KEYPAD_BUFFER && *string) {
keypad_buffer[(keypad_start + keypad_buflen++) %
KEYPAD_BUFFER] = *string++;
}
wake_up_interruptible(&keypad_read_wait);
}
}
/* this function scans all the bits involving at least one logical signal,
* and puts the results in the bitfield "phys_read" (one bit per established
* contact), and sets "phys_read_prev" to "phys_read".
*
* Note: to debounce input signals, we will only consider as switched a signal
* which is stable across 2 measures. Signals which are different between two
* reads will be kept as they previously were in their logical form (phys_prev).
* A signal which has just switched will have a 1 in
* (phys_read ^ phys_read_prev).
*/
static void phys_scan_contacts(void)
{
int bit, bitval;
char oldval;
char bitmask;
char gndmask;
phys_prev = phys_curr;
phys_read_prev = phys_read;
phys_read = 0; /* flush all signals */
/* keep track of old value, with all outputs disabled */
oldval = r_dtr(pprt) | scan_mask_o;
/* activate all keyboard outputs (active low) */
w_dtr(pprt, oldval & ~scan_mask_o);
/* will have a 1 for each bit set to gnd */
bitmask = PNL_PINPUT(r_str(pprt)) & scan_mask_i;
/* disable all matrix signals */
w_dtr(pprt, oldval);
/* now that all outputs are cleared, the only active input bits are
* directly connected to the ground
*/
/* 1 for each grounded input */
gndmask = PNL_PINPUT(r_str(pprt)) & scan_mask_i;
/* grounded inputs are signals 40-44 */
phys_read |= (pmask_t) gndmask << 40;
if (bitmask != gndmask) {
/* since clearing the outputs changed some inputs, we know
* that some input signals are currently tied to some outputs.
* So we'll scan them.
*/
for (bit = 0; bit < 8; bit++) {
bitval = 1 << bit;
if (!(scan_mask_o & bitval)) /* skip unused bits */
continue;
w_dtr(pprt, oldval & ~bitval); /* enable this output */
bitmask = PNL_PINPUT(r_str(pprt)) & ~gndmask;
phys_read |= (pmask_t) bitmask << (5 * bit);
}
w_dtr(pprt, oldval); /* disable all outputs */
}
/* this is easy: use old bits when they are flapping,
* use new ones when stable */
phys_curr = (phys_prev & (phys_read ^ phys_read_prev)) |
(phys_read & ~(phys_read ^ phys_read_prev));
}
static inline int input_state_high(struct logical_input *input)
{
#if 0
/* FIXME:
* this is an invalid test. It tries to catch
* transitions from single-key to multiple-key, but
* doesn't take into account the contacts polarity.
* The only solution to the problem is to parse keys
* from the most complex to the simplest combinations,
* and mark them as 'caught' once a combination
* matches, then unmatch it for all other ones.
*/
/* try to catch dangerous transitions cases :
* someone adds a bit, so this signal was a false
* positive resulting from a transition. We should
* invalidate the signal immediately and not call the
* release function.
* eg: 0 -(press A)-> A -(press B)-> AB : don't match A's release.
*/
if (((phys_prev & input->mask) == input->value)
&& ((phys_curr & input->mask) > input->value)) {
input->state = INPUT_ST_LOW; /* invalidate */
return 1;
}
#endif
if ((phys_curr & input->mask) == input->value) {
if ((input->type == INPUT_TYPE_STD) &&
(input->high_timer == 0)) {
input->high_timer++;
if (input->u.std.press_fct != NULL)
input->u.std.press_fct(input->u.std.press_data);
} else if (input->type == INPUT_TYPE_KBD) {
/* will turn on the light */
keypressed = 1;
if (input->high_timer == 0) {
char *press_str = input->u.kbd.press_str;
if (press_str[0])
keypad_send_key(press_str,
sizeof(input->u.kbd.press_str));
}
if (input->u.kbd.repeat_str[0]) {
char *repeat_str = input->u.kbd.repeat_str;
if (input->high_timer >= KEYPAD_REP_START) {
input->high_timer -= KEYPAD_REP_DELAY;
keypad_send_key(repeat_str,
sizeof(input->u.kbd.repeat_str));
}
/* we will need to come back here soon */
inputs_stable = 0;
}
if (input->high_timer < 255)
input->high_timer++;
}
return 1;
} else {
/* else signal falling down. Let's fall through. */
input->state = INPUT_ST_FALLING;
input->fall_timer = 0;
}
return 0;
}
static inline void input_state_falling(struct logical_input *input)
{
#if 0
/* FIXME !!! same comment as in input_state_high */
if (((phys_prev & input->mask) == input->value)
&& ((phys_curr & input->mask) > input->value)) {
input->state = INPUT_ST_LOW; /* invalidate */
return;
}
#endif
if ((phys_curr & input->mask) == input->value) {
if (input->type == INPUT_TYPE_KBD) {
/* will turn on the light */
keypressed = 1;
if (input->u.kbd.repeat_str[0]) {
char *repeat_str = input->u.kbd.repeat_str;
if (input->high_timer >= KEYPAD_REP_START)
input->high_timer -= KEYPAD_REP_DELAY;
keypad_send_key(repeat_str,
sizeof(input->u.kbd.repeat_str));
/* we will need to come back here soon */
inputs_stable = 0;
}
if (input->high_timer < 255)
input->high_timer++;
}
input->state = INPUT_ST_HIGH;
} else if (input->fall_timer >= input->fall_time) {
/* call release event */
if (input->type == INPUT_TYPE_STD) {
void (*release_fct)(int) = input->u.std.release_fct;
if (release_fct != NULL)
release_fct(input->u.std.release_data);
} else if (input->type == INPUT_TYPE_KBD) {
char *release_str = input->u.kbd.release_str;
if (release_str[0])
keypad_send_key(release_str,
sizeof(input->u.kbd.release_str));
}
input->state = INPUT_ST_LOW;
} else {
input->fall_timer++;
inputs_stable = 0;
}
}
static void panel_process_inputs(void)
{
struct list_head *item;
struct logical_input *input;
keypressed = 0;
inputs_stable = 1;
list_for_each(item, &logical_inputs) {
input = list_entry(item, struct logical_input, list);
switch (input->state) {
case INPUT_ST_LOW:
if ((phys_curr & input->mask) != input->value)
break;
/* if all needed ones were already set previously,
* this means that this logical signal has been
* activated by the releasing of another combined
* signal, so we don't want to match.
* eg: AB -(release B)-> A -(release A)-> 0 :
* don't match A.
*/
if ((phys_prev & input->mask) == input->value)
break;
input->rise_timer = 0;
input->state = INPUT_ST_RISING;
/* no break here, fall through */
case INPUT_ST_RISING:
if ((phys_curr & input->mask) != input->value) {
input->state = INPUT_ST_LOW;
break;
}
if (input->rise_timer < input->rise_time) {
inputs_stable = 0;
input->rise_timer++;
break;
}
input->high_timer = 0;
input->state = INPUT_ST_HIGH;
/* no break here, fall through */
case INPUT_ST_HIGH:
if (input_state_high(input))
break;
/* no break here, fall through */
case INPUT_ST_FALLING:
input_state_falling(input);
}
}
}
static void panel_scan_timer(void)
{
if (keypad_enabled && keypad_initialized) {
if (spin_trylock_irq(&pprt_lock)) {
phys_scan_contacts();
/* no need for the parport anymore */
spin_unlock_irq(&pprt_lock);
}
if (!inputs_stable || phys_curr != phys_prev)
panel_process_inputs();
}
if (lcd_enabled && lcd_initialized) {
if (keypressed) {
if (light_tempo == 0 && ((lcd_flags & LCD_FLAG_L) == 0))
lcd_backlight(1);
light_tempo = FLASH_LIGHT_TEMPO;
} else if (light_tempo > 0) {
light_tempo--;
if (light_tempo == 0 && ((lcd_flags & LCD_FLAG_L) == 0))
lcd_backlight(0);
}
}
mod_timer(&scan_timer, jiffies + INPUT_POLL_TIME);
}
static void init_scan_timer(void)
{
if (scan_timer.function != NULL)
return; /* already started */
init_timer(&scan_timer);
scan_timer.expires = jiffies + INPUT_POLL_TIME;
scan_timer.data = 0;
scan_timer.function = (void *)&panel_scan_timer;
add_timer(&scan_timer);
}
/* converts a name of the form "({BbAaPpSsEe}{01234567-})*" to a series of bits.
* if <omask> or <imask> are non-null, they will be or'ed with the bits
* corresponding to out and in bits respectively.
* returns 1 if ok, 0 if error (in which case, nothing is written).
*/
static int input_name2mask(const char *name, pmask_t *mask, pmask_t *value,
char *imask, char *omask)
{
static char sigtab[10] = "EeSsPpAaBb";
char im, om;
pmask_t m, v;
om = im = m = v = 0ULL;
while (*name) {
int in, out, bit, neg;
for (in = 0; (in < sizeof(sigtab)) &&
(sigtab[in] != *name); in++)
;
if (in >= sizeof(sigtab))
return 0; /* input name not found */
neg = (in & 1); /* odd (lower) names are negated */
in >>= 1;
im |= (1 << in);
name++;
if (isdigit(*name)) {
out = *name - '0';
om |= (1 << out);
} else if (*name == '-')
out = 8;
else
return 0; /* unknown bit name */
bit = (out * 5) + in;
m |= 1ULL << bit;
if (!neg)
v |= 1ULL << bit;
name++;
}
*mask = m;
*value = v;
if (imask)
*imask |= im;
if (omask)
*omask |= om;
return 1;
}
/* tries to bind a key to the signal name <name>. The key will send the
* strings <press>, <repeat>, <release> for these respective events.
* Returns the pointer to the new key if ok, NULL if the key could not be bound.
*/
static struct logical_input *panel_bind_key(const char *name, const char *press,
const char *repeat,
const char *release)
{
struct logical_input *key;
key = kzalloc(sizeof(struct logical_input), GFP_KERNEL);
if (!key)
return NULL;
if (!input_name2mask(name, &key->mask, &key->value, &scan_mask_i,
&scan_mask_o)) {
kfree(key);
return NULL;
}
key->type = INPUT_TYPE_KBD;
key->state = INPUT_ST_LOW;
key->rise_time = 1;
key->fall_time = 1;
strncpy(key->u.kbd.press_str, press, sizeof(key->u.kbd.press_str));
strncpy(key->u.kbd.repeat_str, repeat, sizeof(key->u.kbd.repeat_str));
strncpy(key->u.kbd.release_str, release,
sizeof(key->u.kbd.release_str));
list_add(&key->list, &logical_inputs);
return key;
}
#if 0
/* tries to bind a callback function to the signal name <name>. The function
* <press_fct> will be called with the <press_data> arg when the signal is
* activated, and so on for <release_fct>/<release_data>
* Returns the pointer to the new signal if ok, NULL if the signal could not
* be bound.
*/
static struct logical_input *panel_bind_callback(char *name,
void (*press_fct) (int),
int press_data,
void (*release_fct) (int),
int release_data)
{
struct logical_input *callback;
callback = kmalloc(sizeof(struct logical_input), GFP_KERNEL);
if (!callback)
return NULL;
memset(callback, 0, sizeof(struct logical_input));
if (!input_name2mask(name, &callback->mask, &callback->value,
&scan_mask_i, &scan_mask_o))
return NULL;
callback->type = INPUT_TYPE_STD;
callback->state = INPUT_ST_LOW;
callback->rise_time = 1;
callback->fall_time = 1;
callback->u.std.press_fct = press_fct;
callback->u.std.press_data = press_data;
callback->u.std.release_fct = release_fct;
callback->u.std.release_data = release_data;
list_add(&callback->list, &logical_inputs);
return callback;
}
#endif
static void keypad_init(void)
{
int keynum;
init_waitqueue_head(&keypad_read_wait);
keypad_buflen = 0; /* flushes any eventual noisy keystroke */
/* Let's create all known keys */
for (keynum = 0; keypad_profile[keynum][0][0]; keynum++) {
panel_bind_key(keypad_profile[keynum][0],
keypad_profile[keynum][1],
keypad_profile[keynum][2],
keypad_profile[keynum][3]);
}
init_scan_timer();
keypad_initialized = 1;
}
/**************************************************/
/* device initialization */
/**************************************************/
static int panel_notify_sys(struct notifier_block *this, unsigned long code,
void *unused)
{
if (lcd_enabled && lcd_initialized) {
switch (code) {
case SYS_DOWN:
panel_lcd_print
("\x0cReloading\nSystem...\x1b[Lc\x1b[Lb\x1b[L+");
break;
case SYS_HALT:
panel_lcd_print
("\x0cSystem Halted.\x1b[Lc\x1b[Lb\x1b[L+");
break;
case SYS_POWER_OFF:
panel_lcd_print("\x0cPower off.\x1b[Lc\x1b[Lb\x1b[L+");
break;
default:
break;
}
}
return NOTIFY_DONE;
}
static struct notifier_block panel_notifier = {
panel_notify_sys,
NULL,
0
};
static void panel_attach(struct parport *port)
{
if (port->number != parport)
return;
if (pprt) {
pr_err("%s: port->number=%d parport=%d, already registered!\n",
__func__, port->number, parport);
return;
}
pprt = parport_register_device(port, "panel", NULL, NULL, /* pf, kf */
NULL,
/*PARPORT_DEV_EXCL */
0, (void *)&pprt);
if (pprt == NULL) {
pr_err("%s: port->number=%d parport=%d, parport_register_device() failed\n",
__func__, port->number, parport);
return;
}
if (parport_claim(pprt)) {
pr_err("could not claim access to parport%d. Aborting.\n",
parport);
goto err_unreg_device;
}
/* must init LCD first, just in case an IRQ from the keypad is
* generated at keypad init
*/
if (lcd_enabled) {
lcd_init();
if (misc_register(&lcd_dev))
goto err_unreg_device;
}
if (keypad_enabled) {
keypad_init();
if (misc_register(&keypad_dev))
goto err_lcd_unreg;
}
return;
err_lcd_unreg:
if (lcd_enabled)
misc_deregister(&lcd_dev);
err_unreg_device:
parport_unregister_device(pprt);
pprt = NULL;
}
static void panel_detach(struct parport *port)
{
if (port->number != parport)
return;
if (!pprt) {
pr_err("%s: port->number=%d parport=%d, nothing to unregister.\n",
__func__, port->number, parport);
return;
}
if (keypad_enabled && keypad_initialized) {
misc_deregister(&keypad_dev);
keypad_initialized = 0;
}
if (lcd_enabled && lcd_initialized) {
misc_deregister(&lcd_dev);
lcd_initialized = 0;
}
parport_release(pprt);
parport_unregister_device(pprt);
pprt = NULL;
}
static struct parport_driver panel_driver = {
.name = "panel",
.attach = panel_attach,
.detach = panel_detach,
};
/* init function */
static int panel_init(void)
{
/* for backwards compatibility */
if (keypad_type < 0)
keypad_type = keypad_enabled;
if (lcd_type < 0)
lcd_type = lcd_enabled;
if (parport < 0)
parport = DEFAULT_PARPORT;
/* take care of an eventual profile */
switch (profile) {
case PANEL_PROFILE_CUSTOM:
/* custom profile */
if (keypad_type < 0)
keypad_type = DEFAULT_KEYPAD;
if (lcd_type < 0)
lcd_type = DEFAULT_LCD;
break;
case PANEL_PROFILE_OLD:
/* 8 bits, 2*16, old keypad */
if (keypad_type < 0)
keypad_type = KEYPAD_TYPE_OLD;
if (lcd_type < 0)
lcd_type = LCD_TYPE_OLD;
if (lcd_width < 0)
lcd_width = 16;
if (lcd_hwidth < 0)
lcd_hwidth = 16;
break;
case PANEL_PROFILE_NEW:
/* serial, 2*16, new keypad */
if (keypad_type < 0)
keypad_type = KEYPAD_TYPE_NEW;
if (lcd_type < 0)
lcd_type = LCD_TYPE_KS0074;
break;
case PANEL_PROFILE_HANTRONIX:
/* 8 bits, 2*16 hantronix-like, no keypad */
if (keypad_type < 0)
keypad_type = KEYPAD_TYPE_NONE;
if (lcd_type < 0)
lcd_type = LCD_TYPE_HANTRONIX;
break;
case PANEL_PROFILE_NEXCOM:
/* generic 8 bits, 2*16, nexcom keypad, eg. Nexcom. */
if (keypad_type < 0)
keypad_type = KEYPAD_TYPE_NEXCOM;
if (lcd_type < 0)
lcd_type = LCD_TYPE_NEXCOM;
break;
case PANEL_PROFILE_LARGE:
/* 8 bits, 2*40, old keypad */
if (keypad_type < 0)
keypad_type = KEYPAD_TYPE_OLD;
if (lcd_type < 0)
lcd_type = LCD_TYPE_OLD;
break;
}
lcd_enabled = (lcd_type > 0);
keypad_enabled = (keypad_type > 0);
switch (keypad_type) {
case KEYPAD_TYPE_OLD:
keypad_profile = old_keypad_profile;
break;
case KEYPAD_TYPE_NEW:
keypad_profile = new_keypad_profile;
break;
case KEYPAD_TYPE_NEXCOM:
keypad_profile = nexcom_keypad_profile;
break;
default:
keypad_profile = NULL;
break;
}
/* tells various subsystems about the fact that we are initializing */
init_in_progress = 1;
if (parport_register_driver(&panel_driver)) {
pr_err("could not register with parport. Aborting.\n");
return -EIO;
}
if (!lcd_enabled && !keypad_enabled) {
/* no device enabled, let's release the parport */
if (pprt) {
parport_release(pprt);
parport_unregister_device(pprt);
pprt = NULL;
}
parport_unregister_driver(&panel_driver);
pr_err("driver version " PANEL_VERSION " disabled.\n");
return -ENODEV;
}
register_reboot_notifier(&panel_notifier);
if (pprt)
pr_info("driver version " PANEL_VERSION
" registered on parport%d (io=0x%lx).\n", parport,
pprt->port->base);
else
pr_info("driver version " PANEL_VERSION
" not yet registered\n");
/* tells various subsystems about the fact that initialization
is finished */
init_in_progress = 0;
return 0;
}
static int __init panel_init_module(void)
{
return panel_init();
}
static void __exit panel_cleanup_module(void)
{
unregister_reboot_notifier(&panel_notifier);
if (scan_timer.function != NULL)
del_timer(&scan_timer);
if (pprt != NULL) {
if (keypad_enabled) {
misc_deregister(&keypad_dev);
keypad_initialized = 0;
}
if (lcd_enabled) {
panel_lcd_print("\x0cLCD driver " PANEL_VERSION
"\nunloaded.\x1b[Lc\x1b[Lb\x1b[L-");
misc_deregister(&lcd_dev);
lcd_initialized = 0;
}
/* TODO: free all input signals */
parport_release(pprt);
parport_unregister_device(pprt);
pprt = NULL;
}
parport_unregister_driver(&panel_driver);
}
module_init(panel_init_module);
module_exit(panel_cleanup_module);
MODULE_AUTHOR("Willy Tarreau");
MODULE_LICENSE("GPL");
/*
* Local variables:
* c-indent-level: 4
* tab-width: 8
* End:
*/
|
377e889918897e5b6d59f8d026300d342429747a
|
65f3405e2d3deb0e5db9cb8b26644509ac96568e
|
/examples/Modules/BALA/imuCalibration.h
|
c87be223295d4dfc06cdab11ddd53c1f0ab1f4f0
|
[
"MIT"
] |
permissive
|
m5stack/M5Stack
|
9830600f925026c326af4fa23823d1c7f76df9fc
|
1e81176b2dd9cb7839f53f5a71a8143b04794de7
|
refs/heads/master
| 2023-09-03T17:50:59.532971
| 2023-08-28T06:50:34
| 2023-08-28T06:50:34
| 89,710,200
| 1,093
| 489
|
MIT
| 2023-07-10T06:40:53
| 2017-04-28T13:47:48
|
C
|
UTF-8
|
C
| false
| false
| 507
|
h
|
imuCalibration.h
|
/*
* @Author: Sorzn
* @Date: 2020-01-06 11:36:48
* @LastEditTime : 2020-01-06 16:54:52
* @Description: M5Stack project
* @FilePath:
* /home/sakabin/Arduino/libraries/M5Stack/examples/Modules/Bala/imuCalibration.h
*/
// #define M5STACK_MPU6050
#define M5STACK_MPU6886
// #define M5STACK_200Q
#include "M5Stack.h"
extern void imu_CalcInit();
extern void imu_calcGyroOffsets();
extern void imu_update();
extern float imu_getAngleX();
extern void imu_setOffsetX(float x);
extern float imu_getOffsetX();
|
af10a3e8d16db8f02f1c11e328feb67cfbfda576
|
ce32e0e1b9568c710a3168abc3c638d6f9f6c31b
|
/vnpy/api/tap/vntap/include/TapQuoteAPIDataType.h
|
6b4fc39c556c1d8d25e9b0fadb01167bb9fee001
|
[
"MIT"
] |
permissive
|
msincenselee/vnpy
|
55ae76ca32cae47369a66bd2d6589c13d7a0bdd4
|
7f4fd3cd202712b083ed7dc2f346ba4bb1bda6d7
|
refs/heads/vnpy2
| 2022-05-19T10:06:55.504408
| 2022-03-19T15:26:01
| 2022-03-19T15:26:01
| 38,525,806
| 359
| 158
|
MIT
| 2020-09-09T00:09:12
| 2015-07-04T07:27:46
|
C++
|
UTF-8
|
C
| false
| false
| 6,045
|
h
|
TapQuoteAPIDataType.h
|
#ifndef TAP_QUOTE_API_DATA_TYPE_H
#define TAP_QUOTE_API_DATA_TYPE_H
//该文件定义了TapQuoteAPI 使用的数据类型和数据结构
#include "TapAPICommDef.h"
#pragma pack(push, 1)
//=============================================================================
/**
* \addtogroup G_DATATYPE_Q_BASIC 行情基本类型
* @{
*/
//=============================================================================
//! 行情价格
typedef TAPIREAL64 TAPIQPRICE;
//! 行情量
typedef TAPIUINT64 TAPIQVOLUME;
//! 变化值
typedef TAPIINT64 TAPIQDIFF;
/** @}*/
//=============================================================================
/**
* \addtogroup G_STRUCT_Q 行情结构体定义
* @{
*/
//=============================================================================
//! 登录认证信息
struct TapAPIQuoteLoginAuth
{
TAPISTR_20 UserNo; ///< 用户名
TAPIYNFLAG ISModifyPassword; ///< 是否修改密码,'Y'表示是,'N'表示否
TAPISTR_20 Password; ///< 用户密码
TAPISTR_20 NewPassword; ///< 新密码,如果设置了修改密码则需要填写此字段
TAPISTR_20 QuoteTempPassword; ///< 行情临时密码
TAPIYNFLAG ISDDA; ///< 是否需呀动态认证,'Y'表示是,'N'表示否
TAPISTR_30 DDASerialNo; ///< 动态认证码
};
//! 登录反馈信息
struct TapAPIQuotLoginRspInfo
{
TAPISTR_20 UserNo; ///< 用户名
TAPIINT32 UserType; ///< 用户类型
TAPISTR_20 UserName; ///< 昵称,GBK编码格式
TAPISTR_20 QuoteTempPassword; ///< 行情临时密码
TAPISTR_50 ReservedInfo; ///< 用户自己设置的预留信息
TAPISTR_40 LastLoginIP; ///< 上次登录的地址
TAPIUINT32 LastLoginProt; ///< 上次登录使用的端口
TAPIDATETIME LastLoginTime; ///< 上次登录的时间
TAPIDATETIME LastLogoutTime; ///< 上次退出的时间
TAPIDATE TradeDate; ///< 当前交易日期
TAPIDATETIME LastSettleTime; ///< 上次结算时间
TAPIDATETIME StartTime; ///< 系统启动时间
TAPIDATETIME InitTime; ///< 系统初始化时间
};
//! 品种信息
struct TapAPIQuoteCommodityInfo
{
TapAPICommodity Commodity; ///< 品种
TAPISTR_20 CommodityName; ///< 品种名称,GBK编码格式
TAPISTR_30 CommodityEngName; ///< 品种英文名称
TAPIREAL64 ContractSize; ///< 每手乘数
TAPIREAL64 CommodityTickSize; ///< 最小变动价位
TAPIINT32 CommodityDenominator; ///< 报价分母
TAPICHAR CmbDirect; ///< 组合方向
TAPIINT32 CommodityContractLen; ///< 品种合约年限
TAPIYNFLAG IsDST; ///< 是否夏令时,'Y'为是,'N'为否
TapAPICommodity RelateCommodity1; ///< 关联品种1
TapAPICommodity RelateCommodity2; ///< 关联品种2
};
//! 行情合约信息
struct TapAPIQuoteContractInfo
{
TapAPIContract Contract; ///< 合约
TAPICHAR ContractType; ///< 合约类型,'1'表示交易行情合约,'2'表示行情合约
TAPISTR_10 QuoteUnderlyingContract; ///< 行情真实合约
TAPISTR_70 ContractName; ///< 合约名称
TAPIDATE ContractExpDate; ///< 合约到期日
TAPIDATE LastTradeDate; ///< 最后交易日
TAPIDATE FirstNoticeDate; ///< 首次通知日
};
//! 行情全文
struct TapAPIQuoteWhole
{
TapAPIContract Contract; ///< 合约
TAPISTR_10 CurrencyNo; ///< 币种编号
TAPICHAR TradingState; ///< 交易状态。1,集合竞价;2,集合竞价撮合;3,连续交易;4,交易暂停;5,闭市
TAPIDTSTAMP DateTimeStamp; ///< 时间戳
TAPIQPRICE QPreClosingPrice; ///< 昨收盘价
TAPIQPRICE QPreSettlePrice; ///< 昨结算价
TAPIQVOLUME QPrePositionQty; ///< 昨持仓量
TAPIQPRICE QOpeningPrice; ///< 开盘价
TAPIQPRICE QLastPrice; ///< 最新价
TAPIQPRICE QHighPrice; ///< 最高价
TAPIQPRICE QLowPrice; ///< 最低价
TAPIQPRICE QHisHighPrice; ///< 历史最高价
TAPIQPRICE QHisLowPrice; ///< 历史最低价
TAPIQPRICE QLimitUpPrice; ///< 涨停价
TAPIQPRICE QLimitDownPrice; ///< 跌停价
TAPIQVOLUME QTotalQty; ///< 当日总成交量
TAPIQPRICE QTotalTurnover; ///< 当日成交金额
TAPIQVOLUME QPositionQty; ///< 持仓量
TAPIQPRICE QAveragePrice; ///< 均价
TAPIQPRICE QClosingPrice; ///< 收盘价
TAPIQPRICE QSettlePrice; ///< 结算价
TAPIQVOLUME QLastQty; ///< 最新成交量
TAPIQPRICE QBidPrice[20]; ///< 买价1-20档
TAPIQVOLUME QBidQty[20]; ///< 买量1-20档
TAPIQPRICE QAskPrice[20]; ///< 卖价1-20档
TAPIQVOLUME QAskQty[20]; ///< 卖量1-20档
TAPIQPRICE QImpliedBidPrice; ///< 隐含买价
TAPIQVOLUME QImpliedBidQty; ///< 隐含买量
TAPIQPRICE QImpliedAskPrice; ///< 隐含卖价
TAPIQVOLUME QImpliedAskQty; ///< 隐含卖量
TAPIQPRICE QPreDelta; ///< 昨虚实度
TAPIQPRICE QCurrDelta; ///< 今虚实度
TAPIQVOLUME QInsideQty; ///< 内盘量
TAPIQVOLUME QOutsideQty; ///< 外盘量
TAPIQPRICE QTurnoverRate; ///< 换手率
TAPIQVOLUME Q5DAvgQty; ///< 五日均量
TAPIQPRICE QPERatio; ///< 市盈率
TAPIQPRICE QTotalValue; ///< 总市值
TAPIQPRICE QNegotiableValue; ///< 流通市值
TAPIQDIFF QPositionTrend; ///< 持仓走势
TAPIQPRICE QChangeSpeed; ///< 涨速
TAPIQPRICE QChangeRate; ///< 涨幅
TAPIQPRICE QChangeValue; ///< 涨跌值
TAPIQPRICE QSwing; ///< 振幅
TAPIQVOLUME QTotalBidQty; ///< 委买总量
TAPIQVOLUME QTotalAskQty; ///< 委卖总量
TapAPIContract UnderlyContract; ///< 虚拟合约对应的真实合约
};
/** @}*/
#pragma pack(pop)
#endif
|
b043c4eea7db5365675d3276bd4a8a7353aada12
|
21c92afbd7fd022a206fb31294c523aebb770104
|
/SuiteSparse/GraphBLAS/Demo/Program/kron_demo.c
|
f2d4e3d1dccf7bfe929ae30e5b8f7d1e4f19903b
|
[
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown",
"GPL-2.0-or-later",
"GPL-3.0-only",
"LGPL-2.1-or-later",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] |
permissive
|
jlblancoc/suitesparse-metis-for-windows
|
70e6bcab2b525afb41758d61f823efa0618f67cf
|
5ee2eb4bc7bfd6d27af2f7fb027b1545cfc0fa3f
|
refs/heads/master
| 2023-08-30T21:15:39.624300
| 2023-03-09T10:16:48
| 2023-03-09T10:16:48
| 16,236,582
| 423
| 251
|
BSD-3-Clause
| 2023-03-09T10:18:08
| 2014-01-25T18:06:21
|
C
|
UTF-8
|
C
| false
| false
| 5,442
|
c
|
kron_demo.c
|
//------------------------------------------------------------------------------
// GraphBLAS/Demo/Program/kron_demo.c: Kronkecker product
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2018, All Rights Reserved.
// http://suitesparse.com See GraphBLAS/Doc/License.txt for license.
//------------------------------------------------------------------------------
// Reads two graphs from two files and computes their Kronecker product,
// C = kron (A,B), writing the result to a file.
//
// kron_demo A.tsv B.tsv C.tsv
//
// Where A.tsv and B.tsv are two tab- or space-delimited triplet files with
// 1-based indices. Each line has the form:
//
// i j x
//
// where A(i,j)=x is performed by GrB_Matrix_build, to construct the matrix.
// The dimensions of A and B are assumed to be the largest row and column
// indices that appear in the files. The file C.tsv is the filename of the
// output file for C=kron(A,B), also with 1-based indices.
#include "demos.h"
// macro used by OK(...) to free workspace if an error occurs
#define FREE_ALL \
GrB_free (&A) ; \
GrB_free (&B) ; \
GrB_free (&C) ; \
if (Afile != NULL) fclose (Afile) ; \
if (Bfile != NULL) fclose (Bfile) ; \
if (Cfile != NULL) fclose (Cfile) ; \
if (I != NULL) free (I) ; \
if (J != NULL) free (J) ; \
if (X != NULL) free (X) ; \
GrB_finalize ( ) ;
int main (int argc, char **argv)
{
//--------------------------------------------------------------------------
// check inputs
//--------------------------------------------------------------------------
GrB_Matrix A = NULL, B = NULL, C = NULL ;
GrB_Index *I = NULL, *J = NULL ;
FILE *Afile = NULL, *Bfile = NULL, *Cfile = NULL ;
double *X = NULL ;
GrB_Info info ;
double tic [2], t ;
OK (GrB_init (GrB_NONBLOCKING)) ;
// printf ("argc %d\n", argc) ;
if (argc != 4)
{
FREE_ALL ;
fprintf (stderr, "usage: kron_demo A.tsv B.tsv C.tsv\n") ;
exit (1) ;
}
Afile = fopen (argv [1], "r") ;
Bfile = fopen (argv [2], "r") ;
Cfile = fopen (argv [3], "w") ;
if (Afile == NULL || Bfile == NULL || Cfile == NULL)
{
FREE_ALL ;
fprintf (stderr, "unable to read input files or create output file\n") ;
exit (1) ;
}
//--------------------------------------------------------------------------
// get A and B from input files
//--------------------------------------------------------------------------
// this would be faster and take less memory if GraphBLAS had a built-in
// read-from-file operation
OK (read_matrix (&A, Afile, false, false, true, false, false)) ;
OK (read_matrix (&B, Bfile, false, false, true, false, false)) ;
fclose (Afile) ;
fclose (Bfile) ;
Afile = NULL ;
Bfile = NULL ;
GrB_Index anrows, ancols, bnrows, bncols, anvals, bnvals ;
OK (GrB_Matrix_nrows (&anrows, A)) ;
OK (GrB_Matrix_ncols (&ancols, A)) ;
OK (GrB_Matrix_nvals (&anvals, A)) ;
OK (GrB_Matrix_nrows (&bnrows, B)) ;
OK (GrB_Matrix_ncols (&bncols, B)) ;
OK (GrB_Matrix_nvals (&bnvals, B)) ;
//--------------------------------------------------------------------------
// C = kron (A,B)
//--------------------------------------------------------------------------
OK (GrB_Matrix_new (&C, GrB_FP64, anrows * bnrows, ancols * bncols)) ;
simple_tic (tic) ;
OK (GxB_kron (C, NULL, NULL, GrB_TIMES_FP64, A, B, NULL)) ;
t = simple_toc (tic) ;
OK (GrB_free (&A)) ;
OK (GrB_free (&B)) ;
//--------------------------------------------------------------------------
// report results
//--------------------------------------------------------------------------
GrB_Index cnrows, cncols, cnvals ;
OK (GrB_Matrix_nrows (&cnrows, C)) ;
OK (GrB_Matrix_ncols (&cncols, C)) ;
OK (GrB_Matrix_nvals (&cnvals, C)) ;
// note that integers of type GrB_Index should be printed with the
// %PRIu64 format.
fprintf (stderr, "GraphBLAS GxB_kron:\n"
"A: %" PRIu64 "-by-%" PRIu64 ", %" PRIu64 " entries.\n"
"B: %" PRIu64 "-by-%" PRIu64 ", %" PRIu64 " entries.\n"
"C: %" PRIu64 "-by-%" PRIu64 ", %" PRIu64 " entries.\n"
"time: %g seconds, rate: nval(C)/t = %g million/sec\n",
anrows, ancols, anvals,
bnrows, bncols, bnvals,
cnrows, cncols, cnvals,
t, 1e-6*((double) cnvals) / t) ;
//--------------------------------------------------------------------------
// write C to the output file
//--------------------------------------------------------------------------
// this would be faster and take less memory if GraphBLAS had a built-in
// write-to-file operation
I = (GrB_Index *) malloc ((cnvals+1) * sizeof (GrB_Index)) ;
J = (GrB_Index *) malloc ((cnvals+1) * sizeof (GrB_Index)) ;
X = (double *) malloc ((cnvals+1) * sizeof (double )) ;
if (I == NULL || J == NULL || X == NULL)
{
fprintf (stderr, "out of memory\n") ;
FREE_ALL ;
exit (1) ;
}
OK (GrB_Matrix_extractTuples (I, J, X, &cnvals, C)) ;
for (int64_t k = 0 ; k < cnvals ; k++)
{
fprintf (Cfile, "%" PRIu64 "\t%" PRIu64 "\t%.17g\n", 1 + I [k], 1 + J [k], X [k]) ;
}
FREE_ALL ;
return (0) ;
}
|
b87d8a55d42a21d04155655bcce2e0d49e485873
|
73cbd968d3e7fb77d3907922b085a4afa73e7339
|
/src/misc/memory_pool.h
|
8e59e0ea712b010cb82a48594fc93e0206b5d533
|
[
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
cmacrae/spacebar
|
e671ac74f53a9a6c59fbf4f8eba37fb0b7c58a91
|
8431008fcf97ba57228a21d212bfd1738db6e7c9
|
refs/heads/master
| 2023-02-20T23:37:18.991372
| 2022-05-07T16:41:50
| 2022-05-09T09:42:02
| 251,004,953
| 1,032
| 52
|
MIT
| 2023-02-16T20:33:45
| 2020-03-29T10:23:10
|
C
|
UTF-8
|
C
| false
| false
| 1,092
|
h
|
memory_pool.h
|
#ifndef MEMORY_POOL_H
#define MEMORY_POOL_H
#define KILOBYTES(value) ((value) * 1024ULL)
#define MEGABYTES(value) (KILOBYTES(value) * 1024ULL)
#define GIGABYTES(value) (MEGABYTES(value) * 1024ULL)
struct memory_pool
{
void *memory;
uint64_t size;
volatile uint64_t used;
};
bool memory_pool_init(struct memory_pool *pool, uint64_t size)
{
pool->used = 0;
pool->size = size;
pool->memory = mmap(0, size, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE, -1, 0);
return pool->memory != NULL;
}
#define memory_pool_push(p, t) memory_pool_push_size(p, sizeof(t))
void *memory_pool_push_size(struct memory_pool *pool, uint64_t size)
{
for (;;) {
uint64_t used = pool->used;
uint64_t new_used = used + size;
if (new_used < pool->size) {
if (__sync_bool_compare_and_swap(&pool->used, used, new_used)) {
return pool->memory + used;
}
} else {
if (__sync_bool_compare_and_swap(&pool->used, used, size)) {
return pool->memory;
}
}
}
}
#endif
|
ab00168d245c0d3f8ae611d512088972f78d6fe2
|
62669fbaa3d9b52bd34a8ab8bf781f2d18b3778b
|
/tools/imglab/src/cluster.h
|
6cb41a373649507903b16119981f1b585846260f
|
[
"BSL-1.0",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
davisking/dlib
|
05c04e5c73c8b92526c77431e9bb622974ffe3f2
|
f6c58c2d21a49d84967e48ffa33e7d1c783ae671
|
refs/heads/master
| 2023-09-06T08:22:13.063202
| 2023-08-26T23:55:59
| 2023-08-26T23:55:59
| 16,331,291
| 13,118
| 3,600
|
BSL-1.0
| 2023-09-10T12:50:42
| 2014-01-29T00:45:33
|
C++
|
UTF-8
|
C
| false
| false
| 323
|
h
|
cluster.h
|
// Copyright (C) 2015 Davis E. King (davis@dlib.net)
// License: Boost Software License See LICENSE.txt for the full license.
#ifndef DLIB_IMGLAB_ClUSTER_H_
#define DLIB_IMGLAB_ClUSTER_H_
#include <dlib/cmd_line_parser.h>
int cluster_dataset(const dlib::command_line_parser& parser);
#endif //DLIB_IMGLAB_ClUSTER_H_
|
aabe4bee6cdd81d3ec4e430bd157cc05aa6274c7
|
cfb156de35a7f3987f88d6b025c762921f5e9931
|
/libc/platform/bionic/fdtrack.h
|
7fc304af1501fcd2eb73105d0c1d899417307ee3
|
[
"BSD-4-Clause-UC",
"LicenseRef-scancode-warranty-disclaimer",
"SMLNJ",
"BSD-3-Clause",
"LicenseRef-scancode-ibm-dhcp",
"Martin-Birgmeier",
"SunPro",
"MIT",
"BSD-4-Clause",
"ISC",
"Apache-2.0",
"HPND",
"BSD-2-Clause"
] |
permissive
|
aosp-mirror/platform_bionic
|
6faa82304cb67f3347a9b04f2f0eb712444d764a
|
143f3cea320becbfc836309fade5dfa1074731d0
|
refs/heads/master
| 2023-07-08T07:44:02.618070
| 2023-06-26T23:35:08
| 2023-06-26T23:35:08
| 65,830
| 300
| 131
| null | 2018-11-05T20:53:52
| 2008-10-21T18:19:55
|
Objective-C
|
UTF-8
|
C
| false
| false
| 3,169
|
h
|
fdtrack.h
|
/*
* Copyright (C) 2019 The Android Open Source Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/
#pragma once
#include <sys/cdefs.h>
#include <stdbool.h>
#include <stdint.h>
__BEGIN_DECLS
// Types of an android_fdtrack_event.
enum android_fdtrack_event_type {
// File descriptor creation: create is the active member of android_fdtrack_event::data.
ANDROID_FDTRACK_EVENT_TYPE_CREATE,
// File descriptor closed.
ANDROID_FDTRACK_EVENT_TYPE_CLOSE,
};
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wnullability-completeness"
struct android_fdtrack_event {
// File descriptor for which this event occurred.
int fd;
// Type of event: this is one of the enumerators of android_fdtrack_event_type.
uint8_t type;
// Data for the event.
union {
struct {
const char* function_name;
} create;
} data;
};
#pragma clang diagnostic pop
// Callback invoked upon file descriptor creation/closure.
typedef void (*_Nullable android_fdtrack_hook_t)(struct android_fdtrack_event* _Nullable);
// Register a hook which is called to track fd lifecycle events.
// Set value to null to disable tracking.
bool android_fdtrack_compare_exchange_hook(android_fdtrack_hook_t* _Nonnull expected,
android_fdtrack_hook_t value) __INTRODUCED_IN(30);
// Enable/disable fdtrack *on the current thread*.
// This is primarily useful when performing operations which you don't want to track
// (e.g. when emitting already-recorded information).
bool android_fdtrack_get_enabled() __INTRODUCED_IN(30);
bool android_fdtrack_set_enabled(bool new_value) __INTRODUCED_IN(30);
// Globally enable/disable fdtrack.
// This is primaryily useful to reenable fdtrack after it's been automatically disabled post-fork.
void android_fdtrack_set_globally_enabled(bool new_value) __INTRODUCED_IN(31);
__END_DECLS
|
d150ff66a7448ce6d8b58885220209f43fe3ad12
|
e814383d36a10839104efaa4df277996ab220fa3
|
/oshmem/shmem/fortran/shmem_collect_f.c
|
b05f8b567643d34d8353fa7b489e3b0e70b79d09
|
[
"mpich2",
"BSD-3-Clause-Open-MPI"
] |
permissive
|
open-mpi/ompi
|
a1d7483ae1d83dd8fd8ae3ee95e832e0a0ee04e3
|
1edfdb025c4450f694600083ad871cf06c8d45cd
|
refs/heads/main
| 2023-09-01T01:30:02.040705
| 2023-08-29T17:32:18
| 2023-08-29T17:32:18
| 24,107,001
| 2,008
| 973
|
NOASSERTION
| 2023-09-14T20:59:26
| 2014-09-16T16:08:30
|
C
|
UTF-8
|
C
| false
| false
| 5,613
|
c
|
shmem_collect_f.c
|
/*
* Copyright (c) 2013-2018 Mellanox Technologies, Inc.
* All rights reserved.
* Copyright (c) 2013 Cisco Systems, Inc. All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
*
* $HEADER$
*/
#include "oshmem_config.h"
#include "oshmem/shmem/fortran/bindings.h"
#include "oshmem/include/shmem.h"
#include "oshmem/constants.h"
#include "oshmem/mca/scoll/scoll.h"
#include "oshmem/proc/proc.h"
#include "oshmem/op/op.h"
#if OSHMEM_PROFILING
#include "oshmem/shmem/fortran/pbindings.h"
SHMEM_GENERATE_WEAK_BINDINGS(SHMEM_COLLECT4, shmem_collect4)
SHMEM_GENERATE_WEAK_BINDINGS(SHMEM_COLLECT8, shmem_collect8)
SHMEM_GENERATE_WEAK_BINDINGS(SHMEM_COLLECT32, shmem_collect32)
SHMEM_GENERATE_WEAK_BINDINGS(SHMEM_COLLECT64, shmem_collect64)
SHMEM_GENERATE_WEAK_BINDINGS(SHMEM_FCOLLECT4, shmem_fcollect4)
SHMEM_GENERATE_WEAK_BINDINGS(SHMEM_FCOLLECT8, shmem_fcollect8)
SHMEM_GENERATE_WEAK_BINDINGS(SHMEM_FCOLLECT32, shmem_fcollect32)
SHMEM_GENERATE_WEAK_BINDINGS(SHMEM_FCOLLECT64, shmem_fcollect64)
#include "oshmem/shmem/fortran/profile-defines.h"
#endif
SHMEM_GENERATE_FORTRAN_BINDINGS_SUB (void,
SHMEM_COLLECT4,
shmem_collect4_,
shmem_collect4__,
shmem_collect4_f,
(FORTRAN_POINTER_T target, FORTRAN_POINTER_T source, MPI_Fint *nlong, MPI_Fint *PE_start, MPI_Fint * logPE_stride, MPI_Fint *PE_size, FORTRAN_POINTER_T pSync),
(target,source,nlong,PE_start,logPE_stride,PE_size,pSync) )
SHMEM_GENERATE_FORTRAN_BINDINGS_SUB (void,
SHMEM_COLLECT8,
shmem_collect8_,
shmem_collect8__,
shmem_collect8_f,
(FORTRAN_POINTER_T target, FORTRAN_POINTER_T source, MPI_Fint *nlong, MPI_Fint *PE_start, MPI_Fint * logPE_stride, MPI_Fint *PE_size, FORTRAN_POINTER_T pSync),
(target,source,nlong,PE_start,logPE_stride,PE_size,pSync) )
SHMEM_GENERATE_FORTRAN_BINDINGS_SUB (void,
SHMEM_COLLECT32,
shmem_collect32_,
shmem_collect32__,
shmem_collect32_f,
(FORTRAN_POINTER_T target, FORTRAN_POINTER_T source, MPI_Fint *nlong, MPI_Fint *PE_start, MPI_Fint * logPE_stride, MPI_Fint *PE_size, FORTRAN_POINTER_T pSync),
(target,source,nlong,PE_start,logPE_stride,PE_size,pSync) )
SHMEM_GENERATE_FORTRAN_BINDINGS_SUB (void,
SHMEM_COLLECT64,
shmem_collect64_,
shmem_collect64__,
shmem_collect64_f,
(FORTRAN_POINTER_T target, FORTRAN_POINTER_T source, MPI_Fint *nlong, MPI_Fint *PE_start, MPI_Fint * logPE_stride, MPI_Fint *PE_size, FORTRAN_POINTER_T pSync),
(target,source,nlong,PE_start,logPE_stride,PE_size,pSync) )
SHMEM_GENERATE_FORTRAN_BINDINGS_SUB (void,
SHMEM_FCOLLECT4,
shmem_fcollect4_,
shmem_fcollect4__,
shmem_fcollect4_f,
(FORTRAN_POINTER_T target, FORTRAN_POINTER_T source, MPI_Fint *nlong, MPI_Fint *PE_start, MPI_Fint * logPE_stride, MPI_Fint *PE_size, FORTRAN_POINTER_T pSync),
(target,source,nlong,PE_start,logPE_stride,PE_size,pSync) )
SHMEM_GENERATE_FORTRAN_BINDINGS_SUB (void,
SHMEM_FCOLLECT8,
shmem_fcollect8_,
shmem_fcollect8__,
shmem_fcollect8_f,
(FORTRAN_POINTER_T target, FORTRAN_POINTER_T source, MPI_Fint *nlong, MPI_Fint *PE_start, MPI_Fint * logPE_stride, MPI_Fint *PE_size, FORTRAN_POINTER_T pSync),
(target,source,nlong,PE_start,logPE_stride,PE_size,pSync) )
SHMEM_GENERATE_FORTRAN_BINDINGS_SUB (void,
SHMEM_FCOLLECT32,
shmem_fcollect32_,
shmem_fcollect32__,
shmem_fcollect32_f,
(FORTRAN_POINTER_T target, FORTRAN_POINTER_T source, MPI_Fint *nlong, MPI_Fint *PE_start, MPI_Fint * logPE_stride, MPI_Fint *PE_size, FORTRAN_POINTER_T pSync),
(target,source,nlong,PE_start,logPE_stride,PE_size,pSync) )
SHMEM_GENERATE_FORTRAN_BINDINGS_SUB (void,
SHMEM_FCOLLECT64,
shmem_fcollect64_,
shmem_fcollect64__,
shmem_fcollect64_f,
(FORTRAN_POINTER_T target, FORTRAN_POINTER_T source, MPI_Fint *nlong, MPI_Fint *PE_start, MPI_Fint * logPE_stride, MPI_Fint *PE_size, FORTRAN_POINTER_T pSync),
(target,source,nlong,PE_start,logPE_stride,PE_size,pSync) )
#define SHMEM_COLLECT(F_NAME, T_NAME) void F_NAME(FORTRAN_POINTER_T target, \
FORTRAN_POINTER_T source, \
MPI_Fint *nlong, \
MPI_Fint *PE_start, \
MPI_Fint * logPE_stride, \
MPI_Fint *PE_size, \
FORTRAN_POINTER_T pSync)\
{\
int rc;\
oshmem_group_t *group;\
/* Create group basing PE_start, logPE_stride and PE_size */\
group = oshmem_proc_group_create_nofail(OMPI_FINT_2_INT(*PE_start), \
(1 << OMPI_FINT_2_INT(*logPE_stride)), \
OMPI_FINT_2_INT(*PE_size));\
oshmem_op_t* op = T_NAME;\
/* Call collective broadcast operation */\
rc = group->g_scoll.scoll_collect( group, \
FPTR_2_VOID_PTR(target), \
FPTR_2_VOID_PTR(source), \
OMPI_FINT_2_INT(*nlong) * op->dt_size, \
FPTR_2_VOID_PTR(pSync), \
false, SCOLL_DEFAULT_ALG);\
oshmem_proc_group_destroy(group);\
RUNTIME_CHECK_RC(rc);\
}
SHMEM_COLLECT(shmem_collect4_f, oshmem_op_prod_fint4)
SHMEM_COLLECT(shmem_collect8_f, oshmem_op_prod_fint8)
SHMEM_COLLECT(shmem_collect32_f, oshmem_op_prod_fint4)
SHMEM_COLLECT(shmem_collect64_f, oshmem_op_prod_fint8)
SHMEM_COLLECT(shmem_fcollect4_f, oshmem_op_prod_freal4)
SHMEM_COLLECT(shmem_fcollect8_f, oshmem_op_prod_freal8)
SHMEM_COLLECT(shmem_fcollect32_f, oshmem_op_prod_freal4)
SHMEM_COLLECT(shmem_fcollect64_f, oshmem_op_prod_freal8)
|
684487e462c883f8e5f4750c26156251047275b9
|
035660e8cc10571ebbd0d4393fef063bb7eb98f6
|
/src/overlays/actors/ovl_En_Door/z_en_door.h
|
03dc31ab6d2c091b3563bd2be406671a819593a4
|
[] |
no_license
|
zeldaret/mm
|
f163a5e7c4314105777369fa7671ce9c2a99922a
|
4ae00e909e74044f05155683b49d2561f91de7ba
|
refs/heads/master
| 2023-08-06T07:22:04.912966
| 2023-08-04T20:36:03
| 2023-08-04T20:36:03
| 247,875,852
| 915
| 328
| null | 2023-09-14T11:48:59
| 2020-03-17T04:03:07
|
C
|
UTF-8
|
C
| false
| false
| 896
|
h
|
z_en_door.h
|
#ifndef Z_EN_DOOR_H
#define Z_EN_DOOR_H
#include "global.h"
#include "z64door.h"
#include "objects/gameplay_keep/gameplay_keep.h"
struct EnDoor;
typedef void (*EnDoorActionFunc)(struct EnDoor*, PlayState*);
#define ENDOOR_GET_TYPE(thisx) (((thisx)->params >> 7) & 7)
#define ENDOOR_GET_PARAM_7F(thisx) (((thisx)->params) & 0x7F)
typedef enum EnDoorType {
/* 0 */ ENDOOR_TYPE_0,
/* 1 */ ENDOOR_TYPE_1,
/* 2 */ ENDOOR_TYPE_2,
/* 3 */ ENDOOR_TYPE_3,
/* 4 */ ENDOOR_TYPE_4,
/* 5 */ ENDOOR_TYPE_5,
/* 6 */ ENDOOR_TYPE_6,
/* 7 */ ENDOOR_TYPE_7
} EnDoorType;
typedef struct EnDoor {
/* 0x000 */ KnobDoorActor knobDoor;
/* 0x1A4 */ u8 doorType;
/* 0x1A5 */ u8 switchFlag;
/* 0x1A6 */ u8 unk_1A6;
/* 0x1A7 */ s8 unk_1A7;
/* 0x1A8 */ Vec3s limbTable[DOOR_LIMB_MAX];
/* 0x1C8 */ EnDoorActionFunc actionFunc;
} EnDoor;
#endif // Z_EN_DOOR_H
|
f87c4a6fc37725da674d8e545a51bfd74d176afe
|
98fb215e1111bc72ad69b5c4634adcf73ca2f8ec
|
/GRRLIB/GRRLIB/GRRLIB_gecko.c
|
8e004e46a400cc18f46a2bc29929aac60087fd69
|
[
"GPL-1.0-or-later",
"MIT"
] |
permissive
|
GRRLIB/GRRLIB
|
aa3915bc232cadd17b74ce7e666706529d0b87b0
|
f2235220d5b1e10fd52e534bdd4da26284b7e737
|
refs/heads/master
| 2023-02-24T23:59:18.082858
| 2023-02-05T19:22:25
| 2023-02-05T19:37:15
| 32,872,649
| 115
| 29
|
MIT
| 2023-08-24T14:23:21
| 2015-03-25T15:17:19
|
C
|
UTF-8
|
C
| false
| false
| 2,052
|
c
|
GRRLIB_gecko.c
|
/*------------------------------------------------------------------------------
Copyright (c) 2009-2019 The GRRLIB Team
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
------------------------------------------------------------------------------*/
#include <gccore.h>
#include <stdarg.h>
#include <stdio.h>
static bool geckoinit = false;
/**
* Initialize USB Gecko.
* @return Returns @c true if everything worked, @c false if problems occurred.
*/
bool GRRLIB_GeckoInit() {
s32 geckoattached = usb_isgeckoalive(EXI_CHANNEL_1);
if (geckoattached) {
usb_flush(EXI_CHANNEL_1);
geckoinit = true;
return true;
}
else {
return false;
}
}
/**
* Print Gecko.
* @param text Text to print.
* @param ... Optional arguments.
*/
void GRRLIB_GeckoPrintf (const char *text, ...) {
int size;
char tmp[1024];
if (geckoinit == false) {
return;
}
va_list argp;
va_start(argp, text);
size = vsnprintf(tmp, sizeof(tmp), text, argp);
va_end(argp);
usb_sendbuffer_safe(1, tmp, size);
}
|
0c90cdf78605c1cf9336184e6e91d12c31b8e7da
|
9ceacf33fd96913cac7ef15492c126d96cae6911
|
/sys/dev/ic/apcdmareg.h
|
3e68c7cda890b94ad448565c3f9ba60d0f0562aa
|
[] |
no_license
|
openbsd/src
|
ab97ef834fd2d5a7f6729814665e9782b586c130
|
9e79f3a0ebd11a25b4bff61e900cb6de9e7795e9
|
refs/heads/master
| 2023-09-02T18:54:56.624627
| 2023-09-02T15:16:12
| 2023-09-02T15:16:12
| 66,966,208
| 3,394
| 1,235
| null | 2023-08-08T02:42:25
| 2016-08-30T18:18:25
|
C
|
UTF-8
|
C
| false
| false
| 4,077
|
h
|
apcdmareg.h
|
/* $OpenBSD: apcdmareg.h,v 1.2 2003/06/02 18:53:18 jason Exp $ */
/*
* Copyright (c) 2001 Jason L. Wright (jason@thought.net)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
/*
* Definitions for Sun APC DMA controller.
*/
/* APC DMA registers */
#define APC_CSR 0x0010 /* control/status */
#define APC_CVA 0x0020 /* capture virtual address */
#define APC_CC 0x0024 /* capture count */
#define APC_CNVA 0x0028 /* capture next virtual address */
#define APC_CNC 0x002c /* capture next count */
#define APC_PVA 0x0030 /* playback virtual address */
#define APC_PC 0x0034 /* playback count */
#define APC_PNVA 0x0038 /* playback next virtual address */
#define APC_PNC 0x003c /* playback next count */
/*
* APC DMA Register definitions
*/
#define APC_CSR_RESET 0x00000001 /* reset */
#define APC_CSR_CDMA_GO 0x00000004 /* capture dma go */
#define APC_CSR_PDMA_GO 0x00000008 /* playback dma go */
#define APC_CSR_CODEC_RESET 0x00000020 /* codec reset */
#define APC_CSR_CPAUSE 0x00000040 /* capture dma pause */
#define APC_CSR_PPAUSE 0x00000080 /* playback dma pause */
#define APC_CSR_CMIE 0x00000100 /* capture pipe empty enb */
#define APC_CSR_CMI 0x00000200 /* capture pipe empty intr */
#define APC_CSR_CD 0x00000400 /* capture nva dirty */
#define APC_CSR_CM 0x00000800 /* capture data lost */
#define APC_CSR_PMIE 0x00001000 /* pb pipe empty intr enable */
#define APC_CSR_PD 0x00002000 /* pb nva dirty */
#define APC_CSR_PM 0x00004000 /* pb pipe empty */
#define APC_CSR_PMI 0x00008000 /* pb pipe empty interrupt */
#define APC_CSR_EIE 0x00010000 /* error interrupt enable */
#define APC_CSR_CIE 0x00020000 /* capture intr enable */
#define APC_CSR_PIE 0x00040000 /* playback intr enable */
#define APC_CSR_GIE 0x00080000 /* general intr enable */
#define APC_CSR_EI 0x00100000 /* error interrupt */
#define APC_CSR_CI 0x00200000 /* capture interrupt */
#define APC_CSR_PI 0x00400000 /* playback interrupt */
#define APC_CSR_GI 0x00800000 /* general interrupt */
#define APC_CSR_PLAY ( \
APC_CSR_EI | \
APC_CSR_GIE | \
APC_CSR_PIE | \
APC_CSR_EIE | \
APC_CSR_PDMA_GO | \
APC_CSR_PMIE )
#define APC_CSR_CAPTURE ( \
APC_CSR_EI | \
APC_CSR_GIE | \
APC_CSR_CIE | \
APC_CSR_EIE | \
APC_CSR_CDMA_GO )
#define APC_CSR_PLAY_PAUSE (~( \
APC_CSR_PPAUSE | \
APC_CSR_GI | \
APC_CSR_PI | \
APC_CSR_CI | \
APC_CSR_EI | \
APC_CSR_PMI | \
APC_CSR_PMIE | \
APC_CSR_CMI | \
APC_CSR_CMIE ) )
#define APC_CSR_CAPTURE_PAUSE (~( \
APC_CSR_PPAUSE | \
APC_CSR_GI | \
APC_CSR_PI | \
APC_CSR_CI | \
APC_CSR_EI | \
APC_CSR_PMI | \
APC_CSR_PMIE | \
APC_CSR_CMI | \
APC_CSR_CMIE ) )
#define APC_CSR_INTR_MASK ( \
APC_CSR_GI | \
APC_CSR_PI | \
APC_CSR_CI | \
APC_CSR_EI | \
APC_CSR_PMI | \
APC_CSR_CMI )
|
f140881dd9188acf297e8fdc6e2707255b4a9e36
|
c732e95f868dfe1b12760a11bab15c15216a27bf
|
/lib/archive/xz/src/liblzma/simple/simple_coder.c
|
ed2d7fb02cca0352810064857da11c147676726f
|
[
"MIT"
] |
permissive
|
baulk/baulk
|
9fb2414533297cbee62f13a46de5c8a0eb57b200
|
a501b7a16f909b39724a8362dba868ca69f66602
|
refs/heads/master
| 2023-08-03T22:57:14.537212
| 2023-07-30T13:46:50
| 2023-07-30T13:46:50
| 245,962,600
| 354
| 42
|
MIT
| 2023-07-30T13:46:51
| 2020-03-09T06:44:10
|
C
|
UTF-8
|
C
| false
| false
| 8,839
|
c
|
simple_coder.c
|
///////////////////////////////////////////////////////////////////////////////
//
/// \file simple_coder.c
/// \brief Wrapper for simple filters
///
/// Simple filters don't change the size of the data i.e. number of bytes
/// in equals the number of bytes out.
//
// Author: Lasse Collin
//
// This file has been put into the public domain.
// You can do whatever you want with this file.
//
///////////////////////////////////////////////////////////////////////////////
#include "simple_private.h"
/// Copied or encodes/decodes more data to out[].
static lzma_ret
copy_or_code(lzma_simple_coder *coder, const lzma_allocator *allocator,
const uint8_t *restrict in, size_t *restrict in_pos,
size_t in_size, uint8_t *restrict out,
size_t *restrict out_pos, size_t out_size, lzma_action action)
{
assert(!coder->end_was_reached);
if (coder->next.code == NULL) {
lzma_bufcpy(in, in_pos, in_size, out, out_pos, out_size);
// Check if end of stream was reached.
if (coder->is_encoder && action == LZMA_FINISH
&& *in_pos == in_size)
coder->end_was_reached = true;
} else {
// Call the next coder in the chain to provide us some data.
const lzma_ret ret = coder->next.code(
coder->next.coder, allocator,
in, in_pos, in_size,
out, out_pos, out_size, action);
if (ret == LZMA_STREAM_END) {
assert(!coder->is_encoder
|| action == LZMA_FINISH);
coder->end_was_reached = true;
} else if (ret != LZMA_OK) {
return ret;
}
}
return LZMA_OK;
}
static size_t
call_filter(lzma_simple_coder *coder, uint8_t *buffer, size_t size)
{
const size_t filtered = coder->filter(coder->simple,
coder->now_pos, coder->is_encoder,
buffer, size);
coder->now_pos += filtered;
return filtered;
}
static lzma_ret
simple_code(void *coder_ptr, const lzma_allocator *allocator,
const uint8_t *restrict in, size_t *restrict in_pos,
size_t in_size, uint8_t *restrict out,
size_t *restrict out_pos, size_t out_size, lzma_action action)
{
lzma_simple_coder *coder = coder_ptr;
// TODO: Add partial support for LZMA_SYNC_FLUSH. We can support it
// in cases when the filter is able to filter everything. With most
// simple filters it can be done at offset that is a multiple of 2,
// 4, or 16. With x86 filter, it needs good luck, and thus cannot
// be made to work predictably.
if (action == LZMA_SYNC_FLUSH)
return LZMA_OPTIONS_ERROR;
// Flush already filtered data from coder->buffer[] to out[].
if (coder->pos < coder->filtered) {
lzma_bufcpy(coder->buffer, &coder->pos, coder->filtered,
out, out_pos, out_size);
// If we couldn't flush all the filtered data, return to
// application immediately.
if (coder->pos < coder->filtered)
return LZMA_OK;
if (coder->end_was_reached) {
assert(coder->filtered == coder->size);
return LZMA_STREAM_END;
}
}
// If we get here, there is no filtered data left in the buffer.
coder->filtered = 0;
assert(!coder->end_was_reached);
// If there is more output space left than there is unfiltered data
// in coder->buffer[], flush coder->buffer[] to out[], and copy/code
// more data to out[] hopefully filling it completely. Then filter
// the data in out[]. This step is where most of the data gets
// filtered if the buffer sizes used by the application are reasonable.
const size_t out_avail = out_size - *out_pos;
const size_t buf_avail = coder->size - coder->pos;
if (out_avail > buf_avail || buf_avail == 0) {
// Store the old position so that we know from which byte
// to start filtering.
const size_t out_start = *out_pos;
// Flush data from coder->buffer[] to out[], but don't reset
// coder->pos and coder->size yet. This way the coder can be
// restarted if the next filter in the chain returns e.g.
// LZMA_MEM_ERROR.
//
// Do the memcpy() conditionally because out can be NULL
// (in which case buf_avail is always 0). Calling memcpy()
// with a null-pointer is undefined even if the third
// argument is 0.
if (buf_avail > 0)
memcpy(out + *out_pos, coder->buffer + coder->pos,
buf_avail);
*out_pos += buf_avail;
// Copy/Encode/Decode more data to out[].
{
const lzma_ret ret = copy_or_code(coder, allocator,
in, in_pos, in_size,
out, out_pos, out_size, action);
assert(ret != LZMA_STREAM_END);
if (ret != LZMA_OK)
return ret;
}
// Filter out[] unless there is nothing to filter.
// This way we avoid null pointer + 0 (undefined behavior)
// when out == NULL.
const size_t size = *out_pos - out_start;
const size_t filtered = size == 0 ? 0 : call_filter(
coder, out + out_start, size);
const size_t unfiltered = size - filtered;
assert(unfiltered <= coder->allocated / 2);
// Now we can update coder->pos and coder->size, because
// the next coder in the chain (if any) was successful.
coder->pos = 0;
coder->size = unfiltered;
if (coder->end_was_reached) {
// The last byte has been copied to out[] already.
// They are left as is.
coder->size = 0;
} else if (unfiltered > 0) {
// There is unfiltered data left in out[]. Copy it to
// coder->buffer[] and rewind *out_pos appropriately.
*out_pos -= unfiltered;
memcpy(coder->buffer, out + *out_pos, unfiltered);
}
} else if (coder->pos > 0) {
memmove(coder->buffer, coder->buffer + coder->pos, buf_avail);
coder->size -= coder->pos;
coder->pos = 0;
}
assert(coder->pos == 0);
// If coder->buffer[] isn't empty, try to fill it by copying/decoding
// more data. Then filter coder->buffer[] and copy the successfully
// filtered data to out[]. It is probable, that some filtered and
// unfiltered data will be left to coder->buffer[].
if (coder->size > 0) {
{
const lzma_ret ret = copy_or_code(coder, allocator,
in, in_pos, in_size,
coder->buffer, &coder->size,
coder->allocated, action);
assert(ret != LZMA_STREAM_END);
if (ret != LZMA_OK)
return ret;
}
coder->filtered = call_filter(
coder, coder->buffer, coder->size);
// Everything is considered to be filtered if coder->buffer[]
// contains the last bytes of the data.
if (coder->end_was_reached)
coder->filtered = coder->size;
// Flush as much as possible.
lzma_bufcpy(coder->buffer, &coder->pos, coder->filtered,
out, out_pos, out_size);
}
// Check if we got everything done.
if (coder->end_was_reached && coder->pos == coder->size)
return LZMA_STREAM_END;
return LZMA_OK;
}
static void
simple_coder_end(void *coder_ptr, const lzma_allocator *allocator)
{
lzma_simple_coder *coder = coder_ptr;
lzma_next_end(&coder->next, allocator);
lzma_free(coder->simple, allocator);
lzma_free(coder, allocator);
return;
}
static lzma_ret
simple_coder_update(void *coder_ptr, const lzma_allocator *allocator,
const lzma_filter *filters_null lzma_attribute((__unused__)),
const lzma_filter *reversed_filters)
{
lzma_simple_coder *coder = coder_ptr;
// No update support, just call the next filter in the chain.
return lzma_next_filter_update(
&coder->next, allocator, reversed_filters + 1);
}
extern lzma_ret
lzma_simple_coder_init(lzma_next_coder *next, const lzma_allocator *allocator,
const lzma_filter_info *filters,
size_t (*filter)(void *simple, uint32_t now_pos,
bool is_encoder, uint8_t *buffer, size_t size),
size_t simple_size, size_t unfiltered_max,
uint32_t alignment, bool is_encoder)
{
// Allocate memory for the lzma_simple_coder structure if needed.
lzma_simple_coder *coder = next->coder;
if (coder == NULL) {
// Here we allocate space also for the temporary buffer. We
// need twice the size of unfiltered_max, because then it
// is always possible to filter at least unfiltered_max bytes
// more data in coder->buffer[] if it can be filled completely.
coder = lzma_alloc(sizeof(lzma_simple_coder)
+ 2 * unfiltered_max, allocator);
if (coder == NULL)
return LZMA_MEM_ERROR;
next->coder = coder;
next->code = &simple_code;
next->end = &simple_coder_end;
next->update = &simple_coder_update;
coder->next = LZMA_NEXT_CODER_INIT;
coder->filter = filter;
coder->allocated = 2 * unfiltered_max;
// Allocate memory for filter-specific data structure.
if (simple_size > 0) {
coder->simple = lzma_alloc(simple_size, allocator);
if (coder->simple == NULL)
return LZMA_MEM_ERROR;
} else {
coder->simple = NULL;
}
}
if (filters[0].options != NULL) {
const lzma_options_bcj *simple = filters[0].options;
coder->now_pos = simple->start_offset;
if (coder->now_pos & (alignment - 1))
return LZMA_OPTIONS_ERROR;
} else {
coder->now_pos = 0;
}
// Reset variables.
coder->is_encoder = is_encoder;
coder->end_was_reached = false;
coder->pos = 0;
coder->filtered = 0;
coder->size = 0;
return lzma_next_filter_init(&coder->next, allocator, filters + 1);
}
|
4d3681669c8580b45bd8bc84cf0892af74969792
|
7eaf54a78c9e2117247cb2ab6d3a0c20719ba700
|
/SOFTWARE/A64-TERES/linux-a64/fs/ocfs2/quota.h
|
d5ab56cbe5c5b164d1ab44921e0304d516c9c647
|
[
"Linux-syscall-note",
"GPL-2.0-only",
"GPL-1.0-or-later",
"LicenseRef-scancode-free-unknown",
"Apache-2.0"
] |
permissive
|
OLIMEX/DIY-LAPTOP
|
ae82f4ee79c641d9aee444db9a75f3f6709afa92
|
a3fafd1309135650bab27f5eafc0c32bc3ca74ee
|
refs/heads/rel3
| 2023-08-04T01:54:19.483792
| 2023-04-03T07:18:12
| 2023-04-03T07:18:12
| 80,094,055
| 507
| 92
|
Apache-2.0
| 2023-04-03T07:05:59
| 2017-01-26T07:25:50
|
C
|
UTF-8
|
C
| false
| false
| 4,450
|
h
|
quota.h
|
/*
* quota.h for OCFS2
*
* On disk quota structures for local and global quota file, in-memory
* structures.
*
*/
#ifndef _OCFS2_QUOTA_H
#define _OCFS2_QUOTA_H
#include <linux/types.h>
#include <linux/slab.h>
#include <linux/quota.h>
#include <linux/list.h>
#include <linux/dqblk_qtree.h>
#include "ocfs2.h"
/*
* In-memory structures
*/
struct ocfs2_dquot {
struct dquot dq_dquot; /* Generic VFS dquot */
loff_t dq_local_off; /* Offset in the local quota file */
u64 dq_local_phys_blk; /* Physical block carrying quota structure */
struct ocfs2_quota_chunk *dq_chunk; /* Chunk dquot is in */
unsigned int dq_use_count; /* Number of nodes having reference to this entry in global quota file */
s64 dq_origspace; /* Last globally synced space usage */
s64 dq_originodes; /* Last globally synced inode usage */
};
/* Description of one chunk to recover in memory */
struct ocfs2_recovery_chunk {
struct list_head rc_list; /* List of chunks */
int rc_chunk; /* Chunk number */
unsigned long *rc_bitmap; /* Bitmap of entries to recover */
};
struct ocfs2_quota_recovery {
struct list_head r_list[MAXQUOTAS]; /* List of chunks to recover */
};
/* In-memory structure with quota header information */
struct ocfs2_mem_dqinfo {
unsigned int dqi_type; /* Quota type this structure describes */
unsigned int dqi_chunks; /* Number of chunks in local quota file */
unsigned int dqi_blocks; /* Number of blocks allocated for local quota file */
unsigned int dqi_syncms; /* How often should we sync with other nodes */
struct list_head dqi_chunk; /* List of chunks */
struct inode *dqi_gqinode; /* Global quota file inode */
struct ocfs2_lock_res dqi_gqlock; /* Lock protecting quota information structure */
struct buffer_head *dqi_gqi_bh; /* Buffer head with global quota file inode - set only if inode lock is obtained */
int dqi_gqi_count; /* Number of holders of dqi_gqi_bh */
u64 dqi_giblk; /* Number of block with global information header */
struct buffer_head *dqi_lqi_bh; /* Buffer head with local quota file inode */
struct buffer_head *dqi_libh; /* Buffer with local information header */
struct qtree_mem_dqinfo dqi_gi; /* Info about global file */
struct delayed_work dqi_sync_work; /* Work for syncing dquots */
struct ocfs2_quota_recovery *dqi_rec; /* Pointer to recovery
* information, in case we
* enable quotas on file
* needing it */
};
static inline struct ocfs2_dquot *OCFS2_DQUOT(struct dquot *dquot)
{
return container_of(dquot, struct ocfs2_dquot, dq_dquot);
}
struct ocfs2_quota_chunk {
struct list_head qc_chunk; /* List of quotafile chunks */
int qc_num; /* Number of quota chunk */
struct buffer_head *qc_headerbh; /* Buffer head with chunk header */
};
extern struct kmem_cache *ocfs2_dquot_cachep;
extern struct kmem_cache *ocfs2_qf_chunk_cachep;
extern struct qtree_fmt_operations ocfs2_global_ops;
struct ocfs2_quota_recovery *ocfs2_begin_quota_recovery(
struct ocfs2_super *osb, int slot_num);
int ocfs2_finish_quota_recovery(struct ocfs2_super *osb,
struct ocfs2_quota_recovery *rec,
int slot_num);
void ocfs2_free_quota_recovery(struct ocfs2_quota_recovery *rec);
ssize_t ocfs2_quota_read(struct super_block *sb, int type, char *data,
size_t len, loff_t off);
ssize_t ocfs2_quota_write(struct super_block *sb, int type,
const char *data, size_t len, loff_t off);
int ocfs2_global_read_info(struct super_block *sb, int type);
int ocfs2_global_write_info(struct super_block *sb, int type);
int ocfs2_global_read_dquot(struct dquot *dquot);
int __ocfs2_sync_dquot(struct dquot *dquot, int freeing);
static inline int ocfs2_sync_dquot(struct dquot *dquot)
{
return __ocfs2_sync_dquot(dquot, 0);
}
static inline int ocfs2_global_release_dquot(struct dquot *dquot)
{
return __ocfs2_sync_dquot(dquot, 1);
}
int ocfs2_lock_global_qf(struct ocfs2_mem_dqinfo *oinfo, int ex);
void ocfs2_unlock_global_qf(struct ocfs2_mem_dqinfo *oinfo, int ex);
int ocfs2_validate_quota_block(struct super_block *sb, struct buffer_head *bh);
int ocfs2_read_quota_phys_block(struct inode *inode, u64 p_block,
struct buffer_head **bh);
int ocfs2_create_local_dquot(struct dquot *dquot);
int ocfs2_local_release_dquot(handle_t *handle, struct dquot *dquot);
int ocfs2_local_write_dquot(struct dquot *dquot);
extern const struct dquot_operations ocfs2_quota_operations;
extern struct quota_format_type ocfs2_quota_format;
#endif /* _OCFS2_QUOTA_H */
|
0382ab326bd50e18992e00b11d4135dd4b751225
|
ac927e79d8c3fb7e1be6d4eb316ddea5920b1a60
|
/src/bool/kit/kitDsd.c
|
cd02db673f0b1530de20b9b3659f8a5c311479ec
|
[
"MIT-Modern-Variant"
] |
permissive
|
berkeley-abc/abc
|
f4cb3886bd4c34448b1b5c154fbed96f6095e6e1
|
756e21a81de1fe799df8189f77c4ea34399d2c8e
|
refs/heads/master
| 2023-08-22T17:11:30.017600
| 2023-08-20T08:50:59
| 2023-08-20T08:50:59
| 124,750,053
| 727
| 336
|
NOASSERTION
| 2023-09-13T18:24:40
| 2018-03-11T11:33:37
|
C
|
UTF-8
|
C
| false
| false
| 111,329
|
c
|
kitDsd.c
|
/**CFile****************************************************************
FileName [kitDsd.c]
SystemName [ABC: Logic synthesis and verification system.]
PackageName [Computation kit.]
Synopsis [Performs disjoint-support decomposition based on truth tables.]
Author [Alan Mishchenko]
Affiliation [UC Berkeley]
Date [Ver. 1.0. Started - Dec 6, 2006.]
Revision [$Id: kitDsd.c,v 1.00 2006/12/06 00:00:00 alanmi Exp $]
***********************************************************************/
#include "kit.h"
#include "misc/extra/extra.h"
ABC_NAMESPACE_IMPL_START
////////////////////////////////////////////////////////////////////////
/// DECLARATIONS ///
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
/// FUNCTION DEFINITIONS ///
////////////////////////////////////////////////////////////////////////
/**Function*************************************************************
Synopsis [Allocates the DSD manager.]
Description []
SideEffects []
SeeAlso []
***********************************************************************/
Kit_DsdMan_t * Kit_DsdManAlloc( int nVars, int nNodes )
{
Kit_DsdMan_t * p;
p = ABC_ALLOC( Kit_DsdMan_t, 1 );
memset( p, 0, sizeof(Kit_DsdMan_t) );
p->nVars = nVars;
p->nWords = Kit_TruthWordNum( p->nVars );
p->vTtElems = Vec_PtrAllocTruthTables( p->nVars );
p->vTtNodes = Vec_PtrAllocSimInfo( nNodes, p->nWords );
p->dd = Cloud_Init( 16, 14 );
p->vTtBdds = Vec_PtrAllocSimInfo( (1<<12), p->nWords );
p->vNodes = Vec_IntAlloc( 512 );
return p;
}
/**Function*************************************************************
Synopsis [Deallocates the DSD manager.]
Description []
SideEffects []
SeeAlso []
***********************************************************************/
void Kit_DsdManFree( Kit_DsdMan_t * p )
{
Cloud_Quit( p->dd );
Vec_IntFree( p->vNodes );
Vec_PtrFree( p->vTtBdds );
Vec_PtrFree( p->vTtElems );
Vec_PtrFree( p->vTtNodes );
ABC_FREE( p );
}
/**Function*************************************************************
Synopsis [Allocates the DSD node.]
Description []
SideEffects []
SeeAlso []
***********************************************************************/
Kit_DsdObj_t * Kit_DsdObjAlloc( Kit_DsdNtk_t * pNtk, Kit_Dsd_t Type, int nFans )
{
Kit_DsdObj_t * pObj;
int nSize = sizeof(Kit_DsdObj_t) + sizeof(unsigned) * (Kit_DsdObjOffset(nFans) + (Type == KIT_DSD_PRIME) * Kit_TruthWordNum(nFans));
pObj = (Kit_DsdObj_t *)ABC_ALLOC( char, nSize );
memset( pObj, 0, (size_t)nSize );
pObj->Id = pNtk->nVars + pNtk->nNodes;
pObj->Type = Type;
pObj->nFans = nFans;
pObj->Offset = Kit_DsdObjOffset( nFans );
// add the object
if ( pNtk->nNodes == pNtk->nNodesAlloc )
{
pNtk->nNodesAlloc *= 2;
pNtk->pNodes = ABC_REALLOC( Kit_DsdObj_t *, pNtk->pNodes, pNtk->nNodesAlloc );
}
assert( pNtk->nNodes < pNtk->nNodesAlloc );
pNtk->pNodes[pNtk->nNodes++] = pObj;
return pObj;
}
/**Function*************************************************************
Synopsis [Deallocates the DSD node.]
Description []
SideEffects []
SeeAlso []
***********************************************************************/
void Kit_DsdObjFree( Kit_DsdNtk_t * p, Kit_DsdObj_t * pObj )
{
ABC_FREE( pObj );
}
/**Function*************************************************************
Synopsis [Allocates the DSD network.]
Description []
SideEffects []
SeeAlso []
***********************************************************************/
Kit_DsdNtk_t * Kit_DsdNtkAlloc( int nVars )
{
Kit_DsdNtk_t * pNtk;
pNtk = ABC_ALLOC( Kit_DsdNtk_t, 1 );
memset( pNtk, 0, sizeof(Kit_DsdNtk_t) );
pNtk->pNodes = ABC_ALLOC( Kit_DsdObj_t *, nVars+1 );
pNtk->nVars = nVars;
pNtk->nNodesAlloc = nVars+1;
pNtk->pMem = ABC_ALLOC( unsigned, 6 * Kit_TruthWordNum(nVars) );
return pNtk;
}
/**Function*************************************************************
Synopsis [Deallocate the DSD network.]
Description []
SideEffects []
SeeAlso []
***********************************************************************/
void Kit_DsdNtkFree( Kit_DsdNtk_t * pNtk )
{
Kit_DsdObj_t * pObj;
unsigned i;
Kit_DsdNtkForEachObj( pNtk, pObj, i )
ABC_FREE( pObj );
ABC_FREE( pNtk->pSupps );
ABC_FREE( pNtk->pNodes );
ABC_FREE( pNtk->pMem );
ABC_FREE( pNtk );
}
/**Function*************************************************************
Synopsis [Prints the hex unsigned into a file.]
Description []
SideEffects []
SeeAlso []
***********************************************************************/
void Kit_DsdPrintHex( FILE * pFile, unsigned * pTruth, int nFans )
{
int nDigits, Digit, k;
nDigits = (1 << nFans) / 4;
for ( k = nDigits - 1; k >= 0; k-- )
{
Digit = ((pTruth[k/8] >> ((k%8) * 4)) & 15);
if ( Digit < 10 )
fprintf( pFile, "%d", Digit );
else
fprintf( pFile, "%c", 'A' + Digit-10 );
}
}
/**Function*************************************************************
Synopsis [Prints the hex unsigned into a file.]
Description []
SideEffects []
SeeAlso []
***********************************************************************/
char * Kit_DsdWriteHex( char * pBuff, unsigned * pTruth, int nFans )
{
int nDigits, Digit, k;
nDigits = (1 << nFans) / 4;
for ( k = nDigits - 1; k >= 0; k-- )
{
Digit = ((pTruth[k/8] >> ((k%8) * 4)) & 15);
if ( Digit < 10 )
*pBuff++ = '0' + Digit;
else
*pBuff++ = 'A' + Digit-10;
}
return pBuff;
}
/**Function*************************************************************
Synopsis [Recursively print the DSD formula.]
Description []
SideEffects []
SeeAlso []
***********************************************************************/
void Kit_DsdPrint2_rec( FILE * pFile, Kit_DsdNtk_t * pNtk, int Id )
{
Kit_DsdObj_t * pObj;
unsigned iLit, i;
char Symbol;
pObj = Kit_DsdNtkObj( pNtk, Id );
if ( pObj == NULL )
{
assert( Id < pNtk->nVars );
fprintf( pFile, "%c", 'a' + Id );
return;
}
if ( pObj->Type == KIT_DSD_CONST1 )
{
assert( pObj->nFans == 0 );
fprintf( pFile, "Const1" );
return;
}
if ( pObj->Type == KIT_DSD_VAR )
assert( pObj->nFans == 1 );
if ( pObj->Type == KIT_DSD_AND )
Symbol = '*';
else if ( pObj->Type == KIT_DSD_XOR )
Symbol = '+';
else
Symbol = ',';
if ( pObj->Type == KIT_DSD_PRIME )
fprintf( pFile, "[" );
else
fprintf( pFile, "(" );
Kit_DsdObjForEachFanin( pNtk, pObj, iLit, i )
{
if ( Abc_LitIsCompl(iLit) )
fprintf( pFile, "!" );
Kit_DsdPrint2_rec( pFile, pNtk, Abc_Lit2Var(iLit) );
if ( i < pObj->nFans - 1 )
fprintf( pFile, "%c", Symbol );
}
if ( pObj->Type == KIT_DSD_PRIME )
fprintf( pFile, "]" );
else
fprintf( pFile, ")" );
}
/**Function*************************************************************
Synopsis [Print the DSD formula.]
Description []
SideEffects []
SeeAlso []
***********************************************************************/
void Kit_DsdPrint2( FILE * pFile, Kit_DsdNtk_t * pNtk )
{
// fprintf( pFile, "F = " );
if ( Abc_LitIsCompl(pNtk->Root) )
fprintf( pFile, "!" );
Kit_DsdPrint2_rec( pFile, pNtk, Abc_Lit2Var(pNtk->Root) );
// fprintf( pFile, "\n" );
}
/**Function*************************************************************
Synopsis [Recursively print the DSD formula.]
Description []
SideEffects []
SeeAlso []
***********************************************************************/
void Kit_DsdPrint_rec( FILE * pFile, Kit_DsdNtk_t * pNtk, int Id )
{
Kit_DsdObj_t * pObj;
unsigned iLit, i;
char Symbol;
pObj = Kit_DsdNtkObj( pNtk, Id );
if ( pObj == NULL )
{
assert( Id < pNtk->nVars );
fprintf( pFile, "%c", 'a' + Id );
return;
}
if ( pObj->Type == KIT_DSD_CONST1 )
{
assert( pObj->nFans == 0 );
fprintf( pFile, "Const1" );
return;
}
if ( pObj->Type == KIT_DSD_VAR )
assert( pObj->nFans == 1 );
if ( pObj->Type == KIT_DSD_AND )
Symbol = '*';
else if ( pObj->Type == KIT_DSD_XOR )
Symbol = '+';
else
Symbol = ',';
if ( pObj->Type == KIT_DSD_PRIME )
Kit_DsdPrintHex( pFile, Kit_DsdObjTruth(pObj), pObj->nFans );
fprintf( pFile, "(" );
Kit_DsdObjForEachFanin( pNtk, pObj, iLit, i )
{
if ( Abc_LitIsCompl(iLit) )
fprintf( pFile, "!" );
Kit_DsdPrint_rec( pFile, pNtk, Abc_Lit2Var(iLit) );
if ( i < pObj->nFans - 1 )
fprintf( pFile, "%c", Symbol );
}
fprintf( pFile, ")" );
}
/**Function*************************************************************
Synopsis [Print the DSD formula.]
Description []
SideEffects []
SeeAlso []
***********************************************************************/
void Kit_DsdPrint( FILE * pFile, Kit_DsdNtk_t * pNtk )
{
fprintf( pFile, "F = " );
if ( Abc_LitIsCompl(pNtk->Root) )
fprintf( pFile, "!" );
Kit_DsdPrint_rec( pFile, pNtk, Abc_Lit2Var(pNtk->Root) );
// fprintf( pFile, "\n" );
}
/**Function*************************************************************
Synopsis [Recursively print the DSD formula.]
Description []
SideEffects []
SeeAlso []
***********************************************************************/
char * Kit_DsdWrite_rec( char * pBuff, Kit_DsdNtk_t * pNtk, int Id )
{
Kit_DsdObj_t * pObj;
unsigned iLit, i;
char Symbol;
pObj = Kit_DsdNtkObj( pNtk, Id );
if ( pObj == NULL )
{
assert( Id < pNtk->nVars );
*pBuff++ = 'a' + Id;
return pBuff;
}
if ( pObj->Type == KIT_DSD_CONST1 )
{
assert( pObj->nFans == 0 );
sprintf( pBuff, "%s", "Const1" );
return pBuff + strlen("Const1");
}
if ( pObj->Type == KIT_DSD_VAR )
assert( pObj->nFans == 1 );
if ( pObj->Type == KIT_DSD_AND )
Symbol = '*';
else if ( pObj->Type == KIT_DSD_XOR )
Symbol = '+';
else
Symbol = ',';
if ( pObj->Type == KIT_DSD_PRIME )
pBuff = Kit_DsdWriteHex( pBuff, Kit_DsdObjTruth(pObj), pObj->nFans );
*pBuff++ = '(';
Kit_DsdObjForEachFanin( pNtk, pObj, iLit, i )
{
if ( Abc_LitIsCompl(iLit) )
*pBuff++ = '!';
pBuff = Kit_DsdWrite_rec( pBuff, pNtk, Abc_Lit2Var(iLit) );
if ( i < pObj->nFans - 1 )
*pBuff++ = Symbol;
}
*pBuff++ = ')';
return pBuff;
}
/**Function*************************************************************
Synopsis [Print the DSD formula.]
Description []
SideEffects []
SeeAlso []
***********************************************************************/
void Kit_DsdWrite( char * pBuff, Kit_DsdNtk_t * pNtk )
{
if ( Abc_LitIsCompl(pNtk->Root) )
*pBuff++ = '!';
pBuff = Kit_DsdWrite_rec( pBuff, pNtk, Abc_Lit2Var(pNtk->Root) );
*pBuff = 0;
}
/**Function*************************************************************
Synopsis [Print the DSD formula.]
Description []
SideEffects []
SeeAlso []
***********************************************************************/
void Kit_DsdPrintExpanded( Kit_DsdNtk_t * pNtk )
{
Kit_DsdNtk_t * pTemp;
pTemp = Kit_DsdExpand( pNtk );
Kit_DsdPrint( stdout, pTemp );
Kit_DsdNtkFree( pTemp );
}
/**Function*************************************************************
Synopsis [Print the DSD formula.]
Description []
SideEffects []
SeeAlso []
***********************************************************************/
void Kit_DsdPrintFromTruth( unsigned * pTruth, int nVars )
{
Kit_DsdNtk_t * pTemp, * pTemp2;
// pTemp = Kit_DsdDecomposeMux( pTruth, nVars, 5 );
pTemp = Kit_DsdDecomposeMux( pTruth, nVars, 8 );
// Kit_DsdPrintExpanded( pTemp );
pTemp2 = Kit_DsdExpand( pTemp );
Kit_DsdPrint( stdout, pTemp2 );
Kit_DsdVerify( pTemp2, pTruth, nVars );
Kit_DsdNtkFree( pTemp2 );
Kit_DsdNtkFree( pTemp );
}
/**Function*************************************************************
Synopsis [Print the DSD formula.]
Description []
SideEffects []
SeeAlso []
***********************************************************************/
void Kit_DsdPrintFromTruth2( FILE * pFile, unsigned * pTruth, int nVars )
{
Kit_DsdNtk_t * pTemp, * pTemp2;
pTemp = Kit_DsdDecomposeMux( pTruth, nVars, 0 );
pTemp2 = Kit_DsdExpand( pTemp );
Kit_DsdPrint2( pFile, pTemp2 );
Kit_DsdVerify( pTemp2, pTruth, nVars );
Kit_DsdNtkFree( pTemp2 );
Kit_DsdNtkFree( pTemp );
}
/**Function*************************************************************
Synopsis [Print the DSD formula.]
Description []
SideEffects []
SeeAlso []
***********************************************************************/
void Kit_DsdWriteFromTruth( char * pBuffer, unsigned * pTruth, int nVars )
{
Kit_DsdNtk_t * pTemp, * pTemp2;
// pTemp = Kit_DsdDecomposeMux( pTruth, nVars, 5 );
pTemp = Kit_DsdDecomposeMux( pTruth, nVars, 8 );
// Kit_DsdPrintExpanded( pTemp );
pTemp2 = Kit_DsdExpand( pTemp );
Kit_DsdWrite( pBuffer, pTemp2 );
Kit_DsdVerify( pTemp2, pTruth, nVars );
Kit_DsdNtkFree( pTemp2 );
Kit_DsdNtkFree( pTemp );
}
/**Function*************************************************************
Synopsis [Derives the truth table of the DSD node.]
Description []
SideEffects []
SeeAlso []
***********************************************************************/
unsigned * Kit_DsdTruthComputeNode_rec( Kit_DsdMan_t * p, Kit_DsdNtk_t * pNtk, int Id )
{
Kit_DsdObj_t * pObj;
unsigned * pTruthRes, * pTruthFans[16], * pTruthTemp;
unsigned i, iLit, fCompl;
// unsigned m, nMints, * pTruthPrime, * pTruthMint;
// get the node with this ID
pObj = Kit_DsdNtkObj( pNtk, Id );
pTruthRes = (unsigned *)Vec_PtrEntry( p->vTtNodes, Id );
// special case: literal of an internal node
if ( pObj == NULL )
{
assert( Id < pNtk->nVars );
return pTruthRes;
}
// constant node
if ( pObj->Type == KIT_DSD_CONST1 )
{
assert( pObj->nFans == 0 );
Kit_TruthFill( pTruthRes, pNtk->nVars );
return pTruthRes;
}
// elementary variable node
if ( pObj->Type == KIT_DSD_VAR )
{
assert( pObj->nFans == 1 );
iLit = pObj->pFans[0];
pTruthFans[0] = Kit_DsdTruthComputeNode_rec( p, pNtk, Abc_Lit2Var(iLit) );
if ( Abc_LitIsCompl(iLit) )
Kit_TruthNot( pTruthRes, pTruthFans[0], pNtk->nVars );
else
Kit_TruthCopy( pTruthRes, pTruthFans[0], pNtk->nVars );
return pTruthRes;
}
// collect the truth tables of the fanins
Kit_DsdObjForEachFanin( pNtk, pObj, iLit, i )
pTruthFans[i] = Kit_DsdTruthComputeNode_rec( p, pNtk, Abc_Lit2Var(iLit) );
// create the truth table
// simple gates
if ( pObj->Type == KIT_DSD_AND )
{
Kit_TruthFill( pTruthRes, pNtk->nVars );
Kit_DsdObjForEachFanin( pNtk, pObj, iLit, i )
Kit_TruthAndPhase( pTruthRes, pTruthRes, pTruthFans[i], pNtk->nVars, 0, Abc_LitIsCompl(iLit) );
return pTruthRes;
}
if ( pObj->Type == KIT_DSD_XOR )
{
Kit_TruthClear( pTruthRes, pNtk->nVars );
fCompl = 0;
Kit_DsdObjForEachFanin( pNtk, pObj, iLit, i )
{
Kit_TruthXor( pTruthRes, pTruthRes, pTruthFans[i], pNtk->nVars );
fCompl ^= Abc_LitIsCompl(iLit);
}
if ( fCompl )
Kit_TruthNot( pTruthRes, pTruthRes, pNtk->nVars );
return pTruthRes;
}
assert( pObj->Type == KIT_DSD_PRIME );
/*
// get the truth table of the prime node
pTruthPrime = Kit_DsdObjTruth( pObj );
// get storage for the temporary minterm
pTruthMint = Vec_PtrEntry(p->vTtNodes, pNtk->nVars + pNtk->nNodes);
// go through the minterms
nMints = (1 << pObj->nFans);
Kit_TruthClear( pTruthRes, pNtk->nVars );
for ( m = 0; m < nMints; m++ )
{
if ( !Kit_TruthHasBit(pTruthPrime, m) )
continue;
Kit_TruthFill( pTruthMint, pNtk->nVars );
Kit_DsdObjForEachFanin( pNtk, pObj, iLit, i )
Kit_TruthAndPhase( pTruthMint, pTruthMint, pTruthFans[i], pNtk->nVars, 0, ((m & (1<<i)) == 0) ^ Abc_LitIsCompl(iLit) );
Kit_TruthOr( pTruthRes, pTruthRes, pTruthMint, pNtk->nVars );
}
*/
Kit_DsdObjForEachFanin( pNtk, pObj, iLit, i )
if ( Abc_LitIsCompl(iLit) )
Kit_TruthNot( pTruthFans[i], pTruthFans[i], pNtk->nVars );
pTruthTemp = Kit_TruthCompose( p->dd, Kit_DsdObjTruth(pObj), pObj->nFans, pTruthFans, pNtk->nVars, p->vTtBdds, p->vNodes );
Kit_TruthCopy( pTruthRes, pTruthTemp, pNtk->nVars );
return pTruthRes;
}
/**Function*************************************************************
Synopsis [Derives the truth table of the DSD network.]
Description []
SideEffects []
SeeAlso []
***********************************************************************/
unsigned * Kit_DsdTruthCompute( Kit_DsdMan_t * p, Kit_DsdNtk_t * pNtk )
{
unsigned * pTruthRes;
int i;
// assign elementary truth ables
assert( pNtk->nVars <= p->nVars );
for ( i = 0; i < (int)pNtk->nVars; i++ )
Kit_TruthCopy( (unsigned *)Vec_PtrEntry(p->vTtNodes, i), (unsigned *)Vec_PtrEntry(p->vTtElems, i), p->nVars );
// compute truth table for each node
pTruthRes = Kit_DsdTruthComputeNode_rec( p, pNtk, Abc_Lit2Var(pNtk->Root) );
// complement the truth table if needed
if ( Abc_LitIsCompl(pNtk->Root) )
Kit_TruthNot( pTruthRes, pTruthRes, pNtk->nVars );
return pTruthRes;
}
/**Function*************************************************************
Synopsis [Derives the truth table of the DSD node.]
Description []
SideEffects []
SeeAlso []
***********************************************************************/
unsigned * Kit_DsdTruthComputeNodeOne_rec( Kit_DsdMan_t * p, Kit_DsdNtk_t * pNtk, int Id, unsigned uSupp )
{
Kit_DsdObj_t * pObj;
unsigned * pTruthRes, * pTruthFans[16], * pTruthTemp;
unsigned i, iLit, fCompl, nPartial = 0;
// unsigned m, nMints, * pTruthPrime, * pTruthMint;
// get the node with this ID
pObj = Kit_DsdNtkObj( pNtk, Id );
pTruthRes = (unsigned *)Vec_PtrEntry( p->vTtNodes, Id );
// special case: literal of an internal node
if ( pObj == NULL )
{
assert( Id < pNtk->nVars );
assert( !uSupp || uSupp != (uSupp & ~(1<<Id)) );
return pTruthRes;
}
// constant node
if ( pObj->Type == KIT_DSD_CONST1 )
{
assert( pObj->nFans == 0 );
Kit_TruthFill( pTruthRes, pNtk->nVars );
return pTruthRes;
}
// elementary variable node
if ( pObj->Type == KIT_DSD_VAR )
{
assert( pObj->nFans == 1 );
iLit = pObj->pFans[0];
assert( Kit_DsdLitIsLeaf( pNtk, iLit ) );
pTruthFans[0] = Kit_DsdTruthComputeNodeOne_rec( p, pNtk, Abc_Lit2Var(iLit), uSupp );
if ( Abc_LitIsCompl(iLit) )
Kit_TruthNot( pTruthRes, pTruthFans[0], pNtk->nVars );
else
Kit_TruthCopy( pTruthRes, pTruthFans[0], pNtk->nVars );
return pTruthRes;
}
// collect the truth tables of the fanins
if ( uSupp )
{
Kit_DsdObjForEachFanin( pNtk, pObj, iLit, i )
if ( uSupp != (uSupp & ~Kit_DsdLitSupport(pNtk, iLit)) )
pTruthFans[i] = Kit_DsdTruthComputeNodeOne_rec( p, pNtk, Abc_Lit2Var(iLit), uSupp );
else
{
pTruthFans[i] = NULL;
nPartial = 1;
}
}
else
{
Kit_DsdObjForEachFanin( pNtk, pObj, iLit, i )
pTruthFans[i] = Kit_DsdTruthComputeNodeOne_rec( p, pNtk, Abc_Lit2Var(iLit), uSupp );
}
// create the truth table
// simple gates
if ( pObj->Type == KIT_DSD_AND )
{
Kit_TruthFill( pTruthRes, pNtk->nVars );
Kit_DsdObjForEachFanin( pNtk, pObj, iLit, i )
if ( pTruthFans[i] )
Kit_TruthAndPhase( pTruthRes, pTruthRes, pTruthFans[i], pNtk->nVars, 0, Abc_LitIsCompl(iLit) );
return pTruthRes;
}
if ( pObj->Type == KIT_DSD_XOR )
{
Kit_TruthClear( pTruthRes, pNtk->nVars );
fCompl = 0;
Kit_DsdObjForEachFanin( pNtk, pObj, iLit, i )
{
if ( pTruthFans[i] )
{
Kit_TruthXor( pTruthRes, pTruthRes, pTruthFans[i], pNtk->nVars );
fCompl ^= Abc_LitIsCompl(iLit);
}
}
if ( fCompl )
Kit_TruthNot( pTruthRes, pTruthRes, pNtk->nVars );
return pTruthRes;
}
assert( pObj->Type == KIT_DSD_PRIME );
if ( uSupp && nPartial )
{
// find the only non-empty component
Kit_DsdObjForEachFanin( pNtk, pObj, iLit, i )
if ( pTruthFans[i] )
break;
assert( i < pObj->nFans );
return pTruthFans[i];
}
/*
// get the truth table of the prime node
pTruthPrime = Kit_DsdObjTruth( pObj );
// get storage for the temporary minterm
pTruthMint = Vec_PtrEntry(p->vTtNodes, pNtk->nVars + pNtk->nNodes);
// go through the minterms
nMints = (1 << pObj->nFans);
Kit_TruthClear( pTruthRes, pNtk->nVars );
for ( m = 0; m < nMints; m++ )
{
if ( !Kit_TruthHasBit(pTruthPrime, m) )
continue;
Kit_TruthFill( pTruthMint, pNtk->nVars );
Kit_DsdObjForEachFanin( pNtk, pObj, iLit, i )
Kit_TruthAndPhase( pTruthMint, pTruthMint, pTruthFans[i], pNtk->nVars, 0, ((m & (1<<i)) == 0) ^ Abc_LitIsCompl(iLit) );
Kit_TruthOr( pTruthRes, pTruthRes, pTruthMint, pNtk->nVars );
}
*/
Kit_DsdObjForEachFanin( pNtk, pObj, iLit, i )
if ( Abc_LitIsCompl(iLit) )
Kit_TruthNot( pTruthFans[i], pTruthFans[i], pNtk->nVars );
pTruthTemp = Kit_TruthCompose( p->dd, Kit_DsdObjTruth(pObj), pObj->nFans, pTruthFans, pNtk->nVars, p->vTtBdds, p->vNodes );
Kit_TruthCopy( pTruthRes, pTruthTemp, pNtk->nVars );
return pTruthRes;
}
/**Function*************************************************************
Synopsis [Derives the truth table of the DSD network.]
Description []
SideEffects []
SeeAlso []
***********************************************************************/
unsigned * Kit_DsdTruthComputeOne( Kit_DsdMan_t * p, Kit_DsdNtk_t * pNtk, unsigned uSupp )
{
unsigned * pTruthRes;
int i;
// if support is specified, request that supports are available
if ( uSupp )
Kit_DsdGetSupports( pNtk );
// assign elementary truth tables
assert( pNtk->nVars <= p->nVars );
for ( i = 0; i < (int)pNtk->nVars; i++ )
Kit_TruthCopy( (unsigned *)Vec_PtrEntry(p->vTtNodes, i), (unsigned *)Vec_PtrEntry(p->vTtElems, i), p->nVars );
// compute truth table for each node
pTruthRes = Kit_DsdTruthComputeNodeOne_rec( p, pNtk, Abc_Lit2Var(pNtk->Root), uSupp );
// complement the truth table if needed
if ( Abc_LitIsCompl(pNtk->Root) )
Kit_TruthNot( pTruthRes, pTruthRes, pNtk->nVars );
return pTruthRes;
}
/**Function*************************************************************
Synopsis [Derives the truth table of the DSD node.]
Description []
SideEffects []
SeeAlso []
***********************************************************************/
unsigned * Kit_DsdTruthComputeNodeTwo_rec( Kit_DsdMan_t * p, Kit_DsdNtk_t * pNtk, int Id, unsigned uSupp, int iVar, unsigned * pTruthDec )
{
Kit_DsdObj_t * pObj;
int pfBoundSet[16];
unsigned * pTruthRes, * pTruthFans[16], * pTruthTemp;
unsigned i, iLit, fCompl, nPartial, uSuppFan, uSuppCur;
// unsigned m, nMints, * pTruthPrime, * pTruthMint;
assert( uSupp > 0 );
// get the node with this ID
pObj = Kit_DsdNtkObj( pNtk, Id );
pTruthRes = (unsigned *)Vec_PtrEntry( p->vTtNodes, Id );
if ( pObj == NULL )
{
assert( Id < pNtk->nVars );
return pTruthRes;
}
assert( pObj->Type != KIT_DSD_CONST1 );
assert( pObj->Type != KIT_DSD_VAR );
// count the number of intersecting fanins
// collect the total support of the intersecting fanins
nPartial = 0;
uSuppFan = 0;
Kit_DsdObjForEachFanin( pNtk, pObj, iLit, i )
{
uSuppCur = Kit_DsdLitSupport(pNtk, iLit);
if ( uSupp & uSuppCur )
{
nPartial++;
uSuppFan |= uSuppCur;
}
}
// if there is no intersection, or full intersection, use simple procedure
if ( nPartial == 0 || nPartial == pObj->nFans )
return Kit_DsdTruthComputeNodeOne_rec( p, pNtk, Id, 0 );
// if support of the component includes some other variables
// we need to continue constructing it as usual by the two-function procedure
if ( uSuppFan != (uSuppFan & uSupp) )
{
assert( nPartial == 1 );
// return Kit_DsdTruthComputeNodeTwo_rec( p, pNtk, Id, uSupp, iVar, pTruthDec );
Kit_DsdObjForEachFanin( pNtk, pObj, iLit, i )
{
if ( uSupp & Kit_DsdLitSupport(pNtk, iLit) )
pTruthFans[i] = Kit_DsdTruthComputeNodeTwo_rec( p, pNtk, Abc_Lit2Var(iLit), uSupp, iVar, pTruthDec );
else
pTruthFans[i] = Kit_DsdTruthComputeNodeOne_rec( p, pNtk, Abc_Lit2Var(iLit), 0 );
}
// create composition/decomposition functions
if ( pObj->Type == KIT_DSD_AND )
{
Kit_TruthFill( pTruthRes, pNtk->nVars );
Kit_DsdObjForEachFanin( pNtk, pObj, iLit, i )
Kit_TruthAndPhase( pTruthRes, pTruthRes, pTruthFans[i], pNtk->nVars, 0, Abc_LitIsCompl(iLit) );
return pTruthRes;
}
if ( pObj->Type == KIT_DSD_XOR )
{
Kit_TruthClear( pTruthRes, pNtk->nVars );
fCompl = 0;
Kit_DsdObjForEachFanin( pNtk, pObj, iLit, i )
{
fCompl ^= Abc_LitIsCompl(iLit);
Kit_TruthXor( pTruthRes, pTruthRes, pTruthFans[i], pNtk->nVars );
}
if ( fCompl )
Kit_TruthNot( pTruthRes, pTruthRes, pNtk->nVars );
return pTruthRes;
}
assert( pObj->Type == KIT_DSD_PRIME );
}
else
{
assert( uSuppFan == (uSuppFan & uSupp) );
assert( nPartial < pObj->nFans );
// the support of the insecting component(s) is contained in the bound-set
// and yet there are components that are not contained in the bound set
// solve the fanins and collect info, which components belong to the bound set
Kit_DsdObjForEachFanin( pNtk, pObj, iLit, i )
{
pTruthFans[i] = Kit_DsdTruthComputeNodeOne_rec( p, pNtk, Abc_Lit2Var(iLit), 0 );
pfBoundSet[i] = (int)((uSupp & Kit_DsdLitSupport(pNtk, iLit)) > 0);
}
// create composition/decomposition functions
if ( pObj->Type == KIT_DSD_AND )
{
Kit_TruthIthVar( pTruthRes, pNtk->nVars, iVar );
Kit_TruthFill( pTruthDec, pNtk->nVars );
Kit_DsdObjForEachFanin( pNtk, pObj, iLit, i )
if ( pfBoundSet[i] )
Kit_TruthAndPhase( pTruthDec, pTruthDec, pTruthFans[i], pNtk->nVars, 0, Abc_LitIsCompl(iLit) );
else
Kit_TruthAndPhase( pTruthRes, pTruthRes, pTruthFans[i], pNtk->nVars, 0, Abc_LitIsCompl(iLit) );
return pTruthRes;
}
if ( pObj->Type == KIT_DSD_XOR )
{
Kit_TruthIthVar( pTruthRes, pNtk->nVars, iVar );
Kit_TruthClear( pTruthDec, pNtk->nVars );
fCompl = 0;
Kit_DsdObjForEachFanin( pNtk, pObj, iLit, i )
{
fCompl ^= Abc_LitIsCompl(iLit);
if ( pfBoundSet[i] )
Kit_TruthXor( pTruthDec, pTruthDec, pTruthFans[i], pNtk->nVars );
else
Kit_TruthXor( pTruthRes, pTruthRes, pTruthFans[i], pNtk->nVars );
}
if ( fCompl )
Kit_TruthNot( pTruthRes, pTruthRes, pNtk->nVars );
return pTruthRes;
}
assert( pObj->Type == KIT_DSD_PRIME );
assert( nPartial == 1 );
// find the only non-empty component
Kit_DsdObjForEachFanin( pNtk, pObj, iLit, i )
if ( pfBoundSet[i] )
break;
assert( i < pObj->nFans );
// save this component as the decomposed function
Kit_TruthCopy( pTruthDec, pTruthFans[i], pNtk->nVars );
// set the corresponding component to be the new variable
Kit_TruthIthVar( pTruthFans[i], pNtk->nVars, iVar );
}
/*
// get the truth table of the prime node
pTruthPrime = Kit_DsdObjTruth( pObj );
// get storage for the temporary minterm
pTruthMint = Vec_PtrEntry(p->vTtNodes, pNtk->nVars + pNtk->nNodes);
// go through the minterms
nMints = (1 << pObj->nFans);
Kit_TruthClear( pTruthRes, pNtk->nVars );
for ( m = 0; m < nMints; m++ )
{
if ( !Kit_TruthHasBit(pTruthPrime, m) )
continue;
Kit_TruthFill( pTruthMint, pNtk->nVars );
Kit_DsdObjForEachFanin( pNtk, pObj, iLit, i )
Kit_TruthAndPhase( pTruthMint, pTruthMint, pTruthFans[i], pNtk->nVars, 0, ((m & (1<<i)) == 0) ^ Abc_LitIsCompl(iLit) );
Kit_TruthOr( pTruthRes, pTruthRes, pTruthMint, pNtk->nVars );
}
*/
// Kit_DsdObjForEachFanin( pNtk, pObj, iLit, i )
// assert( !Abc_LitIsCompl(iLit) );
Kit_DsdObjForEachFanin( pNtk, pObj, iLit, i )
if ( Abc_LitIsCompl(iLit) )
Kit_TruthNot( pTruthFans[i], pTruthFans[i], pNtk->nVars );
pTruthTemp = Kit_TruthCompose( p->dd, Kit_DsdObjTruth(pObj), pObj->nFans, pTruthFans, pNtk->nVars, p->vTtBdds, p->vNodes );
Kit_TruthCopy( pTruthRes, pTruthTemp, pNtk->nVars );
return pTruthRes;
}
/**Function*************************************************************
Synopsis [Derives the truth table of the DSD network.]
Description []
SideEffects []
SeeAlso []
***********************************************************************/
unsigned * Kit_DsdTruthComputeTwo( Kit_DsdMan_t * p, Kit_DsdNtk_t * pNtk, unsigned uSupp, int iVar, unsigned * pTruthDec )
{
unsigned * pTruthRes, uSuppAll;
int i;
assert( uSupp > 0 );
assert( pNtk->nVars <= p->nVars );
// compute support of all nodes
uSuppAll = Kit_DsdGetSupports( pNtk );
// consider special case - there is no overlap
if ( (uSupp & uSuppAll) == 0 )
{
Kit_TruthClear( pTruthDec, pNtk->nVars );
return Kit_DsdTruthCompute( p, pNtk );
}
// consider special case - support is fully contained
if ( (uSupp & uSuppAll) == uSuppAll )
{
pTruthRes = Kit_DsdTruthCompute( p, pNtk );
Kit_TruthCopy( pTruthDec, pTruthRes, pNtk->nVars );
Kit_TruthIthVar( pTruthRes, pNtk->nVars, iVar );
return pTruthRes;
}
// assign elementary truth tables
for ( i = 0; i < (int)pNtk->nVars; i++ )
Kit_TruthCopy( (unsigned *)Vec_PtrEntry(p->vTtNodes, i), (unsigned *)Vec_PtrEntry(p->vTtElems, i), p->nVars );
// compute truth table for each node
pTruthRes = Kit_DsdTruthComputeNodeTwo_rec( p, pNtk, Abc_Lit2Var(pNtk->Root), uSupp, iVar, pTruthDec );
// complement the truth table if needed
if ( Abc_LitIsCompl(pNtk->Root) )
Kit_TruthNot( pTruthRes, pTruthRes, pNtk->nVars );
return pTruthRes;
}
/**Function*************************************************************
Synopsis [Derives the truth table of the DSD network.]
Description []
SideEffects []
SeeAlso []
***********************************************************************/
void Kit_DsdTruth( Kit_DsdNtk_t * pNtk, unsigned * pTruthRes )
{
Kit_DsdMan_t * p;
unsigned * pTruth;
p = Kit_DsdManAlloc( pNtk->nVars, Kit_DsdNtkObjNum(pNtk) );
pTruth = Kit_DsdTruthCompute( p, pNtk );
Kit_TruthCopy( pTruthRes, pTruth, pNtk->nVars );
Kit_DsdManFree( p );
}
/**Function*************************************************************
Synopsis [Derives the truth table of the DSD network.]
Description []
SideEffects []
SeeAlso []
***********************************************************************/
void Kit_DsdTruthPartialTwo( Kit_DsdMan_t * p, Kit_DsdNtk_t * pNtk, unsigned uSupp, int iVar, unsigned * pTruthCo, unsigned * pTruthDec )
{
unsigned * pTruth = Kit_DsdTruthComputeTwo( p, pNtk, uSupp, iVar, pTruthDec );
if ( pTruthCo )
Kit_TruthCopy( pTruthCo, pTruth, pNtk->nVars );
}
/**Function*************************************************************
Synopsis [Derives the truth table of the DSD network.]
Description []
SideEffects []
SeeAlso []
***********************************************************************/
void Kit_DsdTruthPartial( Kit_DsdMan_t * p, Kit_DsdNtk_t * pNtk, unsigned * pTruthRes, unsigned uSupp )
{
unsigned * pTruth = Kit_DsdTruthComputeOne( p, pNtk, uSupp );
Kit_TruthCopy( pTruthRes, pTruth, pNtk->nVars );
/*
// verification
{
// compute the same function using different procedure
unsigned * pTruthTemp = Vec_PtrEntry(p->vTtNodes, pNtk->nVars + pNtk->nNodes + 1);
pNtk->pSupps = NULL;
Kit_DsdTruthComputeTwo( p, pNtk, uSupp, -1, pTruthTemp );
// if ( !Kit_TruthIsEqual( pTruthTemp, pTruthRes, pNtk->nVars ) )
if ( !Kit_TruthIsEqualWithPhase( pTruthTemp, pTruthRes, pNtk->nVars ) )
{
printf( "Verification FAILED!\n" );
Kit_DsdPrint( stdout, pNtk );
Kit_DsdPrintFromTruth( pTruthRes, pNtk->nVars );
Kit_DsdPrintFromTruth( pTruthTemp, pNtk->nVars );
}
// else
// printf( "Verification successful.\n" );
}
*/
}
/**Function*************************************************************
Synopsis [Counts the number of blocks of the given number of inputs.]
Description []
SideEffects []
SeeAlso []
***********************************************************************/
int Kit_DsdCountLuts_rec( Kit_DsdNtk_t * pNtk, int nLutSize, int Id, int * pCounter )
{
Kit_DsdObj_t * pObj;
unsigned iLit, i, Res0, Res1;
pObj = Kit_DsdNtkObj( pNtk, Id );
if ( pObj == NULL )
return 0;
if ( pObj->Type == KIT_DSD_AND || pObj->Type == KIT_DSD_XOR )
{
assert( pObj->nFans == 2 );
Res0 = Kit_DsdCountLuts_rec( pNtk, nLutSize, Abc_Lit2Var(pObj->pFans[0]), pCounter );
Res1 = Kit_DsdCountLuts_rec( pNtk, nLutSize, Abc_Lit2Var(pObj->pFans[1]), pCounter );
if ( Res0 == 0 && Res1 > 0 )
return Res1 - 1;
if ( Res0 > 0 && Res1 == 0 )
return Res0 - 1;
(*pCounter)++;
return nLutSize - 2;
}
assert( pObj->Type == KIT_DSD_PRIME );
if ( (int)pObj->nFans > nLutSize ) //+ 1 )
{
*pCounter = 1000;
return 0;
}
Kit_DsdObjForEachFanin( pNtk, pObj, iLit, i )
Kit_DsdCountLuts_rec( pNtk, nLutSize, Abc_Lit2Var(iLit), pCounter );
(*pCounter)++;
// if ( (int)pObj->nFans == nLutSize + 1 )
// (*pCounter)++;
return nLutSize - pObj->nFans;
}
/**Function*************************************************************
Synopsis [Counts the number of blocks of the given number of inputs.]
Description []
SideEffects []
SeeAlso []
***********************************************************************/
int Kit_DsdCountLuts( Kit_DsdNtk_t * pNtk, int nLutSize )
{
int Counter = 0;
if ( Kit_DsdNtkRoot(pNtk)->Type == KIT_DSD_CONST1 )
return 0;
if ( Kit_DsdNtkRoot(pNtk)->Type == KIT_DSD_VAR )
return 0;
Kit_DsdCountLuts_rec( pNtk, nLutSize, Abc_Lit2Var(pNtk->Root), &Counter );
if ( Counter >= 1000 )
return -1;
return Counter;
}
/**Function*************************************************************
Synopsis [Returns the size of the largest non-DSD block.]
Description []
SideEffects []
SeeAlso []
***********************************************************************/
int Kit_DsdNonDsdSizeMax( Kit_DsdNtk_t * pNtk )
{
Kit_DsdObj_t * pObj;
unsigned i, nSizeMax = 0;
Kit_DsdNtkForEachObj( pNtk, pObj, i )
{
if ( pObj->Type != KIT_DSD_PRIME )
continue;
if ( nSizeMax < pObj->nFans )
nSizeMax = pObj->nFans;
}
return nSizeMax;
}
/**Function*************************************************************
Synopsis [Returns the largest non-DSD block.]
Description []
SideEffects []
SeeAlso []
***********************************************************************/
Kit_DsdObj_t * Kit_DsdNonDsdPrimeMax( Kit_DsdNtk_t * pNtk )
{
Kit_DsdObj_t * pObj, * pObjMax = NULL;
unsigned i, nSizeMax = 0;
Kit_DsdNtkForEachObj( pNtk, pObj, i )
{
if ( pObj->Type != KIT_DSD_PRIME )
continue;
if ( nSizeMax < pObj->nFans )
{
nSizeMax = pObj->nFans;
pObjMax = pObj;
}
}
return pObjMax;
}
/**Function*************************************************************
Synopsis [Finds the union of supports of the non-DSD blocks.]
Description []
SideEffects []
SeeAlso []
***********************************************************************/
unsigned Kit_DsdNonDsdSupports( Kit_DsdNtk_t * pNtk )
{
Kit_DsdObj_t * pObj;
unsigned i, uSupport = 0;
// ABC_FREE( pNtk->pSupps );
Kit_DsdGetSupports( pNtk );
Kit_DsdNtkForEachObj( pNtk, pObj, i )
{
if ( pObj->Type != KIT_DSD_PRIME )
continue;
uSupport |= Kit_DsdLitSupport( pNtk, Abc_Var2Lit(pObj->Id,0) );
}
return uSupport;
}
/**Function*************************************************************
Synopsis [Expands the node.]
Description [Returns the new literal.]
SideEffects []
SeeAlso []
***********************************************************************/
void Kit_DsdExpandCollectAnd_rec( Kit_DsdNtk_t * p, unsigned iLit, unsigned * piLitsNew, int * nLitsNew )
{
Kit_DsdObj_t * pObj;
unsigned i, iLitFanin;
// check the end of the supergate
pObj = Kit_DsdNtkObj( p, Abc_Lit2Var(iLit) );
if ( Abc_LitIsCompl(iLit) || Abc_Lit2Var(iLit) < p->nVars || pObj->Type != KIT_DSD_AND )
{
piLitsNew[(*nLitsNew)++] = iLit;
return;
}
// iterate through the fanins
Kit_DsdObjForEachFanin( p, pObj, iLitFanin, i )
Kit_DsdExpandCollectAnd_rec( p, iLitFanin, piLitsNew, nLitsNew );
}
/**Function*************************************************************
Synopsis [Expands the node.]
Description [Returns the new literal.]
SideEffects []
SeeAlso []
***********************************************************************/
void Kit_DsdExpandCollectXor_rec( Kit_DsdNtk_t * p, unsigned iLit, unsigned * piLitsNew, int * nLitsNew )
{
Kit_DsdObj_t * pObj;
unsigned i, iLitFanin;
// check the end of the supergate
pObj = Kit_DsdNtkObj( p, Abc_Lit2Var(iLit) );
if ( Abc_Lit2Var(iLit) < p->nVars || pObj->Type != KIT_DSD_XOR )
{
piLitsNew[(*nLitsNew)++] = iLit;
return;
}
// iterate through the fanins
pObj = Kit_DsdNtkObj( p, Abc_Lit2Var(iLit) );
Kit_DsdObjForEachFanin( p, pObj, iLitFanin, i )
Kit_DsdExpandCollectXor_rec( p, iLitFanin, piLitsNew, nLitsNew );
// if the literal was complemented, pass the complemented attribute somewhere
if ( Abc_LitIsCompl(iLit) )
piLitsNew[0] = Abc_LitNot( piLitsNew[0] );
}
/**Function*************************************************************
Synopsis [Expands the node.]
Description [Returns the new literal.]
SideEffects []
SeeAlso []
***********************************************************************/
int Kit_DsdExpandNode_rec( Kit_DsdNtk_t * pNew, Kit_DsdNtk_t * p, int iLit )
{
unsigned * pTruth, * pTruthNew;
unsigned i, iLitFanin, piLitsNew[16], nLitsNew = 0;
Kit_DsdObj_t * pObj, * pObjNew;
// consider the case of simple gate
pObj = Kit_DsdNtkObj( p, Abc_Lit2Var(iLit) );
if ( pObj == NULL )
return iLit;
if ( pObj->Type == KIT_DSD_AND )
{
Kit_DsdExpandCollectAnd_rec( p, Abc_LitRegular(iLit), piLitsNew, (int *)&nLitsNew );
pObjNew = Kit_DsdObjAlloc( pNew, KIT_DSD_AND, nLitsNew );
for ( i = 0; i < pObjNew->nFans; i++ )
pObjNew->pFans[i] = Kit_DsdExpandNode_rec( pNew, p, piLitsNew[i] );
return Abc_Var2Lit( pObjNew->Id, Abc_LitIsCompl(iLit) );
}
if ( pObj->Type == KIT_DSD_XOR )
{
int fCompl = Abc_LitIsCompl(iLit);
Kit_DsdExpandCollectXor_rec( p, Abc_LitRegular(iLit), piLitsNew, (int *)&nLitsNew );
pObjNew = Kit_DsdObjAlloc( pNew, KIT_DSD_XOR, nLitsNew );
for ( i = 0; i < pObjNew->nFans; i++ )
{
pObjNew->pFans[i] = Kit_DsdExpandNode_rec( pNew, p, Abc_LitRegular(piLitsNew[i]) );
fCompl ^= Abc_LitIsCompl(piLitsNew[i]);
}
return Abc_Var2Lit( pObjNew->Id, fCompl );
}
assert( pObj->Type == KIT_DSD_PRIME );
// create new PRIME node
pObjNew = Kit_DsdObjAlloc( pNew, KIT_DSD_PRIME, pObj->nFans );
// copy the truth table
pTruth = Kit_DsdObjTruth( pObj );
pTruthNew = Kit_DsdObjTruth( pObjNew );
Kit_TruthCopy( pTruthNew, pTruth, pObj->nFans );
// create fanins
Kit_DsdObjForEachFanin( pNtk, pObj, iLitFanin, i )
{
pObjNew->pFans[i] = Kit_DsdExpandNode_rec( pNew, p, iLitFanin );
// complement the corresponding inputs of the truth table
if ( Abc_LitIsCompl(pObjNew->pFans[i]) )
{
pObjNew->pFans[i] = Abc_LitRegular(pObjNew->pFans[i]);
Kit_TruthChangePhase( pTruthNew, pObjNew->nFans, i );
}
}
if ( pObj->nFans == 3 &&
(pTruthNew[0] == 0xCACACACA || pTruthNew[0] == 0xC5C5C5C5 ||
pTruthNew[0] == 0x3A3A3A3A || pTruthNew[0] == 0x35353535) )
{
// translate into regular MUXes
if ( pTruthNew[0] == 0xC5C5C5C5 )
pObjNew->pFans[0] = Abc_LitNot(pObjNew->pFans[0]);
else if ( pTruthNew[0] == 0x3A3A3A3A )
pObjNew->pFans[1] = Abc_LitNot(pObjNew->pFans[1]);
else if ( pTruthNew[0] == 0x35353535 )
{
pObjNew->pFans[0] = Abc_LitNot(pObjNew->pFans[0]);
pObjNew->pFans[1] = Abc_LitNot(pObjNew->pFans[1]);
}
pTruthNew[0] = 0xCACACACA;
// resolve the complemented control input
if ( Abc_LitIsCompl(pObjNew->pFans[2]) )
{
unsigned char Temp = pObjNew->pFans[0];
pObjNew->pFans[0] = pObjNew->pFans[1];
pObjNew->pFans[1] = Temp;
pObjNew->pFans[2] = Abc_LitNot(pObjNew->pFans[2]);
}
// resolve the complemented true input
if ( Abc_LitIsCompl(pObjNew->pFans[1]) )
{
iLit = Abc_LitNot(iLit);
pObjNew->pFans[0] = Abc_LitNot(pObjNew->pFans[0]);
pObjNew->pFans[1] = Abc_LitNot(pObjNew->pFans[1]);
}
return Abc_Var2Lit( pObjNew->Id, Abc_LitIsCompl(iLit) );
}
else
{
// if the incoming phase is complemented, absorb it into the prime node
if ( Abc_LitIsCompl(iLit) )
Kit_TruthNot( pTruthNew, pTruthNew, pObj->nFans );
return Abc_Var2Lit( pObjNew->Id, 0 );
}
}
/**Function*************************************************************
Synopsis [Expands the network.]
Description []
SideEffects []
SeeAlso []
***********************************************************************/
Kit_DsdNtk_t * Kit_DsdExpand( Kit_DsdNtk_t * p )
{
Kit_DsdNtk_t * pNew;
Kit_DsdObj_t * pObjNew;
assert( p->nVars <= 16 );
// create a new network
pNew = Kit_DsdNtkAlloc( p->nVars );
// consider simple special cases
if ( Kit_DsdNtkRoot(p)->Type == KIT_DSD_CONST1 )
{
pObjNew = Kit_DsdObjAlloc( pNew, KIT_DSD_CONST1, 0 );
pNew->Root = Abc_Var2Lit( pObjNew->Id, Abc_LitIsCompl(p->Root) );
return pNew;
}
if ( Kit_DsdNtkRoot(p)->Type == KIT_DSD_VAR )
{
pObjNew = Kit_DsdObjAlloc( pNew, KIT_DSD_VAR, 1 );
pObjNew->pFans[0] = Kit_DsdNtkRoot(p)->pFans[0];
pNew->Root = Abc_Var2Lit( pObjNew->Id, Abc_LitIsCompl(p->Root) );
return pNew;
}
// convert the root node
pNew->Root = Kit_DsdExpandNode_rec( pNew, p, p->Root );
return pNew;
}
/**Function*************************************************************
Synopsis [Sorts the literals by their support.]
Description []
SideEffects []
SeeAlso []
***********************************************************************/
void Kit_DsdCompSort( int pPrios[], unsigned uSupps[], unsigned short * piLits, int nVars, unsigned piLitsRes[] )
{
int nSuppSizes[16], Priority[16], pOrder[16];
int i, k, iVarBest, SuppMax, PrioMax;
// compute support sizes and priorities of the components
for ( i = 0; i < nVars; i++ )
{
assert( uSupps[i] );
pOrder[i] = i;
Priority[i] = KIT_INFINITY;
for ( k = 0; k < 16; k++ )
if ( uSupps[i] & (1 << k) )
Priority[i] = KIT_MIN( Priority[i], pPrios[k] );
assert( Priority[i] != 16 );
nSuppSizes[i] = Kit_WordCountOnes(uSupps[i]);
}
// sort the components by pririty
Extra_BubbleSort( pOrder, Priority, nVars, 0 );
// find the component by with largest size and lowest priority
iVarBest = -1;
SuppMax = 0;
PrioMax = 0;
for ( i = 0; i < nVars; i++ )
{
if ( SuppMax < nSuppSizes[i] || (SuppMax == nSuppSizes[i] && PrioMax < Priority[i]) )
{
SuppMax = nSuppSizes[i];
PrioMax = Priority[i];
iVarBest = i;
}
}
assert( iVarBest != -1 );
// copy the resulting literals
k = 0;
piLitsRes[k++] = piLits[iVarBest];
for ( i = 0; i < nVars; i++ )
{
if ( pOrder[i] == iVarBest )
continue;
piLitsRes[k++] = piLits[pOrder[i]];
}
assert( k == nVars );
}
/**Function*************************************************************
Synopsis [Shrinks multi-input nodes.]
Description [Takes the array of variable priorities pPrios.]
SideEffects []
SeeAlso []
***********************************************************************/
int Kit_DsdShrink_rec( Kit_DsdNtk_t * pNew, Kit_DsdNtk_t * p, int iLit, int pPrios[] )
{
Kit_DsdObj_t * pObj;
Kit_DsdObj_t * pObjNew = NULL; // Suppress "might be used uninitialized"
unsigned * pTruth, * pTruthNew;
unsigned i, piLitsNew[16], uSupps[16];
int iLitFanin, iLitNew;
// consider the case of simple gate
pObj = Kit_DsdNtkObj( p, Abc_Lit2Var(iLit) );
if ( pObj == NULL )
return iLit;
if ( pObj->Type == KIT_DSD_AND )
{
// get the supports
Kit_DsdObjForEachFanin( p, pObj, iLitFanin, i )
uSupps[i] = Kit_DsdLitSupport( p, iLitFanin );
// put the largest component last
// sort other components in the decreasing order of priority of their vars
Kit_DsdCompSort( pPrios, uSupps, pObj->pFans, pObj->nFans, piLitsNew );
// construct the two-input node network
iLitNew = Kit_DsdShrink_rec( pNew, p, piLitsNew[0], pPrios );
for ( i = 1; i < pObj->nFans; i++ )
{
pObjNew = Kit_DsdObjAlloc( pNew, KIT_DSD_AND, 2 );
pObjNew->pFans[0] = Kit_DsdShrink_rec( pNew, p, piLitsNew[i], pPrios );
pObjNew->pFans[1] = iLitNew;
iLitNew = Abc_Var2Lit( pObjNew->Id, 0 );
}
return Abc_Var2Lit( pObjNew->Id, Abc_LitIsCompl(iLit) );
}
if ( pObj->Type == KIT_DSD_XOR )
{
// get the supports
Kit_DsdObjForEachFanin( p, pObj, iLitFanin, i )
{
assert( !Abc_LitIsCompl(iLitFanin) );
uSupps[i] = Kit_DsdLitSupport( p, iLitFanin );
}
// put the largest component last
// sort other components in the decreasing order of priority of their vars
Kit_DsdCompSort( pPrios, uSupps, pObj->pFans, pObj->nFans, piLitsNew );
// construct the two-input node network
iLitNew = Kit_DsdShrink_rec( pNew, p, piLitsNew[0], pPrios );
for ( i = 1; i < pObj->nFans; i++ )
{
pObjNew = Kit_DsdObjAlloc( pNew, KIT_DSD_XOR, 2 );
pObjNew->pFans[0] = Kit_DsdShrink_rec( pNew, p, piLitsNew[i], pPrios );
pObjNew->pFans[1] = iLitNew;
iLitNew = Abc_Var2Lit( pObjNew->Id, 0 );
}
return Abc_Var2Lit( pObjNew->Id, Abc_LitIsCompl(iLit) );
}
assert( pObj->Type == KIT_DSD_PRIME );
// create new PRIME node
pObjNew = Kit_DsdObjAlloc( pNew, KIT_DSD_PRIME, pObj->nFans );
// copy the truth table
pTruth = Kit_DsdObjTruth( pObj );
pTruthNew = Kit_DsdObjTruth( pObjNew );
Kit_TruthCopy( pTruthNew, pTruth, pObj->nFans );
// create fanins
Kit_DsdObjForEachFanin( pNtk, pObj, iLitFanin, i )
{
pObjNew->pFans[i] = Kit_DsdShrink_rec( pNew, p, iLitFanin, pPrios );
// complement the corresponding inputs of the truth table
if ( Abc_LitIsCompl(pObjNew->pFans[i]) )
{
pObjNew->pFans[i] = Abc_LitRegular(pObjNew->pFans[i]);
Kit_TruthChangePhase( pTruthNew, pObjNew->nFans, i );
}
}
// if the incoming phase is complemented, absorb it into the prime node
if ( Abc_LitIsCompl(iLit) )
Kit_TruthNot( pTruthNew, pTruthNew, pObj->nFans );
return Abc_Var2Lit( pObjNew->Id, 0 );
}
/**Function*************************************************************
Synopsis [Shrinks the network.]
Description [Transforms the network to have two-input nodes so that the
higher-ordered nodes were decomposed out first.]
SideEffects []
SeeAlso []
***********************************************************************/
Kit_DsdNtk_t * Kit_DsdShrink( Kit_DsdNtk_t * p, int pPrios[] )
{
Kit_DsdNtk_t * pNew;
Kit_DsdObj_t * pObjNew;
assert( p->nVars <= 16 );
// create a new network
pNew = Kit_DsdNtkAlloc( p->nVars );
// consider simple special cases
if ( Kit_DsdNtkRoot(p)->Type == KIT_DSD_CONST1 )
{
pObjNew = Kit_DsdObjAlloc( pNew, KIT_DSD_CONST1, 0 );
pNew->Root = Abc_Var2Lit( pObjNew->Id, Abc_LitIsCompl(p->Root) );
return pNew;
}
if ( Kit_DsdNtkRoot(p)->Type == KIT_DSD_VAR )
{
pObjNew = Kit_DsdObjAlloc( pNew, KIT_DSD_VAR, 1 );
pObjNew->pFans[0] = Kit_DsdNtkRoot(p)->pFans[0];
pNew->Root = Abc_Var2Lit( pObjNew->Id, Abc_LitIsCompl(p->Root) );
return pNew;
}
// convert the root node
pNew->Root = Kit_DsdShrink_rec( pNew, p, p->Root, pPrios );
return pNew;
}
/**Function*************************************************************
Synopsis [Rotates the network.]
Description [Transforms prime nodes to have the fanin with the
highest frequency of supports go first.]
SideEffects []
SeeAlso []
***********************************************************************/
void Kit_DsdRotate( Kit_DsdNtk_t * p, int pFreqs[] )
{
Kit_DsdObj_t * pObj;
unsigned * pIn, * pOut, * pTemp, k;
int i, v, Temp, uSuppFanin, iFaninLit, WeightMax, FaninMax, nSwaps;
int Weights[16];
// go through the prime nodes
Kit_DsdNtkForEachObj( p, pObj, i )
{
if ( pObj->Type != KIT_DSD_PRIME )
continue;
// count the fanin frequencies
Kit_DsdObjForEachFanin( p, pObj, iFaninLit, k )
{
uSuppFanin = Kit_DsdLitSupport( p, iFaninLit );
Weights[k] = 0;
for ( v = 0; v < 16; v++ )
if ( uSuppFanin & (1 << v) )
Weights[k] += pFreqs[v] - 1;
}
// find the most frequent fanin
WeightMax = 0;
FaninMax = -1;
for ( k = 0; k < pObj->nFans; k++ )
if ( WeightMax < Weights[k] )
{
WeightMax = Weights[k];
FaninMax = k;
}
// no need to reorder if there are no frequent fanins
if ( FaninMax == -1 )
continue;
// move the fanins number k to the first place
nSwaps = 0;
pIn = Kit_DsdObjTruth(pObj);
pOut = p->pMem;
// for ( v = FaninMax; v < ((int)pObj->nFans)-1; v++ )
for ( v = FaninMax-1; v >= 0; v-- )
{
// swap the fanins
Temp = pObj->pFans[v];
pObj->pFans[v] = pObj->pFans[v+1];
pObj->pFans[v+1] = Temp;
// swap the truth table variables
Kit_TruthSwapAdjacentVars( pOut, pIn, pObj->nFans, v );
pTemp = pIn; pIn = pOut; pOut = pTemp;
nSwaps++;
}
if ( nSwaps & 1 )
Kit_TruthCopy( pOut, pIn, pObj->nFans );
}
}
/**Function*************************************************************
Synopsis [Compute the support.]
Description []
SideEffects []
SeeAlso []
***********************************************************************/
unsigned Kit_DsdGetSupports_rec( Kit_DsdNtk_t * p, int iLit )
{
Kit_DsdObj_t * pObj;
unsigned uSupport, k;
int iFaninLit;
pObj = Kit_DsdNtkObj( p, Abc_Lit2Var(iLit) );
if ( pObj == NULL )
return Kit_DsdLitSupport( p, iLit );
uSupport = 0;
Kit_DsdObjForEachFanin( p, pObj, iFaninLit, k )
uSupport |= Kit_DsdGetSupports_rec( p, iFaninLit );
p->pSupps[pObj->Id - p->nVars] = uSupport;
assert( uSupport <= 0xFFFF );
return uSupport;
}
/**Function*************************************************************
Synopsis [Compute the support.]
Description []
SideEffects []
SeeAlso []
***********************************************************************/
unsigned Kit_DsdGetSupports( Kit_DsdNtk_t * p )
{
Kit_DsdObj_t * pRoot;
unsigned uSupport;
assert( p->pSupps == NULL );
p->pSupps = ABC_ALLOC( unsigned, p->nNodes );
// consider simple special cases
pRoot = Kit_DsdNtkRoot(p);
if ( pRoot->Type == KIT_DSD_CONST1 )
{
assert( p->nNodes == 1 );
uSupport = p->pSupps[0] = 0;
}
if ( pRoot->Type == KIT_DSD_VAR )
{
assert( p->nNodes == 1 );
uSupport = p->pSupps[0] = Kit_DsdLitSupport( p, pRoot->pFans[0] );
}
else
uSupport = Kit_DsdGetSupports_rec( p, p->Root );
assert( uSupport <= 0xFFFF );
return uSupport;
}
/**Function*************************************************************
Synopsis [Returns 1 if there is a component with more than 3 inputs.]
Description []
SideEffects []
SeeAlso []
***********************************************************************/
int Kit_DsdFindLargeBox_rec( Kit_DsdNtk_t * pNtk, int Id, int Size )
{
Kit_DsdObj_t * pObj;
unsigned iLit, i, RetValue;
pObj = Kit_DsdNtkObj( pNtk, Id );
if ( pObj == NULL )
return 0;
if ( pObj->Type == KIT_DSD_PRIME && (int)pObj->nFans > Size )
return 1;
RetValue = 0;
Kit_DsdObjForEachFanin( pNtk, pObj, iLit, i )
RetValue |= Kit_DsdFindLargeBox_rec( pNtk, Abc_Lit2Var(iLit), Size );
return RetValue;
}
/**Function*************************************************************
Synopsis [Returns 1 if there is a component with more than 3 inputs.]
Description []
SideEffects []
SeeAlso []
***********************************************************************/
int Kit_DsdFindLargeBox( Kit_DsdNtk_t * pNtk, int Size )
{
return Kit_DsdFindLargeBox_rec( pNtk, Abc_Lit2Var(pNtk->Root), Size );
}
/**Function*************************************************************
Synopsis [Returns 1 if there is a component with more than 3 inputs.]
Description []
SideEffects []
SeeAlso []
***********************************************************************/
int Kit_DsdCountAigNodes_rec( Kit_DsdNtk_t * pNtk, int Id )
{
Kit_DsdObj_t * pObj;
unsigned iLit, i, RetValue = 0;
pObj = Kit_DsdNtkObj( pNtk, Id );
if ( pObj == NULL )
return 0;
if ( pObj->Type == KIT_DSD_CONST1 || pObj->Type == KIT_DSD_VAR )
return 0;
if ( pObj->nFans < 2 ) // why this happens? - need to figure out
return 0;
assert( pObj->nFans > 1 );
if ( pObj->Type == KIT_DSD_AND )
RetValue = ((int)pObj->nFans - 1);
else if ( pObj->Type == KIT_DSD_XOR )
RetValue = ((int)pObj->nFans - 1) * 3;
else if ( pObj->Type == KIT_DSD_PRIME )
{
// assuming MUX decomposition
assert( (int)pObj->nFans == 3 );
RetValue = 3;
}
else assert( 0 );
Kit_DsdObjForEachFanin( pNtk, pObj, iLit, i )
RetValue += Kit_DsdCountAigNodes_rec( pNtk, Abc_Lit2Var(iLit) );
return RetValue;
}
/**Function*************************************************************
Synopsis [Returns 1 if there is a component with more than 3 inputs.]
Description []
SideEffects []
SeeAlso []
***********************************************************************/
int Kit_DsdCountAigNodes2( Kit_DsdNtk_t * pNtk )
{
return Kit_DsdCountAigNodes_rec( pNtk, Abc_Lit2Var(pNtk->Root) );
}
/**Function*************************************************************
Synopsis [Returns 1 if there is a component with more than 3 inputs.]
Description []
SideEffects []
SeeAlso []
***********************************************************************/
int Kit_DsdCountAigNodes( Kit_DsdNtk_t * pNtk )
{
Kit_DsdObj_t * pObj;
int i, Counter = 0;
for ( i = 0; i < pNtk->nNodes; i++ )
{
pObj = pNtk->pNodes[i];
if ( pObj->Type == KIT_DSD_AND )
Counter += ((int)pObj->nFans - 1);
else if ( pObj->Type == KIT_DSD_XOR )
Counter += ((int)pObj->nFans - 1) * 3;
else if ( pObj->Type == KIT_DSD_PRIME ) // assuming MUX decomposition
Counter += 3;
}
return Counter;
}
/**Function*************************************************************
Synopsis [Returns 1 if the non-DSD 4-var func is implementable with two 3-LUTs.]
Description []
SideEffects []
SeeAlso []
***********************************************************************/
int Kit_DsdRootNodeHasCommonVars( Kit_DsdObj_t * pObj0, Kit_DsdObj_t * pObj1 )
{
unsigned i, k;
for ( i = 0; i < pObj0->nFans; i++ )
{
if ( Abc_Lit2Var(pObj0->pFans[i]) >= 4 )
continue;
for ( k = 0; k < pObj1->nFans; k++ )
if ( Abc_Lit2Var(pObj0->pFans[i]) == Abc_Lit2Var(pObj1->pFans[k]) )
return 1;
}
return 0;
}
/**Function*************************************************************
Synopsis [Returns 1 if the non-DSD 4-var func is implementable with two 3-LUTs.]
Description []
SideEffects []
SeeAlso []
***********************************************************************/
int Kit_DsdCheckVar4Dec2( Kit_DsdNtk_t * pNtk0, Kit_DsdNtk_t * pNtk1 )
{
assert( pNtk0->nVars == 4 );
assert( pNtk1->nVars == 4 );
if ( Kit_DsdFindLargeBox(pNtk0, 2) )
return 0;
if ( Kit_DsdFindLargeBox(pNtk1, 2) )
return 0;
return Kit_DsdRootNodeHasCommonVars( Kit_DsdNtkRoot(pNtk0), Kit_DsdNtkRoot(pNtk1) );
}
/**Function*************************************************************
Synopsis [Performs decomposition of the node.]
Description []
SideEffects []
SeeAlso []
***********************************************************************/
void Kit_DsdDecompose_rec( Kit_DsdNtk_t * pNtk, Kit_DsdObj_t * pObj, unsigned uSupp, unsigned short * pPar, int nDecMux )
{
Kit_DsdObj_t * pRes, * pRes0, * pRes1;
int nWords = Kit_TruthWordNum(pObj->nFans);
unsigned * pTruth = Kit_DsdObjTruth(pObj);
unsigned * pCofs2[2] = { pNtk->pMem, pNtk->pMem + nWords };
unsigned * pCofs4[2][2] = { {pNtk->pMem + 2 * nWords, pNtk->pMem + 3 * nWords}, {pNtk->pMem + 4 * nWords, pNtk->pMem + 5 * nWords} };
int i, iLit0, iLit1, nFans0, nFans1, nPairs;
int fEquals[2][2], fOppos, fPairs[4][4];
unsigned j, k, nFansNew, uSupp0, uSupp1;
assert( pObj->nFans > 0 );
assert( pObj->Type == KIT_DSD_PRIME );
assert( uSupp == (uSupp0 = (unsigned)Kit_TruthSupport(pTruth, pObj->nFans)) );
// compress the truth table
if ( uSupp != Kit_BitMask(pObj->nFans) )
{
nFansNew = Kit_WordCountOnes(uSupp);
Kit_TruthShrink( pNtk->pMem, pTruth, nFansNew, pObj->nFans, uSupp, 1 );
for ( j = k = 0; j < pObj->nFans; j++ )
if ( uSupp & (1 << j) )
pObj->pFans[k++] = pObj->pFans[j];
assert( k == nFansNew );
pObj->nFans = k;
uSupp = Kit_BitMask(pObj->nFans);
}
// consider the single variable case
if ( pObj->nFans == 1 )
{
pObj->Type = KIT_DSD_NONE;
if ( pTruth[0] == 0x55555555 )
pObj->pFans[0] = Abc_LitNot(pObj->pFans[0]);
else
assert( pTruth[0] == 0xAAAAAAAA );
// update the parent pointer
*pPar = Abc_LitNotCond( pObj->pFans[0], Abc_LitIsCompl(*pPar) );
return;
}
// decompose the output
if ( !pObj->fMark )
for ( i = pObj->nFans - 1; i >= 0; i-- )
{
// get the two-variable cofactors
Kit_TruthCofactor0New( pCofs2[0], pTruth, pObj->nFans, i );
Kit_TruthCofactor1New( pCofs2[1], pTruth, pObj->nFans, i );
// assert( !Kit_TruthVarInSupport( pCofs2[0], pObj->nFans, i) );
// assert( !Kit_TruthVarInSupport( pCofs2[1], pObj->nFans, i) );
// get the constant cofs
fEquals[0][0] = Kit_TruthIsConst0( pCofs2[0], pObj->nFans );
fEquals[0][1] = Kit_TruthIsConst0( pCofs2[1], pObj->nFans );
fEquals[1][0] = Kit_TruthIsConst1( pCofs2[0], pObj->nFans );
fEquals[1][1] = Kit_TruthIsConst1( pCofs2[1], pObj->nFans );
fOppos = Kit_TruthIsOpposite( pCofs2[0], pCofs2[1], pObj->nFans );
assert( !Kit_TruthIsEqual(pCofs2[0], pCofs2[1], pObj->nFans) );
if ( fEquals[0][0] + fEquals[0][1] + fEquals[1][0] + fEquals[1][1] + fOppos == 0 )
{
// check the MUX decomposition
uSupp0 = Kit_TruthSupport( pCofs2[0], pObj->nFans );
uSupp1 = Kit_TruthSupport( pCofs2[1], pObj->nFans );
assert( uSupp == (uSupp0 | uSupp1 | (1<<i)) );
if ( uSupp0 & uSupp1 )
continue;
// perform MUX decomposition
pRes0 = Kit_DsdObjAlloc( pNtk, KIT_DSD_PRIME, pObj->nFans );
pRes1 = Kit_DsdObjAlloc( pNtk, KIT_DSD_PRIME, pObj->nFans );
for ( k = 0; k < pObj->nFans; k++ )
{
pRes0->pFans[k] = (uSupp0 & (1 << k))? pObj->pFans[k] : 127;
pRes1->pFans[k] = (uSupp1 & (1 << k))? pObj->pFans[k] : 127;
}
Kit_TruthCopy( Kit_DsdObjTruth(pRes0), pCofs2[0], pObj->nFans );
Kit_TruthCopy( Kit_DsdObjTruth(pRes1), pCofs2[1], pObj->nFans );
// update the current one
assert( pObj->Type == KIT_DSD_PRIME );
pTruth[0] = 0xCACACACA;
pObj->nFans = 3;
pObj->pFans[2] = pObj->pFans[i];
pObj->pFans[0] = 2*pRes0->Id; pRes0->nRefs++;
pObj->pFans[1] = 2*pRes1->Id; pRes1->nRefs++;
// call recursively
Kit_DsdDecompose_rec( pNtk, pRes0, uSupp0, pObj->pFans + 0, nDecMux );
Kit_DsdDecompose_rec( pNtk, pRes1, uSupp1, pObj->pFans + 1, nDecMux );
return;
}
// create the new node
pRes = Kit_DsdObjAlloc( pNtk, KIT_DSD_AND, 2 );
pRes->nRefs++;
pRes->nFans = 2;
pRes->pFans[0] = pObj->pFans[i]; pObj->pFans[i] = 127; uSupp &= ~(1 << i);
pRes->pFans[1] = 2*pObj->Id;
// update the parent pointer
*pPar = Abc_LitNotCond( 2 * pRes->Id, Abc_LitIsCompl(*pPar) );
// consider different decompositions
if ( fEquals[0][0] )
{
Kit_TruthCopy( pTruth, pCofs2[1], pObj->nFans );
}
else if ( fEquals[0][1] )
{
pRes->pFans[0] = Abc_LitNot(pRes->pFans[0]);
Kit_TruthCopy( pTruth, pCofs2[0], pObj->nFans );
}
else if ( fEquals[1][0] )
{
*pPar = Abc_LitNot(*pPar);
pRes->pFans[1] = Abc_LitNot(pRes->pFans[1]);
Kit_TruthCopy( pTruth, pCofs2[1], pObj->nFans );
}
else if ( fEquals[1][1] )
{
*pPar = Abc_LitNot(*pPar);
pRes->pFans[0] = Abc_LitNot(pRes->pFans[0]);
pRes->pFans[1] = Abc_LitNot(pRes->pFans[1]);
Kit_TruthCopy( pTruth, pCofs2[0], pObj->nFans );
}
else if ( fOppos )
{
pRes->Type = KIT_DSD_XOR;
Kit_TruthCopy( pTruth, pCofs2[0], pObj->nFans );
}
else
assert( 0 );
// decompose the remainder
assert( Kit_DsdObjTruth(pObj) == pTruth );
Kit_DsdDecompose_rec( pNtk, pObj, uSupp, pRes->pFans + 1, nDecMux );
return;
}
pObj->fMark = 1;
// decompose the input
for ( i = pObj->nFans - 1; i >= 0; i-- )
{
assert( Kit_TruthVarInSupport( pTruth, pObj->nFans, i ) );
// get the single variale cofactors
Kit_TruthCofactor0New( pCofs2[0], pTruth, pObj->nFans, i );
Kit_TruthCofactor1New( pCofs2[1], pTruth, pObj->nFans, i );
// check the existence of MUX decomposition
uSupp0 = Kit_TruthSupport( pCofs2[0], pObj->nFans );
uSupp1 = Kit_TruthSupport( pCofs2[1], pObj->nFans );
assert( uSupp == (uSupp0 | uSupp1 | (1<<i)) );
// if one of the cofs is a constant, it is time to check the output again
if ( uSupp0 == 0 || uSupp1 == 0 )
{
pObj->fMark = 0;
Kit_DsdDecompose_rec( pNtk, pObj, uSupp, pPar, nDecMux );
return;
}
assert( uSupp0 && uSupp1 );
// get the number of unique variables
nFans0 = Kit_WordCountOnes( uSupp0 & ~uSupp1 );
nFans1 = Kit_WordCountOnes( uSupp1 & ~uSupp0 );
if ( nFans0 == 1 && nFans1 == 1 )
{
// get the cofactors w.r.t. the unique variables
iLit0 = Kit_WordFindFirstBit( uSupp0 & ~uSupp1 );
iLit1 = Kit_WordFindFirstBit( uSupp1 & ~uSupp0 );
// get four cofactors
Kit_TruthCofactor0New( pCofs4[0][0], pCofs2[0], pObj->nFans, iLit0 );
Kit_TruthCofactor1New( pCofs4[0][1], pCofs2[0], pObj->nFans, iLit0 );
Kit_TruthCofactor0New( pCofs4[1][0], pCofs2[1], pObj->nFans, iLit1 );
Kit_TruthCofactor1New( pCofs4[1][1], pCofs2[1], pObj->nFans, iLit1 );
// check existence conditions
fEquals[0][0] = Kit_TruthIsEqual( pCofs4[0][0], pCofs4[1][0], pObj->nFans );
fEquals[0][1] = Kit_TruthIsEqual( pCofs4[0][1], pCofs4[1][1], pObj->nFans );
fEquals[1][0] = Kit_TruthIsEqual( pCofs4[0][0], pCofs4[1][1], pObj->nFans );
fEquals[1][1] = Kit_TruthIsEqual( pCofs4[0][1], pCofs4[1][0], pObj->nFans );
if ( (fEquals[0][0] && fEquals[0][1]) || (fEquals[1][0] && fEquals[1][1]) )
{
// construct the MUX
pRes = Kit_DsdObjAlloc( pNtk, KIT_DSD_PRIME, 3 );
Kit_DsdObjTruth(pRes)[0] = 0xCACACACA;
pRes->nRefs++;
pRes->nFans = 3;
pRes->pFans[0] = pObj->pFans[iLit0]; pObj->pFans[iLit0] = 127; uSupp &= ~(1 << iLit0);
pRes->pFans[1] = pObj->pFans[iLit1]; pObj->pFans[iLit1] = 127; uSupp &= ~(1 << iLit1);
pRes->pFans[2] = pObj->pFans[i]; pObj->pFans[i] = 2 * pRes->Id; // remains in support
// update the node
// if ( fEquals[0][0] && fEquals[0][1] )
// Kit_TruthMuxVar( pTruth, pCofs4[0][0], pCofs4[0][1], pObj->nFans, i );
// else
// Kit_TruthMuxVar( pTruth, pCofs4[0][1], pCofs4[0][0], pObj->nFans, i );
Kit_TruthMuxVar( pTruth, pCofs4[1][0], pCofs4[1][1], pObj->nFans, i );
if ( fEquals[1][0] && fEquals[1][1] )
pRes->pFans[0] = Abc_LitNot(pRes->pFans[0]);
// decompose the remainder
Kit_DsdDecompose_rec( pNtk, pObj, uSupp, pPar, nDecMux );
return;
}
}
// try other inputs
for ( k = i+1; k < pObj->nFans; k++ )
{
// get four cofactors ik
Kit_TruthCofactor0New( pCofs4[0][0], pCofs2[0], pObj->nFans, k ); // 00
Kit_TruthCofactor1New( pCofs4[0][1], pCofs2[0], pObj->nFans, k ); // 01
Kit_TruthCofactor0New( pCofs4[1][0], pCofs2[1], pObj->nFans, k ); // 10
Kit_TruthCofactor1New( pCofs4[1][1], pCofs2[1], pObj->nFans, k ); // 11
// compare equal pairs
fPairs[0][1] = fPairs[1][0] = Kit_TruthIsEqual( pCofs4[0][0], pCofs4[0][1], pObj->nFans );
fPairs[0][2] = fPairs[2][0] = Kit_TruthIsEqual( pCofs4[0][0], pCofs4[1][0], pObj->nFans );
fPairs[0][3] = fPairs[3][0] = Kit_TruthIsEqual( pCofs4[0][0], pCofs4[1][1], pObj->nFans );
fPairs[1][2] = fPairs[2][1] = Kit_TruthIsEqual( pCofs4[0][1], pCofs4[1][0], pObj->nFans );
fPairs[1][3] = fPairs[3][1] = Kit_TruthIsEqual( pCofs4[0][1], pCofs4[1][1], pObj->nFans );
fPairs[2][3] = fPairs[3][2] = Kit_TruthIsEqual( pCofs4[1][0], pCofs4[1][1], pObj->nFans );
nPairs = fPairs[0][1] + fPairs[0][2] + fPairs[0][3] + fPairs[1][2] + fPairs[1][3] + fPairs[2][3];
if ( nPairs != 3 && nPairs != 2 )
continue;
// decomposition exists
pRes = Kit_DsdObjAlloc( pNtk, KIT_DSD_AND, 2 );
pRes->nRefs++;
pRes->nFans = 2;
pRes->pFans[0] = pObj->pFans[k]; pObj->pFans[k] = 2 * pRes->Id; // remains in support
pRes->pFans[1] = pObj->pFans[i]; pObj->pFans[i] = 127; uSupp &= ~(1 << i);
if ( !fPairs[0][1] && !fPairs[0][2] && !fPairs[0][3] ) // 00
{
pRes->pFans[0] = Abc_LitNot(pRes->pFans[0]);
pRes->pFans[1] = Abc_LitNot(pRes->pFans[1]);
Kit_TruthMuxVar( pTruth, pCofs4[1][1], pCofs4[0][0], pObj->nFans, k );
}
else if ( !fPairs[1][0] && !fPairs[1][2] && !fPairs[1][3] ) // 01
{
pRes->pFans[1] = Abc_LitNot(pRes->pFans[1]);
Kit_TruthMuxVar( pTruth, pCofs4[0][0], pCofs4[0][1], pObj->nFans, k );
}
else if ( !fPairs[2][0] && !fPairs[2][1] && !fPairs[2][3] ) // 10
{
pRes->pFans[0] = Abc_LitNot(pRes->pFans[0]);
Kit_TruthMuxVar( pTruth, pCofs4[0][0], pCofs4[1][0], pObj->nFans, k );
}
else if ( !fPairs[3][0] && !fPairs[3][1] && !fPairs[3][2] ) // 11
{
// unsigned uSupp0 = Kit_TruthSupport(pCofs4[0][0], pObj->nFans);
// unsigned uSupp1 = Kit_TruthSupport(pCofs4[1][1], pObj->nFans);
// unsigned uSupp;
// Extra_PrintBinary( stdout, &uSupp0, pObj->nFans ); printf( "\n" );
// Extra_PrintBinary( stdout, &uSupp1, pObj->nFans ); printf( "\n" );
Kit_TruthMuxVar( pTruth, pCofs4[0][0], pCofs4[1][1], pObj->nFans, k );
// uSupp = Kit_TruthSupport(pTruth, pObj->nFans);
// Extra_PrintBinary( stdout, &uSupp, pObj->nFans ); printf( "\n" ); printf( "\n" );
}
else
{
assert( fPairs[0][3] && fPairs[1][2] );
pRes->Type = KIT_DSD_XOR;;
Kit_TruthMuxVar( pTruth, pCofs4[0][0], pCofs4[0][1], pObj->nFans, k );
}
// decompose the remainder
Kit_DsdDecompose_rec( pNtk, pObj, uSupp, pPar, nDecMux );
return;
}
}
// if all decomposition methods failed and we are still above the limit, perform MUX-decomposition
if ( nDecMux > 0 && (int)pObj->nFans > nDecMux )
{
int iBestVar = Kit_TruthBestCofVar( pTruth, pObj->nFans, pCofs2[0], pCofs2[1] );
uSupp0 = Kit_TruthSupport( pCofs2[0], pObj->nFans );
uSupp1 = Kit_TruthSupport( pCofs2[1], pObj->nFans );
// perform MUX decomposition
pRes0 = Kit_DsdObjAlloc( pNtk, KIT_DSD_PRIME, pObj->nFans );
pRes1 = Kit_DsdObjAlloc( pNtk, KIT_DSD_PRIME, pObj->nFans );
for ( k = 0; k < pObj->nFans; k++ )
pRes0->pFans[k] = pRes1->pFans[k] = pObj->pFans[k];
Kit_TruthCopy( Kit_DsdObjTruth(pRes0), pCofs2[0], pObj->nFans );
Kit_TruthCopy( Kit_DsdObjTruth(pRes1), pCofs2[1], pObj->nFans );
// update the current one
assert( pObj->Type == KIT_DSD_PRIME );
pTruth[0] = 0xCACACACA;
pObj->nFans = 3;
pObj->pFans[2] = pObj->pFans[iBestVar];
pObj->pFans[0] = 2*pRes0->Id; pRes0->nRefs++;
pObj->pFans[1] = 2*pRes1->Id; pRes1->nRefs++;
// call recursively
Kit_DsdDecompose_rec( pNtk, pRes0, uSupp0, pObj->pFans + 0, nDecMux );
Kit_DsdDecompose_rec( pNtk, pRes1, uSupp1, pObj->pFans + 1, nDecMux );
}
}
/**Function*************************************************************
Synopsis [Performs decomposition of the truth table.]
Description []
SideEffects []
SeeAlso []
***********************************************************************/
Kit_DsdNtk_t * Kit_DsdDecomposeInt( unsigned * pTruth, int nVars, int nDecMux )
{
Kit_DsdNtk_t * pNtk;
Kit_DsdObj_t * pObj;
unsigned uSupp;
int i, nVarsReal;
assert( nVars <= 16 );
pNtk = Kit_DsdNtkAlloc( nVars );
pNtk->Root = Abc_Var2Lit( pNtk->nVars, 0 );
// create the first node
pObj = Kit_DsdObjAlloc( pNtk, KIT_DSD_PRIME, nVars );
assert( pNtk->pNodes[0] == pObj );
for ( i = 0; i < nVars; i++ )
pObj->pFans[i] = Abc_Var2Lit( i, 0 );
Kit_TruthCopy( Kit_DsdObjTruth(pObj), pTruth, nVars );
uSupp = Kit_TruthSupport( pTruth, nVars );
// consider special cases
nVarsReal = Kit_WordCountOnes( uSupp );
if ( nVarsReal == 0 )
{
pObj->Type = KIT_DSD_CONST1;
pObj->nFans = 0;
if ( pTruth[0] == 0 )
pNtk->Root = Abc_LitNot(pNtk->Root);
return pNtk;
}
if ( nVarsReal == 1 )
{
pObj->Type = KIT_DSD_VAR;
pObj->nFans = 1;
pObj->pFans[0] = Abc_Var2Lit( Kit_WordFindFirstBit(uSupp), (pTruth[0] & 1) );
return pNtk;
}
Kit_DsdDecompose_rec( pNtk, pNtk->pNodes[0], uSupp, &pNtk->Root, nDecMux );
return pNtk;
}
/**Function*************************************************************
Synopsis [Performs decomposition of the truth table.]
Description []
SideEffects []
SeeAlso []
***********************************************************************/
Kit_DsdNtk_t * Kit_DsdDecompose( unsigned * pTruth, int nVars )
{
return Kit_DsdDecomposeInt( pTruth, nVars, 0 );
}
/**Function*************************************************************
Synopsis [Performs decomposition of the truth table.]
Description []
SideEffects []
SeeAlso []
***********************************************************************/
Kit_DsdNtk_t * Kit_DsdDecomposeExpand( unsigned * pTruth, int nVars )
{
Kit_DsdNtk_t * pNtk, * pTemp;
pNtk = Kit_DsdDecomposeInt( pTruth, nVars, 0 );
pNtk = Kit_DsdExpand( pTemp = pNtk );
Kit_DsdNtkFree( pTemp );
return pNtk;
}
/**Function*************************************************************
Synopsis [Performs decomposition of the truth table.]
Description [Uses MUXes to break-down large prime nodes.]
SideEffects []
SeeAlso []
***********************************************************************/
Kit_DsdNtk_t * Kit_DsdDecomposeMux( unsigned * pTruth, int nVars, int nDecMux )
{
/*
Kit_DsdNtk_t * pNew;
Kit_DsdObj_t * pObjNew;
assert( nVars <= 16 );
// create a new network
pNew = Kit_DsdNtkAlloc( nVars );
// consider simple special cases
if ( nVars == 0 )
{
pObjNew = Kit_DsdObjAlloc( pNew, KIT_DSD_CONST1, 0 );
pNew->Root = Abc_Var2Lit( pObjNew->Id, (int)(pTruth[0] == 0) );
return pNew;
}
if ( nVars == 1 )
{
pObjNew = Kit_DsdObjAlloc( pNew, KIT_DSD_VAR, 1 );
pObjNew->pFans[0] = Abc_Var2Lit( 0, 0 );
pNew->Root = Abc_Var2Lit( pObjNew->Id, (int)(pTruth[0] != 0xAAAAAAAA) );
return pNew;
}
*/
return Kit_DsdDecomposeInt( pTruth, nVars, nDecMux );
}
/**Function*************************************************************
Synopsis [Performs decomposition of the truth table.]
Description []
SideEffects []
SeeAlso []
***********************************************************************/
int Kit_DsdTestCofs( Kit_DsdNtk_t * pNtk, unsigned * pTruthInit )
{
Kit_DsdNtk_t * pNtk0, * pNtk1, * pTemp;
// Kit_DsdObj_t * pRoot;
unsigned * pCofs2[2] = { pNtk->pMem, pNtk->pMem + Kit_TruthWordNum(pNtk->nVars) };
unsigned i, * pTruth;
int fVerbose = 1;
int RetValue = 0;
pTruth = pTruthInit;
// pRoot = Kit_DsdNtkRoot(pNtk);
// pTruth = Kit_DsdObjTruth(pRoot);
// assert( pRoot->nFans == pNtk->nVars );
if ( fVerbose )
{
printf( "Function: " );
// Extra_PrintBinary( stdout, pTruth, (1 << pNtk->nVars) );
Extra_PrintHexadecimal( stdout, pTruth, pNtk->nVars );
printf( "\n" );
Kit_DsdPrint( stdout, pNtk ), printf( "\n" );
}
for ( i = 0; i < pNtk->nVars; i++ )
{
Kit_TruthCofactor0New( pCofs2[0], pTruth, pNtk->nVars, i );
pNtk0 = Kit_DsdDecompose( pCofs2[0], pNtk->nVars );
pNtk0 = Kit_DsdExpand( pTemp = pNtk0 );
Kit_DsdNtkFree( pTemp );
if ( fVerbose )
{
printf( "Cof%d0: ", i );
Kit_DsdPrint( stdout, pNtk0 ), printf( "\n" );
}
Kit_TruthCofactor1New( pCofs2[1], pTruth, pNtk->nVars, i );
pNtk1 = Kit_DsdDecompose( pCofs2[1], pNtk->nVars );
pNtk1 = Kit_DsdExpand( pTemp = pNtk1 );
Kit_DsdNtkFree( pTemp );
if ( fVerbose )
{
printf( "Cof%d1: ", i );
Kit_DsdPrint( stdout, pNtk1 ), printf( "\n" );
}
// if ( Kit_DsdCheckVar4Dec2( pNtk0, pNtk1 ) )
// RetValue = 1;
Kit_DsdNtkFree( pNtk0 );
Kit_DsdNtkFree( pNtk1 );
}
if ( fVerbose )
printf( "\n" );
return RetValue;
}
/**Function*************************************************************
Synopsis [Performs decomposition of the truth table.]
Description []
SideEffects []
SeeAlso []
***********************************************************************/
int Kit_DsdEval( unsigned * pTruth, int nVars, int nLutSize )
{
Kit_DsdMan_t * p;
Kit_DsdNtk_t * pNtk;
unsigned * pTruthC;
int Result;
// decompose the function
pNtk = Kit_DsdDecompose( pTruth, nVars );
Result = Kit_DsdCountLuts( pNtk, nLutSize );
// printf( "\n" );
// Kit_DsdPrint( stdout, pNtk );
// printf( "Eval = %d.\n", Result );
// recompute the truth table
p = Kit_DsdManAlloc( nVars, Kit_DsdNtkObjNum(pNtk) );
pTruthC = Kit_DsdTruthCompute( p, pNtk );
if ( !Kit_TruthIsEqual( pTruth, pTruthC, nVars ) )
printf( "Verification failed.\n" );
Kit_DsdManFree( p );
Kit_DsdNtkFree( pNtk );
return Result;
}
/**Function*************************************************************
Synopsis [Performs decomposition of the truth table.]
Description []
SideEffects []
SeeAlso []
***********************************************************************/
void Kit_DsdVerify( Kit_DsdNtk_t * pNtk, unsigned * pTruth, int nVars )
{
Kit_DsdMan_t * p;
unsigned * pTruthC;
p = Kit_DsdManAlloc( nVars, Kit_DsdNtkObjNum(pNtk)+2 );
pTruthC = Kit_DsdTruthCompute( p, pNtk );
if ( !Extra_TruthIsEqual( pTruth, pTruthC, nVars ) )
printf( "Verification failed for gate with %d inputs.\n", nVars );
Kit_DsdManFree( p );
}
/**Function*************************************************************
Synopsis [Performs decomposition of the truth table.]
Description []
SideEffects []
SeeAlso []
***********************************************************************/
void Kit_DsdTest( unsigned * pTruth, int nVars )
{
Kit_DsdMan_t * p;
unsigned * pTruthC;
Kit_DsdNtk_t * pNtk, * pTemp;
pNtk = Kit_DsdDecompose( pTruth, nVars );
// if ( Kit_DsdFindLargeBox(pNtk, Abc_Lit2Var(pNtk->Root)) )
// Kit_DsdPrint( stdout, pNtk );
// if ( Kit_DsdNtkRoot(pNtk)->nFans == (unsigned)nVars && nVars == 6 )
// printf( "\n" );
// Kit_DsdPrint( stdout, pNtk );
pNtk = Kit_DsdExpand( pTemp = pNtk );
Kit_DsdNtkFree( pTemp );
Kit_DsdPrint( stdout, pNtk ), printf( "\n" );
// if ( Kit_DsdFindLargeBox(pNtk, Abc_Lit2Var(pNtk->Root)) )
// Kit_DsdTestCofs( pNtk, pTruth );
// recompute the truth table
p = Kit_DsdManAlloc( nVars, Kit_DsdNtkObjNum(pNtk) );
pTruthC = Kit_DsdTruthCompute( p, pNtk );
// Extra_PrintBinary( stdout, pTruth, 1 << nVars ); printf( "\n" );
// Extra_PrintBinary( stdout, pTruthC, 1 << nVars ); printf( "\n" );
if ( Extra_TruthIsEqual( pTruth, pTruthC, nVars ) )
{
// printf( "Verification is okay.\n" );
}
else
printf( "Verification failed.\n" );
Kit_DsdManFree( p );
Kit_DsdNtkFree( pNtk );
}
/**Function*************************************************************
Synopsis [Performs decomposition of the truth table.]
Description []
SideEffects []
SeeAlso []
***********************************************************************/
void Kit_DsdPrecompute4Vars()
{
Kit_DsdMan_t * p;
Kit_DsdNtk_t * pNtk, * pTemp;
FILE * pFile;
unsigned uTruth;
unsigned * pTruthC;
char Buffer[256];
int i, RetValue;
int Counter1 = 0, Counter2 = 0;
pFile = fopen( "5npn/npn4.txt", "r" );
for ( i = 0; fgets( Buffer, 100, pFile ); i++ )
{
Buffer[6] = 0;
Extra_ReadHexadecimal( &uTruth, Buffer+2, 4 );
uTruth = ((uTruth & 0xffff) << 16) | (uTruth & 0xffff);
pNtk = Kit_DsdDecompose( &uTruth, 4 );
pNtk = Kit_DsdExpand( pTemp = pNtk );
Kit_DsdNtkFree( pTemp );
if ( Kit_DsdFindLargeBox(pNtk, 3) )
{
// RetValue = 0;
RetValue = Kit_DsdTestCofs( pNtk, &uTruth );
printf( "\n" );
printf( "%3d : Non-DSD function %s %s\n", i, Buffer + 2, RetValue? "implementable" : "" );
Kit_DsdPrint( stdout, pNtk ), printf( "\n" );
Counter1++;
Counter2 += RetValue;
}
/*
printf( "%3d : Function %s ", i, Buffer + 2 );
if ( !Kit_DsdFindLargeBox(pNtk, 3) )
Kit_DsdPrint( stdout, pNtk );
else
printf( "\n" );
*/
p = Kit_DsdManAlloc( 4, Kit_DsdNtkObjNum(pNtk) );
pTruthC = Kit_DsdTruthCompute( p, pNtk );
if ( !Extra_TruthIsEqual( &uTruth, pTruthC, 4 ) )
printf( "Verification failed.\n" );
Kit_DsdManFree( p );
Kit_DsdNtkFree( pNtk );
}
fclose( pFile );
printf( "non-DSD = %d implementable = %d\n", Counter1, Counter2 );
}
/**Function*************************************************************
Synopsis [Returns the set of cofactoring variables.]
Description [If there is no DSD components returns 0.]
SideEffects []
SeeAlso []
***********************************************************************/
int Kit_DsdCofactoringGetVars( Kit_DsdNtk_t ** ppNtk, int nSize, int * pVars )
{
Kit_DsdObj_t * pObj;
unsigned m;
int i, k, v, Var, nVars, iFaninLit;
// go through all the networks
nVars = 0;
for ( i = 0; i < nSize; i++ )
{
// go through the prime objects of each networks
Kit_DsdNtkForEachObj( ppNtk[i], pObj, k )
{
if ( pObj->Type != KIT_DSD_PRIME )
continue;
if ( pObj->nFans == 3 )
continue;
// collect direct fanin variables
Kit_DsdObjForEachFanin( ppNtk[i], pObj, iFaninLit, m )
{
if ( !Kit_DsdLitIsLeaf(ppNtk[i], iFaninLit) )
continue;
// add it to the array
Var = Abc_Lit2Var( iFaninLit );
for ( v = 0; v < nVars; v++ )
if ( pVars[v] == Var )
break;
if ( v == nVars )
pVars[nVars++] = Var;
}
}
}
return nVars;
}
/**Function*************************************************************
Synopsis [Canonical decomposition into completely DSD-structure.]
Description [Returns the number of cofactoring steps. Also returns
the cofactoring variables in pVars.]
SideEffects []
SeeAlso []
***********************************************************************/
int Kit_DsdCofactoring( unsigned * pTruth, int nVars, int * pCofVars, int nLimit, int fVerbose )
{
Kit_DsdNtk_t * ppNtks[5][16] = {
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}
};
Kit_DsdNtk_t * pTemp;
unsigned * ppCofs[5][16];
int pTryVars[16], nTryVars;
int nPrimeSizeMin, nPrimeSizeMax, nPrimeSizeCur;
int nSuppSizeMin, nSuppSizeMax, iVarBest;
int i, k, v, nStep, nSize, nMemSize;
assert( nLimit < 5 );
// allocate storage for cofactors
nMemSize = Kit_TruthWordNum(nVars);
ppCofs[0][0] = ABC_ALLOC( unsigned, 80 * nMemSize );
nSize = 0;
for ( i = 0; i < 5; i++ )
for ( k = 0; k < 16; k++ )
ppCofs[i][k] = ppCofs[0][0] + nMemSize * nSize++;
assert( nSize == 80 );
// copy the function
Kit_TruthCopy( ppCofs[0][0], pTruth, nVars );
ppNtks[0][0] = Kit_DsdDecompose( ppCofs[0][0], nVars );
if ( fVerbose )
printf( "\nProcessing prime function with %d support variables:\n", nVars );
// perform recursive cofactoring
for ( nStep = 0; nStep < nLimit; nStep++ )
{
nSize = (1 << nStep);
// find the variables to use in the cofactoring step
nTryVars = Kit_DsdCofactoringGetVars( ppNtks[nStep], nSize, pTryVars );
if ( nTryVars == 0 )
break;
// cofactor w.r.t. the above variables
iVarBest = -1;
nPrimeSizeMin = 10000;
nSuppSizeMin = 10000;
for ( v = 0; v < nTryVars; v++ )
{
nPrimeSizeMax = 0;
nSuppSizeMax = 0;
for ( i = 0; i < nSize; i++ )
{
// cofactor and decompose cofactors
Kit_TruthCofactor0New( ppCofs[nStep+1][2*i+0], ppCofs[nStep][i], nVars, pTryVars[v] );
Kit_TruthCofactor1New( ppCofs[nStep+1][2*i+1], ppCofs[nStep][i], nVars, pTryVars[v] );
ppNtks[nStep+1][2*i+0] = Kit_DsdDecompose( ppCofs[nStep+1][2*i+0], nVars );
ppNtks[nStep+1][2*i+1] = Kit_DsdDecompose( ppCofs[nStep+1][2*i+1], nVars );
// compute the largest non-decomp block
nPrimeSizeCur = Kit_DsdNonDsdSizeMax(ppNtks[nStep+1][2*i+0]);
nPrimeSizeMax = KIT_MAX( nPrimeSizeMax, nPrimeSizeCur );
nPrimeSizeCur = Kit_DsdNonDsdSizeMax(ppNtks[nStep+1][2*i+1]);
nPrimeSizeMax = KIT_MAX( nPrimeSizeMax, nPrimeSizeCur );
// compute the sum total of supports
nSuppSizeMax += Kit_TruthSupportSize( ppCofs[nStep+1][2*i+0], nVars );
nSuppSizeMax += Kit_TruthSupportSize( ppCofs[nStep+1][2*i+1], nVars );
// free the networks
Kit_DsdNtkFree( ppNtks[nStep+1][2*i+0] );
Kit_DsdNtkFree( ppNtks[nStep+1][2*i+1] );
}
// find the min max support size of the prime component
if ( nPrimeSizeMin > nPrimeSizeMax || (nPrimeSizeMin == nPrimeSizeMax && nSuppSizeMin > nSuppSizeMax) )
{
nPrimeSizeMin = nPrimeSizeMax;
nSuppSizeMin = nSuppSizeMax;
iVarBest = pTryVars[v];
}
}
assert( iVarBest != -1 );
// save the variable
if ( pCofVars )
pCofVars[nStep] = iVarBest;
// cofactor w.r.t. the best
for ( i = 0; i < nSize; i++ )
{
Kit_TruthCofactor0New( ppCofs[nStep+1][2*i+0], ppCofs[nStep][i], nVars, iVarBest );
Kit_TruthCofactor1New( ppCofs[nStep+1][2*i+1], ppCofs[nStep][i], nVars, iVarBest );
ppNtks[nStep+1][2*i+0] = Kit_DsdDecompose( ppCofs[nStep+1][2*i+0], nVars );
ppNtks[nStep+1][2*i+1] = Kit_DsdDecompose( ppCofs[nStep+1][2*i+1], nVars );
if ( fVerbose )
{
ppNtks[nStep+1][2*i+0] = Kit_DsdExpand( pTemp = ppNtks[nStep+1][2*i+0] );
Kit_DsdNtkFree( pTemp );
ppNtks[nStep+1][2*i+1] = Kit_DsdExpand( pTemp = ppNtks[nStep+1][2*i+1] );
Kit_DsdNtkFree( pTemp );
printf( "Cof%d%d: ", nStep+1, 2*i+0 );
Kit_DsdPrint( stdout, ppNtks[nStep+1][2*i+0] ), printf( "\n" );
printf( "Cof%d%d: ", nStep+1, 2*i+1 );
Kit_DsdPrint( stdout, ppNtks[nStep+1][2*i+1] ), printf( "\n" );
}
}
}
// free the networks
for ( i = 0; i < 5; i++ )
for ( k = 0; k < 16; k++ )
if ( ppNtks[i][k] )
Kit_DsdNtkFree( ppNtks[i][k] );
ABC_FREE( ppCofs[0][0] );
assert( nStep <= nLimit );
return nStep;
}
/**Function*************************************************************
Synopsis [Canonical decomposition into completely DSD-structure.]
Description [Returns the number of cofactoring steps. Also returns
the cofactoring variables in pVars.]
SideEffects []
SeeAlso []
***********************************************************************/
void Kit_DsdPrintCofactors( unsigned * pTruth, int nVars, int nCofLevel, int fVerbose )
{
Kit_DsdNtk_t * ppNtks[32] = {0}, * pTemp;
unsigned * ppCofs[5][16];
int piCofVar[5];
int nPrimeSizeMax, nPrimeSizeCur, nSuppSizeMax;
int i, k, v1, v2, v3, v4, s, nSteps, nSize, nMemSize;
assert( nCofLevel < 5 );
// print the function
ppNtks[0] = Kit_DsdDecompose( pTruth, nVars );
ppNtks[0] = Kit_DsdExpand( pTemp = ppNtks[0] );
Kit_DsdNtkFree( pTemp );
if ( fVerbose )
Kit_DsdPrint( stdout, ppNtks[0] ), printf( "\n" );
Kit_DsdNtkFree( ppNtks[0] );
// allocate storage for cofactors
nMemSize = Kit_TruthWordNum(nVars);
ppCofs[0][0] = ABC_ALLOC( unsigned, 80 * nMemSize );
nSize = 0;
for ( i = 0; i < 5; i++ )
for ( k = 0; k < 16; k++ )
ppCofs[i][k] = ppCofs[0][0] + nMemSize * nSize++;
assert( nSize == 80 );
// copy the function
Kit_TruthCopy( ppCofs[0][0], pTruth, nVars );
if ( nCofLevel == 1 )
for ( v1 = 0; v1 < nVars; v1++ )
{
nSteps = 0;
piCofVar[nSteps++] = v1;
printf( " Variables { " );
for ( i = 0; i < nSteps; i++ )
printf( "%c ", 'a' + piCofVar[i] );
printf( "}\n" );
// single cofactors
for ( s = 1; s <= nSteps; s++ )
{
for ( k = 0; k < s; k++ )
{
nSize = (1 << k);
for ( i = 0; i < nSize; i++ )
{
Kit_TruthCofactor0New( ppCofs[k+1][2*i+0], ppCofs[k][i], nVars, piCofVar[k] );
Kit_TruthCofactor1New( ppCofs[k+1][2*i+1], ppCofs[k][i], nVars, piCofVar[k] );
}
}
}
// compute DSD networks
nSize = (1 << nSteps);
nPrimeSizeMax = 0;
nSuppSizeMax = 0;
for ( i = 0; i < nSize; i++ )
{
ppNtks[i] = Kit_DsdDecompose( ppCofs[nSteps][i], nVars );
ppNtks[i] = Kit_DsdExpand( pTemp = ppNtks[i] );
Kit_DsdNtkFree( pTemp );
if ( fVerbose )
{
printf( "Cof%d%d: ", nSteps, i );
Kit_DsdPrint( stdout, ppNtks[i] ), printf( "\n" );
}
// compute the largest non-decomp block
nPrimeSizeCur = Kit_DsdNonDsdSizeMax(ppNtks[i]);
nPrimeSizeMax = KIT_MAX( nPrimeSizeMax, nPrimeSizeCur );
Kit_DsdNtkFree( ppNtks[i] );
nSuppSizeMax += Kit_TruthSupportSize( ppCofs[nSteps][i], nVars );
}
printf( "Max = %2d. Supps = %2d.\n", nPrimeSizeMax, nSuppSizeMax );
}
if ( nCofLevel == 2 )
for ( v1 = 0; v1 < nVars; v1++ )
for ( v2 = v1+1; v2 < nVars; v2++ )
{
nSteps = 0;
piCofVar[nSteps++] = v1;
piCofVar[nSteps++] = v2;
printf( " Variables { " );
for ( i = 0; i < nSteps; i++ )
printf( "%c ", 'a' + piCofVar[i] );
printf( "}\n" );
// single cofactors
for ( s = 1; s <= nSteps; s++ )
{
for ( k = 0; k < s; k++ )
{
nSize = (1 << k);
for ( i = 0; i < nSize; i++ )
{
Kit_TruthCofactor0New( ppCofs[k+1][2*i+0], ppCofs[k][i], nVars, piCofVar[k] );
Kit_TruthCofactor1New( ppCofs[k+1][2*i+1], ppCofs[k][i], nVars, piCofVar[k] );
}
}
}
// compute DSD networks
nSize = (1 << nSteps);
nPrimeSizeMax = 0;
nSuppSizeMax = 0;
for ( i = 0; i < nSize; i++ )
{
ppNtks[i] = Kit_DsdDecompose( ppCofs[nSteps][i], nVars );
ppNtks[i] = Kit_DsdExpand( pTemp = ppNtks[i] );
Kit_DsdNtkFree( pTemp );
if ( fVerbose )
{
printf( "Cof%d%d: ", nSteps, i );
Kit_DsdPrint( stdout, ppNtks[i] ), printf( "\n" );
}
// compute the largest non-decomp block
nPrimeSizeCur = Kit_DsdNonDsdSizeMax(ppNtks[i]);
nPrimeSizeMax = KIT_MAX( nPrimeSizeMax, nPrimeSizeCur );
Kit_DsdNtkFree( ppNtks[i] );
nSuppSizeMax += Kit_TruthSupportSize( ppCofs[nSteps][i], nVars );
}
printf( "Max = %2d. Supps = %2d.\n", nPrimeSizeMax, nSuppSizeMax );
}
if ( nCofLevel == 3 )
for ( v1 = 0; v1 < nVars; v1++ )
for ( v2 = v1+1; v2 < nVars; v2++ )
for ( v3 = v2+1; v3 < nVars; v3++ )
{
nSteps = 0;
piCofVar[nSteps++] = v1;
piCofVar[nSteps++] = v2;
piCofVar[nSteps++] = v3;
printf( " Variables { " );
for ( i = 0; i < nSteps; i++ )
printf( "%c ", 'a' + piCofVar[i] );
printf( "}\n" );
// single cofactors
for ( s = 1; s <= nSteps; s++ )
{
for ( k = 0; k < s; k++ )
{
nSize = (1 << k);
for ( i = 0; i < nSize; i++ )
{
Kit_TruthCofactor0New( ppCofs[k+1][2*i+0], ppCofs[k][i], nVars, piCofVar[k] );
Kit_TruthCofactor1New( ppCofs[k+1][2*i+1], ppCofs[k][i], nVars, piCofVar[k] );
}
}
}
// compute DSD networks
nSize = (1 << nSteps);
nPrimeSizeMax = 0;
nSuppSizeMax = 0;
for ( i = 0; i < nSize; i++ )
{
ppNtks[i] = Kit_DsdDecompose( ppCofs[nSteps][i], nVars );
ppNtks[i] = Kit_DsdExpand( pTemp = ppNtks[i] );
Kit_DsdNtkFree( pTemp );
if ( fVerbose )
{
printf( "Cof%d%d: ", nSteps, i );
Kit_DsdPrint( stdout, ppNtks[i] ), printf( "\n" );
}
// compute the largest non-decomp block
nPrimeSizeCur = Kit_DsdNonDsdSizeMax(ppNtks[i]);
nPrimeSizeMax = KIT_MAX( nPrimeSizeMax, nPrimeSizeCur );
Kit_DsdNtkFree( ppNtks[i] );
nSuppSizeMax += Kit_TruthSupportSize( ppCofs[nSteps][i], nVars );
}
printf( "Max = %2d. Supps = %2d.\n", nPrimeSizeMax, nSuppSizeMax );
}
if ( nCofLevel == 4 )
for ( v1 = 0; v1 < nVars; v1++ )
for ( v2 = v1+1; v2 < nVars; v2++ )
for ( v3 = v2+1; v3 < nVars; v3++ )
for ( v4 = v3+1; v4 < nVars; v4++ )
{
nSteps = 0;
piCofVar[nSteps++] = v1;
piCofVar[nSteps++] = v2;
piCofVar[nSteps++] = v3;
piCofVar[nSteps++] = v4;
printf( " Variables { " );
for ( i = 0; i < nSteps; i++ )
printf( "%c ", 'a' + piCofVar[i] );
printf( "}\n" );
// single cofactors
for ( s = 1; s <= nSteps; s++ )
{
for ( k = 0; k < s; k++ )
{
nSize = (1 << k);
for ( i = 0; i < nSize; i++ )
{
Kit_TruthCofactor0New( ppCofs[k+1][2*i+0], ppCofs[k][i], nVars, piCofVar[k] );
Kit_TruthCofactor1New( ppCofs[k+1][2*i+1], ppCofs[k][i], nVars, piCofVar[k] );
}
}
}
// compute DSD networks
nSize = (1 << nSteps);
nPrimeSizeMax = 0;
nSuppSizeMax = 0;
for ( i = 0; i < nSize; i++ )
{
ppNtks[i] = Kit_DsdDecompose( ppCofs[nSteps][i], nVars );
ppNtks[i] = Kit_DsdExpand( pTemp = ppNtks[i] );
Kit_DsdNtkFree( pTemp );
if ( fVerbose )
{
printf( "Cof%d%d: ", nSteps, i );
Kit_DsdPrint( stdout, ppNtks[i] ), printf( "\n" );
}
// compute the largest non-decomp block
nPrimeSizeCur = Kit_DsdNonDsdSizeMax(ppNtks[i]);
nPrimeSizeMax = KIT_MAX( nPrimeSizeMax, nPrimeSizeCur );
Kit_DsdNtkFree( ppNtks[i] );
nSuppSizeMax += Kit_TruthSupportSize( ppCofs[nSteps][i], nVars );
}
printf( "Max = %2d. Supps = %2d.\n", nPrimeSizeMax, nSuppSizeMax );
}
ABC_FREE( ppCofs[0][0] );
}
/**Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
***********************************************************************/
char ** Kit_DsdNpn4ClassNames()
{
static const char * pNames[222] = {
"F = 0", /* 0 */
"F = (!d*(!c*(!b*!a)))", /* 1 */
"F = (!d*(!c*!b))", /* 2 */
"F = (!d*(!c*(b+a)))", /* 3 */
"F = (!d*(!c*!(b*a)))", /* 4 */
"F = (!d*!c)", /* 5 */
"F = (!d*16(a,b,c))", /* 6 */
"F = (!d*17(a,b,c))", /* 7 */
"F = (!d*18(a,b,c))", /* 8 */
"F = (!d*19(a,b,c))", /* 9 */
"F = (!d*CA(!b,!c,a))", /* 10 */
"F = (!d*(c+!(!b*!a)))", /* 11 */
"F = (!d*!(c*!(!b*!a)))", /* 12 */
"F = (!d*(c+b))", /* 13 */
"F = (!d*3D(a,b,c))", /* 14 */
"F = (!d*!(c*b))", /* 15 */
"F = (!d*(c+(b+!a)))", /* 16 */
"F = (!d*6B(a,b,c))", /* 17 */
"F = (!d*!(c*!(b+a)))", /* 18 */
"F = (!d*7E(a,b,c))", /* 19 */
"F = (!d*!(c*(b*a)))", /* 20 */
"F = (!d)", /* 21 */
"F = 0116(a,b,c,d)", /* 22 */
"F = 0117(a,b,c,d)", /* 23 */
"F = 0118(a,b,c,d)", /* 24 */
"F = 0119(a,b,c,d)", /* 25 */
"F = 011A(a,b,c,d)", /* 26 */
"F = 011B(a,b,c,d)", /* 27 */
"F = 29((!b*!a),c,d)", /* 28 */
"F = 2B((!b*!a),c,d)", /* 29 */
"F = 012C(a,b,c,d)", /* 30 */
"F = 012D(a,b,c,d)", /* 31 */
"F = 012F(a,b,c,d)", /* 32 */
"F = 013C(a,b,c,d)", /* 33 */
"F = 013D(a,b,c,d)", /* 34 */
"F = 013E(a,b,c,d)", /* 35 */
"F = 013F(a,b,c,d)", /* 36 */
"F = 0168(a,b,c,d)", /* 37 */
"F = 0169(a,b,c,d)", /* 38 */
"F = 016A(a,b,c,d)", /* 39 */
"F = 016B(a,b,c,d)", /* 40 */
"F = 016E(a,b,c,d)", /* 41 */
"F = 016F(a,b,c,d)", /* 42 */
"F = 017E(a,b,c,d)", /* 43 */
"F = 017F(a,b,c,d)", /* 44 */
"F = 0180(a,b,c,d)", /* 45 */
"F = 0181(a,b,c,d)", /* 46 */
"F = 0182(a,b,c,d)", /* 47 */
"F = 0183(a,b,c,d)", /* 48 */
"F = 0186(a,b,c,d)", /* 49 */
"F = 0187(a,b,c,d)", /* 50 */
"F = 0189(a,b,c,d)", /* 51 */
"F = 018B(a,b,c,d)", /* 52 */
"F = 018F(a,b,c,d)", /* 53 */
"F = 0196(a,b,c,d)", /* 54 */
"F = 0197(a,b,c,d)", /* 55 */
"F = 0198(a,b,c,d)", /* 56 */
"F = 0199(a,b,c,d)", /* 57 */
"F = 019A(a,b,c,d)", /* 58 */
"F = 019B(a,b,c,d)", /* 59 */
"F = 019E(a,b,c,d)", /* 60 */
"F = 019F(a,b,c,d)", /* 61 */
"F = 42(a,(!c*!b),d)", /* 62 */
"F = 46(a,(!c*!b),d)", /* 63 */
"F = 4A(a,(!c*!b),d)", /* 64 */
"F = CA((!c*!b),!d,a)", /* 65 */
"F = 01AC(a,b,c,d)", /* 66 */
"F = 01AD(a,b,c,d)", /* 67 */
"F = 01AE(a,b,c,d)", /* 68 */
"F = 01AF(a,b,c,d)", /* 69 */
"F = 01BC(a,b,c,d)", /* 70 */
"F = 01BD(a,b,c,d)", /* 71 */
"F = 01BE(a,b,c,d)", /* 72 */
"F = 01BF(a,b,c,d)", /* 73 */
"F = 01E8(a,b,c,d)", /* 74 */
"F = 01E9(a,b,c,d)", /* 75 */
"F = 01EA(a,b,c,d)", /* 76 */
"F = 01EB(a,b,c,d)", /* 77 */
"F = 25((!b*!a),c,d)", /* 78 */
"F = !CA(d,c,(!b*!a))", /* 79 */
"F = (d+!(!c*(!b*!a)))", /* 80 */
"F = 16(b,c,d)", /* 81 */
"F = 033D(a,b,c,d)", /* 82 */
"F = 17(b,c,d)", /* 83 */
"F = ((!d*!a)+(!c*!b))", /* 84 */
"F = !(!(!c*!b)*!(!d*!a))", /* 85 */
"F = 0358(a,b,c,d)", /* 86 */
"F = 0359(a,b,c,d)", /* 87 */
"F = 035A(a,b,c,d)", /* 88 */
"F = 035B(a,b,c,d)", /* 89 */
"F = 035E(a,b,c,d)", /* 90 */
"F = 035F(a,b,c,d)", /* 91 */
"F = 0368(a,b,c,d)", /* 92 */
"F = 0369(a,b,c,d)", /* 93 */
"F = 036A(a,b,c,d)", /* 94 */
"F = 036B(a,b,c,d)", /* 95 */
"F = 036C(a,b,c,d)", /* 96 */
"F = 036D(a,b,c,d)", /* 97 */
"F = 036E(a,b,c,d)", /* 98 */
"F = 036F(a,b,c,d)", /* 99 */
"F = 037C(a,b,c,d)", /* 100 */
"F = 037D(a,b,c,d)", /* 101 */
"F = 037E(a,b,c,d)", /* 102 */
"F = 18(b,c,d)", /* 103 */
"F = 03C1(a,b,c,d)", /* 104 */
"F = 19(b,c,d)", /* 105 */
"F = 03C5(a,b,c,d)", /* 106 */
"F = 03C6(a,b,c,d)", /* 107 */
"F = 03C7(a,b,c,d)", /* 108 */
"F = CA(!c,!d,b)", /* 109 */
"F = 03D4(a,b,c,d)", /* 110 */
"F = 03D5(a,b,c,d)", /* 111 */
"F = 03D6(a,b,c,d)", /* 112 */
"F = 03D7(a,b,c,d)", /* 113 */
"F = 03D8(a,b,c,d)", /* 114 */
"F = 03D9(a,b,c,d)", /* 115 */
"F = 03DB(a,b,c,d)", /* 116 */
"F = 03DC(a,b,c,d)", /* 117 */
"F = 03DD(a,b,c,d)", /* 118 */
"F = 03DE(a,b,c,d)", /* 119 */
"F = (d+!(!c*!b))", /* 120 */
"F = ((d+c)*(b+a))", /* 121 */
"F = 0661(a,b,c,d)", /* 122 */
"F = 0662(a,b,c,d)", /* 123 */
"F = 0663(a,b,c,d)", /* 124 */
"F = (!(d*c)*(b+a))", /* 125 */
"F = 0667(a,b,c,d)", /* 126 */
"F = 29((b+a),c,d)", /* 127 */
"F = 066B(a,b,c,d)", /* 128 */
"F = 2B((b+a),c,d)", /* 129 */
"F = 0672(a,b,c,d)", /* 130 */
"F = 0673(a,b,c,d)", /* 131 */
"F = 0676(a,b,c,d)", /* 132 */
"F = 0678(a,b,c,d)", /* 133 */
"F = 0679(a,b,c,d)", /* 134 */
"F = 067A(a,b,c,d)", /* 135 */
"F = 067B(a,b,c,d)", /* 136 */
"F = 067E(a,b,c,d)", /* 137 */
"F = 24((b+a),c,d)", /* 138 */
"F = 0691(a,b,c,d)", /* 139 */
"F = 0693(a,b,c,d)", /* 140 */
"F = 26((b+a),c,d)", /* 141 */
"F = 0697(a,b,c,d)", /* 142 */
"F = !CA(d,c,(b+a))", /* 143 */
"F = 06B0(a,b,c,d)", /* 144 */
"F = 06B1(a,b,c,d)", /* 145 */
"F = 06B2(a,b,c,d)", /* 146 */
"F = 06B3(a,b,c,d)", /* 147 */
"F = 06B4(a,b,c,d)", /* 148 */
"F = 06B5(a,b,c,d)", /* 149 */
"F = 06B6(a,b,c,d)", /* 150 */
"F = 06B7(a,b,c,d)", /* 151 */
"F = 06B9(a,b,c,d)", /* 152 */
"F = 06BD(a,b,c,d)", /* 153 */
"F = 2C((b+a),c,d)", /* 154 */
"F = 06F1(a,b,c,d)", /* 155 */
"F = 06F2(a,b,c,d)", /* 156 */
"F = CA((b+a),!d,c)", /* 157 */
"F = (d+!(!c*!(b+!a)))", /* 158 */
"F = 0776(a,b,c,d)", /* 159 */
"F = 16((b*a),c,d)", /* 160 */
"F = 0779(a,b,c,d)", /* 161 */
"F = 077A(a,b,c,d)", /* 162 */
"F = 077E(a,b,c,d)", /* 163 */
"F = 07B0(a,b,c,d)", /* 164 */
"F = 07B1(a,b,c,d)", /* 165 */
"F = 07B4(a,b,c,d)", /* 166 */
"F = 07B5(a,b,c,d)", /* 167 */
"F = 07B6(a,b,c,d)", /* 168 */
"F = 07BC(a,b,c,d)", /* 169 */
"F = 07E0(a,b,c,d)", /* 170 */
"F = 07E1(a,b,c,d)", /* 171 */
"F = 07E2(a,b,c,d)", /* 172 */
"F = 07E3(a,b,c,d)", /* 173 */
"F = 07E6(a,b,c,d)", /* 174 */
"F = 07E9(a,b,c,d)", /* 175 */
"F = 1C((b*a),c,d)", /* 176 */
"F = 07F1(a,b,c,d)", /* 177 */
"F = 07F2(a,b,c,d)", /* 178 */
"F = (d+!(!c*!(b*a)))", /* 179 */
"F = (d+c)", /* 180 */
"F = 1668(a,b,c,d)", /* 181 */
"F = 1669(a,b,c,d)", /* 182 */
"F = 166A(a,b,c,d)", /* 183 */
"F = 166B(a,b,c,d)", /* 184 */
"F = 166E(a,b,c,d)", /* 185 */
"F = 167E(a,b,c,d)", /* 186 */
"F = 1681(a,b,c,d)", /* 187 */
"F = 1683(a,b,c,d)", /* 188 */
"F = 1686(a,b,c,d)", /* 189 */
"F = 1687(a,b,c,d)", /* 190 */
"F = 1689(a,b,c,d)", /* 191 */
"F = 168B(a,b,c,d)", /* 192 */
"F = 168E(a,b,c,d)", /* 193 */
"F = 1696(a,b,c,d)", /* 194 */
"F = 1697(a,b,c,d)", /* 195 */
"F = 1698(a,b,c,d)", /* 196 */
"F = 1699(a,b,c,d)", /* 197 */
"F = 169A(a,b,c,d)", /* 198 */
"F = 169B(a,b,c,d)", /* 199 */
"F = 169E(a,b,c,d)", /* 200 */
"F = 16A9(a,b,c,d)", /* 201 */
"F = 16AC(a,b,c,d)", /* 202 */
"F = 16AD(a,b,c,d)", /* 203 */
"F = 16BC(a,b,c,d)", /* 204 */
"F = (d+E9(a,b,c))", /* 205 */
"F = 177E(a,b,c,d)", /* 206 */
"F = 178E(a,b,c,d)", /* 207 */
"F = 1796(a,b,c,d)", /* 208 */
"F = 1798(a,b,c,d)", /* 209 */
"F = 179A(a,b,c,d)", /* 210 */
"F = 17AC(a,b,c,d)", /* 211 */
"F = (d+E8(a,b,c))", /* 212 */
"F = (d+E7(a,b,c))", /* 213 */
"F = 19E1(a,b,c,d)", /* 214 */
"F = 19E3(a,b,c,d)", /* 215 */
"F = (d+E6(a,b,c))", /* 216 */
"F = 1BD8(a,b,c,d)", /* 217 */
"F = (d+CA(b,c,a))", /* 218 */
"F = (d+(c+(!b*!a)))", /* 219 */
"F = (d+(c+!b))", /* 220 */
"F = (d+(c+(b+a)))" /* 221 */
};
return (char **)pNames;
}
////////////////////////////////////////////////////////////////////////
/// END OF FILE ///
////////////////////////////////////////////////////////////////////////
ABC_NAMESPACE_IMPL_END
|
02a97b9cd41aaf2b2ebb488b4c8928eb4c3a5a15
|
79d343002bb63a44f8ab0dbac0c9f4ec54078c3a
|
/lib/libc/wasi/libc-bottom-half/cloudlibc/src/libc/sys/stat/stat_impl.h
|
9726b5165685b7342c8e972c9e1f3dbc30682992
|
[
"MIT",
"LLVM-exception",
"Apache-2.0",
"NCSA",
"BSD-2-Clause"
] |
permissive
|
ziglang/zig
|
4aa75d8d3bcc9e39bf61d265fd84b7f005623fc5
|
f4c9e19bc3213c2bc7e03d7b06d7129882f39f6c
|
refs/heads/master
| 2023-08-31T13:16:45.980913
| 2023-08-31T05:50:29
| 2023-08-31T05:50:29
| 40,276,274
| 25,560
| 2,399
|
MIT
| 2023-09-14T21:09:50
| 2015-08-06T00:51:28
|
Zig
|
UTF-8
|
C
| false
| false
| 3,605
|
h
|
stat_impl.h
|
// Copyright (c) 2015-2017 Nuxi, https://nuxi.nl/
//
// SPDX-License-Identifier: BSD-2-Clause
#ifndef SYS_STAT_STAT_IMPL_H
#define SYS_STAT_STAT_IMPL_H
#include <common/time.h>
#include <sys/stat.h>
#include <assert.h>
#include <wasi/api.h>
#include <stdbool.h>
static_assert(S_ISBLK(S_IFBLK), "Value mismatch");
static_assert(S_ISCHR(S_IFCHR), "Value mismatch");
static_assert(S_ISDIR(S_IFDIR), "Value mismatch");
static_assert(S_ISFIFO(S_IFIFO), "Value mismatch");
static_assert(S_ISLNK(S_IFLNK), "Value mismatch");
static_assert(S_ISREG(S_IFREG), "Value mismatch");
static_assert(S_ISSOCK(S_IFSOCK), "Value mismatch");
static inline void to_public_stat(const __wasi_filestat_t *in,
struct stat *out) {
// Ensure that we don't truncate any values.
static_assert(sizeof(in->dev) == sizeof(out->st_dev), "Size mismatch");
static_assert(sizeof(in->ino) == sizeof(out->st_ino), "Size mismatch");
/*
* The non-standard __st_filetype field appears to only be used for shared
* memory, which we don't currently support.
*/
/* nlink_t is 64-bit on wasm32, following the x32 ABI. */
static_assert(sizeof(in->nlink) <= sizeof(out->st_nlink), "Size shortfall");
static_assert(sizeof(in->size) == sizeof(out->st_size), "Size mismatch");
*out = (struct stat){
.st_dev = in->dev,
.st_ino = in->ino,
.st_nlink = in->nlink,
.st_size = in->size,
.st_atim = timestamp_to_timespec(in->atim),
.st_mtim = timestamp_to_timespec(in->mtim),
.st_ctim = timestamp_to_timespec(in->ctim),
};
// Convert file type to legacy types encoded in st_mode.
switch (in->filetype) {
case __WASI_FILETYPE_BLOCK_DEVICE:
out->st_mode |= S_IFBLK;
break;
case __WASI_FILETYPE_CHARACTER_DEVICE:
out->st_mode |= S_IFCHR;
break;
case __WASI_FILETYPE_DIRECTORY:
out->st_mode |= S_IFDIR;
break;
case __WASI_FILETYPE_REGULAR_FILE:
out->st_mode |= S_IFREG;
break;
case __WASI_FILETYPE_SOCKET_DGRAM:
case __WASI_FILETYPE_SOCKET_STREAM:
out->st_mode |= S_IFSOCK;
break;
case __WASI_FILETYPE_SYMBOLIC_LINK:
out->st_mode |= S_IFLNK;
break;
}
}
static inline bool utimens_get_timestamps(const struct timespec *times,
__wasi_timestamp_t *st_atim,
__wasi_timestamp_t *st_mtim,
__wasi_fstflags_t *flags) {
if (times == NULL) {
// Update both timestamps.
*flags = __WASI_FSTFLAGS_ATIM_NOW | __WASI_FSTFLAGS_MTIM_NOW;
*st_atim = (__wasi_timestamp_t) { 0 };
*st_mtim = (__wasi_timestamp_t) { 0 };
} else {
// Set individual timestamps.
*flags = 0;
switch (times[0].tv_nsec) {
case UTIME_NOW:
*flags |= __WASI_FSTFLAGS_ATIM_NOW;
*st_atim = (__wasi_timestamp_t) { 0 };
break;
case UTIME_OMIT:
*st_atim = (__wasi_timestamp_t) { 0 };
break;
default:
*flags |= __WASI_FSTFLAGS_ATIM;
if (!timespec_to_timestamp_exact(×[0], st_atim))
return false;
break;
}
switch (times[1].tv_nsec) {
case UTIME_NOW:
*flags |= __WASI_FSTFLAGS_MTIM_NOW;
*st_mtim = (__wasi_timestamp_t) { 0 };
break;
case UTIME_OMIT:
*st_mtim = (__wasi_timestamp_t) { 0 };
break;
default:
*flags |= __WASI_FSTFLAGS_MTIM;
if (!timespec_to_timestamp_exact(×[1], st_mtim))
return false;
break;
}
}
return true;
}
#endif
|
5d5423770e9e06c9ed5aacc93471ac4aeeca2831
|
42ab733e143d02091d13424fb4df16379d5bba0d
|
/third_party/libsdl2/test/testqsort.c
|
e83b0731e5896effbc5ce68cdac16fd24e8382c6
|
[
"Zlib",
"Apache-2.0",
"CC0-1.0",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-public-domain"
] |
permissive
|
google/filament
|
11cd37ac68790fcf8b33416b7d8d8870e48181f0
|
0aa0efe1599798d887fa6e33c412c09e81bea1bf
|
refs/heads/main
| 2023-08-29T17:58:22.496956
| 2023-08-28T17:27:38
| 2023-08-28T17:27:38
| 143,455,116
| 16,631
| 1,961
|
Apache-2.0
| 2023-09-14T16:23:39
| 2018-08-03T17:26:00
|
C++
|
UTF-8
|
C
| false
| false
| 2,889
|
c
|
testqsort.c
|
/*
Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely.
*/
#include "SDL_test.h"
static int
num_compare(const void *_a, const void *_b)
{
const int a = *((const int *) _a);
const int b = *((const int *) _b);
return (a < b) ? -1 : ((a > b) ? 1 : 0);
}
static void
test_sort(const char *desc, int *nums, const int arraylen)
{
int i;
int prev;
SDL_Log("test: %s arraylen=%d", desc, arraylen);
SDL_qsort(nums, arraylen, sizeof (nums[0]), num_compare);
prev = nums[0];
for (i = 1; i < arraylen; i++) {
const int val = nums[i];
if (val < prev) {
SDL_Log("sort is broken!");
return;
}
prev = val;
}
}
int
main(int argc, char *argv[])
{
static int nums[1024 * 100];
static const int itervals[] = { SDL_arraysize(nums), 12 };
int iteration;
SDLTest_RandomContext rndctx;
if (argc > 1)
{
int success;
Uint64 seed = 0;
if (argv[1][0] == '0' && argv[1][1] == 'x')
success = SDL_sscanf(argv[1] + 2, "%llx", &seed);
else
success = SDL_sscanf(argv[1], "%llu", &seed);
if (!success)
{
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Invalid seed. Use a decimal or hexadecimal number.\n");
return 1;
}
if (seed <= 0xffffffff)
{
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Seed must be equal or greater than 0x100000000.\n");
return 1;
}
SDLTest_RandomInit(&rndctx, (unsigned int)(seed >> 32), (unsigned int)(seed & 0xffffffff));
}
else
{
SDLTest_RandomInitTime(&rndctx);
}
SDL_Log("Using random seed 0x%08x%08x\n", rndctx.x, rndctx.c);
for (iteration = 0; iteration < SDL_arraysize(itervals); iteration++) {
const int arraylen = itervals[iteration];
int i;
for (i = 0; i < arraylen; i++) {
nums[i] = i;
}
test_sort("already sorted", nums, arraylen);
for (i = 0; i < arraylen; i++) {
nums[i] = i;
}
nums[arraylen-1] = -1;
test_sort("already sorted except last element", nums, arraylen);
for (i = 0; i < arraylen; i++) {
nums[i] = (arraylen-1) - i;
}
test_sort("reverse sorted", nums, arraylen);
for (i = 0; i < arraylen; i++) {
nums[i] = SDLTest_RandomInt(&rndctx);
}
test_sort("random sorted", nums, arraylen);
}
return 0;
}
/* vi: set ts=4 sw=4 expandtab: */
|
9668a37895af9f6aa46a1a1fd567c13ee32d7ef9
|
e814383d36a10839104efaa4df277996ab220fa3
|
/ompi/mpi/fortran/mpif-h/get_processor_name_f.c
|
c3c0b13373513604ae56f66f4dd114c6fdb462e2
|
[
"mpich2",
"BSD-3-Clause-Open-MPI"
] |
permissive
|
open-mpi/ompi
|
a1d7483ae1d83dd8fd8ae3ee95e832e0a0ee04e3
|
1edfdb025c4450f694600083ad871cf06c8d45cd
|
refs/heads/main
| 2023-09-01T01:30:02.040705
| 2023-08-29T17:32:18
| 2023-08-29T17:32:18
| 24,107,001
| 2,008
| 973
|
NOASSERTION
| 2023-09-14T20:59:26
| 2014-09-16T16:08:30
|
C
|
UTF-8
|
C
| false
| false
| 4,150
|
c
|
get_processor_name_f.c
|
/*
* Copyright (c) 2004-2007 The Trustees of Indiana University and Indiana
* University Research and Technology
* Corporation. All rights reserved.
* Copyright (c) 2004-2020 The University of Tennessee and The University
* of Tennessee Research Foundation. All rights
* reserved.
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
* University of Stuttgart. All rights reserved.
* Copyright (c) 2004-2005 The Regents of the University of California.
* All rights reserved.
* Copyright (c) 2006-2012 Cisco Systems, Inc. All rights reserved.
* Copyright (c) 2015-2017 Research Organization for Information Science
* and Technology (RIST). All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
*
* $HEADER$
*/
#include "ompi_config.h"
#include "ompi/mpi/fortran/mpif-h/bindings.h"
#include "ompi/constants.h"
#include "ompi/communicator/communicator.h"
#include "ompi/mpi/fortran/base/fortran_base_strings.h"
#if OMPI_BUILD_MPI_PROFILING
#if OPAL_HAVE_WEAK_SYMBOLS
#pragma weak PMPI_GET_PROCESSOR_NAME = ompi_get_processor_name_f
#pragma weak pmpi_get_processor_name = ompi_get_processor_name_f
#pragma weak pmpi_get_processor_name_ = ompi_get_processor_name_f
#pragma weak pmpi_get_processor_name__ = ompi_get_processor_name_f
#pragma weak PMPI_Get_processor_name_f = ompi_get_processor_name_f
#pragma weak PMPI_Get_processor_name_f08 = ompi_get_processor_name_f
#else
OMPI_GENERATE_F77_BINDINGS (PMPI_GET_PROCESSOR_NAME,
pmpi_get_processor_name,
pmpi_get_processor_name_,
pmpi_get_processor_name__,
pompi_get_processor_name_f,
(char *name, MPI_Fint *resultlen, MPI_Fint *ierr, int name_len),
(name, resultlen, ierr, name_len) )
#endif
#endif
#if OPAL_HAVE_WEAK_SYMBOLS
#pragma weak MPI_GET_PROCESSOR_NAME = ompi_get_processor_name_f
#pragma weak mpi_get_processor_name = ompi_get_processor_name_f
#pragma weak mpi_get_processor_name_ = ompi_get_processor_name_f
#pragma weak mpi_get_processor_name__ = ompi_get_processor_name_f
#pragma weak MPI_Get_processor_name_f = ompi_get_processor_name_f
#pragma weak MPI_Get_processor_name_f08 = ompi_get_processor_name_f
#else
#if ! OMPI_BUILD_MPI_PROFILING
OMPI_GENERATE_F77_BINDINGS (MPI_GET_PROCESSOR_NAME,
mpi_get_processor_name,
mpi_get_processor_name_,
mpi_get_processor_name__,
ompi_get_processor_name_f,
(char *name, MPI_Fint *resultlen, MPI_Fint *ierr, int name_len),
(name, resultlen, ierr, name_len) )
#else
#define ompi_get_processor_name_f pompi_get_processor_name_f
#endif
#endif
static const char FUNC_NAME[] = "MPI_GET_PROCESSOR_NAME";
/* Note that the name_len parameter is silently added by the Fortran
compiler, and will be filled in with the actual length of the
character array from the caller. Hence, it's the max length of the
string that we can use. */
void ompi_get_processor_name_f(char *name, MPI_Fint *resultlen, MPI_Fint *ierr,
int name_len)
{
int ierr_c, ret;
char c_name[MPI_MAX_PROCESSOR_NAME];
OMPI_SINGLE_NAME_DECL(resultlen);
ierr_c = PMPI_Get_processor_name(c_name,
OMPI_SINGLE_NAME_CONVERT(resultlen));
if (MPI_SUCCESS == ierr_c) {
OMPI_SINGLE_INT_2_FINT(resultlen);
/* Use the full length of the Fortran string, not *resultlen.
See comment in ompi/mpi/fortran/base/strings.c. */
if (OMPI_SUCCESS != (ret = ompi_fortran_string_c2f(c_name, name,
name_len))) {
ierr_c = OMPI_ERRHANDLER_NOHANDLE_INVOKE(ret, FUNC_NAME);
}
}
if (NULL != ierr) *ierr = OMPI_INT_2_FINT(ierr_c);
}
|
1ee69deb37814f1d53d75e06e059c177aab49f33
|
7eaf54a78c9e2117247cb2ab6d3a0c20719ba700
|
/SOFTWARE/A64-TERES/linux-a64/drivers/media/rc/gpio-ir-recv.c
|
8b82ae9bd686b5ccd06de9b3a62e0d0df48f077d
|
[
"Linux-syscall-note",
"GPL-2.0-only",
"GPL-1.0-or-later",
"LicenseRef-scancode-free-unknown",
"Apache-2.0"
] |
permissive
|
OLIMEX/DIY-LAPTOP
|
ae82f4ee79c641d9aee444db9a75f3f6709afa92
|
a3fafd1309135650bab27f5eafc0c32bc3ca74ee
|
refs/heads/rel3
| 2023-08-04T01:54:19.483792
| 2023-04-03T07:18:12
| 2023-04-03T07:18:12
| 80,094,055
| 507
| 92
|
Apache-2.0
| 2023-04-03T07:05:59
| 2017-01-26T07:25:50
|
C
|
UTF-8
|
C
| false
| false
| 6,230
|
c
|
gpio-ir-recv.c
|
/* Copyright (c) 2012, Code Aurora Forum. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/interrupt.h>
#include <linux/gpio.h>
#include <linux/slab.h>
#include <linux/of_gpio.h>
#include <linux/platform_device.h>
#include <linux/irq.h>
#include <media/rc-core.h>
#include <media/gpio-ir-recv.h>
#define GPIO_IR_DRIVER_NAME "gpio-rc-recv"
#define GPIO_IR_DEVICE_NAME "gpio_ir_recv"
struct gpio_rc_dev {
struct rc_dev *rcdev;
int gpio_nr;
bool active_low;
};
#ifdef CONFIG_OF
/*
* Translate OpenFirmware node properties into platform_data
*/
static int gpio_ir_recv_get_devtree_pdata(struct device *dev,
struct gpio_ir_recv_platform_data *pdata)
{
struct device_node *np = dev->of_node;
enum of_gpio_flags flags;
int gpio;
gpio = of_get_gpio_flags(np, 0, &flags);
if (gpio < 0) {
if (gpio != -EPROBE_DEFER)
dev_err(dev, "Failed to get gpio flags (%d)\n", gpio);
return gpio;
}
pdata->gpio_nr = gpio;
pdata->active_low = (flags & OF_GPIO_ACTIVE_LOW);
/* probe() takes care of map_name == NULL or allowed_protos == 0 */
pdata->map_name = of_get_property(np, "linux,rc-map-name", NULL);
pdata->allowed_protos = 0;
return 0;
}
static struct of_device_id gpio_ir_recv_of_match[] = {
{ .compatible = "gpio-ir-receiver", },
{ },
};
MODULE_DEVICE_TABLE(of, gpio_ir_recv_of_match);
#else /* !CONFIG_OF */
#define gpio_ir_recv_get_devtree_pdata(dev, pdata) (-ENOSYS)
#endif
static irqreturn_t gpio_ir_recv_irq(int irq, void *dev_id)
{
struct gpio_rc_dev *gpio_dev = dev_id;
int gval;
int rc = 0;
enum raw_event_type type = IR_SPACE;
gval = gpio_get_value_cansleep(gpio_dev->gpio_nr);
if (gval < 0)
goto err_get_value;
if (gpio_dev->active_low)
gval = !gval;
if (gval == 1)
type = IR_PULSE;
rc = ir_raw_event_store_edge(gpio_dev->rcdev, type);
if (rc < 0)
goto err_get_value;
ir_raw_event_handle(gpio_dev->rcdev);
err_get_value:
return IRQ_HANDLED;
}
static int gpio_ir_recv_probe(struct platform_device *pdev)
{
struct gpio_rc_dev *gpio_dev;
struct rc_dev *rcdev;
const struct gpio_ir_recv_platform_data *pdata =
pdev->dev.platform_data;
int rc;
if (pdev->dev.of_node) {
struct gpio_ir_recv_platform_data *dtpdata =
devm_kzalloc(&pdev->dev, sizeof(*dtpdata), GFP_KERNEL);
if (!dtpdata)
return -ENOMEM;
rc = gpio_ir_recv_get_devtree_pdata(&pdev->dev, dtpdata);
if (rc)
return rc;
pdata = dtpdata;
}
if (!pdata)
return -EINVAL;
if (pdata->gpio_nr < 0)
return -EINVAL;
gpio_dev = kzalloc(sizeof(struct gpio_rc_dev), GFP_KERNEL);
if (!gpio_dev)
return -ENOMEM;
rcdev = rc_allocate_device();
if (!rcdev) {
rc = -ENOMEM;
goto err_allocate_device;
}
rcdev->priv = gpio_dev;
rcdev->driver_type = RC_DRIVER_IR_RAW;
rcdev->input_name = GPIO_IR_DEVICE_NAME;
rcdev->input_phys = GPIO_IR_DEVICE_NAME "/input0";
rcdev->input_id.bustype = BUS_HOST;
rcdev->input_id.vendor = 0x0001;
rcdev->input_id.product = 0x0001;
rcdev->input_id.version = 0x0100;
rcdev->dev.parent = &pdev->dev;
rcdev->driver_name = GPIO_IR_DRIVER_NAME;
if (pdata->allowed_protos)
rcdev->allowed_protos = pdata->allowed_protos;
else
rcdev->allowed_protos = RC_BIT_ALL;
rcdev->map_name = pdata->map_name ?: RC_MAP_EMPTY;
gpio_dev->rcdev = rcdev;
gpio_dev->gpio_nr = pdata->gpio_nr;
gpio_dev->active_low = pdata->active_low;
rc = gpio_request(pdata->gpio_nr, "gpio-ir-recv");
if (rc < 0)
goto err_gpio_request;
rc = gpio_direction_input(pdata->gpio_nr);
if (rc < 0)
goto err_gpio_direction_input;
rc = rc_register_device(rcdev);
if (rc < 0) {
dev_err(&pdev->dev, "failed to register rc device\n");
goto err_register_rc_device;
}
platform_set_drvdata(pdev, gpio_dev);
rc = request_any_context_irq(gpio_to_irq(pdata->gpio_nr),
gpio_ir_recv_irq,
IRQF_TRIGGER_FALLING | IRQF_TRIGGER_RISING,
"gpio-ir-recv-irq", gpio_dev);
if (rc < 0)
goto err_request_irq;
return 0;
err_request_irq:
platform_set_drvdata(pdev, NULL);
rc_unregister_device(rcdev);
rcdev = NULL;
err_register_rc_device:
err_gpio_direction_input:
gpio_free(pdata->gpio_nr);
err_gpio_request:
rc_free_device(rcdev);
err_allocate_device:
kfree(gpio_dev);
return rc;
}
static int gpio_ir_recv_remove(struct platform_device *pdev)
{
struct gpio_rc_dev *gpio_dev = platform_get_drvdata(pdev);
free_irq(gpio_to_irq(gpio_dev->gpio_nr), gpio_dev);
platform_set_drvdata(pdev, NULL);
rc_unregister_device(gpio_dev->rcdev);
gpio_free(gpio_dev->gpio_nr);
kfree(gpio_dev);
return 0;
}
#ifdef CONFIG_PM
static int gpio_ir_recv_suspend(struct device *dev)
{
struct platform_device *pdev = to_platform_device(dev);
struct gpio_rc_dev *gpio_dev = platform_get_drvdata(pdev);
if (device_may_wakeup(dev))
enable_irq_wake(gpio_to_irq(gpio_dev->gpio_nr));
else
disable_irq(gpio_to_irq(gpio_dev->gpio_nr));
return 0;
}
static int gpio_ir_recv_resume(struct device *dev)
{
struct platform_device *pdev = to_platform_device(dev);
struct gpio_rc_dev *gpio_dev = platform_get_drvdata(pdev);
if (device_may_wakeup(dev))
disable_irq_wake(gpio_to_irq(gpio_dev->gpio_nr));
else
enable_irq(gpio_to_irq(gpio_dev->gpio_nr));
return 0;
}
static const struct dev_pm_ops gpio_ir_recv_pm_ops = {
.suspend = gpio_ir_recv_suspend,
.resume = gpio_ir_recv_resume,
};
#endif
static struct platform_driver gpio_ir_recv_driver = {
.probe = gpio_ir_recv_probe,
.remove = gpio_ir_recv_remove,
.driver = {
.name = GPIO_IR_DRIVER_NAME,
.owner = THIS_MODULE,
.of_match_table = of_match_ptr(gpio_ir_recv_of_match),
#ifdef CONFIG_PM
.pm = &gpio_ir_recv_pm_ops,
#endif
},
};
module_platform_driver(gpio_ir_recv_driver);
MODULE_DESCRIPTION("GPIO IR Receiver driver");
MODULE_LICENSE("GPL v2");
|
d10421ffbd2b3a318dff919e710f4f9528fd2c67
|
3f308bd1e45dc44276d57c089e7698b4fcda79a4
|
/doc/nicetex/npass.c
|
f72656ff08ded11495b50dbe9dfe354f20fea100
|
[] |
no_license
|
jhallen/joes-sandbox
|
b5b6d1acf3f66645c3a00757f217f7a8fe2cad27
|
0ec8c38756e4cdc40fc5f881b7c87e2628d15f24
|
refs/heads/master
| 2022-01-18T21:38:24.514745
| 2022-01-03T01:08:53
| 2022-01-03T01:08:53
| 25,269,713
| 760
| 42
| null | 2020-10-27T05:34:56
| 2014-10-15T19:21:16
|
C
|
UTF-8
|
C
| false
| false
| 4,208
|
c
|
npass.c
|
// N pass calculator
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <unistd.h>
#include <signal.h>
#include <sys/types.h>
#include <string.h>
#define US (unsigned char *)
int fail;
unsigned char *merr;
struct var {
unsigned char *name;
int set;
double val;
struct var *next;
} *vars = NULL;
static struct var *get(unsigned char *str)
{
struct var *v;
for (v = vars; v; v = v->next) {
if (!strcmp((char *)v->name, (char *)str)) {
return v;
}
}
v = (struct var *) malloc(sizeof(struct var));
v->set = 0;
v->next = vars;
vars = v;
v->name = (unsigned char *)strdup((char *)str);
return v;
}
unsigned char *ptr;
struct var *dumb;
static double expr(int prec, struct var **rtv)
{
double x = 0.0;
struct var *v = NULL;
while (*ptr == ' ' || *ptr == '\t') {
++ptr;
}
if ((*ptr >= 'a' && *ptr <= 'z') || (*ptr >= 'A' && *ptr <= 'Z')
|| *ptr == '_') {
unsigned char *s = ptr, c;
while ((*ptr >= 'a' && *ptr <= 'z')
|| (*ptr >= 'A' && *ptr <= 'Z')
|| *ptr == '_' || (*ptr >= '0' && *ptr <= '9')) {
++ptr;
}
c = *ptr;
*ptr = 0;
v = get(s);
if(!v->set)
{
merr=US "Unknown variable";
}
x = v->val;
*ptr = c;
} else if ((*ptr >= '0' && *ptr <= '9') || *ptr == '.') {
sscanf((char *)ptr, "%lf", &x);
while ((*ptr >= '0' && *ptr <= '9') || *ptr == '.' || *ptr == 'e' || *ptr == 'E')
++ptr;
} else if (*ptr == '(') {
++ptr;
x = expr(0, &v);
if (*ptr == ')')
++ptr;
else {
if (!merr)
merr = US "Missing )";
}
} else if (*ptr == '-') {
++ptr;
x = -expr(10, &dumb);
}
loop:
while (*ptr == ' ' || *ptr == '\t')
++ptr;
if (*ptr == '*' && 5 > prec) {
++ptr;
x *= expr(5, &dumb);
goto loop;
} else if (*ptr == '/' && 5 > prec) {
++ptr;
x /= expr(5, &dumb);
goto loop;
} else if (*ptr == '+' && 4 > prec) {
++ptr;
x += expr(4, &dumb);
goto loop;
} else if (*ptr == '-' && 4 > prec) {
++ptr;
x -= expr(4, &dumb);
goto loop;
} else if (*ptr == '=' && 2 >= prec) {
++ptr;
x = expr(2, &dumb);
if (v) {
v->val = x;
v->set = 1;
} else {
if (!merr)
merr = US "Left side of = is not an l-value";
}
goto loop;
}
*rtv = v;
return x;
}
double eval(unsigned char *s)
{
double result;
ptr = s;
merr = 0;
up:
result = expr(0, &dumb);
if (!merr) {
while (*ptr == ' ' || *ptr == '\t') {
++ptr;
}
if (*ptr == ';') {
++ptr;
while (*ptr == ' ' || *ptr == '\t') {
++ptr;
}
if (*ptr) {
goto up;
}
} else if (*ptr!='}') {
merr = US "Extra junk after end of expr";
}
}
return result;
}
void parse(char *s,int flg)
{
char buf[50];
char *t;
while(*s)
if(s[0]=='\\' && s[1]=='{')
{
double ans;
/* int isvar=0;
int x; */
char *start=s;
s+=2;
// Look for variable name
/*
t=s;
if(*t>='a' && *t<='z' || *t>='A' && *t<='Z' || *t=='_')
{
x=0;
while(*t>='a' && *t<='z' || *t>='A' && *t<='Z' || *t=='_' || *t>='0' && *t<='9')
buf[x++]= *t++;
if(*t==':')
{
isvar=1;
buf[x]=0;
s=t+1;
}
}
*/
// Evaluate expression
if((ans=eval((unsigned char *)s)), !merr)
{
// if(isvar) set(buf,ans);
if(flg)
{
sprintf(buf,"%lg",ans);
t=buf;
while(*t)
{
putchar(*t);
++t;
}
}
while(*s && *s!='}')
++s;
if(*s=='}') ++s;
}
else
{
fail=1;
s=start;
if(flg) putchar(*s);
++s;
}
}
else
{
if(flg) putchar(*s);
++s;
}
}
void pass(int flg)
{
char buf[32768];
rewind(stdin);
while(gets(buf))
{
parse(buf,flg);
if(flg)
putchar('\n');
}
}
int main(int argc, char *argv[])
{
int count;
// N passes to set all variables.
for(count=10;count;count--)
{
fail=0;
pass(0);
if(!fail) break;
}
if(fail)
{
fprintf(stderr,"Couldn't evaluate all equations in N passes");
}
// Final pass
pass(1);
return fail;
}
|
e9b80d2459f721f056bf82cba093c1913c1119cf
|
e814383d36a10839104efaa4df277996ab220fa3
|
/opal/mca/base/mca_base_alias.h
|
83bcbafbd956b1f10f7bbf6a89bb7f41051383cf
|
[
"mpich2",
"BSD-3-Clause-Open-MPI"
] |
permissive
|
open-mpi/ompi
|
a1d7483ae1d83dd8fd8ae3ee95e832e0a0ee04e3
|
1edfdb025c4450f694600083ad871cf06c8d45cd
|
refs/heads/main
| 2023-09-01T01:30:02.040705
| 2023-08-29T17:32:18
| 2023-08-29T17:32:18
| 24,107,001
| 2,008
| 973
|
NOASSERTION
| 2023-09-14T20:59:26
| 2014-09-16T16:08:30
|
C
|
UTF-8
|
C
| false
| false
| 2,729
|
h
|
mca_base_alias.h
|
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
/*
* Copyright (c) 2020 Google, LLC. All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
*
* $HEADER$
*/
#ifndef OPAL_MCA_BASE_ALIAS_H
#define OPAL_MCA_BASE_ALIAS_H
#include "opal_config.h"
#include "opal/class/opal_list.h"
BEGIN_C_DECLS
enum mca_base_alias_flags_t {
MCA_BASE_ALIAS_FLAG_NONE = 0,
/** The aliased name has been deprecated. */
MCA_BASE_ALIAS_FLAG_DEPRECATED = 1,
};
typedef enum mca_base_alias_flags_t mca_base_alias_flags_t;
struct mca_base_alias_item_t {
opal_list_item_t super;
/** Name aias. */
char *component_alias;
/** Alias flags. */
uint32_t alias_flags;
};
typedef struct mca_base_alias_item_t mca_base_alias_item_t;
OBJ_CLASS_DECLARATION(mca_base_alias_item_t);
struct mca_base_alias_t {
opal_object_t super;
/** List of name aliases. */
opal_list_t component_aliases;
};
typedef struct mca_base_alias_t mca_base_alias_t;
OBJ_CLASS_DECLARATION(mca_base_alias_t);
/**
* @brief Create a alias for a component name.
*
* @param[in] project Project name (may be NULL)
* @param[in] framework Framework name (may be NULL)
* @param[in] component_name Name of component to alias (may not be NULL)
* @param[in] component_alias Aliased name (may not be NULL)
* @param[in] alias_flags Flags (see mca_base_alias_flags_t)
*
* This function aliases one component name to another. When aliased
* any variable registered with this project, framework, and
* component_name will have synonyms created. For example, if
* opal_btl_vader is aliased to sm then registers a variable
* named btl_vader_flags then a synonym will be created with the
* name btl_sm_flags. If an alias is registered early enough
* (during framework registration for example) then the alias can
* also be used for component selection. In the previous example
* --mca btl vader and --mca btl sm would select the same
* component if the synonym is registered in the btl framework
* registration function.
*/
OPAL_DECLSPEC int mca_base_alias_register(const char *project, const char *framework,
const char *component_name, const char *component_alias,
uint32_t alias_flags);
/**
* @brief Check for aliases for a component.
*
* @param[in] project Project name (may be NULL)
* @param[in] frameworek Framework name (may be NULL)
* @param[in] component_name Component name (may not be NULL)
*/
OPAL_DECLSPEC const mca_base_alias_t *
mca_base_alias_lookup(const char *project, const char *framework, const char *component_name);
#endif /* OPAL_MCA_BASE_ALIAS_H */
|
97a1a65919d9cc19d0c0be31faae9886d2320341
|
c26d7b0ed875357278e61627da2da0650da77986
|
/tools/libufs/libufs.h
|
fb08b98f54be835c0de35ccadb63359ae1bfd642
|
[
"BSD-3-Clause"
] |
permissive
|
RetroBSD/retrobsd
|
5343d9e3c424637fc3ad5b03fe720b2744490025
|
486f81f6abff01c7dcc207235cd2979b226a95ff
|
refs/heads/master
| 2023-09-02T23:12:05.110883
| 2023-07-07T18:41:40
| 2023-07-07T18:41:40
| 18,598,087
| 282
| 59
|
BSD-3-Clause
| 2023-07-18T07:35:36
| 2014-04-09T13:25:46
|
C
|
UTF-8
|
C
| false
| false
| 13,211
|
h
|
libufs.h
|
#ifndef _LIBUFS_H
#define _LIBUFS_H
#include <sys/types.h>
#define dev_t int
#define ino_t u_int
#define time_t long
#define DEV_BSIZE 1024 // Block size
#define BPI (16 * DEV_BSIZE) // Bytes per inode
#define ROOTINO ((u_int)2) // i number of all roots
#define LOSTFOUNDINO (ROOTINO + 1) // i number of lost+found
#define NICINOD 32 // number of superblock inodes
#define NICFREE 200 // number of superblock free blocks
#define MAXMNTLEN 28
#define NSHIFT 8
#define NMASK 0377L
#define MAXNAMLEN 63
#define MAXSYMLINKS 8
#define DEV_BMASK (DEV_BSIZE-1)
#define B_CLRBUF 0x01
#define DEV_BSHIFT 10
#define DIRBLKSIZ 1024
#define NINDIR (DEV_BSIZE / sizeof(long))
#define INOPB 16
#define MAXPATHLEN 256
#define FSMAGIC1 ('F' | 'S'<<8 | '<'<<16 | '<'<<24)
#define FSMAGIC2 ('>' | '>'<<8 | 'F'<<16 | 'S'<<24)
#define SUPERB ((long)0) /* block number of the super block */
#define PINOD 10
#define dbtofsb(b) ((long) (b))
#define itod(x) ((long)((((u_int)(x) + INOPB - 1) / INOPB)))
#define itoo(x) ((int)(((x) + INOPB - 1) % INOPB))
#define DIRSIZ(dp) \
((((sizeof (struct direct) - (MAXNAMLEN+1)) + (dp)->d_namlen+1) + 3) &~ 3)
#define blkoff(loc) /* calculates (loc % fs->fs_bsize) */ \
((loc) & DEV_BMASK)
#define lblkno(loc) /* calculates (loc / fs->fs_bsize) */ \
((unsigned) (loc) >> DEV_BSHIFT)
#define NDINIT(ndp,op,flags,namep) {\
(ndp)->ni_nameiop = op | flags; \
(ndp)->ni_dirp = namep; }
#define roundup(x,y) ((((x)+((y)-1))/(y))*(y))
#define LOOKUP 0 /* perform name lookup only */
#define CREATE 1 /* setup for file creation */
#define DELETE 2 /* setup for file deletion */
#define LOCKPARENT 0x10 /* see the top of namei */
#define NOCACHE 0x20 /* name must not be left in cache */
#define FOLLOW 0x40 /* follow symbolic links */
#define NOFOLLOW 0x0 /* don't follow symbolic links (pseudo) */
#define B_READ 0x00001 /* read when I/O occurs */
#define B_ERROR 0x00004 /* transaction aborted */
struct fs
{
u_int fs_magic1; /* magic word */
u_int fs_isize; /* first block after i-list */
u_int fs_fsize; /* size in blocks of entire volume */
u_int fs_swapsz; /* size in blocks of swap area */
int fs_nfree; /* number of addresses in fs_free */
daddr_t fs_free [NICFREE]; /* free block list */
int fs_ninode; /* number of inodes in fs_inode */
ino_t fs_inode [NICINOD]; /* free inode list */
int fs_flock; /* lock during free list manipulation */
int fs_fmod; /* super block modified flag */
int fs_ilock; /* lock during i-list manipulation */
int fs_ronly; /* mounted read-only flag */
time_t fs_time; /* last super block update */
u_int fs_tfree; /* total free blocks */
ino_t fs_tinode; /* total free inodes */
char fs_fsmnt [MAXMNTLEN]; /* ordinary file mounted on */
ino_t fs_lasti; /* start place for circular search */
ino_t fs_nbehind; /* est # free inodes before s_lasti */
u_int fs_flags; /* mount time flags */
u_int fs_magic2; /* magic word */
/* actually longer */
};
struct fblk {
int df_nfree; /* number of addresses in df_free */
daddr_t df_free [NICFREE]; /* free block list */
};
struct direct {
ino_t d_ino; /* inode number of entry */
u_short d_reclen; /* length of this record */
u_short d_namlen; /* length of string in d_name */
char d_name[MAXNAMLEN+1]; /* name must be no longer than this */
};
#define NDADDR 4 /* direct addresses in inode */
#define NIADDR 3 /* indirect addresses in inode */
#define NADDR (NDADDR + NIADDR) /* total addresses in inode */
struct icommon1 {
u_short ic_mode; /* mode and type of file */
u_short ic_nlink; /* number of links to file */
uid_t ic_uid; /* owner's user id */
gid_t ic_gid; /* owner's group id */
off_t ic_size; /* number of bytes in file */
};
struct icommon2 {
time_t ic_atime; /* time last accessed */
time_t ic_mtime; /* time last modified */
time_t ic_ctime; /* time created */
};
struct inode {
struct inode *i_chain[2]; /* must be first */
u_int i_flag;
u_int i_count; /* reference count */
dev_t i_dev; /* device where inode resides */
ino_t i_number; /* i number, 1-to-1 with device address */
u_int i_id; /* unique identifier */
struct fs *i_fs; /* file sys associated with this inode */
union {
struct {
u_short I_shlockc; /* count of shared locks */
u_short I_exlockc; /* count of exclusive locks */
} i_l;
struct proc *I_rsel; /* pipe read select */
} i_un0;
union {
struct proc *I_wsel; /* pipe write select */
} i_un1;
union {
daddr_t I_addr[NADDR]; /* normal file/directory */
struct {
daddr_t I_db[NDADDR]; /* normal file/directory */
daddr_t I_ib[NIADDR];
} i_f;
struct {
/*
* the dummy field is here so that the de/compression
* part of the iget/iput routines works for special
* files.
*/
u_int I_dummy;
dev_t I_rdev; /* dev type */
} i_d;
} i_un2;
union {
daddr_t if_lastr; /* last read (read-ahead) */
struct {
struct inode *if_freef; /* free list forward */
struct inode **if_freeb; /* free list back */
} i_fr;
} i_un3;
struct icommon1 i_ic1;
u_int i_flags; /* user changeable flags */
struct icommon2 i_ic2;
};
struct dinode {
struct icommon1 di_icom1;
daddr_t di_addr[NADDR]; /* 7 block addresses 4 bytes each */
u_int di_reserved[1]; /* pad of 4 to make total size 64 */
u_int di_flags;
struct icommon2 di_icom2;
};
struct nameidata {
caddr_t ni_dirp; /* pathname pointer */
short ni_nameiop; /* see below */
short ni_error; /* error return if any */
off_t ni_endoff; /* end of useful stuff in directory */
struct inode *ni_pdir; /* inode of parent directory of dirp */
struct inode *ni_ip; /* inode of dirp */
off_t ni_offset; /* offset in directory */
u_short ni_count; /* offset of open slot (off_t?) */
struct direct ni_dent; /* current directory entry */
};
#define i_mode i_ic1.ic_mode
#define i_nlink i_ic1.ic_nlink
#define i_uid i_ic1.ic_uid
#define i_gid i_ic1.ic_gid
#define i_size i_ic1.ic_size
#define i_shlockc i_un0.i_l.I_shlockc
#define i_exlockc i_un0.i_l.I_exlockc
#define i_rsel i_un0.I_rsel
#define i_wsel i_un1.I_wsel
#define i_db i_un2.i_f.I_db
#define i_ib i_un2.i_f.I_ib
#define i_atime i_ic2.ic_atime
#define i_mtime i_ic2.ic_mtime
#define i_ctime i_ic2.ic_ctime
#define i_rdev i_un2.i_d.I_rdev
#define i_addr i_un2.I_addr
#define i_dummy i_un2.i_d.I_dummy
#define i_lastr i_un3.if_lastr
#define i_forw i_chain[0]
#define i_back i_chain[1]
#define i_freef i_un3.i_fr.if_freef
#define i_freeb i_un3.i_fr.if_freeb
#define di_ic1 di_icom1
#define di_ic2 di_icom2
#define di_mode di_ic1.ic_mode
#define di_nlink di_ic1.ic_nlink
#define di_uid di_ic1.ic_uid
#define di_gid di_ic1.ic_gid
#define di_size di_ic1.ic_size
#define di_atime di_ic2.ic_atime
#define di_mtime di_ic2.ic_mtime
#define di_ctime di_ic2.ic_ctime
/* i_flag */
#define ILOCKED 0x1 /* inode is locked */
#define IUPD 0x2 /* file has been modified */
#define IACC 0x4 /* inode access time to be updated */
#define IMOUNT 0x8 /* inode is mounted on */
#define IWANT 0x10 /* some process waiting on lock */
#define ITEXT 0x20 /* inode is pure text prototype */
#define ICHG 0x40 /* inode has been changed */
#define ISHLOCK 0x80 /* file has shared lock */
#define IEXLOCK 0x100 /* file has exclusive lock */
#define ILWAIT 0x200 /* someone waiting on file lock */
#define IMOD 0x400 /* inode has been modified */
#define IRENAME 0x800 /* inode is being renamed */
#define IPIPE 0x1000 /* inode is a pipe */
#define IRCOLL 0x2000 /* read select collision on pipe */
#define IWCOLL 0x4000 /* write select collision on pipe */
#define IXMOD 0x8000 /* inode is text, but impure (XXX) */
/* i_mode */
#define IFMT 0170000 /* type of file */
#define IFCHR 0020000 /* character special */
#define IFDIR 0040000 /* directory */
#define IFBLK 0060000 /* block special */
#define IFREG 0100000 /* regular */
#define IFLNK 0120000 /* symbolic link */
#define IFSOCK 0140000 /* socket */
#define ISUID 04000 /* set user id on execution */
#define ISGID 02000 /* set group id on execution */
#define ISVTX 01000 /* save swapped text even after use */
#define IREAD 0400 /* read, write, execute permissions */
#define IWRITE 0200
#define IEXEC 0100
#define IUPDAT(ip, t1, t2, waitfor) { \
if (ip->i_flag&(IUPD|IACC|ICHG|IMOD)) \
iupdat(ip, t1, t2, waitfor); \
}
#define ITIMES(ip, t1, t2) { \
if ((ip)->i_flag&(IUPD|IACC|ICHG)) { \
(ip)->i_flag |= IMOD; \
if ((ip)->i_flag&IACC) \
(ip)->i_atime = (t1)->tv_sec; \
if ((ip)->i_flag&IUPD) \
(ip)->i_mtime = (t2)->tv_sec; \
if ((ip)->i_flag&ICHG) \
(ip)->i_ctime = time.tv_sec; \
(ip)->i_flag &= ~(IACC|IUPD|ICHG); \
} \
}
struct bufhd
{
int32_t b_flags; /* see defines below */
struct buf *b_forw, *b_back; /* fwd/bkwd pointer in chain */
};
struct buf
{
int32_t b_flags; /* see defines below */
struct buf *b_forw, *b_back; /* hash chain (2 way street) */
struct buf *av_forw, *av_back; /* position on free list if not BUSY */
#define b_actf av_forw /* alternate names for driver queue */
#define b_actl av_back /* head - isn't history wonderful */
u_int32_t b_bcount; /* transfer count */
#define b_active b_bcount /* driver queue head: drive active */
int32_t b_error; /* returned after I/O */
dev_t b_dev; /* major+minor device name */
caddr_t b_addr; /* core address */
long b_blkno; /* block # on device */
u_int32_t b_resid; /* words not transferred after error */
#define b_cylin b_resid /* disksort */
#define b_errcnt b_resid /* while i/o in progress: # retries */
};
#define dotdot_ino dtdt_ino
#define dotdot_reclen dtdt_rec
#define dotdot_name dtdt_name
struct dirtemplate {
u_int dot_ino;
u_short dot_reclen;
u_short dot_namlen;
char dot_name[4]; /* must be multiple of 4 */
u_int dotdot_ino;
u_short dotdot_reclen;
u_short dotdot_namlen;
char dotdot_name[4]; /* ditto */
};
struct filesystem {
int32_t fd;
struct fs *fs;
struct inode *root;
};
extern int32_t makedir(struct direct *protodir, int32_t entries, void *buf);
extern void *fsreadblock(struct filesystem *f, int64_t bno);
extern int32_t fsformat(struct filesystem *f, int32_t bpi);
extern void fsinit(struct filesystem *f);
extern struct filesystem *fsopen(char *filename);
extern void fsclose(struct filesystem *f);
extern struct filesystem *fsnew(char *filename, u_int32_t blocks, u_int32_t bpi);
extern int32_t fsformat(struct filesystem *f, int32_t bpi);
extern struct inode *fsreadinode(struct filesystem *f, int64_t ino);
extern int32_t fswriteblock(struct filesystem *f, int64_t bno, void *buf);
extern int32_t fswriteinode(struct filesystem *f, struct inode *ip);
extern u_int32_t fsinodealloc(struct filesystem *f);
extern int64_t fsblockalloc(struct filesystem *f);
extern int32_t umkdir(struct filesystem *f, char *path);
extern int uls(struct filesystem *f, char *path);
extern int uchmod(struct filesystem *f, char *path, int mode);
extern int uchown(struct filesystem *f, char *path, int uid);
extern int uchgrp(struct filesystem *f, char *path, int gid);
extern struct inode *inodebypath(struct filesystem *f, char *path);
typedef struct {
struct filesystem *f;
struct inode *in;
off_t readoffset;
off_t writeoffset;
int perm;
} UFILE;
extern char *getsetting(char *setting);
extern void storesetting(char *setting, char *value);
extern char **splitpath(char *path, int *ndir);
extern void compresspath(char *path);
extern UFILE *ufopen(struct filesystem *f, char *path, char *mode);
extern void ufclose(UFILE *f);
extern int ufgetc(UFILE *f);
#endif
|
0967d6fe5a0af9b0929228fea8afc79a440cbda8
|
317410b28757af216145d23259d63fc96d07f613
|
/apps/common/include/update_tws_new.h
|
61fc5cf080dbb3b73d56531224933ee129e6485c
|
[
"Apache-2.0"
] |
permissive
|
Jieli-Tech/fw-AC63_BT_SDK
|
48c757dca7e8000ec763bf5466583a4cd8c4a11c
|
393d63758081d56f0bf0a39ac596bee32c33d493
|
refs/heads/master
| 2023-07-18T02:14:56.187266
| 2023-06-21T03:14:20
| 2023-06-21T03:14:20
| 272,586,610
| 113
| 76
|
Apache-2.0
| 2022-10-20T23:07:31
| 2020-06-16T02:02:15
|
C
|
UTF-8
|
C
| false
| false
| 2,780
|
h
|
update_tws_new.h
|
#ifndef _UPRATE_TWS_NEW_H
#define _UPRATE_TWS_NEW_H
#include "app_config.h"
#if (OTA_TWS_SAME_TIME_ENABLE && OTA_TWS_SAME_TIME_NEW)//(RCSP_ADV_EN || AI_APP_PROTOCOL))
#define SYS_BT_OTA_EVENT_TYPE_STATUS (('O' << 24) | ('T' << 16) | ('A' << 8) | '\0')
#define TWS_FUNC_ID_OTA_TRANS (('O' << (3 * 8)) | ('T' << (2 * 8)) | ('A' << (1 * 8)) | ('\0'))
#include "system/event.h"
#include "update_loader_download.h"
typedef int sint32_t;
enum {
OTA_OVER = 0,
OTA_INIT,
OTA_START,
OTA_VERIFY_ING,
OTA_VERIFY_END,
OTA_SUCC,
};
enum {
OTA_SINGLE_EARPHONE,
OTA_TWS,
};
enum {
OTA_START_UPDATE = 0,
OTA_START_UPDATE_READY,
OTA_START_VERIFY,
OTA_UPDATE_OVER,
OTA_UPDATE_ERR,
OTA_UPDATE_SUCC,
};
enum {
OTA_TYPE_SET = 0,
OTA_TYPE_GET,
OTA_STATUS_SET,
OTA_STATUS_GET,
OTA_REMOTE_STATUS_SET,
OTA_REMOTE_STATUS_GET,
OTA_RESULT_SET,
OTA_RESULT_GET,
};
enum {
OTA_STOP_APP_DISCONNECT,
OTA_STOP_LINK_DISCONNECT,
OTA_STOP_UPDATE_OVER_SUCC,
OTA_STOP_UPDATE_OVER_ERR,
OTA_STOP_PHONE,
};
enum {
SYNC_CMD_START_UPDATE,
SYNC_CMD_START_VERIFY,
SYNC_CMD_UPDATE_OVER,
SYNC_CMD_UPDATE_ERR,
};
//TWS OTA CMD
enum {
OTA_TWS_INIT,
OTA_TWS_START_UPDATE = 0x1,
OTA_TWS_START_UPDATE_RSP,
OTA_TWS_TRANS_UPDATE_DATA,
OTA_TWS_TRANS_UPDATE_DATA_RSP,
OTA_TWS_VERIFY,
OTA_TWS_VERIFY_RSP,
OTA_TWS_UPDATE_RESULT,
OTA_TWS_WRITE_BOOT_INFO,
OTA_TWS_WRITE_BOOT_INFO_RSP,
OTA_TWS_USER_CHIP_UPDATE,
};
enum {
OTA_TWS_CMD_SUCC = 0x1,
OTA_TWS_CMD_ERR,
};
#define MSG_OTA_TWS_START_UPDATE 0x1
#define MSG_OTA_TWS_START_UPDATE_RSP 0x2
#define MSG_OTA_TWS_TRANS_UPDATE_DATA 0x3
#define MSG_OTA_TWS_TRANS_UPDATE_DATA_RSP 0x4
#define MSG_OTA_TWS_VERIFY 0x5
#define MSG_OTA_TWS_VERIFY_RSP 0x6
int tws_ota_init(void);
int tws_ota_close(void);
int tws_ota_open(struct __tws_ota_para *para);
void tws_ota_stop(u8 reason);
u16 tws_ota_enter_verify(void *priv);
u16 tws_ota_exit_verify(u8 *res, u8 *up_flg);
u16 tws_ota_updata_boot_info_over(void *priv);
int tws_ota_err_callback(u8 reason);
int tws_ota_data_send_m_to_s(u8 *buf, u16 len);
int tws_ota_sync_cmd(int reason);
void tws_ota_app_event_deal(u8 evevt);
u8 dual_bank_update_burn_boot_info_callback(u8 ret);
int bt_ota_event_handler(struct bt_event *bt);
void tws_ota_event_post(u32 type, u8 event);
u8 tws_ota_control(int type, ...);
void tws_ota_send_data_to_sibling(u8 opcode, u8 *data, u8 len);
int tws_ota_get_data_from_sibling(u8 opcode, u8 *data, u8 len);
int tws_ota_result(u8 err);
int tws_ota_data_send_pend(void);
#endif //(OTA_TWS_SAME_TIME_ENABLE && RCSP_ADV_EN)
#endif //_RCSP_ADV_TWS_OTA_H
|
f0ae3f86063292fdfdb590650e073302253b5217
|
85ccd32aa73eecf274a937f1fc3b6f4d484b77da
|
/test cases/common/178 bothlibraries/main2.c
|
e1f4bf8f519868f1bc3d2479a15c9e0166c16b30
|
[
"Apache-2.0"
] |
permissive
|
mesonbuild/meson
|
48321cf4235dfcc0194fed90ff43a57367592bf7
|
cf5adf0c646474f0259d123fad60ca5ed38ec891
|
refs/heads/master
| 2023-09-01T05:58:50.807952
| 2023-03-17T20:27:37
| 2023-08-31T11:52:41
| 19,784,232
| 5,122
| 1,848
|
Apache-2.0
| 2023-09-14T15:47:23
| 2014-05-14T15:08:16
|
Python
|
UTF-8
|
C
| false
| false
| 158
|
c
|
main2.c
|
#include "mylib.h"
DO_IMPORT int func(void);
DO_IMPORT int foo(void);
DO_IMPORT int retval;
int main(void) {
return func() + foo() == retval ? 0 : 1;
}
|
09b5502862c21ac4bba5aac10a8029fcae8b12a6
|
89ac799bd004042f913c9205abd22feaf847f5be
|
/src/libdg/screen.c
|
5d2e6154112d0f7cdd592ec37c175d07690a12b7
|
[] |
no_license
|
FoxdieTeam/mgs_reversing
|
de0b501e9a6318bf817e0d0f03af34c836a2f0b6
|
d057e3eb8bebeb645ca23db6ce690577268f59d5
|
refs/heads/master
| 2023-07-21T02:31:57.827478
| 2023-07-17T10:50:39
| 2023-07-17T10:50:39
| 223,033,157
| 270
| 35
| null | 2023-09-14T21:49:31
| 2019-11-20T21:44:13
|
C
|
UTF-8
|
C
| false
| false
| 11,648
|
c
|
screen.c
|
// Not sure what this file is acutally called. Rename at a later date.
#include "linker.h"
#include "libdg.h"
#include "psyq.h"
extern DG_CHNL DG_Chanls_800B1800[3];
extern MATRIX DG_ZeroMatrix_8009D430;
#define gte_MulMatrix02(r1, r2, r3) \
{ \
gte_ldlv0(r1); \
gte_rt(); \
gte_stlvnl(r1); \
gte_ldclmv(r2); \
gte_rtir(); \
gte_stclmv(r3); \
gte_ldclmv((char *)r2 + 2); \
gte_rtir(); \
gte_stclmv((char *)r3 + 2); \
gte_ldclmv((char *)r2 + 4); \
gte_rtir(); \
gte_stclmv((char *)r3 + 4); \
}
void DG_SetPos_8001BC44(MATRIX *matrix)
{
gte_SetRotMatrix(matrix);
gte_SetTransMatrix(matrix);
}
void DG_SetPos2_8001BC8C(SVECTOR *svector, SVECTOR *svector2)
{
MATRIX m;
RotMatrixYXZ_gte_80094108(svector2, &m);
m.t[0] = svector->vx;
m.t[1] = svector->vy;
m.t[2] = svector->vz;
gte_SetRotMatrix(&m);
gte_SetTransMatrix(&m);
}
void DG_MovePos_8001BD20(SVECTOR *svector)
{
VECTOR vec;
gte_ldv0(svector);
gte_rt();
gte_stlvnl(&vec);
gte_SetTransVector(&vec);
}
void DG_RotatePos_8001BD64(SVECTOR *svector)
{
MATRIX matrix;
RotMatrixYXZ_gte_80094108(svector, &matrix);
MulRotMatrix_80092B58(&matrix);
gte_SetRotMatrix(&matrix);
}
void DG_PutObjs_8001BDB8(DG_OBJS *objs)
{
gte_ReadRotMatrix(&objs->world);
}
void DG_PutPrim_8001BE00(MATRIX *matrix)
{
gte_ReadRotMatrix(matrix);
}
void DG_PutVector_8001BE48(SVECTOR *svector, SVECTOR *svector2, int count)
{
while (--count > -1)
{
gte_ldv0(svector);
gte_rt();
gte_stsv(svector2);
svector++;
svector2++;
}
}
void DG_RotVector_8001BE98(SVECTOR *svector, SVECTOR *svector2, int count)
{
while (--count > -1)
{
gte_ldsv(svector);
gte_rtir();
gte_stsv(svector2);
svector++;
svector2++;
}
}
void DG_PersVector_8001BEF8(SVECTOR *svector, DVECTOR *dvector, int count)
{
while (--count > -1)
{
gte_ldv0(svector);
gte_rtps();
gte_stsxy(dvector);
svector++;
dvector++;
}
}
#define SCRPAD_ADDR 0x1F800000
#define MAX_X (unsigned int)385
#define MAX_Y (unsigned int)305
#define DOES_TOUCH 1
#define DOESNT_TOUCH 0
// TODO: find a way to incorporate both this and pointcheckone's touch check in one function that matches
static inline void check_touches(SVECTOR *svector, DVECTOR *first_points, DVECTOR *second_points, int n_points)
{
while (n_points > 0)
{
svector->pad = DOESNT_TOUCH;
if (*(long *)second_points)
{
if (((first_points->vx + 0xC0) < MAX_X) && ((first_points->vy + 0x98) < MAX_Y))
{
svector->pad = DOES_TOUCH;
}
}
n_points--;
second_points++;
first_points++;
svector++;
}
}
void DG_PointCheck_8001BF34(SVECTOR *svector, int n_points)
{
MATRIX *matrix;
DVECTOR *first_points;
DVECTOR *second_points;
int n_initial_points;
MATRIX *matrix2 = (MATRIX *)SCRPAD_ADDR;
gte_ReadRotMatrix(matrix2);
matrix = &DG_Chanls_800B1800[1].field_10_eye_inv;
gte_SetRotMatrix(matrix);
gte_SetTransMatrix(matrix);
gte_ldv3c(svector);
first_points = (DVECTOR *)(SCRPAD_ADDR + 0x20); // 3 sets of dvector
second_points = (DVECTOR *)(SCRPAD_ADDR + 0x2C); // 3 sets of dvector
svector += 3;
gte_rtpt_b();
for (n_initial_points = n_points - 3; n_initial_points > 0; n_initial_points -= 3)
{
gte_stsxy3c(first_points);
gte_stsz3c(second_points);
gte_ldv3c(svector);
gte_rtpt();
check_touches(svector - 3, first_points, second_points, 3);
svector += 3;
n_points -= 3;
}
gte_stsxy3c(first_points);
gte_stsz3c(second_points);
check_touches(svector - 3, first_points, second_points, n_points);
gte_SetRotMatrix((MATRIX *)SCRPAD_ADDR);
gte_SetTransMatrix((MATRIX *)SCRPAD_ADDR);
}
int DG_PointCheckOne_8001C18C(DVECTOR *line)
{
DVECTOR first_points;
DVECTOR second_points;
MATRIX *matrix = &DG_Chanls_800B1800[1].field_10_eye_inv;
gte_SetRotMatrix(matrix);
gte_SetTransMatrix(matrix);
gte_ldv0(line);
gte_rtps();
gte_stsxy(&first_points);
gte_stsz(&second_points);
if (!*(long *)&second_points)
{
return 0;
}
if (!(first_points.vx + 0xC0 < MAX_X))
{
return 0;
}
return first_points.vy + 0x98 < MAX_Y;
}
// set obj world and screen ?
void sub_8001C248(DG_OBJS *objs, int n_obj)
{
DG_OBJ *obj;
MATRIX *matrix;
MATRIX *matrix2;
MATRIX *matrix3;
matrix = (MATRIX *)SCRPAD_ADDR;
gte_SetRotMatrix(matrix);
gte_ldclmv(&matrix[1]);
gte_rtir();
gte_stclmv(&matrix[2]);
gte_ldclmv(&matrix[1].m[0][1]);
gte_rtir();
gte_stclmv(&matrix[2].m[0][1]);
gte_ldclmv(&matrix[1].m[0][2]);
gte_rtir();
gte_stclmv(&matrix[2].m[0][2]);
gte_SetTransMatrix((MATRIX *)SCRPAD_ADDR);
gte_ldlv0(&matrix[1].t);
gte_rt();
gte_stlvnl(&matrix[2].t);
obj = objs->objs;
if (n_obj <= 0)
return;
matrix2 = &matrix[1];
matrix3 = &matrix[2];
for (; n_obj > 0; n_obj--)
{
obj->world = *matrix2;
obj->screen = *matrix3;
obj++;
}
}
// set obj screen ?
void sub_8001C460(DG_OBJS *objs, int n_obj)
{
DG_OBJ *obj;
MATRIX *matrix;
gte_SetRotMatrix((MATRIX *)SCRPAD_ADDR);
gte_SetTransMatrix((MATRIX *)SCRPAD_ADDR);
matrix = (MATRIX *)(SCRPAD_ADDR + 0x40);
obj = objs->objs;
for (; n_obj > 0; n_obj--)
{
gte_ldlv0(matrix->t);
gte_rt();
gte_stlvnl(&obj->screen.t);
gte_ldclmv(matrix);
gte_rtir();
gte_stclmv(&obj->screen);
gte_ldclmv(&matrix->m[0][1]);
gte_rtir();
gte_stclmv(&obj->screen.m[0][1]);
gte_ldclmv(&matrix->m[0][2]);
gte_rtir();
gte_stclmv(&obj->screen.m[0][2]);
obj++;
matrix++;
}
}
// set obj world accoring to parent?
void sub_8001C5CC(DG_OBJS *objs, int n_obj)
{
DG_OBJ *obj;
SVECTOR *movs = objs->movs;
MATRIX *matrix;
MATRIX *matrix2;
matrix = (MATRIX *)(SCRPAD_ADDR + 0x20);
gte_SetRotMatrix(matrix);
matrix2 = (MATRIX *)(SCRPAD_ADDR + 0x40);
obj = objs->objs;
if (n_obj <= 0)
return;
for (; n_obj > 0; n_obj--)
{
// it appears all the matrices in the scratchpad are ordered according to dg_objs
MATRIX *parentMatrix = (MATRIX *)(SCRPAD_ADDR + 0x40);
gte_SetTransMatrix(&parentMatrix[obj->model->parent_2C]);
gte_ldv0(movs);
gte_rt();
gte_ReadRotMatrix(matrix2);
gte_stlvnl(matrix2->t);
movs++;
obj->world = *matrix2;
obj++;
matrix2++;
}
}
void sub_8001C708( DG_OBJS* objs, int n_obj )
{
int i;
MATRIX* matrix4;
MATRIX* matrix;
MATRIX* matrix2;
SVECTOR* rots;
MATRIX* matrix3;
DG_OBJ* obj;
SVECTOR* adjust;
SVECTOR* waist_rot;
void* temp_matrix;
DG_MDL* mdl;
DG_MDL* temp_mdl;
matrix = (MATRIX*)(SCRPAD_ADDR + 0x040);
obj = objs->objs;
matrix2 = (MATRIX*)(SCRPAD_ADDR + 0x360);
rots = objs->rots;
adjust = objs->adjust;
waist_rot = objs->waist_rot;
mdl = obj->model;
matrix3 = (MATRIX*)(SCRPAD_ADDR + 0x340);
waist_rot ? RotMatrixZYX_gte_80093F08( waist_rot, matrix3 ) :
RotMatrixZYX_gte_80093F08( rots, matrix3 ) ;
matrix3->t[0] = mdl->pos_20.vx;
matrix3->t[1] = mdl->pos_20.vy;
matrix3->t[2] = mdl->pos_20.vz;
if (!adjust)
{
gte_CompMatrix( 0x1F800020, matrix3, matrix3 );
}
else
{
matrix4 = (MATRIX*)(SCRPAD_ADDR + 0x20);
*matrix2 = *matrix4;
*matrix4 = DG_ZeroMatrix_8009D430;
}
for ( i = n_obj; i > 0; i-- )
{
temp_mdl = obj->model;
mdl = temp_mdl; //provides fake match
temp_matrix = (void*)temp_mdl->parent_2C;
temp_matrix = (void*)((int)temp_matrix << 5) ;
temp_matrix += SCRPAD_ADDR + 0x40;
//MATRIX* temp_matrix = (MATRIX* )(SCRPAD_ADDR + 0x40);
//temp_matrix = &temp_matrix[mdl->parent_2C]; should be this but registers dont match
RotMatrixZYX_gte_80093F08( rots, matrix );
matrix->t[0] = mdl->pos_20.vx;
matrix->t[1] = mdl->pos_20.vy;
matrix->t[2] = mdl->pos_20.vz;
if ( i == ( n_obj - 1 ) )
{
temp_matrix = matrix3;
}
gte_CompMatrix( temp_matrix, matrix, matrix );
if ( !adjust )
{
obj->world = *matrix;
}
else
{
if (adjust->vz ) RotMatrixZ_80093D68( adjust->vz, matrix );
if (adjust->vx ) RotMatrixX_80093A28( adjust->vx, matrix );
if (adjust->vy ) RotMatrixY_80093BC8( adjust->vy, matrix );
adjust++;
}
obj++;
matrix++;
rots++;
}
if ( adjust )
{
matrix = (MATRIX* )(SCRPAD_ADDR + 0x40);
obj = objs->objs;
gte_SetRotMatrix ( matrix2 );
gte_SetTransMatrix( matrix2 );
for ( i = n_obj; i > 0; i-- )
{
gte_MulMatrix02( matrix->t, matrix, matrix );
obj->world = *matrix;
obj++;
matrix++;
}
}
}
void DG_8001CDB8(DG_OBJS *pObjs)
{
MATRIX *root = pObjs->root;
int n_models = pObjs->n_models;
if (root)
{
pObjs->world = *root;
}
*((MATRIX *)0x1F800020) = pObjs->world;
if ((pObjs->flag & DG_FLAG_ONEPIECE) != 0)
{
sub_8001C248(pObjs, n_models);
}
else
{
if (pObjs->rots)
{
sub_8001C708(pObjs, n_models);
}
else if (pObjs->movs)
{
sub_8001C5CC(pObjs, n_models);
}
sub_8001C460(pObjs, n_models);
}
}
void DG_Screen_Chanl_8001CEE0(DG_CHNL *pOt, int idx)
{
DG_OBJS **mQueue;
int i;
mQueue = pOt->mQueue;
*((MATRIX *)0x1F800000) = pOt->field_10_eye_inv;
DG_800174DC((MATRIX *)0x1F800000);
for (i = pOt->mTotalObjectCount; i > 0; --i)
{
DG_8001CDB8(*mQueue++);
}
}
|
447403ccdbf3b820d7493962ea7894c662209f2b
|
262c7df40ba04c6386df37395b0839247262fec8
|
/cpp/turbodbc/Library/turbodbc/field_translators.h
|
cae7679f9e6a159a7ca3454530c4b26818905cfd
|
[
"MIT",
"LicenseRef-scancode-free-unknown"
] |
permissive
|
blue-yonder/turbodbc
|
581b87ae027fe2981e7e70a8b7e29a2d4f1d3e23
|
d1219458cd4cdba44fabb02d81d8034159d58333
|
refs/heads/master
| 2023-08-15T05:47:26.408512
| 2023-05-09T09:21:58
| 2023-05-09T09:21:58
| 54,189,815
| 612
| 99
|
MIT
| 2023-08-30T18:09:11
| 2016-03-18T09:30:27
|
C++
|
UTF-8
|
C
| false
| false
| 364
|
h
|
field_translators.h
|
#pragma once
#include <turbodbc/field_translators/boolean_translator.h>
#include <turbodbc/field_translators/date_translator.h>
#include <turbodbc/field_translators/float64_translator.h>
#include <turbodbc/field_translators/int64_translator.h>
#include <turbodbc/field_translators/string_translator.h>
#include <turbodbc/field_translators/timestamp_translator.h>
|
5890c666eb0de8966104a3426e8747f6e57b5a31
|
7eaf54a78c9e2117247cb2ab6d3a0c20719ba700
|
/SOFTWARE/A64-TERES/u-boot_new/arch/blackfin/include/asm/mach-common/bits/spi6xx.h
|
3368712e3f98395b931cd4839890c4e32fc5df0f
|
[
"LicenseRef-scancode-free-unknown",
"Apache-2.0",
"GPL-2.0-or-later"
] |
permissive
|
OLIMEX/DIY-LAPTOP
|
ae82f4ee79c641d9aee444db9a75f3f6709afa92
|
a3fafd1309135650bab27f5eafc0c32bc3ca74ee
|
refs/heads/rel3
| 2023-08-04T01:54:19.483792
| 2023-04-03T07:18:12
| 2023-04-03T07:18:12
| 80,094,055
| 507
| 92
|
Apache-2.0
| 2023-04-03T07:05:59
| 2017-01-26T07:25:50
|
C
|
UTF-8
|
C
| false
| false
| 12,867
|
h
|
spi6xx.h
|
/*
* Analog Devices bfin_spi3 controller driver
*
* Copyright (c) 2011 Analog Devices Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ifndef _SPI_CHANNEL_H_
#define _SPI_CHANNEL_H_
#include <linux/types.h>
/* SPI_CONTROL */
#define SPI_CTL_EN 0x00000001 /* Enable */
#define SPI_CTL_MSTR 0x00000002 /* Master/Slave */
#define SPI_CTL_PSSE 0x00000004 /* controls modf error in master mode */
#define SPI_CTL_ODM 0x00000008 /* Open Drain Mode */
#define SPI_CTL_CPHA 0x00000010 /* Clock Phase */
#define SPI_CTL_CPOL 0x00000020 /* Clock Polarity */
#define SPI_CTL_ASSEL 0x00000040 /* Slave Select Pin Control */
#define SPI_CTL_SELST 0x00000080 /* Slave Select Polarity in transfers */
#define SPI_CTL_EMISO 0x00000100 /*Enable MISO */
#define SPI_CTL_SIZE 0x00000600 /*Word Transfer Size */
#define SPI_CTL_SIZE08 0x00000000 /*SIZE: 8 bits */
#define SPI_CTL_SIZE16 0x00000200 /*SIZE: 16 bits */
#define SPI_CTL_SIZE32 0x00000400 /*SIZE: 32 bits */
#define SPI_CTL_LSBF 0x00001000 /*LSB First */
#define SPI_CTL_FCEN 0x00002000 /*Flow-Control Enable */
#define SPI_CTL_FCCH 0x00004000 /*Flow-Control Channel Selection */
#define SPI_CTL_FCPL 0x00008000 /*Flow-Control Polarity */
#define SPI_CTL_FCWM 0x00030000 /*Flow-Control Water-Mark */
#define SPI_CTL_FIFO0 0x00000000 /*FCWM: Tx empty or Rx Full */
#define SPI_CTL_FIFO1 0x00010000 /*FCWM: Tx empty or Rx full (>=75%) */
#define SPI_CTL_FIFO2 0x00020000 /*FCWM: Tx empty or Rx full (>=50%) */
#define SPI_CTL_FMODE 0x00040000 /*Fast-mode Enable */
#define SPI_CTL_MIOM 0x00300000 /*Multiple I/O Mode */
#define SPI_CTL_MIO_DIS 0x00000000 /*MIOM: Disable */
#define SPI_CTL_MIO_DUAL 0x00100000 /*MIOM: Enable DIOM (Dual I/O Mode) */
#define SPI_CTL_MIO_QUAD 0x00200000 /*MIOM: Enable QUAD (Quad SPI Mode) */
#define SPI_CTL_SOSI 0x00400000 /*Start on MOSI */
/* SPI_RX_CONTROL */
#define SPI_RXCTL_REN 0x00000001 /*Receive Channel Enable */
#define SPI_RXCTL_RTI 0x00000004 /*Receive Transfer Initiate */
#define SPI_RXCTL_RWCEN 0x00000008 /*Receive Word Counter Enable */
#define SPI_RXCTL_RDR 0x00000070 /*Receive Data Request */
#define SPI_RXCTL_RDR_DIS 0x00000000 /*RDR: Disabled */
#define SPI_RXCTL_RDR_NE 0x00000010 /*RDR: RFIFO not empty */
#define SPI_RXCTL_RDR_25 0x00000020 /*RDR: RFIFO 25% full */
#define SPI_RXCTL_RDR_50 0x00000030 /*RDR: RFIFO 50% full */
#define SPI_RXCTL_RDR_75 0x00000040 /*RDR: RFIFO 75% full */
#define SPI_RXCTL_RDR_FULL 0x00000050 /*RDR: RFIFO full */
#define SPI_RXCTL_RDO 0x00000100 /*Receive Data Over-Run */
#define SPI_RXCTL_RRWM 0x00003000 /*FIFO Regular Water-Mark */
#define SPI_RXCTL_RWM_0 0x00000000 /*RRWM: RFIFO Empty */
#define SPI_RXCTL_RWM_25 0x00001000 /*RRWM: RFIFO 25% full */
#define SPI_RXCTL_RWM_50 0x00002000 /*RRWM: RFIFO 50% full */
#define SPI_RXCTL_RWM_75 0x00003000 /*RRWM: RFIFO 75% full */
#define SPI_RXCTL_RUWM 0x00070000 /*FIFO Urgent Water-Mark */
#define SPI_RXCTL_UWM_DIS 0x00000000 /*RUWM: Disabled */
#define SPI_RXCTL_UWM_25 0x00010000 /*RUWM: RFIFO 25% full */
#define SPI_RXCTL_UWM_50 0x00020000 /*RUWM: RFIFO 50% full */
#define SPI_RXCTL_UWM_75 0x00030000 /*RUWM: RFIFO 75% full */
#define SPI_RXCTL_UWM_FULL 0x00040000 /*RUWM: RFIFO full */
/* SPI_TX_CONTROL */
#define SPI_TXCTL_TEN 0x00000001 /*Transmit Channel Enable */
#define SPI_TXCTL_TTI 0x00000004 /*Transmit Transfer Initiate */
#define SPI_TXCTL_TWCEN 0x00000008 /*Transmit Word Counter Enable */
#define SPI_TXCTL_TDR 0x00000070 /*Transmit Data Request */
#define SPI_TXCTL_TDR_DIS 0x00000000 /*TDR: Disabled */
#define SPI_TXCTL_TDR_NF 0x00000010 /*TDR: TFIFO not full */
#define SPI_TXCTL_TDR_25 0x00000020 /*TDR: TFIFO 25% empty */
#define SPI_TXCTL_TDR_50 0x00000030 /*TDR: TFIFO 50% empty */
#define SPI_TXCTL_TDR_75 0x00000040 /*TDR: TFIFO 75% empty */
#define SPI_TXCTL_TDR_EMPTY 0x00000050 /*TDR: TFIFO empty */
#define SPI_TXCTL_TDU 0x00000100 /*Transmit Data Under-Run */
#define SPI_TXCTL_TRWM 0x00003000 /*FIFO Regular Water-Mark */
#define SPI_TXCTL_RWM_FULL 0x00000000 /*TRWM: TFIFO full */
#define SPI_TXCTL_RWM_25 0x00001000 /*TRWM: TFIFO 25% empty */
#define SPI_TXCTL_RWM_50 0x00002000 /*TRWM: TFIFO 50% empty */
#define SPI_TXCTL_RWM_75 0x00003000 /*TRWM: TFIFO 75% empty */
#define SPI_TXCTL_TUWM 0x00070000 /*FIFO Urgent Water-Mark */
#define SPI_TXCTL_UWM_DIS 0x00000000 /*TUWM: Disabled */
#define SPI_TXCTL_UWM_25 0x00010000 /*TUWM: TFIFO 25% empty */
#define SPI_TXCTL_UWM_50 0x00020000 /*TUWM: TFIFO 50% empty */
#define SPI_TXCTL_UWM_75 0x00030000 /*TUWM: TFIFO 75% empty */
#define SPI_TXCTL_UWM_EMPTY 0x00040000 /*TUWM: TFIFO empty */
/* SPI_CLOCK */
#define SPI_CLK_BAUD 0x0000FFFF /*Baud Rate */
/* SPI_DELAY */
#define SPI_DLY_STOP 0x000000FF /*Transfer delay time */
#define SPI_DLY_LEADX 0x00000100 /*Extended (1 SCK) LEAD Control */
#define SPI_DLY_LAGX 0x00000200 /*Extended (1 SCK) LAG control */
/* SPI_SSEL */
#define SPI_SLVSEL_SSE1 0x00000002 /*SPISSEL1 Enable */
#define SPI_SLVSEL_SSE2 0x00000004 /*SPISSEL2 Enable */
#define SPI_SLVSEL_SSE3 0x00000008 /*SPISSEL3 Enable */
#define SPI_SLVSEL_SSE4 0x00000010 /*SPISSEL4 Enable */
#define SPI_SLVSEL_SSE5 0x00000020 /*SPISSEL5 Enable */
#define SPI_SLVSEL_SSE6 0x00000040 /*SPISSEL6 Enable */
#define SPI_SLVSEL_SSE7 0x00000080 /*SPISSEL7 Enable */
#define SPI_SLVSEL_SSEL1 0x00000200 /*SPISSEL1 Value */
#define SPI_SLVSEL_SSEL2 0x00000400 /*SPISSEL2 Value */
#define SPI_SLVSEL_SSEL3 0x00000800 /*SPISSEL3 Value */
#define SPI_SLVSEL_SSEL4 0x00001000 /*SPISSEL4 Value */
#define SPI_SLVSEL_SSEL5 0x00002000 /*SPISSEL5 Value */
#define SPI_SLVSEL_SSEL6 0x00004000 /*SPISSEL6 Value */
#define SPI_SLVSEL_SSEL7 0x00008000 /*SPISSEL7 Value */
/* SPI_RWC */
#define SPI_RWC_VALUE 0x0000FFFF /*Received Word-Count */
/* SPI_RWCR */
#define SPI_RWCR_VALUE 0x0000FFFF /*Received Word-Count Reload */
/* SPI_TWC */
#define SPI_TWC_VALUE 0x0000FFFF /*Transmitted Word-Count */
/* SPI_TWCR */
#define SPI_TWCR_VALUE 0x0000FFFF /*Transmitted Word-Count Reload */
/* SPI_IMASK */
#define SPI_IMSK_RUWM 0x00000002 /*Receive Water-Mark Interrupt Mask */
#define SPI_IMSK_TUWM 0x00000004 /*Transmit Water-Mark Interrupt Mask */
#define SPI_IMSK_ROM 0x00000010 /*Receive Over-Run Interrupt Mask */
#define SPI_IMSK_TUM 0x00000020 /*Transmit Under-Run Interrupt Mask */
#define SPI_IMSK_TCM 0x00000040 /*Transmit Collision Interrupt Mask */
#define SPI_IMSK_MFM 0x00000080 /*Mode Fault Interrupt Mask */
#define SPI_IMSK_RSM 0x00000100 /*Receive Start Interrupt Mask */
#define SPI_IMSK_TSM 0x00000200 /*Transmit Start Interrupt Mask */
#define SPI_IMSK_RFM 0x00000400 /*Receive Finish Interrupt Mask */
#define SPI_IMSK_TFM 0x00000800 /*Transmit Finish Interrupt Mask */
/* SPI_IMASKCL */
#define SPI_IMSK_CLR_RUW 0x00000002 /*Receive Water-Mark Interrupt Mask */
#define SPI_IMSK_CLR_TUWM 0x00000004 /*Transmit Water-Mark Interrupt Mask */
#define SPI_IMSK_CLR_ROM 0x00000010 /*Receive Over-Run Interrupt Mask */
#define SPI_IMSK_CLR_TUM 0x00000020 /*Transmit Under-Run Interrupt Mask */
#define SPI_IMSK_CLR_TCM 0x00000040 /*Transmit Collision Interrupt Mask */
#define SPI_IMSK_CLR_MFM 0x00000080 /*Mode Fault Interrupt Mask */
#define SPI_IMSK_CLR_RSM 0x00000100 /*Receive Start Interrupt Mask */
#define SPI_IMSK_CLR_TSM 0x00000200 /*Transmit Start Interrupt Mask */
#define SPI_IMSK_CLR_RFM 0x00000400 /*Receive Finish Interrupt Mask */
#define SPI_IMSK_CLR_TFM 0x00000800 /*Transmit Finish Interrupt Mask */
/* SPI_IMASKST */
#define SPI_IMSK_SET_RUWM 0x00000002 /*Receive Water-Mark Interrupt Mask */
#define SPI_IMSK_SET_TUWM 0x00000004 /*Transmit Water-Mark Interrupt Mask */
#define SPI_IMSK_SET_ROM 0x00000010 /*Receive Over-Run Interrupt Mask */
#define SPI_IMSK_SET_TUM 0x00000020 /*Transmit Under-Run Interrupt Mask */
#define SPI_IMSK_SET_TCM 0x00000040 /*Transmit Collision Interrupt Mask */
#define SPI_IMSK_SET_MFM 0x00000080 /*Mode Fault Interrupt Mask */
#define SPI_IMSK_SET_RSM 0x00000100 /*Receive Start Interrupt Mask */
#define SPI_IMSK_SET_TSM 0x00000200 /*Transmit Start Interrupt Mask */
#define SPI_IMSK_SET_RFM 0x00000400 /*Receive Finish Interrupt Mask */
#define SPI_IMSK_SET_TFM 0x00000800 /*Transmit Finish Interrupt Mask */
/* SPI_STATUS */
#define SPI_STAT_SPIF 0x00000001 /*SPI Finished */
#define SPI_STAT_RUWM 0x00000002 /*Receive Water-Mark Breached */
#define SPI_STAT_TUWM 0x00000004 /*Transmit Water-Mark Breached */
#define SPI_STAT_ROE 0x00000010 /*Receive Over-Run Indication */
#define SPI_STAT_TUE 0x00000020 /*Transmit Under-Run Indication */
#define SPI_STAT_TCE 0x00000040 /*Transmit Collision Indication */
#define SPI_STAT_MODF 0x00000080 /*Mode Fault Indication */
#define SPI_STAT_RS 0x00000100 /*Receive Start Indication */
#define SPI_STAT_TS 0x00000200 /*Transmit Start Indication */
#define SPI_STAT_RF 0x00000400 /*Receive Finish Indication */
#define SPI_STAT_TF 0x00000800 /*Transmit Finish Indication */
#define SPI_STAT_RFS 0x00007000 /*SPI_RFIFO status */
#define SPI_STAT_RFIFO_EMPTY 0x00000000 /*RFS: RFIFO Empty */
#define SPI_STAT_RFIFO_25 0x00001000 /*RFS: RFIFO 25% Full */
#define SPI_STAT_RFIFO_50 0x00002000 /*RFS: RFIFO 50% Full */
#define SPI_STAT_RFIFO_75 0x00003000 /*RFS: RFIFO 75% Full */
#define SPI_STAT_RFIFO_FULL 0x00004000 /*RFS: RFIFO Full */
#define SPI_STAT_TFS 0x00070000 /*SPI_TFIFO status */
#define SPI_STAT_TFIFO_FULL 0x00000000 /*TFS: TFIFO full */
#define SPI_STAT_TFIFO_25 0x00010000 /*TFS: TFIFO 25% empty */
#define SPI_STAT_TFIFO_50 0x00020000 /*TFS: TFIFO 50% empty */
#define SPI_STAT_TFIFO_75 0x00030000 /*TFS: TFIFO 75% empty */
#define SPI_STAT_TFIFO_EMPTY 0x00040000 /*TFS: TFIFO empty */
#define SPI_STAT_FCS 0x00100000 /*Flow-Control Stall Indication */
#define SPI_STAT_RFE 0x00400000 /*SPI_RFIFO Empty */
#define SPI_STAT_TFF 0x00800000 /*SPI_TFIFO Full */
/* SPI_ILAT */
#define SPI_ILAT_RUWMI 0x00000002 /*Receive Water Mark Interrupt */
#define SPI_ILAT_TUWMI 0x00000004 /*Transmit Water Mark Interrupt */
#define SPI_ILAT_ROI 0x00000010 /*Receive Over-Run Indication */
#define SPI_ILAT_TUI 0x00000020 /*Transmit Under-Run Indication */
#define SPI_ILAT_TCI 0x00000040 /*Transmit Collision Indication */
#define SPI_ILAT_MFI 0x00000080 /*Mode Fault Indication */
#define SPI_ILAT_RSI 0x00000100 /*Receive Start Indication */
#define SPI_ILAT_TSI 0x00000200 /*Transmit Start Indication */
#define SPI_ILAT_RFI 0x00000400 /*Receive Finish Indication */
#define SPI_ILAT_TFI 0x00000800 /*Transmit Finish Indication */
/* SPI_ILATCL */
#define SPI_ILAT_CLR_RUWMI 0x00000002 /*Receive Water Mark Interrupt */
#define SPI_ILAT_CLR_TUWMI 0x00000004 /*Transmit Water Mark Interrupt */
#define SPI_ILAT_CLR_ROI 0x00000010 /*Receive Over-Run Indication */
#define SPI_ILAT_CLR_TUI 0x00000020 /*Transmit Under-Run Indication */
#define SPI_ILAT_CLR_TCI 0x00000040 /*Transmit Collision Indication */
#define SPI_ILAT_CLR_MFI 0x00000080 /*Mode Fault Indication */
#define SPI_ILAT_CLR_RSI 0x00000100 /*Receive Start Indication */
#define SPI_ILAT_CLR_TSI 0x00000200 /*Transmit Start Indication */
#define SPI_ILAT_CLR_RFI 0x00000400 /*Receive Finish Indication */
#define SPI_ILAT_CLR_TFI 0x00000800 /*Transmit Finish Indication */
/*
* bfin spi3 registers layout
*/
struct bfin_spi_regs {
u32 revid;
u32 control;
u32 rx_control;
u32 tx_control;
u32 clock;
u32 delay;
u32 ssel;
u32 rwc;
u32 rwcr;
u32 twc;
u32 twcr;
u32 reserved0;
u32 emask;
u32 emaskcl;
u32 emaskst;
u32 reserved1;
u32 status;
u32 elat;
u32 elatcl;
u32 reserved2;
u32 rfifo;
u32 reserved3;
u32 tfifo;
};
#endif /* _SPI_CHANNEL_H_ */
|
5abff4364d8c785736956f9959c7810bf2db8ac4
|
9de0cec678bc4a3bec2b4adabef9f39ff5b4afac
|
/PWGHF/vertexingHF/macros/AddTaskLc2eleLambdafromAODtracks.C
|
b6b4b6f973c743db30bdc016041d16e98ace1c2a
|
[] |
permissive
|
alisw/AliPhysics
|
91bf1bd01ab2af656a25ff10b25e618a63667d3e
|
5df28b2b415e78e81273b0d9bf5c1b99feda3348
|
refs/heads/master
| 2023-08-31T20:41:44.927176
| 2023-08-31T14:51:12
| 2023-08-31T14:51:12
| 61,661,378
| 129
| 1,150
|
BSD-3-Clause
| 2023-09-14T18:48:45
| 2016-06-21T19:31:29
|
C++
|
UTF-8
|
C
| false
| false
| 15,509
|
c
|
AddTaskLc2eleLambdafromAODtracks.C
|
AliAnalysisTaskSELc2eleLambdafromAODtracks *AddTaskLc2eleLambdafromAODtracks(TString finname="",
Bool_t theMCon=kFALSE,
Int_t iscoltype= 0,
Bool_t writeVariableTree=kFALSE,
Int_t domixing=0,
Bool_t reconstructPrimVert=kFALSE,
Bool_t writeEachVariableTree=kFALSE,
Bool_t writeMCVariableTree=kFALSE,
TString estimatorFilename="",
Int_t nTour=0
)
{
AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
if (!mgr) {
::Error("AddTaskLc2V0YW", "No analysis manager to connect to.");
return NULL;
}
Bool_t stdcuts=kFALSE;
TFile* filecuts;
if( finname.EqualTo("") ) {
stdcuts=kTRUE;
} else {
filecuts=TFile::Open(finname.Data());
if(!filecuts ||(filecuts&& !filecuts->IsOpen())){
AliFatal("Input file not found : check your cut object");
}
}
AliRDHFCutsLctoeleLambdafromAODtracks* RDHFCutsLc2eleLambdaanal = new AliRDHFCutsLctoeleLambdafromAODtracks();
if (stdcuts) RDHFCutsLc2eleLambdaanal->SetStandardCutsPP2010();
else RDHFCutsLc2eleLambdaanal = (AliRDHFCutsLctoeleLambdafromAODtracks*)filecuts->Get("eleLambdaAnalysisCuts");
RDHFCutsLc2eleLambdaanal->SetName("eleLambdaAnalysisCuts");
RDHFCutsLc2eleLambdaanal->SetMinPtCandidate(-1.);
RDHFCutsLc2eleLambdaanal->SetMaxPtCandidate(10000.);
if (!RDHFCutsLc2eleLambdaanal) {
cout << "Specific AliRDHFCutsLc2eleLambdaanal not found\n";
return;
}
//CREATE THE TASK
printf("CREATE TASK\n");
AliAnalysisTaskSELc2eleLambdafromAODtracks *task = new AliAnalysisTaskSELc2eleLambdafromAODtracks("AliAnalysisTaskSELc2eleLambdafromAODtracks",RDHFCutsLc2eleLambdaanal,writeVariableTree);
task->SetMC(theMCon);
if(iscoltype==0){
task->SetUseCentralityV0M(kFALSE);
task->SetUseCentralitySPDTracklet(kFALSE);
}else{
task->SetUseCentralityV0M(kTRUE);
task->SetUseEventPlane(14);
}
task->SetDebugLevel(1);
task->SetReconstructPrimVert(reconstructPrimVert);
task->SetWriteEachVariableTree(writeEachVariableTree);
task->SetWriteMCVariableTree(writeMCVariableTree);
if(iscoltype==0){
if(domixing==0){
task->SetEventMixingOff();
}else{
task->SetEventMixingWithPools();
Double_t pvzbinlimits[] = {-12,-10,-8,-6,-4,-2,0,2,4,6,8,10,12};
Int_t pvzbinnumb = sizeof(pvzbinlimits)/sizeof(Double_t) - 1;
task->SetPoolPVzBinLimits(pvzbinnumb,pvzbinlimits);
Double_t cent_mult_binlimitspp[] = { 0,100};
Int_t cent_mult_bin_numbpp = sizeof(cent_mult_binlimitspp)/sizeof(Double_t) - 1;
task->SetPoolCentBinLimits(cent_mult_bin_numbpp,cent_mult_binlimitspp);
Int_t nrpbin = 1.;
Double_t rpbinlimits[2] = {-3.2,3.2};
task->SetPoolRPBinLimits(nrpbin,rpbinlimits);
task->SetNumberOfEventsForMixing(10);//pp
}
}else if(iscoltype==1){
if(domixing==0){
task->SetEventMixingOff();
}else{
task->SetEventMixingWithPools();
Double_t pvzbinlimits[] = {-12,-10,-8,-6,-4,-2,0,2,4,6,8,10,12};
Int_t pvzbinnumb = sizeof(pvzbinlimits)/sizeof(Double_t) - 1;
task->SetPoolPVzBinLimits(pvzbinnumb,pvzbinlimits);
Double_t cent_mult_binlimitspPb[] = { 0,10,20,30,40,50,60,70,80,90,100};
Int_t cent_mult_bin_numbpPb = sizeof(cent_mult_binlimitspPb)/sizeof(Double_t) - 1;
task->SetPoolCentBinLimits(cent_mult_bin_numbpPb,cent_mult_binlimitspPb);
Int_t nrpbin = 1.;
Double_t rpbinlimits[2] = {-3.2,3.2};
task->SetPoolRPBinLimits(nrpbin,rpbinlimits);
task->SetNumberOfEventsForMixing(10);//pPb
}
}else if(iscoltype==2){
if(domixing==0){
task->SetEventMixingOff();
}else if(domixing==1){
//Standard
task->SetEventMixingWithPools();
Double_t pvzbinlimits[] = {-12,-10,-8,-6,-4,-2,0,2,4,6,8,10,12};
Int_t pvzbinnumb = sizeof(pvzbinlimits)/sizeof(Double_t) - 1;
task->SetPoolPVzBinLimits(pvzbinnumb,pvzbinlimits);
Double_t cent_mult_binlimitsPbPb[] = { 0,2.5,5,7.5,10,20,30,40,50,60,70,80,90,100};
Int_t cent_mult_bin_numbPbPb = sizeof(cent_mult_binlimitsPbPb)/sizeof(Double_t) - 1;
task->SetPoolCentBinLimits(cent_mult_bin_numbPbPb,cent_mult_binlimitsPbPb);
Int_t nrpbin = 8;
Double_t rpbinlimits[9];
Double_t steprp = TMath::Pi()/(Double_t)nrpbin;
for(Int_t ir=0;ir<9;ir++){
rpbinlimits[ir] = steprp * (Double_t) ir;
}
task->SetPoolRPBinLimits(nrpbin,rpbinlimits);
task->SetNumberOfEventsForMixing(10);//PbPb
}else if(domixing==2){
//Depth x 1/2
task->SetEventMixingWithPools();
Double_t pvzbinlimits[] = {-12,-10,-8,-6,-4,-2,0,2,4,6,8,10,12};
Int_t pvzbinnumb = sizeof(pvzbinlimits)/sizeof(Double_t) - 1;
task->SetPoolPVzBinLimits(pvzbinnumb,pvzbinlimits);
Double_t cent_mult_binlimitsPbPb[] = { 0,2.5,5,7.5,10,20,30,40,50,60,70,80,90,100};
Int_t cent_mult_bin_numbPbPb = sizeof(cent_mult_binlimitsPbPb)/sizeof(Double_t) - 1;
task->SetPoolCentBinLimits(cent_mult_bin_numbPbPb,cent_mult_binlimitsPbPb);
Int_t nrpbin = 8;
Double_t rpbinlimits[9];
Double_t steprp = TMath::Pi()/(Double_t)nrpbin;
for(Int_t ir=0;ir<9;ir++){
rpbinlimits[ir] = steprp * (Double_t) ir;
}
task->SetPoolRPBinLimits(nrpbin,rpbinlimits);
task->SetNumberOfEventsForMixing(5);//PbPb
}else if(domixing==3){
//Depth x 2
task->SetEventMixingWithPools();
Double_t pvzbinlimits[] = {-12,-10,-8,-6,-4,-2,0,2,4,6,8,10,12};
Int_t pvzbinnumb = sizeof(pvzbinlimits)/sizeof(Double_t) - 1;
task->SetPoolPVzBinLimits(pvzbinnumb,pvzbinlimits);
Double_t cent_mult_binlimitsPbPb[] = { 0,2.5,5,7.5,10,20,30,40,50,60,70,80,90,100};
Int_t cent_mult_bin_numbPbPb = sizeof(cent_mult_binlimitsPbPb)/sizeof(Double_t) - 1;
task->SetPoolCentBinLimits(cent_mult_bin_numbPbPb,cent_mult_binlimitsPbPb);
Int_t nrpbin = 8;
Double_t rpbinlimits[9];
Double_t steprp = TMath::Pi()/(Double_t)nrpbin;
for(Int_t ir=0;ir<9;ir++){
rpbinlimits[ir] = steprp * (Double_t) ir;
}
task->SetPoolRPBinLimits(nrpbin,rpbinlimits);
task->SetNumberOfEventsForMixing(20);//PbPb
}else if(domixing==4){
//z binning x1/2
task->SetEventMixingWithPools();
Double_t pvzbinlimits[] = {-12,-10,-6,-2,2,6,10,12};
Int_t pvzbinnumb = sizeof(pvzbinlimits)/sizeof(Double_t) - 1;
task->SetPoolPVzBinLimits(pvzbinnumb,pvzbinlimits);
Double_t cent_mult_binlimitsPbPb[] = { 0,2.5,5,7.5,10,20,30,40,50,60,70,80,90,100};
Int_t cent_mult_bin_numbPbPb = sizeof(cent_mult_binlimitsPbPb)/sizeof(Double_t) - 1;
task->SetPoolCentBinLimits(cent_mult_bin_numbPbPb,cent_mult_binlimitsPbPb);
Int_t nrpbin = 8;
Double_t rpbinlimits[9];
Double_t steprp = TMath::Pi()/(Double_t)nrpbin;
for(Int_t ir=0;ir<9;ir++){
rpbinlimits[ir] = steprp * (Double_t) ir;
}
task->SetPoolRPBinLimits(nrpbin,rpbinlimits);
task->SetNumberOfEventsForMixing(10);//PbPb
}else if(domixing==5){
//z binning x2
task->SetEventMixingWithPools();
Double_t pvzbinlimits[] = {-12,-10,-9,-8,-7,-6,-5,-4,-3,-2,-1,0,1,2,3,4,5,6,7,8,9,10,12};
Int_t pvzbinnumb = sizeof(pvzbinlimits)/sizeof(Double_t) - 1;
task->SetPoolPVzBinLimits(pvzbinnumb,pvzbinlimits);
Double_t cent_mult_binlimitsPbPb[] = { 0,2.5,5,7.5,10,20,30,40,50,60,70,80,90,100};
Int_t cent_mult_bin_numbPbPb = sizeof(cent_mult_binlimitsPbPb)/sizeof(Double_t) - 1;
task->SetPoolCentBinLimits(cent_mult_bin_numbPbPb,cent_mult_binlimitsPbPb);
Int_t nrpbin = 8;
Double_t rpbinlimits[9];
Double_t steprp = TMath::Pi()/(Double_t)nrpbin;
for(Int_t ir=0;ir<9;ir++){
rpbinlimits[ir] = steprp * (Double_t) ir;
}
task->SetPoolRPBinLimits(nrpbin,rpbinlimits);
task->SetNumberOfEventsForMixing(10);//PbPb
}else if(domixing==6){
//Cent x 2
task->SetEventMixingWithPools();
Double_t pvzbinlimits[] = {-12,-10,-8,-6,-4,-2,0,2,4,6,8,10,12};
Int_t pvzbinnumb = sizeof(pvzbinlimits)/sizeof(Double_t) - 1;
task->SetPoolPVzBinLimits(pvzbinnumb,pvzbinlimits);
Double_t cent_mult_binlimitsPbPb[] = { 0,1.25,2.5,3.75,5,6.25,7.5,8.75,10,15.,20,25.,30,35.,40,45.,50,55.,60,65.,70,75.,80,85.,90,100};
Int_t cent_mult_bin_numbPbPb = sizeof(cent_mult_binlimitsPbPb)/sizeof(Double_t) - 1;
task->SetPoolCentBinLimits(cent_mult_bin_numbPbPb,cent_mult_binlimitsPbPb);
Int_t nrpbin = 8;
Double_t rpbinlimits[9];
Double_t steprp = TMath::Pi()/(Double_t)nrpbin;
for(Int_t ir=0;ir<9;ir++){
rpbinlimits[ir] = steprp * (Double_t) ir;
}
task->SetPoolRPBinLimits(nrpbin,rpbinlimits);
task->SetNumberOfEventsForMixing(10);//PbPb
}else if(domixing==7){
//Cent x 1/2
task->SetEventMixingWithPools();
Double_t pvzbinlimits[] = {-12,-10,-8,-6,-4,-2,0,2,4,6,8,10,12};
Int_t pvzbinnumb = sizeof(pvzbinlimits)/sizeof(Double_t) - 1;
task->SetPoolPVzBinLimits(pvzbinnumb,pvzbinlimits);
Double_t cent_mult_binlimitsPbPb[] = { 0,5,10,30,50,70,90,100};
Int_t cent_mult_bin_numbPbPb = sizeof(cent_mult_binlimitsPbPb)/sizeof(Double_t) - 1;
task->SetPoolCentBinLimits(cent_mult_bin_numbPbPb,cent_mult_binlimitsPbPb);
Int_t nrpbin = 8;
Double_t rpbinlimits[9];
Double_t steprp = TMath::Pi()/(Double_t)nrpbin;
for(Int_t ir=0;ir<9;ir++){
rpbinlimits[ir] = steprp * (Double_t) ir;
}
task->SetPoolRPBinLimits(nrpbin,rpbinlimits);
task->SetNumberOfEventsForMixing(10);//PbPb
}else if(domixing==8){
//RP x 2
task->SetEventMixingWithPools();
Double_t pvzbinlimits[] = {-12,-10,-8,-6,-4,-2,0,2,4,6,8,10,12};
Int_t pvzbinnumb = sizeof(pvzbinlimits)/sizeof(Double_t) - 1;
task->SetPoolPVzBinLimits(pvzbinnumb,pvzbinlimits);
Double_t cent_mult_binlimitsPbPb[] = { 0,2.5,5,7.5,10,20,30,40,50,60,70,80,90,100};
Int_t cent_mult_bin_numbPbPb = sizeof(cent_mult_binlimitsPbPb)/sizeof(Double_t) - 1;
task->SetPoolCentBinLimits(cent_mult_bin_numbPbPb,cent_mult_binlimitsPbPb);
Int_t nrpbin = 16;
Double_t rpbinlimits[17];
Double_t steprp = TMath::Pi()/(Double_t)nrpbin;
for(Int_t ir=0;ir<17;ir++){
rpbinlimits[ir] = steprp * (Double_t) ir;
}
task->SetPoolRPBinLimits(nrpbin,rpbinlimits);
task->SetNumberOfEventsForMixing(10);//PbPb
}else if(domixing==9){
//RP x 2
task->SetEventMixingWithPools();
Double_t pvzbinlimits[] = {-12,-10,-8,-6,-4,-2,0,2,4,6,8,10,12};
Int_t pvzbinnumb = sizeof(pvzbinlimits)/sizeof(Double_t) - 1;
task->SetPoolPVzBinLimits(pvzbinnumb,pvzbinlimits);
Double_t cent_mult_binlimitsPbPb[] = { 0,2.5,5,7.5,10,20,30,40,50,60,70,80,90,100};
Int_t cent_mult_bin_numbPbPb = sizeof(cent_mult_binlimitsPbPb)/sizeof(Double_t) - 1;
task->SetPoolCentBinLimits(cent_mult_bin_numbPbPb,cent_mult_binlimitsPbPb);
Int_t nrpbin = 4;
Double_t rpbinlimits[5];
Double_t steprp = TMath::Pi()/(Double_t)nrpbin;
for(Int_t ir=0;ir<5;ir++){
rpbinlimits[ir] = steprp * (Double_t) ir;
}
task->SetPoolRPBinLimits(nrpbin,rpbinlimits);
task->SetNumberOfEventsForMixing(10);//PbPb
}else{
cout<<"Such pool binning option is not supported"<<endl;
exit(1);
}
}
//multiplicity study
if(iscoltype==0){
if(estimatorFilename.EqualTo("") ) {
printf("Estimator file not provided, multiplcity corrected histograms will not be filled\n");
} else{
TFile* fileEstimator=TFile::Open(estimatorFilename.Data());
if(!fileEstimator) {
AliFatal("File with multiplicity estimator not found\n");
return;
}
task->SetReferenceMultiplcity(9.26);
const Char_t* profilebasename="SPDmult10";
const Char_t* periodNames[4] = {"LHC10b", "LHC10c", "LHC10d", "LHC10e"};
TProfile* multEstimatorAvg[4];
for(Int_t ip=0; ip<4; ip++) {
multEstimatorAvg[ip] = (TProfile*)(fileEstimator->Get(Form("%s_%s",profilebasename,periodNames[ip]))->Clone(Form("%s_%s_clone",profilebasename,periodNames[ip])));
if (!multEstimatorAvg[ip]) {
AliFatal(Form("Multiplicity estimator for %s not found! Please check your estimator file",periodNames[ip]));
return;
}
}
task->SetMultiplVsZProfileLHC10b(multEstimatorAvg[0]);
task->SetMultiplVsZProfileLHC10c(multEstimatorAvg[1]);
task->SetMultiplVsZProfileLHC10d(multEstimatorAvg[2]);
task->SetMultiplVsZProfileLHC10e(multEstimatorAvg[3]);
}
}
mgr->AddTask(task);
// Create and connect containers for input/output
TString outputfile = AliAnalysisManager::GetCommonFileName();
outputfile += ":PWG3_D2H_Lc2eleLambda_";
outputfile += nTour;
mgr->ConnectInput(task,0,mgr->GetCommonInputContainer());
// ----- output data -----
AliAnalysisDataContainer *coutput1 = mgr->CreateContainer(Form("Lchist%1d",nTour),TList::Class(),AliAnalysisManager::kOutputContainer,outputfile.Data()); // general histos
mgr->ConnectOutput(task,1,coutput1);
AliAnalysisDataContainer *coutputLc2 = mgr->CreateContainer(Form("Lc2eleLambdaCuts%1d",nTour),TList::Class(),AliAnalysisManager::kOutputContainer,outputfile.Data()); // cuts
mgr->ConnectOutput(task,2,coutputLc2);
AliAnalysisDataContainer *coutputLc3 = mgr->CreateContainer(Form("eleLambdaHisto%1d",nTour),TList::Class(),AliAnalysisManager::kOutputContainer,outputfile.Data()); // variables tree
mgr->ConnectOutput(task,3,coutputLc3);
AliAnalysisDataContainer *coutputLc4 = mgr->CreateContainer(Form("eleLambdavariables%1d",nTour),TTree::Class(),AliAnalysisManager::kOutputContainer,outputfile.Data()); // variables tree
mgr->ConnectOutput(task,4,coutputLc4);
AliAnalysisDataContainer *coutputLc5 = mgr->CreateContainer(Form("eleLambda_elevariables%1d",nTour),TTree::Class(),AliAnalysisManager::kOutputContainer,outputfile.Data()); // variables tree
mgr->ConnectOutput(task,5,coutputLc5);
AliAnalysisDataContainer *coutputLc6 = mgr->CreateContainer(Form("eleLambda_v0variables%1d",nTour),TTree::Class(),AliAnalysisManager::kOutputContainer,outputfile.Data()); // variables tree
mgr->ConnectOutput(task,6,coutputLc6);
AliAnalysisDataContainer *coutputLc7 = mgr->CreateContainer(Form("eleLambda_mcvariables%1d",nTour),TTree::Class(),AliAnalysisManager::kOutputContainer,outputfile.Data()); // variables tree
mgr->ConnectOutput(task,7,coutputLc7);
AliAnalysisDataContainer *coutputLc8 = mgr->CreateContainer(Form("eleLambdaCounter%1d",nTour),AliNormalizationCounter::Class(),AliAnalysisManager::kOutputContainer, outputfile.Data()); //counter
mgr->ConnectOutput(task,8,coutputLc8);
AliAnalysisDataContainer *coutputLc9 = mgr->CreateContainer(Form("eleLambda_mcelevariables%1d",nTour),TTree::Class(),AliAnalysisManager::kOutputContainer,outputfile.Data()); // variables tree
mgr->ConnectOutput(task,9,coutputLc9);
AliAnalysisDataContainer *coutputLc10 = mgr->CreateContainer(Form("eleLambda_mcv0variables%1d",nTour),TTree::Class(),AliAnalysisManager::kOutputContainer,outputfile.Data()); // variables tree
mgr->ConnectOutput(task,10,coutputLc10);
//AliAnalysisDataContainer *coutputLc11 = mgr->CreateContainer(Form("eleLambda_mcgenpairvariables%1d",nTour),TTree::Class(),AliAnalysisManager::kOutputContainer,outputfile.Data()); // variables tree
//mgr->ConnectOutput(task,11,coutputLc11);
AliAnalysisDataContainer *coutputLc11 = mgr->CreateContainer(Form("eleLambda_singlevariables%1d",nTour),TTree::Class(),AliAnalysisManager::kOutputContainer,outputfile.Data()); // variables tree
mgr->ConnectOutput(task,11,coutputLc11);
AliAnalysisDataContainer *coutputLc12 = mgr->CreateContainer(Form("eleLambda_correlationvariables%1d",nTour),TTree::Class(),AliAnalysisManager::kOutputContainer,outputfile.Data()); // variables tree
mgr->ConnectOutput(task,12,coutputLc12);
return task;
}
|
204bac18c4c26ca56388d999d41e5ea0522adc58
|
1598858ecbcaa8a03feec79f2cbb39e0bb9add3f
|
/Silicon/MeteorlakePkg/Include/Library/GpioNativePads.h
|
e74c78db1b48593358e54be9bda56ef8ec882369
|
[
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause-Patent"
] |
permissive
|
slimbootloader/slimbootloader
|
def5dc5a4743d74d7349d79710b758c476e33cc6
|
ec5c39e35a3ab798c6509652869d2e951ede7b61
|
refs/heads/master
| 2023-08-25T08:53:17.422999
| 2023-08-23T12:18:51
| 2023-08-24T16:52:21
| 148,708,107
| 379
| 196
|
NOASSERTION
| 2023-09-14T05:49:16
| 2018-09-13T23:07:33
|
C
|
UTF-8
|
C
| false
| false
| 12,266
|
h
|
GpioNativePads.h
|
/** @file
Header file for GPIO Native pads support
Copyright (c) 2017 - 2023, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
@par Specification Reference:
**/
#ifndef _GPIO_NATIVE_PADS_H_
#define _GPIO_NATIVE_PADS_H_
//
// GpioPad can contain additional information used to provide data on
// native functions. Please refer to description of GPIO_NATIVE_PAD
//
// FFFF CCCC TTTG GGGG TTTT TTTP PPPP PPPP
//
// F - 2^4 = 16, native function number
// C - 2^4 = 16, chipset ID
// T - 2^10 = 1024 , abstract type representing native mode of a pad (e.g. SERIALIO_UART2_TX)
// G - 2^5 = 32, group
// P - 2^9 = 512, pad number
//
// F & T contain additional optional settings used for native pads
//
#define GPIO_NATIVE_PAD_DEF(GpioNativePad, NativeMode, NativeFunction) \
(GpioNativePad | (NativeMode << 28) | ((NativeFunction & 0x7F) << 9) | ((NativeFunction & 0x380) << 14))
#define GPIO_NATIVE_GET_FUNCTION(GpioNativePad) ((((GpioNativePad) & 0xFE00) >> 9) | (((GpioNativePad) & 0xE00000) >> 14))
#define GPIO_NATIVE_GET_PAD_FN(GpioNativePad) (((GpioNativePad) >> 28) & 0xF)
#define GPIO_NATIVE_GET_PAD_MODE(GpioNativePad) ((GPIO_NATIVE_GET_PAD_FN(GpioNativePad) << 1) | 1)
#define GPIO_NATIVE_TO_GPIO_PAD(GpioNativePad) (GpioNativePad & 0xF1F01FF)
//
// Macro used to define GPIO native function.
// <Min,Max> defines range that can be used to encode given native signal.
// Numbering must be unique and cannot overlap.
// If there are many instances of similar signal (e.g. per controller) the lower
// word will store value for a given instance in the form: Min + Instance
// Upper word (Max) is left untouched and later used for verification
//
#define GPIO_NATIVE_FUNCTION_DEF(Min, Max) (((Max) << 16) + (Min))
#define GPIO_NATIVE_FUNCTION_GET_MAX(NativeFunction) (((NativeFunction) >> 16) & 0xFFFF)
#define GPIO_NATIVE_FUNCTION_GET_VALUE(NativeFunction) ((NativeFunction) & 0xFFFF)
//
// Macro GPIO_NATIVE_FUNCTION_GET_SIGNAL is created as synonym to macro GPIO_NATIVE_FUNCTION_GET_MAX
// GPIO_NATIVE_FUNCTION_GET_SIGNAL used with below defines is more descriptive and easier to read
// ex.
// - GPIO_NATIVE_FUNCTION_GET_SIGNAL(GPIO_SERIAL_IO_UART_RX)
// - GPIO_NATIVE_FUNCTION_GET_SIGNAL(GPIO_ISH_GP)
// - ...
//
#define GPIO_NATIVE_FUNCTION_GET_SIGNAL(NativeFunction) (GPIO_NATIVE_FUNCTION_GET_MAX(NativeFunction))
//
// GPIO native modes
// Those defines are internal to this header.
// GPIO_FUNCTION_<IP>_<signal>(index) defines should be used by other modules instead.
//
#define GPIO_SERIAL_IO_UART_RX GPIO_NATIVE_FUNCTION_DEF(1,8)
#define GPIO_SERIAL_IO_UART_TX GPIO_NATIVE_FUNCTION_DEF(9,16)
#define GPIO_SERIAL_IO_UART_RTS GPIO_NATIVE_FUNCTION_DEF(17,24)
#define GPIO_SERIAL_IO_UART_CTS GPIO_NATIVE_FUNCTION_DEF(25,31)
#define GPIO_SERIAL_IO_SPI_MOSI GPIO_NATIVE_FUNCTION_DEF(32,39)
#define GPIO_SERIAL_IO_SPI_MISO GPIO_NATIVE_FUNCTION_DEF(40,47)
#define GPIO_SERIAL_IO_SPI_CLK GPIO_NATIVE_FUNCTION_DEF(48,55)
#define GPIO_SERIAL_IO_SPI_CS GPIO_NATIVE_FUNCTION_DEF(56,71)
#define GPIO_ISH_GP GPIO_NATIVE_FUNCTION_DEF(80,143)
#define GPIO_ISH_UART_RX GPIO_NATIVE_FUNCTION_DEF(144,151)
#define GPIO_ISH_UART_TX GPIO_NATIVE_FUNCTION_DEF(152,159)
#define GPIO_ISH_UART_RTS GPIO_NATIVE_FUNCTION_DEF(160,167)
#define GPIO_ISH_UART_CTS GPIO_NATIVE_FUNCTION_DEF(168,175)
#define GPIO_ISH_SPI_MOSI GPIO_NATIVE_FUNCTION_DEF(184,191)
#define GPIO_ISH_SPI_MISO GPIO_NATIVE_FUNCTION_DEF(192,199)
#define GPIO_ISH_SPI_CLK GPIO_NATIVE_FUNCTION_DEF(200,207)
#define GPIO_ISH_SPI_CS GPIO_NATIVE_FUNCTION_DEF(208,223)
#define GPIO_ISH_I2C_SCL GPIO_NATIVE_FUNCTION_DEF(232,239)
#define GPIO_ISH_I2C_SDA GPIO_NATIVE_FUNCTION_DEF(240,247)
#define GPIO_THC_SPI_INT GPIO_NATIVE_FUNCTION_DEF(248,251)
#define GPIO_HDA_BCLK GPIO_NATIVE_FUNCTION_DEF(252,252)
#define GPIO_HDA_RSTB GPIO_NATIVE_FUNCTION_DEF(253,253)
#define GPIO_HDA_SYNC GPIO_NATIVE_FUNCTION_DEF(254,254)
#define GPIO_HDA_SDO GPIO_NATIVE_FUNCTION_DEF(255,255)
#define GPIO_HDA_SDI_0 GPIO_NATIVE_FUNCTION_DEF(256,256)
#define GPIO_HDA_SDI_1 GPIO_NATIVE_FUNCTION_DEF(257,257)
#define GPIO_DMIC_DATA GPIO_NATIVE_FUNCTION_DEF(258,261)
#define GPIO_DMIC_CLKA GPIO_NATIVE_FUNCTION_DEF(262,265)
#define GPIO_DMIC_CLKB GPIO_NATIVE_FUNCTION_DEF(266,269)
#define GPIO_DDSP_HPD0 GPIO_NATIVE_FUNCTION_DEF(270,285)
#define GPIO_PANEL_AVDD_EN GPIO_NATIVE_FUNCTION_DEF(286,289)
#define GPIO_PANEL_BKLTEN GPIO_NATIVE_FUNCTION_DEF(290,293)
#define GPIO_PANEL_BKLTCTL GPIO_NATIVE_FUNCTION_DEF(294,297)
#define GPIO_PANEL_RESET GPIO_NATIVE_FUNCTION_DEF(298,301)
#define GPIO_PANEL_AVEE_EN GPIO_NATIVE_FUNCTION_DEF(302,305)
#define GPIO_PANEL_VIO_EN GPIO_NATIVE_FUNCTION_DEF(306,309)
#define GPIO_PANEL_HPD GPIO_NATIVE_FUNCTION_DEF(310,313)
#define GPIO_PANEL_TE_EN GPIO_NATIVE_FUNCTION_DEF(314,317)
#define GPIO_HDMI_GMBUS_SCL GPIO_NATIVE_FUNCTION_DEF(318,325)
#define GPIO_HDMI_GMBUS_SDA GPIO_NATIVE_FUNCTION_DEF(326,333)
#define GPIO_ISH_I3C_SCL GPIO_NATIVE_FUNCTION_DEF(334,335)
#define GPIO_ISH_I3C_SDA GPIO_NATIVE_FUNCTION_DEF(336,337)
#define GPIO_SERIAL_IO_I2C_SCL GPIO_NATIVE_FUNCTION_DEF(338,353)
#define GPIO_SERIAL_IO_I2C_SDA GPIO_NATIVE_FUNCTION_DEF(354,369)
#define GPIO_CNVI_RF_RESET GPIO_NATIVE_FUNCTION_DEF(370,370)
#define GPIO_CNVI_CLKREQ GPIO_NATIVE_FUNCTION_DEF(371,371)
#define GPIO_SD_DATA GPIO_NATIVE_FUNCTION_DEF(374,377)
#define GPIO_EMMC_DATA GPIO_NATIVE_FUNCTION_DEF(384,391)
#define GPIO_THC_CLK_LOOPBACK GPIO_NATIVE_FUNCTION_DEF(395,396)
#define GPIO_SERIAL_IO_I3C_SCL GPIO_NATIVE_FUNCTION_DEF(397,399)
#define GPIO_SERIAL_IO_I3C_SDA GPIO_NATIVE_FUNCTION_DEF(400,402)
#define GPIO_MIPI_PANEL_RESET GPIO_NATIVE_FUNCTION_DEF(403,406)
#define GPIO_MIPI_SEC_POW_EN_AVEE GPIO_NATIVE_FUNCTION_DEF(407,410)
#define GPIO_MIPI_SEC_POW_EN_AVDD GPIO_NATIVE_FUNCTION_DEF(411,414)
#define GPIO_THC_WOT GPIO_NATIVE_FUNCTION_DEF(415,416)
#define GPIO_SATA_DEVSLP GPIO_NATIVE_FUNCTION_DEF(417,448)
#define GPIO_PCIE_CLKREQ GPIO_NATIVE_FUNCTION_DEF(449,480)
#define GPIO_SERIAL_IO_I3C_SCL_FB GPIO_NATIVE_FUNCTION_DEF(481,483)
#define GPIO_FUNCTION_SERIAL_IO_UART_RX(UartDev) (GPIO_SERIAL_IO_UART_RX + ((UINT32)UartDev))
#define GPIO_FUNCTION_SERIAL_IO_UART_TX(UartDev) (GPIO_SERIAL_IO_UART_TX + ((UINT32)UartDev))
#define GPIO_FUNCTION_SERIAL_IO_UART_RTS(UartDev) (GPIO_SERIAL_IO_UART_RTS + ((UINT32)UartDev))
#define GPIO_FUNCTION_SERIAL_IO_UART_CTS(UartDev) (GPIO_SERIAL_IO_UART_CTS + ((UINT32)UartDev))
//
// Serial IO SPI
//
#define GPIO_SERIAL_IO_SPI_RANGE 8 // Number of SerialIo SPIx controllers supported in GPIO_NATIVE_PAD encoding
#define GPIO_FUNCTION_SERIAL_IO_SPI_MOSI(SpiDev) (GPIO_SERIAL_IO_SPI_MOSI + ((UINT32)SpiDev))
#define GPIO_FUNCTION_SERIAL_IO_SPI_MISO(SpiDev) (GPIO_SERIAL_IO_SPI_MISO + ((UINT32)SpiDev))
#define GPIO_FUNCTION_SERIAL_IO_SPI_CLK(SpiDev) (GPIO_SERIAL_IO_SPI_CLK + ((UINT32)SpiDev))
#define GPIO_FUNCTION_SERIAL_IO_SPI_CS(SpiDev, CsNum) (GPIO_SERIAL_IO_SPI_CS + ((UINT32)SpiDev) + ((UINT32)CsNum) * GPIO_SERIAL_IO_SPI_RANGE)
#define GPIO_FUNCTION_SERIAL_IO_I2C_SCL(I2cDev) (GPIO_SERIAL_IO_I2C_SCL + ((UINT32)I2cDev))
#define GPIO_FUNCTION_SERIAL_IO_I2C_SDA(I2cDev) (GPIO_SERIAL_IO_I2C_SDA + ((UINT32)I2cDev))
#define GPIO_FUNCTION_ISH_GP(GpNum) (GPIO_ISH_GP + ((UINT32)GpNum))
#define GPIO_FUNCTION_ISH_UART_RX(UartDev) (GPIO_ISH_UART_RX + ((UINT32)UartDev))
#define GPIO_FUNCTION_ISH_UART_TX(UartDev) (GPIO_ISH_UART_TX + ((UINT32)UartDev))
#define GPIO_FUNCTION_ISH_UART_RTS(UartDev) (GPIO_ISH_UART_RTS + ((UINT32)UartDev))
#define GPIO_FUNCTION_ISH_UART_CTS(UartDev) (GPIO_ISH_UART_CTS + ((UINT32)UartDev))
//
// ISH SPI
//
#define GPIO_ISH_SPI_RANGE 8 // Number of ISH SPI controllers supported in GPIO_NATIVE_PAD encoding
#define GPIO_FUNCTION_ISH_SPI_MOSI(SpiDev) (GPIO_ISH_SPI_MOSI + ((UINT32)SpiDev))
#define GPIO_FUNCTION_ISH_SPI_MISO(SpiDev) (GPIO_ISH_SPI_MISO + ((UINT32)SpiDev))
#define GPIO_FUNCTION_ISH_SPI_CLK(SpiDev) (GPIO_ISH_SPI_CLK + ((UINT32)SpiDev))
#define GPIO_FUNCTION_ISH_SPI_CS(SpiDev, CsNum) (GPIO_ISH_SPI_CS + ((UINT32)SpiDev) + ((UINT32)CsNum) * GPIO_ISH_SPI_RANGE)
#define GPIO_FUNCTION_ISH_I2C_SCL(I2cDev) (GPIO_ISH_I2C_SCL + ((UINT32)I2cDev))
#define GPIO_FUNCTION_ISH_I2C_SDA(I2cDev) (GPIO_ISH_I2C_SDA + ((UINT32)I2cDev))
#define GPIO_FUNCTION_ISH_I3C_SCL(I3cDev) (GPIO_ISH_I3C_SCL + ((UINT32)I3cDev))
#define GPIO_FUNCTION_ISH_I3C_SDA(I3cDev) (GPIO_ISH_I3C_SDA + ((UINT32)I3cDev))
#define GPIO_FUNCTION_SERIAL_IO_I3C_SCL(I3cDev) (GPIO_SERIAL_IO_I3C_SCL + ((UINT32)I3cDev))
#define GPIO_FUNCTION_SERIAL_IO_I3C_SDA(I3cDev) (GPIO_SERIAL_IO_I3C_SDA + ((UINT32)I3cDev))
#define GPIO_FUNCTION_SERIAL_IO_I3C_SCL_FB(I3cDev) (GPIO_SERIAL_IO_I3C_SCL_FB + ((UINT32)I3cDev))
//
// SD Card
//
#define GPIO_FUNCTION_SD_DATA(Index) (GPIO_SD_DATA + ((UINT32)Index))
//
// EMMC
//
#define GPIO_FUNCTION_EMMC_DATA(Index) (GPIO_EMMC_DATA + ((UINT32)Index))
#define GPIO_FUNCTION_THC_SPI_INT(SpiDev) (GPIO_THC_SPI_INT + ((UINT32)SpiDev))
#define GPIO_FUNCTION_THC_CLK_LOOPBACK(SpiDev) (GPIO_THC_CLK_LOOPBACK + ((UINT32)SpiDev))
#define GPIO_FUNCTION_THC_WOT(SpiDev) (GPIO_THC_WOT + ((UINT32)SpiDev))
//
// HDA
//
#define GPIO_FUNCTION_HDA_BCLK GPIO_HDA_BCLK
#define GPIO_FUNCTION_HDA_RSTB GPIO_HDA_RSTB
#define GPIO_FUNCTION_HDA_SYNC GPIO_HDA_SYNC
#define GPIO_FUNCTION_HDA_SDO GPIO_HDA_SDO
#define GPIO_FUNCTION_HDA_SDI_0 GPIO_HDA_SDI_0
#define GPIO_FUNCTION_HDA_SDI_1 GPIO_HDA_SDI_1
#define GPIO_FUNCTION_DMIC_DATA(DmicDev) (GPIO_DMIC_DATA + ((UINT32)DmicDev))
#define GPIO_FUNCTION_DMIC_CLKA(DmicDev) (GPIO_DMIC_CLKA + ((UINT32)DmicDev))
#define GPIO_FUNCTION_DMIC_CLKB(DmicDev) (GPIO_DMIC_CLKB + ((UINT32)DmicDev))
#define GPIO_FUNCTION_DMIC_CLK(DmicDev) (GPIO_DMIC_CLKA + ((UINT32)DmicDev)) // If there is no split between channel A/B use A range for such Clocks
#define GPIO_FUNCTION_DDSP_HPD(HpdIndex) \
(HpdIndex > 7) ? GPIO_DDSP_HPD0 + 8 + (HpdIndex) - 'A' : GPIO_DDSP_HPD0 + HpdIndex
#define GPIO_FUNCTION_HDMI_SCL(DdiPort) (GPIO_HDMI_GMBUS_SCL + ((UINT32)DdiPort))
#define GPIO_FUNCTION_HDMI_SDA(DdiPort) (GPIO_HDMI_GMBUS_SDA + ((UINT32)DdiPort))
#define GPIO_FUNCTION_PANEL_AVDD_EN(PanelDev) (GPIO_PANEL_AVDD_EN + ((UINT32)PanelDev))
#define GPIO_FUNCTION_PANEL_BKLTEN(PanelDev) (GPIO_PANEL_BKLTEN + ((UINT32)PanelDev))
#define GPIO_FUNCTION_PANEL_BKLTCTL(PanelDev) (GPIO_PANEL_BKLTCTL + ((UINT32)PanelDev))
#define GPIO_FUNCTION_PANEL_RESET(PanelDev) (GPIO_PANEL_RESET + ((UINT32)PanelDev))
#define GPIO_FUNCTION_PANEL_AVEE_EN(PanelDev) (GPIO_PANEL_AVEE_EN + ((UINT32)PanelDev))
#define GPIO_FUNCTION_PANEL_VIO_EN(PanelDev) (GPIO_PANEL_VIO_EN + ((UINT32)PanelDev))
#define GPIO_FUNCTION_PANEL_HPD(PanelDev) (GPIO_PANEL_HPD + ((UINT32)PanelDev))
#define GPIO_FUNCTION_PANEL_TE_EN(PanelDev) (GPIO_PANEL_TE_EN + ((UINT32)PanelDev))
//
// MIPI
//
#define GPIO_FUNCTION_MIPI_PANEL_RESET(PanelDev) (GPIO_MIPI_PANEL_RESET + ((UINT32)PanelDev))
#define GPIO_FUNCTION_MIPI_SEC_POW_EN_AVEE(PanelDev) (GPIO_MIPI_SEC_POW_EN_AVEE + ((UINT32)PanelDev))
#define GPIO_FUNCTION_MIPI_SEC_POW_EN_AVDD(PanelDev) (GPIO_MIPI_SEC_POW_EN_AVDD + ((UINT32)PanelDev))
#define GPIO_FUNCTION_CNVI_RF_RESET GPIO_CNVI_RF_RESET
#define GPIO_FUNCTION_CNVI_CLKREQ GPIO_CNVI_CLKREQ
//
// SATA DevSlp
//
#define GPIO_SATA_DEVSLP_RANGE 32 // Number of SATA DevSlp instances per controller supported in GPIO_NATIVE_PAD encoding
#define GPIO_FUNCTION_SATA_DEVSLP(CsNum, SataDevSlpIndex) (GPIO_SATA_DEVSLP + ((UINT32)SataDevSlpIndex) + ((UINT32)CsNum) * GPIO_SATA_DEVSLP_RANGE)
#define GPIO_FUNCTION_PCIE_CLKREQ(ClkReqIndex) (GPIO_PCIE_CLKREQ + ((UINT32)ClkReqIndex))
#endif // _GPIO_NATIVE_PADS_H_
|
22cf67d00829d0e95db0b38c159a348a59691115
|
9ceacf33fd96913cac7ef15492c126d96cae6911
|
/usr.sbin/ospf6d/logmsg.c
|
388aedd2e9de2e65f4e8dfa9332abf6fe739e557
|
[] |
no_license
|
openbsd/src
|
ab97ef834fd2d5a7f6729814665e9782b586c130
|
9e79f3a0ebd11a25b4bff61e900cb6de9e7795e9
|
refs/heads/master
| 2023-09-02T18:54:56.624627
| 2023-09-02T15:16:12
| 2023-09-02T15:16:12
| 66,966,208
| 3,394
| 1,235
| null | 2023-08-08T02:42:25
| 2016-08-30T18:18:25
|
C
|
UTF-8
|
C
| false
| false
| 4,263
|
c
|
logmsg.c
|
/* $OpenBSD: logmsg.c,v 1.1 2016/09/02 14:08:50 benno Exp $ */
/*
* Copyright (c) 2006 Claudio Jeker <claudio@openbsd.org>
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <errno.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <syslog.h>
#include <unistd.h>
#include "ospf6d.h"
#include "log.h"
const char *
log_in6addr(const struct in6_addr *addr)
{
struct sockaddr_in6 sa_in6;
bzero(&sa_in6, sizeof(sa_in6));
sa_in6.sin6_len = sizeof(sa_in6);
sa_in6.sin6_family = AF_INET6;
memcpy(&sa_in6.sin6_addr, addr, sizeof(sa_in6.sin6_addr));
/*
* Destination addresses contain embedded scopes.
* They must be recovered for ospf6ctl show fib.
*/
recoverscope(&sa_in6);
return (log_sockaddr(&sa_in6));
}
const char *
log_in6addr_scope(const struct in6_addr *addr, unsigned int ifindex)
{
struct sockaddr_in6 sa_in6;
bzero(&sa_in6, sizeof(sa_in6));
sa_in6.sin6_len = sizeof(sa_in6);
sa_in6.sin6_family = AF_INET6;
memcpy(&sa_in6.sin6_addr, addr, sizeof(sa_in6.sin6_addr));
addscope(&sa_in6, ifindex);
return (log_sockaddr(&sa_in6));
}
#define NUM_LOGS 4
const char *
log_rtr_id(u_int32_t id)
{
static char buf[NUM_LOGS][16];
static int round = 0;
struct in_addr addr;
round = (round + 1) % NUM_LOGS;
addr.s_addr = id;
if (inet_ntop(AF_INET, &addr, buf[round], 16) == NULL)
return ("?");
else
return buf[round];
}
const char *
log_sockaddr(void *vp)
{
static char buf[NUM_LOGS][NI_MAXHOST];
static int round = 0;
struct sockaddr *sa = vp;
round = (round + 1) % NUM_LOGS;
if (getnameinfo(sa, sa->sa_len, buf[round], NI_MAXHOST, NULL, 0,
NI_NUMERICHOST))
return ("(unknown)");
else
return (buf[round]);
}
/* names */
const char *
nbr_state_name(int state)
{
switch (state) {
case NBR_STA_DOWN:
return ("DOWN");
case NBR_STA_ATTEMPT:
return ("ATTMP");
case NBR_STA_INIT:
return ("INIT");
case NBR_STA_2_WAY:
return ("2-WAY");
case NBR_STA_XSTRT:
return ("EXSTA");
case NBR_STA_SNAP:
return ("SNAP");
case NBR_STA_XCHNG:
return ("EXCHG");
case NBR_STA_LOAD:
return ("LOAD");
case NBR_STA_FULL:
return ("FULL");
default:
return ("UNKNW");
}
}
const char *
if_state_name(int state)
{
switch (state) {
case IF_STA_DOWN:
return ("DOWN");
case IF_STA_LOOPBACK:
return ("LOOP");
case IF_STA_WAITING:
return ("WAIT");
case IF_STA_POINTTOPOINT:
return ("P2P");
case IF_STA_DROTHER:
return ("OTHER");
case IF_STA_BACKUP:
return ("BCKUP");
case IF_STA_DR:
return ("DR");
default:
return ("UNKNW");
}
}
const char *
if_type_name(enum iface_type type)
{
switch (type) {
case IF_TYPE_POINTOPOINT:
return ("POINTOPOINT");
case IF_TYPE_BROADCAST:
return ("BROADCAST");
case IF_TYPE_NBMA:
return ("NBMA");
case IF_TYPE_POINTOMULTIPOINT:
return ("POINTOMULTIPOINT");
case IF_TYPE_VIRTUALLINK:
return ("VIRTUALLINK");
}
/* NOTREACHED */
return ("UNKNOWN");
}
const char *
dst_type_name(enum dst_type type)
{
switch (type) {
case DT_NET:
return ("Network");
case DT_RTR:
return ("Router");
}
/* NOTREACHED */
return ("unknown");
}
const char *
path_type_name(enum path_type type)
{
switch (type) {
case PT_INTRA_AREA:
return ("Intra-Area");
case PT_INTER_AREA:
return ("Inter-Area");
case PT_TYPE1_EXT:
return ("Type 1 ext");
case PT_TYPE2_EXT:
return ("Type 2 ext");
}
/* NOTREACHED */
return ("unknown");
}
|
d25c3baa25aa7fc6ed8cd0b7247b01d5f0b6d62d
|
28d0f8c01599f8f6c711bdde0b59f9c2cd221203
|
/sbin/iscsictl/iscsic_globals.h
|
f08ead585ba97bf0b0420632c6ff6469f91ff8b3
|
[] |
no_license
|
NetBSD/src
|
1a9cbc22ed778be638b37869ed4fb5c8dd616166
|
23ee83f7c0aea0777bd89d8ebd7f0cde9880d13c
|
refs/heads/trunk
| 2023-08-31T13:24:58.105962
| 2023-08-27T15:50:47
| 2023-08-27T15:50:47
| 88,439,547
| 656
| 348
| null | 2023-07-20T20:07:24
| 2017-04-16T20:03:43
| null |
UTF-8
|
C
| false
| false
| 6,226
|
h
|
iscsic_globals.h
|
/* $NetBSD: iscsic_globals.h,v 1.6 2020/04/03 18:39:15 joerg Exp $ */
/*-
* Copyright (c) 2005,2006,2011 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by Wasabi Systems, Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
* ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef _ISCSIC_GLOBALS_H
#define _ISCSIC_GLOBALS_H
#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/scsiio.h>
/* iSCSI daemon ioctl interface */
#include <iscsid.h>
#include <iscsi_ioctl.h>
/* ------------------------- Global Constants ----------------------------- */
/* Version information */
#define VERSION_MAJOR 3
#define VERSION_MINOR 1
#define VERSION_STRING "NetBSD iSCSI Software Initiator CLI 20110407 "
#define TRUE 1
#define FALSE 0
#define BUF_SIZE 8192
/* --------------------------- Global Types ------------------------------- */
typedef int (*cmdproc_t) (int, char **);
typedef struct {
const char *cmd;
cmdproc_t proc;
} command_t;
/* ------------------------- Global Variables ----------------------------- */
extern int driver; /* handle to driver (for ioctls) */
extern uint8_t buf[BUF_SIZE]; /* buffer for daemon comm and driver I/O */
/* ------------------------- Global Functions ----------------------------- */
#define min(a,b) ((a < b) ? a : b)
#define STATIC static
/*
* Convert uint64 to 6-byte string in network byte order (for ISID field)
*/
static __inline void
hton6(uint8_t * d, uint64_t x)
{
#if BYTE_ORDER == LITTLE_ENDIAN
uint8_t *s = ((uint8_t *)(void *)&x) + 5;
*d++ = *s--;
*d++ = *s--;
*d++ = *s--;
*d++ = *s--;
*d++ = *s--;
*d = *s;
#else
memcpy(d, &((uint8_t *)&x)[2], 6);
#endif
}
/*
* Convert uint64 from network byte order (for LUN field)
*/
static __inline uint64_t
ntohq(uint64_t x)
{
#if BYTE_ORDER == LITTLE_ENDIAN
uint8_t *s = (uint8_t *)(void *)&x;
return (uint64_t) ((uint64_t) s[0] << 56 | (uint64_t) s[1] << 48 |
(uint64_t) s[2] << 40 | (uint64_t) s[3] << 32 |
(uint64_t) s[4] << 24 | (uint64_t) s[5] << 16 |
(uint64_t) s[6] << 8 | (uint64_t) s[7]);
#else
return x;
#endif
}
#define htonq(x) ntohq(x)
/* we usually have to get the id out of a message */
#define GET_SYM_ID(x, y) do { \
iscsid_sym_id_t *__param; \
__param = (iscsid_sym_id_t *)(void *)(y); \
(void) memcpy(&x, &__param->id, sizeof(x)); \
} while (/*CONSTCOND*/0)
/* Check whether ID is present */
#define NO_ID(sid) (!(sid)->id && !(sid)->name[0])
/* iscsic_main.c */
void arg_error(char *, const char *, ...) __printflike(2, 3) __dead;
void arg_missing(const char *) __dead;
void io_error(const char *, ...) __printflike(1, 2) __dead;
void gen_error(const char *, ...) __printflike(1, 2) __dead;
void check_extra_args(int, char **);
void status_error(unsigned) __dead;
void status_error_slist(unsigned) __dead;
void send_request(unsigned, size_t, void *);
iscsid_response_t *get_response(int);
void free_response(iscsid_response_t *);
/* iscsic_daemonif.c */
int add_target(int, char **);
int add_portal(int, char **);
int remove_target(int, char **);
int slp_find_targets(int, char **);
int refresh_targets(int, char **);
int list_targets(int, char **);
int add_send_target(int, char **);
int remove_send_target(int, char **);
int list_send_targets(int, char **);
int add_isns_server(int, char **);
int remove_isns_server(int, char **);
int find_isns_servers(int, char **);
int list_isns_servers(int, char **);
int refresh_isns(int, char **);
int login(int, char **);
int logout(int, char **);
int add_connection(int, char **);
int remove_connection(int, char **);
int add_initiator(int, char **);
int remove_initiator(int, char **);
int list_initiators(int, char **);
int list_sessions(int, char **);
int get_version(int, char **);
/* iscsic_driverif.c */
uint32_t get_sessid(int, char **, int);
void dump_data(const char *, const void *, size_t);
int do_ioctl(iscsi_iocommand_parameters_t *, int);
int set_node_name(int, char **);
int inquiry(int, char **);
int test_unit_ready(int, char **);
int read_capacity(int, char **);
int report_luns(int, char **);
/* iscsic_parse.c */
int cl_get_target(iscsid_add_target_req_t **, int, char **, int);
int cl_get_portal(iscsid_add_portal_req_t *, int, char **);
int cl_get_isns(iscsid_add_isns_server_req_t *, int, char **);
int cl_get_send_targets(iscsid_add_target_req_t *, int, char **);
int cl_get_auth_opts(iscsid_set_target_authentication_req_t *, int, char **);
int cl_get_target_opts(iscsid_get_set_target_options_t *, int, char **);
int cl_get_id(char, iscsid_sym_id_t *, int, char **);
int cl_get_symname(uint8_t *, int, char **);
int cl_get_string(char, char *, int, char **);
int cl_get_opt(char, int, char **);
char cl_get_char(char, int, char **);
int cl_get_int(char, int, char **);
int cl_get_uint(char, int, char **);
uint64_t cl_get_longlong(char, int, char **);
#endif /* !_ISCSIC_GLOBALS_H */
|
f020109523a17260d796752a9f74735cc7040228
|
85ccd32aa73eecf274a937f1fc3b6f4d484b77da
|
/test cases/unit/66 static link/lib/func16.c
|
379b6829f60a8519049650bd5f9e8fc9172b1627
|
[
"Apache-2.0"
] |
permissive
|
mesonbuild/meson
|
48321cf4235dfcc0194fed90ff43a57367592bf7
|
cf5adf0c646474f0259d123fad60ca5ed38ec891
|
refs/heads/master
| 2023-09-01T05:58:50.807952
| 2023-03-17T20:27:37
| 2023-08-31T11:52:41
| 19,784,232
| 5,122
| 1,848
|
Apache-2.0
| 2023-09-14T15:47:23
| 2014-05-14T15:08:16
|
Python
|
UTF-8
|
C
| false
| false
| 55
|
c
|
func16.c
|
int func15();
int func16()
{
return func15() + 1;
}
|
80ec710e25a25d25aa1dd1e1c9002c07c341b917
|
a3d6556180e74af7b555f8d47d3fea55b94bcbda
|
/native_client_sdk/src/examples/api/graphics_3d/matrix.h
|
1d2b9c3f6816779dc5c4776c45a8aaf458b1ffca
|
[
"BSD-3-Clause"
] |
permissive
|
chromium/chromium
|
aaa9eda10115b50b0616d2f1aed5ef35d1d779d6
|
a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c
|
refs/heads/main
| 2023-08-24T00:35:12.585945
| 2023-08-23T22:01:11
| 2023-08-23T22:01:11
| 120,360,765
| 17,408
| 7,102
|
BSD-3-Clause
| 2023-09-10T23:44:27
| 2018-02-05T20:55:32
| null |
UTF-8
|
C
| false
| false
| 1,441
|
h
|
matrix.h
|
#ifndef EXAMPLES_API_GRAPHICS_3D_MATRIX_H_
#define EXAMPLES_API_GRAPHICS_3D_MATRIX_H_
/* Copyright 2012 The Chromium Authors
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/** @file matrix.cc
* Implements simple matrix manipulation functions.
*/
//-----------------------------------------------------------------------------
#define _USE_MATH_DEFINES 1
#include <limits.h>
#include <math.h>
#include <GLES2/gl2.h>
typedef GLfloat Matrix_t[16];
/// Since GLES2 doesn't have all the nifty matrix transform functions that GL
/// has, we emulate some of them here for the sake of sanity from:
/// http://www.opengl.org/wiki/GluPerspective_code
void glhFrustumf2(Matrix_t mat,
GLfloat left,
GLfloat right,
GLfloat bottom,
GLfloat top,
GLfloat znear,
GLfloat zfar);
void glhPerspectivef2(Matrix_t mat,
GLfloat fovyInDegrees,
GLfloat aspectRatio,
GLfloat znear,
GLfloat zfar);
void identity_matrix(Matrix_t mat);
void multiply_matrix(const Matrix_t a, const Matrix_t b, Matrix_t mat);
void rotate_matrix(GLfloat x_deg, GLfloat y_deg, GLfloat z_deg, Matrix_t mat);
void translate_matrix(GLfloat x, GLfloat y, GLfloat z, Matrix_t mat);
#endif // EXAMPLES_API_GRAPHICS_3D_MATRIX_H_
|
f4e25aaab911602e077647bfe9ed5515bdc3abce
|
70ffcb065027032a399f44b9ec91e7b61d73583d
|
/ccan/ccan/crypto/hmac_sha256/hmac_sha256.c
|
2238f9dc8fffbd4ee049ec8c965e0c11aeef37e2
|
[
"BSD-3-Clause",
"MIT"
] |
permissive
|
ElementsProject/lightning
|
4e260841b2ebad8c772a5ff91ef1ebbc3fe1ad71
|
990096f904e26386527a4eddd8d3262464bacabd
|
refs/heads/master
| 2023-09-01T07:11:34.794039
| 2023-08-31T09:55:14
| 2023-08-31T22:02:14
| 37,350,472
| 2,812
| 961
|
NOASSERTION
| 2023-09-14T19:33:22
| 2015-06-13T00:04:22
|
C
|
UTF-8
|
C
| false
| false
| 4,871
|
c
|
hmac_sha256.c
|
/* MIT (BSD) license - see LICENSE file for details */
#include <ccan/crypto/hmac_sha256/hmac_sha256.h>
#include <string.h>
#define IPAD 0x3636363636363636ULL
#define OPAD 0x5C5C5C5C5C5C5C5CULL
#define BLOCK_U64S (HMAC_SHA256_BLOCKSIZE / sizeof(uint64_t))
static inline void xor_block(uint64_t block[BLOCK_U64S], uint64_t pad)
{
size_t i;
for (i = 0; i < BLOCK_U64S; i++)
block[i] ^= pad;
}
void hmac_sha256_init(struct hmac_sha256_ctx *ctx,
const void *k, size_t ksize)
{
struct sha256 hashed_key;
/* We use k_opad as k_ipad temporarily. */
uint64_t *k_ipad = ctx->k_opad;
/* (keys longer than B bytes are first hashed using H) */
if (ksize > HMAC_SHA256_BLOCKSIZE) {
sha256(&hashed_key, k, ksize);
k = &hashed_key;
ksize = sizeof(hashed_key);
}
/* From RFC2104:
*
* (1) append zeros to the end of K to create a B byte string
* (e.g., if K is of length 20 bytes and B=64, then K will be
* appended with 44 zero bytes 0x00)
*/
if (ksize != 0)
memcpy(k_ipad, k, ksize);
memset((char *)k_ipad + ksize, 0, HMAC_SHA256_BLOCKSIZE - ksize);
/*
* (2) XOR (bitwise exclusive-OR) the B byte string computed
* in step (1) with ipad
*/
xor_block(k_ipad, IPAD);
/*
* We start (4) here, appending text later:
*
* (3) append the stream of data 'text' to the B byte string resulting
* from step (2)
* (4) apply H to the stream generated in step (3)
*/
sha256_init(&ctx->sha);
sha256_update(&ctx->sha, k_ipad, HMAC_SHA256_BLOCKSIZE);
/*
* (5) XOR (bitwise exclusive-OR) the B byte string computed in
* step (1) with opad
*/
xor_block(ctx->k_opad, IPAD^OPAD);
}
void hmac_sha256_update(struct hmac_sha256_ctx *ctx, const void *p, size_t size)
{
/* This is the appending-text part of this:
*
* (3) append the stream of data 'text' to the B byte string resulting
* from step (2)
* (4) apply H to the stream generated in step (3)
*/
sha256_update(&ctx->sha, p, size);
}
void hmac_sha256_done(struct hmac_sha256_ctx *ctx,
struct hmac_sha256 *hmac)
{
/* (4) apply H to the stream generated in step (3) */
sha256_done(&ctx->sha, &hmac->sha);
/*
* (6) append the H result from step (4) to the B byte string
* resulting from step (5)
* (7) apply H to the stream generated in step (6) and output
* the result
*/
sha256_init(&ctx->sha);
sha256_update(&ctx->sha, ctx->k_opad, sizeof(ctx->k_opad));
sha256_update(&ctx->sha, &hmac->sha, sizeof(hmac->sha));
sha256_done(&ctx->sha, &hmac->sha);
}
#if 1
void hmac_sha256(struct hmac_sha256 *hmac,
const void *k, size_t ksize,
const void *d, size_t dsize)
{
struct hmac_sha256_ctx ctx;
hmac_sha256_init(&ctx, k, ksize);
hmac_sha256_update(&ctx, d, dsize);
hmac_sha256_done(&ctx, hmac);
}
#else
/* Direct mapping from MD5 example in RFC2104 */
void hmac_sha256(struct hmac_sha256 *hmac,
const void *key, size_t key_len,
const void *text, size_t text_len)
{
struct sha256_ctx context;
unsigned char k_ipad[65]; /* inner padding -
* key XORd with ipad
*/
unsigned char k_opad[65]; /* outer padding -
* key XORd with opad
*//* start out by storing key in pads */
unsigned char tk[32];
int i;
/* if key is longer than 64 bytes reset it to key=MD5(key) */
if (key_len > 64) {
struct sha256_ctx tctx;
sha256_init(&tctx);
sha256_update(&tctx, key, key_len);
sha256_done(&tctx, tk);
key = tk;
key_len = 32;
}
bzero( k_ipad, sizeof k_ipad);
bzero( k_opad, sizeof k_opad);
bcopy( key, k_ipad, key_len);
bcopy( key, k_opad, key_len);
/* XOR key with ipad and opad values */
for (i=0; i<64; i++) {
k_ipad[i] ^= 0x36;
k_opad[i] ^= 0x5c;
}
/*
* perform inner MD5
*/
sha256_init(&context); /* init context for 1st
* pass */
sha256_update(&context, k_ipad, 64); /* start with inner pad */
sha256_update(&context, text, text_len); /* then text of datagram */
sha256_done(&context, &hmac->sha); /* finish up 1st pass */
/*
* perform outer MD5
*/
sha256_init(&context); /* init context for 2nd
* pass */
sha256_update(&context, k_opad, 64); /* start with outer pad */
sha256_update(&context, &hmac->sha, 32); /* then results of 1st
* hash */
sha256_done(&context, &hmac->sha); /* finish up 2nd pass */
}
#endif
|
220b077f7eb087a8ee86bddf93b0f42a57c994c2
|
bcb62f36caa6ab1f92715cffae29cf4353d247e8
|
/courses/star_cup/sherbet_land/packed.inc.c
|
c3b121972e5533d318e8e4d6744c078e166dd437
|
[] |
no_license
|
n64decomp/mk64
|
4b74ffb8c896e739b908534b74bc1cb79a21ae60
|
c4c00f159845fddd1eced906c14cc25a0cb7a10b
|
refs/heads/master
| 2023-09-01T02:48:30.111868
| 2023-09-01T02:28:49
| 2023-09-01T02:28:49
| 304,205,548
| 476
| 88
| null | 2023-09-14T04:36:28
| 2020-10-15T04:01:57
|
C
|
UTF-8
|
C
| false
| false
| 103,758
|
c
|
packed.inc.c
|
#include <ultra64.h>
#include <macros.h>
#include <PR/gbi.h>
#include <actor_types.h>
#include <course.h>
#include <courses/star_cup/sherbet_land/packed.inc.h>
Gfx d_course_sherbet_land_packed_dl_0[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPSetCombineMode(G_CC_MODULATEIDECALA, G_CC_MODULATEIDECALA),
gsDPSetRenderMode(G_RM_AA_ZB_TEX_EDGE, G_RM_AA_ZB_TEX_EDGE2),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_NOMIRROR | G_TX_CLAMP, 5, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_CLAMP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05000000),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x04000000, 4, 0),
gsSP1Quadrangle(0, 1, 2, 3, 0),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 16, 0x0000, G_TX_RENDERTILE, 0, G_TX_NOMIRROR | G_TX_CLAMP, 5, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_CLAMP, 6, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x00FC, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05001800),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 2047, 128),
gsSPVertex(0x04000040, 4, 0),
gsSP1Quadrangle(0, 1, 2, 3, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_C0[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPSetCombineMode(G_CC_MODULATEIDECALA, G_CC_MODULATEIDECALA),
gsDPSetRenderMode(G_RM_AA_ZB_TEX_EDGE, G_RM_AA_ZB_TEX_EDGE2),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_NOMIRROR | G_TX_CLAMP, 5, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_CLAMP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05000000),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x04000080, 4, 0),
gsSP1Quadrangle(0, 1, 2, 3, 0),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 16, 0x0000, G_TX_RENDERTILE, 0, G_TX_NOMIRROR | G_TX_CLAMP, 5, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_CLAMP, 6, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x00FC, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05001800),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 2047, 128),
gsSPVertex(0x040000C0, 4, 0),
gsSP1Quadrangle(0, 1, 2, 3, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_180[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPSetCombineMode(G_CC_MODULATEIDECALA, G_CC_MODULATEIDECALA),
gsDPSetRenderMode(G_RM_AA_ZB_TEX_EDGE, G_RM_AA_ZB_TEX_EDGE2),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_NOMIRROR | G_TX_CLAMP, 5, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_CLAMP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05000000),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x04000100, 4, 0),
gsSP1Quadrangle(0, 1, 2, 3, 0),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 16, 0x0000, G_TX_RENDERTILE, 0, G_TX_NOMIRROR | G_TX_CLAMP, 5, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_CLAMP, 6, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x00FC, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05001800),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 2047, 128),
gsSPVertex(0x04000140, 4, 0),
gsSP1Quadrangle(0, 1, 2, 3, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_240[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPSetCombineMode(G_CC_MODULATEIDECALA, G_CC_MODULATEIDECALA),
gsDPSetRenderMode(G_RM_AA_ZB_TEX_EDGE, G_RM_AA_ZB_TEX_EDGE2),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_NOMIRROR | G_TX_CLAMP, 5, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_CLAMP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05000000),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x04000180, 4, 0),
gsSP1Quadrangle(0, 1, 2, 3, 0),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 16, 0x0000, G_TX_RENDERTILE, 0, G_TX_NOMIRROR | G_TX_CLAMP, 5, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_CLAMP, 6, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x00FC, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05001800),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 2047, 128),
gsSPVertex(0x040001C0, 4, 0),
gsSP1Quadrangle(0, 1, 2, 3, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_300[] =
{
gsSPDisplayList(d_course_sherbet_land_packed_dl_240),
gsSPDisplayList(d_course_sherbet_land_packed_dl_180),
gsSPDisplayList(d_course_sherbet_land_packed_dl_C0),
gsSPDisplayList(d_course_sherbet_land_packed_dl_0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_328[] =
{
gsSPDisplayList(d_course_sherbet_land_packed_dl_300),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_338[] =
{
gsSPDisplayList(d_course_sherbet_land_packed_dl_328),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_348[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05002800),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x04000200, 32, 0),
gsSP2Triangles(0, 1, 2, 0, 3, 4, 5, 0),
gsSP2Triangles(6, 7, 8, 0, 9, 10, 11, 0),
gsSP2Triangles(12, 13, 14, 0, 15, 16, 17, 0),
gsSP2Triangles(18, 19, 20, 0, 21, 22, 23, 0),
gsSP2Triangles(20, 24, 25, 0, 26, 27, 28, 0),
gsSP1Triangle(29, 30, 31, 0),
gsSPVertex(0x04000400, 32, 0),
gsSP2Triangles(0, 1, 2, 0, 3, 4, 5, 0),
gsSP2Triangles(6, 7, 8, 0, 9, 10, 11, 0),
gsSP2Triangles(12, 13, 14, 0, 15, 16, 17, 0),
gsSP2Triangles(15, 17, 18, 0, 19, 20, 21, 0),
gsSP2Triangles(20, 22, 23, 0, 9, 24, 10, 0),
gsSP2Triangles(12, 14, 25, 0, 26, 27, 28, 0),
gsSP1Triangle(29, 30, 31, 0),
gsSPVertex(0x04000600, 32, 0),
gsSP2Triangles(0, 1, 2, 0, 3, 4, 5, 0),
gsSP2Triangles(6, 7, 8, 0, 9, 10, 8, 0),
gsSP2Triangles(11, 12, 13, 0, 14, 15, 16, 0),
gsSP2Triangles(17, 18, 19, 0, 20, 21, 22, 0),
gsSP2Triangles(20, 22, 23, 0, 14, 24, 25, 0),
gsSP2Triangles(14, 25, 26, 0, 20, 27, 28, 0),
gsSP1Triangle(29, 30, 31, 0),
gsSPVertex(0x04000800, 11, 0),
gsSP1Quadrangle(0, 1, 2, 3, 0),
gsSP1Quadrangle(4, 5, 6, 7, 0),
gsSP1Triangle(8, 9, 10, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_470[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05002800),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x040008B0, 32, 0),
gsSP2Triangles(0, 1, 2, 0, 3, 4, 5, 0),
gsSP2Triangles(6, 7, 8, 0, 3, 9, 10, 0),
gsSP2Triangles(11, 12, 13, 0, 14, 15, 16, 0),
gsSP2Triangles(17, 18, 19, 0, 20, 21, 22, 0),
gsSP2Triangles(23, 24, 25, 0, 26, 27, 28, 0),
gsSP1Triangle(29, 30, 31, 0),
gsSPVertex(0x04000AB0, 32, 0),
gsSP2Triangles(0, 1, 2, 0, 3, 4, 5, 0),
gsSP2Triangles(6, 7, 8, 0, 9, 10, 11, 0),
gsSP2Triangles(12, 13, 14, 0, 6, 15, 7, 0),
gsSP2Triangles(16, 17, 18, 0, 19, 20, 21, 0),
gsSP2Triangles(22, 23, 24, 0, 12, 25, 13, 0),
gsSP2Triangles(26, 27, 28, 0, 29, 30, 31, 0),
gsSPVertex(0x04000CB0, 31, 0),
gsSP2Triangles(0, 1, 2, 0, 3, 4, 5, 0),
gsSP2Triangles(6, 7, 8, 0, 6, 9, 7, 0),
gsSP2Triangles(10, 11, 12, 0, 13, 14, 15, 0),
gsSP2Triangles(16, 17, 18, 0, 19, 20, 21, 0),
gsSP2Triangles(22, 23, 21, 0, 24, 25, 26, 0),
gsSP2Triangles(27, 28, 26, 0, 29, 30, 15, 0),
gsSPVertex(0x04000EA0, 32, 0),
gsSP2Triangles(0, 1, 2, 0, 3, 4, 5, 0),
gsSP2Triangles(6, 7, 8, 0, 9, 10, 11, 0),
gsSP2Triangles(12, 13, 14, 0, 15, 16, 17, 0),
gsSP2Triangles(12, 18, 19, 0, 20, 21, 22, 0),
gsSP2Triangles(20, 22, 23, 0, 24, 25, 26, 0),
gsSP2Triangles(24, 26, 27, 0, 28, 29, 30, 0),
gsSP1Triangle(28, 30, 31, 0),
gsSPVertex(0x040010A0, 19, 0),
gsSP1Quadrangle(0, 1, 2, 3, 0),
gsSP2Triangles(4, 5, 6, 0, 7, 8, 9, 0),
gsSP1Quadrangle(10, 11, 12, 13, 0),
gsSP2Triangles(14, 15, 16, 0, 10, 17, 18, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_5D0[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05002800),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x040011D0, 30, 0),
gsSP2Triangles(0, 1, 2, 0, 3, 4, 5, 0),
gsSP2Triangles(6, 7, 8, 0, 9, 10, 11, 0),
gsSP2Triangles(12, 13, 14, 0, 15, 16, 17, 0),
gsSP2Triangles(18, 19, 20, 0, 21, 22, 23, 0),
gsSP2Triangles(24, 25, 26, 0, 27, 28, 29, 0),
gsSPVertex(0x040013B0, 30, 0),
gsSP2Triangles(0, 1, 2, 0, 3, 4, 5, 0),
gsSP2Triangles(6, 7, 8, 0, 9, 10, 11, 0),
gsSP2Triangles(12, 13, 14, 0, 13, 15, 16, 0),
gsSP2Triangles(17, 18, 19, 0, 20, 21, 22, 0),
gsSP2Triangles(20, 23, 21, 0, 24, 25, 26, 0),
gsSP1Triangle(27, 28, 29, 0),
gsSPVertex(0x04001590, 31, 0),
gsSP2Triangles(0, 1, 2, 0, 3, 4, 5, 0),
gsSP2Triangles(6, 7, 8, 0, 7, 9, 8, 0),
gsSP2Triangles(10, 11, 12, 0, 13, 14, 15, 0),
gsSP2Triangles(16, 17, 18, 0, 19, 20, 21, 0),
gsSP2Triangles(22, 23, 24, 0, 25, 26, 27, 0),
gsSP1Triangle(28, 29, 30, 0),
gsSPVertex(0x04001780, 31, 0),
gsSP2Triangles(0, 1, 2, 0, 3, 4, 5, 0),
gsSP2Triangles(6, 7, 8, 0, 9, 10, 11, 0),
gsSP2Triangles(12, 13, 14, 0, 15, 16, 17, 0),
gsSP2Triangles(18, 19, 20, 0, 21, 22, 23, 0),
gsSP2Triangles(0, 24, 25, 0, 26, 27, 28, 0),
gsSP1Triangle(23, 29, 30, 0),
gsSPVertex(0x04001970, 27, 0),
gsSP2Triangles(0, 1, 2, 0, 3, 4, 5, 0),
gsSP2Triangles(6, 7, 5, 0, 8, 9, 10, 0),
gsSP1Quadrangle(11, 12, 13, 14, 0),
gsSP1Quadrangle(15, 16, 17, 18, 0),
gsSP1Quadrangle(19, 20, 21, 22, 0),
gsSP1Quadrangle(23, 24, 25, 26, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_730[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05002800),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x04001B20, 32, 0),
gsSP2Triangles(0, 1, 2, 0, 3, 4, 5, 0),
gsSP2Triangles(6, 7, 8, 0, 9, 10, 11, 0),
gsSP2Triangles(12, 13, 14, 0, 15, 16, 17, 0),
gsSP2Triangles(18, 19, 20, 0, 21, 2, 22, 0),
gsSP2Triangles(23, 24, 25, 0, 26, 27, 28, 0),
gsSP1Triangle(29, 30, 31, 0),
gsSPVertex(0x04001D20, 32, 0),
gsSP2Triangles(0, 1, 2, 0, 3, 4, 5, 0),
gsSP2Triangles(6, 7, 8, 0, 9, 10, 11, 0),
gsSP1Quadrangle(12, 13, 14, 15, 0),
gsSP2Triangles(16, 17, 18, 0, 19, 20, 21, 0),
gsSP2Triangles(18, 22, 23, 0, 24, 25, 26, 0),
gsSP2Triangles(27, 28, 18, 0, 29, 30, 31, 0),
gsSPVertex(0x04001F20, 25, 0),
gsSP2Triangles(0, 1, 2, 0, 3, 4, 5, 0),
gsSP2Triangles(6, 7, 8, 0, 9, 10, 0, 0),
gsSP2Triangles(11, 12, 13, 0, 14, 15, 16, 0),
gsSP1Quadrangle(17, 18, 19, 20, 0),
gsSP1Quadrangle(21, 22, 23, 24, 0),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05003800),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x040020B0, 4, 0),
gsSP1Quadrangle(0, 1, 2, 3, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_858[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05002800),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x040020F0, 31, 0),
gsSP2Triangles(0, 1, 2, 0, 3, 4, 5, 0),
gsSP2Triangles(6, 7, 8, 0, 9, 10, 11, 0),
gsSP2Triangles(12, 13, 14, 0, 15, 16, 17, 0),
gsSP2Triangles(18, 19, 20, 0, 0, 21, 22, 0),
gsSP2Triangles(23, 24, 25, 0, 26, 27, 28, 0),
gsSP1Triangle(26, 29, 30, 0),
gsSPVertex(0x040022E0, 30, 0),
gsSP2Triangles(0, 1, 2, 0, 3, 4, 5, 0),
gsSP2Triangles(6, 7, 8, 0, 9, 10, 11, 0),
gsSP2Triangles(10, 12, 13, 0, 14, 15, 16, 0),
gsSP2Triangles(15, 17, 18, 0, 6, 19, 20, 0),
gsSP2Triangles(21, 22, 23, 0, 24, 25, 26, 0),
gsSP1Triangle(27, 28, 29, 0),
gsSPVertex(0x040024C0, 30, 0),
gsSP2Triangles(0, 1, 2, 0, 3, 4, 5, 0),
gsSP2Triangles(4, 6, 5, 0, 7, 8, 9, 0),
gsSP2Triangles(10, 11, 12, 0, 13, 14, 15, 0),
gsSP2Triangles(15, 16, 17, 0, 18, 19, 20, 0),
gsSP2Triangles(21, 22, 23, 0, 24, 25, 26, 0),
gsSP1Triangle(27, 28, 29, 0),
gsSPVertex(0x040026A0, 31, 0),
gsSP2Triangles(0, 1, 2, 0, 3, 4, 5, 0),
gsSP1Quadrangle(6, 7, 8, 9, 0),
gsSP2Triangles(10, 11, 12, 0, 13, 14, 15, 0),
gsSP2Triangles(6, 16, 17, 0, 18, 19, 20, 0),
gsSP2Triangles(18, 20, 21, 0, 10, 22, 23, 0),
gsSP1Quadrangle(24, 25, 26, 27, 0),
gsSP1Triangle(28, 29, 30, 0),
gsSPVertex(0x04002890, 6, 0),
gsSP2Triangles(0, 1, 2, 0, 3, 4, 5, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_9A0[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05002800),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x040028F0, 30, 0),
gsSP2Triangles(0, 1, 2, 0, 3, 4, 5, 0),
gsSP2Triangles(6, 7, 8, 0, 9, 10, 11, 0),
gsSP2Triangles(12, 13, 14, 0, 12, 15, 16, 0),
gsSP2Triangles(17, 18, 19, 0, 20, 21, 22, 0),
gsSP2Triangles(23, 24, 25, 0, 26, 23, 27, 0),
gsSP1Triangle(23, 28, 29, 0),
gsSPVertex(0x04002AD0, 31, 0),
gsSP2Triangles(0, 1, 2, 0, 3, 4, 5, 0),
gsSP2Triangles(6, 7, 8, 0, 9, 10, 11, 0),
gsSP2Triangles(12, 13, 14, 0, 15, 16, 17, 0),
gsSP2Triangles(18, 19, 20, 0, 18, 21, 19, 0),
gsSP2Triangles(22, 23, 24, 0, 25, 26, 23, 0),
gsSP2Triangles(13, 27, 14, 0, 28, 29, 30, 0),
gsSPVertex(0x04002CC0, 32, 0),
gsSP2Triangles(0, 1, 2, 0, 3, 4, 5, 0),
gsSP2Triangles(6, 7, 8, 0, 9, 10, 11, 0),
gsSP2Triangles(9, 12, 10, 0, 13, 14, 15, 0),
gsSP2Triangles(13, 16, 14, 0, 17, 18, 19, 0),
gsSP2Triangles(20, 21, 22, 0, 23, 24, 25, 0),
gsSP2Triangles(26, 27, 28, 0, 29, 30, 31, 0),
gsSPVertex(0x04002EC0, 32, 0),
gsSP2Triangles(0, 1, 2, 0, 3, 4, 5, 0),
gsSP2Triangles(6, 7, 8, 0, 9, 10, 11, 0),
gsSP2Triangles(12, 13, 14, 0, 15, 16, 14, 0),
gsSP2Triangles(11, 17, 18, 0, 19, 20, 21, 0),
gsSP2Triangles(22, 23, 24, 0, 25, 26, 27, 0),
gsSP1Quadrangle(28, 29, 30, 31, 0),
gsSPVertex(0x040030C0, 23, 0),
gsSP2Triangles(0, 1, 2, 0, 3, 4, 5, 0),
gsSP2Triangles(3, 5, 6, 0, 7, 8, 9, 0),
gsSP2Triangles(10, 11, 12, 0, 13, 14, 15, 0),
gsSP2Triangles(16, 17, 18, 0, 19, 20, 21, 0),
gsSP1Triangle(19, 21, 22, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_B00[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05002800),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x04003230, 30, 0),
gsSP2Triangles(0, 1, 2, 0, 3, 4, 5, 0),
gsSP2Triangles(6, 7, 8, 0, 7, 9, 10, 0),
gsSP2Triangles(11, 12, 13, 0, 14, 15, 16, 0),
gsSP2Triangles(17, 18, 19, 0, 20, 21, 22, 0),
gsSP2Triangles(23, 24, 25, 0, 26, 27, 28, 0),
gsSP1Triangle(11, 13, 29, 0),
gsSPVertex(0x04003410, 31, 0),
gsSP2Triangles(0, 1, 2, 0, 3, 4, 5, 0),
gsSP2Triangles(6, 7, 8, 0, 9, 10, 11, 0),
gsSP2Triangles(12, 13, 14, 0, 15, 16, 17, 0),
gsSP2Triangles(18, 19, 20, 0, 3, 21, 4, 0),
gsSP2Triangles(22, 23, 24, 0, 25, 26, 27, 0),
gsSP1Triangle(28, 29, 30, 0),
gsSPVertex(0x04003600, 32, 0),
gsSP2Triangles(0, 1, 2, 0, 3, 4, 5, 0),
gsSP2Triangles(6, 7, 8, 0, 9, 10, 11, 0),
gsSP2Triangles(12, 13, 14, 0, 15, 16, 17, 0),
gsSP2Triangles(17, 18, 19, 0, 20, 21, 22, 0),
gsSP2Triangles(23, 24, 25, 0, 17, 26, 27, 0),
gsSP2Triangles(14, 28, 29, 0, 23, 30, 31, 0),
gsSPVertex(0x04003800, 29, 0),
gsSP2Triangles(0, 1, 2, 0, 3, 4, 5, 0),
gsSP2Triangles(6, 7, 2, 0, 8, 9, 10, 0),
gsSP1Quadrangle(11, 12, 13, 14, 0),
gsSP2Triangles(15, 16, 17, 0, 18, 19, 20, 0),
gsSP2Triangles(18, 20, 21, 0, 22, 23, 24, 0),
gsSP2Triangles(22, 24, 25, 0, 26, 27, 28, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_C30[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05002800),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x040039D0, 31, 0),
gsSP2Triangles(0, 1, 2, 0, 3, 4, 5, 0),
gsSP2Triangles(6, 2, 7, 0, 8, 9, 10, 0),
gsSP2Triangles(11, 12, 13, 0, 14, 15, 16, 0),
gsSP2Triangles(17, 18, 19, 0, 20, 21, 22, 0),
gsSP2Triangles(23, 22, 24, 0, 25, 26, 27, 0),
gsSP1Triangle(28, 29, 30, 0),
gsSPVertex(0x04003BC0, 30, 0),
gsSP2Triangles(0, 1, 2, 0, 3, 4, 5, 0),
gsSP2Triangles(6, 7, 8, 0, 9, 10, 11, 0),
gsSP2Triangles(12, 13, 11, 0, 11, 14, 15, 0),
gsSP2Triangles(16, 17, 18, 0, 19, 20, 21, 0),
gsSP2Triangles(8, 22, 23, 0, 24, 25, 26, 0),
gsSP1Triangle(27, 28, 29, 0),
gsSPVertex(0x04003DA0, 14, 0),
gsSP2Triangles(0, 1, 2, 0, 3, 4, 5, 0),
gsSP1Quadrangle(6, 7, 8, 9, 0),
gsSP1Quadrangle(10, 11, 12, 13, 0),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05003800),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x04003E80, 4, 0),
gsSP1Quadrangle(0, 1, 2, 3, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_D48[] =
{
gsSPDisplayList(d_course_sherbet_land_packed_dl_C30),
gsSPDisplayList(d_course_sherbet_land_packed_dl_B00),
gsSPDisplayList(d_course_sherbet_land_packed_dl_9A0),
gsSPDisplayList(d_course_sherbet_land_packed_dl_858),
gsSPDisplayList(d_course_sherbet_land_packed_dl_730),
gsSPDisplayList(d_course_sherbet_land_packed_dl_5D0),
gsSPDisplayList(d_course_sherbet_land_packed_dl_470),
gsSPDisplayList(d_course_sherbet_land_packed_dl_348),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_D90[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05004800),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x04003EC0, 16, 0),
gsSP2Triangles(0, 1, 2, 0, 3, 4, 5, 0),
gsSP2Triangles(6, 7, 8, 0, 9, 10, 11, 0),
gsSP1Quadrangle(12, 13, 14, 15, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_E00[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05004800),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x04003FC0, 32, 0),
gsSP2Triangles(0, 1, 2, 0, 3, 4, 5, 0),
gsSP2Triangles(6, 7, 8, 0, 9, 10, 11, 0),
gsSP2Triangles(12, 13, 14, 0, 15, 16, 17, 0),
gsSP2Triangles(15, 17, 18, 0, 19, 20, 21, 0),
gsSP1Quadrangle(22, 23, 24, 25, 0),
gsSP2Triangles(26, 27, 28, 0, 29, 30, 31, 0),
gsSPVertex(0x040041C0, 7, 0),
gsSP2Triangles(0, 1, 2, 0, 3, 4, 5, 0),
gsSP1Triangle(3, 5, 6, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_EA0[] =
{
gsSPDisplayList(d_course_sherbet_land_packed_dl_E00),
gsSPDisplayList(d_course_sherbet_land_packed_dl_D90),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_EB8[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_MIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_MIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05001000),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x04004230, 28, 0),
gsSP2Triangles(0, 1, 2, 0, 0, 3, 1, 0),
gsSP2Triangles(4, 5, 6, 0, 5, 7, 6, 0),
gsSP2Triangles(8, 9, 10, 0, 11, 12, 13, 0),
gsSP2Triangles(13, 12, 14, 0, 15, 16, 17, 0),
gsSP2Triangles(16, 18, 17, 0, 19, 20, 21, 0),
gsSP2Triangles(22, 23, 3, 0, 3, 24, 1, 0),
gsSP1Triangle(25, 26, 27, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_F48[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_MIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_MIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05001000),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x040043F0, 24, 0),
gsSP2Triangles(0, 1, 2, 0, 3, 4, 1, 0),
gsSP2Triangles(5, 6, 7, 0, 8, 9, 10, 0),
gsSP2Triangles(9, 11, 10, 0, 12, 13, 14, 0),
gsSP2Triangles(15, 14, 16, 0, 14, 13, 16, 0),
gsSP2Triangles(15, 16, 17, 0, 18, 19, 20, 0),
gsSP1Triangle(21, 22, 23, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_FD0[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_MIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_MIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05001000),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x04004570, 30, 0),
gsSP2Triangles(0, 1, 2, 0, 3, 4, 5, 0),
gsSP2Triangles(6, 7, 8, 0, 9, 10, 11, 0),
gsSP2Triangles(12, 13, 14, 0, 15, 16, 17, 0),
gsSP2Triangles(18, 19, 20, 0, 21, 22, 23, 0),
gsSP2Triangles(24, 25, 26, 0, 27, 28, 29, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_1050[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_MIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_MIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05001000),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x04004750, 22, 0),
gsSP2Triangles(0, 1, 2, 0, 3, 4, 5, 0),
gsSP2Triangles(3, 6, 4, 0, 7, 8, 9, 0),
gsSP2Triangles(10, 11, 12, 0, 13, 14, 15, 0),
gsSP2Triangles(16, 17, 18, 0, 19, 20, 21, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_10C8[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_MIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_MIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05001000),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x040048B0, 27, 0),
gsSP2Triangles(0, 1, 2, 0, 3, 4, 5, 0),
gsSP2Triangles(6, 7, 8, 0, 9, 10, 11, 0),
gsSP2Triangles(12, 13, 14, 0, 15, 16, 17, 0),
gsSP2Triangles(18, 19, 20, 0, 21, 22, 23, 0),
gsSP1Triangle(24, 25, 26, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_1148[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_MIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_MIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05001000),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x04004A60, 18, 0),
gsSP2Triangles(0, 1, 2, 0, 3, 4, 5, 0),
gsSP2Triangles(6, 7, 8, 0, 9, 10, 11, 0),
gsSP2Triangles(12, 13, 14, 0, 15, 16, 17, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_11B8[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_MIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_MIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05001000),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x04004B80, 12, 0),
gsSP2Triangles(0, 1, 2, 0, 3, 4, 5, 0),
gsSP2Triangles(6, 7, 8, 0, 9, 10, 11, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_1220[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_MIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_MIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05001000),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x04004C40, 32, 0),
gsSP2Triangles(0, 1, 2, 0, 3, 4, 5, 0),
gsSP2Triangles(6, 7, 8, 0, 9, 6, 8, 0),
gsSP2Triangles(10, 11, 12, 0, 13, 14, 15, 0),
gsSP1Quadrangle(16, 17, 18, 19, 0),
gsSP2Triangles(20, 21, 22, 0, 23, 24, 25, 0),
gsSP2Triangles(26, 27, 28, 0, 29, 30, 31, 0),
gsSPVertex(0x04004E40, 15, 0),
gsSP2Triangles(0, 1, 2, 0, 3, 4, 5, 0),
gsSP2Triangles(6, 7, 8, 0, 9, 10, 11, 0),
gsSP1Triangle(12, 13, 14, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_12C8[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_MIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_MIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05001000),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x04004F30, 31, 0),
gsSP2Triangles(0, 1, 2, 0, 3, 4, 5, 0),
gsSP1Quadrangle(6, 7, 8, 9, 0),
gsSP2Triangles(10, 9, 8, 0, 11, 12, 13, 0),
gsSP2Triangles(14, 15, 16, 0, 16, 15, 17, 0),
gsSP1Quadrangle(18, 19, 20, 21, 0),
gsSP2Triangles(22, 23, 24, 0, 25, 26, 27, 0),
gsSP1Triangle(28, 29, 30, 0),
gsSPVertex(0x04005120, 9, 0),
gsSP2Triangles(0, 1, 2, 0, 3, 4, 5, 0),
gsSP1Triangle(6, 7, 8, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_1370[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_MIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_MIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05001000),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x040051B0, 24, 0),
gsSP2Triangles(0, 1, 2, 0, 3, 4, 5, 0),
gsSP2Triangles(6, 7, 8, 0, 9, 10, 11, 0),
gsSP2Triangles(12, 13, 14, 0, 15, 16, 17, 0),
gsSP2Triangles(18, 19, 20, 0, 21, 22, 23, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_13E8[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_MIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_MIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05001000),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x04005330, 12, 0),
gsSP2Triangles(0, 1, 2, 0, 3, 4, 5, 0),
gsSP2Triangles(6, 7, 8, 0, 9, 10, 11, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_1450[] =
{
gsSPDisplayList(d_course_sherbet_land_packed_dl_13E8),
gsSPDisplayList(d_course_sherbet_land_packed_dl_1370),
gsSPDisplayList(d_course_sherbet_land_packed_dl_12C8),
gsSPDisplayList(d_course_sherbet_land_packed_dl_1220),
gsSPDisplayList(d_course_sherbet_land_packed_dl_11B8),
gsSPDisplayList(d_course_sherbet_land_packed_dl_1148),
gsSPDisplayList(d_course_sherbet_land_packed_dl_10C8),
gsSPDisplayList(d_course_sherbet_land_packed_dl_1050),
gsSPDisplayList(d_course_sherbet_land_packed_dl_FD0),
gsSPDisplayList(d_course_sherbet_land_packed_dl_F48),
gsSPDisplayList(d_course_sherbet_land_packed_dl_EB8),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_14B0[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05004800),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x040053F0, 12, 0),
gsSP1Quadrangle(0, 1, 2, 3, 0),
gsSP1Quadrangle(4, 5, 6, 7, 0),
gsSP1Quadrangle(8, 9, 10, 11, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_1520[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05004800),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x040054B0, 16, 0),
gsSP1Quadrangle(0, 1, 2, 3, 0),
gsSP1Quadrangle(4, 5, 6, 7, 0),
gsSP1Quadrangle(8, 9, 10, 11, 0),
gsSP1Quadrangle(12, 13, 14, 15, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_1598[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05004800),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x040055B0, 32, 0),
gsSP1Quadrangle(0, 1, 2, 3, 0),
gsSP1Quadrangle(4, 5, 6, 7, 0),
gsSP1Quadrangle(8, 9, 10, 11, 0),
gsSP1Quadrangle(12, 13, 14, 15, 0),
gsSP1Quadrangle(16, 17, 18, 19, 0),
gsSP1Quadrangle(20, 21, 22, 23, 0),
gsSP1Quadrangle(24, 25, 26, 27, 0),
gsSP1Quadrangle(28, 29, 30, 31, 0),
gsSPVertex(0x040057B0, 4, 0),
gsSP1Quadrangle(0, 1, 2, 3, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_1640[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05004800),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x040057F0, 13, 0),
gsSP1Quadrangle(0, 1, 2, 3, 0),
gsSP2Triangles(0, 4, 1, 0, 5, 6, 7, 0),
gsSP2Triangles(5, 7, 8, 0, 9, 10, 11, 0),
gsSP1Triangle(9, 11, 12, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_16B8[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05004800),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x040058C0, 8, 0),
gsSP1Quadrangle(0, 1, 2, 3, 0),
gsSP1Quadrangle(4, 5, 6, 7, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_1720[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05004800),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x04005940, 16, 0),
gsSP1Quadrangle(0, 1, 2, 3, 0),
gsSP1Quadrangle(4, 5, 6, 7, 0),
gsSP1Quadrangle(8, 9, 10, 11, 0),
gsSP1Quadrangle(12, 13, 14, 15, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_1798[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05004800),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x04005A40, 8, 0),
gsSP1Quadrangle(0, 1, 2, 3, 0),
gsSP1Quadrangle(4, 5, 6, 7, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_1800[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05004800),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x04005AC0, 12, 0),
gsSP1Quadrangle(0, 1, 2, 3, 0),
gsSP1Quadrangle(4, 5, 6, 7, 0),
gsSP1Quadrangle(8, 9, 10, 11, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_1870[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05004800),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x04005B80, 12, 0),
gsSP1Quadrangle(0, 1, 2, 3, 0),
gsSP1Quadrangle(4, 5, 6, 7, 0),
gsSP1Quadrangle(8, 9, 10, 11, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_18E0[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05004800),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x04005C40, 4, 0),
gsSP1Quadrangle(0, 1, 2, 3, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_1940[] =
{
gsSPDisplayList(d_course_sherbet_land_packed_dl_18E0),
gsSPDisplayList(d_course_sherbet_land_packed_dl_1870),
gsSPDisplayList(d_course_sherbet_land_packed_dl_1800),
gsSPDisplayList(d_course_sherbet_land_packed_dl_1798),
gsSPDisplayList(d_course_sherbet_land_packed_dl_1720),
gsSPDisplayList(d_course_sherbet_land_packed_dl_16B8),
gsSPDisplayList(d_course_sherbet_land_packed_dl_1640),
gsSPDisplayList(d_course_sherbet_land_packed_dl_1598),
gsSPDisplayList(d_course_sherbet_land_packed_dl_1520),
gsSPDisplayList(d_course_sherbet_land_packed_dl_14B0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_1998[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05004000),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x04005C80, 11, 0),
gsSP1Quadrangle(0, 1, 2, 3, 0),
gsSP2Triangles(4, 5, 6, 0, 5, 7, 6, 0),
gsSP1Quadrangle(0, 6, 8, 1, 0),
gsSP2Triangles(9, 8, 6, 0, 10, 9, 6, 0),
gsSP1Triangle(7, 10, 6, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_1A18[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05004000),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x04005D30, 11, 0),
gsSP1Quadrangle(0, 1, 2, 3, 0),
gsSP2Triangles(0, 4, 1, 0, 1, 4, 5, 0),
gsSP2Triangles(1, 5, 6, 0, 6, 5, 7, 0),
gsSP2Triangles(6, 7, 8, 0, 7, 9, 10, 0),
gsSP1Triangle(8, 7, 10, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_1A98[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05004000),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x04005DE0, 16, 0),
gsSP2Triangles(0, 1, 2, 0, 3, 0, 2, 0),
gsSP2Triangles(3, 2, 4, 0, 5, 6, 7, 0),
gsSP2Triangles(5, 7, 8, 0, 5, 9, 6, 0),
gsSP2Triangles(9, 10, 6, 0, 10, 11, 12, 0),
gsSP2Triangles(10, 12, 6, 0, 12, 11, 13, 0),
gsSP2Triangles(12, 13, 14, 0, 14, 13, 15, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_1B20[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05004000),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x04005EE0, 10, 0),
gsSP1Quadrangle(0, 1, 2, 3, 0),
gsSP1Quadrangle(4, 5, 6, 7, 0),
gsSP1Quadrangle(7, 6, 8, 9, 0),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_NOMIRROR | G_TX_CLAMP, 5, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_CLAMP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05005000),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x04005F80, 4, 0),
gsSP1Quadrangle(0, 1, 2, 3, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_1BE0[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05004000),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x04005FC0, 8, 0),
gsSP2Triangles(0, 1, 2, 0, 0, 3, 4, 0),
gsSP2Triangles(0, 4, 1, 0, 5, 6, 4, 0),
gsSP2Triangles(5, 4, 3, 0, 7, 6, 5, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_1C50[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05004000),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x04006040, 13, 0),
gsSP1Quadrangle(0, 1, 2, 3, 0),
gsSP1Quadrangle(4, 5, 6, 7, 0),
gsSP2Triangles(5, 8, 6, 0, 9, 10, 11, 0),
gsSP1Quadrangle(10, 12, 4, 11, 0),
gsSP2Triangles(11, 1, 0, 0, 4, 7, 11, 0),
gsSP1Triangle(7, 1, 11, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_1CD8[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05004000),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x04006110, 7, 0),
gsSP2Triangles(0, 1, 2, 0, 1, 3, 2, 0),
gsSP2Triangles(2, 3, 4, 0, 5, 2, 4, 0),
gsSP1Triangle(5, 4, 6, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_1D48[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05004000),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x04006180, 10, 0),
gsSP2Triangles(0, 1, 2, 0, 0, 3, 1, 0),
gsSP2Triangles(3, 4, 1, 0, 1, 5, 2, 0),
gsSP2Triangles(6, 7, 8, 0, 3, 6, 4, 0),
gsSP2Triangles(6, 9, 4, 0, 6, 8, 9, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_1DC0[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05004000),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x04006220, 11, 0),
gsSP1Quadrangle(0, 1, 2, 3, 0),
gsSP2Triangles(4, 1, 0, 0, 3, 2, 5, 0),
gsSP2Triangles(3, 5, 6, 0, 6, 5, 7, 0),
gsSP1Quadrangle(6, 7, 8, 9, 0),
gsSP1Triangle(6, 9, 10, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_1E40[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05004000),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x040062D0, 10, 0),
gsSP2Triangles(0, 1, 2, 0, 1, 3, 4, 0),
gsSP2Triangles(2, 1, 4, 0, 3, 5, 4, 0),
gsSP1Quadrangle(6, 7, 5, 3, 0),
gsSP1Quadrangle(8, 9, 7, 6, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_1EB8[] =
{
gsSPDisplayList(d_course_sherbet_land_packed_dl_1E40),
gsSPDisplayList(d_course_sherbet_land_packed_dl_1DC0),
gsSPDisplayList(d_course_sherbet_land_packed_dl_1D48),
gsSPDisplayList(d_course_sherbet_land_packed_dl_1CD8),
gsSPDisplayList(d_course_sherbet_land_packed_dl_1C50),
gsSPDisplayList(d_course_sherbet_land_packed_dl_1BE0),
gsSPDisplayList(d_course_sherbet_land_packed_dl_1B20),
gsSPDisplayList(d_course_sherbet_land_packed_dl_1A98),
gsSPDisplayList(d_course_sherbet_land_packed_dl_1A18),
gsSPDisplayList(d_course_sherbet_land_packed_dl_1998),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_1F10[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05000800),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x04006370, 5, 0),
gsSP1Quadrangle(0, 1, 2, 3, 0),
gsSP1Triangle(0, 4, 1, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_1F78[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05000800),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x040063C0, 9, 0),
gsSP2Triangles(0, 1, 2, 0, 3, 4, 5, 0),
gsSP2Triangles(3, 5, 6, 0, 3, 7, 8, 0),
gsSP2Triangles(3, 6, 7, 0, 8, 2, 1, 0),
gsSP1Triangle(1, 3, 8, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_1FF0[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05000800),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x04006450, 9, 0),
gsSP2Triangles(0, 1, 2, 0, 0, 3, 4, 0),
gsSP2Triangles(0, 4, 1, 0, 0, 5, 3, 0),
gsSP2Triangles(3, 6, 4, 0, 7, 2, 1, 0),
gsSP1Triangle(7, 1, 8, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_2068[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05000800),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x040064E0, 6, 0),
gsSP2Triangles(0, 1, 2, 0, 1, 3, 2, 0),
gsSP2Triangles(1, 4, 3, 0, 3, 4, 5, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_20D0[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05000800),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x04006540, 5, 0),
gsSP2Triangles(0, 1, 2, 0, 0, 3, 1, 0),
gsSP1Triangle(0, 4, 3, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_2138[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05000800),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x04006590, 9, 0),
gsSP2Triangles(0, 1, 2, 0, 3, 0, 4, 0),
gsSP2Triangles(0, 2, 5, 0, 6, 0, 3, 0),
gsSP2Triangles(0, 7, 8, 0, 0, 6, 1, 0),
gsSP1Triangle(0, 5, 7, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_21B0[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05000800),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x04006620, 7, 0),
gsSP2Triangles(0, 1, 2, 0, 1, 3, 2, 0),
gsSP1Quadrangle(2, 3, 4, 5, 0),
gsSP1Triangle(2, 5, 6, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_2220[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05000800),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x04006690, 7, 0),
gsSP2Triangles(0, 1, 2, 0, 0, 3, 1, 0),
gsSP2Triangles(0, 4, 3, 0, 0, 5, 4, 0),
gsSP1Triangle(0, 6, 5, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_2290[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05000800),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x04006700, 9, 0),
gsSP2Triangles(0, 1, 2, 0, 2, 3, 0, 0),
gsSP2Triangles(2, 4, 5, 0, 5, 6, 7, 0),
gsSP2Triangles(8, 5, 7, 0, 5, 8, 2, 0),
gsSP1Triangle(8, 3, 2, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_2308[] =
{
gsSPDisplayList(d_course_sherbet_land_packed_dl_2290),
gsSPDisplayList(d_course_sherbet_land_packed_dl_2220),
gsSPDisplayList(d_course_sherbet_land_packed_dl_21B0),
gsSPDisplayList(d_course_sherbet_land_packed_dl_2138),
gsSPDisplayList(d_course_sherbet_land_packed_dl_20D0),
gsSPDisplayList(d_course_sherbet_land_packed_dl_2068),
gsSPDisplayList(d_course_sherbet_land_packed_dl_1FF0),
gsSPDisplayList(d_course_sherbet_land_packed_dl_1F78),
gsSPDisplayList(d_course_sherbet_land_packed_dl_1F10),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_2358[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05003000),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x04006790, 32, 0),
gsSP1Quadrangle(0, 1, 2, 3, 0),
gsSP1Quadrangle(4, 5, 6, 7, 0),
gsSP1Quadrangle(8, 9, 10, 11, 0),
gsSP1Quadrangle(12, 13, 14, 15, 0),
gsSP1Quadrangle(16, 17, 18, 19, 0),
gsSP1Quadrangle(20, 21, 22, 23, 0),
gsSP1Quadrangle(24, 25, 26, 27, 0),
gsSP1Quadrangle(28, 29, 30, 31, 0),
gsSPVertex(0x04006990, 32, 0),
gsSP1Quadrangle(0, 1, 2, 3, 0),
gsSP1Quadrangle(4, 5, 6, 7, 0),
gsSP1Quadrangle(8, 9, 10, 11, 0),
gsSP1Quadrangle(12, 13, 14, 15, 0),
gsSP1Quadrangle(16, 17, 18, 19, 0),
gsSP1Quadrangle(20, 21, 22, 23, 0),
gsSP1Quadrangle(24, 25, 26, 27, 0),
gsSP1Quadrangle(28, 29, 30, 31, 0),
gsSPVertex(0x04006B90, 8, 0),
gsSP1Quadrangle(0, 1, 2, 3, 0),
gsSP1Quadrangle(4, 5, 6, 7, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_2450[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05003000),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x04006C10, 32, 0),
gsSP1Quadrangle(0, 1, 2, 3, 0),
gsSP1Quadrangle(4, 5, 6, 7, 0),
gsSP1Quadrangle(8, 9, 10, 11, 0),
gsSP1Quadrangle(12, 13, 14, 15, 0),
gsSP1Quadrangle(16, 17, 18, 19, 0),
gsSP1Quadrangle(20, 21, 22, 23, 0),
gsSP1Quadrangle(24, 25, 26, 27, 0),
gsSP1Quadrangle(28, 29, 30, 31, 0),
gsSPVertex(0x04006E10, 32, 0),
gsSP1Quadrangle(0, 1, 2, 3, 0),
gsSP1Quadrangle(4, 5, 6, 7, 0),
gsSP1Quadrangle(8, 9, 10, 11, 0),
gsSP1Quadrangle(12, 13, 14, 15, 0),
gsSP1Quadrangle(16, 17, 18, 19, 0),
gsSP1Quadrangle(20, 21, 22, 23, 0),
gsSP1Quadrangle(24, 25, 26, 27, 0),
gsSP1Quadrangle(28, 29, 30, 31, 0),
gsSPVertex(0x04007010, 8, 0),
gsSP1Quadrangle(0, 1, 2, 3, 0),
gsSP1Quadrangle(4, 5, 6, 7, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_2548[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05003000),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x04007090, 32, 0),
gsSP1Quadrangle(0, 1, 2, 3, 0),
gsSP1Quadrangle(4, 5, 6, 7, 0),
gsSP1Quadrangle(8, 9, 10, 11, 0),
gsSP1Quadrangle(12, 13, 14, 15, 0),
gsSP1Quadrangle(16, 17, 18, 19, 0),
gsSP1Quadrangle(20, 21, 22, 23, 0),
gsSP1Quadrangle(24, 25, 26, 27, 0),
gsSP1Quadrangle(28, 29, 30, 31, 0),
gsSPVertex(0x04007290, 32, 0),
gsSP1Quadrangle(0, 1, 2, 3, 0),
gsSP1Quadrangle(4, 5, 6, 7, 0),
gsSP1Quadrangle(8, 9, 10, 11, 0),
gsSP1Quadrangle(12, 13, 14, 15, 0),
gsSP1Quadrangle(16, 17, 18, 19, 0),
gsSP1Quadrangle(20, 21, 22, 23, 0),
gsSP1Quadrangle(24, 25, 26, 27, 0),
gsSP1Quadrangle(28, 29, 30, 31, 0),
gsSPVertex(0x04007490, 8, 0),
gsSP1Quadrangle(0, 1, 2, 3, 0),
gsSP1Quadrangle(4, 5, 6, 7, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_2640[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05003000),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x04007510, 32, 0),
gsSP1Quadrangle(0, 1, 2, 3, 0),
gsSP1Quadrangle(4, 5, 6, 7, 0),
gsSP1Quadrangle(8, 9, 10, 11, 0),
gsSP1Quadrangle(12, 13, 14, 15, 0),
gsSP1Quadrangle(16, 17, 18, 19, 0),
gsSP1Quadrangle(20, 21, 22, 23, 0),
gsSP1Quadrangle(24, 25, 26, 27, 0),
gsSP1Quadrangle(28, 29, 30, 31, 0),
gsSPVertex(0x04007710, 32, 0),
gsSP1Quadrangle(0, 1, 2, 3, 0),
gsSP1Quadrangle(4, 5, 6, 7, 0),
gsSP1Quadrangle(8, 9, 10, 11, 0),
gsSP1Quadrangle(12, 13, 14, 15, 0),
gsSP1Quadrangle(16, 17, 18, 19, 0),
gsSP1Quadrangle(20, 21, 22, 23, 0),
gsSP1Quadrangle(24, 25, 26, 27, 0),
gsSP1Quadrangle(28, 29, 30, 31, 0),
gsSPVertex(0x04007910, 8, 0),
gsSP1Quadrangle(0, 1, 2, 3, 0),
gsSP1Quadrangle(4, 5, 6, 7, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_2738[] =
{
gsSPDisplayList(d_course_sherbet_land_packed_dl_2640),
gsSPDisplayList(d_course_sherbet_land_packed_dl_2548),
gsSPDisplayList(d_course_sherbet_land_packed_dl_2450),
gsSPDisplayList(d_course_sherbet_land_packed_dl_2358),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_2760[] =
{
gsSPTexture(0x0001, 0x0001, 0, G_TX_RENDERTILE, G_OFF),
gsSPVertex(0x04007990, 9, 0),
gsSP1Quadrangle(0, 1, 2, 3, 0),
gsSP2Triangles(4, 3, 2, 0, 5, 4, 2, 0),
gsSP2Triangles(5, 2, 6, 0, 7, 8, 5, 0),
gsSP1Triangle(7, 5, 6, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_2798[] =
{
gsSPDisplayList(d_course_sherbet_land_packed_dl_2760),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_27A8[] =
{
gsSPTexture(0x0001, 0x0001, 0, G_TX_RENDERTILE, G_OFF),
gsSPVertex(0x04007A20, 32, 0),
gsSP2Triangles(0, 1, 2, 0, 3, 1, 0, 0),
gsSP2Triangles(0, 2, 4, 0, 0, 5, 3, 0),
gsSP2Triangles(4, 6, 0, 0, 0, 6, 5, 0),
gsSP2Triangles(3, 7, 1, 0, 2, 8, 4, 0),
gsSP2Triangles(3, 9, 7, 0, 10, 9, 3, 0),
gsSP2Triangles(3, 11, 10, 0, 3, 5, 11, 0),
gsSP2Triangles(10, 12, 9, 0, 13, 14, 15, 0),
gsSP2Triangles(13, 16, 14, 0, 13, 17, 18, 0),
gsSP2Triangles(13, 18, 16, 0, 19, 13, 20, 0),
gsSP2Triangles(19, 20, 21, 0, 13, 15, 22, 0),
gsSP2Triangles(13, 22, 20, 0, 15, 14, 23, 0),
gsSP1Quadrangle(15, 24, 25, 22, 0),
gsSP2Triangles(15, 23, 24, 0, 4, 26, 27, 0),
gsSP1Quadrangle(4, 27, 28, 6, 0),
gsSP2Triangles(4, 8, 26, 0, 29, 26, 30, 0),
gsSP1Quadrangle(27, 26, 29, 31, 0),
gsSP1Triangle(27, 31, 28, 0),
gsSPVertex(0x04007C20, 32, 0),
gsSP2Triangles(0, 1, 2, 0, 2, 3, 0, 0),
gsSP2Triangles(2, 4, 3, 0, 0, 5, 1, 0),
gsSP2Triangles(0, 6, 5, 0, 0, 7, 6, 0),
gsSP2Triangles(0, 3, 7, 0, 8, 9, 10, 0),
gsSP1Quadrangle(10, 11, 12, 13, 0),
gsSP1Quadrangle(14, 15, 10, 13, 0),
gsSP2Triangles(8, 16, 9, 0, 17, 18, 19, 0),
gsSP1Quadrangle(17, 19, 20, 21, 0),
gsSP2Triangles(17, 22, 18, 0, 23, 17, 24, 0),
gsSP2Triangles(23, 24, 25, 0, 17, 21, 26, 0),
gsSP2Triangles(17, 26, 24, 0, 27, 18, 22, 0),
gsSP2Triangles(21, 20, 28, 0, 29, 28, 8, 0),
gsSP2Triangles(28, 16, 8, 0, 30, 29, 8, 0),
gsSP2Triangles(30, 8, 31, 0, 31, 8, 15, 0),
gsSP1Triangle(31, 15, 14, 0),
gsSPVertex(0x04007E20, 32, 0),
gsSP2Triangles(0, 1, 2, 0, 0, 3, 4, 0),
gsSP2Triangles(0, 5, 1, 0, 0, 4, 6, 0),
gsSP2Triangles(6, 7, 0, 0, 7, 5, 0, 0),
gsSP2Triangles(2, 3, 0, 0, 2, 1, 8, 0),
gsSP2Triangles(2, 8, 9, 0, 2, 10, 3, 0),
gsSP2Triangles(9, 10, 2, 0, 11, 12, 13, 0),
gsSP1Quadrangle(11, 13, 14, 15, 0),
gsSP1Quadrangle(13, 16, 17, 14, 0),
gsSP2Triangles(18, 19, 20, 0, 18, 21, 22, 0),
gsSP2Triangles(18, 23, 24, 0, 25, 19, 18, 0),
gsSP2Triangles(25, 18, 22, 0, 18, 24, 21, 0),
gsSP2Triangles(19, 26, 20, 0, 27, 19, 25, 0),
gsSP2Triangles(28, 20, 29, 0, 20, 30, 31, 0),
gsSPVertex(0x04008020, 32, 0),
gsSP1Quadrangle(0, 1, 2, 3, 0),
gsSP2Triangles(0, 4, 1, 0, 5, 4, 0, 0),
gsSP2Triangles(0, 6, 7, 0, 0, 6, 8, 0),
gsSP2Triangles(3, 9, 0, 0, 5, 0, 10, 0),
gsSP2Triangles(11, 12, 13, 0, 14, 15, 11, 0),
gsSP2Triangles(14, 11, 2, 0, 2, 11, 3, 0),
gsSP2Triangles(15, 12, 11, 0, 11, 13, 3, 0),
gsSP2Triangles(6, 12, 15, 0, 16, 13, 17, 0),
gsSP2Triangles(16, 17, 18, 0, 3, 13, 16, 0),
gsSP1Quadrangle(19, 18, 17, 20, 0),
gsSP1Quadrangle(21, 19, 20, 22, 0),
gsSP2Triangles(21, 22, 23, 0, 24, 21, 23, 0),
gsSP2Triangles(9, 3, 16, 0, 7, 6, 15, 0),
gsSP2Triangles(25, 26, 27, 0, 25, 28, 26, 0),
gsSP2Triangles(26, 28, 29, 0, 26, 23, 27, 0),
gsSP2Triangles(2, 1, 14, 0, 26, 29, 30, 0),
gsSP1Triangle(27, 23, 31, 0),
gsSPVertex(0x04008220, 32, 0),
gsSP1Quadrangle(0, 1, 2, 3, 0),
gsSP2Triangles(4, 5, 0, 0, 5, 6, 0, 0),
gsSP1Quadrangle(2, 7, 8, 3, 0),
gsSP2Triangles(9, 6, 5, 0, 10, 11, 12, 0),
gsSP2Triangles(10, 12, 13, 0, 11, 14, 15, 0),
gsSP1Quadrangle(11, 15, 16, 12, 0),
gsSP2Triangles(17, 18, 19, 0, 17, 20, 21, 0),
gsSP2Triangles(17, 22, 20, 0, 23, 24, 25, 0),
gsSP1Quadrangle(26, 27, 24, 23, 0),
gsSP2Triangles(28, 23, 29, 0, 23, 25, 29, 0),
gsSP2Triangles(28, 26, 23, 0, 7, 27, 26, 0),
gsSP2Triangles(7, 26, 8, 0, 24, 30, 31, 0),
gsSPVertex(0x04008420, 32, 0),
gsSP2Triangles(0, 1, 2, 0, 3, 1, 4, 0),
gsSP2Triangles(2, 1, 5, 0, 3, 4, 6, 0),
gsSP1Quadrangle(3, 6, 7, 8, 0),
gsSP2Triangles(4, 0, 9, 0, 6, 4, 10, 0),
gsSP2Triangles(4, 9, 10, 0, 11, 0, 2, 0),
gsSP2Triangles(6, 10, 7, 0, 7, 11, 2, 0),
gsSP2Triangles(8, 7, 12, 0, 12, 7, 13, 0),
gsSP2Triangles(7, 2, 8, 0, 2, 5, 8, 0),
gsSP2Triangles(14, 15, 16, 0, 17, 18, 19, 0),
gsSP2Triangles(17, 20, 18, 0, 21, 17, 22, 0),
gsSP2Triangles(21, 22, 23, 0, 17, 12, 13, 0),
gsSP2Triangles(17, 13, 22, 0, 8, 17, 19, 0),
gsSP2Triangles(18, 20, 24, 0, 8, 19, 5, 0),
gsSP1Quadrangle(25, 26, 27, 28, 0),
gsSP2Triangles(25, 28, 29, 0, 30, 25, 29, 0),
gsSP1Triangle(30, 29, 31, 0),
gsSPVertex(0x04008620, 30, 0),
gsSP1Quadrangle(0, 1, 2, 3, 0),
gsSP1Quadrangle(1, 4, 5, 2, 0),
gsSP2Triangles(6, 7, 1, 0, 1, 8, 4, 0),
gsSP2Triangles(1, 7, 8, 0, 9, 6, 1, 0),
gsSP1Quadrangle(4, 10, 11, 12, 0),
gsSP2Triangles(4, 12, 5, 0, 10, 4, 13, 0),
gsSP2Triangles(4, 8, 13, 0, 10, 14, 15, 0),
gsSP2Triangles(10, 15, 11, 0, 16, 6, 9, 0),
gsSP2Triangles(17, 18, 16, 0, 16, 18, 6, 0),
gsSP2Triangles(19, 20, 21, 0, 19, 22, 20, 0),
gsSP1Quadrangle(14, 23, 24, 15, 0),
gsSP1Quadrangle(25, 26, 27, 28, 0),
gsSP1Triangle(25, 28, 29, 0),
gsSPVertex(0x04008800, 7, 0),
gsSP1Quadrangle(0, 1, 2, 3, 0),
gsSP1Quadrangle(2, 4, 5, 6, 0),
gsSP1Triangle(3, 2, 6, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_2B48[] =
{
gsSPDisplayList(d_course_sherbet_land_packed_dl_27A8),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_2B58[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05004800),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x04008870, 16, 0),
gsSP2Triangles(0, 1, 2, 0, 3, 4, 5, 0),
gsSP1Quadrangle(6, 7, 8, 9, 0),
gsSP2Triangles(10, 11, 12, 0, 13, 14, 15, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_2BC8[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05004800),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x04008970, 30, 0),
gsSP2Triangles(0, 1, 2, 0, 3, 4, 5, 0),
gsSP2Triangles(6, 7, 8, 0, 9, 10, 11, 0),
gsSP2Triangles(12, 13, 14, 0, 15, 16, 17, 0),
gsSP2Triangles(15, 17, 18, 0, 19, 20, 21, 0),
gsSP2Triangles(19, 21, 22, 0, 23, 24, 25, 0),
gsSP2Triangles(23, 25, 26, 0, 27, 28, 29, 0),
gsSPVertex(0x04008B50, 7, 0),
gsSP2Triangles(0, 1, 2, 0, 3, 4, 5, 0),
gsSP1Triangle(3, 5, 6, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_2C68[] =
{
gsSPDisplayList(d_course_sherbet_land_packed_dl_2BC8),
gsSPDisplayList(d_course_sherbet_land_packed_dl_2B58),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_2C80[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_MIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_MIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05001000),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x04008BC0, 18, 0),
gsSP2Triangles(0, 1, 2, 0, 3, 4, 5, 0),
gsSP2Triangles(6, 7, 8, 0, 9, 10, 11, 0),
gsSP2Triangles(12, 13, 14, 0, 15, 16, 17, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_2CF0[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_MIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_MIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05001000),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x04008CE0, 28, 0),
gsSP2Triangles(0, 1, 2, 0, 1, 3, 2, 0),
gsSP2Triangles(4, 5, 6, 0, 4, 7, 5, 0),
gsSP2Triangles(8, 9, 10, 0, 11, 12, 13, 0),
gsSP2Triangles(13, 12, 14, 0, 15, 16, 17, 0),
gsSP2Triangles(15, 18, 16, 0, 19, 20, 21, 0),
gsSP2Triangles(3, 22, 23, 0, 1, 24, 3, 0),
gsSP1Triangle(25, 26, 27, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_2D80[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_MIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_MIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05001000),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x04008EA0, 24, 0),
gsSP2Triangles(0, 1, 2, 0, 1, 3, 4, 0),
gsSP2Triangles(5, 6, 7, 0, 8, 9, 10, 0),
gsSP2Triangles(8, 11, 9, 0, 12, 13, 14, 0),
gsSP2Triangles(12, 15, 13, 0, 16, 12, 14, 0),
gsSP2Triangles(13, 15, 17, 0, 18, 19, 20, 0),
gsSP1Triangle(21, 22, 23, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_2E08[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_MIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_MIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05001000),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x04009020, 30, 0),
gsSP2Triangles(0, 1, 2, 0, 3, 4, 5, 0),
gsSP2Triangles(6, 7, 8, 0, 9, 10, 11, 0),
gsSP2Triangles(12, 13, 14, 0, 15, 16, 17, 0),
gsSP2Triangles(18, 19, 20, 0, 21, 22, 23, 0),
gsSP2Triangles(24, 25, 26, 0, 27, 28, 29, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_2E88[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_MIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_MIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05001000),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x04009200, 22, 0),
gsSP2Triangles(0, 1, 2, 0, 3, 4, 5, 0),
gsSP2Triangles(4, 6, 5, 0, 7, 8, 9, 0),
gsSP2Triangles(10, 11, 12, 0, 13, 14, 15, 0),
gsSP2Triangles(16, 17, 18, 0, 19, 20, 21, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_2F00[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_MIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_MIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05001000),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x04009360, 27, 0),
gsSP2Triangles(0, 1, 2, 0, 3, 4, 5, 0),
gsSP2Triangles(6, 7, 8, 0, 9, 10, 11, 0),
gsSP2Triangles(12, 13, 14, 0, 15, 16, 17, 0),
gsSP2Triangles(18, 19, 20, 0, 21, 22, 23, 0),
gsSP1Triangle(24, 25, 26, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_2F80[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_MIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_MIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05001000),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x04009510, 12, 0),
gsSP2Triangles(0, 1, 2, 0, 3, 4, 5, 0),
gsSP2Triangles(6, 7, 8, 0, 9, 10, 11, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_2FE8[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05002800),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x040095D0, 16, 0),
gsSP1Quadrangle(0, 1, 2, 3, 0),
gsSP2Triangles(4, 5, 6, 0, 7, 8, 9, 0),
gsSP2Triangles(10, 11, 12, 0, 13, 14, 15, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_3058[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_MIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_MIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05001000),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x040096D0, 12, 0),
gsSP2Triangles(0, 1, 2, 0, 3, 4, 5, 0),
gsSP2Triangles(6, 7, 8, 0, 9, 10, 11, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_30C0[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_MIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_MIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05001000),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x04009790, 31, 0),
gsSP2Triangles(0, 1, 2, 0, 3, 4, 5, 0),
gsSP2Triangles(3, 6, 4, 0, 7, 8, 9, 0),
gsSP1Quadrangle(10, 11, 12, 13, 0),
gsSP2Triangles(14, 15, 16, 0, 15, 17, 16, 0),
gsSP2Triangles(18, 14, 16, 0, 19, 20, 21, 0),
gsSP2Triangles(22, 23, 24, 0, 25, 26, 27, 0),
gsSP1Triangle(28, 29, 30, 0),
gsSPVertex(0x04009980, 18, 0),
gsSP2Triangles(0, 1, 2, 0, 3, 4, 5, 0),
gsSP2Triangles(6, 7, 8, 0, 9, 10, 11, 0),
gsSP2Triangles(12, 13, 14, 0, 15, 16, 17, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_3170[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_MIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_MIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05001000),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x04009AA0, 31, 0),
gsSP2Triangles(0, 1, 2, 0, 3, 4, 5, 0),
gsSP2Triangles(6, 3, 5, 0, 3, 6, 7, 0),
gsSP2Triangles(8, 9, 10, 0, 11, 12, 13, 0),
gsSP2Triangles(11, 14, 12, 0, 11, 15, 14, 0),
gsSP2Triangles(13, 16, 17, 0, 18, 19, 20, 0),
gsSP2Triangles(18, 20, 21, 0, 22, 23, 24, 0),
gsSP2Triangles(25, 26, 27, 0, 28, 29, 30, 0),
gsSPVertex(0x04009C90, 12, 0),
gsSP2Triangles(0, 1, 2, 0, 3, 4, 5, 0),
gsSP2Triangles(6, 7, 8, 0, 9, 10, 11, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_3218[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_MIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_MIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05001000),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x04009D50, 24, 0),
gsSP2Triangles(0, 1, 2, 0, 3, 4, 5, 0),
gsSP2Triangles(6, 7, 8, 0, 9, 10, 11, 0),
gsSP2Triangles(12, 13, 14, 0, 15, 16, 17, 0),
gsSP2Triangles(18, 19, 20, 0, 21, 22, 23, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_3290[] =
{
gsSPDisplayList(d_course_sherbet_land_packed_dl_3218),
gsSPDisplayList(d_course_sherbet_land_packed_dl_3170),
gsSPDisplayList(d_course_sherbet_land_packed_dl_30C0),
gsSPDisplayList(d_course_sherbet_land_packed_dl_3058),
gsSPDisplayList(d_course_sherbet_land_packed_dl_2FE8),
gsSPDisplayList(d_course_sherbet_land_packed_dl_2F80),
gsSPDisplayList(d_course_sherbet_land_packed_dl_2F00),
gsSPDisplayList(d_course_sherbet_land_packed_dl_2E88),
gsSPDisplayList(d_course_sherbet_land_packed_dl_2E08),
gsSPDisplayList(d_course_sherbet_land_packed_dl_2D80),
gsSPDisplayList(d_course_sherbet_land_packed_dl_2CF0),
gsSPDisplayList(d_course_sherbet_land_packed_dl_2C80),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_32F8[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05004800),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x04009ED0, 12, 0),
gsSP1Quadrangle(0, 1, 2, 3, 0),
gsSP1Quadrangle(4, 5, 6, 7, 0),
gsSP1Quadrangle(8, 9, 10, 11, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_3368[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05004800),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x04009F90, 16, 0),
gsSP1Quadrangle(0, 1, 2, 3, 0),
gsSP1Quadrangle(4, 5, 6, 7, 0),
gsSP1Quadrangle(8, 9, 10, 11, 0),
gsSP1Quadrangle(12, 13, 14, 15, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_33E0[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05004800),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x0400A090, 32, 0),
gsSP1Quadrangle(0, 1, 2, 3, 0),
gsSP1Quadrangle(4, 5, 6, 7, 0),
gsSP1Quadrangle(8, 9, 10, 11, 0),
gsSP1Quadrangle(12, 13, 14, 15, 0),
gsSP1Quadrangle(16, 17, 18, 19, 0),
gsSP1Quadrangle(20, 21, 22, 23, 0),
gsSP1Quadrangle(24, 25, 26, 27, 0),
gsSP1Quadrangle(28, 29, 30, 31, 0),
gsSPVertex(0x0400A290, 4, 0),
gsSP1Quadrangle(0, 1, 2, 3, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_3488[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05004800),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x0400A2D0, 13, 0),
gsSP1Quadrangle(0, 1, 2, 3, 0),
gsSP2Triangles(2, 4, 3, 0, 5, 6, 7, 0),
gsSP2Triangles(5, 7, 8, 0, 9, 10, 11, 0),
gsSP1Triangle(9, 11, 12, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_3500[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05004800),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x0400A3A0, 8, 0),
gsSP1Quadrangle(0, 1, 2, 3, 0),
gsSP1Quadrangle(4, 5, 6, 7, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_3568[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05004800),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x0400A420, 16, 0),
gsSP1Quadrangle(0, 1, 2, 3, 0),
gsSP1Quadrangle(4, 5, 6, 7, 0),
gsSP1Quadrangle(8, 9, 10, 11, 0),
gsSP1Quadrangle(12, 13, 14, 15, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_35E0[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05004800),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x0400A520, 8, 0),
gsSP1Quadrangle(0, 1, 2, 3, 0),
gsSP1Quadrangle(4, 5, 6, 7, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_3648[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05004800),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x0400A5A0, 12, 0),
gsSP1Quadrangle(0, 1, 2, 3, 0),
gsSP1Quadrangle(4, 5, 6, 7, 0),
gsSP1Quadrangle(8, 9, 10, 11, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_36B8[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05004800),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x0400A660, 12, 0),
gsSP1Quadrangle(0, 1, 2, 3, 0),
gsSP1Quadrangle(4, 5, 6, 7, 0),
gsSP1Quadrangle(8, 9, 10, 11, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_3728[] =
{
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0x0000, G_TX_RENDERTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, 5, G_TX_NOLOD),
gsDPSetTileSize(G_TX_RENDERTILE, 0, 0, 0x007C, 0x007C),
gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, 0x05004800),
gsDPTileSync(),
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0x0000, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMASK, G_TX_NOLOD),
gsDPLoadSync(),
gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 256),
gsSPVertex(0x0400A720, 4, 0),
gsSP1Quadrangle(0, 1, 2, 3, 0),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_3788[] =
{
gsSPDisplayList(d_course_sherbet_land_packed_dl_3728),
gsSPDisplayList(d_course_sherbet_land_packed_dl_36B8),
gsSPDisplayList(d_course_sherbet_land_packed_dl_3648),
gsSPDisplayList(d_course_sherbet_land_packed_dl_35E0),
gsSPDisplayList(d_course_sherbet_land_packed_dl_3568),
gsSPDisplayList(d_course_sherbet_land_packed_dl_3500),
gsSPDisplayList(d_course_sherbet_land_packed_dl_3488),
gsSPDisplayList(d_course_sherbet_land_packed_dl_33E0),
gsSPDisplayList(d_course_sherbet_land_packed_dl_3368),
gsSPDisplayList(d_course_sherbet_land_packed_dl_32F8),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_37E0[] =
{
gsSPDisplayList(d_course_sherbet_land_packed_dl_3788),
gsSPDisplayList(d_course_sherbet_land_packed_dl_3290),
gsSPDisplayList(d_course_sherbet_land_packed_dl_2C68),
gsSPDisplayList(d_course_sherbet_land_packed_dl_2B48),
gsSPDisplayList(d_course_sherbet_land_packed_dl_2798),
gsSPDisplayList(d_course_sherbet_land_packed_dl_2738),
gsSPDisplayList(d_course_sherbet_land_packed_dl_2308),
gsSPDisplayList(d_course_sherbet_land_packed_dl_1EB8),
gsSPDisplayList(d_course_sherbet_land_packed_dl_1940),
gsSPDisplayList(d_course_sherbet_land_packed_dl_1450),
gsSPDisplayList(d_course_sherbet_land_packed_dl_EA0),
gsSPDisplayList(d_course_sherbet_land_packed_dl_D48),
gsSPEndDisplayList(),
};
Gfx d_course_sherbet_land_packed_dl_3848[] =
{
gsSPDisplayList(d_course_sherbet_land_packed_dl_37E0),
gsSPEndDisplayList(),
};
|
f23189ef727de35161296f32c0c7b8cc78c52c89
|
97c44f18459163c0baa546ab2578339b716c3238
|
/crypto/BRCryptoAddressP.h
|
e0e36b3217ea25eab94b3e989a220773c6f7fcdd
|
[
"MIT"
] |
permissive
|
breadwallet/breadwallet-core
|
fe8a0ac99f3e47216860b2918c8ad14d3503b140
|
73566cb79f753954eccbf07d5ab25ca54741198e
|
refs/heads/develop
| 2023-08-21T22:27:45.735652
| 2020-02-06T18:43:51
| 2020-02-06T18:43:51
| 37,500,549
| 284
| 283
|
MIT
| 2023-03-21T09:07:32
| 2015-06-16T01:22:12
|
C
|
UTF-8
|
C
| false
| false
| 1,895
|
h
|
BRCryptoAddressP.h
|
//
// BRCryptoAddressP.h
// BRCore
//
// Created by Ed Gamble on 11/22/19.
// Copyright © 2019 Breadwinner AG. All rights reserved.
//
// See the LICENSE file at the project root for license information.
// See the CONTRIBUTORS file at the project root for a list of contributors.
#ifndef BRCryptoAddressP_h
#define BRCryptoAddressP_h
#include "BRCryptoBaseP.h"
#include "BRCryptoAddress.h"
#include "bcash/BRBCashAddr.h"
#include "support/BRAddress.h"
#include "ethereum/BREthereum.h"
#include "generic/BRGeneric.h"
#ifdef __cplusplus
extern "C" {
#endif
struct BRCryptoAddressRecord {
BRCryptoBlockChainType type;
union {
/// A BTC or BCH address
struct {
// `true` if BTC; `false` if `BCH`
BRCryptoBoolean isBitcoinAddr;
/// The 'bitcoin/' address. For BTC, addr.s is the string; for BCH, addr.s is
/// encoded in a 'BCH' specific way.
BRAddress addr;
} btc;
/// A ETH address
BREthereumAddress eth;
/// A GEN address
BRGenericAddress gen;
} u;
BRCryptoRef ref;
};
private_extern BRCryptoAddress
cryptoAddressCreateAsBTC (BRAddress btc,
BRCryptoBoolean isBTC); // TRUE if BTC; FALSE if BCH
private_extern BRCryptoAddress
cryptoAddressCreateAsETH (BREthereumAddress eth);
private_extern BRCryptoAddress
cryptoAddressCreateAsGEN (OwnershipGiven BRGenericAddress gen);
private_extern BRCryptoBlockChainType
cryptoAddressGetType (BRCryptoAddress address);
private_extern BRAddress
cryptoAddressAsBTC (BRCryptoAddress address,
BRCryptoBoolean *isBitcoinAddr);
private_extern BREthereumAddress
cryptoAddressAsETH (BRCryptoAddress address);
private_extern BRGenericAddress
cryptoAddressAsGEN (BRCryptoAddress address);
#ifdef __cplusplus
}
#endif
#endif /* BRCryptoAddressP_h */
|
37f26fce3168cba5399ac1bcb49347b39bdb7c0e
|
f3eed0234b4d0ad2bbb2abd700cf1e2c7a0e8a1d
|
/AKWF-c/AKWF_granular/AKWF_granular_0040.h
|
d19b2cfd8d122fe14c1163f82677a9027ddde38e
|
[
"CC0-1.0"
] |
permissive
|
KristofferKarlAxelEkstrand/AKWF-FREE
|
b2defa1a2d389d309be6dd2e9f968923daf80d1b
|
cf8171df36e9fec25416b5f568b72a6e2cb69194
|
refs/heads/master
| 2023-07-23T18:22:36.939705
| 2023-07-10T17:14:40
| 2023-07-10T17:14:40
| 145,817,187
| 359
| 59
|
CC0-1.0
| 2023-07-10T17:14:41
| 2018-08-23T07:26:56
| null |
UTF-8
|
C
| false
| false
| 4,690
|
h
|
AKWF_granular_0040.h
|
/* Adventure Kid Waveforms (AKWF) converted for use with Teensy Audio Library
*
* Adventure Kid Waveforms(AKWF) Open waveforms library
* https://www.adventurekid.se/akrt/waveforms/adventure-kid-waveforms/
*
* This code is in the public domain, CC0 1.0 Universal (CC0 1.0)
* https://creativecommons.org/publicdomain/zero/1.0/
*
* Converted by Brad Roy, https://github.com/prosper00
*/
/* AKWF_granular_0040 256 samples
+-----------------------------------------------------------------------------------------------------------------+
| ** * * ** |
| * * ** ** |
|** ** * * *** |
|* * * ** **** ** ** |
|* ** * ** * *** ** ** |
|* ** * ** * ******** * ** |
| *** * ** * **** ** *** |
| ******* * ******* * *** * ******** |
| ** * ** * ** ******** ** |
| ** * ** ** ****** * ** *|
| * * ** * ** ** *|
| * * ** ** * *|
| ** * **** ** * |
| * * **** |
| * ** ** |
+-----------------------------------------------------------------------------------------------------------------+
*/
const uint16_t AKWF_granular_0040 [] = {
33516, 39027, 45008, 50264, 54915, 58518, 61191, 62712, 63319, 62904, 61786, 59958, 57753, 55165, 52490, 49732,
47116, 44604, 42332, 40285, 38522, 37001, 35765, 34777, 34032, 33496, 33133, 32921, 32806, 32774, 32765, 32765,
32706, 32583, 32332, 31942, 31356, 30564, 29525, 28228, 26634, 24762, 22590, 20157, 17495, 14645, 11703, 8781,
6011, 3577, 1638, 380, 0, 634, 2401, 5339, 9528, 14760, 20751, 27273, 33943, 40493, 46612, 51997,
56433, 59770, 61992, 63085, 63145, 62303, 60738, 58619, 56122, 53425, 50660, 47957, 45405, 43046, 40937, 39097,
37527, 36233, 35186, 34368, 33756, 33325, 33042, 32875, 32796, 32771, 32769, 32760, 32713, 32600, 32395, 32074,
31614, 30990, 30196, 29209, 28020, 26640, 25064, 23326, 21456, 19484, 17492, 15554, 13776, 12279, 11161, 10549,
10548, 11246, 12674, 14846, 17713, 21170, 25060, 29175, 33345, 37329, 40927, 43972, 46333, 47965, 48862, 49064,
48672, 47810, 46631, 45272, 43872, 42555, 41403, 40481, 39810, 39380, 39170, 39129, 39204, 39337, 39474, 39571,
39595, 39525, 39354, 39084, 38719, 38275, 37761, 37196, 36591, 35947, 35271, 34570, 33838, 33075, 32281, 31443,
30562, 29638, 28673, 27682, 26662, 25643, 24647, 23710, 22874, 22174, 21660, 21374, 21345, 21592, 22114, 22891,
23867, 24982, 26140, 27244, 28207, 28931, 29358, 29450, 29220, 28702, 27986, 27173, 26412, 25824, 25573, 25733,
26428, 27639, 29419, 31593, 34288, 37647, 40972, 44097, 46841, 49081, 50754, 51800, 52237, 52092, 51456, 50406,
49041, 47461, 45765, 44025, 42329, 40696, 39193, 37832, 36645, 35630, 34798, 34130, 33640, 33295, 33054, 32883,
32809, 32766, 32772, 32761, 32737, 32643, 32481, 32192, 31776, 31189, 30410, 29423, 28195, 26735, 25017, 23078,
20886, 18556, 16060, 13589, 11147, 8978, 7097, 5840, 5180, 5473, 6603, 8899, 12080, 16397, 21335, 27158,
};
|
8dfdb90ca8abfe2ccbfc3883bfd9cfc0a34970a6
|
7c857119fe1505b1d80d6e62969661c06dc1a2f4
|
/MdePkg/Include/Protocol/BlockIo2.h
|
a2868b9895d8eee33453a8e5bbcac47962f9eff3
|
[
"BSD-2-Clause"
] |
permissive
|
CloverHackyColor/CloverBootloader
|
7042ca7dd6b513d22be591a295e49071ae1482ee
|
2711170df4f60b2ae5aa20add3e00f35cf57b7e5
|
refs/heads/master
| 2023-08-30T22:14:34.590134
| 2023-08-27T19:14:02
| 2023-08-27T19:14:02
| 205,810,121
| 4,734
| 770
|
BSD-2-Clause
| 2023-09-03T12:41:33
| 2019-09-02T08:22:14
|
C
|
UTF-8
|
C
| false
| false
| 8,169
|
h
|
BlockIo2.h
|
/** @file
Block IO2 protocol as defined in the UEFI 2.3.1 specification.
The Block IO2 protocol defines an extension to the Block IO protocol which
enables the ability to read and write data at a block level in a non-blocking
manner.
Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#ifndef __BLOCK_IO2_H__
#define __BLOCK_IO2_H__
#include <Protocol/BlockIo.h>
#define EFI_BLOCK_IO2_PROTOCOL_GUID \
{ \
0xa77b2472, 0xe282, 0x4e9f, {0xa2, 0x45, 0xc2, 0xc0, 0xe2, 0x7b, 0xbc, 0xc1} \
}
typedef struct _EFI_BLOCK_IO2_PROTOCOL EFI_BLOCK_IO2_PROTOCOL;
/**
The struct of Block IO2 Token.
**/
typedef struct {
///
/// If Event is NULL, then blocking I/O is performed.If Event is not NULL and
/// non-blocking I/O is supported, then non-blocking I/O is performed, and
/// Event will be signaled when the read request is completed.
///
EFI_EVENT Event;
///
/// Defines whether or not the signaled event encountered an error.
///
EFI_STATUS TransactionStatus;
} EFI_BLOCK_IO2_TOKEN;
/**
Reset the block device hardware.
@param[in] This Indicates a pointer to the calling context.
@param[in] ExtendedVerification Indicates that the driver may perform a more
exhausive verification operation of the device
during reset.
@retval EFI_SUCCESS The device was reset.
@retval EFI_DEVICE_ERROR The device is not functioning properly and could
not be reset.
**/
typedef
EFI_STATUS
(EFIAPI *EFI_BLOCK_RESET_EX) (
IN EFI_BLOCK_IO2_PROTOCOL *This,
IN BOOLEAN ExtendedVerification
);
/**
Read BufferSize bytes from Lba into Buffer.
This function reads the requested number of blocks from the device. All the
blocks are read, or an error is returned.
If EFI_DEVICE_ERROR, EFI_NO_MEDIA,_or EFI_MEDIA_CHANGED is returned and
non-blocking I/O is being used, the Event associated with this request will
not be signaled.
@param[in] This Indicates a pointer to the calling context.
@param[in] MediaId Id of the media, changes every time the media is
replaced.
@param[in] Lba The starting Logical Block Address to read from.
@param[in, out] Token A pointer to the token associated with the transaction.
@param[in] BufferSize Size of Buffer, must be a multiple of device block size.
@param[out] Buffer A pointer to the destination buffer for the data. The
caller is responsible for either having implicit or
explicit ownership of the buffer.
@retval EFI_SUCCESS The read request was queued if Token->Event is
not NULL.The data was read correctly from the
device if the Token->Event is NULL.
@retval EFI_DEVICE_ERROR The device reported an error while performing
the read.
@retval EFI_NO_MEDIA There is no media in the device.
@retval EFI_MEDIA_CHANGED The MediaId is not for the current media.
@retval EFI_BAD_BUFFER_SIZE The BufferSize parameter is not a multiple of the
intrinsic block size of the device.
@retval EFI_INVALID_PARAMETER The read request contains LBAs that are not valid,
or the buffer is not on proper alignment.
@retval EFI_OUT_OF_RESOURCES The request could not be completed due to a lack
of resources.
**/
typedef
EFI_STATUS
(EFIAPI *EFI_BLOCK_READ_EX) (
IN EFI_BLOCK_IO2_PROTOCOL *This,
IN UINT32 MediaId,
IN EFI_LBA LBA,
IN OUT EFI_BLOCK_IO2_TOKEN *Token,
IN UINTN BufferSize,
OUT VOID *Buffer
);
/**
Write BufferSize bytes from Lba into Buffer.
This function writes the requested number of blocks to the device. All blocks
are written, or an error is returned.If EFI_DEVICE_ERROR, EFI_NO_MEDIA,
EFI_WRITE_PROTECTED or EFI_MEDIA_CHANGED is returned and non-blocking I/O is
being used, the Event associated with this request will not be signaled.
@param[in] This Indicates a pointer to the calling context.
@param[in] MediaId The media ID that the write request is for.
@param[in] Lba The starting logical block address to be written. The
caller is responsible for writing to only legitimate
locations.
@param[in, out] Token A pointer to the token associated with the transaction.
@param[in] BufferSize Size of Buffer, must be a multiple of device block size.
@param[in] Buffer A pointer to the source buffer for the data.
@retval EFI_SUCCESS The write request was queued if Event is not NULL.
The data was written correctly to the device if
the Event is NULL.
@retval EFI_WRITE_PROTECTED The device can not be written to.
@retval EFI_NO_MEDIA There is no media in the device.
@retval EFI_MEDIA_CHNAGED The MediaId does not matched the current device.
@retval EFI_DEVICE_ERROR The device reported an error while performing the write.
@retval EFI_BAD_BUFFER_SIZE The Buffer was not a multiple of the block size of the device.
@retval EFI_INVALID_PARAMETER The write request contains LBAs that are not valid,
or the buffer is not on proper alignment.
@retval EFI_OUT_OF_RESOURCES The request could not be completed due to a lack
of resources.
**/
typedef
EFI_STATUS
(EFIAPI *EFI_BLOCK_WRITE_EX) (
IN EFI_BLOCK_IO2_PROTOCOL *This,
IN UINT32 MediaId,
IN EFI_LBA LBA,
IN OUT EFI_BLOCK_IO2_TOKEN *Token,
IN UINTN BufferSize,
IN VOID *Buffer
);
/**
Flush the Block Device.
If EFI_DEVICE_ERROR, EFI_NO_MEDIA,_EFI_WRITE_PROTECTED or EFI_MEDIA_CHANGED
is returned and non-blocking I/O is being used, the Event associated with
this request will not be signaled.
@param[in] This Indicates a pointer to the calling context.
@param[in,out] Token A pointer to the token associated with the transaction
@retval EFI_SUCCESS The flush request was queued if Event is not NULL.
All outstanding data was written correctly to the
device if the Event is NULL.
@retval EFI_DEVICE_ERROR The device reported an error while writting back
the data.
@retval EFI_WRITE_PROTECTED The device cannot be written to.
@retval EFI_NO_MEDIA There is no media in the device.
@retval EFI_MEDIA_CHANGED The MediaId is not for the current media.
@retval EFI_OUT_OF_RESOURCES The request could not be completed due to a lack
of resources.
**/
typedef
EFI_STATUS
(EFIAPI *EFI_BLOCK_FLUSH_EX) (
IN EFI_BLOCK_IO2_PROTOCOL *This,
IN OUT EFI_BLOCK_IO2_TOKEN *Token
);
///
/// The Block I/O2 protocol defines an extension to the Block I/O protocol which
/// enables the ability to read and write data at a block level in a non-blocking
// manner.
///
struct _EFI_BLOCK_IO2_PROTOCOL {
///
/// A pointer to the EFI_BLOCK_IO_MEDIA data for this device.
/// Type EFI_BLOCK_IO_MEDIA is defined in BlockIo.h.
///
EFI_BLOCK_IO_MEDIA *Media;
EFI_BLOCK_RESET_EX Reset;
EFI_BLOCK_READ_EX ReadBlocksEx;
EFI_BLOCK_WRITE_EX WriteBlocksEx;
EFI_BLOCK_FLUSH_EX FlushBlocksEx;
};
extern EFI_GUID gEfiBlockIo2ProtocolGuid;
#endif
|
252937f15ea17d1d0085ae9d5e453712c5d54385
|
d7121e03910c4b3aaf4ed470c33c5dab67ffa962
|
/iPhoneOS14.5.sdk/usr/include/AppleArchive/AAByteStream.h
|
35abcae152c890e3f378616330f04580146bf8d5
|
[
"MIT"
] |
permissive
|
theos/sdks
|
129eda2d399c209aa36fcc2e266e960ac6c91cf6
|
bb425abf3acae8eac328b828628b82df544d2774
|
refs/heads/master
| 2023-08-28T13:01:04.995109
| 2022-12-24T01:06:07
| 2022-12-24T01:06:07
| 66,124,251
| 517
| 199
|
NOASSERTION
| 2022-12-24T01:06:08
| 2016-08-20T02:36:04
|
C
|
UTF-8
|
C
| false
| false
| 11,166
|
h
|
AAByteStream.h
|
// AppleArchive byte streams
#pragma once
#ifndef __APPLE_ARCHIVE_H
#error Include AppleArchive.h instead of this file
#endif
#if __has_feature(assume_nonnull)
_Pragma("clang assume_nonnull begin")
#endif
#ifdef __cplusplus
extern "C" {
#endif // __cplusplus
#pragma mark - Stream functions
/*!
@abstract Sequential write
@param s ByteStream
@param buf provides the bytes to write
@param nbyte number of bytes to write
@return number of bytes written on success, and a negative error code on failure or if \p write is not implemented
*/
APPLE_ARCHIVE_API ssize_t AAByteStreamWrite(
AAByteStream s,
const void * buf,
size_t nbyte)
APPLE_ARCHIVE_AVAILABLE(macos(11.0), ios(14.0), watchos(7.0), tvos(14.0));
/*!
@abstract Random-access write
@param s ByteStream
@param buf provides the bytes to write
@param nbyte number of bytes to write
@param offset write location in stream
@return number of bytes written on success, and a negative error code on failure or if \p pwrite is not implemented
*/
APPLE_ARCHIVE_API ssize_t AAByteStreamPWrite(
AAByteStream s,
const void * buf,
size_t nbyte,
off_t offset)
APPLE_ARCHIVE_AVAILABLE(macos(11.0), ios(14.0), watchos(7.0), tvos(14.0));
/*!
@abstract Sequential read
@param s ByteStream
@param buf receives the bytes to read
@param nbyte number of bytes to read
@return number of bytes read on success, and a negative error code on failure or if \p read is not implemented
*/
APPLE_ARCHIVE_API ssize_t AAByteStreamRead(
AAByteStream s,
void * buf,
size_t nbyte)
APPLE_ARCHIVE_AVAILABLE(macos(11.0), ios(14.0), watchos(7.0), tvos(14.0));
/*!
@abstract Random-access read
@param s ByteStream
@param buf receives the bytes to read
@param nbyte number of bytes to read
@param offset read location in stream
@return number of bytes read on success, and a negative error code on failure or if \p pread is not implemented
*/
APPLE_ARCHIVE_API ssize_t AAByteStreamPRead(
AAByteStream s,
void * buf,
size_t nbyte,
off_t offset)
APPLE_ARCHIVE_AVAILABLE(macos(11.0), ios(14.0), watchos(7.0), tvos(14.0));
/*!
@abstract Seek
@discussion
Set internal stream position to \p offset, relative to \p whence, one of SEEK_SET, SEEK_CUR, SEEK_END
@param s ByteStream
@param offset new location relative to origin
@param whence origin
@return the new stream position on success, relative to the beginning of the stream, and a negative value on failure
*/
APPLE_ARCHIVE_API off_t AAByteStreamSeek(
AAByteStream s,
off_t offset,
int whence)
APPLE_ARCHIVE_AVAILABLE(macos(11.0), ios(14.0), watchos(7.0), tvos(14.0));
/*!
@abstract Cancel, the stream still needs to be closed
@discussion Asynchronous cancellation. Subsequent calls to the stream are expected to fail.
@param s ByteStream
*/
APPLE_ARCHIVE_API void AAByteStreamCancel(
AAByteStream s)
APPLE_ARCHIVE_AVAILABLE(macos(11.0), ios(14.0), watchos(7.0), tvos(14.0));
/*!
@abstract Close stream
@discussion Destroy the stream and release all resources. The stream handle becomes invalid after this call.
@param s ByteStream, ignored if NULL
@return 0 on success, a negative value on failure
*/
APPLE_ARCHIVE_API int AAByteStreamClose(
AAByteStream _Nullable s)
APPLE_ARCHIVE_AVAILABLE(macos(11.0), ios(14.0), watchos(7.0), tvos(14.0));
#pragma mark - Stream objects
/*!
@abstract Create file stream with an open file descriptor
@discussion
All calls are directly mapped to the read, write, etc. system calls.
@param fd is the opened file descriptor
@param automatic_close if not 0, we'll close(fd) when the stream is closed
@return a new stream instance on success, and NULL on failure
*/
APPLE_ARCHIVE_API AAByteStream _Nullable AAFileStreamOpenWithFD(
int fd,
int automatic_close)
APPLE_ARCHIVE_AVAILABLE(macos(11.0), ios(14.0), watchos(7.0), tvos(14.0));
/*!
@abstract Open a new file descriptor and create file stream
@discussion
The file is opened with open(path, open_flags, open_mode).
All calls are directly mapped to the read, write, etc. system calls.
We will call close(fd) when the stream is destroyed.
@param path is the file to open
@param open_flags are the flags passed to open(2)
@param open_mode is the creation mode passed to open(2)
@return a new stream instance on success, and NULL on failure
*/
APPLE_ARCHIVE_API AAByteStream _Nullable AAFileStreamOpenWithPath(
const char * path,
int open_flags,
mode_t open_mode)
APPLE_ARCHIVE_AVAILABLE(macos(11.0), ios(14.0), watchos(7.0), tvos(14.0));
/*!
@abstract Create a block compression (pbz*) sequential output stream
@discussion This stream is write-only, and supports only sequential writes.
pwrite, read, pread, seek are not implemented.
\p compressed_stream must implement \p write.
@param compressed_stream is the output stream receiving the compressed data
@param compression_algorithm is the compression algorithm to use
@param block_size is the compression block size (bytes)
@param flags stream flags
@param n_threads is the number of worker threads, 0 for default
@return a new stream instance on success, and NULL on failure
*/
APPLE_ARCHIVE_API AAByteStream _Nullable AACompressionOutputStreamOpen(
AAByteStream compressed_stream,
AACompressionAlgorithm compression_algorithm,
size_t block_size,
AAFlagSet flags,
int n_threads)
APPLE_ARCHIVE_AVAILABLE(macos(11.0), ios(14.0), watchos(7.0), tvos(14.0));
/*!
@abstract Create a block compression (pbz*) sequential output stream appending data to an
existing block compression stream
@discussion This stream is write-only, and supports only sequential writes.
pwrite, read, pread, seek are not implemented. Data is appended to the existing stream.
If smaller than block size, the last block in the existing stream will be modified to add incoming data.
\p compressed_stream must implement \p pread, \p seek, and \p write.
The returned stream MUST be closed before \p compressed_stream
@param compressed_stream is the output stream providing/receiving the compressed data
@param flags stream flags
@param n_threads is the number of worker threads, 0 for default
@return a new stream instance on success, and NULL on failure
*/
APPLE_ARCHIVE_API AAByteStream _Nullable AACompressionOutputStreamOpenExisting(
AAByteStream compressed_stream,
AAFlagSet flags,
int n_threads)
APPLE_ARCHIVE_AVAILABLE(macos(11.0), ios(14.0), watchos(7.0), tvos(14.0));
/*!
@abstract Create a decompression sequential input stream
@description
A few bytes of the input will be read by this function, to identify the compression used.
It recognizes block compression (pbz*), LZFSE and LZ4 frames as generated by the
Compression library, zlib, gzip, bzip2, and xz.
If none of these compression formats can be identified, a copy stream is created, directly relaying the input data.
This stream is read-only, and supports only sequential reads.
pread, write, pwrite, seek are not implemented.
The returned stream MUST be closed before \p compressed_stream
@param compressed_stream is the input stream providing the compressed data, only read is called
@param flags stream flags
@param n_threads is the number of worker threads (used only for block compression), 0 for default
@return a new stream instance on success, and NULL on failure
*/
APPLE_ARCHIVE_API AAByteStream _Nullable AADecompressionInputStreamOpen(
AAByteStream compressed_stream,
AAFlagSet flags,
int n_threads)
APPLE_ARCHIVE_AVAILABLE(macos(11.0), ios(14.0), watchos(7.0), tvos(14.0));
/*!
@abstract Create a decompression random access input stream
@description
The input stream MUST use the block compression format (pbz*).
The size specified in \p alloc_limit is the requested limit for memory allocation. Depending on the
block size and compressor algorithm, we may have to allocate more memory in some cases. Increasing this value
allows more blocks to be cached, and increases performance. Set it to 0 to request minimal allocation, and to
SIZE_MAX to request best performance.
This stream is read-only and supports random access reads.
write and pwrite are not implemented, but read, pread and seek are.
The returned stream MUST be closed before \p compressed_stream
@param compressed_stream is the input stream providing the compressed data, only pread and seek are called
@param alloc_limit is the requested max memory allocation size
@param flags stream flags
@param n_threads is the number of worker threads (used only for block compression), 0 for default
@return a new stream instance on success, and NULL on failure
*/
APPLE_ARCHIVE_API AAByteStream _Nullable AADecompressionRandomAccessInputStreamOpen(
AAByteStream compressed_stream,
size_t alloc_limit,
AAFlagSet flags,
int n_threads)
APPLE_ARCHIVE_AVAILABLE(macos(11.0), ios(14.0), watchos(7.0), tvos(14.0));
/*!
@abstract Open a new temporary file descriptor and create a file stream
@discussion
The file is created with mkstemp(3) in \p /tmp.
All calls are directly mapped to the read, write, etc. system calls.
We will close and unlink the file when the stream is destroyed.
@return a new stream instance on success, and NULL on failure
*/
APPLE_ARCHIVE_API AAByteStream _Nullable AATempFileStreamOpen(void)
APPLE_ARCHIVE_AVAILABLE(macos(11.0), ios(14.0), watchos(7.0), tvos(14.0));
/*!
@abstract Create a shared buffer and associated pair of stream streams
@discussion
This shared buffer allows data buffering between two threads. The writer thread writes to the buffer
through \p ostream and blocks when full, and the reader thread reads from the buffer through \p istream
and blocks when empty.
If \p ostream receives a write call with nbyte=0, it is considered EOF, and after all data is
read, further reads on \p istream will return 0.
@param ostream is initialized with a new sequential write stream, writing data to the buffer
@param istream is initialized with a new sequential read stream, reading data from the buffer
@param buffer_capacity is the size to allocate for the buffer (bytes)
@return 0 and set both streams to new instances on success, return a negative error code and set both streams to NULL on failure
*/
APPLE_ARCHIVE_API int AASharedBufferPipeOpen(
AAByteStream _Nonnull * _Nullable ostream,
AAByteStream _Nonnull * _Nullable istream,
size_t buffer_capacity)
APPLE_ARCHIVE_AVAILABLE(macos(11.0), ios(14.0), watchos(7.0), tvos(14.0));
#pragma mark - Process an byte stream
/**
@abstract Process all data of a stream
@discussion Read all bytes from \p istream, and write them to \p ostream.
@param istream input byte stream
@param ostream output byte stream
@return number of bytes transferred on success, and a negative error code on failure
*/
APPLE_ARCHIVE_API off_t AAByteStreamProcess(
AAByteStream istream,
AAByteStream ostream)
APPLE_ARCHIVE_AVAILABLE(macos(11.0), ios(14.0), watchos(7.0), tvos(14.0));
#ifdef __cplusplus
}
#endif // __cplusplus
#if __has_feature(assume_nonnull)
_Pragma("clang assume_nonnull end")
#endif
|
25f8bc4e7973e698e4b91db409bd522079d3fbe1
|
de21f9075f55640514c29ef0f1fe3f0690845764
|
/regression/contracts-dfcc/assigns_enforce_arrays_02/main.c
|
59f8aa213b5178e95ec0b96a08ced7c73afffa48
|
[
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference",
"BSD-4-Clause"
] |
permissive
|
diffblue/cbmc
|
975a074ac445febb3b5715f8792beb545522dc18
|
decd2839c2f51a54b2ad0f3e89fdc1b4bf78cd16
|
refs/heads/develop
| 2023-08-31T05:52:05.342195
| 2023-08-30T13:31:51
| 2023-08-30T13:31:51
| 51,877,056
| 589
| 309
|
NOASSERTION
| 2023-09-14T18:49:17
| 2016-02-16T23:03:52
|
C++
|
UTF-8
|
C
| false
| false
| 341
|
c
|
main.c
|
#include <assert.h>
#include <stdlib.h>
int *arr;
void f1(int *a, int len) __CPROVER_assigns(*a)
{
a[0] = 0;
a[5] = 5;
}
void f2(int *a, int len) __CPROVER_assigns(__CPROVER_object_whole(a))
__CPROVER_frees(a)
{
a[0] = 0;
a[5] = 5;
free(a);
}
int main()
{
arr = malloc(100 * sizeof(int));
f1(arr, 100);
f2(arr, 100);
}
|
c4dae509819c2b495d24c834a80d06a69957808f
|
e1cddfd754d952134e72dfd03522c5ea4fb6008e
|
/src/vnet/devices/virtio/pci.c
|
85e6abdbbe56fd7608ff713bb9ece55cbffc1c97
|
[
"Apache-2.0"
] |
permissive
|
FDio/vpp
|
0ad30fa1bec2975ffa6b66b45c9f4f32163123b6
|
f234b0d4626d7e686422cc9dfd25958584f4931e
|
refs/heads/master
| 2023-08-31T16:09:04.068646
| 2022-03-14T09:49:15
| 2023-08-31T09:50:00
| 96,556,718
| 1,048
| 630
|
Apache-2.0
| 2023-06-21T05:39:17
| 2017-07-07T16:29:40
|
C
|
UTF-8
|
C
| false
| false
| 46,330
|
c
|
pci.c
|
/*
* Copyright (c) 2018 Cisco and/or its affiliates.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <fcntl.h>
#include <sys/ioctl.h>
#include <vppinfra/types.h>
#include <vlib/vlib.h>
#include <vlib/pci/pci.h>
#include <vnet/ethernet/ethernet.h>
#include <vnet/ip/ip4_packet.h>
#include <vnet/ip/ip6_packet.h>
#include <vnet/devices/virtio/virtio.h>
#include <vnet/devices/virtio/pci.h>
#include <vnet/interface/rx_queue_funcs.h>
#define PCI_VENDOR_ID_VIRTIO 0x1af4
#define PCI_DEVICE_ID_VIRTIO_NIC 0x1000
/* Doesn't support modern device */
#define PCI_DEVICE_ID_VIRTIO_NIC_MODERN 0x1041
#define PCI_CAPABILITY_LIST 0x34
#define PCI_CAP_ID_VNDR 0x09
#define PCI_CAP_ID_MSIX 0x11
#define PCI_MSIX_ENABLE 0x8000
static pci_device_id_t virtio_pci_device_ids[] = {
{
.vendor_id = PCI_VENDOR_ID_VIRTIO,
.device_id = PCI_DEVICE_ID_VIRTIO_NIC},
{
.vendor_id = PCI_VENDOR_ID_VIRTIO,
.device_id = PCI_DEVICE_ID_VIRTIO_NIC_MODERN},
{0},
};
static u32
virtio_pci_flag_change (vnet_main_t * vnm, vnet_hw_interface_t * hw,
u32 flags)
{
return 0;
}
static clib_error_t *
virtio_pci_get_max_virtqueue_pairs (vlib_main_t * vm, virtio_if_t * vif)
{
clib_error_t *error = 0;
u16 max_queue_pairs = 1;
if (vif->features & VIRTIO_FEATURE (VIRTIO_NET_F_MQ))
{
max_queue_pairs = vif->virtio_pci_func->get_max_queue_pairs (vm, vif);
}
virtio_log_debug (vif, "max queue pair is %x", max_queue_pairs);
if (max_queue_pairs < 1 || max_queue_pairs > 0x8000)
return clib_error_return (error, "max queue pair is %x,"
" should be in range [1, 0x8000]",
max_queue_pairs);
vif->max_queue_pairs = max_queue_pairs;
return error;
}
static void
virtio_pci_set_mac (vlib_main_t * vm, virtio_if_t * vif)
{
if (vif->features & VIRTIO_FEATURE (VIRTIO_NET_F_MAC))
vif->virtio_pci_func->set_mac (vm, vif);
}
static u32
virtio_pci_get_mac (vlib_main_t * vm, virtio_if_t * vif)
{
if (vif->features & VIRTIO_FEATURE (VIRTIO_NET_F_MAC))
{
vif->virtio_pci_func->get_mac (vm, vif);
return 0;
}
return 1;
}
static u16
virtio_pci_is_link_up (vlib_main_t * vm, virtio_if_t * vif)
{
/*
* Minimal driver: assumes link is up
*/
u16 status = 1;
if (vif->features & VIRTIO_FEATURE (VIRTIO_NET_F_STATUS))
status = vif->virtio_pci_func->get_device_status (vm, vif);
return status;
}
static void
virtio_pci_irq_queue_handler (vlib_main_t * vm, vlib_pci_dev_handle_t h,
u16 line)
{
vnet_main_t *vnm = vnet_get_main ();
virtio_main_t *vim = &virtio_main;
uword pd = vlib_pci_get_private_data (vm, h);
virtio_if_t *vif = pool_elt_at_index (vim->interfaces, pd);
line--;
u16 qid = line;
vnet_virtio_vring_t *vring = vec_elt_at_index (vif->rxq_vrings, qid);
vnet_hw_if_rx_queue_set_int_pending (vnm, vring->queue_index);
}
static void
virtio_pci_irq_config_handler (vlib_main_t * vm, vlib_pci_dev_handle_t h,
u16 line)
{
vnet_main_t *vnm = vnet_get_main ();
virtio_main_t *vim = &virtio_main;
uword pd = vlib_pci_get_private_data (vm, h);
virtio_if_t *vif = pool_elt_at_index (vim->interfaces, pd);
if (virtio_pci_is_link_up (vm, vif) & VIRTIO_NET_S_LINK_UP)
{
vnet_hw_interface_set_flags (vnm, vif->hw_if_index,
VNET_HW_INTERFACE_FLAG_LINK_UP);
}
else
{
vnet_hw_interface_set_flags (vnm, vif->hw_if_index, 0);
}
}
static void
virtio_pci_irq_handler (vlib_main_t * vm, vlib_pci_dev_handle_t h)
{
virtio_main_t *vim = &virtio_main;
uword pd = vlib_pci_get_private_data (vm, h);
virtio_if_t *vif = pool_elt_at_index (vim->interfaces, pd);
u8 isr = 0;
u16 line = 0;
isr = vif->virtio_pci_func->get_isr (vm, vif);
/*
* If the lower bit is set: look through the used rings of
* all virtqueues for the device, to see if any progress has
* been made by the device which requires servicing.
*/
if (isr & VIRTIO_PCI_ISR_INTR)
{
for (; line < vif->num_rxqs; line++)
virtio_pci_irq_queue_handler (vm, h, (line + 1));
}
if (isr & VIRTIO_PCI_ISR_CONFIG)
virtio_pci_irq_config_handler (vm, h, line);
}
inline void
device_status (vlib_main_t * vm, virtio_if_t * vif)
{
struct status_struct
{
u8 bit;
char *str;
};
struct status_struct *status_entry;
static struct status_struct status_array[] = {
#define _(s,b) { .str = #s, .bit = b, },
foreach_virtio_config_status_flags
#undef _
{.str = NULL}
};
vlib_cli_output (vm, " status 0x%x", vif->status);
status_entry = (struct status_struct *) &status_array;
while (status_entry->str)
{
if (vif->status & status_entry->bit)
vlib_cli_output (vm, " %s (%x)", status_entry->str,
status_entry->bit);
status_entry++;
}
}
static int
virtio_pci_send_ctrl_msg_packed (vlib_main_t * vm, virtio_if_t * vif,
virtio_ctrl_msg_t * data, u32 len)
{
vnet_virtio_vring_t *vring = vif->cxq_vring;
virtio_net_ctrl_ack_t status = VIRTIO_NET_ERR;
virtio_ctrl_msg_t result;
u32 buffer_index;
vlib_buffer_t *b;
u16 used, next;
u16 sz = vring->queue_size;
u16 flags = 0, first_desc_flags = 0;
used = vring->desc_in_use;
next = vring->desc_next;
vnet_virtio_vring_packed_desc_t *d = &vring->packed_desc[next];
if (vlib_buffer_alloc (vm, &buffer_index, 1))
b = vlib_get_buffer (vm, buffer_index);
else
return VIRTIO_NET_ERR;
/*
* current_data may not be initialized with 0 and may contain
* previous offset.
*/
b->current_data = 0;
clib_memcpy (vlib_buffer_get_current (b), data, sizeof (virtio_ctrl_msg_t));
first_desc_flags = VRING_DESC_F_NEXT;
if (vring->avail_wrap_counter)
{
first_desc_flags |= VRING_DESC_F_AVAIL;
first_desc_flags &= ~VRING_DESC_F_USED;
}
else
{
first_desc_flags &= ~VRING_DESC_F_AVAIL;
first_desc_flags |= VRING_DESC_F_USED;
}
d->addr = vlib_buffer_get_current_pa (vm, b);
d->len = sizeof (virtio_net_ctrl_hdr_t);
d->id = next;
next++;
if (next >= sz)
{
next = 0;
vring->avail_wrap_counter ^= 1;
}
used++;
d = &vring->packed_desc[next];
flags = VRING_DESC_F_NEXT;
if (vring->avail_wrap_counter)
{
flags |= VRING_DESC_F_AVAIL;
flags &= ~VRING_DESC_F_USED;
}
else
{
flags &= ~VRING_DESC_F_AVAIL;
flags |= VRING_DESC_F_USED;
}
d->addr = vlib_buffer_get_current_pa (vm, b) +
STRUCT_OFFSET_OF (virtio_ctrl_msg_t, data);
d->len = len;
d->id = next;
d->flags = flags;
next++;
if (next >= sz)
{
next = 0;
vring->avail_wrap_counter ^= 1;
}
used++;
d = &vring->packed_desc[next];
flags = VRING_DESC_F_WRITE;
if (vring->avail_wrap_counter)
{
flags |= VRING_DESC_F_AVAIL;
flags &= ~VRING_DESC_F_USED;
}
else
{
flags &= ~VRING_DESC_F_AVAIL;
flags |= VRING_DESC_F_USED;
}
d->addr = vlib_buffer_get_current_pa (vm, b) +
STRUCT_OFFSET_OF (virtio_ctrl_msg_t, status);
d->len = sizeof (data->status);
d->id = next;
d->flags = flags;
next++;
if (next >= sz)
{
next = 0;
vring->avail_wrap_counter ^= 1;
}
used++;
CLIB_MEMORY_STORE_BARRIER ();
vring->packed_desc[vring->desc_next].flags = first_desc_flags;
vring->desc_next = next;
vring->desc_in_use = used;
CLIB_MEMORY_BARRIER ();
if (vring->device_event->flags != VRING_EVENT_F_DISABLE)
{
virtio_kick (vm, vring, vif);
}
u16 last = vring->last_used_idx;
d = &vring->packed_desc[last];
do
{
flags = d->flags;
}
while ((flags & VRING_DESC_F_AVAIL) != (vring->used_wrap_counter << 7)
|| (flags & VRING_DESC_F_USED) != (vring->used_wrap_counter << 15));
last += 3;
if (last >= vring->queue_size)
{
last = last - vring->queue_size;
vring->used_wrap_counter ^= 1;
}
vring->desc_in_use -= 3;
vring->last_used_idx = last;
CLIB_MEMORY_BARRIER ();
clib_memcpy (&result, vlib_buffer_get_current (b),
sizeof (virtio_ctrl_msg_t));
virtio_log_debug (vif, "ctrl-queue: status %u", result.status);
status = result.status;
vlib_buffer_free (vm, &buffer_index, 1);
return status;
}
static int
virtio_pci_send_ctrl_msg_split (vlib_main_t * vm, virtio_if_t * vif,
virtio_ctrl_msg_t * data, u32 len)
{
vnet_virtio_vring_t *vring = vif->cxq_vring;
virtio_net_ctrl_ack_t status = VIRTIO_NET_ERR;
virtio_ctrl_msg_t result;
u32 buffer_index;
vlib_buffer_t *b;
u16 used, next, avail;
u16 sz = vring->queue_size;
u16 mask = sz - 1;
used = vring->desc_in_use;
next = vring->desc_next;
avail = vring->avail->idx;
vnet_virtio_vring_desc_t *d = &vring->desc[next];
if (vlib_buffer_alloc (vm, &buffer_index, 1))
b = vlib_get_buffer (vm, buffer_index);
else
return VIRTIO_NET_ERR;
/*
* current_data may not be initialized with 0 and may contain
* previous offset.
*/
b->current_data = 0;
clib_memcpy (vlib_buffer_get_current (b), data, sizeof (virtio_ctrl_msg_t));
d->flags = VRING_DESC_F_NEXT;
d->addr = vlib_buffer_get_current_pa (vm, b);
d->len = sizeof (virtio_net_ctrl_hdr_t);
vring->avail->ring[avail & mask] = next;
avail++;
next = (next + 1) & mask;
d->next = next;
used++;
d = &vring->desc[next];
d->flags = VRING_DESC_F_NEXT;
d->addr = vlib_buffer_get_current_pa (vm, b) +
STRUCT_OFFSET_OF (virtio_ctrl_msg_t, data);
d->len = len;
next = (next + 1) & mask;
d->next = next;
used++;
d = &vring->desc[next];
d->flags = VRING_DESC_F_WRITE;
d->addr = vlib_buffer_get_current_pa (vm, b) +
STRUCT_OFFSET_OF (virtio_ctrl_msg_t, status);
d->len = sizeof (data->status);
next = (next + 1) & mask;
used++;
CLIB_MEMORY_STORE_BARRIER ();
vring->avail->idx = avail;
vring->desc_next = next;
vring->desc_in_use = used;
if ((vring->used->flags & VIRTIO_RING_FLAG_MASK_INT) == 0)
{
virtio_kick (vm, vring, vif);
}
u16 last = vring->last_used_idx, n_left = 0;
n_left = vring->used->idx - last;
while (n_left)
{
vnet_virtio_vring_used_elem_t *e = &vring->used->ring[last & mask];
u16 slot = e->id;
d = &vring->desc[slot];
while (d->flags & VRING_DESC_F_NEXT)
{
used--;
slot = d->next;
d = &vring->desc[slot];
}
used--;
last++;
n_left--;
}
vring->desc_in_use = used;
vring->last_used_idx = last;
CLIB_MEMORY_BARRIER ();
clib_memcpy (&result, vlib_buffer_get_current (b),
sizeof (virtio_ctrl_msg_t));
virtio_log_debug (vif, "ctrl-queue: status %u", result.status);
status = result.status;
vlib_buffer_free (vm, &buffer_index, 1);
return status;
}
static int
virtio_pci_send_ctrl_msg (vlib_main_t * vm, virtio_if_t * vif,
virtio_ctrl_msg_t * data, u32 len)
{
if (vif->is_packed)
return virtio_pci_send_ctrl_msg_packed (vm, vif, data, len);
else
return virtio_pci_send_ctrl_msg_split (vm, vif, data, len);
}
static int
virtio_pci_disable_offload (vlib_main_t * vm, virtio_if_t * vif)
{
virtio_ctrl_msg_t offload_hdr;
virtio_net_ctrl_ack_t status = VIRTIO_NET_ERR;
offload_hdr.ctrl.class = VIRTIO_NET_CTRL_GUEST_OFFLOADS;
offload_hdr.ctrl.cmd = VIRTIO_NET_CTRL_GUEST_OFFLOADS_SET;
offload_hdr.status = VIRTIO_NET_ERR;
u64 offloads = 0ULL;
clib_memcpy (offload_hdr.data, &offloads, sizeof (offloads));
status =
virtio_pci_send_ctrl_msg (vm, vif, &offload_hdr, sizeof (offloads));
virtio_log_debug (vif, "disable offloads");
vif->remote_features = vif->virtio_pci_func->get_device_features (vm, vif);
vif->virtio_pci_func->get_driver_features (vm, vif);
return status;
}
static int
virtio_pci_enable_checksum_offload (vlib_main_t * vm, virtio_if_t * vif)
{
virtio_ctrl_msg_t csum_offload_hdr;
virtio_net_ctrl_ack_t status = VIRTIO_NET_ERR;
csum_offload_hdr.ctrl.class = VIRTIO_NET_CTRL_GUEST_OFFLOADS;
csum_offload_hdr.ctrl.cmd = VIRTIO_NET_CTRL_GUEST_OFFLOADS_SET;
csum_offload_hdr.status = VIRTIO_NET_ERR;
u64 offloads = 0ULL;
offloads |= VIRTIO_FEATURE (VIRTIO_NET_F_GUEST_CSUM);
clib_memcpy (csum_offload_hdr.data, &offloads, sizeof (offloads));
status =
virtio_pci_send_ctrl_msg (vm, vif, &csum_offload_hdr, sizeof (offloads));
virtio_log_debug (vif, "enable checksum offload");
vif->remote_features = vif->virtio_pci_func->get_device_features (vm, vif);
vif->features = vif->virtio_pci_func->get_driver_features (vm, vif);
return status;
}
static int
virtio_pci_enable_gso (vlib_main_t * vm, virtio_if_t * vif)
{
virtio_ctrl_msg_t gso_hdr;
virtio_net_ctrl_ack_t status = VIRTIO_NET_ERR;
gso_hdr.ctrl.class = VIRTIO_NET_CTRL_GUEST_OFFLOADS;
gso_hdr.ctrl.cmd = VIRTIO_NET_CTRL_GUEST_OFFLOADS_SET;
gso_hdr.status = VIRTIO_NET_ERR;
u64 offloads = VIRTIO_FEATURE (VIRTIO_NET_F_GUEST_CSUM)
| VIRTIO_FEATURE (VIRTIO_NET_F_GUEST_TSO4)
| VIRTIO_FEATURE (VIRTIO_NET_F_GUEST_TSO6);
clib_memcpy (gso_hdr.data, &offloads, sizeof (offloads));
status = virtio_pci_send_ctrl_msg (vm, vif, &gso_hdr, sizeof (offloads));
virtio_log_debug (vif, "enable gso");
vif->remote_features = vif->virtio_pci_func->get_device_features (vm, vif);
vif->virtio_pci_func->get_driver_features (vm, vif);
return status;
}
static int
virtio_pci_offloads (vlib_main_t * vm, virtio_if_t * vif, int gso_enabled,
int csum_offload_enabled)
{
vnet_main_t *vnm = vnet_get_main ();
vnet_hw_if_caps_change_t cc = {};
if ((vif->features & VIRTIO_FEATURE (VIRTIO_NET_F_CTRL_VQ)) &&
(vif->features & VIRTIO_FEATURE (VIRTIO_NET_F_CTRL_GUEST_OFFLOADS)))
{
if (gso_enabled
&& (vif->features & (VIRTIO_FEATURE (VIRTIO_NET_F_HOST_TSO4) |
VIRTIO_FEATURE (VIRTIO_NET_F_HOST_TSO6))))
{
if (virtio_pci_enable_gso (vm, vif))
{
virtio_log_warning (vif, "gso is not enabled");
}
else
{
vif->gso_enabled = 1;
vif->csum_offload_enabled = 1;
cc.val = cc.mask = VNET_HW_IF_CAP_TCP_GSO |
VNET_HW_IF_CAP_TX_TCP_CKSUM |
VNET_HW_IF_CAP_TX_UDP_CKSUM;
}
}
else if (csum_offload_enabled
&& (vif->features & VIRTIO_FEATURE (VIRTIO_NET_F_CSUM)))
{
if (virtio_pci_enable_checksum_offload (vm, vif))
{
virtio_log_warning (vif, "checksum offload is not enabled");
}
else
{
vif->csum_offload_enabled = 1;
vif->gso_enabled = 0;
cc.val =
VNET_HW_IF_CAP_TX_TCP_CKSUM | VNET_HW_IF_CAP_TX_UDP_CKSUM;
cc.mask = VNET_HW_IF_CAP_TCP_GSO | VNET_HW_IF_CAP_TX_TCP_CKSUM |
VNET_HW_IF_CAP_TX_UDP_CKSUM;
}
}
else
{
if (virtio_pci_disable_offload (vm, vif))
{
virtio_log_warning (vif, "offloads are not disabled");
}
else
{
vif->csum_offload_enabled = 0;
vif->gso_enabled = 0;
cc.val = 0;
cc.mask = VNET_HW_IF_CAP_L4_TX_CKSUM | VNET_HW_IF_CAP_TCP_GSO;
}
}
}
if (cc.mask)
vnet_hw_if_change_caps (vnm, vif->hw_if_index, &cc);
return 0;
}
static int
virtio_pci_enable_multiqueue (vlib_main_t * vm, virtio_if_t * vif,
u16 num_queues)
{
virtio_ctrl_msg_t mq_hdr;
virtio_net_ctrl_ack_t status = VIRTIO_NET_ERR;
mq_hdr.ctrl.class = VIRTIO_NET_CTRL_MQ;
mq_hdr.ctrl.cmd = VIRTIO_NET_CTRL_MQ_VQ_PAIRS_SET;
mq_hdr.status = VIRTIO_NET_ERR;
clib_memcpy (mq_hdr.data, &num_queues, sizeof (num_queues));
status = virtio_pci_send_ctrl_msg (vm, vif, &mq_hdr, sizeof (num_queues));
virtio_log_debug (vif, "multi-queue enable %u queues", num_queues);
return status;
}
static u8
virtio_pci_queue_size_valid (u16 qsz)
{
if (qsz < 64 || qsz > 4096)
return 0;
if ((qsz % 64) != 0)
return 0;
return 1;
}
clib_error_t *
virtio_pci_control_vring_packed_init (vlib_main_t * vm, virtio_if_t * vif,
u16 queue_num)
{
clib_error_t *error = 0;
u16 queue_size = 0;
vnet_virtio_vring_t *vring;
u32 i = 0;
void *ptr = NULL;
queue_size = vif->virtio_pci_func->get_queue_size (vm, vif, queue_num);
if (queue_size > 32768)
return clib_error_return (0, "ring size must be 32768 or lower");
if (queue_size == 0)
queue_size = 256;
vec_validate_aligned (vif->cxq_vring, 0, CLIB_CACHE_LINE_BYTES);
vring = vec_elt_at_index (vif->cxq_vring, 0);
i = (((queue_size * sizeof (vnet_virtio_vring_packed_desc_t)) +
sizeof (vnet_virtio_vring_desc_event_t) + VNET_VIRTIO_PCI_VRING_ALIGN -
1) &
~(VNET_VIRTIO_PCI_VRING_ALIGN - 1)) +
sizeof (vnet_virtio_vring_desc_event_t);
ptr = vlib_physmem_alloc_aligned_on_numa (vm, i, VNET_VIRTIO_PCI_VRING_ALIGN,
vif->numa_node);
if (!ptr)
return vlib_physmem_last_error (vm);
clib_memset (ptr, 0, i);
vring->packed_desc = ptr;
vring->driver_event =
ptr + (queue_size * sizeof (vnet_virtio_vring_packed_desc_t));
vring->driver_event->off_wrap = 0;
vring->driver_event->flags = VRING_EVENT_F_DISABLE;
vring->device_event =
ptr + (((queue_size * sizeof (vnet_virtio_vring_packed_desc_t)) +
sizeof (vnet_virtio_vring_desc_event_t) +
VNET_VIRTIO_PCI_VRING_ALIGN - 1) &
~(VNET_VIRTIO_PCI_VRING_ALIGN - 1));
vring->device_event->off_wrap = 0;
vring->device_event->flags = 0;
vring->total_packets = 0;
vring->queue_id = queue_num;
vring->queue_size = queue_size;
vring->avail_wrap_counter = 1;
vring->used_wrap_counter = 1;
ASSERT (vring->buffers == 0);
virtio_log_debug (vif, "control-queue: number %u, size %u", queue_num,
queue_size);
vif->virtio_pci_func->setup_queue (vm, vif, queue_num, vring);
vring->queue_notify_offset =
vif->notify_off_multiplier *
vif->virtio_pci_func->get_queue_notify_off (vm, vif, queue_num);
virtio_log_debug (vif, "queue-notify-offset: number %u, offset %u",
queue_num, vring->queue_notify_offset);
return error;
}
clib_error_t *
virtio_pci_control_vring_split_init (vlib_main_t * vm, virtio_if_t * vif,
u16 queue_num)
{
clib_error_t *error = 0;
u16 queue_size = 0;
vnet_virtio_vring_t *vring;
u32 i = 0;
void *ptr = NULL;
queue_size = vif->virtio_pci_func->get_queue_size (vm, vif, queue_num);
if (!virtio_pci_queue_size_valid (queue_size))
clib_warning ("queue size is not valid");
if (!is_pow2 (queue_size))
return clib_error_return (0, "ring size must be power of 2");
if (queue_size > 32768)
return clib_error_return (0, "ring size must be 32768 or lower");
if (queue_size == 0)
queue_size = 256;
vec_validate_aligned (vif->cxq_vring, 0, CLIB_CACHE_LINE_BYTES);
vring = vec_elt_at_index (vif->cxq_vring, 0);
i = vnet_virtio_vring_size (queue_size, VNET_VIRTIO_PCI_VRING_ALIGN);
i = round_pow2 (i, VNET_VIRTIO_PCI_VRING_ALIGN);
ptr = vlib_physmem_alloc_aligned_on_numa (vm, i, VNET_VIRTIO_PCI_VRING_ALIGN,
vif->numa_node);
if (!ptr)
return vlib_physmem_last_error (vm);
clib_memset (ptr, 0, i);
vnet_virtio_vring_init (vring, queue_size, ptr, VNET_VIRTIO_PCI_VRING_ALIGN);
vring->queue_id = queue_num;
vring->total_packets = 0;
ASSERT (vring->buffers == 0);
virtio_log_debug (vif, "control-queue: number %u, size %u", queue_num,
queue_size);
vif->virtio_pci_func->setup_queue (vm, vif, queue_num, vring);
vring->queue_notify_offset =
vif->notify_off_multiplier *
vif->virtio_pci_func->get_queue_notify_off (vm, vif, queue_num);
virtio_log_debug (vif, "queue-notify-offset: number %u, offset %u",
queue_num, vring->queue_notify_offset);
return error;
}
clib_error_t *
virtio_pci_control_vring_init (vlib_main_t * vm, virtio_if_t * vif,
u16 queue_num)
{
if (vif->is_packed)
return virtio_pci_control_vring_packed_init (vm, vif, queue_num);
else
return virtio_pci_control_vring_split_init (vm, vif, queue_num);
}
clib_error_t *
virtio_pci_vring_split_init (vlib_main_t * vm, virtio_if_t * vif,
u16 queue_num)
{
clib_error_t *error = 0;
u16 queue_size = 0;
vnet_virtio_vring_t *vring;
u32 i = 0;
void *ptr = NULL;
queue_size = vif->virtio_pci_func->get_queue_size (vm, vif, queue_num);
if (!virtio_pci_queue_size_valid (queue_size))
clib_warning ("queue size is not valid");
if (!is_pow2 (queue_size))
return clib_error_return (0, "ring size must be power of 2");
if (queue_size > 32768)
return clib_error_return (0, "ring size must be 32768 or lower");
if (queue_size == 0)
queue_size = 256;
if (queue_num % 2)
{
vec_validate_aligned (vif->txq_vrings, TX_QUEUE_ACCESS (queue_num),
CLIB_CACHE_LINE_BYTES);
vring = vec_elt_at_index (vif->txq_vrings, TX_QUEUE_ACCESS (queue_num));
clib_spinlock_init (&vring->lockp);
}
else
{
vec_validate_aligned (vif->rxq_vrings, RX_QUEUE_ACCESS (queue_num),
CLIB_CACHE_LINE_BYTES);
vring = vec_elt_at_index (vif->rxq_vrings, RX_QUEUE_ACCESS (queue_num));
}
i = vnet_virtio_vring_size (queue_size, VNET_VIRTIO_PCI_VRING_ALIGN);
i = round_pow2 (i, VNET_VIRTIO_PCI_VRING_ALIGN);
ptr = vlib_physmem_alloc_aligned_on_numa (vm, i, VNET_VIRTIO_PCI_VRING_ALIGN,
vif->numa_node);
if (!ptr)
return vlib_physmem_last_error (vm);
clib_memset (ptr, 0, i);
vnet_virtio_vring_init (vring, queue_size, ptr, VNET_VIRTIO_PCI_VRING_ALIGN);
vring->queue_id = queue_num;
vring->avail->flags = VIRTIO_RING_FLAG_MASK_INT;
vring->flow_table = 0;
vring->total_packets = 0;
ASSERT (vring->buffers == 0);
vec_validate_aligned (vring->buffers, queue_size, CLIB_CACHE_LINE_BYTES);
if (queue_num % 2)
{
virtio_log_debug (vif, "tx-queue: number %u, size %u", queue_num,
queue_size);
clib_memset_u32 (vring->buffers, ~0, queue_size);
}
else
{
virtio_log_debug (vif, "rx-queue: number %u, size %u", queue_num,
queue_size);
}
vring->queue_size = queue_size;
if (vif->virtio_pci_func->setup_queue (vm, vif, queue_num, vring))
return clib_error_return (0, "error in queue address setup");
vring->queue_notify_offset =
vif->notify_off_multiplier *
vif->virtio_pci_func->get_queue_notify_off (vm, vif, queue_num);
virtio_log_debug (vif, "queue-notify-offset: number %u, offset %u",
queue_num, vring->queue_notify_offset);
return error;
}
clib_error_t *
virtio_pci_vring_packed_init (vlib_main_t * vm, virtio_if_t * vif,
u16 queue_num)
{
clib_error_t *error = 0;
u16 queue_size = 0;
vnet_virtio_vring_t *vring;
u32 i = 0;
void *ptr = NULL;
queue_size = vif->virtio_pci_func->get_queue_size (vm, vif, queue_num);
if (queue_size > 32768)
return clib_error_return (0, "ring size must be 32768 or lower");
if (queue_size == 0)
queue_size = 256;
if (queue_num % 2)
{
vec_validate_aligned (vif->txq_vrings, TX_QUEUE_ACCESS (queue_num),
CLIB_CACHE_LINE_BYTES);
vring = vec_elt_at_index (vif->txq_vrings, TX_QUEUE_ACCESS (queue_num));
clib_spinlock_init (&vring->lockp);
}
else
{
vec_validate_aligned (vif->rxq_vrings, RX_QUEUE_ACCESS (queue_num),
CLIB_CACHE_LINE_BYTES);
vring = vec_elt_at_index (vif->rxq_vrings, RX_QUEUE_ACCESS (queue_num));
}
i = (((queue_size * sizeof (vnet_virtio_vring_packed_desc_t)) +
sizeof (vnet_virtio_vring_desc_event_t) + VNET_VIRTIO_PCI_VRING_ALIGN -
1) &
~(VNET_VIRTIO_PCI_VRING_ALIGN - 1)) +
sizeof (vnet_virtio_vring_desc_event_t);
ptr = vlib_physmem_alloc_aligned_on_numa (vm, i, VNET_VIRTIO_PCI_VRING_ALIGN,
vif->numa_node);
if (!ptr)
return vlib_physmem_last_error (vm);
clib_memset (ptr, 0, i);
vring->packed_desc = ptr;
vring->driver_event =
ptr + (queue_size * sizeof (vnet_virtio_vring_packed_desc_t));
vring->driver_event->off_wrap = 0;
vring->driver_event->flags = VRING_EVENT_F_DISABLE;
vring->device_event =
ptr + (((queue_size * sizeof (vnet_virtio_vring_packed_desc_t)) +
sizeof (vnet_virtio_vring_desc_event_t) +
VNET_VIRTIO_PCI_VRING_ALIGN - 1) &
~(VNET_VIRTIO_PCI_VRING_ALIGN - 1));
vring->device_event->off_wrap = 0;
vring->device_event->flags = 0;
vring->queue_id = queue_num;
vring->avail_wrap_counter = 1;
vring->used_wrap_counter = 1;
vring->total_packets = 0;
ASSERT (vring->buffers == 0);
vec_validate_aligned (vring->buffers, queue_size, CLIB_CACHE_LINE_BYTES);
if (queue_num % 2)
{
virtio_log_debug (vif, "tx-queue: number %u, size %u", queue_num,
queue_size);
clib_memset_u32 (vring->buffers, ~0, queue_size);
}
else
{
virtio_log_debug (vif, "rx-queue: number %u, size %u", queue_num,
queue_size);
}
vring->queue_size = queue_size;
if (vif->virtio_pci_func->setup_queue (vm, vif, queue_num, vring))
return clib_error_return (0, "error in queue address setup");
vring->queue_notify_offset =
vif->notify_off_multiplier *
vif->virtio_pci_func->get_queue_notify_off (vm, vif, queue_num);
virtio_log_debug (vif, "queue-notify-offset: number %u, offset %u",
queue_num, vring->queue_notify_offset);
return error;
}
clib_error_t *
virtio_pci_vring_init (vlib_main_t * vm, virtio_if_t * vif, u16 queue_num)
{
if (vif->is_packed)
return virtio_pci_vring_packed_init (vm, vif, queue_num);
else
return virtio_pci_vring_split_init (vm, vif, queue_num);
}
static void
virtio_negotiate_features (vlib_main_t * vm, virtio_if_t * vif,
u64 req_features)
{
/*
* if features are not requested
* default: all supported features
*/
u64 supported_features = VIRTIO_FEATURE (VIRTIO_NET_F_CSUM)
| VIRTIO_FEATURE (VIRTIO_NET_F_GUEST_CSUM)
| VIRTIO_FEATURE (VIRTIO_NET_F_CTRL_GUEST_OFFLOADS)
| VIRTIO_FEATURE (VIRTIO_NET_F_MTU)
| VIRTIO_FEATURE (VIRTIO_NET_F_MAC)
| VIRTIO_FEATURE (VIRTIO_NET_F_GSO)
| VIRTIO_FEATURE (VIRTIO_NET_F_GUEST_TSO4)
| VIRTIO_FEATURE (VIRTIO_NET_F_GUEST_TSO6)
| VIRTIO_FEATURE (VIRTIO_NET_F_GUEST_UFO)
| VIRTIO_FEATURE (VIRTIO_NET_F_HOST_TSO4)
| VIRTIO_FEATURE (VIRTIO_NET_F_HOST_TSO6)
| VIRTIO_FEATURE (VIRTIO_NET_F_HOST_UFO)
| VIRTIO_FEATURE (VIRTIO_NET_F_MRG_RXBUF)
| VIRTIO_FEATURE (VIRTIO_NET_F_STATUS)
| VIRTIO_FEATURE (VIRTIO_NET_F_CTRL_VQ)
| VIRTIO_FEATURE (VIRTIO_NET_F_MQ)
| VIRTIO_FEATURE (VIRTIO_F_NOTIFY_ON_EMPTY)
| VIRTIO_FEATURE (VIRTIO_F_ANY_LAYOUT)
| VIRTIO_FEATURE (VIRTIO_RING_F_INDIRECT_DESC);
if (vif->is_modern)
supported_features |= VIRTIO_FEATURE (VIRTIO_F_VERSION_1);
if (vif->is_packed)
{
supported_features |=
(VIRTIO_FEATURE (VIRTIO_F_RING_PACKED) |
VIRTIO_FEATURE (VIRTIO_F_IN_ORDER));
}
if (req_features == 0)
{
req_features = supported_features;
}
vif->features = req_features & vif->remote_features & supported_features;
if (vif->features & VIRTIO_FEATURE (VIRTIO_NET_F_MTU))
{
u16 mtu = 0;
mtu = vif->virtio_pci_func->get_mtu (vm, vif);
if (mtu < 64)
vif->features &= ~VIRTIO_FEATURE (VIRTIO_NET_F_MTU);
}
if ((vif->features & (VIRTIO_FEATURE (VIRTIO_F_RING_PACKED))) == 0)
vif->is_packed = 0;
vif->virtio_pci_func->set_driver_features (vm, vif, vif->features);
vif->features = vif->virtio_pci_func->get_driver_features (vm, vif);
}
void
virtio_pci_read_device_feature (vlib_main_t * vm, virtio_if_t * vif)
{
vif->remote_features = vif->virtio_pci_func->get_device_features (vm, vif);
}
int
virtio_pci_reset_device (vlib_main_t * vm, virtio_if_t * vif)
{
u8 status = 0;
/*
* Reset the device
*/
status = vif->virtio_pci_func->device_reset (vm, vif);
/*
* Set the Acknowledge status bit
*/
vif->virtio_pci_func->set_status (vm, vif, VIRTIO_CONFIG_STATUS_ACK);
/*
* Set the Driver status bit
*/
vif->virtio_pci_func->set_status (vm, vif, VIRTIO_CONFIG_STATUS_DRIVER);
/*
* Read the status and verify it
*/
status = vif->virtio_pci_func->get_status (vm, vif);
if ((status & VIRTIO_CONFIG_STATUS_ACK)
&& (status & VIRTIO_CONFIG_STATUS_DRIVER))
vif->status = status;
else
return -1;
return 0;
}
clib_error_t *
virtio_pci_read_caps (vlib_main_t * vm, virtio_if_t * vif, void **bar)
{
clib_error_t *error = 0;
virtio_pci_cap_t cap;
u8 pos, common_cfg = 0, notify = 0, dev_cfg = 0, isr = 0, pci_cfg = 0;
vlib_pci_dev_handle_t h = vif->pci_dev_handle;
if ((error = vlib_pci_read_config_u8 (vm, h, PCI_CAPABILITY_LIST, &pos)))
{
virtio_log_error (vif, "error in reading capabilty list position");
return clib_error_return (error,
"error in reading capabilty list position");
}
while (pos)
{
if ((error =
vlib_pci_read_write_config (vm, h, VLIB_READ, pos, &cap,
sizeof (cap))))
{
virtio_log_error (vif, "%s [%2x]",
"error in reading the capability at", pos);
return clib_error_return (error,
"error in reading the capability at [%2x]",
pos);
}
if (cap.cap_vndr == PCI_CAP_ID_MSIX)
{
u16 flags, table_size, table_size_mask = 0x07FF;
if ((error =
vlib_pci_read_write_config (vm, h, VLIB_READ, pos + 2, &flags,
sizeof (flags))))
return clib_error_return (error,
"error in reading the capability at [%2x]",
pos + 2);
table_size = flags & table_size_mask;
virtio_log_debug (vif, "flags:0x%x %s 0x%x", flags,
"msix interrupt vector table-size", table_size);
if (flags & PCI_MSIX_ENABLE)
{
virtio_log_debug (vif, "msix interrupt enabled");
vif->msix_enabled = VIRTIO_MSIX_ENABLED;
vif->msix_table_size = table_size;
}
else
{
virtio_log_debug (vif, "msix interrupt disabled");
vif->msix_enabled = VIRTIO_MSIX_DISABLED;
vif->msix_table_size = 0;
}
}
if (cap.cap_vndr != PCI_CAP_ID_VNDR)
{
virtio_log_debug (vif, "[%2x] %s %2x ", pos,
"skipping non VNDR cap id:", cap.cap_vndr);
goto next;
}
virtio_log_debug (vif,
"[%4x] cfg type: %u, bar: %u, offset: %04x, len: %u",
pos, cap.cfg_type, cap.bar, cap.offset, cap.length);
if (cap.bar >= 0 && cap.bar <= 5)
{
vif->bar = bar[cap.bar];
vif->bar_id = cap.bar;
}
else
return clib_error_return (error, "invalid bar %u", cap.bar);
switch (cap.cfg_type)
{
case VIRTIO_PCI_CAP_COMMON_CFG:
vif->common_offset = cap.offset;
common_cfg = 1;
break;
case VIRTIO_PCI_CAP_NOTIFY_CFG:
if ((error =
vlib_pci_read_write_config (vm, h, VLIB_READ,
pos + sizeof (cap),
&vif->notify_off_multiplier,
sizeof
(vif->notify_off_multiplier))))
{
virtio_log_error (vif, "notify off multiplier is not given");
}
else
{
virtio_log_debug (vif, "notify off multiplier is %u",
vif->notify_off_multiplier);
vif->notify_offset = cap.offset;
notify = 1;
}
break;
case VIRTIO_PCI_CAP_DEVICE_CFG:
vif->device_offset = cap.offset;
dev_cfg = 1;
break;
case VIRTIO_PCI_CAP_ISR_CFG:
vif->isr_offset = cap.offset;
isr = 1;
break;
case VIRTIO_PCI_CAP_PCI_CFG:
if (cap.bar == 0)
pci_cfg = 1;
break;
}
next:
pos = cap.cap_next;
}
if (common_cfg == 0 || notify == 0 || dev_cfg == 0 || isr == 0)
{
vif->virtio_pci_func = &virtio_pci_legacy_func;
vif->notify_off_multiplier = 0;
virtio_log_debug (vif, "legacy virtio pci device found");
return error;
}
vif->is_modern = 1;
vif->virtio_pci_func = &virtio_pci_modern_func;
if (!pci_cfg)
{
virtio_log_debug (vif, "modern virtio pci device found");
}
else
{
virtio_log_debug (vif, "transitional virtio pci device found");
}
return error;
}
static clib_error_t *
virtio_pci_device_init (vlib_main_t * vm, virtio_if_t * vif,
virtio_pci_create_if_args_t * args, void **bar)
{
clib_error_t *error = 0;
u8 status = 0;
if ((error = virtio_pci_read_caps (vm, vif, bar)))
{
args->rv = VNET_API_ERROR_UNSUPPORTED;
virtio_log_error (vif, "Device is not supported");
return clib_error_return (error, "Device is not supported");
}
if (virtio_pci_reset_device (vm, vif) < 0)
{
args->rv = VNET_API_ERROR_INIT_FAILED;
virtio_log_error (vif, "Failed to reset the device");
return clib_error_return (error, "Failed to reset the device");
}
/*
* read device features and negotiate (user) requested features
*/
virtio_pci_read_device_feature (vm, vif);
if ((vif->remote_features & VIRTIO_FEATURE (VIRTIO_RING_F_INDIRECT_DESC)) ==
0)
{
virtio_log_warning (vif, "error encountered: vhost-net backend doesn't "
"support VIRTIO_RING_F_INDIRECT_DESC features");
}
if ((vif->remote_features & VIRTIO_FEATURE (VIRTIO_NET_F_MRG_RXBUF)) == 0)
{
virtio_log_warning (vif, "error encountered: vhost-net backend doesn't "
"support VIRTIO_NET_F_MRG_RXBUF features");
}
virtio_negotiate_features (vm, vif, args->features);
/*
* After FEATURE_OK, driver should not accept new feature bits
*/
vif->virtio_pci_func->set_status (vm, vif,
VIRTIO_CONFIG_STATUS_FEATURES_OK);
status = vif->virtio_pci_func->get_status (vm, vif);
if (!(status & VIRTIO_CONFIG_STATUS_FEATURES_OK))
{
args->rv = VNET_API_ERROR_UNSUPPORTED;
virtio_log_error (vif,
"error encountered: Device doesn't support requested features");
return clib_error_return (error,
"Device doesn't support requested features");
}
vif->status = status;
/*
* get or set the mac address
*/
if (virtio_pci_get_mac (vm, vif))
{
f64 now = vlib_time_now (vm);
u32 rnd;
rnd = (u32) (now * 1e6);
rnd = random_u32 (&rnd);
memcpy (vif->mac_addr + 2, &rnd, sizeof (rnd));
vif->mac_addr[0] = 2;
vif->mac_addr[1] = 0xfe;
virtio_pci_set_mac (vm, vif);
}
virtio_set_net_hdr_size (vif);
/*
* Initialize the virtqueues
*/
if ((error = virtio_pci_get_max_virtqueue_pairs (vm, vif)))
{
args->rv = VNET_API_ERROR_EXCEEDED_NUMBER_OF_RANGES_CAPACITY;
goto err;
}
if (vif->msix_enabled == VIRTIO_MSIX_ENABLED)
{
if (vif->msix_table_size <= vif->max_queue_pairs)
{
virtio_log_error (vif,
"error MSIX lines (%u) <= Number of RXQs (%u)",
vif->msix_table_size, vif->max_queue_pairs);
return clib_error_return (error,
"error MSIX lines (%u) <= Number of RXQs (%u)",
vif->msix_table_size,
vif->max_queue_pairs);
}
}
for (int i = 0; i < vif->max_queue_pairs; i++)
{
if ((error = virtio_pci_vring_init (vm, vif, RX_QUEUE (i))))
{
args->rv = VNET_API_ERROR_INIT_FAILED;
virtio_log_error (vif, "%s (%u) %s", "error in rxq-queue",
RX_QUEUE (i), "initialization");
error =
clib_error_return (error, "%s (%u) %s", "error in rxq-queue",
RX_QUEUE (i), "initialization");
goto err;
}
else
{
vif->num_rxqs++;
}
if ((error = virtio_pci_vring_init (vm, vif, TX_QUEUE (i))))
{
args->rv = VNET_API_ERROR_INIT_FAILED;
virtio_log_error (vif, "%s (%u) %s", "error in txq-queue",
TX_QUEUE (i), "initialization");
error =
clib_error_return (error, "%s (%u) %s", "error in txq-queue",
TX_QUEUE (i), "initialization");
goto err;
}
else
{
vif->num_txqs++;
}
}
if (vif->features & VIRTIO_FEATURE (VIRTIO_NET_F_CTRL_VQ))
{
if ((error =
virtio_pci_control_vring_init (vm, vif, vif->max_queue_pairs * 2)))
{
virtio_log_warning (vif, "%s (%u) %s", "error in control-queue",
vif->max_queue_pairs * 2, "initialization");
if (vif->features & VIRTIO_FEATURE (VIRTIO_NET_F_MQ))
vif->features &= ~VIRTIO_FEATURE (VIRTIO_NET_F_MQ);
}
}
else
{
virtio_log_debug (vif, "control queue is not available");
vif->cxq_vring = NULL;
}
/*
* set the msix interrupts
*/
if (vif->msix_enabled == VIRTIO_MSIX_ENABLED)
{
int i, j;
if (vif->virtio_pci_func->set_config_irq (vm, vif, 0) ==
VIRTIO_MSI_NO_VECTOR)
{
virtio_log_warning (vif, "config vector 0 is not set");
}
else
{
virtio_log_debug (vif, "config msix vector is set at 0");
}
for (i = 0, j = 1; i < vif->max_queue_pairs; i++, j++)
{
if (vif->virtio_pci_func->set_queue_irq (vm, vif, j,
RX_QUEUE (i)) ==
VIRTIO_MSI_NO_VECTOR)
{
virtio_log_warning (vif, "queue (%u) vector is not set at %u",
RX_QUEUE (i), j);
}
else
{
virtio_log_debug (vif, "%s (%u) %s %u", "queue",
RX_QUEUE (i), "msix vector is set at", j);
}
}
}
/*
* set the driver status OK
*/
vif->virtio_pci_func->set_status (vm, vif, VIRTIO_CONFIG_STATUS_DRIVER_OK);
vif->status = vif->virtio_pci_func->get_status (vm, vif);
err:
return error;
}
void
virtio_pci_create_if (vlib_main_t * vm, virtio_pci_create_if_args_t * args)
{
vnet_main_t *vnm = vnet_get_main ();
virtio_main_t *vim = &virtio_main;
virtio_if_t *vif;
vlib_pci_dev_handle_t h;
clib_error_t *error = 0;
u32 interrupt_count = 0;
/* *INDENT-OFF* */
pool_foreach (vif, vim->interfaces) {
if (vif->pci_addr.as_u32 == args->addr)
{
args->rv = VNET_API_ERROR_ADDRESS_IN_USE;
args->error =
clib_error_return (error, "PCI address in use");
vlib_log (VLIB_LOG_LEVEL_ERR, vim->log_default, "%U: %s",
format_vlib_pci_addr, &args->addr,
" PCI address in use");
return;
}
}
/* *INDENT-ON* */
if (args->bind)
{
vlib_pci_addr_t pci = { .as_u32 = args->addr };
error = vlib_pci_bind_to_uio (vm, &pci, (char *) "auto",
VIRTIO_BIND_FORCE == args->bind);
if (error)
{
args->rv = VNET_API_ERROR_INVALID_INTERFACE;
args->error =
clib_error_return (error, "%U: %s", format_vlib_pci_addr, &pci,
"error encountered on binding pci device");
vlib_log (VLIB_LOG_LEVEL_ERR, vim->log_default, "%U: %s",
format_vlib_pci_addr, &pci,
"error encountered on binding pci devicee");
return;
}
}
pool_get (vim->interfaces, vif);
vif->dev_instance = vif - vim->interfaces;
vif->per_interface_next_index = ~0;
vif->pci_addr.as_u32 = args->addr;
if (args->virtio_flags & VIRTIO_FLAG_PACKED)
vif->is_packed = 1;
if ((error =
vlib_pci_device_open (vm, (vlib_pci_addr_t *) & vif->pci_addr,
virtio_pci_device_ids, &h)))
{
args->rv = VNET_API_ERROR_INVALID_INTERFACE;
args->error =
clib_error_return (error, "pci-addr %U", format_vlib_pci_addr,
&vif->pci_addr);
vlib_log (VLIB_LOG_LEVEL_ERR, vim->log_default, "%U: %s",
format_vlib_pci_addr, &vif->pci_addr,
"error encountered on pci device open");
pool_put (vim->interfaces, vif);
return;
}
vif->pci_dev_handle = h;
vlib_pci_set_private_data (vm, h, vif->dev_instance);
vif->numa_node = vlib_pci_get_numa_node (vm, h);
vif->type = VIRTIO_IF_TYPE_PCI;
if ((error = vlib_pci_bus_master_enable (vm, h)))
{
virtio_log_error (vif, "error encountered on pci bus master enable");
goto error;
}
void *bar[6];
for (u32 i = 0; i <= 5; i++)
{
if ((error = vlib_pci_map_region (vm, h, i, &bar[i])))
{
virtio_log_debug (vif, "no pci map region for bar %u", i);
}
else
{
virtio_log_debug (vif, "pci map region for bar %u at %p", i,
bar[i]);
}
}
if ((error = vlib_pci_io_region (vm, h, 0)))
{
virtio_log_error (vif, "error encountered on pci io region");
goto error;
}
interrupt_count = vlib_pci_get_num_msix_interrupts (vm, h);
if (interrupt_count > 1)
{
if ((error = vlib_pci_register_msix_handler (vm, h, 0, 1,
&virtio_pci_irq_config_handler)))
{
args->rv = VNET_API_ERROR_INVALID_REGISTRATION;
virtio_log_error (vif,
"error encountered on pci register msix handler 0");
goto error;
}
if ((error =
vlib_pci_register_msix_handler (vm, h, 1, (interrupt_count - 1),
&virtio_pci_irq_queue_handler)))
{
args->rv = VNET_API_ERROR_INVALID_REGISTRATION;
virtio_log_error (vif,
"error encountered on pci register msix handler 1");
goto error;
}
if ((error = vlib_pci_enable_msix_irq (vm, h, 0, interrupt_count)))
{
virtio_log_error (vif, "error encountered on pci enable msix irq");
goto error;
}
vif->support_int_mode = 1;
virtio_log_debug (vif, "device supports msix interrupts");
}
else
{
/*
* WARN: performance will be sub-optimal.
* Fall back to intX, if msix table-size is 1 or
* if UIO driver is being used.
*/
if ((error =
vlib_pci_register_intx_handler (vm, h, &virtio_pci_irq_handler)))
{
virtio_log_error (vif,
"error encountered on pci register interrupt handler");
goto error;
}
vif->support_int_mode = 1;
virtio_log_debug (vif, "pci register interrupt handler");
}
if ((error = vlib_pci_intr_enable (vm, h)))
{
virtio_log_error (vif, "error encountered on pci interrupt enable");
goto error;
}
if ((error = virtio_pci_device_init (vm, vif, args, bar)))
{
virtio_log_error (vif, "error encountered on device init");
goto error;
}
/* create interface */
vnet_eth_interface_registration_t eir = {};
eir.dev_class_index = virtio_device_class.index;
eir.dev_instance = vif->dev_instance;
eir.address = vif->mac_addr;
eir.cb.flag_change = virtio_pci_flag_change;
vif->hw_if_index = vnet_eth_register_interface (vnm, &eir);
vnet_sw_interface_t *sw = vnet_get_hw_sw_interface (vnm, vif->hw_if_index);
vif->sw_if_index = sw->sw_if_index;
args->sw_if_index = sw->sw_if_index;
vnet_hw_if_set_caps (vnm, vif->hw_if_index, VNET_HW_IF_CAP_INT_MODE);
if (args->virtio_flags & VIRTIO_FLAG_BUFFERING)
{
error = virtio_set_packet_buffering (vif, args->buffering_size);
if (error)
{
args->rv = VNET_API_ERROR_INIT_FAILED;
virtio_log_error (vif,
"error encountered during packet buffering init");
goto error;
}
/*
* packet buffering flag needs to be set 1 before calling the
* virtio_pre_input_node_enable but after the successful initialization
* of buffering queues above.
* Packet buffering flag set to 0 if there will be any error during
* buffering initialization.
*/
vif->packet_buffering = 1;
virtio_pre_input_node_enable (vm, vif);
}
virtio_vring_set_rx_queues (vm, vif);
virtio_vring_set_tx_queues (vm, vif);
if (virtio_pci_is_link_up (vm, vif) & VIRTIO_NET_S_LINK_UP)
{
vnet_hw_interface_set_flags (vnm, vif->hw_if_index,
VNET_HW_INTERFACE_FLAG_LINK_UP);
}
else
vnet_hw_interface_set_flags (vnm, vif->hw_if_index, 0);
virtio_pci_offloads (vm, vif, args->gso_enabled,
args->checksum_offload_enabled);
if ((vif->features & VIRTIO_FEATURE (VIRTIO_NET_F_CTRL_VQ)) &&
(vif->features & VIRTIO_FEATURE (VIRTIO_NET_F_MQ)))
{
if (virtio_pci_enable_multiqueue (vm, vif, vif->max_queue_pairs))
virtio_log_warning (vif, "multiqueue is not set");
}
return;
error:
virtio_pci_delete_if (vm, vif);
if (args->rv == 0)
args->rv = VNET_API_ERROR_INVALID_INTERFACE;
args->error = error;
}
int
virtio_pci_delete_if (vlib_main_t * vm, virtio_if_t * vif)
{
vnet_main_t *vnm = vnet_get_main ();
virtio_main_t *vim = &virtio_main;
u32 i = 0;
if (vif->type != VIRTIO_IF_TYPE_PCI)
return VNET_API_ERROR_INVALID_INTERFACE;
vlib_pci_intr_disable (vm, vif->pci_dev_handle);
if (vif->virtio_pci_func)
{
for (i = 0; i < vif->max_queue_pairs; i++)
{
vif->virtio_pci_func->del_queue (vm, vif, RX_QUEUE (i));
vif->virtio_pci_func->del_queue (vm, vif, TX_QUEUE (i));
}
if (vif->features & VIRTIO_FEATURE (VIRTIO_NET_F_CTRL_VQ))
vif->virtio_pci_func->del_queue (vm, vif, vif->max_queue_pairs * 2);
vif->virtio_pci_func->device_reset (vm, vif);
}
if (vif->hw_if_index)
{
vnet_hw_interface_set_flags (vnm, vif->hw_if_index, 0);
ethernet_delete_interface (vnm, vif->hw_if_index);
}
vlib_pci_device_close (vm, vif->pci_dev_handle);
vec_foreach_index (i, vif->rxq_vrings)
{
vnet_virtio_vring_t *vring = vec_elt_at_index (vif->rxq_vrings, i);
if (vring->used)
{
virtio_free_buffers (vm, vring);
}
vec_free (vring->buffers);
vlib_physmem_free (vm, vring->desc);
}
if (vif->packet_buffering)
virtio_pre_input_node_disable (vm, vif);
vec_foreach_index (i, vif->txq_vrings)
{
vnet_virtio_vring_t *vring = vec_elt_at_index (vif->txq_vrings, i);
if (vring->used)
{
virtio_free_buffers (vm, vring);
}
vec_free (vring->buffers);
gro_flow_table_free (vring->flow_table);
virtio_vring_buffering_free (vm, vring->buffering);
clib_spinlock_free (&vring->lockp);
vlib_physmem_free (vm, vring->desc);
}
if (vif->cxq_vring != NULL)
{
u16 last = vif->cxq_vring->last_used_idx;
u16 n_left = vif->cxq_vring->used->idx - last;
while (n_left)
{
last++;
n_left--;
}
vif->cxq_vring->last_used_idx = last;
vlib_physmem_free (vm, vif->cxq_vring->desc);
}
vec_free (vif->rxq_vrings);
vec_free (vif->txq_vrings);
vec_free (vif->cxq_vring);
clib_error_free (vif->error);
memset (vif, 0, sizeof (*vif));
pool_put (vim->interfaces, vif);
return 0;
}
int
virtio_pci_enable_disable_offloads (vlib_main_t * vm, virtio_if_t * vif,
int gso_enabled,
int checksum_offload_enabled,
int offloads_disabled)
{
if (vif->type != VIRTIO_IF_TYPE_PCI)
return VNET_API_ERROR_INVALID_INTERFACE;
if (gso_enabled)
virtio_pci_offloads (vm, vif, 1, 0);
else if (checksum_offload_enabled)
virtio_pci_offloads (vm, vif, 0, 1);
else if (offloads_disabled)
virtio_pci_offloads (vm, vif, 0, 0);
return 0;
}
/*
* fd.io coding-style-patch-verification: ON
*
* Local Variables:
* eval: (c-set-style "gnu")
* End:
*/
|
6edcf8ea84caf0727405772b6d832c534ab05576
|
bb7a80648bf830c2fb813cdb335032142cbee06d
|
/mod/mpp/3516e/inc/hisisdk/hi_comm_gdc.h
|
312e8d080eb7de1a12d34a1d46a6b9e3ac21b0b4
|
[] |
no_license
|
openhisilicon/HIVIEW
|
44574a29da60e3bb400c7ce97c722dfc9f2959e6
|
60bbfa5cb66cc82f0cdc0bba1242dbc9491b0f37
|
refs/heads/master
| 2023-09-01T01:42:19.069724
| 2023-08-31T09:57:39
| 2023-08-31T09:57:39
| 189,036,134
| 336
| 121
| null | 2023-01-07T14:10:22
| 2019-05-28T13:41:40
|
C
|
UTF-8
|
C
| false
| false
| 7,127
|
h
|
hi_comm_gdc.h
|
/*
* Copyright (C) Hisilicon Technologies Co., Ltd. 2012-2018. All rights reserved.
* Description: hi_comm_gdc.h
* Author:
* Create: 2016-10-07
*/
#include "hi_type.h"
#include "hi_common.h"
#include "hi_errno.h"
#include "hi_comm_video.h"
#ifndef __HI_COMM_GDC_H__
#define __HI_COMM_GDC_H__
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif
#endif /* __cplusplus */
/* failure caused by malloc buffer */
#define HI_ERR_GDC_NOBUF HI_DEF_ERR(HI_ID_GDC, EN_ERR_LEVEL_ERROR, EN_ERR_NOBUF)
#define HI_ERR_GDC_BUF_EMPTY HI_DEF_ERR(HI_ID_GDC, EN_ERR_LEVEL_ERROR, EN_ERR_BUF_EMPTY)
#define HI_ERR_GDC_NULL_PTR HI_DEF_ERR(HI_ID_GDC, EN_ERR_LEVEL_ERROR, EN_ERR_NULL_PTR)
#define HI_ERR_GDC_ILLEGAL_PARAM HI_DEF_ERR(HI_ID_GDC, EN_ERR_LEVEL_ERROR, EN_ERR_ILLEGAL_PARAM)
#define HI_ERR_GDC_BUF_FULL HI_DEF_ERR(HI_ID_GDC, EN_ERR_LEVEL_ERROR, EN_ERR_BUF_FULL)
#define HI_ERR_GDC_SYS_NOTREADY HI_DEF_ERR(HI_ID_GDC, EN_ERR_LEVEL_ERROR, EN_ERR_SYS_NOTREADY)
#define HI_ERR_GDC_NOT_SUPPORT HI_DEF_ERR(HI_ID_GDC, EN_ERR_LEVEL_ERROR, EN_ERR_NOT_SUPPORT)
#define HI_ERR_GDC_NOT_PERMITTED HI_DEF_ERR(HI_ID_GDC, EN_ERR_LEVEL_ERROR, EN_ERR_NOT_PERM)
#define HI_ERR_GDC_BUSY HI_DEF_ERR(HI_ID_GDC, EN_ERR_LEVEL_ERROR, EN_ERR_BUSY)
#define HI_ERR_GDC_INVALID_CHNID HI_DEF_ERR(HI_ID_GDC, EN_ERR_LEVEL_ERROR, EN_ERR_INVALID_CHNID)
#define HI_ERR_GDC_CHN_UNEXIST HI_DEF_ERR(HI_ID_GDC, EN_ERR_LEVEL_ERROR, EN_ERR_UNEXIST)
#define FISHEYE_MAX_REGION_NUM 4
#define FISHEYE_LMFCOEF_NUM 128
#define GDC_PMFCOEF_NUM 9
typedef HI_S32 GDC_HANDLE;
typedef struct hiGDC_TASK_ATTR_S {
VIDEO_FRAME_INFO_S stImgIn; /* Input picture */
VIDEO_FRAME_INFO_S stImgOut; /* Output picture */
HI_U64 au64privateData[4]; /* RW; Private data of task */
HI_U64 reserved; /* RW; Debug information,state of current picture */
} GDC_TASK_ATTR_S;
/* Mount mode of device */
typedef enum hiFISHEYE_MOUNT_MODE_E {
FISHEYE_DESKTOP_MOUNT = 0, /* Desktop mount mode */
FISHEYE_CEILING_MOUNT = 1, /* Ceiling mount mode */
FISHEYE_WALL_MOUNT = 2, /* wall mount mode */
FISHEYE_MOUNT_MODE_BUTT
} FISHEYE_MOUNT_MODE_E;
/* View mode of client */
typedef enum hiFISHEYE_VIEW_MODE_E {
FISHEYE_VIEW_360_PANORAMA = 0, /* 360 panorama mode of gdc correction */
FISHEYE_VIEW_180_PANORAMA = 1, /* 180 panorama mode of gdc correction */
FISHEYE_VIEW_NORMAL = 2, /* normal mode of gdc correction */
FISHEYE_NO_TRANSFORMATION = 3, /* no gdc correction */
FISHEYE_VIEW_MODE_BUTT
} FISHEYE_VIEW_MODE_E;
/* Fisheye region correction attribute */
typedef struct hiFISHEYE_REGION_ATTR_S {
FISHEYE_VIEW_MODE_E enViewMode; /* RW; Range: [0, 3];gdc view mode */
HI_U32 u32InRadius; /* RW; inner radius of gdc correction region */
HI_U32 u32OutRadius; /* RW; out radius of gdc correction region */
HI_U32 u32Pan; /* RW; Range: [0, 360] */
HI_U32 u32Tilt; /* RW; Range: [0, 360] */
HI_U32 u32HorZoom; /* RW; Range: [1, 4095] */
HI_U32 u32VerZoom; /* RW; Range: [1, 4095] */
RECT_S stOutRect; /* RW; out Imge rectangle attribute */
} FISHEYE_REGION_ATTR_S;
typedef struct hiFISHEYE_REGION_ATTR_EX_S {
FISHEYE_VIEW_MODE_E enViewMode; /* RW; Range: [0, 3];gdc view mode */
HI_U32 u32InRadius; /* RW; inner radius of gdc correction region */
HI_U32 u32OutRadius; /* RW; out radius of gdc correction region */
HI_U32 u32X; /* RW; Range: [0, 4608] */
HI_U32 u32Y; /* RW; Range: [0, 3456] */
HI_U32 u32HorZoom; /* RW; Range: [1, 4095] */
HI_U32 u32VerZoom; /* RW; Range: [1, 4095] */
RECT_S stOutRect; /* RW; out Imge rectangle attribute */
} FISHEYE_REGION_ATTR_EX_S;
/* Fisheye all regions correction attribute */
typedef struct hiFISHEYE_ATTR_S {
HI_BOOL bEnable; /* RW; Range: [0, 1];whether enable fisheye correction or not */
HI_BOOL bLMF; /* RW; Range: [0, 1];whether gdc len's LMF coefficient is from user config or
from default linear config */
HI_BOOL bBgColor; /* RW; Range: [0, 1];whether use background color or not */
HI_U32 u32BgColor; /* RW; Range: [0,0xffffff];the background color RGB888 */
HI_S32 s32HorOffset; /* RW; Range: [-511, 511];the horizontal offset between image center and
physical center of len */
HI_S32 s32VerOffset; /* RW; Range: [-511, 511]; the vertical offset between image center and
physical center of len */
HI_U32 u32TrapezoidCoef; /* RW; Range: [0, 32];strength coefficient of trapezoid correction */
HI_S32 s32FanStrength; /* RW; Range: [-760, 760];strength coefficient of fan correction */
FISHEYE_MOUNT_MODE_E enMountMode; /* RW; Range: [0, 2];gdc mount mode */
HI_U32 u32RegionNum; /* RW; Range: [1, 4]; gdc correction region number */
FISHEYE_REGION_ATTR_S astFishEyeRegionAttr[FISHEYE_MAX_REGION_NUM]; /* RW; attribution of gdc correction region */
} FISHEYE_ATTR_S;
typedef struct hiFISHEYE_ATTR_EX_S {
HI_BOOL bEnable; /* RW; Range: [0, 1];whether enable fisheye correction or not */
HI_BOOL bLMF; /* RW; Range: [0, 1];whether gdc len's LMF coefficient is from user config or
from default linear config */
HI_BOOL bBgColor; /* RW; Range: [0, 1];whether use background color or not */
HI_U32 u32BgColor; /* RW; Range: [0,0xffffff];the background color RGB888 */
HI_S32 s32HorOffset; /* RW; Range: [-511, 511];the horizontal offset between image center and
physical center of len */
HI_S32 s32VerOffset; /* RW; Range: [-511, 511]; the vertical offset between image center and
physical center of len */
HI_U32 u32TrapezoidCoef; /* RW; Range: [0, 32];strength coefficient of trapezoid correction */
HI_S32 s32FanStrength; /* RW; Range: [-760, 760];strength coefficient of fan correction */
FISHEYE_MOUNT_MODE_E enMountMode; /* RW; Range: [0, 2];gdc mount mode */
HI_U32 u32RegionNum; /* RW; Range: [1, 4]; gdc correction region number */
/* RW; attribution of gdc correction region */
FISHEYE_REGION_ATTR_EX_S astFishEyeRegionAttr[FISHEYE_MAX_REGION_NUM];
} FISHEYE_ATTR_EX_S;
/* Spread correction attribute */
typedef struct hiSPREAD_ATTR_S {
HI_BOOL bEnable; /* RW; Range: [0, 1];whether enable spread or not,
When spread on,ldc DistortionRatio range should be [0, 500] */
HI_U32 u32SpreadCoef; /* RW; Range: [0, 18];strength coefficient of spread correction */
SIZE_S stDestSize; /* RW; dest size of spread */
} SPREAD_ATTR_S;
/* Fisheye Job Config */
typedef struct hiFISHEYE_JOB_CONFIG_S {
HI_U64 u64LenMapPhyAddr; /* LMF coefficient Physic Addr */
} FISHEYE_JOB_CONFIG_S;
/* Fisheye Config */
typedef struct hiFISHEYE_CONFIG_S {
HI_U16 au16LMFCoef[FISHEYE_LMFCOEF_NUM]; /* RW; LMF coefficient of gdc len */
} FISHEYE_CONFIG_S;
/* Gdc PMF Attr */
typedef struct hiGDC_PMF_ATTR_S {
HI_S64 as64PMFCoef[GDC_PMFCOEF_NUM]; /* W; PMF coefficient of gdc */
} GDC_PMF_ATTR_S;
#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif /* __cplusplus */
#endif /* __HI_COMM_GDC_H__ */
|
1769845cdf4d49705845f769edfd6202ed279391
|
7eaf54a78c9e2117247cb2ab6d3a0c20719ba700
|
/SOFTWARE/A64-TERES/linux-a64/drivers/regulator/wm831x-isink.c
|
68586ee3e1cb18197f64ea68d7cbee9e963408fc
|
[
"Linux-syscall-note",
"GPL-2.0-only",
"GPL-1.0-or-later",
"LicenseRef-scancode-free-unknown",
"Apache-2.0"
] |
permissive
|
OLIMEX/DIY-LAPTOP
|
ae82f4ee79c641d9aee444db9a75f3f6709afa92
|
a3fafd1309135650bab27f5eafc0c32bc3ca74ee
|
refs/heads/rel3
| 2023-08-04T01:54:19.483792
| 2023-04-03T07:18:12
| 2023-04-03T07:18:12
| 80,094,055
| 507
| 92
|
Apache-2.0
| 2023-04-03T07:05:59
| 2017-01-26T07:25:50
|
C
|
UTF-8
|
C
| false
| false
| 6,520
|
c
|
wm831x-isink.c
|
/*
* wm831x-isink.c -- Current sink driver for the WM831x series
*
* Copyright 2009 Wolfson Microelectronics PLC.
*
* Author: Mark Brown <broonie@opensource.wolfsonmicro.com>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later version.
*/
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/init.h>
#include <linux/bitops.h>
#include <linux/err.h>
#include <linux/i2c.h>
#include <linux/platform_device.h>
#include <linux/regulator/driver.h>
#include <linux/slab.h>
#include <linux/mfd/wm831x/core.h>
#include <linux/mfd/wm831x/regulator.h>
#include <linux/mfd/wm831x/pdata.h>
#define WM831X_ISINK_MAX_NAME 7
struct wm831x_isink {
char name[WM831X_ISINK_MAX_NAME];
struct regulator_desc desc;
int reg;
struct wm831x *wm831x;
struct regulator_dev *regulator;
};
static int wm831x_isink_enable(struct regulator_dev *rdev)
{
struct wm831x_isink *isink = rdev_get_drvdata(rdev);
struct wm831x *wm831x = isink->wm831x;
int ret;
/* We have a two stage enable: first start the ISINK... */
ret = wm831x_set_bits(wm831x, isink->reg, WM831X_CS1_ENA,
WM831X_CS1_ENA);
if (ret != 0)
return ret;
/* ...then enable drive */
ret = wm831x_set_bits(wm831x, isink->reg, WM831X_CS1_DRIVE,
WM831X_CS1_DRIVE);
if (ret != 0)
wm831x_set_bits(wm831x, isink->reg, WM831X_CS1_ENA, 0);
return ret;
}
static int wm831x_isink_disable(struct regulator_dev *rdev)
{
struct wm831x_isink *isink = rdev_get_drvdata(rdev);
struct wm831x *wm831x = isink->wm831x;
int ret;
ret = wm831x_set_bits(wm831x, isink->reg, WM831X_CS1_DRIVE, 0);
if (ret < 0)
return ret;
ret = wm831x_set_bits(wm831x, isink->reg, WM831X_CS1_ENA, 0);
if (ret < 0)
return ret;
return ret;
}
static int wm831x_isink_is_enabled(struct regulator_dev *rdev)
{
struct wm831x_isink *isink = rdev_get_drvdata(rdev);
struct wm831x *wm831x = isink->wm831x;
int ret;
ret = wm831x_reg_read(wm831x, isink->reg);
if (ret < 0)
return ret;
if ((ret & (WM831X_CS1_ENA | WM831X_CS1_DRIVE)) ==
(WM831X_CS1_ENA | WM831X_CS1_DRIVE))
return 1;
else
return 0;
}
static int wm831x_isink_set_current(struct regulator_dev *rdev,
int min_uA, int max_uA)
{
struct wm831x_isink *isink = rdev_get_drvdata(rdev);
struct wm831x *wm831x = isink->wm831x;
int ret, i;
for (i = 0; i < ARRAY_SIZE(wm831x_isinkv_values); i++) {
int val = wm831x_isinkv_values[i];
if (min_uA <= val && val <= max_uA) {
ret = wm831x_set_bits(wm831x, isink->reg,
WM831X_CS1_ISEL_MASK, i);
return ret;
}
}
return -EINVAL;
}
static int wm831x_isink_get_current(struct regulator_dev *rdev)
{
struct wm831x_isink *isink = rdev_get_drvdata(rdev);
struct wm831x *wm831x = isink->wm831x;
int ret;
ret = wm831x_reg_read(wm831x, isink->reg);
if (ret < 0)
return ret;
ret &= WM831X_CS1_ISEL_MASK;
if (ret > WM831X_ISINK_MAX_ISEL)
ret = WM831X_ISINK_MAX_ISEL;
return wm831x_isinkv_values[ret];
}
static struct regulator_ops wm831x_isink_ops = {
.is_enabled = wm831x_isink_is_enabled,
.enable = wm831x_isink_enable,
.disable = wm831x_isink_disable,
.set_current_limit = wm831x_isink_set_current,
.get_current_limit = wm831x_isink_get_current,
};
static irqreturn_t wm831x_isink_irq(int irq, void *data)
{
struct wm831x_isink *isink = data;
regulator_notifier_call_chain(isink->regulator,
REGULATOR_EVENT_OVER_CURRENT,
NULL);
return IRQ_HANDLED;
}
static int wm831x_isink_probe(struct platform_device *pdev)
{
struct wm831x *wm831x = dev_get_drvdata(pdev->dev.parent);
struct wm831x_pdata *pdata = wm831x->dev->platform_data;
struct wm831x_isink *isink;
int id = pdev->id % ARRAY_SIZE(pdata->isink);
struct regulator_config config = { };
struct resource *res;
int ret, irq;
dev_dbg(&pdev->dev, "Probing ISINK%d\n", id + 1);
if (pdata == NULL || pdata->isink[id] == NULL)
return -ENODEV;
isink = devm_kzalloc(&pdev->dev, sizeof(struct wm831x_isink),
GFP_KERNEL);
if (isink == NULL) {
dev_err(&pdev->dev, "Unable to allocate private data\n");
return -ENOMEM;
}
isink->wm831x = wm831x;
res = platform_get_resource(pdev, IORESOURCE_REG, 0);
if (res == NULL) {
dev_err(&pdev->dev, "No REG resource\n");
ret = -EINVAL;
goto err;
}
isink->reg = res->start;
/* For current parts this is correct; probably need to revisit
* in future.
*/
snprintf(isink->name, sizeof(isink->name), "ISINK%d", id + 1);
isink->desc.name = isink->name;
isink->desc.id = id;
isink->desc.ops = &wm831x_isink_ops;
isink->desc.type = REGULATOR_CURRENT;
isink->desc.owner = THIS_MODULE;
config.dev = pdev->dev.parent;
config.init_data = pdata->isink[id];
config.driver_data = isink;
isink->regulator = regulator_register(&isink->desc, &config);
if (IS_ERR(isink->regulator)) {
ret = PTR_ERR(isink->regulator);
dev_err(wm831x->dev, "Failed to register ISINK%d: %d\n",
id + 1, ret);
goto err;
}
irq = wm831x_irq(wm831x, platform_get_irq(pdev, 0));
ret = request_threaded_irq(irq, NULL, wm831x_isink_irq,
IRQF_TRIGGER_RISING, isink->name, isink);
if (ret != 0) {
dev_err(&pdev->dev, "Failed to request ISINK IRQ %d: %d\n",
irq, ret);
goto err_regulator;
}
platform_set_drvdata(pdev, isink);
return 0;
err_regulator:
regulator_unregister(isink->regulator);
err:
return ret;
}
static int wm831x_isink_remove(struct platform_device *pdev)
{
struct wm831x_isink *isink = platform_get_drvdata(pdev);
platform_set_drvdata(pdev, NULL);
free_irq(wm831x_irq(isink->wm831x, platform_get_irq(pdev, 0)), isink);
regulator_unregister(isink->regulator);
return 0;
}
static struct platform_driver wm831x_isink_driver = {
.probe = wm831x_isink_probe,
.remove = wm831x_isink_remove,
.driver = {
.name = "wm831x-isink",
.owner = THIS_MODULE,
},
};
static int __init wm831x_isink_init(void)
{
int ret;
ret = platform_driver_register(&wm831x_isink_driver);
if (ret != 0)
pr_err("Failed to register WM831x ISINK driver: %d\n", ret);
return ret;
}
subsys_initcall(wm831x_isink_init);
static void __exit wm831x_isink_exit(void)
{
platform_driver_unregister(&wm831x_isink_driver);
}
module_exit(wm831x_isink_exit);
/* Module information */
MODULE_AUTHOR("Mark Brown");
MODULE_DESCRIPTION("WM831x current sink driver");
MODULE_LICENSE("GPL");
MODULE_ALIAS("platform:wm831x-isink");
|
48af30c1bb354e5a1eaac0654a565a7567a5c9a1
|
9ceacf33fd96913cac7ef15492c126d96cae6911
|
/sys/arch/arm/arm/vfp.c
|
1f37aecd55b96bac171b9ceaca57c31eaac3b37b
|
[] |
no_license
|
openbsd/src
|
ab97ef834fd2d5a7f6729814665e9782b586c130
|
9e79f3a0ebd11a25b4bff61e900cb6de9e7795e9
|
refs/heads/master
| 2023-09-02T18:54:56.624627
| 2023-09-02T15:16:12
| 2023-09-02T15:16:12
| 66,966,208
| 3,394
| 1,235
| null | 2023-08-08T02:42:25
| 2016-08-30T18:18:25
|
C
|
UTF-8
|
C
| false
| false
| 4,943
|
c
|
vfp.c
|
/* $OpenBSD: vfp.c,v 1.5 2022/08/29 02:01:18 jsg Exp $ */
/*
* Copyright (c) 2011 Dale Rahn <drahn@openbsd.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/proc.h>
#include <sys/user.h>
#include <arm/include/cpufunc.h>
#include <arm/include/vfp.h>
#include <arm/include/undefined.h>
static inline void
set_vfp_fpexc(uint32_t val)
{
__asm volatile(
".fpu vfpv3\n"
"vmsr fpexc, %0" :: "r" (val));
}
static inline uint32_t
get_vfp_fpexc(void)
{
uint32_t val;
__asm volatile(
".fpu vfpv3\n"
"vmrs %0, fpexc" : "=r" (val));
return val;
}
int vfp_fault(unsigned int, unsigned int, trapframe_t *, int, uint32_t);
void vfp_load(struct proc *p);
void vfp_store(struct fpreg *vfpsave);
void
vfp_init(void)
{
uint32_t val;
install_coproc_handler(10, vfp_fault);
install_coproc_handler(11, vfp_fault);
__asm volatile("mrc p15, 0, %0, c1, c0, 2" : "=r" (val));
val |= COPROC10 | COPROC11;
__asm volatile("mcr p15, 0, %0, c1, c0, 2" :: "r" (val));
__asm volatile("isb");
}
void
vfp_store(struct fpreg *vfpsave)
{
uint32_t scratch;
if (get_vfp_fpexc() & VFPEXC_EN) {
__asm volatile(
".fpu vfpv3\n"
"vstmia %1!, {d0-d15}\n" /* d0-d15 */
"vstmia %1!, {d16-d31}\n" /* d16-d31 */
"vmrs %0, fpscr\n"
"str %0, [%1]\n" /* save vfpscr */
: "=&r" (scratch) : "r" (vfpsave));
}
/* disable FPU */
set_vfp_fpexc(0);
}
uint32_t
vfp_save(void)
{
struct cpu_info *ci = curcpu();
struct pcb *pcb = curpcb;
struct proc *p = curproc;
uint32_t fpexc;
if (ci->ci_fpuproc == 0)
return 0;
fpexc = get_vfp_fpexc();
if ((fpexc & VFPEXC_EN) == 0)
return fpexc; /* not enabled, nothing to do */
if (fpexc & VFPEXC_EX)
panic("vfp exceptional data fault, time to write more code");
if (pcb->pcb_fpcpu == NULL || ci->ci_fpuproc == NULL ||
!(pcb->pcb_fpcpu == ci && ci->ci_fpuproc == p)) {
/* disable fpu before panic, otherwise recurse */
set_vfp_fpexc(0);
panic("FPU unit enabled when curproc and curcpu dont agree %p %p %p %p", pcb->pcb_fpcpu, ci, ci->ci_fpuproc, p);
}
vfp_store(&p->p_addr->u_pcb.pcb_fpstate);
/*
* NOTE: fpu state is saved but remains 'valid', as long as
* curpcb()->pcb_fpucpu == ci && ci->ci_fpuproc == curproc()
* is true FPU state is valid and can just be enabled without reload.
*/
return fpexc;
}
void
vfp_enable(void)
{
struct cpu_info *ci = curcpu();
if (curproc->p_addr->u_pcb.pcb_fpcpu == ci &&
ci->ci_fpuproc == curproc) {
disable_interrupts(PSR_I|PSR_F);
/* FPU state is still valid, just enable and go */
set_vfp_fpexc(VFPEXC_EN);
}
}
void
vfp_load(struct proc *p)
{
struct cpu_info *ci = curcpu();
struct pcb *pcb = &p->p_addr->u_pcb;
uint32_t scratch = 0;
int psw;
/* do not allow a partially synced state here */
psw = disable_interrupts(PSR_I|PSR_F);
/*
* p->p_pcb->pcb_fpucpu _may_ not be NULL here, but the FPU state
* was synced on kernel entry, so we can steal the FPU state
* instead of signalling and waiting for it to save
*/
/* enable to be able to load ctx */
set_vfp_fpexc(VFPEXC_EN);
__asm volatile(
".fpu vfpv3\n"
"vldmia %1!, {d0-d15}\n" /* d0-d15 */
"vldmia %1!, {d16-d31}\n" /* d16-d31 */
"ldr %0, [%1]\n" /* set old vfpscr */
"vmsr fpscr, %0\n"
: "=&r" (scratch) : "r" (&pcb->pcb_fpstate));
ci->ci_fpuproc = p;
pcb->pcb_fpcpu = ci;
/* disable until return to userland */
set_vfp_fpexc(0);
restore_interrupts(psw);
}
int
vfp_fault(unsigned int pc, unsigned int insn, trapframe_t *tf, int fault_code,
uint32_t fpexc)
{
struct proc *p = curproc;
struct pcb *pcb = &p->p_addr->u_pcb;
if ((fpexc & VFPEXC_EN) != 0) {
/*
* We probably ran into an unsupported instruction,
* like NEON on a non-NEON system. Let the process know.
*/
return 1;
}
/* we should be able to ignore old state of pcb_fpcpu ci_fpuproc */
if ((pcb->pcb_flags & PCB_FPU) == 0) {
pcb->pcb_flags |= PCB_FPU;
memset(&pcb->pcb_fpstate, 0, sizeof(pcb->pcb_fpstate));
}
vfp_load(p);
return 0;
}
void
vfp_discard(struct proc *p)
{
struct cpu_info *ci = curcpu();
if (curpcb->pcb_fpcpu == ci && ci->ci_fpuproc == p) {
ci->ci_fpuproc = NULL;
curpcb->pcb_fpcpu = NULL;
}
}
|
4e74aa7a3f6722d406757ff186fab36973309c7b
|
095e5e86c931af6553996b0a128c07d94b38cbca
|
/hpy/devel/include/hpy/cpython/autogen_api_impl.h
|
bde41f9e6284261f2d3422feb95d5d7ba47317a3
|
[
"MIT"
] |
permissive
|
hpyproject/hpy
|
1dc9e5e855fa006b1728703c5925addbb43cf792
|
8310a762d78e3412464b1869959a77da013e6307
|
refs/heads/master
| 2023-09-03T21:18:17.273371
| 2023-07-24T07:26:14
| 2023-07-24T07:26:14
| 196,559,763
| 681
| 41
|
MIT
| 2023-07-24T07:26:16
| 2019-07-12T10:27:56
|
Python
|
UTF-8
|
C
| false
| false
| 14,720
|
h
|
autogen_api_impl.h
|
/*
DO NOT EDIT THIS FILE!
This file is automatically generated by hpy.tools.autogen.trampolines.cpython_autogen_api_impl_h
See also hpy.tools.autogen and hpy/tools/public_api.h
Run this to regenerate:
make autogen
*/
HPyAPI_FUNC HPy HPyLong_FromSize_t(HPyContext *ctx, size_t value)
{
return _py2h(PyLong_FromSize_t(value));
}
HPyAPI_FUNC HPy HPyLong_FromSsize_t(HPyContext *ctx, HPy_ssize_t value)
{
return _py2h(PyLong_FromSsize_t(value));
}
HPyAPI_FUNC size_t HPyLong_AsSize_t(HPyContext *ctx, HPy h)
{
return PyLong_AsSize_t(_h2py(h));
}
HPyAPI_FUNC HPy_ssize_t HPyLong_AsSsize_t(HPyContext *ctx, HPy h)
{
return PyLong_AsSsize_t(_h2py(h));
}
HPyAPI_FUNC void *HPyLong_AsVoidPtr(HPyContext *ctx, HPy h)
{
return PyLong_AsVoidPtr(_h2py(h));
}
HPyAPI_FUNC double HPyLong_AsDouble(HPyContext *ctx, HPy h)
{
return PyLong_AsDouble(_h2py(h));
}
HPyAPI_FUNC HPy HPyFloat_FromDouble(HPyContext *ctx, double v)
{
return _py2h(PyFloat_FromDouble(v));
}
HPyAPI_FUNC double HPyFloat_AsDouble(HPyContext *ctx, HPy h)
{
return PyFloat_AsDouble(_h2py(h));
}
HPyAPI_FUNC HPy HPyBool_FromBool(HPyContext *ctx, bool v)
{
return _py2h(PyBool_FromLong(v));
}
HPyAPI_FUNC HPy_ssize_t HPy_Length(HPyContext *ctx, HPy h)
{
return PyObject_Length(_h2py(h));
}
HPyAPI_FUNC int HPyNumber_Check(HPyContext *ctx, HPy h)
{
return PyNumber_Check(_h2py(h));
}
HPyAPI_FUNC HPy HPy_Add(HPyContext *ctx, HPy h1, HPy h2)
{
return _py2h(PyNumber_Add(_h2py(h1), _h2py(h2)));
}
HPyAPI_FUNC HPy HPy_Subtract(HPyContext *ctx, HPy h1, HPy h2)
{
return _py2h(PyNumber_Subtract(_h2py(h1), _h2py(h2)));
}
HPyAPI_FUNC HPy HPy_Multiply(HPyContext *ctx, HPy h1, HPy h2)
{
return _py2h(PyNumber_Multiply(_h2py(h1), _h2py(h2)));
}
HPyAPI_FUNC HPy HPy_MatrixMultiply(HPyContext *ctx, HPy h1, HPy h2)
{
return _py2h(PyNumber_MatrixMultiply(_h2py(h1), _h2py(h2)));
}
HPyAPI_FUNC HPy HPy_FloorDivide(HPyContext *ctx, HPy h1, HPy h2)
{
return _py2h(PyNumber_FloorDivide(_h2py(h1), _h2py(h2)));
}
HPyAPI_FUNC HPy HPy_TrueDivide(HPyContext *ctx, HPy h1, HPy h2)
{
return _py2h(PyNumber_TrueDivide(_h2py(h1), _h2py(h2)));
}
HPyAPI_FUNC HPy HPy_Remainder(HPyContext *ctx, HPy h1, HPy h2)
{
return _py2h(PyNumber_Remainder(_h2py(h1), _h2py(h2)));
}
HPyAPI_FUNC HPy HPy_Divmod(HPyContext *ctx, HPy h1, HPy h2)
{
return _py2h(PyNumber_Divmod(_h2py(h1), _h2py(h2)));
}
HPyAPI_FUNC HPy HPy_Power(HPyContext *ctx, HPy h1, HPy h2, HPy h3)
{
return _py2h(PyNumber_Power(_h2py(h1), _h2py(h2), _h2py(h3)));
}
HPyAPI_FUNC HPy HPy_Negative(HPyContext *ctx, HPy h1)
{
return _py2h(PyNumber_Negative(_h2py(h1)));
}
HPyAPI_FUNC HPy HPy_Positive(HPyContext *ctx, HPy h1)
{
return _py2h(PyNumber_Positive(_h2py(h1)));
}
HPyAPI_FUNC HPy HPy_Absolute(HPyContext *ctx, HPy h1)
{
return _py2h(PyNumber_Absolute(_h2py(h1)));
}
HPyAPI_FUNC HPy HPy_Invert(HPyContext *ctx, HPy h1)
{
return _py2h(PyNumber_Invert(_h2py(h1)));
}
HPyAPI_FUNC HPy HPy_Lshift(HPyContext *ctx, HPy h1, HPy h2)
{
return _py2h(PyNumber_Lshift(_h2py(h1), _h2py(h2)));
}
HPyAPI_FUNC HPy HPy_Rshift(HPyContext *ctx, HPy h1, HPy h2)
{
return _py2h(PyNumber_Rshift(_h2py(h1), _h2py(h2)));
}
HPyAPI_FUNC HPy HPy_And(HPyContext *ctx, HPy h1, HPy h2)
{
return _py2h(PyNumber_And(_h2py(h1), _h2py(h2)));
}
HPyAPI_FUNC HPy HPy_Xor(HPyContext *ctx, HPy h1, HPy h2)
{
return _py2h(PyNumber_Xor(_h2py(h1), _h2py(h2)));
}
HPyAPI_FUNC HPy HPy_Or(HPyContext *ctx, HPy h1, HPy h2)
{
return _py2h(PyNumber_Or(_h2py(h1), _h2py(h2)));
}
HPyAPI_FUNC HPy HPy_Index(HPyContext *ctx, HPy h1)
{
return _py2h(PyNumber_Index(_h2py(h1)));
}
HPyAPI_FUNC HPy HPy_Long(HPyContext *ctx, HPy h1)
{
return _py2h(PyNumber_Long(_h2py(h1)));
}
HPyAPI_FUNC HPy HPy_Float(HPyContext *ctx, HPy h1)
{
return _py2h(PyNumber_Float(_h2py(h1)));
}
HPyAPI_FUNC HPy HPy_InPlaceAdd(HPyContext *ctx, HPy h1, HPy h2)
{
return _py2h(PyNumber_InPlaceAdd(_h2py(h1), _h2py(h2)));
}
HPyAPI_FUNC HPy HPy_InPlaceSubtract(HPyContext *ctx, HPy h1, HPy h2)
{
return _py2h(PyNumber_InPlaceSubtract(_h2py(h1), _h2py(h2)));
}
HPyAPI_FUNC HPy HPy_InPlaceMultiply(HPyContext *ctx, HPy h1, HPy h2)
{
return _py2h(PyNumber_InPlaceMultiply(_h2py(h1), _h2py(h2)));
}
HPyAPI_FUNC HPy HPy_InPlaceMatrixMultiply(HPyContext *ctx, HPy h1, HPy h2)
{
return _py2h(PyNumber_InPlaceMatrixMultiply(_h2py(h1), _h2py(h2)));
}
HPyAPI_FUNC HPy HPy_InPlaceFloorDivide(HPyContext *ctx, HPy h1, HPy h2)
{
return _py2h(PyNumber_InPlaceFloorDivide(_h2py(h1), _h2py(h2)));
}
HPyAPI_FUNC HPy HPy_InPlaceTrueDivide(HPyContext *ctx, HPy h1, HPy h2)
{
return _py2h(PyNumber_InPlaceTrueDivide(_h2py(h1), _h2py(h2)));
}
HPyAPI_FUNC HPy HPy_InPlaceRemainder(HPyContext *ctx, HPy h1, HPy h2)
{
return _py2h(PyNumber_InPlaceRemainder(_h2py(h1), _h2py(h2)));
}
HPyAPI_FUNC HPy HPy_InPlacePower(HPyContext *ctx, HPy h1, HPy h2, HPy h3)
{
return _py2h(PyNumber_InPlacePower(_h2py(h1), _h2py(h2), _h2py(h3)));
}
HPyAPI_FUNC HPy HPy_InPlaceLshift(HPyContext *ctx, HPy h1, HPy h2)
{
return _py2h(PyNumber_InPlaceLshift(_h2py(h1), _h2py(h2)));
}
HPyAPI_FUNC HPy HPy_InPlaceRshift(HPyContext *ctx, HPy h1, HPy h2)
{
return _py2h(PyNumber_InPlaceRshift(_h2py(h1), _h2py(h2)));
}
HPyAPI_FUNC HPy HPy_InPlaceAnd(HPyContext *ctx, HPy h1, HPy h2)
{
return _py2h(PyNumber_InPlaceAnd(_h2py(h1), _h2py(h2)));
}
HPyAPI_FUNC HPy HPy_InPlaceXor(HPyContext *ctx, HPy h1, HPy h2)
{
return _py2h(PyNumber_InPlaceXor(_h2py(h1), _h2py(h2)));
}
HPyAPI_FUNC HPy HPy_InPlaceOr(HPyContext *ctx, HPy h1, HPy h2)
{
return _py2h(PyNumber_InPlaceOr(_h2py(h1), _h2py(h2)));
}
HPyAPI_FUNC int HPyCallable_Check(HPyContext *ctx, HPy h)
{
return PyCallable_Check(_h2py(h));
}
HPyAPI_FUNC HPy HPyErr_SetString(HPyContext *ctx, HPy h_type, const char *utf8_message)
{
PyErr_SetString(_h2py(h_type), utf8_message);
return HPy_NULL;
}
HPyAPI_FUNC HPy HPyErr_SetObject(HPyContext *ctx, HPy h_type, HPy h_value)
{
PyErr_SetObject(_h2py(h_type), _h2py(h_value));
return HPy_NULL;
}
HPyAPI_FUNC HPy HPyErr_SetFromErrnoWithFilename(HPyContext *ctx, HPy h_type, const char *filename_fsencoded)
{
return _py2h(PyErr_SetFromErrnoWithFilename(_h2py(h_type), filename_fsencoded));
}
HPyAPI_FUNC HPy HPyErr_SetFromErrnoWithFilenameObjects(HPyContext *ctx, HPy h_type, HPy filename1, HPy filename2)
{
PyErr_SetFromErrnoWithFilenameObjects(_h2py(h_type), _h2py(filename1), _h2py(filename2));
return HPy_NULL;
}
HPyAPI_FUNC int HPyErr_ExceptionMatches(HPyContext *ctx, HPy exc)
{
return PyErr_ExceptionMatches(_h2py(exc));
}
HPyAPI_FUNC HPy HPyErr_NoMemory(HPyContext *ctx)
{
PyErr_NoMemory();
return HPy_NULL;
}
HPyAPI_FUNC void HPyErr_Clear(HPyContext *ctx)
{
PyErr_Clear();
}
HPyAPI_FUNC HPy HPyErr_NewException(HPyContext *ctx, const char *utf8_name, HPy base, HPy dict)
{
return _py2h(PyErr_NewException(utf8_name, _h2py(base), _h2py(dict)));
}
HPyAPI_FUNC HPy HPyErr_NewExceptionWithDoc(HPyContext *ctx, const char *utf8_name, const char *utf8_doc, HPy base, HPy dict)
{
return _py2h(PyErr_NewExceptionWithDoc(utf8_name, utf8_doc, _h2py(base), _h2py(dict)));
}
HPyAPI_FUNC int HPyErr_WarnEx(HPyContext *ctx, HPy category, const char *utf8_message, HPy_ssize_t stack_level)
{
return PyErr_WarnEx(_h2py(category), utf8_message, stack_level);
}
HPyAPI_FUNC void HPyErr_WriteUnraisable(HPyContext *ctx, HPy obj)
{
PyErr_WriteUnraisable(_h2py(obj));
}
HPyAPI_FUNC int HPy_IsTrue(HPyContext *ctx, HPy h)
{
return PyObject_IsTrue(_h2py(h));
}
HPyAPI_FUNC HPy HPy_GetAttr(HPyContext *ctx, HPy obj, HPy name)
{
return _py2h(PyObject_GetAttr(_h2py(obj), _h2py(name)));
}
HPyAPI_FUNC HPy HPy_GetAttr_s(HPyContext *ctx, HPy obj, const char *utf8_name)
{
return _py2h(PyObject_GetAttrString(_h2py(obj), utf8_name));
}
HPyAPI_FUNC int HPy_HasAttr(HPyContext *ctx, HPy obj, HPy name)
{
return PyObject_HasAttr(_h2py(obj), _h2py(name));
}
HPyAPI_FUNC int HPy_HasAttr_s(HPyContext *ctx, HPy obj, const char *utf8_name)
{
return PyObject_HasAttrString(_h2py(obj), utf8_name);
}
HPyAPI_FUNC int HPy_SetAttr(HPyContext *ctx, HPy obj, HPy name, HPy value)
{
return PyObject_SetAttr(_h2py(obj), _h2py(name), _h2py(value));
}
HPyAPI_FUNC int HPy_SetAttr_s(HPyContext *ctx, HPy obj, const char *utf8_name, HPy value)
{
return PyObject_SetAttrString(_h2py(obj), utf8_name, _h2py(value));
}
HPyAPI_FUNC HPy HPy_GetItem(HPyContext *ctx, HPy obj, HPy key)
{
return _py2h(PyObject_GetItem(_h2py(obj), _h2py(key)));
}
HPyAPI_FUNC int HPy_Contains(HPyContext *ctx, HPy container, HPy key)
{
return PySequence_Contains(_h2py(container), _h2py(key));
}
HPyAPI_FUNC int HPy_SetItem(HPyContext *ctx, HPy obj, HPy key, HPy value)
{
return PyObject_SetItem(_h2py(obj), _h2py(key), _h2py(value));
}
HPyAPI_FUNC int HPy_DelItem(HPyContext *ctx, HPy obj, HPy key)
{
return PyObject_DelItem(_h2py(obj), _h2py(key));
}
HPyAPI_FUNC HPy HPy_Type(HPyContext *ctx, HPy obj)
{
return _py2h(PyObject_Type(_h2py(obj)));
}
HPyAPI_FUNC HPy HPy_Repr(HPyContext *ctx, HPy obj)
{
return _py2h(PyObject_Repr(_h2py(obj)));
}
HPyAPI_FUNC HPy HPy_Str(HPyContext *ctx, HPy obj)
{
return _py2h(PyObject_Str(_h2py(obj)));
}
HPyAPI_FUNC HPy HPy_ASCII(HPyContext *ctx, HPy obj)
{
return _py2h(PyObject_ASCII(_h2py(obj)));
}
HPyAPI_FUNC HPy HPy_Bytes(HPyContext *ctx, HPy obj)
{
return _py2h(PyObject_Bytes(_h2py(obj)));
}
HPyAPI_FUNC HPy HPy_RichCompare(HPyContext *ctx, HPy v, HPy w, int op)
{
return _py2h(PyObject_RichCompare(_h2py(v), _h2py(w), op));
}
HPyAPI_FUNC int HPy_RichCompareBool(HPyContext *ctx, HPy v, HPy w, int op)
{
return PyObject_RichCompareBool(_h2py(v), _h2py(w), op);
}
HPyAPI_FUNC HPy_hash_t HPy_Hash(HPyContext *ctx, HPy obj)
{
return PyObject_Hash(_h2py(obj));
}
HPyAPI_FUNC int HPyBytes_Check(HPyContext *ctx, HPy h)
{
return PyBytes_Check(_h2py(h));
}
HPyAPI_FUNC HPy_ssize_t HPyBytes_Size(HPyContext *ctx, HPy h)
{
return PyBytes_Size(_h2py(h));
}
HPyAPI_FUNC HPy_ssize_t HPyBytes_GET_SIZE(HPyContext *ctx, HPy h)
{
return PyBytes_GET_SIZE(_h2py(h));
}
HPyAPI_FUNC const char *HPyBytes_AsString(HPyContext *ctx, HPy h)
{
return PyBytes_AsString(_h2py(h));
}
HPyAPI_FUNC const char *HPyBytes_AS_STRING(HPyContext *ctx, HPy h)
{
return PyBytes_AS_STRING(_h2py(h));
}
HPyAPI_FUNC HPy HPyBytes_FromString(HPyContext *ctx, const char *bytes)
{
return _py2h(PyBytes_FromString(bytes));
}
HPyAPI_FUNC HPy HPyUnicode_FromString(HPyContext *ctx, const char *utf8)
{
return _py2h(PyUnicode_FromString(utf8));
}
HPyAPI_FUNC int HPyUnicode_Check(HPyContext *ctx, HPy h)
{
return PyUnicode_Check(_h2py(h));
}
HPyAPI_FUNC HPy HPyUnicode_AsASCIIString(HPyContext *ctx, HPy h)
{
return _py2h(PyUnicode_AsASCIIString(_h2py(h)));
}
HPyAPI_FUNC HPy HPyUnicode_AsLatin1String(HPyContext *ctx, HPy h)
{
return _py2h(PyUnicode_AsLatin1String(_h2py(h)));
}
HPyAPI_FUNC HPy HPyUnicode_AsUTF8String(HPyContext *ctx, HPy h)
{
return _py2h(PyUnicode_AsUTF8String(_h2py(h)));
}
HPyAPI_FUNC const char *HPyUnicode_AsUTF8AndSize(HPyContext *ctx, HPy h, HPy_ssize_t *size)
{
return PyUnicode_AsUTF8AndSize(_h2py(h), size);
}
HPyAPI_FUNC HPy HPyUnicode_FromWideChar(HPyContext *ctx, const wchar_t *w, HPy_ssize_t size)
{
return _py2h(PyUnicode_FromWideChar(w, size));
}
HPyAPI_FUNC HPy HPyUnicode_DecodeFSDefault(HPyContext *ctx, const char *v)
{
return _py2h(PyUnicode_DecodeFSDefault(v));
}
HPyAPI_FUNC HPy HPyUnicode_DecodeFSDefaultAndSize(HPyContext *ctx, const char *v, HPy_ssize_t size)
{
return _py2h(PyUnicode_DecodeFSDefaultAndSize(v, size));
}
HPyAPI_FUNC HPy HPyUnicode_EncodeFSDefault(HPyContext *ctx, HPy h)
{
return _py2h(PyUnicode_EncodeFSDefault(_h2py(h)));
}
HPyAPI_FUNC HPy_UCS4 HPyUnicode_ReadChar(HPyContext *ctx, HPy h, HPy_ssize_t index)
{
return PyUnicode_ReadChar(_h2py(h), index);
}
HPyAPI_FUNC HPy HPyUnicode_DecodeASCII(HPyContext *ctx, const char *ascii, HPy_ssize_t size, const char *errors)
{
return _py2h(PyUnicode_DecodeASCII(ascii, size, errors));
}
HPyAPI_FUNC HPy HPyUnicode_DecodeLatin1(HPyContext *ctx, const char *latin1, HPy_ssize_t size, const char *errors)
{
return _py2h(PyUnicode_DecodeLatin1(latin1, size, errors));
}
HPyAPI_FUNC HPy HPyUnicode_FromEncodedObject(HPyContext *ctx, HPy obj, const char *encoding, const char *errors)
{
return _py2h(PyUnicode_FromEncodedObject(_h2py(obj), encoding, errors));
}
HPyAPI_FUNC HPy HPyUnicode_Substring(HPyContext *ctx, HPy str, HPy_ssize_t start, HPy_ssize_t end)
{
return _py2h(PyUnicode_Substring(_h2py(str), start, end));
}
HPyAPI_FUNC int HPyList_Check(HPyContext *ctx, HPy h)
{
return PyList_Check(_h2py(h));
}
HPyAPI_FUNC HPy HPyList_New(HPyContext *ctx, HPy_ssize_t len)
{
return _py2h(PyList_New(len));
}
HPyAPI_FUNC int HPyList_Append(HPyContext *ctx, HPy h_list, HPy h_item)
{
return PyList_Append(_h2py(h_list), _h2py(h_item));
}
HPyAPI_FUNC int HPyDict_Check(HPyContext *ctx, HPy h)
{
return PyDict_Check(_h2py(h));
}
HPyAPI_FUNC HPy HPyDict_New(HPyContext *ctx)
{
return _py2h(PyDict_New());
}
HPyAPI_FUNC HPy HPyDict_Keys(HPyContext *ctx, HPy h)
{
return _py2h(PyDict_Keys(_h2py(h)));
}
HPyAPI_FUNC HPy HPyDict_Copy(HPyContext *ctx, HPy h)
{
return _py2h(PyDict_Copy(_h2py(h)));
}
HPyAPI_FUNC int HPyTuple_Check(HPyContext *ctx, HPy h)
{
return PyTuple_Check(_h2py(h));
}
HPyAPI_FUNC int HPySlice_Unpack(HPyContext *ctx, HPy slice, HPy_ssize_t *start, HPy_ssize_t *stop, HPy_ssize_t *step)
{
return PySlice_Unpack(_h2py(slice), start, stop, step);
}
HPyAPI_FUNC HPy HPyImport_ImportModule(HPyContext *ctx, const char *utf8_name)
{
return _py2h(PyImport_ImportModule(utf8_name));
}
HPyAPI_FUNC int HPyCapsule_IsValid(HPyContext *ctx, HPy capsule, const char *utf8_name)
{
return PyCapsule_IsValid(_h2py(capsule), utf8_name);
}
HPyAPI_FUNC void HPy_ReenterPythonExecution(HPyContext *ctx, HPyThreadState state)
{
PyEval_RestoreThread(_h2threads(state));
}
HPyAPI_FUNC HPyThreadState HPy_LeavePythonExecution(HPyContext *ctx)
{
return _threads2h(PyEval_SaveThread());
}
HPyAPI_FUNC HPy HPy_EvalCode(HPyContext *ctx, HPy code, HPy globals, HPy locals)
{
return _py2h(PyEval_EvalCode(_h2py(code), _h2py(globals), _h2py(locals)));
}
HPyAPI_FUNC HPy HPyContextVar_New(HPyContext *ctx, const char *name, HPy default_value)
{
return _py2h(PyContextVar_New(name, _h2py(default_value)));
}
HPyAPI_FUNC HPy HPyContextVar_Set(HPyContext *ctx, HPy context_var, HPy value)
{
return _py2h(PyContextVar_Set(_h2py(context_var), _h2py(value)));
}
|
07046b4ce1a281fc93cab509fe9d62af9e89e2f7
|
28d0f8c01599f8f6c711bdde0b59f9c2cd221203
|
/sys/arch/newsmips/apbus/spifi.c
|
2d4330c3eb227c70c90f32e1dc1b6e6073ba490a
|
[] |
no_license
|
NetBSD/src
|
1a9cbc22ed778be638b37869ed4fb5c8dd616166
|
23ee83f7c0aea0777bd89d8ebd7f0cde9880d13c
|
refs/heads/trunk
| 2023-08-31T13:24:58.105962
| 2023-08-27T15:50:47
| 2023-08-27T15:50:47
| 88,439,547
| 656
| 348
| null | 2023-07-20T20:07:24
| 2017-04-16T20:03:43
| null |
UTF-8
|
C
| false
| false
| 18,441
|
c
|
spifi.c
|
/* $NetBSD: spifi.c,v 1.22 2021/08/07 16:19:01 thorpej Exp $ */
/*-
* Copyright (c) 2000 Tsubai Masanari. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. The name of the author may not be used to endorse or promote products
* derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: spifi.c,v 1.22 2021/08/07 16:19:01 thorpej Exp $");
#include <sys/param.h>
#include <sys/buf.h>
#include <sys/device.h>
#include <sys/errno.h>
#include <sys/kernel.h>
#include <sys/queue.h>
#include <sys/systm.h>
#include <uvm/uvm_extern.h>
#include <dev/scsipi/scsi_all.h>
#include <dev/scsipi/scsi_message.h>
#include <dev/scsipi/scsipi_all.h>
#include <dev/scsipi/scsiconf.h>
#include <newsmips/apbus/apbusvar.h>
#include <newsmips/apbus/spifireg.h>
#include <newsmips/apbus/dmac3reg.h>
#include <newsmips/apbus/dmac3var.h>
#include <machine/adrsmap.h>
/* #define SPIFI_DEBUG */
#ifdef SPIFI_DEBUG
# define DPRINTF printf
#else
# define DPRINTF while (0) printf
#endif
struct spifi_scb {
TAILQ_ENTRY(spifi_scb) chain;
int flags;
struct scsipi_xfer *xs;
struct scsipi_generic cmd;
int cmdlen;
int resid;
vaddr_t daddr;
uint8_t target;
uint8_t lun;
uint8_t lun_targ;
uint8_t status;
};
/* scb flags */
#define SPIFI_READ 0x80
#define SPIFI_DMA 0x01
struct spifi_softc {
device_t sc_dev;
struct scsipi_channel sc_channel;
struct scsipi_adapter sc_adapter;
struct spifi_reg *sc_reg;
struct spifi_scb *sc_nexus;
void *sc_dma; /* attached DMA softc */
int sc_id; /* my SCSI ID */
int sc_msgout;
uint8_t sc_omsg[16];
struct spifi_scb sc_scb[16];
TAILQ_HEAD(, spifi_scb) free_scb;
TAILQ_HEAD(, spifi_scb) ready_scb;
};
#define SPIFI_SYNC_OFFSET_MAX 7
#define SEND_REJECT 1
#define SEND_IDENTIFY 2
#define SEND_SDTR 4
#define SPIFI_DATAOUT 0
#define SPIFI_DATAIN PRS_IO
#define SPIFI_COMMAND PRS_CD
#define SPIFI_STATUS (PRS_CD | PRS_IO)
#define SPIFI_MSGOUT (PRS_MSG | PRS_CD)
#define SPIFI_MSGIN (PRS_MSG | PRS_CD | PRS_IO)
int spifi_match(device_t, cfdata_t, void *);
void spifi_attach(device_t, device_t, void *);
void spifi_scsipi_request(struct scsipi_channel *, scsipi_adapter_req_t,
void *);
struct spifi_scb *spifi_get_scb(struct spifi_softc *);
void spifi_free_scb(struct spifi_softc *, struct spifi_scb *);
int spifi_poll(struct spifi_softc *);
void spifi_minphys(struct buf *);
void spifi_sched(struct spifi_softc *);
int spifi_intr(void *);
void spifi_pmatch(struct spifi_softc *);
void spifi_select(struct spifi_softc *);
void spifi_sendmsg(struct spifi_softc *, int);
void spifi_command(struct spifi_softc *);
void spifi_data_io(struct spifi_softc *);
void spifi_status(struct spifi_softc *);
int spifi_done(struct spifi_softc *);
void spifi_fifo_drain(struct spifi_softc *);
void spifi_reset(struct spifi_softc *);
void spifi_bus_reset(struct spifi_softc *);
static int spifi_read_count(struct spifi_reg *);
static void spifi_write_count(struct spifi_reg *, int);
#define DMAC3_FASTACCESS(sc) dmac3_misc((sc)->sc_dma, DMAC3_CONF_FASTACCESS)
#define DMAC3_SLOWACCESS(sc) dmac3_misc((sc)->sc_dma, DMAC3_CONF_SLOWACCESS)
CFATTACH_DECL_NEW(spifi, sizeof(struct spifi_softc),
spifi_match, spifi_attach, NULL, NULL);
int
spifi_match(device_t parent, cfdata_t cf, void *aux)
{
struct apbus_attach_args *apa = aux;
if (strcmp(apa->apa_name, "spifi") == 0)
return 1;
return 0;
}
void
spifi_attach(device_t parent, device_t self, void *aux)
{
struct spifi_softc *sc = device_private(self);
struct apbus_attach_args *apa = aux;
struct dmac3_softc *dma;
int intr, i;
sc->sc_dev = self;
/* Initialize scbs. */
TAILQ_INIT(&sc->free_scb);
TAILQ_INIT(&sc->ready_scb);
for (i = 0; i < __arraycount(sc->sc_scb); i++)
TAILQ_INSERT_TAIL(&sc->free_scb, &sc->sc_scb[i], chain);
sc->sc_reg = (struct spifi_reg *)apa->apa_hwbase;
sc->sc_id = 7; /* XXX */
/* Find my dmac3. */
dma = dmac3_link(apa->apa_ctlnum);
if (dma == NULL) {
aprint_error(": cannot find slave dmac\n");
return;
}
sc->sc_dma = dma;
aprint_normal(" slot%d addr 0x%lx", apa->apa_slotno, apa->apa_hwbase);
aprint_normal(": SCSI ID = %d, using %s\n",
sc->sc_id, device_xname(dma->sc_dev));
dmac3_reset(sc->sc_dma);
DMAC3_SLOWACCESS(sc);
spifi_reset(sc);
DMAC3_FASTACCESS(sc);
sc->sc_adapter.adapt_dev = self;
sc->sc_adapter.adapt_nchannels = 1;
sc->sc_adapter.adapt_openings = 7;
sc->sc_adapter.adapt_max_periph = 1;
sc->sc_adapter.adapt_ioctl = NULL;
sc->sc_adapter.adapt_minphys = minphys;
sc->sc_adapter.adapt_request = spifi_scsipi_request;
memset(&sc->sc_channel, 0, sizeof(sc->sc_channel));
sc->sc_channel.chan_adapter = &sc->sc_adapter;
sc->sc_channel.chan_bustype = &scsi_bustype;
sc->sc_channel.chan_channel = 0;
sc->sc_channel.chan_ntargets = 8;
sc->sc_channel.chan_nluns = 8;
sc->sc_channel.chan_id = sc->sc_id;
if (apa->apa_slotno == 0)
intr = NEWS5000_INT0_DMAC; /* XXX news4000 */
else
intr = SLOTTOMASK(apa->apa_slotno);
apbus_intr_establish(0, intr, 0, spifi_intr, sc, device_xname(self),
apa->apa_ctlnum);
config_found(self, &sc->sc_channel, scsiprint, CFARGS_NONE);
}
void
spifi_scsipi_request(struct scsipi_channel *chan, scsipi_adapter_req_t req,
void *arg)
{
struct scsipi_xfer *xs;
struct scsipi_periph *periph;
struct spifi_softc *sc = device_private(chan->chan_adapter->adapt_dev);
struct spifi_scb *scb;
u_int flags;
int s;
switch (req) {
case ADAPTER_REQ_RUN_XFER:
xs = arg;
periph = xs->xs_periph;
DPRINTF("spifi_scsi_cmd\n");
flags = xs->xs_control;
scb = spifi_get_scb(sc);
if (scb == NULL) {
panic("spifi_scsipi_request: no scb");
}
scb->xs = xs;
scb->flags = 0;
scb->status = 0;
scb->daddr = (vaddr_t)xs->data;
scb->resid = xs->datalen;
memcpy(&scb->cmd, xs->cmd, xs->cmdlen);
scb->cmdlen = xs->cmdlen;
scb->target = periph->periph_target;
scb->lun = periph->periph_lun;
scb->lun_targ = scb->target | (scb->lun << 3);
if (flags & XS_CTL_DATA_IN)
scb->flags |= SPIFI_READ;
s = splbio();
TAILQ_INSERT_TAIL(&sc->ready_scb, scb, chain);
if (sc->sc_nexus == NULL) /* IDLE */
spifi_sched(sc);
splx(s);
if (flags & XS_CTL_POLL) {
if (spifi_poll(sc)) {
printf("spifi: timeout\n");
if (spifi_poll(sc))
printf("spifi: timeout again\n");
}
}
return;
case ADAPTER_REQ_GROW_RESOURCES:
/* XXX Not supported. */
return;
case ADAPTER_REQ_SET_XFER_MODE:
/* XXX Not supported. */
return;
}
}
struct spifi_scb *
spifi_get_scb(struct spifi_softc *sc)
{
struct spifi_scb *scb;
int s;
s = splbio();
scb = TAILQ_FIRST(&sc->free_scb);
if (scb)
TAILQ_REMOVE(&sc->free_scb, scb, chain);
splx(s);
return scb;
}
void
spifi_free_scb(struct spifi_softc *sc, struct spifi_scb *scb)
{
int s;
s = splbio();
TAILQ_INSERT_HEAD(&sc->free_scb, scb, chain);
splx(s);
}
int
spifi_poll(struct spifi_softc *sc)
{
struct spifi_scb *scb = sc->sc_nexus;
struct scsipi_xfer *xs;
int count;
printf("%s: not implemented yet\n", __func__);
delay(10000);
scb->status = SCSI_OK;
scb->resid = 0;
spifi_done(sc);
return 0;
if (xs == NULL)
return 0;
xs = scb->xs;
count = xs->timeout;
while (count > 0) {
if (dmac3_intr(sc->sc_dma) != 0)
spifi_intr(sc);
if (xs->xs_status & XS_STS_DONE)
return 0;
DELAY(1000);
count--;
};
return 1;
}
void
spifi_minphys(struct buf *bp)
{
if (bp->b_bcount > 64 * 1024)
bp->b_bcount = 64 * 1024;
minphys(bp);
}
void
spifi_sched(struct spifi_softc *sc)
{
struct spifi_scb *scb;
scb = TAILQ_FIRST(&sc->ready_scb);
start:
if (scb == NULL || sc->sc_nexus != NULL)
return;
#if 0
if (sc->sc_targets[scb->target] & (1 << scb->lun))
goto next;
#endif
TAILQ_REMOVE(&sc->ready_scb, scb, chain);
#ifdef SPIFI_DEBUG
{
int i;
printf("spifi_sched: ID:LUN = %d:%d, ", scb->target, scb->lun);
printf("cmd = 0x%x", scb->cmd.opcode);
for (i = 0; i < 5; i++)
printf(" 0x%x", scb->cmd.bytes[i]);
printf("\n");
}
#endif
DMAC3_SLOWACCESS(sc);
sc->sc_nexus = scb;
spifi_select(sc);
DMAC3_FASTACCESS(sc);
scb = scb->chain.tqe_next;
goto start;
}
static inline int
spifi_read_count(struct spifi_reg *reg)
{
int count;
count = (reg->count_hi & 0xff) << 16 |
(reg->count_mid & 0xff) << 8 |
(reg->count_low & 0xff);
return count;
}
static inline void
spifi_write_count(struct spifi_reg *reg, int count)
{
reg->count_hi = count >> 16;
reg->count_mid = count >> 8;
reg->count_low = count;
}
#ifdef SPIFI_DEBUG
static const char scsi_phase_name[][8] = {
"DATAOUT", "DATAIN", "COMMAND", "STATUS",
"", "", "MSGOUT", "MSGIN"
};
#endif
int
spifi_intr(void *v)
{
struct spifi_softc *sc = v;
struct spifi_reg *reg = sc->sc_reg;
int intr, state, icond;
struct spifi_scb *scb;
struct scsipi_xfer *xs;
#ifdef SPIFI_DEBUG
char bitmask[64];
#endif
switch (dmac3_intr(sc->sc_dma)) {
case 0:
DPRINTF("spurious DMA intr\n");
return 0;
case -1:
printf("DMAC parity error, data PAD\n");
DMAC3_SLOWACCESS(sc);
reg->prcmd = PRC_TRPAD;
DMAC3_FASTACCESS(sc);
return 1;
default:
break;
}
DMAC3_SLOWACCESS(sc);
intr = reg->intr & 0xff;
if (intr == 0) {
DMAC3_FASTACCESS(sc);
DPRINTF("spurious intr (not me)\n");
return 0;
}
scb = sc->sc_nexus;
xs = scb->xs;
state = reg->spstat;
icond = reg->icond;
/* clear interrupt */
reg->intr = ~intr;
#ifdef SPIFI_DEBUG
snprintb(bitmask, sizeof bitmask, INTR_BITMASK, intr);
printf("spifi_intr intr = %s (%s), ", bitmask,
scsi_phase_name[(reg->prstat >> 3) & 7]);
printf("state = 0x%x, icond = 0x%x\n", state, icond);
#endif
if (intr & INTR_FCOMP) {
spifi_fifo_drain(sc);
scb->status = reg->cmbuf[scb->target].status;
scb->resid = spifi_read_count(reg);
DPRINTF("datalen = %d, resid = %d, status = 0x%x\n",
xs->datalen, scb->resid, scb->status);
DPRINTF("msg = 0x%x\n", reg->cmbuf[sc->sc_id].cdb[0]);
DMAC3_FASTACCESS(sc);
spifi_done(sc);
return 1;
}
if (intr & INTR_DISCON)
panic("%s: disconnect", __func__);
if (intr & INTR_TIMEO) {
xs->error = XS_SELTIMEOUT;
DMAC3_FASTACCESS(sc);
spifi_done(sc);
return 1;
}
if (intr & INTR_BSRQ) {
if (scb == NULL)
panic("%s: reconnect?", __func__);
if (intr & INTR_PERR) {
printf("%s: %d:%d parity error\n",
device_xname(sc->sc_dev),
scb->target, scb->lun);
/* XXX reset */
xs->error = XS_DRIVER_STUFFUP;
spifi_done(sc);
return 1;
}
if (state >> 4 == SPS_MSGIN && icond == ICOND_NXTREQ)
panic("%s: NXTREQ", __func__);
if (reg->fifoctrl & FIFOC_RQOVRN)
panic("%s: RQOVRN", __func__);
if (icond == ICOND_UXPHASEZ)
panic("ICOND_UXPHASEZ");
if ((icond & 0x0f) == ICOND_ADATAOFF) {
spifi_data_io(sc);
goto done;
}
if ((icond & 0xf0) == ICOND_UBF) {
reg->exstat = reg->exstat & ~EXS_UBF;
spifi_pmatch(sc);
goto done;
}
/*
* XXX Work around the SPIFI bug that interrupts during
* XXX dataout phase.
*/
if (state == ((SPS_DATAOUT << 4) | SPS_INTR) &&
(reg->prstat & PRS_PHASE) == SPIFI_DATAOUT) {
reg->prcmd = PRC_DATAOUT;
goto done;
}
if ((reg->prstat & PRS_Z) == 0) {
spifi_pmatch(sc);
goto done;
}
panic("%s: unknown intr state", __func__);
}
done:
DMAC3_FASTACCESS(sc);
return 1;
}
void
spifi_pmatch(struct spifi_softc *sc)
{
struct spifi_reg *reg = sc->sc_reg;
int phase;
phase = (reg->prstat & PRS_PHASE);
#ifdef SPIFI_DEBUG
printf("%s (%s)\n", __func__, scsi_phase_name[phase >> 3]);
#endif
switch (phase) {
case SPIFI_COMMAND:
spifi_command(sc);
break;
case SPIFI_DATAIN:
case SPIFI_DATAOUT:
spifi_data_io(sc);
break;
case SPIFI_STATUS:
spifi_status(sc);
break;
case SPIFI_MSGIN: /* XXX */
case SPIFI_MSGOUT: /* XXX */
default:
printf("spifi: unknown phase %d\n", phase);
}
}
void
spifi_select(struct spifi_softc *sc)
{
struct spifi_reg *reg = sc->sc_reg;
struct spifi_scb *scb = sc->sc_nexus;
int sel;
#if 0
if (reg->loopdata || reg->intr)
return;
#endif
if (scb == NULL) {
printf("%s: spifi_select: NULL nexus\n",
device_xname(sc->sc_dev));
return;
}
reg->exctrl = EXC_IPLOCK;
dmac3_reset(sc->sc_dma);
sel = scb->target << 4 | SEL_ISTART | SEL_IRESELEN | SEL_WATN;
spifi_sendmsg(sc, SEND_IDENTIFY);
reg->select = sel;
}
void
spifi_sendmsg(struct spifi_softc *sc, int msg)
{
struct spifi_scb *scb = sc->sc_nexus;
/* struct mesh_tinfo *ti; */
int lun, len, i;
int id = sc->sc_id;
struct spifi_reg *reg = sc->sc_reg;
DPRINTF("%s: sending", __func__);
sc->sc_msgout = msg;
len = 0;
if (msg & SEND_REJECT) {
DPRINTF(" REJECT");
sc->sc_omsg[len++] = MSG_MESSAGE_REJECT;
}
if (msg & SEND_IDENTIFY) {
DPRINTF(" IDENTIFY");
lun = scb->xs->xs_periph->periph_lun;
sc->sc_omsg[len++] = MSG_IDENTIFY(lun, 0);
}
if (msg & SEND_SDTR) {
DPRINTF(" SDTR");
#if 0
ti = &sc->sc_tinfo[scb->target];
sc->sc_omsg[len++] = MSG_EXTENDED;
sc->sc_omsg[len++] = 3;
sc->sc_omsg[len++] = MSG_EXT_SDTR;
sc->sc_omsg[len++] = ti->period;
sc->sc_omsg[len++] = ti->offset;
#endif
}
DPRINTF("\n");
reg->cmlen = CML_AMSG_EN | len;
for (i = 0; i < len; i++)
reg->cmbuf[id].cdb[i] = sc->sc_omsg[i];
}
void
spifi_command(struct spifi_softc *sc)
{
struct spifi_scb *scb = sc->sc_nexus;
struct spifi_reg *reg = sc->sc_reg;
int len = scb->cmdlen;
uint8_t *cmdp = (uint8_t *)&scb->cmd;
int i;
DPRINTF("%s\n", __func__);
reg->cmdpage = scb->lun_targ;
if (reg->init_status & IST_ACK) {
/* Negate ACK. */
reg->prcmd = PRC_NJMP | PRC_CLRACK | PRC_COMMAND;
reg->prcmd = PRC_NJMP | PRC_COMMAND;
}
reg->cmlen = CML_AMSG_EN | len;
for (i = 0; i < len; i++)
reg->cmbuf[sc->sc_id].cdb[i] = *cmdp++;
reg->prcmd = PRC_COMMAND;
}
void
spifi_data_io(struct spifi_softc *sc)
{
struct spifi_scb *scb = sc->sc_nexus;
struct spifi_reg *reg = sc->sc_reg;
int phase;
DPRINTF("%s\n", __func__);
phase = reg->prstat & PRS_PHASE;
dmac3_reset(sc->sc_dma);
spifi_write_count(reg, scb->resid);
reg->cmlen = CML_AMSG_EN | 1;
reg->data_xfer = 0;
scb->flags |= SPIFI_DMA;
if (phase == SPIFI_DATAIN) {
if (reg->fifoctrl & FIFOC_SSTKACT) {
/*
* Clear FIFO and load the contents of synchronous
* stack into the FIFO.
*/
reg->fifoctrl = FIFOC_CLREVEN;
reg->fifoctrl = FIFOC_LOAD;
}
reg->autodata = ADATA_IN | scb->lun_targ;
dmac3_start(sc->sc_dma, scb->daddr, scb->resid, DMAC3_CSR_RECV);
reg->prcmd = PRC_DATAIN;
} else {
reg->fifoctrl = FIFOC_CLREVEN;
reg->autodata = scb->lun_targ;
dmac3_start(sc->sc_dma, scb->daddr, scb->resid, DMAC3_CSR_SEND);
reg->prcmd = PRC_DATAOUT;
}
}
void
spifi_status(struct spifi_softc *sc)
{
struct spifi_reg *reg = sc->sc_reg;
DPRINTF("%s\n", __func__);
spifi_fifo_drain(sc);
reg->cmlen = CML_AMSG_EN | 1;
reg->prcmd = PRC_STATUS;
}
int
spifi_done(struct spifi_softc *sc)
{
struct spifi_scb *scb = sc->sc_nexus;
struct scsipi_xfer *xs = scb->xs;
DPRINTF("%s\n", __func__);
xs->status = scb->status;
if (xs->status == SCSI_CHECK) {
DPRINTF("%s: CHECK CONDITION\n", __func__);
if (xs->error == XS_NOERROR)
xs->error = XS_BUSY;
}
xs->resid = scb->resid;
scsipi_done(xs);
spifi_free_scb(sc, scb);
sc->sc_nexus = NULL;
spifi_sched(sc);
return false;
}
void
spifi_fifo_drain(struct spifi_softc *sc)
{
struct spifi_scb *scb = sc->sc_nexus;
struct spifi_reg *reg = sc->sc_reg;
int fifoctrl, fifo_count;
DPRINTF("%s\n", __func__);
if ((scb->flags & SPIFI_READ) == 0)
return;
fifoctrl = reg->fifoctrl;
if (fifoctrl & FIFOC_SSTKACT)
return;
fifo_count = 8 - (fifoctrl & FIFOC_FSLOT);
if (fifo_count > 0 && (scb->flags & SPIFI_DMA)) {
/* Flush data still in FIFO. */
reg->fifoctrl = FIFOC_FLUSH;
return;
}
reg->fifoctrl = FIFOC_CLREVEN;
}
void
spifi_reset(struct spifi_softc *sc)
{
struct spifi_reg *reg = sc->sc_reg;
int id = sc->sc_id;
DPRINTF("%s\n", __func__);
reg->auxctrl = AUXCTRL_SRST;
reg->auxctrl = AUXCTRL_CRST;
dmac3_reset(sc->sc_dma);
reg->auxctrl = AUXCTRL_SRST;
reg->auxctrl = AUXCTRL_CRST;
reg->auxctrl = AUXCTRL_DMAEDGE;
/* Mask (only) target mode interrupts. */
reg->imask = INTR_TGSEL | INTR_COMRECV;
reg->config = CONFIG_DMABURST | CONFIG_PCHKEN | CONFIG_PGENEN | id;
reg->fastwide = FAST_FASTEN;
reg->prctrl = 0;
reg->loopctrl = 0;
/* Enable automatic status input except the initiator. */
reg->autostat = ~(1 << id);
reg->fifoctrl = FIFOC_CLREVEN;
spifi_write_count(reg, 0);
/* Flush write buffer. */
(void)reg->spstat;
}
void
spifi_bus_reset(struct spifi_softc *sc)
{
struct spifi_reg *reg = sc->sc_reg;
printf("%s: bus reset\n", device_xname(sc->sc_dev));
sc->sc_nexus = NULL;
reg->auxctrl = AUXCTRL_SETRST;
delay(100);
reg->auxctrl = 0;
}
#if 0
static uint8_t spifi_sync_period[] = {
/* 0 1 2 3 4 5 6 7 8 9 10 11 */
137, 125, 112, 100, 87, 75, 62, 50, 43, 37, 31, 25
};
void
spifi_setsync(struct spifi_softc *sc, struct spifi_tinfo *ti)
{
if ((ti->flags & T_SYNCMODE) == 0)
reg->data_xfer = 0;
else {
uint8_t period = ti->period;
uint8_t offset = ti->offset;
int v;
for (v = sizeof(spifi_sync_period) - 1; v >= 0; v--)
if (spifi_sync_period[v] >= period)
break;
if (v == -1)
reg->data_xfer = 0; /* XXX */
else
reg->data_xfer = v << 4 | offset;
}
}
#endif
|
a9b2ef19c76e18a13185c037e1f241b6806f09da
|
de21f9075f55640514c29ef0f1fe3f0690845764
|
/regression/ansi-c/gcc_builtins4/main.c
|
55c3407e7f1be7a2ac092d3ef82915c8c37a1891
|
[
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference",
"BSD-4-Clause"
] |
permissive
|
diffblue/cbmc
|
975a074ac445febb3b5715f8792beb545522dc18
|
decd2839c2f51a54b2ad0f3e89fdc1b4bf78cd16
|
refs/heads/develop
| 2023-08-31T05:52:05.342195
| 2023-08-30T13:31:51
| 2023-08-30T13:31:51
| 51,877,056
| 589
| 309
|
NOASSERTION
| 2023-09-14T18:49:17
| 2016-02-16T23:03:52
|
C++
|
UTF-8
|
C
| false
| false
| 1,186
|
c
|
main.c
|
#ifdef __GNUC__
# define CONCAT(a, b) a##b
# define CONCAT2(a, b) CONCAT(a, b)
# define STATIC_ASSERT(condition) \
int CONCAT2(some_array, __LINE__)[(condition) ? 1 : -1]
struct { int i; _Bool bit_field : 1; } s;
union { int i; } u;
enum { Econst } e;
int a[10];
STATIC_ASSERT(__builtin_classify_type((int)0)==1);
STATIC_ASSERT(__builtin_classify_type((char)0)==1);
STATIC_ASSERT(__builtin_classify_type(e)==1);
#ifndef __clang__
STATIC_ASSERT(__builtin_classify_type((_Bool)0)==1);
STATIC_ASSERT(__builtin_classify_type(s.bit_field)==1);
#else
STATIC_ASSERT(__builtin_classify_type((_Bool)0)==4);
STATIC_ASSERT(__builtin_classify_type(s.bit_field)==4);
#endif
STATIC_ASSERT(__builtin_classify_type((int *)0)==5);
STATIC_ASSERT(__builtin_classify_type(1.0)==8);
STATIC_ASSERT(__builtin_classify_type(*(0?(void *)0:(double *)0))==8);
STATIC_ASSERT(__builtin_classify_type(*(0?(double *)0:(void *)0))==8);
STATIC_ASSERT(__builtin_classify_type((_Complex double)0)==9);
STATIC_ASSERT(__builtin_classify_type(s)==12);
STATIC_ASSERT(__builtin_classify_type(u)==13);
STATIC_ASSERT(__builtin_classify_type(a)==5);
#endif
int main()
{
}
|
fe31cdbf7579fb6e47450ba45e847359f67796eb
|
4cd1537b92864ee108def7886aafc0f924f97c0f
|
/ext/hook/uhook_attributes.c
|
7e858f0b8a210636e6dd44808815a74aba2b7889
|
[
"Apache-2.0",
"BSD-3-Clause"
] |
permissive
|
DataDog/dd-trace-php
|
68f08674208ef9ec1c874e3eabd7b88f1d6dd5dd
|
014989e42bfa5919f451cee3ae2b57cc35bdee9b
|
refs/heads/master
| 2023-09-01T15:36:22.838634
| 2023-09-01T13:17:02
| 2023-09-01T13:17:02
| 119,990,860
| 363
| 166
|
NOASSERTION
| 2023-09-13T16:09:22
| 2018-02-02T14:21:54
|
PHP
|
UTF-8
|
C
| false
| false
| 15,134
|
c
|
uhook_attributes.c
|
#include <php.h>
#include <Zend/zend_attributes.h>
#include <Zend/zend_smart_str.h>
#include "uhook_attributes_arginfo.h"
#include "../ddtrace.h"
#include "../configuration.h"
#include "uhook.h"
#include <hook/hook.h>
zend_class_entry *ddtrace_hook_attribute_ce;
static zend_string *dd_hook_attribute_lcname;
typedef struct {
zend_string *name;
zend_string *resource;
zend_string *service;
zend_string *type;
zend_array *tags;
bool args;
zend_array *arg_whitelist;
bool retval;
bool run_if_limited;
bool active;
bool disallow_recursion;
} dd_uhook_def;
typedef struct {
ddtrace_span_data *span;
bool skipped;
bool was_primed;
} dd_uhook_dynamic;
static void dd_uhook_save_value_nested(smart_str *str, zval *value, int remaining_nesting) {
const int string_maxlen = 255;
ZVAL_DEREF(value);
if (Z_TYPE_P(value) == IS_ARRAY) {
HashTable *ht = Z_ARR_P(value);
if (remaining_nesting == 0) {
smart_str_append_printf(str, "[size %d]", zend_hash_num_elements(ht));
}
smart_str_appendc(str, '[');
const int max_values = remaining_nesting == 1 ? 3 : 10;
int counter = 0;
zend_string *strkey;
zend_long numkey;
zval *arrval;
ZEND_HASH_FOREACH_KEY_VAL(ht, numkey, strkey, arrval) {
if (++counter > max_values) {
break;
}
if (counter > 1) {
smart_str_appends(str, ", ");
}
if (strkey) {
smart_str_appendc(str, '\'');
smart_str_append(str, strkey);
smart_str_append_printf(str, "%.*s", MIN(string_maxlen, (int)ZSTR_LEN(strkey)), ZSTR_VAL(strkey));
smart_str_appendc(str, '\'');
} else {
smart_str_append_printf(str, ZEND_LONG_FMT, numkey);
}
smart_str_appends(str, " => ");
dd_uhook_save_value_nested(str, arrval, remaining_nesting - 1);
} ZEND_HASH_FOREACH_END();
if (counter > max_values) {
smart_str_appends(str, ", ...");
}
smart_str_appendc(str, ']');
} else if (Z_TYPE_P(value) == IS_OBJECT) {
smart_str_appends(str, "Object of type ");
smart_str_append(str, Z_OBJCE_P(value)->name);
} else if (Z_TYPE_P(value) == IS_FALSE) {
smart_str_appends(str, "false");
} else if (Z_TYPE_P(value) == IS_TRUE) {
smart_str_appends(str, "true");
} else if (Z_TYPE_P(value) == IS_NULL) {
smart_str_appends(str, "null");
} else {
if (remaining_nesting < 2) {
smart_str_appendc(str, '\'');
}
zend_string *val = zval_get_string(value);
smart_str_append_printf(str, "%.*s", MIN(string_maxlen, (int)ZSTR_LEN(val)), ZSTR_VAL(val));
zend_string_release(val);
if (remaining_nesting < 2) {
smart_str_appendc(str, '\'');
}
}
}
static zval dd_uhook_save_value(zval *value) {
smart_str str = {0};
dd_uhook_save_value_nested(&str, value, 2);
smart_str_0(&str);
zval ret;
ZVAL_STR(&ret, str.s);
return ret;
}
static void dd_fill_span_data(dd_uhook_def *def, ddtrace_span_data *span) {
if (def->name) {
zval *name = ddtrace_spandata_property_name(span);
zval_ptr_dtor(name);
ZVAL_STR_COPY(name, def->name);
}
if (def->resource) {
zval *resource = ddtrace_spandata_property_resource(span);
zval_ptr_dtor(resource);
ZVAL_STR_COPY(resource, def->resource);
}
if (def->service) {
zval *service = ddtrace_spandata_property_service(span);
zval_ptr_dtor(service);
ZVAL_STR_COPY(service, def->service);
}
if (def->type) {
zval *type = ddtrace_spandata_property_type(span);
zval_ptr_dtor(type);
ZVAL_STR_COPY(type, def->type);
}
if (def->tags) {
zend_array *meta = ddtrace_spandata_property_meta(span);
zend_string *key;
zval *value;
ZEND_HASH_FOREACH_STR_KEY_VAL(def->tags, key, value) {
if (key) {
zend_hash_update(meta, key, value);
}
} ZEND_HASH_FOREACH_END();
}
}
void dd_uhook_fill_args_in_meta(dd_uhook_def *def, HashTable *meta, zend_execute_data *execute_data) {
uint32_t num_args = EX_NUM_ARGS();
if (!num_args || !def->args) {
return;
}
zval *p = EX_VAR_NUM(0);
zend_function *func = EX(func);
uint32_t first_extra_arg = MIN(num_args, func->common.num_args);
if (func->type == ZEND_USER_FUNCTION) {
uint32_t varnum = 0;
for (zval *end = p + first_extra_arg; p < end; ++p) {
zend_string *arg_name = func->op_array.vars[varnum++];
if (!def->arg_whitelist || zend_hash_exists(def->arg_whitelist, arg_name)) {
zend_string *arg = zend_strpprintf(0, "arg.%.*s", (int) ZSTR_LEN(arg_name), ZSTR_VAL(arg_name));
zval zv = dd_uhook_save_value(p);
zend_hash_update(meta, arg, &zv);
zend_string_release(arg);
}
}
p = EX_VAR_NUM(func->op_array.last_var + func->op_array.T);
} else {
uint32_t varnum = 0;
for (zval *end = p + first_extra_arg; p < end; ++p) {
zend_string *arg_name = func->common.arg_info[varnum++].name;
if (!def->arg_whitelist || zend_hash_exists(def->arg_whitelist, arg_name)) {
zend_string *arg = zend_strpprintf(0, "arg.%.*s", (int) ZSTR_LEN(arg_name), ZSTR_VAL(arg_name));
zval zv = dd_uhook_save_value(p);
zend_hash_update(meta, arg, &zv);
zend_string_release(arg);
}
}
}
num_args -= first_extra_arg;
if (!def->arg_whitelist) {
// collect trailing variadic args
uint32_t varnum = first_extra_arg;
for (zval *end = p + num_args; p < end; ++p) {
zend_string *arg = zend_strpprintf(0, "arg.%d", varnum++);
zval zv = dd_uhook_save_value(p);
zend_hash_update(meta, arg, &zv);
zend_string_release(arg);
}
}
}
static bool dd_uhook_begin(zend_ulong invocation, zend_execute_data *execute_data, void *auxiliary, void *dynamic) {
dd_uhook_def *def = auxiliary;
dd_uhook_dynamic *dyn = dynamic;
if ((!def->run_if_limited && ddtrace_tracer_is_limited()) || (def->active && def->disallow_recursion) || !get_DD_TRACE_ENABLED()) {
dyn->skipped = false;
dyn->span = NULL;
return true;
}
def->active = true; // recursion protection
dyn->was_primed = false;
dyn->span = ddtrace_alloc_execute_data_span(invocation, execute_data);
dd_fill_span_data(def, dyn->span);
dd_uhook_fill_args_in_meta(def, ddtrace_spandata_property_meta(dyn->span), execute_data);
return true;
}
// create an own span for every generator resumption
static void dd_uhook_generator_resumption(zend_ulong invocation, zend_execute_data *execute_data, zval *value, void *auxiliary, void *dynamic) {
(void)value;
dd_uhook_def *def = auxiliary;
dd_uhook_dynamic *dyn = dynamic;
if (dyn->skipped || !dyn->was_primed) {
dyn->was_primed = true;
return;
}
if (!get_DD_TRACE_ENABLED()) {
dyn->span = NULL;
return;
}
dyn->span = ddtrace_alloc_execute_data_span(invocation, execute_data);
dd_fill_span_data(def, dyn->span);
if (def->retval) {
zend_array *meta = ddtrace_spandata_property_meta(dyn->span);
zval val = dd_uhook_save_value(value);
zend_hash_str_update(meta, ZEND_STRL("send_value"), &val);
}
}
static void dd_uhook_generator_yield(zend_ulong invocation, zend_execute_data *execute_data, zval *key, zval *value, void *auxiliary, void *dynamic) {
(void)key, (void)execute_data;
dd_uhook_def *def = auxiliary;
dd_uhook_dynamic *dyn = dynamic;
if (!dyn->span) {
return;
}
if (dyn->span->duration == DDTRACE_DROPPED_SPAN) {
dyn->span = NULL;
ddtrace_clear_execute_data_span(invocation, false);
} else {
zval *exception_zv = ddtrace_spandata_property_exception(dyn->span);
if (EG(exception) && Z_TYPE_P(exception_zv) <= IS_FALSE) {
ZVAL_OBJ_COPY(exception_zv, EG(exception));
}
dd_trace_stop_span_time(dyn->span);
if (def->retval) {
zend_array *meta = ddtrace_spandata_property_meta(dyn->span);
zval keyzv = dd_uhook_save_value(key);
zend_hash_str_update(meta, ZEND_STRL("yield_key"), &keyzv);
zval val = dd_uhook_save_value(value);
zend_hash_str_update(meta, ZEND_STRL("yield_value"), &val);
}
}
ddtrace_clear_execute_data_span(invocation, true);
dyn->span = NULL;
}
extern void (*profiling_interrupt_function)(zend_execute_data *);
static void dd_uhook_end(zend_ulong invocation, zend_execute_data *execute_data, zval *retval, void *auxiliary, void *dynamic) {
dd_uhook_def *def = auxiliary;
dd_uhook_dynamic *dyn = dynamic;
if (!dyn->span) {
return;
}
if (dyn->span->duration == DDTRACE_DROPPED_SPAN) {
ddtrace_clear_execute_data_span(invocation, false);
} else {
zval *exception_zv = ddtrace_spandata_property_exception(dyn->span);
if (EG(exception) && Z_TYPE_P(exception_zv) <= IS_FALSE) {
ZVAL_OBJ_COPY(exception_zv, EG(exception));
}
dd_trace_stop_span_time(dyn->span);
if (def->retval) {
zend_array *meta = ddtrace_spandata_property_meta(dyn->span);
zval val = dd_uhook_save_value(retval);
zend_hash_str_update(meta, ZEND_STRL("return_value"), &val);
}
}
/* If the profiler doesn't handle a potential pending interrupt before
* the observer's end function, then the callback will be at the top of
* the stack even though it's not responsible.
* This is why the profiler's interrupt function is called here, to
* give the profiler an opportunity to take a sample before calling the
* tracing function.
*/
if (profiling_interrupt_function) {
profiling_interrupt_function(execute_data);
}
ddtrace_clear_execute_data_span(invocation, true);
def->active = false;
}
static void dd_uhook_dtor(void *data) {
dd_uhook_def *def = data;
if (def->name) {
zend_string_release(def->name);
}
if (def->resource) {
zend_string_release(def->resource);
}
if (def->service) {
zend_string_release(def->service);
}
if (def->type) {
zend_string_release(def->type);
}
if (def->arg_whitelist) {
zend_array_release(def->arg_whitelist);
}
if (def->tags) {
zend_array_release(def->tags);
}
efree(def);
}
void dd_uhook_on_function_resolve(zend_function *func) {
if (!get_DD_TRACE_ENABLED()) {
return;
}
zend_attribute *attr = zend_get_attribute(func->common.attributes, dd_hook_attribute_lcname);
if (attr) {
dd_uhook_def *def = ecalloc(1, sizeof(*def));
zend_arg_info *arg_info = ddtrace_hook_attribute_ce->constructor->common.arg_info;
uint32_t max_num_args = ddtrace_hook_attribute_ce->constructor->common.num_args;
for (uint32_t i = 0; i < attr->argc; ++i) {
zend_attribute_arg *arg = &attr->args[i];
zend_string *name = arg->name;
if (!name && i < max_num_args) {
name = zend_string_copy(arg_info[i].name);
}
zval value;
ZVAL_COPY_OR_DUP(&value, &arg->value);
if (Z_TYPE(value) == IS_CONSTANT_AST) {
if (SUCCESS != zval_update_constant_ex(&value, func->common.scope)) {
zval_ptr_dtor(&value);
continue;
}
}
if (zend_string_equals_literal(name, "name") && Z_TYPE(value) == IS_STRING) {
if (!def->name) {
def->name = zend_string_copy(Z_STR(value));
}
} else if (zend_string_equals_literal(name, "resource") && Z_TYPE(value) == IS_STRING) {
if (!def->resource) {
def->resource = zend_string_copy(Z_STR(value));
}
} else if (zend_string_equals_literal(name, "service") && Z_TYPE(value) == IS_STRING) {
if (!def->service) {
def->service = zend_string_copy(Z_STR(value));
}
} else if (zend_string_equals_literal(name, "type") && Z_TYPE(value) == IS_STRING) {
if (!def->type) {
def->type = zend_string_copy(Z_STR(value));
}
} else if (zend_string_equals_literal(name, "saveArgs")) {
if (!def->arg_whitelist) {
if (Z_TYPE(value) == IS_ARRAY) {
def->args = true;
def->arg_whitelist = zend_new_array(zend_hash_num_elements(Z_ARR(value)));
zval *val;
ZEND_HASH_FOREACH_VAL(Z_ARR(value), val) {
if (Z_TYPE_P(val) == IS_STRING) {
zend_hash_add_empty_element(def->arg_whitelist, Z_STR_P(val));
}
} ZEND_HASH_FOREACH_END();
} else {
def->args = zend_is_true(&value);
}
}
} else if (zend_string_equals_literal(name, "saveReturn")) {
def->retval = zend_is_true(&value);
} else if (zend_string_equals_literal(name, "run_if_limited")) {
def->run_if_limited = zend_is_true(&value);
} else if (zend_string_equals_literal(name, "recurse")) {
def->disallow_recursion = !zend_is_true(&value);
} else if (zend_string_equals_literal(name, "tags") && Z_TYPE(value) == IS_ARRAY) {
if (!def->tags) {
def->tags = Z_ARR(value);
GC_ADDREF(def->tags);
}
}
zval_ptr_dtor(&value);
}
zai_hook_install_resolved_generator(func,
dd_uhook_begin, dd_uhook_generator_resumption, dd_uhook_generator_yield, dd_uhook_end,
ZAI_HOOK_AUX(def, dd_uhook_dtor), sizeof(dd_uhook_dynamic));
}
}
void zai_uhook_attributes_minit(void) {
zai_hook_on_function_resolve = dd_uhook_on_function_resolve;
ddtrace_hook_attribute_ce = register_class_DDTrace_Trace();
#if PHP_VERSION_ID >= 80200
zend_mark_internal_attribute(ddtrace_hook_attribute_ce);
#endif
dd_hook_attribute_lcname = zend_string_tolower_ex(ddtrace_hook_attribute_ce->name, true);
}
void zai_uhook_attributes_mshutdown(void) {
zend_string_release(dd_hook_attribute_lcname);
}
ZEND_METHOD(DDTrace_Trace, __construct) {
(void) execute_data, (void) return_value;
}
|
fe5d5b09d512b5ce45e3b98f88b5c4a4eebe5f3b
|
7eaf54a78c9e2117247cb2ab6d3a0c20719ba700
|
/SOFTWARE/A64-TERES/linux-a64/drivers/staging/comedi/drivers/dt2817.c
|
b5c8e8213faf71da172632604293997230db94f5
|
[
"Linux-syscall-note",
"GPL-2.0-only",
"GPL-1.0-or-later",
"LicenseRef-scancode-free-unknown",
"Apache-2.0"
] |
permissive
|
OLIMEX/DIY-LAPTOP
|
ae82f4ee79c641d9aee444db9a75f3f6709afa92
|
a3fafd1309135650bab27f5eafc0c32bc3ca74ee
|
refs/heads/rel3
| 2023-08-04T01:54:19.483792
| 2023-04-03T07:18:12
| 2023-04-03T07:18:12
| 80,094,055
| 507
| 92
|
Apache-2.0
| 2023-04-03T07:05:59
| 2017-01-26T07:25:50
|
C
|
UTF-8
|
C
| false
| false
| 4,161
|
c
|
dt2817.c
|
/*
comedi/drivers/dt2817.c
Hardware driver for Data Translation DT2817
COMEDI - Linux Control and Measurement Device Interface
Copyright (C) 1998 David A. Schleef <ds@schleef.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/*
Driver: dt2817
Description: Data Translation DT2817
Author: ds
Status: complete
Devices: [Data Translation] DT2817 (dt2817)
A very simple digital I/O card. Four banks of 8 lines, each bank
is configurable for input or output. One wonders why it takes a
50 page manual to describe this thing.
The driver (which, btw, is much less than 50 pages) has 1 subdevice
with 32 channels, configurable in groups of 8.
Configuration options:
[0] - I/O port base base address
*/
#include "../comedidev.h"
#include <linux/ioport.h>
#define DT2817_SIZE 5
#define DT2817_CR 0
#define DT2817_DATA 1
static int dt2817_dio_insn_config(struct comedi_device *dev,
struct comedi_subdevice *s,
struct comedi_insn *insn, unsigned int *data)
{
int mask;
int chan;
int oe = 0;
if (insn->n != 1)
return -EINVAL;
chan = CR_CHAN(insn->chanspec);
if (chan < 8)
mask = 0xff;
else if (chan < 16)
mask = 0xff00;
else if (chan < 24)
mask = 0xff0000;
else
mask = 0xff000000;
if (data[0])
s->io_bits |= mask;
else
s->io_bits &= ~mask;
if (s->io_bits & 0x000000ff)
oe |= 0x1;
if (s->io_bits & 0x0000ff00)
oe |= 0x2;
if (s->io_bits & 0x00ff0000)
oe |= 0x4;
if (s->io_bits & 0xff000000)
oe |= 0x8;
outb(oe, dev->iobase + DT2817_CR);
return 1;
}
static int dt2817_dio_insn_bits(struct comedi_device *dev,
struct comedi_subdevice *s,
struct comedi_insn *insn, unsigned int *data)
{
unsigned int changed;
/* It's questionable whether it is more important in
* a driver like this to be deterministic or fast.
* We choose fast. */
if (data[0]) {
changed = s->state;
s->state &= ~data[0];
s->state |= (data[0] & data[1]);
changed ^= s->state;
changed &= s->io_bits;
if (changed & 0x000000ff)
outb(s->state & 0xff, dev->iobase + DT2817_DATA + 0);
if (changed & 0x0000ff00)
outb((s->state >> 8) & 0xff,
dev->iobase + DT2817_DATA + 1);
if (changed & 0x00ff0000)
outb((s->state >> 16) & 0xff,
dev->iobase + DT2817_DATA + 2);
if (changed & 0xff000000)
outb((s->state >> 24) & 0xff,
dev->iobase + DT2817_DATA + 3);
}
data[1] = inb(dev->iobase + DT2817_DATA + 0);
data[1] |= (inb(dev->iobase + DT2817_DATA + 1) << 8);
data[1] |= (inb(dev->iobase + DT2817_DATA + 2) << 16);
data[1] |= (inb(dev->iobase + DT2817_DATA + 3) << 24);
return insn->n;
}
static int dt2817_attach(struct comedi_device *dev, struct comedi_devconfig *it)
{
int ret;
struct comedi_subdevice *s;
ret = comedi_request_region(dev, it->options[0], DT2817_SIZE);
if (ret)
return ret;
ret = comedi_alloc_subdevices(dev, 1);
if (ret)
return ret;
s = &dev->subdevices[0];
s->n_chan = 32;
s->type = COMEDI_SUBD_DIO;
s->subdev_flags = SDF_READABLE | SDF_WRITABLE;
s->range_table = &range_digital;
s->maxdata = 1;
s->insn_bits = dt2817_dio_insn_bits;
s->insn_config = dt2817_dio_insn_config;
s->state = 0;
outb(0, dev->iobase + DT2817_CR);
return 0;
}
static struct comedi_driver dt2817_driver = {
.driver_name = "dt2817",
.module = THIS_MODULE,
.attach = dt2817_attach,
.detach = comedi_legacy_detach,
};
module_comedi_driver(dt2817_driver);
MODULE_AUTHOR("Comedi http://www.comedi.org");
MODULE_DESCRIPTION("Comedi low-level driver");
MODULE_LICENSE("GPL");
|
440414eed813368cb1853bb64e2da6a88999b259
|
e07eed9bfcc0d93406610e0df4a95385cd173c01
|
/tests/xdrclient.c
|
1834f7ce5dd1a5c584640788c290d1d50cb003e0
|
[] |
permissive
|
ganglia/monitor-core
|
d0c3ed5fe89cfd75c9ac56bbbd1b477e759e719c
|
185ab6b3425d391727a19c380691c4ee42fdff69
|
refs/heads/master
| 2023-08-27T09:34:31.653118
| 2020-12-18T10:29:37
| 2021-11-21T04:48:08
| 2,018,548
| 378
| 183
|
BSD-3-Clause
| 2021-11-21T22:29:14
| 2011-07-08T15:48:34
|
C
|
UTF-8
|
C
| false
| false
| 1,551
|
c
|
xdrclient.c
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <rpc/rpc.h>
#include "gm_protocol.h"
#define MAXMSGLEN 1500
int main( void )
{
XDR x;
gangliaMessage message;
int i, rval, encoded;
char sendbuf[MAXMSGLEN];
gangliaMetricGroup group;
gangliaNamedValue_1 values[20];
/* Create a message to send */
memset(&message, 0, sizeof(gangliaMessage));
message.format = GANGLIA_SIMPLE_METRIC;
message.name = strdup("cpu_num");
/* Setup the info about the group */
group.collected = time(NULL);
group.tn = 1;
group.tmax = 20;
group.dmax = 100;
group.slope = GANGLIA_SLOPE_ZERO_1;
group.quality = GANGLIA_QUALITY_NORMAL_1;
#define NUM_VALUES 10
group.data.data_len = NUM_VALUES;
group.data.data_val = values;
for(i=0; i<NUM_VALUES; i++)
{
values[i].name = strdup("cpu_num");
values[i].value.type = GANGLIA_VALUE_INT_1;
values[i].value.gangliaValue_1_u.i = 4;
}
/* Create the XDR send stream */
xdrmem_create(&x, sendbuf, MAXMSGLEN, XDR_ENCODE);
/* Write the gangliaMessage to the stream */
xdr_gangliaMessage(&x, &message);
/* Find out how big the message is encoded */
encoded = xdr_getpos(&x);
fprintf(stderr,"CLIENT encoded XDR message size=%d\n", encoded);
/* Write the buffer to stdout */
rval = write(1, sendbuf, encoded );
if(rval != encoded)
{
fprintf(stderr,"ERROR! Client unable to send complete XDR message\n");
return 1;
}
fprintf(stderr,"CLIENT successfully sent XDR message\n");
return 0;
}
|
1b2d3697b996588774789ecf5f796445ceb8e7c2
|
6b265b404d74b09e1b1e3710e8ea872cd50f4263
|
/Debugging/Gdb/C/fib_okay.c
|
6f05eb00065d1e15f5764f0ee2d173cc55b808b2
|
[
"CC-BY-4.0"
] |
permissive
|
gjbex/training-material
|
cdc189469ae2c7d43784ecdcb4bcca10ecbc21ae
|
e748466a2af9f3388a8b0ed091aa061dbfc752d6
|
refs/heads/master
| 2023-08-17T11:02:27.322865
| 2023-04-27T14:42:55
| 2023-04-27T14:42:55
| 18,587,808
| 130
| 60
|
CC-BY-4.0
| 2023-08-03T07:07:25
| 2014-04-09T06:35:58
|
Jupyter Notebook
|
UTF-8
|
C
| false
| false
| 165
|
c
|
fib_okay.c
|
#include "fib.h"
long fib(long n) {
if (n < 2)
return 1;
else {
long a = fib(n-1);
long b = fib(n-2);
return a + b;
}
}
|
50058a5973a992993036efdec7e56c62badf03d7
|
7664f318ed04bd0680f3d82321c18896e3ef6ad5
|
/src/overlays/actors/ovl_En_Attack_Niw/z_en_attack_niw.h
|
381b6a2aae771cd89bc966298daf03155877584c
|
[] |
no_license
|
zeldaret/oot
|
9c80ce17f2d8fd61514b375f92ee4739b5ce9d4e
|
2875ab4fcf5c5f81d76353d1ee0024c9ea8d0b23
|
refs/heads/master
| 2023-08-29T05:29:31.356427
| 2023-08-28T22:48:52
| 2023-08-28T22:48:52
| 247,875,738
| 4,401
| 802
| null | 2023-09-14T13:34:38
| 2020-03-17T04:02:19
|
C
|
UTF-8
|
C
| false
| false
| 1,541
|
h
|
z_en_attack_niw.h
|
#ifndef Z_EN_ATTACK_NIW_H
#define Z_EN_ATTACK_NIW_H
#include "ultra64.h"
#include "global.h"
struct EnAttackNiw;
typedef void (*EnAttackNiwActionFunc)(struct EnAttackNiw*, PlayState*);
typedef struct EnAttackNiw {
/* 0x0000 */ Actor actor;
/* 0x014C */ SkelAnime skelAnime;
/* 0x0190 */ Vec3s jointTable[16];
/* 0x01F0 */ Vec3s morphTable[16];
/* 0x0250 */ EnAttackNiwActionFunc actionFunc;
/* 0x0254 */ s16 unk_254;
/* 0x0256 */ s16 unk_256;
/* 0x0258 */ s16 unk_258;
/* 0x025A */ s16 unk_25A;
/* 0x025C */ s16 unk_25C;
/* 0x025E */ s16 unk_25E;
/* 0x0260 */ s16 unk_260;
/* 0x0262 */ s16 unk_262;
/* 0x0264 */ f32 unk_264;
/* 0x0268 */ f32 unk_268;
/* 0x026C */ f32 unk_26C;
/* 0x0270 */ char unk_270[0x8];
/* 0x0278 */ f32 unk_278;
/* 0x027C */ f32 unk_27C;
/* 0x0280 */ f32 unk_280;
/* 0x0284 */ f32 unk_284;
/* 0x0284 */ f32 unk_288;
/* 0x028C */ s16 unk_28C;
/* 0x028E */ s16 unk_28E;
/* 0x0290 */ char unk_290[0x2];
/* 0x0292 */ s16 unk_292;
/* 0x0294 */ char unk_294[0x2];
/* 0x0296 */ s16 unk_296;
/* 0x0298 */ Vec3f unk_298;
/* 0x02A4 */ Vec3f unk_2A4;
/* 0x02B0 */ Vec3f unk_2B0;
/* 0x02BC */ f32 unk_2BC;
/* 0x02C0 */ f32 unk_2C0;
/* 0x02C4 */ char unk_2C4[0xC];
/* 0x02D0 */ f32 unk_2D0;
/* 0x02D4 */ f32 unk_2D4;
/* 0x02D8 */ char unk_2D8[0x4];
/* 0x02DC */ f32 unk_2DC;
/* 0x02E0 */ f32 unk_2E0;
/* 0x02E4 */ f32 unk_2E4;
} EnAttackNiw; // size = 0x02E8
#endif
|
aa3b0a8ebaaea0a0ab25d3e493d9a5dfe2273b41
|
1ae137c798c1e4bdef49a50db2c11d69516fdf0b
|
/playground/pedalShieldUno/AudioDSP/metronome/waveform.h
|
ac5c5435f8b6a4ba51aec2e2c721c7d80d035646
|
[
"MIT"
] |
permissive
|
tardate/LittleArduinoProjects
|
f10049ce866568410f49c352c4ce779868deb3fe
|
4c5dc423df60b4402d50792660574b979e033ab4
|
refs/heads/master
| 2023-08-11T19:04:09.824796
| 2023-08-08T00:37:51
| 2023-08-08T14:10:01
| 23,506,189
| 606
| 229
|
MIT
| 2022-12-10T03:39:29
| 2014-08-31T04:09:00
|
C++
|
UTF-8
|
C
| false
| false
| 5,097
|
h
|
waveform.h
|
#ifndef waveform_h
#define waveform_h
const byte waveform[]=
{
0x80,0x80,0x81,0x82,0x83,0x83,0x84,0x85,0x86,0x87,0x87,0x88,0x89,0x8a,0x8a,0x8b,
0x8c,0x8d,0x8e,0x8e,0x8f,0x90,0x91,0x91,0x92,0x93,0x94,0x95,0x95,0x96,0x97,0x98,
0x98,0x99,0x9a,0x9b,0x9b,0x9c,0x9d,0x9e,0x9f,0x9f,0xa0,0xa1,0xa2,0xa2,0xa3,0xa4,
0xa5,0xa5,0xa6,0xa7,0xa8,0xa8,0xa9,0xaa,0xaa,0xab,0xac,0xad,0xad,0xae,0xaf,0xb0,
0xb0,0xb1,0xb2,0xb2,0xb3,0xb4,0xb5,0xb5,0xb6,0xb7,0xb7,0xb8,0xb9,0xba,0xba,0xbb,
0xbc,0xbc,0xbd,0xbe,0xbe,0xbf,0xc0,0xc0,0xc1,0xc2,0xc2,0xc3,0xc4,0xc4,0xc5,0xc6,
0xc6,0xc7,0xc8,0xc8,0xc9,0xca,0xca,0xcb,0xcc,0xcc,0xcd,0xcd,0xce,0xcf,0xcf,0xd0,
0xd0,0xd1,0xd2,0xd2,0xd3,0xd3,0xd4,0xd5,0xd5,0xd6,0xd6,0xd7,0xd7,0xd8,0xd9,0xd9,
0xda,0xda,0xdb,0xdb,0xdc,0xdc,0xdd,0xde,0xde,0xdf,0xdf,0xe0,0xe0,0xe1,0xe1,0xe2,
0xe2,0xe3,0xe3,0xe4,0xe4,0xe5,0xe5,0xe6,0xe6,0xe6,0xe7,0xe7,0xe8,0xe8,0xe9,0xe9,
0xea,0xea,0xea,0xeb,0xeb,0xec,0xec,0xed,0xed,0xed,0xee,0xee,0xef,0xef,0xef,0xf0,
0xf0,0xf0,0xf1,0xf1,0xf1,0xf2,0xf2,0xf2,0xf3,0xf3,0xf3,0xf4,0xf4,0xf4,0xf5,0xf5,
0xf5,0xf6,0xf6,0xf6,0xf7,0xf7,0xf7,0xf7,0xf8,0xf8,0xf8,0xf8,0xf9,0xf9,0xf9,0xf9,
0xfa,0xfa,0xfa,0xfa,0xfa,0xfb,0xfb,0xfb,0xfb,0xfb,0xfc,0xfc,0xfc,0xfc,0xfc,0xfc,
0xfd,0xfd,0xfd,0xfd,0xfd,0xfd,0xfd,0xfe,0xfe,0xfe,0xfe,0xfe,0xfe,0xfe,0xfe,0xfe,
0xfe,0xfe,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfe,
0xfe,0xfe,0xfe,0xfe,0xfe,0xfe,0xfe,0xfe,0xfe,0xfd,0xfd,0xfd,0xfd,0xfd,0xfd,0xfd,
0xfd,0xfc,0xfc,0xfc,0xfc,0xfc,0xfb,0xfb,0xfb,0xfb,0xfb,0xfb,0xfa,0xfa,0xfa,0xfa,
0xf9,0xf9,0xf9,0xf9,0xf8,0xf8,0xf8,0xf8,0xf7,0xf7,0xf7,0xf7,0xf6,0xf6,0xf6,0xf5,
0xf5,0xf5,0xf5,0xf4,0xf4,0xf4,0xf3,0xf3,0xf3,0xf2,0xf2,0xf2,0xf1,0xf1,0xf1,0xf0,
0xf0,0xef,0xef,0xef,0xee,0xee,0xee,0xed,0xed,0xec,0xec,0xeb,0xeb,0xeb,0xea,0xea,
0xe9,0xe9,0xe8,0xe8,0xe8,0xe7,0xe7,0xe6,0xe6,0xe5,0xe5,0xe4,0xe4,0xe3,0xe3,0xe2,
0xe2,0xe1,0xe1,0xe0,0xe0,0xdf,0xdf,0xde,0xde,0xdd,0xdd,0xdc,0xdc,0xdb,0xdb,0xda,
0xd9,0xd9,0xd8,0xd8,0xd7,0xd7,0xd6,0xd5,0xd5,0xd4,0xd4,0xd3,0xd3,0xd2,0xd1,0xd1,
0xd0,0xd0,0xcf,0xce,0xce,0xcd,0xcc,0xcc,0xcb,0xcb,0xca,0xc9,0xc9,0xc8,0xc7,0xc7,
0xc6,0xc5,0xc5,0xc4,0xc3,0xc3,0xc2,0xc1,0xc1,0xc0,0xbf,0xbf,0xbe,0xbd,0xbd,0xbc,
0xbb,0xbb,0xba,0xb9,0xb9,0xb8,0xb7,0xb6,0xb6,0xb5,0xb4,0xb4,0xb3,0xb2,0xb1,0xb1,
0xb0,0xaf,0xaf,0xae,0xad,0xac,0xac,0xab,0xaa,0xa9,0xa9,0xa8,0xa7,0xa6,0xa6,0xa5,
0xa4,0xa3,0xa3,0xa2,0xa1,0xa0,0xa0,0x9f,0x9e,0x9d,0x9d,0x9c,0x9b,0x9a,0x9a,0x99,
0x98,0x97,0x96,0x96,0x95,0x94,0x93,0x93,0x92,0x91,0x90,0x90,0x8f,0x8e,0x8d,0x8c,
0x8c,0x8b,0x8a,0x89,0x88,0x88,0x87,0x86,0x85,0x85,0x84,0x83,0x82,0x81,0x81,0x80,
0x7f,0x7e,0x7e,0x7d,0x7c,0x7b,0x7a,0x7a,0x79,0x78,0x77,0x77,0x76,0x75,0x74,0x73,
0x73,0x72,0x71,0x70,0x6f,0x6f,0x6e,0x6d,0x6c,0x6c,0x6b,0x6a,0x69,0x69,0x68,0x67,
0x66,0x65,0x65,0x64,0x63,0x62,0x62,0x61,0x60,0x5f,0x5f,0x5e,0x5d,0x5c,0x5c,0x5b,
0x5a,0x59,0x59,0x58,0x57,0x56,0x56,0x55,0x54,0x53,0x53,0x52,0x51,0x50,0x50,0x4f,
0x4e,0x4e,0x4d,0x4c,0x4b,0x4b,0x4a,0x49,0x49,0x48,0x47,0x46,0x46,0x45,0x44,0x44,
0x43,0x42,0x42,0x41,0x40,0x40,0x3f,0x3e,0x3e,0x3d,0x3c,0x3c,0x3b,0x3a,0x3a,0x39,
0x38,0x38,0x37,0x36,0x36,0x35,0x34,0x34,0x33,0x33,0x32,0x31,0x31,0x30,0x2f,0x2f,
0x2e,0x2e,0x2d,0x2c,0x2c,0x2b,0x2b,0x2a,0x2a,0x29,0x28,0x28,0x27,0x27,0x26,0x26,
0x25,0x24,0x24,0x23,0x23,0x22,0x22,0x21,0x21,0x20,0x20,0x1f,0x1f,0x1e,0x1e,0x1d,
0x1d,0x1c,0x1c,0x1b,0x1b,0x1a,0x1a,0x19,0x19,0x18,0x18,0x17,0x17,0x17,0x16,0x16,
0x15,0x15,0x14,0x14,0x14,0x13,0x13,0x12,0x12,0x11,0x11,0x11,0x10,0x10,0x10,0xf,
0xf,0xe,0xe,0xe,0xd,0xd,0xd,0xc,0xc,0xc,0xb,0xb,0xb,0xa,0xa,0xa,
0xa,0x9,0x9,0x9,0x8,0x8,0x8,0x8,0x7,0x7,0x7,0x7,0x6,0x6,0x6,0x6,
0x5,0x5,0x5,0x5,0x4,0x4,0x4,0x4,0x4,0x4,0x3,0x3,0x3,0x3,0x3,0x2,
0x2,0x2,0x2,0x2,0x2,0x2,0x2,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,
0x1,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x1,0x1,
0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x2,0x2,0x2,0x2,0x2,0x2,0x2,
0x3,0x3,0x3,0x3,0x3,0x3,0x4,0x4,0x4,0x4,0x4,0x5,0x5,0x5,0x5,0x5,
0x6,0x6,0x6,0x6,0x7,0x7,0x7,0x7,0x8,0x8,0x8,0x8,0x9,0x9,0x9,0xa,
0xa,0xa,0xb,0xb,0xb,0xc,0xc,0xc,0xd,0xd,0xd,0xe,0xe,0xe,0xf,0xf,
0xf,0x10,0x10,0x10,0x11,0x11,0x12,0x12,0x12,0x13,0x13,0x14,0x14,0x15,0x15,0x15,
0x16,0x16,0x17,0x17,0x18,0x18,0x19,0x19,0x19,0x1a,0x1a,0x1b,0x1b,0x1c,0x1c,0x1d,
0x1d,0x1e,0x1e,0x1f,0x1f,0x20,0x20,0x21,0x21,0x22,0x23,0x23,0x24,0x24,0x25,0x25,
0x26,0x26,0x27,0x28,0x28,0x29,0x29,0x2a,0x2a,0x2b,0x2c,0x2c,0x2d,0x2d,0x2e,0x2f,
0x2f,0x30,0x30,0x31,0x32,0x32,0x33,0x33,0x34,0x35,0x35,0x36,0x37,0x37,0x38,0x39,
0x39,0x3a,0x3b,0x3b,0x3c,0x3d,0x3d,0x3e,0x3f,0x3f,0x40,0x41,0x41,0x42,0x43,0x43,
0x44,0x45,0x45,0x46,0x47,0x48,0x48,0x49,0x4a,0x4a,0x4b,0x4c,0x4d,0x4d,0x4e,0x4f,
0x4f,0x50,0x51,0x52,0x52,0x53,0x54,0x55,0x55,0x56,0x57,0x57,0x58,0x59,0x5a,0x5a,
0x5b,0x5c,0x5d,0x5d,0x5e,0x5f,0x60,0x60,0x61,0x62,0x63,0x64,0x64,0x65,0x66,0x67,
0x67,0x68,0x69,0x6a,0x6a,0x6b,0x6c,0x6d,0x6e,0x6e,0x6f,0x70,0x71,0x71,0x72,0x73,
0x74,0x75,0x75,0x76,0x77,0x78,0x78,0x79,0x7a,0x7b,0x7c,0x7c,0x7d,0x7e,0x7f,0x80,
};
#endif
|
35a5e570f1003e09d6b7bb0bbca9f1d57892fcb4
|
75196819c910f3fd523f1a4d28e5d0fe12570ab1
|
/src/bdb53/src/common/mkpath.c
|
8db63cbedb43f96095e42d8a84335327b21ceb19
|
[
"BSD-3-Clause",
"Sleepycat",
"MIT"
] |
permissive
|
gridcoin-community/Gridcoin-Research
|
889967579b5b05bcc3ae836697a0f173b5ae91ea
|
21414dd0f63c9a34060f7f762f08d1a52aeb9e87
|
refs/heads/development
| 2023-09-04T09:21:55.006935
| 2023-09-03T17:45:20
| 2023-09-03T17:45:20
| 23,332,350
| 292
| 117
|
MIT
| 2023-09-11T10:22:10
| 2014-08-25T23:41:04
|
HTML
|
UTF-8
|
C
| false
| false
| 1,418
|
c
|
mkpath.c
|
/*-
* See the file LICENSE for redistribution information.
*
* Copyright (c) 1997, 2013 Oracle and/or its affiliates. All rights reserved.
*
* $Id$
*/
#include "db_config.h"
#include "db_int.h"
/*
* __db_mkpath -- --
* Create intermediate directories.
*
* PUBLIC: int __db_mkpath __P((ENV *, const char *));
*/
int
__db_mkpath(env, name)
ENV *env;
const char *name;
{
size_t len;
int ret;
char *p, *t, savech;
/*
* Get a copy so we can modify the string. It's a path and potentially
* quite long, so don't allocate the space on the stack.
*/
len = strlen(name) + 1;
if ((ret = __os_malloc(env, len, &t)) != 0)
return (ret);
memcpy(t, name, len);
/*
* Cycle through the path, creating intermediate directories.
*
* Skip the first byte if it's a path separator, it's the start of an
* absolute pathname.
*/
if (PATH_SEPARATOR[1] == '\0') {
for (p = t + 1; p[0] != '\0'; ++p)
if (p[0] == PATH_SEPARATOR[0]) {
savech = *p;
*p = '\0';
if (__os_exists(env, t, NULL) &&
(ret = __os_mkdir(
env, t, env->dir_mode)) != 0)
break;
*p = savech;
}
} else
for (p = t + 1; p[0] != '\0'; ++p)
if (strchr(PATH_SEPARATOR, p[0]) != NULL) {
savech = *p;
*p = '\0';
if (__os_exists(env, t, NULL) &&
(ret = __os_mkdir(
env, t, env->dir_mode)) != 0)
break;
*p = savech;
}
__os_free(env, t);
return (ret);
}
|
116c7b76e46c2766c5c4ea336d2e343d7a193f4c
|
1231e1bf4117cfaaa54bd4752cca1bdb71290cec
|
/ext/stub/typehinting/testabstract.zep.c
|
f789973cdd83f71874ff13493bda48dedf094092
|
[
"MIT"
] |
permissive
|
zephir-lang/zephir
|
ac53ec68e35d19860a4d80224d94f38a6a5e04b5
|
6773f19d9b272cafee96b9a30f9b152c28e982ea
|
refs/heads/development
| 2023-08-31T10:33:38.621586
| 2023-02-28T10:27:43
| 2023-02-28T10:27:43
| 11,478,636
| 291
| 47
|
MIT
| 2023-08-28T22:07:11
| 2013-07-17T14:49:27
|
PHP
|
UTF-8
|
C
| false
| true
| 1,098
|
c
|
testabstract.zep.c
|
#ifdef HAVE_CONFIG_H
#include "../../ext_config.h"
#endif
#include <php.h>
#include "../../php_ext.h"
#include "../../ext.h"
#include <Zend/zend_operators.h>
#include <Zend/zend_exceptions.h>
#include <Zend/zend_interfaces.h>
#include "kernel/main.h"
ZEPHIR_INIT_CLASS(Stub_TypeHinting_TestAbstract)
{
ZEPHIR_REGISTER_CLASS(Stub\\TypeHinting, TestAbstract, stub, typehinting_testabstract, stub_typehinting_testabstract_method_entry, ZEND_ACC_EXPLICIT_ABSTRACT_CLASS);
return SUCCESS;
}
PHP_METHOD(Stub_TypeHinting_TestAbstract, testFunc)
{
}
PHP_METHOD(Stub_TypeHinting_TestAbstract, returnOneOfScalar)
{
}
PHP_METHOD(Stub_TypeHinting_TestAbstract, returnInt)
{
}
PHP_METHOD(Stub_TypeHinting_TestAbstract, returnUint)
{
}
PHP_METHOD(Stub_TypeHinting_TestAbstract, returnLong)
{
}
PHP_METHOD(Stub_TypeHinting_TestAbstract, returnFloat)
{
}
PHP_METHOD(Stub_TypeHinting_TestAbstract, returnDouble)
{
}
PHP_METHOD(Stub_TypeHinting_TestAbstract, returnString)
{
}
PHP_METHOD(Stub_TypeHinting_TestAbstract, returnBoolean)
{
}
PHP_METHOD(Stub_TypeHinting_TestAbstract, returnChar)
{
}
|
cb47d352d74da3ced71b4c445299a26c10089f0c
|
fdbb74a95924e2677466614f6ab6e2bb13b2a95a
|
/third_party/python/Parser/parsetok.c
|
258ae5c3fa06a14e939d9897fcb2c25e4214a788
|
[
"Python-2.0",
"GPL-1.0-or-later",
"LicenseRef-scancode-python-cwi",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-other-copyleft",
"ISC"
] |
permissive
|
jart/cosmopolitan
|
fb11b5658939023977060a7c6c71a74093d9cb44
|
0d748ad58e1063dd1f8560f18a0c75293b9415b7
|
refs/heads/master
| 2023-09-06T09:17:29.303607
| 2023-09-02T03:49:13
| 2023-09-02T03:50:18
| 272,457,606
| 11,887
| 435
|
ISC
| 2023-09-14T17:47:58
| 2020-06-15T14:16:13
|
C
|
UTF-8
|
C
| false
| false
| 11,857
|
c
|
parsetok.c
|
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-│
│vi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :vi│
╞══════════════════════════════════════════════════════════════════════════════╡
│ Python 3 │
│ https://docs.python.org/3/license.html │
╚─────────────────────────────────────────────────────────────────────────────*/
#include "third_party/python/Include/parsetok.h"
#include "third_party/python/Include/errcode.h"
#include "third_party/python/Include/graminit.h"
#include "third_party/python/Include/grammar.h"
#include "third_party/python/Include/node.h"
#include "third_party/python/Include/objimpl.h"
#include "third_party/python/Include/pgenheaders.h"
#include "third_party/python/Include/pyerrors.h"
#include "third_party/python/Parser/parser.h"
#include "third_party/python/Parser/tokenizer.h"
/* clang-format off */
static node *parsetok(struct tok_state *, grammar *, int, perrdetail *, int *);
static int initerr(perrdetail *err_ret, PyObject * filename);
/* Parse input coming from a string. Return error code, print some errors. */
node *
PyParser_ParseString(const char *s, grammar *g, int start, perrdetail *err_ret)
{
return PyParser_ParseStringFlagsFilename(s, NULL, g, start, err_ret, 0);
}
node *
PyParser_ParseStringFlags(const char *s, grammar *g, int start,
perrdetail *err_ret, int flags)
{
return PyParser_ParseStringFlagsFilename(s, NULL,
g, start, err_ret, flags);
}
node *
PyParser_ParseStringFlagsFilename(const char *s, const char *filename,
grammar *g, int start,
perrdetail *err_ret, int flags)
{
int iflags = flags;
return PyParser_ParseStringFlagsFilenameEx(s, filename, g, start,
err_ret, &iflags);
}
node *
PyParser_ParseStringObject(const char *s, PyObject *filename,
grammar *g, int start,
perrdetail *err_ret, int *flags)
{
struct tok_state *tok;
int exec_input = start == file_input;
if (initerr(err_ret, filename) < 0)
return NULL;
if (*flags & PyPARSE_IGNORE_COOKIE)
tok = PyTokenizer_FromUTF8(s, exec_input);
else
tok = PyTokenizer_FromString(s, exec_input);
if (tok == NULL) {
err_ret->error = PyErr_Occurred() ? E_DECODE : E_NOMEM;
return NULL;
}
#ifndef PGEN
Py_INCREF(err_ret->filename);
tok->filename = err_ret->filename;
#endif
return parsetok(tok, g, start, err_ret, flags);
}
node *
PyParser_ParseStringFlagsFilenameEx(const char *s, const char *filename_str,
grammar *g, int start,
perrdetail *err_ret, int *flags)
{
node *n;
PyObject *filename = NULL;
#ifndef PGEN
if (filename_str != NULL) {
filename = PyUnicode_DecodeFSDefault(filename_str);
if (filename == NULL) {
err_ret->error = E_ERROR;
return NULL;
}
}
#endif
n = PyParser_ParseStringObject(s, filename, g, start, err_ret, flags);
#ifndef PGEN
Py_XDECREF(filename);
#endif
return n;
}
/* Parse input coming from a file. Return error code, print some errors. */
node *
PyParser_ParseFile(FILE *fp, const char *filename, grammar *g, int start,
const char *ps1, const char *ps2,
perrdetail *err_ret)
{
return PyParser_ParseFileFlags(fp, filename, NULL,
g, start, ps1, ps2, err_ret, 0);
}
node *
PyParser_ParseFileFlags(FILE *fp, const char *filename, const char *enc,
grammar *g, int start,
const char *ps1, const char *ps2,
perrdetail *err_ret, int flags)
{
int iflags = flags;
return PyParser_ParseFileFlagsEx(fp, filename, enc, g, start, ps1,
ps2, err_ret, &iflags);
}
node *
PyParser_ParseFileObject(FILE *fp, PyObject *filename,
const char *enc, grammar *g, int start,
const char *ps1, const char *ps2,
perrdetail *err_ret, int *flags)
{
struct tok_state *tok;
if (initerr(err_ret, filename) < 0)
return NULL;
if ((tok = PyTokenizer_FromFile(fp, enc, ps1, ps2)) == NULL) {
err_ret->error = E_NOMEM;
return NULL;
}
#ifndef PGEN
Py_INCREF(err_ret->filename);
tok->filename = err_ret->filename;
#endif
return parsetok(tok, g, start, err_ret, flags);
}
node *
PyParser_ParseFileFlagsEx(FILE *fp, const char *filename,
const char *enc, grammar *g, int start,
const char *ps1, const char *ps2,
perrdetail *err_ret, int *flags)
{
node *n;
PyObject *fileobj = NULL;
#ifndef PGEN
if (filename != NULL) {
fileobj = PyUnicode_DecodeFSDefault(filename);
if (fileobj == NULL) {
err_ret->error = E_ERROR;
return NULL;
}
}
#endif
n = PyParser_ParseFileObject(fp, fileobj, enc, g,
start, ps1, ps2, err_ret, flags);
#ifndef PGEN
Py_XDECREF(fileobj);
#endif
return n;
}
#ifdef PY_PARSER_REQUIRES_FUTURE_KEYWORD
#if 0
static const char with_msg[] =
"%s:%d: Warning: 'with' will become a reserved keyword in Python 2.6\n";
static const char as_msg[] =
"%s:%d: Warning: 'as' will become a reserved keyword in Python 2.6\n";
static void
warn(const char *msg, const char *filename, int lineno)
{
if (filename == NULL)
filename = "<string>";
PySys_WriteStderr(msg, filename, lineno);
}
#endif
#endif
/* Parse input coming from the given tokenizer structure.
Return error code. */
static node *
parsetok(struct tok_state *tok, grammar *g, int start, perrdetail *err_ret,
int *flags)
{
parser_state *ps;
node *n;
int started = 0;
if ((ps = PyParser_New(g, start)) == NULL) {
err_ret->error = E_NOMEM;
PyTokenizer_Free(tok);
return NULL;
}
#ifdef PY_PARSER_REQUIRES_FUTURE_KEYWORD
if (*flags & PyPARSE_BARRY_AS_BDFL)
ps->p_flags |= CO_FUTURE_BARRY_AS_BDFL;
#endif
for (;;) {
char *a, *b;
int type;
size_t len;
char *str;
int col_offset;
type = PyTokenizer_Get(tok, &a, &b);
if (type == ERRORTOKEN) {
err_ret->error = tok->done;
break;
}
if (type == ENDMARKER && started) {
type = NEWLINE; /* Add an extra newline */
started = 0;
/* Add the right number of dedent tokens,
except if a certain flag is given --
codeop.py uses this. */
if (tok->indent &&
!(*flags & PyPARSE_DONT_IMPLY_DEDENT))
{
tok->pendin = -tok->indent;
tok->indent = 0;
}
}
else
started = 1;
len = (a != NULL && b != NULL) ? b - a : 0;
str = (char *) PyObject_MALLOC(len + 1);
if (str == NULL) {
err_ret->error = E_NOMEM;
break;
}
if (len > 0)
strncpy(str, a, len);
str[len] = '\0';
#ifdef PY_PARSER_REQUIRES_FUTURE_KEYWORD
if (type == NOTEQUAL) {
if (!(ps->p_flags & CO_FUTURE_BARRY_AS_BDFL) &&
strcmp(str, "!=")) {
PyObject_FREE(str);
err_ret->error = E_SYNTAX;
break;
}
else if ((ps->p_flags & CO_FUTURE_BARRY_AS_BDFL) &&
strcmp(str, "<>")) {
PyObject_FREE(str);
err_ret->expected = NOTEQUAL;
err_ret->error = E_SYNTAX;
break;
}
}
#endif
if (a != NULL && a >= tok->line_start) {
col_offset = Py_SAFE_DOWNCAST(a - tok->line_start,
intptr_t, int);
}
else {
col_offset = -1;
}
if ((err_ret->error =
PyParser_AddToken(ps, (int)type, str,
tok->lineno, col_offset,
&(err_ret->expected))) != E_OK) {
if (err_ret->error != E_DONE) {
PyObject_FREE(str);
err_ret->token = type;
}
break;
}
}
if (err_ret->error == E_DONE) {
n = ps->p_tree;
ps->p_tree = NULL;
#ifndef PGEN
/* Check that the source for a single input statement really
is a single statement by looking at what is left in the
buffer after parsing. Trailing whitespace and comments
are OK. */
if (start == single_input) {
char *cur = tok->cur;
char c = *tok->cur;
for (;;) {
while (c == ' ' || c == '\t' || c == '\n' || c == '\014')
c = *++cur;
if (!c)
break;
if (c != '#') {
err_ret->error = E_BADSINGLE;
PyNode_Free(n);
n = NULL;
break;
}
/* Suck up comment. */
while (c && c != '\n')
c = *++cur;
}
}
#endif
}
else
n = NULL;
#ifdef PY_PARSER_REQUIRES_FUTURE_KEYWORD
*flags = ps->p_flags;
#endif
PyParser_Delete(ps);
if (n == NULL) {
if (tok->done == E_EOF)
err_ret->error = E_EOF;
err_ret->lineno = tok->lineno;
if (tok->buf != NULL) {
size_t len;
assert(tok->cur - tok->buf < INT_MAX);
err_ret->offset = (int)(tok->cur - tok->buf);
len = tok->inp - tok->buf;
err_ret->text = (char *) PyObject_MALLOC(len + 1);
if (err_ret->text != NULL) {
if (len > 0)
strncpy(err_ret->text, tok->buf, len);
err_ret->text[len] = '\0';
}
}
} else if (tok->encoding != NULL) {
/* 'nodes->n_str' uses PyObject_*, while 'tok->encoding' was
* allocated using PyMem_
*/
node* r = PyNode_New(encoding_decl);
if (r)
r->n_str = PyObject_MALLOC(strlen(tok->encoding)+1);
if (!r || !r->n_str) {
err_ret->error = E_NOMEM;
if (r)
PyObject_FREE(r);
n = NULL;
goto done;
}
strcpy(r->n_str, tok->encoding);
PyMem_FREE(tok->encoding);
tok->encoding = NULL;
r->n_nchildren = 1;
r->n_child = n;
n = r;
}
done:
PyTokenizer_Free(tok);
return n;
}
static int
initerr(perrdetail *err_ret, PyObject *filename)
{
err_ret->error = E_OK;
err_ret->lineno = 0;
err_ret->offset = 0;
err_ret->text = NULL;
err_ret->token = -1;
err_ret->expected = -1;
#ifndef PGEN
if (filename) {
Py_INCREF(filename);
err_ret->filename = filename;
}
else {
err_ret->filename = PyUnicode_FromString("<string>");
if (err_ret->filename == NULL) {
err_ret->error = E_ERROR;
return -1;
}
}
#endif
return 0;
}
|
4b0cf32a59be43516b6637a821f6a58579e42dcf
|
7eaf54a78c9e2117247cb2ab6d3a0c20719ba700
|
/SOFTWARE/A64-TERES/linux-a64/drivers/media/platform/omap3isp/luma_enhance_table.h
|
098b45e2280f064fc3a304555e3925c1b61ee841
|
[
"LicenseRef-scancode-free-unknown",
"Apache-2.0",
"Linux-syscall-note",
"GPL-2.0-only",
"GPL-1.0-or-later"
] |
permissive
|
OLIMEX/DIY-LAPTOP
|
ae82f4ee79c641d9aee444db9a75f3f6709afa92
|
a3fafd1309135650bab27f5eafc0c32bc3ca74ee
|
refs/heads/rel3
| 2023-08-04T01:54:19.483792
| 2023-04-03T07:18:12
| 2023-04-03T07:18:12
| 80,094,055
| 507
| 92
|
Apache-2.0
| 2023-04-03T07:05:59
| 2017-01-26T07:25:50
|
C
|
UTF-8
|
C
| false
| false
| 2,086
|
h
|
luma_enhance_table.h
|
/*
* luma_enhance_table.h
*
* TI OMAP3 ISP - Luminance enhancement table
*
* Copyright (C) 2010 Nokia Corporation
* Copyright (C) 2009 Texas Instruments, Inc.
*
* Contacts: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
* Sakari Ailus <sakari.ailus@iki.fi>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA
*/
1047552, 1047552, 1047552, 1047552, 1047552, 1047552, 1047552, 1047552,
1047552, 1047552, 1047552, 1047552, 1047552, 1047552, 1047552, 1047552,
1047552, 1047552, 1047552, 1047552, 1047552, 1047552, 1047552, 1047552,
1047552, 1047552, 1047552, 1047552, 1048575, 1047551, 1046527, 1045503,
1044479, 1043455, 1042431, 1041407, 1040383, 1039359, 1038335, 1037311,
1036287, 1035263, 1034239, 1033215, 1032191, 1031167, 1030143, 1028096,
1028096, 1028096, 1028096, 1028096, 1028096, 1028096, 1028096, 1028096,
1028096, 1028100, 1032196, 1036292, 1040388, 1044484, 0, 0,
0, 5, 5125, 10245, 15365, 20485, 25605, 30720,
30720, 30720, 30720, 30720, 30720, 30720, 30720, 30720,
30720, 30720, 31743, 30719, 29695, 28671, 27647, 26623,
25599, 24575, 23551, 22527, 21503, 20479, 19455, 18431,
17407, 16383, 15359, 14335, 13311, 12287, 11263, 10239,
9215, 8191, 7167, 6143, 5119, 4095, 3071, 1024,
1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024,
1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024
|
7bad933294a41619075ba48a4120f7ec732aa99b
|
7eaf54a78c9e2117247cb2ab6d3a0c20719ba700
|
/SOFTWARE/A64-TERES/linux-a64/arch/arm/mach-ks8695/time.c
|
c272a3863d5f4884dc492bb578d2bed3afcab588
|
[
"Linux-syscall-note",
"GPL-2.0-only",
"GPL-1.0-or-later",
"LicenseRef-scancode-free-unknown",
"Apache-2.0"
] |
permissive
|
OLIMEX/DIY-LAPTOP
|
ae82f4ee79c641d9aee444db9a75f3f6709afa92
|
a3fafd1309135650bab27f5eafc0c32bc3ca74ee
|
refs/heads/rel3
| 2023-08-04T01:54:19.483792
| 2023-04-03T07:18:12
| 2023-04-03T07:18:12
| 80,094,055
| 507
| 92
|
Apache-2.0
| 2023-04-03T07:05:59
| 2017-01-26T07:25:50
|
C
|
UTF-8
|
C
| false
| false
| 4,865
|
c
|
time.c
|
/*
* arch/arm/mach-ks8695/time.c
*
* Copyright (C) 2006 Ben Dooks <ben@simtec.co.uk>
* Copyright (C) 2006 Simtec Electronics
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/irq.h>
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/io.h>
#include <linux/clockchips.h>
#include <asm/mach/time.h>
#include <asm/system_misc.h>
#include <mach/regs-irq.h>
#include "generic.h"
#define KS8695_TMR_OFFSET (0xF0000 + 0xE400)
#define KS8695_TMR_VA (KS8695_IO_VA + KS8695_TMR_OFFSET)
#define KS8695_TMR_PA (KS8695_IO_PA + KS8695_TMR_OFFSET)
/*
* Timer registers
*/
#define KS8695_TMCON (0x00) /* Timer Control Register */
#define KS8695_T1TC (0x04) /* Timer 1 Timeout Count Register */
#define KS8695_T0TC (0x08) /* Timer 0 Timeout Count Register */
#define KS8695_T1PD (0x0C) /* Timer 1 Pulse Count Register */
#define KS8695_T0PD (0x10) /* Timer 0 Pulse Count Register */
/* Timer Control Register */
#define TMCON_T1EN (1 << 1) /* Timer 1 Enable */
#define TMCON_T0EN (1 << 0) /* Timer 0 Enable */
/* Timer0 Timeout Counter Register */
#define T0TC_WATCHDOG (0xff) /* Enable watchdog mode */
static void ks8695_set_mode(enum clock_event_mode mode,
struct clock_event_device *evt)
{
u32 tmcon;
if (mode == CLOCK_EVT_FEAT_PERIODIC) {
u32 rate = DIV_ROUND_CLOSEST(KS8695_CLOCK_RATE, HZ);
u32 half = DIV_ROUND_CLOSEST(rate, 2);
/* Disable timer 1 */
tmcon = readl_relaxed(KS8695_TMR_VA + KS8695_TMCON);
tmcon &= ~TMCON_T1EN;
writel_relaxed(tmcon, KS8695_TMR_VA + KS8695_TMCON);
/* Both registers need to count down */
writel_relaxed(half, KS8695_TMR_VA + KS8695_T1TC);
writel_relaxed(half, KS8695_TMR_VA + KS8695_T1PD);
/* Re-enable timer1 */
tmcon |= TMCON_T1EN;
writel_relaxed(tmcon, KS8695_TMR_VA + KS8695_TMCON);
}
}
static int ks8695_set_next_event(unsigned long cycles,
struct clock_event_device *evt)
{
u32 half = DIV_ROUND_CLOSEST(cycles, 2);
u32 tmcon;
/* Disable timer 1 */
tmcon = readl_relaxed(KS8695_TMR_VA + KS8695_TMCON);
tmcon &= ~TMCON_T1EN;
writel_relaxed(tmcon, KS8695_TMR_VA + KS8695_TMCON);
/* Both registers need to count down */
writel_relaxed(half, KS8695_TMR_VA + KS8695_T1TC);
writel_relaxed(half, KS8695_TMR_VA + KS8695_T1PD);
/* Re-enable timer1 */
tmcon |= TMCON_T1EN;
writel_relaxed(tmcon, KS8695_TMR_VA + KS8695_TMCON);
return 0;
}
static struct clock_event_device clockevent_ks8695 = {
.name = "ks8695_t1tc",
.rating = 300, /* Reasonably fast and accurate clock event */
.features = CLOCK_EVT_FEAT_ONESHOT | CLOCK_EVT_FEAT_PERIODIC,
.set_next_event = ks8695_set_next_event,
.set_mode = ks8695_set_mode,
};
/*
* IRQ handler for the timer.
*/
static irqreturn_t ks8695_timer_interrupt(int irq, void *dev_id)
{
struct clock_event_device *evt = &clockevent_ks8695;
evt->event_handler(evt);
return IRQ_HANDLED;
}
static struct irqaction ks8695_timer_irq = {
.name = "ks8695_tick",
.flags = IRQF_DISABLED | IRQF_TIMER,
.handler = ks8695_timer_interrupt,
};
static void ks8695_timer_setup(void)
{
unsigned long tmcon;
/* Disable timer 0 and 1 */
tmcon = readl_relaxed(KS8695_TMR_VA + KS8695_TMCON);
tmcon &= ~TMCON_T0EN;
tmcon &= ~TMCON_T1EN;
writel_relaxed(tmcon, KS8695_TMR_VA + KS8695_TMCON);
/*
* Use timer 1 to fire IRQs on the timeline, minimum 2 cycles
* (one on each counter) maximum 2*2^32, but the API will only
* accept up to a 32bit full word (0xFFFFFFFFU).
*/
clockevents_config_and_register(&clockevent_ks8695,
KS8695_CLOCK_RATE, 2,
0xFFFFFFFFU);
}
void __init ks8695_timer_init(void)
{
ks8695_timer_setup();
/* Enable timer interrupts */
setup_irq(KS8695_IRQ_TIMER1, &ks8695_timer_irq);
}
void ks8695_restart(char mode, const char *cmd)
{
unsigned int reg;
if (mode == 's')
soft_restart(0);
/* disable timer0 */
reg = readl_relaxed(KS8695_TMR_VA + KS8695_TMCON);
writel_relaxed(reg & ~TMCON_T0EN, KS8695_TMR_VA + KS8695_TMCON);
/* enable watchdog mode */
writel_relaxed((10 << 8) | T0TC_WATCHDOG, KS8695_TMR_VA + KS8695_T0TC);
/* re-enable timer0 */
writel_relaxed(reg | TMCON_T0EN, KS8695_TMR_VA + KS8695_TMCON);
}
|
9ed066d5633a71eec759d6629cfee8c66ff130c0
|
8a51a96f61699f0318315ccc89cef39f6866f2b5
|
/src/backend/commands/copyto.c
|
eaa3172793a48813e165a539cff5c8633faaf4ac
|
[
"PostgreSQL"
] |
permissive
|
postgres/postgres
|
979febf2b41c00090d1256228f768f33e7ef3b6f
|
b5934bfd6071fed3a38cea0cfaa93afda63d9c0c
|
refs/heads/master
| 2023-08-31T00:10:01.373472
| 2023-08-30T23:07:48
| 2023-08-30T23:07:48
| 927,442
| 13,691
| 4,807
|
NOASSERTION
| 2023-09-09T13:59:15
| 2010-09-21T11:35:45
|
C
|
UTF-8
|
C
| false
| false
| 34,684
|
c
|
copyto.c
|
/*-------------------------------------------------------------------------
*
* copyto.c
* COPY <table> TO file/program/client
*
* Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* IDENTIFICATION
* src/backend/commands/copyto.c
*
*-------------------------------------------------------------------------
*/
#include "postgres.h"
#include <ctype.h>
#include <unistd.h>
#include <sys/stat.h>
#include "access/heapam.h"
#include "access/htup_details.h"
#include "access/tableam.h"
#include "access/xact.h"
#include "access/xlog.h"
#include "commands/copy.h"
#include "commands/progress.h"
#include "executor/execdesc.h"
#include "executor/executor.h"
#include "executor/tuptable.h"
#include "libpq/libpq.h"
#include "libpq/pqformat.h"
#include "mb/pg_wchar.h"
#include "miscadmin.h"
#include "optimizer/optimizer.h"
#include "pgstat.h"
#include "rewrite/rewriteHandler.h"
#include "storage/fd.h"
#include "tcop/tcopprot.h"
#include "utils/lsyscache.h"
#include "utils/memutils.h"
#include "utils/partcache.h"
#include "utils/rel.h"
#include "utils/snapmgr.h"
/*
* Represents the different dest cases we need to worry about at
* the bottom level
*/
typedef enum CopyDest
{
COPY_FILE, /* to file (or a piped program) */
COPY_FRONTEND, /* to frontend */
COPY_CALLBACK /* to callback function */
} CopyDest;
/*
* This struct contains all the state variables used throughout a COPY TO
* operation.
*
* Multi-byte encodings: all supported client-side encodings encode multi-byte
* characters by having the first byte's high bit set. Subsequent bytes of the
* character can have the high bit not set. When scanning data in such an
* encoding to look for a match to a single-byte (ie ASCII) character, we must
* use the full pg_encoding_mblen() machinery to skip over multibyte
* characters, else we might find a false match to a trailing byte. In
* supported server encodings, there is no possibility of a false match, and
* it's faster to make useless comparisons to trailing bytes than it is to
* invoke pg_encoding_mblen() to skip over them. encoding_embeds_ascii is true
* when we have to do it the hard way.
*/
typedef struct CopyToStateData
{
/* low-level state data */
CopyDest copy_dest; /* type of copy source/destination */
FILE *copy_file; /* used if copy_dest == COPY_FILE */
StringInfo fe_msgbuf; /* used for all dests during COPY TO */
int file_encoding; /* file or remote side's character encoding */
bool need_transcoding; /* file encoding diff from server? */
bool encoding_embeds_ascii; /* ASCII can be non-first byte? */
/* parameters from the COPY command */
Relation rel; /* relation to copy to */
QueryDesc *queryDesc; /* executable query to copy from */
List *attnumlist; /* integer list of attnums to copy */
char *filename; /* filename, or NULL for STDOUT */
bool is_program; /* is 'filename' a program to popen? */
copy_data_dest_cb data_dest_cb; /* function for writing data */
CopyFormatOptions opts;
Node *whereClause; /* WHERE condition (or NULL) */
/*
* Working state
*/
MemoryContext copycontext; /* per-copy execution context */
FmgrInfo *out_functions; /* lookup info for output functions */
MemoryContext rowcontext; /* per-row evaluation context */
uint64 bytes_processed; /* number of bytes processed so far */
} CopyToStateData;
/* DestReceiver for COPY (query) TO */
typedef struct
{
DestReceiver pub; /* publicly-known function pointers */
CopyToState cstate; /* CopyToStateData for the command */
uint64 processed; /* # of tuples processed */
} DR_copy;
/* NOTE: there's a copy of this in copyfromparse.c */
static const char BinarySignature[11] = "PGCOPY\n\377\r\n\0";
/* non-export function prototypes */
static void EndCopy(CopyToState cstate);
static void ClosePipeToProgram(CopyToState cstate);
static void CopyOneRowTo(CopyToState cstate, TupleTableSlot *slot);
static void CopyAttributeOutText(CopyToState cstate, const char *string);
static void CopyAttributeOutCSV(CopyToState cstate, const char *string,
bool use_quote, bool single_attr);
/* Low-level communications functions */
static void SendCopyBegin(CopyToState cstate);
static void SendCopyEnd(CopyToState cstate);
static void CopySendData(CopyToState cstate, const void *databuf, int datasize);
static void CopySendString(CopyToState cstate, const char *str);
static void CopySendChar(CopyToState cstate, char c);
static void CopySendEndOfRow(CopyToState cstate);
static void CopySendInt32(CopyToState cstate, int32 val);
static void CopySendInt16(CopyToState cstate, int16 val);
/*
* Send copy start/stop messages for frontend copies. These have changed
* in past protocol redesigns.
*/
static void
SendCopyBegin(CopyToState cstate)
{
StringInfoData buf;
int natts = list_length(cstate->attnumlist);
int16 format = (cstate->opts.binary ? 1 : 0);
int i;
pq_beginmessage(&buf, PqMsg_CopyOutResponse);
pq_sendbyte(&buf, format); /* overall format */
pq_sendint16(&buf, natts);
for (i = 0; i < natts; i++)
pq_sendint16(&buf, format); /* per-column formats */
pq_endmessage(&buf);
cstate->copy_dest = COPY_FRONTEND;
}
static void
SendCopyEnd(CopyToState cstate)
{
/* Shouldn't have any unsent data */
Assert(cstate->fe_msgbuf->len == 0);
/* Send Copy Done message */
pq_putemptymessage(PqMsg_CopyDone);
}
/*----------
* CopySendData sends output data to the destination (file or frontend)
* CopySendString does the same for null-terminated strings
* CopySendChar does the same for single characters
* CopySendEndOfRow does the appropriate thing at end of each data row
* (data is not actually flushed except by CopySendEndOfRow)
*
* NB: no data conversion is applied by these functions
*----------
*/
static void
CopySendData(CopyToState cstate, const void *databuf, int datasize)
{
appendBinaryStringInfo(cstate->fe_msgbuf, databuf, datasize);
}
static void
CopySendString(CopyToState cstate, const char *str)
{
appendBinaryStringInfo(cstate->fe_msgbuf, str, strlen(str));
}
static void
CopySendChar(CopyToState cstate, char c)
{
appendStringInfoCharMacro(cstate->fe_msgbuf, c);
}
static void
CopySendEndOfRow(CopyToState cstate)
{
StringInfo fe_msgbuf = cstate->fe_msgbuf;
switch (cstate->copy_dest)
{
case COPY_FILE:
if (!cstate->opts.binary)
{
/* Default line termination depends on platform */
#ifndef WIN32
CopySendChar(cstate, '\n');
#else
CopySendString(cstate, "\r\n");
#endif
}
if (fwrite(fe_msgbuf->data, fe_msgbuf->len, 1,
cstate->copy_file) != 1 ||
ferror(cstate->copy_file))
{
if (cstate->is_program)
{
if (errno == EPIPE)
{
/*
* The pipe will be closed automatically on error at
* the end of transaction, but we might get a better
* error message from the subprocess' exit code than
* just "Broken Pipe"
*/
ClosePipeToProgram(cstate);
/*
* If ClosePipeToProgram() didn't throw an error, the
* program terminated normally, but closed the pipe
* first. Restore errno, and throw an error.
*/
errno = EPIPE;
}
ereport(ERROR,
(errcode_for_file_access(),
errmsg("could not write to COPY program: %m")));
}
else
ereport(ERROR,
(errcode_for_file_access(),
errmsg("could not write to COPY file: %m")));
}
break;
case COPY_FRONTEND:
/* The FE/BE protocol uses \n as newline for all platforms */
if (!cstate->opts.binary)
CopySendChar(cstate, '\n');
/* Dump the accumulated row as one CopyData message */
(void) pq_putmessage(PqMsg_CopyData, fe_msgbuf->data, fe_msgbuf->len);
break;
case COPY_CALLBACK:
cstate->data_dest_cb(fe_msgbuf->data, fe_msgbuf->len);
break;
}
/* Update the progress */
cstate->bytes_processed += fe_msgbuf->len;
pgstat_progress_update_param(PROGRESS_COPY_BYTES_PROCESSED, cstate->bytes_processed);
resetStringInfo(fe_msgbuf);
}
/*
* These functions do apply some data conversion
*/
/*
* CopySendInt32 sends an int32 in network byte order
*/
static inline void
CopySendInt32(CopyToState cstate, int32 val)
{
uint32 buf;
buf = pg_hton32((uint32) val);
CopySendData(cstate, &buf, sizeof(buf));
}
/*
* CopySendInt16 sends an int16 in network byte order
*/
static inline void
CopySendInt16(CopyToState cstate, int16 val)
{
uint16 buf;
buf = pg_hton16((uint16) val);
CopySendData(cstate, &buf, sizeof(buf));
}
/*
* Closes the pipe to an external program, checking the pclose() return code.
*/
static void
ClosePipeToProgram(CopyToState cstate)
{
int pclose_rc;
Assert(cstate->is_program);
pclose_rc = ClosePipeStream(cstate->copy_file);
if (pclose_rc == -1)
ereport(ERROR,
(errcode_for_file_access(),
errmsg("could not close pipe to external command: %m")));
else if (pclose_rc != 0)
{
ereport(ERROR,
(errcode(ERRCODE_EXTERNAL_ROUTINE_EXCEPTION),
errmsg("program \"%s\" failed",
cstate->filename),
errdetail_internal("%s", wait_result_to_str(pclose_rc))));
}
}
/*
* Release resources allocated in a cstate for COPY TO/FROM.
*/
static void
EndCopy(CopyToState cstate)
{
if (cstate->is_program)
{
ClosePipeToProgram(cstate);
}
else
{
if (cstate->filename != NULL && FreeFile(cstate->copy_file))
ereport(ERROR,
(errcode_for_file_access(),
errmsg("could not close file \"%s\": %m",
cstate->filename)));
}
pgstat_progress_end_command();
MemoryContextDelete(cstate->copycontext);
pfree(cstate);
}
/*
* Setup CopyToState to read tuples from a table or a query for COPY TO.
*
* 'rel': Relation to be copied
* 'raw_query': Query whose results are to be copied
* 'queryRelId': OID of base relation to convert to a query (for RLS)
* 'filename': Name of server-local file to write, NULL for STDOUT
* 'is_program': true if 'filename' is program to execute
* 'data_dest_cb': Callback that processes the output data
* 'attnamelist': List of char *, columns to include. NIL selects all cols.
* 'options': List of DefElem. See copy_opt_item in gram.y for selections.
*
* Returns a CopyToState, to be passed to DoCopyTo() and related functions.
*/
CopyToState
BeginCopyTo(ParseState *pstate,
Relation rel,
RawStmt *raw_query,
Oid queryRelId,
const char *filename,
bool is_program,
copy_data_dest_cb data_dest_cb,
List *attnamelist,
List *options)
{
CopyToState cstate;
bool pipe = (filename == NULL && data_dest_cb == NULL);
TupleDesc tupDesc;
int num_phys_attrs;
MemoryContext oldcontext;
const int progress_cols[] = {
PROGRESS_COPY_COMMAND,
PROGRESS_COPY_TYPE
};
int64 progress_vals[] = {
PROGRESS_COPY_COMMAND_TO,
0
};
if (rel != NULL && rel->rd_rel->relkind != RELKIND_RELATION)
{
if (rel->rd_rel->relkind == RELKIND_VIEW)
ereport(ERROR,
(errcode(ERRCODE_WRONG_OBJECT_TYPE),
errmsg("cannot copy from view \"%s\"",
RelationGetRelationName(rel)),
errhint("Try the COPY (SELECT ...) TO variant.")));
else if (rel->rd_rel->relkind == RELKIND_MATVIEW)
ereport(ERROR,
(errcode(ERRCODE_WRONG_OBJECT_TYPE),
errmsg("cannot copy from materialized view \"%s\"",
RelationGetRelationName(rel)),
errhint("Try the COPY (SELECT ...) TO variant.")));
else if (rel->rd_rel->relkind == RELKIND_FOREIGN_TABLE)
ereport(ERROR,
(errcode(ERRCODE_WRONG_OBJECT_TYPE),
errmsg("cannot copy from foreign table \"%s\"",
RelationGetRelationName(rel)),
errhint("Try the COPY (SELECT ...) TO variant.")));
else if (rel->rd_rel->relkind == RELKIND_SEQUENCE)
ereport(ERROR,
(errcode(ERRCODE_WRONG_OBJECT_TYPE),
errmsg("cannot copy from sequence \"%s\"",
RelationGetRelationName(rel))));
else if (rel->rd_rel->relkind == RELKIND_PARTITIONED_TABLE)
ereport(ERROR,
(errcode(ERRCODE_WRONG_OBJECT_TYPE),
errmsg("cannot copy from partitioned table \"%s\"",
RelationGetRelationName(rel)),
errhint("Try the COPY (SELECT ...) TO variant.")));
else
ereport(ERROR,
(errcode(ERRCODE_WRONG_OBJECT_TYPE),
errmsg("cannot copy from non-table relation \"%s\"",
RelationGetRelationName(rel))));
}
/* Allocate workspace and zero all fields */
cstate = (CopyToStateData *) palloc0(sizeof(CopyToStateData));
/*
* We allocate everything used by a cstate in a new memory context. This
* avoids memory leaks during repeated use of COPY in a query.
*/
cstate->copycontext = AllocSetContextCreate(CurrentMemoryContext,
"COPY",
ALLOCSET_DEFAULT_SIZES);
oldcontext = MemoryContextSwitchTo(cstate->copycontext);
/* Extract options from the statement node tree */
ProcessCopyOptions(pstate, &cstate->opts, false /* is_from */ , options);
/* Process the source/target relation or query */
if (rel)
{
Assert(!raw_query);
cstate->rel = rel;
tupDesc = RelationGetDescr(cstate->rel);
}
else
{
List *rewritten;
Query *query;
PlannedStmt *plan;
DestReceiver *dest;
cstate->rel = NULL;
/*
* Run parse analysis and rewrite. Note this also acquires sufficient
* locks on the source table(s).
*/
rewritten = pg_analyze_and_rewrite_fixedparams(raw_query,
pstate->p_sourcetext, NULL, 0,
NULL);
/* check that we got back something we can work with */
if (rewritten == NIL)
{
ereport(ERROR,
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
errmsg("DO INSTEAD NOTHING rules are not supported for COPY")));
}
else if (list_length(rewritten) > 1)
{
ListCell *lc;
/* examine queries to determine which error message to issue */
foreach(lc, rewritten)
{
Query *q = lfirst_node(Query, lc);
if (q->querySource == QSRC_QUAL_INSTEAD_RULE)
ereport(ERROR,
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
errmsg("conditional DO INSTEAD rules are not supported for COPY")));
if (q->querySource == QSRC_NON_INSTEAD_RULE)
ereport(ERROR,
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
errmsg("DO ALSO rules are not supported for the COPY")));
}
ereport(ERROR,
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
errmsg("multi-statement DO INSTEAD rules are not supported for COPY")));
}
query = linitial_node(Query, rewritten);
/* The grammar allows SELECT INTO, but we don't support that */
if (query->utilityStmt != NULL &&
IsA(query->utilityStmt, CreateTableAsStmt))
ereport(ERROR,
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
errmsg("COPY (SELECT INTO) is not supported")));
Assert(query->utilityStmt == NULL);
/*
* Similarly the grammar doesn't enforce the presence of a RETURNING
* clause, but this is required here.
*/
if (query->commandType != CMD_SELECT &&
query->returningList == NIL)
{
Assert(query->commandType == CMD_INSERT ||
query->commandType == CMD_UPDATE ||
query->commandType == CMD_DELETE);
ereport(ERROR,
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
errmsg("COPY query must have a RETURNING clause")));
}
/* plan the query */
plan = pg_plan_query(query, pstate->p_sourcetext,
CURSOR_OPT_PARALLEL_OK, NULL);
/*
* With row-level security and a user using "COPY relation TO", we
* have to convert the "COPY relation TO" to a query-based COPY (eg:
* "COPY (SELECT * FROM ONLY relation) TO"), to allow the rewriter to
* add in any RLS clauses.
*
* When this happens, we are passed in the relid of the originally
* found relation (which we have locked). As the planner will look up
* the relation again, we double-check here to make sure it found the
* same one that we have locked.
*/
if (queryRelId != InvalidOid)
{
/*
* Note that with RLS involved there may be multiple relations,
* and while the one we need is almost certainly first, we don't
* make any guarantees of that in the planner, so check the whole
* list and make sure we find the original relation.
*/
if (!list_member_oid(plan->relationOids, queryRelId))
ereport(ERROR,
(errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE),
errmsg("relation referenced by COPY statement has changed")));
}
/*
* Use a snapshot with an updated command ID to ensure this query sees
* results of any previously executed queries.
*/
PushCopiedSnapshot(GetActiveSnapshot());
UpdateActiveSnapshotCommandId();
/* Create dest receiver for COPY OUT */
dest = CreateDestReceiver(DestCopyOut);
((DR_copy *) dest)->cstate = cstate;
/* Create a QueryDesc requesting no output */
cstate->queryDesc = CreateQueryDesc(plan, pstate->p_sourcetext,
GetActiveSnapshot(),
InvalidSnapshot,
dest, NULL, NULL, 0);
/*
* Call ExecutorStart to prepare the plan for execution.
*
* ExecutorStart computes a result tupdesc for us
*/
ExecutorStart(cstate->queryDesc, 0);
tupDesc = cstate->queryDesc->tupDesc;
}
/* Generate or convert list of attributes to process */
cstate->attnumlist = CopyGetAttnums(tupDesc, cstate->rel, attnamelist);
num_phys_attrs = tupDesc->natts;
/* Convert FORCE_QUOTE name list to per-column flags, check validity */
cstate->opts.force_quote_flags = (bool *) palloc0(num_phys_attrs * sizeof(bool));
if (cstate->opts.force_quote_all)
{
int i;
for (i = 0; i < num_phys_attrs; i++)
cstate->opts.force_quote_flags[i] = true;
}
else if (cstate->opts.force_quote)
{
List *attnums;
ListCell *cur;
attnums = CopyGetAttnums(tupDesc, cstate->rel, cstate->opts.force_quote);
foreach(cur, attnums)
{
int attnum = lfirst_int(cur);
Form_pg_attribute attr = TupleDescAttr(tupDesc, attnum - 1);
if (!list_member_int(cstate->attnumlist, attnum))
ereport(ERROR,
(errcode(ERRCODE_INVALID_COLUMN_REFERENCE),
errmsg("FORCE_QUOTE column \"%s\" not referenced by COPY",
NameStr(attr->attname))));
cstate->opts.force_quote_flags[attnum - 1] = true;
}
}
/* Use client encoding when ENCODING option is not specified. */
if (cstate->opts.file_encoding < 0)
cstate->file_encoding = pg_get_client_encoding();
else
cstate->file_encoding = cstate->opts.file_encoding;
/*
* Set up encoding conversion info. Even if the file and server encodings
* are the same, we must apply pg_any_to_server() to validate data in
* multibyte encodings.
*/
cstate->need_transcoding =
(cstate->file_encoding != GetDatabaseEncoding() ||
pg_database_encoding_max_length() > 1);
/* See Multibyte encoding comment above */
cstate->encoding_embeds_ascii = PG_ENCODING_IS_CLIENT_ONLY(cstate->file_encoding);
cstate->copy_dest = COPY_FILE; /* default */
if (data_dest_cb)
{
progress_vals[1] = PROGRESS_COPY_TYPE_CALLBACK;
cstate->copy_dest = COPY_CALLBACK;
cstate->data_dest_cb = data_dest_cb;
}
else if (pipe)
{
progress_vals[1] = PROGRESS_COPY_TYPE_PIPE;
Assert(!is_program); /* the grammar does not allow this */
if (whereToSendOutput != DestRemote)
cstate->copy_file = stdout;
}
else
{
cstate->filename = pstrdup(filename);
cstate->is_program = is_program;
if (is_program)
{
progress_vals[1] = PROGRESS_COPY_TYPE_PROGRAM;
cstate->copy_file = OpenPipeStream(cstate->filename, PG_BINARY_W);
if (cstate->copy_file == NULL)
ereport(ERROR,
(errcode_for_file_access(),
errmsg("could not execute command \"%s\": %m",
cstate->filename)));
}
else
{
mode_t oumask; /* Pre-existing umask value */
struct stat st;
progress_vals[1] = PROGRESS_COPY_TYPE_FILE;
/*
* Prevent write to relative path ... too easy to shoot oneself in
* the foot by overwriting a database file ...
*/
if (!is_absolute_path(filename))
ereport(ERROR,
(errcode(ERRCODE_INVALID_NAME),
errmsg("relative path not allowed for COPY to file")));
oumask = umask(S_IWGRP | S_IWOTH);
PG_TRY();
{
cstate->copy_file = AllocateFile(cstate->filename, PG_BINARY_W);
}
PG_FINALLY();
{
umask(oumask);
}
PG_END_TRY();
if (cstate->copy_file == NULL)
{
/* copy errno because ereport subfunctions might change it */
int save_errno = errno;
ereport(ERROR,
(errcode_for_file_access(),
errmsg("could not open file \"%s\" for writing: %m",
cstate->filename),
(save_errno == ENOENT || save_errno == EACCES) ?
errhint("COPY TO instructs the PostgreSQL server process to write a file. "
"You may want a client-side facility such as psql's \\copy.") : 0));
}
if (fstat(fileno(cstate->copy_file), &st))
ereport(ERROR,
(errcode_for_file_access(),
errmsg("could not stat file \"%s\": %m",
cstate->filename)));
if (S_ISDIR(st.st_mode))
ereport(ERROR,
(errcode(ERRCODE_WRONG_OBJECT_TYPE),
errmsg("\"%s\" is a directory", cstate->filename)));
}
}
/* initialize progress */
pgstat_progress_start_command(PROGRESS_COMMAND_COPY,
cstate->rel ? RelationGetRelid(cstate->rel) : InvalidOid);
pgstat_progress_update_multi_param(2, progress_cols, progress_vals);
cstate->bytes_processed = 0;
MemoryContextSwitchTo(oldcontext);
return cstate;
}
/*
* Clean up storage and release resources for COPY TO.
*/
void
EndCopyTo(CopyToState cstate)
{
if (cstate->queryDesc != NULL)
{
/* Close down the query and free resources. */
ExecutorFinish(cstate->queryDesc);
ExecutorEnd(cstate->queryDesc);
FreeQueryDesc(cstate->queryDesc);
PopActiveSnapshot();
}
/* Clean up storage */
EndCopy(cstate);
}
/*
* Copy from relation or query TO file.
*
* Returns the number of rows processed.
*/
uint64
DoCopyTo(CopyToState cstate)
{
bool pipe = (cstate->filename == NULL && cstate->data_dest_cb == NULL);
bool fe_copy = (pipe && whereToSendOutput == DestRemote);
TupleDesc tupDesc;
int num_phys_attrs;
ListCell *cur;
uint64 processed;
if (fe_copy)
SendCopyBegin(cstate);
if (cstate->rel)
tupDesc = RelationGetDescr(cstate->rel);
else
tupDesc = cstate->queryDesc->tupDesc;
num_phys_attrs = tupDesc->natts;
cstate->opts.null_print_client = cstate->opts.null_print; /* default */
/* We use fe_msgbuf as a per-row buffer regardless of copy_dest */
cstate->fe_msgbuf = makeStringInfo();
/* Get info about the columns we need to process. */
cstate->out_functions = (FmgrInfo *) palloc(num_phys_attrs * sizeof(FmgrInfo));
foreach(cur, cstate->attnumlist)
{
int attnum = lfirst_int(cur);
Oid out_func_oid;
bool isvarlena;
Form_pg_attribute attr = TupleDescAttr(tupDesc, attnum - 1);
if (cstate->opts.binary)
getTypeBinaryOutputInfo(attr->atttypid,
&out_func_oid,
&isvarlena);
else
getTypeOutputInfo(attr->atttypid,
&out_func_oid,
&isvarlena);
fmgr_info(out_func_oid, &cstate->out_functions[attnum - 1]);
}
/*
* Create a temporary memory context that we can reset once per row to
* recover palloc'd memory. This avoids any problems with leaks inside
* datatype output routines, and should be faster than retail pfree's
* anyway. (We don't need a whole econtext as CopyFrom does.)
*/
cstate->rowcontext = AllocSetContextCreate(CurrentMemoryContext,
"COPY TO",
ALLOCSET_DEFAULT_SIZES);
if (cstate->opts.binary)
{
/* Generate header for a binary copy */
int32 tmp;
/* Signature */
CopySendData(cstate, BinarySignature, 11);
/* Flags field */
tmp = 0;
CopySendInt32(cstate, tmp);
/* No header extension */
tmp = 0;
CopySendInt32(cstate, tmp);
}
else
{
/*
* For non-binary copy, we need to convert null_print to file
* encoding, because it will be sent directly with CopySendString.
*/
if (cstate->need_transcoding)
cstate->opts.null_print_client = pg_server_to_any(cstate->opts.null_print,
cstate->opts.null_print_len,
cstate->file_encoding);
/* if a header has been requested send the line */
if (cstate->opts.header_line)
{
bool hdr_delim = false;
foreach(cur, cstate->attnumlist)
{
int attnum = lfirst_int(cur);
char *colname;
if (hdr_delim)
CopySendChar(cstate, cstate->opts.delim[0]);
hdr_delim = true;
colname = NameStr(TupleDescAttr(tupDesc, attnum - 1)->attname);
if (cstate->opts.csv_mode)
CopyAttributeOutCSV(cstate, colname, false,
list_length(cstate->attnumlist) == 1);
else
CopyAttributeOutText(cstate, colname);
}
CopySendEndOfRow(cstate);
}
}
if (cstate->rel)
{
TupleTableSlot *slot;
TableScanDesc scandesc;
scandesc = table_beginscan(cstate->rel, GetActiveSnapshot(), 0, NULL);
slot = table_slot_create(cstate->rel, NULL);
processed = 0;
while (table_scan_getnextslot(scandesc, ForwardScanDirection, slot))
{
CHECK_FOR_INTERRUPTS();
/* Deconstruct the tuple ... */
slot_getallattrs(slot);
/* Format and send the data */
CopyOneRowTo(cstate, slot);
/*
* Increment the number of processed tuples, and report the
* progress.
*/
pgstat_progress_update_param(PROGRESS_COPY_TUPLES_PROCESSED,
++processed);
}
ExecDropSingleTupleTableSlot(slot);
table_endscan(scandesc);
}
else
{
/* run the plan --- the dest receiver will send tuples */
ExecutorRun(cstate->queryDesc, ForwardScanDirection, 0, true);
processed = ((DR_copy *) cstate->queryDesc->dest)->processed;
}
if (cstate->opts.binary)
{
/* Generate trailer for a binary copy */
CopySendInt16(cstate, -1);
/* Need to flush out the trailer */
CopySendEndOfRow(cstate);
}
MemoryContextDelete(cstate->rowcontext);
if (fe_copy)
SendCopyEnd(cstate);
return processed;
}
/*
* Emit one row during DoCopyTo().
*/
static void
CopyOneRowTo(CopyToState cstate, TupleTableSlot *slot)
{
bool need_delim = false;
FmgrInfo *out_functions = cstate->out_functions;
MemoryContext oldcontext;
ListCell *cur;
char *string;
MemoryContextReset(cstate->rowcontext);
oldcontext = MemoryContextSwitchTo(cstate->rowcontext);
if (cstate->opts.binary)
{
/* Binary per-tuple header */
CopySendInt16(cstate, list_length(cstate->attnumlist));
}
/* Make sure the tuple is fully deconstructed */
slot_getallattrs(slot);
foreach(cur, cstate->attnumlist)
{
int attnum = lfirst_int(cur);
Datum value = slot->tts_values[attnum - 1];
bool isnull = slot->tts_isnull[attnum - 1];
if (!cstate->opts.binary)
{
if (need_delim)
CopySendChar(cstate, cstate->opts.delim[0]);
need_delim = true;
}
if (isnull)
{
if (!cstate->opts.binary)
CopySendString(cstate, cstate->opts.null_print_client);
else
CopySendInt32(cstate, -1);
}
else
{
if (!cstate->opts.binary)
{
string = OutputFunctionCall(&out_functions[attnum - 1],
value);
if (cstate->opts.csv_mode)
CopyAttributeOutCSV(cstate, string,
cstate->opts.force_quote_flags[attnum - 1],
list_length(cstate->attnumlist) == 1);
else
CopyAttributeOutText(cstate, string);
}
else
{
bytea *outputbytes;
outputbytes = SendFunctionCall(&out_functions[attnum - 1],
value);
CopySendInt32(cstate, VARSIZE(outputbytes) - VARHDRSZ);
CopySendData(cstate, VARDATA(outputbytes),
VARSIZE(outputbytes) - VARHDRSZ);
}
}
}
CopySendEndOfRow(cstate);
MemoryContextSwitchTo(oldcontext);
}
/*
* Send text representation of one attribute, with conversion and escaping
*/
#define DUMPSOFAR() \
do { \
if (ptr > start) \
CopySendData(cstate, start, ptr - start); \
} while (0)
static void
CopyAttributeOutText(CopyToState cstate, const char *string)
{
const char *ptr;
const char *start;
char c;
char delimc = cstate->opts.delim[0];
if (cstate->need_transcoding)
ptr = pg_server_to_any(string, strlen(string), cstate->file_encoding);
else
ptr = string;
/*
* We have to grovel through the string searching for control characters
* and instances of the delimiter character. In most cases, though, these
* are infrequent. To avoid overhead from calling CopySendData once per
* character, we dump out all characters between escaped characters in a
* single call. The loop invariant is that the data from "start" to "ptr"
* can be sent literally, but hasn't yet been.
*
* We can skip pg_encoding_mblen() overhead when encoding is safe, because
* in valid backend encodings, extra bytes of a multibyte character never
* look like ASCII. This loop is sufficiently performance-critical that
* it's worth making two copies of it to get the IS_HIGHBIT_SET() test out
* of the normal safe-encoding path.
*/
if (cstate->encoding_embeds_ascii)
{
start = ptr;
while ((c = *ptr) != '\0')
{
if ((unsigned char) c < (unsigned char) 0x20)
{
/*
* \r and \n must be escaped, the others are traditional. We
* prefer to dump these using the C-like notation, rather than
* a backslash and the literal character, because it makes the
* dump file a bit more proof against Microsoftish data
* mangling.
*/
switch (c)
{
case '\b':
c = 'b';
break;
case '\f':
c = 'f';
break;
case '\n':
c = 'n';
break;
case '\r':
c = 'r';
break;
case '\t':
c = 't';
break;
case '\v':
c = 'v';
break;
default:
/* If it's the delimiter, must backslash it */
if (c == delimc)
break;
/* All ASCII control chars are length 1 */
ptr++;
continue; /* fall to end of loop */
}
/* if we get here, we need to convert the control char */
DUMPSOFAR();
CopySendChar(cstate, '\\');
CopySendChar(cstate, c);
start = ++ptr; /* do not include char in next run */
}
else if (c == '\\' || c == delimc)
{
DUMPSOFAR();
CopySendChar(cstate, '\\');
start = ptr++; /* we include char in next run */
}
else if (IS_HIGHBIT_SET(c))
ptr += pg_encoding_mblen(cstate->file_encoding, ptr);
else
ptr++;
}
}
else
{
start = ptr;
while ((c = *ptr) != '\0')
{
if ((unsigned char) c < (unsigned char) 0x20)
{
/*
* \r and \n must be escaped, the others are traditional. We
* prefer to dump these using the C-like notation, rather than
* a backslash and the literal character, because it makes the
* dump file a bit more proof against Microsoftish data
* mangling.
*/
switch (c)
{
case '\b':
c = 'b';
break;
case '\f':
c = 'f';
break;
case '\n':
c = 'n';
break;
case '\r':
c = 'r';
break;
case '\t':
c = 't';
break;
case '\v':
c = 'v';
break;
default:
/* If it's the delimiter, must backslash it */
if (c == delimc)
break;
/* All ASCII control chars are length 1 */
ptr++;
continue; /* fall to end of loop */
}
/* if we get here, we need to convert the control char */
DUMPSOFAR();
CopySendChar(cstate, '\\');
CopySendChar(cstate, c);
start = ++ptr; /* do not include char in next run */
}
else if (c == '\\' || c == delimc)
{
DUMPSOFAR();
CopySendChar(cstate, '\\');
start = ptr++; /* we include char in next run */
}
else
ptr++;
}
}
DUMPSOFAR();
}
/*
* Send text representation of one attribute, with conversion and
* CSV-style escaping
*/
static void
CopyAttributeOutCSV(CopyToState cstate, const char *string,
bool use_quote, bool single_attr)
{
const char *ptr;
const char *start;
char c;
char delimc = cstate->opts.delim[0];
char quotec = cstate->opts.quote[0];
char escapec = cstate->opts.escape[0];
/* force quoting if it matches null_print (before conversion!) */
if (!use_quote && strcmp(string, cstate->opts.null_print) == 0)
use_quote = true;
if (cstate->need_transcoding)
ptr = pg_server_to_any(string, strlen(string), cstate->file_encoding);
else
ptr = string;
/*
* Make a preliminary pass to discover if it needs quoting
*/
if (!use_quote)
{
/*
* Because '\.' can be a data value, quote it if it appears alone on a
* line so it is not interpreted as the end-of-data marker.
*/
if (single_attr && strcmp(ptr, "\\.") == 0)
use_quote = true;
else
{
const char *tptr = ptr;
while ((c = *tptr) != '\0')
{
if (c == delimc || c == quotec || c == '\n' || c == '\r')
{
use_quote = true;
break;
}
if (IS_HIGHBIT_SET(c) && cstate->encoding_embeds_ascii)
tptr += pg_encoding_mblen(cstate->file_encoding, tptr);
else
tptr++;
}
}
}
if (use_quote)
{
CopySendChar(cstate, quotec);
/*
* We adopt the same optimization strategy as in CopyAttributeOutText
*/
start = ptr;
while ((c = *ptr) != '\0')
{
if (c == quotec || c == escapec)
{
DUMPSOFAR();
CopySendChar(cstate, escapec);
start = ptr; /* we include char in next run */
}
if (IS_HIGHBIT_SET(c) && cstate->encoding_embeds_ascii)
ptr += pg_encoding_mblen(cstate->file_encoding, ptr);
else
ptr++;
}
DUMPSOFAR();
CopySendChar(cstate, quotec);
}
else
{
/* If it doesn't need quoting, we can just dump it as-is */
CopySendString(cstate, ptr);
}
}
/*
* copy_dest_startup --- executor startup
*/
static void
copy_dest_startup(DestReceiver *self, int operation, TupleDesc typeinfo)
{
/* no-op */
}
/*
* copy_dest_receive --- receive one tuple
*/
static bool
copy_dest_receive(TupleTableSlot *slot, DestReceiver *self)
{
DR_copy *myState = (DR_copy *) self;
CopyToState cstate = myState->cstate;
/* Send the data */
CopyOneRowTo(cstate, slot);
/* Increment the number of processed tuples, and report the progress */
pgstat_progress_update_param(PROGRESS_COPY_TUPLES_PROCESSED,
++myState->processed);
return true;
}
/*
* copy_dest_shutdown --- executor end
*/
static void
copy_dest_shutdown(DestReceiver *self)
{
/* no-op */
}
/*
* copy_dest_destroy --- release DestReceiver object
*/
static void
copy_dest_destroy(DestReceiver *self)
{
pfree(self);
}
/*
* CreateCopyDestReceiver -- create a suitable DestReceiver object
*/
DestReceiver *
CreateCopyDestReceiver(void)
{
DR_copy *self = (DR_copy *) palloc(sizeof(DR_copy));
self->pub.receiveSlot = copy_dest_receive;
self->pub.rStartup = copy_dest_startup;
self->pub.rShutdown = copy_dest_shutdown;
self->pub.rDestroy = copy_dest_destroy;
self->pub.mydest = DestCopyOut;
self->cstate = NULL; /* will be set later */
self->processed = 0;
return (DestReceiver *) self;
}
|
f0ba7cbb2df94dbd4335673ab1d465226dbf47f4
|
14ac14bee6ddd3f74937ff316b37cb947a4ef882
|
/DynamicTwoDArrayUsingArrayOfPointer.c
|
9455c075a1513184cb2016d695397c3a1a6de674
|
[
"MIT"
] |
permissive
|
gouravthakur39/beginners-C-program-examples
|
ebe18c68c9b889d0622dc4d45ee0584e63a98d7c
|
373d27c131e35bacdbf5c500f79fd234c6d4ec9b
|
refs/heads/master
| 2023-09-02T16:15:01.129754
| 2022-07-08T11:50:46
| 2022-07-08T11:50:46
| 150,301,917
| 498
| 403
|
MIT
| 2023-08-07T16:11:02
| 2018-09-25T17:12:58
|
C
|
UTF-8
|
C
| false
| false
| 586
|
c
|
DynamicTwoDArrayUsingArrayOfPointer.c
|
#include <stdio.h>
#include <stdlib.h>
int main() {
int r = 3, c = 4, i, j, count;
int * arr[r];
for (i = 0; i < r; i++)
arr[i] = (int * ) malloc(c * sizeof(int));
// Note that arr[i][j] is same as *(*(arr+i)+j)
count = 0;
for (i = 0; i < r; i++)
for (j = 0; j < c; j++)
arr[i][j] = ++count; // Or *(*(arr+i)+j) = ++count
for (i = 0; i < r; i++)
for (j = 0; j < c; j++)
printf("%d ", arr[i][j]);
/* Code for further processing and free the
dynamically allocated memory */
return 0;
}
|
a37461dff0c7ff03d61d1e84605b259fbc568aee
|
e814383d36a10839104efaa4df277996ab220fa3
|
/3rd-party/romio341/mpl/src/timer/mpl_timer_clock_gettime.c
|
3a5cc6ba5d0bd90ca9423b43ed54875a702719a1
|
[
"mpich2",
"BSD-3-Clause-Open-MPI"
] |
permissive
|
open-mpi/ompi
|
a1d7483ae1d83dd8fd8ae3ee95e832e0a0ee04e3
|
1edfdb025c4450f694600083ad871cf06c8d45cd
|
refs/heads/main
| 2023-09-01T01:30:02.040705
| 2023-08-29T17:32:18
| 2023-08-29T17:32:18
| 24,107,001
| 2,008
| 973
|
NOASSERTION
| 2023-09-14T20:59:26
| 2014-09-16T16:08:30
|
C
|
UTF-8
|
C
| false
| false
| 2,005
|
c
|
mpl_timer_clock_gettime.c
|
/*
* Copyright (C) by Argonne National Laboratory
* See COPYRIGHT in top-level directory
*/
#include "mpl.h"
MPL_SUPPRESS_OSX_HAS_NO_SYMBOLS_WARNING;
#if MPL_TIMER_KIND == MPL_TIMER_KIND__CLOCK_GETTIME
#include "mpl_timer_common.h"
static time_t time_epoch;
static int is_initialized = 0;
int MPL_wtime(MPL_time_t * timeval)
{
clock_gettime(CLOCK_REALTIME, timeval);
return MPL_SUCCESS;
}
int MPL_wtime_diff(MPL_time_t * t1, MPL_time_t * t2, double *diff)
{
*diff = ((double) (t2->tv_sec - t1->tv_sec) + 1.0e-9 * (double) (t2->tv_nsec - t1->tv_nsec));
return MPL_SUCCESS;
}
int MPL_wtime_touint(MPL_time_t * t, unsigned int *val)
{
*val = (unsigned int) t->tv_nsec;
return MPL_SUCCESS;
}
int MPL_wtime_todouble(MPL_time_t * t, double *val)
{
*val = ((double) (t->tv_sec - time_epoch) + 1.0e-9 * (double) (t->tv_nsec));
return MPL_SUCCESS;
}
int MPL_wtime_acc(MPL_time_t * t1, MPL_time_t * t2, MPL_time_t * t3)
{
long nsec, sec;
nsec = t2->tv_nsec - t1->tv_nsec;
sec = t2->tv_sec - t1->tv_sec;
t3->tv_sec += sec;
t3->tv_nsec += nsec;
while (t3->tv_nsec > 1000000000) {
t3->tv_nsec -= 1000000000;
t3->tv_sec++;
}
return MPL_SUCCESS;
}
int MPL_wtick(double *wtick)
{
struct timespec res;
int rc;
/* May return -1 for unimplemented. If not implemented (POSIX
* allows that), then we need to return the generic tick value. */
rc = clock_getres(CLOCK_REALTIME, &res);
if (!rc)
*wtick = res.tv_sec + 1.0e-9 * res.tv_nsec;
else
*wtick = tickval;
return MPL_SUCCESS;
}
int MPL_wtime_init(void)
{
if (is_initialized)
goto fn_exit;
/* set a closer time_epoch so MPL_wtime_todouble retain ns resolution */
/* time across process are still relavant within 1 hour */
MPL_time_t t;
MPL_wtime(&t);
time_epoch = t.tv_sec - t.tv_sec % (3600);
init_wtick();
is_initialized = 1;
fn_exit:
return MPL_SUCCESS;
}
#endif
|
47101b187bf98ab4ae90fce8b12e991776c94301
|
eb287cbdbaea8c328ce7ed3c4c7e0867c84be3dd
|
/systems/c1530.h
|
897f36fde6fb883c1fd328a12480c923fb2f5918
|
[
"Zlib"
] |
permissive
|
floooh/chips
|
d639ab59868c17b9f177795945fdff6ce5db04de
|
f5b6684ff6e899429544b2133b31d912ebc15f40
|
refs/heads/master
| 2023-08-18T08:47:49.854044
| 2023-07-20T07:39:45
| 2023-07-20T07:39:45
| 110,844,599
| 863
| 71
|
Zlib
| 2023-08-18T15:14:47
| 2017-11-15T14:34:12
|
C
|
UTF-8
|
C
| false
| false
| 8,475
|
h
|
c1530.h
|
#pragma once
/*#
# c1530.h
The Commodore datasette tape drive in a header for loading .TAP files.
Do this:
~~~C
#define CHIPS_IMPL
~~~
before you include this file in *one* C or C++ file to create the
implementation.
Optionally provide the following macros with your own implementation
~~~C
CHIPS_ASSERT(c)
~~~
your own assert macro (default: assert(c))
You need to include the following headers before including c64.h:
## Howto
The C1530 can be used with system emulators with support for the
Commodore cassette port (so far vic20.h and c64.h). The system
emulators expose the cassette port through a byte called 'cas_port'. The
C1530 emulators 'connects' to this cassette port through a pointer
to this cas_port byte, so that this byte becomes shared between
the computer emulator and the C1530 emulator.
To setup a c1530_t instance, call c1530_init() and provide a pointer
to the shared cassette port byte of the computer system:
~~~C
c1530_init(&c1530, &(c1530_desc_t){
.cas_port = &c64.cas_port
});
~~~
For each computer system tick, call the c1530_tick() function once too:
~~~C
for (uint32_t ticks = 0; ticks < num_ticks; ticks++) {
c64_tick(&c64);
c1530_tick(&c1530);
}
~~~
Use the following functions to insert and remove a tape, with a .TAP
file loading into memory, or check if a tape is inserted:
~~~C
bool c1530_insert_tape(c1530_t* sys, const uint8_t* ptr, int num_bytes);
void c1530_remove_tape(c1530_t* sys);
bool c1530_tape_inserted(c1530_t* sys);
~~~
Call the following functions to control the tape motor (press the Play
or Stop buttons):
~~~C
void c1530_play(c1530_t* sys);
void c1530_stop(c1530_t* sys);
bool c1530_is_motor_on(c1530_t* sys);
~~~
The motor may also be switched on/off by the computer system through
the cassette port's MOTOR pin.
## zlib/libpng license
Copyright (c) 2019 Andre Weissflog
This software is provided 'as-is', without any express or implied warranty.
In no event will the authors be held liable for any damages arising from the
use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software in a
product, an acknowledgment in the product documentation would be
appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not
be misrepresented as being the original software.
3. This notice may not be removed or altered from any source
distribution.
#*/
#include <stdint.h>
#include <stdbool.h>
#include <stddef.h>
#ifdef __cplusplus
extern "C" {
#endif
/* casette port bits, same as C64_CASPORT_* */
#define C1530_CASPORT_MOTOR (1<<0)
#define C1530_CASPORT_READ (1<<1)
#define C1530_CASPORT_WRITE (1<<2)
#define C1530_CASPORT_SENSE (1<<3)
/* max size of a cassette tape image */
#define C1530_MAX_TAPE_SIZE (512*1024)
/* config params for c1530_init() */
typedef struct {
/* pointer to a the C64's cassette port byte */
uint8_t* cas_port;
} c1530_desc_t;
/* 1530 drive state */
typedef struct {
uint8_t* cas_port; /* pointer to shared C64 cassette port state */
bool valid; /* true between c1530_init() and c1530_discard() */
uint32_t size; /* tape_size > 0: a tape is inserted */
uint32_t pos;
uint32_t pulse_count;
uint8_t buf[C1530_MAX_TAPE_SIZE];
} c1530_t;
/* initialize a c1530_t instance */
void c1530_init(c1530_t* sys, const c1530_desc_t* desc);
/* discard a c1530_t instance */
void c1530_discard(c1530_t* sys);
/* reset a c1530_t instance */
void c1530_reset(c1530_t* sys);
/* tick the tape drive */
void c1530_tick(c1530_t* sys);
/* insert a tape file */
bool c1530_insert_tape(c1530_t* sys, chips_range_t data);
/* remove tape file */
void c1530_remove_tape(c1530_t* sys);
/* return true if a tape is currently inserted */
bool c1530_tape_inserted(c1530_t* sys);
/* start the tape (press the Play button) */
void c1530_play(c1530_t* sys);
/* stop the tape (unpress the Play button */
void c1530_stop(c1530_t* sys);
/* return true if tape motor is on */
bool c1530_is_motor_on(c1530_t* sys);
// prepare c1530_t snapshot for saving
void c1530_snapshot_onsave(c1530_t* snapshot);
// fixup c1530_t snapshot after loading
void c1530_snapshot_onload(c1530_t* snapshot, c1530_t* sys);
#ifdef __cplusplus
} /* extern "C" */
#endif
/*-- IMPLEMENTATION ----------------------------------------------------------*/
#ifdef CHIPS_IMPL
#include <string.h> /* memcpy, memset */
#ifndef CHIPS_ASSERT
#include <assert.h>
#define CHIPS_ASSERT(c) assert(c)
#endif
void c1530_init(c1530_t* sys, const c1530_desc_t* desc) {
CHIPS_ASSERT(sys && desc);
CHIPS_ASSERT(desc->cas_port);
memset(sys, 0, sizeof(c1530_t));
sys->valid = true;
sys->cas_port = desc->cas_port;
}
void c1530_discard(c1530_t* sys) {
CHIPS_ASSERT(sys && sys->valid);
sys->valid = false;
}
void c1530_reset(c1530_t* sys) {
CHIPS_ASSERT(sys && sys->valid);
sys->cas_port = 0;
sys->size = 0;
sys->pos = 0;
sys->pulse_count = 0;
}
/* C64 TAP file header */
typedef struct {
uint8_t signature[12]; /* "C64-TAPE-RAW" */
uint8_t version; /* 0x00 or 0x01 */
uint8_t pad[3]; /* reserved */
uint32_t size; /* size of the following data */
} _c1530_tap_header;
bool c1530_insert_tape(c1530_t* sys, chips_range_t data) {
CHIPS_ASSERT(sys && sys->valid && data.ptr && (data.size > 0));
c1530_remove_tape(sys);
if (data.size <= sizeof(_c1530_tap_header)) {
return false;
}
const uint8_t* ptr = (uint8_t*) data.ptr;
const _c1530_tap_header* hdr = (const _c1530_tap_header*) ptr;
ptr += sizeof(_c1530_tap_header);
const uint8_t sig[12] = { 'C','6','4','-','T','A','P','E','-','R','A','W'};
for (size_t i = 0; i < 12; i++) {
if (sig[i] != hdr->signature[i]) {
return false;
}
}
if (1 != hdr->version) {
return false;
}
if (data.size < (hdr->size + sizeof(_c1530_tap_header))) {
return false;
}
if (data.size > sizeof(sys->buf)) {
return false;
}
memcpy(sys->buf, ptr, hdr->size);
sys->size = hdr->size;
sys->pos = 0;
sys->pulse_count = 0;
return true;
}
void c1530_play(c1530_t* sys) {
CHIPS_ASSERT(sys && sys->valid);
/* motor on, play button down */
*sys->cas_port &= ~(C1530_CASPORT_MOTOR|C1530_CASPORT_SENSE);
}
void c1530_stop(c1530_t* sys) {
CHIPS_ASSERT(sys && sys->valid);
/* motor off, play button up */
*sys->cas_port |= (C1530_CASPORT_MOTOR|C1530_CASPORT_SENSE);
}
bool c1530_is_motor_on(c1530_t* sys) {
CHIPS_ASSERT(sys && sys->valid);
return 0 == (*sys->cas_port & C1530_CASPORT_MOTOR);
}
void c1530_remove_tape(c1530_t* sys) {
CHIPS_ASSERT(sys && sys->valid);
c1530_stop(sys);
sys->size = 0;
sys->pos = 0;
sys->pulse_count = 0;
}
bool c1530_tape_inserted(c1530_t* sys) {
CHIPS_ASSERT(sys && sys->valid);
return sys->size > 0;
}
void c1530_tick(c1530_t* sys) {
CHIPS_ASSERT(sys && sys->valid);
*sys->cas_port &= ~C1530_CASPORT_READ;
if (c1530_is_motor_on(sys) && (sys->size > 0) && (sys->pos <= sys->size)) {
if (sys->pulse_count == 0) {
uint8_t val = sys->buf[sys->pos++];
if (val == 0) {
uint8_t s[3];
for (int i = 0; i < 3; i++) {
s[i] = sys->buf[sys->pos++];
}
sys->pulse_count = (s[2]<<16) | (s[1]<<8) | s[0];
}
else {
sys->pulse_count = val * 8;
}
*sys->cas_port |= C1530_CASPORT_READ;
}
else {
sys->pulse_count--;
}
}
}
void c1530_snapshot_onsave(c1530_t* snapshot) {
CHIPS_ASSERT(snapshot);
snapshot->cas_port = 0;
}
void c1530_snapshot_onload(c1530_t* snapshot, c1530_t* sys) {
CHIPS_ASSERT(snapshot && sys);
snapshot->cas_port = sys->cas_port;
}
#endif /* CHIPS_IMPL */
|
5dbf81c8ea5dc2f802fea0640f14102f8e29d3da
|
7c857119fe1505b1d80d6e62969661c06dc1a2f4
|
/BaseTools/Source/C/VfrCompile/Pccts/h/err.h
|
435d48356d5ae03b89a5375fd7776d39e73a426c
|
[
"BSD-2-Clause"
] |
permissive
|
CloverHackyColor/CloverBootloader
|
7042ca7dd6b513d22be591a295e49071ae1482ee
|
2711170df4f60b2ae5aa20add3e00f35cf57b7e5
|
refs/heads/master
| 2023-08-30T22:14:34.590134
| 2023-08-27T19:14:02
| 2023-08-27T19:14:02
| 205,810,121
| 4,734
| 770
|
BSD-2-Clause
| 2023-09-03T12:41:33
| 2019-09-02T08:22:14
|
C
|
UTF-8
|
C
| false
| false
| 28,050
|
h
|
err.h
|
/*
* err.h
*
* Standard error handling mechanism
*
* SOFTWARE RIGHTS
*
* We reserve no LEGAL rights to the Purdue Compiler Construction Tool
* Set (PCCTS) -- PCCTS is in the public domain. An individual or
* company may do whatever they wish with source code distributed with
* PCCTS or the code generated by PCCTS, including the incorporation of
* PCCTS, or its output, into commerical software.
*
* We encourage users to develop software with PCCTS. However, we do ask
* that credit is given to us for developing PCCTS. By "credit",
* we mean that if you incorporate our source code into one of your
* programs (commercial product, research project, or otherwise) that you
* acknowledge this fact somewhere in the documentation, research report,
* etc... If you like PCCTS and have developed a nice tool with the
* output, please mention that you developed it using PCCTS. In
* addition, we ask that this header remain intact in our source code.
* As long as these guidelines are kept, we expect to continue enhancing
* this system and expect to make other tools available as they are
* completed.
*
* Has grown to hold all kinds of stuff (err.h is increasingly misnamed)
*
* ANTLR 1.33
* Terence Parr
* Parr Research Corporation
* with Purdue University and AHPCRC, University of Minnesota
* 1989-2000
*/
#ifndef ERR_H
#define ERR_H
#include "pcctscfg.h"
#include <stdlib.h>
#include <assert.h>
/* */
/* 7-Apr-97 133MR1 */
/* Proper choice of STDC and cplusplus pre-processor symbols (?) */
/* */
#include "pccts_string.h"
#ifdef PCCTS_USE_STDARG
#include "pccts_stdarg.h"
#else
#include <varargs.h>
#endif
#ifdef DUM
/* Define usable bits per unsigned int word (used for set stuff) */
#ifdef PC
#define BSETWORDSIZE 16
#define BSETLOGWORDSIZE 4
#else
#define BSETWORDSIZE 32
#define BSETLOGWORDSIZE 5
#endif
#endif
#define BSETWORDSIZE 8
#define BSETLOGWORDSIZE 3 /* SetWordType is 8bits */
#define BSETMODWORD(x) ((x) & (BSETWORDSIZE-1)) /* x % BSETWORDSIZE */
#define BSETDIVWORD(x) ((x) >> BSETLOGWORDSIZE) /* x / BSETWORDSIZE */
/* This is not put into the global pccts_parser structure because it is
* hidden and does not need to be saved during a "save state" operation
*/
/* maximum of 32 bits/unsigned int and must be 8 bits/byte */
static SetWordType bitmask[] = {
0x00000001, 0x00000002, 0x00000004, 0x00000008,
0x00000010, 0x00000020, 0x00000040, 0x00000080
};
#ifdef zzTRACE_RULES
int zzTraceOptionValueDefault=1;
int zzTraceOptionValue=1;
int zzTraceGuessOptionValue=1;
char *zzTraceCurrentRuleName=NULL;
int zzTraceDepth=0;
#endif
int zzGuessSeq=0; /* MR10 */
int zzSyntaxErrCount=0; /* MR11 */
int zzLexErrCount=0; /* MR11 */
void
#ifdef __USE_PROTOS
zzresynch(SetWordType *wd,SetWordType mask)
#else
zzresynch(wd,mask)
SetWordType *wd, mask;
#endif
{
static int consumed = 1;
/* if you enter here without having consumed a token from last resynch
* force a token consumption.
*/
if ( !consumed ) {zzCONSUME; consumed=1; return;} /* MR10 */
/* if current token is in resynch set, we've got what we wanted */
if ( wd[LA(1)]&mask || LA(1) == zzEOF_TOKEN ) {consumed=0; return;}
/* scan until we find something in the resynch set */
while ( !(wd[LA(1)]&mask) && LA(1) != zzEOF_TOKEN ) {zzCONSUME;}
consumed=1;
}
/* */
/* 7-Apr-97 133MR1 for C++ and MR7 for C */
/* Change suggested by Eli Sternheim (eli@interhdl.com) */
/* */
void
#ifdef __USE_PROTOS
zzconsumeUntil(SetWordType *st)
#else
zzconsumeUntil(st)
SetWordType *st;
#endif
{
int tmp; /* MR7 */
while ( !zzset_el( (tmp=LA(1)), st) && tmp!=1 /* Eof */) { /* MR7 */
zzCONSUME; } /* MR7 */
}
/* */
/* 7-Apr-97 133MR1 for C++ and MR7 for C */
/* Change suggested by Eli Sternheim (eli@interhdl.com) */
/* */
void
#ifdef __USE_PROTOS
zzconsumeUntilToken(int t)
#else
zzconsumeUntilToken(t)
int t;
#endif
{
int tmp; /* MR7 */
while ( (tmp=LA(1)) !=t && tmp!=1 /* Eof */) { zzCONSUME; } /* MR7 */
}
/* input looks like:
* zzFAIL(k, e1, e2, ...,&zzMissSet,&zzMissText,&zzBadTok,&zzBadText)
* where the zzMiss stuff is set here to the token that did not match
* (and which set wasn't it a member of).
*/
#ifdef PCCTS_USE_STDARG
void zzFAIL(int k, ...)
#else
void zzFAIL(va_alist)
va_dcl
#endif
{
#ifdef LL_K
static char text[LL_K*ZZLEXBUFSIZE+1];
SetWordType *f[LL_K];
#else
static char text[ZZLEXBUFSIZE+1];
SetWordType *f[1];
#endif
SetWordType **miss_set;
char **miss_text;
int *bad_tok;
char **bad_text;
int *err_k;
int i;
va_list ap;
#ifndef PCCTS_USE_STDARG /* MR20 */
int k;
#endif
#ifdef PCCTS_USE_STDARG /* MR20 */
va_start(ap, k);
#else
va_start(ap);
k = va_arg(ap, int); /* how many lookahead sets? */
#endif
assert(k <= sizeof(f)/sizeof(f[0])); /* MR20 G. Hobbelt */
text[0] = '\0';
for (i=1; i<=k; i++) /* collect all lookahead sets */
{
f[i-1] = va_arg(ap, SetWordType *);
}
for (i=1; i<=k; i++) /* look for offending token */
{
if ( i>1 ) strcat(text, " ");
strcat(text, LATEXT(i));
if ( !zzset_el((unsigned)LA(i), f[i-1]) ) break;
}
miss_set = va_arg(ap, SetWordType **);
miss_text = va_arg(ap, char **);
bad_tok = va_arg(ap, int *);
bad_text = va_arg(ap, char **);
err_k = va_arg(ap, int *);
if ( i>k )
{
/* bad; lookahead is permutation that cannot be matched,
* but, the ith token of lookahead is valid at the ith position
* (The old LL sub 1 (k) versus LL(k) parsing technique)
*/
*miss_set = NULL;
*miss_text = zzlextext;
*bad_tok = LA(1);
*bad_text = LATEXT(1);
*err_k = k;
return;
}
/* fprintf(stderr, "%s not in %dth set\n", zztokens[LA(i)], i);*/
*miss_set = f[i-1];
*miss_text = text;
*bad_tok = LA(i);
*bad_text = LATEXT(i);
if ( i==1 ) *err_k = 1;
else *err_k = k;
}
#ifdef __USE_PROTOS
void zzTraceGuessDone(zzantlr_state *state)
#else
void zzTraceGuessDone(state)
zzantlr_state *state;
#endif
{
#ifdef zzTRACE_RULES
#ifdef ZZCAN_GUESS
int doIt=0;
if (zzTraceCurrentRuleName == NULL) return;
if (zzTraceOptionValue <= 0) {
doIt=0;
} else if (zzTraceGuessOptionValue <= 0) {
doIt=0;
} else {
doIt=1;
};
if (doIt) {
fprintf(stderr,"guess done - returning to rule %s {\"%s\"} at depth %d",
state->traceCurrentRuleName,
LATEXT(1),
state->traceDepth);
if (state->guessing != 0) {
fprintf(stderr," (guess mode continues - an enclosing guess is still active)");
} else {
fprintf(stderr," (guess mode ends)");
};
fprintf(stderr,"\n");
};
#endif
#endif
}
void
#ifdef __USE_PROTOS
zzsave_antlr_state(zzantlr_state *buf)
#else
zzsave_antlr_state(buf)
zzantlr_state *buf;
#endif
{
#ifdef LL_K
int i;
#endif
#ifdef ZZCAN_GUESS
buf->guess_start = zzguess_start;
buf->guessing = zzguessing;
#endif
buf->asp = zzasp;
#ifdef GENAST
buf->ast_sp = zzast_sp;
#endif
#ifdef ZZINF_LOOK
buf->inf_labase = zzinf_labase;
buf->inf_last = zzinf_last;
/* MR6 Gunnar Rxnning (gunnar@candleweb.no) */
/* MR6 Additional state needs to be saved/restored */
buf->inf_tokens = zzinf_tokens; /* MR6 */
buf->inf_text = zzinf_text; /* MR6 */
buf->inf_text_buffer = zzinf_text_buffer; /* MR6 */
buf->inf_line = zzinf_line; /* MR6 */
#endif
#ifdef DEMAND_LOOK
buf->dirty = zzdirty;
#endif
#ifdef LL_K
for (i=0; i<LL_K; i++) buf->tokenLA[i] = zztokenLA[i];
for (i=0; i<LL_K; i++) strcpy(buf->textLA[i], zztextLA[i]);
buf->lap = zzlap;
buf->labase = zzlabase;
#else
buf->token = zztoken;
strcpy(buf->text, zzlextext);
#endif
#ifdef zzTRACE_RULES
/* MR10 */
buf->traceOptionValue=zzTraceOptionValue;
buf->traceGuessOptionValue=zzTraceGuessOptionValue;
buf->traceCurrentRuleName=zzTraceCurrentRuleName;
buf->traceDepth=zzTraceDepth;
#endif
}
void
#ifdef __USE_PROTOS
zzrestore_antlr_state(zzantlr_state *buf)
#else
zzrestore_antlr_state(buf)
zzantlr_state *buf;
#endif
{
#ifdef zzTRACE_RULES
int prevTraceOptionValue;
#endif
#ifdef LL_K
int i;
#endif
#ifdef ZZCAN_GUESS
zzguess_start = buf->guess_start;
zzguessing = buf->guessing;
#endif
zzasp = buf->asp;
#ifdef GENAST
zzast_sp = buf->ast_sp;
#endif
#ifdef ZZINF_LOOK
zzinf_labase = buf->inf_labase;
zzinf_last = buf->inf_last;
/* MR6 Gunnar Rxnning (gunnar@candleweb.no) */
/* MR6 Additional state needs to be saved/restored */
zzinf_tokens = buf->inf_tokens; /* MR6 */
zzinf_text = buf->inf_text; /* MR6 */
zzinf_text_buffer = buf->inf_text_buffer; /* MR6 */
zzinf_line = buf->inf_line; /* MR6 */
#endif
#ifdef DEMAND_LOOK
zzdirty = buf->dirty;
#endif
#ifdef LL_K
for (i=0; i<LL_K; i++) zztokenLA[i] = buf->tokenLA[i];
for (i=0; i<LL_K; i++) strcpy(zztextLA[i], buf->textLA[i]);
zzlap = buf->lap;
zzlabase = buf->labase;
#else
zztoken = buf->token;
strcpy(zzlextext, buf->text);
#endif
#ifdef zzTRACE_RULES
prevTraceOptionValue=zzTraceOptionValue;
zzTraceOptionValue=buf->traceOptionValue;
if ( (prevTraceOptionValue > 0) !=
(zzTraceOptionValue > 0)) {
if (zzTraceOptionValue > 0) {
fprintf(stderr,"trace enable restored in rule %s depth %d\n",
zzTraceCurrentRuleName,zzTraceDepth);
};
if (zzTraceOptionValue <= 0) {
fprintf(stderr,"trace disable restored in rule %s depth %d\n",
zzTraceCurrentRuleName,zzTraceDepth);
};
};
zzTraceOptionValue=buf->traceOptionValue; /* MR10 */
zzTraceGuessOptionValue=buf->traceGuessOptionValue; /* MR10 */
zzTraceCurrentRuleName=buf->traceCurrentRuleName; /* MR10 */
zzTraceDepth=buf->traceDepth; /* MR10 */
zzTraceGuessDone(buf); /* MR10 */
#endif
}
void
#ifdef __USE_PROTOS
zzedecode(SetWordType *a)
#else
zzedecode(a)
SetWordType *a;
#endif
{
register SetWordType *p = a;
register SetWordType *endp = &(p[zzSET_SIZE]);
register unsigned e = 0;
if ( zzset_deg(a)>1 ) fprintf(stderr, " {");
do {
register SetWordType t = *p;
register SetWordType *b = &(bitmask[0]);
do {
if ( t & *b ) fprintf(stderr, " %s", zztokens[e]);
e++;
} while (++b < &(bitmask[sizeof(SetWordType)*8]));
} while (++p < endp);
if ( zzset_deg(a)>1 ) fprintf(stderr, " }");
}
#ifndef USER_ZZSYN
/* standard error reporting function */
void
#ifdef __USE_PROTOS
zzsyn(char *text, int tok, char *egroup, SetWordType *eset, int etok, int k, char *bad_text)
#else
zzsyn(text, tok, egroup, eset, etok, k, bad_text)
char *text, *egroup, *bad_text;
int tok;
int etok;
int k;
SetWordType *eset;
#endif
{
zzSyntaxErrCount++; /* MR11 */
fprintf(stderr, "line %d: syntax error at \"%s\"", zzline, (tok==zzEOF_TOKEN)?"EOF":bad_text);
if ( !etok && !eset ) {fprintf(stderr, "\n"); return;}
if ( k==1 ) fprintf(stderr, " missing");
else
{
fprintf(stderr, "; \"%s\" not", bad_text);
if ( zzset_deg(eset)>1 ) fprintf(stderr, " in");
}
if ( zzset_deg(eset)>0 ) zzedecode(eset);
else fprintf(stderr, " %s", zztokens[etok]);
if ( strlen(egroup) > 0 ) fprintf(stderr, " in %s", egroup);
fprintf(stderr, "\n");
}
#endif
/* is b an element of set p? */
int
#ifdef __USE_PROTOS
zzset_el(unsigned b, SetWordType *p)
#else
zzset_el(b,p)
unsigned b;
SetWordType *p;
#endif
{
return( p[BSETDIVWORD(b)] & bitmask[BSETMODWORD(b)] );
}
int
#ifdef __USE_PROTOS
zzset_deg(SetWordType *a)
#else
zzset_deg(a)
SetWordType *a;
#endif
{
/* Fast compute degree of a set... the number
of elements present in the set. Assumes
that all word bits are used in the set
*/
register SetWordType *p = a;
register SetWordType *endp = &(a[zzSET_SIZE]);
register int degree = 0;
if ( a == NULL ) return 0;
while ( p < endp )
{
register SetWordType t = *p;
register SetWordType *b = &(bitmask[0]);
do {
if (t & *b) ++degree;
} while (++b < &(bitmask[sizeof(SetWordType)*8]));
p++;
}
return(degree);
}
#ifdef DEMAND_LOOK
#ifdef LL_K
int
#ifdef __USE_PROTOS
_zzmatch(int _t, char **zzBadText, char **zzMissText,
int *zzMissTok, int *zzBadTok,
SetWordType **zzMissSet)
#else
_zzmatch(_t, zzBadText, zzMissText, zzMissTok, zzBadTok, zzMissSet)
int _t;
char **zzBadText;
char **zzMissText;
int *zzMissTok, *zzBadTok;
SetWordType **zzMissSet;
#endif
{
if ( zzdirty==LL_K ) {
zzCONSUME;
}
if ( LA(1)!=_t ) {
*zzBadText = *zzMissText=LATEXT(1);
*zzMissTok= _t; *zzBadTok=LA(1);
*zzMissSet=NULL;
return 0;
}
zzMakeAttr
zzdirty++;
zzlabase++;
return 1;
}
int
#ifdef __USE_PROTOS
_zzmatch_wsig(int _t)
#else
_zzmatch_wsig(_t)
int _t;
#endif
{
if ( zzdirty==LL_K ) {
zzCONSUME;
}
if ( LA(1)!=_t ) {
return 0;
}
zzMakeAttr
zzdirty++;
zzlabase++;
return 1;
}
#else
int
#ifdef __USE_PROTOS
_zzmatch(int _t, char **zzBadText, char **zzMissText,
int *zzMissTok, int *zzBadTok, SetWordType **zzMissSet)
#else
_zzmatch(_t, zzBadText, zzMissText, zzMissTok, zzBadTok, zzMissSet)
int _t;
char **zzBadText;
char **zzMissText;
int *zzMissTok, *zzBadTok;
SetWordType **zzMissSet;
#endif
{
if ( zzdirty ) {zzCONSUME;}
if ( LA(1)!=_t ) {
*zzBadText = *zzMissText=LATEXT(1);
*zzMissTok= _t; *zzBadTok=LA(1);
*zzMissSet=NULL;
return 0;
}
zzdirty = 1;
zzMakeAttr
return 1;
}
int
#ifdef __USE_PROTOS
_zzmatch_wsig(int _t)
#else
_zzmatch_wsig(_t)
int _t;
#endif
{
if ( zzdirty ) {zzCONSUME;}
if ( LA(1)!=_t ) {
return 0;
}
zzdirty = 1;
zzMakeAttr
return 1;
}
#endif /*LL_K*/
#else
int
#ifdef __USE_PROTOS
_zzmatch(int _t, char **zzBadText, char **zzMissText,
int *zzMissTok, int *zzBadTok,
SetWordType **zzMissSet)
#else
_zzmatch(_t, zzBadText, zzMissText, zzMissTok, zzBadTok, zzMissSet)
int _t;
char **zzBadText;
char **zzMissText;
int *zzMissTok, *zzBadTok;
SetWordType **zzMissSet;
#endif
{
if ( LA(1)!=_t ) {
*zzBadText = *zzMissText=LATEXT(1);
*zzMissTok= _t; *zzBadTok=LA(1);
*zzMissSet=NULL;
return 0;
}
zzMakeAttr
return 1;
}
int
#ifdef __USE_PROTOS
_zzmatch_wsig(int _t)
#else
_zzmatch_wsig(_t)
int _t;
#endif
{
if ( LA(1)!=_t ) return 0;
zzMakeAttr
return 1;
}
#endif /*DEMAND_LOOK*/
#ifdef ZZINF_LOOK
void
#ifdef __USE_PROTOS
_inf_zzgettok(void)
#else
_inf_zzgettok()
#endif
{
if ( zzinf_labase >= zzinf_last )
{NLA = zzEOF_TOKEN; strcpy(NLATEXT, "");}
else {
NLA = zzinf_tokens[zzinf_labase];
zzline = zzinf_line[zzinf_labase]; /* wrong in 1.21 */
strcpy(NLATEXT, zzinf_text[zzinf_labase]);
zzinf_labase++;
}
}
#endif
#ifdef ZZINF_LOOK
/* allocate default size text,token and line arrays;
* then, read all of the input reallocing the arrays as needed.
* Once the number of total tokens is known, the LATEXT(i) array (zzinf_text)
* is allocated and its pointers are set to the tokens in zzinf_text_buffer.
*/
void
#ifdef __USE_PROTOS
zzfill_inf_look(void)
#else
zzfill_inf_look()
#endif
{
int tok, line;
int zzinf_token_buffer_size = ZZINF_DEF_TOKEN_BUFFER_SIZE;
int zzinf_text_buffer_size = ZZINF_DEF_TEXT_BUFFER_SIZE;
int zzinf_text_buffer_index = 0;
int zzinf_lap = 0;
/* allocate text/token buffers */
zzinf_text_buffer = (char *) malloc(zzinf_text_buffer_size);
if ( zzinf_text_buffer == NULL )
{
fprintf(stderr, "cannot allocate lookahead text buffer (%d bytes)\n",
zzinf_text_buffer_size);
exit(PCCTS_EXIT_FAILURE);
}
zzinf_tokens = (int *) calloc(zzinf_token_buffer_size,sizeof(int));
if ( zzinf_tokens == NULL )
{
fprintf(stderr, "cannot allocate token buffer (%d tokens)\n",
zzinf_token_buffer_size);
exit(PCCTS_EXIT_FAILURE);
}
zzinf_line = (int *) calloc(zzinf_token_buffer_size,sizeof(int));
if ( zzinf_line == NULL )
{
fprintf(stderr, "cannot allocate line buffer (%d ints)\n",
zzinf_token_buffer_size);
exit(PCCTS_EXIT_FAILURE);
}
/* get tokens, copying text to text buffer */
zzinf_text_buffer_index = 0;
do {
zzgettok();
line = zzreal_line;
while ( zzinf_lap>=zzinf_token_buffer_size )
{
zzinf_token_buffer_size += ZZINF_BUFFER_TOKEN_CHUNK_SIZE;
zzinf_tokens = (int *) realloc(zzinf_tokens,
zzinf_token_buffer_size*sizeof(int));
if ( zzinf_tokens == NULL )
{
fprintf(stderr, "cannot allocate lookahead token buffer (%d tokens)\n",
zzinf_token_buffer_size);
exit(PCCTS_EXIT_FAILURE);
}
zzinf_line = (int *) realloc(zzinf_line,
zzinf_token_buffer_size*sizeof(int));
if ( zzinf_line == NULL )
{
fprintf(stderr, "cannot allocate lookahead line buffer (%d ints)\n",
zzinf_token_buffer_size);
exit(PCCTS_EXIT_FAILURE);
}
}
while ( (zzinf_text_buffer_index+strlen(NLATEXT)+1) >= zzinf_text_buffer_size )
{
zzinf_text_buffer_size += ZZINF_BUFFER_TEXT_CHUNK_SIZE;
zzinf_text_buffer = (char *) realloc(zzinf_text_buffer,
zzinf_text_buffer_size);
if ( zzinf_text_buffer == NULL )
{
fprintf(stderr, "cannot allocate lookahead text buffer (%d bytes)\n",
zzinf_text_buffer_size);
exit(PCCTS_EXIT_FAILURE);
}
}
/* record token and text and line of input symbol */
tok = zzinf_tokens[zzinf_lap] = NLA;
strcpy(&zzinf_text_buffer[zzinf_text_buffer_index], NLATEXT);
zzinf_text_buffer_index += strlen(NLATEXT)+1;
zzinf_line[zzinf_lap] = line;
zzinf_lap++;
} while (tok!=zzEOF_TOKEN);
zzinf_labase = 0;
zzinf_last = zzinf_lap-1;
/* allocate ptrs to text of ith token */
zzinf_text = (char **) calloc(zzinf_last+1,sizeof(char *));
if ( zzinf_text == NULL )
{
fprintf(stderr, "cannot allocate lookahead text buffer (%d)\n",
zzinf_text_buffer_size);
exit(PCCTS_EXIT_FAILURE);
}
zzinf_text_buffer_index = 0;
zzinf_lap = 0;
/* set ptrs so that zzinf_text[i] is the text of the ith token found on input */
while (zzinf_lap<=zzinf_last)
{
zzinf_text[zzinf_lap++] = &zzinf_text_buffer[zzinf_text_buffer_index];
zzinf_text_buffer_index += strlen(&zzinf_text_buffer[zzinf_text_buffer_index])+1;
}
}
#endif
int
#ifdef __USE_PROTOS
_zzsetmatch(SetWordType *e, char **zzBadText, char **zzMissText,
int *zzMissTok, int *zzBadTok,
SetWordType **zzMissSet,
SetWordType *zzTokclassErrset /* MR23 */)
#else
_zzsetmatch(e, zzBadText, zzMissText, zzMissTok, zzBadTok, zzMissSet, zzTokclassErrset /* MR23 */)
SetWordType *e;
char **zzBadText;
char **zzMissText;
int *zzMissTok, *zzBadTok;
SetWordType **zzMissSet;
SetWordType *zzTokclassErrset;
#endif
{
#ifdef DEMAND_LOOK
#ifdef LL_K
if ( zzdirty==LL_K ) {zzCONSUME;}
#else
if ( zzdirty ) {zzCONSUME;}
#endif
#endif
if ( !zzset_el((unsigned)LA(1), e) ) {
*zzBadText = LATEXT(1); *zzMissText=NULL;
*zzMissTok= 0; *zzBadTok=LA(1);
*zzMissSet=zzTokclassErrset; /* MR23 */
return 0;
}
zzMakeAttr /* MR14 Ger Hobbelt (hobbelt@axa.nl) */
#ifdef DEMAND_LOOK
#ifdef LL_K
zzdirty++;
zzlabase++; /* MR14 Ger Hobbelt (hobbelt@axa.nl) */
#else
zzdirty = 1;
#endif
#endif
return 1;
}
int
#ifdef __USE_PROTOS
_zzmatch_wdfltsig(int tokenWanted, SetWordType *whatFollows)
#else
_zzmatch_wdfltsig(tokenWanted, whatFollows)
int tokenWanted;
SetWordType *whatFollows;
#endif
{
#ifdef DEMAND_LOOK
#ifdef LL_K
if ( zzdirty==LL_K ) {
zzCONSUME;
}
#else
if ( zzdirty ) {zzCONSUME;}
#endif
#endif
if ( LA(1)!=tokenWanted )
{
zzSyntaxErrCount++; /* MR11 */
fprintf(stderr,
"line %d: syntax error at \"%s\" missing %s\n",
zzline,
(LA(1)==zzEOF_TOKEN)?"<eof>":(char *)LATEXT(1),
zztokens[tokenWanted]);
zzconsumeUntil( whatFollows );
return 0;
}
else {
zzMakeAttr
#ifdef DEMAND_LOOK
#ifdef LL_K
zzdirty++;
zzlabase++;
#else
zzdirty = 1;
#endif
#else
/* zzCONSUME; consume if not demand lookahead */
#endif
return 1;
}
}
int
#ifdef __USE_PROTOS
_zzsetmatch_wdfltsig(SetWordType *tokensWanted,
int tokenTypeOfSet,
SetWordType *whatFollows)
#else
_zzsetmatch_wdfltsig(tokensWanted, tokenTypeOfSet, whatFollows)
SetWordType *tokensWanted;
int tokenTypeOfSet;
SetWordType *whatFollows;
#endif
{
#ifdef DEMAND_LOOK
#ifdef LL_K
if ( zzdirty==LL_K ) {zzCONSUME;}
#else
if ( zzdirty ) {zzCONSUME;}
#endif
#endif
if ( !zzset_el((unsigned)LA(1), tokensWanted) )
{
zzSyntaxErrCount++; /* MR11 */
fprintf(stderr,
"line %d: syntax error at \"%s\" missing %s\n",
zzline,
(LA(1)==zzEOF_TOKEN)?"<eof>":(char *)LATEXT(1),
zztokens[tokenTypeOfSet]);
zzconsumeUntil( whatFollows );
return 0;
}
else {
zzMakeAttr
#ifdef DEMAND_LOOK
#ifdef LL_K
zzdirty++;
zzlabase++;
#else
zzdirty = 1;
#endif
#else
/* zzCONSUME; consume if not demand lookahead */
#endif
return 1;
}
}
int
#ifdef __USE_PROTOS
_zzsetmatch_wsig(SetWordType *e)
#else
_zzsetmatch_wsig(e)
SetWordType *e;
#endif
{
#ifdef DEMAND_LOOK
#ifdef LL_K
if ( zzdirty==LL_K ) {zzCONSUME;}
#else
if ( zzdirty ) {zzCONSUME;}
#endif
#endif
if ( !zzset_el((unsigned)LA(1), e) ) return 0;
zzMakeAttr /* MR14 Ger Hobbelt (hobbelt@axa.nl) */
#ifdef DEMAND_LOOK
#ifdef LL_K
zzdirty++;
zzlabase++; /* MR14 Ger Hobbelt (hobbelt@axa.nl) */
#else
zzdirty = 1;
#endif
#endif
return 1;
}
#ifdef USER_ZZMODE_STACK
static int zzmstk[ZZMAXSTK] = { -1 };
static int zzmdep = 0;
static char zzmbuf[70];
void
#ifdef __USE_PROTOS
zzmpush( int m )
#else
zzmpush( m )
int m;
#endif
{
if(zzmdep == ZZMAXSTK - 1) {
sprintf(zzmbuf, "Mode stack overflow ");
zzerr(zzmbuf);
} else {
zzmstk[zzmdep++] = zzauto;
zzmode(m);
}
}
void
#ifdef __USE_PROTOS
zzmpop( void )
#else
zzmpop( )
#endif
{
if(zzmdep == 0)
{ sprintf(zzmbuf, "Mode stack underflow ");
zzerr(zzmbuf);
}
else
{ zzmdep--;
zzmode(zzmstk[zzmdep]);
}
}
void
#ifdef __USE_PROTOS
zzsave_mode_stack( int modeStack[], int *modeLevel )
#else
zzsave_mode_stack( modeStack, modeLevel )
int modeStack[];
int *modeLevel;
#endif
{
int i;
memcpy(modeStack, zzmstk, sizeof(zzmstk));
*modeLevel = zzmdep;
zzmdep = 0;
return;
}
void
#ifdef __USE_PROTOS
zzrestore_mode_stack( int modeStack[], int *modeLevel )
#else
zzrestore_mode_stack( modeStack, modeLevel )
int modeStack[];
int *modeLevel;
#endif
{
int i;
memcpy(zzmstk, modeStack, sizeof(zzmstk));
zzmdep = *modeLevel;
return;
}
#endif /* USER_ZZMODE_STACK */
#ifdef __USE_PROTOS
void zzTraceReset(void)
#else
void zzTraceReset()
#endif
{
#ifdef zzTRACE_RULES
zzTraceOptionValue=zzTraceOptionValueDefault;
zzTraceGuessOptionValue=1;
zzTraceCurrentRuleName=NULL;
zzTraceDepth=0;
#endif
}
#ifdef __USE_PROTOS
void zzTraceGuessFail(void)
#else
void zzTraceGuessFail()
#endif
{
#ifdef zzTRACE_RULES
#ifdef ZZCAN_GUESS
int doIt=0;
if (zzTraceOptionValue <= 0) {
doIt=0;
} else if (zzguessing && zzTraceGuessOptionValue <= 0) {
doIt=0;
} else {
doIt=1;
};
if (doIt) {
fprintf(stderr,"guess failed\n");
};
#endif
#endif
}
/* zzTraceOption:
zero value turns off trace
*/
#ifdef __USE_PROTOS
void zzTraceIn(char * rule)
#else
void zzTraceIn(rule)
char *rule;
#endif
{
#ifdef zzTRACE_RULES
int doIt=0;
zzTraceDepth++;
zzTraceCurrentRuleName=rule;
if (zzTraceOptionValue <= 0) {
doIt=0;
#ifdef ZZCAN_GUESS
} else if (zzguessing && zzTraceGuessOptionValue <= 0) {
doIt=0;
#endif
} else {
doIt=1;
};
if (doIt) {
fprintf(stderr,"enter rule %s {\"%s\"} depth %d",
rule,
LA(1)==1 ? "@" : (char *) LATEXT(1), /* MR19 */
zzTraceDepth);
#ifdef ZZCAN_GUESS
if (zzguessing) fprintf(stderr," guessing");
#endif
fprintf(stderr,"\n");
};
#endif
return;
}
#ifdef __USE_PROTOS
void zzTraceOut(char * rule)
#else
void zzTraceOut(rule)
char *rule;
#endif
{
#ifdef zzTRACE_RULES
int doIt=0;
zzTraceDepth--;
if (zzTraceOptionValue <= 0) {
doIt=0;
#ifdef ZZCAN_GUESS
} else if (zzguessing && zzTraceGuessOptionValue <= 0) {
doIt=0;
#endif
} else {
doIt=1;
};
if (doIt) {
fprintf(stderr,"exit rule %s {\"%s\"} depth %d",
rule,
LA(1)==1 ? "@" : (char *) LATEXT(1), /* MR19 */
zzTraceDepth+1);
#ifdef ZZCAN_GUESS
if (zzguessing) fprintf(stderr," guessing");
#endif
fprintf(stderr,"\n");
};
#endif
}
#ifdef __USE_PROTOS
int zzTraceOption(int delta)
#else
int zzTraceOption(delta)
int delta;
#endif
{
#ifdef zzTRACE_RULES
int prevValue=zzTraceOptionValue;
zzTraceOptionValue=zzTraceOptionValue+delta;
if (zzTraceCurrentRuleName != NULL) {
if (prevValue <= 0 && zzTraceOptionValue > 0) {
fprintf(stderr,"trace enabled in rule %s depth %d\n",
zzTraceCurrentRuleName,zzTraceDepth);
};
if (prevValue > 0 && zzTraceOptionValue <= 0) {
fprintf(stderr,"trace disabled in rule %s depth %d\n",
zzTraceCurrentRuleName,zzTraceDepth);
};
};
return prevValue;
#else
return 0;
#endif
}
#ifdef __USE_PROTOS
int zzTraceGuessOption(int delta)
#else
int zzTraceGuessOption(delta)
int delta;
#endif
{
#ifdef zzTRACE_RULES
#ifdef ZZCAN_GUESS
int prevValue=zzTraceGuessOptionValue;
zzTraceGuessOptionValue=zzTraceGuessOptionValue+delta;
if (zzTraceCurrentRuleName != NULL) {
if (prevValue <= 0 && zzTraceGuessOptionValue > 0) {
fprintf(stderr,"guess trace enabled in rule %s depth %d\n",
zzTraceCurrentRuleName,zzTraceDepth);
};
if (prevValue > 0 && zzTraceGuessOptionValue <= 0) {
fprintf(stderr,"guess trace disabled in rule %s depth %d\n",
zzTraceCurrentRuleName,zzTraceDepth);
};
};
return prevValue;
#else
return 0;
#endif
#else
return 0;
#endif
}
#endif /* ERR_H */
|
8fca373ef4884f22cabc6459dc68db910835e0b8
|
0cac2210f68f2c17dc2e7375bf1ae7f6427b096b
|
/core/include/Spirit/Parameters_GNEB.h
|
a26484ed6c0d35b831bf5ce15f616bca8dfcd588
|
[
"MIT"
] |
permissive
|
spirit-code/spirit
|
43e4fbb3d99049490f7fe89b0fc1736589c58f29
|
e82250d3b14411c2c2fa292d143f13e3e111ad8c
|
refs/heads/master
| 2023-06-12T23:29:10.559514
| 2023-03-17T16:15:44
| 2023-03-17T16:16:17
| 69,043,835
| 114
| 61
|
MIT
| 2023-06-04T19:52:34
| 2016-09-23T16:51:17
|
C++
|
UTF-8
|
C
| false
| false
| 7,364
|
h
|
Parameters_GNEB.h
|
#pragma once
#ifndef SPIRIT_CORE_PARAMETERS_GNEB_H
#define SPIRIT_CORE_PARAMETERS_GNEB_H
#include "IO.h"
#include "DLL_Define_Export.h"
struct State;
/*
GNEB Parameters
====================================================================
```C
#include "Spirit/Parameters_GNEB.h"
```
*/
// Regular GNEB image type.
#define GNEB_IMAGE_NORMAL 0
/*
Climbing GNEB image type.
Climbing images move towards maxima along the path.
*/
#define GNEB_IMAGE_CLIMBING 1
/*
Falling GNEB image type.
Falling images move towards the closest minima.
*/
#define GNEB_IMAGE_FALLING 2
/*
Stationary GNEB image type.
Stationary images are not influenced during a GNEB calculation.
*/
#define GNEB_IMAGE_STATIONARY 3
/*
Set Output
--------------------------------------------------------------------
*/
/*
Set the tag placed in front of output file names.
If the tag is "<time>", it will be the date-time of the creation of the state.
*/
PREFIX void Parameters_GNEB_Set_Output_Tag( State * state, const char * tag, int idx_chain = -1 ) SUFFIX;
// Set the folder, where output files are placed.
PREFIX void Parameters_GNEB_Set_Output_Folder( State * state, const char * folder, int idx_chain = -1 ) SUFFIX;
// Set whether to write any output files at all.
PREFIX void
Parameters_GNEB_Set_Output_General( State * state, bool any, bool initial, bool final, int idx_chain = -1 ) SUFFIX;
/*
Set whether to write energy output files.
- `step`: whether to write a new file after each set of iterations
- `interpolated`: whether to write a file containing interpolated reaction coordinate and energy values
- `divide_by_nos`: whether to divide energies by the number of spins
- `add_readability_lines`: whether to separate columns by lines
*/
PREFIX void Parameters_GNEB_Set_Output_Energies(
State * state, bool step, bool interpolated, bool divide_by_nos, bool add_readability_lines,
int idx_chain = -1 ) SUFFIX;
/*
Set whether to write chain output files.
- `step`: whether to write a new file after each set of iterations
- `filetype`: the format in which the data is written
*/
PREFIX void Parameters_GNEB_Set_Output_Chain(
State * state, bool step, int filetype = IO_Fileformat_OVF_text, int idx_chain = -1 ) SUFFIX;
/*
Set the number of iterations and how often to log and write output.
- `n_iterations`: the maximum number of iterations
- `n_iterations_log`: the number of iterations after which status is logged and output written
*/
PREFIX void
Parameters_GNEB_Set_N_Iterations( State * state, int n_iterations, int n_iterations_log, int idx_chain = -1 ) SUFFIX;
/*
Set Parameters
--------------------------------------------------------------------
*/
/*
Set the convergence limit.
When the maximum absolute component value of the force drops below this value,
the calculation is considered converged and will stop.
*/
PREFIX void
Parameters_GNEB_Set_Convergence( State * state, float convergence, int idx_image = -1, int idx_chain = -1 ) SUFFIX;
// Set the spring force constant.
PREFIX void Parameters_GNEB_Set_Spring_Constant(
State * state, float spring_constant, int idx_image = -1, int idx_chain = -1 ) SUFFIX;
// Set the ratio between energy and reaction coordinate.
PREFIX void Parameters_GNEB_Set_Spring_Force_Ratio( State * state, float ratio, int idx_chain = -1 ) SUFFIX;
// Set the path shortening constant.
PREFIX void Parameters_GNEB_Set_Path_Shortening_Constant(
State * state, float path_shortening_constant, int idx_chain = -1 ) SUFFIX;
// Set if moving endpoints should be used
PREFIX void Parameters_GNEB_Set_Moving_Endpoints( State * state, bool moving_endpoints, int idx_chain = -1 ) SUFFIX;
// Set if attracting endpoints should be used
PREFIX void
Parameters_GNEB_Set_Translating_Endpoints( State * state, bool translating_endpoints, int idx_chain = -1 ) SUFFIX;
// Set equilibrium Rx, used for the moving endpoints method
PREFIX void Parameters_GNEB_Set_Equilibrium_Delta_Rx(
State * state, float delta_Rx_left, float delta_Rx_right, int idx_chain = -1 ) SUFFIX;
// Set the GNEB image type (see the integers defined above).
PREFIX void
Parameters_GNEB_Set_Climbing_Falling( State * state, int image_type, int idx_image = -1, int idx_chain = -1 ) SUFFIX;
/*
Automatically set GNEB image types.
Minima along the path will be set to falling, maxima to climbing and the rest to regular.
*/
PREFIX void Parameters_GNEB_Set_Image_Type_Automatically( State * state, int idx_chain = -1 ) SUFFIX;
// Returns the maximum number of iterations and the step size.
PREFIX void Parameters_GNEB_Set_N_Energy_Interpolations( State * state, int n, int idx_chain = -1 ) SUFFIX;
/*
Get Output
--------------------------------------------------------------------
*/
// Returns the output file tag.
PREFIX const char * Parameters_GNEB_Get_Output_Tag( State * state, int idx_chain = -1 ) SUFFIX;
// Returns the output folder.
PREFIX const char * Parameters_GNEB_Get_Output_Folder( State * state, int idx_chain = -1 ) SUFFIX;
// Retrieves whether to write any output at all.
PREFIX void Parameters_GNEB_Get_Output_General(
State * state, bool * any, bool * initial, bool * final, int idx_chain = -1 ) SUFFIX;
// Retrieves the energy output settings.
PREFIX void Parameters_GNEB_Get_Output_Energies(
State * state, bool * step, bool * interpolated, bool * divide_by_nos, bool * add_readability_lines,
int idx_chain = -1 ) SUFFIX;
// Retrieves the chain output settings.
PREFIX void Parameters_GNEB_Get_Output_Chain( State * state, bool * step, int * filetype, int idx_chain = -1 ) SUFFIX;
// Returns the maximum number of iterations and the step size.
PREFIX void
Parameters_GNEB_Get_N_Iterations( State * state, int * iterations, int * iterations_log, int idx_chain = -1 ) SUFFIX;
/*
Get Parameters
--------------------------------------------------------------------
*/
// Simulation Parameters
PREFIX float Parameters_GNEB_Get_Convergence( State * state, int idx_image = -1, int idx_chain = -1 ) SUFFIX;
// Returns the spring force constant.
PREFIX float Parameters_GNEB_Get_Spring_Constant( State * state, int idx_image = -1, int idx_chain = -1 ) SUFFIX;
// Returns the spring force cratio of energy to reaction coordinate.
PREFIX float Parameters_GNEB_Get_Spring_Force_Ratio( State * state, int idx_chain = -1 ) SUFFIX;
// Return the path shortening constant.
PREFIX float Parameters_GNEB_Get_Path_Shortening_Constant( State * state, int idx_chain = -1 ) SUFFIX;
// Return if moving endpoints are used
PREFIX bool Parameters_GNEB_Get_Moving_Endpoints( State * state, int idx_chain = -1 ) SUFFIX;
// Set if translating endpoints are used
PREFIX bool Parameters_GNEB_Get_Translating_Endpoints( State * state, int idx_chain = -1 ) SUFFIX;
// Get the equilibrium Rx, used for the moving endpoints method
PREFIX void Parameters_GNEB_Get_Equilibrium_Delta_Rx(
State * state, float * delta_Rx_left, float * delta_Rx_right, int idx_chain = -1 ) SUFFIX;
/*
Returns the integer of whether an image is regular, climbing, falling, or stationary.
The integers are defined above.
*/
PREFIX int Parameters_GNEB_Get_Climbing_Falling( State * state, int idx_image = -1, int idx_chain = -1 ) SUFFIX;
// Returns the number of energy values interpolated between images.
PREFIX int Parameters_GNEB_Get_N_Energy_Interpolations( State * state, int idx_chain = -1 ) SUFFIX;
#include "DLL_Undefine_Export.h"
#endif
|
876d93039ab6c52c2afb532a4e6e3ff7775cc90f
|
b4a3facc5fcd12a85c1ca0d33d78312eb94b61cf
|
/ext/image_loader/psx_image_modules.c
|
df7a003435101e1e35a51b2eeb08d367dc72333b
|
[
"BSD-3-Clause"
] |
permissive
|
onecoolx/picasso
|
2d3eecf35947be7991fea06be01986dd0d16773e
|
f14245e09c10467d54eaf845a874584361a46d46
|
refs/heads/master
| 2023-03-20T15:19:03.677086
| 2023-03-01T05:37:03
| 2023-03-01T05:37:03
| 2,441,631
| 333
| 51
|
BSD-3-Clause
| 2023-03-16T03:03:08
| 2011-09-23T02:54:10
|
C
|
UTF-8
|
C
| false
| false
| 6,829
|
c
|
psx_image_modules.c
|
/* Picasso - a vector graphics library
*
* Copyright (C) 2016 Zhang Ji Peng
* Contact: onecoolx@gmail.com
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <limits.h>
#include "psx_image_io.h"
#include "psx_image_loader.h"
#include "psx_image_modules.h"
typedef void (*mod_func)(void);
static pchar modules_dir[PATH_MAX];
int modules_init(struct image_modules_mgr* mgr)
{
pchar* dir_path = NULL;
pchar** mod_paths = NULL;
size_t nums = 0, i = 0, n = 0;
mod_func func = NULL;
memset(modules_dir, 0, sizeof(pchar) * PATH_MAX);
//init coder list.
if (list_init(&(mgr->coders)) != 0){
fprintf(stderr, "internal error!\n");
return -1;
}
dir_path = _module_get_modules_dir(modules_dir, PATH_MAX);
if (!dir_path) {
fprintf(stderr, "no image modules directory found!\n");
return -1;
}
nums = _module_get_modules(modules_dir, NULL, 0);
if (!nums) {
fprintf(stderr, "no image modules found!\n");
return -1;
}
mgr->modules = (struct image_module_node*)calloc(nums, sizeof(struct image_module_node));
mod_paths = (pchar**)calloc(nums, sizeof(pchar*));
_module_get_modules(modules_dir, mod_paths, nums);
for (i = 0, n = 0; i < nums; i++) {
pchar * ps = mod_paths[i];
module_handle h = _module_load(ps);
// init module
func = _module_get_symbol(h, "psx_image_module_init");
if (func) {
func(); // call module init
mgr->modules[n].path = ps;
mgr->modules[n].handle = h;
n++;
} else {
// unload other module and free path.
_module_unload(h);
free(ps);
}
}
mgr->num_modules = n;
free(mod_paths);
return 0;
}
void modules_destroy(struct image_modules_mgr* mgr)
{
size_t i = 0;
for (i = 0; i < mgr->num_modules; i++) {
mod_func func = _module_get_symbol(mgr->modules[i].handle, "psx_image_module_shutdown");
if (func)
func(); // call module deinit
_module_unload(mgr->modules[i].handle);
free(mgr->modules[i].path);
}
free(mgr->modules);
}
struct image_coder_node* get_first_operator(struct image_modules_mgr* mgr, const ps_byte* data, size_t len)
{
struct list_hdr* ptr = NULL;
struct image_coder_node* entry = NULL;
list_for_each(&(mgr->coders), ptr) {
entry = (struct image_coder_node*)ptr;
if (memcmp(data + entry->magic_offset, entry->magic_hdr, entry->magic_len) == 0)
break;
entry = NULL;
}
return entry;
}
struct image_coder_node* get_first_operator_by_name(struct image_modules_mgr* mgr, const char* type)
{
struct list_hdr* ptr = NULL;
struct image_coder_node* entry = NULL;
list_for_each(&(mgr->coders), ptr) {
entry = (struct image_coder_node*)ptr;
if (strncmp(type, entry->type_name, strlen(entry->type_name)) == 0)
break;
entry = NULL;
}
return entry;
}
struct image_coder_node* get_next_operator(struct image_modules_mgr* mgr, struct image_coder_node* node, const ps_byte* data, size_t len)
{
struct list_hdr* ptr = NULL;
struct image_coder_node* entry = NULL;
list_for_each_start_with(&(mgr->coders), node, ptr) {
entry = (struct image_coder_node*)ptr;
if (memcmp(data + entry->magic_offset, entry->magic_hdr, entry->magic_len) == 0)
break;
entry = NULL;
}
return entry;
}
struct image_coder_node* get_next_operator_by_name(struct image_modules_mgr* mgr, struct image_coder_node* node, const char* type)
{
struct list_hdr* ptr = NULL;
struct image_coder_node* entry = NULL;
list_for_each_start_with(&(mgr->coders), node, ptr) {
entry = (struct image_coder_node*)ptr;
if (strncmp(type, entry->type_name, strlen(entry->type_name)) == 0)
break;
entry = NULL;
}
return entry;
}
static char* copy_magic(const char* str, size_t len)
{
char* dst = (char*)calloc(len+1, sizeof(char)); //malloc and clear
memcpy(dst, str, len);
return dst;
}
int psx_image_register_operator(const char* type, const ps_byte* header_magic,
size_t magic_offset, size_t magic_len, psx_priority_level level, psx_image_operator* coder)
{
struct image_modules_mgr* mgr = NULL;
struct list_hdr* ptr = NULL;
struct image_coder_node* entry = NULL;
if (!type || !header_magic || !magic_len || !coder)
return S_BAD_PARAMS;
mgr = _get_modules();
if (!mgr)
return S_INIT_FAILURE;
list_for_each(&(mgr->coders), ptr) {
entry = (struct image_coder_node*)ptr;
if (entry && entry->magic_len == magic_len) {
if ((memcmp(entry->magic_hdr, header_magic, magic_len) == 0) && (magic_offset == entry->magic_offset)) {
break;
}
}
entry = NULL;
}
if (entry) {
struct image_coder_node* new_entry = (struct image_coder_node*)calloc(1, sizeof(struct image_coder_node));
new_entry->magic_hdr = copy_magic((const char*)header_magic, magic_len);
new_entry->magic_offset = magic_offset;
new_entry->magic_len = magic_len;
new_entry->level = (int)level;
new_entry->type_name = strdup(type);
new_entry->op = coder;
if (level == PRIORITY_MASTER)
list_add_tail(entry, new_entry);
else if (level == PRIORITY_EXTENTED)
list_add_tail(&(mgr->coders), new_entry);
else
list_add(entry, new_entry);
} else {
entry = (struct image_coder_node*)calloc(1, sizeof(struct image_coder_node));
entry->magic_hdr = copy_magic((const char*)header_magic, magic_len);
entry->magic_offset = magic_offset;
entry->magic_len = magic_len;
entry->level = (int)level;
entry->type_name = strdup(type);
entry->op = coder;
list_add(&(mgr->coders), entry);
}
mgr->num_coders++;
return S_OK;
}
int psx_image_unregister_operator(psx_image_operator* coder)
{
struct image_modules_mgr* mgr = NULL;
struct list_hdr* ptr = NULL;
struct image_coder_node* entry = NULL;
if (!coder)
return S_BAD_PARAMS;
mgr = _get_modules();
if (!mgr)
return S_INIT_FAILURE;
if (list_empty(&(mgr->coders)) == 0)
return S_OK;
list_for_each(&(mgr->coders), ptr) {
entry = (struct image_coder_node*)ptr;
if (entry && (entry->op == coder))
break;
entry = NULL;
}
if (entry) {
list_remove(entry);
// free node
free(entry->magic_hdr);
free(entry->type_name);
free(entry);
mgr->num_coders--;
}
return S_OK;
}
|
22b08bc25bae0e6a76bf67b7b864c7ffd594847b
|
e683a0b8dbb87c7ceb99e0d06896174a559d2c67
|
/Tools/pmake/src/lib/sprite/sys.c
|
863cdadda514764ed7796623195df458a932b9fa
|
[
"Apache-2.0"
] |
permissive
|
bluewaysw/pcgeos
|
f093d79567d977d992f47065056d14d5a04b9f14
|
c6ae4c8e77b54b9ff654c3916f2191f8b1a1b65d
|
refs/heads/master
| 2023-08-31T00:17:54.481175
| 2023-08-29T19:00:49
| 2023-08-29T19:00:49
| 157,968,410
| 603
| 88
|
Apache-2.0
| 2023-09-13T07:44:06
| 2018-11-17T09:09:55
|
Assembly
|
UTF-8
|
C
| false
| false
| 1,714
|
c
|
sys.c
|
/*
* sys.c --
*
* Miscellaneous user-level run-time library routines for the Sys module.
*
* Copyright 1986 Regents of the University of California
* All rights reserved.
*/
#include <config.h>
#ifndef lint
static char rcsid[] = "$Id: sys.c,v 1.1 96/06/24 15:04:40 tbradley Exp $ SPRITE (Berkeley)";
#endif not lint
#include <stdio.h>
#include <stdlib.h>
#include "sprite.h"
#include "sys.h"
#include <stdarg.h>
/*
* ----------------------------------------------------------------------------
*
* Sys_Panic --
*
* Print a formatted string and then,depending on the panic level,
* abort to the debugger or continue.
*
* Results:
* None.
*
* Side effects:
* The process may be put into the debug state.
*
* ----------------------------------------------------------------------------
*/
/*VARARGS2*/
void
Sys_Panic(
Sys_PanicLevel level, /* Severity of the error. */
char *format, /* Contains literal text and format control
* sequences indicating how elements of
* Varg_Alist are to be printed. See the
* Io_Print manual page for details. */
...) /* Variable number of values to be formatted
* and printed. */
{
va_list args;
va_start(format, args);
if (level == SYS_WARNING) {
fprintf(stderr, "Warning: ");
} else {
fprintf(stderr, "Fatal Error: ");
}
vfprintf(stderr, format, args);
fflush(stderr);
va_end(args);
if (level == SYS_FATAL) {
abort();
}
}
|
8a3bf295a797dc5c0f5615b6609b4e73beae2445
|
b970e053302588f44ee1c6b7187c4769934c857f
|
/ajax/libs/openlayers/6.0.1-dev.1572017335717/src/easing.js
|
7a64d450e91e6f3e748bdd62766aaac984b883af
|
[
"MIT",
"LicenseRef-scancode-free-unknown",
"BSD-2-Clause"
] |
permissive
|
cdnjs/cdnjs
|
2fe0f21477c08618fe609da844f5d133224c3eda
|
6843ffa5339e4595b3a6893ae3e9ede1117cc5f9
|
refs/heads/master
| 2023-07-23T14:52:44.587645
| 2023-07-23T07:12:24
| 2023-07-23T07:12:24
| 1,409,811
| 8,894
| 5,633
|
MIT
| 2023-06-27T12:32:50
| 2011-02-25T05:53:47
| null |
UTF-8
|
C
| false
| false
| 1,241
|
js
|
easing.js
|
/**
* @module ol/easing
*/
/**
* Start slow and speed up.
* @param {number} t Input between 0 and 1.
* @return {number} Output between 0 and 1.
* @api
*/
export function easeIn(t) {
return Math.pow(t, 3);
}
/**
* Start fast and slow down.
* @param {number} t Input between 0 and 1.
* @return {number} Output between 0 and 1.
* @api
*/
export function easeOut(t) {
return 1 - easeIn(1 - t);
}
/**
* Start slow, speed up, and then slow down again.
* @param {number} t Input between 0 and 1.
* @return {number} Output between 0 and 1.
* @api
*/
export function inAndOut(t) {
return 3 * t * t - 2 * t * t * t;
}
/**
* Maintain a constant speed over time.
* @param {number} t Input between 0 and 1.
* @return {number} Output between 0 and 1.
* @api
*/
export function linear(t) {
return t;
}
/**
* Start slow, speed up, and at the very end slow down again. This has the
* same general behavior as {@link module:ol/easing~inAndOut}, but the final
* slowdown is delayed.
* @param {number} t Input between 0 and 1.
* @return {number} Output between 0 and 1.
* @api
*/
export function upAndDown(t) {
if (t < 0.5) {
return inAndOut(2 * t);
} else {
return 1 - inAndOut(2 * (t - 0.5));
}
}
|
070b62f1a64b31ec4f3a6145024f70dc30030c64
|
800c3c4eee1687e46edc16fb5ed3a5c49f64b6fd
|
/test/pipe-reuse.c
|
255bc2af5be26fe1ff566ac4b022580b53ee5c7c
|
[
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"Linux-syscall-note",
"MIT",
"LGPL-2.1-only",
"GPL-2.0-only"
] |
permissive
|
axboe/liburing
|
8ced1953de2fca05bf689e322d4f68a6a2b4ef1e
|
58ec7c1aea2d57acbc3d398d0c8b2625746eaf04
|
refs/heads/master
| 2023-09-04T04:34:14.490712
| 2023-08-26T14:17:34
| 2023-08-28T14:22:13
| 200,663,555
| 2,276
| 374
|
MIT
| 2023-09-13T14:12:03
| 2019-08-05T13:43:57
|
C
|
UTF-8
|
C
| false
| false
| 2,114
|
c
|
pipe-reuse.c
|
/* SPDX-License-Identifier: MIT */
/*
* Check split up read is handled correctly
*/
#include <errno.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <pthread.h>
#include <string.h>
#include "liburing.h"
#define BUFSIZE 16384
#define BUFFERS 16
int main(int argc, char *argv[])
{
char buf[BUFSIZE], wbuf[BUFSIZE];
struct iovec iov[BUFFERS];
struct io_uring_params p = { };
struct io_uring ring;
struct io_uring_sqe *sqe;
struct io_uring_cqe *cqe;
int ret, i, fds[2];
void *ptr;
if (pipe(fds) < 0) {
perror("pipe");
return 1;
}
ptr = buf;
for (i = 0; i < BUFFERS; i++) {
unsigned bsize = BUFSIZE / BUFFERS;
iov[i].iov_base = ptr;
iov[i].iov_len = bsize;
ptr += bsize;
}
ret = io_uring_queue_init_params(8, &ring, &p);
if (ret) {
fprintf(stderr, "queue_init: %d\n", ret);
return 1;
}
if (!(p.features & IORING_FEAT_SUBMIT_STABLE)) {
fprintf(stdout, "FEAT_SUBMIT_STABLE not there, skipping\n");
return 0;
}
ptr = wbuf;
memset(ptr, 0x11, sizeof(wbuf) / 2);
ptr += sizeof(wbuf) / 2;
memset(ptr, 0x22, sizeof(wbuf) / 2);
ret = write(fds[1], wbuf, sizeof(wbuf) / 2);
if (ret != sizeof(wbuf) / 2) {
fprintf(stderr, "Bad write\n");
ret = 1;
goto err;
}
sqe = io_uring_get_sqe(&ring);
io_uring_prep_readv(sqe, fds[0], iov, BUFFERS, 0);
ret = io_uring_submit(&ring);
if (ret != 1) {
fprintf(stderr, "submit: %d\n", ret);
return 1;
}
for (i = 0; i < BUFFERS; i++) {
iov[i].iov_base = NULL;
iov[i].iov_len = 1000000;
}
ret = write(fds[1], ptr, sizeof(wbuf) / 2);
if (ret != sizeof(wbuf) / 2) {
fprintf(stderr, "Bad write\n");
ret = 1;
goto err;
}
ret = io_uring_wait_cqe(&ring, &cqe);
if (ret) {
fprintf(stderr, "wait: %d\n", ret);
return 1;
}
if (cqe->res < 0) {
fprintf(stderr, "Read error: %s\n", strerror(-cqe->res));
return 1;
} else if (cqe->res != sizeof(wbuf)) {
/* ignore short read, not a failure */
goto err;
}
io_uring_cqe_seen(&ring, cqe);
ret = memcmp(wbuf, buf, sizeof(wbuf));
if (ret)
fprintf(stderr, "Read data mismatch\n");
err:
io_uring_queue_exit(&ring);
return ret;
}
|
33272e5485027724466b27d70416348dc4e65edc
|
28d0f8c01599f8f6c711bdde0b59f9c2cd221203
|
/sys/arch/atari/stand/tostools/file2swp/file2swp.c
|
d3b4846c3c6ffbf4a419036ab856a72d9fa37d28
|
[] |
no_license
|
NetBSD/src
|
1a9cbc22ed778be638b37869ed4fb5c8dd616166
|
23ee83f7c0aea0777bd89d8ebd7f0cde9880d13c
|
refs/heads/trunk
| 2023-08-31T13:24:58.105962
| 2023-08-27T15:50:47
| 2023-08-27T15:50:47
| 88,439,547
| 656
| 348
| null | 2023-07-20T20:07:24
| 2017-04-16T20:03:43
| null |
UTF-8
|
C
| false
| false
| 5,846
|
c
|
file2swp.c
|
/* $NetBSD: file2swp.c,v 1.9 2016/03/12 02:17:05 dholland Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
* ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/types.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#include "libtos.h"
#include "diskio.h"
#include "ahdilbl.h"
#include "disklbl.h"
#include "cread.h"
char *Infile = "minifs.gz";
const char version[] = "$Revision: 1.9 $";
extern const char *program_name;
int main PROTO((int, char **));
static int check_bsdlabel PROTO((disk_t *,u_int32_t,u_int32_t *,u_int32_t *));
static int readdisklabel PROTO((disk_t *, u_int32_t *, u_int32_t *));
static void usage PROTO((void)) NORETURN;
static void
usage(void)
{
eprintf("Usage: %s [OPTIONS] DISK\n"
"where OPTIONS are:\n"
"\t-V display version information\n"
"\t-f FILE File to copy. The FILE may be a gzipped file.\n"
"\t If not specified, it defaults to minifs.gz.\n"
"\t-h display this help and exit\n"
"\t-o FILE send output to FILE instead of stdout\n"
"\t-w wait for key press before exiting\n\n"
"DISK is the concatenation of BUS, TARGET and LUN.\n"
"BUS is one of `i' (IDE), `a' (ACSI) or `s' (SCSI).\n"
"TARGET and LUN are one decimal digit each. LUN must\n"
"not be specified for IDE devices and is optional for\n"
"ACSI/SCSI devices (if omitted, LUN defaults to 0).\n\n"
"Examples: a0 refers to ACSI target 0 lun 0\n"
" s21 refers to SCSI target 2 lun 1\n"
, program_name);
xexit(EXIT_SUCCESS);
}
int
main(int argc, char **argv)
{
extern int optind;
extern char *optarg;
disk_t *dd;
int rv, c, fd;
u_int32_t currblk;
u_int32_t start, end;
char buf[AHDI_BSIZE];
rv = 0;
init_toslib(*argv);
while ((c = getopt(argc, argv, "Vf:ho:w")) != -1) {
switch (c) {
case 'f':
Infile = optarg;
break;
case 'o':
redirect_output(optarg);
break;
case 'w':
set_wait_for_key();
break;
case 'V':
error(-1, "%s", version);
break;
/* NOT REACHED */
case 'h':
default:
usage();
/* NOT REACHED */
}
}
argv += optind;
if (!*argv) {
error(-1, "missing DISK argument");
usage();
/* NOT REACHED */
}
dd = disk_open(*argv);
if (readdisklabel(dd, &start, &end) != 0)
xexit(1);
if ((fd = open(Infile, O_RDONLY)) < 0) {
eprintf("Unable to open <%s>\n", Infile);
xexit(1);
}
switch(key_wait("Are you sure (y/n)? ")) {
case 'y':
case 'Y':
currblk = start;
while ((c = read(fd, buf, sizeof(buf))) > 0) {
if (disk_write(dd, currblk, 1, buf) < 0) {
eprintf("Error writing to swap partition\n");
xexit(1);
}
if (++currblk >= end) {
eprintf("Error: filesize exceeds swap "
"partition size\n");
xexit(1);
}
}
close(fd);
eprintf("Ready\n");
xexit(0);
break;
default :
eprintf("Aborted\n");
break;
}
rv = EXIT_FAILURE;
return(rv);
}
static int
check_bsdlabel(disk_t *dd, u_int32_t offset, u_int32_t *start, u_int32_t *end)
{
struct disklabel dl;
int err;
err = bsd_getlabel(dd, &dl, offset);
if (err < 0) {
eprintf("Device I/O error (hardware problem?)\n\n");
return (-1);
}
if (!err) {
if (dl.d_partitions[1].p_size > 0) {
*start = dl.d_partitions[1].p_offset;
*end = *start + dl.d_partitions[1].p_size-1;
eprintf("NetBSD/Atari format%s, Swap partition start:%d, end:%d\n",
offset != 0 ? " (embedded)" : "", *start, *end);
return (0);
}
eprintf("NetBSD/Atari format: no swap defined\n");
}
return 1;
}
static int
readdisklabel(disk_t *dd, u_int32_t *start, u_int32_t *end)
{
ptable_t pt;
int err, i;
err = check_bsdlabel(dd, LABELSECTOR, start, end);
if (err != 1)
return (err);
memset(&pt, 0, sizeof(pt));
err = ahdi_getparts(dd, &pt, AHDI_BBLOCK, AHDI_BBLOCK);
if (err < 0) {
eprintf("Device I/O error (hardware problem?)\n\n");
return (-1);
}
if (!err) {
/*
* Check for hidden BSD labels
*/
for (i = 0; i < pt.nparts; i++) {
if (!strncmp(pt.parts[i].id, "NBD", 3)) {
err = check_bsdlabel(dd, pt.parts[i].start, start, end);
if (err != 1)
return (err);
}
}
for (i = 0; i < pt.nparts; i++) {
if (!strncmp(pt.parts[i].id, "SWP", 3))
break;
}
if (i < pt.nparts) {
*start = pt.parts[i].start;
*end = pt.parts[i].end;
eprintf("AHDI format, SWP partition: start:%d,end: %d\n",
*start, *end);
return (0);
}
eprintf("AHDI format, no swap ('SWP') partition found!\n");
}
eprintf("Unknown label format.\n\n");
return(-1);
}
|
2c98329a112de9d3fc57fb9254090e0c5edd7e02
|
0744dcc5394cebf57ebcba343747af6871b67017
|
/apps/examples/kernel_update_test/kernel_update_test_main.c
|
92a4b07781852091f78e2387298e9b3f0e1732a2
|
[
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] |
permissive
|
Samsung/TizenRT
|
96abf62f1853f61fcf91ff14671a5e0c6ca48fdb
|
1a5c2e00a4b1bbf4c505bbf5cc6a8259e926f686
|
refs/heads/master
| 2023-08-31T08:59:33.327998
| 2023-08-08T06:09:20
| 2023-08-31T04:38:20
| 82,517,252
| 590
| 719
|
Apache-2.0
| 2023-09-14T06:54:49
| 2017-02-20T04:38:30
|
C
|
UTF-8
|
C
| false
| false
| 11,812
|
c
|
kernel_update_test_main.c
|
/****************************************************************************
*
* Copyright 2023 Samsung Electronics All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
* either express or implied. See the License for the specific
* language governing permissions and limitations under the License.
*
****************************************************************************/
/****************************************************************************
* Included Files
****************************************************************************/
#include <tinyara/config.h>
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <fcntl.h>
#include <crc32.h>
#include <sys/types.h>
#ifdef CONFIG_MMINFO
#include <tinyara/fs/ioctl.h>
#include <tinyara/mminfo.h>
#endif
#include <tinyara/binary_manager.h>
#include <binary_manager/binary_manager.h>
/* Kernel binary information for update test */
#define KERNEL "kernel"
#define DOWNLOAD_VALID_BIN 0
#define DOWNLOAD_INVALID_BIN 1
#define CHECKSUM_SIZE 4
#define BUFFER_SIZE 512
static int fail_cnt = 0;
static int binary_update_download_binary(binary_update_info_t *binary_info, bool version_up, int condition)
{
int read_fd;
int write_fd;
int ret;
int total_size;
int copy_size;
int read_size;
uint32_t crc_hash = 0;
uint8_t buffer[BUFFER_SIZE];
char origin_path[BINARY_PATH_LEN];
char download_path[BINARY_PATH_LEN];
kernel_binary_header_t header_data;
ret = binary_manager_get_current_path(binary_info->name, origin_path);
if (ret < 0) {
printf("binary_manager_get_current_path FAIL, ret %d\n", ret);
ret = ERROR;
goto errout;
} else {
printf("path to %s's currently used partition %s\n", binary_info->name, origin_path);
}
read_fd = open(origin_path, O_RDONLY);
if (read_fd < 0) {
fail_cnt++;
printf("Failed to open %s: %d, errno: %d\n", origin_path, read_fd, get_errno());
return ERROR;
}
/* Read the binary header. */
ret = read(read_fd, (FAR uint8_t *)&header_data, sizeof(kernel_binary_header_t));
if (ret != sizeof(kernel_binary_header_t)) {
printf("Failed to read header %s: %d\n", origin_path, ret);
ret = ERROR;
goto errout_with_close_fd1;
}
ret = binary_manager_get_download_path(binary_info->name, download_path);
if (ret < 0) {
printf("binary_manager_get_download_path FAIL, ret %d\n", ret);
ret = ERROR;
goto errout_with_close_fd1;
} else {
printf("path to %s's inactive partition %s\n", binary_info->name, download_path);
}
write_fd = open(download_path, O_WRONLY);
if (write_fd < 0) {
printf("Failed to open %s: errno %d\n", download_path, get_errno());
ret = ERROR;
goto errout_with_close_fd1;
}
/* Version update */
if (version_up) {
header_data.version = binary_info->version + 1;
}
/* Write the binary header. */
ret = write(write_fd, (FAR uint8_t *)&header_data, sizeof(kernel_binary_header_t));
if (ret != sizeof(kernel_binary_header_t)) {
printf("Failed to write header: %d\n", ret);
ret = ERROR;
goto errout_with_close_fd2;
}
copy_size = 0;
total_size = header_data.binary_size;
crc_hash = crc32part((uint8_t *)&header_data + CHECKSUM_SIZE, header_data.header_size, crc_hash);
/* Copy binary */
while (total_size > copy_size) {
read_size = ((total_size - copy_size) < BUFFER_SIZE ? (total_size - copy_size) : BUFFER_SIZE);
ret = read(read_fd, (FAR uint8_t *)buffer, read_size);
if (ret != read_size) {
printf("Failed to read buffer : %d\n", ret);
ret = ERROR;
goto errout_with_close_fd2;
}
ret = write(write_fd, (FAR uint8_t *)buffer, read_size);
if (ret != read_size) {
printf("Failed to write buffer : %d\n", ret);
ret = ERROR;
goto errout_with_close_fd2;
}
crc_hash = crc32part(buffer, read_size, crc_hash);
copy_size += read_size;
printf("Copy %s binary to %s [%d%%]\r", binary_info->name, download_path, copy_size * 100 / total_size);
}
printf("\nCopy SUCCESS\n");
if (condition == DOWNLOAD_INVALID_BIN) {
/* Invalid crc value */
crc_hash++;
}
/* Write new crc value. */
ret = lseek(write_fd, 0, SEEK_SET);
if (ret != 0) {
printf("Failed to lseek %d, errno %d\n", ret, errno);
ret = ERROR;
goto errout_with_close_fd2;
}
ret = write(write_fd, (FAR uint8_t *)&crc_hash, CHECKSUM_SIZE);
if (ret != CHECKSUM_SIZE) {
printf("Failed to write %d\n", ret);
ret = ERROR;
goto errout_with_close_fd2;
}
printf("Download binary %s version %d Done!\n", binary_info->name, header_data.version);
ret = OK;
errout_with_close_fd2:
close(write_fd);
errout_with_close_fd1:
close(read_fd);
errout:
if (ret < 0) {
fail_cnt++;
}
return ret;
}
static void print_binary_info(binary_update_info_t *binary_info)
{
printf(" =========== binary [%s] info ============ \n", binary_info->name);
printf(" %10s | %8s\n", "Version", "Available size");
printf(" -------------------------------------------- \n");
printf(" %8.1u | %8d\n", binary_info->version, binary_info->available_size);
printf(" ============================================ \n");
}
static void print_binary_info_list(binary_update_info_list_t *binary_info_list)
{
int bin_idx;
printf(" ============== ALL binary info : %d count ================ \n", binary_info_list->bin_count);
printf(" %4s | %6s | %10s | %8s\n", "Idx", "Name", "Version", "Available size");
printf(" -------------------------------------------------------- \n");
for (bin_idx = 0; bin_idx < binary_info_list->bin_count; bin_idx++) {
printf(" %4d | %6s | %8.1u | %8d\n", bin_idx, \
binary_info_list->bin_info[bin_idx].name, binary_info_list->bin_info[bin_idx].version, \
binary_info_list->bin_info[bin_idx].available_size);
}
printf(" ======================================================== \n");
}
static int binary_update_check_test_result(binary_update_info_t *pre_bin_info, binary_update_info_t *cur_bin_info, int condition)
{
int ret = ERROR;
printf(" ========== [%5s] Update info =========== \n", cur_bin_info->name);
printf(" %4s | %10s \n", "Con", "Version");
printf(" ----------------------------------------- \n");
printf(" %4s | %8.1u \n", "Pre", pre_bin_info->version);
printf(" %4s | %8.1u \n", "Cur", cur_bin_info->version);
printf(" ========================================== \n");
if (condition == DOWNLOAD_VALID_BIN) {
if (pre_bin_info->version == cur_bin_info->version) {
fail_cnt++;
printf("Fail to load valid higher version binary.\n");
} else {
ret = OK;
printf("Success to load valid higher version binary.\n");
}
} else { //DOWNLOAD_INVALID_BIN
if (pre_bin_info->version != cur_bin_info->version) {
fail_cnt++;
printf("Warning! Load invalid binary.\n");
} else {
ret = OK;
printf("No update with invalid binary.\n");
}
}
return ret;
}
static void binary_update_getinfo_all(void)
{
int ret;
binary_update_info_list_t bin_info_list;
printf("\n** Binary Update GETINFO_ALL test.\n");
ret = binary_manager_get_update_info_all(&bin_info_list);
if (ret == OK) {
print_binary_info_list(&bin_info_list);
} else {
fail_cnt++;
printf("Get binary info all FAIL %d\n", ret);
}
}
static int binary_update_getinfo(char *name, binary_update_info_t *bin_info)
{
int ret;
printf("\n** Binary Update GETINFO [%s] test.\n", name);
ret = binary_manager_get_update_info(name, bin_info);
if (ret == OK) {
print_binary_info(bin_info);
} else {
fail_cnt++;
printf("Get binary info FAIL, ret %d\n", ret);
}
return ret;
}
static int binary_update_reload(void)
{
int ret;
printf("\n** Binary Update RELOAD test.\n");
ret = binary_manager_update_binary();
if (ret == OK) {
printf("RELOAD SUCCESS\n");
} else {
fail_cnt++;
printf("Reload binary FAIL, ret %d\n", ret);
}
return ret;
}
static int binary_update_same_version_test(void)
{
int ret;
uint8_t type = 0;
binary_setbp_result_t result;
binary_update_info_t pre_bin_info;
binary_update_info_t cur_bin_info;
printf("\n** Binary Update Same Version Test. **\n");
ret = binary_update_getinfo(KERNEL, &pre_bin_info);
if (ret != OK) {
return ret;
}
/* Copy current binary with no version update */
ret = binary_update_download_binary(&pre_bin_info, false, DOWNLOAD_VALID_BIN);
if (ret != OK) {
printf("\nfailed to update same binary\n");
return ret;
}
sleep(2);
BM_SET_GROUP(type, BINARY_KERNEL);
ret = binary_manager_set_bootparam(type, &result);
if (ret != OK) {
if (ret == BINMGR_ALREADY_UPDATED) {
int idx;
for (idx = 0; idx < BINARY_TYPE_MAX; idx++) {
printf("[%d] result %d\n", idx, result.result[idx]);
}
}
return ret;
}
ret = binary_update_reload();
if (ret != OK) {
return ret;
}
ret = binary_update_getinfo(KERNEL, &cur_bin_info);
if (ret != OK) {
return ret;
}
return binary_update_check_test_result(&pre_bin_info, &cur_bin_info, DOWNLOAD_INVALID_BIN);
}
static int binary_update_new_version_test(char *bin_name)
{
int ret;
uint8_t type = 0;
binary_setbp_result_t result;
binary_update_info_t pre_bin_info;
binary_update_info_t cur_bin_info;
printf("\n** Binary Update New Version Test. **\n");
ret = binary_update_getinfo(bin_name, &pre_bin_info);
if (ret != OK) {
return ret;
}
/* Copy current binary and update version. */
ret = binary_update_download_binary(&pre_bin_info, true, DOWNLOAD_VALID_BIN);
if (ret != OK) {
return ret;
}
BM_SET_GROUP(type, BINARY_KERNEL);
ret = binary_manager_set_bootparam(type, &result);
printf("binary_manager_set_bootparam %d\n", ret);
if (ret != OK) {
if (ret == BINMGR_ALREADY_UPDATED) {
int idx;
for (idx = 0; idx < BINARY_TYPE_MAX; idx++) {
printf("[%d] result %d\n", idx, result.result[idx]);
}
}
return ret;
}
ret = binary_update_reload();
if (ret != OK) {
return ret;
}
sleep(2);
ret = binary_update_getinfo(bin_name, &cur_bin_info);
if (ret != OK) {
return ret;
}
return binary_update_check_test_result(&pre_bin_info, &cur_bin_info, DOWNLOAD_VALID_BIN);
}
static void binary_update_invalid_binary_test(void)
{
int ret;
binary_update_info_t pre_bin_info;
binary_update_info_t cur_bin_info;
printf("\n** Binary Update Invalid binary update Test. **\n");
ret = binary_update_getinfo(KERNEL, &pre_bin_info);
if (ret != OK) {
return;
}
/* Copy current binary and Write invalid crc. */
ret = binary_update_download_binary(&pre_bin_info, true, DOWNLOAD_INVALID_BIN);
if (ret != OK) {
return;
}
ret = binary_update_reload();
if (ret != OK) {
return;
}
sleep(2);
ret = binary_update_getinfo(KERNEL, &cur_bin_info);
if (ret != OK) {
return;
}
binary_update_check_test_result(&pre_bin_info, &cur_bin_info, DOWNLOAD_INVALID_BIN);
}
static void binary_update_run_tests(void)
{
/* 1. Get info all test. */
binary_update_getinfo_all();
/* 2. Reload test with same version. */
binary_update_same_version_test();
/* 3. Reload test with invalid binary. */
binary_update_invalid_binary_test();
/* 4. Reload test with new version. */
binary_update_new_version_test(KERNEL);
}
/****************************************************************************
* binary_update_aging_test
****************************************************************************/
#ifdef CONFIG_BUILD_KERNEL
int main(int argc, FAR char *argv[])
#else
int kernel_update_main(int argc, char *argv[])
#endif
{
binary_update_run_tests();
}
|
4497610f548b2932bf33f4347726ad73b33b82ab
|
a5a99f646e371b45974a6fb6ccc06b0a674818f2
|
/DataFormats/EgammaTrackReco/src/classes.h
|
af32315f4df154c2bc1943e87d2e322a76956b74
|
[
"Apache-2.0"
] |
permissive
|
cms-sw/cmssw
|
4ecd2c1105d59c66d385551230542c6615b9ab58
|
19c178740257eb48367778593da55dcad08b7a4f
|
refs/heads/master
| 2023-08-23T21:57:42.491143
| 2023-08-22T20:22:40
| 2023-08-22T20:22:40
| 10,969,551
| 1,006
| 3,696
|
Apache-2.0
| 2023-09-14T19:14:28
| 2013-06-26T14:09:07
|
C++
|
UTF-8
|
C
| false
| false
| 1,289
|
h
|
classes.h
|
#include "DataFormats/TrackCandidate/interface/TrackCandidateCollection.h"
#include "DataFormats/CLHEP/interface/Migration.h"
#include "DataFormats/TrackingRecHit/interface/TrackingRecHitFwd.h"
#include "DataFormats/TrackCandidate/interface/TrackCandidate.h"
#include "DataFormats/TrackReco/interface/Track.h"
#include "Rtypes.h"
#include "Math/Cartesian3D.h"
#include "Math/Polar3D.h"
#include "Math/CylindricalEta3D.h"
#include "DataFormats/TrackReco/interface/TrackFwd.h"
#include "DataFormats/EgammaTrackReco/interface/TrackCandidateSuperClusterAssociation.h"
#include "DataFormats/EgammaTrackReco/interface/TrackSuperClusterAssociation.h"
#include "DataFormats/EgammaTrackReco/interface/TrackCandidateCaloClusterAssociation.h"
#include "DataFormats/EgammaTrackReco/interface/TrackCaloClusterAssociation.h"
#include "DataFormats/Common/interface/RefProd.h"
#include "DataFormats/EgammaReco/interface/SuperCluster.h"
#include "DataFormats/EgammaReco/interface/SuperClusterFwd.h"
#include "DataFormats/CaloRecHit/interface/CaloCluster.h"
#include "DataFormats/CaloRecHit/interface/CaloClusterFwd.h"
#include "DataFormats/EgammaTrackReco/interface/ConversionTrack.h"
#include "DataFormats/EgammaTrackReco/interface/ConversionTrackFwd.h"
#include "DataFormats/Common/interface/Wrapper.h"
|
7f9f6fcb962d2c3a1d9056961bc57633448c08e1
|
12bfb9ef2028a0378f576f5f58a05a2c5e107ba2
|
/include/libsurvive/survive_reproject_gen2.h
|
16c00459881f86f6a222a325f89892d2c76a6bfd
|
[
"MIT"
] |
permissive
|
cntools/libsurvive
|
095a21b2fb20156b6222b44bb32c5e0ae6745cc6
|
ec902cc048baecbca3d704482d3923bdb84a1e7d
|
refs/heads/master
| 2023-08-26T05:14:26.842420
| 2023-04-17T15:45:08
| 2023-04-17T15:45:08
| 75,029,407
| 336
| 76
|
MIT
| 2023-04-17T15:45:10
| 2016-11-29T01:14:05
|
C
|
UTF-8
|
C
| false
| false
| 2,007
|
h
|
survive_reproject_gen2.h
|
#pragma once
#include "survive.h"
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include "survive_reproject.h"
/**
* The conventions for reprojection in libsurvive:
*
* - Lighthouses are oriented sorta unintuitively -- If you have a lighthouse sitting on where the tripod mount is, in
* front of it -- where it is projecting light -- is -Z. To it's right is +X. Up is +Y.
* - So for instance -- an object to the right and lower than a lighthouse would have a ptInLh of { 1, -1, -1 }
* - Physically, lighthouses sweep from their right to left, and from up to down.
* - All angle measurements are in range of -PI / 2 to PI / 2. To the right / bottom of the lighthouse is -PI/2.
*/
#ifdef __cplusplus
extern "C" {
#endif
SURVIVE_EXPORT FLT survive_reproject_axis_x_gen2(const BaseStationCal *bcal, LinmathVec3d const ptInLh);
SURVIVE_EXPORT FLT survive_reproject_axis_y_gen2(const BaseStationCal *bcal, LinmathVec3d const ptInLh);
SURVIVE_EXPORT void survive_reproject_xy_gen2(const BaseStationCal *bcal, LinmathVec3d const ptInLh,
SurviveAngleReading out);
SURVIVE_EXPORT void survive_reproject_from_pose_gen2(const SurviveContext *ctx, int lighthouse,
const SurvivePose *world2lh, LinmathVec3d const ptInWorld,
SurviveAngleReading out);
SURVIVE_EXPORT void survive_reproject_gen2(const SurviveContext *ctx, int lighthouse, LinmathVec3d const ptInWorld,
SurviveAngleReading out);
SURVIVE_EXPORT void survive_reproject_full_jac_obj_pose_gen2(SurviveAngleReading out, const SurvivePose *obj2world,
const LinmathVec3d ptInObj, const SurvivePose *world2lh,
const BaseStationCal *bcal);
SURVIVE_EXPORT void survive_reproject_full_gen2(const BaseStationCal *bcal, const SurvivePose *world2lh, const SurvivePose *obj2world,
const LinmathVec3d ptInObj, SurviveAngleReading out);
SURVIVE_IMPORT extern const survive_reproject_model_t survive_reproject_gen2_model;
#ifdef __cplusplus
}
#endif
|
cf263c41f2b9a3e972d884cea48d7e887055c802
|
74d961be8a94c948355723adf4e1dc51a35dcf00
|
/sensors/private_include/sc031gs.h
|
bf3cdecef869fd923739ca29699f6bd7af51a6b8
|
[
"Apache-2.0"
] |
permissive
|
espressif/esp32-camera
|
17ffed85ae93de33be71137d5170972ff754f932
|
d1c9c2cdb3fab523e81e8d953305c00ed54c834c
|
refs/heads/master
| 2023-08-24T03:46:20.930611
| 2023-08-08T09:01:58
| 2023-08-08T09:01:58
| 157,359,627
| 1,423
| 575
|
Apache-2.0
| 2023-08-08T09:02:00
| 2018-11-13T10:08:16
|
C
|
UTF-8
|
C
| false
| false
| 534
|
h
|
sc031gs.h
|
/*
*
* SC031GS DVP driver.
*
*/
#ifndef __SC031GS_H__
#define __SC030GS_H__
#include "sensor.h"
/**
* @brief Detect sensor pid
*
* @param slv_addr SCCB address
* @param id Detection result
* @return
* 0: Can't detect this sensor
* Nonzero: This sensor has been detected
*/
int sc031gs_detect(int slv_addr, sensor_id_t *id);
/**
* @brief initialize sensor function pointers
*
* @param sensor pointer of sensor
* @return
* Always 0
*/
int sc031gs_init(sensor_t *sensor);
#endif // __SC031GS_H__
|
890fc276266628186ee7aac97c2cca836d32cc18
|
aa3befea459382dc5c01c925653d54f435b3fb0f
|
/include/nuttx/sensors/lis3mdl.h
|
244acddef9c1a6671f8182675f21584dee0361d4
|
[
"MIT-open-group",
"BSD-3-Clause",
"HPND-sell-variant",
"BSD-4-Clause-UC",
"LicenseRef-scancode-warranty-disclaimer",
"MIT-0",
"LicenseRef-scancode-bsd-atmel",
"LicenseRef-scancode-gary-s-brown",
"LicenseRef-scancode-proprietary-license",
"SunPro",
"MIT",
"LicenseRef-scancode-public-domain-disclaimer",
"LicenseRef-scancode-other-permissive",
"HPND",
"ISC",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"GPL-1.0-or-later",
"CC-BY-2.0",
"CC-BY-4.0"
] |
permissive
|
apache/nuttx
|
14519a7bff4a87935d94fb8fb2b19edb501c7cec
|
606b6d9310fb25c7d92c6f95bf61737e3c79fa0f
|
refs/heads/master
| 2023-08-25T06:55:45.822534
| 2023-08-23T16:03:31
| 2023-08-24T21:25:47
| 228,103,273
| 407
| 241
|
Apache-2.0
| 2023-09-14T18:26:05
| 2019-12-14T23:27:55
|
C
|
UTF-8
|
C
| false
| false
| 6,621
|
h
|
lis3mdl.h
|
/****************************************************************************
* include/nuttx/sensors/lis3mdl.h
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
* ASF licenses this file to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the
* License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
****************************************************************************/
#ifndef __INCLUDE_NUTTX_SENSORS_LIS3MDL_H
#define __INCLUDE_NUTTX_SENSORS_LIS3MDL_H
/****************************************************************************
* Included Files
****************************************************************************/
#include <nuttx/irq.h>
#include <nuttx/config.h>
#include <nuttx/fs/ioctl.h>
#include <nuttx/spi/spi.h>
#if defined(CONFIG_SPI) && defined(CONFIG_SENSORS_LIS3MDL)
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
/* LIS3MDL Register Definitions *********************************************/
#define LIS3MDL_WHO_AM_I_REG (0x0F)
#define LIS3MDL_CTRL_REG_1 (0x20)
#define LIS3MDL_CTRL_REG_2 (0x21)
#define LIS3MDL_CTRL_REG_3 (0x22)
#define LIS3MDL_CTRL_REG_4 (0x23)
#define LIS3MDL_CTRL_REG_5 (0x24)
#define LIS3MDL_STATUS_REG (0x27)
#define LIS3MDL_OUT_X_L_REG (0x28)
#define LIS3MDL_OUT_X_H_REG (0x29)
#define LIS3MDL_OUT_Y_L_REG (0x2A)
#define LIS3MDL_OUT_Y_H_REG (0x2B)
#define LIS3MDL_OUT_Z_L_REG (0x2C)
#define LIS3MDL_OUT_Z_H_REG (0x2D)
#define LIS3MDL_TEMP_OUT_L_REG (0x2E)
#define LIS3MDL_TEMP_OUT_H_REG (0x2F)
#define LIS3MDL_INT_CFG_REG (0x30)
#define LIS3MDL_INT_SRC_REG (0x31)
#define LIS3MDL_INT_THS_L_REG (0x32)
#define LIS3MDL_INT_THS_H_REG (0x33)
/* LIS3MDL CTRL_REG_1 Bit Definitions ***************************************/
#define LIS3MDL_CTRL_REG_1_TEMP_EN_BM (1<<7) /* Enable the temperature sensor */
#define LIS3MDL_CTRL_REG_1_OM_1_BM (1<<6) /* Select the operating mode of X and Y axis bit 1 */
#define LIS3MDL_CTRL_REG_1_OM_0_BM (1<<5) /* Select the operating mode of X and Y axis bit 0 */
#define LIS3MDL_CTRL_REG_1_DO2_BM (1<<4) /* Output data rate selection bit 2 */
#define LIS3MDL_CTRL_REG_1_DO1_BM (1<<3) /* Output data rate selection bit 1 */
#define LIS3MDL_CTRL_REG_1_DO0_BM (1<<2) /* Output data rate selection bit 2 */
#define LIS3MDL_CTRL_REG_1_FAST_ODR_BM (1<<1) /* Enable higher output data rates */
/* LIS3MDL CTRL_REG_2 Bit Definitions ***************************************/
#define LIS3MDL_CTRL_REG_2_FS_1_BM (1<<6) /* Full scale selection bit 1 */
#define LIS3MDL_CTRL_REG_2_FS_0_BM (1<<5) /* Full scale selection bit 0 */
#define LIS3MDL_CTRL_REG_2_REBOOT_BM (1<<3) /* Reboot Memory Content */
#define LIS3MDL_CTRL_REG_2_SOFT_RST_BM (1<<2) /* Soft Reset */
/* LIS3MDL CTRL_REG_4 Bit Definitions ***************************************/
#define LIS3MDL_CTRL_REG_4_OMZ_1_BM (1<<3) /* Select the operating mode of Z axis bit 1 */
#define LIS3MDL_CTRL_REG_4_OMZ_0_BM (1<<2) /* Select the operating mode of Z axis bit 0 */
/* LIS3MDL CTRL_REG_5 Bit Definitions ***************************************/
#define LIS3MDL_CTRL_REG_5_BDU_BM (1<<6) /* Enable block data update for magnetic data (prevent race conditions while reading) */
/* SPI BUS PARAMETERS *******************************************************/
#define LIS3MDL_SPI_FREQUENCY (1000000) /* 1 MHz */
#define LIS3MDL_SPI_MODE (SPIDEV_MODE3) /* Device uses SPI Mode 3: CPOL=1, CPHA=1 */
/****************************************************************************
* Public Types
****************************************************************************/
/* A reference to a structure of this type must be passed to the LIS3MDL
* driver. This structure provides information about the configuration
* of the sensor and provides some board-specific hooks.
*
* Memory for this structure is provided by the caller. It is not copied
* by the driver and is presumed to persist while the driver is active.
*/
struct lis3mdl_config_s
{
/* Since multiple LIS3MDL can be connected to the same SPI bus we need
* to use multiple spi device ids which are employed by NuttX to select/
* deselect the desired LIS3MDL chip via their chip select inputs.
*/
int spi_devid;
/* The IRQ number must be provided for each so LIS3MDL device so that
* their interrupts can be distinguished.
*/
int irq;
/* Attach the LIS3MDL interrupt handler to the GPIO interrupt of the
* concrete LIS3MDL instance.
*/
int (*attach)(FAR struct lis3mdl_config_s *, xcpt_t);
};
/****************************************************************************
* Public Function Prototypes
****************************************************************************/
#ifdef __cplusplus
#define EXTERN extern "C"
extern "C"
{
#else
#define EXTERN extern
#endif
/****************************************************************************
* Name: lis3mdl_register
*
* Description:
* Register the LIS3MDL character device as 'devpath'
*
* Input Parameters:
* devpath - The full path to the driver to register. E.g., "/dev/mag0"
* spi - An instance of the SPI interface to use to communicate with
* LIS3MDL
* config - configuration for the LIS3MDL driver. For details see
* description above.
*
* Returned Value:
* Zero (OK) on success; a negated errno value on failure.
*
****************************************************************************/
int lis3mdl_register(FAR const char *devpath, FAR struct spi_dev_s *spi,
FAR struct lis3mdl_config_s const *config);
#undef EXTERN
#ifdef __cplusplus
}
#endif
#endif /* CONFIG_SPI && CONFIG_SENSORS_LIS3MDL */
#endif /* __INCLUDE_NUTTX_SENSORS_LIS3MDL_H */
|
a64fe70b680e39d27432e98219d4da4ac2923508
|
9b790b144c5869e6712090882e28c50780047793
|
/test/arm_insts/v8.2/LD1ROx.c
|
f5c8e76a4e54852a18b38e6dcb4b12e23370c8ec
|
[
"Apache-2.0"
] |
permissive
|
beehive-lab/mambo
|
8edd932d19d9d0671677a512d2cfba1c36a1953f
|
583f3b7e7981e6a46466dbdf461c7071df59708c
|
refs/heads/master
| 2023-05-29T10:49:10.327887
| 2023-04-25T20:48:32
| 2023-04-25T20:48:32
| 51,374,589
| 282
| 58
|
Apache-2.0
| 2023-05-15T21:48:35
| 2016-02-09T15:12:45
|
C
|
UTF-8
|
C
| false
| false
| 539
|
c
|
LD1ROx.c
|
#include <stdlib.h>
#include <stdint.h>
#include <stdio.h>
#include <assert.h>
void test_standard() {
asm (
"ld1rob z1.b,p1,[x3,#0]\n\t"
"ld1rob z1.b,p1,[x3,x2]\n\t"
"ld1roh z1.h,p1,[x3,#0]\n\t"
"ld1roh z1.h,p1,[x3,x2,lsl #1]\n\t"
"ld1row z1.s,p1,[x3,#0]\n\t"
"ld1row z1.s,p1,[x3,x2,lsl #2]\n\t"
"ld1rod z1.d,p1,[x3,#0]\n\t"
"ld1rod z1.d,p1,[x3,x2,lsl #3]\n\t"
);
}
int main() {
test_standard();
fprintf(stderr, "%s\n", "Test passed.");
return 0;
}
|
fc51d0a87d0f8c3788145b6fc0f00ac2e7e71b52
|
7f6c235b0598353549959c18f69eefd20b766907
|
/libsrc/debug/dump.c
|
bced352dcc0d48728cbac46741e1e4c31de02afc
|
[
"ClArtistic"
] |
permissive
|
z88dk/z88dk
|
46dfd4905f36d99333173cadd0a660839befc9f0
|
8b07f37cc43c5d9ffe69b563c80763491d8faff7
|
refs/heads/master
| 2023-09-04T19:29:49.254958
| 2023-09-03T20:51:24
| 2023-09-03T20:51:24
| 54,035,569
| 820
| 263
|
NOASSERTION
| 2023-09-05T11:09:04
| 2016-03-16T13:48:16
|
Assembly
|
UTF-8
|
C
| false
| false
| 1,587
|
c
|
dump.c
|
/*
* Memory Dump functions
*
* Stefano 29/5/2002
*
* $Id: dump.c,v 1.2 2002-06-10 10:14:07 stefano Exp $
*/
#include <stdio.h>
#include <debug.h>
void hexbyte (unsigned char mybyte);
void hexword (unsigned int myword);
unsigned int dump(unsigned int address, unsigned int count)
{
int x; // unsigned int didn't work ...
if (address == 0xFFFF)
{
#asm
pop hl
pop bc
pop de
push de
push bc
push hl
ld hl,8
add hl,sp
push hl
.sdloop
push de
push hl
push hl
call _hexword
pop hl
ld hl,':'
push hl
call fputc_cons
pop hl
pop hl
push hl
ld c,(hl)
inc hl
ld b,(hl)
push bc
call _hexword
pop bc
ld hl,13
push hl
call fputc_cons
pop hl
pop hl
pop de
inc hl
inc hl
dec de
ld a,d
or e
jr nz,sdloop
pop hl
pop bc
ret
#endasm
}
if ((address % 8) != 0)
{
fputc_cons(13);
hexword (address);
}
for (x=address; x<address+count; x++)
{
if ((x % 8) == 0)
{
fputc_cons(13);
hexword (x);
}
hexbyte (*(unsigned char *)x);
fputc_cons(' ');
}
fputc_cons('\n');
return (x);
}
/* Address */
void hexword (unsigned int myword)
{
hexbyte ((unsigned char) (myword>>8));
hexbyte ((unsigned char) myword);
fputc_cons(' ');
}
void hexbyte (unsigned char mybyte)
{
#asm
pop hl
pop de
push de
push hl
ld a,e
push de
srl a
srl a
srl a
srl a
ld e,a
ld hl,hextab
add hl,de
ld a,(hl)
ld l,a
ld h,0
push hl
call fputc_cons
pop hl
pop de
ld a,e
and 15
ld e,a
ld hl,hextab
add hl,de
ld a,(hl)
ld l,a
ld h,0
push hl
call fputc_cons
pop hl
ret
.hextab defm "0123456789ABCDEF"
#endasm
}
|
1f103d42165b839962fe96e58d54bddcdeaba964
|
86463f9f9fe6b539cc037843c2e6c9a3ec600f89
|
/DiscImageCreator/execScsiCmdforFileSystem.h
|
04010f8f89c97e0439f8664f1507a8c39938cd39
|
[
"Apache-2.0",
"Zlib",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause"
] |
permissive
|
saramibreak/DiscImageCreator
|
89fa73a6781a10a76ddda4806da8e0aeabccf413
|
66d52bf95b62a05874f7755fd3f5a97b0f0ed850
|
refs/heads/master
| 2023-08-17T11:28:52.878370
| 2023-07-16T17:56:10
| 2023-07-16T17:56:10
| 58,810,391
| 435
| 53
|
Apache-2.0
| 2023-03-15T05:27:53
| 2016-05-14T13:52:41
|
C++
|
UTF-8
|
C
| false
| false
| 253,622
|
h
|
execScsiCmdforFileSystem.h
|
/**
* Copyright 2011-2023 sarami
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#pragma once
BOOL ReadCDForFileSystem(
PEXEC_TYPE pExecType,
PEXT_ARG pExtArg,
PDEVICE pDevice,
PDISC pDisc
);
BOOL ReadGDForFileSystem(
PEXEC_TYPE pExecType,
PEXT_ARG pExtArg,
PDEVICE pDevice,
PDISC pDisc
);
BOOL ReadDVDForFileSystem(
PEXEC_TYPE pExecType,
PEXT_ARG pExtArg,
PDEVICE pDevice,
PDISC pDisc,
CDB::_READ12* cdb,
LPBYTE lpBuf
);
BOOL ReadXBOXDirectoryRecord(
PEXT_ARG pExtArg,
PDEVICE pDevice,
CDB::_READ12* pCdb,
UINT uiDirPos,
UINT uiDirTblSize,
UINT uiStartLBA,
_TCHAR* pTab
);
BOOL ReadXBOXFileSystem(
PEXT_ARG pExtArg,
PDEVICE pDevice,
DWORD dwStartLBA
);
BOOL ReadNintendoFileSystem(
PDEVICE pDevice,
LPCTSTR pszFullPath,
DISC_TYPE_DVD type
);
BOOL ReadWiiPartition(
PDEVICE pDevice,
LPCTSTR pszFullPath
);
BOOL ReadBDForParamSfo(
PEXT_ARG pExtArg,
PDEVICE pDevice,
PDISC pDisc,
CDB::_READ12* pCdb,
LPBYTE lpBuf,
INT idx
);
BOOL ReadSACDFileSystem(
PEXT_ARG pExtArg,
PDEVICE pDevice
);
// http://forum.redump.org/post/101790/#p101790
//#define LATIN1_TEST
#ifdef LATIN1_TEST
static BYTE pathTblWithLatin1[] = {
0x01,0x00,0x74,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x09,0x00,0x75,0x00,0x00,0x00,
0x01,0x00,0x46,0x49,0x53,0x48,0x44,0x49,0x53,0x4B,0x53,0x00,0x03,0x00,0x4B,0x0B,
0x00,0x00,0x01,0x00,0x47,0x4E,0x55,0x00,0x07,0x00,0x3F,0x0B,0x00,0x00,0x01,0x00,
0x47,0x4E,0x55,0x2D,0x53,0x52,0x43,0x00,0x0B,0x00,0xC9,0x05,0x00,0x00,0x01,0x00,
0x49,0x4E,0x46,0x4F,0x52,0x4D,0x41,0x54,0x49,0x4F,0x4E,0x00,0x08,0x00,0x3E,0x0B,
0x00,0x00,0x01,0x00,0x4D,0x45,0x54,0x41,0x54,0x4F,0x4F,0x4C,0x03,0x00,0x7C,0x00,
0x00,0x00,0x01,0x00,0x4E,0x45,0x57,0x00,0x05,0x00,0xB6,0x05,0x00,0x00,0x01,0x00,
0x54,0x4F,0x4F,0x4C,0x53,0x00,0x06,0x00,0xCA,0x05,0x00,0x00,0x01,0x00,0x55,0x53,
0x45,0x46,0x55,0x4C,0x03,0x00,0x4C,0x0B,0x00,0x00,0x03,0x00,0x42,0x49,0x4E,0x00,
0x03,0x00,0x52,0x0B,0x00,0x00,0x03,0x00,0x45,0x54,0x43,0x00,0x05,0x00,0x53,0x0B,
0x00,0x00,0x03,0x00,0x47,0x55,0x49,0x44,0x45,0x00,0x07,0x00,0x54,0x0B,0x00,0x00,
0x03,0x00,0x49,0x4E,0x43,0x4C,0x55,0x44,0x45,0x00,0x04,0x00,0x67,0x0B,0x00,0x00,
0x03,0x00,0x49,0x4E,0x46,0x4F,0x03,0x00,0x6C,0x0B,0x00,0x00,0x03,0x00,0x4C,0x49,
0x42,0x00,0x07,0x00,0x68,0x0D,0x00,0x00,0x03,0x00,0x4C,0x49,0x42,0x45,0x58,0x45,
0x43,0x00,0x11,0x00,0x65,0x0D,0x00,0x00,0x03,0x00,0x4D,0x36,0x38,0x4B,0x2D,0x43,
0x42,0x4D,0x2D,0x41,0x4D,0x49,0x47,0x41,0x44,0x4F,0x53,0x00,0x03,0x00,0x28,0x0D,
0x00,0x00,0x03,0x00,0x4D,0x41,0x4E,0x00,0x09,0x00,0x3D,0x0D,0x00,0x00,0x03,0x00,
0x4D,0x41,0x4E,0x49,0x46,0x45,0x53,0x54,0x53,0x00,0x0A,0x00,0x40,0x0D,0x00,0x00,
0x03,0x00,0x4F,0x53,0x2D,0x49,0x4E,0x43,0x4C,0x55,0x44,0x45,0x06,0x00,0x59,0x0D,
0x00,0x00,0x03,0x00,0x4F,0x53,0x2D,0x4C,0x49,0x42,0x05,0x00,0x5B,0x0D,0x00,0x00,
0x03,0x00,0x53,0x48,0x41,0x52,0x45,0x00,0x03,0x00,0x69,0x0D,0x00,0x00,0x03,0x00,
0x53,0x59,0x53,0x00,0x05,0x00,0x46,0x0B,0x00,0x00,0x04,0x00,0x41,0x4D,0x49,0x47,
0x41,0x00,0x08,0x00,0x42,0x0B,0x00,0x00,0x04,0x00,0x42,0x41,0x53,0x45,0x4C,0x49,
0x4E,0x45,0x05,0x00,0x40,0x0B,0x00,0x00,0x04,0x00,0x44,0x49,0x46,0x46,0x53,0x00,
0x03,0x00,0x7D,0x00,0x00,0x00,0x07,0x00,0x42,0x49,0x5A,0x00,0x04,0x00,0xCA,0x00,
0x00,0x00,0x07,0x00,0x43,0x4F,0x4D,0x4D,0x04,0x00,0x1B,0x01,0x00,0x00,0x07,0x00,
0x44,0x45,0x4D,0x4F,0x03,0x00,0x1E,0x01,0x00,0x00,0x07,0x00,0x44,0x45,0x56,0x00,
0x04,0x00,0x5E,0x02,0x00,0x00,0x07,0x00,0x44,0x49,0x53,0x4B,0x04,0x00,0x72,0x02,
0x00,0x00,0x07,0x00,0x44,0x4F,0x43,0x53,0x04,0x00,0x75,0x02,0x00,0x00,0x07,0x00,
0x47,0x41,0x4D,0x45,0x03,0x00,0xFB,0x02,0x00,0x00,0x07,0x00,0x47,0x46,0x58,0x00,
0x04,0x00,0x94,0x03,0x00,0x00,0x07,0x00,0x4D,0x49,0x53,0x43,0x03,0x00,0xBD,0x03,
0x00,0x00,0x07,0x00,0x4D,0x55,0x53,0x00,0x03,0x00,0xCA,0x03,0x00,0x00,0x07,0x00,
0x50,0x49,0x58,0x00,0x03,0x00,0xB4,0x05,0x00,0x00,0x07,0x00,0x53,0x59,0x53,0x00,
0x04,0x00,0x14,0x04,0x00,0x00,0x07,0x00,0x54,0x45,0x58,0x54,0x04,0x00,0xA8,0x04,
0x00,0x00,0x07,0x00,0x55,0x54,0x49,0x4C,0x06,0x00,0xBF,0x05,0x00,0x00,0x08,0x00,
0x41,0x2D,0x4B,0x57,0x49,0x43,0x01,0x00,0xB7,0x05,0x00,0x00,0x08,0x00,0x43,0x00,
0x07,0x00,0xBB,0x05,0x00,0x00,0x08,0x00,0x44,0x49,0x52,0x57,0x4F,0x52,0x4B,0x00,
0x0A,0x00,0xC1,0x05,0x00,0x00,0x08,0x00,0x4B,0x49,0x4E,0x47,0x46,0x49,0x53,0x48,
0x45,0x52,0x08,0x00,0xB8,0x05,0x00,0x00,0x08,0x00,0x4D,0x45,0x54,0x41,0x54,0x4F,
0x4F,0x4C,0x04,0x00,0xB9,0x05,0x00,0x00,0x08,0x00,0x4D,0x49,0x53,0x43,0x07,0x00,
0xBC,0x05,0x00,0x00,0x08,0x00,0x50,0x49,0x54,0x4F,0x4F,0x4C,0x53,0x00,0x0A,0x00,
0xBE,0x05,0x00,0x00,0x08,0x00,0x50,0x4C,0x41,0x43,0x45,0x49,0x43,0x4F,0x4E,0x53,
0x0B,0x00,0xBA,0x05,0x00,0x00,0x08,0x00,0x52,0x45,0x51,0x55,0x45,0x53,0x54,0x46,
0x49,0x4C,0x45,0x00,0x07,0x00,0xBD,0x05,0x00,0x00,0x08,0x00,0x53,0x43,0x52,0x49,
0x50,0x54,0x53,0x00,0x03,0x00,0x56,0x06,0x00,0x00,0x09,0x00,0x43,0x42,0x4D,0x00,
0x04,0x00,0x5C,0x0A,0x00,0x00,0x09,0x00,0x43,0x4F,0x4D,0x4D,0x03,0x00,0x99,0x06,
0x00,0x00,0x09,0x00,0x44,0x45,0x56,0x00,0x04,0x00,0x5C,0x08,0x00,0x00,0x09,0x00,
0x44,0x49,0x53,0x4B,0x04,0x00,0x7F,0x08,0x00,0x00,0x09,0x00,0x44,0x4F,0x43,0x53,
0x04,0x00,0xB6,0x08,0x00,0x00,0x09,0x00,0x47,0x41,0x4D,0x45,0x03,0x00,0xBC,0x08,
0x00,0x00,0x09,0x00,0x47,0x46,0x58,0x00,0x03,0x00,0xCB,0x05,0x00,0x00,0x09,0x00,
0x4D,0x55,0x53,0x00,0x07,0x00,0xE4,0x05,0x00,0x00,0x09,0x00,0x52,0x45,0x56,0x49,
0x45,0x57,0x53,0x00,0x03,0x00,0x25,0x06,0x00,0x00,0x09,0x00,0x53,0x59,0x53,0x00,
0x04,0x00,0x3D,0x09,0x00,0x00,0x09,0x00,0x54,0x45,0x58,0x54,0x04,0x00,0x53,0x09,
0x00,0x00,0x09,0x00,0x55,0x54,0x49,0x4C,0x04,0x00,0x56,0x0B,0x00,0x00,0x0D,0x00,
0x41,0x52,0x50,0x41,0x04,0x00,0x57,0x0B,0x00,0x00,0x0D,0x00,0x43,0x4C,0x49,0x42,
0x08,0x00,0x58,0x0B,0x00,0x00,0x0D,0x00,0x44,0x42,0x4D,0x41,0x4C,0x4C,0x4F,0x43,
0x06,0x00,0x59,0x0B,0x00,0x00,0x0D,0x00,0x49,0x4E,0x4C,0x49,0x4E,0x45,0x09,0x00,
0x5A,0x0B,0x00,0x00,0x0D,0x00,0x4C,0x49,0x42,0x52,0x41,0x52,0x49,0x45,0x53,0x00,
0x07,0x00,0x5B,0x0B,0x00,0x00,0x0D,0x00,0x4D,0x41,0x43,0x48,0x49,0x4E,0x45,0x00,
0x03,0x00,0x5C,0x0B,0x00,0x00,0x0D,0x00,0x4E,0x45,0x54,0x00,0x07,0x00,0x5D,0x0B,
0x00,0x00,0x0D,0x00,0x4E,0x45,0x54,0x49,0x4E,0x45,0x54,0x00,0x06,0x00,0x65,0x0B,
0x00,0x00,0x0D,0x00,0x4F,0x43,0x54,0x41,0x56,0x45,0x07,0x00,0x5E,0x0B,0x00,0x00,
0x0D,0x00,0x50,0x52,0x41,0x47,0x4D,0x41,0x53,0x00,0x05,0x00,0x5F,0x0B,0x00,0x00,
0x0D,0x00,0x50,0x52,0x4F,0x54,0x4F,0x00,0x09,0x00,0x60,0x0B,0x00,0x00,0x0D,0x00,
0x50,0x52,0x4F,0x54,0x4F,0x43,0x4F,0x4C,0x53,0x00,0x08,0x00,0x61,0x0B,0x00,0x00,
0x0D,0x00,0x52,0x45,0x41,0x44,0x4C,0x49,0x4E,0x45,0x03,0x00,0x62,0x0B,0x00,0x00,
0x0D,0x00,0x52,0x50,0x43,0x00,0x03,0x00,0x63,0x0B,0x00,0x00,0x0D,0x00,0x53,0x59,
0x53,0x00,0x0C,0x00,0xFF,0x0B,0x00,0x00,0x0F,0x00,0x41,0x50,0x50,0x2D,0x44,0x45,
0x46,0x41,0x55,0x4C,0x54,0x53,0x08,0x00,0x24,0x0D,0x00,0x00,0x0F,0x00,0x41,0x55,
0x54,0x4F,0x43,0x4F,0x4E,0x46,0x0D,0x00,0x6F,0x0B,0x00,0x00,0x0F,0x00,0x41,0x55,
0x54,0x4F,0x43,0x4F,0x4E,0x46,0x2D,0x31,0x2E,0x31,0x31,0x00,0x0C,0x00,0x6E,0x0B,
0x00,0x00,0x0F,0x00,0x41,0x55,0x54,0x4F,0x43,0x4F,0x4E,0x46,0x2D,0x32,0x2E,0x31,
0x0C,0x00,0xFD,0x0B,0x00,0x00,0x0F,0x00,0x41,0x55,0x54,0x4F,0x43,0x4F,0x4E,0x46,
0x2D,0x32,0x2E,0x32,0x0C,0x00,0x89,0x0B,0x00,0x00,0x0F,0x00,0x41,0x55,0x54,0x4F,
0x43,0x4F,0x4E,0x46,0x2D,0x32,0x2E,0x33,0x07,0x00,0x25,0x0D,0x00,0x00,0x0F,0x00,
0x44,0x45,0x4A,0x41,0x47,0x4E,0x55,0x00,0x05,0x00,0x70,0x0B,0x00,0x00,0x0F,0x00,
0x45,0x4D,0x41,0x43,0x53,0x00,0x06,0x00,0x27,0x0D,0x00,0x00,0x0F,0x00,0x45,0x58,
0x50,0x45,0x43,0x54,0x08,0x00,0xFE,0x0B,0x00,0x00,0x0F,0x00,0x46,0x4F,0x4E,0x54,
0x55,0x54,0x49,0x4C,0x0B,0x00,0x81,0x0B,0x00,0x00,0x0F,0x00,0x47,0x2B,0x2B,0x2D,
0x49,0x4E,0x43,0x4C,0x55,0x44,0x45,0x00,0x07,0x00,0x8A,0x0B,0x00,0x00,0x0F,0x00,
0x47,0x43,0x43,0x2D,0x4C,0x49,0x42,0x00,0x0B,0x00,0xBC,0x0B,0x00,0x00,0x0F,0x00,
0x47,0x48,0x4F,0x53,0x54,0x53,0x43,0x52,0x49,0x50,0x54,0x00,0x03,0x00,0x22,0x0D,
0x00,0x00,0x0F,0x00,0x47,0x49,0x54,0x00,0x05,0x00,0xC1,0x0B,0x00,0x00,0x0F,0x00,
0x47,0x52,0x4F,0x46,0x46,0x00,0x06,0x00,0xD0,0x0B,0x00,0x00,0x0F,0x00,0x49,0x53,
0x50,0x45,0x4C,0x4C,0x04,0x00,0xD1,0x0B,0x00,0x00,0x0F,0x00,0x4A,0x4F,0x56,0x45,
0x04,0x00,0xD2,0x0B,0x00,0x00,0x0F,0x00,0x4C,0x49,0x42,0x42,0x07,0x00,0xDA,0x0B,
0x00,0x00,0x0F,0x00,0x4C,0x49,0x42,0x45,0x58,0x45,0x43,0x00,0x07,0x00,0xF6,0x0B,
0x00,0x00,0x0F,0x00,0x4C,0x49,0x42,0x4D,0x30,0x32,0x30,0x00,0x06,0x00,0xFC,0x0B,
0x00,0x00,0x0F,0x00,0x4C,0x49,0x42,0x4E,0x49,0x58,0x06,0x00,0xDB,0x0B,0x00,0x00,
0x0F,0x00,0x4F,0x43,0x54,0x41,0x56,0x45,0x03,0x00,0x26,0x0D,0x00,0x00,0x0F,0x00,
0x54,0x43,0x4C,0x00,0x05,0x00,0x00,0x0C,0x00,0x00,0x0F,0x00,0x54,0x45,0x58,0x4D,
0x46,0x00,0x0A,0x00,0xBB,0x0B,0x00,0x00,0x0F,0x00,0x54,0x49,0x4C,0x45,0x2D,0x46,
0x4F,0x52,0x54,0x48,0x03,0x00,0x67,0x0D,0x00,0x00,0x11,0x00,0x42,0x49,0x4E,0x00,
0x07,0x00,0x66,0x0D,0x00,0x00,0x11,0x00,0x49,0x4E,0x43,0x4C,0x55,0x44,0x45,0x00,
0x04,0x00,0x29,0x0D,0x00,0x00,0x12,0x00,0x43,0x41,0x54,0x31,0x04,0x00,0x2C,0x0D,
0x00,0x00,0x12,0x00,0x43,0x41,0x54,0x32,0x04,0x00,0x2E,0x0D,0x00,0x00,0x12,0x00,
0x43,0x41,0x54,0x33,0x04,0x00,0x32,0x0D,0x00,0x00,0x12,0x00,0x43,0x41,0x54,0x35,
0x04,0x00,0x33,0x0D,0x00,0x00,0x12,0x00,0x43,0x41,0x54,0x4C,0x04,0x00,0x34,0x0D,
0x00,0x00,0x12,0x00,0x4D,0x41,0x4E,0x31,0x04,0x00,0x39,0x0D,0x00,0x00,0x12,0x00,
0x4D,0x41,0x4E,0x33,0x04,0x00,0x3A,0x0D,0x00,0x00,0x12,0x00,0x4D,0x41,0x4E,0x35,
0x04,0x00,0x3B,0x0D,0x00,0x00,0x12,0x00,0x4D,0x41,0x4E,0x37,0x04,0x00,0x3C,0x0D,
0x00,0x00,0x12,0x00,0x4D,0x41,0x4E,0x4C,0x04,0x00,0x41,0x0D,0x00,0x00,0x14,0x00,
0x43,0x4C,0x49,0x42,0x09,0x00,0x43,0x0D,0x00,0x00,0x14,0x00,0x44,0x41,0x54,0x41,
0x54,0x59,0x50,0x45,0x53,0x00,0x07,0x00,0x44,0x0D,0x00,0x00,0x14,0x00,0x44,0x45,
0x56,0x49,0x43,0x45,0x53,0x00,0x08,0x00,0x45,0x0D,0x00,0x00,0x14,0x00,0x44,0x49,
0x53,0x4B,0x46,0x4F,0x4E,0x54,0x03,0x00,0x46,0x0D,0x00,0x00,0x14,0x00,0x44,0x4F,
0x53,0x00,0x04,0x00,0x47,0x0D,0x00,0x00,0x14,0x00,0x45,0x58,0x45,0x43,0x07,0x00,
0x48,0x0D,0x00,0x00,0x14,0x00,0x47,0x41,0x44,0x47,0x45,0x54,0x53,0x00,0x08,0x00,
0x49,0x0D,0x00,0x00,0x14,0x00,0x47,0x52,0x41,0x50,0x48,0x49,0x43,0x53,0x08,0x00,
0x4A,0x0D,0x00,0x00,0x14,0x00,0x48,0x41,0x52,0x44,0x57,0x41,0x52,0x45,0x06,0x00,
0x4B,0x0D,0x00,0x00,0x14,0x00,0x49,0x4E,0x4C,0x49,0x4E,0x45,0x09,0x00,0x4F,0x0D,
0x00,0x00,0x14,0x00,0x49,0x4E,0x54,0x55,0x49,0x54,0x49,0x4F,0x4E,0x00,0x09,0x00,
0x50,0x0D,0x00,0x00,0x14,0x00,0x4C,0x49,0x42,0x52,0x41,0x52,0x49,0x45,0x53,0x00,
0x07,0x00,0x4D,0x0D,0x00,0x00,0x14,0x00,0x50,0x52,0x41,0x47,0x4D,0x41,0x53,0x00,
0x05,0x00,0x52,0x0D,0x00,0x00,0x14,0x00,0x50,0x52,0x45,0x46,0x53,0x00,0x05,0x00,
0x53,0x0D,0x00,0x00,0x14,0x00,0x50,0x52,0x4F,0x54,0x4F,0x00,0x09,0x00,0x55,0x0D,
0x00,0x00,0x14,0x00,0x52,0x45,0x53,0x4F,0x55,0x52,0x43,0x45,0x53,0x00,0x04,0x00,
0x56,0x0D,0x00,0x00,0x14,0x00,0x52,0x45,0x58,0x58,0x07,0x00,0x57,0x0D,0x00,0x00,
0x14,0x00,0x55,0x54,0x49,0x4C,0x49,0x54,0x59,0x00,0x09,0x00,0x58,0x0D,0x00,0x00,
0x14,0x00,0x57,0x4F,0x52,0x4B,0x42,0x45,0x4E,0x43,0x48,0x00,0x04,0x00,0x5A,0x0D,
0x00,0x00,0x15,0x00,0x4C,0x49,0x42,0x42,0x06,0x00,0x5C,0x0D,0x00,0x00,0x16,0x00,
0x4C,0x4F,0x43,0x41,0x4C,0x45,0x04,0x00,0x6B,0x0D,0x00,0x00,0x17,0x00,0x44,0x45,
0x56,0x53,0x01,0x00,0x6C,0x0D,0x00,0x00,0x17,0x00,0x4C,0x00,0x04,0x00,0x6D,0x0D,
0x00,0x00,0x17,0x00,0x4C,0x49,0x42,0x53,0x01,0x00,0x6A,0x0D,0x00,0x00,0x17,0x00,
0x53,0x00,0x05,0x00,0x7E,0x00,0x00,0x00,0x1B,0x00,0x44,0x42,0x41,0x53,0x45,0x00,
0x04,0x00,0xAD,0x00,0x00,0x00,0x1B,0x00,0x44,0x45,0x4D,0x4F,0x04,0x00,0xC6,0x00,
0x00,0x00,0x1B,0x00,0x4D,0x49,0x53,0x43,0x04,0x00,0xCB,0x00,0x00,0x00,0x1C,0x00,
0x4D,0x49,0x53,0x43,0x03,0x00,0xD7,0x00,0x00,0x00,0x1C,0x00,0x4E,0x45,0x54,0x00,
0x03,0x00,0xE9,0x00,0x00,0x00,0x1C,0x00,0x54,0x43,0x50,0x00,0x04,0x00,0xF4,0x00,
0x00,0x00,0x1C,0x00,0x54,0x45,0x52,0x4D,0x03,0x00,0x1C,0x01,0x00,0x00,0x1D,0x00,
0x41,0x47,0x41,0x00,0x03,0x00,0x1F,0x01,0x00,0x00,0x1E,0x00,0x41,0x53,0x4D,0x00,
0x01,0x00,0x22,0x01,0x00,0x00,0x1E,0x00,0x43,0x00,0x05,0x00,0x30,0x01,0x00,0x00,
0x1E,0x00,0x44,0x45,0x42,0x55,0x47,0x00,0x01,0x00,0x32,0x01,0x00,0x00,0x1E,0x00,
0x45,0x00,0x03,0x00,0xC2,0x01,0x00,0x00,0x1E,0x00,0x47,0x55,0x49,0x00,0x04,0x00,
0xFA,0x01,0x00,0x00,0x1E,0x00,0x4C,0x41,0x4E,0x47,0x04,0x00,0x09,0x02,0x00,0x00,
0x1E,0x00,0x4D,0x49,0x53,0x43,0x05,0x00,0x18,0x02,0x00,0x00,0x1E,0x00,0x4F,0x42,
0x45,0x52,0x4F,0x00,0x05,0x00,0x5F,0x02,0x00,0x00,0x1F,0x00,0x43,0x44,0x52,0x4F,
0x4D,0x00,0x04,0x00,0x63,0x02,0x00,0x00,0x1F,0x00,0x4D,0x49,0x53,0x43,0x04,0x00,
0x6D,0x02,0x00,0x00,0x1F,0x00,0x53,0x41,0x4C,0x56,0x05,0x00,0x73,0x02,0x00,0x00,
0x20,0x00,0x48,0x59,0x50,0x45,0x52,0x00,0x05,0x00,0xF9,0x02,0x00,0x00,0x21,0x00,
0x32,0x50,0x4C,0x41,0x59,0x00,0x05,0x00,0x76,0x02,0x00,0x00,0x21,0x00,0x42,0x4F,
0x41,0x52,0x44,0x00,0x04,0x00,0x8D,0x02,0x00,0x00,0x21,0x00,0x44,0x45,0x4D,0x4F,
0x04,0x00,0xA9,0x02,0x00,0x00,0x21,0x00,0x4D,0x49,0x53,0x43,0x05,0x00,0xE2,0x02,
0x00,0x00,0x21,0x00,0x50,0x41,0x54,0x43,0x48,0x00,0x04,0x00,0xE6,0x02,0x00,0x00,
0x21,0x00,0x52,0x4F,0x4C,0x45,0x05,0x00,0xEC,0x02,0x00,0x00,0x21,0x00,0x54,0x48,
0x49,0x4E,0x4B,0x00,0x05,0x00,0xFC,0x02,0x00,0x00,0x22,0x00,0x42,0x4F,0x41,0x52,
0x44,0x00,0x04,0x00,0xFF,0x02,0x00,0x00,0x22,0x00,0x43,0x4F,0x4E,0x56,0x04,0x00,
0x03,0x03,0x00,0x00,0x22,0x00,0x45,0x44,0x49,0x54,0x04,0x00,0x08,0x03,0x00,0x00,
0x22,0x00,0x4D,0x49,0x53,0x43,0x04,0x00,0x1B,0x03,0x00,0x00,0x22,0x00,0x53,0x48,
0x4F,0x57,0x03,0x00,0x7C,0x03,0x00,0x00,0x22,0x00,0x58,0x31,0x31,0x00,0x04,0x00,
0x95,0x03,0x00,0x00,0x23,0x00,0x4D,0x41,0x54,0x48,0x04,0x00,0xA6,0x03,0x00,0x00,
0x23,0x00,0x4D,0x49,0x53,0x43,0x03,0x00,0xA9,0x03,0x00,0x00,0x23,0x00,0x53,0x43,
0x49,0x00,0x04,0x00,0xBE,0x03,0x00,0x00,0x24,0x00,0x45,0x44,0x49,0x54,0x04,0x00,
0xCB,0x03,0x00,0x00,0x25,0x00,0x41,0x4E,0x49,0x4D,0x03,0x00,0xCF,0x03,0x00,0x00,
0x25,0x00,0x41,0x52,0x54,0x00,0x04,0x00,0xD1,0x03,0x00,0x00,0x25,0x00,0x45,0x52,
0x49,0x43,0x04,0x00,0xD5,0x03,0x00,0x00,0x25,0x00,0x49,0x43,0x4F,0x4E,0x04,0x00,
0xE6,0x03,0x00,0x00,0x25,0x00,0x49,0x4C,0x4C,0x55,0x05,0x00,0xE9,0x03,0x00,0x00,
0x25,0x00,0x49,0x4D,0x41,0x47,0x49,0x00,0x04,0x00,0xEC,0x03,0x00,0x00,0x25,0x00,
0x4D,0x49,0x53,0x43,0x05,0x00,0x11,0x04,0x00,0x00,0x25,0x00,0x50,0x4C,0x41,0x4E,
0x45,0x00,0x05,0x00,0x0F,0x04,0x00,0x00,0x25,0x00,0x53,0x50,0x41,0x43,0x45,0x00,
0x05,0x00,0xFC,0x03,0x00,0x00,0x25,0x00,0x54,0x52,0x41,0x43,0x45,0x00,0x02,0x00,
0x04,0x04,0x00,0x00,0x25,0x00,0x57,0x42,0x01,0x00,0xB5,0x05,0x00,0x00,0x26,0x00,
0x43,0x00,0x04,0x00,0x15,0x04,0x00,0x00,0x27,0x00,0x45,0x44,0x49,0x54,0x04,0x00,
0x8F,0x04,0x00,0x00,0x27,0x00,0x46,0x4F,0x4E,0x54,0x05,0x00,0xA6,0x04,0x00,0x00,
0x27,0x00,0x48,0x59,0x50,0x45,0x52,0x00,0x05,0x00,0x89,0x04,0x00,0x00,0x27,0x00,
0x50,0x52,0x49,0x4E,0x54,0x00,0x03,0x00,0xA9,0x04,0x00,0x00,0x28,0x00,0x41,0x52,
0x43,0x00,0x05,0x00,0xB9,0x04,0x00,0x00,0x28,0x00,0x42,0x4C,0x41,0x4E,0x4B,0x00,
0x04,0x00,0xB5,0x04,0x00,0x00,0x28,0x00,0x42,0x4F,0x4F,0x54,0x05,0x00,0xCD,0x04,
0x00,0x00,0x28,0x00,0x43,0x44,0x49,0x54,0x59,0x00,0x03,0x00,0xFE,0x04,0x00,0x00,
0x28,0x00,0x43,0x4C,0x49,0x00,0x03,0x00,0x1C,0x05,0x00,0x00,0x28,0x00,0x44,0x49,
0x52,0x00,0x05,0x00,0x00,0x05,0x00,0x00,0x28,0x00,0x44,0x54,0x59,0x50,0x45,0x00,
0x04,0x00,0x1F,0x05,0x00,0x00,0x28,0x00,0x4D,0x49,0x53,0x43,0x04,0x00,0x60,0x05,
0x00,0x00,0x28,0x00,0x4D,0x4F,0x4E,0x49,0x04,0x00,0x66,0x05,0x00,0x00,0x28,0x00,
0x50,0x41,0x43,0x4B,0x03,0x00,0xB2,0x05,0x00,0x00,0x28,0x00,0x53,0x59,0x53,0x00,
0x04,0x00,0x6B,0x05,0x00,0x00,0x28,0x00,0x54,0x49,0x4D,0x45,0x05,0x00,0x6E,0x05,
0x00,0x00,0x28,0x00,0x56,0x49,0x52,0x55,0x53,0x00,0x02,0x00,0x7D,0x05,0x00,0x00,
0x28,0x00,0x57,0x42,0x08,0x00,0xC0,0x05,0x00,0x00,0x29,0x00,0x45,0x58,0x41,0x4D,
0x50,0x4C,0x45,0x53,0x08,0x00,0xC2,0x05,0x00,0x00,0x2C,0x00,0x43,0x41,0x54,0x41,
0x4C,0x4F,0x47,0x53,0x04,0x00,0x57,0x06,0x00,0x00,0x33,0x00,0x4E,0x44,0x55,0x4B,
0x03,0x00,0x82,0x0A,0x00,0x00,0x34,0x00,0x4E,0x45,0x54,0x00,0x03,0x00,0x84,0x0A,
0x00,0x00,0x34,0x00,0x54,0x43,0x50,0x00,0x04,0x00,0x5D,0x0A,0x00,0x00,0x34,0x00,
0x54,0x45,0x52,0x4D,0x05,0x00,0x01,0x08,0x00,0x00,0x35,0x00,0x42,0x41,0x53,0x49,
0x43,0x00,0x01,0x00,0x9A,0x06,0x00,0x00,0x35,0x00,0x43,0x00,0x05,0x00,0x27,0x07,
0x00,0x00,0x35,0x00,0x44,0x45,0x42,0x55,0x47,0x00,0x01,0x00,0x2C,0x07,0x00,0x00,
0x35,0x00,0x45,0x00,0x03,0x00,0xBC,0x07,0x00,0x00,0x35,0x00,0x47,0x55,0x49,0x00,
0x04,0x00,0x5A,0x08,0x00,0x00,0x35,0x00,0x4D,0x4F,0x4E,0x49,0x05,0x00,0x26,0x08,
0x00,0x00,0x35,0x00,0x4F,0x42,0x45,0x52,0x4F,0x00,0x05,0x00,0x5D,0x08,0x00,0x00,
0x36,0x00,0x43,0x44,0x52,0x4F,0x4D,0x00,0x04,0x00,0x67,0x08,0x00,0x00,0x36,0x00,
0x43,0x4F,0x50,0x59,0x04,0x00,0x69,0x08,0x00,0x00,0x36,0x00,0x4D,0x49,0x53,0x43,
0x04,0x00,0x6F,0x08,0x00,0x00,0x36,0x00,0x4D,0x4F,0x4E,0x49,0x04,0x00,0x7A,0x08,
0x00,0x00,0x36,0x00,0x53,0x41,0x4C,0x56,0x03,0x00,0x80,0x08,0x00,0x00,0x37,0x00,
0x43,0x44,0x53,0x00,0x09,0x00,0x96,0x08,0x00,0x00,0x37,0x00,0x46,0x49,0x53,0x48,
0x44,0x49,0x53,0x4B,0x53,0x00,0x04,0x00,0xA2,0x08,0x00,0x00,0x37,0x00,0x4D,0x49,
0x53,0x43,0x05,0x00,0xB7,0x08,0x00,0x00,0x38,0x00,0x54,0x48,0x49,0x4E,0x4B,0x00,
0x05,0x00,0x3B,0x09,0x00,0x00,0x39,0x00,0x42,0x4F,0x41,0x52,0x44,0x00,0x04,0x00,
0xBD,0x08,0x00,0x00,0x39,0x00,0x45,0x44,0x49,0x54,0x04,0x00,0xDD,0x08,0x00,0x00,
0x39,0x00,0x53,0x48,0x4F,0x57,0x04,0x00,0xCC,0x05,0x00,0x00,0x3A,0x00,0x50,0x4C,
0x41,0x59,0x03,0x00,0xE5,0x05,0x00,0x00,0x3B,0x00,0x44,0x4F,0x43,0x00,0x08,0x00,
0xE7,0x05,0x00,0x00,0x3B,0x00,0x48,0x41,0x52,0x44,0x57,0x41,0x52,0x45,0x0D,0x00,
0xFE,0x05,0x00,0x00,0x3B,0x00,0x4F,0x54,0x48,0x45,0x52,0x2D,0x52,0x45,0x56,0x49,
0x45,0x57,0x53,0x00,0x08,0x00,0x06,0x06,0x00,0x00,0x3B,0x00,0x53,0x4F,0x46,0x54,
0x57,0x41,0x52,0x45,0x01,0x00,0x26,0x06,0x00,0x00,0x3C,0x00,0x43,0x00,0x07,0x00,
0x29,0x06,0x00,0x00,0x3C,0x00,0x43,0x4C,0x41,0x53,0x53,0x45,0x53,0x00,0x04,0x00,
0x2C,0x06,0x00,0x00,0x3C,0x00,0x44,0x45,0x56,0x53,0x05,0x00,0x2E,0x06,0x00,0x00,
0x3C,0x00,0x46,0x4F,0x4E,0x54,0x53,0x00,0x01,0x00,0x35,0x06,0x00,0x00,0x3C,0x00,
0x4C,0x00,0x04,0x00,0x36,0x06,0x00,0x00,0x3C,0x00,0x4C,0x49,0x42,0x53,0x06,0x00,
0x3E,0x06,0x00,0x00,0x3C,0x00,0x4C,0x4F,0x43,0x41,0x4C,0x45,0x05,0x00,0x52,0x06,
0x00,0x00,0x3C,0x00,0x50,0x52,0x45,0x46,0x53,0x00,0x01,0x00,0x53,0x06,0x00,0x00,
0x3C,0x00,0x53,0x00,0x07,0x00,0x54,0x06,0x00,0x00,0x3C,0x00,0x53,0x54,0x4F,0x52,
0x41,0x47,0x45,0x00,0x05,0x00,0x3E,0x09,0x00,0x00,0x3D,0x00,0x48,0x59,0x50,0x45,
0x52,0x00,0x04,0x00,0x43,0x09,0x00,0x00,0x3D,0x00,0x53,0x48,0x4F,0x57,0x03,0x00,
0x9A,0x09,0x00,0x00,0x3E,0x00,0x41,0x52,0x43,0x00,0x05,0x00,0x54,0x09,0x00,0x00,
0x3E,0x00,0x42,0x41,0x54,0x43,0x48,0x00,0x05,0x00,0xA3,0x09,0x00,0x00,0x3E,0x00,
0x42,0x4C,0x41,0x4E,0x4B,0x00,0x05,0x00,0x4D,0x0A,0x00,0x00,0x3E,0x00,0x43,0x44,
0x49,0x54,0x59,0x00,0x03,0x00,0xAD,0x09,0x00,0x00,0x3E,0x00,0x43,0x4C,0x49,0x00,
0x05,0x00,0x56,0x09,0x00,0x00,0x3E,0x00,0x44,0x54,0x59,0x50,0x45,0x00,0x04,0x00,
0xB7,0x09,0x00,0x00,0x3E,0x00,0x45,0x44,0x49,0x54,0x04,0x00,0xC7,0x09,0x00,0x00,
0x3E,0x00,0x4C,0x49,0x42,0x53,0x04,0x00,0xF6,0x09,0x00,0x00,0x3E,0x00,0x4D,0x49,
0x53,0x43,0x04,0x00,0x19,0x0A,0x00,0x00,0x3E,0x00,0x4D,0x4F,0x4E,0x49,0x04,0x00,
0x2F,0x0A,0x00,0x00,0x3E,0x00,0x50,0x41,0x43,0x4B,0x05,0x00,0x33,0x0A,0x00,0x00,
0x3E,0x00,0x53,0x48,0x45,0x4C,0x4C,0x00,0x05,0x00,0x35,0x0A,0x00,0x00,0x3E,0x00,
0x56,0x49,0x52,0x55,0x53,0x00,0x02,0x00,0x41,0x0A,0x00,0x00,0x3E,0x00,0x57,0x42,
0x05,0x00,0x71,0x0B,0x00,0x00,0x55,0x00,0x31,0x38,0x2E,0x35,0x39,0x00,0x05,0x00,
0x80,0x0B,0x00,0x00,0x55,0x00,0x45,0x4C,0x49,0x53,0x50,0x00,0x09,0x00,0x7D,0x0B,
0x00,0x00,0x55,0x00,0x53,0x49,0x54,0x45,0x2D,0x4C,0x49,0x53,0x50,0x00,0x03,0x00,
0x86,0x0B,0x00,0x00,0x58,0x00,0x47,0x45,0x4E,0x00,0x03,0x00,0x85,0x0B,0x00,0x00,
0x58,0x00,0x53,0x54,0x44,0x00,0x08,0x00,0xB7,0x0B,0x00,0x00,0x59,0x00,0x41,0x4D,
0x49,0x47,0x41,0x44,0x4F,0x53,0x11,0x00,0x8B,0x0B,0x00,0x00,0x59,0x00,0x4D,0x36,
0x38,0x4B,0x2D,0x43,0x42,0x4D,0x2D,0x41,0x4D,0x49,0x47,0x41,0x44,0x4F,0x53,0x00,
0x03,0x00,0xBD,0x0B,0x00,0x00,0x5A,0x00,0x44,0x4F,0x43,0x00,0x08,0x00,0xBE,0x0B,
0x00,0x00,0x5A,0x00,0x45,0x58,0x41,0x4D,0x50,0x4C,0x45,0x53,0x05,0x00,0xBF,0x0B,
0x00,0x00,0x5A,0x00,0x46,0x4F,0x4E,0x54,0x53,0x00,0x04,0x00,0x23,0x0D,0x00,0x00,
0x5B,0x00,0x54,0x45,0x52,0x4D,0x04,0x00,0xC2,0x0B,0x00,0x00,0x5C,0x00,0x46,0x4F,
0x4E,0x54,0x04,0x00,0xCD,0x0B,0x00,0x00,0x5C,0x00,0x54,0x4D,0x41,0x43,0x07,0x00,
0xD3,0x0B,0x00,0x00,0x5F,0x00,0x4C,0x49,0x42,0x4D,0x30,0x32,0x30,0x00,0x06,0x00,
0xD9,0x0B,0x00,0x00,0x5F,0x00,0x4C,0x49,0x42,0x4E,0x49,0x58,0x06,0x00,0xF7,0x0B,
0x00,0x00,0x61,0x00,0x4C,0x49,0x42,0x38,0x38,0x31,0x07,0x00,0xFA,0x0B,0x00,0x00,
0x61,0x00,0x4C,0x49,0x42,0x4D,0x38,0x38,0x31,0x00,0x06,0x00,0xF9,0x0B,0x00,0x00,
0x61,0x00,0x4C,0x49,0x42,0x4E,0x49,0x58,0x05,0x00,0xDC,0x0B,0x00,0x00,0x63,0x00,
0x31,0x2E,0x31,0x2E,0x31,0x00,0x04,0x00,0xF2,0x0B,0x00,0x00,0x63,0x00,0x53,0x49,
0x54,0x45,0x06,0x00,0x14,0x0C,0x00,0x00,0x65,0x00,0x42,0x49,0x42,0x54,0x45,0x58,
0x03,0x00,0x1C,0x0D,0x00,0x00,0x65,0x00,0x44,0x4F,0x43,0x00,0x05,0x00,0x02,0x0C,
0x00,0x00,0x65,0x00,0x44,0x56,0x49,0x50,0x53,0x00,0x05,0x00,0x17,0x0C,0x00,0x00,
0x65,0x00,0x46,0x4F,0x4E,0x54,0x53,0x00,0x03,0x00,0x21,0x0D,0x00,0x00,0x65,0x00,
0x49,0x4E,0x49,0x00,0x02,0x00,0x1B,0x0D,0x00,0x00,0x65,0x00,0x4D,0x46,0x03,0x00,
0x03,0x0C,0x00,0x00,0x65,0x00,0x54,0x45,0x58,0x00,0x05,0x00,0x01,0x0C,0x00,0x00,
0x65,0x00,0x57,0x45,0x42,0x32,0x43,0x00,0x02,0x00,0x5D,0x0D,0x00,0x00,0x87,0x00,
0x44,0x45,0x02,0x00,0x5F,0x0D,0x00,0x00,0x87,0x00,0x46,0x52,0x02,0x00,0x61,0x0D,
0x00,0x00,0x87,0x00,0x50,0x54,0x02,0x00,0x63,0x0D,0x00,0x00,0x87,0x00,0x53,0x56,
0x05,0x00,0x7F,0x00,0x00,0x00,0x8C,0x00,0x41,0x46,0x49,0x4C,0x45,0x00,0x0A,0x00,
0xAB,0x00,0x00,0x00,0x8C,0x00,0x44,0x41,0x54,0x41,0x4D,0x41,0x53,0x54,0x45,0x52,
0x02,0x00,0x8C,0x00,0x00,0x00,0x8C,0x00,0x44,0x42,0x0B,0x00,0x8B,0x00,0x00,0x00,
0x8C,0x00,0x47,0x45,0x4E,0x45,0x41,0x4C,0x4F,0x47,0x49,0x53,0x54,0x00,0x08,0x00,
0x85,0x00,0x00,0x00,0x8C,0x00,0x49,0x4E,0x54,0x55,0x49,0x44,0x45,0x58,0x09,0x00,
0x9B,0x00,0x00,0x00,0x8C,0x00,0x51,0x55,0x49,0x43,0x4B,0x46,0x49,0x4C,0x45,0x00,
0x0C,0x00,0xAA,0x00,0x00,0x00,0x8C,0x00,0x52,0x4F,0x55,0x54,0x45,0x50,0x4C,0x41,
0x4E,0x4E,0x45,0x52,0x0A,0x00,0xAE,0x00,0x00,0x00,0x8D,0x00,0x4D,0x55,0x4C,0x54,
0x49,0x2D,0x50,0x52,0x45,0x44,0x09,0x00,0xB8,0x00,0x00,0x00,0x8D,0x00,0x54,0x55,
0x52,0x42,0x4F,0x43,0x41,0x4C,0x43,0x00,0x03,0x00,0xC7,0x00,0x00,0x00,0x8E,0x00,
0x42,0x55,0x44,0x00,0x09,0x00,0xCC,0x00,0x00,0x00,0x8F,0x00,0x50,0x48,0x4F,0x4E,
0x45,0x42,0x49,0x4C,0x4C,0x00,0x06,0x00,0xD8,0x00,0x00,0x00,0x90,0x00,0x50,0x52,
0x4F,0x4E,0x45,0x54,0x08,0x00,0xEA,0x00,0x00,0x00,0x91,0x00,0x42,0x42,0x47,0x4F,
0x50,0x48,0x45,0x52,0x08,0x00,0xED,0x00,0x00,0x00,0x91,0x00,0x4E,0x45,0x54,0x49,
0x4E,0x50,0x55,0x54,0x08,0x00,0xF5,0x00,0x00,0x00,0x92,0x00,0x54,0x45,0x4C,0x45,
0x54,0x45,0x52,0x4D,0x04,0x00,0xF7,0x00,0x00,0x00,0x92,0x00,0x54,0x45,0x52,0x4D,
0x06,0x00,0x1D,0x01,0x00,0x00,0x93,0x00,0x32,0x36,0x32,0x31,0x34,0x34,0x0C,0x00,
0x20,0x01,0x00,0x00,0x94,0x00,0x49,0x4E,0x43,0x4C,0x55,0x44,0x45,0x47,0x55,0x49,
0x44,0x45,0x0E,0x00,0x21,0x01,0x00,0x00,0x94,0x00,0x53,0x54,0x52,0x55,0x43,0x54,
0x55,0x52,0x45,0x47,0x55,0x49,0x44,0x45,0x04,0x00,0x23,0x01,0x00,0x00,0x95,0x00,
0x44,0x49,0x43,0x45,0x09,0x00,0x31,0x01,0x00,0x00,0x96,0x00,0x50,0x4F,0x4F,0x4C,
0x57,0x41,0x54,0x43,0x48,0x00,0x06,0x00,0x33,0x01,0x00,0x00,0x97,0x00,0x41,0x4D,
0x49,0x47,0x41,0x45,0x0A,0x00,0xF3,0x01,0x00,0x00,0x98,0x00,0x47,0x55,0x49,0x43,
0x52,0x45,0x41,0x54,0x4F,0x52,0x06,0x00,0xC3,0x01,0x00,0x00,0x98,0x00,0x54,0x52,
0x49,0x54,0x4F,0x4E,0x06,0x00,0x05,0x02,0x00,0x00,0x99,0x00,0x4C,0x41,0x4D,0x42,
0x44,0x41,0x05,0x00,0xFB,0x01,0x00,0x00,0x99,0x00,0x53,0x47,0x4D,0x4C,0x53,0x00,
0x03,0x00,0x17,0x02,0x00,0x00,0x9A,0x00,0x42,0x44,0x48,0x00,0x07,0x00,0x12,0x02,
0x00,0x00,0x9A,0x00,0x44,0x4C,0x45,0x52,0x52,0x4F,0x52,0x00,0x06,0x00,0x0C,0x02,
0x00,0x00,0x9A,0x00,0x48,0x57,0x47,0x52,0x43,0x53,0x07,0x00,0x0A,0x02,0x00,0x00,
0x9A,0x00,0x4D,0x45,0x4D,0x4F,0x52,0x59,0x58,0x00,0x06,0x00,0x0B,0x02,0x00,0x00,
0x9A,0x00,0x52,0x43,0x53,0x47,0x55,0x49,0x06,0x00,0x4C,0x02,0x00,0x00,0x9B,0x00,
0x4F,0x42,0x45,0x52,0x4F,0x4E,0x08,0x00,0x19,0x02,0x00,0x00,0x9B,0x00,0x4F,0x42,
0x45,0x52,0x4F,0x4E,0x2D,0x41,0x0C,0x00,0x5C,0x02,0x00,0x00,0x9B,0x00,0x4F,0x42,
0x45,0x52,0x4F,0x4E,0x2D,0x4E,0x4F,0x46,0x50,0x55,0x0C,0x00,0x60,0x02,0x00,0x00,
0x9C,0x00,0x4D,0x41,0x4E,0x41,0x47,0x45,0x43,0x44,0x50,0x49,0x43,0x53,0x07,0x00,
0x64,0x02,0x00,0x00,0x9D,0x00,0x41,0x46,0x53,0x44,0x45,0x4D,0x4F,0x00,0x0F,0x00,
0x6B,0x02,0x00,0x00,0x9D,0x00,0x42,0x4F,0x4F,0x54,0x42,0x4C,0x4B,0x5F,0x43,0x48,
0x45,0x43,0x4B,0x45,0x52,0x00,0x0C,0x00,0x6A,0x02,0x00,0x00,0x9D,0x00,0x44,0x43,
0x41,0x54,0x44,0x49,0x53,0x4B,0x43,0x4F,0x50,0x59,0x0A,0x00,0x69,0x02,0x00,0x00,
0x9D,0x00,0x44,0x49,0x53,0x4B,0x4D,0x41,0x54,0x54,0x45,0x52,0x06,0x00,0x66,0x02,
0x00,0x00,0x9D,0x00,0x44,0x49,0x53,0x4B,0x5F,0x4B,0x09,0x00,0x6E,0x02,0x00,0x00,
0x9E,0x00,0x44,0x49,0x53,0x4B,0x53,0x41,0x4C,0x56,0x32,0x00,0x05,0x00,0x74,0x02,
0x00,0x00,0x9F,0x00,0x54,0x42,0x4F,0x4D,0x4C,0x00,0x0F,0x00,0xFA,0x02,0x00,0x00,
0xA0,0x00,0x53,0x54,0x52,0x49,0x4B,0x45,0x43,0x4F,0x4D,0x4D,0x41,0x4E,0x44,0x45,
0x52,0x00,0x05,0x00,0x77,0x02,0x00,0x00,0xA1,0x00,0x43,0x48,0x41,0x4F,0x53,0x00,
0x06,0x00,0x7E,0x02,0x00,0x00,0xA1,0x00,0x56,0x43,0x48,0x45,0x53,0x53,0x07,0x00,
0x8E,0x02,0x00,0x00,0xA2,0x00,0x44,0x45,0x4D,0x4F,0x46,0x4F,0x42,0x00,0x03,0x00,
0xDF,0x02,0x00,0x00,0xA3,0x00,0x43,0x43,0x43,0x00,0x0C,0x00,0xAC,0x02,0x00,0x00,
0xA3,0x00,0x44,0x49,0x41,0x4D,0x4F,0x4E,0x44,0x43,0x41,0x56,0x45,0x53,0x0B,0x00,
0xCB,0x02,0x00,0x00,0xA3,0x00,0x44,0x49,0x41,0x4D,0x4F,0x4E,0x44,0x45,0x44,0x49,
0x54,0x00,0x0C,0x00,0xD5,0x02,0x00,0x00,0xA3,0x00,0x44,0x49,0x41,0x4D,0x4F,0x4E,
0x44,0x50,0x52,0x45,0x46,0x53,0x0A,0x00,0xDA,0x02,0x00,0x00,0xA3,0x00,0x44,0x49,
0x41,0x4D,0x4F,0x4E,0x44,0x53,0x46,0x58,0x0A,0x00,0xAA,0x02,0x00,0x00,0xA3,0x00,
0x53,0x55,0x50,0x45,0x52,0x54,0x52,0x41,0x49,0x4C,0x0B,0x00,0xE4,0x02,0x00,0x00,
0xA4,0x00,0x47,0x4E,0x55,0x43,0x48,0x45,0x53,0x53,0x46,0x49,0x58,0x00,0x11,0x00,
0xE3,0x02,0x00,0x00,0xA4,0x00,0x53,0x49,0x4D,0x43,0x49,0x54,0x59,0x46,0x55,0x4E,
0x44,0x53,0x43,0x48,0x45,0x41,0x54,0x00,0x08,0x00,0xEA,0x02,0x00,0x00,0xA5,0x00,
0x46,0x41,0x4C,0x43,0x4F,0x4E,0x49,0x41,0x03,0x00,0xE7,0x02,0x00,0x00,0xA5,0x00,
0x49,0x54,0x46,0x00,0x09,0x00,0xE8,0x02,0x00,0x00,0xA5,0x00,0x53,0x50,0x41,0x43,
0x45,0x4A,0x45,0x53,0x54,0x00,0x09,0x00,0xED,0x02,0x00,0x00,0xA6,0x00,0x4C,0x41,
0x5A,0x59,0x4D,0x49,0x4E,0x45,0x53,0x00,0x08,0x00,0xF7,0x02,0x00,0x00,0xA6,0x00,
0x53,0x43,0x52,0x41,0x4D,0x42,0x4C,0x45,0x09,0x00,0xF6,0x02,0x00,0x00,0xA6,0x00,
0x56,0x4F,0x5A,0x2D,0x43,0x48,0x45,0x53,0x53,0x00,0x09,0x00,0xFD,0x02,0x00,0x00,
0xA7,0x00,0x43,0x59,0x42,0x45,0x52,0x53,0x48,0x4F,0x57,0x00,0x08,0x00,0xFE,0x02,
0x00,0x00,0xA7,0x00,0x53,0x48,0x4F,0x57,0x4A,0x50,0x45,0x47,0x06,0x00,0x00,0x03,
0x00,0x00,0xA8,0x00,0x41,0x47,0x41,0x49,0x46,0x46,0x07,0x00,0x02,0x03,0x00,0x00,
0xA8,0x00,0x49,0x4D,0x41,0x47,0x45,0x32,0x43,0x00,0x07,0x00,0x04,0x03,0x00,0x00,
0xA9,0x00,0x41,0x4D,0x49,0x47,0x41,0x58,0x56,0x00,0x10,0x00,0x17,0x03,0x00,0x00,
0xAA,0x00,0x42,0x4C,0x55,0x46,0x46,0x54,0x49,0x54,0x4C,0x45,0x52,0x5F,0x44,0x45,
0x4D,0x4F,0x0D,0x00,0x16,0x03,0x00,0x00,0xAA,0x00,0x42,0x4F,0x52,0x44,0x45,0x52,
0x53,0x50,0x52,0x49,0x54,0x45,0x53,0x00,0x0B,0x00,0x09,0x03,0x00,0x00,0xAA,0x00,
0x56,0x49,0x44,0x45,0x4F,0x54,0x49,0x54,0x4C,0x45,0x52,0x00,0x05,0x00,0x20,0x03,
0x00,0x00,0xAB,0x00,0x45,0x53,0x48,0x4F,0x57,0x00,0x0B,0x00,0x1E,0x03,0x00,0x00,
0xAB,0x00,0x49,0x4C,0x42,0x4D,0x5F,0x4B,0x49,0x4C,0x4C,0x45,0x52,0x00,0x03,0x00,
0x77,0x03,0x00,0x00,0xAB,0x00,0x4A,0x49,0x56,0x00,0x08,0x00,0x1D,0x03,0x00,0x00,
0xAB,0x00,0x50,0x2D,0x52,0x45,0x41,0x44,0x45,0x52,0x06,0x00,0x1C,0x03,0x00,0x00,
0xAB,0x00,0x50,0x2D,0x56,0x49,0x45,0x57,0x09,0x00,0x25,0x03,0x00,0x00,0xAB,0x00,
0x53,0x55,0x50,0x45,0x52,0x56,0x49,0x45,0x57,0x00,0x06,0x00,0x7D,0x03,0x00,0x00,
0xAC,0x00,0x41,0x4D,0x49,0x57,0x49,0x4E,0x06,0x00,0x98,0x03,0x00,0x00,0xAD,0x00,
0x41,0x4E,0x41,0x4C,0x41,0x59,0x05,0x00,0x97,0x03,0x00,0x00,0xAD,0x00,0x45,0x43,
0x41,0x4C,0x43,0x00,0x06,0x00,0x9F,0x03,0x00,0x00,0xAD,0x00,0x45,0x58,0x43,0x41,
0x4C,0x43,0x06,0x00,0x96,0x03,0x00,0x00,0xAD,0x00,0x50,0x49,0x43,0x41,0x4C,0x43,
0x07,0x00,0xA7,0x03,0x00,0x00,0xAE,0x00,0x4C,0x4F,0x54,0x54,0x45,0x52,0x59,0x00,
0x04,0x00,0xAA,0x03,0x00,0x00,0xAF,0x00,0x4C,0x59,0x4E,0x58,0x09,0x00,0xBF,0x03,
0x00,0x00,0xB0,0x00,0x4F,0x43,0x54,0x41,0x4D,0x45,0x44,0x56,0x36,0x00,0x05,0x00,
0xCE,0x03,0x00,0x00,0xB1,0x00,0x44,0x53,0x43,0x5F,0x42,0x00,0x06,0x00,0xCD,0x03,
0x00,0x00,0xB1,0x00,0x45,0x4E,0x47,0x49,0x4E,0x45,0x09,0x00,0xCC,0x03,0x00,0x00,
0xB1,0x00,0x4C,0x49,0x4D,0x42,0x4F,0x4C,0x41,0x4E,0x44,0x00,0x0E,0x00,0xD0,0x03,
0x00,0x00,0xB2,0x00,0x52,0x41,0x43,0x48,0x45,0x4C,0x46,0x4F,0x4F,0x54,0x42,0x41,
0x4C,0x4C,0x0A,0x00,0xD4,0x03,0x00,0x00,0xB3,0x00,0x41,0x47,0x41,0x5F,0x4D,0x4F,
0x52,0x50,0x48,0x59,0x06,0x00,0xD3,0x03,0x00,0x00,0xB3,0x00,0x42,0x41,0x54,0x4D,
0x41,0x4E,0x0A,0x00,0xD2,0x03,0x00,0x00,0xB3,0x00,0x4A,0x55,0x47,0x47,0x4C,0x45,
0x52,0x5F,0x4A,0x52,0x07,0x00,0xD6,0x03,0x00,0x00,0xB4,0x00,0x41,0x4D,0x59,0x57,
0x42,0x5F,0x31,0x00,0x07,0x00,0xE5,0x03,0x00,0x00,0xB4,0x00,0x42,0x4F,0x4F,0x54,
0x50,0x49,0x43,0x00,0x07,0x00,0xE7,0x03,0x00,0x00,0xB5,0x00,0x49,0x42,0x52,0x4F,
0x57,0x53,0x45,0x00,0x07,0x00,0xE8,0x03,0x00,0x00,0xB5,0x00,0x4E,0x45,0x57,0x4C,
0x4F,0x47,0x4F,0x00,0x0B,0x00,0xEB,0x03,0x00,0x00,0xB6,0x00,0x42,0x45,0x41,0x56,
0x45,0x52,0x44,0x52,0x45,0x41,0x4D,0x00,0x06,0x00,0xEA,0x03,0x00,0x00,0xB6,0x00,
0x46,0x4D,0x44,0x45,0x53,0x4B,0x08,0x00,0xF6,0x03,0x00,0x00,0xB7,0x00,0x4A,0x55,
0x52,0x41,0x53,0x53,0x49,0x43,0x06,0x00,0xF5,0x03,0x00,0x00,0xB7,0x00,0x4B,0x4E,
0x49,0x47,0x48,0x54,0x08,0x00,0xF9,0x03,0x00,0x00,0xB7,0x00,0x4D,0x41,0x4E,0x47,
0x41,0x4A,0x49,0x4E,0x0B,0x00,0xF4,0x03,0x00,0x00,0xB7,0x00,0x50,0x41,0x5F,0x41,
0x4D,0x59,0x4C,0x4F,0x47,0x4F,0x53,0x00,0x08,0x00,0xF3,0x03,0x00,0x00,0xB7,0x00,
0x50,0x41,0x5F,0x53,0x49,0x52,0x44,0x53,0x0B,0x00,0xF2,0x03,0x00,0x00,0xB7,0x00,
0x53,0x43,0x52,0x45,0x45,0x4E,0x47,0x48,0x4F,0x53,0x54,0x00,0x08,0x00,0xF1,0x03,
0x00,0x00,0xB7,0x00,0x53,0x55,0x42,0x53,0x50,0x41,0x43,0x45,0x08,0x00,0xF8,0x03,
0x00,0x00,0xB7,0x00,0x54,0x48,0x41,0x4E,0x4B,0x59,0x4F,0x55,0x0A,0x00,0xF0,0x03,
0x00,0x00,0xB7,0x00,0x54,0x48,0x45,0x50,0x48,0x4F,0x45,0x4E,0x49,0x58,0x06,0x00,
0xEF,0x03,0x00,0x00,0xB7,0x00,0x56,0x4F,0x52,0x54,0x49,0x58,0x09,0x00,0xF7,0x03,
0x00,0x00,0xB7,0x00,0x57,0x41,0x54,0x45,0x52,0x47,0x49,0x52,0x4C,0x00,0x08,0x00,
0xEE,0x03,0x00,0x00,0xB7,0x00,0x57,0x41,0x54,0x45,0x52,0x4D,0x41,0x4E,0x08,0x00,
0xED,0x03,0x00,0x00,0xB7,0x00,0x57,0x49,0x4E,0x4B,0x49,0x4C,0x4C,0x53,0x05,0x00,
0x02,0x04,0x00,0x00,0xBA,0x00,0x42,0x45,0x41,0x53,0x54,0x00,0x0A,0x00,0x03,0x04,
0x00,0x00,0xBA,0x00,0x43,0x41,0x53,0x54,0x4C,0x45,0x52,0x4F,0x4F,0x4D,0x0A,0x00,
0x01,0x04,0x00,0x00,0xBA,0x00,0x45,0x4E,0x54,0x50,0x52,0x45,0x56,0x49,0x45,0x57,
0x05,0x00,0x00,0x04,0x00,0x00,0xBA,0x00,0x46,0x45,0x52,0x52,0x59,0x00,0x09,0x00,
0xFF,0x03,0x00,0x00,0xBA,0x00,0x4D,0x41,0x4E,0x54,0x49,0x53,0x46,0x4C,0x59,0x00,
0x07,0x00,0xFE,0x03,0x00,0x00,0xBA,0x00,0x50,0x4F,0x57,0x45,0x52,0x50,0x43,0x00,
0x0B,0x00,0xFD,0x03,0x00,0x00,0xBA,0x00,0x52,0x45,0x46,0x4C,0x45,0x43,0x54,0x49,
0x4F,0x4E,0x53,0x00,0x07,0x00,0x0E,0x04,0x00,0x00,0xBB,0x00,0x41,0x54,0x2D,0x4C,
0x4F,0x47,0x4F,0x00,0x09,0x00,0x0D,0x04,0x00,0x00,0xBB,0x00,0x44,0x4F,0x4F,0x47,
0x42,0x45,0x4E,0x43,0x48,0x00,0x08,0x00,0x0C,0x04,0x00,0x00,0xBB,0x00,0x45,0x4D,
0x55,0x42,0x45,0x4E,0x43,0x48,0x09,0x00,0x05,0x04,0x00,0x00,0xBB,0x00,0x47,0x52,
0x41,0x42,0x45,0x43,0x52,0x41,0x4E,0x00,0x08,0x00,0x0B,0x04,0x00,0x00,0xBB,0x00,
0x47,0x52,0x45,0x47,0x4F,0x52,0x57,0x42,0x06,0x00,0x0A,0x04,0x00,0x00,0xBB,0x00,
0x4A,0x55,0x52,0x45,0x57,0x42,0x0B,0x00,0x09,0x04,0x00,0x00,0xBB,0x00,0x4C,0x41,
0x47,0x55,0x41,0x52,0x44,0x49,0x41,0x57,0x42,0x00,0x09,0x00,0x08,0x04,0x00,0x00,
0xBB,0x00,0x4E,0x55,0x44,0x45,0x4C,0x2D,0x50,0x49,0x58,0x00,0x07,0x00,0x07,0x04,
0x00,0x00,0xBB,0x00,0x53,0x5F,0x57,0x42,0x50,0x49,0x43,0x00,0x0D,0x00,0x06,0x04,
0x00,0x00,0xBB,0x00,0x54,0x4F,0x4D,0x4D,0x59,0x5F,0x45,0x42,0x42,0x45,0x53,0x45,
0x4E,0x00,0x06,0x00,0x1B,0x04,0x00,0x00,0xBD,0x00,0x47,0x4F,0x4C,0x44,0x45,0x44,
0x08,0x00,0x16,0x04,0x00,0x00,0xBD,0x00,0x4E,0x45,0x58,0x54,0x53,0x54,0x45,0x50,
0x07,0x00,0x88,0x04,0x00,0x00,0xBD,0x00,0x54,0x54,0x58,0x5F,0x4D,0x32,0x53,0x00,
0x07,0x00,0x63,0x04,0x00,0x00,0xBD,0x00,0x57,0x41,0x52,0x50,0x43,0x2B,0x2B,0x00,
0x07,0x00,0x68,0x04,0x00,0x00,0xBD,0x00,0x57,0x41,0x52,0x50,0x4D,0x4F,0x44,0x00,
0x05,0x00,0x6D,0x04,0x00,0x00,0xBD,0x00,0x57,0x4F,0x52,0x44,0x53,0x00,0x06,0x00,
0x90,0x04,0x00,0x00,0xBE,0x00,0x46,0x46,0x4F,0x4E,0x54,0x53,0x09,0x00,0xA7,0x04,
0x00,0x00,0xBF,0x00,0x57,0x52,0x41,0x50,0x47,0x55,0x49,0x44,0x45,0x00,0x05,0x00,
0x8A,0x04,0x00,0x00,0xC0,0x00,0x50,0x53,0x50,0x52,0x54,0x00,0x04,0x00,0xAF,0x04,
0x00,0x00,0xC1,0x00,0x4C,0x49,0x4E,0x4F,0x07,0x00,0xAE,0x04,0x00,0x00,0xC1,0x00,
0x4D,0x4F,0x44,0x50,0x41,0x43,0x4B,0x00,0x06,0x00,0xAD,0x04,0x00,0x00,0xC1,0x00,
0x53,0x2D,0x50,0x41,0x43,0x4B,0x04,0x00,0xAA,0x04,0x00,0x00,0xC1,0x00,0x55,0x55,
0x58,0x54,0x0A,0x00,0xBA,0x04,0x00,0x00,0xC2,0x00,0x42,0x4C,0x49,0x54,0x5A,0x42,
0x4C,0x41,0x4E,0x4B,0x09,0x00,0xB6,0x04,0x00,0x00,0xC3,0x00,0x59,0x4F,0x55,0x52,
0x46,0x41,0x55,0x4C,0x54,0x00,0x09,0x00,0xF8,0x04,0x00,0x00,0xC4,0x00,0x42,0x45,
0x58,0x43,0x48,0x41,0x4E,0x47,0x45,0x00,0x02,0x00,0xCE,0x04,0x00,0x00,0xC4,0x00,
0x43,0x58,0x0D,0x00,0xE8,0x04,0x00,0x00,0xC4,0x00,0x4D,0x55,0x49,0x4D,0x4F,0x55,
0x53,0x4F,0x4D,0x45,0x54,0x45,0x52,0x00,0x07,0x00,0xEF,0x04,0x00,0x00,0xC4,0x00,
0x4D,0x55,0x4C,0x54,0x49,0x43,0x58,0x00,0x06,0x00,0xE7,0x04,0x00,0x00,0xC4,0x00,
0x52,0x45,0x4D,0x49,0x4E,0x44,0x08,0x00,0xF0,0x04,0x00,0x00,0xC4,0x00,0x52,0x55,
0x4E,0x4C,0x49,0x53,0x54,0x33,0x10,0x00,0xFD,0x04,0x00,0x00,0xC4,0x00,0x53,0x4C,
0x45,0x45,0x50,0x49,0x4E,0x47,0x50,0x4F,0x49,0x4E,0x54,0x45,0x52,0x53,0x03,0x00,
0xD3,0x04,0x00,0x00,0xC4,0x00,0x59,0x41,0x4B,0x00,0x03,0x00,0xFF,0x04,0x00,0x00,
0xC5,0x00,0x51,0x43,0x44,0x00,0x0A,0x00,0x1D,0x05,0x00,0x00,0xC6,0x00,0x46,0x49,
0x4C,0x45,0x4D,0x41,0x53,0x54,0x45,0x52,0x04,0x00,0x03,0x05,0x00,0x00,0xC7,0x00,
0x43,0x5F,0x44,0x54,0x07,0x00,0x12,0x05,0x00,0x00,0xC7,0x00,0x46,0x4F,0x4E,0x54,
0x5F,0x44,0x54,0x00,0x07,0x00,0x10,0x05,0x00,0x00,0xC7,0x00,0x54,0x49,0x46,0x46,
0x5F,0x44,0x54,0x00,0x0C,0x00,0x01,0x05,0x00,0x00,0xC7,0x00,0x5A,0x47,0x49,0x46,
0x44,0x41,0x54,0x41,0x54,0x59,0x50,0x45,0x07,0x00,0x39,0x05,0x00,0x00,0xC8,0x00,
0x41,0x53,0x43,0x53,0x45,0x4E,0x44,0x00,0x07,0x00,0x22,0x05,0x00,0x00,0xC8,0x00,
0x42,0x4F,0x4F,0x54,0x55,0x54,0x45,0x00,0x09,0x00,0x26,0x05,0x00,0x00,0xC8,0x00,
0x49,0x4E,0x46,0x52,0x41,0x52,0x45,0x58,0x58,0x00,0x09,0x00,0x20,0x05,0x00,0x00,
0xC8,0x00,0x49,0x52,0x2D,0x4D,0x41,0x53,0x54,0x45,0x52,0x00,0x08,0x00,0x21,0x05,
0x00,0x00,0xC8,0x00,0x4C,0x43,0x4F,0x4E,0x54,0x52,0x4F,0x4C,0x0E,0x00,0x37,0x05,
0x00,0x00,0xC8,0x00,0x4D,0x45,0x4D,0x4F,0x52,0x59,0x5F,0x4D,0x4F,0x4E,0x49,0x54,
0x4F,0x52,0x03,0x00,0x4C,0x05,0x00,0x00,0xC8,0x00,0x56,0x4D,0x4D,0x00,0x07,0x00,
0x48,0x05,0x00,0x00,0xC8,0x00,0x57,0x48,0x45,0x52,0x45,0x5F,0x4B,0x00,0x05,0x00,
0x61,0x05,0x00,0x00,0xC9,0x00,0x53,0x43,0x4F,0x55,0x54,0x00,0x0B,0x00,0x67,0x05,
0x00,0x00,0xCA,0x00,0x50,0x2D,0x43,0x4F,0x4D,0x50,0x52,0x45,0x53,0x53,0x32,0x00,
0x06,0x00,0x68,0x05,0x00,0x00,0xCA,0x00,0x50,0x41,0x43,0x4B,0x49,0x54,0x04,0x00,
0xB3,0x05,0x00,0x00,0xCB,0x00,0x53,0x4F,0x52,0x54,0x03,0x00,0x6C,0x05,0x00,0x00,
0xCC,0x00,0x4F,0x4C,0x54,0x00,0x09,0x00,0x6D,0x05,0x00,0x00,0xCC,0x00,0x54,0x45,
0x58,0x54,0x43,0x4C,0x4F,0x43,0x4B,0x00,0x0C,0x00,0x77,0x05,0x00,0x00,0xCD,0x00,
0x41,0x4E,0x54,0x49,0x43,0x49,0x43,0x4C,0x4F,0x56,0x49,0x52,0x0C,0x00,0x6F,0x05,
0x00,0x00,0xCD,0x00,0x56,0x49,0x52,0x55,0x53,0x43,0x48,0x45,0x43,0x4B,0x45,0x52,
0x08,0x00,0x7A,0x05,0x00,0x00,0xCD,0x00,0x56,0x49,0x52,0x55,0x53,0x5A,0x49,0x49,
0x02,0x00,0x73,0x05,0x00,0x00,0xCD,0x00,0x56,0x54,0x09,0x00,0x7E,0x05,0x00,0x00,
0xCE,0x00,0x45,0x58,0x54,0x52,0x41,0x49,0x4E,0x46,0x4F,0x00,0x0C,0x00,0x8A,0x05,
0x00,0x00,0xCE,0x00,0x49,0x43,0x4F,0x4E,0x5F,0x54,0x4F,0x4F,0x4C,0x42,0x4F,0x58,
0x0A,0x00,0x87,0x05,0x00,0x00,0xCE,0x00,0x53,0x45,0x54,0x42,0x55,0x46,0x46,0x45,
0x52,0x53,0x0B,0x00,0x82,0x05,0x00,0x00,0xCE,0x00,0x53,0x59,0x53,0x54,0x45,0x4D,
0x50,0x52,0x45,0x46,0x53,0x00,0x0A,0x00,0xB0,0x05,0x00,0x00,0xCE,0x00,0x57,0x42,
0x53,0x54,0x41,0x52,0x54,0x55,0x50,0x2B,0x05,0x00,0xC3,0x05,0x00,0x00,0xD0,0x00,
0x44,0x41,0x4E,0x53,0x4B,0x00,0x07,0x00,0xC4,0x05,0x00,0x00,0xD0,0x00,0x44,0x45,
0x55,0x54,0x53,0x43,0x48,0x00,0x07,0x00,0xC5,0x05,0x00,0x00,0xD0,0x00,0x45,0x53,
0x50,0x41,0xD1,0x4F,0x4C,0x00,0x0A,0x00,0xC6,0x05,0x00,0x00,0xD0,0x00,0x4E,0x45,
0x44,0x45,0x52,0x4C,0x41,0x4E,0x44,0x53,0x05,0x00,0xC7,0x05,0x00,0x00,0xD0,0x00,
0x53,0x55,0x4F,0x4D,0x49,0x00,0x07,0x00,0xC8,0x05,0x00,0x00,0xD0,0x00,0x53,0x56,
0x45,0x4E,0x53,0x4B,0x41,0x00,0x08,0x00,0x58,0x06,0x00,0x00,0xD1,0x00,0x4E,0x44,
0x55,0x4B,0x2D,0x56,0x33,0x37,0x08,0x00,0x6A,0x06,0x00,0x00,0xD1,0x00,0x4E,0x44,
0x55,0x4B,0x2D,0x56,0x33,0x39,0x08,0x00,0x7F,0x06,0x00,0x00,0xD1,0x00,0x4E,0x44,
0x55,0x4B,0x2D,0x56,0x34,0x30,0x09,0x00,0x83,0x0A,0x00,0x00,0xD2,0x00,0x4D,0x41,
0x49,0x4C,0x51,0x55,0x45,0x55,0x45,0x00,0x06,0x00,0x85,0x0A,0x00,0x00,0xD3,0x00,
0x41,0x4D,0x49,0x50,0x4F,0x50,0x06,0x00,0x8B,0x0A,0x00,0x00,0xD3,0x00,0x41,0x4D,
0x49,0x54,0x43,0x50,0x0B,0x00,0x03,0x0B,0x00,0x00,0xD3,0x00,0x41,0x4D,0x49,0x54,
0x43,0x50,0x2D,0x44,0x45,0x4D,0x4F,0x00,0x0A,0x00,0x1C,0x0B,0x00,0x00,0xD3,0x00,
0x41,0x4D,0x49,0x54,0x43,0x50,0x2D,0x53,0x44,0x4B,0x09,0x00,0x87,0x0A,0x00,0x00,
0xD3,0x00,0x46,0x54,0x50,0x44,0x41,0x45,0x4D,0x4F,0x4E,0x00,0x0A,0x00,0x3C,0x0B,
0x00,0x00,0xD3,0x00,0x54,0x52,0x41,0x43,0x45,0x52,0x4F,0x55,0x54,0x45,0x04,0x00,
0x5E,0x0A,0x00,0x00,0xD4,0x00,0x54,0x45,0x52,0x4D,0x03,0x00,0x02,0x08,0x00,0x00,
0xD5,0x00,0x41,0x43,0x45,0x00,0x07,0x00,0x9B,0x06,0x00,0x00,0xD6,0x00,0x43,0x4D,
0x41,0x4E,0x55,0x41,0x4C,0x00,0x04,0x00,0xE9,0x06,0x00,0x00,0xD6,0x00,0x52,0x4B,
0x52,0x4D,0x0B,0x00,0x2B,0x07,0x00,0x00,0xD7,0x00,0x43,0x4F,0x44,0x45,0x57,0x41,
0x54,0x43,0x48,0x45,0x52,0x00,0x08,0x00,0x28,0x07,0x00,0x00,0xD7,0x00,0x45,0x4E,
0x46,0x4F,0x52,0x43,0x45,0x52,0x08,0x00,0x29,0x07,0x00,0x00,0xD7,0x00,0x4D,0x55,
0x4E,0x47,0x57,0x41,0x4C,0x4C,0x05,0x00,0x2A,0x07,0x00,0x00,0xD7,0x00,0x53,0x55,
0x53,0x48,0x49,0x00,0x06,0x00,0x2D,0x07,0x00,0x00,0xD8,0x00,0x41,0x4D,0x49,0x47,
0x41,0x45,0x03,0x00,0xBD,0x07,0x00,0x00,0xD9,0x00,0x4D,0x55,0x49,0x00,0x08,0x00,
0x5B,0x08,0x00,0x00,0xDA,0x00,0x53,0x54,0x41,0x43,0x4B,0x4D,0x4F,0x4E,0x08,0x00,
0x27,0x08,0x00,0x00,0xDB,0x00,0x4F,0x42,0x45,0x52,0x4F,0x4E,0x2D,0x41,0x08,0x00,
0x5F,0x08,0x00,0x00,0xDC,0x00,0x41,0x4D,0x49,0x43,0x44,0x52,0x4F,0x4D,0x07,0x00,
0x65,0x08,0x00,0x00,0xDC,0x00,0x4D,0x4B,0x49,0x53,0x4F,0x46,0x53,0x00,0x08,0x00,
0x5E,0x08,0x00,0x00,0xDC,0x00,0x53,0x43,0x53,0x49,0x55,0x54,0x49,0x4C,0x0A,0x00,
0x68,0x08,0x00,0x00,0xDD,0x00,0x53,0x55,0x50,0x45,0x52,0x44,0x55,0x50,0x45,0x52,
0x07,0x00,0x6A,0x08,0x00,0x00,0xDE,0x00,0x42,0x54,0x4E,0x54,0x41,0x50,0x45,0x00,
0x04,0x00,0x6D,0x08,0x00,0x00,0xDE,0x00,0x46,0x4C,0x41,0x54,0x0B,0x00,0x6E,0x08,
0x00,0x00,0xDE,0x00,0x53,0x43,0x53,0x49,0x4D,0x4F,0x55,0x4E,0x54,0x45,0x52,0x00,
0x04,0x00,0x70,0x08,0x00,0x00,0xDF,0x00,0x41,0x5A,0x41,0x50,0x06,0x00,0x79,0x08,
0x00,0x00,0xDF,0x00,0x4E,0x45,0x57,0x5A,0x41,0x50,0x09,0x00,0x7B,0x08,0x00,0x00,
0xE0,0x00,0x44,0x49,0x53,0x4B,0x53,0x41,0x4C,0x56,0x32,0x00,0x06,0x00,0x95,0x08,
0x00,0x00,0xE1,0x00,0x44,0x41,0x43,0x41,0x50,0x4F,0x09,0x00,0x8A,0x08,0x00,0x00,
0xE1,0x00,0x46,0x41,0x4E,0x54,0x41,0x53,0x45,0x41,0x53,0x00,0x0F,0x00,0x8B,0x08,
0x00,0x00,0xE1,0x00,0x46,0x52,0x45,0x53,0x48,0x46,0x49,0x53,0x48,0x2D,0x56,0x4F,
0x4C,0x30,0x31,0x00,0x0F,0x00,0x8C,0x08,0x00,0x00,0xE1,0x00,0x46,0x52,0x45,0x53,
0x48,0x46,0x49,0x53,0x48,0x2D,0x56,0x4F,0x4C,0x30,0x32,0x00,0x0F,0x00,0x8D,0x08,
0x00,0x00,0xE1,0x00,0x46,0x52,0x45,0x53,0x48,0x46,0x49,0x53,0x48,0x2D,0x56,0x4F,
0x4C,0x30,0x33,0x00,0x0F,0x00,0x8E,0x08,0x00,0x00,0xE1,0x00,0x46,0x52,0x45,0x53,
0x48,0x46,0x49,0x53,0x48,0x2D,0x56,0x4F,0x4C,0x30,0x34,0x00,0x0F,0x00,0x8F,0x08,
0x00,0x00,0xE1,0x00,0x46,0x52,0x45,0x53,0x48,0x46,0x49,0x53,0x48,0x2D,0x56,0x4F,
0x4C,0x30,0x35,0x00,0x0F,0x00,0x90,0x08,0x00,0x00,0xE1,0x00,0x46,0x52,0x45,0x53,
0x48,0x46,0x49,0x53,0x48,0x2D,0x56,0x4F,0x4C,0x30,0x36,0x00,0x0F,0x00,0x91,0x08,
0x00,0x00,0xE1,0x00,0x46,0x52,0x45,0x53,0x48,0x46,0x49,0x53,0x48,0x2D,0x56,0x4F,
0x4C,0x30,0x37,0x00,0x0F,0x00,0x92,0x08,0x00,0x00,0xE1,0x00,0x46,0x52,0x45,0x53,
0x48,0x46,0x49,0x53,0x48,0x2D,0x56,0x4F,0x4C,0x30,0x38,0x00,0x0F,0x00,0x85,0x08,
0x00,0x00,0xE1,0x00,0x46,0x52,0x45,0x53,0x48,0x46,0x49,0x53,0x48,0x2D,0x56,0x4F,
0x4C,0x30,0x39,0x00,0x0F,0x00,0x93,0x08,0x00,0x00,0xE1,0x00,0x46,0x52,0x45,0x53,
0x48,0x46,0x49,0x53,0x48,0x2D,0x56,0x4F,0x4C,0x31,0x30,0x00,0x0F,0x00,0x89,0x08,
0x00,0x00,0xE1,0x00,0x46,0x52,0x45,0x53,0x48,0x46,0x4F,0x4E,0x54,0x53,0x2D,0x56,
0x4F,0x4C,0x31,0x00,0x10,0x00,0x86,0x08,0x00,0x00,0xE1,0x00,0x46,0x52,0x4F,0x5A,
0x45,0x4E,0x46,0x49,0x53,0x48,0x2D,0x41,0x50,0x52,0x39,0x34,0x10,0x00,0x94,0x08,
0x00,0x00,0xE1,0x00,0x46,0x52,0x4F,0x5A,0x45,0x4E,0x46,0x49,0x53,0x48,0x2D,0x41,
0x55,0x47,0x39,0x35,0x0D,0x00,0x87,0x08,0x00,0x00,0xE1,0x00,0x47,0x4F,0x4C,0x44,
0x46,0x49,0x53,0x48,0x2D,0x56,0x4F,0x4C,0x31,0x00,0x0D,0x00,0x82,0x08,0x00,0x00,
0xE1,0x00,0x47,0x4F,0x4C,0x44,0x46,0x49,0x53,0x48,0x2D,0x56,0x4F,0x4C,0x32,0x00,
0x0E,0x00,0x88,0x08,0x00,0x00,0xE1,0x00,0x4C,0x49,0x47,0x48,0x54,0x2D,0x52,0x4F,
0x4D,0x2D,0x56,0x4F,0x4C,0x31,0x0E,0x00,0x84,0x08,0x00,0x00,0xE1,0x00,0x4C,0x49,
0x47,0x48,0x54,0x2D,0x52,0x4F,0x4D,0x2D,0x56,0x4F,0x4C,0x32,0x0D,0x00,0x83,0x08,
0x00,0x00,0xE1,0x00,0x54,0x45,0x58,0x54,0x55,0x52,0x45,0x53,0x2D,0x56,0x4F,0x4C,
0x31,0x00,0x06,0x00,0x97,0x08,0x00,0x00,0xE2,0x00,0x46,0x46,0x30,0x30,0x58,0x58,
0x06,0x00,0x98,0x08,0x00,0x00,0xE2,0x00,0x46,0x46,0x30,0x31,0x58,0x58,0x06,0x00,
0x99,0x08,0x00,0x00,0xE2,0x00,0x46,0x46,0x30,0x32,0x58,0x58,0x06,0x00,0x9A,0x08,
0x00,0x00,0xE2,0x00,0x46,0x46,0x30,0x33,0x58,0x58,0x06,0x00,0x9B,0x08,0x00,0x00,
0xE2,0x00,0x46,0x46,0x30,0x34,0x58,0x58,0x06,0x00,0x9C,0x08,0x00,0x00,0xE2,0x00,
0x46,0x46,0x30,0x35,0x58,0x58,0x06,0x00,0x9D,0x08,0x00,0x00,0xE2,0x00,0x46,0x46,
0x30,0x36,0x58,0x58,0x06,0x00,0x9E,0x08,0x00,0x00,0xE2,0x00,0x46,0x46,0x30,0x37,
0x58,0x58,0x06,0x00,0x9F,0x08,0x00,0x00,0xE2,0x00,0x46,0x46,0x30,0x38,0x58,0x58,
0x06,0x00,0xA0,0x08,0x00,0x00,0xE2,0x00,0x46,0x46,0x30,0x39,0x58,0x58,0x06,0x00,
0xA1,0x08,0x00,0x00,0xE2,0x00,0x46,0x46,0x31,0x30,0x58,0x58,0x08,0x00,0xA3,0x08,
0x00,0x00,0xE3,0x00,0x41,0x4D,0x49,0x47,0x41,0x46,0x41,0x51,0x09,0x00,0xAD,0x08,
0x00,0x00,0xE3,0x00,0x41,0x4D,0x49,0x47,0x41,0x46,0x41,0x51,0x47,0x00,0x04,0x00,
0xAC,0x08,0x00,0x00,0xE3,0x00,0x52,0x52,0x49,0x50,0x06,0x00,0xB8,0x08,0x00,0x00,
0xE4,0x00,0x55,0x43,0x48,0x45,0x53,0x53,0x08,0x00,0x3C,0x09,0x00,0x00,0xE5,0x00,
0x53,0x48,0x4F,0x57,0x4A,0x50,0x45,0x47,0x07,0x00,0xBE,0x08,0x00,0x00,0xE6,0x00,
0x41,0x4D,0x49,0x47,0x41,0x58,0x56,0x00,0x07,0x00,0xD3,0x08,0x00,0x00,0xE6,0x00,
0x49,0x43,0x4F,0x4E,0x49,0x41,0x4E,0x00,0x09,0x00,0xC2,0x08,0x00,0x00,0xE6,0x00,
0x4D,0x41,0x49,0x4E,0x41,0x43,0x54,0x4F,0x52,0x00,0x03,0x00,0xDF,0x08,0x00,0x00,
0xE7,0x00,0x4A,0x49,0x56,0x00,0x09,0x00,0xE9,0x08,0x00,0x00,0xE7,0x00,0x53,0x55,
0x50,0x45,0x52,0x56,0x49,0x45,0x57,0x00,0x07,0x00,0xE4,0x08,0x00,0x00,0xE7,0x00,
0x53,0x56,0x4F,0x4A,0x50,0x45,0x47,0x00,0x07,0x00,0xDE,0x08,0x00,0x00,0xE7,0x00,
0x56,0x49,0x45,0x57,0x54,0x45,0x4B,0x00,0x06,0x00,0xE0,0x05,0x00,0x00,0xE8,0x00,
0x44,0x53,0x4F,0x55,0x4E,0x44,0x0B,0x00,0xDC,0x05,0x00,0x00,0xE8,0x00,0x48,0x49,
0x50,0x50,0x4F,0x50,0x4C,0x41,0x59,0x45,0x52,0x00,0x0B,0x00,0xD7,0x05,0x00,0x00,
0xE8,0x00,0x4D,0x55,0x4C,0x54,0x49,0x50,0x4C,0x41,0x59,0x45,0x52,0x00,0x06,0x00,
0xE1,0x05,0x00,0x00,0xE8,0x00,0x50,0x4C,0x41,0x59,0x31,0x36,0x0B,0x00,0xCD,0x05,
0x00,0x00,0xE8,0x00,0x50,0x4F,0x57,0x45,0x52,0x50,0x4C,0x41,0x59,0x45,0x52,0x00,
0x03,0x00,0xE6,0x05,0x00,0x00,0xE9,0x00,0x52,0x43,0x53,0x00,0x0C,0x00,0xE8,0x05,
0x00,0x00,0xEA,0x00,0x41,0x43,0x43,0x45,0x4C,0x45,0x52,0x41,0x54,0x4F,0x52,0x53,
0x05,0x00,0xEA,0x05,0x00,0x00,0xEA,0x00,0x41,0x55,0x44,0x49,0x4F,0x00,0x05,0x00,
0xFD,0x05,0x00,0x00,0xEA,0x00,0x43,0x41,0x53,0x45,0x53,0x00,0x06,0x00,0xEB,0x05,
0x00,0x00,0xEA,0x00,0x43,0x44,0x2D,0x52,0x4F,0x4D,0x09,0x00,0xEC,0x05,0x00,0x00,
0xEA,0x00,0x43,0x4F,0x4D,0x50,0x55,0x54,0x45,0x52,0x53,0x00,0x07,0x00,0xEE,0x05,
0x00,0x00,0xEA,0x00,0x43,0x4F,0x50,0x49,0x45,0x52,0x53,0x00,0x08,0x00,0xEF,0x05,
0x00,0x00,0xEA,0x00,0x44,0x41,0x54,0x41,0x43,0x4F,0x4D,0x4D,0x05,0x00,0xF0,0x05,
0x00,0x00,0xEA,0x00,0x44,0x45,0x42,0x55,0x47,0x00,0x09,0x00,0xF1,0x05,0x00,0x00,
0xEA,0x00,0x45,0x4D,0x55,0x4C,0x41,0x54,0x49,0x4F,0x4E,0x00,0x08,0x00,0xF2,0x05,
0x00,0x00,0xEA,0x00,0x47,0x52,0x41,0x50,0x48,0x49,0x43,0x53,0x03,0x00,0xF3,0x05,
0x00,0x00,0xEA,0x00,0x49,0x44,0x45,0x00,0x0D,0x00,0xF4,0x05,0x00,0x00,0xEA,0x00,
0x49,0x4E,0x50,0x55,0x54,0x2D,0x44,0x45,0x56,0x49,0x43,0x45,0x53,0x00,0x06,0x00,
0xF5,0x05,0x00,0x00,0xEA,0x00,0x4D,0x45,0x4D,0x4F,0x52,0x59,0x06,0x00,0xED,0x05,
0x00,0x00,0xEA,0x00,0x4D,0x4F,0x44,0x45,0x4D,0x53,0x08,0x00,0xF6,0x05,0x00,0x00,
0xEA,0x00,0x4D,0x4F,0x4E,0x49,0x54,0x4F,0x52,0x53,0x05,0x00,0xF7,0x05,0x00,0x00,
0xEA,0x00,0x50,0x4F,0x52,0x54,0x53,0x00,0x05,0x00,0xF8,0x05,0x00,0x00,0xEA,0x00,
0x50,0x4F,0x57,0x45,0x52,0x00,0x08,0x00,0xF9,0x05,0x00,0x00,0xEA,0x00,0x50,0x52,
0x4F,0x4A,0x45,0x43,0x54,0x53,0x0D,0x00,0xFA,0x05,0x00,0x00,0xEA,0x00,0x52,0x4F,
0x4D,0x2D,0x53,0x57,0x49,0x54,0x43,0x48,0x45,0x52,0x53,0x00,0x04,0x00,0xFB,0x05,
0x00,0x00,0xEA,0x00,0x53,0x43,0x53,0x49,0x07,0x00,0xFC,0x05,0x00,0x00,0xEA,0x00,
0x53,0x54,0x4F,0x52,0x41,0x47,0x45,0x00,0x0B,0x00,0xFF,0x05,0x00,0x00,0xEB,0x00,
0x41,0x50,0x52,0x49,0x4C,0x2D,0x46,0x4F,0x4F,0x4C,0x53,0x00,0x05,0x00,0x00,0x06,
0x00,0x00,0xEB,0x00,0x42,0x4F,0x4F,0x4B,0x53,0x00,0x0B,0x00,0x04,0x06,0x00,0x00,
0xEB,0x00,0x43,0x4F,0x4E,0x46,0x45,0x52,0x45,0x4E,0x43,0x45,0x53,0x00,0x05,0x00,
0x05,0x06,0x00,0x00,0xEB,0x00,0x48,0x55,0x4D,0x4F,0x52,0x00,0x09,0x00,0x01,0x06,
0x00,0x00,0xEB,0x00,0x4D,0x41,0x47,0x41,0x5A,0x49,0x4E,0x45,0x53,0x00,0x05,0x00,
0x02,0x06,0x00,0x00,0xEB,0x00,0x53,0x48,0x4F,0x57,0x53,0x00,0x07,0x00,0x03,0x06,
0x00,0x00,0xEB,0x00,0x56,0x45,0x4E,0x44,0x4F,0x52,0x53,0x00,0x08,0x00,0x07,0x06,
0x00,0x00,0xEC,0x00,0x41,0x4D,0x49,0x47,0x41,0x44,0x4F,0x53,0x05,0x00,0x08,0x06,
0x00,0x00,0xEC,0x00,0x41,0x55,0x44,0x49,0x4F,0x00,0x08,0x00,0x09,0x06,0x00,0x00,
0xEC,0x00,0x42,0x55,0x53,0x49,0x4E,0x45,0x53,0x53,0x08,0x00,0x0A,0x06,0x00,0x00,
0xEC,0x00,0x43,0x41,0x4C,0x45,0x4E,0x44,0x41,0x52,0x06,0x00,0x0B,0x06,0x00,0x00,
0xEC,0x00,0x43,0x44,0x2D,0x52,0x4F,0x4D,0x08,0x00,0x0D,0x06,0x00,0x00,0xEC,0x00,
0x44,0x41,0x54,0x41,0x42,0x41,0x53,0x45,0x08,0x00,0x0E,0x06,0x00,0x00,0xEC,0x00,
0x44,0x41,0x54,0x41,0x43,0x4F,0x4D,0x4D,0x04,0x00,0x0F,0x06,0x00,0x00,0xEC,0x00,
0x44,0x49,0x53,0x4B,0x03,0x00,0x11,0x06,0x00,0x00,0xEC,0x00,0x47,0x41,0x47,0x00,
0x05,0x00,0x12,0x06,0x00,0x00,0xEC,0x00,0x47,0x41,0x4D,0x45,0x53,0x00,0x08,0x00,
0x18,0x06,0x00,0x00,0xEC,0x00,0x47,0x52,0x41,0x50,0x48,0x49,0x43,0x53,0x0A,0x00,
0x1B,0x06,0x00,0x00,0xEC,0x00,0x4D,0x55,0x4C,0x54,0x49,0x4D,0x45,0x44,0x49,0x41,
0x08,0x00,0x1C,0x06,0x00,0x00,0xEC,0x00,0x50,0x52,0x49,0x4E,0x54,0x49,0x4E,0x47,
0x0A,0x00,0x1D,0x06,0x00,0x00,0xEC,0x00,0x50,0x52,0x4F,0x47,0x52,0x41,0x4D,0x4D,
0x45,0x52,0x07,0x00,0x1F,0x06,0x00,0x00,0xEC,0x00,0x53,0x43,0x49,0x45,0x4E,0x43,
0x45,0x00,0x05,0x00,0x20,0x06,0x00,0x00,0xEC,0x00,0x53,0x48,0x45,0x4C,0x4C,0x00,
0x04,0x00,0x21,0x06,0x00,0x00,0xEC,0x00,0x54,0x45,0x58,0x54,0x04,0x00,0x24,0x06,
0x00,0x00,0xEC,0x00,0x55,0x4E,0x49,0x58,0x06,0x00,0x2B,0x06,0x00,0x00,0xEE,0x00,
0x43,0x4F,0x44,0x45,0x43,0x53,0x09,0x00,0x2A,0x06,0x00,0x00,0xEE,0x00,0x44,0x41,
0x54,0x41,0x54,0x59,0x50,0x45,0x53,0x00,0x09,0x00,0x2D,0x06,0x00,0x00,0xEF,0x00,
0x44,0x41,0x54,0x41,0x54,0x59,0x50,0x45,0x53,0x00,0x04,0x00,0x2F,0x06,0x00,0x00,
0xF0,0x00,0x42,0x4C,0x4F,0x42,0x04,0x00,0x30,0x06,0x00,0x00,0xF0,0x00,0x47,0x41,
0x4D,0x45,0x03,0x00,0x33,0x06,0x00,0x00,0xF0,0x00,0x47,0x46,0x58,0x00,0x03,0x00,
0x34,0x06,0x00,0x00,0xF0,0x00,0x49,0x42,0x4D,0x00,0x05,0x00,0x31,0x06,0x00,0x00,
0xF0,0x00,0x4A,0x55,0x4E,0x4F,0x44,0x00,0x07,0x00,0x32,0x06,0x00,0x00,0xF0,0x00,
0x54,0x48,0x49,0x4E,0x50,0x41,0x5A,0x00,0x09,0x00,0x38,0x06,0x00,0x00,0xF2,0x00,
0x53,0x56,0x44,0x52,0x49,0x56,0x45,0x52,0x53,0x00,0x09,0x00,0x39,0x06,0x00,0x00,
0xF2,0x00,0x53,0x56,0x4F,0x42,0x4A,0x45,0x43,0x54,0x53,0x00,0x0B,0x00,0x3D,0x06,
0x00,0x00,0xF2,0x00,0x53,0x56,0x4F,0x50,0x45,0x52,0x41,0x54,0x4F,0x52,0x53,0x00,
0x03,0x00,0x3C,0x06,0x00,0x00,0xF2,0x00,0x58,0x46,0x44,0x00,0x08,0x00,0x3F,0x06,
0x00,0x00,0xF3,0x00,0x43,0x41,0x54,0x41,0x4C,0x4F,0x47,0x53,0x09,0x00,0x4C,0x06,
0x00,0x00,0xF3,0x00,0x43,0x4F,0x55,0x4E,0x54,0x52,0x49,0x45,0x53,0x00,0x04,0x00,
0x4D,0x06,0x00,0x00,0xF3,0x00,0x48,0x45,0x4C,0x50,0x09,0x00,0x4E,0x06,0x00,0x00,
0xF3,0x00,0x4C,0x41,0x4E,0x47,0x55,0x41,0x47,0x45,0x53,0x00,0x0C,0x00,0x4F,0x06,
0x00,0x00,0xF3,0x00,0x54,0x52,0x41,0x4E,0x53,0x4C,0x41,0x54,0x49,0x4F,0x4E,0x53,
0x09,0x00,0x55,0x06,0x00,0x00,0xF6,0x00,0x44,0x41,0x54,0x41,0x54,0x59,0x50,0x45,
0x53,0x00,0x06,0x00,0x41,0x09,0x00,0x00,0xF7,0x00,0x41,0x47,0x44,0x4F,0x43,0x53,
0x07,0x00,0x42,0x09,0x00,0x00,0xF7,0x00,0x41,0x47,0x50,0x52,0x45,0x46,0x53,0x00,
0x0A,0x00,0x40,0x09,0x00,0x00,0xF7,0x00,0x41,0x4D,0x49,0x47,0x41,0x47,0x55,0x49,
0x44,0x45,0x09,0x00,0x3F,0x09,0x00,0x00,0xF7,0x00,0x57,0x52,0x41,0x50,0x47,0x55,
0x49,0x44,0x45,0x00,0x04,0x00,0x51,0x09,0x00,0x00,0xF8,0x00,0x4C,0x45,0x53,0x53,
0x08,0x00,0x44,0x09,0x00,0x00,0xF8,0x00,0x4D,0x55,0x43,0x48,0x4D,0x4F,0x52,0x45,
0x03,0x00,0x9F,0x09,0x00,0x00,0xF9,0x00,0x44,0x4D,0x53,0x00,0x03,0x00,0x9D,0x09,
0x00,0x00,0xF9,0x00,0x4C,0x48,0x41,0x00,0x05,0x00,0x9B,0x09,0x00,0x00,0xF9,0x00,
0x4C,0x48,0x41,0x52,0x43,0x00,0x06,0x00,0x9C,0x09,0x00,0x00,0xF9,0x00,0x4C,0x48,
0x57,0x41,0x52,0x50,0x03,0x00,0xA0,0x09,0x00,0x00,0xF9,0x00,0x5A,0x4F,0x4F,0x00,
0x06,0x00,0x55,0x09,0x00,0x00,0xFA,0x00,0x41,0x52,0x51,0x52,0x45,0x51,0x09,0x00,
0xA4,0x09,0x00,0x00,0xFB,0x00,0x53,0x55,0x50,0x45,0x52,0x44,0x41,0x52,0x4B,0x00,
0x0A,0x00,0x4E,0x0A,0x00,0x00,0xFC,0x00,0x44,0x45,0x56,0x49,0x43,0x45,0x4C,0x4F,
0x43,0x4B,0x09,0x00,0x55,0x0A,0x00,0x00,0xFC,0x00,0x50,0x4F,0x57,0x45,0x52,0x53,
0x4E,0x41,0x50,0x00,0x05,0x00,0xAE,0x09,0x00,0x00,0xFD,0x00,0x57,0x42,0x52,0x55,
0x4E,0x00,0x06,0x00,0xAF,0x09,0x00,0x00,0xFD,0x00,0x57,0x48,0x41,0x54,0x49,0x53,
0x07,0x00,0x62,0x09,0x00,0x00,0xFE,0x00,0x41,0x49,0x46,0x46,0x5F,0x44,0x54,0x00,
0x09,0x00,0x7F,0x09,0x00,0x00,0xFE,0x00,0x42,0x49,0x4E,0x41,0x52,0x59,0x5F,0x44,
0x54,0x00,0x06,0x00,0x5C,0x09,0x00,0x00,0xFE,0x00,0x42,0x4D,0x50,0x5F,0x44,0x54,
0x04,0x00,0x8A,0x09,0x00,0x00,0xFE,0x00,0x43,0x5F,0x44,0x54,0x09,0x00,0x57,0x09,
0x00,0x00,0xFE,0x00,0x44,0x45,0x46,0x44,0x54,0x49,0x43,0x4F,0x4E,0x00,0x07,0x00,
0x64,0x09,0x00,0x00,0xFE,0x00,0x4A,0x46,0x49,0x46,0x5F,0x44,0x54,0x00,0x0C,0x00,
0x97,0x09,0x00,0x00,0xFE,0x00,0x4A,0x50,0x45,0x47,0x44,0x41,0x54,0x41,0x54,0x59,
0x50,0x45,0x09,0x00,0x74,0x09,0x00,0x00,0xFE,0x00,0x4D,0x41,0x43,0x53,0x4E,0x44,
0x5F,0x44,0x54,0x00,0x06,0x00,0x76,0x09,0x00,0x00,0xFE,0x00,0x4D,0x41,0x4E,0x5F,
0x44,0x54,0x0C,0x00,0x98,0x09,0x00,0x00,0xFE,0x00,0x5A,0x47,0x49,0x46,0x44,0x41,
0x54,0x41,0x54,0x59,0x50,0x45,0x02,0x00,0xC4,0x09,0x00,0x00,0xFF,0x00,0x4D,0x47,
0x03,0x00,0xB8,0x09,0x00,0x00,0xFF,0x00,0x56,0x49,0x4D,0x00,0x07,0x00,0xC8,0x09,
0x00,0x00,0x00,0x01,0x46,0x49,0x46,0x4F,0x4C,0x49,0x42,0x00,0x08,0x00,0xCD,0x09,
0x00,0x00,0x00,0x01,0x52,0x45,0x51,0x54,0x4F,0x4F,0x4C,0x53,0x0A,0x00,0x0D,0x0A,
0x00,0x00,0x01,0x01,0x41,0x4C,0x45,0x52,0x54,0x50,0x41,0x54,0x43,0x48,0x04,0x00,
0x15,0x0A,0x00,0x00,0x01,0x01,0x42,0x52,0x49,0x4B,0x06,0x00,0x16,0x0A,0x00,0x00,
0x01,0x01,0x42,0x53,0x50,0x4C,0x49,0x54,0x06,0x00,0x17,0x0A,0x00,0x00,0x01,0x01,
0x43,0x48,0x4B,0x53,0x55,0x4D,0x08,0x00,0x11,0x0A,0x00,0x00,0x01,0x01,0x44,0x45,
0x47,0x52,0x41,0x44,0x45,0x52,0x05,0x00,0x12,0x0A,0x00,0x00,0x01,0x01,0x46,0x4C,
0x55,0x53,0x48,0x00,0x09,0x00,0x13,0x0A,0x00,0x00,0x01,0x01,0x49,0x4E,0x53,0x54,
0x41,0x4C,0x4C,0x45,0x52,0x00,0x0B,0x00,0x14,0x0A,0x00,0x00,0x01,0x01,0x50,0x41,
0x4C,0x45,0x54,0x54,0x45,0x54,0x4F,0x4F,0x4C,0x00,0x08,0x00,0x0B,0x0A,0x00,0x00,
0x01,0x01,0x54,0x4F,0x4F,0x4C,0x54,0x59,0x50,0x45,0x04,0x00,0x18,0x0A,0x00,0x00,
0x01,0x01,0x54,0x52,0x55,0x45,0x03,0x00,0xF7,0x09,0x00,0x00,0x01,0x01,0x56,0x4D,
0x4D,0x00,0x04,0x00,0x2E,0x0A,0x00,0x00,0x02,0x01,0x41,0x49,0x42,0x42,0x04,0x00,
0x1B,0x0A,0x00,0x00,0x02,0x01,0x41,0x52,0x54,0x4D,0x09,0x00,0x1E,0x0A,0x00,0x00,
0x02,0x01,0x50,0x45,0x52,0x46,0x4D,0x45,0x54,0x45,0x52,0x00,0x04,0x00,0x21,0x0A,
0x00,0x00,0x02,0x01,0x52,0x53,0x59,0x53,0x08,0x00,0x2B,0x0A,0x00,0x00,0x02,0x01,
0x53,0x4E,0x4F,0x4F,0x50,0x44,0x4F,0x53,0x07,0x00,0x2D,0x0A,0x00,0x00,0x02,0x01,
0x53,0x59,0x53,0x49,0x4E,0x46,0x4F,0x00,0x05,0x00,0x1A,0x0A,0x00,0x00,0x02,0x01,
0x58,0x4F,0x50,0x45,0x52,0x00,0x06,0x00,0x30,0x0A,0x00,0x00,0x03,0x01,0x50,0x41,
0x43,0x4B,0x49,0x54,0x07,0x00,0x34,0x0A,0x00,0x00,0x04,0x01,0x48,0x49,0x53,0x54,
0x4F,0x52,0x59,0x00,0x0C,0x00,0x36,0x0A,0x00,0x00,0x05,0x01,0x56,0x49,0x52,0x55,
0x53,0x43,0x48,0x45,0x43,0x4B,0x45,0x52,0x08,0x00,0x3A,0x0A,0x00,0x00,0x05,0x01,
0x56,0x49,0x52,0x55,0x53,0x5A,0x49,0x49,0x02,0x00,0x3D,0x0A,0x00,0x00,0x05,0x01,
0x56,0x54,0x07,0x00,0x43,0x0A,0x00,0x00,0x06,0x01,0x44,0x45,0x46,0x54,0x5F,0x49,
0x49,0x00,0x04,0x00,0x42,0x0A,0x00,0x00,0x06,0x01,0x4C,0x45,0x4E,0x53,0x03,0x00,
0x72,0x0B,0x00,0x00,0x07,0x01,0x45,0x54,0x43,0x00,0x04,0x00,0x75,0x0B,0x00,0x00,
0x07,0x01,0x4C,0x49,0x53,0x50,0x05,0x00,0xB8,0x0B,0x00,0x00,0x0C,0x01,0x32,0x2E,
0x33,0x2E,0x33,0x00,0x05,0x00,0x8C,0x0B,0x00,0x00,0x0D,0x01,0x32,0x2E,0x36,0x2E,
0x33,0x00,0x05,0x00,0x9A,0x0B,0x00,0x00,0x0D,0x01,0x32,0x2E,0x37,0x2E,0x30,0x00,
0x08,0x00,0xC7,0x0B,0x00,0x00,0x12,0x01,0x44,0x45,0x56,0x41,0x53,0x43,0x49,0x49,
0x06,0x00,0xC8,0x0B,0x00,0x00,0x12,0x01,0x44,0x45,0x56,0x44,0x56,0x49,0x09,0x00,
0xCA,0x0B,0x00,0x00,0x12,0x01,0x44,0x45,0x56,0x4C,0x41,0x54,0x49,0x4E,0x31,0x00,
0x05,0x00,0xCB,0x0B,0x00,0x00,0x12,0x01,0x44,0x45,0x56,0x50,0x53,0x00,0x07,0x00,
0xC3,0x0B,0x00,0x00,0x12,0x01,0x44,0x45,0x56,0x58,0x31,0x30,0x30,0x00,0x0A,0x00,
0xC4,0x0B,0x00,0x00,0x12,0x01,0x44,0x45,0x56,0x58,0x31,0x30,0x30,0x2D,0x31,0x32,
0x06,0x00,0xC5,0x0B,0x00,0x00,0x12,0x01,0x44,0x45,0x56,0x58,0x37,0x35,0x09,0x00,
0xC6,0x0B,0x00,0x00,0x12,0x01,0x44,0x45,0x56,0x58,0x37,0x35,0x2D,0x31,0x32,0x00,
0x04,0x00,0xCE,0x0B,0x00,0x00,0x13,0x01,0x4D,0x44,0x4F,0x43,0x02,0x00,0xCF,0x0B,
0x00,0x00,0x13,0x01,0x4D,0x4D,0x06,0x00,0xD6,0x0B,0x00,0x00,0x14,0x01,0x4C,0x49,
0x42,0x38,0x38,0x31,0x07,0x00,0xD4,0x0B,0x00,0x00,0x14,0x01,0x4C,0x49,0x42,0x4D,
0x38,0x38,0x31,0x00,0x06,0x00,0xD8,0x0B,0x00,0x00,0x14,0x01,0x4C,0x49,0x42,0x4E,
0x49,0x58,0x06,0x00,0xF8,0x0B,0x00,0x00,0x16,0x01,0x4C,0x49,0x42,0x4E,0x49,0x58,
0x06,0x00,0xFB,0x0B,0x00,0x00,0x17,0x01,0x4C,0x49,0x42,0x4E,0x49,0x58,0x04,0x00,
0xEF,0x0B,0x00,0x00,0x19,0x01,0x45,0x58,0x45,0x43,0x08,0x00,0xF1,0x0B,0x00,0x00,
0x19,0x01,0x49,0x4D,0x41,0x47,0x45,0x4C,0x49,0x42,0x01,0x00,0xDD,0x0B,0x00,0x00,
0x19,0x01,0x4D,0x00,0x03,0x00,0xED,0x0B,0x00,0x00,0x19,0x01,0x4F,0x43,0x54,0x00,
0x01,0x00,0xF3,0x0B,0x00,0x00,0x1A,0x01,0x4D,0x00,0x03,0x00,0xF4,0x0B,0x00,0x00,
0x1A,0x01,0x4F,0x43,0x54,0x00,0x03,0x00,0x16,0x0C,0x00,0x00,0x1B,0x01,0x42,0x49,
0x42,0x00,0x03,0x00,0x15,0x0C,0x00,0x00,0x1B,0x01,0x42,0x53,0x54,0x00,0x06,0x00,
0x1D,0x0D,0x00,0x00,0x1C,0x01,0x42,0x49,0x42,0x54,0x45,0x58,0x06,0x00,0x1E,0x0D,
0x00,0x00,0x1C,0x01,0x45,0x50,0x4C,0x41,0x49,0x4E,0x08,0x00,0x1F,0x0D,0x00,0x00,
0x1C,0x01,0x46,0x4F,0x4E,0x54,0x4E,0x41,0x4D,0x45,0x07,0x00,0x20,0x0D,0x00,0x00,
0x1C,0x01,0x4C,0x41,0x54,0x45,0x58,0x32,0x45,0x00,0x05,0x00,0xC2,0x0C,0x00,0x00,
0x1E,0x01,0x41,0x44,0x4F,0x42,0x45,0x00,0x03,0x00,0xA0,0x0C,0x00,0x00,0x1E,0x01,
0x41,0x4D,0x53,0x00,0x02,0x00,0x60,0x0C,0x00,0x00,0x1E,0x01,0x42,0x48,0x09,0x00,
0xFA,0x0C,0x00,0x00,0x1E,0x01,0x42,0x49,0x54,0x53,0x54,0x52,0x45,0x41,0x4D,0x00,
0x02,0x00,0x27,0x0C,0x00,0x00,0x1E,0x01,0x43,0x47,0x08,0x00,0x18,0x0C,0x00,0x00,
0x1E,0x01,0x4D,0x4F,0x4E,0x4F,0x54,0x59,0x50,0x45,0x06,0x00,0x65,0x0C,0x00,0x00,
0x1E,0x01,0x50,0x55,0x42,0x4C,0x49,0x43,0x03,0x00,0x18,0x0D,0x00,0x00,0x1E,0x01,
0x54,0x4D,0x50,0x00,0x03,0x00,0x02,0x0D,0x00,0x00,0x1E,0x01,0x55,0x52,0x57,0x00,
0x03,0x00,0x09,0x0C,0x00,0x00,0x21,0x01,0x41,0x4D,0x53,0x00,0x07,0x00,0x08,0x0C,
0x00,0x00,0x21,0x01,0x47,0x45,0x4E,0x45,0x52,0x49,0x43,0x00,0x05,0x00,0x04,0x0C,
0x00,0x00,0x21,0x01,0x4C,0x41,0x54,0x45,0x58,0x00,0x08,0x00,0x06,0x0C,0x00,0x00,
0x21,0x01,0x4C,0x41,0x54,0x45,0x58,0x32,0x30,0x39,0x07,0x00,0x0F,0x0C,0x00,0x00,
0x21,0x01,0x4C,0x41,0x54,0x45,0x58,0x32,0x45,0x00,0x03,0x00,0x0C,0x0C,0x00,0x00,
0x21,0x01,0x4D,0x46,0x54,0x00,0x05,0x00,0x0A,0x0C,0x00,0x00,0x21,0x01,0x50,0x4C,
0x41,0x49,0x4E,0x00,0x07,0x00,0x0D,0x0C,0x00,0x00,0x21,0x01,0x54,0x45,0x58,0x44,
0x52,0x41,0x57,0x00,0x07,0x00,0x0E,0x0C,0x00,0x00,0x21,0x01,0x54,0x55,0x47,0x42,
0x4F,0x41,0x54,0x00,0x0B,0x00,0x5E,0x0D,0x00,0x00,0x23,0x01,0x4C,0x43,0x5F,0x4D,
0x45,0x53,0x53,0x41,0x47,0x45,0x53,0x00,0x0B,0x00,0x60,0x0D,0x00,0x00,0x24,0x01,
0x4C,0x43,0x5F,0x4D,0x45,0x53,0x53,0x41,0x47,0x45,0x53,0x00,0x0B,0x00,0x62,0x0D,
0x00,0x00,0x25,0x01,0x4C,0x43,0x5F,0x4D,0x45,0x53,0x53,0x41,0x47,0x45,0x53,0x00,
0x0B,0x00,0x64,0x0D,0x00,0x00,0x26,0x01,0x4C,0x43,0x5F,0x4D,0x45,0x53,0x53,0x41,
0x47,0x45,0x53,0x00,0x08,0x00,0x80,0x00,0x00,0x00,0x27,0x01,0x43,0x41,0x54,0x41,
0x4C,0x4F,0x47,0x53,0x04,0x00,0x83,0x00,0x00,0x00,0x27,0x01,0x44,0x4F,0x43,0x53,
0x07,0x00,0x84,0x00,0x00,0x00,0x27,0x01,0x45,0x58,0x41,0x4D,0x50,0x4C,0x45,0x00,
0x04,0x00,0xAC,0x00,0x00,0x00,0x28,0x01,0x44,0x41,0x54,0x41,0x08,0x00,0x8D,0x00,
0x00,0x00,0x29,0x01,0x43,0x41,0x54,0x41,0x4C,0x4F,0x47,0x53,0x04,0x00,0x97,0x00,
0x00,0x00,0x29,0x01,0x44,0x4F,0x43,0x53,0x08,0x00,0x98,0x00,0x00,0x00,0x29,0x01,
0x45,0x58,0x41,0x4D,0x50,0x4C,0x45,0x53,0x0B,0x00,0x9A,0x00,0x00,0x00,0x29,0x01,
0x54,0x52,0x41,0x4E,0x53,0x4C,0x41,0x54,0x4F,0x52,0x53,0x00,0x04,0x00,0x86,0x00,
0x00,0x00,0x2B,0x01,0x44,0x41,0x54,0x41,0x04,0x00,0x87,0x00,0x00,0x00,0x2B,0x01,
0x48,0x45,0x4C,0x50,0x04,0x00,0x88,0x00,0x00,0x00,0x2B,0x01,0x4C,0x49,0x42,0x53,
0x09,0x00,0x89,0x00,0x00,0x00,0x2B,0x01,0x4D,0x41,0x49,0x4C,0x4D,0x45,0x52,0x47,
0x45,0x00,0x09,0x00,0x8A,0x00,0x00,0x00,0x2B,0x01,0x55,0x54,0x49,0x4C,0x49,0x54,
0x49,0x45,0x53,0x00,0x0A,0x00,0x9C,0x00,0x00,0x00,0x2C,0x01,0x41,0x4D,0x49,0x47,
0x41,0x47,0x55,0x49,0x44,0x45,0x05,0x00,0xA0,0x00,0x00,0x00,0x2C,0x01,0x41,0x52,
0x45,0x58,0x58,0x00,0x01,0x00,0xA1,0x00,0x00,0x00,0x2C,0x01,0x43,0x00,0x04,0x00,
0xA2,0x00,0x00,0x00,0x2C,0x01,0x44,0x4F,0x43,0x53,0x08,0x00,0xA3,0x00,0x00,0x00,
0x2C,0x01,0x45,0x58,0x41,0x4D,0x50,0x4C,0x45,0x53,0x06,0x00,0xB7,0x00,0x00,0x00,
0x2E,0x01,0x43,0x4F,0x4E,0x46,0x49,0x47,0x05,0x00,0xB2,0x00,0x00,0x00,0x2E,0x01,
0x4C,0x4F,0x54,0x54,0x4F,0x00,0x06,0x00,0xB1,0x00,0x00,0x00,0x2E,0x01,0x4D,0x41,
0x4E,0x55,0x41,0x4C,0x09,0x00,0xAF,0x00,0x00,0x00,0x2E,0x01,0x50,0x45,0x52,0x4D,
0x5F,0x4C,0x49,0x53,0x54,0x00,0x0A,0x00,0xB9,0x00,0x00,0x00,0x2F,0x01,0x50,0x52,
0x4F,0x47,0x52,0x41,0x4D,0x4D,0x45,0x52,0x09,0x00,0xBA,0x00,0x00,0x00,0x2F,0x01,
0x54,0x55,0x52,0x42,0x4F,0x43,0x41,0x4C,0x43,0x00,0x09,0x00,0xC8,0x00,0x00,0x00,
0x30,0x01,0x45,0x4C,0x42,0x55,0x44,0x5F,0x30,0x30,0x31,0x00,0x05,0x00,0xC9,0x00,
0x00,0x00,0x30,0x01,0x49,0x43,0x4F,0x4E,0x53,0x00,0x08,0x00,0xD1,0x00,0x00,0x00,
0x31,0x01,0x43,0x41,0x54,0x41,0x4C,0x4F,0x47,0x53,0x06,0x00,0xD0,0x00,0x00,0x00,
0x31,0x01,0x43,0x4F,0x4E,0x46,0x49,0x47,0x0D,0x00,0xCF,0x00,0x00,0x00,0x31,0x01,
0x44,0x4F,0x43,0x55,0x4D,0x45,0x4E,0x54,0x41,0x54,0x49,0x4F,0x4E,0x00,0x06,0x00,
0xCE,0x00,0x00,0x00,0x31,0x01,0x45,0x58,0x54,0x52,0x41,0x53,0x04,0x00,0xCD,0x00,
0x00,0x00,0x31,0x01,0x4C,0x49,0x42,0x53,0x07,0x00,0xE8,0x00,0x00,0x00,0x32,0x01,
0x41,0x55,0x54,0x4F,0x44,0x4F,0x43,0x00,0x01,0x00,0xE7,0x00,0x00,0x00,0x32,0x01,
0x43,0x00,0x04,0x00,0xE5,0x00,0x00,0x00,0x32,0x01,0x44,0x45,0x56,0x53,0x04,0x00,
0xE2,0x00,0x00,0x00,0x32,0x01,0x44,0x4F,0x43,0x53,0x02,0x00,0xE1,0x00,0x00,0x00,
0x32,0x01,0x46,0x44,0x07,0x00,0xDF,0x00,0x00,0x00,0x32,0x01,0x49,0x4E,0x43,0x4C,
0x55,0x44,0x45,0x00,0x01,0x00,0xDE,0x00,0x00,0x00,0x32,0x01,0x4C,0x00,0x06,0x00,
0xD9,0x00,0x00,0x00,0x32,0x01,0x53,0x4F,0x55,0x52,0x43,0x45,0x04,0x00,0xEB,0x00,
0x00,0x00,0x33,0x01,0x52,0x45,0x58,0x58,0x03,0x00,0xEC,0x00,0x00,0x00,0x33,0x01,
0x53,0x52,0x43,0x00,0x03,0x00,0xEE,0x00,0x00,0x00,0x34,0x01,0x42,0x49,0x4E,0x00,
0x02,0x00,0xEF,0x00,0x00,0x00,0x34,0x01,0x44,0x42,0x04,0x00,0xF0,0x00,0x00,0x00,
0x34,0x01,0x48,0x45,0x4C,0x50,0x01,0x00,0xF1,0x00,0x00,0x00,0x34,0x01,0x53,0x00,
0x04,0x00,0xF2,0x00,0x00,0x00,0x34,0x01,0x53,0x45,0x52,0x56,0x06,0x00,0xF3,0x00,
0x00,0x00,0x34,0x01,0x53,0x4F,0x55,0x52,0x43,0x45,0x04,0x00,0xF6,0x00,0x00,0x00,
0x35,0x01,0x4C,0x49,0x42,0x53,0x08,0x00,0xF8,0x00,0x00,0x00,0x36,0x01,0x43,0x41,
0x54,0x41,0x4C,0x4F,0x47,0x53,0x06,0x00,0x00,0x01,0x00,0x00,0x36,0x01,0x43,0x4F,
0x4E,0x46,0x49,0x47,0x0D,0x00,0x01,0x01,0x00,0x00,0x36,0x01,0x44,0x4F,0x43,0x55,
0x4D,0x45,0x4E,0x54,0x41,0x54,0x49,0x4F,0x4E,0x00,0x06,0x00,0x0C,0x01,0x00,0x00,
0x36,0x01,0x45,0x58,0x54,0x52,0x41,0x53,0x05,0x00,0x08,0x01,0x00,0x00,0x36,0x01,
0x46,0x4F,0x4E,0x54,0x53,0x00,0x04,0x00,0x0B,0x01,0x00,0x00,0x36,0x01,0x4C,0x49,
0x42,0x53,0x03,0x00,0x2F,0x01,0x00,0x00,0x3A,0x01,0x42,0x49,0x4E,0x00,0x02,0x00,
0x24,0x01,0x00,0x00,0x3A,0x01,0x43,0x43,0x04,0x00,0x25,0x01,0x00,0x00,0x3A,0x01,
0x44,0x4C,0x49,0x42,0x03,0x00,0x26,0x01,0x00,0x00,0x3A,0x01,0x44,0x4F,0x43,0x00,
0x08,0x00,0x27,0x01,0x00,0x00,0x3A,0x01,0x45,0x58,0x41,0x4D,0x50,0x4C,0x45,0x53,
0x07,0x00,0x28,0x01,0x00,0x00,0x3A,0x01,0x49,0x4E,0x43,0x4C,0x55,0x44,0x45,0x00,
0x01,0x00,0x2E,0x01,0x00,0x00,0x3A,0x01,0x53,0x00,0x03,0x00,0x34,0x01,0x00,0x00,
0x3C,0x01,0x42,0x49,0x4E,0x00,0x04,0x00,0x35,0x01,0x00,0x00,0x3C,0x01,0x44,0x4F,
0x43,0x53,0x05,0x00,0x36,0x01,0x00,0x00,0x3C,0x01,0x46,0x4F,0x4E,0x54,0x53,0x00,
0x07,0x00,0x9C,0x01,0x00,0x00,0x3C,0x01,0x4D,0x4F,0x44,0x55,0x4C,0x45,0x53,0x00,
0x0A,0x00,0xB2,0x01,0x00,0x00,0x3C,0x01,0x4D,0x4F,0x44,0x55,0x4C,0x45,0x53,0x53,
0x52,0x43,0x05,0x00,0x3B,0x01,0x00,0x00,0x3C,0x01,0x50,0x44,0x53,0x52,0x43,0x00,
0x04,0x00,0x48,0x01,0x00,0x00,0x3C,0x01,0x52,0x45,0x58,0x58,0x07,0x00,0x49,0x01,
0x00,0x00,0x3C,0x01,0x52,0x4B,0x52,0x4D,0x53,0x52,0x43,0x00,0x03,0x00,0x6E,0x01,
0x00,0x00,0x3C,0x01,0x53,0x52,0x43,0x00,0x05,0x00,0x65,0x01,0x00,0x00,0x3C,0x01,
0x54,0x4F,0x4F,0x4C,0x53,0x00,0x01,0x00,0xF9,0x01,0x00,0x00,0x3D,0x01,0x43,0x00,
0x04,0x00,0xF4,0x01,0x00,0x00,0x3D,0x01,0x44,0x41,0x54,0x41,0x05,0x00,0xF5,0x01,
0x00,0x00,0x3D,0x01,0x44,0x45,0x4D,0x4F,0x53,0x00,0x03,0x00,0xF8,0x01,0x00,0x00,
0x3D,0x01,0x44,0x4F,0x43,0x00,0x08,0x00,0xE6,0x01,0x00,0x00,0x3E,0x01,0x43,0x41,
0x54,0x41,0x4C,0x4F,0x47,0x53,0x05,0x00,0xEB,0x01,0x00,0x00,0x3E,0x01,0x44,0x45,
0x4D,0x4F,0x53,0x00,0x09,0x00,0xC4,0x01,0x00,0x00,0x3E,0x01,0x44,0x45,0x56,0x45,
0x4C,0x4F,0x50,0x45,0x52,0x00,0x04,0x00,0xEC,0x01,0x00,0x00,0x3E,0x01,0x44,0x4F,
0x43,0x53,0x05,0x00,0xED,0x01,0x00,0x00,0x3E,0x01,0x49,0x43,0x4F,0x4E,0x53,0x00,
0x07,0x00,0xEE,0x01,0x00,0x00,0x3E,0x01,0x49,0x4E,0x53,0x54,0x41,0x4C,0x4C,0x00,
0x06,0x00,0xF0,0x01,0x00,0x00,0x3E,0x01,0x4C,0x49,0x42,0x53,0x33,0x37,0x06,0x00,
0xF1,0x01,0x00,0x00,0x3E,0x01,0x4C,0x49,0x42,0x53,0x33,0x39,0x05,0x00,0xF2,0x01,
0x00,0x00,0x3E,0x01,0x50,0x52,0x45,0x46,0x53,0x00,0x06,0x00,0x06,0x02,0x00,0x00,
0x3F,0x01,0x4C,0x41,0x4D,0x42,0x44,0x41,0x03,0x00,0x04,0x02,0x00,0x00,0x40,0x01,
0x42,0x49,0x4E,0x00,0x03,0x00,0xFC,0x01,0x00,0x00,0x40,0x01,0x44,0x4F,0x43,0x00,
0x03,0x00,0xFD,0x01,0x00,0x00,0x40,0x01,0x53,0x52,0x43,0x00,0x04,0x00,0xFF,0x01,
0x00,0x00,0x40,0x01,0x54,0x45,0x53,0x54,0x05,0x00,0x16,0x02,0x00,0x00,0x42,0x01,
0x41,0x52,0x45,0x58,0x58,0x00,0x03,0x00,0x15,0x02,0x00,0x00,0x42,0x01,0x42,0x49,
0x4E,0x00,0x06,0x00,0x14,0x02,0x00,0x00,0x42,0x01,0x43,0x4F,0x4E,0x46,0x49,0x47,
0x04,0x00,0x13,0x02,0x00,0x00,0x42,0x01,0x4C,0x49,0x42,0x53,0x06,0x00,0x0F,0x02,
0x00,0x00,0x43,0x01,0x41,0x44,0x44,0x4C,0x49,0x42,0x03,0x00,0x0D,0x02,0x00,0x00,
0x43,0x01,0x42,0x49,0x4E,0x00,0x03,0x00,0x0E,0x02,0x00,0x00,0x43,0x01,0x4D,0x41,
0x4E,0x00,0x03,0x00,0x10,0x02,0x00,0x00,0x43,0x01,0x53,0x52,0x43,0x00,0x0D,0x00,
0x51,0x02,0x00,0x00,0x46,0x01,0x43,0x4F,0x4E,0x46,0x49,0x47,0x55,0x52,0x41,0x54,
0x49,0x4F,0x4E,0x00,0x04,0x00,0x52,0x02,0x00,0x00,0x46,0x01,0x44,0x41,0x54,0x41,
0x05,0x00,0x53,0x02,0x00,0x00,0x46,0x01,0x44,0x45,0x4D,0x4F,0x53,0x00,0x05,0x00,
0x54,0x02,0x00,0x00,0x46,0x01,0x46,0x4F,0x4E,0x54,0x53,0x00,0x06,0x00,0x56,0x02,
0x00,0x00,0x46,0x01,0x4C,0x4F,0x41,0x44,0x45,0x52,0x10,0x00,0x4F,0x02,0x00,0x00,
0x46,0x01,0x50,0x52,0x4F,0x4A,0x45,0x43,0x54,0x4F,0x42,0x45,0x52,0x4F,0x4E,0x53,
0x52,0x43,0x06,0x00,0x57,0x02,0x00,0x00,0x46,0x01,0x53,0x43,0x52,0x49,0x50,0x54,
0x06,0x00,0x58,0x02,0x00,0x00,0x46,0x01,0x53,0x59,0x53,0x54,0x45,0x4D,0x04,0x00,
0x4D,0x02,0x00,0x00,0x46,0x01,0x54,0x45,0x58,0x54,0x04,0x00,0x4E,0x02,0x00,0x00,
0x46,0x01,0x54,0x4F,0x4F,0x4C,0x01,0x00,0x1B,0x02,0x00,0x00,0x47,0x01,0x43,0x00,
0x08,0x00,0x1D,0x02,0x00,0x00,0x47,0x01,0x43,0x41,0x54,0x41,0x4C,0x4F,0x47,0x53,
0x04,0x00,0x2B,0x02,0x00,0x00,0x47,0x01,0x44,0x4F,0x43,0x53,0x0B,0x00,0x25,0x02,
0x00,0x00,0x47,0x01,0x45,0x4E,0x56,0x2D,0x41,0x52,0x43,0x48,0x49,0x56,0x45,0x00,
0x08,0x00,0x2C,0x02,0x00,0x00,0x47,0x01,0x45,0x58,0x41,0x4D,0x50,0x4C,0x45,0x53,
0x07,0x00,0x20,0x02,0x00,0x00,0x47,0x01,0x49,0x4E,0x53,0x54,0x41,0x4C,0x4C,0x00,
0x04,0x00,0x21,0x02,0x00,0x00,0x47,0x01,0x4C,0x49,0x42,0x53,0x06,0x00,0x22,0x02,
0x00,0x00,0x47,0x01,0x4D,0x41,0x43,0x52,0x4F,0x53,0x04,0x00,0x23,0x02,0x00,0x00,
0x47,0x01,0x4F,0x4C,0x49,0x42,0x05,0x00,0x1C,0x02,0x00,0x00,0x47,0x01,0x50,0x52,
0x45,0x46,0x53,0x00,0x01,0x00,0x24,0x02,0x00,0x00,0x47,0x01,0x53,0x00,0x06,0x00,
0x37,0x02,0x00,0x00,0x47,0x01,0x53,0x4F,0x55,0x52,0x43,0x45,0x05,0x00,0x4B,0x02,
0x00,0x00,0x47,0x01,0x54,0x45,0x58,0x54,0x53,0x00,0x06,0x00,0x5D,0x02,0x00,0x00,
0x48,0x01,0x53,0x59,0x53,0x54,0x45,0x4D,0x03,0x00,0x61,0x02,0x00,0x00,0x49,0x01,
0x43,0x44,0x53,0x00,0x0B,0x00,0x62,0x02,0x00,0x00,0x49,0x01,0x54,0x4F,0x4F,0x4C,
0x4D,0x41,0x4E,0x41,0x47,0x45,0x52,0x00,0x01,0x00,0x65,0x02,0x00,0x00,0x4A,0x01,
0x4C,0x00,0x06,0x00,0x6C,0x02,0x00,0x00,0x4B,0x01,0x53,0x4F,0x55,0x52,0x43,0x45,
0x02,0x00,0x68,0x02,0x00,0x00,0x4E,0x01,0x44,0x4B,0x07,0x00,0x67,0x02,0x00,0x00,
0x4E,0x01,0x53,0x43,0x52,0x49,0x50,0x54,0x53,0x00,0x06,0x00,0x6F,0x02,0x00,0x00,
0x4F,0x01,0x4C,0x4F,0x43,0x41,0x4C,0x45,0x08,0x00,0x78,0x02,0x00,0x00,0x52,0x01,
0x43,0x41,0x54,0x41,0x4C,0x4F,0x47,0x53,0x03,0x00,0x7A,0x02,0x00,0x00,0x52,0x01,
0x44,0x4F,0x43,0x00,0x04,0x00,0x7B,0x02,0x00,0x00,0x52,0x01,0x52,0x45,0x58,0x58,
0x01,0x00,0x7C,0x02,0x00,0x00,0x52,0x01,0x53,0x00,0x03,0x00,0x7D,0x02,0x00,0x00,
0x52,0x01,0x53,0x52,0x43,0x00,0x14,0x00,0x8C,0x02,0x00,0x00,0x53,0x01,0x43,0x41,
0x54,0x41,0x4C,0x4F,0x47,0x2D,0x54,0x52,0x41,0x4E,0x53,0x4C,0x41,0x54,0x49,0x4F,
0x4E,0x53,0x08,0x00,0x87,0x02,0x00,0x00,0x53,0x01,0x43,0x41,0x54,0x41,0x4C,0x4F,
0x47,0x53,0x0A,0x00,0x84,0x02,0x00,0x00,0x53,0x01,0x43,0x48,0x45,0x43,0x4B,0x4D,
0x41,0x54,0x45,0x53,0x07,0x00,0x83,0x02,0x00,0x00,0x53,0x01,0x43,0x4F,0x4E,0x46,
0x49,0x47,0x53,0x00,0x05,0x00,0x82,0x02,0x00,0x00,0x53,0x01,0x47,0x41,0x4D,0x45,
0x53,0x00,0x05,0x00,0x81,0x02,0x00,0x00,0x53,0x01,0x49,0x43,0x4F,0x4E,0x53,0x00,
0x0F,0x00,0x80,0x02,0x00,0x00,0x53,0x01,0x52,0x45,0x51,0x54,0x4F,0x4F,0x4C,0x53,
0x4C,0x49,0x42,0x52,0x41,0x52,0x59,0x00,0x04,0x00,0x7F,0x02,0x00,0x00,0x53,0x01,
0x54,0x45,0x58,0x54,0x06,0x00,0xA5,0x02,0x00,0x00,0x54,0x01,0x41,0x44,0x56,0x45,
0x52,0x54,0x08,0x00,0xA6,0x02,0x00,0x00,0x54,0x01,0x41,0x4D,0x49,0x49,0x43,0x4F,
0x4E,0x53,0x04,0x00,0x91,0x02,0x00,0x00,0x54,0x01,0x44,0x41,0x54,0x41,0x05,0x00,
0xA3,0x02,0x00,0x00,0x54,0x01,0x44,0x55,0x4D,0x50,0x53,0x00,0x05,0x00,0x8F,0x02,
0x00,0x00,0x54,0x01,0x46,0x4F,0x54,0x4F,0x53,0x00,0x07,0x00,0xA4,0x02,0x00,0x00,
0x54,0x01,0x4D,0x49,0x53,0x53,0x49,0x4F,0x4E,0x00,0x03,0x00,0xA7,0x02,0x00,0x00,
0x54,0x01,0x50,0x44,0x52,0x00,0x03,0x00,0x93,0x02,0x00,0x00,0x54,0x01,0x50,0x49,
0x43,0x00,0x05,0x00,0xA8,0x02,0x00,0x00,0x54,0x01,0x54,0x41,0x42,0x4C,0x45,0x00,
0x04,0x00,0x96,0x02,0x00,0x00,0x54,0x01,0x54,0x45,0x58,0x54,0x04,0x00,0xE1,0x02,
0x00,0x00,0x55,0x01,0x44,0x41,0x54,0x41,0x04,0x00,0xE0,0x02,0x00,0x00,0x55,0x01,
0x4D,0x41,0x50,0x53,0x08,0x00,0xAD,0x02,0x00,0x00,0x56,0x01,0x44,0x45,0x53,0x43,
0x52,0x49,0x42,0x45,0x05,0x00,0xAF,0x02,0x00,0x00,0x56,0x01,0x49,0x43,0x4F,0x4E,
0x53,0x00,0x03,0x00,0xB2,0x02,0x00,0x00,0x56,0x01,0x4E,0x45,0x57,0x00,0x12,0x00,
0xB9,0x02,0x00,0x00,0x56,0x01,0x55,0x50,0x44,0x41,0x54,0x45,0x46,0x52,0x4F,0x4D,
0x56,0x31,0x2E,0x30,0x2D,0x31,0x2E,0x32,0x12,0x00,0xBB,0x02,0x00,0x00,0x56,0x01,
0x55,0x50,0x44,0x41,0x54,0x45,0x46,0x52,0x4F,0x4D,0x56,0x31,0x2E,0x30,0x2D,0x31,
0x2E,0x33,0x12,0x00,0xBE,0x02,0x00,0x00,0x56,0x01,0x55,0x50,0x44,0x41,0x54,0x45,
0x46,0x52,0x4F,0x4D,0x56,0x31,0x2E,0x30,0x2D,0x31,0x2E,0x35,0x12,0x00,0xC0,0x02,
0x00,0x00,0x56,0x01,0x55,0x50,0x44,0x41,0x54,0x45,0x46,0x52,0x4F,0x4D,0x56,0x31,
0x2E,0x30,0x2D,0x31,0x2E,0x36,0x12,0x00,0xC5,0x02,0x00,0x00,0x56,0x01,0x55,0x50,
0x44,0x41,0x54,0x45,0x46,0x52,0x4F,0x4D,0x56,0x31,0x2E,0x30,0x2D,0x31,0x2E,0x37,
0x12,0x00,0xC7,0x02,0x00,0x00,0x56,0x01,0x55,0x50,0x44,0x41,0x54,0x45,0x46,0x52,
0x4F,0x4D,0x56,0x31,0x2E,0x30,0x2D,0x31,0x2E,0x38,0x12,0x00,0xC9,0x02,0x00,0x00,
0x56,0x01,0x55,0x50,0x44,0x41,0x54,0x45,0x46,0x52,0x4F,0x4D,0x56,0x31,0x2E,0x30,
0x2D,0x32,0x2E,0x30,0x05,0x00,0xCC,0x02,0x00,0x00,0x57,0x01,0x49,0x43,0x4F,0x4E,
0x53,0x00,0x03,0x00,0xCF,0x02,0x00,0x00,0x57,0x01,0x4E,0x45,0x57,0x00,0x12,0x00,
0xD3,0x02,0x00,0x00,0x57,0x01,0x55,0x50,0x44,0x41,0x54,0x45,0x46,0x52,0x4F,0x4D,
0x56,0x31,0x2E,0x30,0x2D,0x31,0x2E,0x33,0x05,0x00,0xD6,0x02,0x00,0x00,0x58,0x01,
0x49,0x43,0x4F,0x4E,0x53,0x00,0x03,0x00,0xD9,0x02,0x00,0x00,0x58,0x01,0x4E,0x45,
0x57,0x00,0x05,0x00,0xDB,0x02,0x00,0x00,0x59,0x01,0x49,0x43,0x4F,0x4E,0x53,0x00,
0x03,0x00,0xDE,0x02,0x00,0x00,0x59,0x01,0x4E,0x45,0x57,0x00,0x0A,0x00,0xAB,0x02,
0x00,0x00,0x5A,0x01,0x48,0x48,0x53,0x44,0x49,0x47,0x49,0x54,0x41,0x4C,0x10,0x00,
0xE5,0x02,0x00,0x00,0x5B,0x01,0x52,0x41,0x57,0x5F,0x4F,0x55,0x54,0x50,0x55,0x54,
0x5F,0x46,0x49,0x4C,0x45,0x53,0x04,0x00,0xE9,0x02,0x00,0x00,0x5F,0x01,0x4C,0x49,
0x42,0x53,0x08,0x00,0xEE,0x02,0x00,0x00,0x60,0x01,0x43,0x41,0x54,0x41,0x4C,0x4F,
0x47,0x53,0x04,0x00,0xF3,0x02,0x00,0x00,0x60,0x01,0x44,0x4F,0x43,0x53,0x07,0x00,
0xF4,0x02,0x00,0x00,0x60,0x01,0x49,0x4E,0x53,0x54,0x41,0x4C,0x4C,0x00,0x04,0x00,
0xF5,0x02,0x00,0x00,0x60,0x01,0x4D,0x49,0x53,0x43,0x01,0x00,0xF8,0x02,0x00,0x00,
0x61,0x01,0x53,0x00,0x04,0x00,0x01,0x03,0x00,0x00,0x65,0x01,0x52,0x45,0x58,0x58,
0x04,0x00,0x07,0x03,0x00,0x00,0x67,0x01,0x44,0x4F,0x43,0x53,0x04,0x00,0x05,0x03,
0x00,0x00,0x67,0x01,0x4C,0x49,0x42,0x53,0x05,0x00,0x06,0x03,0x00,0x00,0x67,0x01,
0x4F,0x54,0x48,0x45,0x52,0x00,0x04,0x00,0x1A,0x03,0x00,0x00,0x68,0x01,0x44,0x4F,
0x43,0x53,0x05,0x00,0x18,0x03,0x00,0x00,0x68,0x01,0x53,0x48,0x4F,0x57,0x53,0x00,
0x05,0x00,0x15,0x03,0x00,0x00,0x6A,0x01,0x41,0x4E,0x49,0x4D,0x53,0x00,0x07,0x00,
0x14,0x03,0x00,0x00,0x6A,0x01,0x42,0x52,0x55,0x53,0x48,0x45,0x53,0x00,0x08,0x00,
0x12,0x03,0x00,0x00,0x6A,0x01,0x43,0x41,0x54,0x41,0x4C,0x4F,0x47,0x53,0x04,0x00,
0x11,0x03,0x00,0x00,0x6A,0x01,0x44,0x4F,0x43,0x53,0x05,0x00,0x0E,0x03,0x00,0x00,
0x6A,0x01,0x46,0x4F,0x4E,0x54,0x53,0x00,0x05,0x00,0x0B,0x03,0x00,0x00,0x6A,0x01,
0x49,0x43,0x4F,0x4E,0x53,0x00,0x07,0x00,0x0A,0x03,0x00,0x00,0x6A,0x01,0x53,0x43,
0x52,0x49,0x50,0x54,0x53,0x00,0x08,0x00,0x21,0x03,0x00,0x00,0x6B,0x01,0x43,0x41,
0x54,0x41,0x4C,0x4F,0x47,0x53,0x06,0x00,0x1F,0x03,0x00,0x00,0x6C,0x01,0x53,0x4F,
0x55,0x52,0x43,0x45,0x08,0x00,0x78,0x03,0x00,0x00,0x6D,0x01,0x4A,0x50,0x45,0x47,
0x5F,0x43,0x44,0x43,0x0D,0x00,0x26,0x03,0x00,0x00,0x70,0x01,0x41,0x52,0x45,0x58,
0x58,0x2D,0x53,0x43,0x52,0x49,0x50,0x54,0x53,0x00,0x05,0x00,0x27,0x03,0x00,0x00,
0x70,0x01,0x42,0x4F,0x4E,0x55,0x53,0x00,0x04,0x00,0x29,0x03,0x00,0x00,0x70,0x01,
0x48,0x45,0x4C,0x50,0x06,0x00,0x2C,0x03,0x00,0x00,0x70,0x01,0x4C,0x4F,0x43,0x41,
0x4C,0x45,0x10,0x00,0x34,0x03,0x00,0x00,0x70,0x01,0x53,0x55,0x50,0x45,0x52,0x56,
0x49,0x45,0x57,0x4C,0x49,0x42,0x52,0x41,0x52,0x59,0x03,0x00,0x7E,0x03,0x00,0x00,
0x71,0x01,0x58,0x31,0x31,0x00,0x08,0x00,0x9D,0x03,0x00,0x00,0x72,0x01,0x43,0x41,
0x54,0x41,0x4C,0x4F,0x47,0x53,0x09,0x00,0x9C,0x03,0x00,0x00,0x72,0x01,0x44,0x4F,
0x43,0x55,0x4D,0x45,0x4E,0x54,0x53,0x00,0x02,0x00,0x9B,0x03,0x00,0x00,0x72,0x01,
0x47,0x43,0x05,0x00,0x9A,0x03,0x00,0x00,0x72,0x01,0x49,0x43,0x4F,0x4E,0x53,0x00,
0x04,0x00,0x99,0x03,0x00,0x00,0x72,0x01,0x4C,0x49,0x42,0x53,0x05,0x00,0xA0,0x03,
0x00,0x00,0x74,0x01,0x46,0x4F,0x4E,0x54,0x53,0x00,0x06,0x00,0xA5,0x03,0x00,0x00,
0x74,0x01,0x53,0x4F,0x55,0x52,0x43,0x45,0x04,0x00,0xA8,0x03,0x00,0x00,0x76,0x01,
0x44,0x4F,0x43,0x53,0x08,0x00,0xB7,0x03,0x00,0x00,0x77,0x01,0x43,0x41,0x54,0x41,
0x4C,0x4F,0x47,0x53,0x05,0x00,0xAC,0x03,0x00,0x00,0x77,0x01,0x46,0x4F,0x4E,0x54,
0x53,0x00,0x06,0x00,0xBB,0x03,0x00,0x00,0x77,0x01,0x49,0x4D,0x41,0x47,0x45,0x53,
0x0C,0x00,0xBC,0x03,0x00,0x00,0x77,0x01,0x49,0x4E,0x53,0x54,0x41,0x4C,0x4C,0x41,
0x54,0x49,0x4F,0x4E,0x04,0x00,0xBA,0x03,0x00,0x00,0x77,0x01,0x4C,0x49,0x42,0x53,
0x0A,0x00,0xAF,0x03,0x00,0x00,0x77,0x01,0x4D,0x47,0x57,0x42,0x20,0x49,0x43,0x4F,
0x4E,0x53,0x08,0x00,0xB1,0x03,0x00,0x00,0x77,0x01,0x50,0x41,0x4C,0x45,0x54,0x54,
0x45,0x53,0x04,0x00,0xB0,0x03,0x00,0x00,0x77,0x01,0x52,0x45,0x58,0x58,0x09,0x00,
0xAB,0x03,0x00,0x00,0x77,0x01,0x53,0x54,0x44,0x20,0x49,0x43,0x4F,0x4E,0x53,0x00,
0x01,0x00,0xC9,0x03,0x00,0x00,0x78,0x01,0x43,0x00,0x04,0x00,0xC8,0x03,0x00,0x00,
0x78,0x01,0x44,0x45,0x56,0x53,0x04,0x00,0xC7,0x03,0x00,0x00,0x78,0x01,0x44,0x4F,
0x43,0x53,0x04,0x00,0xC6,0x03,0x00,0x00,0x78,0x01,0x4C,0x49,0x42,0x53,0x04,0x00,
0xC5,0x03,0x00,0x00,0x78,0x01,0x4D,0x49,0x44,0x49,0x05,0x00,0xC2,0x03,0x00,0x00,
0x78,0x01,0x50,0x52,0x45,0x46,0x53,0x00,0x01,0x00,0xC1,0x03,0x00,0x00,0x78,0x01,
0x53,0x00,0x09,0x00,0xC0,0x03,0x00,0x00,0x78,0x01,0x55,0x54,0x49,0x4C,0x49,0x54,
0x49,0x45,0x53,0x00,0x05,0x00,0xDF,0x03,0x00,0x00,0x80,0x01,0x49,0x43,0x4F,0x4E,
0x53,0x00,0x07,0x00,0xDE,0x03,0x00,0x00,0x80,0x01,0x50,0x41,0x4C,0x45,0x54,0x54,
0x45,0x00,0x05,0x00,0xDA,0x03,0x00,0x00,0x80,0x01,0x50,0x52,0x45,0x46,0x53,0x00,
0x01,0x00,0xD9,0x03,0x00,0x00,0x80,0x01,0x53,0x00,0x05,0x00,0xD8,0x03,0x00,0x00,
0x80,0x01,0x54,0x4F,0x4F,0x4C,0x53,0x00,0x09,0x00,0xD7,0x03,0x00,0x00,0x80,0x01,
0x57,0x42,0x53,0x54,0x41,0x52,0x54,0x55,0x50,0x00,0x0A,0x00,0xFA,0x03,0x00,0x00,
0x88,0x01,0x4D,0x41,0x4E,0x47,0x41,0x41,0x4E,0x49,0x4D,0x45,0x03,0x00,0x1C,0x04,
0x00,0x00,0xA4,0x01,0x42,0x49,0x4E,0x00,0x04,0x00,0x1E,0x04,0x00,0x00,0xA4,0x01,
0x44,0x41,0x54,0x41,0x05,0x00,0x17,0x04,0x00,0x00,0xA5,0x01,0x41,0x52,0x45,0x58,
0x58,0x00,0x05,0x00,0x18,0x04,0x00,0x00,0xA5,0x01,0x49,0x43,0x4F,0x4E,0x53,0x00,
0x07,0x00,0x19,0x04,0x00,0x00,0xA5,0x01,0x50,0x52,0x45,0x53,0x45,0x54,0x53,0x00,
0x06,0x00,0x1A,0x04,0x00,0x00,0xA5,0x01,0x53,0x4F,0x55,0x52,0x43,0x45,0x06,0x00,
0x64,0x04,0x00,0x00,0xA7,0x01,0x50,0x41,0x52,0x53,0x45,0x52,0x07,0x00,0x65,0x04,
0x00,0x00,0xA7,0x01,0x50,0x52,0x45,0x53,0x45,0x54,0x53,0x00,0x06,0x00,0x66,0x04,
0x00,0x00,0xA7,0x01,0x53,0x4F,0x55,0x52,0x43,0x45,0x06,0x00,0x69,0x04,0x00,0x00,
0xA8,0x01,0x50,0x41,0x52,0x53,0x45,0x52,0x07,0x00,0x6A,0x04,0x00,0x00,0xA8,0x01,
0x50,0x52,0x45,0x53,0x45,0x54,0x53,0x00,0x06,0x00,0x6B,0x04,0x00,0x00,0xA8,0x01,
0x53,0x4F,0x55,0x52,0x43,0x45,0x03,0x00,0x6E,0x04,0x00,0x00,0xA9,0x01,0x42,0x49,
0x4E,0x00,0x06,0x00,0x6F,0x04,0x00,0x00,0xA9,0x01,0x49,0x53,0x50,0x45,0x4C,0x4C,
0x06,0x00,0x80,0x04,0x00,0x00,0xA9,0x01,0x52,0x45,0x41,0x44,0x4D,0x45,0x07,0x00,
0x81,0x04,0x00,0x00,0xA9,0x01,0x53,0x50,0x45,0x4C,0x4C,0x49,0x54,0x00,0x05,0x00,
0x86,0x04,0x00,0x00,0xA9,0x01,0x57,0x4F,0x52,0x44,0x53,0x00,0x04,0x00,0x91,0x04,
0x00,0x00,0xAA,0x01,0x44,0x45,0x43,0x4F,0x08,0x00,0x97,0x04,0x00,0x00,0xAA,0x01,
0x50,0x49,0x43,0x54,0x55,0x52,0x45,0x53,0x09,0x00,0x99,0x04,0x00,0x00,0xAA,0x01,
0x53,0x41,0x4E,0x53,0x53,0x45,0x52,0x49,0x46,0x00,0x06,0x00,0x9E,0x04,0x00,0x00,
0xAA,0x01,0x53,0x43,0x52,0x49,0x50,0x54,0x05,0x00,0xA0,0x04,0x00,0x00,0xAA,0x01,
0x53,0x45,0x52,0x49,0x46,0x00,0x04,0x00,0x8B,0x04,0x00,0x00,0xAC,0x01,0x44,0x45,
0x56,0x53,0x03,0x00,0x8D,0x04,0x00,0x00,0xAC,0x01,0x45,0x4E,0x56,0x00,0x01,0x00,
0x8E,0x04,0x00,0x00,0xAC,0x01,0x4C,0x00,0x03,0x00,0xB4,0x04,0x00,0x00,0xAD,0x01,
0x44,0x4F,0x43,0x00,0x03,0x00,0xB3,0x04,0x00,0x00,0xAD,0x01,0x44,0x4F,0x4B,0x00,
0x03,0x00,0xB2,0x04,0x00,0x00,0xAD,0x01,0x4C,0x49,0x42,0x00,0x03,0x00,0xB1,0x04,
0x00,0x00,0xAD,0x01,0x50,0x52,0x47,0x00,0x03,0x00,0xB0,0x04,0x00,0x00,0xAD,0x01,
0x53,0x52,0x43,0x00,0x06,0x00,0xAB,0x04,0x00,0x00,0xB0,0x01,0x4C,0x49,0x42,0x53,
0x31,0x33,0x06,0x00,0xAC,0x04,0x00,0x00,0xB0,0x01,0x4C,0x49,0x42,0x53,0x32,0x30,
0x05,0x00,0xCB,0x04,0x00,0x00,0xB1,0x01,0x36,0x38,0x30,0x32,0x30,0x00,0x09,0x00,
0xCC,0x04,0x00,0x00,0xB1,0x01,0x36,0x38,0x30,0x32,0x30,0x2B,0x46,0x50,0x55,0x00,
0x09,0x00,0xCA,0x04,0x00,0x00,0xB1,0x01,0x36,0x38,0x30,0x34,0x30,0x2B,0x46,0x50,
0x55,0x00,0x07,0x00,0xC9,0x04,0x00,0x00,0xB1,0x01,0x44,0x45,0x55,0x54,0x53,0x43,
0x48,0x00,0x09,0x00,0xC7,0x04,0x00,0x00,0xB1,0x01,0x44,0x45,0x56,0x45,0x4C,0x4F,
0x50,0x45,0x52,0x00,0x07,0x00,0xC6,0x04,0x00,0x00,0xB1,0x01,0x45,0x4E,0x47,0x4C,
0x49,0x53,0x48,0x00,0x04,0x00,0xC5,0x04,0x00,0x00,0xB1,0x01,0x4C,0x49,0x42,0x53,
0x06,0x00,0xC1,0x04,0x00,0x00,0xB1,0x01,0x4C,0x4F,0x43,0x41,0x4C,0x45,0x07,0x00,
0xBC,0x04,0x00,0x00,0xB1,0x01,0x4D,0x41,0x47,0x49,0x43,0x57,0x42,0x00,0x07,0x00,
0xBB,0x04,0x00,0x00,0xB1,0x01,0x4D,0x4F,0x44,0x55,0x4C,0x45,0x53,0x00,0x03,0x00,
0xB8,0x04,0x00,0x00,0xB2,0x01,0x53,0x52,0x43,0x00,0x07,0x00,0xB7,0x04,0x00,0x00,
0xB2,0x01,0x53,0x54,0x52,0x49,0x4E,0x47,0x53,0x00,0x08,0x00,0xFB,0x04,0x00,0x00,
0xB3,0x01,0x43,0x41,0x54,0x41,0x4C,0x4F,0x47,0x53,0x05,0x00,0xFA,0x04,0x00,0x00,
0xB3,0x01,0x49,0x43,0x4F,0x4E,0x53,0x00,0x04,0x00,0xF9,0x04,0x00,0x00,0xB3,0x01,
0x4C,0x49,0x42,0x53,0x08,0x00,0xCF,0x04,0x00,0x00,0xB4,0x01,0x43,0x41,0x54,0x41,
0x4C,0x4F,0x47,0x53,0x09,0x00,0xD1,0x04,0x00,0x00,0xB4,0x01,0x51,0x55,0x45,0x4C,
0x4C,0x54,0x45,0x58,0x54,0x00,0x01,0x00,0xD2,0x04,0x00,0x00,0xB4,0x01,0x53,0x00,
0x08,0x00,0xE9,0x04,0x00,0x00,0xB5,0x01,0x43,0x41,0x54,0x41,0x4C,0x4F,0x47,0x53,
0x04,0x00,0xEC,0x04,0x00,0x00,0xB5,0x01,0x44,0x4F,0x43,0x53,0x01,0x00,0xF7,0x04,
0x00,0x00,0xB8,0x01,0x43,0x00,0x09,0x00,0xF4,0x04,0x00,0x00,0xB8,0x01,0x52,0x55,
0x4E,0x4C,0x49,0x53,0x54,0x33,0x49,0x00,0x01,0x00,0xF3,0x04,0x00,0x00,0xB8,0x01,
0x53,0x00,0x03,0x00,0xF2,0x04,0x00,0x00,0xB8,0x01,0x53,0x52,0x43,0x00,0x09,0x00,
0xF1,0x04,0x00,0x00,0xB8,0x01,0x57,0x42,0x53,0x54,0x41,0x52,0x54,0x55,0x50,0x00,
0x08,0x00,0xDF,0x04,0x00,0x00,0xBA,0x01,0x43,0x41,0x54,0x41,0x4C,0x4F,0x47,0x53,
0x04,0x00,0xDC,0x04,0x00,0x00,0xBA,0x01,0x44,0x4F,0x43,0x53,0x03,0x00,0xDB,0x04,
0x00,0x00,0xBA,0x01,0x45,0x4E,0x56,0x00,0x0C,0x00,0xDA,0x04,0x00,0x00,0xBA,0x01,
0x49,0x4E,0x53,0x54,0x41,0x4C,0x4C,0x41,0x54,0x49,0x4F,0x4E,0x04,0x00,0xD9,0x04,
0x00,0x00,0xBA,0x01,0x4C,0x49,0x42,0x53,0x07,0x00,0xD6,0x04,0x00,0x00,0xBA,0x01,
0x4D,0x41,0x47,0x49,0x43,0x57,0x42,0x00,0x05,0x00,0xD5,0x04,0x00,0x00,0xBA,0x01,
0x50,0x52,0x45,0x46,0x53,0x00,0x09,0x00,0xD4,0x04,0x00,0x00,0xBA,0x01,0x57,0x42,
0x53,0x54,0x41,0x52,0x54,0x55,0x50,0x00,0x04,0x00,0x1E,0x05,0x00,0x00,0xBC,0x01,
0x4C,0x49,0x42,0x53,0x07,0x00,0x04,0x05,0x00,0x00,0xBD,0x01,0x43,0x4C,0x41,0x53,
0x53,0x45,0x53,0x00,0x04,0x00,0x06,0x05,0x00,0x00,0xBD,0x01,0x44,0x45,0x56,0x53,
0x03,0x00,0x08,0x05,0x00,0x00,0xBD,0x01,0x44,0x4F,0x43,0x00,0x06,0x00,0x09,0x05,
0x00,0x00,0xBD,0x01,0x45,0x4E,0x56,0x41,0x52,0x43,0x04,0x00,0x0B,0x05,0x00,0x00,
0xBD,0x01,0x48,0x45,0x4C,0x50,0x04,0x00,0x0C,0x05,0x00,0x00,0xBD,0x01,0x4D,0x49,
0x53,0x43,0x06,0x00,0x0D,0x05,0x00,0x00,0xBD,0x01,0x53,0x4F,0x55,0x52,0x43,0x45,
0x04,0x00,0x0F,0x05,0x00,0x00,0xBD,0x01,0x54,0x45,0x53,0x54,0x04,0x00,0x13,0x05,
0x00,0x00,0xBE,0x01,0x44,0x45,0x56,0x53,0x04,0x00,0x15,0x05,0x00,0x00,0xBE,0x01,
0x4C,0x49,0x42,0x53,0x05,0x00,0x17,0x05,0x00,0x00,0xBE,0x01,0x50,0x52,0x45,0x46,
0x53,0x00,0x03,0x00,0x1B,0x05,0x00,0x00,0xBE,0x01,0x53,0x52,0x43,0x00,0x07,0x00,
0x11,0x05,0x00,0x00,0xBF,0x01,0x53,0x4F,0x55,0x52,0x43,0x45,0x53,0x00,0x09,0x00,
0x02,0x05,0x00,0x00,0xC0,0x01,0x44,0x41,0x54,0x41,0x54,0x59,0x50,0x45,0x53,0x00,
0x03,0x00,0x3A,0x05,0x00,0x00,0xC1,0x01,0x43,0x4C,0x49,0x00,0x03,0x00,0x43,0x05,
0x00,0x00,0xC1,0x01,0x44,0x4F,0x43,0x00,0x03,0x00,0x3C,0x05,0x00,0x00,0xC1,0x01,
0x4D,0x55,0x49,0x00,0x07,0x00,0x40,0x05,0x00,0x00,0xC1,0x01,0x4E,0x4F,0x4E,0x2D,
0x4D,0x55,0x49,0x00,0x04,0x00,0x23,0x05,0x00,0x00,0xC2,0x01,0x44,0x4F,0x43,0x53,
0x07,0x00,0x24,0x05,0x00,0x00,0xC2,0x01,0x4D,0x41,0x47,0x49,0x43,0x57,0x42,0x00,
0x08,0x00,0x27,0x05,0x00,0x00,0xC3,0x01,0x43,0x41,0x54,0x41,0x4C,0x4F,0x47,0x53,
0x08,0x00,0x2F,0x05,0x00,0x00,0xC3,0x01,0x43,0x4F,0x44,0x45,0x53,0x45,0x54,0x53,
0x08,0x00,0x30,0x05,0x00,0x00,0xC3,0x01,0x45,0x58,0x41,0x4D,0x50,0x4C,0x45,0x53,
0x08,0x00,0x31,0x05,0x00,0x00,0xC3,0x01,0x48,0x41,0x52,0x44,0x57,0x41,0x52,0x45,
0x07,0x00,0x32,0x05,0x00,0x00,0xC3,0x01,0x4D,0x41,0x47,0x49,0x43,0x57,0x42,0x00,
0x09,0x00,0x36,0x05,0x00,0x00,0xC3,0x01,0x52,0x45,0x58,0x58,0x45,0x56,0x45,0x4E,
0x54,0x00,0x06,0x00,0x38,0x05,0x00,0x00,0xC6,0x01,0x53,0x4F,0x55,0x52,0x43,0x45,
0x08,0x00,0x4D,0x05,0x00,0x00,0xC7,0x01,0x43,0x41,0x54,0x41,0x4C,0x4F,0x47,0x53,
0x07,0x00,0x54,0x05,0x00,0x00,0xC7,0x01,0x43,0x4F,0x4E,0x54,0x52,0x49,0x42,0x00,
0x09,0x00,0x55,0x05,0x00,0x00,0xC7,0x01,0x44,0x45,0x56,0x45,0x4C,0x4F,0x50,0x45,
0x52,0x00,0x03,0x00,0x5A,0x05,0x00,0x00,0xC7,0x01,0x44,0x4F,0x43,0x00,0x03,0x00,
0x5B,0x05,0x00,0x00,0xC7,0x01,0x45,0x4E,0x56,0x00,0x0A,0x00,0x5C,0x05,0x00,0x00,
0xC7,0x01,0x49,0x4E,0x53,0x54,0x41,0x4C,0x4C,0x56,0x4D,0x4D,0x01,0x00,0x5D,0x05,
0x00,0x00,0xC7,0x01,0x4C,0x00,0x04,0x00,0x5E,0x05,0x00,0x00,0xC7,0x01,0x52,0x45,
0x58,0x58,0x05,0x00,0x5F,0x05,0x00,0x00,0xC7,0x01,0x54,0x4F,0x4F,0x4C,0x53,0x00,
0x08,0x00,0x4B,0x05,0x00,0x00,0xC8,0x01,0x43,0x4F,0x4D,0x4D,0x41,0x4E,0x44,0x53,
0x09,0x00,0x4A,0x05,0x00,0x00,0xC8,0x01,0x53,0x43,0x52,0x49,0x50,0x54,0x53,0x57,
0x4B,0x00,0x08,0x00,0x49,0x05,0x00,0x00,0xC8,0x01,0x57,0x4B,0x5F,0x49,0x43,0x4F,
0x4E,0x53,0x04,0x00,0x62,0x05,0x00,0x00,0xC9,0x01,0x44,0x4F,0x43,0x53,0x03,0x00,
0x65,0x05,0x00,0x00,0xC9,0x01,0x53,0x53,0x43,0x00,0x04,0x00,0x69,0x05,0x00,0x00,
0xCB,0x01,0x4C,0x49,0x42,0x53,0x06,0x00,0x6A,0x05,0x00,0x00,0xCB,0x01,0x4C,0x4F,
0x43,0x41,0x4C,0x45,0x01,0x00,0x79,0x05,0x00,0x00,0xCF,0x01,0x4C,0x00,0x04,0x00,
0x78,0x05,0x00,0x00,0xCF,0x01,0x4C,0x49,0x42,0x53,0x01,0x00,0x70,0x05,0x00,0x00,
0xD0,0x01,0x4C,0x00,0x04,0x00,0x71,0x05,0x00,0x00,0xD0,0x01,0x4C,0x49,0x42,0x53,
0x04,0x00,0x7B,0x05,0x00,0x00,0xD1,0x01,0x4C,0x49,0x42,0x53,0x0A,0x00,0x74,0x05,
0x00,0x00,0xD2,0x01,0x53,0x54,0x4F,0x52,0x41,0x47,0x45,0x5F,0x56,0x54,0x0C,0x00,
0x75,0x05,0x00,0x00,0xD2,0x01,0x56,0x54,0x2E,0x44,0x4F,0x4B,0x55,0x4D,0x45,0x4E,
0x54,0x45,0x0C,0x00,0x76,0x05,0x00,0x00,0xD2,0x01,0x56,0x54,0x2E,0x55,0x54,0x49,
0x4C,0x49,0x54,0x49,0x45,0x53,0x0C,0x00,0x7F,0x05,0x00,0x00,0xD3,0x01,0x34,0x43,
0x4F,0x4C,0x4F,0x55,0x52,0x49,0x43,0x4F,0x4E,0x53,0x08,0x00,0x80,0x05,0x00,0x00,
0xD3,0x01,0x43,0x41,0x54,0x41,0x4C,0x4F,0x47,0x53,0x04,0x00,0x81,0x05,0x00,0x00,
0xD3,0x01,0x4C,0x49,0x42,0x53,0x08,0x00,0x8D,0x05,0x00,0x00,0xD4,0x01,0x45,0x58,
0x41,0x4D,0x50,0x4C,0x45,0x53,0x0C,0x00,0x8B,0x05,0x00,0x00,0xD4,0x01,0x49,0x43,
0x4F,0x4E,0x5F,0x54,0x4F,0x4F,0x4C,0x42,0x4F,0x58,0x09,0x00,0x88,0x05,0x00,0x00,
0xD5,0x01,0x44,0x4F,0x43,0x55,0x4D,0x45,0x4E,0x54,0x53,0x00,0x04,0x00,0x89,0x05,
0x00,0x00,0xD5,0x01,0x4C,0x49,0x42,0x53,0x01,0x00,0x83,0x05,0x00,0x00,0xD6,0x01,
0x43,0x00,0x08,0x00,0x84,0x05,0x00,0x00,0xD6,0x01,0x43,0x41,0x54,0x41,0x4C,0x4F,
0x47,0x53,0x04,0x00,0x86,0x05,0x00,0x00,0xD6,0x01,0x4C,0x49,0x42,0x53,0x05,0x00,
0xB1,0x05,0x00,0x00,0xD7,0x01,0x49,0x43,0x4F,0x4E,0x53,0x00,0x02,0x00,0x59,0x06,
0x00,0x00,0xDE,0x01,0x46,0x44,0x07,0x00,0x5A,0x06,0x00,0x00,0xDE,0x01,0x49,0x4E,
0x43,0x4C,0x55,0x44,0x45,0x00,0x03,0x00,0x67,0x06,0x00,0x00,0xDE,0x01,0x4C,0x49,
0x42,0x00,0x08,0x00,0x68,0x06,0x00,0x00,0xDE,0x01,0x53,0x54,0x41,0x52,0x54,0x55,
0x50,0x53,0x05,0x00,0x69,0x06,0x00,0x00,0xDE,0x01,0x54,0x4F,0x4F,0x4C,0x53,0x00,
0x02,0x00,0x6B,0x06,0x00,0x00,0xDF,0x01,0x46,0x44,0x07,0x00,0x6C,0x06,0x00,0x00,
0xDF,0x01,0x49,0x4E,0x43,0x4C,0x55,0x44,0x45,0x00,0x03,0x00,0x7E,0x06,0x00,0x00,
0xDF,0x01,0x4C,0x49,0x42,0x00,0x08,0x00,0x80,0x06,0x00,0x00,0xE0,0x01,0x44,0x45,
0x56,0x54,0x4F,0x4F,0x4C,0x53,0x02,0x00,0x82,0x06,0x00,0x00,0xE0,0x01,0x46,0x44,
0x07,0x00,0x84,0x06,0x00,0x00,0xE0,0x01,0x49,0x4E,0x43,0x4C,0x55,0x44,0x45,0x00,
0x03,0x00,0x97,0x06,0x00,0x00,0xE0,0x01,0x4C,0x49,0x42,0x00,0x08,0x00,0x98,0x06,
0x00,0x00,0xE0,0x01,0x53,0x54,0x41,0x52,0x54,0x55,0x50,0x53,0x06,0x00,0x86,0x0A,
0x00,0x00,0xE2,0x01,0x53,0x4F,0x55,0x52,0x43,0x45,0x03,0x00,0x8C,0x0A,0x00,0x00,
0xE3,0x01,0x42,0x49,0x4E,0x00,0x02,0x00,0x8D,0x0A,0x00,0x00,0xE3,0x01,0x44,0x42,
0x04,0x00,0x8E,0x0A,0x00,0x00,0xE3,0x01,0x44,0x45,0x56,0x53,0x03,0x00,0x8F,0x0A,
0x00,0x00,0xE3,0x01,0x44,0x4F,0x43,0x00,0x06,0x00,0x91,0x0A,0x00,0x00,0xE3,0x01,
0x45,0x58,0x50,0x4F,0x52,0x54,0x04,0x00,0xA2,0x0A,0x00,0x00,0xE3,0x01,0x48,0x45,
0x4C,0x50,0x01,0x00,0xA3,0x0A,0x00,0x00,0xE3,0x01,0x4C,0x00,0x04,0x00,0xA4,0x0A,
0x00,0x00,0xE3,0x01,0x4C,0x49,0x42,0x53,0x0A,0x00,0xA5,0x0A,0x00,0x00,0xE3,0x01,
0x4E,0x45,0x54,0x49,0x4E,0x43,0x4C,0x55,0x44,0x45,0x06,0x00,0xB5,0x0A,0x00,0x00,
0xE3,0x01,0x4E,0x45,0x54,0x4C,0x49,0x42,0x04,0x00,0xB6,0x0A,0x00,0x00,0xE3,0x01,
0x53,0x45,0x52,0x56,0x03,0x00,0xB7,0x0A,0x00,0x00,0xE3,0x01,0x53,0x52,0x43,0x00,
0x03,0x00,0x05,0x0B,0x00,0x00,0xE4,0x01,0x42,0x49,0x4E,0x00,0x02,0x00,0x06,0x0B,
0x00,0x00,0xE4,0x01,0x44,0x42,0x04,0x00,0x07,0x0B,0x00,0x00,0xE4,0x01,0x44,0x45,
0x56,0x53,0x03,0x00,0x08,0x0B,0x00,0x00,0xE4,0x01,0x44,0x4F,0x43,0x00,0x06,0x00,
0x09,0x0B,0x00,0x00,0xE4,0x01,0x45,0x58,0x50,0x4F,0x52,0x54,0x07,0x00,0x04,0x0B,
0x00,0x00,0xE4,0x01,0x45,0x58,0x54,0x55,0x54,0x49,0x4C,0x00,0x04,0x00,0x18,0x0B,
0x00,0x00,0xE4,0x01,0x48,0x45,0x4C,0x50,0x01,0x00,0x19,0x0B,0x00,0x00,0xE4,0x01,
0x4C,0x00,0x04,0x00,0x1A,0x0B,0x00,0x00,0xE4,0x01,0x4C,0x49,0x42,0x53,0x04,0x00,
0x1B,0x0B,0x00,0x00,0xE4,0x01,0x53,0x45,0x52,0x56,0x03,0x00,0x1D,0x0B,0x00,0x00,
0xE5,0x01,0x42,0x49,0x4E,0x00,0x03,0x00,0x1E,0x0B,0x00,0x00,0xE5,0x01,0x44,0x4F,
0x43,0x00,0x04,0x00,0x1F,0x0B,0x00,0x00,0xE5,0x01,0x48,0x45,0x4C,0x50,0x0A,0x00,
0x20,0x0B,0x00,0x00,0xE5,0x01,0x4E,0x45,0x54,0x49,0x4E,0x43,0x4C,0x55,0x44,0x45,
0x06,0x00,0x30,0x0B,0x00,0x00,0xE5,0x01,0x4E,0x45,0x54,0x4C,0x49,0x42,0x03,0x00,
0x31,0x0B,0x00,0x00,0xE5,0x01,0x53,0x52,0x43,0x00,0x02,0x00,0x89,0x0A,0x00,0x00,
0xE6,0x01,0x44,0x42,0x04,0x00,0x8A,0x0A,0x00,0x00,0xE6,0x01,0x53,0x45,0x52,0x56,
0x06,0x00,0x88,0x0A,0x00,0x00,0xE6,0x01,0x53,0x4F,0x55,0x52,0x43,0x45,0x03,0x00,
0x3D,0x0B,0x00,0x00,0xE7,0x01,0x53,0x52,0x43,0x00,0x08,0x00,0x5F,0x0A,0x00,0x00,
0xE8,0x01,0x43,0x41,0x54,0x41,0x4C,0x4F,0x47,0x53,0x06,0x00,0x67,0x0A,0x00,0x00,
0xE8,0x01,0x43,0x4F,0x4E,0x46,0x49,0x47,0x0D,0x00,0x68,0x0A,0x00,0x00,0xE8,0x01,
0x44,0x4F,0x43,0x55,0x4D,0x45,0x4E,0x54,0x41,0x54,0x49,0x4F,0x4E,0x00,0x06,0x00,
0x73,0x0A,0x00,0x00,0xE8,0x01,0x45,0x58,0x54,0x52,0x41,0x53,0x05,0x00,0x6F,0x0A,
0x00,0x00,0xE8,0x01,0x46,0x4F,0x4E,0x54,0x53,0x00,0x04,0x00,0x72,0x0A,0x00,0x00,
0xE8,0x01,0x4C,0x49,0x42,0x53,0x04,0x00,0x03,0x08,0x00,0x00,0xE9,0x01,0x41,0x49,
0x44,0x45,0x03,0x00,0x04,0x08,0x00,0x00,0xE9,0x01,0x42,0x49,0x4E,0x00,0x05,0x00,
0x06,0x08,0x00,0x00,0xE9,0x01,0x42,0x4D,0x41,0x50,0x53,0x00,0x04,0x00,0x07,0x08,
0x00,0x00,0xE9,0x01,0x44,0x4F,0x43,0x53,0x05,0x00,0x08,0x08,0x00,0x00,0xE9,0x01,
0x49,0x43,0x4F,0x4E,0x53,0x00,0x07,0x00,0x09,0x08,0x00,0x00,0xE9,0x01,0x49,0x4E,
0x43,0x4C,0x55,0x44,0x45,0x00,0x03,0x00,0x0A,0x08,0x00,0x00,0xE9,0x01,0x4C,0x49,
0x42,0x00,0x04,0x00,0x0B,0x08,0x00,0x00,0xE9,0x01,0x50,0x52,0x47,0x53,0x05,0x00,
0x1E,0x08,0x00,0x00,0xE9,0x01,0x55,0x54,0x49,0x4C,0x53,0x00,0x05,0x00,0x9C,0x06,
0x00,0x00,0xEA,0x01,0x41,0x4D,0x49,0x47,0x41,0x00,0x07,0x00,0xAA,0x06,0x00,0x00,
0xEA,0x01,0x44,0x45,0x56,0x49,0x43,0x45,0x53,0x00,0x08,0x00,0xB6,0x06,0x00,0x00,
0xEA,0x01,0x47,0x52,0x41,0x50,0x48,0x49,0x43,0x53,0x09,0x00,0xC6,0x06,0x00,0x00,
0xEA,0x01,0x49,0x4E,0x54,0x55,0x49,0x54,0x49,0x4F,0x4E,0x00,0x05,0x00,0xD7,0x06,
0x00,0x00,0xEA,0x01,0x53,0x4F,0x55,0x4E,0x44,0x00,0x06,0x00,0xE0,0x06,0x00,0x00,
0xEA,0x01,0x53,0x59,0x53,0x54,0x45,0x4D,0x09,0x00,0xE8,0x06,0x00,0x00,0xEA,0x01,
0x55,0x54,0x49,0x4C,0x49,0x54,0x49,0x45,0x53,0x00,0x03,0x00,0xEA,0x06,0x00,0x00,
0xEB,0x01,0x41,0x53,0x4C,0x00,0x05,0x00,0xEB,0x06,0x00,0x00,0xEB,0x01,0x41,0x55,
0x44,0x49,0x4F,0x00,0x09,0x00,0xEC,0x06,0x00,0x00,0xEB,0x01,0x43,0x4C,0x49,0x50,
0x42,0x4F,0x41,0x52,0x44,0x00,0x0B,0x00,0xED,0x06,0x00,0x00,0xEB,0x01,0x43,0x4F,
0x4D,0x4D,0x4F,0x44,0x49,0x54,0x49,0x45,0x53,0x00,0x07,0x00,0xEE,0x06,0x00,0x00,
0xEB,0x01,0x43,0x4F,0x4E,0x53,0x4F,0x4C,0x45,0x00,0x0C,0x00,0xEF,0x06,0x00,0x00,
0xEB,0x01,0x45,0x58,0x45,0x43,0x5F,0x4C,0x49,0x42,0x52,0x41,0x52,0x59,0x09,0x00,
0xF8,0x06,0x00,0x00,0xEB,0x01,0x45,0x58,0x50,0x41,0x4E,0x53,0x49,0x4F,0x4E,0x00,
0x08,0x00,0xF9,0x06,0x00,0x00,0xEB,0x01,0x47,0x41,0x44,0x54,0x4F,0x4F,0x4C,0x53,
0x08,0x00,0xFA,0x06,0x00,0x00,0xEB,0x01,0x47,0x41,0x4D,0x45,0x50,0x4F,0x52,0x54,
0x12,0x00,0xFB,0x06,0x00,0x00,0xEB,0x01,0x47,0x52,0x41,0x50,0x48,0x49,0x43,0x53,
0x5F,0x4C,0x49,0x42,0x52,0x41,0x52,0x49,0x45,0x53,0x03,0x00,0x00,0x07,0x00,0x00,
0xEB,0x01,0x49,0x46,0x46,0x00,0x08,0x00,0x01,0x07,0x00,0x00,0xEB,0x01,0x49,0x46,
0x46,0x50,0x41,0x52,0x53,0x45,0x05,0x00,0x02,0x07,0x00,0x00,0xEB,0x01,0x49,0x4E,
0x50,0x55,0x54,0x00,0x0C,0x00,0x03,0x07,0x00,0x00,0xEB,0x01,0x49,0x4E,0x54,0x52,
0x4F,0x44,0x55,0x43,0x54,0x49,0x4F,0x4E,0x09,0x00,0x04,0x07,0x00,0x00,0xEB,0x01,
0x49,0x4E,0x54,0x55,0x49,0x54,0x49,0x4F,0x4E,0x00,0x08,0x00,0x10,0x07,0x00,0x00,
0xEB,0x01,0x4B,0x45,0x59,0x42,0x4F,0x41,0x52,0x44,0x06,0x00,0x11,0x07,0x00,0x00,
0xEB,0x01,0x4B,0x45,0x59,0x4D,0x41,0x50,0x04,0x00,0x12,0x07,0x00,0x00,0xEB,0x01,
0x4D,0x41,0x54,0x48,0x08,0x00,0x13,0x07,0x00,0x00,0xEB,0x01,0x4E,0x41,0x52,0x52,
0x41,0x54,0x4F,0x52,0x08,0x00,0x14,0x07,0x00,0x00,0xEB,0x01,0x50,0x41,0x52,0x41,
0x4C,0x4C,0x45,0x4C,0x0B,0x00,0x15,0x07,0x00,0x00,0xEB,0x01,0x50,0x52,0x45,0x46,
0x45,0x52,0x45,0x4E,0x43,0x45,0x53,0x00,0x07,0x00,0x16,0x07,0x00,0x00,0xEB,0x01,
0x50,0x52,0x49,0x4E,0x54,0x45,0x52,0x00,0x09,0x00,0x19,0x07,0x00,0x00,0xEB,0x01,
0x52,0x45,0x53,0x4F,0x55,0x52,0x43,0x45,0x53,0x00,0x0C,0x00,0x1B,0x07,0x00,0x00,
0xEB,0x01,0x53,0x41,0x4D,0x50,0x4C,0x45,0x44,0x45,0x56,0x49,0x43,0x45,0x0D,0x00,
0x1C,0x07,0x00,0x00,0xEB,0x01,0x53,0x41,0x4D,0x50,0x4C,0x45,0x4C,0x49,0x42,0x52,
0x41,0x52,0x59,0x00,0x04,0x00,0x1A,0x07,0x00,0x00,0xEB,0x01,0x53,0x43,0x53,0x49,
0x06,0x00,0x21,0x07,0x00,0x00,0xEB,0x01,0x53,0x45,0x52,0x49,0x41,0x4C,0x05,0x00,
0x22,0x07,0x00,0x00,0xEB,0x01,0x54,0x49,0x4D,0x45,0x52,0x00,0x09,0x00,0x23,0x07,
0x00,0x00,0xEB,0x01,0x54,0x52,0x41,0x43,0x4B,0x44,0x49,0x53,0x4B,0x00,0x07,0x00,
0x24,0x07,0x00,0x00,0xEB,0x01,0x55,0x54,0x49,0x4C,0x49,0x54,0x59,0x00,0x09,0x00,
0x25,0x07,0x00,0x00,0xEB,0x01,0x57,0x4F,0x52,0x4B,0x42,0x45,0x4E,0x43,0x48,0x00,
0x03,0x00,0x2E,0x07,0x00,0x00,0xF0,0x01,0x42,0x49,0x4E,0x00,0x04,0x00,0x2F,0x07,
0x00,0x00,0xF0,0x01,0x44,0x4F,0x43,0x53,0x05,0x00,0x30,0x07,0x00,0x00,0xF0,0x01,
0x46,0x4F,0x4E,0x54,0x53,0x00,0x07,0x00,0x96,0x07,0x00,0x00,0xF0,0x01,0x4D,0x4F,
0x44,0x55,0x4C,0x45,0x53,0x00,0x0A,0x00,0xAC,0x07,0x00,0x00,0xF0,0x01,0x4D,0x4F,
0x44,0x55,0x4C,0x45,0x53,0x53,0x52,0x43,0x05,0x00,0x35,0x07,0x00,0x00,0xF0,0x01,
0x50,0x44,0x53,0x52,0x43,0x00,0x04,0x00,0x42,0x07,0x00,0x00,0xF0,0x01,0x52,0x45,
0x58,0x58,0x07,0x00,0x43,0x07,0x00,0x00,0xF0,0x01,0x52,0x4B,0x52,0x4D,0x53,0x52,
0x43,0x00,0x03,0x00,0x68,0x07,0x00,0x00,0xF0,0x01,0x53,0x52,0x43,0x00,0x05,0x00,
0x5F,0x07,0x00,0x00,0xF0,0x01,0x54,0x4F,0x4F,0x4C,0x53,0x00,0x05,0x00,0xBE,0x07,
0x00,0x00,0xF1,0x01,0x44,0x45,0x4D,0x4F,0x53,0x00,0x09,0x00,0xD7,0x07,0x00,0x00,
0xF1,0x01,0x44,0x45,0x56,0x45,0x4C,0x4F,0x50,0x45,0x52,0x00,0x04,0x00,0xBF,0x07,
0x00,0x00,0xF1,0x01,0x44,0x4F,0x43,0x53,0x05,0x00,0xC2,0x07,0x00,0x00,0xF1,0x01,
0x49,0x43,0x4F,0x4E,0x53,0x00,0x06,0x00,0xC3,0x07,0x00,0x00,0xF1,0x01,0x49,0x4D,
0x41,0x47,0x45,0x53,0x04,0x00,0xD0,0x07,0x00,0x00,0xF1,0x01,0x4C,0x49,0x42,0x53,
0x06,0x00,0xD3,0x07,0x00,0x00,0xF1,0x01,0x4C,0x4F,0x43,0x41,0x4C,0x45,0x04,0x00,
0xD6,0x07,0x00,0x00,0xF1,0x01,0x52,0x45,0x58,0x58,0x01,0x00,0x29,0x08,0x00,0x00,
0xF3,0x01,0x43,0x00,0x08,0x00,0x2B,0x08,0x00,0x00,0xF3,0x01,0x43,0x41,0x54,0x41,
0x4C,0x4F,0x47,0x53,0x04,0x00,0x39,0x08,0x00,0x00,0xF3,0x01,0x44,0x4F,0x43,0x53,
0x0B,0x00,0x33,0x08,0x00,0x00,0xF3,0x01,0x45,0x4E,0x56,0x2D,0x41,0x52,0x43,0x48,
0x49,0x56,0x45,0x00,0x08,0x00,0x3A,0x08,0x00,0x00,0xF3,0x01,0x45,0x58,0x41,0x4D,
0x50,0x4C,0x45,0x53,0x07,0x00,0x2E,0x08,0x00,0x00,0xF3,0x01,0x49,0x4E,0x53,0x54,
0x41,0x4C,0x4C,0x00,0x04,0x00,0x2F,0x08,0x00,0x00,0xF3,0x01,0x4C,0x49,0x42,0x53,
0x06,0x00,0x30,0x08,0x00,0x00,0xF3,0x01,0x4D,0x41,0x43,0x52,0x4F,0x53,0x04,0x00,
0x31,0x08,0x00,0x00,0xF3,0x01,0x4F,0x4C,0x49,0x42,0x05,0x00,0x2A,0x08,0x00,0x00,
0xF3,0x01,0x50,0x52,0x45,0x46,0x53,0x00,0x01,0x00,0x32,0x08,0x00,0x00,0xF3,0x01,
0x53,0x00,0x06,0x00,0x45,0x08,0x00,0x00,0xF3,0x01,0x53,0x4F,0x55,0x52,0x43,0x45,
0x05,0x00,0x59,0x08,0x00,0x00,0xF3,0x01,0x54,0x45,0x58,0x54,0x53,0x00,0x01,0x00,
0x60,0x08,0x00,0x00,0xF4,0x01,0x43,0x00,0x08,0x00,0x61,0x08,0x00,0x00,0xF4,0x01,
0x43,0x44,0x52,0x4F,0x4D,0x45,0x4D,0x55,0x05,0x00,0x62,0x08,0x00,0x00,0xF4,0x01,
0x49,0x43,0x4F,0x4E,0x53,0x00,0x01,0x00,0x63,0x08,0x00,0x00,0xF4,0x01,0x4C,0x00,
0x03,0x00,0x64,0x08,0x00,0x00,0xF4,0x01,0x53,0x52,0x43,0x00,0x04,0x00,0x66,0x08,
0x00,0x00,0xF5,0x01,0x55,0x4E,0x49,0x58,0x03,0x00,0x6B,0x08,0x00,0x00,0xF8,0x01,
0x44,0x4F,0x43,0x00,0x03,0x00,0x6C,0x08,0x00,0x00,0xF8,0x01,0x53,0x52,0x43,0x00,
0x08,0x00,0x71,0x08,0x00,0x00,0xFB,0x01,0x43,0x41,0x54,0x41,0x4C,0x4F,0x47,0x53,
0x06,0x00,0x7C,0x08,0x00,0x00,0xFD,0x01,0x4C,0x4F,0x43,0x41,0x4C,0x45,0x03,0x00,
0xA4,0x08,0x00,0x00,0x1D,0x02,0x42,0x49,0x4E,0x00,0x04,0x00,0xA5,0x08,0x00,0x00,
0x1D,0x02,0x48,0x54,0x4D,0x4C,0x0A,0x00,0xA7,0x08,0x00,0x00,0x1D,0x02,0x50,0x52,
0x4F,0x47,0x52,0x41,0x4D,0x4D,0x45,0x52,0x03,0x00,0xAA,0x08,0x00,0x00,0x1D,0x02,
0x53,0x52,0x43,0x00,0x03,0x00,0xAB,0x08,0x00,0x00,0x1D,0x02,0x54,0x58,0x54,0x00,
0x03,0x00,0xB0,0x08,0x00,0x00,0x1E,0x02,0x42,0x49,0x4E,0x00,0x04,0x00,0xB1,0x08,
0x00,0x00,0x1E,0x02,0x48,0x54,0x4D,0x4C,0x0A,0x00,0xB3,0x08,0x00,0x00,0x1E,0x02,
0x50,0x52,0x4F,0x47,0x52,0x41,0x4D,0x4D,0x45,0x52,0x03,0x00,0xAE,0x08,0x00,0x00,
0x1E,0x02,0x53,0x52,0x43,0x00,0x03,0x00,0xAF,0x08,0x00,0x00,0x1E,0x02,0x54,0x58,
0x54,0x00,0x04,0x00,0xB9,0x08,0x00,0x00,0x20,0x02,0x4C,0x49,0x42,0x53,0x01,0x00,
0xBA,0x08,0x00,0x00,0x20,0x02,0x53,0x00,0x03,0x00,0xBB,0x08,0x00,0x00,0x20,0x02,
0x53,0x52,0x43,0x00,0x04,0x00,0xC1,0x08,0x00,0x00,0x22,0x02,0x44,0x4F,0x43,0x53,
0x04,0x00,0xBF,0x08,0x00,0x00,0x22,0x02,0x4C,0x49,0x42,0x53,0x05,0x00,0xC0,0x08,
0x00,0x00,0x22,0x02,0x4F,0x54,0x48,0x45,0x52,0x00,0x0A,0x00,0xD5,0x08,0x00,0x00,
0x23,0x02,0x42,0x52,0x49,0x4C,0x4C,0x49,0x41,0x4E,0x43,0x45,0x0D,0x00,0xD4,0x08,
0x00,0x00,0x23,0x02,0x42,0x52,0x49,0x4C,0x4C,0x49,0x41,0x4E,0x43,0x45,0x2D,0x32,
0x58,0x00,0x08,0x00,0xD6,0x08,0x00,0x00,0x23,0x02,0x43,0x41,0x54,0x41,0x4C,0x4F,
0x47,0x53,0x07,0x00,0xD7,0x08,0x00,0x00,0x23,0x02,0x44,0x50,0x41,0x49,0x4E,0x54,
0x35,0x00,0x08,0x00,0xD8,0x08,0x00,0x00,0x23,0x02,0x45,0x58,0x41,0x4D,0x50,0x4C,
0x45,0x53,0x0C,0x00,0xC3,0x08,0x00,0x00,0x24,0x02,0x41,0x4E,0x49,0x4D,0x5F,0x4C,
0x4F,0x41,0x44,0x45,0x52,0x53,0x0B,0x00,0xC4,0x08,0x00,0x00,0x24,0x02,0x41,0x4E,
0x49,0x4D,0x5F,0x53,0x41,0x56,0x45,0x52,0x53,0x00,0x08,0x00,0xC5,0x08,0x00,0x00,
0x24,0x02,0x43,0x41,0x54,0x41,0x4C,0x4F,0x47,0x53,0x04,0x00,0xC9,0x08,0x00,0x00,
0x24,0x02,0x44,0x4F,0x43,0x53,0x07,0x00,0xCD,0x08,0x00,0x00,0x24,0x02,0x45,0x58,
0x41,0x4D,0x50,0x4C,0x45,0x00,0x0B,0x00,0xCE,0x08,0x00,0x00,0x24,0x02,0x50,0x49,
0x43,0x5F,0x4C,0x4F,0x41,0x44,0x45,0x52,0x53,0x00,0x0A,0x00,0xCF,0x08,0x00,0x00,
0x24,0x02,0x50,0x49,0x43,0x5F,0x53,0x41,0x56,0x45,0x52,0x53,0x05,0x00,0xD0,0x08,
0x00,0x00,0x24,0x02,0x50,0x52,0x45,0x46,0x53,0x00,0x04,0x00,0xD1,0x08,0x00,0x00,
0x24,0x02,0x52,0x45,0x58,0x58,0x0B,0x00,0xD2,0x08,0x00,0x00,0x24,0x02,0x53,0x4E,
0x44,0x5F,0x50,0x4C,0x41,0x59,0x45,0x52,0x53,0x00,0x08,0x00,0xE0,0x08,0x00,0x00,
0x25,0x02,0x4A,0x50,0x45,0x47,0x5F,0x43,0x44,0x43,0x0D,0x00,0xEA,0x08,0x00,0x00,
0x26,0x02,0x41,0x52,0x45,0x58,0x58,0x2D,0x53,0x43,0x52,0x49,0x50,0x54,0x53,0x00,
0x05,0x00,0xEB,0x08,0x00,0x00,0x26,0x02,0x42,0x4F,0x4E,0x55,0x53,0x00,0x04,0x00,
0xED,0x08,0x00,0x00,0x26,0x02,0x48,0x45,0x4C,0x50,0x06,0x00,0xF0,0x08,0x00,0x00,
0x26,0x02,0x4C,0x4F,0x43,0x41,0x4C,0x45,0x10,0x00,0xF8,0x08,0x00,0x00,0x26,0x02,
0x53,0x55,0x50,0x45,0x52,0x56,0x49,0x45,0x57,0x4C,0x49,0x42,0x52,0x41,0x52,0x59,
0x03,0x00,0xE5,0x08,0x00,0x00,0x27,0x02,0x45,0x4E,0x56,0x00,0x04,0x00,0xE7,0x08,
0x00,0x00,0x27,0x02,0x4C,0x49,0x42,0x53,0x05,0x00,0xDD,0x05,0x00,0x00,0x2A,0x02,
0x41,0x52,0x45,0x58,0x58,0x00,0x04,0x00,0xDE,0x05,0x00,0x00,0x2A,0x02,0x4C,0x49,
0x42,0x53,0x07,0x00,0xDF,0x05,0x00,0x00,0x2A,0x02,0x53,0x55,0x50,0x50,0x4F,0x52,
0x54,0x00,0x09,0x00,0xD8,0x05,0x00,0x00,0x2B,0x02,0x43,0x48,0x49,0x50,0x4D,0x55,
0x4E,0x43,0x48,0x00,0x04,0x00,0xDA,0x05,0x00,0x00,0x2B,0x02,0x47,0x4D,0x4F,0x44,
0x0A,0x00,0xDB,0x05,0x00,0x00,0x2B,0x02,0x4E,0x4F,0x54,0x45,0x50,0x4C,0x41,0x59,
0x45,0x52,0x0A,0x00,0xE2,0x05,0x00,0x00,0x2C,0x02,0x43,0x59,0x42,0x45,0x52,0x53,
0x4F,0x55,0x4E,0x44,0x08,0x00,0xCE,0x05,0x00,0x00,0x2D,0x02,0x43,0x41,0x54,0x41,
0x4C,0x4F,0x47,0x53,0x04,0x00,0xD3,0x05,0x00,0x00,0x2D,0x02,0x44,0x4F,0x43,0x53,
0x04,0x00,0xD4,0x05,0x00,0x00,0x2D,0x02,0x4C,0x49,0x42,0x53,0x05,0x00,0x1A,0x06,
0x00,0x00,0x55,0x02,0x52,0x41,0x49,0x53,0x54,0x00,0x05,0x00,0x23,0x06,0x00,0x00,
0x5B,0x02,0x48,0x41,0x47,0x45,0x4E,0x00,0x09,0x00,0x3A,0x06,0x00,0x00,0x67,0x02,
0x53,0x56,0x44,0x52,0x49,0x56,0x45,0x52,0x53,0x00,0x09,0x00,0x3B,0x06,0x00,0x00,
0x67,0x02,0x53,0x56,0x4F,0x42,0x4A,0x45,0x43,0x54,0x53,0x00,0x05,0x00,0x40,0x06,
0x00,0x00,0x6A,0x02,0x44,0x41,0x4E,0x53,0x4B,0x00,0x07,0x00,0x41,0x06,0x00,0x00,
0x6A,0x02,0x44,0x45,0x55,0x54,0x53,0x43,0x48,0x00,0x07,0x00,0x44,0x06,0x00,0x00,
0x6A,0x02,0x45,0x4E,0x47,0x4C,0x49,0x53,0x48,0x00,0x07,0x00,0x45,0x06,0x00,0x00,
0x6A,0x02,0x45,0x53,0x50,0x41,0xD1,0x4F,0x4C,0x00,0x08,0x00,0x46,0x06,0x00,0x00,
0x6A,0x02,0x46,0x52,0x41,0x4E,0xC7,0x41,0x49,0x53,0x08,0x00,0x47,0x06,0x00,0x00,
0x6A,0x02,0x49,0x54,0x41,0x4C,0x49,0x41,0x4E,0x4F,0x0A,0x00,0x48,0x06,0x00,0x00,
0x6A,0x02,0x4E,0x45,0x44,0x45,0x52,0x4C,0x41,0x4E,0x44,0x53,0x05,0x00,0x49,0x06,
0x00,0x00,0x6A,0x02,0x4E,0x4F,0x52,0x53,0x4B,0x00,0x09,0x00,0x4A,0x06,0x00,0x00,
0x6A,0x02,0x50,0x4F,0x52,0x54,0x55,0x47,0x55,0xCA,0x53,0x00,0x07,0x00,0x4B,0x06,
0x00,0x00,0x6A,0x02,0x53,0x56,0x45,0x4E,0x53,0x4B,0x41,0x00,0x07,0x00,0x50,0x06,
0x00,0x00,0x6E,0x02,0x44,0x45,0x55,0x54,0x53,0x43,0x48,0x00,0x07,0x00,0x51,0x06,
0x00,0x00,0x6E,0x02,0x45,0x4E,0x47,0x4C,0x49,0x53,0x48,0x00,0x06,0x00,0x52,0x09,
0x00,0x00,0x74,0x02,0x53,0x4F,0x55,0x52,0x43,0x45,0x08,0x00,0x45,0x09,0x00,0x00,
0x75,0x02,0x43,0x41,0x54,0x41,0x4C,0x4F,0x47,0x53,0x03,0x00,0x4D,0x09,0x00,0x00,
0x75,0x02,0x53,0x52,0x43,0x00,0x05,0x00,0x4E,0x09,0x00,0x00,0x75,0x02,0x54,0x4F,
0x4F,0x4C,0x53,0x00,0x08,0x00,0x9E,0x09,0x00,0x00,0x77,0x02,0x55,0x4E,0x49,0x58,
0x55,0x54,0x49,0x4C,0x08,0x00,0xA5,0x09,0x00,0x00,0x7C,0x02,0x42,0x4C,0x41,0x4E,
0x4B,0x45,0x52,0x53,0x04,0x00,0xA7,0x09,0x00,0x00,0x7C,0x02,0x44,0x4F,0x43,0x53,
0x04,0x00,0xA8,0x09,0x00,0x00,0x7C,0x02,0x4C,0x49,0x42,0x53,0x0A,0x00,0xA9,0x09,
0x00,0x00,0x7C,0x02,0x50,0x52,0x4F,0x47,0x52,0x41,0x4D,0x4D,0x45,0x52,0x08,0x00,
0x4F,0x0A,0x00,0x00,0x7D,0x02,0x43,0x41,0x54,0x41,0x4C,0x4F,0x47,0x53,0x05,0x00,
0x51,0x0A,0x00,0x00,0x7D,0x02,0x47,0x55,0x49,0x44,0x45,0x00,0x03,0x00,0x54,0x0A,
0x00,0x00,0x7D,0x02,0x54,0x58,0x54,0x00,0x08,0x00,0x56,0x0A,0x00,0x00,0x7E,0x02,
0x43,0x41,0x54,0x41,0x4C,0x4F,0x47,0x53,0x03,0x00,0xB0,0x09,0x00,0x00,0x80,0x02,
0x31,0x2E,0x33,0x00,0x03,0x00,0xB1,0x09,0x00,0x00,0x80,0x02,0x32,0x2E,0x30,0x00,
0x07,0x00,0xB2,0x09,0x00,0x00,0x80,0x02,0x49,0x4E,0x43,0x4C,0x55,0x44,0x45,0x00,
0x06,0x00,0x63,0x09,0x00,0x00,0x81,0x02,0x53,0x4F,0x55,0x52,0x43,0x45,0x07,0x00,
0x80,0x09,0x00,0x00,0x82,0x02,0x43,0x4C,0x41,0x53,0x53,0x45,0x53,0x00,0x04,0x00,
0x82,0x09,0x00,0x00,0x82,0x02,0x44,0x45,0x56,0x53,0x03,0x00,0x84,0x09,0x00,0x00,
0x82,0x02,0x44,0x4F,0x43,0x00,0x04,0x00,0x85,0x09,0x00,0x00,0x82,0x02,0x48,0x45,
0x4C,0x50,0x07,0x00,0x86,0x09,0x00,0x00,0x82,0x02,0x49,0x4E,0x43,0x4C,0x55,0x44,
0x45,0x00,0x04,0x00,0x88,0x09,0x00,0x00,0x82,0x02,0x4D,0x49,0x53,0x43,0x06,0x00,
0x89,0x09,0x00,0x00,0x82,0x02,0x53,0x4F,0x55,0x52,0x43,0x45,0x07,0x00,0x5D,0x09,
0x00,0x00,0x83,0x02,0x43,0x4C,0x41,0x53,0x53,0x45,0x53,0x00,0x04,0x00,0x5F,0x09,
0x00,0x00,0x83,0x02,0x44,0x45,0x56,0x53,0x06,0x00,0x61,0x09,0x00,0x00,0x83,0x02,
0x53,0x4F,0x55,0x52,0x43,0x45,0x07,0x00,0x8B,0x09,0x00,0x00,0x84,0x02,0x43,0x4C,
0x41,0x53,0x53,0x45,0x53,0x00,0x04,0x00,0x8D,0x09,0x00,0x00,0x84,0x02,0x44,0x45,
0x56,0x53,0x03,0x00,0x8F,0x09,0x00,0x00,0x84,0x02,0x44,0x4F,0x43,0x00,0x06,0x00,
0x90,0x09,0x00,0x00,0x84,0x02,0x45,0x4E,0x56,0x41,0x52,0x43,0x04,0x00,0x92,0x09,
0x00,0x00,0x84,0x02,0x48,0x45,0x4C,0x50,0x04,0x00,0x93,0x09,0x00,0x00,0x84,0x02,
0x4D,0x49,0x53,0x43,0x06,0x00,0x94,0x09,0x00,0x00,0x84,0x02,0x53,0x4F,0x55,0x52,
0x43,0x45,0x04,0x00,0x96,0x09,0x00,0x00,0x84,0x02,0x54,0x45,0x53,0x54,0x09,0x00,
0x58,0x09,0x00,0x00,0x85,0x02,0x44,0x41,0x54,0x41,0x54,0x59,0x50,0x45,0x53,0x00,
0x05,0x00,0x5A,0x09,0x00,0x00,0x85,0x02,0x49,0x43,0x4F,0x4E,0x53,0x00,0x0B,0x00,
0x5B,0x09,0x00,0x00,0x85,0x02,0x53,0x59,0x53,0x54,0x45,0x4D,0x49,0x43,0x4F,0x4E,
0x53,0x00,0x07,0x00,0x65,0x09,0x00,0x00,0x86,0x02,0x43,0x4C,0x41,0x53,0x53,0x45,
0x53,0x00,0x04,0x00,0x68,0x09,0x00,0x00,0x86,0x02,0x44,0x45,0x56,0x53,0x04,0x00,
0x6A,0x09,0x00,0x00,0x86,0x02,0x4C,0x49,0x42,0x53,0x06,0x00,0x6B,0x09,0x00,0x00,
0x86,0x02,0x4C,0x4F,0x43,0x41,0x4C,0x45,0x05,0x00,0x70,0x09,0x00,0x00,0x86,0x02,
0x50,0x52,0x45,0x46,0x53,0x00,0x06,0x00,0x75,0x09,0x00,0x00,0x88,0x02,0x53,0x4F,
0x55,0x52,0x43,0x45,0x07,0x00,0x7D,0x09,0x00,0x00,0x89,0x02,0x43,0x4C,0x41,0x53,
0x53,0x45,0x53,0x00,0x04,0x00,0x77,0x09,0x00,0x00,0x89,0x02,0x44,0x45,0x56,0x53,
0x03,0x00,0x79,0x09,0x00,0x00,0x89,0x02,0x44,0x4F,0x43,0x00,0x04,0x00,0x7A,0x09,
0x00,0x00,0x89,0x02,0x48,0x45,0x4C,0x50,0x01,0x00,0x7B,0x09,0x00,0x00,0x89,0x02,
0x53,0x00,0x06,0x00,0x7C,0x09,0x00,0x00,0x89,0x02,0x53,0x4F,0x55,0x52,0x43,0x45,
0x09,0x00,0x99,0x09,0x00,0x00,0x8A,0x02,0x44,0x41,0x54,0x41,0x54,0x59,0x50,0x45,
0x53,0x00,0x04,0x00,0xC6,0x09,0x00,0x00,0x8B,0x02,0x44,0x4F,0x43,0x53,0x04,0x00,
0xC5,0x09,0x00,0x00,0x8B,0x02,0x52,0x45,0x58,0x58,0x03,0x00,0xB9,0x09,0x00,0x00,
0x8C,0x02,0x44,0x4F,0x43,0x00,0x04,0x00,0xBA,0x09,0x00,0x00,0x8C,0x02,0x4C,0x49,
0x42,0x53,0x06,0x00,0xBB,0x09,0x00,0x00,0x8C,0x02,0x4D,0x41,0x43,0x52,0x4F,0x53,
0x03,0x00,0xBF,0x09,0x00,0x00,0x8C,0x02,0x53,0x52,0x43,0x00,0x05,0x00,0xC2,0x09,
0x00,0x00,0x8C,0x02,0x54,0x4F,0x4F,0x4C,0x53,0x00,0x05,0x00,0xC3,0x09,0x00,0x00,
0x8C,0x02,0x54,0x55,0x54,0x4F,0x52,0x00,0x03,0x00,0xC9,0x09,0x00,0x00,0x8D,0x02,
0x42,0x49,0x4E,0x00,0x01,0x00,0xCA,0x09,0x00,0x00,0x8D,0x02,0x4C,0x00,0x03,0x00,
0xCB,0x09,0x00,0x00,0x8D,0x02,0x4C,0x49,0x42,0x00,0x04,0x00,0xCC,0x09,0x00,0x00,
0x8D,0x02,0x4C,0x49,0x42,0x53,0x08,0x00,0xCE,0x09,0x00,0x00,0x8E,0x02,0x43,0x41,
0x54,0x41,0x4C,0x4F,0x47,0x53,0x04,0x00,0xEA,0x09,0x00,0x00,0x8E,0x02,0x44,0x45,
0x4D,0x4F,0x03,0x00,0xEB,0x09,0x00,0x00,0x8E,0x02,0x44,0x4F,0x43,0x00,0x02,0x00,
0xEC,0x09,0x00,0x00,0x8E,0x02,0x46,0x44,0x04,0x00,0xD9,0x09,0x00,0x00,0x8E,0x02,
0x47,0x4C,0x55,0x45,0x07,0x00,0xED,0x09,0x00,0x00,0x8E,0x02,0x49,0x4E,0x43,0x4C,
0x55,0x44,0x45,0x00,0x09,0x00,0xF2,0x09,0x00,0x00,0x8E,0x02,0x49,0x4E,0x43,0x4C,
0x55,0x44,0x45,0x31,0x33,0x00,0x07,0x00,0xE4,0x09,0x00,0x00,0x8E,0x02,0x49,0x4E,
0x53,0x54,0x41,0x4C,0x4C,0x00,0x06,0x00,0xF4,0x09,0x00,0x00,0x8E,0x02,0x4C,0x49,
0x42,0x53,0x31,0x33,0x06,0x00,0xF5,0x09,0x00,0x00,0x8E,0x02,0x4C,0x49,0x42,0x53,
0x32,0x30,0x05,0x00,0xE6,0x09,0x00,0x00,0x8E,0x02,0x50,0x52,0x45,0x46,0x53,0x00,
0x0C,0x00,0xE8,0x09,0x00,0x00,0x8E,0x02,0x52,0x45,0x58,0x58,0x52,0x45,0x51,0x54,
0x4F,0x4F,0x4C,0x53,0x07,0x00,0xE7,0x09,0x00,0x00,0x8E,0x02,0x52,0x54,0x50,0x41,
0x54,0x43,0x48,0x00,0x08,0x00,0x0E,0x0A,0x00,0x00,0x8F,0x02,0x43,0x41,0x54,0x41,
0x4C,0x4F,0x47,0x53,0x08,0x00,0x0C,0x0A,0x00,0x00,0x97,0x02,0x4D,0x57,0x42,0x49,
0x43,0x4F,0x4E,0x53,0x08,0x00,0xF8,0x09,0x00,0x00,0x99,0x02,0x43,0x41,0x54,0x41,
0x4C,0x4F,0x47,0x53,0x07,0x00,0xFF,0x09,0x00,0x00,0x99,0x02,0x43,0x4F,0x4E,0x54,
0x52,0x49,0x42,0x00,0x09,0x00,0x00,0x0A,0x00,0x00,0x99,0x02,0x44,0x45,0x56,0x45,
0x4C,0x4F,0x50,0x45,0x52,0x00,0x03,0x00,0x05,0x0A,0x00,0x00,0x99,0x02,0x44,0x4F,
0x43,0x00,0x03,0x00,0x06,0x0A,0x00,0x00,0x99,0x02,0x45,0x4E,0x56,0x00,0x0A,0x00,
0x07,0x0A,0x00,0x00,0x99,0x02,0x49,0x4E,0x53,0x54,0x41,0x4C,0x4C,0x56,0x4D,0x4D,
0x01,0x00,0x08,0x0A,0x00,0x00,0x99,0x02,0x4C,0x00,0x04,0x00,0x09,0x0A,0x00,0x00,
0x99,0x02,0x52,0x45,0x58,0x58,0x05,0x00,0x0A,0x0A,0x00,0x00,0x99,0x02,0x54,0x4F,
0x4F,0x4C,0x53,0x00,0x0B,0x00,0x1C,0x0A,0x00,0x00,0x9B,0x02,0x45,0x4E,0x47,0x4C,
0x49,0x53,0x48,0x2E,0x44,0x4F,0x43,0x00,0x0A,0x00,0x1D,0x0A,0x00,0x00,0x9B,0x02,
0x47,0x45,0x52,0x4D,0x41,0x4E,0x2E,0x44,0x4F,0x43,0x05,0x00,0x1F,0x0A,0x00,0x00,
0x9C,0x02,0x46,0x4F,0x4E,0x54,0x53,0x00,0x03,0x00,0x28,0x0A,0x00,0x00,0x9D,0x02,
0x44,0x4F,0x43,0x00,0x07,0x00,0x22,0x0A,0x00,0x00,0x9D,0x02,0x47,0x4F,0x4F,0x44,
0x49,0x45,0x53,0x00,0x03,0x00,0x29,0x0A,0x00,0x00,0x9D,0x02,0x53,0x52,0x43,0x00,
0x06,0x00,0x2C,0x0A,0x00,0x00,0x9E,0x02,0x53,0x4F,0x55,0x52,0x43,0x45,0x04,0x00,
0x31,0x0A,0x00,0x00,0xA1,0x02,0x4C,0x49,0x42,0x53,0x06,0x00,0x32,0x0A,0x00,0x00,
0xA1,0x02,0x4C,0x4F,0x43,0x41,0x4C,0x45,0x01,0x00,0x37,0x0A,0x00,0x00,0xA3,0x02,
0x4C,0x00,0x04,0x00,0x38,0x0A,0x00,0x00,0xA3,0x02,0x4C,0x49,0x42,0x53,0x04,0x00,
0x3B,0x0A,0x00,0x00,0xA4,0x02,0x4C,0x49,0x42,0x53,0x0A,0x00,0x3F,0x0A,0x00,0x00,
0xA5,0x02,0x53,0x54,0x4F,0x52,0x41,0x47,0x45,0x5F,0x56,0x54,0x0C,0x00,0x40,0x0A,
0x00,0x00,0xA5,0x02,0x56,0x54,0x2E,0x44,0x4F,0x4B,0x55,0x4D,0x45,0x4E,0x54,0x45,
0x0C,0x00,0x3E,0x0A,0x00,0x00,0xA5,0x02,0x56,0x54,0x2E,0x55,0x54,0x49,0x4C,0x49,
0x54,0x49,0x45,0x53,0x05,0x00,0x44,0x0A,0x00,0x00,0xA6,0x02,0x41,0x52,0x45,0x58,
0x58,0x00,0x08,0x00,0x45,0x0A,0x00,0x00,0xA6,0x02,0x43,0x41,0x54,0x41,0x4C,0x4F,
0x47,0x53,0x04,0x00,0x48,0x0A,0x00,0x00,0xA6,0x02,0x44,0x4F,0x43,0x53,0x07,0x00,
0x4B,0x0A,0x00,0x00,0xA6,0x02,0x49,0x4E,0x53,0x54,0x41,0x4C,0x4C,0x00,0x07,0x00,
0x4C,0x0A,0x00,0x00,0xA6,0x02,0x53,0x4F,0x55,0x52,0x43,0x45,0x53,0x00,0x04,0x00,
0x7C,0x0B,0x00,0x00,0xA9,0x02,0x54,0x45,0x52,0x4D,0x07,0x00,0xB9,0x0B,0x00,0x00,
0xAA,0x02,0x49,0x4E,0x43,0x4C,0x55,0x44,0x45,0x00,0x04,0x00,0xBA,0x0B,0x00,0x00,
0xAA,0x02,0x4C,0x49,0x42,0x42,0x0B,0x00,0x8D,0x0B,0x00,0x00,0xAB,0x02,0x47,0x2B,
0x2B,0x2D,0x49,0x4E,0x43,0x4C,0x55,0x44,0x45,0x00,0x07,0x00,0x93,0x0B,0x00,0x00,
0xAB,0x02,0x49,0x4E,0x43,0x4C,0x55,0x44,0x45,0x00,0x04,0x00,0x97,0x0B,0x00,0x00,
0xAB,0x02,0x4C,0x49,0x42,0x42,0x07,0x00,0x99,0x0B,0x00,0x00,0xAB,0x02,0x4C,0x49,
0x42,0x4D,0x30,0x32,0x30,0x00,0x0A,0x00,0xA5,0x0B,0x00,0x00,0xAC,0x02,0x41,0x44,
0x41,0x49,0x4E,0x43,0x4C,0x55,0x44,0x45,0x06,0x00,0x9B,0x0B,0x00,0x00,0xAC,0x02,
0x41,0x44,0x41,0x4C,0x49,0x42,0x07,0x00,0xB0,0x0B,0x00,0x00,0xAC,0x02,0x49,0x4E,
0x43,0x4C,0x55,0x44,0x45,0x00,0x04,0x00,0xB4,0x0B,0x00,0x00,0xAC,0x02,0x4C,0x49,
0x42,0x42,0x07,0x00,0xB6,0x0B,0x00,0x00,0xAC,0x02,0x4C,0x49,0x42,0x4D,0x30,0x32,
0x30,0x00,0x08,0x00,0xC9,0x0B,0x00,0x00,0xAE,0x02,0x47,0x45,0x4E,0x45,0x52,0x41,
0x54,0x45,0x08,0x00,0xCC,0x0B,0x00,0x00,0xB0,0x02,0x47,0x45,0x4E,0x45,0x52,0x41,
0x54,0x45,0x06,0x00,0xD7,0x0B,0x00,0x00,0xB7,0x02,0x4C,0x49,0x42,0x4E,0x49,0x58,
0x06,0x00,0xD5,0x0B,0x00,0x00,0xB8,0x02,0x4C,0x49,0x42,0x4E,0x49,0x58,0x11,0x00,
0xF0,0x0B,0x00,0x00,0xBC,0x02,0x4D,0x36,0x38,0x4B,0x2D,0x43,0x42,0x4D,0x2D,0x41,
0x4D,0x49,0x47,0x41,0x44,0x4F,0x53,0x00,0x07,0x00,0xDE,0x0B,0x00,0x00,0xBE,0x02,
0x43,0x4F,0x4E,0x54,0x52,0x4F,0x4C,0x00,0x05,0x00,0xDF,0x0B,0x00,0x00,0xBE,0x02,
0x45,0x4C,0x46,0x55,0x4E,0x00,0x07,0x00,0xE0,0x0B,0x00,0x00,0xBE,0x02,0x47,0x45,
0x4E,0x45,0x52,0x41,0x4C,0x00,0x05,0x00,0xE1,0x0B,0x00,0x00,0xBE,0x02,0x49,0x4D,
0x41,0x47,0x45,0x00,0x0E,0x00,0xE2,0x0B,0x00,0x00,0xBE,0x02,0x4C,0x49,0x4E,0x45,
0x41,0x52,0x2D,0x41,0x4C,0x47,0x45,0x42,0x52,0x41,0x0D,0x00,0xE3,0x0B,0x00,0x00,
0xBE,0x02,0x4D,0x49,0x53,0x43,0x45,0x4C,0x4C,0x41,0x4E,0x45,0x4F,0x55,0x53,0x00,
0x04,0x00,0xE4,0x0B,0x00,0x00,0xBE,0x02,0x50,0x4C,0x4F,0x54,0x0A,0x00,0xE5,0x0B,
0x00,0x00,0xBE,0x02,0x50,0x4F,0x4C,0x59,0x4E,0x4F,0x4D,0x49,0x41,0x4C,0x03,0x00,
0xE6,0x0B,0x00,0x00,0xBE,0x02,0x53,0x45,0x54,0x00,0x06,0x00,0xE7,0x0B,0x00,0x00,
0xBE,0x02,0x53,0x49,0x47,0x4E,0x41,0x4C,0x07,0x00,0xE8,0x0B,0x00,0x00,0xBE,0x02,
0x53,0x50,0x45,0x43,0x46,0x55,0x4E,0x00,0x0E,0x00,0xE9,0x0B,0x00,0x00,0xBE,0x02,
0x53,0x50,0x45,0x43,0x49,0x41,0x4C,0x2D,0x4D,0x41,0x54,0x52,0x49,0x58,0x07,0x00,
0xEA,0x0B,0x00,0x00,0xBE,0x02,0x53,0x54,0x41,0x52,0x54,0x55,0x50,0x00,0x0A,0x00,
0xEB,0x0B,0x00,0x00,0xBE,0x02,0x53,0x54,0x41,0x54,0x49,0x53,0x54,0x49,0x43,0x53,
0x07,0x00,0xEC,0x0B,0x00,0x00,0xBE,0x02,0x53,0x54,0x52,0x49,0x4E,0x47,0x53,0x00,
0x11,0x00,0xEE,0x0B,0x00,0x00,0xBF,0x02,0x4D,0x36,0x38,0x4B,0x2D,0x43,0x42,0x4D,
0x2D,0x41,0x4D,0x49,0x47,0x41,0x44,0x4F,0x53,0x00,0x11,0x00,0xF5,0x0B,0x00,0x00,
0xC1,0x02,0x4D,0x36,0x38,0x4B,0x2D,0x43,0x42,0x4D,0x2D,0x41,0x4D,0x49,0x47,0x41,
0x44,0x4F,0x53,0x00,0x08,0x00,0xC8,0x0C,0x00,0x00,0xC8,0x02,0x41,0x56,0x41,0x4E,
0x54,0x47,0x41,0x52,0x07,0x00,0xCD,0x0C,0x00,0x00,0xC8,0x02,0x42,0x4F,0x4F,0x4B,
0x4D,0x41,0x4E,0x00,0x07,0x00,0xD2,0x0C,0x00,0x00,0xC8,0x02,0x43,0x4F,0x55,0x52,
0x49,0x45,0x52,0x00,0x08,0x00,0xD7,0x0C,0x00,0x00,0xC8,0x02,0x48,0x45,0x4C,0x56,
0x45,0x54,0x49,0x43,0x08,0x00,0xDC,0x0C,0x00,0x00,0xC8,0x02,0x4E,0x43,0x4E,0x54,
0x52,0x53,0x42,0x4B,0x08,0x00,0xE1,0x0C,0x00,0x00,0xC8,0x02,0x50,0x41,0x4C,0x41,
0x54,0x49,0x4E,0x4F,0x06,0x00,0xE6,0x0C,0x00,0x00,0xC8,0x02,0x53,0x59,0x4D,0x42,
0x4F,0x4C,0x05,0x00,0xC3,0x0C,0x00,0x00,0xC8,0x02,0x54,0x49,0x4D,0x45,0x53,0x00,
0x06,0x00,0xF3,0x0C,0x00,0x00,0xC8,0x02,0x55,0x54,0x4F,0x50,0x49,0x41,0x08,0x00,
0xEA,0x0C,0x00,0x00,0xC8,0x02,0x5A,0x41,0x50,0x46,0x43,0x48,0x41,0x4E,0x08,0x00,
0xEF,0x0C,0x00,0x00,0xC8,0x02,0x5A,0x41,0x50,0x46,0x44,0x49,0x4E,0x47,0x08,0x00,
0xA1,0x0C,0x00,0x00,0xC9,0x02,0x43,0x59,0x52,0x49,0x4C,0x4C,0x49,0x43,0x05,0x00,
0xA9,0x0C,0x00,0x00,0xC9,0x02,0x45,0x55,0x4C,0x45,0x52,0x00,0x07,0x00,0xB5,0x0C,
0x00,0x00,0xC9,0x02,0x45,0x58,0x54,0x52,0x41,0x43,0x4D,0x00,0x07,0x00,0xBC,0x0C,
0x00,0x00,0xC9,0x02,0x53,0x59,0x4D,0x42,0x4F,0x4C,0x53,0x00,0x08,0x00,0x61,0x0C,
0x00,0x00,0xCA,0x02,0x57,0x49,0x4E,0x47,0x44,0x49,0x4E,0x47,0x07,0x00,0xFB,0x0C,
0x00,0x00,0xCB,0x02,0x43,0x48,0x41,0x52,0x54,0x45,0x52,0x00,0x08,0x00,0x28,0x0C,
0x00,0x00,0xCC,0x02,0x41,0x4C,0x42,0x45,0x52,0x54,0x55,0x53,0x08,0x00,0x2D,0x0C,
0x00,0x00,0xCC,0x02,0x41,0x54,0x51,0x4F,0x4C,0x49,0x56,0x45,0x08,0x00,0x32,0x0C,
0x00,0x00,0xCC,0x02,0x43,0x4C,0x41,0x52,0x45,0x4E,0x44,0x4F,0x07,0x00,0x50,0x0C,
0x00,0x00,0xCC,0x02,0x43,0x4F,0x52,0x4F,0x4E,0x45,0x54,0x00,0x07,0x00,0x37,0x0C,
0x00,0x00,0xCC,0x02,0x43,0x4F,0x55,0x52,0x49,0x45,0x52,0x00,0x08,0x00,0x3C,0x0C,
0x00,0x00,0xCC,0x02,0x47,0x41,0x52,0x41,0x4D,0x4F,0x4E,0x44,0x08,0x00,0x41,0x0C,
0x00,0x00,0xCC,0x02,0x4C,0x45,0x54,0x54,0x52,0x47,0x54,0x48,0x08,0x00,0x46,0x0C,
0x00,0x00,0xCC,0x02,0x4D,0x41,0x52,0x49,0x47,0x4F,0x4C,0x44,0x06,0x00,0x4B,0x0C,
0x00,0x00,0xCC,0x02,0x4F,0x50,0x54,0x49,0x4D,0x41,0x05,0x00,0x55,0x0C,0x00,0x00,
0xCC,0x02,0x54,0x49,0x4D,0x45,0x53,0x00,0x07,0x00,0x5A,0x0C,0x00,0x00,0xCC,0x02,
0x55,0x4E,0x49,0x56,0x45,0x52,0x53,0x00,0x08,0x00,0x19,0x0C,0x00,0x00,0xCD,0x02,
0x48,0x45,0x4C,0x56,0x45,0x54,0x49,0x43,0x06,0x00,0x23,0x0C,0x00,0x00,0xCD,0x02,
0x53,0x59,0x4D,0x42,0x4F,0x4C,0x08,0x00,0x1E,0x0C,0x00,0x00,0xCD,0x02,0x54,0x49,
0x4D,0x45,0x53,0x4E,0x45,0x57,0x02,0x00,0x66,0x0C,0x00,0x00,0xCE,0x02,0x43,0x4D,
0x08,0x00,0x80,0x0C,0x00,0x00,0xCE,0x02,0x43,0x4F,0x4E,0x43,0x52,0x45,0x54,0x45,
0x02,0x00,0x91,0x0C,0x00,0x00,0xCE,0x02,0x44,0x43,0x05,0x00,0x99,0x0C,0x00,0x00,
0xCE,0x02,0x4C,0x41,0x54,0x45,0x58,0x00,0x04,0x00,0x8B,0x0C,0x00,0x00,0xCE,0x02,
0x4C,0x4F,0x47,0x4F,0x06,0x00,0x86,0x0C,0x00,0x00,0xCE,0x02,0x4D,0x41,0x4E,0x55,
0x41,0x4C,0x07,0x00,0x7A,0x0C,0x00,0x00,0xCE,0x02,0x50,0x41,0x4E,0x44,0x4F,0x52,
0x41,0x00,0x02,0x00,0x19,0x0D,0x00,0x00,0xCF,0x02,0x50,0x4B,0x07,0x00,0x03,0x0D,
0x00,0x00,0xD0,0x02,0x41,0x4E,0x54,0x49,0x51,0x55,0x41,0x00,0x07,0x00,0x0A,0x0D,
0x00,0x00,0xD0,0x02,0x47,0x52,0x4F,0x54,0x45,0x53,0x4B,0x00,0x06,0x00,0x11,0x0D,
0x00,0x00,0xD0,0x02,0x4E,0x49,0x4D,0x42,0x55,0x53,0x05,0x00,0x05,0x0C,0x00,0x00,
0xD3,0x02,0x44,0x56,0x49,0x4C,0x4A,0x00,0x05,0x00,0x07,0x0C,0x00,0x00,0xD4,0x02,
0x44,0x56,0x49,0x50,0x53,0x00,0x04,0x00,0x10,0x0C,0x00,0x00,0xD5,0x02,0x42,0x41,
0x53,0x45,0x04,0x00,0x13,0x0C,0x00,0x00,0xD5,0x02,0x4D,0x49,0x53,0x43,0x05,0x00,
0x0B,0x0C,0x00,0x00,0xD7,0x02,0x44,0x56,0x49,0x50,0x53,0x00,0x07,0x00,0x81,0x00,
0x00,0x00,0xDE,0x02,0x45,0x53,0x50,0x41,0xD1,0x4F,0x4C,0x00,0x08,0x00,0x82,0x00,
0x00,0x00,0xDE,0x02,0x46,0x52,0x41,0x4E,0xC7,0x41,0x49,0x53,0x05,0x00,0x8E,0x00,
0x00,0x00,0xE2,0x02,0x44,0x41,0x4E,0x53,0x4B,0x00,0x07,0x00,0x8F,0x00,0x00,0x00,
0xE2,0x02,0x44,0x45,0x55,0x54,0x53,0x43,0x48,0x00,0x08,0x00,0x90,0x00,0x00,0x00,
0xE2,0x02,0x46,0x52,0x41,0x4E,0xC7,0x41,0x49,0x53,0x08,0x00,0x91,0x00,0x00,0x00,
0xE2,0x02,0x49,0x54,0x41,0x4C,0x49,0x41,0x4E,0x4F,0x0A,0x00,0x92,0x00,0x00,0x00,
0xE2,0x02,0x4E,0x45,0x44,0x45,0x52,0x4C,0x41,0x4E,0x44,0x53,0x05,0x00,0x93,0x00,
0x00,0x00,0xE2,0x02,0x4E,0x4F,0x52,0x53,0x4B,0x00,0x06,0x00,0x94,0x00,0x00,0x00,
0xE2,0x02,0x50,0x4F,0x4C,0x53,0x4B,0x49,0x05,0x00,0x95,0x00,0x00,0x00,0xE2,0x02,
0x53,0x55,0x4F,0x4D,0x49,0x00,0x07,0x00,0x96,0x00,0x00,0x00,0xE2,0x02,0x53,0x56,
0x45,0x4E,0x53,0x4B,0x41,0x00,0x0A,0x00,0x99,0x00,0x00,0x00,0xE4,0x02,0x41,0x52,
0x45,0x58,0x58,0x44,0x45,0x4D,0x4F,0x53,0x04,0x00,0x9D,0x00,0x00,0x00,0xEB,0x02,
0x4C,0x49,0x42,0x53,0x01,0x00,0x9E,0x00,0x00,0x00,0xEB,0x02,0x53,0x00,0x09,0x00,
0x9F,0x00,0x00,0x00,0xEB,0x02,0x55,0x54,0x49,0x4C,0x49,0x54,0x49,0x45,0x53,0x00,
0x0B,0x00,0xA4,0x00,0x00,0x00,0xEF,0x02,0x41,0x44,0x44,0x52,0x45,0x53,0x53,0x42,
0x4F,0x4F,0x4B,0x00,0x09,0x00,0xA5,0x00,0x00,0x00,0xEF,0x02,0x49,0x4D,0x41,0x47,
0x45,0x44,0x41,0x54,0x41,0x00,0x06,0x00,0xA6,0x00,0x00,0x00,0xEF,0x02,0x49,0x4D,
0x41,0x47,0x45,0x53,0x07,0x00,0xA7,0x00,0x00,0x00,0xEF,0x02,0x4C,0x49,0x42,0x52,
0x41,0x52,0x59,0x00,0x05,0x00,0xA8,0x00,0x00,0x00,0xEF,0x02,0x4D,0x55,0x53,0x49,
0x43,0x00,0x05,0x00,0xA9,0x00,0x00,0x00,0xEF,0x02,0x53,0x41,0x4C,0x45,0x53,0x00,
0x05,0x00,0xB6,0x00,0x00,0x00,0xF1,0x02,0x43,0x41,0x52,0x44,0x53,0x00,0x05,0x00,
0xB5,0x00,0x00,0x00,0xF1,0x02,0x47,0x41,0x4D,0x45,0x53,0x00,0x05,0x00,0xB4,0x00,
0x00,0x00,0xF1,0x02,0x47,0x52,0x4F,0x55,0x50,0x00,0x04,0x00,0xB3,0x00,0x00,0x00,
0xF1,0x02,0x54,0x45,0x58,0x54,0x05,0x00,0xBB,0x00,0x00,0x00,0xF5,0x02,0x41,0x52,
0x45,0x58,0x58,0x00,0x08,0x00,0xBC,0x00,0x00,0x00,0xF5,0x02,0x41,0x55,0x54,0x4F,
0x4F,0x50,0x45,0x4E,0x08,0x00,0xBD,0x00,0x00,0x00,0xF5,0x02,0x43,0x41,0x54,0x41,
0x4C,0x4F,0x47,0x53,0x07,0x00,0xC0,0x00,0x00,0x00,0xF5,0x02,0x53,0x48,0x45,0x45,
0x54,0x53,0x32,0x00,0x07,0x00,0xC2,0x00,0x00,0x00,0xF5,0x02,0x53,0x48,0x45,0x45,
0x54,0x53,0x33,0x00,0x06,0x00,0xC4,0x00,0x00,0x00,0xF5,0x02,0x54,0x43,0x4C,0x49,
0x42,0x53,0x08,0x00,0xC5,0x00,0x00,0x00,0xF5,0x02,0x54,0x55,0x54,0x4F,0x52,0x49,
0x41,0x4C,0x07,0x00,0xD6,0x00,0x00,0x00,0xF8,0x02,0x44,0x45,0x55,0x54,0x53,0x43,
0x48,0x00,0x08,0x00,0xD5,0x00,0x00,0x00,0xF8,0x02,0x46,0x52,0x41,0x4E,0xC7,0x41,
0x49,0x53,0x08,0x00,0xD4,0x00,0x00,0x00,0xF8,0x02,0x49,0x54,0x41,0x4C,0x49,0x41,
0x4E,0x4F,0x0A,0x00,0xD3,0x00,0x00,0x00,0xF8,0x02,0x4E,0x45,0x44,0x45,0x52,0x4C,
0x41,0x4E,0x44,0x53,0x07,0x00,0xD2,0x00,0x00,0x00,0xF8,0x02,0x53,0x56,0x45,0x4E,
0x53,0x4B,0x41,0x00,0x06,0x00,0xE6,0x00,0x00,0x00,0xFF,0x02,0x50,0x52,0x4F,0x4E,
0x45,0x54,0x07,0x00,0xE4,0x00,0x00,0x00,0x00,0x03,0x44,0x45,0x55,0x54,0x53,0x43,
0x48,0x00,0x07,0x00,0xE3,0x00,0x00,0x00,0x00,0x03,0x45,0x4E,0x47,0x4C,0x49,0x53,
0x48,0x00,0x07,0x00,0xE0,0x00,0x00,0x00,0x02,0x03,0x44,0x45,0x56,0x49,0x43,0x45,
0x53,0x00,0x06,0x00,0xDD,0x00,0x00,0x00,0x04,0x03,0x44,0x45,0x56,0x49,0x43,0x45,
0x07,0x00,0xDC,0x00,0x00,0x00,0x04,0x03,0x44,0x52,0x49,0x56,0x45,0x52,0x53,0x00,
0x0A,0x00,0xDB,0x00,0x00,0x00,0x04,0x03,0x46,0x49,0x4C,0x45,0x53,0x59,0x53,0x54,
0x45,0x4D,0x09,0x00,0xDA,0x00,0x00,0x00,0x04,0x03,0x55,0x54,0x49,0x4C,0x49,0x54,
0x49,0x45,0x53,0x00,0x05,0x00,0xF9,0x00,0x00,0x00,0x0E,0x03,0x44,0x41,0x4E,0x53,
0x4B,0x00,0x07,0x00,0xFA,0x00,0x00,0x00,0x0E,0x03,0x44,0x45,0x55,0x54,0x53,0x43,
0x48,0x00,0x07,0x00,0xFB,0x00,0x00,0x00,0x0E,0x03,0x45,0x53,0x50,0x41,0xD1,0x4F,
0x4C,0x00,0x08,0x00,0xFC,0x00,0x00,0x00,0x0E,0x03,0x46,0x52,0x41,0x4E,0xC7,0x41,
0x49,0x53,0x08,0x00,0xFD,0x00,0x00,0x00,0x0E,0x03,0x49,0x54,0x41,0x4C,0x49,0x41,
0x4E,0x4F,0x0A,0x00,0xFE,0x00,0x00,0x00,0x0E,0x03,0x4E,0x45,0x44,0x45,0x52,0x4C,
0x41,0x4E,0x44,0x53,0x07,0x00,0xFF,0x00,0x00,0x00,0x0E,0x03,0x53,0x56,0x45,0x4E,
0x53,0x4B,0x41,0x00,0x0A,0x00,0x04,0x01,0x00,0x00,0x10,0x03,0x41,0x4D,0x49,0x47,
0x41,0x47,0x55,0x49,0x44,0x45,0x03,0x00,0x07,0x01,0x00,0x00,0x10,0x03,0x44,0x56,
0x49,0x00,0x04,0x00,0x05,0x01,0x00,0x00,0x10,0x03,0x4C,0x49,0x42,0x53,0x0A,0x00,
0x03,0x01,0x00,0x00,0x10,0x03,0x50,0x4F,0x53,0x54,0x53,0x43,0x52,0x49,0x50,0x54,
0x08,0x00,0x06,0x01,0x00,0x00,0x10,0x03,0x58,0x45,0x4D,0x5F,0x4C,0x49,0x42,0x53,
0x08,0x00,0x02,0x01,0x00,0x00,0x10,0x03,0x58,0x50,0x52,0x5F,0x4C,0x49,0x42,0x53,
0x08,0x00,0x0D,0x01,0x00,0x00,0x11,0x03,0x48,0x59,0x44,0x52,0x41,0x43,0x4F,0x4D,
0x06,0x00,0x19,0x01,0x00,0x00,0x11,0x03,0x4C,0x4F,0x43,0x41,0x4C,0x45,0x04,0x00,
0x0E,0x01,0x00,0x00,0x11,0x03,0x52,0x45,0x58,0x58,0x05,0x00,0x0F,0x01,0x00,0x00,
0x11,0x03,0x53,0x4F,0x55,0x4E,0x44,0x00,0x06,0x00,0x1A,0x01,0x00,0x00,0x11,0x03,
0x53,0x4F,0x55,0x52,0x43,0x45,0x05,0x00,0x10,0x01,0x00,0x00,0x11,0x03,0x54,0x4F,
0x4F,0x4C,0x53,0x00,0x0B,0x00,0x18,0x01,0x00,0x00,0x11,0x03,0x54,0x52,0x41,0x4E,
0x53,0x4C,0x41,0x54,0x49,0x4F,0x4E,0x00,0x03,0x00,0x09,0x01,0x00,0x00,0x12,0x03,
0x47,0x46,0x58,0x00,0x03,0x00,0x0A,0x01,0x00,0x00,0x12,0x03,0x49,0x42,0x4D,0x00,
0x04,0x00,0x29,0x01,0x00,0x00,0x19,0x03,0x43,0x4C,0x49,0x42,0x02,0x00,0x2A,0x01,
0x00,0x00,0x19,0x03,0x46,0x44,0x03,0x00,0x2B,0x01,0x00,0x00,0x19,0x03,0x4C,0x49,
0x42,0x00,0x02,0x00,0x2C,0x01,0x00,0x00,0x19,0x03,0x50,0x44,0x03,0x00,0x2D,0x01,
0x00,0x00,0x19,0x03,0x53,0x59,0x53,0x00,0x01,0x00,0x37,0x01,0x00,0x00,0x1D,0x03,
0x45,0x00,0x04,0x00,0x38,0x01,0x00,0x00,0x1D,0x03,0x45,0x4C,0x53,0x45,0x03,0x00,
0x39,0x01,0x00,0x00,0x1D,0x03,0x45,0x4E,0x44,0x00,0x06,0x00,0x3A,0x01,0x00,0x00,
0x1D,0x03,0x45,0x58,0x43,0x45,0x50,0x54,0x08,0x00,0x9E,0x01,0x00,0x00,0x1E,0x03,
0x41,0x4D,0x49,0x47,0x41,0x4C,0x49,0x42,0x05,0x00,0x9F,0x01,0x00,0x00,0x1E,0x03,
0x43,0x4C,0x41,0x53,0x53,0x00,0x09,0x00,0xA0,0x01,0x00,0x00,0x1E,0x03,0x44,0x41,
0x54,0x41,0x54,0x59,0x50,0x45,0x53,0x00,0x07,0x00,0xA1,0x01,0x00,0x00,0x1E,0x03,
0x44,0x45,0x56,0x49,0x43,0x45,0x53,0x00,0x08,0x00,0xA2,0x01,0x00,0x00,0x1E,0x03,
0x44,0x49,0x53,0x4B,0x46,0x4F,0x4E,0x54,0x03,0x00,0xA3,0x01,0x00,0x00,0x1E,0x03,
0x44,0x4F,0x53,0x00,0x04,0x00,0xA4,0x01,0x00,0x00,0x1E,0x03,0x45,0x58,0x45,0x43,
0x07,0x00,0xA5,0x01,0x00,0x00,0x1E,0x03,0x47,0x41,0x44,0x47,0x45,0x54,0x53,0x00,
0x0B,0x00,0xA6,0x01,0x00,0x00,0x1E,0x03,0x47,0x41,0x44,0x54,0x4F,0x4F,0x4C,0x53,
0x42,0x4F,0x58,0x00,0x08,0x00,0xA7,0x01,0x00,0x00,0x1E,0x03,0x47,0x52,0x41,0x50,
0x48,0x49,0x43,0x53,0x08,0x00,0xA8,0x01,0x00,0x00,0x1E,0x03,0x48,0x41,0x52,0x44,
0x57,0x41,0x52,0x45,0x09,0x00,0xA9,0x01,0x00,0x00,0x1E,0x03,0x49,0x4E,0x54,0x55,
0x49,0x54,0x49,0x4F,0x4E,0x00,0x09,0x00,0xAA,0x01,0x00,0x00,0x1E,0x03,0x4C,0x49,
0x42,0x52,0x41,0x52,0x49,0x45,0x53,0x00,0x05,0x00,0xAB,0x01,0x00,0x00,0x1E,0x03,
0x4F,0x54,0x48,0x45,0x52,0x00,0x05,0x00,0xAC,0x01,0x00,0x00,0x1E,0x03,0x50,0x52,
0x45,0x46,0x53,0x00,0x09,0x00,0xAD,0x01,0x00,0x00,0x1E,0x03,0x52,0x45,0x53,0x4F,
0x55,0x52,0x43,0x45,0x53,0x00,0x04,0x00,0xAE,0x01,0x00,0x00,0x1E,0x03,0x52,0x45,
0x58,0x58,0x05,0x00,0xAF,0x01,0x00,0x00,0x1E,0x03,0x54,0x4F,0x4F,0x4C,0x53,0x00,
0x07,0x00,0xB0,0x01,0x00,0x00,0x1E,0x03,0x55,0x54,0x49,0x4C,0x49,0x54,0x59,0x00,
0x09,0x00,0xB1,0x01,0x00,0x00,0x1E,0x03,0x57,0x4F,0x52,0x4B,0x42,0x45,0x4E,0x43,
0x48,0x00,0x09,0x00,0xB3,0x01,0x00,0x00,0x1F,0x03,0x44,0x41,0x54,0x41,0x54,0x59,
0x50,0x45,0x53,0x00,0x07,0x00,0xB4,0x01,0x00,0x00,0x1F,0x03,0x44,0x45,0x56,0x49,
0x43,0x45,0x53,0x00,0x08,0x00,0xB5,0x01,0x00,0x00,0x1F,0x03,0x44,0x49,0x53,0x4B,
0x46,0x4F,0x4E,0x54,0x03,0x00,0xB6,0x01,0x00,0x00,0x1F,0x03,0x44,0x4F,0x53,0x00,
0x04,0x00,0xB7,0x01,0x00,0x00,0x1F,0x03,0x45,0x58,0x45,0x43,0x07,0x00,0xB8,0x01,
0x00,0x00,0x1F,0x03,0x47,0x41,0x44,0x47,0x45,0x54,0x53,0x00,0x08,0x00,0xB9,0x01,
0x00,0x00,0x1F,0x03,0x47,0x52,0x41,0x50,0x48,0x49,0x43,0x53,0x08,0x00,0xBA,0x01,
0x00,0x00,0x1F,0x03,0x48,0x41,0x52,0x44,0x57,0x41,0x52,0x45,0x09,0x00,0xBB,0x01,
0x00,0x00,0x1F,0x03,0x49,0x4E,0x54,0x55,0x49,0x54,0x49,0x4F,0x4E,0x00,0x09,0x00,
0xBC,0x01,0x00,0x00,0x1F,0x03,0x4C,0x49,0x42,0x52,0x41,0x52,0x49,0x45,0x53,0x00,
0x05,0x00,0xBD,0x01,0x00,0x00,0x1F,0x03,0x50,0x52,0x45,0x46,0x53,0x00,0x09,0x00,
0xBE,0x01,0x00,0x00,0x1F,0x03,0x52,0x45,0x53,0x4F,0x55,0x52,0x43,0x45,0x53,0x00,
0x04,0x00,0xBF,0x01,0x00,0x00,0x1F,0x03,0x52,0x45,0x58,0x58,0x07,0x00,0xC0,0x01,
0x00,0x00,0x1F,0x03,0x55,0x54,0x49,0x4C,0x49,0x54,0x59,0x00,0x09,0x00,0xC1,0x01,
0x00,0x00,0x1F,0x03,0x57,0x4F,0x52,0x4B,0x42,0x45,0x4E,0x43,0x48,0x00,0x06,0x00,
0x3C,0x01,0x00,0x00,0x20,0x03,0x41,0x47,0x32,0x54,0x58,0x54,0x07,0x00,0x3D,0x01,
0x00,0x00,0x20,0x03,0x45,0x2D,0x45,0x4D,0x50,0x54,0x59,0x00,0x03,0x00,0x3E,0x01,
0x00,0x00,0x20,0x03,0x49,0x46,0x46,0x00,0x04,0x00,0x3F,0x01,0x00,0x00,0x20,0x03,
0x4C,0x41,0x4E,0x47,0x09,0x00,0x41,0x01,0x00,0x00,0x20,0x03,0x4F,0x4F,0x4D,0x4F,
0x44,0x55,0x4C,0x45,0x53,0x00,0x09,0x00,0x42,0x01,0x00,0x00,0x20,0x03,0x52,0x45,
0x58,0x58,0x48,0x4F,0x53,0x54,0x43,0x00,0x04,0x00,0x45,0x01,0x00,0x00,0x20,0x03,
0x53,0x45,0x54,0x46,0x07,0x00,0x46,0x01,0x00,0x00,0x20,0x03,0x54,0x48,0x52,0x45,
0x41,0x44,0x53,0x00,0x03,0x00,0x4A,0x01,0x00,0x00,0x22,0x03,0x41,0x53,0x4C,0x00,
0x0B,0x00,0x4B,0x01,0x00,0x00,0x22,0x03,0x43,0x4F,0x4D,0x4D,0x4F,0x44,0x49,0x54,
0x49,0x45,0x53,0x00,0x0C,0x00,0x4C,0x01,0x00,0x00,0x22,0x03,0x45,0x58,0x45,0x43,
0x5F,0x4C,0x49,0x42,0x52,0x41,0x52,0x59,0x08,0x00,0x55,0x01,0x00,0x00,0x22,0x03,
0x47,0x41,0x44,0x54,0x4F,0x4F,0x4C,0x53,0x09,0x00,0x56,0x01,0x00,0x00,0x22,0x03,
0x49,0x4E,0x54,0x55,0x49,0x54,0x49,0x4F,0x4E,0x00,0x0B,0x00,0x62,0x01,0x00,0x00,
0x22,0x03,0x50,0x52,0x45,0x46,0x45,0x52,0x45,0x4E,0x43,0x45,0x53,0x00,0x09,0x00,
0x63,0x01,0x00,0x00,0x22,0x03,0x52,0x45,0x53,0x4F,0x55,0x52,0x43,0x45,0x53,0x00,
0x09,0x00,0x64,0x01,0x00,0x00,0x22,0x03,0x57,0x4F,0x52,0x4B,0x42,0x45,0x4E,0x43,
0x48,0x00,0x04,0x00,0x6F,0x01,0x00,0x00,0x23,0x03,0x41,0x52,0x47,0x53,0x05,0x00,
0x70,0x01,0x00,0x00,0x23,0x03,0x43,0x4C,0x41,0x53,0x53,0x00,0x03,0x00,0x75,0x01,
0x00,0x00,0x23,0x03,0x44,0x4F,0x53,0x00,0x04,0x00,0x76,0x01,0x00,0x00,0x23,0x03,
0x47,0x41,0x4D,0x45,0x03,0x00,0x77,0x01,0x00,0x00,0x23,0x03,0x47,0x46,0x58,0x00,
0x05,0x00,0x78,0x01,0x00,0x00,0x23,0x03,0x47,0x55,0x49,0x44,0x45,0x00,0x05,0x00,
0x79,0x01,0x00,0x00,0x23,0x03,0x49,0x4E,0x54,0x55,0x49,0x00,0x04,0x00,0x7A,0x01,
0x00,0x00,0x23,0x03,0x4C,0x41,0x4E,0x47,0x07,0x00,0x7B,0x01,0x00,0x00,0x23,0x03,
0x4C,0x49,0x42,0x52,0x41,0x52,0x59,0x00,0x04,0x00,0x7E,0x01,0x00,0x00,0x23,0x03,
0x52,0x45,0x51,0x53,0x05,0x00,0x7F,0x01,0x00,0x00,0x23,0x03,0x54,0x4F,0x4F,0x4C,
0x53,0x00,0x05,0x00,0x99,0x01,0x00,0x00,0x23,0x03,0x55,0x54,0x49,0x4C,0x53,0x00,
0x07,0x00,0x9A,0x01,0x00,0x00,0x23,0x03,0x56,0x41,0x52,0x49,0x4F,0x55,0x53,0x00,
0x05,0x00,0x66,0x01,0x00,0x00,0x24,0x03,0x41,0x50,0x52,0x4F,0x46,0x00,0x02,0x00,
0x67,0x01,0x00,0x00,0x24,0x03,0x45,0x45,0x05,0x00,0x6D,0x01,0x00,0x00,0x24,0x03,
0x45,0x59,0x41,0x43,0x43,0x00,0x09,0x00,0xF7,0x01,0x00,0x00,0x27,0x03,0x56,0x49,
0x44,0x45,0x4F,0x54,0x48,0x45,0x4B,0x00,0x07,0x00,0xE7,0x01,0x00,0x00,0x29,0x03,
0x44,0x45,0x55,0x54,0x53,0x43,0x48,0x00,0x08,0x00,0xE8,0x01,0x00,0x00,0x29,0x03,
0x46,0x52,0x41,0x4E,0xC7,0x41,0x49,0x53,0x0A,0x00,0xE9,0x01,0x00,0x00,0x29,0x03,
0x4E,0x45,0x44,0x45,0x52,0x4C,0x41,0x4E,0x44,0x53,0x07,0x00,0xEA,0x01,0x00,0x00,
0x29,0x03,0x53,0x56,0x45,0x4E,0x53,0x4B,0x41,0x00,0x06,0x00,0xC5,0x01,0x00,0x00,
0x2B,0x03,0x41,0x4D,0x49,0x47,0x41,0x45,0x0B,0x00,0xCA,0x01,0x00,0x00,0x2B,0x03,
0x41,0x4D,0x49,0x47,0x41,0x4F,0x42,0x45,0x52,0x4F,0x4E,0x00,0x09,0x00,0xCB,0x01,
0x00,0x00,0x2B,0x03,0x41,0x53,0x53,0x45,0x4D,0x42,0x4C,0x45,0x52,0x00,0x08,0x00,
0xCC,0x01,0x00,0x00,0x2B,0x03,0x41,0x55,0x54,0x4F,0x44,0x4F,0x43,0x53,0x0A,0x00,
0xCD,0x01,0x00,0x00,0x2B,0x03,0x42,0x4C,0x49,0x54,0x5A,0x42,0x41,0x53,0x49,0x43,
0x09,0x00,0xCE,0x01,0x00,0x00,0x2B,0x03,0x43,0x41,0x54,0x53,0x4F,0x55,0x52,0x43,
0x45,0x00,0x0A,0x00,0xD3,0x01,0x00,0x00,0x2B,0x03,0x44,0x45,0x4D,0x4F,0x53,0x4F,
0x55,0x52,0x43,0x45,0x04,0x00,0xD4,0x01,0x00,0x00,0x2B,0x03,0x44,0x49,0x43,0x45,
0x0C,0x00,0xD5,0x01,0x00,0x00,0x2B,0x03,0x44,0x49,0x53,0x54,0x52,0x49,0x42,0x55,
0x54,0x49,0x4F,0x4E,0x09,0x00,0xD7,0x01,0x00,0x00,0x2B,0x03,0x44,0x4F,0x43,0x53,
0x4F,0x55,0x52,0x43,0x45,0x00,0x02,0x00,0xD8,0x01,0x00,0x00,0x2B,0x03,0x46,0x44,
0x03,0x00,0xD9,0x01,0x00,0x00,0x2B,0x03,0x47,0x43,0x43,0x00,0x07,0x00,0xDE,0x01,
0x00,0x00,0x2B,0x03,0x49,0x4E,0x43,0x4C,0x55,0x44,0x45,0x00,0x03,0x00,0xE3,0x01,
0x00,0x00,0x2B,0x03,0x4C,0x49,0x42,0x00,0x09,0x00,0xE4,0x01,0x00,0x00,0x2B,0x03,
0x4C,0x49,0x42,0x53,0x4F,0x55,0x52,0x43,0x45,0x00,0x07,0x00,0xE5,0x01,0x00,0x00,
0x2B,0x03,0x4D,0x32,0x41,0x4D,0x49,0x47,0x41,0x00,0x0E,0x00,0xEF,0x01,0x00,0x00,
0x2E,0x03,0x57,0x4F,0x52,0x4B,0x42,0x45,0x4E,0x43,0x48,0x5F,0x32,0x2E,0x31,0x2B,
0x08,0x00,0x07,0x02,0x00,0x00,0x32,0x03,0x45,0x58,0x41,0x4D,0x50,0x4C,0x45,0x53,
0x04,0x00,0x08,0x02,0x00,0x00,0x32,0x03,0x52,0x45,0x58,0x58,0x0C,0x00,0x11,0x02,
0x00,0x00,0x3E,0x03,0x52,0x43,0x53,0x2E,0x52,0x43,0x53,0x46,0x49,0x4C,0x45,0x53,
0x07,0x00,0x1E,0x02,0x00,0x00,0x4A,0x03,0x44,0x45,0x55,0x54,0x53,0x43,0x48,0x00,
0x08,0x00,0x1F,0x02,0x00,0x00,0x4A,0x03,0x49,0x54,0x41,0x4C,0x49,0x41,0x4E,0x4F,
0x02,0x00,0x26,0x02,0x00,0x00,0x4C,0x03,0x4F,0x43,0x07,0x00,0x27,0x02,0x00,0x00,
0x4C,0x03,0x4F,0x43,0x50,0x52,0x45,0x46,0x53,0x00,0x02,0x00,0x28,0x02,0x00,0x00,
0x4C,0x03,0x4F,0x44,0x02,0x00,0x29,0x02,0x00,0x00,0x4C,0x03,0x4F,0x4C,0x07,0x00,
0x2A,0x02,0x00,0x00,0x4C,0x03,0x4F,0x4C,0x50,0x52,0x45,0x46,0x53,0x00,0x04,0x00,
0x2D,0x02,0x00,0x00,0x4D,0x03,0x41,0x4D,0x4F,0x4B,0x09,0x00,0x2F,0x02,0x00,0x00,
0x4D,0x03,0x4C,0x49,0x42,0x52,0x41,0x52,0x49,0x45,0x53,0x00,0x07,0x00,0x35,0x02,
0x00,0x00,0x4D,0x03,0x4F,0x42,0x45,0x52,0x4F,0x4E,0x30,0x00,0x06,0x00,0x36,0x02,
0x00,0x00,0x4D,0x03,0x52,0x4F,0x4C,0x41,0x4E,0x44,0x08,0x00,0x39,0x02,0x00,0x00,
0x54,0x03,0x33,0x52,0x44,0x50,0x41,0x52,0x54,0x59,0x05,0x00,0x49,0x02,0x00,0x00,
0x54,0x03,0x41,0x4D,0x49,0x47,0x41,0x00,0x09,0x00,0x3A,0x02,0x00,0x00,0x54,0x03,
0x41,0x4D,0x49,0x47,0x41,0x55,0x54,0x49,0x4C,0x00,0x05,0x00,0x3B,0x02,0x00,0x00,
0x54,0x03,0x45,0x41,0x47,0x55,0x49,0x00,0x03,0x00,0x38,0x02,0x00,0x00,0x54,0x03,
0x46,0x50,0x45,0x00,0x09,0x00,0x3C,0x02,0x00,0x00,0x54,0x03,0x46,0x52,0x41,0x4D,
0x45,0x57,0x4F,0x52,0x4B,0x00,0x06,0x00,0x3D,0x02,0x00,0x00,0x54,0x03,0x4B,0x45,
0x52,0x4E,0x45,0x4C,0x07,0x00,0x3E,0x02,0x00,0x00,0x54,0x03,0x4C,0x49,0x42,0x52,
0x41,0x52,0x59,0x00,0x04,0x00,0x42,0x02,0x00,0x00,0x54,0x03,0x4D,0x49,0x53,0x43,
0x08,0x00,0x3F,0x02,0x00,0x00,0x54,0x03,0x4F,0x42,0x53,0x4F,0x4C,0x45,0x54,0x45,
0x08,0x00,0x43,0x02,0x00,0x00,0x54,0x03,0x4F,0x42,0x55,0x4D,0x50,0x52,0x45,0x56,
0x02,0x00,0x48,0x02,0x00,0x00,0x54,0x03,0x4F,0x43,0x02,0x00,0x44,0x02,0x00,0x00,
0x54,0x03,0x4F,0x44,0x03,0x00,0x45,0x02,0x00,0x00,0x54,0x03,0x4F,0x45,0x4C,0x00,
0x02,0x00,0x46,0x02,0x00,0x00,0x54,0x03,0x4F,0x4C,0x03,0x00,0x47,0x02,0x00,0x00,
0x54,0x03,0x4F,0x52,0x55,0x00,0x0C,0x00,0x40,0x02,0x00,0x00,0x54,0x03,0x50,0x52,
0x4F,0x47,0x49,0x4E,0x4F,0x42,0x45,0x52,0x4F,0x4E,0x0D,0x00,0x41,0x02,0x00,0x00,
0x54,0x03,0x50,0x52,0x4F,0x4A,0x45,0x43,0x54,0x4F,0x42,0x45,0x52,0x4F,0x4E,0x00,
0x04,0x00,0x70,0x02,0x00,0x00,0x5D,0x03,0x44,0x4F,0x43,0x53,0x07,0x00,0x79,0x02,
0x00,0x00,0x5E,0x03,0x44,0x45,0x55,0x54,0x53,0x43,0x48,0x00,0x07,0x00,0x8B,0x02,
0x00,0x00,0x64,0x03,0x44,0x45,0x55,0x54,0x53,0x43,0x48,0x00,0x07,0x00,0x8A,0x02,
0x00,0x00,0x64,0x03,0x45,0x4E,0x47,0x4C,0x49,0x53,0x48,0x00,0x08,0x00,0x89,0x02,
0x00,0x00,0x64,0x03,0x46,0x52,0x41,0x4E,0xC7,0x41,0x49,0x53,0x07,0x00,0x88,0x02,
0x00,0x00,0x64,0x03,0x53,0x56,0x45,0x4E,0x53,0x4B,0x41,0x00,0x07,0x00,0x86,0x02,
0x00,0x00,0x65,0x03,0x4D,0x41,0x54,0x45,0x49,0x4E,0x32,0x00,0x07,0x00,0x85,0x02,
0x00,0x00,0x65,0x03,0x4D,0x41,0x54,0x45,0x49,0x4E,0x33,0x00,0x07,0x00,0x92,0x02,
0x00,0x00,0x6D,0x03,0x47,0x45,0x4F,0x41,0x4E,0x49,0x4D,0x00,0x03,0x00,0x94,0x02,
0x00,0x00,0x72,0x03,0x47,0x45,0x4F,0x00,0x05,0x00,0x95,0x02,0x00,0x00,0x72,0x03,
0x54,0x52,0x41,0x4E,0x53,0x00,0x07,0x00,0x97,0x02,0x00,0x00,0x74,0x03,0x45,0x4E,
0x47,0x4C,0x49,0x53,0x48,0x00,0x06,0x00,0xAE,0x02,0x00,0x00,0x77,0x03,0x49,0x4D,
0x41,0x47,0x45,0x53,0x07,0x00,0xB0,0x02,0x00,0x00,0x78,0x03,0x4D,0x41,0x47,0x49,
0x43,0x57,0x42,0x00,0x06,0x00,0xB1,0x02,0x00,0x00,0x78,0x03,0x4E,0x4F,0x52,0x4D,
0x41,0x4C,0x08,0x00,0xB3,0x02,0x00,0x00,0x79,0x03,0x47,0x41,0x4D,0x45,0x2E,0x4C,
0x56,0x4C,0x03,0x00,0xB4,0x02,0x00,0x00,0x79,0x03,0x47,0x46,0x58,0x00,0x03,0x00,
0xB7,0x02,0x00,0x00,0x79,0x03,0x53,0x46,0x58,0x00,0x0C,0x00,0xB8,0x02,0x00,0x00,
0x79,0x03,0x54,0x55,0x54,0x4F,0x52,0x49,0x41,0x4C,0x2E,0x4C,0x56,0x4C,0x08,0x00,
0xBA,0x02,0x00,0x00,0x7A,0x03,0x47,0x41,0x4D,0x45,0x2E,0x4C,0x56,0x4C,0x08,0x00,
0xBC,0x02,0x00,0x00,0x7B,0x03,0x45,0x41,0x53,0x59,0x2E,0x4C,0x56,0x4C,0x08,0x00,
0xBD,0x02,0x00,0x00,0x7B,0x03,0x47,0x41,0x4D,0x45,0x2E,0x4C,0x56,0x4C,0x03,0x00,
0xBF,0x02,0x00,0x00,0x7C,0x03,0x47,0x46,0x58,0x00,0x08,0x00,0xC1,0x02,0x00,0x00,
0x7D,0x03,0x45,0x41,0x53,0x59,0x2E,0x4C,0x56,0x4C,0x08,0x00,0xC2,0x02,0x00,0x00,
0x7D,0x03,0x47,0x41,0x4D,0x45,0x2E,0x4C,0x56,0x4C,0x03,0x00,0xC3,0x02,0x00,0x00,
0x7D,0x03,0x53,0x46,0x58,0x00,0x0C,0x00,0xC4,0x02,0x00,0x00,0x7D,0x03,0x54,0x55,
0x54,0x4F,0x52,0x49,0x41,0x4C,0x2E,0x4C,0x56,0x4C,0x0C,0x00,0xC6,0x02,0x00,0x00,
0x7E,0x03,0x54,0x55,0x54,0x4F,0x52,0x49,0x41,0x4C,0x2E,0x4C,0x56,0x4C,0x03,0x00,
0xC8,0x02,0x00,0x00,0x7F,0x03,0x53,0x46,0x58,0x00,0x03,0x00,0xCA,0x02,0x00,0x00,
0x80,0x03,0x47,0x46,0x58,0x00,0x07,0x00,0xCD,0x02,0x00,0x00,0x81,0x03,0x4D,0x41,
0x47,0x49,0x43,0x57,0x42,0x00,0x06,0x00,0xCE,0x02,0x00,0x00,0x81,0x03,0x4E,0x4F,
0x52,0x4D,0x41,0x4C,0x03,0x00,0xD0,0x02,0x00,0x00,0x82,0x03,0x47,0x46,0x58,0x00,
0x03,0x00,0xD4,0x02,0x00,0x00,0x83,0x03,0x47,0x46,0x58,0x00,0x07,0x00,0xD7,0x02,
0x00,0x00,0x84,0x03,0x4D,0x41,0x47,0x49,0x43,0x57,0x42,0x00,0x06,0x00,0xD8,0x02,
0x00,0x00,0x84,0x03,0x4E,0x4F,0x52,0x4D,0x41,0x4C,0x07,0x00,0xDC,0x02,0x00,0x00,
0x86,0x03,0x4D,0x41,0x47,0x49,0x43,0x57,0x42,0x00,0x06,0x00,0xDD,0x02,0x00,0x00,
0x86,0x03,0x4E,0x4F,0x52,0x4D,0x41,0x4C,0x07,0x00,0xEF,0x02,0x00,0x00,0x8B,0x03,
0x44,0x45,0x55,0x54,0x53,0x43,0x48,0x00,0x05,0x00,0xF0,0x02,0x00,0x00,0x8B,0x03,
0x4E,0x4F,0x52,0x53,0x4B,0x00,0x06,0x00,0xF1,0x02,0x00,0x00,0x8B,0x03,0x50,0x4F,
0x4C,0x53,0x4B,0x49,0x07,0x00,0xF2,0x02,0x00,0x00,0x8B,0x03,0x53,0x56,0x45,0x4E,
0x53,0x4B,0x41,0x00,0x07,0x00,0x13,0x03,0x00,0x00,0x98,0x03,0x44,0x45,0x55,0x54,
0x53,0x43,0x48,0x00,0x09,0x00,0x10,0x03,0x00,0x00,0x9A,0x03,0x43,0x55,0x50,0x50,
0x45,0x52,0x4C,0x59,0x31,0x00,0x08,0x00,0x0F,0x03,0x00,0x00,0x9A,0x03,0x44,0x4F,
0x4D,0x49,0x4E,0x41,0x4E,0x54,0x07,0x00,0x0D,0x03,0x00,0x00,0x9B,0x03,0x4D,0x41,
0x47,0x49,0x43,0x57,0x42,0x00,0x08,0x00,0x0C,0x03,0x00,0x00,0x9B,0x03,0x53,0x54,
0x41,0x4E,0x44,0x41,0x52,0x44,0x07,0x00,0x24,0x03,0x00,0x00,0x9D,0x03,0x44,0x45,
0x55,0x54,0x53,0x43,0x48,0x00,0x07,0x00,0x23,0x03,0x00,0x00,0x9D,0x03,0x45,0x4E,
0x47,0x4C,0x49,0x53,0x48,0x00,0x08,0x00,0x22,0x03,0x00,0x00,0x9D,0x03,0x46,0x52,
0x41,0x4E,0xC7,0x41,0x49,0x53,0x07,0x00,0x79,0x03,0x00,0x00,0x9F,0x03,0x43,0x4C,
0x41,0x53,0x53,0x45,0x53,0x00,0x04,0x00,0x7B,0x03,0x00,0x00,0x9F,0x03,0x4C,0x49,
0x42,0x53,0x0C,0x00,0x28,0x03,0x00,0x00,0xA1,0x03,0x44,0x45,0x46,0x41,0x55,0x4C,
0x54,0x49,0x43,0x4F,0x4E,0x53,0x07,0x00,0x2A,0x03,0x00,0x00,0xA2,0x03,0x44,0x45,
0x55,0x54,0x53,0x43,0x48,0x00,0x07,0x00,0x2B,0x03,0x00,0x00,0xA2,0x03,0x45,0x4E,
0x47,0x4C,0x49,0x53,0x48,0x00,0x08,0x00,0x2D,0x03,0x00,0x00,0xA3,0x03,0x43,0x41,
0x54,0x41,0x4C,0x4F,0x47,0x53,0x0C,0x00,0x31,0x03,0x00,0x00,0xA3,0x03,0x54,0x52,
0x41,0x4E,0x53,0x4C,0x41,0x54,0x49,0x4F,0x4E,0x53,0x05,0x00,0x35,0x03,0x00,0x00,
0xA4,0x03,0x42,0x4F,0x4E,0x55,0x53,0x00,0x04,0x00,0x4D,0x03,0x00,0x00,0xA4,0x03,
0x44,0x4F,0x43,0x53,0x03,0x00,0x64,0x03,0x00,0x00,0xA4,0x03,0x45,0x4E,0x56,0x00,
0x04,0x00,0x66,0x03,0x00,0x00,0xA4,0x03,0x4C,0x49,0x42,0x53,0x06,0x00,0x6F,0x03,
0x00,0x00,0xA4,0x03,0x4C,0x4F,0x43,0x41,0x4C,0x45,0x0E,0x00,0x76,0x03,0x00,0x00,
0xA4,0x03,0x53,0x55,0x50,0x45,0x52,0x56,0x49,0x45,0x57,0x50,0x52,0x45,0x46,0x53,
0x03,0x00,0x93,0x03,0x00,0x00,0xA5,0x03,0x42,0x49,0x4E,0x00,0x03,0x00,0x92,0x03,
0x00,0x00,0xA5,0x03,0x45,0x54,0x43,0x00,0x07,0x00,0x8E,0x03,0x00,0x00,0xA5,0x03,
0x49,0x4E,0x43,0x4C,0x55,0x44,0x45,0x00,0x03,0x00,0x85,0x03,0x00,0x00,0xA5,0x03,
0x4C,0x49,0x42,0x00,0x04,0x00,0x84,0x03,0x00,0x00,0xA5,0x03,0x4C,0x49,0x42,0x53,
0x03,0x00,0x83,0x03,0x00,0x00,0xA5,0x03,0x4D,0x41,0x4E,0x00,0x03,0x00,0x82,0x03,
0x00,0x00,0xA5,0x03,0x58,0x4C,0x45,0x00,0x03,0x00,0x81,0x03,0x00,0x00,0xA5,0x03,
0x58,0x53,0x44,0x00,0x03,0x00,0x80,0x03,0x00,0x00,0xA5,0x03,0x58,0x53,0x4B,0x00,
0x03,0x00,0x7F,0x03,0x00,0x00,0xA5,0x03,0x58,0x54,0x50,0x00,0x07,0x00,0x9E,0x03,
0x00,0x00,0xA6,0x03,0x44,0x45,0x55,0x54,0x53,0x43,0x48,0x00,0x09,0x00,0xA1,0x03,
0x00,0x00,0xAB,0x03,0x43,0x41,0x4C,0x43,0x46,0x4F,0x4E,0x54,0x31,0x00,0x09,0x00,
0xA2,0x03,0x00,0x00,0xAB,0x03,0x43,0x41,0x4C,0x43,0x46,0x4F,0x4E,0x54,0x32,0x00,
0x09,0x00,0xA3,0x03,0x00,0x00,0xAB,0x03,0x43,0x41,0x4C,0x43,0x46,0x4F,0x4E,0x54,
0x33,0x00,0x09,0x00,0xA4,0x03,0x00,0x00,0xAB,0x03,0x43,0x41,0x4C,0x43,0x46,0x4F,
0x4E,0x54,0x34,0x00,0x07,0x00,0xB8,0x03,0x00,0x00,0xAE,0x03,0x45,0x4E,0x47,0x4C,
0x49,0x53,0x48,0x00,0x08,0x00,0xB9,0x03,0x00,0x00,0xAE,0x03,0x46,0x52,0x41,0x4E,
0xC7,0x41,0x49,0x53,0x07,0x00,0xAD,0x03,0x00,0x00,0xAF,0x03,0x4C,0x4F,0x52,0x45,
0x53,0x2D,0x35,0x00,0x04,0x00,0xAE,0x03,0x00,0x00,0xAF,0x03,0x4C,0x59,0x4E,0x58,
0x04,0x00,0xB2,0x03,0x00,0x00,0xB4,0x03,0x50,0x41,0x4C,0x34,0x04,0x00,0xB3,0x03,
0x00,0x00,0xB4,0x03,0x50,0x41,0x4C,0x35,0x04,0x00,0xB4,0x03,0x00,0x00,0xB4,0x03,
0x50,0x41,0x4C,0x36,0x04,0x00,0xB5,0x03,0x00,0x00,0xB4,0x03,0x50,0x41,0x4C,0x37,
0x04,0x00,0xB6,0x03,0x00,0x00,0xB4,0x03,0x50,0x41,0x4C,0x38,0x0B,0x00,0xC3,0x03,
0x00,0x00,0xBC,0x03,0x45,0x4E,0x56,0x2D,0x41,0x52,0x43,0x48,0x49,0x56,0x45,0x00,
0x09,0x00,0xE2,0x03,0x00,0x00,0xBF,0x03,0x44,0x49,0x53,0x4B,0x49,0x43,0x4F,0x4E,
0x53,0x00,0x09,0x00,0xE0,0x03,0x00,0x00,0xBF,0x03,0x54,0x4F,0x4F,0x4C,0x49,0x43,
0x4F,0x4E,0x53,0x00,0x0B,0x00,0xDC,0x03,0x00,0x00,0xC1,0x03,0x45,0x4E,0x56,0x2D,
0x41,0x52,0x43,0x48,0x49,0x56,0x45,0x00,0x08,0x00,0xDB,0x03,0x00,0x00,0xC1,0x03,
0x50,0x41,0x54,0x54,0x45,0x52,0x4E,0x53,0x06,0x00,0x1D,0x04,0x00,0x00,0xC6,0x03,
0x49,0x4D,0x41,0x47,0x45,0x53,0x06,0x00,0x1F,0x04,0x00,0x00,0xC7,0x03,0x43,0x4F,
0x4E,0x46,0x49,0x47,0x03,0x00,0x20,0x04,0x00,0x00,0xC7,0x03,0x44,0x4F,0x43,0x00,
0x05,0x00,0x24,0x04,0x00,0x00,0xC7,0x03,0x46,0x4F,0x4E,0x54,0x53,0x00,0x05,0x00,
0x26,0x04,0x00,0x00,0xC7,0x03,0x49,0x43,0x4F,0x4E,0x53,0x00,0x04,0x00,0x33,0x04,
0x00,0x00,0xC7,0x03,0x4D,0x41,0x49,0x4E,0x07,0x00,0x52,0x04,0x00,0x00,0xC7,0x03,
0x50,0x52,0x45,0x53,0x45,0x54,0x53,0x00,0x05,0x00,0x55,0x04,0x00,0x00,0xC7,0x03,
0x54,0x4F,0x4F,0x4C,0x53,0x00,0x01,0x00,0x67,0x04,0x00,0x00,0xCE,0x03,0x4F,0x00,
0x01,0x00,0x6C,0x04,0x00,0x00,0xD1,0x03,0x4F,0x00,0x01,0x00,0x70,0x04,0x00,0x00,
0xD3,0x03,0x43,0x00,0x0A,0x00,0x71,0x04,0x00,0x00,0xD3,0x03,0x49,0x4E,0x54,0x45,
0x52,0x46,0x41,0x43,0x45,0x53,0x06,0x00,0x7F,0x04,0x00,0x00,0xD3,0x03,0x49,0x53,
0x50,0x45,0x4C,0x4C,0x06,0x00,0x82,0x04,0x00,0x00,0xD5,0x03,0x4C,0x4F,0x43,0x41,
0x4C,0x45,0x07,0x00,0x85,0x04,0x00,0x00,0xD5,0x03,0x50,0x52,0x45,0x53,0x45,0x54,
0x53,0x00,0x04,0x00,0x87,0x04,0x00,0x00,0xD6,0x03,0x44,0x41,0x54,0x41,0x0A,0x00,
0x8C,0x04,0x00,0x00,0xDC,0x03,0x44,0x4F,0x53,0x44,0x52,0x49,0x56,0x45,0x52,0x53,
0x0D,0x00,0xC8,0x04,0x00,0x00,0xEA,0x03,0x4D,0x4F,0x44,0x55,0x4C,0x45,0x53,0x4F,
0x55,0x52,0x43,0x45,0x53,0x00,0x08,0x00,0xC2,0x04,0x00,0x00,0xED,0x03,0x43,0x41,
0x54,0x41,0x4C,0x4F,0x47,0x53,0x0A,0x00,0xBD,0x04,0x00,0x00,0xEE,0x03,0x42,0x4C,
0x49,0x54,0x5A,0x42,0x4C,0x41,0x4E,0x4B,0x08,0x00,0xFC,0x04,0x00,0x00,0xF2,0x03,
0x46,0x52,0x41,0x4E,0xC7,0x41,0x49,0x53,0x07,0x00,0xD0,0x04,0x00,0x00,0xF5,0x03,
0x44,0x45,0x55,0x54,0x53,0x43,0x48,0x00,0x07,0x00,0xEA,0x04,0x00,0x00,0xF8,0x03,
0x44,0x45,0x55,0x54,0x53,0x43,0x48,0x00,0x08,0x00,0xEB,0x04,0x00,0x00,0xF8,0x03,
0x49,0x54,0x41,0x4C,0x49,0x41,0x4E,0x4F,0x07,0x00,0xED,0x04,0x00,0x00,0xF9,0x03,
0x44,0x45,0x55,0x54,0x53,0x43,0x48,0x00,0x07,0x00,0xEE,0x04,0x00,0x00,0xF9,0x03,
0x45,0x4E,0x47,0x4C,0x49,0x53,0x48,0x00,0x03,0x00,0xF6,0x04,0x00,0x00,0xFB,0x03,
0x53,0x52,0x43,0x00,0x09,0x00,0xF5,0x04,0x00,0x00,0xFB,0x03,0x57,0x42,0x53,0x54,
0x41,0x52,0x54,0x55,0x50,0x00,0x05,0x00,0xE6,0x04,0x00,0x00,0xFF,0x03,0x44,0x41,
0x4E,0x53,0x4B,0x00,0x07,0x00,0xE5,0x04,0x00,0x00,0xFF,0x03,0x44,0x45,0x55,0x54,
0x53,0x43,0x48,0x00,0x08,0x00,0xE4,0x04,0x00,0x00,0xFF,0x03,0x46,0x52,0x41,0x4E,
0xC7,0x41,0x49,0x53,0x08,0x00,0xE3,0x04,0x00,0x00,0xFF,0x03,0x49,0x54,0x41,0x4C,
0x49,0x41,0x4E,0x4F,0x0A,0x00,0xE2,0x04,0x00,0x00,0xFF,0x03,0x4E,0x45,0x44,0x45,
0x52,0x4C,0x41,0x4E,0x44,0x53,0x05,0x00,0xE1,0x04,0x00,0x00,0xFF,0x03,0x53,0x55,
0x4F,0x4D,0x49,0x00,0x07,0x00,0xE0,0x04,0x00,0x00,0xFF,0x03,0x53,0x56,0x45,0x4E,
0x53,0x4B,0x41,0x00,0x07,0x00,0xDE,0x04,0x00,0x00,0x00,0x04,0x45,0x4E,0x47,0x4C,
0x49,0x53,0x48,0x00,0x08,0x00,0xDD,0x04,0x00,0x00,0x00,0x04,0x46,0x52,0x41,0x4E,
0xC7,0x41,0x49,0x53,0x05,0x00,0xD8,0x04,0x00,0x00,0x04,0x04,0x50,0x52,0x45,0x46,
0x53,0x00,0x09,0x00,0xD7,0x04,0x00,0x00,0x04,0x04,0x57,0x42,0x53,0x54,0x41,0x52,
0x54,0x55,0x50,0x00,0x09,0x00,0x05,0x05,0x00,0x00,0x08,0x04,0x44,0x41,0x54,0x41,
0x54,0x59,0x50,0x45,0x53,0x00,0x09,0x00,0x07,0x05,0x00,0x00,0x09,0x04,0x44,0x41,
0x54,0x41,0x54,0x59,0x50,0x45,0x53,0x00,0x09,0x00,0x0A,0x05,0x00,0x00,0x0B,0x04,
0x44,0x41,0x54,0x41,0x54,0x59,0x50,0x45,0x53,0x00,0x03,0x00,0x0E,0x05,0x00,0x00,
0x0E,0x04,0x52,0x43,0x53,0x00,0x09,0x00,0x14,0x05,0x00,0x00,0x10,0x04,0x44,0x41,
0x54,0x41,0x54,0x59,0x50,0x45,0x53,0x00,0x09,0x00,0x16,0x05,0x00,0x00,0x11,0x04,
0x44,0x41,0x54,0x41,0x54,0x59,0x50,0x45,0x53,0x00,0x0B,0x00,0x18,0x05,0x00,0x00,
0x12,0x04,0x45,0x4E,0x56,0x2D,0x41,0x52,0x43,0x48,0x49,0x56,0x45,0x00,0x07,0x00,
0x1A,0x05,0x00,0x00,0x12,0x04,0x50,0x52,0x45,0x53,0x45,0x54,0x53,0x00,0x06,0x00,
0x3B,0x05,0x00,0x00,0x16,0x04,0x53,0x4F,0x55,0x52,0x43,0x45,0x07,0x00,0x45,0x05,
0x00,0x00,0x17,0x04,0x44,0x45,0x55,0x54,0x53,0x43,0x48,0x00,0x07,0x00,0x44,0x05,
0x00,0x00,0x17,0x04,0x45,0x4E,0x47,0x4C,0x49,0x53,0x48,0x00,0x08,0x00,0x3D,0x05,
0x00,0x00,0x18,0x04,0x43,0x41,0x54,0x41,0x4C,0x4F,0x47,0x53,0x06,0x00,0x3F,0x05,
0x00,0x00,0x18,0x04,0x53,0x4F,0x55,0x52,0x43,0x45,0x0E,0x00,0x41,0x05,0x00,0x00,
0x19,0x04,0x41,0x53,0x43,0x53,0x45,0x4E,0x44,0x2D,0x53,0x4F,0x55,0x52,0x43,0x45,
0x0B,0x00,0x42,0x05,0x00,0x00,0x19,0x04,0x49,0x52,0x45,0x43,0x2D,0x53,0x4F,0x55,
0x52,0x43,0x45,0x00,0x04,0x00,0x25,0x05,0x00,0x00,0x1B,0x04,0x44,0x4F,0x43,0x53,
0x05,0x00,0x28,0x05,0x00,0x00,0x1C,0x04,0x44,0x41,0x4E,0x53,0x4B,0x00,0x07,0x00,
0x29,0x05,0x00,0x00,0x1C,0x04,0x44,0x45,0x55,0x54,0x53,0x43,0x48,0x00,0x08,0x00,
0x2A,0x05,0x00,0x00,0x1C,0x04,0x49,0x54,0x41,0x4C,0x49,0x41,0x4E,0x4F,0x0A,0x00,
0x2B,0x05,0x00,0x00,0x1C,0x04,0x4E,0x45,0x44,0x45,0x52,0x4C,0x41,0x4E,0x44,0x53,
0x05,0x00,0x2C,0x05,0x00,0x00,0x1C,0x04,0x4E,0x4F,0x52,0x53,0x4B,0x00,0x07,0x00,
0x2D,0x05,0x00,0x00,0x1C,0x04,0x53,0x56,0x45,0x4E,0x53,0x4B,0x41,0x00,0x0C,0x00,
0x2E,0x05,0x00,0x00,0x1C,0x04,0x59,0x4F,0x55,0x52,0x4C,0x41,0x4E,0x47,0x55,0x41,
0x47,0x45,0x08,0x00,0x33,0x05,0x00,0x00,0x20,0x04,0x45,0x58,0x41,0x4D,0x50,0x4C,
0x45,0x53,0x08,0x00,0x34,0x05,0x00,0x00,0x20,0x04,0x48,0x41,0x52,0x44,0x57,0x41,
0x52,0x45,0x09,0x00,0x35,0x05,0x00,0x00,0x20,0x04,0x52,0x45,0x58,0x58,0x45,0x56,
0x45,0x4E,0x54,0x00,0x05,0x00,0x4E,0x05,0x00,0x00,0x23,0x04,0x44,0x41,0x4E,0x53,
0x4B,0x00,0x07,0x00,0x4F,0x05,0x00,0x00,0x23,0x04,0x44,0x45,0x55,0x54,0x53,0x43,
0x48,0x00,0x07,0x00,0x50,0x05,0x00,0x00,0x23,0x04,0x45,0x53,0x50,0x41,0xD1,0x4F,
0x4C,0x00,0x08,0x00,0x51,0x05,0x00,0x00,0x23,0x04,0x46,0x52,0x41,0x4E,0xC7,0x41,
0x49,0x53,0x08,0x00,0x52,0x05,0x00,0x00,0x23,0x04,0x49,0x54,0x41,0x4C,0x49,0x41,
0x4E,0x4F,0x07,0x00,0x53,0x05,0x00,0x00,0x23,0x04,0x53,0x56,0x45,0x4E,0x53,0x4B,
0x41,0x00,0x02,0x00,0x56,0x05,0x00,0x00,0x25,0x04,0x46,0x44,0x07,0x00,0x57,0x05,
0x00,0x00,0x25,0x04,0x49,0x4E,0x43,0x4C,0x55,0x44,0x45,0x00,0x03,0x00,0x58,0x05,
0x00,0x00,0x25,0x04,0x4C,0x49,0x42,0x00,0x04,0x00,0x59,0x05,0x00,0x00,0x25,0x04,
0x4C,0x49,0x42,0x53,0x07,0x00,0x63,0x05,0x00,0x00,0x2F,0x04,0x44,0x45,0x55,0x54,
0x53,0x43,0x48,0x00,0x07,0x00,0x64,0x05,0x00,0x00,0x2F,0x04,0x45,0x4E,0x47,0x4C,
0x49,0x53,0x48,0x00,0x03,0x00,0x72,0x05,0x00,0x00,0x36,0x04,0x58,0x46,0x44,0x00,
0x03,0x00,0x7C,0x05,0x00,0x00,0x37,0x04,0x58,0x46,0x44,0x00,0x13,0x00,0xA5,0x05,
0x00,0x00,0x3E,0x04,0x49,0x43,0x4F,0x4E,0x49,0x5A,0x41,0x54,0x49,0x4F,0x4E,0x5F,
0x45,0x58,0x41,0x4D,0x50,0x4C,0x45,0x00,0x16,0x00,0x92,0x05,0x00,0x00,0x3E,0x04,
0x53,0x4D,0x41,0x52,0x54,0x5F,0x43,0x4C,0x45,0x41,0x4E,0x55,0x50,0x5F,0x45,0x58,
0x41,0x4D,0x50,0x4C,0x45,0x53,0x18,0x00,0x8E,0x05,0x00,0x00,0x3E,0x04,0x53,0x50,
0x45,0x43,0x49,0x41,0x4C,0x5F,0x45,0x46,0x46,0x45,0x43,0x54,0x53,0x5F,0x45,0x58,
0x41,0x4D,0x50,0x4C,0x45,0x53,0x06,0x00,0x8C,0x05,0x00,0x00,0x3F,0x04,0x4D,0x41,
0x4E,0x55,0x41,0x4C,0x07,0x00,0x85,0x05,0x00,0x00,0x43,0x04,0x44,0x45,0x55,0x54,
0x53,0x43,0x48,0x00,0x04,0x00,0x5B,0x06,0x00,0x00,0x47,0x04,0x43,0x4C,0x49,0x42,
0x07,0x00,0x5C,0x06,0x00,0x00,0x47,0x04,0x44,0x45,0x56,0x49,0x43,0x45,0x53,0x00,
0x03,0x00,0x5D,0x06,0x00,0x00,0x47,0x04,0x44,0x4F,0x53,0x00,0x04,0x00,0x5E,0x06,
0x00,0x00,0x47,0x04,0x45,0x58,0x45,0x43,0x08,0x00,0x5F,0x06,0x00,0x00,0x47,0x04,
0x47,0x52,0x41,0x50,0x48,0x49,0x43,0x53,0x08,0x00,0x60,0x06,0x00,0x00,0x47,0x04,
0x48,0x41,0x52,0x44,0x57,0x41,0x52,0x45,0x09,0x00,0x61,0x06,0x00,0x00,0x47,0x04,
0x49,0x4E,0x54,0x55,0x49,0x54,0x49,0x4F,0x4E,0x00,0x09,0x00,0x62,0x06,0x00,0x00,
0x47,0x04,0x4C,0x49,0x42,0x52,0x41,0x52,0x49,0x45,0x53,0x00,0x09,0x00,0x63,0x06,
0x00,0x00,0x47,0x04,0x52,0x45,0x53,0x4F,0x55,0x52,0x43,0x45,0x53,0x00,0x04,0x00,
0x64,0x06,0x00,0x00,0x47,0x04,0x52,0x45,0x58,0x58,0x07,0x00,0x65,0x06,0x00,0x00,
0x47,0x04,0x55,0x54,0x49,0x4C,0x49,0x54,0x59,0x00,0x09,0x00,0x66,0x06,0x00,0x00,
0x47,0x04,0x57,0x4F,0x52,0x4B,0x42,0x45,0x4E,0x43,0x48,0x00,0x04,0x00,0x6D,0x06,
0x00,0x00,0x4C,0x04,0x43,0x4C,0x49,0x42,0x09,0x00,0x6F,0x06,0x00,0x00,0x4C,0x04,
0x44,0x41,0x54,0x41,0x54,0x59,0x50,0x45,0x53,0x00,0x07,0x00,0x70,0x06,0x00,0x00,
0x4C,0x04,0x44,0x45,0x56,0x49,0x43,0x45,0x53,0x00,0x08,0x00,0x71,0x06,0x00,0x00,
0x4C,0x04,0x44,0x49,0x53,0x4B,0x46,0x4F,0x4E,0x54,0x03,0x00,0x72,0x06,0x00,0x00,
0x4C,0x04,0x44,0x4F,0x53,0x00,0x04,0x00,0x73,0x06,0x00,0x00,0x4C,0x04,0x45,0x58,
0x45,0x43,0x07,0x00,0x74,0x06,0x00,0x00,0x4C,0x04,0x47,0x41,0x44,0x47,0x45,0x54,
0x53,0x00,0x08,0x00,0x75,0x06,0x00,0x00,0x4C,0x04,0x47,0x52,0x41,0x50,0x48,0x49,
0x43,0x53,0x08,0x00,0x76,0x06,0x00,0x00,0x4C,0x04,0x48,0x41,0x52,0x44,0x57,0x41,
0x52,0x45,0x09,0x00,0x77,0x06,0x00,0x00,0x4C,0x04,0x49,0x4E,0x54,0x55,0x49,0x54,
0x49,0x4F,0x4E,0x00,0x09,0x00,0x78,0x06,0x00,0x00,0x4C,0x04,0x4C,0x49,0x42,0x52,
0x41,0x52,0x49,0x45,0x53,0x00,0x05,0x00,0x79,0x06,0x00,0x00,0x4C,0x04,0x50,0x52,
0x45,0x46,0x53,0x00,0x09,0x00,0x7A,0x06,0x00,0x00,0x4C,0x04,0x52,0x45,0x53,0x4F,
0x55,0x52,0x43,0x45,0x53,0x00,0x04,0x00,0x7B,0x06,0x00,0x00,0x4C,0x04,0x52,0x45,
0x58,0x58,0x07,0x00,0x7C,0x06,0x00,0x00,0x4C,0x04,0x55,0x54,0x49,0x4C,0x49,0x54,
0x59,0x00,0x09,0x00,0x7D,0x06,0x00,0x00,0x4C,0x04,0x57,0x4F,0x52,0x4B,0x42,0x45,
0x4E,0x43,0x48,0x00,0x04,0x00,0x81,0x06,0x00,0x00,0x4E,0x04,0x44,0x4F,0x43,0x53,
0x04,0x00,0x85,0x06,0x00,0x00,0x50,0x04,0x43,0x4C,0x49,0x42,0x09,0x00,0x87,0x06,
0x00,0x00,0x50,0x04,0x44,0x41,0x54,0x41,0x54,0x59,0x50,0x45,0x53,0x00,0x07,0x00,
0x88,0x06,0x00,0x00,0x50,0x04,0x44,0x45,0x56,0x49,0x43,0x45,0x53,0x00,0x08,0x00,
0x89,0x06,0x00,0x00,0x50,0x04,0x44,0x49,0x53,0x4B,0x46,0x4F,0x4E,0x54,0x03,0x00,
0x8A,0x06,0x00,0x00,0x50,0x04,0x44,0x4F,0x53,0x00,0x04,0x00,0x8B,0x06,0x00,0x00,
0x50,0x04,0x45,0x58,0x45,0x43,0x07,0x00,0x8C,0x06,0x00,0x00,0x50,0x04,0x47,0x41,
0x44,0x47,0x45,0x54,0x53,0x00,0x08,0x00,0x8D,0x06,0x00,0x00,0x50,0x04,0x47,0x52,
0x41,0x50,0x48,0x49,0x43,0x53,0x08,0x00,0x8E,0x06,0x00,0x00,0x50,0x04,0x48,0x41,
0x52,0x44,0x57,0x41,0x52,0x45,0x09,0x00,0x8F,0x06,0x00,0x00,0x50,0x04,0x49,0x4E,
0x54,0x55,0x49,0x54,0x49,0x4F,0x4E,0x00,0x09,0x00,0x90,0x06,0x00,0x00,0x50,0x04,
0x4C,0x49,0x42,0x52,0x41,0x52,0x49,0x45,0x53,0x00,0x05,0x00,0x92,0x06,0x00,0x00,
0x50,0x04,0x50,0x52,0x45,0x46,0x53,0x00,0x09,0x00,0x93,0x06,0x00,0x00,0x50,0x04,
0x52,0x45,0x53,0x4F,0x55,0x52,0x43,0x45,0x53,0x00,0x04,0x00,0x94,0x06,0x00,0x00,
0x50,0x04,0x52,0x45,0x58,0x58,0x07,0x00,0x95,0x06,0x00,0x00,0x50,0x04,0x55,0x54,
0x49,0x4C,0x49,0x54,0x59,0x00,0x09,0x00,0x96,0x06,0x00,0x00,0x50,0x04,0x57,0x4F,
0x52,0x4B,0x42,0x45,0x4E,0x43,0x48,0x00,0x04,0x00,0x92,0x0A,0x00,0x00,0x58,0x04,
0x44,0x45,0x56,0x53,0x03,0x00,0x94,0x0A,0x00,0x00,0x58,0x04,0x45,0x4E,0x56,0x00,
0x05,0x00,0x96,0x0A,0x00,0x00,0x58,0x04,0x46,0x4F,0x4E,0x54,0x53,0x00,0x08,0x00,
0x9F,0x0A,0x00,0x00,0x58,0x04,0x47,0x4E,0x55,0x45,0x4D,0x41,0x43,0x53,0x06,0x00,
0xA6,0x0A,0x00,0x00,0x5C,0x04,0x41,0x4D,0x49,0x54,0x43,0x50,0x04,0x00,0xA7,0x0A,
0x00,0x00,0x5C,0x04,0x41,0x52,0x50,0x41,0x04,0x00,0xA8,0x0A,0x00,0x00,0x5C,0x04,
0x43,0x4C,0x49,0x42,0x07,0x00,0xA9,0x0A,0x00,0x00,0x5C,0x04,0x44,0x45,0x56,0x49,
0x43,0x45,0x53,0x00,0x02,0x00,0xAA,0x0A,0x00,0x00,0x5C,0x04,0x46,0x44,0x06,0x00,
0xAB,0x0A,0x00,0x00,0x5C,0x04,0x49,0x4E,0x4C,0x49,0x4E,0x45,0x09,0x00,0xAC,0x0A,
0x00,0x00,0x5C,0x04,0x4C,0x49,0x42,0x52,0x41,0x52,0x49,0x45,0x53,0x00,0x03,0x00,
0xAD,0x0A,0x00,0x00,0x5C,0x04,0x4E,0x45,0x54,0x00,0x07,0x00,0xAE,0x0A,0x00,0x00,
0x5C,0x04,0x4E,0x45,0x54,0x49,0x4E,0x45,0x54,0x00,0x07,0x00,0xAF,0x0A,0x00,0x00,
0x5C,0x04,0x50,0x52,0x41,0x47,0x4D,0x41,0x53,0x00,0x05,0x00,0xB0,0x0A,0x00,0x00,
0x5C,0x04,0x50,0x52,0x4F,0x54,0x4F,0x00,0x09,0x00,0xB1,0x0A,0x00,0x00,0x5C,0x04,
0x50,0x52,0x4F,0x54,0x4F,0x43,0x4F,0x4C,0x53,0x00,0x03,0x00,0xB2,0x0A,0x00,0x00,
0x5C,0x04,0x52,0x50,0x43,0x00,0x06,0x00,0xB3,0x0A,0x00,0x00,0x5C,0x04,0x52,0x50,
0x43,0x53,0x56,0x43,0x03,0x00,0xB4,0x0A,0x00,0x00,0x5C,0x04,0x53,0x59,0x53,0x00,
0x06,0x00,0xB8,0x0A,0x00,0x00,0x5F,0x04,0x41,0x4D,0x49,0x54,0x43,0x50,0x04,0x00,
0xC3,0x0A,0x00,0x00,0x5F,0x04,0x41,0x50,0x50,0x4C,0x04,0x00,0xD3,0x0A,0x00,0x00,
0x5F,0x04,0x44,0x45,0x56,0x53,0x08,0x00,0xD7,0x0A,0x00,0x00,0x5F,0x04,0x44,0x45,
0x56,0x54,0x4F,0x4F,0x4C,0x53,0x03,0x00,0xDD,0x0A,0x00,0x00,0x5F,0x04,0x44,0x4F,
0x43,0x00,0x08,0x00,0xDF,0x0A,0x00,0x00,0x5F,0x04,0x45,0x58,0x41,0x4D,0x50,0x4C,
0x45,0x53,0x01,0x00,0xE5,0x0A,0x00,0x00,0x5F,0x04,0x4C,0x00,0x04,0x00,0xE8,0x0A,
0x00,0x00,0x5F,0x04,0x4C,0x49,0x42,0x53,0x06,0x00,0xEA,0x0A,0x00,0x00,0x5F,0x04,
0x4E,0x45,0x54,0x4C,0x49,0x42,0x06,0x00,0xEC,0x0A,0x00,0x00,0x5F,0x04,0x52,0x50,
0x43,0x4C,0x49,0x42,0x04,0x00,0xEE,0x0A,0x00,0x00,0x5F,0x04,0x55,0x54,0x49,0x4C,
0x04,0x00,0x0A,0x0B,0x00,0x00,0x64,0x04,0x44,0x45,0x56,0x53,0x05,0x00,0x0C,0x0B,
0x00,0x00,0x64,0x04,0x46,0x4F,0x4E,0x54,0x53,0x00,0x08,0x00,0x15,0x0B,0x00,0x00,
0x64,0x04,0x47,0x4E,0x55,0x45,0x4D,0x41,0x43,0x53,0x06,0x00,0x21,0x0B,0x00,0x00,
0x6D,0x04,0x41,0x4D,0x49,0x54,0x43,0x50,0x04,0x00,0x22,0x0B,0x00,0x00,0x6D,0x04,
0x41,0x52,0x50,0x41,0x04,0x00,0x23,0x0B,0x00,0x00,0x6D,0x04,0x43,0x4C,0x49,0x42,
0x07,0x00,0x24,0x0B,0x00,0x00,0x6D,0x04,0x44,0x45,0x56,0x49,0x43,0x45,0x53,0x00,
0x02,0x00,0x25,0x0B,0x00,0x00,0x6D,0x04,0x46,0x44,0x06,0x00,0x26,0x0B,0x00,0x00,
0x6D,0x04,0x49,0x4E,0x4C,0x49,0x4E,0x45,0x09,0x00,0x27,0x0B,0x00,0x00,0x6D,0x04,
0x4C,0x49,0x42,0x52,0x41,0x52,0x49,0x45,0x53,0x00,0x03,0x00,0x28,0x0B,0x00,0x00,
0x6D,0x04,0x4E,0x45,0x54,0x00,0x07,0x00,0x29,0x0B,0x00,0x00,0x6D,0x04,0x4E,0x45,
0x54,0x49,0x4E,0x45,0x54,0x00,0x07,0x00,0x2A,0x0B,0x00,0x00,0x6D,0x04,0x50,0x52,
0x41,0x47,0x4D,0x41,0x53,0x00,0x05,0x00,0x2B,0x0B,0x00,0x00,0x6D,0x04,0x50,0x52,
0x4F,0x54,0x4F,0x00,0x09,0x00,0x2C,0x0B,0x00,0x00,0x6D,0x04,0x50,0x52,0x4F,0x54,
0x4F,0x43,0x4F,0x4C,0x53,0x00,0x03,0x00,0x2D,0x0B,0x00,0x00,0x6D,0x04,0x52,0x50,
0x43,0x00,0x06,0x00,0x2E,0x0B,0x00,0x00,0x6D,0x04,0x52,0x50,0x43,0x53,0x56,0x43,
0x03,0x00,0x2F,0x0B,0x00,0x00,0x6D,0x04,0x53,0x59,0x53,0x00,0x08,0x00,0x32,0x0B,
0x00,0x00,0x6F,0x04,0x45,0x58,0x41,0x4D,0x50,0x4C,0x45,0x53,0x06,0x00,0x38,0x0B,
0x00,0x00,0x6F,0x04,0x4E,0x45,0x54,0x4C,0x49,0x42,0x06,0x00,0x3A,0x0B,0x00,0x00,
0x6F,0x04,0x52,0x50,0x43,0x4C,0x49,0x42,0x05,0x00,0x60,0x0A,0x00,0x00,0x74,0x04,
0x44,0x41,0x4E,0x53,0x4B,0x00,0x07,0x00,0x61,0x0A,0x00,0x00,0x74,0x04,0x44,0x45,
0x55,0x54,0x53,0x43,0x48,0x00,0x07,0x00,0x62,0x0A,0x00,0x00,0x74,0x04,0x45,0x53,
0x50,0x41,0xD1,0x4F,0x4C,0x00,0x08,0x00,0x63,0x0A,0x00,0x00,0x74,0x04,0x46,0x52,
0x41,0x4E,0xC7,0x41,0x49,0x53,0x08,0x00,0x64,0x0A,0x00,0x00,0x74,0x04,0x49,0x54,
0x41,0x4C,0x49,0x41,0x4E,0x4F,0x0A,0x00,0x65,0x0A,0x00,0x00,0x74,0x04,0x4E,0x45,
0x44,0x45,0x52,0x4C,0x41,0x4E,0x44,0x53,0x07,0x00,0x66,0x0A,0x00,0x00,0x74,0x04,
0x53,0x56,0x45,0x4E,0x53,0x4B,0x41,0x00,0x0A,0x00,0x6B,0x0A,0x00,0x00,0x76,0x04,
0x41,0x4D,0x49,0x47,0x41,0x47,0x55,0x49,0x44,0x45,0x03,0x00,0x6E,0x0A,0x00,0x00,
0x76,0x04,0x44,0x56,0x49,0x00,0x04,0x00,0x6C,0x0A,0x00,0x00,0x76,0x04,0x4C,0x49,
0x42,0x53,0x0A,0x00,0x6A,0x0A,0x00,0x00,0x76,0x04,0x50,0x4F,0x53,0x54,0x53,0x43,
0x52,0x49,0x50,0x54,0x08,0x00,0x6D,0x0A,0x00,0x00,0x76,0x04,0x58,0x45,0x4D,0x5F,
0x4C,0x49,0x42,0x53,0x08,0x00,0x69,0x0A,0x00,0x00,0x76,0x04,0x58,0x50,0x52,0x5F,
0x4C,0x49,0x42,0x53,0x08,0x00,0x74,0x0A,0x00,0x00,0x77,0x04,0x48,0x59,0x44,0x52,
0x41,0x43,0x4F,0x4D,0x06,0x00,0x80,0x0A,0x00,0x00,0x77,0x04,0x4C,0x4F,0x43,0x41,
0x4C,0x45,0x04,0x00,0x75,0x0A,0x00,0x00,0x77,0x04,0x52,0x45,0x58,0x58,0x05,0x00,
0x76,0x0A,0x00,0x00,0x77,0x04,0x53,0x4F,0x55,0x4E,0x44,0x00,0x06,0x00,0x81,0x0A,
0x00,0x00,0x77,0x04,0x53,0x4F,0x55,0x52,0x43,0x45,0x05,0x00,0x77,0x0A,0x00,0x00,
0x77,0x04,0x54,0x4F,0x4F,0x4C,0x53,0x00,0x0B,0x00,0x7F,0x0A,0x00,0x00,0x77,0x04,
0x54,0x52,0x41,0x4E,0x53,0x4C,0x41,0x54,0x49,0x4F,0x4E,0x00,0x03,0x00,0x70,0x0A,
0x00,0x00,0x78,0x04,0x47,0x46,0x58,0x00,0x03,0x00,0x71,0x0A,0x00,0x00,0x78,0x04,
0x49,0x42,0x4D,0x00,0x03,0x00,0x05,0x08,0x00,0x00,0x7B,0x04,0x31,0x2E,0x33,0x00,
0x08,0x00,0x0C,0x08,0x00,0x00,0x81,0x04,0x41,0x43,0x45,0x50,0x4F,0x52,0x54,0x53,
0x09,0x00,0x10,0x08,0x00,0x00,0x81,0x04,0x41,0x53,0x54,0x52,0x4F,0x4E,0x4F,0x4D,
0x59,0x00,0x0A,0x00,0x11,0x08,0x00,0x00,0x81,0x04,0x42,0x45,0x4E,0x43,0x48,0x4D,
0x41,0x52,0x4B,0x53,0x0A,0x00,0x12,0x08,0x00,0x00,0x81,0x04,0x45,0x58,0x54,0x45,
0x52,0x4E,0x46,0x55,0x4E,0x43,0x08,0x00,0x13,0x08,0x00,0x00,0x81,0x04,0x46,0x52,
0x41,0x43,0x54,0x41,0x4C,0x53,0x03,0x00,0x15,0x08,0x00,0x00,0x81,0x04,0x47,0x46,
0x58,0x00,0x03,0x00,0x14,0x08,0x00,0x00,0x81,0x04,0x47,0x55,0x49,0x00,0x02,0x00,
0x16,0x08,0x00,0x00,0x81,0x04,0x49,0x4F,0x07,0x00,0x17,0x08,0x00,0x00,0x81,0x04,
0x4C,0x49,0x42,0x52,0x41,0x52,0x59,0x00,0x02,0x00,0x18,0x08,0x00,0x00,0x81,0x04,
0x4D,0x43,0x04,0x00,0x19,0x08,0x00,0x00,0x81,0x04,0x4D,0x49,0x53,0x43,0x0A,0x00,
0x1B,0x08,0x00,0x00,0x81,0x04,0x53,0x48,0x45,0x4C,0x4C,0x55,0x54,0x49,0x4C,0x53,
0x05,0x00,0x1C,0x08,0x00,0x00,0x81,0x04,0x53,0x4F,0x55,0x4E,0x44,0x00,0x06,0x00,
0x1D,0x08,0x00,0x00,0x81,0x04,0x54,0x55,0x52,0x54,0x4C,0x45,0x03,0x00,0x22,0x08,
0x00,0x00,0x82,0x04,0x41,0x2D,0x41,0x00,0x08,0x00,0x23,0x08,0x00,0x00,0x82,0x04,
0x41,0x42,0x32,0x41,0x53,0x43,0x49,0x49,0x07,0x00,0x1F,0x08,0x00,0x00,0x82,0x04,
0x41,0x43,0x45,0x43,0x41,0x4C,0x43,0x00,0x07,0x00,0x24,0x08,0x00,0x00,0x82,0x04,
0x46,0x44,0x32,0x42,0x4D,0x41,0x50,0x00,0x06,0x00,0x20,0x08,0x00,0x00,0x82,0x04,
0x49,0x4E,0x44,0x45,0x4E,0x54,0x05,0x00,0x25,0x08,0x00,0x00,0x82,0x04,0x50,0x41,
0x47,0x45,0x52,0x00,0x0A,0x00,0x21,0x08,0x00,0x00,0x82,0x04,0x55,0x50,0x50,0x45,
0x52,0x43,0x41,0x43,0x45,0x52,0x09,0x00,0x9D,0x06,0x00,0x00,0x83,0x04,0x41,0x43,
0x4D,0x5F,0x41,0x4D,0x49,0x47,0x41,0x00,0x0A,0x00,0x9F,0x06,0x00,0x00,0x83,0x04,
0x41,0x50,0x50,0x45,0x4E,0x44,0x49,0x43,0x45,0x53,0x03,0x00,0xA3,0x06,0x00,0x00,
0x83,0x04,0x44,0x49,0x59,0x00,0x0C,0x00,0xA4,0x06,0x00,0x00,0x83,0x04,0x48,0x49,
0x4E,0x54,0x53,0x41,0x4E,0x44,0x54,0x49,0x50,0x53,0x0C,0x00,0xA5,0x06,0x00,0x00,
0x83,0x04,0x49,0x4E,0x54,0x52,0x4F,0x44,0x55,0x43,0x54,0x49,0x4F,0x4E,0x05,0x00,
0xA6,0x06,0x00,0x00,0x83,0x04,0x54,0x4F,0x4F,0x4C,0x53,0x00,0x0B,0x00,0xAB,0x06,
0x00,0x00,0x84,0x04,0x41,0x43,0x4D,0x5F,0x44,0x45,0x56,0x49,0x43,0x45,0x53,0x00,
0x0B,0x00,0xAD,0x06,0x00,0x00,0x84,0x04,0x41,0x55,0x44,0x49,0x4F,0x44,0x45,0x56,
0x49,0x43,0x45,0x00,0x07,0x00,0xAE,0x06,0x00,0x00,0x84,0x04,0x44,0x45,0x56,0x49,
0x43,0x45,0x53,0x00,0x0E,0x00,0xAF,0x06,0x00,0x00,0x84,0x04,0x47,0x41,0x4D,0x45,
0x50,0x4F,0x52,0x54,0x44,0x45,0x56,0x49,0x43,0x45,0x0E,0x00,0xB0,0x06,0x00,0x00,
0x84,0x04,0x4E,0x41,0x52,0x52,0x41,0x54,0x4F,0x52,0x44,0x45,0x56,0x49,0x43,0x45,
0x0E,0x00,0xB1,0x06,0x00,0x00,0x84,0x04,0x50,0x41,0x52,0x41,0x4C,0x4C,0x45,0x4C,
0x44,0x45,0x56,0x49,0x43,0x45,0x0D,0x00,0xB2,0x06,0x00,0x00,0x84,0x04,0x50,0x52,
0x49,0x4E,0x54,0x45,0x52,0x44,0x45,0x56,0x49,0x43,0x45,0x00,0x0C,0x00,0xB3,0x06,
0x00,0x00,0x84,0x04,0x53,0x45,0x52,0x49,0x41,0x4C,0x44,0x45,0x56,0x49,0x43,0x45,
0x0B,0x00,0xB4,0x06,0x00,0x00,0x84,0x04,0x54,0x49,0x4D,0x45,0x52,0x44,0x45,0x56,
0x49,0x43,0x45,0x00,0x0F,0x00,0xB5,0x06,0x00,0x00,0x84,0x04,0x54,0x52,0x41,0x43,
0x4B,0x44,0x49,0x53,0x4B,0x44,0x45,0x56,0x49,0x43,0x45,0x00,0x02,0x00,0xB7,0x06,
0x00,0x00,0x85,0x04,0x33,0x44,0x0C,0x00,0xB8,0x06,0x00,0x00,0x85,0x04,0x41,0x43,
0x4D,0x5F,0x47,0x52,0x41,0x50,0x48,0x49,0x43,0x53,0x04,0x00,0xBA,0x06,0x00,0x00,
0x85,0x04,0x42,0x4F,0x42,0x53,0x06,0x00,0xBC,0x06,0x00,0x00,0x85,0x04,0x43,0x4F,
0x50,0x50,0x45,0x52,0x0A,0x00,0xBD,0x06,0x00,0x00,0x85,0x04,0x43,0x4F,0x50,0x50,
0x45,0x52,0x44,0x52,0x41,0x57,0x05,0x00,0xBE,0x06,0x00,0x00,0x85,0x04,0x46,0x4F,
0x4E,0x54,0x53,0x00,0x0F,0x00,0xBF,0x06,0x00,0x00,0x85,0x04,0x47,0x52,0x41,0x50,
0x48,0x49,0x43,0x41,0x4C,0x54,0x52,0x49,0x43,0x4B,0x53,0x00,0x0C,0x00,0xC1,0x06,
0x00,0x00,0x85,0x04,0x49,0x4E,0x43,0x4C,0x55,0x44,0x45,0x46,0x4F,0x4E,0x54,0x53,
0x10,0x00,0xC2,0x06,0x00,0x00,0x85,0x04,0x4C,0x4F,0x57,0x4C,0x45,0x56,0x45,0x4C,
0x47,0x52,0x41,0x50,0x48,0x49,0x43,0x53,0x07,0x00,0xC4,0x06,0x00,0x00,0x85,0x04,
0x53,0x50,0x52,0x49,0x54,0x45,0x53,0x00,0x08,0x00,0xC5,0x06,0x00,0x00,0x85,0x04,
0x56,0x53,0x50,0x52,0x49,0x54,0x45,0x53,0x0D,0x00,0xC7,0x06,0x00,0x00,0x86,0x04,
0x41,0x43,0x4D,0x5F,0x49,0x4E,0x54,0x55,0x49,0x54,0x49,0x4F,0x4E,0x00,0x06,0x00,
0xC9,0x06,0x00,0x00,0x86,0x04,0x41,0x4C,0x45,0x52,0x54,0x53,0x0C,0x00,0xCA,0x06,
0x00,0x00,0x86,0x04,0x43,0x4F,0x4C,0x4F,0x55,0x52,0x57,0x49,0x4E,0x44,0x4F,0x57,
0x0A,0x00,0xCB,0x06,0x00,0x00,0x86,0x04,0x46,0x49,0x4C,0x45,0x57,0x49,0x4E,0x44,
0x4F,0x57,0x07,0x00,0xCC,0x06,0x00,0x00,0x86,0x04,0x47,0x41,0x44,0x47,0x45,0x54,
0x53,0x00,0x08,0x00,0xCE,0x06,0x00,0x00,0x86,0x04,0x47,0x52,0x41,0x50,0x48,0x49,
0x43,0x53,0x05,0x00,0xCF,0x06,0x00,0x00,0x86,0x04,0x49,0x44,0x43,0x4D,0x50,0x00,
0x05,0x00,0xD0,0x06,0x00,0x00,0x86,0x04,0x4D,0x45,0x4E,0x55,0x53,0x00,0x0D,0x00,
0xD1,0x06,0x00,0x00,0x86,0x04,0x4D,0x49,0x53,0x43,0x45,0x4C,0x4C,0x41,0x4E,0x45,
0x4F,0x55,0x53,0x00,0x0A,0x00,0xD2,0x06,0x00,0x00,0x86,0x04,0x52,0x45,0x51,0x55,
0x45,0x53,0x54,0x45,0x52,0x53,0x07,0x00,0xD4,0x06,0x00,0x00,0x86,0x04,0x53,0x43,
0x52,0x45,0x45,0x4E,0x53,0x00,0x07,0x00,0xD5,0x06,0x00,0x00,0x86,0x04,0x57,0x49,
0x4E,0x44,0x4F,0x57,0x53,0x00,0x09,0x00,0xD8,0x06,0x00,0x00,0x87,0x04,0x41,0x43,
0x4D,0x5F,0x53,0x4F,0x55,0x4E,0x44,0x00,0x09,0x00,0xDA,0x06,0x00,0x00,0x87,0x04,
0x45,0x41,0x53,0x59,0x53,0x4F,0x55,0x4E,0x44,0x00,0x0C,0x00,0xDB,0x06,0x00,0x00,
0x87,0x04,0x49,0x4E,0x43,0x4C,0x55,0x44,0x45,0x53,0x4F,0x55,0x4E,0x44,0x04,0x00,
0xDC,0x06,0x00,0x00,0x87,0x04,0x50,0x4C,0x41,0x59,0x0C,0x00,0xDD,0x06,0x00,0x00,
0x87,0x04,0x53,0x4F,0x55,0x4E,0x44,0x45,0x46,0x46,0x45,0x43,0x54,0x53,0x0A,0x00,
0xE1,0x06,0x00,0x00,0x88,0x04,0x41,0x43,0x4D,0x5F,0x53,0x59,0x53,0x54,0x45,0x4D,
0x08,0x00,0xE3,0x06,0x00,0x00,0x88,0x04,0x41,0x4D,0x49,0x47,0x41,0x44,0x4F,0x53,
0x0A,0x00,0xE4,0x06,0x00,0x00,0x88,0x04,0x44,0x49,0x52,0x54,0x59,0x49,0x4E,0x50,
0x55,0x54,0x08,0x00,0xE5,0x06,0x00,0x00,0x88,0x04,0x48,0x41,0x52,0x44,0x57,0x41,
0x52,0x45,0x05,0x00,0xE6,0x06,0x00,0x00,0x88,0x04,0x4C,0x49,0x53,0x54,0x53,0x00,
0x08,0x00,0xE7,0x06,0x00,0x00,0x88,0x04,0x4D,0x45,0x53,0x53,0x41,0x47,0x45,0x53,
0x08,0x00,0xF0,0x06,0x00,0x00,0x8F,0x04,0x44,0x45,0x56,0x49,0x43,0x45,0x49,0x4F,
0x0A,0x00,0xF1,0x06,0x00,0x00,0x8F,0x04,0x49,0x4E,0x54,0x45,0x52,0x52,0x55,0x50,
0x54,0x53,0x05,0x00,0xF2,0x06,0x00,0x00,0x8F,0x04,0x4C,0x49,0x53,0x54,0x53,0x00,
0x06,0x00,0xF3,0x06,0x00,0x00,0x8F,0x04,0x4D,0x45,0x4D,0x4F,0x52,0x59,0x05,0x00,
0xF4,0x06,0x00,0x00,0x8F,0x04,0x50,0x4F,0x52,0x54,0x53,0x00,0x0A,0x00,0xF5,0x06,
0x00,0x00,0x8F,0x04,0x53,0x45,0x4D,0x41,0x50,0x48,0x4F,0x52,0x45,0x53,0x07,0x00,
0xF6,0x06,0x00,0x00,0x8F,0x04,0x53,0x49,0x47,0x4E,0x41,0x4C,0x53,0x00,0x05,0x00,
0xF7,0x06,0x00,0x00,0x8F,0x04,0x54,0x41,0x53,0x4B,0x53,0x00,0x06,0x00,0xFC,0x06,
0x00,0x00,0x93,0x04,0x4C,0x41,0x59,0x45,0x52,0x53,0x0A,0x00,0xFD,0x06,0x00,0x00,
0x93,0x04,0x50,0x52,0x49,0x4D,0x49,0x54,0x49,0x56,0x45,0x53,0x0C,0x00,0xFE,0x06,
0x00,0x00,0x93,0x04,0x53,0x50,0x52,0x49,0x54,0x45,0x53,0x5F,0x42,0x4F,0x42,0x53,
0x04,0x00,0xFF,0x06,0x00,0x00,0x93,0x04,0x54,0x45,0x58,0x54,0x06,0x00,0x05,0x07,
0x00,0x00,0x98,0x04,0x42,0x4F,0x4F,0x50,0x53,0x49,0x07,0x00,0x06,0x07,0x00,0x00,
0x98,0x04,0x47,0x41,0x44,0x47,0x45,0x54,0x53,0x00,0x0B,0x00,0x08,0x07,0x00,0x00,
0x98,0x04,0x49,0x4D,0x41,0x47,0x45,0x53,0x5F,0x54,0x45,0x58,0x54,0x00,0x0D,0x00,
0x09,0x07,0x00,0x00,0x98,0x04,0x49,0x4E,0x54,0x55,0x49,0x54,0x49,0x4F,0x4E,0x5F,
0x47,0x55,0x49,0x00,0x0A,0x00,0x07,0x07,0x00,0x00,0x98,0x04,0x49,0x4F,0x5F,0x4D,
0x45,0x54,0x48,0x4F,0x44,0x53,0x05,0x00,0x0A,0x07,0x00,0x00,0x98,0x04,0x4D,0x45,
0x4E,0x55,0x53,0x00,0x0E,0x00,0x0B,0x07,0x00,0x00,0x98,0x04,0x4D,0x4F,0x55,0x53,
0x45,0x5F,0x4B,0x45,0x59,0x42,0x4F,0x41,0x52,0x44,0x11,0x00,0x0C,0x07,0x00,0x00,
0x98,0x04,0x52,0x45,0x51,0x55,0x45,0x53,0x54,0x45,0x52,0x53,0x5F,0x41,0x4C,0x45,
0x52,0x54,0x53,0x00,0x07,0x00,0x0D,0x07,0x00,0x00,0x98,0x04,0x53,0x43,0x52,0x45,
0x45,0x4E,0x53,0x00,0x07,0x00,0x0E,0x07,0x00,0x00,0x98,0x04,0x53,0x50,0x45,0x43,
0x49,0x41,0x4C,0x00,0x07,0x00,0x0F,0x07,0x00,0x00,0x98,0x04,0x57,0x49,0x4E,0x44,
0x4F,0x57,0x53,0x00,0x06,0x00,0x17,0x07,0x00,0x00,0x9F,0x04,0x45,0x50,0x53,0x4F,
0x4E,0x58,0x02,0x00,0x18,0x07,0x00,0x00,0x9F,0x04,0x48,0x50,0x03,0x00,0x1D,0x07,
0x00,0x00,0xA2,0x04,0x4C,0x49,0x42,0x00,0x07,0x00,0x1E,0x07,0x00,0x00,0xA2,0x04,
0x4C,0x49,0x42,0x52,0x41,0x52,0x59,0x00,0x0D,0x00,0x1F,0x07,0x00,0x00,0xA2,0x04,
0x53,0x41,0x4D,0x50,0x4C,0x45,0x49,0x4E,0x43,0x4C,0x55,0x44,0x45,0x00,0x04,0x00,
0x20,0x07,0x00,0x00,0xA2,0x04,0x54,0x45,0x53,0x54,0x0A,0x00,0x26,0x07,0x00,0x00,
0xA8,0x04,0x53,0x54,0x41,0x52,0x54,0x55,0x50,0x32,0x2E,0x30,0x01,0x00,0x31,0x07,
0x00,0x00,0xAB,0x04,0x45,0x00,0x04,0x00,0x32,0x07,0x00,0x00,0xAB,0x04,0x45,0x4C,
0x53,0x45,0x03,0x00,0x33,0x07,0x00,0x00,0xAB,0x04,0x45,0x4E,0x44,0x00,0x06,0x00,
0x34,0x07,0x00,0x00,0xAB,0x04,0x45,0x58,0x43,0x45,0x50,0x54,0x08,0x00,0x98,0x07,
0x00,0x00,0xAC,0x04,0x41,0x4D,0x49,0x47,0x41,0x4C,0x49,0x42,0x05,0x00,0x99,0x07,
0x00,0x00,0xAC,0x04,0x43,0x4C,0x41,0x53,0x53,0x00,0x09,0x00,0x9A,0x07,0x00,0x00,
0xAC,0x04,0x44,0x41,0x54,0x41,0x54,0x59,0x50,0x45,0x53,0x00,0x07,0x00,0x9B,0x07,
0x00,0x00,0xAC,0x04,0x44,0x45,0x56,0x49,0x43,0x45,0x53,0x00,0x08,0x00,0x9C,0x07,
0x00,0x00,0xAC,0x04,0x44,0x49,0x53,0x4B,0x46,0x4F,0x4E,0x54,0x03,0x00,0x9D,0x07,
0x00,0x00,0xAC,0x04,0x44,0x4F,0x53,0x00,0x04,0x00,0x9E,0x07,0x00,0x00,0xAC,0x04,
0x45,0x58,0x45,0x43,0x07,0x00,0x9F,0x07,0x00,0x00,0xAC,0x04,0x47,0x41,0x44,0x47,
0x45,0x54,0x53,0x00,0x0B,0x00,0xA0,0x07,0x00,0x00,0xAC,0x04,0x47,0x41,0x44,0x54,
0x4F,0x4F,0x4C,0x53,0x42,0x4F,0x58,0x00,0x08,0x00,0xA1,0x07,0x00,0x00,0xAC,0x04,
0x47,0x52,0x41,0x50,0x48,0x49,0x43,0x53,0x08,0x00,0xA2,0x07,0x00,0x00,0xAC,0x04,
0x48,0x41,0x52,0x44,0x57,0x41,0x52,0x45,0x09,0x00,0xA3,0x07,0x00,0x00,0xAC,0x04,
0x49,0x4E,0x54,0x55,0x49,0x54,0x49,0x4F,0x4E,0x00,0x09,0x00,0xA4,0x07,0x00,0x00,
0xAC,0x04,0x4C,0x49,0x42,0x52,0x41,0x52,0x49,0x45,0x53,0x00,0x05,0x00,0xA5,0x07,
0x00,0x00,0xAC,0x04,0x4F,0x54,0x48,0x45,0x52,0x00,0x05,0x00,0xA6,0x07,0x00,0x00,
0xAC,0x04,0x50,0x52,0x45,0x46,0x53,0x00,0x09,0x00,0xA7,0x07,0x00,0x00,0xAC,0x04,
0x52,0x45,0x53,0x4F,0x55,0x52,0x43,0x45,0x53,0x00,0x04,0x00,0xA8,0x07,0x00,0x00,
0xAC,0x04,0x52,0x45,0x58,0x58,0x05,0x00,0xA9,0x07,0x00,0x00,0xAC,0x04,0x54,0x4F,
0x4F,0x4C,0x53,0x00,0x07,0x00,0xAA,0x07,0x00,0x00,0xAC,0x04,0x55,0x54,0x49,0x4C,
0x49,0x54,0x59,0x00,0x09,0x00,0xAB,0x07,0x00,0x00,0xAC,0x04,0x57,0x4F,0x52,0x4B,
0x42,0x45,0x4E,0x43,0x48,0x00,0x09,0x00,0xAD,0x07,0x00,0x00,0xAD,0x04,0x44,0x41,
0x54,0x41,0x54,0x59,0x50,0x45,0x53,0x00,0x07,0x00,0xAE,0x07,0x00,0x00,0xAD,0x04,
0x44,0x45,0x56,0x49,0x43,0x45,0x53,0x00,0x08,0x00,0xAF,0x07,0x00,0x00,0xAD,0x04,
0x44,0x49,0x53,0x4B,0x46,0x4F,0x4E,0x54,0x03,0x00,0xB0,0x07,0x00,0x00,0xAD,0x04,
0x44,0x4F,0x53,0x00,0x04,0x00,0xB1,0x07,0x00,0x00,0xAD,0x04,0x45,0x58,0x45,0x43,
0x07,0x00,0xB2,0x07,0x00,0x00,0xAD,0x04,0x47,0x41,0x44,0x47,0x45,0x54,0x53,0x00,
0x08,0x00,0xB3,0x07,0x00,0x00,0xAD,0x04,0x47,0x52,0x41,0x50,0x48,0x49,0x43,0x53,
0x08,0x00,0xB4,0x07,0x00,0x00,0xAD,0x04,0x48,0x41,0x52,0x44,0x57,0x41,0x52,0x45,
0x09,0x00,0xB5,0x07,0x00,0x00,0xAD,0x04,0x49,0x4E,0x54,0x55,0x49,0x54,0x49,0x4F,
0x4E,0x00,0x09,0x00,0xB6,0x07,0x00,0x00,0xAD,0x04,0x4C,0x49,0x42,0x52,0x41,0x52,
0x49,0x45,0x53,0x00,0x05,0x00,0xB7,0x07,0x00,0x00,0xAD,0x04,0x50,0x52,0x45,0x46,
0x53,0x00,0x09,0x00,0xB8,0x07,0x00,0x00,0xAD,0x04,0x52,0x45,0x53,0x4F,0x55,0x52,
0x43,0x45,0x53,0x00,0x04,0x00,0xB9,0x07,0x00,0x00,0xAD,0x04,0x52,0x45,0x58,0x58,
0x07,0x00,0xBA,0x07,0x00,0x00,0xAD,0x04,0x55,0x54,0x49,0x4C,0x49,0x54,0x59,0x00,
0x09,0x00,0xBB,0x07,0x00,0x00,0xAD,0x04,0x57,0x4F,0x52,0x4B,0x42,0x45,0x4E,0x43,
0x48,0x00,0x06,0x00,0x36,0x07,0x00,0x00,0xAE,0x04,0x41,0x47,0x32,0x54,0x58,0x54,
0x07,0x00,0x37,0x07,0x00,0x00,0xAE,0x04,0x45,0x2D,0x45,0x4D,0x50,0x54,0x59,0x00,
0x03,0x00,0x38,0x07,0x00,0x00,0xAE,0x04,0x49,0x46,0x46,0x00,0x04,0x00,0x39,0x07,
0x00,0x00,0xAE,0x04,0x4C,0x41,0x4E,0x47,0x09,0x00,0x3B,0x07,0x00,0x00,0xAE,0x04,
0x4F,0x4F,0x4D,0x4F,0x44,0x55,0x4C,0x45,0x53,0x00,0x09,0x00,0x3C,0x07,0x00,0x00,
0xAE,0x04,0x52,0x45,0x58,0x58,0x48,0x4F,0x53,0x54,0x43,0x00,0x04,0x00,0x3F,0x07,
0x00,0x00,0xAE,0x04,0x53,0x45,0x54,0x46,0x07,0x00,0x40,0x07,0x00,0x00,0xAE,0x04,
0x54,0x48,0x52,0x45,0x41,0x44,0x53,0x00,0x03,0x00,0x44,0x07,0x00,0x00,0xB0,0x04,
0x41,0x53,0x4C,0x00,0x0B,0x00,0x45,0x07,0x00,0x00,0xB0,0x04,0x43,0x4F,0x4D,0x4D,
0x4F,0x44,0x49,0x54,0x49,0x45,0x53,0x00,0x0C,0x00,0x46,0x07,0x00,0x00,0xB0,0x04,
0x45,0x58,0x45,0x43,0x5F,0x4C,0x49,0x42,0x52,0x41,0x52,0x59,0x08,0x00,0x4F,0x07,
0x00,0x00,0xB0,0x04,0x47,0x41,0x44,0x54,0x4F,0x4F,0x4C,0x53,0x09,0x00,0x50,0x07,
0x00,0x00,0xB0,0x04,0x49,0x4E,0x54,0x55,0x49,0x54,0x49,0x4F,0x4E,0x00,0x0B,0x00,
0x5C,0x07,0x00,0x00,0xB0,0x04,0x50,0x52,0x45,0x46,0x45,0x52,0x45,0x4E,0x43,0x45,
0x53,0x00,0x09,0x00,0x5D,0x07,0x00,0x00,0xB0,0x04,0x52,0x45,0x53,0x4F,0x55,0x52,
0x43,0x45,0x53,0x00,0x09,0x00,0x5E,0x07,0x00,0x00,0xB0,0x04,0x57,0x4F,0x52,0x4B,
0x42,0x45,0x4E,0x43,0x48,0x00,0x04,0x00,0x69,0x07,0x00,0x00,0xB1,0x04,0x41,0x52,
0x47,0x53,0x05,0x00,0x6A,0x07,0x00,0x00,0xB1,0x04,0x43,0x4C,0x41,0x53,0x53,0x00,
0x03,0x00,0x6F,0x07,0x00,0x00,0xB1,0x04,0x44,0x4F,0x53,0x00,0x04,0x00,0x70,0x07,
0x00,0x00,0xB1,0x04,0x47,0x41,0x4D,0x45,0x03,0x00,0x71,0x07,0x00,0x00,0xB1,0x04,
0x47,0x46,0x58,0x00,0x05,0x00,0x72,0x07,0x00,0x00,0xB1,0x04,0x47,0x55,0x49,0x44,
0x45,0x00,0x05,0x00,0x73,0x07,0x00,0x00,0xB1,0x04,0x49,0x4E,0x54,0x55,0x49,0x00,
0x04,0x00,0x74,0x07,0x00,0x00,0xB1,0x04,0x4C,0x41,0x4E,0x47,0x07,0x00,0x75,0x07,
0x00,0x00,0xB1,0x04,0x4C,0x49,0x42,0x52,0x41,0x52,0x59,0x00,0x04,0x00,0x78,0x07,
0x00,0x00,0xB1,0x04,0x52,0x45,0x51,0x53,0x05,0x00,0x79,0x07,0x00,0x00,0xB1,0x04,
0x54,0x4F,0x4F,0x4C,0x53,0x00,0x05,0x00,0x93,0x07,0x00,0x00,0xB1,0x04,0x55,0x54,
0x49,0x4C,0x53,0x00,0x07,0x00,0x94,0x07,0x00,0x00,0xB1,0x04,0x56,0x41,0x52,0x49,
0x4F,0x55,0x53,0x00,0x05,0x00,0x60,0x07,0x00,0x00,0xB2,0x04,0x41,0x50,0x52,0x4F,
0x46,0x00,0x02,0x00,0x61,0x07,0x00,0x00,0xB2,0x04,0x45,0x45,0x05,0x00,0x67,0x07,
0x00,0x00,0xB2,0x04,0x45,0x59,0x41,0x43,0x43,0x00,0x07,0x00,0xDC,0x07,0x00,0x00,
0xB4,0x04,0x41,0x4D,0x49,0x47,0x41,0x2D,0x45,0x00,0x09,0x00,0xDD,0x07,0x00,0x00,
0xB4,0x04,0x41,0x53,0x53,0x45,0x4D,0x42,0x4C,0x45,0x52,0x00,0x08,0x00,0xE1,0x07,
0x00,0x00,0xB4,0x04,0x41,0x55,0x54,0x4F,0x44,0x4F,0x43,0x53,0x01,0x00,0xE4,0x07,
0x00,0x00,0xB4,0x04,0x43,0x00,0x04,0x00,0xF1,0x07,0x00,0x00,0xB4,0x04,0x44,0x4F,
0x43,0x53,0x0A,0x00,0xF2,0x07,0x00,0x00,0xB4,0x04,0x45,0x58,0x54,0x43,0x4C,0x41,
0x53,0x53,0x45,0x53,0x02,0x00,0xFB,0x07,0x00,0x00,0xB4,0x04,0x46,0x44,0x06,0x00,
0xFC,0x07,0x00,0x00,0xB4,0x04,0x4D,0x4F,0x44,0x55,0x4C,0x41,0x06,0x00,0xD8,0x07,
0x00,0x00,0xB4,0x04,0x4F,0x42,0x45,0x52,0x4F,0x4E,0x07,0x00,0xC0,0x07,0x00,0x00,
0xB5,0x04,0x44,0x45,0x55,0x54,0x53,0x43,0x48,0x00,0x07,0x00,0xC1,0x07,0x00,0x00,
0xB5,0x04,0x45,0x4E,0x47,0x4C,0x49,0x53,0x48,0x00,0x13,0x00,0xC4,0x07,0x00,0x00,
0xB7,0x04,0x47,0x4F,0x4F,0x4E,0x49,0x45,0x5F,0x43,0x4C,0x41,0x53,0x53,0x49,0x43,
0x5F,0x31,0x31,0x50,0x54,0x00,0x13,0x00,0xC5,0x07,0x00,0x00,0xB7,0x04,0x47,0x4F,
0x4F,0x4E,0x49,0x45,0x5F,0x4E,0x45,0x57,0x4C,0x4F,0x4F,0x4B,0x5F,0x31,0x31,0x50,
0x54,0x00,0x0D,0x00,0xC6,0x07,0x00,0x00,0xB7,0x04,0x4B,0x54,0x5F,0x42,0x4C,0x41,
0x43,0x4B,0x5F,0x31,0x31,0x50,0x54,0x00,0x10,0x00,0xC7,0x07,0x00,0x00,0xB7,0x04,
0x4B,0x54,0x5F,0x47,0x52,0x41,0x44,0x49,0x45,0x4E,0x54,0x5F,0x31,0x31,0x50,0x54,
0x10,0x00,0xC8,0x07,0x00,0x00,0xB7,0x04,0x4B,0x54,0x5F,0x47,0x52,0x41,0x44,0x49,
0x45,0x4E,0x54,0x5F,0x31,0x33,0x50,0x54,0x0D,0x00,0xC9,0x07,0x00,0x00,0xB7,0x04,
0x4B,0x54,0x5F,0x50,0x4C,0x41,0x49,0x4E,0x5F,0x31,0x31,0x50,0x54,0x00,0x07,0x00,
0xCA,0x07,0x00,0x00,0xB7,0x04,0x57,0x44,0x5F,0x31,0x33,0x50,0x54,0x00,0x0B,0x00,
0xCB,0x07,0x00,0x00,0xB7,0x04,0x57,0x44,0x5F,0x4E,0x45,0x57,0x5F,0x31,0x31,0x50,
0x54,0x00,0x11,0x00,0xCC,0x07,0x00,0x00,0xB7,0x04,0x58,0x45,0x4E,0x5F,0x47,0x52,
0x41,0x44,0x49,0x45,0x4E,0x54,0x5F,0x31,0x31,0x50,0x54,0x00,0x11,0x00,0xCD,0x07,
0x00,0x00,0xB7,0x04,0x58,0x45,0x4E,0x5F,0x47,0x52,0x41,0x44,0x49,0x45,0x4E,0x54,
0x5F,0x31,0x33,0x50,0x54,0x00,0x0E,0x00,0xCE,0x07,0x00,0x00,0xB7,0x04,0x58,0x45,
0x4E,0x5F,0x50,0x4C,0x41,0x49,0x4E,0x5F,0x31,0x31,0x50,0x54,0x0E,0x00,0xCF,0x07,
0x00,0x00,0xB7,0x04,0x58,0x45,0x4E,0x5F,0x50,0x4C,0x41,0x49,0x4E,0x5F,0x31,0x33,
0x50,0x54,0x06,0x00,0xD1,0x07,0x00,0x00,0xB8,0x04,0x49,0x4D,0x41,0x47,0x45,0x53,
0x03,0x00,0xD2,0x07,0x00,0x00,0xB8,0x04,0x4D,0x55,0x49,0x00,0x08,0x00,0xD4,0x07,
0x00,0x00,0xB9,0x04,0x43,0x41,0x54,0x41,0x4C,0x4F,0x47,0x53,0x07,0x00,0x2C,0x08,
0x00,0x00,0xBC,0x04,0x44,0x45,0x55,0x54,0x53,0x43,0x48,0x00,0x08,0x00,0x2D,0x08,
0x00,0x00,0xBC,0x04,0x49,0x54,0x41,0x4C,0x49,0x41,0x4E,0x4F,0x02,0x00,0x34,0x08,
0x00,0x00,0xBE,0x04,0x4F,0x43,0x07,0x00,0x35,0x08,0x00,0x00,0xBE,0x04,0x4F,0x43,
0x50,0x52,0x45,0x46,0x53,0x00,0x02,0x00,0x36,0x08,0x00,0x00,0xBE,0x04,0x4F,0x44,
0x02,0x00,0x37,0x08,0x00,0x00,0xBE,0x04,0x4F,0x4C,0x07,0x00,0x38,0x08,0x00,0x00,
0xBE,0x04,0x4F,0x4C,0x50,0x52,0x45,0x46,0x53,0x00,0x04,0x00,0x3B,0x08,0x00,0x00,
0xBF,0x04,0x41,0x4D,0x4F,0x4B,0x09,0x00,0x3D,0x08,0x00,0x00,0xBF,0x04,0x4C,0x49,
0x42,0x52,0x41,0x52,0x49,0x45,0x53,0x00,0x07,0x00,0x43,0x08,0x00,0x00,0xBF,0x04,
0x4F,0x42,0x45,0x52,0x4F,0x4E,0x30,0x00,0x06,0x00,0x44,0x08,0x00,0x00,0xBF,0x04,
0x52,0x4F,0x4C,0x41,0x4E,0x44,0x08,0x00,0x47,0x08,0x00,0x00,0xC6,0x04,0x33,0x52,
0x44,0x50,0x41,0x52,0x54,0x59,0x05,0x00,0x57,0x08,0x00,0x00,0xC6,0x04,0x41,0x4D,
0x49,0x47,0x41,0x00,0x09,0x00,0x48,0x08,0x00,0x00,0xC6,0x04,0x41,0x4D,0x49,0x47,
0x41,0x55,0x54,0x49,0x4C,0x00,0x05,0x00,0x49,0x08,0x00,0x00,0xC6,0x04,0x45,0x41,
0x47,0x55,0x49,0x00,0x03,0x00,0x46,0x08,0x00,0x00,0xC6,0x04,0x46,0x50,0x45,0x00,
0x09,0x00,0x4A,0x08,0x00,0x00,0xC6,0x04,0x46,0x52,0x41,0x4D,0x45,0x57,0x4F,0x52,
0x4B,0x00,0x06,0x00,0x4B,0x08,0x00,0x00,0xC6,0x04,0x4B,0x45,0x52,0x4E,0x45,0x4C,
0x07,0x00,0x4C,0x08,0x00,0x00,0xC6,0x04,0x4C,0x49,0x42,0x52,0x41,0x52,0x59,0x00,
0x04,0x00,0x50,0x08,0x00,0x00,0xC6,0x04,0x4D,0x49,0x53,0x43,0x08,0x00,0x4D,0x08,
0x00,0x00,0xC6,0x04,0x4F,0x42,0x53,0x4F,0x4C,0x45,0x54,0x45,0x08,0x00,0x51,0x08,
0x00,0x00,0xC6,0x04,0x4F,0x42,0x55,0x4D,0x50,0x52,0x45,0x56,0x02,0x00,0x56,0x08,
0x00,0x00,0xC6,0x04,0x4F,0x43,0x02,0x00,0x52,0x08,0x00,0x00,0xC6,0x04,0x4F,0x44,
0x03,0x00,0x53,0x08,0x00,0x00,0xC6,0x04,0x4F,0x45,0x4C,0x00,0x02,0x00,0x54,0x08,
0x00,0x00,0xC6,0x04,0x4F,0x4C,0x03,0x00,0x55,0x08,0x00,0x00,0xC6,0x04,0x4F,0x52,
0x55,0x00,0x0C,0x00,0x4E,0x08,0x00,0x00,0xC6,0x04,0x50,0x52,0x4F,0x47,0x49,0x4E,
0x4F,0x42,0x45,0x52,0x4F,0x4E,0x0D,0x00,0x4F,0x08,0x00,0x00,0xC6,0x04,0x50,0x52,
0x4F,0x4A,0x45,0x43,0x54,0x4F,0x42,0x45,0x52,0x4F,0x4E,0x00,0x07,0x00,0x72,0x08,
0x00,0x00,0xD0,0x04,0x44,0x45,0x55,0x54,0x53,0x43,0x48,0x00,0x07,0x00,0x73,0x08,
0x00,0x00,0xD0,0x04,0x45,0x53,0x50,0x41,0xD1,0x4F,0x4C,0x00,0x08,0x00,0x74,0x08,
0x00,0x00,0xD0,0x04,0x46,0x52,0x41,0x4E,0xC7,0x41,0x49,0x53,0x08,0x00,0x75,0x08,
0x00,0x00,0xD0,0x04,0x49,0x54,0x41,0x4C,0x49,0x41,0x4E,0x4F,0x0A,0x00,0x76,0x08,
0x00,0x00,0xD0,0x04,0x4E,0x45,0x44,0x45,0x52,0x4C,0x41,0x4E,0x44,0x53,0x05,0x00,
0x77,0x08,0x00,0x00,0xD0,0x04,0x4E,0x4F,0x52,0x53,0x4B,0x00,0x07,0x00,0x78,0x08,
0x00,0x00,0xD0,0x04,0x53,0x56,0x45,0x4E,0x53,0x4B,0x41,0x00,0x04,0x00,0x7D,0x08,
0x00,0x00,0xD1,0x04,0x44,0x4F,0x43,0x53,0x07,0x00,0xA9,0x08,0x00,0x00,0xD4,0x04,
0x50,0x52,0x41,0x47,0x4D,0x41,0x53,0x00,0x07,0x00,0xB5,0x08,0x00,0x00,0xD9,0x04,
0x50,0x52,0x41,0x47,0x4D,0x41,0x53,0x00,0x0F,0x00,0xD9,0x08,0x00,0x00,0xE6,0x04,
0x49,0x43,0x4F,0x4E,0x49,0x41,0x4E,0x46,0x45,0x41,0x54,0x55,0x52,0x45,0x53,0x00,
0x05,0x00,0xDA,0x08,0x00,0x00,0xE6,0x04,0x4D,0x59,0x41,0x52,0x54,0x00,0x08,0x00,
0xDB,0x08,0x00,0x00,0xE6,0x04,0x4E,0x45,0x57,0x49,0x43,0x4F,0x4E,0x53,0x06,0x00,
0xDC,0x08,0x00,0x00,0xE6,0x04,0x4E,0x4F,0x52,0x4D,0x41,0x4C,0x07,0x00,0xC6,0x08,
0x00,0x00,0xE9,0x04,0x44,0x45,0x55,0x54,0x53,0x43,0x48,0x00,0x08,0x00,0xC8,0x08,
0x00,0x00,0xE9,0x04,0x46,0x52,0x41,0x4E,0xC7,0x41,0x49,0x53,0x07,0x00,0xCA,0x08,
0x00,0x00,0xEA,0x04,0x44,0x45,0x55,0x54,0x53,0x43,0x48,0x00,0x07,0x00,0xCB,0x08,
0x00,0x00,0xEA,0x04,0x45,0x4E,0x47,0x4C,0x49,0x53,0x48,0x00,0x08,0x00,0xCC,0x08,
0x00,0x00,0xEA,0x04,0x46,0x52,0x41,0x4E,0xC7,0x41,0x49,0x53,0x07,0x00,0xE1,0x08,
0x00,0x00,0xF1,0x04,0x43,0x4C,0x41,0x53,0x53,0x45,0x53,0x00,0x04,0x00,0xE3,0x08,
0x00,0x00,0xF1,0x04,0x4C,0x49,0x42,0x53,0x0C,0x00,0xEC,0x08,0x00,0x00,0xF3,0x04,
0x44,0x45,0x46,0x41,0x55,0x4C,0x54,0x49,0x43,0x4F,0x4E,0x53,0x07,0x00,0xEE,0x08,
0x00,0x00,0xF4,0x04,0x44,0x45,0x55,0x54,0x53,0x43,0x48,0x00,0x07,0x00,0xEF,0x08,
0x00,0x00,0xF4,0x04,0x45,0x4E,0x47,0x4C,0x49,0x53,0x48,0x00,0x08,0x00,0xF1,0x08,
0x00,0x00,0xF5,0x04,0x43,0x41,0x54,0x41,0x4C,0x4F,0x47,0x53,0x0C,0x00,0xF5,0x08,
0x00,0x00,0xF5,0x04,0x54,0x52,0x41,0x4E,0x53,0x4C,0x41,0x54,0x49,0x4F,0x4E,0x53,
0x05,0x00,0xF9,0x08,0x00,0x00,0xF6,0x04,0x42,0x4F,0x4E,0x55,0x53,0x00,0x04,0x00,
0x11,0x09,0x00,0x00,0xF6,0x04,0x44,0x4F,0x43,0x53,0x03,0x00,0x28,0x09,0x00,0x00,
0xF6,0x04,0x45,0x4E,0x56,0x00,0x04,0x00,0x2A,0x09,0x00,0x00,0xF6,0x04,0x4C,0x49,
0x42,0x53,0x06,0x00,0x33,0x09,0x00,0x00,0xF6,0x04,0x4C,0x4F,0x43,0x41,0x4C,0x45,
0x0E,0x00,0x3A,0x09,0x00,0x00,0xF6,0x04,0x53,0x55,0x50,0x45,0x52,0x56,0x49,0x45,
0x57,0x50,0x52,0x45,0x46,0x53,0x11,0x00,0xE6,0x08,0x00,0x00,0xF7,0x04,0x53,0x55,
0x50,0x45,0x52,0x56,0x49,0x45,0x57,0x2D,0x4C,0x49,0x42,0x52,0x41,0x52,0x59,0x00,
0x09,0x00,0xE8,0x08,0x00,0x00,0xF8,0x04,0x53,0x56,0x4F,0x42,0x4A,0x45,0x43,0x54,
0x53,0x00,0x03,0x00,0xD9,0x05,0x00,0x00,0xFC,0x04,0x53,0x52,0x43,0x00,0x07,0x00,
0xE3,0x05,0x00,0x00,0xFF,0x04,0x50,0x52,0x45,0x53,0x45,0x54,0x53,0x00,0x07,0x00,
0xCF,0x05,0x00,0x00,0x00,0x05,0x44,0x45,0x55,0x54,0x53,0x43,0x48,0x00,0x08,0x00,
0xD0,0x05,0x00,0x00,0x00,0x05,0x46,0x52,0x41,0x4E,0xC7,0x41,0x49,0x53,0x05,0x00,
0xD1,0x05,0x00,0x00,0x00,0x05,0x4E,0x4F,0x52,0x53,0x4B,0x00,0x09,0x00,0xD2,0x05,
0x00,0x00,0x00,0x05,0x50,0x4F,0x52,0x54,0x55,0x47,0x55,0xCA,0x53,0x00,0x05,0x00,
0xD5,0x05,0x00,0x00,0x02,0x05,0x4F,0x53,0x31,0x2E,0x33,0x00,0x05,0x00,0xD6,0x05,
0x00,0x00,0x02,0x05,0x4F,0x53,0x32,0x2E,0x30,0x00,0x07,0x00,0x42,0x06,0x00,0x00,
0x08,0x05,0x43,0x4C,0x41,0x53,0x53,0x45,0x53,0x00,0x05,0x00,0x46,0x09,0x00,0x00,
0x14,0x05,0x44,0x41,0x4E,0x53,0x4B,0x00,0x07,0x00,0x47,0x09,0x00,0x00,0x14,0x05,
0x44,0x45,0x55,0x54,0x53,0x43,0x48,0x00,0x08,0x00,0x48,0x09,0x00,0x00,0x14,0x05,
0x46,0x52,0x41,0x4E,0xC7,0x41,0x49,0x53,0x08,0x00,0x49,0x09,0x00,0x00,0x14,0x05,
0x49,0x54,0x41,0x4C,0x49,0x41,0x4E,0x4F,0x0A,0x00,0x4A,0x09,0x00,0x00,0x14,0x05,
0x4E,0x45,0x44,0x45,0x52,0x4C,0x41,0x4E,0x44,0x53,0x05,0x00,0x4B,0x09,0x00,0x00,
0x14,0x05,0x4E,0x4F,0x52,0x53,0x4B,0x00,0x07,0x00,0x4C,0x09,0x00,0x00,0x14,0x05,
0x53,0x56,0x45,0x4E,0x53,0x4B,0x41,0x00,0x0D,0x00,0x4F,0x09,0x00,0x00,0x16,0x05,
0x46,0x4F,0x52,0x43,0x45,0x4D,0x55,0x43,0x48,0x4D,0x4F,0x52,0x45,0x00,0x06,0x00,
0x50,0x09,0x00,0x00,0x16,0x05,0x57,0x42,0x49,0x4E,0x46,0x4F,0x08,0x00,0xAA,0x09,
0x00,0x00,0x1B,0x05,0x49,0x4E,0x43,0x4C,0x55,0x44,0x45,0x53,0x04,0x00,0xAB,0x09,
0x00,0x00,0x1B,0x05,0x50,0x52,0x4F,0x47,0x04,0x00,0xAC,0x09,0x00,0x00,0x1B,0x05,
0x55,0x54,0x49,0x4C,0x07,0x00,0x50,0x0A,0x00,0x00,0x1C,0x05,0x44,0x45,0x55,0x54,
0x53,0x43,0x48,0x00,0x07,0x00,0x52,0x0A,0x00,0x00,0x1D,0x05,0x44,0x45,0x55,0x54,
0x53,0x43,0x48,0x00,0x07,0x00,0x53,0x0A,0x00,0x00,0x1D,0x05,0x45,0x4E,0x47,0x4C,
0x49,0x53,0x48,0x00,0x05,0x00,0x57,0x0A,0x00,0x00,0x1F,0x05,0x44,0x41,0x4E,0x53,
0x4B,0x00,0x07,0x00,0x58,0x0A,0x00,0x00,0x1F,0x05,0x44,0x45,0x55,0x54,0x53,0x43,
0x48,0x00,0x08,0x00,0x59,0x0A,0x00,0x00,0x1F,0x05,0x46,0x52,0x41,0x4E,0xC7,0x41,
0x49,0x53,0x0A,0x00,0x5A,0x0A,0x00,0x00,0x1F,0x05,0x4E,0x45,0x44,0x45,0x52,0x4C,
0x41,0x4E,0x44,0x53,0x07,0x00,0x5B,0x0A,0x00,0x00,0x1F,0x05,0x53,0x56,0x45,0x4E,
0x53,0x4B,0x41,0x00,0x04,0x00,0xB3,0x09,0x00,0x00,0x22,0x05,0x43,0x4C,0x49,0x42,
0x09,0x00,0xB4,0x09,0x00,0x00,0x22,0x05,0x4C,0x49,0x42,0x52,0x41,0x52,0x49,0x45,
0x53,0x00,0x07,0x00,0xB5,0x09,0x00,0x00,0x22,0x05,0x50,0x52,0x41,0x47,0x4D,0x41,
0x53,0x00,0x05,0x00,0xB6,0x09,0x00,0x00,0x22,0x05,0x50,0x52,0x4F,0x54,0x4F,0x00,
0x09,0x00,0x81,0x09,0x00,0x00,0x24,0x05,0x44,0x41,0x54,0x41,0x54,0x59,0x50,0x45,
0x53,0x00,0x09,0x00,0x83,0x09,0x00,0x00,0x25,0x05,0x44,0x41,0x54,0x41,0x54,0x59,
0x50,0x45,0x53,0x00,0x09,0x00,0x87,0x09,0x00,0x00,0x28,0x05,0x44,0x41,0x54,0x41,
0x54,0x59,0x50,0x45,0x53,0x00,0x09,0x00,0x5E,0x09,0x00,0x00,0x2B,0x05,0x44,0x41,
0x54,0x41,0x54,0x59,0x50,0x45,0x53,0x00,0x09,0x00,0x60,0x09,0x00,0x00,0x2C,0x05,
0x44,0x41,0x54,0x41,0x54,0x59,0x50,0x45,0x53,0x00,0x09,0x00,0x8C,0x09,0x00,0x00,
0x2E,0x05,0x44,0x41,0x54,0x41,0x54,0x59,0x50,0x45,0x53,0x00,0x09,0x00,0x8E,0x09,
0x00,0x00,0x2F,0x05,0x44,0x41,0x54,0x41,0x54,0x59,0x50,0x45,0x53,0x00,0x09,0x00,
0x91,0x09,0x00,0x00,0x31,0x05,0x44,0x41,0x54,0x41,0x54,0x59,0x50,0x45,0x53,0x00,
0x03,0x00,0x95,0x09,0x00,0x00,0x34,0x05,0x52,0x43,0x53,0x00,0x06,0x00,0x66,0x09,
0x00,0x00,0x39,0x05,0x43,0x4F,0x44,0x45,0x43,0x53,0x09,0x00,0x67,0x09,0x00,0x00,
0x39,0x05,0x44,0x41,0x54,0x41,0x54,0x59,0x50,0x45,0x53,0x00,0x09,0x00,0x69,0x09,
0x00,0x00,0x3A,0x05,0x44,0x41,0x54,0x41,0x54,0x59,0x50,0x45,0x53,0x00,0x08,0x00,
0x6C,0x09,0x00,0x00,0x3C,0x05,0x43,0x41,0x54,0x41,0x4C,0x4F,0x47,0x53,0x0B,0x00,
0x71,0x09,0x00,0x00,0x3D,0x05,0x45,0x4E,0x56,0x2D,0x41,0x52,0x43,0x48,0x49,0x56,
0x45,0x00,0x09,0x00,0x7E,0x09,0x00,0x00,0x3F,0x05,0x44,0x41,0x54,0x41,0x54,0x59,
0x50,0x45,0x53,0x00,0x09,0x00,0x78,0x09,0x00,0x00,0x40,0x05,0x44,0x41,0x54,0x41,
0x54,0x59,0x50,0x45,0x53,0x00,0x05,0x00,0xBC,0x09,0x00,0x00,0x4A,0x05,0x48,0x41,
0x4E,0x4F,0x49,0x00,0x04,0x00,0xBD,0x09,0x00,0x00,0x4A,0x05,0x4D,0x41,0x5A,0x45,
0x03,0x00,0xBE,0x09,0x00,0x00,0x4A,0x05,0x55,0x52,0x4D,0x00,0x05,0x00,0xC1,0x09,
0x00,0x00,0x4B,0x05,0x50,0x52,0x4F,0x54,0x4F,0x00,0x05,0x00,0xCF,0x09,0x00,0x00,
0x52,0x05,0x44,0x41,0x4E,0x53,0x4B,0x00,0x07,0x00,0xD0,0x09,0x00,0x00,0x52,0x05,
0x44,0x45,0x55,0x54,0x53,0x43,0x48,0x00,0x07,0x00,0xD1,0x09,0x00,0x00,0x52,0x05,
0x45,0x53,0x50,0x41,0xD1,0x4F,0x4C,0x00,0x08,0x00,0xD2,0x09,0x00,0x00,0x52,0x05,
0x46,0x52,0x41,0x4E,0xC7,0x41,0x49,0x53,0x08,0x00,0xD3,0x09,0x00,0x00,0x52,0x05,
0x49,0x54,0x41,0x4C,0x49,0x41,0x4E,0x4F,0x0A,0x00,0xD4,0x09,0x00,0x00,0x52,0x05,
0x4E,0x45,0x44,0x45,0x52,0x4C,0x41,0x4E,0x44,0x53,0x05,0x00,0xD5,0x09,0x00,0x00,
0x52,0x05,0x4E,0x4F,0x52,0x53,0x4B,0x00,0x06,0x00,0xD6,0x09,0x00,0x00,0x52,0x05,
0x50,0x4F,0x4C,0x53,0x4B,0x49,0x09,0x00,0xD7,0x09,0x00,0x00,0x52,0x05,0x50,0x4F,
0x52,0x54,0x55,0x47,0x55,0xCA,0x53,0x00,0x07,0x00,0xD8,0x09,0x00,0x00,0x52,0x05,
0x53,0x56,0x45,0x4E,0x53,0x4B,0x41,0x00,0x04,0x00,0xDA,0x09,0x00,0x00,0x56,0x05,
0x44,0x49,0x43,0x45,0x03,0x00,0xDB,0x09,0x00,0x00,0x56,0x05,0x47,0x43,0x43,0x00,
0x0A,0x00,0xDC,0x09,0x00,0x00,0x56,0x05,0x48,0x53,0x50,0x41,0x53,0x43,0x41,0x4C,
0x2E,0x31,0x0A,0x00,0xDD,0x09,0x00,0x00,0x56,0x05,0x48,0x53,0x50,0x41,0x53,0x43,
0x41,0x4C,0x2E,0x32,0x07,0x00,0xDE,0x09,0x00,0x00,0x56,0x05,0x4D,0x32,0x41,0x4D,
0x49,0x47,0x41,0x00,0x08,0x00,0xDF,0x09,0x00,0x00,0x56,0x05,0x4D,0x32,0x53,0x50,
0x52,0x49,0x4E,0x54,0x06,0x00,0xE0,0x09,0x00,0x00,0x56,0x05,0x4D,0x41,0x4E,0x58,
0x2D,0x43,0x06,0x00,0xE1,0x09,0x00,0x00,0x56,0x05,0x4F,0x42,0x45,0x52,0x4F,0x4E,
0x03,0x00,0xE2,0x09,0x00,0x00,0x56,0x05,0x50,0x43,0x51,0x00,0x05,0x00,0xE3,0x09,
0x00,0x00,0x56,0x05,0x53,0x41,0x53,0x2D,0x43,0x00,0x04,0x00,0xEE,0x09,0x00,0x00,
0x57,0x05,0x43,0x4C,0x49,0x42,0x09,0x00,0xEF,0x09,0x00,0x00,0x57,0x05,0x4C,0x49,
0x42,0x52,0x41,0x52,0x49,0x45,0x53,0x00,0x07,0x00,0xF0,0x09,0x00,0x00,0x57,0x05,
0x50,0x52,0x41,0x47,0x4D,0x41,0x53,0x00,0x05,0x00,0xF1,0x09,0x00,0x00,0x57,0x05,
0x50,0x52,0x4F,0x54,0x4F,0x00,0x07,0x00,0xF3,0x09,0x00,0x00,0x58,0x05,0x55,0x54,
0x49,0x4C,0x49,0x54,0x59,0x00,0x0E,0x00,0xE5,0x09,0x00,0x00,0x59,0x05,0x57,0x4F,
0x52,0x4B,0x42,0x45,0x4E,0x43,0x48,0x5F,0x32,0x2E,0x31,0x2B,0x08,0x00,0xE9,0x09,
0x00,0x00,0x5D,0x05,0x45,0x58,0x41,0x4D,0x50,0x4C,0x45,0x53,0x08,0x00,0x0F,0x0A,
0x00,0x00,0x5F,0x05,0x46,0x52,0x41,0x4E,0xC7,0x41,0x49,0x53,0x05,0x00,0xF9,0x09,
0x00,0x00,0x61,0x05,0x44,0x41,0x4E,0x53,0x4B,0x00,0x07,0x00,0xFA,0x09,0x00,0x00,
0x61,0x05,0x44,0x45,0x55,0x54,0x53,0x43,0x48,0x00,0x07,0x00,0xFB,0x09,0x00,0x00,
0x61,0x05,0x45,0x53,0x50,0x41,0xD1,0x4F,0x4C,0x00,0x08,0x00,0xFC,0x09,0x00,0x00,
0x61,0x05,0x46,0x52,0x41,0x4E,0xC7,0x41,0x49,0x53,0x08,0x00,0xFD,0x09,0x00,0x00,
0x61,0x05,0x49,0x54,0x41,0x4C,0x49,0x41,0x4E,0x4F,0x07,0x00,0xFE,0x09,0x00,0x00,
0x61,0x05,0x53,0x56,0x45,0x4E,0x53,0x4B,0x41,0x00,0x02,0x00,0x01,0x0A,0x00,0x00,
0x63,0x05,0x46,0x44,0x07,0x00,0x02,0x0A,0x00,0x00,0x63,0x05,0x49,0x4E,0x43,0x4C,
0x55,0x44,0x45,0x00,0x03,0x00,0x03,0x0A,0x00,0x00,0x63,0x05,0x4C,0x49,0x42,0x00,
0x04,0x00,0x04,0x0A,0x00,0x00,0x63,0x05,0x4C,0x49,0x42,0x53,0x04,0x00,0x20,0x0A,
0x00,0x00,0x6C,0x05,0x42,0x4C,0x4F,0x42,0x08,0x00,0x23,0x0A,0x00,0x00,0x6E,0x05,
0x43,0x48,0x45,0x43,0x4B,0x53,0x59,0x4D,0x04,0x00,0x24,0x0A,0x00,0x00,0x6E,0x05,
0x46,0x52,0x45,0x45,0x06,0x00,0x27,0x0A,0x00,0x00,0x6E,0x05,0x4D,0x59,0x43,0x4F,
0x50,0x59,0x06,0x00,0x25,0x0A,0x00,0x00,0x6E,0x05,0x4D,0x59,0x4A,0x4F,0x49,0x4E,
0x06,0x00,0x26,0x0A,0x00,0x00,0x6E,0x05,0x54,0x42,0x52,0x45,0x41,0x4B,0x03,0x00,
0x39,0x0A,0x00,0x00,0x74,0x05,0x58,0x46,0x44,0x00,0x03,0x00,0x3C,0x0A,0x00,0x00,
0x75,0x05,0x58,0x46,0x44,0x00,0x07,0x00,0x46,0x0A,0x00,0x00,0x7A,0x05,0x44,0x45,
0x55,0x54,0x53,0x43,0x48,0x00,0x08,0x00,0x47,0x0A,0x00,0x00,0x7A,0x05,0x46,0x52,
0x41,0x4E,0xC7,0x41,0x49,0x53,0x07,0x00,0x49,0x0A,0x00,0x00,0x7B,0x05,0x45,0x4E,
0x47,0x4C,0x49,0x53,0x48,0x00,0x08,0x00,0x4A,0x0A,0x00,0x00,0x7B,0x05,0x46,0x52,
0x41,0x4E,0xC7,0x41,0x49,0x53,0x03,0x00,0x90,0x0B,0x00,0x00,0x81,0x05,0x47,0x45,
0x4E,0x00,0x07,0x00,0x96,0x0B,0x00,0x00,0x82,0x05,0x4D,0x41,0x43,0x48,0x49,0x4E,
0x45,0x00,0x04,0x00,0x94,0x0B,0x00,0x00,0x82,0x05,0x4F,0x42,0x4A,0x43,0x03,0x00,
0x95,0x0B,0x00,0x00,0x82,0x05,0x53,0x59,0x53,0x00,0x07,0x00,0x98,0x0B,0x00,0x00,
0x83,0x05,0x4C,0x49,0x42,0x4D,0x30,0x32,0x30,0x00,0x07,0x00,0xB3,0x0B,0x00,0x00,
0x87,0x05,0x4D,0x41,0x43,0x48,0x49,0x4E,0x45,0x00,0x04,0x00,0xB1,0x0B,0x00,0x00,
0x87,0x05,0x4F,0x42,0x4A,0x43,0x03,0x00,0xB2,0x0B,0x00,0x00,0x87,0x05,0x53,0x59,
0x53,0x00,0x07,0x00,0xB5,0x0B,0x00,0x00,0x88,0x05,0x4C,0x49,0x42,0x4D,0x30,0x32,
0x30,0x00,0x02,0x00,0xCB,0x0C,0x00,0x00,0xA0,0x05,0x50,0x4B,0x03,0x00,0xC9,0x0C,
0x00,0x00,0xA0,0x05,0x54,0x46,0x4D,0x00,0x02,0x00,0xCA,0x0C,0x00,0x00,0xA0,0x05,
0x56,0x46,0x02,0x00,0xD0,0x0C,0x00,0x00,0xA1,0x05,0x50,0x4B,0x03,0x00,0xCE,0x0C,
0x00,0x00,0xA1,0x05,0x54,0x46,0x4D,0x00,0x02,0x00,0xCF,0x0C,0x00,0x00,0xA1,0x05,
0x56,0x46,0x02,0x00,0xD5,0x0C,0x00,0x00,0xA2,0x05,0x50,0x4B,0x03,0x00,0xD3,0x0C,
0x00,0x00,0xA2,0x05,0x54,0x46,0x4D,0x00,0x02,0x00,0xD4,0x0C,0x00,0x00,0xA2,0x05,
0x56,0x46,0x02,0x00,0xDA,0x0C,0x00,0x00,0xA3,0x05,0x50,0x4B,0x03,0x00,0xD8,0x0C,
0x00,0x00,0xA3,0x05,0x54,0x46,0x4D,0x00,0x02,0x00,0xD9,0x0C,0x00,0x00,0xA3,0x05,
0x56,0x46,0x02,0x00,0xDF,0x0C,0x00,0x00,0xA4,0x05,0x50,0x4B,0x03,0x00,0xDD,0x0C,
0x00,0x00,0xA4,0x05,0x54,0x46,0x4D,0x00,0x02,0x00,0xDE,0x0C,0x00,0x00,0xA4,0x05,
0x56,0x46,0x02,0x00,0xE4,0x0C,0x00,0x00,0xA5,0x05,0x50,0x4B,0x03,0x00,0xE2,0x0C,
0x00,0x00,0xA5,0x05,0x54,0x46,0x4D,0x00,0x02,0x00,0xE3,0x0C,0x00,0x00,0xA5,0x05,
0x56,0x46,0x02,0x00,0xE8,0x0C,0x00,0x00,0xA6,0x05,0x50,0x4B,0x03,0x00,0xE7,0x0C,
0x00,0x00,0xA6,0x05,0x54,0x46,0x4D,0x00,0x02,0x00,0xC6,0x0C,0x00,0x00,0xA7,0x05,
0x50,0x4B,0x03,0x00,0xC4,0x0C,0x00,0x00,0xA7,0x05,0x54,0x46,0x4D,0x00,0x02,0x00,
0xC5,0x0C,0x00,0x00,0xA7,0x05,0x56,0x46,0x03,0x00,0xF4,0x0C,0x00,0x00,0xA8,0x05,
0x41,0x46,0x4D,0x00,0x02,0x00,0xF8,0x0C,0x00,0x00,0xA8,0x05,0x50,0x4B,0x03,0x00,
0xF6,0x0C,0x00,0x00,0xA8,0x05,0x54,0x46,0x4D,0x00,0x05,0x00,0xF7,0x0C,0x00,0x00,
0xA8,0x05,0x54,0x59,0x50,0x45,0x31,0x00,0x02,0x00,0xF5,0x0C,0x00,0x00,0xA8,0x05,
0x56,0x46,0x02,0x00,0xED,0x0C,0x00,0x00,0xA9,0x05,0x50,0x4B,0x03,0x00,0xEB,0x0C,
0x00,0x00,0xA9,0x05,0x54,0x46,0x4D,0x00,0x02,0x00,0xEC,0x0C,0x00,0x00,0xA9,0x05,
0x56,0x46,0x02,0x00,0xF1,0x0C,0x00,0x00,0xAA,0x05,0x50,0x4B,0x03,0x00,0xF0,0x0C,
0x00,0x00,0xAA,0x05,0x54,0x46,0x4D,0x00,0x02,0x00,0xA4,0x0C,0x00,0x00,0xAB,0x05,
0x50,0x4B,0x03,0x00,0xA3,0x0C,0x00,0x00,0xAB,0x05,0x53,0x52,0x43,0x00,0x03,0x00,
0xA2,0x0C,0x00,0x00,0xAB,0x05,0x54,0x46,0x4D,0x00,0x02,0x00,0xAD,0x0C,0x00,0x00,
0xAC,0x05,0x50,0x4B,0x03,0x00,0xAB,0x0C,0x00,0x00,0xAC,0x05,0x53,0x52,0x43,0x00,
0x03,0x00,0xAA,0x0C,0x00,0x00,0xAC,0x05,0x54,0x46,0x4D,0x00,0x02,0x00,0xB8,0x0C,
0x00,0x00,0xAD,0x05,0x50,0x4B,0x03,0x00,0xB7,0x0C,0x00,0x00,0xAD,0x05,0x53,0x52,
0x43,0x00,0x03,0x00,0xB6,0x0C,0x00,0x00,0xAD,0x05,0x54,0x46,0x4D,0x00,0x02,0x00,
0xBF,0x0C,0x00,0x00,0xAE,0x05,0x50,0x4B,0x03,0x00,0xBE,0x0C,0x00,0x00,0xAE,0x05,
0x53,0x52,0x43,0x00,0x03,0x00,0xBD,0x0C,0x00,0x00,0xAE,0x05,0x54,0x46,0x4D,0x00,
0x02,0x00,0x63,0x0C,0x00,0x00,0xAF,0x05,0x50,0x4B,0x03,0x00,0x62,0x0C,0x00,0x00,
0xAF,0x05,0x54,0x46,0x4D,0x00,0x03,0x00,0xFF,0x0C,0x00,0x00,0xB0,0x05,0x41,0x46,
0x4D,0x00,0x02,0x00,0x00,0x0D,0x00,0x00,0xB0,0x05,0x50,0x4B,0x03,0x00,0xFE,0x0C,
0x00,0x00,0xB0,0x05,0x54,0x46,0x4D,0x00,0x05,0x00,0xFC,0x0C,0x00,0x00,0xB0,0x05,
0x54,0x59,0x50,0x45,0x31,0x00,0x02,0x00,0xFD,0x0C,0x00,0x00,0xB0,0x05,0x56,0x46,
0x02,0x00,0x2B,0x0C,0x00,0x00,0xB1,0x05,0x50,0x4B,0x03,0x00,0x29,0x0C,0x00,0x00,
0xB1,0x05,0x54,0x46,0x4D,0x00,0x02,0x00,0x2A,0x0C,0x00,0x00,0xB1,0x05,0x56,0x46,
0x02,0x00,0x30,0x0C,0x00,0x00,0xB2,0x05,0x50,0x4B,0x03,0x00,0x2E,0x0C,0x00,0x00,
0xB2,0x05,0x54,0x46,0x4D,0x00,0x02,0x00,0x2F,0x0C,0x00,0x00,0xB2,0x05,0x56,0x46,
0x02,0x00,0x35,0x0C,0x00,0x00,0xB3,0x05,0x50,0x4B,0x03,0x00,0x33,0x0C,0x00,0x00,
0xB3,0x05,0x54,0x46,0x4D,0x00,0x02,0x00,0x34,0x0C,0x00,0x00,0xB3,0x05,0x56,0x46,
0x02,0x00,0x53,0x0C,0x00,0x00,0xB4,0x05,0x50,0x4B,0x03,0x00,0x51,0x0C,0x00,0x00,
0xB4,0x05,0x54,0x46,0x4D,0x00,0x02,0x00,0x52,0x0C,0x00,0x00,0xB4,0x05,0x56,0x46,
0x02,0x00,0x3A,0x0C,0x00,0x00,0xB5,0x05,0x50,0x4B,0x03,0x00,0x38,0x0C,0x00,0x00,
0xB5,0x05,0x54,0x46,0x4D,0x00,0x02,0x00,0x39,0x0C,0x00,0x00,0xB5,0x05,0x56,0x46,
0x02,0x00,0x3F,0x0C,0x00,0x00,0xB6,0x05,0x50,0x4B,0x03,0x00,0x3D,0x0C,0x00,0x00,
0xB6,0x05,0x54,0x46,0x4D,0x00,0x02,0x00,0x3E,0x0C,0x00,0x00,0xB6,0x05,0x56,0x46,
0x02,0x00,0x44,0x0C,0x00,0x00,0xB7,0x05,0x50,0x4B,0x03,0x00,0x42,0x0C,0x00,0x00,
0xB7,0x05,0x54,0x46,0x4D,0x00,0x02,0x00,0x43,0x0C,0x00,0x00,0xB7,0x05,0x56,0x46,
0x02,0x00,0x49,0x0C,0x00,0x00,0xB8,0x05,0x50,0x4B,0x03,0x00,0x47,0x0C,0x00,0x00,
0xB8,0x05,0x54,0x46,0x4D,0x00,0x02,0x00,0x48,0x0C,0x00,0x00,0xB8,0x05,0x56,0x46,
0x02,0x00,0x4E,0x0C,0x00,0x00,0xB9,0x05,0x50,0x4B,0x03,0x00,0x4C,0x0C,0x00,0x00,
0xB9,0x05,0x54,0x46,0x4D,0x00,0x02,0x00,0x4D,0x0C,0x00,0x00,0xB9,0x05,0x56,0x46,
0x02,0x00,0x58,0x0C,0x00,0x00,0xBA,0x05,0x50,0x4B,0x03,0x00,0x56,0x0C,0x00,0x00,
0xBA,0x05,0x54,0x46,0x4D,0x00,0x02,0x00,0x57,0x0C,0x00,0x00,0xBA,0x05,0x56,0x46,
0x02,0x00,0x5E,0x0C,0x00,0x00,0xBB,0x05,0x50,0x4B,0x03,0x00,0x5B,0x0C,0x00,0x00,
0xBB,0x05,0x54,0x46,0x4D,0x00,0x02,0x00,0x5D,0x0C,0x00,0x00,0xBB,0x05,0x56,0x46,
0x02,0x00,0x1C,0x0C,0x00,0x00,0xBC,0x05,0x50,0x4B,0x03,0x00,0x1A,0x0C,0x00,0x00,
0xBC,0x05,0x54,0x46,0x4D,0x00,0x02,0x00,0x1B,0x0C,0x00,0x00,0xBC,0x05,0x56,0x46,
0x02,0x00,0x25,0x0C,0x00,0x00,0xBD,0x05,0x50,0x4B,0x03,0x00,0x24,0x0C,0x00,0x00,
0xBD,0x05,0x54,0x46,0x4D,0x00,0x02,0x00,0x21,0x0C,0x00,0x00,0xBE,0x05,0x50,0x4B,
0x03,0x00,0x1F,0x0C,0x00,0x00,0xBE,0x05,0x54,0x46,0x4D,0x00,0x02,0x00,0x20,0x0C,
0x00,0x00,0xBE,0x05,0x56,0x46,0x02,0x00,0x6C,0x0C,0x00,0x00,0xBF,0x05,0x50,0x4B,
0x03,0x00,0x67,0x0C,0x00,0x00,0xBF,0x05,0x53,0x52,0x43,0x00,0x03,0x00,0x6A,0x0C,
0x00,0x00,0xBF,0x05,0x54,0x46,0x4D,0x00,0x02,0x00,0x83,0x0C,0x00,0x00,0xC0,0x05,
0x50,0x4B,0x03,0x00,0x81,0x0C,0x00,0x00,0xC0,0x05,0x53,0x52,0x43,0x00,0x03,0x00,
0x82,0x0C,0x00,0x00,0xC0,0x05,0x54,0x46,0x4D,0x00,0x02,0x00,0x97,0x0C,0x00,0x00,
0xC1,0x05,0x50,0x4B,0x03,0x00,0x95,0x0C,0x00,0x00,0xC1,0x05,0x53,0x52,0x43,0x00,
0x03,0x00,0x92,0x0C,0x00,0x00,0xC1,0x05,0x54,0x46,0x4D,0x00,0x02,0x00,0x9C,0x0C,
0x00,0x00,0xC2,0x05,0x50,0x4B,0x03,0x00,0x9A,0x0C,0x00,0x00,0xC2,0x05,0x53,0x52,
0x43,0x00,0x03,0x00,0x9B,0x0C,0x00,0x00,0xC2,0x05,0x54,0x46,0x4D,0x00,0x02,0x00,
0x8E,0x0C,0x00,0x00,0xC3,0x05,0x50,0x4B,0x03,0x00,0x8C,0x0C,0x00,0x00,0xC3,0x05,
0x53,0x52,0x43,0x00,0x03,0x00,0x8D,0x0C,0x00,0x00,0xC3,0x05,0x54,0x46,0x4D,0x00,
0x02,0x00,0x89,0x0C,0x00,0x00,0xC4,0x05,0x50,0x4B,0x03,0x00,0x87,0x0C,0x00,0x00,
0xC4,0x05,0x53,0x52,0x43,0x00,0x03,0x00,0x88,0x0C,0x00,0x00,0xC4,0x05,0x54,0x46,
0x4D,0x00,0x02,0x00,0x7D,0x0C,0x00,0x00,0xC5,0x05,0x50,0x4B,0x03,0x00,0x7B,0x0C,
0x00,0x00,0xC5,0x05,0x53,0x52,0x43,0x00,0x03,0x00,0x7C,0x0C,0x00,0x00,0xC5,0x05,
0x54,0x46,0x4D,0x00,0x06,0x00,0x1A,0x0D,0x00,0x00,0xC6,0x05,0x4C,0x4A,0x46,0x4F,
0x55,0x52,0x03,0x00,0x07,0x0D,0x00,0x00,0xC7,0x05,0x41,0x46,0x4D,0x00,0x02,0x00,
0x08,0x0D,0x00,0x00,0xC7,0x05,0x50,0x4B,0x03,0x00,0x06,0x0D,0x00,0x00,0xC7,0x05,
0x54,0x46,0x4D,0x00,0x05,0x00,0x04,0x0D,0x00,0x00,0xC7,0x05,0x54,0x59,0x50,0x45,
0x31,0x00,0x02,0x00,0x05,0x0D,0x00,0x00,0xC7,0x05,0x56,0x46,0x03,0x00,0x0E,0x0D,
0x00,0x00,0xC8,0x05,0x41,0x46,0x4D,0x00,0x02,0x00,0x0F,0x0D,0x00,0x00,0xC8,0x05,
0x50,0x4B,0x03,0x00,0x0D,0x0D,0x00,0x00,0xC8,0x05,0x54,0x46,0x4D,0x00,0x05,0x00,
0x0B,0x0D,0x00,0x00,0xC8,0x05,0x54,0x59,0x50,0x45,0x31,0x00,0x02,0x00,0x0C,0x0D,
0x00,0x00,0xC8,0x05,0x56,0x46,0x03,0x00,0x15,0x0D,0x00,0x00,0xC9,0x05,0x41,0x46,
0x4D,0x00,0x02,0x00,0x16,0x0D,0x00,0x00,0xC9,0x05,0x50,0x4B,0x03,0x00,0x14,0x0D,
0x00,0x00,0xC9,0x05,0x54,0x46,0x4D,0x00,0x05,0x00,0x12,0x0D,0x00,0x00,0xC9,0x05,
0x54,0x59,0x50,0x45,0x31,0x00,0x02,0x00,0x13,0x0D,0x00,0x00,0xC9,0x05,0x56,0x46,
0x07,0x00,0xBE,0x00,0x00,0x00,0xEA,0x05,0x44,0x45,0x55,0x54,0x53,0x43,0x48,0x00,
0x07,0x00,0xBF,0x00,0x00,0x00,0xEA,0x05,0x45,0x4E,0x47,0x4C,0x49,0x53,0x48,0x00,
0x0F,0x00,0x11,0x01,0x00,0x00,0x0E,0x06,0x43,0x59,0x43,0x4C,0x45,0x54,0x4F,0x4D,
0x45,0x4E,0x55,0x2D,0x32,0x2E,0x31,0x00,0x0A,0x00,0x17,0x01,0x00,0x00,0x0E,0x06,
0x53,0x54,0x52,0x49,0x4E,0x47,0x43,0x4C,0x49,0x50,0x03,0x00,0x40,0x01,0x00,0x00,
0x41,0x06,0x59,0x41,0x58,0x00,0x03,0x00,0x43,0x01,0x00,0x00,0x43,0x06,0x42,0x49,
0x47,0x00,0x04,0x00,0x44,0x01,0x00,0x00,0x43,0x06,0x4D,0x49,0x4E,0x49,0x07,0x00,
0x47,0x01,0x00,0x00,0x45,0x06,0x4D,0x4F,0x44,0x55,0x4C,0x45,0x53,0x00,0x08,0x00,
0x4D,0x01,0x00,0x00,0x48,0x06,0x44,0x45,0x56,0x49,0x43,0x45,0x49,0x4F,0x0A,0x00,
0x4E,0x01,0x00,0x00,0x48,0x06,0x49,0x4E,0x54,0x45,0x52,0x52,0x55,0x50,0x54,0x53,
0x05,0x00,0x4F,0x01,0x00,0x00,0x48,0x06,0x4C,0x49,0x53,0x54,0x53,0x00,0x06,0x00,
0x50,0x01,0x00,0x00,0x48,0x06,0x4D,0x45,0x4D,0x4F,0x52,0x59,0x05,0x00,0x51,0x01,
0x00,0x00,0x48,0x06,0x50,0x4F,0x52,0x54,0x53,0x00,0x0A,0x00,0x52,0x01,0x00,0x00,
0x48,0x06,0x53,0x45,0x4D,0x41,0x50,0x48,0x4F,0x52,0x45,0x53,0x07,0x00,0x53,0x01,
0x00,0x00,0x48,0x06,0x53,0x49,0x47,0x4E,0x41,0x4C,0x53,0x00,0x05,0x00,0x54,0x01,
0x00,0x00,0x48,0x06,0x54,0x41,0x53,0x4B,0x53,0x00,0x06,0x00,0x57,0x01,0x00,0x00,
0x4A,0x06,0x42,0x4F,0x4F,0x50,0x53,0x49,0x07,0x00,0x58,0x01,0x00,0x00,0x4A,0x06,
0x47,0x41,0x44,0x47,0x45,0x54,0x53,0x00,0x0B,0x00,0x59,0x01,0x00,0x00,0x4A,0x06,
0x49,0x4D,0x41,0x47,0x45,0x53,0x5F,0x54,0x45,0x58,0x54,0x00,0x0D,0x00,0x5A,0x01,
0x00,0x00,0x4A,0x06,0x49,0x4E,0x54,0x55,0x49,0x54,0x49,0x4F,0x4E,0x5F,0x47,0x55,
0x49,0x00,0x0A,0x00,0x5B,0x01,0x00,0x00,0x4A,0x06,0x49,0x4F,0x5F,0x4D,0x45,0x54,
0x48,0x4F,0x44,0x53,0x05,0x00,0x5C,0x01,0x00,0x00,0x4A,0x06,0x4D,0x45,0x4E,0x55,
0x53,0x00,0x0E,0x00,0x5D,0x01,0x00,0x00,0x4A,0x06,0x4D,0x4F,0x55,0x53,0x45,0x5F,
0x4B,0x45,0x59,0x42,0x4F,0x41,0x52,0x44,0x11,0x00,0x5E,0x01,0x00,0x00,0x4A,0x06,
0x52,0x45,0x51,0x55,0x45,0x53,0x54,0x45,0x52,0x53,0x5F,0x41,0x4C,0x45,0x52,0x54,
0x53,0x00,0x07,0x00,0x5F,0x01,0x00,0x00,0x4A,0x06,0x53,0x43,0x52,0x45,0x45,0x4E,
0x53,0x00,0x07,0x00,0x60,0x01,0x00,0x00,0x4A,0x06,0x53,0x50,0x45,0x43,0x49,0x41,
0x4C,0x00,0x07,0x00,0x61,0x01,0x00,0x00,0x4A,0x06,0x57,0x49,0x4E,0x44,0x4F,0x57,
0x53,0x00,0x07,0x00,0x71,0x01,0x00,0x00,0x4F,0x06,0x42,0x49,0x4E,0x54,0x52,0x45,
0x45,0x00,0x04,0x00,0x72,0x01,0x00,0x00,0x4F,0x06,0x48,0x41,0x53,0x48,0x09,0x00,
0x73,0x01,0x00,0x00,0x4F,0x06,0x53,0x43,0x52,0x4F,0x4C,0x4C,0x57,0x49,0x4E,0x00,
0x05,0x00,0x74,0x01,0x00,0x00,0x4F,0x06,0x53,0x54,0x41,0x43,0x4B,0x00,0x03,0x00,
0x7C,0x01,0x00,0x00,0x56,0x06,0x50,0x47,0x53,0x00,0x05,0x00,0x7D,0x01,0x00,0x00,
0x56,0x06,0x53,0x54,0x41,0x43,0x4B,0x00,0x08,0x00,0x80,0x01,0x00,0x00,0x58,0x06,
0x41,0x4D,0x49,0x47,0x41,0x4C,0x49,0x42,0x05,0x00,0x81,0x01,0x00,0x00,0x58,0x06,
0x41,0x52,0x45,0x58,0x58,0x00,0x05,0x00,0x82,0x01,0x00,0x00,0x58,0x06,0x41,0x53,
0x59,0x4E,0x43,0x00,0x06,0x00,0x83,0x01,0x00,0x00,0x58,0x06,0x42,0x4F,0x4F,0x50,
0x53,0x49,0x0B,0x00,0x84,0x01,0x00,0x00,0x58,0x06,0x43,0x4C,0x4F,0x4E,0x45,0x53,
0x43,0x52,0x45,0x45,0x4E,0x00,0x0C,0x00,0x85,0x01,0x00,0x00,0x58,0x06,0x43,0x4F,
0x4E,0x53,0x54,0x52,0x55,0x43,0x54,0x4F,0x52,0x53,0x0A,0x00,0x86,0x01,0x00,0x00,
0x58,0x06,0x43,0x4F,0x4F,0x4B,0x52,0x41,0x57,0x4B,0x45,0x59,0x05,0x00,0x87,0x01,
0x00,0x00,0x58,0x06,0x43,0x54,0x59,0x50,0x45,0x00,0x07,0x00,0x88,0x01,0x00,0x00,
0x58,0x06,0x45,0x41,0x53,0x59,0x47,0x55,0x49,0x00,0x0A,0x00,0x8A,0x01,0x00,0x00,
0x58,0x06,0x45,0x58,0x43,0x45,0x50,0x54,0x49,0x4F,0x4E,0x53,0x04,0x00,0x8B,0x01,
0x00,0x00,0x58,0x06,0x46,0x49,0x4C,0x45,0x0C,0x00,0x8C,0x01,0x00,0x00,0x58,0x06,
0x46,0x49,0x4C,0x4C,0x45,0x44,0x56,0x45,0x43,0x54,0x4F,0x52,0x04,0x00,0x8E,0x01,
0x00,0x00,0x58,0x06,0x48,0x4F,0x4F,0x4B,0x04,0x00,0x8F,0x01,0x00,0x00,0x58,0x06,
0x49,0x4C,0x42,0x4D,0x03,0x00,0x90,0x01,0x00,0x00,0x58,0x06,0x4C,0x45,0x58,0x00,
0x04,0x00,0x91,0x01,0x00,0x00,0x58,0x06,0x4C,0x49,0x53,0x50,0x08,0x00,0x92,0x01,
0x00,0x00,0x58,0x06,0x4C,0x4F,0x4E,0x47,0x52,0x45,0x41,0x4C,0x06,0x00,0x93,0x01,
0x00,0x00,0x58,0x06,0x4D,0x41,0x43,0x52,0x4F,0x53,0x02,0x00,0x94,0x01,0x00,0x00,
0x58,0x06,0x50,0x54,0x0C,0x00,0x95,0x01,0x00,0x00,0x58,0x06,0x51,0x49,0x54,0x45,
0x4D,0x41,0x44,0x44,0x52,0x45,0x53,0x53,0x09,0x00,0x96,0x01,0x00,0x00,0x58,0x06,
0x53,0x43,0x52,0x42,0x55,0x46,0x46,0x45,0x52,0x00,0x08,0x00,0x97,0x01,0x00,0x00,
0x58,0x06,0x54,0x52,0x41,0x50,0x47,0x55,0x52,0x55,0x06,0x00,0x98,0x01,0x00,0x00,
0x58,0x06,0x56,0x45,0x43,0x54,0x4F,0x52,0x08,0x00,0x9B,0x01,0x00,0x00,0x5A,0x06,
0x44,0x4F,0x4B,0x4B,0x45,0x4E,0x4F,0x55,0x04,0x00,0x68,0x01,0x00,0x00,0x5C,0x06,
0x44,0x4F,0x43,0x53,0x05,0x00,0x69,0x01,0x00,0x00,0x5C,0x06,0x50,0x52,0x45,0x46,
0x53,0x00,0x04,0x00,0x6B,0x01,0x00,0x00,0x5C,0x06,0x52,0x45,0x58,0x58,0x0A,0x00,
0xC6,0x01,0x00,0x00,0x63,0x06,0x4D,0x41,0x43,0x32,0x45,0x46,0x52,0x4F,0x4E,0x54,
0x0A,0x00,0xC8,0x01,0x00,0x00,0x63,0x06,0x4D,0x41,0x43,0x52,0x4F,0x46,0x49,0x4C,
0x45,0x53,0x07,0x00,0xC9,0x01,0x00,0x00,0x63,0x06,0x4D,0x4F,0x44,0x55,0x4C,0x45,
0x53,0x00,0x07,0x00,0xCF,0x01,0x00,0x00,0x68,0x06,0x44,0x45,0x55,0x54,0x53,0x43,
0x48,0x00,0x08,0x00,0xD0,0x01,0x00,0x00,0x68,0x06,0x46,0x52,0x41,0x4E,0xC7,0x41,
0x49,0x53,0x0A,0x00,0xD1,0x01,0x00,0x00,0x68,0x06,0x4E,0x45,0x44,0x45,0x52,0x4C,
0x41,0x4E,0x44,0x53,0x07,0x00,0xD2,0x01,0x00,0x00,0x68,0x06,0x53,0x56,0x45,0x4E,
0x53,0x4B,0x41,0x00,0x06,0x00,0xD6,0x01,0x00,0x00,0x6B,0x06,0x54,0x52,0x49,0x54,
0x4F,0x4E,0x0A,0x00,0xDA,0x01,0x00,0x00,0x6E,0x06,0x4F,0x53,0x2D,0x49,0x4E,0x43,
0x4C,0x55,0x44,0x45,0x06,0x00,0xDC,0x01,0x00,0x00,0x6E,0x06,0x4F,0x53,0x2D,0x4C,
0x49,0x42,0x06,0x00,0xDD,0x01,0x00,0x00,0x6E,0x06,0x53,0x4F,0x55,0x52,0x43,0x45,
0x04,0x00,0xDF,0x01,0x00,0x00,0x6F,0x06,0x43,0x4C,0x49,0x42,0x09,0x00,0xE0,0x01,
0x00,0x00,0x6F,0x06,0x4C,0x49,0x42,0x52,0x41,0x52,0x49,0x45,0x53,0x00,0x07,0x00,
0xE1,0x01,0x00,0x00,0x6F,0x06,0x50,0x52,0x41,0x47,0x4D,0x41,0x53,0x00,0x05,0x00,
0xE2,0x01,0x00,0x00,0x6F,0x06,0x50,0x52,0x4F,0x54,0x4F,0x00,0x0C,0x00,0x2E,0x02,
0x00,0x00,0x7E,0x06,0x49,0x4E,0x54,0x55,0x49,0x50,0x4F,0x49,0x4E,0x54,0x45,0x52,
0x08,0x00,0x30,0x02,0x00,0x00,0x7F,0x06,0x47,0x41,0x44,0x54,0x4F,0x4F,0x4C,0x53,
0x08,0x00,0x31,0x02,0x00,0x00,0x7F,0x06,0x47,0x52,0x41,0x50,0x48,0x49,0x43,0x53,
0x09,0x00,0x32,0x02,0x00,0x00,0x7F,0x06,0x49,0x4E,0x54,0x55,0x49,0x54,0x49,0x4F,
0x4E,0x00,0x07,0x00,0x33,0x02,0x00,0x00,0x7F,0x06,0x55,0x54,0x49,0x4C,0x49,0x54,
0x59,0x00,0x09,0x00,0x34,0x02,0x00,0x00,0x7F,0x06,0x57,0x4F,0x52,0x4B,0x42,0x45,
0x4E,0x43,0x48,0x00,0x07,0x00,0x71,0x02,0x00,0x00,0x94,0x06,0x45,0x4E,0x47,0x4C,
0x49,0x53,0x48,0x00,0x04,0x00,0x98,0x02,0x00,0x00,0x9F,0x06,0x48,0x45,0x4C,0x50,
0x05,0x00,0x9B,0x02,0x00,0x00,0x9F,0x06,0x49,0x4E,0x54,0x52,0x4F,0x00,0x03,0x00,
0x9C,0x02,0x00,0x00,0x9F,0x06,0x4C,0x45,0x58,0x00,0x07,0x00,0x9E,0x02,0x00,0x00,
0x9F,0x06,0x4D,0x49,0x53,0x53,0x49,0x4F,0x4E,0x00,0x05,0x00,0xA1,0x02,0x00,0x00,
0x9F,0x06,0x54,0x41,0x42,0x4C,0x45,0x00,0x06,0x00,0xA2,0x02,0x00,0x00,0x9F,0x06,
0x57,0x49,0x4E,0x4E,0x45,0x52,0x04,0x00,0xB5,0x02,0x00,0x00,0xA4,0x06,0x46,0x4F,
0x4E,0x54,0x06,0x00,0x7A,0x03,0x00,0x00,0xC6,0x06,0x43,0x4F,0x44,0x45,0x43,0x53,
0x07,0x00,0x2E,0x03,0x00,0x00,0xCB,0x06,0x44,0x45,0x55,0x54,0x53,0x43,0x48,0x00,
0x07,0x00,0x2F,0x03,0x00,0x00,0xCB,0x06,0x45,0x4E,0x47,0x4C,0x49,0x53,0x48,0x00,
0x08,0x00,0x30,0x03,0x00,0x00,0xCB,0x06,0x46,0x52,0x41,0x4E,0xC7,0x41,0x49,0x53,
0x07,0x00,0x32,0x03,0x00,0x00,0xCC,0x06,0x44,0x45,0x55,0x54,0x53,0x43,0x48,0x00,
0x07,0x00,0x33,0x03,0x00,0x00,0xCC,0x06,0x45,0x4E,0x47,0x4C,0x49,0x53,0x48,0x00,
0x12,0x00,0x36,0x03,0x00,0x00,0xCD,0x06,0x43,0x41,0x4C,0x4C,0x50,0x4E,0x4D,0x2D,
0x53,0x56,0x4F,0x50,0x45,0x52,0x41,0x54,0x4F,0x52,0x13,0x00,0x3B,0x03,0x00,0x00,
0xCD,0x06,0x46,0x41,0x53,0x54,0x49,0x4C,0x42,0x4D,0x32,0x34,0x2D,0x53,0x56,0x4F,
0x42,0x4A,0x45,0x43,0x54,0x00,0x0D,0x00,0x40,0x03,0x00,0x00,0xCD,0x06,0x4F,0x50,
0x41,0x4C,0x2D,0x53,0x56,0x44,0x52,0x49,0x56,0x45,0x52,0x00,0x0C,0x00,0x41,0x03,
0x00,0x00,0xCD,0x06,0x50,0x43,0x44,0x2D,0x53,0x56,0x4F,0x42,0x4A,0x45,0x43,0x54,
0x0F,0x00,0x4A,0x03,0x00,0x00,0xCD,0x06,0x55,0x4E,0x50,0x41,0x43,0x4B,0x2D,0x53,
0x56,0x4F,0x42,0x4A,0x45,0x43,0x54,0x00,0x0D,0x00,0x4E,0x03,0x00,0x00,0xCE,0x06,
0x53,0x41,0x4D,0x50,0x4C,0x45,0x43,0x4F,0x4E,0x46,0x49,0x47,0x53,0x00,0x0E,0x00,
0x63,0x03,0x00,0x00,0xCE,0x06,0x53,0x56,0x53,0x55,0x50,0x50,0x4F,0x52,0x54,0x2D,
0x44,0x4F,0x43,0x53,0x11,0x00,0x65,0x03,0x00,0x00,0xCF,0x06,0x53,0x55,0x50,0x45,
0x52,0x56,0x49,0x45,0x57,0x2D,0x4C,0x49,0x42,0x52,0x41,0x52,0x59,0x00,0x05,0x00,
0x67,0x03,0x00,0x00,0xD0,0x06,0x36,0x38,0x30,0x33,0x30,0x00,0x05,0x00,0x6A,0x03,
0x00,0x00,0xD0,0x06,0x36,0x38,0x30,0x34,0x30,0x00,0x09,0x00,0x6C,0x03,0x00,0x00,
0xD0,0x06,0x53,0x56,0x44,0x52,0x49,0x56,0x45,0x52,0x53,0x00,0x09,0x00,0x6D,0x03,
0x00,0x00,0xD0,0x06,0x53,0x56,0x4F,0x42,0x4A,0x45,0x43,0x54,0x53,0x00,0x0B,0x00,
0x6E,0x03,0x00,0x00,0xD0,0x06,0x53,0x56,0x4F,0x50,0x45,0x52,0x41,0x54,0x4F,0x52,
0x53,0x00,0x08,0x00,0x70,0x03,0x00,0x00,0xD1,0x06,0x43,0x41,0x54,0x41,0x4C,0x4F,
0x47,0x53,0x0C,0x00,0x73,0x03,0x00,0x00,0xD1,0x06,0x54,0x52,0x41,0x4E,0x53,0x4C,
0x41,0x54,0x49,0x4F,0x4E,0x53,0x03,0x00,0x8F,0x03,0x00,0x00,0xD5,0x06,0x58,0x31,
0x31,0x00,0x03,0x00,0x86,0x03,0x00,0x00,0xD6,0x06,0x58,0x31,0x31,0x00,0x03,0x00,
0xC4,0x03,0x00,0x00,0xEB,0x06,0x53,0x59,0x53,0x00,0x09,0x00,0xE4,0x03,0x00,0x00,
0xEC,0x06,0x48,0x41,0x52,0x44,0x44,0x52,0x49,0x56,0x45,0x00,0x03,0x00,0xE3,0x03,
0x00,0x00,0xEC,0x06,0x52,0x41,0x4D,0x00,0x03,0x00,0xDD,0x03,0x00,0x00,0xEE,0x06,
0x53,0x59,0x53,0x00,0x07,0x00,0x21,0x04,0x00,0x00,0xF2,0x06,0x45,0x4E,0x47,0x4C,
0x49,0x53,0x48,0x00,0x06,0x00,0x22,0x04,0x00,0x00,0xF2,0x06,0x46,0x52,0x45,0x4E,
0x43,0x48,0x06,0x00,0x23,0x04,0x00,0x00,0xF2,0x06,0x47,0x45,0x52,0x4D,0x41,0x4E,
0x06,0x00,0x25,0x04,0x00,0x00,0xF3,0x06,0x47,0x4F,0x4C,0x44,0x45,0x44,0x06,0x00,
0x27,0x04,0x00,0x00,0xF4,0x06,0x43,0x4F,0x4E,0x46,0x49,0x47,0x06,0x00,0x29,0x04,
0x00,0x00,0xF4,0x06,0x44,0x52,0x41,0x57,0x45,0x52,0x06,0x00,0x2A,0x04,0x00,0x00,
0xF4,0x06,0x47,0x4F,0x4C,0x44,0x45,0x44,0x06,0x00,0x2D,0x04,0x00,0x00,0xF4,0x06,
0x53,0x43,0x52,0x49,0x50,0x54,0x05,0x00,0x2E,0x04,0x00,0x00,0xF4,0x06,0x54,0x4F,
0x4F,0x4C,0x53,0x00,0x06,0x00,0x34,0x04,0x00,0x00,0xF5,0x06,0x47,0x4F,0x4C,0x44,
0x45,0x44,0x03,0x00,0x56,0x04,0x00,0x00,0xF7,0x06,0x43,0x41,0x54,0x00,0x07,0x00,
0x57,0x04,0x00,0x00,0xF7,0x06,0x48,0x49,0x53,0x50,0x45,0x45,0x44,0x00,0x04,0x00,
0x60,0x04,0x00,0x00,0xF7,0x06,0x4D,0x45,0x4E,0x55,0x07,0x00,0x61,0x04,0x00,0x00,
0xF7,0x06,0x53,0x43,0x41,0x4E,0x4E,0x45,0x52,0x00,0x06,0x00,0x62,0x04,0x00,0x00,
0xF7,0x06,0x53,0x4F,0x55,0x52,0x43,0x45,0x03,0x00,0x72,0x04,0x00,0x00,0xFB,0x06,
0x43,0x45,0x44,0x00,0x09,0x00,0x73,0x04,0x00,0x00,0xFB,0x06,0x43,0x48,0x52,0x49,
0x53,0x2D,0x54,0x54,0x58,0x00,0x09,0x00,0x74,0x04,0x00,0x00,0xFB,0x06,0x47,0x4E,
0x55,0x2D,0x45,0x4D,0x41,0x43,0x53,0x00,0x0C,0x00,0x75,0x04,0x00,0x00,0xFB,0x06,
0x47,0x55,0x49,0x53,0x50,0x45,0x4C,0x4C,0x2D,0x31,0x2E,0x31,0x02,0x00,0x79,0x04,
0x00,0x00,0xFB,0x06,0x4D,0x47,0x05,0x00,0x7A,0x04,0x00,0x00,0xFB,0x06,0x53,0x48,
0x45,0x4C,0x4C,0x00,0x03,0x00,0x7B,0x04,0x00,0x00,0xFB,0x06,0x56,0x4C,0x54,0x00,
0x09,0x00,0x7C,0x04,0x00,0x00,0xFB,0x06,0x57,0x49,0x4C,0x4C,0x59,0x2D,0x54,0x54,
0x58,0x00,0x06,0x00,0x7E,0x04,0x00,0x00,0xFB,0x06,0x57,0x53,0x48,0x45,0x4C,0x4C,
0x08,0x00,0x83,0x04,0x00,0x00,0xFD,0x06,0x43,0x41,0x54,0x41,0x4C,0x4F,0x47,0x53,
0x05,0x00,0xC4,0x04,0x00,0x00,0x02,0x07,0x44,0x41,0x4E,0x53,0x4B,0x00,0x07,0x00,
0xC3,0x04,0x00,0x00,0x02,0x07,0x44,0x45,0x55,0x54,0x53,0x43,0x48,0x00,0x09,0x00,
0xBF,0x04,0x00,0x00,0x03,0x07,0x44,0x45,0x56,0x45,0x4C,0x4F,0x50,0x45,0x52,0x00,
0x07,0x00,0xBE,0x04,0x00,0x00,0x03,0x07,0x4D,0x4F,0x44,0x55,0x4C,0x45,0x53,0x00,
0x09,0x00,0x19,0x05,0x00,0x00,0x1D,0x07,0x44,0x41,0x54,0x41,0x54,0x59,0x50,0x45,
0x53,0x00,0x04,0x00,0x46,0x05,0x00,0x00,0x20,0x07,0x48,0x54,0x4D,0x4C,0x07,0x00,
0x3E,0x05,0x00,0x00,0x22,0x07,0x45,0x4E,0x47,0x4C,0x49,0x53,0x48,0x00,0x05,0x00,
0xAB,0x05,0x00,0x00,0x3F,0x07,0x41,0x46,0x54,0x45,0x52,0x00,0x06,0x00,0xA6,0x05,
0x00,0x00,0x3F,0x07,0x42,0x45,0x46,0x4F,0x52,0x45,0x15,0x00,0x9F,0x05,0x00,0x00,
0x40,0x07,0x41,0x46,0x54,0x45,0x52,0x5F,0x44,0x45,0x46,0x41,0x55,0x4C,0x54,0x5F,
0x53,0x50,0x41,0x43,0x49,0x4E,0x47,0x00,0x12,0x00,0x99,0x05,0x00,0x00,0x40,0x07,
0x41,0x46,0x54,0x45,0x52,0x5F,0x5A,0x45,0x52,0x4F,0x5F,0x53,0x50,0x41,0x43,0x49,
0x4E,0x47,0x06,0x00,0x93,0x05,0x00,0x00,0x40,0x07,0x42,0x45,0x46,0x4F,0x52,0x45,
0x05,0x00,0x91,0x05,0x00,0x00,0x41,0x07,0x41,0x46,0x54,0x45,0x52,0x00,0x06,0x00,
0x90,0x05,0x00,0x00,0x41,0x07,0x42,0x45,0x46,0x4F,0x52,0x45,0x04,0x00,0x8F,0x05,
0x00,0x00,0x41,0x07,0x4D,0x49,0x53,0x43,0x08,0x00,0x93,0x0A,0x00,0x00,0x71,0x07,
0x4E,0x45,0x54,0x57,0x4F,0x52,0x4B,0x53,0x05,0x00,0x95,0x0A,0x00,0x00,0x72,0x07,
0x53,0x41,0x4E,0x41,0x32,0x00,0x05,0x00,0x97,0x0A,0x00,0x00,0x73,0x07,0x4E,0x41,
0x50,0x53,0x41,0x00,0x06,0x00,0x98,0x0A,0x00,0x00,0x73,0x07,0x4E,0x41,0x50,0x53,
0x41,0x42,0x06,0x00,0x99,0x0A,0x00,0x00,0x73,0x07,0x4E,0x41,0x50,0x53,0x41,0x54,
0x06,0x00,0x9A,0x0A,0x00,0x00,0x73,0x07,0x4E,0x41,0x50,0x53,0x41,0x56,0x07,0x00,
0x9B,0x0A,0x00,0x00,0x73,0x07,0x4E,0x41,0x50,0x53,0x41,0x56,0x42,0x00,0x07,0x00,
0x9C,0x0A,0x00,0x00,0x73,0x07,0x4E,0x41,0x50,0x53,0x41,0x56,0x54,0x00,0x07,0x00,
0x9D,0x0A,0x00,0x00,0x73,0x07,0x4E,0x41,0x50,0x53,0x41,0x56,0x57,0x00,0x06,0x00,
0x9E,0x0A,0x00,0x00,0x73,0x07,0x4E,0x41,0x50,0x53,0x41,0x57,0x03,0x00,0xA0,0x0A,
0x00,0x00,0x74,0x07,0x45,0x54,0x43,0x00,0x04,0x00,0xA1,0x0A,0x00,0x00,0x74,0x07,
0x4C,0x49,0x53,0x50,0x03,0x00,0xB9,0x0A,0x00,0x00,0x84,0x07,0x41,0x50,0x49,0x00,
0x04,0x00,0xBA,0x0A,0x00,0x00,0x84,0x07,0x43,0x4F,0x4E,0x46,0x04,0x00,0xBB,0x0A,
0x00,0x00,0x84,0x07,0x4B,0x45,0x52,0x4E,0x03,0x00,0xBC,0x0A,0x00,0x00,0x84,0x07,
0x4E,0x45,0x54,0x00,0x07,0x00,0xBD,0x0A,0x00,0x00,0x84,0x07,0x4E,0x45,0x54,0x49,
0x4E,0x45,0x54,0x00,0x06,0x00,0xBE,0x0A,0x00,0x00,0x84,0x07,0x50,0x52,0x4F,0x54,
0x4F,0x53,0x03,0x00,0xC2,0x0A,0x00,0x00,0x84,0x07,0x53,0x59,0x53,0x00,0x07,0x00,
0xC6,0x0A,0x00,0x00,0x85,0x07,0x41,0x53,0x4B,0x48,0x4F,0x53,0x54,0x00,0x07,0x00,
0xC7,0x0A,0x00,0x00,0x85,0x07,0x46,0x49,0x4E,0x47,0x45,0x52,0x44,0x00,0x08,0x00,
0xC4,0x0A,0x00,0x00,0x85,0x07,0x47,0x4E,0x55,0x45,0x4D,0x41,0x43,0x53,0x09,0x00,
0xC8,0x0A,0x00,0x00,0x85,0x07,0x4E,0x41,0x50,0x53,0x41,0x54,0x45,0x52,0x4D,0x00,
0x07,0x00,0xD2,0x0A,0x00,0x00,0x85,0x07,0x51,0x57,0x52,0x49,0x54,0x45,0x52,0x00,
0x05,0x00,0xD4,0x0A,0x00,0x00,0x86,0x07,0x41,0x47,0x4E,0x45,0x54,0x00,0x07,0x00,
0xD5,0x0A,0x00,0x00,0x86,0x07,0x4E,0x45,0x54,0x49,0x4E,0x46,0x4F,0x00,0x06,0x00,
0xD6,0x0A,0x00,0x00,0x86,0x07,0x52,0x48,0x53,0x4C,0x49,0x50,0x03,0x00,0xD8,0x0A,
0x00,0x00,0x87,0x07,0x43,0x50,0x50,0x00,0x06,0x00,0xDA,0x0A,0x00,0x00,0x87,0x07,
0x52,0x43,0x53,0x52,0x45,0x56,0x06,0x00,0xDB,0x0A,0x00,0x00,0x87,0x07,0x52,0x50,
0x43,0x47,0x45,0x4E,0x03,0x00,0xDE,0x0A,0x00,0x00,0x88,0x07,0x52,0x50,0x43,0x00,
0x03,0x00,0xE0,0x0A,0x00,0x00,0x89,0x07,0x52,0x50,0x43,0x00,0x04,0x00,0xE4,0x0A,
0x00,0x00,0x89,0x07,0x53,0x45,0x52,0x56,0x0C,0x00,0xE6,0x0A,0x00,0x00,0x8A,0x07,
0x49,0x4E,0x45,0x54,0x2D,0x48,0x41,0x4E,0x44,0x4C,0x45,0x52,0x09,0x00,0xE9,0x0A,
0x00,0x00,0x8B,0x07,0x55,0x53,0x45,0x52,0x47,0x52,0x4F,0x55,0x50,0x00,0x03,0x00,
0xEF,0x0A,0x00,0x00,0x8E,0x07,0x41,0x52,0x50,0x00,0x06,0x00,0xF0,0x0A,0x00,0x00,
0x8E,0x07,0x46,0x49,0x4E,0x47,0x45,0x52,0x02,0x00,0xF1,0x0A,0x00,0x00,0x8E,0x07,
0x49,0x44,0x08,0x00,0xF2,0x0A,0x00,0x00,0x8E,0x07,0x49,0x46,0x43,0x4F,0x4E,0x46,
0x49,0x47,0x05,0x00,0xF3,0x0A,0x00,0x00,0x8E,0x07,0x49,0x4E,0x45,0x54,0x44,0x00,
0x06,0x00,0xF4,0x0A,0x00,0x00,0x8E,0x07,0x4C,0x45,0x54,0x4E,0x45,0x54,0x05,0x00,
0xF5,0x0A,0x00,0x00,0x8E,0x07,0x4C,0x4F,0x47,0x49,0x4E,0x00,0x02,0x00,0xF6,0x0A,
0x00,0x00,0x8E,0x07,0x4C,0x53,0x07,0x00,0xF7,0x0A,0x00,0x00,0x8E,0x07,0x4E,0x45,
0x54,0x53,0x54,0x41,0x54,0x00,0x06,0x00,0xF8,0x0A,0x00,0x00,0x8E,0x07,0x4F,0x4E,
0x4C,0x49,0x4E,0x45,0x06,0x00,0xF9,0x0A,0x00,0x00,0x8E,0x07,0x50,0x41,0x53,0x53,
0x57,0x44,0x04,0x00,0xFA,0x0A,0x00,0x00,0x8E,0x07,0x50,0x49,0x4E,0x47,0x07,0x00,
0xFB,0x0A,0x00,0x00,0x8E,0x07,0x50,0x4F,0x52,0x54,0x4D,0x41,0x50,0x00,0x07,0x00,
0xFC,0x0A,0x00,0x00,0x8E,0x07,0x52,0x45,0x53,0x4F,0x4C,0x56,0x45,0x00,0x05,0x00,
0xFD,0x0A,0x00,0x00,0x8E,0x07,0x52,0x4F,0x55,0x54,0x45,0x00,0x07,0x00,0xFE,0x0A,
0x00,0x00,0x8E,0x07,0x52,0x50,0x43,0x49,0x4E,0x46,0x4F,0x00,0x03,0x00,0xFF,0x0A,
0x00,0x00,0x8E,0x07,0x52,0x53,0x48,0x00,0x09,0x00,0x00,0x0B,0x00,0x00,0x8E,0x07,
0x53,0x48,0x4F,0x57,0x4D,0x4F,0x55,0x4E,0x54,0x00,0x05,0x00,0x01,0x0B,0x00,0x00,
0x8E,0x07,0x55,0x4D,0x41,0x53,0x4B,0x00,0x06,0x00,0x02,0x0B,0x00,0x00,0x8E,0x07,
0x57,0x48,0x4F,0x41,0x4D,0x49,0x08,0x00,0x0B,0x0B,0x00,0x00,0x8F,0x07,0x4E,0x45,
0x54,0x57,0x4F,0x52,0x4B,0x53,0x05,0x00,0x0D,0x0B,0x00,0x00,0x90,0x07,0x4E,0x41,
0x50,0x53,0x41,0x00,0x06,0x00,0x0E,0x0B,0x00,0x00,0x90,0x07,0x4E,0x41,0x50,0x53,
0x41,0x42,0x06,0x00,0x0F,0x0B,0x00,0x00,0x90,0x07,0x4E,0x41,0x50,0x53,0x41,0x54,
0x06,0x00,0x10,0x0B,0x00,0x00,0x90,0x07,0x4E,0x41,0x50,0x53,0x41,0x56,0x07,0x00,
0x11,0x0B,0x00,0x00,0x90,0x07,0x4E,0x41,0x50,0x53,0x41,0x56,0x42,0x00,0x07,0x00,
0x12,0x0B,0x00,0x00,0x90,0x07,0x4E,0x41,0x50,0x53,0x41,0x56,0x54,0x00,0x07,0x00,
0x13,0x0B,0x00,0x00,0x90,0x07,0x4E,0x41,0x50,0x53,0x41,0x56,0x57,0x00,0x06,0x00,
0x14,0x0B,0x00,0x00,0x90,0x07,0x4E,0x41,0x50,0x53,0x41,0x57,0x03,0x00,0x16,0x0B,
0x00,0x00,0x91,0x07,0x45,0x54,0x43,0x00,0x04,0x00,0x17,0x0B,0x00,0x00,0x91,0x07,
0x4C,0x49,0x53,0x50,0x03,0x00,0x33,0x0B,0x00,0x00,0xA1,0x07,0x52,0x50,0x43,0x00,
0x04,0x00,0x37,0x0B,0x00,0x00,0xA1,0x07,0x53,0x45,0x52,0x56,0x0F,0x00,0x78,0x0A,
0x00,0x00,0xB6,0x07,0x43,0x59,0x43,0x4C,0x45,0x54,0x4F,0x4D,0x45,0x4E,0x55,0x2D,
0x32,0x2E,0x31,0x00,0x0A,0x00,0x7E,0x0A,0x00,0x00,0xB6,0x07,0x53,0x54,0x52,0x49,
0x4E,0x47,0x43,0x4C,0x49,0x50,0x04,0x00,0x0D,0x08,0x00,0x00,0xBB,0x07,0x50,0x4F,
0x4C,0x4C,0x06,0x00,0x0E,0x08,0x00,0x00,0xBB,0x07,0x53,0x45,0x52,0x56,0x45,0x52,
0x04,0x00,0x0F,0x08,0x00,0x00,0xBB,0x07,0x57,0x41,0x49,0x54,0x04,0x00,0x1A,0x08,
0x00,0x00,0xC5,0x07,0x54,0x41,0x53,0x4B,0x0F,0x00,0x9E,0x06,0x00,0x00,0xD0,0x07,
0x43,0x48,0x41,0x50,0x54,0x45,0x52,0x50,0x49,0x43,0x54,0x55,0x52,0x45,0x53,0x00,
0x08,0x00,0xA0,0x06,0x00,0x00,0xD1,0x07,0x43,0x4F,0x4E,0x54,0x45,0x4E,0x54,0x53,
0x08,0x00,0xA1,0x06,0x00,0x00,0xD1,0x07,0x45,0x58,0x41,0x4D,0x50,0x4C,0x45,0x53,
0x15,0x00,0xA2,0x06,0x00,0x00,0xD1,0x07,0x46,0x55,0x4E,0x43,0x54,0x49,0x4F,0x4E,
0x53,0x41,0x4E,0x44,0x4C,0x49,0x42,0x52,0x41,0x52,0x49,0x45,0x53,0x00,0x05,0x00,
0xA7,0x06,0x00,0x00,0xD5,0x07,0x50,0x41,0x47,0x45,0x52,0x00,0x0E,0x00,0xA8,0x06,
0x00,0x00,0xD5,0x07,0x50,0x4F,0x49,0x4E,0x54,0x45,0x52,0x32,0x53,0x50,0x52,0x49,
0x54,0x45,0x08,0x00,0xA9,0x06,0x00,0x00,0xD5,0x07,0x53,0x57,0x41,0x50,0x43,0x4F,
0x4C,0x53,0x0F,0x00,0xAC,0x06,0x00,0x00,0xD6,0x07,0x43,0x48,0x41,0x50,0x54,0x45,
0x52,0x50,0x49,0x43,0x54,0x55,0x52,0x45,0x53,0x00,0x0F,0x00,0xB9,0x06,0x00,0x00,
0xE1,0x07,0x43,0x48,0x41,0x50,0x54,0x45,0x52,0x50,0x49,0x43,0x54,0x55,0x52,0x45,
0x53,0x00,0x0F,0x00,0xC8,0x06,0x00,0x00,0xEB,0x07,0x43,0x48,0x41,0x50,0x54,0x45,
0x52,0x50,0x49,0x43,0x54,0x55,0x52,0x45,0x53,0x00,0x0F,0x00,0xD9,0x06,0x00,0x00,
0xF7,0x07,0x43,0x48,0x41,0x50,0x54,0x45,0x52,0x50,0x49,0x43,0x54,0x55,0x52,0x45,
0x53,0x00,0x0F,0x00,0xE2,0x06,0x00,0x00,0xFC,0x07,0x43,0x48,0x41,0x50,0x54,0x45,
0x52,0x50,0x49,0x43,0x54,0x55,0x52,0x45,0x53,0x00,0x03,0x00,0x3A,0x07,0x00,0x00,
0x4A,0x08,0x59,0x41,0x58,0x00,0x03,0x00,0x3D,0x07,0x00,0x00,0x4C,0x08,0x42,0x49,
0x47,0x00,0x04,0x00,0x3E,0x07,0x00,0x00,0x4C,0x08,0x4D,0x49,0x4E,0x49,0x07,0x00,
0x41,0x07,0x00,0x00,0x4E,0x08,0x4D,0x4F,0x44,0x55,0x4C,0x45,0x53,0x00,0x08,0x00,
0x47,0x07,0x00,0x00,0x51,0x08,0x44,0x45,0x56,0x49,0x43,0x45,0x49,0x4F,0x0A,0x00,
0x48,0x07,0x00,0x00,0x51,0x08,0x49,0x4E,0x54,0x45,0x52,0x52,0x55,0x50,0x54,0x53,
0x05,0x00,0x49,0x07,0x00,0x00,0x51,0x08,0x4C,0x49,0x53,0x54,0x53,0x00,0x06,0x00,
0x4A,0x07,0x00,0x00,0x51,0x08,0x4D,0x45,0x4D,0x4F,0x52,0x59,0x05,0x00,0x4B,0x07,
0x00,0x00,0x51,0x08,0x50,0x4F,0x52,0x54,0x53,0x00,0x0A,0x00,0x4C,0x07,0x00,0x00,
0x51,0x08,0x53,0x45,0x4D,0x41,0x50,0x48,0x4F,0x52,0x45,0x53,0x07,0x00,0x4D,0x07,
0x00,0x00,0x51,0x08,0x53,0x49,0x47,0x4E,0x41,0x4C,0x53,0x00,0x05,0x00,0x4E,0x07,
0x00,0x00,0x51,0x08,0x54,0x41,0x53,0x4B,0x53,0x00,0x06,0x00,0x51,0x07,0x00,0x00,
0x53,0x08,0x42,0x4F,0x4F,0x50,0x53,0x49,0x07,0x00,0x52,0x07,0x00,0x00,0x53,0x08,
0x47,0x41,0x44,0x47,0x45,0x54,0x53,0x00,0x0B,0x00,0x53,0x07,0x00,0x00,0x53,0x08,
0x49,0x4D,0x41,0x47,0x45,0x53,0x5F,0x54,0x45,0x58,0x54,0x00,0x0D,0x00,0x54,0x07,
0x00,0x00,0x53,0x08,0x49,0x4E,0x54,0x55,0x49,0x54,0x49,0x4F,0x4E,0x5F,0x47,0x55,
0x49,0x00,0x0A,0x00,0x55,0x07,0x00,0x00,0x53,0x08,0x49,0x4F,0x5F,0x4D,0x45,0x54,
0x48,0x4F,0x44,0x53,0x05,0x00,0x56,0x07,0x00,0x00,0x53,0x08,0x4D,0x45,0x4E,0x55,
0x53,0x00,0x0E,0x00,0x57,0x07,0x00,0x00,0x53,0x08,0x4D,0x4F,0x55,0x53,0x45,0x5F,
0x4B,0x45,0x59,0x42,0x4F,0x41,0x52,0x44,0x11,0x00,0x58,0x07,0x00,0x00,0x53,0x08,
0x52,0x45,0x51,0x55,0x45,0x53,0x54,0x45,0x52,0x53,0x5F,0x41,0x4C,0x45,0x52,0x54,
0x53,0x00,0x07,0x00,0x59,0x07,0x00,0x00,0x53,0x08,0x53,0x43,0x52,0x45,0x45,0x4E,
0x53,0x00,0x07,0x00,0x5A,0x07,0x00,0x00,0x53,0x08,0x53,0x50,0x45,0x43,0x49,0x41,
0x4C,0x00,0x07,0x00,0x5B,0x07,0x00,0x00,0x53,0x08,0x57,0x49,0x4E,0x44,0x4F,0x57,
0x53,0x00,0x07,0x00,0x6B,0x07,0x00,0x00,0x58,0x08,0x42,0x49,0x4E,0x54,0x52,0x45,
0x45,0x00,0x04,0x00,0x6C,0x07,0x00,0x00,0x58,0x08,0x48,0x41,0x53,0x48,0x09,0x00,
0x6D,0x07,0x00,0x00,0x58,0x08,0x53,0x43,0x52,0x4F,0x4C,0x4C,0x57,0x49,0x4E,0x00,
0x05,0x00,0x6E,0x07,0x00,0x00,0x58,0x08,0x53,0x54,0x41,0x43,0x4B,0x00,0x03,0x00,
0x76,0x07,0x00,0x00,0x5F,0x08,0x50,0x47,0x53,0x00,0x05,0x00,0x77,0x07,0x00,0x00,
0x5F,0x08,0x53,0x54,0x41,0x43,0x4B,0x00,0x08,0x00,0x7A,0x07,0x00,0x00,0x61,0x08,
0x41,0x4D,0x49,0x47,0x41,0x4C,0x49,0x42,0x05,0x00,0x7B,0x07,0x00,0x00,0x61,0x08,
0x41,0x52,0x45,0x58,0x58,0x00,0x05,0x00,0x7C,0x07,0x00,0x00,0x61,0x08,0x41,0x53,
0x59,0x4E,0x43,0x00,0x06,0x00,0x7D,0x07,0x00,0x00,0x61,0x08,0x42,0x4F,0x4F,0x50,
0x53,0x49,0x0B,0x00,0x7E,0x07,0x00,0x00,0x61,0x08,0x43,0x4C,0x4F,0x4E,0x45,0x53,
0x43,0x52,0x45,0x45,0x4E,0x00,0x0C,0x00,0x7F,0x07,0x00,0x00,0x61,0x08,0x43,0x4F,
0x4E,0x53,0x54,0x52,0x55,0x43,0x54,0x4F,0x52,0x53,0x0A,0x00,0x80,0x07,0x00,0x00,
0x61,0x08,0x43,0x4F,0x4F,0x4B,0x52,0x41,0x57,0x4B,0x45,0x59,0x05,0x00,0x81,0x07,
0x00,0x00,0x61,0x08,0x43,0x54,0x59,0x50,0x45,0x00,0x07,0x00,0x82,0x07,0x00,0x00,
0x61,0x08,0x45,0x41,0x53,0x59,0x47,0x55,0x49,0x00,0x0A,0x00,0x84,0x07,0x00,0x00,
0x61,0x08,0x45,0x58,0x43,0x45,0x50,0x54,0x49,0x4F,0x4E,0x53,0x04,0x00,0x85,0x07,
0x00,0x00,0x61,0x08,0x46,0x49,0x4C,0x45,0x0C,0x00,0x86,0x07,0x00,0x00,0x61,0x08,
0x46,0x49,0x4C,0x4C,0x45,0x44,0x56,0x45,0x43,0x54,0x4F,0x52,0x04,0x00,0x88,0x07,
0x00,0x00,0x61,0x08,0x48,0x4F,0x4F,0x4B,0x04,0x00,0x89,0x07,0x00,0x00,0x61,0x08,
0x49,0x4C,0x42,0x4D,0x03,0x00,0x8A,0x07,0x00,0x00,0x61,0x08,0x4C,0x45,0x58,0x00,
0x04,0x00,0x8B,0x07,0x00,0x00,0x61,0x08,0x4C,0x49,0x53,0x50,0x08,0x00,0x8C,0x07,
0x00,0x00,0x61,0x08,0x4C,0x4F,0x4E,0x47,0x52,0x45,0x41,0x4C,0x06,0x00,0x8D,0x07,
0x00,0x00,0x61,0x08,0x4D,0x41,0x43,0x52,0x4F,0x53,0x02,0x00,0x8E,0x07,0x00,0x00,
0x61,0x08,0x50,0x54,0x0C,0x00,0x8F,0x07,0x00,0x00,0x61,0x08,0x51,0x49,0x54,0x45,
0x4D,0x41,0x44,0x44,0x52,0x45,0x53,0x53,0x09,0x00,0x90,0x07,0x00,0x00,0x61,0x08,
0x53,0x43,0x52,0x42,0x55,0x46,0x46,0x45,0x52,0x00,0x08,0x00,0x91,0x07,0x00,0x00,
0x61,0x08,0x54,0x52,0x41,0x50,0x47,0x55,0x52,0x55,0x06,0x00,0x92,0x07,0x00,0x00,
0x61,0x08,0x56,0x45,0x43,0x54,0x4F,0x52,0x08,0x00,0x95,0x07,0x00,0x00,0x63,0x08,
0x44,0x4F,0x4B,0x4B,0x45,0x4E,0x4F,0x55,0x04,0x00,0x62,0x07,0x00,0x00,0x65,0x08,
0x44,0x4F,0x43,0x53,0x05,0x00,0x63,0x07,0x00,0x00,0x65,0x08,0x50,0x52,0x45,0x46,
0x53,0x00,0x04,0x00,0x65,0x07,0x00,0x00,0x65,0x08,0x52,0x45,0x58,0x58,0x08,0x00,
0xDE,0x07,0x00,0x00,0x68,0x08,0x45,0x58,0x41,0x4D,0x50,0x4C,0x45,0x53,0x07,0x00,
0xDF,0x07,0x00,0x00,0x68,0x08,0x49,0x4E,0x43,0x4C,0x55,0x44,0x45,0x00,0x04,0x00,
0xE5,0x07,0x00,0x00,0x6A,0x08,0x44,0x4C,0x49,0x42,0x08,0x00,0xE6,0x07,0x00,0x00,
0x6A,0x08,0x45,0x58,0x41,0x4D,0x50,0x4C,0x45,0x53,0x07,0x00,0xE7,0x07,0x00,0x00,
0x6A,0x08,0x49,0x4E,0x43,0x4C,0x55,0x44,0x45,0x00,0x04,0x00,0xED,0x07,0x00,0x00,
0x6A,0x08,0x4D,0x41,0x4E,0x58,0x08,0x00,0xF3,0x07,0x00,0x00,0x6C,0x08,0x4D,0x43,
0x43,0x5F,0x42,0x55,0x53,0x59,0x0C,0x00,0xFA,0x07,0x00,0x00,0x6C,0x08,0x4D,0x43,
0x43,0x5F,0x55,0x53,0x45,0x52,0x44,0x41,0x54,0x41,0x04,0x00,0xFD,0x07,0x00,0x00,
0x6E,0x08,0x44,0x45,0x4D,0x4F,0x03,0x00,0xFE,0x07,0x00,0x00,0x6E,0x08,0x4F,0x42,
0x4A,0x00,0x03,0x00,0xFF,0x07,0x00,0x00,0x6E,0x08,0x53,0x59,0x4D,0x00,0x03,0x00,
0x00,0x08,0x00,0x00,0x6E,0x08,0x54,0x58,0x54,0x00,0x08,0x00,0xD9,0x07,0x00,0x00,
0x6F,0x08,0x45,0x58,0x41,0x4D,0x50,0x4C,0x45,0x53,0x03,0x00,0xDA,0x07,0x00,0x00,
0x6F,0x08,0x4F,0x42,0x4A,0x00,0x03,0x00,0xDB,0x07,0x00,0x00,0x6F,0x08,0x54,0x58,
0x54,0x00,0x07,0x00,0xD5,0x07,0x00,0x00,0x80,0x08,0x44,0x45,0x55,0x54,0x53,0x43,
0x48,0x00,0x0C,0x00,0x3C,0x08,0x00,0x00,0x88,0x08,0x49,0x4E,0x54,0x55,0x49,0x50,
0x4F,0x49,0x4E,0x54,0x45,0x52,0x08,0x00,0x3E,0x08,0x00,0x00,0x89,0x08,0x47,0x41,
0x44,0x54,0x4F,0x4F,0x4C,0x53,0x08,0x00,0x3F,0x08,0x00,0x00,0x89,0x08,0x47,0x52,
0x41,0x50,0x48,0x49,0x43,0x53,0x09,0x00,0x40,0x08,0x00,0x00,0x89,0x08,0x49,0x4E,
0x54,0x55,0x49,0x54,0x49,0x4F,0x4E,0x00,0x07,0x00,0x41,0x08,0x00,0x00,0x89,0x08,
0x55,0x54,0x49,0x4C,0x49,0x54,0x59,0x00,0x09,0x00,0x42,0x08,0x00,0x00,0x89,0x08,
0x57,0x4F,0x52,0x4B,0x42,0x45,0x4E,0x43,0x48,0x00,0x07,0x00,0x7E,0x08,0x00,0x00,
0xA5,0x08,0x45,0x4E,0x47,0x4C,0x49,0x53,0x48,0x00,0x06,0x00,0xE2,0x08,0x00,0x00,
0xB1,0x08,0x43,0x4F,0x44,0x45,0x43,0x53,0x07,0x00,0xF2,0x08,0x00,0x00,0xB6,0x08,
0x44,0x45,0x55,0x54,0x53,0x43,0x48,0x00,0x07,0x00,0xF3,0x08,0x00,0x00,0xB6,0x08,
0x45,0x4E,0x47,0x4C,0x49,0x53,0x48,0x00,0x08,0x00,0xF4,0x08,0x00,0x00,0xB6,0x08,
0x46,0x52,0x41,0x4E,0xC7,0x41,0x49,0x53,0x07,0x00,0xF6,0x08,0x00,0x00,0xB7,0x08,
0x44,0x45,0x55,0x54,0x53,0x43,0x48,0x00,0x07,0x00,0xF7,0x08,0x00,0x00,0xB7,0x08,
0x45,0x4E,0x47,0x4C,0x49,0x53,0x48,0x00,0x12,0x00,0xFA,0x08,0x00,0x00,0xB8,0x08,
0x43,0x41,0x4C,0x4C,0x50,0x4E,0x4D,0x2D,0x53,0x56,0x4F,0x50,0x45,0x52,0x41,0x54,
0x4F,0x52,0x13,0x00,0xFF,0x08,0x00,0x00,0xB8,0x08,0x46,0x41,0x53,0x54,0x49,0x4C,
0x42,0x4D,0x32,0x34,0x2D,0x53,0x56,0x4F,0x42,0x4A,0x45,0x43,0x54,0x00,0x0D,0x00,
0x04,0x09,0x00,0x00,0xB8,0x08,0x4F,0x50,0x41,0x4C,0x2D,0x53,0x56,0x44,0x52,0x49,
0x56,0x45,0x52,0x00,0x0C,0x00,0x05,0x09,0x00,0x00,0xB8,0x08,0x50,0x43,0x44,0x2D,
0x53,0x56,0x4F,0x42,0x4A,0x45,0x43,0x54,0x0F,0x00,0x0E,0x09,0x00,0x00,0xB8,0x08,
0x55,0x4E,0x50,0x41,0x43,0x4B,0x2D,0x53,0x56,0x4F,0x42,0x4A,0x45,0x43,0x54,0x00,
0x0D,0x00,0x12,0x09,0x00,0x00,0xB9,0x08,0x53,0x41,0x4D,0x50,0x4C,0x45,0x43,0x4F,
0x4E,0x46,0x49,0x47,0x53,0x00,0x0E,0x00,0x27,0x09,0x00,0x00,0xB9,0x08,0x53,0x56,
0x53,0x55,0x50,0x50,0x4F,0x52,0x54,0x2D,0x44,0x4F,0x43,0x53,0x11,0x00,0x29,0x09,
0x00,0x00,0xBA,0x08,0x53,0x55,0x50,0x45,0x52,0x56,0x49,0x45,0x57,0x2D,0x4C,0x49,
0x42,0x52,0x41,0x52,0x59,0x00,0x05,0x00,0x2B,0x09,0x00,0x00,0xBB,0x08,0x36,0x38,
0x30,0x33,0x30,0x00,0x05,0x00,0x2E,0x09,0x00,0x00,0xBB,0x08,0x36,0x38,0x30,0x34,
0x30,0x00,0x09,0x00,0x30,0x09,0x00,0x00,0xBB,0x08,0x53,0x56,0x44,0x52,0x49,0x56,
0x45,0x52,0x53,0x00,0x09,0x00,0x31,0x09,0x00,0x00,0xBB,0x08,0x53,0x56,0x4F,0x42,
0x4A,0x45,0x43,0x54,0x53,0x00,0x0B,0x00,0x32,0x09,0x00,0x00,0xBB,0x08,0x53,0x56,
0x4F,0x50,0x45,0x52,0x41,0x54,0x4F,0x52,0x53,0x00,0x08,0x00,0x34,0x09,0x00,0x00,
0xBC,0x08,0x43,0x41,0x54,0x41,0x4C,0x4F,0x47,0x53,0x0C,0x00,0x37,0x09,0x00,0x00,
0xBC,0x08,0x54,0x52,0x41,0x4E,0x53,0x4C,0x41,0x54,0x49,0x4F,0x4E,0x53,0x06,0x00,
0x43,0x06,0x00,0x00,0xC8,0x08,0x43,0x4F,0x44,0x45,0x43,0x53,0x07,0x00,0x6D,0x09,
0x00,0x00,0xED,0x08,0x44,0x45,0x55,0x54,0x53,0x43,0x48,0x00,0x07,0x00,0x72,0x09,
0x00,0x00,0xEE,0x08,0x43,0x4C,0x41,0x53,0x53,0x45,0x53,0x00,0x06,0x00,0x10,0x0A,
0x00,0x00,0x10,0x09,0x4D,0x41,0x54,0x52,0x49,0x58,0x06,0x00,0xCC,0x0C,0x00,0x00,
0x30,0x09,0x4C,0x4A,0x46,0x4F,0x55,0x52,0x06,0x00,0xD1,0x0C,0x00,0x00,0x33,0x09,
0x4C,0x4A,0x46,0x4F,0x55,0x52,0x06,0x00,0xD6,0x0C,0x00,0x00,0x36,0x09,0x4C,0x4A,
0x46,0x4F,0x55,0x52,0x06,0x00,0xDB,0x0C,0x00,0x00,0x39,0x09,0x4C,0x4A,0x46,0x4F,
0x55,0x52,0x06,0x00,0xE0,0x0C,0x00,0x00,0x3C,0x09,0x4C,0x4A,0x46,0x4F,0x55,0x52,
0x06,0x00,0xE5,0x0C,0x00,0x00,0x3F,0x09,0x4C,0x4A,0x46,0x4F,0x55,0x52,0x06,0x00,
0xE9,0x0C,0x00,0x00,0x42,0x09,0x4C,0x4A,0x46,0x4F,0x55,0x52,0x06,0x00,0xC7,0x0C,
0x00,0x00,0x44,0x09,0x4C,0x4A,0x46,0x4F,0x55,0x52,0x06,0x00,0xF9,0x0C,0x00,0x00,
0x48,0x09,0x4C,0x4A,0x46,0x4F,0x55,0x52,0x06,0x00,0xEE,0x0C,0x00,0x00,0x4C,0x09,
0x4C,0x4A,0x46,0x4F,0x55,0x52,0x06,0x00,0xF2,0x0C,0x00,0x00,0x4F,0x09,0x4C,0x4A,
0x46,0x4F,0x55,0x52,0x06,0x00,0xA5,0x0C,0x00,0x00,0x51,0x09,0x4C,0x4A,0x46,0x4F,
0x55,0x52,0x06,0x00,0xAE,0x0C,0x00,0x00,0x54,0x09,0x4C,0x4A,0x46,0x4F,0x55,0x52,
0x06,0x00,0xB9,0x0C,0x00,0x00,0x57,0x09,0x4C,0x4A,0x46,0x4F,0x55,0x52,0x06,0x00,
0xC0,0x0C,0x00,0x00,0x5A,0x09,0x4C,0x4A,0x46,0x4F,0x55,0x52,0x06,0x00,0x64,0x0C,
0x00,0x00,0x5D,0x09,0x4C,0x4A,0x46,0x4F,0x55,0x52,0x06,0x00,0x01,0x0D,0x00,0x00,
0x60,0x09,0x4C,0x4A,0x46,0x4F,0x55,0x52,0x06,0x00,0x2C,0x0C,0x00,0x00,0x64,0x09,
0x4C,0x4A,0x46,0x4F,0x55,0x52,0x06,0x00,0x31,0x0C,0x00,0x00,0x67,0x09,0x4C,0x4A,
0x46,0x4F,0x55,0x52,0x06,0x00,0x36,0x0C,0x00,0x00,0x6A,0x09,0x4C,0x4A,0x46,0x4F,
0x55,0x52,0x06,0x00,0x54,0x0C,0x00,0x00,0x6D,0x09,0x4C,0x4A,0x46,0x4F,0x55,0x52,
0x06,0x00,0x3B,0x0C,0x00,0x00,0x70,0x09,0x4C,0x4A,0x46,0x4F,0x55,0x52,0x06,0x00,
0x40,0x0C,0x00,0x00,0x73,0x09,0x4C,0x4A,0x46,0x4F,0x55,0x52,0x06,0x00,0x45,0x0C,
0x00,0x00,0x76,0x09,0x4C,0x4A,0x46,0x4F,0x55,0x52,0x06,0x00,0x4A,0x0C,0x00,0x00,
0x79,0x09,0x4C,0x4A,0x46,0x4F,0x55,0x52,0x06,0x00,0x4F,0x0C,0x00,0x00,0x7C,0x09,
0x4C,0x4A,0x46,0x4F,0x55,0x52,0x06,0x00,0x59,0x0C,0x00,0x00,0x7F,0x09,0x4C,0x4A,
0x46,0x4F,0x55,0x52,0x06,0x00,0x5F,0x0C,0x00,0x00,0x82,0x09,0x4C,0x4A,0x46,0x4F,
0x55,0x52,0x06,0x00,0x1D,0x0C,0x00,0x00,0x85,0x09,0x4C,0x4A,0x46,0x4F,0x55,0x52,
0x06,0x00,0x26,0x0C,0x00,0x00,0x88,0x09,0x4C,0x4A,0x46,0x4F,0x55,0x52,0x06,0x00,
0x22,0x0C,0x00,0x00,0x8A,0x09,0x4C,0x4A,0x46,0x4F,0x55,0x52,0x06,0x00,0x6D,0x0C,
0x00,0x00,0x8D,0x09,0x4C,0x4A,0x46,0x4F,0x55,0x52,0x06,0x00,0x84,0x0C,0x00,0x00,
0x90,0x09,0x4C,0x4A,0x46,0x4F,0x55,0x52,0x06,0x00,0x98,0x0C,0x00,0x00,0x93,0x09,
0x4C,0x4A,0x46,0x4F,0x55,0x52,0x06,0x00,0x9D,0x0C,0x00,0x00,0x96,0x09,0x4C,0x4A,
0x46,0x4F,0x55,0x52,0x06,0x00,0x8F,0x0C,0x00,0x00,0x99,0x09,0x4C,0x4A,0x46,0x4F,
0x55,0x52,0x06,0x00,0x8A,0x0C,0x00,0x00,0x9C,0x09,0x4C,0x4A,0x46,0x4F,0x55,0x52,
0x06,0x00,0x7E,0x0C,0x00,0x00,0x9F,0x09,0x4C,0x4A,0x46,0x4F,0x55,0x52,0x06,0x00,
0x09,0x0D,0x00,0x00,0xA4,0x09,0x4C,0x4A,0x46,0x4F,0x55,0x52,0x06,0x00,0x10,0x0D,
0x00,0x00,0xA9,0x09,0x4C,0x4A,0x46,0x4F,0x55,0x52,0x06,0x00,0x17,0x0D,0x00,0x00,
0xAE,0x09,0x4C,0x4A,0x46,0x4F,0x55,0x52,0x07,0x00,0x12,0x01,0x00,0x00,0xB4,0x09,
0x44,0x45,0x55,0x54,0x53,0x43,0x48,0x00,0x07,0x00,0x13,0x01,0x00,0x00,0xB4,0x09,
0x45,0x4E,0x47,0x4C,0x49,0x53,0x48,0x00,0x08,0x00,0x14,0x01,0x00,0x00,0xB4,0x09,
0x46,0x52,0x41,0x4E,0xC7,0x41,0x49,0x53,0x08,0x00,0x15,0x01,0x00,0x00,0xB4,0x09,
0x49,0x54,0x41,0x4C,0x49,0x41,0x4E,0x4F,0x0A,0x00,0x16,0x01,0x00,0x00,0xB4,0x09,
0x4E,0x45,0x44,0x45,0x52,0x4C,0x41,0x4E,0x44,0x53,0x04,0x00,0x89,0x01,0x00,0x00,
0xDB,0x09,0x46,0x52,0x45,0x51,0x08,0x00,0x8D,0x01,0x00,0x00,0xDE,0x09,0x45,0x58,
0x41,0x4D,0x50,0x4C,0x45,0x53,0x0B,0x00,0x6A,0x01,0x00,0x00,0xEC,0x09,0x43,0x4F,
0x4D,0x50,0x4C,0x45,0x54,0x49,0x4F,0x4E,0x53,0x00,0x07,0x00,0x6C,0x01,0x00,0x00,
0xED,0x09,0x41,0x55,0x54,0x4F,0x44,0x4F,0x43,0x00,0x04,0x00,0xC7,0x01,0x00,0x00,
0xEE,0x09,0x52,0x45,0x58,0x58,0x06,0x00,0xDB,0x01,0x00,0x00,0xF6,0x09,0x49,0x4E,
0x4C,0x49,0x4E,0x45,0x05,0x00,0x9F,0x02,0x00,0x00,0x07,0x0A,0x53,0x49,0x44,0x45,
0x30,0x00,0x05,0x00,0xA0,0x02,0x00,0x00,0x07,0x0A,0x53,0x49,0x44,0x45,0x31,0x00,
0x05,0x00,0xB6,0x02,0x00,0x00,0x0A,0x0A,0x54,0x4F,0x50,0x41,0x5A,0x00,0x03,0x00,
0x37,0x03,0x00,0x00,0x11,0x0A,0x45,0x4E,0x56,0x00,0x04,0x00,0x39,0x03,0x00,0x00,
0x11,0x0A,0x4C,0x49,0x42,0x53,0x03,0x00,0x3C,0x03,0x00,0x00,0x12,0x0A,0x45,0x4E,
0x56,0x00,0x04,0x00,0x3E,0x03,0x00,0x00,0x12,0x0A,0x4C,0x49,0x42,0x53,0x03,0x00,
0x42,0x03,0x00,0x00,0x14,0x0A,0x45,0x4E,0x56,0x00,0x04,0x00,0x44,0x03,0x00,0x00,
0x14,0x0A,0x4C,0x49,0x42,0x53,0x04,0x00,0x4B,0x03,0x00,0x00,0x15,0x0A,0x4C,0x49,
0x42,0x53,0x07,0x00,0x4F,0x03,0x00,0x00,0x16,0x0A,0x45,0x4E,0x56,0x5F,0x41,0x47,
0x41,0x00,0x0C,0x00,0x51,0x03,0x00,0x00,0x16,0x0A,0x45,0x4E,0x56,0x5F,0x41,0x47,
0x41,0x5F,0x43,0x44,0x33,0x32,0x11,0x00,0x53,0x03,0x00,0x00,0x16,0x0A,0x45,0x4E,
0x56,0x5F,0x43,0x59,0x42,0x45,0x52,0x47,0x52,0x41,0x50,0x48,0x49,0x43,0x53,0x00,
0x07,0x00,0x55,0x03,0x00,0x00,0x16,0x0A,0x45,0x4E,0x56,0x5F,0x45,0x43,0x53,0x00,
0x08,0x00,0x57,0x03,0x00,0x00,0x16,0x0A,0x45,0x4E,0x56,0x5F,0x45,0x47,0x53,0x37,
0x0C,0x00,0x59,0x03,0x00,0x00,0x16,0x0A,0x45,0x4E,0x56,0x5F,0x47,0x46,0x58,0x43,
0x41,0x52,0x44,0x53,0x0A,0x00,0x5B,0x03,0x00,0x00,0x16,0x0A,0x45,0x4E,0x56,0x5F,
0x4D,0x45,0x52,0x4C,0x49,0x4E,0x0E,0x00,0x5D,0x03,0x00,0x00,0x16,0x0A,0x45,0x4E,
0x56,0x5F,0x4F,0x50,0x41,0x4C,0x56,0x49,0x53,0x49,0x4F,0x4E,0x0D,0x00,0x5F,0x03,
0x00,0x00,0x16,0x0A,0x45,0x4E,0x56,0x5F,0x50,0x49,0x43,0x41,0x53,0x53,0x4F,0x49,
0x49,0x00,0x0A,0x00,0x61,0x03,0x00,0x00,0x16,0x0A,0x45,0x4E,0x56,0x5F,0x52,0x45,
0x54,0x49,0x4E,0x41,0x09,0x00,0x68,0x03,0x00,0x00,0x19,0x0A,0x53,0x56,0x44,0x52,
0x49,0x56,0x45,0x52,0x53,0x00,0x09,0x00,0x69,0x03,0x00,0x00,0x19,0x0A,0x53,0x56,
0x4F,0x42,0x4A,0x45,0x43,0x54,0x53,0x00,0x09,0x00,0x6B,0x03,0x00,0x00,0x1A,0x0A,
0x53,0x56,0x4F,0x42,0x4A,0x45,0x43,0x54,0x53,0x00,0x07,0x00,0x71,0x03,0x00,0x00,
0x1E,0x0A,0x44,0x45,0x55,0x54,0x53,0x43,0x48,0x00,0x07,0x00,0x72,0x03,0x00,0x00,
0x1E,0x0A,0x45,0x4E,0x47,0x4C,0x49,0x53,0x48,0x00,0x07,0x00,0x74,0x03,0x00,0x00,
0x1F,0x0A,0x44,0x45,0x55,0x54,0x53,0x43,0x48,0x00,0x07,0x00,0x75,0x03,0x00,0x00,
0x1F,0x0A,0x45,0x4E,0x47,0x4C,0x49,0x53,0x48,0x00,0x07,0x00,0x90,0x03,0x00,0x00,
0x20,0x0A,0x42,0x49,0x54,0x4D,0x41,0x50,0x53,0x00,0x0C,0x00,0x8D,0x03,0x00,0x00,
0x21,0x0A,0x41,0x50,0x50,0x2D,0x44,0x45,0x46,0x41,0x55,0x4C,0x54,0x53,0x05,0x00,
0x8B,0x03,0x00,0x00,0x21,0x0A,0x46,0x4F,0x4E,0x54,0x53,0x00,0x06,0x00,0x88,0x03,
0x00,0x00,0x21,0x0A,0x4C,0x4F,0x43,0x41,0x4C,0x45,0x03,0x00,0x87,0x03,0x00,0x00,
0x21,0x0A,0x54,0x57,0x4D,0x00,0x06,0x00,0x28,0x04,0x00,0x00,0x2A,0x0A,0x47,0x4F,
0x4C,0x44,0x45,0x44,0x03,0x00,0x2B,0x04,0x00,0x00,0x2C,0x0A,0x41,0x50,0x49,0x00,
0x03,0x00,0x2F,0x04,0x00,0x00,0x2E,0x0A,0x43,0x41,0x54,0x00,0x04,0x00,0x30,0x04,
0x00,0x00,0x2E,0x0A,0x4D,0x45,0x4E,0x55,0x07,0x00,0x31,0x04,0x00,0x00,0x2E,0x0A,
0x53,0x43,0x41,0x4E,0x4E,0x45,0x52,0x00,0x06,0x00,0x32,0x04,0x00,0x00,0x2E,0x0A,
0x53,0x4F,0x55,0x52,0x43,0x45,0x03,0x00,0x35,0x04,0x00,0x00,0x2F,0x0A,0x41,0x50,
0x49,0x00,0x05,0x00,0x3B,0x04,0x00,0x00,0x2F,0x0A,0x41,0x52,0x45,0x58,0x58,0x00,
0x08,0x00,0x3C,0x04,0x00,0x00,0x2F,0x0A,0x43,0x41,0x54,0x41,0x4C,0x4F,0x47,0x53,
0x04,0x00,0x42,0x04,0x00,0x00,0x2F,0x0A,0x4C,0x49,0x42,0x53,0x06,0x00,0x43,0x04,
0x00,0x00,0x2F,0x0A,0x4D,0x41,0x43,0x52,0x4F,0x53,0x06,0x00,0x44,0x04,0x00,0x00,
0x2F,0x0A,0x53,0x59,0x4E,0x54,0x41,0x58,0x05,0x00,0x51,0x04,0x00,0x00,0x2F,0x0A,
0x54,0x4F,0x4F,0x4C,0x53,0x00,0x05,0x00,0x58,0x04,0x00,0x00,0x31,0x0A,0x41,0x52,
0x45,0x58,0x58,0x00,0x08,0x00,0x59,0x04,0x00,0x00,0x31,0x0A,0x43,0x41,0x54,0x41,
0x4C,0x4F,0x47,0x53,0x06,0x00,0x5C,0x04,0x00,0x00,0x31,0x0A,0x43,0x4F,0x4E,0x46,
0x49,0x47,0x05,0x00,0x5D,0x04,0x00,0x00,0x31,0x0A,0x43,0x4F,0x56,0x45,0x52,0x00,
0x09,0x00,0x5E,0x04,0x00,0x00,0x31,0x0A,0x53,0x4F,0x46,0x54,0x46,0x4F,0x4E,0x54,
0x53,0x00,0x09,0x00,0x5F,0x04,0x00,0x00,0x31,0x0A,0x54,0x45,0x4D,0x50,0x4C,0x41,
0x54,0x45,0x53,0x00,0x04,0x00,0x76,0x04,0x00,0x00,0x38,0x0A,0x52,0x45,0x58,0x58,
0x10,0x00,0x7D,0x04,0x00,0x00,0x3C,0x0A,0x51,0x55,0x49,0x43,0x4B,0x53,0x4F,0x52,
0x54,0x2D,0x53,0x4F,0x55,0x52,0x43,0x45,0x07,0x00,0x84,0x04,0x00,0x00,0x3E,0x0A,
0x44,0x45,0x55,0x54,0x53,0x43,0x48,0x00,0x0D,0x00,0xC0,0x04,0x00,0x00,0x41,0x0A,
0x4D,0x4F,0x44,0x55,0x4C,0x45,0x53,0x4F,0x55,0x52,0x43,0x45,0x53,0x00,0x02,0x00,
0xAF,0x05,0x00,0x00,0x46,0x0A,0x41,0x41,0x02,0x00,0xAE,0x05,0x00,0x00,0x46,0x0A,
0x42,0x42,0x02,0x00,0xAD,0x05,0x00,0x00,0x46,0x0A,0x43,0x43,0x02,0x00,0xAC,0x05,
0x00,0x00,0x46,0x0A,0x44,0x44,0x02,0x00,0xAA,0x05,0x00,0x00,0x47,0x0A,0x41,0x41,
0x02,0x00,0xA9,0x05,0x00,0x00,0x47,0x0A,0x42,0x42,0x02,0x00,0xA8,0x05,0x00,0x00,
0x47,0x0A,0x43,0x43,0x02,0x00,0xA7,0x05,0x00,0x00,0x47,0x0A,0x44,0x44,0x05,0x00,
0xA4,0x05,0x00,0x00,0x48,0x0A,0x42,0x4F,0x4F,0x4B,0x53,0x00,0x05,0x00,0xA3,0x05,
0x00,0x00,0x48,0x0A,0x46,0x49,0x4C,0x4D,0x53,0x00,0x07,0x00,0xA2,0x05,0x00,0x00,
0x48,0x0A,0x52,0x45,0x43,0x4F,0x52,0x44,0x53,0x00,0x05,0x00,0xA1,0x05,0x00,0x00,
0x48,0x0A,0x54,0x41,0x50,0x45,0x53,0x00,0x05,0x00,0x9E,0x05,0x00,0x00,0x49,0x0A,
0x42,0x4F,0x4F,0x4B,0x53,0x00,0x05,0x00,0x9D,0x05,0x00,0x00,0x49,0x0A,0x46,0x49,
0x4C,0x4D,0x53,0x00,0x07,0x00,0x9C,0x05,0x00,0x00,0x49,0x0A,0x52,0x45,0x43,0x4F,
0x52,0x44,0x53,0x00,0x05,0x00,0x9B,0x05,0x00,0x00,0x49,0x0A,0x54,0x41,0x50,0x45,
0x53,0x00,0x05,0x00,0x98,0x05,0x00,0x00,0x4A,0x0A,0x42,0x4F,0x4F,0x4B,0x53,0x00,
0x05,0x00,0x97,0x05,0x00,0x00,0x4A,0x0A,0x46,0x49,0x4C,0x4D,0x53,0x00,0x07,0x00,
0x96,0x05,0x00,0x00,0x4A,0x0A,0x52,0x45,0x43,0x4F,0x52,0x44,0x53,0x00,0x05,0x00,
0x95,0x05,0x00,0x00,0x4A,0x0A,0x54,0x41,0x50,0x45,0x53,0x00,0x04,0x00,0xBF,0x0A,
0x00,0x00,0x5F,0x0A,0x4B,0x45,0x52,0x4E,0x03,0x00,0xC0,0x0A,0x00,0x00,0x5F,0x0A,
0x4E,0x45,0x54,0x00,0x07,0x00,0xC1,0x0A,0x00,0x00,0x5F,0x0A,0x4E,0x45,0x54,0x49,
0x4E,0x45,0x54,0x00,0x03,0x00,0xC5,0x0A,0x00,0x00,0x63,0x0A,0x53,0x52,0x43,0x00,
0x05,0x00,0xC9,0x0A,0x00,0x00,0x64,0x0A,0x46,0x4F,0x4E,0x54,0x53,0x00,0x03,0x00,
0xD9,0x0A,0x00,0x00,0x69,0x0A,0x4F,0x52,0x47,0x00,0x05,0x00,0xDC,0x0A,0x00,0x00,
0x6B,0x0A,0x41,0x4D,0x49,0x47,0x41,0x00,0x03,0x00,0xE1,0x0A,0x00,0x00,0x6D,0x0A,
0x44,0x49,0x52,0x00,0x03,0x00,0xE2,0x0A,0x00,0x00,0x6D,0x0A,0x4D,0x53,0x47,0x00,
0x04,0x00,0xE3,0x0A,0x00,0x00,0x6D,0x0A,0x53,0x4F,0x52,0x54,0x07,0x00,0xE7,0x0A,
0x00,0x00,0x6F,0x0A,0x48,0x41,0x4E,0x44,0x4C,0x45,0x52,0x00,0x03,0x00,0x34,0x0B,
0x00,0x00,0x90,0x0A,0x44,0x49,0x52,0x00,0x03,0x00,0x35,0x0B,0x00,0x00,0x90,0x0A,
0x4D,0x53,0x47,0x00,0x04,0x00,0x36,0x0B,0x00,0x00,0x90,0x0A,0x53,0x4F,0x52,0x54,
0x07,0x00,0x79,0x0A,0x00,0x00,0x92,0x0A,0x44,0x45,0x55,0x54,0x53,0x43,0x48,0x00,
0x07,0x00,0x7A,0x0A,0x00,0x00,0x92,0x0A,0x45,0x4E,0x47,0x4C,0x49,0x53,0x48,0x00,
0x08,0x00,0x7B,0x0A,0x00,0x00,0x92,0x0A,0x46,0x52,0x41,0x4E,0xC7,0x41,0x49,0x53,
0x08,0x00,0x7C,0x0A,0x00,0x00,0x92,0x0A,0x49,0x54,0x41,0x4C,0x49,0x41,0x4E,0x4F,
0x0A,0x00,0x7D,0x0A,0x00,0x00,0x92,0x0A,0x4E,0x45,0x44,0x45,0x52,0x4C,0x41,0x4E,
0x44,0x53,0x04,0x00,0x83,0x07,0x00,0x00,0xC9,0x0A,0x46,0x52,0x45,0x51,0x08,0x00,
0x87,0x07,0x00,0x00,0xCC,0x0A,0x45,0x58,0x41,0x4D,0x50,0x4C,0x45,0x53,0x0B,0x00,
0x64,0x07,0x00,0x00,0xDA,0x0A,0x43,0x4F,0x4D,0x50,0x4C,0x45,0x54,0x49,0x4F,0x4E,
0x53,0x00,0x07,0x00,0x66,0x07,0x00,0x00,0xDB,0x0A,0x41,0x55,0x54,0x4F,0x44,0x4F,
0x43,0x00,0x09,0x00,0xE0,0x07,0x00,0x00,0xDD,0x0A,0x4C,0x49,0x42,0x52,0x41,0x52,
0x49,0x45,0x53,0x00,0x04,0x00,0xE8,0x07,0x00,0x00,0xE0,0x0A,0x43,0x4C,0x49,0x42,
0x06,0x00,0xE9,0x07,0x00,0x00,0xE0,0x0A,0x49,0x4E,0x4C,0x49,0x4E,0x45,0x09,0x00,
0xEA,0x07,0x00,0x00,0xE0,0x0A,0x4C,0x49,0x42,0x52,0x41,0x52,0x49,0x45,0x53,0x00,
0x07,0x00,0xEB,0x07,0x00,0x00,0xE0,0x0A,0x50,0x52,0x41,0x47,0x4D,0x41,0x53,0x00,
0x05,0x00,0xEC,0x07,0x00,0x00,0xE0,0x0A,0x50,0x52,0x4F,0x54,0x4F,0x00,0x07,0x00,
0xEE,0x07,0x00,0x00,0xE1,0x0A,0x49,0x4E,0x43,0x4C,0x55,0x44,0x45,0x00,0x03,0x00,
0xF0,0x07,0x00,0x00,0xE1,0x0A,0x4C,0x49,0x42,0x00,0x08,0x00,0xF4,0x07,0x00,0x00,
0xE2,0x0A,0x41,0x55,0x54,0x4F,0x44,0x4F,0x43,0x53,0x07,0x00,0xF5,0x07,0x00,0x00,
0xE2,0x0A,0x43,0x4C,0x41,0x53,0x53,0x45,0x53,0x00,0x07,0x00,0xF7,0x07,0x00,0x00,
0xE2,0x0A,0x49,0x4E,0x43,0x4C,0x55,0x44,0x45,0x00,0x06,0x00,0xF9,0x07,0x00,0x00,
0xE2,0x0A,0x53,0x4F,0x55,0x52,0x43,0x45,0x03,0x00,0xFB,0x08,0x00,0x00,0xF9,0x0A,
0x45,0x4E,0x56,0x00,0x04,0x00,0xFD,0x08,0x00,0x00,0xF9,0x0A,0x4C,0x49,0x42,0x53,
0x03,0x00,0x00,0x09,0x00,0x00,0xFA,0x0A,0x45,0x4E,0x56,0x00,0x04,0x00,0x02,0x09,
0x00,0x00,0xFA,0x0A,0x4C,0x49,0x42,0x53,0x03,0x00,0x06,0x09,0x00,0x00,0xFC,0x0A,
0x45,0x4E,0x56,0x00,0x04,0x00,0x08,0x09,0x00,0x00,0xFC,0x0A,0x4C,0x49,0x42,0x53,
0x04,0x00,0x0F,0x09,0x00,0x00,0xFD,0x0A,0x4C,0x49,0x42,0x53,0x07,0x00,0x13,0x09,
0x00,0x00,0xFE,0x0A,0x45,0x4E,0x56,0x5F,0x41,0x47,0x41,0x00,0x0C,0x00,0x15,0x09,
0x00,0x00,0xFE,0x0A,0x45,0x4E,0x56,0x5F,0x41,0x47,0x41,0x5F,0x43,0x44,0x33,0x32,
0x11,0x00,0x17,0x09,0x00,0x00,0xFE,0x0A,0x45,0x4E,0x56,0x5F,0x43,0x59,0x42,0x45,
0x52,0x47,0x52,0x41,0x50,0x48,0x49,0x43,0x53,0x00,0x07,0x00,0x19,0x09,0x00,0x00,
0xFE,0x0A,0x45,0x4E,0x56,0x5F,0x45,0x43,0x53,0x00,0x08,0x00,0x1B,0x09,0x00,0x00,
0xFE,0x0A,0x45,0x4E,0x56,0x5F,0x45,0x47,0x53,0x37,0x0C,0x00,0x1D,0x09,0x00,0x00,
0xFE,0x0A,0x45,0x4E,0x56,0x5F,0x47,0x46,0x58,0x43,0x41,0x52,0x44,0x53,0x0A,0x00,
0x1F,0x09,0x00,0x00,0xFE,0x0A,0x45,0x4E,0x56,0x5F,0x4D,0x45,0x52,0x4C,0x49,0x4E,
0x0E,0x00,0x21,0x09,0x00,0x00,0xFE,0x0A,0x45,0x4E,0x56,0x5F,0x4F,0x50,0x41,0x4C,
0x56,0x49,0x53,0x49,0x4F,0x4E,0x0D,0x00,0x23,0x09,0x00,0x00,0xFE,0x0A,0x45,0x4E,
0x56,0x5F,0x50,0x49,0x43,0x41,0x53,0x53,0x4F,0x49,0x49,0x00,0x0A,0x00,0x25,0x09,
0x00,0x00,0xFE,0x0A,0x45,0x4E,0x56,0x5F,0x52,0x45,0x54,0x49,0x4E,0x41,0x09,0x00,
0x2C,0x09,0x00,0x00,0x01,0x0B,0x53,0x56,0x44,0x52,0x49,0x56,0x45,0x52,0x53,0x00,
0x09,0x00,0x2D,0x09,0x00,0x00,0x01,0x0B,0x53,0x56,0x4F,0x42,0x4A,0x45,0x43,0x54,
0x53,0x00,0x09,0x00,0x2F,0x09,0x00,0x00,0x02,0x0B,0x53,0x56,0x4F,0x42,0x4A,0x45,
0x43,0x54,0x53,0x00,0x07,0x00,0x35,0x09,0x00,0x00,0x06,0x0B,0x44,0x45,0x55,0x54,
0x53,0x43,0x48,0x00,0x07,0x00,0x36,0x09,0x00,0x00,0x06,0x0B,0x45,0x4E,0x47,0x4C,
0x49,0x53,0x48,0x00,0x07,0x00,0x38,0x09,0x00,0x00,0x07,0x0B,0x44,0x45,0x55,0x54,
0x53,0x43,0x48,0x00,0x07,0x00,0x39,0x09,0x00,0x00,0x07,0x0B,0x45,0x4E,0x47,0x4C,
0x49,0x53,0x48,0x00,0x07,0x00,0x6E,0x09,0x00,0x00,0x09,0x0B,0x43,0x4C,0x41,0x53,
0x53,0x45,0x53,0x00,0x09,0x00,0x73,0x09,0x00,0x00,0x0A,0x0B,0x44,0x41,0x54,0x41,
0x54,0x59,0x50,0x45,0x53,0x00,0x11,0x00,0x38,0x03,0x00,0x00,0x43,0x0B,0x53,0x55,
0x50,0x45,0x52,0x56,0x49,0x45,0x57,0x2D,0x4C,0x49,0x42,0x52,0x41,0x52,0x59,0x00,
0x0B,0x00,0x3A,0x03,0x00,0x00,0x44,0x0B,0x53,0x56,0x4F,0x50,0x45,0x52,0x41,0x54,
0x4F,0x52,0x53,0x00,0x11,0x00,0x3D,0x03,0x00,0x00,0x45,0x0B,0x53,0x55,0x50,0x45,
0x52,0x56,0x49,0x45,0x57,0x2D,0x4C,0x49,0x42,0x52,0x41,0x52,0x59,0x00,0x09,0x00,
0x3F,0x03,0x00,0x00,0x46,0x0B,0x53,0x56,0x4F,0x42,0x4A,0x45,0x43,0x54,0x53,0x00,
0x11,0x00,0x43,0x03,0x00,0x00,0x47,0x0B,0x53,0x55,0x50,0x45,0x52,0x56,0x49,0x45,
0x57,0x2D,0x4C,0x49,0x42,0x52,0x41,0x52,0x59,0x00,0x05,0x00,0x45,0x03,0x00,0x00,
0x48,0x0B,0x36,0x38,0x30,0x33,0x30,0x00,0x05,0x00,0x47,0x03,0x00,0x00,0x48,0x0B,
0x36,0x38,0x30,0x34,0x30,0x00,0x09,0x00,0x49,0x03,0x00,0x00,0x48,0x0B,0x53,0x56,
0x4F,0x42,0x4A,0x45,0x43,0x54,0x53,0x00,0x09,0x00,0x4C,0x03,0x00,0x00,0x49,0x0B,
0x53,0x56,0x4F,0x42,0x4A,0x45,0x43,0x54,0x53,0x00,0x11,0x00,0x50,0x03,0x00,0x00,
0x4A,0x0B,0x53,0x55,0x50,0x45,0x52,0x56,0x49,0x45,0x57,0x2D,0x4C,0x49,0x42,0x52,
0x41,0x52,0x59,0x00,0x11,0x00,0x52,0x03,0x00,0x00,0x4B,0x0B,0x53,0x55,0x50,0x45,
0x52,0x56,0x49,0x45,0x57,0x2D,0x4C,0x49,0x42,0x52,0x41,0x52,0x59,0x00,0x11,0x00,
0x54,0x03,0x00,0x00,0x4C,0x0B,0x53,0x55,0x50,0x45,0x52,0x56,0x49,0x45,0x57,0x2D,
0x4C,0x49,0x42,0x52,0x41,0x52,0x59,0x00,0x11,0x00,0x56,0x03,0x00,0x00,0x4D,0x0B,
0x53,0x55,0x50,0x45,0x52,0x56,0x49,0x45,0x57,0x2D,0x4C,0x49,0x42,0x52,0x41,0x52,
0x59,0x00,0x11,0x00,0x58,0x03,0x00,0x00,0x4E,0x0B,0x53,0x55,0x50,0x45,0x52,0x56,
0x49,0x45,0x57,0x2D,0x4C,0x49,0x42,0x52,0x41,0x52,0x59,0x00,0x11,0x00,0x5A,0x03,
0x00,0x00,0x4F,0x0B,0x53,0x55,0x50,0x45,0x52,0x56,0x49,0x45,0x57,0x2D,0x4C,0x49,
0x42,0x52,0x41,0x52,0x59,0x00,0x11,0x00,0x5C,0x03,0x00,0x00,0x50,0x0B,0x53,0x55,
0x50,0x45,0x52,0x56,0x49,0x45,0x57,0x2D,0x4C,0x49,0x42,0x52,0x41,0x52,0x59,0x00,
0x11,0x00,0x5E,0x03,0x00,0x00,0x51,0x0B,0x53,0x55,0x50,0x45,0x52,0x56,0x49,0x45,
0x57,0x2D,0x4C,0x49,0x42,0x52,0x41,0x52,0x59,0x00,0x11,0x00,0x60,0x03,0x00,0x00,
0x52,0x0B,0x53,0x55,0x50,0x45,0x52,0x56,0x49,0x45,0x57,0x2D,0x4C,0x49,0x42,0x52,
0x41,0x52,0x59,0x00,0x11,0x00,0x62,0x03,0x00,0x00,0x53,0x0B,0x53,0x55,0x50,0x45,
0x52,0x56,0x49,0x45,0x57,0x2D,0x4C,0x49,0x42,0x52,0x41,0x52,0x59,0x00,0x04,0x00,
0x8C,0x03,0x00,0x00,0x5D,0x0B,0x4D,0x49,0x53,0x43,0x01,0x00,0x8A,0x03,0x00,0x00,
0x5E,0x0B,0x43,0x00,0x09,0x00,0x89,0x03,0x00,0x00,0x5E,0x0B,0x49,0x53,0x4F,0x38,
0x38,0x35,0x39,0x2D,0x31,0x00,0x04,0x00,0x2C,0x04,0x00,0x00,0x61,0x0B,0x44,0x4F,
0x43,0x4B,0x04,0x00,0x36,0x04,0x00,0x00,0x66,0x0B,0x44,0x4F,0x43,0x4B,0x07,0x00,
0x38,0x04,0x00,0x00,0x66,0x0B,0x49,0x4E,0x43,0x4C,0x55,0x44,0x45,0x00,0x04,0x00,
0x39,0x04,0x00,0x00,0x66,0x0B,0x52,0x45,0x58,0x58,0x05,0x00,0x3A,0x04,0x00,0x00,
0x66,0x0B,0x53,0x50,0x45,0x4C,0x4C,0x00,0x07,0x00,0x3D,0x04,0x00,0x00,0x68,0x0B,
0x44,0x45,0x55,0x54,0x53,0x43,0x48,0x00,0x08,0x00,0x3E,0x04,0x00,0x00,0x68,0x0B,
0x46,0x52,0x41,0x4E,0xC7,0x41,0x49,0x53,0x08,0x00,0x3F,0x04,0x00,0x00,0x68,0x0B,
0x49,0x54,0x41,0x4C,0x49,0x41,0x4E,0x4F,0x0A,0x00,0x40,0x04,0x00,0x00,0x68,0x0B,
0x4E,0x45,0x44,0x45,0x52,0x4C,0x41,0x4E,0x44,0x53,0x07,0x00,0x41,0x04,0x00,0x00,
0x68,0x0B,0x53,0x56,0x45,0x4E,0x53,0x4B,0x41,0x00,0x09,0x00,0x45,0x04,0x00,0x00,
0x6B,0x0B,0x44,0x45,0x56,0x45,0x4C,0x4F,0x50,0x45,0x52,0x00,0x07,0x00,0x5A,0x04,
0x00,0x00,0x6E,0x0B,0x44,0x45,0x55,0x54,0x53,0x43,0x48,0x00,0x08,0x00,0x5B,0x04,
0x00,0x00,0x6E,0x0B,0x46,0x52,0x41,0x4E,0xC7,0x41,0x49,0x53,0x03,0x00,0x77,0x04,
0x00,0x00,0x73,0x0B,0x43,0x45,0x44,0x00,0x03,0x00,0x78,0x04,0x00,0x00,0x73,0x0B,
0x54,0x54,0x58,0x00,0x05,0x00,0xCA,0x0A,0x00,0x00,0x8F,0x0B,0x4E,0x41,0x50,0x53,
0x41,0x00,0x06,0x00,0xCB,0x0A,0x00,0x00,0x8F,0x0B,0x4E,0x41,0x50,0x53,0x41,0x42,
0x06,0x00,0xCC,0x0A,0x00,0x00,0x8F,0x0B,0x4E,0x41,0x50,0x53,0x41,0x54,0x06,0x00,
0xCD,0x0A,0x00,0x00,0x8F,0x0B,0x4E,0x41,0x50,0x53,0x41,0x56,0x07,0x00,0xCE,0x0A,
0x00,0x00,0x8F,0x0B,0x4E,0x41,0x50,0x53,0x41,0x56,0x42,0x00,0x07,0x00,0xCF,0x0A,
0x00,0x00,0x8F,0x0B,0x4E,0x41,0x50,0x53,0x41,0x56,0x54,0x00,0x07,0x00,0xD0,0x0A,
0x00,0x00,0x8F,0x0B,0x4E,0x41,0x50,0x53,0x41,0x56,0x57,0x00,0x06,0x00,0xD1,0x0A,
0x00,0x00,0x8F,0x0B,0x4E,0x41,0x50,0x53,0x41,0x57,0x07,0x00,0xEF,0x07,0x00,0x00,
0xA8,0x0B,0x50,0x52,0x41,0x47,0x4D,0x41,0x53,0x00,0x03,0x00,0xF6,0x07,0x00,0x00,
0xAB,0x0B,0x4D,0x55,0x49,0x00,0x03,0x00,0xF8,0x07,0x00,0x00,0xAC,0x0B,0x4D,0x55,
0x49,0x00,0x11,0x00,0xFC,0x08,0x00,0x00,0xAE,0x0B,0x53,0x55,0x50,0x45,0x52,0x56,
0x49,0x45,0x57,0x2D,0x4C,0x49,0x42,0x52,0x41,0x52,0x59,0x00,0x0B,0x00,0xFE,0x08,
0x00,0x00,0xAF,0x0B,0x53,0x56,0x4F,0x50,0x45,0x52,0x41,0x54,0x4F,0x52,0x53,0x00,
0x11,0x00,0x01,0x09,0x00,0x00,0xB0,0x0B,0x53,0x55,0x50,0x45,0x52,0x56,0x49,0x45,
0x57,0x2D,0x4C,0x49,0x42,0x52,0x41,0x52,0x59,0x00,0x09,0x00,0x03,0x09,0x00,0x00,
0xB1,0x0B,0x53,0x56,0x4F,0x42,0x4A,0x45,0x43,0x54,0x53,0x00,0x11,0x00,0x07,0x09,
0x00,0x00,0xB2,0x0B,0x53,0x55,0x50,0x45,0x52,0x56,0x49,0x45,0x57,0x2D,0x4C,0x49,
0x42,0x52,0x41,0x52,0x59,0x00,0x05,0x00,0x09,0x09,0x00,0x00,0xB3,0x0B,0x36,0x38,
0x30,0x33,0x30,0x00,0x05,0x00,0x0B,0x09,0x00,0x00,0xB3,0x0B,0x36,0x38,0x30,0x34,
0x30,0x00,0x09,0x00,0x0D,0x09,0x00,0x00,0xB3,0x0B,0x53,0x56,0x4F,0x42,0x4A,0x45,
0x43,0x54,0x53,0x00,0x09,0x00,0x10,0x09,0x00,0x00,0xB4,0x0B,0x53,0x56,0x4F,0x42,
0x4A,0x45,0x43,0x54,0x53,0x00,0x11,0x00,0x14,0x09,0x00,0x00,0xB5,0x0B,0x53,0x55,
0x50,0x45,0x52,0x56,0x49,0x45,0x57,0x2D,0x4C,0x49,0x42,0x52,0x41,0x52,0x59,0x00,
0x11,0x00,0x16,0x09,0x00,0x00,0xB6,0x0B,0x53,0x55,0x50,0x45,0x52,0x56,0x49,0x45,
0x57,0x2D,0x4C,0x49,0x42,0x52,0x41,0x52,0x59,0x00,0x11,0x00,0x18,0x09,0x00,0x00,
0xB7,0x0B,0x53,0x55,0x50,0x45,0x52,0x56,0x49,0x45,0x57,0x2D,0x4C,0x49,0x42,0x52,
0x41,0x52,0x59,0x00,0x11,0x00,0x1A,0x09,0x00,0x00,0xB8,0x0B,0x53,0x55,0x50,0x45,
0x52,0x56,0x49,0x45,0x57,0x2D,0x4C,0x49,0x42,0x52,0x41,0x52,0x59,0x00,0x11,0x00,
0x1C,0x09,0x00,0x00,0xB9,0x0B,0x53,0x55,0x50,0x45,0x52,0x56,0x49,0x45,0x57,0x2D,
0x4C,0x49,0x42,0x52,0x41,0x52,0x59,0x00,0x11,0x00,0x1E,0x09,0x00,0x00,0xBA,0x0B,
0x53,0x55,0x50,0x45,0x52,0x56,0x49,0x45,0x57,0x2D,0x4C,0x49,0x42,0x52,0x41,0x52,
0x59,0x00,0x11,0x00,0x20,0x09,0x00,0x00,0xBB,0x0B,0x53,0x55,0x50,0x45,0x52,0x56,
0x49,0x45,0x57,0x2D,0x4C,0x49,0x42,0x52,0x41,0x52,0x59,0x00,0x11,0x00,0x22,0x09,
0x00,0x00,0xBC,0x0B,0x53,0x55,0x50,0x45,0x52,0x56,0x49,0x45,0x57,0x2D,0x4C,0x49,
0x42,0x52,0x41,0x52,0x59,0x00,0x11,0x00,0x24,0x09,0x00,0x00,0xBD,0x0B,0x53,0x55,
0x50,0x45,0x52,0x56,0x49,0x45,0x57,0x2D,0x4C,0x49,0x42,0x52,0x41,0x52,0x59,0x00,
0x11,0x00,0x26,0x09,0x00,0x00,0xBE,0x0B,0x53,0x55,0x50,0x45,0x52,0x56,0x49,0x45,
0x57,0x2D,0x4C,0x49,0x42,0x52,0x41,0x52,0x59,0x00,0x06,0x00,0x6F,0x09,0x00,0x00,
0xC6,0x0B,0x43,0x4F,0x44,0x45,0x43,0x53,0x09,0x00,0x46,0x03,0x00,0x00,0xCD,0x0B,
0x53,0x56,0x4F,0x42,0x4A,0x45,0x43,0x54,0x53,0x00,0x09,0x00,0x48,0x03,0x00,0x00,
0xCE,0x0B,0x53,0x56,0x4F,0x42,0x4A,0x45,0x43,0x54,0x53,0x00,0x05,0x00,0x37,0x04,
0x00,0x00,0xDF,0x0B,0x49,0x43,0x4F,0x4E,0x53,0x00,0x07,0x00,0x46,0x04,0x00,0x00,
0xE8,0x0B,0x41,0x55,0x54,0x4F,0x44,0x4F,0x43,0x00,0x04,0x00,0x47,0x04,0x00,0x00,
0xE8,0x0B,0x43,0x4C,0x49,0x42,0x02,0x00,0x48,0x04,0x00,0x00,0xE8,0x0B,0x46,0x44,
0x07,0x00,0x49,0x04,0x00,0x00,0xE8,0x0B,0x49,0x4E,0x43,0x4C,0x55,0x44,0x45,0x00,
0x06,0x00,0x4A,0x04,0x00,0x00,0xE8,0x0B,0x53,0x4F,0x55,0x52,0x43,0x45,0x09,0x00,
0x0A,0x09,0x00,0x00,0xFD,0x0B,0x53,0x56,0x4F,0x42,0x4A,0x45,0x43,0x54,0x53,0x00,
0x09,0x00,0x0C,0x09,0x00,0x00,0xFE,0x0B,0x53,0x56,0x4F,0x42,0x4A,0x45,0x43,0x54,
0x53,0x00,0x0E,0x00,0x4B,0x04,0x00,0x00,0x13,0x0C,0x45,0x58,0x41,0x4D,0x50,0x4C,
0x45,0x5F,0x43,0x41,0x43,0x48,0x45,0x44,0x0F,0x00,0x4D,0x04,0x00,0x00,0x13,0x0C,
0x45,0x58,0x41,0x4D,0x50,0x4C,0x45,0x5F,0x43,0x4F,0x4E,0x54,0x45,0x58,0x54,0x00,
0x0E,0x00,0x4F,0x04,0x00,0x00,0x13,0x0C,0x45,0x58,0x41,0x4D,0x50,0x4C,0x45,0x5F,
0x53,0x49,0x4D,0x50,0x4C,0x45,0x01,0x00,0x4C,0x04,0x00,0x00,0x16,0x0C,0x4F,0x00,
0x01,0x00,0x4E,0x04,0x00,0x00,0x17,0x0C,0x4F,0x00,0x01,0x00,0x50,0x04,0x00,0x00,
0x18,0x0C,0x4F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
};
static BYTE dirTblWithLatin1[] = {
0x22,0x00,0xC2,0x05,0x00,0x00,0x00,0x00,0x05,0xC2,0x00,0x08,0x00,0x00,0x00,0x00,
0x08,0x00,0x5F,0x08,0x0E,0x00,0x30,0x2D,0x00,0x02,0x00,0x00,0x01,0x00,0x00,0x01,
0x01,0x00,0x22,0x00,0xC1,0x05,0x00,0x00,0x00,0x00,0x05,0xC1,0x00,0x08,0x00,0x00,
0x00,0x00,0x08,0x00,0x5F,0x08,0x19,0x15,0x06,0x05,0x00,0x02,0x00,0x00,0x01,0x00,
0x00,0x01,0x01,0x01,0x26,0x00,0xC3,0x05,0x00,0x00,0x00,0x00,0x05,0xC3,0x00,0x08,
0x00,0x00,0x00,0x00,0x08,0x00,0x5F,0x08,0x0E,0x00,0x30,0x2C,0x00,0x02,0x00,0x00,
0x01,0x00,0x00,0x01,0x05,0x44,0x61,0x6E,0x73,0x6B,0x28,0x00,0xC4,0x05,0x00,0x00,
0x00,0x00,0x05,0xC4,0x00,0x08,0x00,0x00,0x00,0x00,0x08,0x00,0x5F,0x08,0x0E,0x00,
0x30,0x2C,0x00,0x02,0x00,0x00,0x01,0x00,0x00,0x01,0x07,0x44,0x65,0x75,0x74,0x73,
0x63,0x68,0x28,0x00,0xC5,0x05,0x00,0x00,0x00,0x00,0x05,0xC5,0x00,0x08,0x00,0x00,
0x00,0x00,0x08,0x00,0x5F,0x08,0x0E,0x00,0x30,0x2C,0x00,0x02,0x00,0x00,0x01,0x00,
0x00,0x01,0x07,0x45,0x73,0x70,0x61,0xF1,0x6F,0x6C,0x2C,0x00,0xC6,0x05,0x00,0x00,
0x00,0x00,0x05,0xC6,0x00,0x08,0x00,0x00,0x00,0x00,0x08,0x00,0x5F,0x08,0x0E,0x00,
0x30,0x2D,0x00,0x02,0x00,0x00,0x01,0x00,0x00,0x01,0x0A,0x4E,0x65,0x64,0x65,0x72,
0x6C,0x61,0x6E,0x64,0x73,0x00,0x26,0x00,0xC7,0x05,0x00,0x00,0x00,0x00,0x05,0xC7,
0x00,0x08,0x00,0x00,0x00,0x00,0x08,0x00,0x5F,0x08,0x0E,0x00,0x30,0x2D,0x00,0x02,
0x00,0x00,0x01,0x00,0x00,0x01,0x05,0x53,0x75,0x6F,0x6D,0x69,0x28,0x00,0xC8,0x05,
0x00,0x00,0x00,0x00,0x05,0xC8,0x00,0x08,0x00,0x00,0x00,0x00,0x08,0x00,0x5F,0x08,
0x0E,0x00,0x30,0x2D,0x00,0x02,0x00,0x00,0x01,0x00,0x00,0x01,0x07,0x53,0x76,0x65,
0x6E,0x73,0x6B,0x61,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
};
#endif
|
6ebf1790b9bbc9bfdc229a4ba634729a78b4cded
|
5ab69c8644a936a3d9dec1669a86c7369c911bf8
|
/os/net/routing/rpl-lite/rpl-ext-header.h
|
1328a14999407a4bfeb3dcd57aa238de4aed6875
|
[
"BSD-3-Clause"
] |
permissive
|
contiki-ng/contiki-ng
|
393d36f68b98f5ee3544ea32502cf662ffb2fe9f
|
31fcaadf7a0dc8ceea07f438cd69db73174879e6
|
refs/heads/develop
| 2023-09-01T20:10:30.000765
| 2023-09-01T14:37:12
| 2023-09-01T14:37:12
| 91,191,972
| 1,242
| 788
|
BSD-3-Clause
| 2023-09-14T19:08:35
| 2017-05-13T17:37:59
|
C
|
UTF-8
|
C
| false
| false
| 3,004
|
h
|
rpl-ext-header.h
|
/*
* Copyright (c) 2017, Inria.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. Neither the name of the Institute nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* This file is part of the Contiki operating system.
*/
/**
* \addtogroup rpl-lite
* @{
*
* \file
* Header file for rpl-ext-header
*
* \author Simon Duquennoy <simon.duquennoy@inria.fr>
*/
#ifndef RPL_EXT_HEADER_H_
#define RPL_EXT_HEADER_H_
/********** Public functions **********/
/**
* Look for next hop from SRH of current uIP packet.
*
* \param ipaddr A pointer to the address where to store the next hop.
* \return 1 if a next hop was found, 0 otherwise
*/
int rpl_ext_header_srh_get_next_hop(uip_ipaddr_t *ipaddr);
/**
* Process and update SRH in-place,
* i.e. internal address swapping as per RFC6554
* \return 1 if SRH found, 0 otherwise
*/
int rpl_ext_header_srh_update(void);
/**
* Process and update the RPL hop-by-hop extension headers of
* the current uIP packet.
*
* \param ext_buf A pointer to the ext header buffer
* \param opt_offset The offset within the extension header where
* the option starts
* \return 1 in case the packet is valid and to be processed further,
* 0 in case the packet must be dropped.
*/
int rpl_ext_header_hbh_update(uint8_t *ext_buf, int opt_offset);
/**
* Adds/updates all RPL extension headers to current uIP packet.
*
* \return 1 in case of success, 0 otherwise
*/
int rpl_ext_header_update(void);
/**
* Removes all RPL extension headers.
*
* \return true in case of success, false otherwise
*/
bool rpl_ext_header_remove(void);
/** @} */
#endif /* RPL_EXT_HEADER_H_ */
|
dac7819c06e5c6281bfd2fc2650283842d96d71f
|
ff443629c167f318d071f62886581167c51690c4
|
/src/util/trace.h
|
051921a0d215bdb4f9852df341ec0032b3dde9aa
|
[
"MIT"
] |
permissive
|
bitcoin/bitcoin
|
a618b2555d9fe5a2b613e5fec0f4b1eca3b4d86f
|
6f03c45f6bb5a6edaa3051968b6a1ca4f84d2ccb
|
refs/heads/master
| 2023-09-05T00:16:48.295861
| 2023-09-02T17:43:00
| 2023-09-02T17:46:33
| 1,181,927
| 77,104
| 33,708
|
MIT
| 2023-09-14T20:47:31
| 2010-12-19T15:16:43
|
C++
|
UTF-8
|
C
| false
| false
| 3,737
|
h
|
trace.h
|
// Copyright (c) 2020-2021 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_UTIL_TRACE_H
#define BITCOIN_UTIL_TRACE_H
#ifdef ENABLE_TRACING
#include <sys/sdt.h>
// Disabling this warning can be removed once we switch to C++20
#if defined(__clang__) && __cplusplus < 202002L
#define BITCOIN_DISABLE_WARN_ZERO_VARIADIC_PUSH _Pragma("clang diagnostic push") _Pragma("clang diagnostic ignored \"-Wgnu-zero-variadic-macro-arguments\"")
#define BITCOIN_DISABLE_WARN_ZERO_VARIADIC_POP _Pragma("clang diagnostic pop")
#else
#define BITCOIN_DISABLE_WARN_ZERO_VARIADIC_PUSH
#define BITCOIN_DISABLE_WARN_ZERO_VARIADIC_POP
#endif
#define TRACE(context, event) BITCOIN_DISABLE_WARN_ZERO_VARIADIC_PUSH DTRACE_PROBE(context, event) BITCOIN_DISABLE_WARN_ZERO_VARIADIC_POP
#define TRACE1(context, event, a) BITCOIN_DISABLE_WARN_ZERO_VARIADIC_PUSH DTRACE_PROBE1(context, event, a) BITCOIN_DISABLE_WARN_ZERO_VARIADIC_POP
#define TRACE2(context, event, a, b) BITCOIN_DISABLE_WARN_ZERO_VARIADIC_PUSH DTRACE_PROBE2(context, event, a, b) BITCOIN_DISABLE_WARN_ZERO_VARIADIC_POP
#define TRACE3(context, event, a, b, c) BITCOIN_DISABLE_WARN_ZERO_VARIADIC_PUSH DTRACE_PROBE3(context, event, a, b, c) BITCOIN_DISABLE_WARN_ZERO_VARIADIC_POP
#define TRACE4(context, event, a, b, c, d) BITCOIN_DISABLE_WARN_ZERO_VARIADIC_PUSH DTRACE_PROBE4(context, event, a, b, c, d) BITCOIN_DISABLE_WARN_ZERO_VARIADIC_POP
#define TRACE5(context, event, a, b, c, d, e) BITCOIN_DISABLE_WARN_ZERO_VARIADIC_PUSH DTRACE_PROBE5(context, event, a, b, c, d, e) BITCOIN_DISABLE_WARN_ZERO_VARIADIC_POP
#define TRACE6(context, event, a, b, c, d, e, f) BITCOIN_DISABLE_WARN_ZERO_VARIADIC_PUSH DTRACE_PROBE6(context, event, a, b, c, d, e, f) BITCOIN_DISABLE_WARN_ZERO_VARIADIC_POP
#define TRACE7(context, event, a, b, c, d, e, f, g) BITCOIN_DISABLE_WARN_ZERO_VARIADIC_PUSH DTRACE_PROBE7(context, event, a, b, c, d, e, f, g) BITCOIN_DISABLE_WARN_ZERO_VARIADIC_POP
#define TRACE8(context, event, a, b, c, d, e, f, g, h) BITCOIN_DISABLE_WARN_ZERO_VARIADIC_PUSH DTRACE_PROBE8(context, event, a, b, c, d, e, f, g, h) BITCOIN_DISABLE_WARN_ZERO_VARIADIC_POP
#define TRACE9(context, event, a, b, c, d, e, f, g, h, i) BITCOIN_DISABLE_WARN_ZERO_VARIADIC_PUSH DTRACE_PROBE9(context, event, a, b, c, d, e, f, g, h, i) BITCOIN_DISABLE_WARN_ZERO_VARIADIC_POP
#define TRACE10(context, event, a, b, c, d, e, f, g, h, i, j) BITCOIN_DISABLE_WARN_ZERO_VARIADIC_PUSH DTRACE_PROBE10(context, event, a, b, c, d, e, f, g, h, i, j) BITCOIN_DISABLE_WARN_ZERO_VARIADIC_POP
#define TRACE11(context, event, a, b, c, d, e, f, g, h, i, j, k) BITCOIN_DISABLE_WARN_ZERO_VARIADIC_PUSH DTRACE_PROBE11(context, event, a, b, c, d, e, f, g, h, i, j, k) BITCOIN_DISABLE_WARN_ZERO_VARIADIC_POP
#define TRACE12(context, event, a, b, c, d, e, f, g, h, i, j, k, l) BITCOIN_DISABLE_WARN_ZERO_VARIADIC_PUSH DTRACE_PROBE12(context, event, a, b, c, d, e, f, g, h, i, j, k, l) BITCOIN_DISABLE_WARN_ZERO_VARIADIC_POP
#else
#define TRACE(context, event)
#define TRACE1(context, event, a)
#define TRACE2(context, event, a, b)
#define TRACE3(context, event, a, b, c)
#define TRACE4(context, event, a, b, c, d)
#define TRACE5(context, event, a, b, c, d, e)
#define TRACE6(context, event, a, b, c, d, e, f)
#define TRACE7(context, event, a, b, c, d, e, f, g)
#define TRACE8(context, event, a, b, c, d, e, f, g, h)
#define TRACE9(context, event, a, b, c, d, e, f, g, h, i)
#define TRACE10(context, event, a, b, c, d, e, f, g, h, i, j)
#define TRACE11(context, event, a, b, c, d, e, f, g, h, i, j, k)
#define TRACE12(context, event, a, b, c, d, e, f, g, h, i, j, k, l)
#endif
#endif // BITCOIN_UTIL_TRACE_H
|
bd2aaf171f27db868fc821b9b48573cc49fce390
|
e07eed9bfcc0d93406610e0df4a95385cd173c01
|
/include/gm_metric.h
|
9c5afacf1137bc9ee3fc6655d97c3a15d8fe3527
|
[] |
permissive
|
ganglia/monitor-core
|
d0c3ed5fe89cfd75c9ac56bbbd1b477e759e719c
|
185ab6b3425d391727a19c380691c4ee42fdff69
|
refs/heads/master
| 2023-08-27T09:34:31.653118
| 2020-12-18T10:29:37
| 2021-11-21T04:48:08
| 2,018,548
| 378
| 183
|
BSD-3-Clause
| 2021-11-21T22:29:14
| 2011-07-08T15:48:34
|
C
|
UTF-8
|
C
| false
| false
| 2,764
|
h
|
gm_metric.h
|
#ifndef GM_METRIC_H
#define GM_METRIC_H 1
#ifndef _LARGEFILE64_SOURCE
#define _LARGEFILE64_SOURCE
#endif
#include <rpc/types.h>
#include <rpc/xdr.h>
#include <gm_mmn.h>
#ifndef GM_PROTOCOL_GUARD
#include <netinet/in.h>
#include <gm_protocol.h>
#endif
#include <gm_value.h>
#include <gm_msg.h>
#include <confuse.h> /* header for libconfuse */
#include <apr.h>
#include <apr_pools.h>
#include <apr_tables.h>
#define MGROUP "GROUP"
typedef void (*metric_info_func)(Ganglia_25metric *gmi);
typedef g_val_t (*metric_func)(int metric_index);
typedef g_val_t (*metric_func_void)(void);
/**
* Module structures.
*/
typedef struct mmodule_param mmparam;
struct mmodule_param {
char *name;
char *value;
};
typedef struct mmodule_struct mmodule;
struct mmodule_struct {
/** API version, *not* module version; check that module is
* compatible with this version of the server.
*/
int version;
/** API minor version. Provides API feature milestones. */
int minor_version;
/** The name of the module's C file */
const char *name;
/** The handle for the DSO. Internal use only */
void *dynamic_load_handle;
/** The module name */
char *module_name;
/** The metric name */
char *metric_name;
/** Single string parameter */
char *module_params;
/** Multiple name/value pair parameter list */
apr_array_header_t *module_params_list;
/** Configuration file handle */
cfg_t *config_file;
/** A pointer to the next module in the list
* @defvar module_struct *next */
struct mmodule_struct *next;
/** Magic Cookie to identify a module structure. */
unsigned long magic;
/** Metric init callback function */
int (*init)(apr_pool_t *p); /* callback function */
/** Metric cleanup callback function */
void (*cleanup)(void); /* callback function */
/** Metric info callback function */
Ganglia_25metric *metrics_info;
/** Metric callback function */
metric_func handler;
};
/* Convenience macros for adding metadata key/value pairs to a metric structure element */
#define MMETRIC_INIT_METADATA(m,p) \
do { \
void **t = (void**)&((m)->metadata); \
*t = (void*)apr_table_make(p, 2); \
} while (0)
#define MMETRIC_ADD_METADATA(m,k,v) \
apr_table_add((apr_table_t*)(m)->metadata,k,v)
/** Use this in all standard modules */
#define STD_MMODULE_STUFF MMODULE_MAGIC_NUMBER_MAJOR, \
MMODULE_MAGIC_NUMBER_MINOR, \
__FILE__, \
NULL, \
NULL, \
NULL, \
NULL, \
NULL, \
NULL, \
NULL, \
MMODULE_MAGIC_COOKIE
#endif /* GM_METRIC_H */
|
950b8ebd43dfe770d513cf22c98bbc96858592f5
|
cd653c15826da7c0f5af36fcbaaf6f208c22474a
|
/examples/simple.c
|
aea93fa3d0d2f9839af7519bf71c128bc739ebcc
|
[
"ISC"
] |
permissive
|
monome/libmonome
|
aa0985fd12e84cc475032f1e4326f5cb1aad3e6a
|
36a0d2754b6e061544a72a3d0654ba6c9b0d245d
|
refs/heads/main
| 2023-06-28T17:11:52.632461
| 2023-02-08T17:12:58
| 2023-02-08T17:12:58
| 127,948
| 109
| 31
|
ISC
| 2023-02-06T03:08:58
| 2009-02-13T03:56:00
|
C
|
UTF-8
|
C
| false
| false
| 1,724
|
c
|
simple.c
|
/**
* Copyright (c) 2010 William Light <wrl@illest.net>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/**
* simple.c
* press a button to toggle it!
*/
#include <stdlib.h>
#include <monome.h>
unsigned int grid[16][16] = { [0 ... 15][0 ... 15] = 0 };
#define MONOME_DEVICE "osc.udp://127.0.0.1:8080/monome"
/**
* this function gets registered with monome_register_handler
* it gets called whenever a button is pressed
*/
void handle_press(const monome_event_t *e, void *data) {
unsigned int x, y;
x = e->grid.x;
y = e->grid.y;
/* toggle the button */
grid[x][y] = !grid[x][y];
monome_led_set(e->monome, x, y, grid[x][y]);
}
int main(int argc, char *argv[]) {
monome_t *monome;
/* open the monome device */
if( !(monome = monome_open(MONOME_DEVICE, "8000")) )
return -1;
monome_led_all(monome, 0);
/* register our button press callback */
monome_register_handler(monome, MONOME_BUTTON_DOWN, handle_press, NULL);
/* wait for presses! */
monome_event_loop(monome);
monome_close(monome);
return 0;
}
|
934067a3b7d65821a92975849aa45d64823aec0f
|
af901bc01d668ecd411549625208b07024df3ffd
|
/src/internal/squash.c
|
91524e2795627fff4d8ed94dcec564a1e3a23d23
|
[
"MIT",
"BSD-2-Clause"
] |
permissive
|
r-lib/rlang
|
2784186a4dafb2fde7357c79514b3761803d0e66
|
c55f6027928d3104ed449e591e8a225fcaf55e13
|
refs/heads/main
| 2023-09-06T03:23:47.522921
| 2023-06-07T17:01:51
| 2023-06-07T17:01:51
| 73,098,312
| 355
| 128
|
NOASSERTION
| 2023-08-31T13:11:13
| 2016-11-07T16:28:57
|
R
|
UTF-8
|
C
| false
| false
| 8,967
|
c
|
squash.c
|
#include <rlang.h>
#include "export.h"
#include "squash.h"
static r_ssize r_vec_length(r_obj* x);
// From rlang/vec.c
void r_vec_poke_n(r_obj* x, r_ssize offset,
r_obj* y, r_ssize from, r_ssize n);
// The vector to splice might be boxed in a sentinel wrapper
static r_obj* maybe_unbox(r_obj* x, bool (*is_spliceable)(r_obj*)) {
if (is_spliceable(x) && is_splice_box(x)) {
return r_vec_coerce(rlang_unbox(x), R_TYPE_list);
} else {
return x;
}
}
bool has_name_at(r_obj* x, r_ssize i) {
r_obj* nms = r_names(x);
return
r_typeof(nms) == R_TYPE_character &&
r_chr_get(nms, i) != r_strs.empty;
}
typedef struct {
r_ssize size;
bool named;
bool warned;
bool recursive;
} squash_info_t;
static squash_info_t squash_info_init(bool recursive) {
squash_info_t info;
info.size = 0;
info.named = false;
info.warned = false;
info.recursive = recursive;
return info;
}
// Atomic squashing ---------------------------------------------------
static r_ssize atom_squash(enum r_type kind, squash_info_t info,
r_obj* outer, r_obj* out, r_ssize count,
bool (*is_spliceable)(r_obj*), int depth) {
if (r_typeof(outer) != VECSXP) {
r_abort("Only lists can be spliced");
}
r_obj* inner;
r_obj* out_names = KEEP(r_names(out));
r_ssize n_outer = r_length(outer);
r_ssize n_inner;
for (r_ssize i = 0; i != n_outer; ++i) {
inner = r_list_get(outer, i);
n_inner = r_vec_length(maybe_unbox(inner, is_spliceable));
if (depth != 0 && is_spliceable(inner)) {
inner = PROTECT(maybe_unbox(inner, is_spliceable));
count = atom_squash(kind, info, inner, out, count, is_spliceable, depth - 1);
UNPROTECT(1);
} else if (n_inner) {
r_vec_poke_coerce_n(out, count, inner, 0, n_inner);
if (info.named) {
r_obj* nms = r_names(inner);
if (r_typeof(nms) == R_TYPE_character) {
r_vec_poke_n(out_names, count, nms, 0, n_inner);
} else if (n_inner == 1 && has_name_at(outer, i)) {
r_chr_poke(out_names, count, r_chr_get(r_names(outer), i));
}
}
count += n_inner;
}
}
FREE(1);
return count;
}
// List squashing -----------------------------------------------------
static r_ssize list_squash(squash_info_t info, r_obj* outer,
r_obj* out, r_ssize count,
bool (*is_spliceable)(r_obj*), int depth) {
if (r_typeof(outer) != VECSXP) {
r_abort("Only lists can be spliced");
}
r_obj* inner;
r_obj* out_names = KEEP(r_names(out));
r_ssize n_outer = r_length(outer);
for (r_ssize i = 0; i != n_outer; ++i) {
inner = r_list_get(outer, i);
if (depth != 0 && is_spliceable(inner)) {
inner = PROTECT(maybe_unbox(inner, is_spliceable));
count = list_squash(info, inner, out, count, is_spliceable, depth - 1);
UNPROTECT(1);
} else {
r_list_poke(out, count, inner);
if (info.named && r_typeof(r_names(outer)) == R_TYPE_character) {
r_obj* name = r_chr_get(r_names(outer), i);
r_chr_poke(out_names, count, name);
}
count += 1;
}
}
FREE(1);
return count;
}
// First pass --------------------------------------------------------
static void squash_warn_names(void) {
Rf_warningcall(r_null, "Outer names are only allowed for unnamed scalar atomic inputs");
}
static void update_info_outer(squash_info_t* info, r_obj* outer, r_ssize i) {
if (!info->warned && info->recursive && has_name_at(outer, i)) {
squash_warn_names();
info->warned = true;
}
}
static void update_info_inner(squash_info_t* info, r_obj* outer, r_ssize i, r_obj* inner) {
r_ssize n_inner = info->recursive ? 1 : r_vec_length(inner);
info->size += n_inner;
// Return early if possible
if (info->named && info->warned) {
return;
}
bool named = r_typeof(r_names(inner)) == R_TYPE_character;
bool recursive = info->recursive;
bool copy_outer = recursive || n_inner == 1;
bool copy_inner = !recursive;
if (named && copy_inner) {
info->named = true;
}
if (has_name_at(outer, i)) {
if (!recursive && (n_inner != 1 || named) && !info->warned) {
squash_warn_names();
info->warned = true;
}
if (copy_outer) {
info->named = true;
}
}
}
static void squash_info(squash_info_t* info, r_obj* outer,
bool (*is_spliceable)(r_obj*), int depth) {
if (r_typeof(outer) != R_TYPE_list) {
r_abort("Only lists can be spliced");
}
r_obj* inner;
r_ssize n_outer = r_length(outer);
for (r_ssize i = 0; i != n_outer; ++i) {
inner = r_list_get(outer, i);
if (depth != 0 && is_spliceable(inner)) {
update_info_outer(info, outer, i);
inner = PROTECT(maybe_unbox(inner, is_spliceable));
squash_info(info, inner, is_spliceable, depth - 1);
UNPROTECT(1);
} else if (info->recursive || r_vec_length(inner)) {
update_info_inner(info, outer, i, inner);
}
}
}
static r_obj* squash(enum r_type kind, r_obj* dots, bool (*is_spliceable)(r_obj*), int depth) {
bool recursive = kind == VECSXP;
squash_info_t info = squash_info_init(recursive);
squash_info(&info, dots, is_spliceable, depth);
r_obj* out = KEEP(r_alloc_vector(kind, info.size));
if (info.named) {
r_obj* nms = KEEP(r_alloc_character(info.size));
r_attrib_poke_names(out, nms);
FREE(1);
}
if (recursive) {
list_squash(info, dots, out, 0, is_spliceable, depth);
} else {
atom_squash(kind, info, dots, out, 0, is_spliceable, depth);
}
FREE(1);
return out;
}
// Predicates --------------------------------------------------------
typedef bool (*is_spliceable_t)(r_obj*);
static bool is_spliced_bare(r_obj* x) {
if (!r_is_object(x)) {
return r_typeof(x) == R_TYPE_list;
} else {
return is_splice_box(x);
}
}
static is_spliceable_t predicate_pointer(r_obj* x) {
switch (r_typeof(x)) {
case VECSXP:
if (Rf_inherits(x, "fn_pointer") && r_length(x) == 1) {
r_obj* ptr = r_list_get(x, 0);
if (r_typeof(ptr) == EXTPTRSXP) {
return (is_spliceable_t) R_ExternalPtrAddrFn(ptr);
}
}
break;
case EXTPTRSXP:
return (is_spliceable_t) R_ExternalPtrAddrFn(x);
default:
break;
}
r_abort("`predicate` must be a closure or function pointer");
return NULL;
}
static is_spliceable_t predicate_internal(r_obj* x) {
static r_obj* is_spliced_clo = NULL;
if (!is_spliced_clo) {
is_spliced_clo = rlang_ns_get("is_spliced");
}
static r_obj* is_spliceable_clo = NULL;
if (!is_spliceable_clo) {
is_spliceable_clo = rlang_ns_get("is_spliced_bare");
}
if (x == is_spliced_clo) {
return is_splice_box;
}
if (x == is_spliceable_clo) {
return &is_spliced_bare;
}
return NULL;
}
// Emulate closure behaviour with global variable.
static r_obj* clo_spliceable = NULL;
static bool is_spliceable_closure(r_obj* x) {
if (!clo_spliceable) {
r_abort("Internal error while splicing");
}
SETCADR(clo_spliceable, x);
r_obj* out = r_eval(clo_spliceable, R_GlobalEnv);
return r_lgl_get(out, 0);
}
// Export ------------------------------------------------------------
r_obj* r_squash_if(r_obj* dots, enum r_type kind, bool (*is_spliceable)(r_obj*), int depth) {
switch (kind) {
case R_TYPE_logical:
case R_TYPE_integer:
case R_TYPE_double:
case R_TYPE_complex:
case R_TYPE_character:
case RAWSXP:
case VECSXP:
return squash(kind, dots, is_spliceable, depth);
default:
r_abort("Splicing is not implemented for this type");
return r_null;
}
}
r_obj* ffi_squash_closure(r_obj* dots, enum r_type kind, r_obj* pred, int depth) {
r_obj* prev_pred = clo_spliceable;
clo_spliceable = KEEP(Rf_lang2(pred, Rf_list2(r_null, r_null)));
r_obj* out = r_squash_if(dots, kind, &is_spliceable_closure, depth);
clo_spliceable = prev_pred;
FREE(1);
return out;
}
r_obj* ffi_squash(r_obj* dots, r_obj* type, r_obj* pred, r_obj* depth_) {
enum r_type kind = Rf_str2type(CHAR(r_chr_get(type, 0)));
int depth = Rf_asInteger(depth_);
is_spliceable_t is_spliceable;
switch (r_typeof(pred)) {
case R_TYPE_closure:
is_spliceable = predicate_internal(pred);
if (is_spliceable) {
return r_squash_if(dots, kind, is_spliceable, depth);
} // else fallthrough
case R_TYPE_builtin:
case R_TYPE_special:
return ffi_squash_closure(dots, kind, pred, depth);
default:
is_spliceable = predicate_pointer(pred);
return r_squash_if(dots, kind, is_spliceable, depth);
}
}
static
r_ssize r_vec_length(r_obj* x) {
switch(r_typeof(x)) {
case R_TYPE_null:
return 0;
case R_TYPE_logical:
case R_TYPE_integer:
case R_TYPE_double:
case R_TYPE_complex:
case R_TYPE_character:
case R_TYPE_raw:
case R_TYPE_list:
case R_TYPE_string:
return XLENGTH(x);
default:
r_abort("Internal error: expected a vector");
}
}
|
31b12ea2d8031b5f805d8e3d49604a3e77d8abed
|
9de0cec678bc4a3bec2b4adabef9f39ff5b4afac
|
/PWGDQ/dielectron/macrosJPSI/ConfigJpsi_cj_pp.C
|
0741fa5a75225a09ef44982521ceee389dba4a62
|
[] |
permissive
|
alisw/AliPhysics
|
91bf1bd01ab2af656a25ff10b25e618a63667d3e
|
5df28b2b415e78e81273b0d9bf5c1b99feda3348
|
refs/heads/master
| 2023-08-31T20:41:44.927176
| 2023-08-31T14:51:12
| 2023-08-31T14:51:12
| 61,661,378
| 129
| 1,150
|
BSD-3-Clause
| 2023-09-14T18:48:45
| 2016-06-21T19:31:29
|
C++
|
UTF-8
|
C
| false
| false
| 31,032
|
c
|
ConfigJpsi_cj_pp.C
|
void SetupEventCutsDieleFilter(AliDielectron *diele, Int_t cutDefinition, Bool_t isAOD, Int_t MultSel);
void SetupTrackCutsDieleData(AliDielectron *diele, Int_t cutDefinition, Bool_t isAOD, Bool_t isMC);
void SetupPairCutsDieleData(AliDielectron *diele, Int_t cutDefinition, Bool_t isAOD, Bool_t isMC);
void InitHistogramsDieleData(AliDielectron *diele, Int_t cutDefinition, Bool_t isAOD);
void InitCFDieleData(AliDielectron *diele, Int_t cutDefinition, Bool_t isAOD, Bool_t isMC);
void AddMCSignals(AliDielectron *diele);
AliESDtrackCuts *SetupESDtrackCutsDieleData(Int_t cutDefinition);
TString namesDieleData=("TPC;EMCal");//add EMCal2 to have a loose E/p cut!
TObjArray *arrNamesDieleData=namesDieleData.Tokenize("; ");
const Int_t nDie=arrNamesDieleData->GetEntries();
AliDielectron* ConfigJpsi_cj_pp(Int_t cutDefinition, Bool_t isAOD=kFALSE, Int_t trigger_index=0, Bool_t isMC, Int_t MultSel=0)
{
//
// Setup the instance of AliDielectron
//
// create the actual framework object
TString name=Form("%02d",cutDefinition);
if (cutDefinition<arrNamesDieleData->GetEntriesFast()){
name=arrNamesDieleData->At(cutDefinition)->GetName();
}
AliDielectron *diele = new AliDielectron(Form("%s",name.Data()),
Form("Track cuts: %s",name.Data()));
//profile
TFile *file = TFile::Open("$ALICE_PHYSICS/PWGDQ/dielectron/files/estimators.root");
TProfile *corr;
corr=(TProfile*)file->Get("SPDmult10_LHC16l");
TObjArray obj_corr;
obj_corr.Add(corr);
AliDielectronVarManager::InitEstimatorObjArrayAvg(&obj_corr);
//==========================
//MC signals
//from Marcel December 13th
if(isMC) {
AddMCSignals(diele);
printf(" Add %d MC signals \n",diele->GetMCSignals()->GetEntriesFast());
}
// cut setup
SetupEventCutsDieleFilter(diele, cutDefinition, isAOD, MultSel);
SetupTrackCutsDieleData(diele, cutDefinition, isAOD, isMC);
SetupPairCutsDieleData(diele, cutDefinition, isAOD, trigger_index, isMC);
//
// histogram setup
// only if an AliDielectronHistos object is attached to the
// dielelectron framework histograms will be filled
//
InitHistogramsDieleData(diele, cutDefinition, isAOD);
if(isMC){
InitCFDieleData(diele, cutDefinition, isAOD, isMC);
}
// AliDielectronTrackRotator *rot=new AliDielectronTrackRotator;
// rot->SetIterations(20);
// rot->SetConeAnglePhi(TMath::Pi()/2);
// rot->SetStartAnglePhi(TMath::Pi()/2);
// diele->SetTrackRotator(rot);
// mixing
/*
AliDielectronMixingHandler *mix=new AliDielectronMixingHandler;
mix->AddVariable(AliDielectronVarManager::kZvPrim, 100,-10.,10.);
mix->SetMixType(AliDielectronMixingHandler::kAll);
mix->SetDepth(20);
diele->SetMixingHandler(mix);
*/
return diele;
}
//______________________________________________________________________________________
void SetupEventCutsDieleFilter(AliDielectron *diele, Int_t cutDefinition, Bool_t isAOD, Int_t MultSel)
{
// // Setup the event cuts
/*
AliDielectronEventCuts *eventCuts=new AliDielectronEventCuts("eventCuts","Vertex Track && |vtxZ|<10 && ncontrib>0");
if(isAOD) eventCuts->SetVertexType(AliDielectronEventCuts::kVtxAny);
eventCuts->SetRequireVertex();
eventCuts->SetMinVtxContributors(1);
eventCuts->SetVertexZ(-10.,10.);
//eventCuts->SetCentralityRange(0.0,80.0);
//task->SetEventFilter(eventCuts);
*/
AliDielectronVarCuts *Mult = new AliDielectronVarCuts("Mult","kNaccTrcklts10Corr cut");
if(MultSel==1){
Mult->AddCut(AliDielectronVarManager::kNaccTrcklts10Corr,1.,14.99);
}
if(MultSel==2){
Mult->AddCut(AliDielectronVarManager::kNaccTrcklts10Corr,15.,24.99);
}
if(MultSel==3){
Mult->AddCut(AliDielectronVarManager::kNaccTrcklts10Corr,25.,34.99);
}
if(MultSel==4){
Mult->AddCut(AliDielectronVarManager::kNaccTrcklts10Corr,35.,44.99);
}
if(MultSel==5){
Mult->AddCut(AliDielectronVarManager::kNaccTrcklts10Corr,45.,155.0);
}
//V0 as centrality estimator
if(MultSel==6){
Mult->AddCut(AliDielectronVarManager::kMultV0,1,75.);
}
if(MultSel==7){
Mult->AddCut(AliDielectronVarManager::kMultV0,76,150.);
}
if(MultSel==8){
Mult->AddCut(AliDielectronVarManager::kMultV0,151.,225.);
}
if(MultSel==9){
Mult->AddCut(AliDielectronVarManager::kMultV0,226.,300.);
}
if(MultSel==10){
Mult->AddCut(AliDielectronVarManager::kMultV0,301.,680.);
}
if(MultSel==11){
Mult->AddCut(AliDielectronVarManager::kMultV0,1,1000.);
}
diele->GetEventFilter().AddCuts(Mult);
}
//______________________________________________________________________________________
void SetupTrackCutsDieleData(AliDielectron *diele, Int_t cutDefinition, Bool_t isAOD, Bool_t isMC)
{
//
// Setup the track cuts
//
//ESD quality cuts DielectronTrackCuts
if (!isAOD) {
diele->GetTrackFilter().AddCuts(SetupESDtrackCutsDieleData(cutDefinition));
}
else {
AliDielectronTrackCuts *trackCuts=new AliDielectronTrackCuts("trackCuts","trackCuts");
// if(cutDefinition!=2)trackCuts->SetClusterRequirementITS(AliESDtrackCuts::kSPD,AliESDtrackCuts::kAny);
trackCuts->SetClusterRequirementITS(AliESDtrackCuts::kSPD,AliESDtrackCuts::kAny);
trackCuts->SetRequireTPCRefit(kTRUE);
trackCuts->SetRequireITSRefit(kTRUE);
diele->GetTrackFilter().AddCuts(trackCuts);
}
//Pt cut ----------------------------------------------------------
AliDielectronVarCuts *pt = new AliDielectronVarCuts("ptCut","pt cut");
pt->AddCut(AliDielectronVarManager::kPt,1.0,1e30);
pt->AddCut(AliDielectronVarManager::kKinkIndex0,0.);
//AOD additions since there are no AliESDtrackCuts -----------------
//
if (isAOD){
//if(cutDefinition==0 || cutDefinition==1){
pt->AddCut(AliDielectronVarManager::kNclsTPC,85.,160.);
pt->AddCut(AliDielectronVarManager::kEta,-0.9.,0.9);
//pt->AddCut(AliDielectronVarManager::kPhi,0.,4.);
pt->AddCut(AliDielectronVarManager::kImpactParXY,-1.,1.);
pt->AddCut(AliDielectronVarManager::kImpactParZ,-3.,3.);
pt->AddCut(AliDielectronVarManager::kITSLayerFirstCls,0.,4.);
//new
pt->AddCut(AliDielectronVarManager::kTPCchi2Cl,0.,4.);
//}
/*
if(cutDefinition==2){
pt->AddCut(AliDielectronVarManager::kNclsTPC,70.,160.);
pt->AddCut(AliDielectronVarManager::kEta,-1.0.,1.0);
//pt->AddCut(AliDielectronVarManager::kPhi,0.,4.);
pt->AddCut(AliDielectronVarManager::kImpactParXY,-2.,2.);
pt->AddCut(AliDielectronVarManager::kImpactParZ,-4.,4.);
pt->AddCut(AliDielectronVarManager::kITSLayerFirstCls,0.,6.);
//new
pt->AddCut(AliDielectronVarManager::kTPCchi2Cl,0.,10.);
}
*/
//if(cutDefinition==0||cutDefinition==1){
pt->AddCut(AliDielectronVarManager::kTPCnSigmaEle,-2.25,3.0);
// }
// if(cutDefinition==2){
// pt->AddCut(AliDielectronVarManager::kTPCnSigmaEle,-3.0,4.0);
//}
}
diele->GetTrackFilter().AddCuts(pt);
}
//______________________________________________________________________________________
void SetupPairCutsDieleData(AliDielectron *diele, Int_t cutDefinition, Bool_t isAOD, Int_t trigger_index, Bool_t isMC)
{
// Setup the pair cuts
//Invariant mass and rapidity selection
Double_t gCut = 0.050; // default
//AliDielectronVarCuts *gammaCut=new AliDielectronVarCuts("gammaCut","gammaCut");
//if(cutDefinition==1) gammaCut->AddCut(AliDielectronVarManager::kM,0.,gCut);
//if(cutDefinition>0) diele->GetPairPreFilter().AddCuts(gammaCut);
//if(cutDefinition>0) diele->SetPreFilterUnlikeOnly();
//Invariant mass and rapidity selection
AliDielectronVarCuts *pairCut=new AliDielectronVarCuts("0<M<5+|Y|<.9","0<M<5 + |Y|<.9");
pairCut->AddCut(AliDielectronVarManager::kM,0.,15.);
pairCut->AddCut(AliDielectronVarManager::kY,-0.9,0.9);
pairCut->AddCut(AliDielectronVarManager::kPt,1,50.);
if(cutDefinition==1 || cutDefinition==2){
//EMC7 trigger
if(trigger_index == 1)pairCut->AddCut(AliDielectronVarManager::kPt,3,50.);
if(trigger_index == 3 )pairCut->AddCut(AliDielectronVarManager::kPt,7,50.);
if(trigger_index == 4 || trigger_index == 40)pairCut->AddCut(AliDielectronVarManager::kPt,5,50.);
if(trigger_index == 6 || trigger_index == 60 )pairCut->AddCut(AliDielectronVarManager::kPt,11,50.);
}
diele->GetPairFilter().AddCuts(pairCut);
if(cutDefinition==1){
AliDielectronVarCuts *mycut = new AliDielectronVarCuts("CutEMCAL","cut for EMCal");
mycut->AddCut(AliDielectronVarManager::kEMCALEoverP,0.8,1.3);
//trigger_index == 2 for both thresholds together, without thresholds separation (just cross check)
if(trigger_index == 3 || trigger_index == 2) mycut->AddCut(AliDielectronVarManager::kEMCALE,7,50.);
else if(trigger_index == 4 || trigger_index == 40) mycut->AddCut(AliDielectronVarManager::kEMCALE,5,50.);
//for 16k period, threshold at 10 GeV:
//Dcal have both thresholds at 10 GeV!!
//trigger 20 do not separate thresholds for dcal
else if(trigger_index == 6 || trigger_index == 60 ) mycut->AddCut(AliDielectronVarManager::kEMCALE,11,50.);
//EMC7:
else if(trigger_index == 1) mycut->AddCut(AliDielectronVarManager::kEMCALE,3,50.);
else mycut->AddCut(AliDielectronVarManager::kEMCALE,1,50.);
//dcal cut if using EG triggers
//if using EMCal trigger, it excludes if the tracks matches DCAL:
//(we don't want energy cut on DCAL if the trigger is on EMCal)
if(trigger_index == 2 ||trigger_index == 3 || trigger_index == 4 || trigger_index == 6) mycut->AddCut(AliDielectronVarManager::kPhi,4.377,5.7071, kTRUE);//kTRUE means to exclude!
//emcal cut if using DG triggers
if(trigger_index == 40 || trigger_index == 60) mycut->AddCut(AliDielectronVarManager::kPhi,1.396,3.2637, kTRUE);
AliDielectronPairLegCuts *varpair=new AliDielectronPairLegCuts();
varpair->GetLeg1Filter().AddCuts(mycut);
varpair->GetLeg2Filter().AddCuts(mycut);
varpair->SetCutType(AliDielectronPairLegCuts::kAnyLeg);
diele->GetPairFilter().AddCuts(varpair);
}
if(cutDefinition==2){
AliDielectronVarCuts *mycut = new AliDielectronVarCuts("CutEMCAL","cut for EMCal");
mycut->AddCut(AliDielectronVarManager::kEMCALEoverP,0.75,1.35);
//trigger_index == 2 for both thresholds together, without thresholds separation (just cross check)
if(trigger_index == 3 || trigger_index == 2) mycut->AddCut(AliDielectronVarManager::kEMCALE,7,50.);
else if(trigger_index == 4 || trigger_index == 40) mycut->AddCut(AliDielectronVarManager::kEMCALE,5,50.);
//for 16k period, threshold at 10 GeV:
//Dcal have both thresholds at 10 GeV!!
//trigger 20 do not separate thresholds for dcal
else if(trigger_index == 6 || trigger_index == 60 ) mycut->AddCut(AliDielectronVarManager::kEMCALE,11,50.);
//EMC7:
else if(trigger_index == 1) mycut->AddCut(AliDielectronVarManager::kEMCALE,3,50.);
else mycut->AddCut(AliDielectronVarManager::kEMCALE,1,50.);
//dcal cut if using EG triggers
//if using EMCal trigger, it excludes if the tracks matches DCAL:
//(we don't want energy cut on DCAL if the trigger is on EMCal)
if(trigger_index == 2 ||trigger_index == 3 || trigger_index == 4 || trigger_index == 6) mycut->AddCut(AliDielectronVarManager::kPhi,4.377,5.7071, kTRUE);//kTRUE means to exclude!
//emcal cut if using DG triggers
if(trigger_index == 40 || trigger_index == 60) mycut->AddCut(AliDielectronVarManager::kPhi,1.396,3.2637, kTRUE);
AliDielectronPairLegCuts *varpair=new AliDielectronPairLegCuts();
varpair->GetLeg1Filter().AddCuts(mycut);
varpair->GetLeg2Filter().AddCuts(mycut);
varpair->SetCutType(AliDielectronPairLegCuts::kAnyLeg);
diele->GetPairFilter().AddCuts(varpair);
}
}
//______________________________________________________________________________________
AliESDtrackCuts *SetupESDtrackCutsDieleData(Int_t cutDefinition)
{
//
// Setup default AliESDtrackCuts
//
AliESDtrackCuts *esdTrackCuts = new AliESDtrackCuts;
// basic track quality cuts (basicQ)
esdTrackCuts->SetMaxDCAToVertexZ(3.0);
esdTrackCuts->SetMaxDCAToVertexXY(1.0);
esdTrackCuts->SetEtaRange( -0.9 , 0.9 );
esdTrackCuts->SetAcceptKinkDaughters(kFALSE);
esdTrackCuts->SetRequireITSRefit(kTRUE);
esdTrackCuts->SetRequireTPCRefit(kTRUE);
esdTrackCuts->SetPtRange(1,1e30);
esdTrackCuts->SetMinNClustersTPC(85);
esdTrackCuts->SetMaxChi2PerClusterTPC(4);
// default SPD any
esdTrackCuts->SetClusterRequirementITS(AliESDtrackCuts::kSPD,AliESDtrackCuts::kAny);
return esdTrackCuts;
}
//______________________________________________________________________________________
void InitHistogramsDieleData(AliDielectron *diele, Int_t cutDefinition, Bool_t isAOD)
{
//
// Initialise the histograms
//
//Setup histogram Manager
AliDielectronHistos *histos=new AliDielectronHistos(diele->GetName(),diele->GetTitle());
//Initialise histogram classes
histos->SetReservedWords("Track;Pair");
//Track classes
//EMCal tracks are same as TPC tracks... only changes the pair cuts
//to fill also track info from 2nd event loop until 2
if(cutDefinition!=2){
for (Int_t i=0; i<2; ++i){
histos->AddClass(Form("Track_%s",AliDielectron::TrackClassName(i)));
}
}
//Pair classes
// to fill also mixed event histograms loop until 10
if(cutDefinition!=2){
for (Int_t i=0; i<3; ++i){
histos->AddClass(Form("Pair_%s",AliDielectron::PairClassName(i)));
}
//legs from pair
for (Int_t i=0; i<3; ++i){
histos->AddClass(Form("Track_Legs_%s",AliDielectron::PairClassName(i)));
}
}
//track rotation
//histos->AddClass(Form("Pair_%s",PairClassName(AliDielectron::kEv1PMRot)));
//histos->AddClass(Form("Track_Legs_%s",PairClassName(AliDielectron::kEv1PMRot)));
//add histograms to event class
if(cutDefinition==0){
histos->AddClass("Event");
histos->UserHistogram("Event","VtxZ","Vertex Z;Z[cm]",500,-40.,40.,AliDielectronVarManager::kZvPrim);
// histos->UserHistogram("Event","VtxYxVtxZ","Vertexyz;Z[cm];Y[cm]",500,-40.,40.,400,-0.5,0.5,AliDielectronVarManager::kZvPrim,AliDielectronVarManager::kYvPrim);
// histos->UserHistogram("Event","VtxXxVtxZ","Vertexxz;Z[cm];X[cm]",500,-40.,40.,400,-0.5,0.5,AliDielectronVarManager::kZvPrim,AliDielectronVarManager::kXvPrim);
// histos->UserHistogram("Event","VtxYxVtxX","Vertexxz;Z[cm];X[cm]",400,-0.5,0.5,400,-0.5,0.5,AliDielectronVarManager::kXvPrim,AliDielectronVarManager::kYvPrim);
//kNaccTrcklts10Corr
//histos->UserHistogram("Event","SPDTracklets","SPDTracklets;SPDTracklets;Entries",300,0.,300.,AliDielectronVarManager::kCentralitySPDTracklets);
histos->UserHistogram("Event","kNaccTrcklts10Corr","kNaccTrcklts10Corr;kNaccTrcklts10Corr;Entries",400,0.,200.,AliDielectronVarManager::kNaccTrcklts10Corr);
histos->UserHistogram("Event","VtxZ_kNaccTrcklts10Corr","VtxZ vs. kNaccTrcklts10Corr;VtxZ;kNaccTrcklts10Corr",500,-40.,40., 400,0.,200.,AliDielectronVarManager::kZvPrim,AliDielectronVarManager::kNaccTrcklts10Corr);
//new multiplicity estimator: V0
histos->UserHistogram("Event","kMultV0A_kMultV0C","kMultV0A vs. kMultV0C;kMultV0A;kMultV0C",1000,0.,1000., 1000,0.,1000.,AliDielectronVarManager::kMultV0A,AliDielectronVarManager::kMultV0C);
histos->UserHistogram("Event","kMultV0_kMultV0A","kMultV0 vs. kMultV0A;kMultV0;kMultV0A",1000,0.,1000., 1000,0.,1000.,AliDielectronVarManager::kMultV0,AliDielectronVarManager::kMultV0A);
histos->UserHistogram("Event","kMultV0_kMultV0C","kMultV0 vs. kMultV0C;kMultV0;kMultV0C",1000,0.,1000., 1000,0.,1000.,AliDielectronVarManager::kMultV0,AliDielectronVarManager::kMultV0C);
histos->UserHistogram("Event","VtxZ_kMultV0A","VtxZ vs. kMultV0A;VtxZ;kMultV0A",300,-15.,15., 1000,0.,1000.,AliDielectronVarManager::kZvPrim,AliDielectronVarManager::kMultV0A);
histos->UserHistogram("Event","VtxZ_kMultV0C","VtxZ vs. kMultV0C;VtxZ;kMultV0C",300,-15.,15., 1000,0.,1000.,AliDielectronVarManager::kZvPrim,AliDielectronVarManager::kMultV0C);
histos->UserHistogram("Event","VtxZ_kMultV0","VtxZ vs. kMultV0;VtxZ;kMultV0",300,-15.,15., 1000,0.,1000.,AliDielectronVarManager::kZvPrim,AliDielectronVarManager::kMultV0);
//1D
histos->UserHistogram("Event","kMultV0","kMultV0;kMultV0;Entries",1000,0.,1000.,AliDielectronVarManager::kMultV0);
histos->UserHistogram("Event","kMultV0A","kMultV0;kMultV0;Entries",1000,0.,1000.,AliDielectronVarManager::kMultV0A);
histos->UserHistogram("Event","kMultV0C","kMultV0;kMultV0;Entries",1000,0.,1000.,AliDielectronVarManager::kMultV0C);
}
//add histograms to Track classes
histos->UserHistogram("Track","Pt","Pt;Pt [GeV];#tracks",200,0,40.,AliDielectronVarManager::kPt,kTRUE);
/*
histos->UserHistogram("Track","TPCnCls","Number of Clusters TPC;TPC number clusteres;#tracks",160,-0.5,159.5,AliDielectronVarManager::kNclsTPC,kTRUE);
histos->UserHistogram("Track","TPCchi2Cl","Chi-2/Clusters TPC;Chi2/ncls number clusteres;#tracks",100,0,10,AliDielectronVarManager::kTPCchi2Cl,kTRUE);
histos->UserHistogram("Track","TPCnFCls","Number of findable Clusters TPC;TPC number clusteres;#tracks",160,-0.5,159.5,AliDielectronVarManager::kNFclsTPC,kTRUE);
histos->UserHistogram("Track","TPCnFClsfCross","fraction crossed rows/findable;TPC number clusteres;#tracks",200,0.,2.,AliDielectronVarManager::kNFclsTPCfCross,kTRUE);
histos->UserHistogram("Track","TPCnFClsr","Number of findable Clusters(crossed rows) TPC;TPC number clusteres;#tracks",160,-0.5,159.5,AliDielectronVarManager::kNFclsTPCr,kTRUE);
histos->UserHistogram("Track","TPCnFClsrFrac","Number of found/findable Clusters TPC;TPC number clusteres;#tracks",200,0.,2.,AliDielectronVarManager::kNFclsTPCrFrac,kTRUE);
histos->UserHistogram("Track","TPCnFClsTPCfCross","Fraction of rows/findable Clusters TPC;TPC number clusteres;#tracks",200,0.,2.,AliDielectronVarManager::kNFclsTPCfCross,kTRUE);
histos->UserHistogram("Track","TPCsignalN","Number of points for TPC Signal;TPC Npoints dEdx;#tracks",160,-0.5,159.5,AliDielectronVarManager::kTPCsignalN,kTRUE);
*/
//histos->UserHistogram("Track","SPDTracklets","SPDTracklets;SPDTracklets;Entries",300,0.,300.,AliDielectronVarManager::kCentralitySPDTracklets);
// histos->UserHistogram("Track","kNaccTrcklts10Corr","kNaccTrcklts10Corr;kNaccTrcklts10Corr;Entries",300,0.,300.,AliDielectronVarManager::kNaccTrcklts10Corr);
histos->UserHistogram("Track","dXY","dXY;dXY [cm];#tracks",200,-1.,1.,AliDielectronVarManager::kImpactParXY,kTRUE);
histos->UserHistogram("Track","dZ","dZ;dZ [cm];#tracks",200,-3.,3.,AliDielectronVarManager::kImpactParZ,kTRUE);
histos->UserHistogram("Track","Eta_Phi","Eta Phi Map; Eta; Phi;#tracks",
100,-1,1,144,0,6.285,AliDielectronVarManager::kEta,AliDielectronVarManager::kPhi,kTRUE);
histos->UserHistogram("Track","dEdx_P","dEdx;P [GeV];TPC signal (arb units);#tracks",
200,0.2,20.,800,20.,200.,AliDielectronVarManager::kPIn,AliDielectronVarManager::kTPCsignal,kTRUE);
histos->UserHistogram("Track","dEdx_Pt","dEdx;Pt [GeV];TPC signal (arb units);#tracks",
200,0.2,20.,800,20.,200.,AliDielectronVarManager::kPt,AliDielectronVarManager::kTPCsignal,kTRUE);
histos->UserHistogram("Track","TPCnSigmaEle_P","TPCnSigmaEle;P [GeV];TPCnSigmaEle;#tracks",
200,0.2,20.,800,-12.,12.,AliDielectronVarManager::kPIn,AliDielectronVarManager::kTPCnSigmaEle,kTRUE);
histos->UserHistogram("Track","TPCnSigmaEle_Pt","TPCnSigmaEle;Pt [GeV];TPCnSigmaEle;#tracks",
200,0.2,20.,800,-12.,12.,AliDielectronVarManager::kPt,AliDielectronVarManager::kTPCnSigmaEle,kTRUE);
histos->UserHistogram("Track","TPCnSigmaEle_Phi","TPCnSigmaEle;#phi [rad];TPCnSigmaEle;#tracks",
200,0.,2*TMath::Pi(),800,-12.,12.,AliDielectronVarManager::kPhi,AliDielectronVarManager::kTPCnSigmaEle,kTRUE);
histos->UserHistogram("Track","TPCnSigmaEle_Eta","TPCnSigmaEle;#eta;TPCnSigmaEle;#tracks",
200,-1.,1.,800,-12.,12.,AliDielectronVarManager::kEta,AliDielectronVarManager::kTPCnSigmaEle,kTRUE);
histos->UserHistogram("Track","dEdx_Phi","dEdx;#phi [rad];TPC signal (arb units);#tracks",
200,0.,2*TMath::Pi(),800,20.,200.,AliDielectronVarManager::kPhi,AliDielectronVarManager::kTPCsignal,kTRUE);
histos->UserHistogram("Track","dEdx_Eta","dEdx;#eta;TPC signal (arb units);#tracks",
200,-1.,1.,800,20.,200.,AliDielectronVarManager::kEta,AliDielectronVarManager::kTPCsignal,kTRUE);
histos->UserHistogram("Track","dEdx_nSigmaEMCal","dEdx;NsigmaEmcal;TPC signal (arb units);NSigmaEMCAL",
200,-5.,5.,800,20.,200.,AliDielectronVarManager::kEMCALnSigmaEle,AliDielectronVarManager::kTPCsignal,kTRUE);
histos->UserHistogram("Track","dEdx_TPCnSigmaEle","dEdx;TPC signal (arbunits);TPC number of sigmas Electrons;TPC signal (a.u.);#tracks",
100,-10.,10.,800,20.,200.,AliDielectronVarManager::kTPCnSigmaEle,AliDielectronVarManager::kTPCsignal,kTRUE);
histos->UserHistogram("Track","dEdx_EoverP","dEdx;EoverP;TPC signal (arbunits);E/P",
100,0.,5.,800,20.,200.,AliDielectronVarManager::kEMCALEoverP,AliDielectronVarManager::kTPCsignal,kTRUE);
//histos->UserHistogram("Track","nSigmaEMCal_EoverP","NsigmaEmcal;EoverP;NSigmaEMCAL;E/P",100,0.,5.,200,-5.,5.,AliDielectronVarManager::kEMCALEoverP,AliDielectronVarManager::kEMCALnSigmaEle,kTRUE);
histos->UserHistogram("Track","EMCal_E","EmcalE;Cluster Energy [GeV];#Clusters",
200,0.,40.,AliDielectronVarManager::kEMCALE,kTRUE);
//histos->UserHistogram("Track","ITS_FirstCls","ITS First Layer;ITS First Layer;#Entries",6,0.,6.,AliDielectronVarManager::kITSLayerFirstCls,kTRUE);
//add histograms to Pair classes
//new Cris
//Ecluster versus Phi to separate EMCal and DCal
histos->UserHistogram("Track","EMCal_E_Phi","Energy vs. Phi; EMCal_E;Phi",
80,0.,40.,20,0.,2*TMath::Pi(),AliDielectronVarManager::kEMCALE,AliDielectronVarManager::kPhi,kTRUE);
histos->UserHistogram("Track","TPCnSigmaEle_EoverP","TPCnSigmaEle;EoverP;TPC signal (arbunits);E/P",
50,0.,5.,100,-10.,10.,AliDielectronVarManager::kEMCALEoverP,AliDielectronVarManager::kTPCnSigmaEle,kTRUE);
histos->UserHistogram("Track","EoverP_pt","Pt;EoverP;p_{T} (GeV/c);E/p",
40,0.,40.,200,0.,2.,AliDielectronVarManager::kPt,AliDielectronVarManager::kEMCALEoverP,kTRUE);
histos->UserHistogram("Pair","OpeningAngle2D","Opening angle vs p_{T} ;p_{T} (GeV/c); angle",
40,0.,40., 2000,-10.,10.,AliDielectronVarManager::kPt, AliDielectronVarManager::kOpeningAngle);
histos->UserHistogram("Pair","InvMass","Inv.Mass;Inv. Mass [GeV];#pairs",
375,0.0,15.0,AliDielectronVarManager::kM);
histos->UserHistogram("Pair","InvMass2D","Inv.Mass;Pt [GeV]; Inv. Mass [GeV]",
40,0.,40.,375,0,15.0,AliDielectronVarManager::kPt,AliDielectronVarManager::kM);
//InvMass versus Proper time
histos->UserHistogram("Pair","InvMass2D_ProperTime","InvMass vs. ProperTime;pseudoproper-decay-length[cm]; Inv. Mass [GeV]",
120,-0.3.,0.3,375,0,15.0,AliDielectronVarManager::kPseudoProperTime,AliDielectronVarManager::kM);
histos->UserHistogram("Pair","Rapidity","Rapidity;Rapidity;#pairs",
50,-1.,1.,AliDielectronVarManager::kY);
histos->UserHistogram("Pair","OpeningAngle","Opening angle;angle",
50,0.,3.15,AliDielectronVarManager::kOpeningAngle);
histos->UserHistogram("Pair","PseudoProperTime","Pseudoproper decay length; pseudoproper-decay-length[cm];Entries/40#mum",
150,-0.3.,0.3,AliDielectronVarManager::kPseudoProperTime);
//histos->UserHistogram("Pair","SPDTracklets","SPDTracklets;SPDTracklets;Entries",300,0.,300.,AliDielectronVarManager::kCentralitySPDTracklets);
//histos->UserHistogram("Pair","kNaccTrcklts10Corr","kNaccTrcklts10Corr;kNaccTrcklts10Corr;Entries",300,0.,300.,AliDielectronVarManager::kNaccTrcklts10Corr);
/*
histos->UserHistogram("Pair","Chi2/NDF","#Chi^{2}/NDF;#Chi^{2}/NDF",
100, 0., 20., AliDielectronVarManager::kChi2NDF);
*/
diele->SetHistogramManager(histos);
}
void InitCFDieleData(AliDielectron *diele, Int_t cutDefinition, Bool_t isAOD, Bool_t isMC)
{
//
// Setupd the CF Manager if needed
//
if(cutDefinition==0||cutDefinition==1){
AliDielectronCF *cf=new AliDielectronCF(diele->GetName(),diele->GetTitle());
//for centrality selection
// cf->AddVariable(AliDielectronVarManager::kCentralitySPDTracklets, "0,20,40,60,100, 200, 300");
//cf->AddVariable(AliDielectronVarManager::kNaccTrcklts10Corr, "0,30,60,100,1000");
//pair variables
cf->AddVariable(AliDielectronVarManager::kPt,"5.0,7.0,9.0,11.0,15.0,20.0,25.0,30.0,35.0,40.0");
cf->AddVariable(AliDielectronVarManager::kM,125,0.,125*.04); //40Mev Steps
cf->AddVariable(AliDielectronVarManager::kPairType,3,0,3);
// cf->AddVariable(AliDielectronVarManager::kOpeningAngle,16,0,3.2);
//cf->AddVariable(AliDielectronVarManager::kEta,"-1.0,-0.9,-0.8,0,0.8,0.9,1.0");
// cf->AddVariable(AliDielectronVarManager::kY,40,-1.,1.);
// cf->AddVariable(AliDielectronVarManager::kPhi,"0,1.0,2.0,2.5,3.0,3.5,4.0,4.5,5.0,6.0,6.5");
// cf->AddVariable(AliDielectronVarManager::kPseudoProperTime,"-3.0,-2.0,-1.0,-0.9,-0.8,-0.6,-0.4,-0.2, 0,0.2, 0.4, 0.6,0.8,0.9,1.0, 2.0, 3.0");
//cf->AddVariable(AliDielectronVarManager::kPseudoProperTimeErr,200,0.,0.1);
//cf->AddVariable(AliDielectronVarManager::kPseudoProperTimeResolution,400,-0.1,0.1);
//cf->AddVariable(AliDielectronVarManager::kPseudoProperTimePull,400,-0.1,0.1);
//cf->AddVariable(AliDielectronVarManager::kChi2NDF,100, 0., 20.);
//leg variables
cf->AddVariable(AliDielectronVarManager::kPt,"1.0,3.0,5.0,6.0,7.0,8.0,9.0,10.0,11.0,12.0,15.0,20.0, 25.,30.,35.0,40.0",kTRUE);
//cf->AddVariable(AliDielectronVarManager::kNclsTPC,"70, 80, 85, 90, 100,160",kTRUE);
//cf->AddVariable(AliDielectronVarManager::kTPCchi2Cl,5, 0., 10.,kTRUE);
//cf->AddVariable(AliDielectronVarManager::kTPCsignalN,160,-0.5,159.5,kTRUE);
cf->AddVariable(AliDielectronVarManager::kEta,"-1.0,-0.9,-0.8,0,0.8,0.9,1.0",kTRUE);
// cf->AddVariable(AliDielectronVarManager::kPhi,"0,1.0,2.0,2.5,3.0,3.5,4.0,4.5,5.0,6.0,6.5",kTRUE);
cf->AddVariable(AliDielectronVarManager::kEMCALE,"4.5, 5.0, 5.5, 6.5, 7.0, 7.5, 10.0, 10.5, 11.0, 11.5, 12.0, 15.0,17.5, 20.0, 30.0",kTRUE);
//cf->AddVariable(AliDielectronVarManager::kEMCALnSigmaEle,"-4.5,-4.,-3.75,-3.5,-3.25,-3.0,-2.75,-2.5,-2.0,-1.0,1.0,2.0,2.5,3.0,3.25,3.5,3.75,4.0,5.0",kTRUE);
// cf->AddVariable(AliDielectronVarManager::kEMCALNCells,25,0,25,kTRUE);
cf->AddVariable(AliDielectronVarManager::kEMCALEoverP,"0,0.4,0.6,0.7,0.8,0.9,1.0,1.1, 1.2,1.3,1.4,2",kTRUE);
// cf->AddVariable(AliDielectronVarManager::kTPCsignal,"40.,50.,55.,60.,65.,68.,70.,72.,75.,80.,90.,100.,110.,200.",kTRUE);
cf->AddVariable(AliDielectronVarManager::kTPCnSigmaEle," -3.0,-2.5,-2.25, -2.0,-1.5, -1.0, 0, 1.0,1.5, 2.0,2.25, 2.5, 3.0, 4.0",kTRUE);
/*
if(!isMC){
cf->AddVariable(AliDielectronVarManager::kTPCnSigmaPio,"-10, -3.0, -2.0,-1.5, -1.0, 0, 1.0,1.5, 2.0, 3.0, 4.0, 10",kTRUE);
cf->AddVariable(AliDielectronVarManager::kTPCnSigmaPro,"-10, -3.0, -2.0,-1.5, -1.0, 0, 1.0,1.5, 2.0, 3.0, 4.0, 10",kTRUE);
cf->AddVariable(AliDielectronVarManager::kTPCnSigmaKao,"-10, -3.0, -2.0,-1.5, -1.0, 0, 1.0,1.5, 2.0, 3.0, 4.0, 10",kTRUE);
}
*/
//cf->AddVariable(AliDielectronVarManager::kTOFnSigmaEle,",-3.5,-3.0,-2.75,-2.5,-2.25,-2.0,-1.75,-1.5,-1.0,-0.5,0.0,1.0,2.0,2.25,2.5,2.75,3.0,3.25,3.5,4.0",kTRUE);
//cf->AddVariable(AliDielectronVarManager::kTOFnSigmaPio,"1.,2.,2.5,3.0,3.5,4.0,4.5,100",kTRUE);
//cf->AddVariable(AliDielectronVarManager::kITSLayerFirstCls,6,0.,6.,kTRUE);
//cf->AddVariable(AliDielectronVarManager::kZvPrim,20,-20.,20.);
//cf->AddVariable(AliDielectronVarManager::kImpactParXY,"-2.0, -1.0,-0.5,0.5, 1.0, 2.0",kTRUE);
//cf->AddVariable(AliDielectronVarManager::kImpactParZ,"-4.0,-3.0, -2.0, 2.0,3.0, 4.0",kTRUE);
// if (!isAOD){
// Bool_t hasMC=(AliAnalysisManager::GetAnalysisManager()->GetMCtruthEventHandler()!=0x0);
/*
if (isMC){
// printf("Is MC in the containers!!!\n");
cf->AddVariable(AliDielectronVarManager::kPdgCode,10000,-5000.5,4999.5,kTRUE);
cf->AddVariable(AliDielectronVarManager::kPdgCodeMother,10000,-5000.5,4999.5,kTRUE);
cf->AddVariable(AliDielectronVarManager::kPdgCodeGrandMother,10000,-5000.5,4999.5,kTRUE);
// }
}
*/
//only in this case write MC truth info
if((cutDefinition==1) && isMC){
cf->SetStepForMCtruth();
}
diele->SetCFManagerPair(cf);
}
}
void AddMCSignals(AliDielectron *diele){
AliDielectronSignalMC* inclusiveJpsi = new AliDielectronSignalMC("inclusiveJpsi","Inclusive J/psi");
inclusiveJpsi->SetLegPDGs(11,-11);
inclusiveJpsi->SetMotherPDGs(443,443);
inclusiveJpsi->SetMothersRelation(AliDielectronSignalMC::kSame);
inclusiveJpsi->SetFillPureMCStep(kTRUE);
inclusiveJpsi->SetCheckBothChargesLegs(kTRUE,kTRUE);
inclusiveJpsi->SetCheckBothChargesMothers(kTRUE,kTRUE);
diele->AddSignalMC(inclusiveJpsi);
AliDielectronSignalMC* promptJpsi = new AliDielectronSignalMC("promptJpsi","Prompt J/psi"); // prompt J/psi (not from beauty decays)
promptJpsi->SetLegPDGs(11,-11);
promptJpsi->SetMotherPDGs(443,443);
promptJpsi->SetGrandMotherPDGs(503,503,kTRUE,kTRUE); // not from beauty hadrons
promptJpsi->SetMothersRelation(AliDielectronSignalMC::kSame);
promptJpsi->SetFillPureMCStep(kTRUE);
promptJpsi->SetLegSources(AliDielectronSignalMC::kFinalState, AliDielectronSignalMC::kFinalState);
promptJpsi->SetCheckBothChargesLegs(kTRUE,kTRUE);
promptJpsi->SetCheckBothChargesMothers(kTRUE,kTRUE);
promptJpsi->SetCheckBothChargesGrandMothers(kTRUE,kTRUE);
diele->AddSignalMC(promptJpsi);
AliDielectronSignalMC* beautyJpsi = new AliDielectronSignalMC("beautyJpsi","Beauty J/psi");
beautyJpsi->SetLegPDGs(11,-11);
beautyJpsi->SetMotherPDGs(443,443);
beautyJpsi->SetMothersRelation(AliDielectronSignalMC::kSame);
beautyJpsi->SetGrandMotherPDGs(500,500);
beautyJpsi->SetFillPureMCStep(kTRUE);
beautyJpsi->SetCheckBothChargesLegs(kTRUE,kTRUE);
beautyJpsi->SetCheckBothChargesMothers(kTRUE,kTRUE);
beautyJpsi->SetCheckBothChargesGrandMothers(kTRUE,kTRUE);
diele->AddSignalMC(beautyJpsi);
AliDielectronSignalMC* directJpsi = new AliDielectronSignalMC("directJpsi","Direct J/psi"); // embedded J/psi
directJpsi->SetLegPDGs(11,-11);
directJpsi->SetMotherPDGs(443,443);
directJpsi->SetMothersRelation(AliDielectronSignalMC::kSame);
directJpsi->SetFillPureMCStep(kTRUE);
directJpsi->SetLegSources(AliDielectronSignalMC::kFinalState, AliDielectronSignalMC::kFinalState);
directJpsi->SetMotherSources(AliDielectronSignalMC::kDirect, AliDielectronSignalMC::kDirect);
directJpsi->SetCheckBothChargesLegs(kTRUE,kTRUE);
directJpsi->SetCheckBothChargesMothers(kTRUE,kTRUE);
diele->AddSignalMC(directJpsi);
}
|
a22cefd80e9ac1d7b7ab3036e751a2541baafefa
|
24ed6f6bec90986e60641c991afcea9409df40af
|
/src/modloaders/ft2_load_stk.c
|
f61b3ea066c4f0cfdc5c3244516fbb626d9bd8f4
|
[
"BSD-3-Clause",
"CC-BY-NC-SA-4.0"
] |
permissive
|
8bitbubsy/ft2-clone
|
24b851b989ee0dd27d24041524c95c06a4648485
|
7c6a629b5407f0acfd1df7235903f475156051de
|
refs/heads/master
| 2023-09-04T12:34:02.982464
| 2023-08-16T10:01:41
| 2023-08-16T10:01:41
| 225,352,979
| 560
| 48
|
BSD-3-Clause
| 2023-05-09T17:26:38
| 2019-12-02T10:59:22
|
C
|
UTF-8
|
C
| false
| false
| 7,273
|
c
|
ft2_load_stk.c
|
/* Ultimate SoundTracker (or compatible) STK loader
**
** Note: Data sanitation is done in the last stage
** of module loading, so you don't need to do that here.
*/
#include <stdio.h>
#include <stdint.h>
#include <stdbool.h>
#include "../ft2_header.h"
#include "../ft2_module_loader.h"
#include "../ft2_sample_ed.h"
#include "../ft2_tables.h"
#include "../ft2_sysreqs.h"
#ifdef _MSC_VER // please don't mess with this struct!
#pragma pack(push)
#pragma pack(1)
#endif
typedef struct stkHdr_t
{
char name[20];
modSmpHdr_t smp[15];
uint8_t numOrders, CIAVal, orders[128];
}
#ifdef __GNUC__
__attribute__ ((packed))
#endif
stkHdr_t;
#ifdef _MSC_VER
#pragma pack(pop)
#endif
bool loadSTK(FILE *f, uint32_t filesize)
{
uint8_t bytes[4];
int16_t i, j, k;
uint16_t a, b;
sample_t *s;
stkHdr_t h;
tmpLinearPeriodsFlag = false; // use Amiga periods
bool veryLateSTKVerFlag = false; // "DFJ SoundTracker III" nad later
bool lateSTKVerFlag = false; // "TJC SoundTracker II" and later
if (filesize < sizeof (h))
{
loaderMsgBox("Error: This file is either not a module, or is not supported.");
return false;
}
memset(&h, 0, sizeof (stkHdr_t));
if (fread(&h, 1, sizeof (h), f) != sizeof (h))
{
loaderMsgBox("Error: This file is either not a module, or is not supported.");
return false;
}
if (h.CIAVal == 0) // a CIA value of 0 results in 120
h.CIAVal = 120;
if (h.numOrders < 1 || h.numOrders > 128 || h.CIAVal > 220)
{
loaderMsgBox("Error: This file is either not a module, or is not supported.");
return false;
}
memcpy(songTmp.orders, h.orders, 128);
songTmp.numChannels = 4;
songTmp.songLength = h.numOrders;
songTmp.BPM = 125;
songTmp.speed = 6;
for (a = 0; a < 15; a++)
{
modSmpHdr_t *modSmp = &h.smp[a];
memcpy(songTmp.instrName[1+a], modSmp->name, 22);
/* Only late versions of Ultimate SoundTracker supports samples larger than 9999 bytes.
** If found, we know for sure that this is a late STK module.
*/
const int32_t sampleLen = 2*SWAP16(modSmp->length);
if (sampleLen > 9999)
lateSTKVerFlag = true;
}
// jjk55.mod by Jesper Kyd has a bogus STK tempo value that should be ignored (hackish!)
if (!strcmp("jjk55", h.name))
h.CIAVal = 120;
if (h.CIAVal != 120) // 120 is a special case and means 50Hz (125BPM)
{
// convert UST tempo to BPM
uint16_t ciaPeriod = (240 - h.CIAVal) * 122;
double dHz = 709379.0 / ciaPeriod;
int32_t BPM = (int32_t)((dHz * 2.5) + 0.5);
songTmp.BPM = (uint16_t)BPM;
}
memcpy(songTmp.name, h.name, 20);
// count number of patterns
b = 0;
for (a = 0; a < 128; a++)
{
if (songTmp.orders[a] > b)
b = songTmp.orders[a];
}
b++;
for (a = 0; a < b; a++)
{
if (!allocateTmpPatt(a, 64))
{
loaderMsgBox("Not enough memory!");
return false;
}
for (j = 0; j < 64; j++)
{
for (k = 0; k < songTmp.numChannels; k++)
{
note_t *p = &patternTmp[a][(j * MAX_CHANNELS) + k];
if (fread(bytes, 1, 4, f) != 4)
{
loaderMsgBox("Error: This file is either not a module, or is not supported.");
return false;
}
// period to note
uint16_t period = ((bytes[0] & 0x0F) << 8) | bytes[1];
for (i = 0; i < 3*12; i++)
{
if (period >= ptPeriods[i])
{
p->note = 1 + (3*12) + (uint8_t)i;
break;
}
}
p->instr = (bytes[0] & 0xF0) | (bytes[2] >> 4);
p->efx = bytes[2] & 0x0F;
p->efxData = bytes[3];
if (p->efx == 0xC || p->efx == 0xD || p->efx == 0xE)
{
// "TJC SoundTracker II" and later
lateSTKVerFlag = true;
}
if (p->efx == 0xF)
{
// "DFJ SoundTracker III" and later
lateSTKVerFlag = true;
veryLateSTKVerFlag = true;
}
if (p->efx == 0xC)
{
if (p->efxData > 64)
p->efxData = 64;
}
else if (p->efx == 0x1)
{
if (p->efxData == 0)
p->efxData = 0;
}
else if (p->efx == 0x2)
{
if (p->efxData == 0)
p->efxData = 0;
}
else if (p->efx == 0x5)
{
if (p->efxData == 0)
p->efxData = 0x3;
}
else if (p->efx == 0x6)
{
if (p->efxData == 0)
p->efxData = 0x4;
}
else if (p->efx == 0xA)
{
if (p->efxData == 0)
p->efxData = 0;
}
else if (p->efx == 0xE)
{
// check if certain E commands are empty
if (p->efxData == 0x10 || p->efxData == 0x20 || p->efxData == 0xA0 || p->efxData == 0xB0)
{
p->efx = 0;
p->efxData = 0;
}
}
}
}
if (tmpPatternEmpty(a))
{
if (patternTmp[a] != NULL)
{
free(patternTmp[a]);
patternTmp[a] = NULL;
}
}
}
// pattern command conversion for non-PT formats
for (a = 0; a < b; a++)
{
if (patternTmp[a] == NULL)
continue;
for (j = 0; j < 64; j++)
{
for (k = 0; k < songTmp.numChannels; k++)
{
note_t *p = &patternTmp[a][(j * MAX_CHANNELS) + k];
// convert STK effects to PT effects
if (!lateSTKVerFlag)
{
// old SoundTracker 1.x commands
if (p->efx == 1)
{
// arpeggio
p->efx = 0;
}
else if (p->efx == 2)
{
// pitch slide
if (p->efxData & 0xF0)
{
// pitch slide down
p->efx = 2;
p->efxData >>= 4;
}
else if (p->efxData & 0x0F)
{
// pitch slide up
p->efx = 1;
}
}
}
else
{
// "DFJ SoundTracker II" or later
if (p->efx == 0xD)
{
if (veryLateSTKVerFlag) // "DFJ SoundTracker III" or later
{
// pattern break w/ no param (param must be cleared to fix some songs)
p->efxData = 0;
}
else
{
// volume slide
p->efx = 0xA;
}
}
}
// effect F with param 0x00 does nothing in UST/STK (I think)
if (p->efx == 0xF && p->efxData == 0)
p->efx = 0;
}
}
}
for (a = 0; a < 15; a++)
{
if (h.smp[a].length == 0)
continue;
if (!allocateTmpInstr(1+a))
{
loaderMsgBox("Not enough memory!");
return false;
}
setNoEnvelope(instrTmp[1+a]);
s = &instrTmp[1+a]->smp[0];
s->volume = h.smp[a].volume;
s->length = 2 * SWAP16(h.smp[a].length);
s->loopStart = SWAP16(h.smp[a].loopStart); // in STK, loopStart = bytes, not words
s->loopLength = 2 * SWAP16(h.smp[a].loopLength);
if (s->loopLength < 2)
s->loopLength = 2;
// fix overflown loop
if (s->loopStart+s->loopLength > s->length)
{
if (s->loopStart >= s->length)
{
s->loopStart = 0;
s->loopLength = 0;
}
else
{
s->loopLength = s->length - s->loopStart;
}
}
if (s->loopStart+s->loopLength > 2)
{
s->flags |= LOOP_FWD; // enable loop
}
else
{
s->loopLength = 0;
s->loopStart = 0;
}
/* In STK, only the loop area of a looped sample is played.
** Skip loading of eventual data present before loop start.
*/
if (s->loopStart > 0 && s->loopLength < s->length)
{
s->length -= s->loopStart;
fseek(f, s->loopStart, SEEK_CUR);
s->loopStart = 0;
}
if (!allocateSmpData(s, s->length, false))
{
loaderMsgBox("Not enough memory!");
return false;
}
int32_t bytesRead = (int32_t)fread(s->dataPtr, 1, s->length, f);
if (bytesRead < s->length)
{
int32_t bytesToClear = s->length - bytesRead;
memset(&s->dataPtr[bytesRead], 0, bytesToClear);
}
}
return true;
}
|
3c4043ef0923611c15966d52cf77cba34f812166
|
8a51a96f61699f0318315ccc89cef39f6866f2b5
|
/src/include/utils/pgstat_internal.h
|
60fbf9394b98cc761bc2903ffdbea9d40ffbb9f4
|
[
"PostgreSQL"
] |
permissive
|
postgres/postgres
|
979febf2b41c00090d1256228f768f33e7ef3b6f
|
b5934bfd6071fed3a38cea0cfaa93afda63d9c0c
|
refs/heads/master
| 2023-08-31T00:10:01.373472
| 2023-08-30T23:07:48
| 2023-08-30T23:07:48
| 927,442
| 13,691
| 4,807
|
NOASSERTION
| 2023-09-09T13:59:15
| 2010-09-21T11:35:45
|
C
|
UTF-8
|
C
| false
| false
| 22,560
|
h
|
pgstat_internal.h
|
/* ----------
* pgstat_internal.h
*
* Definitions for the PostgreSQL cumulative statistics system that should
* only be needed by files implementing statistics support (rather than ones
* reporting / querying stats).
*
* Copyright (c) 2001-2023, PostgreSQL Global Development Group
*
* src/include/utils/pgstat_internal.h
* ----------
*/
#ifndef PGSTAT_INTERNAL_H
#define PGSTAT_INTERNAL_H
#include "common/hashfn.h"
#include "lib/dshash.h"
#include "lib/ilist.h"
#include "pgstat.h"
#include "storage/lwlock.h"
#include "utils/dsa.h"
/*
* Types related to shared memory storage of statistics.
*
* Per-object statistics are stored in the "shared stats" hashtable. That
* table's entries (PgStatShared_HashEntry) contain a pointer to the actual stats
* data for the object (the size of the stats data varies depending on the
* kind of stats). The table is keyed by PgStat_HashKey.
*
* Once a backend has a reference to a shared stats entry, it increments the
* entry's refcount. Even after stats data is dropped (e.g., due to a DROP
* TABLE), the entry itself can only be deleted once all references have been
* released.
*
* These refcounts, in combination with a backend local hashtable
* (pgStatEntryRefHash, with entries pointing to PgStat_EntryRef) in front of
* the shared hash table, mean that most stats work can happen without
* touching the shared hash table, reducing contention.
*
* Once there are pending stats updates for a table PgStat_EntryRef->pending
* is allocated to contain a working space for as-of-yet-unapplied stats
* updates. Once the stats are flushed, PgStat_EntryRef->pending is freed.
*
* Each stat kind in the shared hash table has a fixed member
* PgStatShared_Common as the first element.
*/
/* struct for shared statistics hash entry key. */
typedef struct PgStat_HashKey
{
PgStat_Kind kind; /* statistics entry kind */
Oid dboid; /* database ID. InvalidOid for shared objects. */
Oid objoid; /* object ID, either table or function. */
} PgStat_HashKey;
/*
* Shared statistics hash entry. Doesn't itself contain any stats, but points
* to them (with ->body). That allows the stats entries themselves to be of
* variable size.
*/
typedef struct PgStatShared_HashEntry
{
PgStat_HashKey key; /* hash key */
/*
* If dropped is set, backends need to release their references so that
* the memory for the entry can be freed. No new references may be made
* once marked as dropped.
*/
bool dropped;
/*
* Refcount managing lifetime of the entry itself (as opposed to the
* dshash entry pointing to it). The stats lifetime has to be separate
* from the hash table entry lifetime because we allow backends to point
* to a stats entry without holding a hash table lock (and some other
* reasons).
*
* As long as the entry is not dropped, 1 is added to the refcount
* representing that the entry should not be dropped. In addition each
* backend that has a reference to the entry needs to increment the
* refcount as long as it does.
*
* May only be incremented / decremented while holding at least a shared
* lock on the dshash partition containing the entry. It needs to be an
* atomic variable because multiple backends can increment the refcount
* with just a shared lock.
*
* When the refcount reaches 0 the entry needs to be freed.
*/
pg_atomic_uint32 refcount;
/*
* Pointer to shared stats. The stats entry always starts with
* PgStatShared_Common, embedded in a larger struct containing the
* PgStat_Kind specific stats fields.
*/
dsa_pointer body;
} PgStatShared_HashEntry;
/*
* Common header struct for PgStatShared_*.
*/
typedef struct PgStatShared_Common
{
uint32 magic; /* just a validity cross-check */
/* lock protecting stats contents (i.e. data following the header) */
LWLock lock;
} PgStatShared_Common;
/*
* A backend local reference to a shared stats entry. As long as at least one
* such reference exists, the shared stats entry will not be released.
*
* If there are pending stats update to the shared stats, these are stored in
* ->pending.
*/
typedef struct PgStat_EntryRef
{
/*
* Pointer to the PgStatShared_HashEntry entry in the shared stats
* hashtable.
*/
PgStatShared_HashEntry *shared_entry;
/*
* Pointer to the stats data (i.e. PgStatShared_HashEntry->body), resolved
* as a local pointer, to avoid repeated dsa_get_address() calls.
*/
PgStatShared_Common *shared_stats;
/*
* Pending statistics data that will need to be flushed to shared memory
* stats eventually. Each stats kind utilizing pending data defines what
* format its pending data has and needs to provide a
* PgStat_KindInfo->flush_pending_cb callback to merge pending into shared
* stats.
*/
void *pending;
dlist_node pending_node; /* membership in pgStatPending list */
} PgStat_EntryRef;
/*
* Some stats changes are transactional. To maintain those, a stack of
* PgStat_SubXactStatus entries is maintained, which contain data pertaining
* to the current transaction and its active subtransactions.
*/
typedef struct PgStat_SubXactStatus
{
int nest_level; /* subtransaction nest level */
struct PgStat_SubXactStatus *prev; /* higher-level subxact if any */
/*
* Statistics for transactionally dropped objects need to be
* transactionally dropped as well. Collect the stats dropped in the
* current (sub-)transaction and only execute the stats drop when we know
* if the transaction commits/aborts. To handle replicas and crashes,
* stats drops are included in commit / abort records.
*/
dclist_head pending_drops;
/*
* Tuple insertion/deletion counts for an open transaction can't be
* propagated into PgStat_TableStatus counters until we know if it is
* going to commit or abort. Hence, we keep these counts in per-subxact
* structs that live in TopTransactionContext. This data structure is
* designed on the assumption that subxacts won't usually modify very many
* tables.
*/
PgStat_TableXactStatus *first; /* head of list for this subxact */
} PgStat_SubXactStatus;
/*
* Metadata for a specific kind of statistics.
*/
typedef struct PgStat_KindInfo
{
/*
* Do a fixed number of stats objects exist for this kind of stats (e.g.
* bgwriter stats) or not (e.g. tables).
*/
bool fixed_amount:1;
/*
* Can stats of this kind be accessed from another database? Determines
* whether a stats object gets included in stats snapshots.
*/
bool accessed_across_databases:1;
/*
* For variable-numbered stats: Identified on-disk using a name, rather
* than PgStat_HashKey. Probably only needed for replication slot stats.
*/
bool named_on_disk:1;
/*
* The size of an entry in the shared stats hash table (pointed to by
* PgStatShared_HashEntry->body).
*/
uint32 shared_size;
/*
* The offset/size of statistics inside the shared stats entry. Used when
* [de-]serializing statistics to / from disk respectively. Separate from
* shared_size because [de-]serialization may not include in-memory state
* like lwlocks.
*/
uint32 shared_data_off;
uint32 shared_data_len;
/*
* The size of the pending data for this kind. E.g. how large
* PgStat_EntryRef->pending is. Used for allocations.
*
* 0 signals that an entry of this kind should never have a pending entry.
*/
uint32 pending_size;
/*
* For variable-numbered stats: flush pending stats. Required if pending
* data is used.
*/
bool (*flush_pending_cb) (PgStat_EntryRef *sr, bool nowait);
/*
* For variable-numbered stats: delete pending stats. Optional.
*/
void (*delete_pending_cb) (PgStat_EntryRef *sr);
/*
* For variable-numbered stats: reset the reset timestamp. Optional.
*/
void (*reset_timestamp_cb) (PgStatShared_Common *header, TimestampTz ts);
/*
* For variable-numbered stats with named_on_disk. Optional.
*/
void (*to_serialized_name) (const PgStat_HashKey *key,
const PgStatShared_Common *header, NameData *name);
bool (*from_serialized_name) (const NameData *name, PgStat_HashKey *key);
/*
* For fixed-numbered statistics: Reset All.
*/
void (*reset_all_cb) (TimestampTz ts);
/*
* For fixed-numbered statistics: Build snapshot for entry
*/
void (*snapshot_cb) (void);
/* name of the kind of stats */
const char *const name;
} PgStat_KindInfo;
/*
* List of SLRU names that we keep stats for. There is no central registry of
* SLRUs, so we use this fixed list instead. The "other" entry is used for
* all SLRUs without an explicit entry (e.g. SLRUs in extensions).
*
* This is only defined here so that SLRU_NUM_ELEMENTS is known for later type
* definitions.
*/
static const char *const slru_names[] = {
"CommitTs",
"MultiXactMember",
"MultiXactOffset",
"Notify",
"Serial",
"Subtrans",
"Xact",
"other" /* has to be last */
};
#define SLRU_NUM_ELEMENTS lengthof(slru_names)
/* ----------
* Types and definitions for different kinds of fixed-amount stats.
*
* Single-writer stats use the changecount mechanism to achieve low-overhead
* writes - they're obviously more performance critical than reads. Check the
* definition of struct PgBackendStatus for some explanation of the
* changecount mechanism.
*
* Because the obvious implementation of resetting single-writer stats isn't
* compatible with that (another backend needs to write), we don't scribble on
* shared stats while resetting. Instead, just record the current counter
* values in a copy of the stats data, which is protected by ->lock. See
* pgstat_fetch_stat_(archiver|bgwriter|checkpointer) for the reader side.
*
* The only exception to that is the stat_reset_timestamp in these structs,
* which is protected by ->lock, because it has to be written by another
* backend while resetting.
* ----------
*/
typedef struct PgStatShared_Archiver
{
/* lock protects ->reset_offset as well as stats->stat_reset_timestamp */
LWLock lock;
uint32 changecount;
PgStat_ArchiverStats stats;
PgStat_ArchiverStats reset_offset;
} PgStatShared_Archiver;
typedef struct PgStatShared_BgWriter
{
/* lock protects ->reset_offset as well as stats->stat_reset_timestamp */
LWLock lock;
uint32 changecount;
PgStat_BgWriterStats stats;
PgStat_BgWriterStats reset_offset;
} PgStatShared_BgWriter;
typedef struct PgStatShared_Checkpointer
{
/* lock protects ->reset_offset as well as stats->stat_reset_timestamp */
LWLock lock;
uint32 changecount;
PgStat_CheckpointerStats stats;
PgStat_CheckpointerStats reset_offset;
} PgStatShared_Checkpointer;
/* Shared-memory ready PgStat_IO */
typedef struct PgStatShared_IO
{
/*
* locks[i] protects stats.stats[i]. locks[0] also protects
* stats.stat_reset_timestamp.
*/
LWLock locks[BACKEND_NUM_TYPES];
PgStat_IO stats;
} PgStatShared_IO;
typedef struct PgStatShared_SLRU
{
/* lock protects ->stats */
LWLock lock;
PgStat_SLRUStats stats[SLRU_NUM_ELEMENTS];
} PgStatShared_SLRU;
typedef struct PgStatShared_Wal
{
/* lock protects ->stats */
LWLock lock;
PgStat_WalStats stats;
} PgStatShared_Wal;
/* ----------
* Types and definitions for different kinds of variable-amount stats.
*
* Each struct has to start with PgStatShared_Common, containing information
* common across the different types of stats. Kind-specific data follows.
* ----------
*/
typedef struct PgStatShared_Database
{
PgStatShared_Common header;
PgStat_StatDBEntry stats;
} PgStatShared_Database;
typedef struct PgStatShared_Relation
{
PgStatShared_Common header;
PgStat_StatTabEntry stats;
} PgStatShared_Relation;
typedef struct PgStatShared_Function
{
PgStatShared_Common header;
PgStat_StatFuncEntry stats;
} PgStatShared_Function;
typedef struct PgStatShared_Subscription
{
PgStatShared_Common header;
PgStat_StatSubEntry stats;
} PgStatShared_Subscription;
typedef struct PgStatShared_ReplSlot
{
PgStatShared_Common header;
PgStat_StatReplSlotEntry stats;
} PgStatShared_ReplSlot;
/*
* Central shared memory entry for the cumulative stats system.
*
* Fixed amount stats, the dynamic shared memory hash table for
* non-fixed-amount stats, as well as remaining bits and pieces are all
* reached from here.
*/
typedef struct PgStat_ShmemControl
{
void *raw_dsa_area;
/*
* Stats for variable-numbered objects are kept in this shared hash table.
* See comment above PgStat_Kind for details.
*/
dshash_table_handle hash_handle; /* shared dbstat hash */
/* Has the stats system already been shut down? Just a debugging check. */
bool is_shutdown;
/*
* Whenever statistics for dropped objects could not be freed - because
* backends still have references - the dropping backend calls
* pgstat_request_entry_refs_gc() incrementing this counter. Eventually
* that causes backends to run pgstat_gc_entry_refs(), allowing memory to
* be reclaimed.
*/
pg_atomic_uint64 gc_request_count;
/*
* Stats data for fixed-numbered objects.
*/
PgStatShared_Archiver archiver;
PgStatShared_BgWriter bgwriter;
PgStatShared_Checkpointer checkpointer;
PgStatShared_IO io;
PgStatShared_SLRU slru;
PgStatShared_Wal wal;
} PgStat_ShmemControl;
/*
* Cached statistics snapshot
*/
typedef struct PgStat_Snapshot
{
PgStat_FetchConsistency mode;
/* time at which snapshot was taken */
TimestampTz snapshot_timestamp;
bool fixed_valid[PGSTAT_NUM_KINDS];
PgStat_ArchiverStats archiver;
PgStat_BgWriterStats bgwriter;
PgStat_CheckpointerStats checkpointer;
PgStat_IO io;
PgStat_SLRUStats slru[SLRU_NUM_ELEMENTS];
PgStat_WalStats wal;
/* to free snapshot in bulk */
MemoryContext context;
struct pgstat_snapshot_hash *stats;
} PgStat_Snapshot;
/*
* Collection of backend-local stats state.
*/
typedef struct PgStat_LocalState
{
PgStat_ShmemControl *shmem;
dsa_area *dsa;
dshash_table *shared_hash;
/* the current statistics snapshot */
PgStat_Snapshot snapshot;
} PgStat_LocalState;
/*
* Inline functions defined further below.
*/
static inline void pgstat_begin_changecount_write(uint32 *cc);
static inline void pgstat_end_changecount_write(uint32 *cc);
static inline uint32 pgstat_begin_changecount_read(uint32 *cc);
static inline bool pgstat_end_changecount_read(uint32 *cc, uint32 cc_before);
static inline void pgstat_copy_changecounted_stats(void *dst, void *src, size_t len,
uint32 *cc);
static inline int pgstat_cmp_hash_key(const void *a, const void *b, size_t size, void *arg);
static inline uint32 pgstat_hash_hash_key(const void *d, size_t size, void *arg);
static inline size_t pgstat_get_entry_len(PgStat_Kind kind);
static inline void *pgstat_get_entry_data(PgStat_Kind kind, PgStatShared_Common *entry);
/*
* Functions in pgstat.c
*/
extern const PgStat_KindInfo *pgstat_get_kind_info(PgStat_Kind kind);
#ifdef USE_ASSERT_CHECKING
extern void pgstat_assert_is_up(void);
#else
#define pgstat_assert_is_up() ((void)true)
#endif
extern void pgstat_delete_pending_entry(PgStat_EntryRef *entry_ref);
extern PgStat_EntryRef *pgstat_prep_pending_entry(PgStat_Kind kind, Oid dboid, Oid objoid, bool *created_entry);
extern PgStat_EntryRef *pgstat_fetch_pending_entry(PgStat_Kind kind, Oid dboid, Oid objoid);
extern void *pgstat_fetch_entry(PgStat_Kind kind, Oid dboid, Oid objoid);
extern void pgstat_snapshot_fixed(PgStat_Kind kind);
/*
* Functions in pgstat_archiver.c
*/
extern void pgstat_archiver_reset_all_cb(TimestampTz ts);
extern void pgstat_archiver_snapshot_cb(void);
/*
* Functions in pgstat_bgwriter.c
*/
extern void pgstat_bgwriter_reset_all_cb(TimestampTz ts);
extern void pgstat_bgwriter_snapshot_cb(void);
/*
* Functions in pgstat_checkpointer.c
*/
extern void pgstat_checkpointer_reset_all_cb(TimestampTz ts);
extern void pgstat_checkpointer_snapshot_cb(void);
/*
* Functions in pgstat_database.c
*/
extern void pgstat_report_disconnect(Oid dboid);
extern void pgstat_update_dbstats(TimestampTz ts);
extern void AtEOXact_PgStat_Database(bool isCommit, bool parallel);
extern PgStat_StatDBEntry *pgstat_prep_database_pending(Oid dboid);
extern void pgstat_reset_database_timestamp(Oid dboid, TimestampTz ts);
extern bool pgstat_database_flush_cb(PgStat_EntryRef *entry_ref, bool nowait);
extern void pgstat_database_reset_timestamp_cb(PgStatShared_Common *header, TimestampTz ts);
/*
* Functions in pgstat_function.c
*/
extern bool pgstat_function_flush_cb(PgStat_EntryRef *entry_ref, bool nowait);
/*
* Functions in pgstat_io.c
*/
extern bool pgstat_flush_io(bool nowait);
extern void pgstat_io_reset_all_cb(TimestampTz ts);
extern void pgstat_io_snapshot_cb(void);
/*
* Functions in pgstat_relation.c
*/
extern void AtEOXact_PgStat_Relations(PgStat_SubXactStatus *xact_state, bool isCommit);
extern void AtEOSubXact_PgStat_Relations(PgStat_SubXactStatus *xact_state, bool isCommit, int nestDepth);
extern void AtPrepare_PgStat_Relations(PgStat_SubXactStatus *xact_state);
extern void PostPrepare_PgStat_Relations(PgStat_SubXactStatus *xact_state);
extern bool pgstat_relation_flush_cb(PgStat_EntryRef *entry_ref, bool nowait);
extern void pgstat_relation_delete_pending_cb(PgStat_EntryRef *entry_ref);
/*
* Functions in pgstat_replslot.c
*/
extern void pgstat_replslot_reset_timestamp_cb(PgStatShared_Common *header, TimestampTz ts);
extern void pgstat_replslot_to_serialized_name_cb(const PgStat_HashKey *key, const PgStatShared_Common *header, NameData *name);
extern bool pgstat_replslot_from_serialized_name_cb(const NameData *name, PgStat_HashKey *key);
/*
* Functions in pgstat_shmem.c
*/
extern void pgstat_attach_shmem(void);
extern void pgstat_detach_shmem(void);
extern PgStat_EntryRef *pgstat_get_entry_ref(PgStat_Kind kind, Oid dboid, Oid objoid,
bool create, bool *created_entry);
extern bool pgstat_lock_entry(PgStat_EntryRef *entry_ref, bool nowait);
extern bool pgstat_lock_entry_shared(PgStat_EntryRef *entry_ref, bool nowait);
extern void pgstat_unlock_entry(PgStat_EntryRef *entry_ref);
extern bool pgstat_drop_entry(PgStat_Kind kind, Oid dboid, Oid objoid);
extern void pgstat_drop_all_entries(void);
extern PgStat_EntryRef *pgstat_get_entry_ref_locked(PgStat_Kind kind, Oid dboid, Oid objoid,
bool nowait);
extern void pgstat_reset_entry(PgStat_Kind kind, Oid dboid, Oid objoid, TimestampTz ts);
extern void pgstat_reset_entries_of_kind(PgStat_Kind kind, TimestampTz ts);
extern void pgstat_reset_matching_entries(bool (*do_reset) (PgStatShared_HashEntry *, Datum),
Datum match_data,
TimestampTz ts);
extern void pgstat_request_entry_refs_gc(void);
extern PgStatShared_Common *pgstat_init_entry(PgStat_Kind kind,
PgStatShared_HashEntry *shhashent);
/*
* Functions in pgstat_slru.c
*/
extern bool pgstat_slru_flush(bool nowait);
extern void pgstat_slru_reset_all_cb(TimestampTz ts);
extern void pgstat_slru_snapshot_cb(void);
/*
* Functions in pgstat_wal.c
*/
extern bool pgstat_flush_wal(bool nowait);
extern void pgstat_init_wal(void);
extern bool pgstat_have_pending_wal(void);
extern void pgstat_wal_reset_all_cb(TimestampTz ts);
extern void pgstat_wal_snapshot_cb(void);
/*
* Functions in pgstat_subscription.c
*/
extern bool pgstat_subscription_flush_cb(PgStat_EntryRef *entry_ref, bool nowait);
extern void pgstat_subscription_reset_timestamp_cb(PgStatShared_Common *header, TimestampTz ts);
/*
* Functions in pgstat_xact.c
*/
extern PgStat_SubXactStatus *pgstat_get_xact_stack_level(int nest_level);
extern void pgstat_drop_transactional(PgStat_Kind kind, Oid dboid, Oid objoid);
extern void pgstat_create_transactional(PgStat_Kind kind, Oid dboid, Oid objoid);
/*
* Variables in pgstat.c
*/
extern PGDLLIMPORT PgStat_LocalState pgStatLocal;
/*
* Variables in pgstat_io.c
*/
extern PGDLLIMPORT bool have_iostats;
/*
* Variables in pgstat_slru.c
*/
extern PGDLLIMPORT bool have_slrustats;
/*
* Implementation of inline functions declared above.
*/
/*
* Helpers for changecount manipulation. See comments around struct
* PgBackendStatus for details.
*/
static inline void
pgstat_begin_changecount_write(uint32 *cc)
{
Assert((*cc & 1) == 0);
START_CRIT_SECTION();
(*cc)++;
pg_write_barrier();
}
static inline void
pgstat_end_changecount_write(uint32 *cc)
{
Assert((*cc & 1) == 1);
pg_write_barrier();
(*cc)++;
END_CRIT_SECTION();
}
static inline uint32
pgstat_begin_changecount_read(uint32 *cc)
{
uint32 before_cc = *cc;
CHECK_FOR_INTERRUPTS();
pg_read_barrier();
return before_cc;
}
/*
* Returns true if the read succeeded, false if it needs to be repeated.
*/
static inline bool
pgstat_end_changecount_read(uint32 *cc, uint32 before_cc)
{
uint32 after_cc;
pg_read_barrier();
after_cc = *cc;
/* was a write in progress when we started? */
if (before_cc & 1)
return false;
/* did writes start and complete while we read? */
return before_cc == after_cc;
}
/*
* helper function for PgStat_KindInfo->snapshot_cb
* PgStat_KindInfo->reset_all_cb callbacks.
*
* Copies out the specified memory area following change-count protocol.
*/
static inline void
pgstat_copy_changecounted_stats(void *dst, void *src, size_t len,
uint32 *cc)
{
uint32 cc_before;
do
{
cc_before = pgstat_begin_changecount_read(cc);
memcpy(dst, src, len);
}
while (!pgstat_end_changecount_read(cc, cc_before));
}
/* helpers for dshash / simplehash hashtables */
static inline int
pgstat_cmp_hash_key(const void *a, const void *b, size_t size, void *arg)
{
Assert(size == sizeof(PgStat_HashKey) && arg == NULL);
return memcmp(a, b, sizeof(PgStat_HashKey));
}
static inline uint32
pgstat_hash_hash_key(const void *d, size_t size, void *arg)
{
const PgStat_HashKey *key = (PgStat_HashKey *) d;
uint32 hash;
Assert(size == sizeof(PgStat_HashKey) && arg == NULL);
hash = murmurhash32(key->kind);
hash = hash_combine(hash, murmurhash32(key->dboid));
hash = hash_combine(hash, murmurhash32(key->objoid));
return hash;
}
/*
* The length of the data portion of a shared memory stats entry (i.e. without
* transient data such as refcounts, lwlocks, ...).
*/
static inline size_t
pgstat_get_entry_len(PgStat_Kind kind)
{
return pgstat_get_kind_info(kind)->shared_data_len;
}
/*
* Returns a pointer to the data portion of a shared memory stats entry.
*/
static inline void *
pgstat_get_entry_data(PgStat_Kind kind, PgStatShared_Common *entry)
{
size_t off = pgstat_get_kind_info(kind)->shared_data_off;
Assert(off != 0 && off < PG_UINT32_MAX);
return ((char *) (entry)) + off;
}
#endif /* PGSTAT_INTERNAL_H */
|
0997802ffa8e89b73fe56e4b2e15d191fe820b16
|
ecea7c1f53661a57736d9b3f6deec97712ff22fc
|
/SecurityExploits/Android/Qualcomm/CVE_2022_25664/adreno_kernel/kgsl_utils.c
|
1fc3c5a16e60734a1c5d41b80a04fdd4e72e3e13
|
[
"MIT"
] |
permissive
|
github/securitylab
|
088d785622a1a1e86fa171f9296d2a66542bc88f
|
80e2d6abadad8cb77e8c9f659e32eaee6b3a98ed
|
refs/heads/main
| 2023-09-03T04:21:06.795016
| 2023-07-06T15:31:30
| 2023-07-06T15:31:30
| 221,101,274
| 1,079
| 225
|
MIT
| 2023-08-16T16:41:27
| 2019-11-12T01:14:24
|
C
|
UTF-8
|
C
| false
| false
| 1,909
|
c
|
kgsl_utils.c
|
#include <string.h>
#include "kgsl_utils.h"
int kgsl_ctx_create(int fd, uint32_t *ctx_id)
{
struct kgsl_drawctxt_create req = {
.flags = 0x00001812,
};
int ret;
ret = ioctl(fd, IOCTL_KGSL_DRAWCTXT_CREATE, &req);
if (ret)
return ret;
*ctx_id = req.drawctxt_id;
return 0;
}
int kgsl_gpu_command_payload(int fd, uint32_t ctx_id, uint64_t gpuaddr, uint32_t cmdsize, uint32_t n, uint32_t target_idx, uint64_t target_cmd, uint32_t target_size) {
struct kgsl_command_object *cmds;
struct kgsl_gpu_command req = {
.context_id = ctx_id,
.cmdsize = sizeof(struct kgsl_command_object),
.numcmds = n,
};
size_t cmds_size;
uint32_t i;
cmds_size = n * sizeof(struct kgsl_command_object);
cmds = (struct kgsl_command_object *) malloc(cmds_size);
if (cmds == NULL) {
return -1;
}
memset(cmds, 0, cmds_size);
for (i = 0; i < n; i++) {
cmds[i].flags = KGSL_CMDLIST_IB;
if (i == target_idx) {
cmds[i].gpuaddr = target_cmd;
cmds[i].size = target_size;
}
else {
/* the shift here is helpful for debugging failed alignment */
cmds[i].gpuaddr = gpuaddr + (i << 16);
cmds[i].size = cmdsize;
}
}
req.cmdlist = (unsigned long) cmds;
return ioctl(fd, IOCTL_KGSL_GPU_COMMAND, &req);
}
int kgsl_map(int fd, unsigned long addr, size_t len, uint64_t *gpuaddr, int readonly) {
struct kgsl_map_user_mem req = {
.len = len,
.offset = 0,
.hostptr = addr,
.memtype = KGSL_USER_MEM_TYPE_ADDR,
// .flags = KGSL_MEMFLAGS_USE_CPU_MAP,
};
if (readonly) {
req.flags |= KGSL_MEMFLAGS_GPUREADONLY;
}
int ret;
ret = ioctl(fd, IOCTL_KGSL_MAP_USER_MEM, &req);
if (ret)
return ret;
*gpuaddr = req.gpuaddr;
return 0;
}
|
8711e85fc0752ef3dd01066a85484eeaef36c66c
|
28d0f8c01599f8f6c711bdde0b59f9c2cd221203
|
/sys/compat/aoutm68k/aoutm68k_syscall.h
|
c1a4542eba06e73c7af006069c84c4cf19a1a0ad
|
[] |
no_license
|
NetBSD/src
|
1a9cbc22ed778be638b37869ed4fb5c8dd616166
|
23ee83f7c0aea0777bd89d8ebd7f0cde9880d13c
|
refs/heads/trunk
| 2023-08-31T13:24:58.105962
| 2023-08-27T15:50:47
| 2023-08-27T15:50:47
| 88,439,547
| 656
| 348
| null | 2023-07-20T20:07:24
| 2017-04-16T20:03:43
| null |
UTF-8
|
C
| false
| false
| 31,779
|
h
|
aoutm68k_syscall.h
|
/* $NetBSD: aoutm68k_syscall.h,v 1.55 2019/06/18 01:39:09 christos Exp $ */
/*
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
* created from NetBSD: syscalls.master,v 1.44 2019/06/18 01:39:01 christos Exp
*/
#ifndef _AOUTM68K_SYS_SYSCALL_H_
#define _AOUTM68K_SYS_SYSCALL_H_
#define AOUTM68K_SYS_MAXSYSARGS 8
/* syscall: "syscall" ret: "int" args: "int" "..." */
#define AOUTM68K_SYS_syscall 0
/* syscall: "exit" ret: "void" args: "int" */
#define AOUTM68K_SYS_exit 1
/* syscall: "fork" ret: "int" args: */
#define AOUTM68K_SYS_fork 2
/* syscall: "read" ret: "ssize_t" args: "int" "void *" "size_t" */
#define AOUTM68K_SYS_read 3
/* syscall: "write" ret: "ssize_t" args: "int" "const void *" "size_t" */
#define AOUTM68K_SYS_write 4
/* syscall: "open" ret: "int" args: "const char *" "int" "..." */
#define AOUTM68K_SYS_open 5
/* syscall: "close" ret: "int" args: "int" */
#define AOUTM68K_SYS_close 6
/* syscall: "wait4" ret: "int" args: "int" "int *" "int" "struct rusage50 *" */
#define AOUTM68K_SYS_wait4 7
#if defined(COMPAT_43) || !defined(_KERNEL)
/* syscall: "ocreat" ret: "int" args: "const char *" "mode_t" */
#define AOUTM68K_SYS_ocreat 8
#else
/* 8 is excluded compat_43_sys_creat */
#endif
/* syscall: "link" ret: "int" args: "const char *" "const char *" */
#define AOUTM68K_SYS_link 9
/* syscall: "unlink" ret: "int" args: "const char *" */
#define AOUTM68K_SYS_unlink 10
/* 11 is obsolete execv */
/* syscall: "chdir" ret: "int" args: "const char *" */
#define AOUTM68K_SYS_chdir 12
/* syscall: "fchdir" ret: "int" args: "int" */
#define AOUTM68K_SYS_fchdir 13
/* syscall: "mknod" ret: "int" args: "const char *" "mode_t" "dev_t" */
#define AOUTM68K_SYS_mknod 14
/* syscall: "chmod" ret: "int" args: "const char *" "mode_t" */
#define AOUTM68K_SYS_chmod 15
/* syscall: "chown" ret: "int" args: "const char *" "uid_t" "gid_t" */
#define AOUTM68K_SYS_chown 16
/* syscall: "break" ret: "int" args: "char *" */
#define AOUTM68K_SYS_break 17
#if defined(COMPAT_20) || !defined(_KERNEL)
/* syscall: "getfsstat" ret: "int" args: "struct statfs12 *" "long" "int" */
#define AOUTM68K_SYS_getfsstat 18
#else
/* 18 is excluded compat_20_sys_getfsstat */
#endif
#if defined(COMPAT_43) || !defined(_KERNEL)
/* syscall: "olseek" ret: "long" args: "int" "long" "int" */
#define AOUTM68K_SYS_olseek 19
#else
/* 19 is excluded compat_43_sys_lseek */
#endif
/* syscall: "getpid" ret: "pid_t" args: */
#define AOUTM68K_SYS_getpid 20
/* syscall: "mount" ret: "int" args: "const char *" "const char *" "int" "void *" */
#define AOUTM68K_SYS_mount 21
/* syscall: "unmount" ret: "int" args: "const char *" "int" */
#define AOUTM68K_SYS_unmount 22
/* syscall: "setuid" ret: "int" args: "uid_t" */
#define AOUTM68K_SYS_setuid 23
/* syscall: "getuid" ret: "uid_t" args: */
#define AOUTM68K_SYS_getuid 24
/* syscall: "geteuid" ret: "uid_t" args: */
#define AOUTM68K_SYS_geteuid 25
/* syscall: "ptrace" ret: "int" args: "int" "pid_t" "void *" "int" */
#define AOUTM68K_SYS_ptrace 26
/* syscall: "recvmsg" ret: "ssize_t" args: "int" "struct msghdr *" "int" */
#define AOUTM68K_SYS_recvmsg 27
/* syscall: "sendmsg" ret: "ssize_t" args: "int" "const struct msghdr *" "int" */
#define AOUTM68K_SYS_sendmsg 28
/* syscall: "recvfrom" ret: "ssize_t" args: "int" "void *" "size_t" "int" "struct sockaddr *" "unsigned int *" */
#define AOUTM68K_SYS_recvfrom 29
/* syscall: "accept" ret: "int" args: "int" "struct sockaddr *" "unsigned int *" */
#define AOUTM68K_SYS_accept 30
/* syscall: "getpeername" ret: "int" args: "int" "struct sockaddr *" "unsigned int *" */
#define AOUTM68K_SYS_getpeername 31
/* syscall: "getsockname" ret: "int" args: "int" "struct sockaddr *" "unsigned int *" */
#define AOUTM68K_SYS_getsockname 32
/* syscall: "access" ret: "int" args: "const char *" "int" */
#define AOUTM68K_SYS_access 33
/* syscall: "chflags" ret: "int" args: "const char *" "u_long" */
#define AOUTM68K_SYS_chflags 34
/* syscall: "fchflags" ret: "int" args: "int" "u_long" */
#define AOUTM68K_SYS_fchflags 35
/* syscall: "sync" ret: "void" args: */
#define AOUTM68K_SYS_sync 36
/* syscall: "kill" ret: "int" args: "int" "int" */
#define AOUTM68K_SYS_kill 37
#if defined(COMPAT_43) || !defined(_KERNEL)
/* syscall: "stat43" ret: "int" args: "const char *" "struct aoutm68k_stat43 *" */
#define AOUTM68K_SYS_stat43 38
#else
/* 38 is excluded aoutm68k_compat_43_sys_stat */
#endif
/* syscall: "getppid" ret: "pid_t" args: */
#define AOUTM68K_SYS_getppid 39
#if defined(COMPAT_43) || !defined(_KERNEL)
/* syscall: "lstat43" ret: "int" args: "const char *" "struct aoutm68k_stat43 *" */
#define AOUTM68K_SYS_lstat43 40
#else
/* 40 is excluded aoutm68k_compat_43_sys_lstat */
#endif
/* syscall: "dup" ret: "int" args: "int" */
#define AOUTM68K_SYS_dup 41
/* syscall: "pipe" ret: "int" args: */
#define AOUTM68K_SYS_pipe 42
/* syscall: "getegid" ret: "gid_t" args: */
#define AOUTM68K_SYS_getegid 43
/* syscall: "profil" ret: "int" args: "void *" "size_t" "u_long" "u_int" */
#define AOUTM68K_SYS_profil 44
#if defined(KTRACE) || !defined(_KERNEL)
/* syscall: "ktrace" ret: "int" args: "const char *" "int" "int" "int" */
#define AOUTM68K_SYS_ktrace 45
#else
/* 45 is excluded ktrace */
#endif
#if defined(COMPAT_13) || !defined(_KERNEL)
/* syscall: "sigaction13" ret: "int" args: "int" "const struct sigaction13 *" "struct sigaction13 *" */
#define AOUTM68K_SYS_sigaction13 46
#else
/* 46 is excluded compat_13_sys_sigaction */
#endif
/* syscall: "getgid" ret: "gid_t" args: */
#define AOUTM68K_SYS_getgid 47
#if defined(COMPAT_13) || !defined(_KERNEL)
/* syscall: "sigprocmask13" ret: "int" args: "int" "int" */
#define AOUTM68K_SYS_sigprocmask13 48
#else
/* 48 is excluded compat_13_sys_sigprocmask */
#endif
/* syscall: "__getlogin" ret: "int" args: "char *" "size_t" */
#define AOUTM68K_SYS___getlogin 49
/* syscall: "__setlogin" ret: "int" args: "const char *" */
#define AOUTM68K_SYS___setlogin 50
/* syscall: "acct" ret: "int" args: "const char *" */
#define AOUTM68K_SYS_acct 51
#if defined(COMPAT_13) || !defined(_KERNEL)
/* syscall: "sigpending13" ret: "int" args: */
#define AOUTM68K_SYS_sigpending13 52
/* syscall: "sigaltstack13" ret: "int" args: "const struct sigaltstack13 *" "struct sigaltstack13 *" */
#define AOUTM68K_SYS_sigaltstack13 53
#else
/* 52 is excluded compat_13_sys_sigpending */
/* 53 is excluded compat_13_sys_sigaltstack */
#endif
/* syscall: "ioctl" ret: "int" args: "int" "u_long" "..." */
#define AOUTM68K_SYS_ioctl 54
#if defined(COMPAT_12) || !defined(_KERNEL)
/* syscall: "oreboot" ret: "int" args: "int" */
#define AOUTM68K_SYS_oreboot 55
#else
/* 55 is excluded compat_12_sys_reboot */
#endif
/* syscall: "revoke" ret: "int" args: "const char *" */
#define AOUTM68K_SYS_revoke 56
/* syscall: "symlink" ret: "int" args: "const char *" "const char *" */
#define AOUTM68K_SYS_symlink 57
/* syscall: "readlink" ret: "int" args: "const char *" "char *" "size_t" */
#define AOUTM68K_SYS_readlink 58
/* syscall: "execve" ret: "int" args: "const char *" "char *const *" "char *const *" */
#define AOUTM68K_SYS_execve 59
/* syscall: "umask" ret: "mode_t" args: "mode_t" */
#define AOUTM68K_SYS_umask 60
/* syscall: "chroot" ret: "int" args: "const char *" */
#define AOUTM68K_SYS_chroot 61
#if defined(COMPAT_43) || !defined(_KERNEL)
/* syscall: "fstat43" ret: "int" args: "int" "struct aoutm68k_stat43 *" */
#define AOUTM68K_SYS_fstat43 62
/* syscall: "ogetkerninfo" ret: "int" args: "int" "char *" "int *" "int" */
#define AOUTM68K_SYS_ogetkerninfo 63
/* syscall: "ogetpagesize" ret: "int" args: */
#define AOUTM68K_SYS_ogetpagesize 64
#else
/* 62 is excluded aoutm68k_compat_43_sys_fstat */
/* 63 is excluded compat_43_sys_getkerninfo */
/* 64 is excluded compat_43_sys_getpagesize */
#endif
#if defined(COMPAT_12) || !defined(_KERNEL)
/* syscall: "msync" ret: "int" args: "void *" "size_t" */
#define AOUTM68K_SYS_msync 65
#else
/* 65 is excluded compat_12_sys_msync */
#endif
/* syscall: "vfork" ret: "int" args: */
#define AOUTM68K_SYS_vfork 66
/* 67 is obsolete vread */
/* 68 is obsolete vwrite */
/* 69 is obsolete sbrk */
/* 70 is obsolete sstk */
#if defined(COMPAT_43) || !defined(_KERNEL)
/* syscall: "ommap" ret: "int" args: "void *" "size_t" "int" "int" "int" "long" */
#define AOUTM68K_SYS_ommap 71
#else
/* 71 is excluded compat_43_sys_mmap */
#endif
/* syscall: "vadvise" ret: "int" args: "int" */
#define AOUTM68K_SYS_vadvise 72
/* syscall: "munmap" ret: "int" args: "void *" "size_t" */
#define AOUTM68K_SYS_munmap 73
/* syscall: "mprotect" ret: "int" args: "void *" "size_t" "int" */
#define AOUTM68K_SYS_mprotect 74
/* syscall: "madvise" ret: "int" args: "void *" "size_t" "int" */
#define AOUTM68K_SYS_madvise 75
/* 76 is obsolete vhangup */
/* 77 is obsolete vlimit */
/* syscall: "mincore" ret: "int" args: "void *" "size_t" "char *" */
#define AOUTM68K_SYS_mincore 78
/* syscall: "getgroups" ret: "int" args: "int" "gid_t *" */
#define AOUTM68K_SYS_getgroups 79
/* syscall: "setgroups" ret: "int" args: "int" "const gid_t *" */
#define AOUTM68K_SYS_setgroups 80
/* syscall: "getpgrp" ret: "int" args: */
#define AOUTM68K_SYS_getpgrp 81
/* syscall: "setpgid" ret: "int" args: "int" "int" */
#define AOUTM68K_SYS_setpgid 82
/* syscall: "setitimer" ret: "int" args: "int" "const struct itimerval50 *" "struct itimerval50 *" */
#define AOUTM68K_SYS_setitimer 83
#if defined(COMPAT_43) || !defined(_KERNEL)
/* syscall: "owait" ret: "int" args: */
#define AOUTM68K_SYS_owait 84
#else
/* 84 is excluded compat_43_sys_wait */
#endif
#if defined(COMPAT_12) || !defined(_KERNEL)
/* syscall: "oswapon" ret: "int" args: "const char *" */
#define AOUTM68K_SYS_oswapon 85
#else
/* 85 is excluded compat_12_sys_swapon */
#endif
/* syscall: "getitimer" ret: "int" args: "int" "struct itimerval50 *" */
#define AOUTM68K_SYS_getitimer 86
#if defined(COMPAT_43) || !defined(_KERNEL)
/* syscall: "ogethostname" ret: "int" args: "char *" "u_int" */
#define AOUTM68K_SYS_ogethostname 87
/* syscall: "osethostname" ret: "int" args: "char *" "u_int" */
#define AOUTM68K_SYS_osethostname 88
/* syscall: "ogetdtablesize" ret: "int" args: */
#define AOUTM68K_SYS_ogetdtablesize 89
#else
/* 87 is excluded compat_43_sys_gethostname */
/* 88 is excluded compat_43_sys_sethostname */
/* 89 is excluded compat_43_sys_getdtablesize */
#endif
/* syscall: "dup2" ret: "int" args: "int" "int" */
#define AOUTM68K_SYS_dup2 90
/* syscall: "fcntl" ret: "int" args: "int" "int" "..." */
#define AOUTM68K_SYS_fcntl 92
/* syscall: "select" ret: "int" args: "int" "fd_set *" "fd_set *" "fd_set *" "struct timeval50 *" */
#define AOUTM68K_SYS_select 93
/* syscall: "fsync" ret: "int" args: "int" */
#define AOUTM68K_SYS_fsync 95
/* syscall: "setpriority" ret: "int" args: "int" "int" "int" */
#define AOUTM68K_SYS_setpriority 96
#if defined(COMPAT_30) || !defined(_KERNEL)
/* syscall: "socket" ret: "int" args: "int" "int" "int" */
#define AOUTM68K_SYS_socket 97
#else
/* 97 is excluded compat_30_sys_socket */
#endif
/* syscall: "connect" ret: "int" args: "int" "const struct sockaddr *" "int" */
#define AOUTM68K_SYS_connect 98
#if defined(COMPAT_43) || !defined(_KERNEL)
/* syscall: "oaccept" ret: "int" args: "int" "void *" "int *" */
#define AOUTM68K_SYS_oaccept 99
#else
/* 99 is excluded compat_43_sys_accept */
#endif
/* syscall: "getpriority" ret: "int" args: "int" "int" */
#define AOUTM68K_SYS_getpriority 100
#if defined(COMPAT_43) || !defined(_KERNEL)
/* syscall: "osend" ret: "int" args: "int" "void *" "int" "int" */
#define AOUTM68K_SYS_osend 101
/* syscall: "orecv" ret: "int" args: "int" "void *" "int" "int" */
#define AOUTM68K_SYS_orecv 102
#else
/* 101 is excluded compat_43_sys_send */
/* 102 is excluded compat_43_sys_recv */
#endif
#if defined(COMPAT_13) || !defined(_KERNEL)
/* syscall: "sigreturn13" ret: "int" args: "struct sigcontext13 *" */
#define AOUTM68K_SYS_sigreturn13 103
#else
/* 103 is excluded compat_13_sys_sigreturn */
#endif
/* syscall: "bind" ret: "int" args: "int" "const struct sockaddr *" "int" */
#define AOUTM68K_SYS_bind 104
/* syscall: "setsockopt" ret: "int" args: "int" "int" "int" "const void *" "int" */
#define AOUTM68K_SYS_setsockopt 105
/* syscall: "listen" ret: "int" args: "int" "int" */
#define AOUTM68K_SYS_listen 106
/* 107 is obsolete vtimes */
#if defined(COMPAT_43) || !defined(_KERNEL)
/* syscall: "osigvec" ret: "int" args: "int" "struct sigvec *" "struct sigvec *" */
#define AOUTM68K_SYS_osigvec 108
/* syscall: "osigblock" ret: "int" args: "int" */
#define AOUTM68K_SYS_osigblock 109
/* syscall: "osigsetmask" ret: "int" args: "int" */
#define AOUTM68K_SYS_osigsetmask 110
#else
/* 108 is excluded compat_43_sys_sigvec */
/* 109 is excluded compat_43_sys_sigblock */
/* 110 is excluded compat_43_sys_sigsetmask */
#endif
#if defined(COMPAT_13) || !defined(_KERNEL)
/* syscall: "sigsuspend13" ret: "int" args: "int" */
#define AOUTM68K_SYS_sigsuspend13 111
#else
/* 111 is excluded compat_13_sys_sigsuspend */
#endif
#if defined(COMPAT_43) || !defined(_KERNEL)
/* syscall: "osigstack" ret: "int" args: "struct sigstack *" "struct sigstack *" */
#define AOUTM68K_SYS_osigstack 112
/* syscall: "orecvmsg" ret: "int" args: "int" "struct omsghdr *" "int" */
#define AOUTM68K_SYS_orecvmsg 113
/* syscall: "osendmsg" ret: "int" args: "int" "void *" "int" */
#define AOUTM68K_SYS_osendmsg 114
#else
/* 112 is excluded compat_43_sys_sigstack */
/* 113 is excluded compat_43_sys_recvmesg */
/* 114 is excluded compat_43_sys_sendmesg */
#endif
/* 115 is obsolete vtrace */
/* syscall: "gettimeofday" ret: "int" args: "struct timeval50 *" "struct timezone *" */
#define AOUTM68K_SYS_gettimeofday 116
/* syscall: "getrusage" ret: "int" args: "int" "struct rusage50 *" */
#define AOUTM68K_SYS_getrusage 117
/* syscall: "getsockopt" ret: "int" args: "int" "int" "int" "void *" "int *" */
#define AOUTM68K_SYS_getsockopt 118
/* 119 is obsolete resuba */
/* syscall: "readv" ret: "ssize_t" args: "int" "const struct iovec *" "int" */
#define AOUTM68K_SYS_readv 120
/* syscall: "writev" ret: "ssize_t" args: "int" "const struct iovec *" "int" */
#define AOUTM68K_SYS_writev 121
/* syscall: "settimeofday" ret: "int" args: "const struct timeval50 *" "const struct timezone *" */
#define AOUTM68K_SYS_settimeofday 122
/* syscall: "fchown" ret: "int" args: "int" "uid_t" "gid_t" */
#define AOUTM68K_SYS_fchown 123
/* syscall: "fchmod" ret: "int" args: "int" "mode_t" */
#define AOUTM68K_SYS_fchmod 124
#if defined(COMPAT_43) || !defined(_KERNEL)
/* syscall: "orecvfrom" ret: "int" args: "int" "void *" "size_t" "int" "void *" "int *" */
#define AOUTM68K_SYS_orecvfrom 125
#else
/* 125 is excluded compat_43_sys_recvfrom */
#endif
/* syscall: "setreuid" ret: "int" args: "uid_t" "uid_t" */
#define AOUTM68K_SYS_setreuid 126
/* syscall: "setregid" ret: "int" args: "gid_t" "gid_t" */
#define AOUTM68K_SYS_setregid 127
/* syscall: "rename" ret: "int" args: "const char *" "const char *" */
#define AOUTM68K_SYS_rename 128
#if defined(COMPAT_43) || !defined(_KERNEL)
/* syscall: "otruncate" ret: "int" args: "const char *" "long" */
#define AOUTM68K_SYS_otruncate 129
/* syscall: "oftruncate" ret: "int" args: "int" "long" */
#define AOUTM68K_SYS_oftruncate 130
#else
/* 129 is excluded compat_43_sys_truncate */
/* 130 is excluded compat_43_sys_ftruncate */
#endif
/* syscall: "flock" ret: "int" args: "int" "int" */
#define AOUTM68K_SYS_flock 131
/* syscall: "mkfifo" ret: "int" args: "const char *" "mode_t" */
#define AOUTM68K_SYS_mkfifo 132
/* syscall: "sendto" ret: "ssize_t" args: "int" "const void *" "size_t" "int" "const struct sockaddr *" "int" */
#define AOUTM68K_SYS_sendto 133
/* syscall: "shutdown" ret: "int" args: "int" "int" */
#define AOUTM68K_SYS_shutdown 134
/* syscall: "socketpair" ret: "int" args: "int" "int" "int" "int *" */
#define AOUTM68K_SYS_socketpair 135
/* syscall: "mkdir" ret: "int" args: "const char *" "mode_t" */
#define AOUTM68K_SYS_mkdir 136
/* syscall: "rmdir" ret: "int" args: "const char *" */
#define AOUTM68K_SYS_rmdir 137
/* syscall: "utimes" ret: "int" args: "const char *" "const struct timeval50 *" */
#define AOUTM68K_SYS_utimes 138
/* 139 is obsolete 4.2 sigreturn */
/* syscall: "adjtime" ret: "int" args: "const struct timeval50 *" "struct timeval50 *" */
#define AOUTM68K_SYS_adjtime 140
#if defined(COMPAT_43) || !defined(_KERNEL)
/* syscall: "ogetpeername" ret: "int" args: "int" "void *" "int *" */
#define AOUTM68K_SYS_ogetpeername 141
/* syscall: "ogethostid" ret: "int32_t" args: */
#define AOUTM68K_SYS_ogethostid 142
/* syscall: "osethostid" ret: "int" args: "int32_t" */
#define AOUTM68K_SYS_osethostid 143
/* syscall: "ogetrlimit" ret: "int" args: "int" "struct orlimit *" */
#define AOUTM68K_SYS_ogetrlimit 144
/* syscall: "osetrlimit" ret: "int" args: "int" "const struct orlimit *" */
#define AOUTM68K_SYS_osetrlimit 145
/* syscall: "okillpg" ret: "int" args: "int" "int" */
#define AOUTM68K_SYS_okillpg 146
#else
/* 141 is excluded compat_43_sys_getpeername */
/* 142 is excluded compat_43_sys_gethostid */
/* 143 is excluded compat_43_sys_sethostid */
/* 144 is excluded compat_43_sys_getrlimit */
/* 145 is excluded compat_43_sys_setrlimit */
/* 146 is excluded compat_43_sys_killpg */
#endif
/* syscall: "setsid" ret: "int" args: */
#define AOUTM68K_SYS_setsid 147
#if defined(QUOTA) || !defined(_KERNEL_OPT)
/* syscall: "quotactl" ret: "int" args: "const char *" "int" "int" "void *" */
#define AOUTM68K_SYS_quotactl 148
#else
/* 148 is excluded compat_50_sys_quotactl */
#endif
#if (defined(QUOTA) && defined(COMPAT_43)) || !defined(_KERNEL_OPT)
/* syscall: "oquota" ret: "int" args: */
#define AOUTM68K_SYS_oquota 149
#else
/* 149 is excluded compat_43_sys_quota */
#endif
#if defined(COMPAT_43) || !defined(_KERNEL_OPT)
/* syscall: "ogetsockname" ret: "int" args: "int" "void *" "int *" */
#define AOUTM68K_SYS_ogetsockname 150
#else
/* 150 is excluded compat_43_sys_getsockname */
#endif
/* 155 is excluded nfssvc */
#if defined(COMPAT_43) || !defined(_KERNEL)
/* syscall: "ogetdirentries" ret: "int" args: "int" "char *" "u_int" "long *" */
#define AOUTM68K_SYS_ogetdirentries 156
#else
/* 156 is excluded compat_43_sys_getdirentries */
#endif
#if defined(COMPAT_20) || !defined(_KERNEL)
/* syscall: "statfs" ret: "int" args: "const char *" "struct statfs12 *" */
#define AOUTM68K_SYS_statfs 157
#else
/* 157 is excluded compat_20_sys_statfs */
#endif
#if defined(COMPAT_20) || !defined(_KERNEL)
/* syscall: "fstatfs" ret: "int" args: "int" "struct statfs12 *" */
#define AOUTM68K_SYS_fstatfs 158
#else
/* 158 is excluded compat_20_sys_statfs */
#endif
#if defined(COMPAT_30) || !defined(_KERNEL)
/* syscall: "getfh" ret: "int" args: "const char *" "struct compat_30_fhandle *" */
#define AOUTM68K_SYS_getfh 161
#else
/* 161 is excluded compat_30_sys_getfh */
#endif
#if defined(COMPAT_09) || !defined(_KERNEL)
/* syscall: "ogetdomainname" ret: "int" args: "char *" "int" */
#define AOUTM68K_SYS_ogetdomainname 162
/* syscall: "osetdomainname" ret: "int" args: "char *" "int" */
#define AOUTM68K_SYS_osetdomainname 163
/* syscall: "ouname" ret: "int" args: "struct outsname *" */
#define AOUTM68K_SYS_ouname 164
#else
/* 162 is excluded compat_09_sys_getdomainname */
/* 163 is excluded compat_09_sys_setdomainname */
/* 164 is excluded compat_09_sys_uname */
#endif
/* syscall: "sysarch" ret: "int" args: "int" "void *" */
#define AOUTM68K_SYS_sysarch 165
#if (defined(SYSVSEM) || !defined(_KERNEL)) && !defined(_LP64) && defined(COMPAT_10)
/* syscall: "osemsys" ret: "int" args: "int" "int" "int" "int" "int" */
#define AOUTM68K_SYS_osemsys 169
#else
/* 169 is excluded 1.0 semsys */
#endif
#if (defined(SYSVMSG) || !defined(_KERNEL)) && !defined(_LP64) && defined(COMPAT_10)
/* syscall: "omsgsys" ret: "int" args: "int" "int" "int" "int" "int" "int" */
#define AOUTM68K_SYS_omsgsys 170
#else
/* 170 is excluded 1.0 msgsys */
#endif
#if (defined(SYSVSHM) || !defined(_KERNEL)) && !defined(_LP64) && defined(COMPAT_10)
/* syscall: "oshmsys" ret: "int" args: "int" "int" "int" "int" */
#define AOUTM68K_SYS_oshmsys 171
#else
/* 171 is excluded 1.0 shmsys */
#endif
/* syscall: "pread" ret: "ssize_t" args: "int" "void *" "size_t" "int" "off_t" */
#define AOUTM68K_SYS_pread 173
/* syscall: "pwrite" ret: "ssize_t" args: "int" "const void *" "size_t" "int" "off_t" */
#define AOUTM68K_SYS_pwrite 174
#if defined(NTP) || !defined(_KERNEL)
/* syscall: "ntp_adjtime" ret: "int" args: "struct timex *" */
#define AOUTM68K_SYS_ntp_adjtime 176
#else
/* 176 is excluded ntp_adjtime */
#endif
/* syscall: "setgid" ret: "int" args: "gid_t" */
#define AOUTM68K_SYS_setgid 181
/* syscall: "setegid" ret: "int" args: "gid_t" */
#define AOUTM68K_SYS_setegid 182
/* syscall: "seteuid" ret: "int" args: "uid_t" */
#define AOUTM68K_SYS_seteuid 183
/* 184 is excluded lfs_bmapv */
/* 185 is excluded lfs_markv */
/* 186 is excluded lfs_segclean */
/* 187 is excluded lfs_segwait */
#if defined(COMPAT_12) || !defined(_KERNEL)
/* syscall: "stat12" ret: "int" args: "const char *" "struct aoutm68k_stat12 *" */
#define AOUTM68K_SYS_stat12 188
/* syscall: "fstat12" ret: "int" args: "int" "struct aoutm68k_stat12 *" */
#define AOUTM68K_SYS_fstat12 189
/* syscall: "lstat12" ret: "int" args: "const char *" "struct aoutm68k_stat12 *" */
#define AOUTM68K_SYS_lstat12 190
#else
/* 188 is excluded aoutm68k_compat_12_sys_stat */
/* 189 is excluded aoutm68k_compat_12_sys_fstat */
/* 190 is excluded aoutm68k_compat_12_sys_lstat */
#endif
/* syscall: "pathconf" ret: "long" args: "const char *" "int" */
#define AOUTM68K_SYS_pathconf 191
/* syscall: "fpathconf" ret: "long" args: "int" "int" */
#define AOUTM68K_SYS_fpathconf 192
/* syscall: "getrlimit" ret: "int" args: "int" "struct rlimit *" */
#define AOUTM68K_SYS_getrlimit 194
/* syscall: "setrlimit" ret: "int" args: "int" "const struct rlimit *" */
#define AOUTM68K_SYS_setrlimit 195
#if defined(COMPAT_12) || !defined(_KERNEL)
/* syscall: "getdirentries" ret: "int" args: "int" "char *" "u_int" "long *" */
#define AOUTM68K_SYS_getdirentries 196
#else
/* 196 is excluded compat_12_sys_getdirentries */
#endif
/* syscall: "mmap" ret: "void *" args: "void *" "size_t" "int" "int" "int" "long" "off_t" */
#define AOUTM68K_SYS_mmap 197
/* syscall: "__syscall" ret: "quad_t" args: "quad_t" "..." */
#define AOUTM68K_SYS___syscall 198
/* syscall: "lseek" ret: "off_t" args: "int" "int" "off_t" "int" */
#define AOUTM68K_SYS_lseek 199
/* syscall: "truncate" ret: "int" args: "const char *" "int" "off_t" */
#define AOUTM68K_SYS_truncate 200
/* syscall: "ftruncate" ret: "int" args: "int" "int" "off_t" */
#define AOUTM68K_SYS_ftruncate 201
/* syscall: "__sysctl" ret: "int" args: "int *" "u_int" "void *" "size_t *" "void *" "size_t" */
#define AOUTM68K_SYS___sysctl 202
/* syscall: "mlock" ret: "int" args: "const void *" "size_t" */
#define AOUTM68K_SYS_mlock 203
/* syscall: "munlock" ret: "int" args: "const void *" "size_t" */
#define AOUTM68K_SYS_munlock 204
/* syscall: "undelete" ret: "int" args: "const char *" */
#define AOUTM68K_SYS_undelete 205
/* syscall: "futimes" ret: "int" args: "int" "const struct timeval50 *" */
#define AOUTM68K_SYS_futimes 206
/* syscall: "getpgid" ret: "pid_t" args: "pid_t" */
#define AOUTM68K_SYS_getpgid 207
/* syscall: "reboot" ret: "int" args: "int" "char *" */
#define AOUTM68K_SYS_reboot 208
/* syscall: "poll" ret: "int" args: "struct pollfd *" "u_int" "int" */
#define AOUTM68K_SYS_poll 209
#if defined(SYSVSEM) || !defined(_KERNEL)
#if defined(COMPAT_14) || !defined(_KERNEL)
/* syscall: "__semctl" ret: "int" args: "int" "int" "int" "union __semun *" */
#define AOUTM68K_SYS___semctl 220
#else
/* 220 is excluded compat_14_semctl */
#endif
/* syscall: "semget" ret: "int" args: "key_t" "int" "int" */
#define AOUTM68K_SYS_semget 221
/* syscall: "semop" ret: "int" args: "int" "struct sembuf *" "size_t" */
#define AOUTM68K_SYS_semop 222
/* syscall: "semconfig" ret: "int" args: "int" */
#define AOUTM68K_SYS_semconfig 223
#else
/* 220 is excluded compat_14_semctl */
/* 221 is excluded semget */
/* 222 is excluded semop */
/* 223 is excluded semconfig */
#endif
#if defined(SYSVMSG) || !defined(_KERNEL)
#if defined(COMPAT_14) || !defined(_KERNEL)
/* syscall: "msgctl" ret: "int" args: "int" "int" "struct msqid_ds14 *" */
#define AOUTM68K_SYS_msgctl 224
#else
/* 224 is excluded compat_14_sys_msgctl */
#endif
/* syscall: "msgget" ret: "int" args: "key_t" "int" */
#define AOUTM68K_SYS_msgget 225
/* syscall: "msgsnd" ret: "int" args: "int" "const void *" "size_t" "int" */
#define AOUTM68K_SYS_msgsnd 226
/* syscall: "msgrcv" ret: "ssize_t" args: "int" "void *" "size_t" "long" "int" */
#define AOUTM68K_SYS_msgrcv 227
#else
/* 224 is excluded compat_14_msgctl */
/* 225 is excluded msgget */
/* 226 is excluded msgsnd */
/* 227 is excluded msgrcv */
#endif
#if defined(SYSVSHM) || !defined(_KERNEL)
/* syscall: "shmat" ret: "void *" args: "int" "const void *" "int" */
#define AOUTM68K_SYS_shmat 228
#if defined(COMPAT_14) || !defined(_KERNEL)
/* syscall: "shmctl" ret: "int" args: "int" "int" "struct shmid_ds14 *" */
#define AOUTM68K_SYS_shmctl 229
#else
/* 229 is excluded compat_14_sys_shmctl */
#endif
/* syscall: "shmdt" ret: "int" args: "const void *" */
#define AOUTM68K_SYS_shmdt 230
/* syscall: "shmget" ret: "int" args: "key_t" "size_t" "int" */
#define AOUTM68K_SYS_shmget 231
#else
/* 228 is excluded shmat */
/* 229 is excluded compat_14_shmctl */
/* 230 is excluded shmdt */
/* 231 is excluded shmget */
#endif
/* syscall: "clock_gettime" ret: "int" args: "clockid_t" "struct timespec50 *" */
#define AOUTM68K_SYS_clock_gettime 232
/* syscall: "clock_settime" ret: "int" args: "clockid_t" "const struct timespec50 *" */
#define AOUTM68K_SYS_clock_settime 233
/* syscall: "clock_getres" ret: "int" args: "clockid_t" "struct timespec50 *" */
#define AOUTM68K_SYS_clock_getres 234
/* syscall: "nanosleep" ret: "int" args: "const struct timespec50 *" "struct timespec50 *" */
#define AOUTM68K_SYS_nanosleep 240
/* syscall: "fdatasync" ret: "int" args: "int" */
#define AOUTM68K_SYS_fdatasync 241
/* syscall: "mlockall" ret: "int" args: "int" */
#define AOUTM68K_SYS_mlockall 242
/* syscall: "munlockall" ret: "int" args: */
#define AOUTM68K_SYS_munlockall 243
/* syscall: "__posix_rename" ret: "int" args: "const char *" "const char *" */
#define AOUTM68K_SYS___posix_rename 270
/* syscall: "swapctl" ret: "int" args: "int" "const void *" "int" */
#define AOUTM68K_SYS_swapctl 271
#if defined(COMPAT_30) || !defined(_KERNEL)
/* syscall: "getdents" ret: "int" args: "int" "char *" "size_t" */
#define AOUTM68K_SYS_getdents 272
#else
/* 272 is excluded compat_30_sys_getdents */
#endif
/* syscall: "minherit" ret: "int" args: "void *" "size_t" "int" */
#define AOUTM68K_SYS_minherit 273
/* syscall: "lchmod" ret: "int" args: "const char *" "mode_t" */
#define AOUTM68K_SYS_lchmod 274
/* syscall: "lchown" ret: "int" args: "const char *" "uid_t" "gid_t" */
#define AOUTM68K_SYS_lchown 275
/* syscall: "lutimes" ret: "int" args: "const char *" "const struct timeval50 *" */
#define AOUTM68K_SYS_lutimes 276
/* syscall: "__msync13" ret: "int" args: "void *" "size_t" "int" */
#define AOUTM68K_SYS___msync13 277
/* syscall: "__stat13" ret: "int" args: "const char *" "struct aoutm68k_stat *" */
#define AOUTM68K_SYS___stat13 278
/* syscall: "__fstat13" ret: "int" args: "int" "struct aoutm68k_stat *" */
#define AOUTM68K_SYS___fstat13 279
/* syscall: "__lstat13" ret: "int" args: "const char *" "struct aoutm68k_stat *" */
#define AOUTM68K_SYS___lstat13 280
/* syscall: "__sigaltstack14" ret: "int" args: "const struct sigaltstack *" "struct sigaltstack *" */
#define AOUTM68K_SYS___sigaltstack14 281
/* syscall: "__vfork14" ret: "int" args: */
#define AOUTM68K_SYS___vfork14 282
/* syscall: "__posix_chown" ret: "int" args: "const char *" "uid_t" "gid_t" */
#define AOUTM68K_SYS___posix_chown 283
/* syscall: "__posix_fchown" ret: "int" args: "int" "uid_t" "gid_t" */
#define AOUTM68K_SYS___posix_fchown 284
/* syscall: "__posix_lchown" ret: "int" args: "const char *" "uid_t" "gid_t" */
#define AOUTM68K_SYS___posix_lchown 285
/* syscall: "getsid" ret: "pid_t" args: "pid_t" */
#define AOUTM68K_SYS_getsid 286
#if defined(KTRACE) || !defined(_KERNEL)
/* syscall: "fktrace" ret: "int" args: "const int" "int" "int" "int" */
#define AOUTM68K_SYS_fktrace 288
#else
/* 288 is excluded ktrace */
#endif
/* syscall: "preadv" ret: "ssize_t" args: "int" "const struct iovec *" "int" "int" "off_t" */
#define AOUTM68K_SYS_preadv 289
/* syscall: "pwritev" ret: "ssize_t" args: "int" "const struct iovec *" "int" "int" "off_t" */
#define AOUTM68K_SYS_pwritev 290
#if defined(COMPAT_16) || !defined(_KERNEL)
/* syscall: "__sigaction14" ret: "int" args: "int" "const struct sigaction *" "struct sigaction *" */
#define AOUTM68K_SYS___sigaction14 291
#else
/* 291 is excluded compat_16_sys___sigaction14 */
#endif
/* syscall: "__sigpending14" ret: "int" args: "sigset_t *" */
#define AOUTM68K_SYS___sigpending14 292
/* syscall: "__sigprocmask14" ret: "int" args: "int" "const sigset_t *" "sigset_t *" */
#define AOUTM68K_SYS___sigprocmask14 293
/* syscall: "__sigsuspend14" ret: "int" args: "const sigset_t *" */
#define AOUTM68K_SYS___sigsuspend14 294
#if defined(COMPAT_16) || !defined(_KERNEL)
/* syscall: "__sigreturn14" ret: "int" args: "struct sigcontext *" */
#define AOUTM68K_SYS___sigreturn14 295
#else
/* 295 is excluded compat_16_sys___sigreturn14 */
#endif
/* syscall: "__getcwd" ret: "int" args: "char *" "size_t" */
#define AOUTM68K_SYS___getcwd 296
/* syscall: "fchroot" ret: "int" args: "int" */
#define AOUTM68K_SYS_fchroot 297
#if defined(COMPAT_30) || ! defined(_KERNEL)
/* syscall: "fhopen" ret: "int" args: "const struct compat_30_fhandle *" "int" */
#define AOUTM68K_SYS_fhopen 298
#else
/* 298 is excluded compat_30_sys_fhopen */
#endif
/* syscall: "fhstat" ret: "int" args: "const struct compat_30_fhandle *" "struct aoutm68k_stat *" */
#define AOUTM68K_SYS_fhstat 299
#if defined(COMPAT_20) || !defined(_KERNEL)
/* syscall: "fhstatfs" ret: "int" args: "const struct compat_30-fhandle *" "struct statfs12 *" */
#define AOUTM68K_SYS_fhstatfs 300
#else
/* 300 is excluded compat_20_sys_fhstatfs */
#endif
#if defined(SYSVSEM) || !defined(_KERNEL)
/* syscall: "____semctl13" ret: "int" args: "int" "int" "int" "..." */
#define AOUTM68K_SYS_____semctl13 301
#else
/* 301 is excluded ____semctl13 */
#endif
#if defined(SYSVMSG) || !defined(_KERNEL)
/* syscall: "__msgctl13" ret: "int" args: "int" "int" "struct msqid_ds *" */
#define AOUTM68K_SYS___msgctl13 302
#else
/* 302 is excluded __msgctl13 */
#endif
#if defined(SYSVSHM) || !defined(_KERNEL)
/* syscall: "__shmctl13" ret: "int" args: "int" "int" "struct shmid_ds *" */
#define AOUTM68K_SYS___shmctl13 303
#else
/* 303 is excluded __shmctl13 */
#endif
/* syscall: "lchflags" ret: "int" args: "const char *" "u_long" */
#define AOUTM68K_SYS_lchflags 304
/* syscall: "issetugid" ret: "int" args: */
#define AOUTM68K_SYS_issetugid 305
/* syscall: "getcontext" ret: "int" args: "struct __ucontext *" */
#define AOUTM68K_SYS_getcontext 306
/* syscall: "setcontext" ret: "int" args: "const struct __ucontext *" */
#define AOUTM68K_SYS_setcontext 307
#define AOUTM68K_SYS_MAXSYSCALL 308
#define AOUTM68K_SYS_NSYSENT 512
#endif /* _AOUTM68K_SYS_SYSCALL_H_ */
|
8809e84383c57e9ec3f2990c6ea2f5b2dbf43250
|
d38ed5f31d74a79a054ed55dd9123a8d615283b9
|
/third_party/libgit2/src/diff_file.h
|
5da7a7bb85738cf61d5d7bf35e52a6ebd43932d8
|
[
"Apache-2.0",
"GPL-2.0-only",
"LicenseRef-scancode-public-domain",
"GCC-exception-2.0",
"LGPL-2.0-or-later",
"Zlib",
"LGPL-2.1-or-later",
"LGPL-2.1-only",
"ISC",
"MIT"
] |
permissive
|
chigraph/chigraph
|
8ff76a14337da29fa2b2a84d5c35f2eac4156c6e
|
6981bdd6763db54edfe284c1f7d223193584c69a
|
refs/heads/master
| 2022-12-21T13:46:57.273039
| 2022-12-17T18:41:19
| 2022-12-17T18:41:19
| 60,776,831
| 364
| 65
|
Apache-2.0
| 2019-12-13T14:46:43
| 2016-06-09T13:27:37
|
C++
|
UTF-8
|
C
| false
| false
| 1,666
|
h
|
diff_file.h
|
/*
* Copyright (C) the libgit2 contributors. All rights reserved.
*
* This file is part of libgit2, distributed under the GNU GPL v2 with
* a Linking Exception. For full terms see the included COPYING file.
*/
#ifndef INCLUDE_diff_file_h__
#define INCLUDE_diff_file_h__
#include "common.h"
#include "diff.h"
#include "diff_driver.h"
#include "map.h"
/* expanded information for one side of a delta */
typedef struct {
git_repository *repo;
git_diff_file *file;
git_diff_driver *driver;
uint32_t flags;
uint32_t opts_flags;
git_off_t opts_max_size;
git_iterator_type_t src;
const git_blob *blob;
git_map map;
} git_diff_file_content;
extern int git_diff_file_content__init_from_diff(
git_diff_file_content *fc,
git_diff *diff,
git_diff_delta *delta,
bool use_old);
typedef struct {
const git_blob *blob;
const void *buf;
size_t buflen;
const char *as_path;
} git_diff_file_content_src;
#define GIT_DIFF_FILE_CONTENT_SRC__BLOB(BLOB,PATH) { (BLOB),NULL,0,(PATH) }
#define GIT_DIFF_FILE_CONTENT_SRC__BUF(BUF,LEN,PATH) { NULL,(BUF),(LEN),(PATH) }
extern int git_diff_file_content__init_from_src(
git_diff_file_content *fc,
git_repository *repo,
const git_diff_options *opts,
const git_diff_file_content_src *src,
git_diff_file *as_file);
/* this loads the blob/file-on-disk as needed */
extern int git_diff_file_content__load(
git_diff_file_content *fc,
git_diff_options *diff_opts);
/* this releases the blob/file-in-memory */
extern void git_diff_file_content__unload(git_diff_file_content *fc);
/* this unloads and also releases any other resources */
extern void git_diff_file_content__clear(git_diff_file_content *fc);
#endif
|
bd6e324309bbd12114e72b21b3d341592d7132f4
|
2148c987c4b008453d5034ef33cbce886c241a3b
|
/firmware/app_layer_v1/queue.h
|
9340a29b5e9c1139680841f39f19b92569f8f0b5
|
[
"Apache-2.0"
] |
permissive
|
ytai/ioio
|
94cebdb9b97163be2fefb6d9a362d184b2d157c2
|
42f156cd676f14c6a503464bb33feb83353484f6
|
refs/heads/master
| 2023-08-30T23:36:00.823993
| 2023-08-24T05:00:03
| 2023-08-24T05:00:03
| 2,272,409
| 477
| 201
|
Apache-2.0
| 2023-09-11T03:26:53
| 2011-08-26T04:59:57
|
C
|
UTF-8
|
C
| false
| false
| 2,190
|
h
|
queue.h
|
/*
* Copyright 2013 Ytai Ben-Tsvi. All rights reserved.
*
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of
* conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice, this list
* of conditions and the following disclaimer in the documentation and/or other materials
* provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
* FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ARSHAN POURSOHI OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* The views and conclusions contained in the software and documentation are those of the
* authors and should not be interpreted as representing official policies, either expressed
* or implied.
*/
#ifndef QUEUE_H
#define QUEUE_H
#define ARRAY_LEN(x) (sizeof(x) / sizeof((x)[0]))
#define QUEUE(T, SIZE) struct { \
volatile int read_count; \
volatile int write_count; \
T buf[SIZE]; \
}
#define QUEUE_CLEAR(q) (q)->read_count = (q)->write_count = 0
#define QUEUE_SIZE(q) ((unsigned) ((q)->write_count - (q)->read_count))
#define QUEUE_CAPACITY(q) ARRAY_LEN((q)->buf)
#define QUEUE_PEEK(q) (&(q)->buf[(q)->read_count % QUEUE_CAPACITY(q)])
#define QUEUE_POKE(q) (&(q)->buf[(q)->write_count % QUEUE_CAPACITY(q)])
#define QUEUE_PULL(q) (++(q)->read_count)
#define QUEUE_PUSH(q) (++(q)->write_count)
#endif // QUEUE_H
|
e627c9a637a7616caf890e370e834f3cb15636ab
|
1661c43eaf9e44dfe7cce269cfaae62e336036f1
|
/blink/elf.h
|
8a4a76bcad2ac38f6e0561e77c55b50d720e985e
|
[] |
permissive
|
jart/blink
|
3354eaf084e3e85a50372f1a93fc75ff2b9488b1
|
312a027d0908c1b1f9d1e9ebba837da569606b82
|
refs/heads/master
| 2023-08-31T21:30:40.551686
| 2023-08-22T15:42:44
| 2023-08-22T15:42:44
| 561,183,031
| 6,089
| 192
|
ISC
| 2023-08-22T15:42:46
| 2022-11-03T06:07:09
|
C
|
UTF-8
|
C
| false
| false
| 19,206
|
h
|
elf.h
|
#ifndef BLINK_ELF_H_
#define BLINK_ELF_H_
#include <stddef.h>
#include "blink/types.h"
/**
* @fileoverview Executable and Linkable Format Definitions.
*/
#define EI_MAG0_ 0
#define EI_MAG1_ 1
#define EI_MAG2_ 2
#define EI_MAG3_ 3
#define EI_NIDENT_ 16
#define ELFMAG_ "\177ELF"
#define ELFMAG0_ 0x7f
#define ELFMAG1_ 'E'
#define ELFMAG2_ 'L'
#define ELFMAG3_ 'F'
#define SELFMAG_ 4
#define EI_CLASS_ 4
#define ELFCLASSNONE_ 0
#define ELFCLASS32_ 1
#define ELFCLASS64_ 2
#define ELFCLASSNUM_ 3
#define EI_DATA_ 5
#define ELFDATANONE_ 0
#define ELFDATA2LSB_ 1
#define ELFDATA2MSB_ 2
#define ELFDATANUM_ 3
#define EI_VERSION_ 6
#define EI_OSABI_ 7
#define ELFOSABI_NONE_ 0
#define ELFOSABI_SYSV_ 0
#define ELFOSABI_HPUX_ 1
#define ELFOSABI_NETBSD_ 2
#define ELFOSABI_LINUX_ 3
#define ELFOSABI_GNU_ 3
#define ELFOSABI_SOLARIS_ 6
#define ELFOSABI_AIX_ 7
#define ELFOSABI_IRIX_ 8
#define ELFOSABI_FREEBSD_ 9
#define ELFOSABI_TRU64_ 10
#define ELFOSABI_MODESTO_ 11
#define ELFOSABI_OPENBSD_ 12
#define ELFOSABI_ARM_ 97
#define ELFOSABI_STANDALONE_ 255
#define EI_ABIVERSION_ 8
#define EI_PAD_ 9
#define ET_NONE_ 0
#define ET_REL_ 1
#define ET_EXEC_ 2
#define ET_DYN_ 3
#define ET_CORE_ 4
#define ET_NUM_ 5
#define ET_LOOS_ 0xfe00
#define ET_HIOS_ 0xfeff
#define ET_LOPROC_ 0xff00
#define ET_HIPROC_ 0xffff
#define EM_NONE_ 0
#define EM_M32_ 1
#define EM_386_ 3
#define EM_S390_ 22
#define EM_ARM_ 40
#define EM_NEXGEN32E_ 62
#define EM_X86_64_ EM_NEXGEN32E
#define EM_IA32E_ EM_NEXGEN32E
#define EM_AMD64_ EM_NEXGEN32E
#define EM_PDP11_ 65
#define EM_CRAYNV2_ 172
#define EM_L10M_ 180
#define EM_K10M_ 181
#define EM_AARCH64_ 183
#define EM_CUDA_ 190
#define EM_Z80_ 220
#define EM_RISCV_ 243
#define EM_BPF_ 247
#define GRP_COMDAT_ 0x1
#define STN_UNDEF_ 0
#define EV_NONE_ 0
#define EV_CURRENT_ 1
#define EV_NUM_ 2
#define SYMINFO_NONE_ 0
#define SYMINFO_CURRENT_ 1
#define SYMINFO_NUM_ 2
#define SYMINFO_BT_SELF_ 0xffff
#define SYMINFO_BT_PARENT_ 0xfffe
#define SYMINFO_BT_LOWRESERVE_ 0xff00
#define SYMINFO_FLG_DIRECT_ 0x0001
#define SYMINFO_FLG_PASSTHRU_ 0x0002
#define SYMINFO_FLG_COPY_ 0x0004
#define SYMINFO_FLG_LAZYLOAD_ 0x0008
#define PT_NULL_ 0
#define PT_LOAD_ 1
#define PT_DYNAMIC_ 2
#define PT_INTERP_ 3
#define PT_NOTE_ 4
#define PT_SHLIB_ 5
#define PT_PHDR_ 6
#define PT_TLS_ 7
#define PT_NUM_ 8
#define PT_LOOS_ 0x60000000
#define PT_GNU_EH_FRAME_ 0x6474e550
#define PT_GNU_STACK_ 0x6474e551
#define PT_GNU_RELRO_ 0x6474e552
#define PT_OPENBSD_RANDOMIZE_ 0x65a3dbe6
#define PT_LOSUNW_ 0x6ffffffa
#define PT_SUNWBSS_ 0x6ffffffa
#define PT_SUNWSTACK_ 0x6ffffffb
#define PT_HISUNW_ 0x6fffffff
#define PT_HIOS_ 0x6fffffff
#define PT_LOPROC_ 0x70000000
#define PT_HIPROC_ 0x7fffffff
#define PN_XNUM_ 0xffff
#define PF_X_ 1
#define PF_W_ 2
#define PF_R_ 4
#define PF_MASKOS_ 0x0ff00000
#define PF_MASKPROC_ 0xf0000000
#define R_X86_64_NONE_ 0
#define R_X86_64_64_ 1
#define R_X86_64_PC32_ 2
#define R_X86_64_GOT32_ 3
#define R_X86_64_PLT32_ 4
#define R_X86_64_COPY_ 5
#define R_X86_64_GLOB_DAT_ 6
#define R_X86_64_JUMP_SLOT_ 7
#define R_X86_64_RELATIVE_ 8
#define R_X86_64_GOTPCREL_ 9
#define R_X86_64_32_ 10
#define R_X86_64_32S_ 11
#define R_X86_64_16_ 12
#define R_X86_64_PC16_ 13
#define R_X86_64_8_ 14
#define R_X86_64_PC8_ 15
#define R_X86_64_DTPMOD64_ 16
#define R_X86_64_DTPOFF64_ 17
#define R_X86_64_TPOFF64_ 18
#define R_X86_64_TLSGD_ 19
#define R_X86_64_TLSLD_ 20
#define R_X86_64_DTPOFF32_ 21
#define R_X86_64_GOTTPOFF_ 22
#define R_X86_64_TPOFF32_ 23
#define R_X86_64_PC64_ 24
#define R_X86_64_GOTOFF64_ 25
#define R_X86_64_GOTPC32_ 26
#define R_X86_64_GOT64_ 27
#define R_X86_64_GOTPCREL64_ 28
#define R_X86_64_GOTPC64_ 29
#define R_X86_64_GOTPLT64_ 30
#define R_X86_64_PLTOFF64_ 31
#define R_X86_64_SIZE32_ 32
#define R_X86_64_SIZE64_ 33
#define R_X86_64_GOTPC32_TLSDESC_ 34
#define R_X86_64_TLSDESC_CALL_ 35
#define R_X86_64_TLSDESC_ 36
#define R_X86_64_IRELATIVE_ 37
#define R_X86_64_RELATIVE64_ 38
#define R_X86_64_GOTPCRELX_ 41 // 6 bytes
#define R_X86_64_REX_GOTPCRELX_ 42 // 7 bytes
#define R_X86_64_NUM_ 43
#define STB_LOCAL_ 0
#define STB_GLOBAL_ 1
#define STB_WEAK_ 2
#define STB_NUM_ 3
#define STB_LOOS_ 10
#define STB_GNU_UNIQUE_ 10
#define STB_HIOS_ 12
#define STB_LOPROC_ 13
#define STB_HIPROC_ 15
#define STT_NOTYPE_ 0
#define STT_OBJECT_ 1
#define STT_FUNC_ 2
#define STT_SECTION_ 3
#define STT_FILE_ 4
#define STT_COMMON_ 5
#define STT_TLS_ 6
#define STT_NUM_ 7
#define STT_LOOS_ 10
#define STT_GNU_IFUNC_ 10
#define STT_HIOS_ 12
#define STT_LOPROC_ 13
#define STT_HIPROC_ 15
#define STV_DEFAULT_ 0
#define STV_INTERNAL_ 1
#define STV_HIDDEN_ 2
#define STV_PROTECTED_ 3
#define SHN_UNDEF_ 0
#define SHN_LORESERVE_ 0xff00
#define SHN_LOPROC_ 0xff00
#define SHN_BEFORE_ 0xff00
#define SHN_AFTER_ 0xff01
#define SHN_HIPROC_ 0xff1f
#define SHN_LOOS_ 0xff20
#define SHN_HIOS_ 0xff3f
#define SHN_ABS_ 0xfff1
#define SHN_COMMON_ 0xfff2
#define SHN_XINDEX_ 0xffff
#define SHN_HIRESERVE_ 0xffff
#define SHF_WRITE_ (1 << 0)
#define SHF_ALLOC_ (1 << 1)
#define SHF_EXECINSTR_ (1 << 2)
#define SHF_MERGE_ (1 << 4)
#define SHF_STRINGS_ (1 << 5)
#define SHF_INFO_LINK_ (1 << 6)
#define SHF_LINK_ORDER_ (1 << 7)
#define SHF_OS_NONCONFORMING_ (1 << 8)
#define SHF_GROUP_ (1 << 9)
#define SHF_TLS_ (1 << 10)
#define SHF_COMPRESSED_ (1 << 11)
#define SHF_MASKOS_ 0x0ff00000
#define SHF_MASKPROC_ 0xf0000000
#define SHF_ORDERED_ (1 << 30)
#define SHF_EXCLUDE_ (1U << 31)
#define ELFCOMPRESS_ZLIB_ 1
#define ELFCOMPRESS_LOOS_ 0x60000000
#define ELFCOMPRESS_HIOS_ 0x6fffffff
#define ELFCOMPRESS_LOPROC_ 0x70000000
#define ELFCOMPRESS_HIPROC_ 0x7fffffff
#define SHT_NULL_ 0
#define SHT_PROGBITS_ 1
#define SHT_SYMTAB_ 2
#define SHT_STRTAB_ 3
#define SHT_RELA_ 4
#define SHT_HASH_ 5
#define SHT_DYNAMIC_ 6
#define SHT_NOTE_ 7
#define SHT_NOBITS_ 8
#define SHT_REL_ 9
#define SHT_SHLIB_ 10
#define SHT_DYNSYM_ 11
#define SHT_INIT_ARRAY_ 14
#define SHT_FINI_ARRAY_ 15
#define SHT_PREINIT_ARRAY_ 16
#define SHT_GROUP_ 17
#define SHT_SYMTAB_SHNDX_ 18
#define SHT_NUM_ 19
#define SHT_LOOS_ 0x60000000
#define SHT_GNU_ATTRIBUTES_ 0x6ffffff5
#define SHT_GNU_HASH_ 0x6ffffff6
#define SHT_GNU_LIBLIST_ 0x6ffffff7
#define SHT_CHECKSUM_ 0x6ffffff8
#define SHT_LOSUNW_ 0x6ffffffa
#define SHT_SUNW_move_ 0x6ffffffa
#define SHT_SUNW_COMDAT_ 0x6ffffffb
#define SHT_SUNW_syminfo_ 0x6ffffffc
#define SHT_GNU_verdef_ 0x6ffffffd
#define SHT_GNU_verneed_ 0x6ffffffe
#define SHT_GNU_versym_ 0x6fffffff
#define SHT_HISUNW_ 0x6fffffff
#define SHT_HIOS_ 0x6fffffff
#define SHT_LOPROC_ 0x70000000
#define SHT_HIPROC_ 0x7fffffff
#define SHT_LOUSER_ 0x80000000
#define SHT_HIUSER_ 0x8fffffff
#define DT_NULL_ 0
#define DT_NEEDED_ 1
#define DT_PLTRELSZ_ 2
#define DT_PLTGOT_ 3
#define DT_HASH_ 4
#define DT_STRTAB_ 5
#define DT_SYMTAB_ 6
#define DT_RELA_ 7
#define DT_RELASZ_ 8
#define DT_RELAENT_ 9
#define DT_STRSZ_ 10
#define DT_SYMENT_ 11
#define DT_INIT_ 12
#define DT_FINI_ 13
#define DT_SONAME_ 14
#define DT_RPATH_ 15
#define DT_SYMBOLIC_ 16
#define DT_REL_ 17
#define DT_RELSZ_ 18
#define DT_RELENT_ 19
#define DT_PLTREL_ 20
#define DT_DEBUG_ 21
#define DT_TEXTREL_ 22
#define DT_JMPREL_ 23
#define DT_BIND_NOW_ 24
#define DT_INIT_ARRAY_ 25
#define DT_FINI_ARRAY_ 26
#define DT_INIT_ARRAYSZ_ 27
#define DT_FINI_ARRAYSZ_ 28
#define DT_RUNPATH_ 29
#define DT_FLAGS_ 30
#define DT_ENCODING_ 32
#define DT_PREINIT_ARRAY_ 32
#define DT_PREINIT_ARRAYSZ_ 33
#define DT_SYMTAB_SHNDX_ 34
#define DT_NUM_ 35
#define DT_LOOS_ 0x6000000d
#define DT_HIOS_ 0x6ffff000
#define DT_LOPROC_ 0x70000000
#define DT_HIPROC_ 0x7fffffff
#define DT_VALRNGLO_ 0x6ffffd00
#define DT_GNU_PRELINKED_ 0x6ffffdf5
#define DT_GNU_CONFLICTSZ_ 0x6ffffdf6
#define DT_GNU_LIBLISTSZ_ 0x6ffffdf7
#define DT_CHECKSUM_ 0x6ffffdf8
#define DT_PLTPADSZ_ 0x6ffffdf9
#define DT_MOVEENT_ 0x6ffffdfa
#define DT_MOVESZ_ 0x6ffffdfb
#define DT_FEATURE_1_ 0x6ffffdfc
#define DT_POSFLAG_1_ 0x6ffffdfd
#define DT_SYMINSZ_ 0x6ffffdfe
#define DT_SYMINENT_ 0x6ffffdff
#define DT_VALRNGHI_ 0x6ffffdff
#define DT_VALTAGIDX_(tag) (DT_VALRNGHI - (tag))
#define DT_VALNUM_ 12
#define DT_ADDRRNGLO_ 0x6ffffe00
#define DT_GNU_HASH_ 0x6ffffef5
#define DT_TLSDESC_PLT_ 0x6ffffef6
#define DT_TLSDESC_GOT_ 0x6ffffef7
#define DT_GNU_CONFLICT_ 0x6ffffef8
#define DT_GNU_LIBLIST_ 0x6ffffef9
#define DT_CONFIG_ 0x6ffffefa
#define DT_DEPAUDIT_ 0x6ffffefb
#define DT_AUDIT_ 0x6ffffefc
#define DT_PLTPAD_ 0x6ffffefd
#define DT_MOVETAB_ 0x6ffffefe
#define DT_SYMINFO_ 0x6ffffeff
#define DT_ADDRRNGHI_ 0x6ffffeff
#define DT_ADDRTAGIDX_(tag) (DT_ADDRRNGHI - (tag))
#define DT_ADDRNUM_ 11
#define DT_VERSYM_ 0x6ffffff0
#define DT_RELACOUNT_ 0x6ffffff9
#define DT_RELCOUNT_ 0x6ffffffa
#define DT_FLAGS_1_ 0x6ffffffb
#define DT_VERDEF_ 0x6ffffffc
#define DT_VERDEFNUM_ 0x6ffffffd
#define DT_VERNEED_ 0x6ffffffe
#define DT_VERNEEDNUM_ 0x6fffffff
#define DT_VERSIONTAGIDX_(tag) (DT_VERNEEDNUM - (tag))
#define DT_VERSIONTAGNUM_ 16
#define DT_AUXILIARY_ 0x7ffffffd
#define DT_FILTER_ 0x7fffffff
#define DT_EXTRATAGIDX_(tag) ((Elf32_Word) - ((Elf32_Sword)(tag) << 1 >> 1) - 1)
#define DT_EXTRANUM_ 3
#define VER_NEED_NONE_ 0
#define VER_NEED_CURRENT_ 1
#define VER_NEED_NUM_ 2
#define VER_FLG_WEAK_ 0x2
#define ELF_NOTE_SOLARIS_ "SUNW Solaris"
#define ELF_NOTE_GNU_ "GNU"
#define ELF_NOTE_PAGESIZE_HINT_ 1
#define ELF_NOTE_ABI_ NT_GNU_ABI_TAG
#define ELF_NOTE_OS_LINUX_ 0
#define ELF_NOTE_OS_GNU_ 1
#define ELF_NOTE_OS_SOLARIS2_ 2
#define ELF_NOTE_OS_FREEBSD_ 3
#define NT_GNU_ABI_TAG_ 1
#define NT_GNU_BUILD_ID_ 3
#define NT_GNU_GOLD_VERSION_ 4
#define EF_CPU32_ 0x00810000
#define DF_ORIGIN_ 0x00000001
#define DF_SYMBOLIC_ 0x00000002
#define DF_TEXTREL_ 0x00000004
#define DF_BIND_NOW_ 0x00000008
#define DF_STATIC_TLS_ 0x00000010
#define DF_1_NOW_ 0x00000001
#define DF_1_GLOBAL_ 0x00000002
#define DF_1_GROUP_ 0x00000004
#define DF_1_NODELETE_ 0x00000008
#define DF_1_LOADFLTR_ 0x00000010
#define DF_1_INITFIRST_ 0x00000020
#define DF_1_NOOPEN_ 0x00000040
#define DF_1_ORIGIN_ 0x00000080
#define DF_1_DIRECT_ 0x00000100
#define DF_1_TRANS_ 0x00000200
#define DF_1_INTERPOSE_ 0x00000400
#define DF_1_NODEFLIB_ 0x00000800
#define DF_1_NODUMP_ 0x00001000
#define DF_1_CONFALT_ 0x00002000
#define DF_1_ENDFILTEE_ 0x00004000
#define DF_1_DISPRELDNE_ 0x00008000
#define DF_1_DISPRELPND_ 0x00010000
#define DF_1_NODIRECT_ 0x00020000
#define DF_1_IGNMULDEF_ 0x00040000
#define DF_1_NOKSYMS_ 0x00080000
#define DF_1_NOHDR_ 0x00100000
#define DF_1_EDITED_ 0x00200000
#define DF_1_NORELOC_ 0x00400000
#define DF_1_SYMINTPOSE_ 0x00800000
#define DF_1_GLOBAUDIT_ 0x01000000
#define DF_1_SINGLETON_ 0x02000000
#define DF_1_STUB_ 0x04000000
#define DF_1_PIE_ 0x08000000
#define DTF_1_PARINIT_ 0x00000001
#define DTF_1_CONFEXP_ 0x00000002
#define DF_P1_LAZYLOAD_ 0x00000001
#define DF_P1_GROUPPERM_ 0x00000002
#define ELF64_ST_BIND_(val) (((u8)(val)) >> 4)
#define ELF64_ST_TYPE_(val) ((val)&0xf)
#define ELF64_ST_INFO_(bind, type) (((bind) << 4) + ((type)&0xf))
#define ELF64_ST_VISIBILITY_(o) ((o)&0x03)
#define ELF64_R_SYM_(i) ((i) >> 32)
#define ELF64_R_TYPE_(i) ((i)&0xffffffff)
#define ELF64_R_INFO_(sym, type) ((((u64)(sym)) << 32) + (type))
#define ELF64_M_SYM_(info) ((info) >> 8)
#define ELF64_M_SIZE_(info) ((u8)(info))
#define ELF64_M_INFO_(sym, size) (((sym) << 8) + (u8)(size))
#define NT_PRSTATUS_ 1
#define NT_PRFPREG_ 2
#define NT_FPREGSET_ 2
#define NT_PRPSINFO_ 3
#define NT_PRXREG_ 4
#define NT_TASKSTRUCT_ 4
#define NT_PLATFORM_ 5
#define NT_AUXV_ 6
#define NT_GWINDOWS_ 7
#define NT_ASRS_ 8
#define NT_PSTATUS_ 10
#define NT_PSINFO_ 13
#define NT_PRCRED_ 14
#define NT_UTSNAME_ 15
#define NT_LWPSTATUS_ 16
#define NT_LWPSINFO_ 17
#define NT_PRFPXREG_ 20
#define NT_SIGINFO_ 0x53494749
#define NT_FILE_ 0x46494c45
#define NT_PRXFPREG_ 0x46e62b7f
#define NT_PPC_VMX_ 0x100
#define NT_PPC_SPE_ 0x101
#define NT_PPC_VSX_ 0x102
#define NT_PPC_TAR_ 0x103
#define NT_PPC_PPR_ 0x104
#define NT_PPC_DSCR_ 0x105
#define NT_PPC_EBB_ 0x106
#define NT_PPC_PMU_ 0x107
#define NT_PPC_TM_CGPR_ 0x108
#define NT_PPC_TM_CFPR_ 0x109
#define NT_PPC_TM_CVMX_ 0x10a
#define NT_PPC_TM_CVSX_ 0x10b
#define NT_PPC_TM_SPR_ 0x10c
#define NT_PPC_TM_CTAR_ 0x10d
#define NT_PPC_TM_CPPR_ 0x10e
#define NT_PPC_TM_CDSCR_ 0x10f
#define NT_X86_XSTATE_ 0x202
#define NT_S390_HIGH_GPRS_ 0x300
#define NT_S390_TIMER_ 0x301
#define NT_S390_TODCMP_ 0x302
#define NT_S390_TODPREG_ 0x303
#define NT_S390_CTRS_ 0x304
#define NT_S390_PREFIX_ 0x305
#define NT_S390_LAST_BREAK_ 0x306
#define NT_S390_SYSTEM_CALL_ 0x307
#define NT_S390_TDB_ 0x308
#define NT_S390_VXRS_LOW_ 0x309
#define NT_S390_VXRS_HIGH_ 0x30a
#define NT_S390_GS_CB_ 0x30b
#define NT_S390_GS_BC_ 0x30c
#define NT_S390_RI_CB_ 0x30d
#define NT_ARM_VFP_ 0x400
#define NT_ARM_TLS_ 0x401
#define NT_ARM_HW_BREAK_ 0x402
#define NT_ARM_HW_WATCH_ 0x403
#define NT_ARM_SYSTEM_CALL_ 0x404
#define NT_ARM_SVE_ 0x405
#define NT_ARM_PAC_MASK_ 0x406
#define NT_METAG_CBUF_ 0x500
#define NT_METAG_RPIPE_ 0x501
#define NT_METAG_TLS_ 0x502
#define NT_ARC_V2_ 0x600
#define NT_VMCOREDD_ 0x700
#define NT_VERSION_ 1
#define VER_DEF_NONE_ 0
#define VER_DEF_CURRENT_ 1
#define VER_DEF_NUM_ 2
#define VER_FLG_BASE_ 0x1
#define VER_FLG_WEAK_ 0x2
#define VER_NDX_LOCAL_ 0
#define VER_NDX_GLOBAL_ 1
#define VER_NDX_LORESERVE_ 0xff00
#define VER_NDX_ELIMINATE_ 0xff01
#define LL_NONE_ 0
#define LL_EXACT_MATCH_ (1 << 0)
#define LL_IGNORE_INT_VER_ (1 << 1)
#define LL_REQUIRE_MINOR_ (1 << 2)
#define LL_EXPORTS_ (1 << 3)
#define LL_DELAY_LOAD_ (1 << 4)
#define LL_DELTA_ (1 << 5)
#define R_BPF_NONE_ 0
#define R_BPF_MAP_FD_ 1
typedef struct Elf64_Ehdr_ {
u8 ident[EI_NIDENT_];
u8 type[2]; // u16
u8 machine[2]; // u16
u8 version[4]; // u32
u8 entry[8]; // u64
u8 phoff[8]; // u64
u8 shoff[8]; // u64
u8 flags[4]; // u32
u8 ehsize[2]; // u16
u8 phentsize[2]; // u16
u8 phnum[2]; // u16
u8 shentsize[2]; // u16
u8 shnum[2]; // u16
u8 shstrndx[2]; // u16
} Elf64_Ehdr_;
typedef struct Elf64_Phdr_ {
u8 type[4]; // u32
u8 flags[4]; // u32
u8 offset[8]; // u64
u8 vaddr[8]; // u64
u8 paddr[8]; // u64
u8 filesz[8]; // u64
u8 memsz[8]; // u64
u8 align[8]; // u64
} Elf64_Phdr_;
typedef struct Elf64_Shdr_ {
u8 name[4]; // u32
u8 type[4]; // u32
u8 flags[8]; // u64
u8 addr[8]; // u64
u8 offset[8]; // u64
u8 size[8]; // u64
u8 link[4]; // u32
u8 info[4]; // u32
u8 addralign[8]; // u64
u8 entsize[8]; // u64
} Elf64_Shdr_;
typedef struct Elf64_Rel_ {
u8 offset[8]; // u64
u8 info[8]; // u64
} Elf64_Rel_;
typedef struct Elf64_Rela_ {
u8 offset[8]; // u64
u8 info[8]; // u64
u8 addend[8]; // i64
} Elf64_Rela_;
typedef struct Elf64_Sym_ {
u8 name[4]; // u32
u8 info;
u8 other;
u8 shndx[2]; // u16
u8 value[8]; // u64
u8 size[8]; // u64
} Elf64_Sym_;
typedef struct Elf64_Syminfo_ {
u8 boundto[2]; // u16
u8 flags[2]; // u16
} Elf64_Syminfo_;
typedef struct Elf64_Chdr_ {
u8 type[4]; // u32
u8 reserved[4]; // u32
u8 size[8]; // u64
u8 addralign[8]; // u64
} Elf64_Chdr_;
typedef struct Elf64_Dyn_ {
u8 tag[8]; // i64
u8 val[8]; // u64
} Elf64_Dyn_;
typedef struct Elf64_Lib_ {
u8 name[4]; // u32
u8 time_stamp[4]; // u32
u8 checksum[4]; // u32
u8 version[4]; // u32
u8 flags[4]; // u32
} Elf64_Lib_;
typedef struct Elf64_Move_ {
u8 value[8]; // u64
u8 info[8]; // u64
u8 poffset[8]; // u64
u8 repeat[2]; // u16
u8 stride[2]; // u16
} Elf64_Move_;
typedef struct Elf64_Nhdr_ {
u8 namesz[4]; // u32
u8 descsz[4]; // u32
u8 type[4]; // u32
} Elf64_Nhdr_;
Elf64_Phdr_ *GetElfProgramHeaderAddress(const Elf64_Ehdr_ *, size_t, u16);
char *GetElfStringTable(const Elf64_Ehdr_ *, size_t);
Elf64_Shdr_ *GetElfSectionHeaderAddress(const Elf64_Ehdr_ *, size_t, u16);
const char *GetElfSectionName(const Elf64_Ehdr_ *, size_t, Elf64_Shdr_ *);
char *GetElfString(const Elf64_Ehdr_ *, size_t, const char *, size_t);
char *GetElfSectionNameStringTable(const Elf64_Ehdr_ *, size_t);
void *GetElfSectionAddress(const Elf64_Ehdr_ *, size_t, const Elf64_Shdr_ *);
Elf64_Sym_ *GetElfSymbolTable(const Elf64_Ehdr_ *, size_t, int *);
i64 GetElfMemorySize(const Elf64_Ehdr_ *, size_t, i64 *);
#endif /* BLINK_ELF_H_ */
|
0358c28e0cc652f7cde2c7e5ea5830ab1bfaae74
|
e65a4dbfbfb0e54e59787ba7741efee12f7687f3
|
/www/apache24/files/extra-patch-server_buildmark.c
|
a39774d1851f5a2d7003b97c1d3a60ed0b173be5
|
[
"BSD-2-Clause"
] |
permissive
|
freebsd/freebsd-ports
|
86f2e89d43913412c4f6b2be3e255bc0945eac12
|
605a2983f245ac63f5420e023e7dce56898ad801
|
refs/heads/main
| 2023-08-30T21:46:28.720924
| 2023-08-30T19:33:44
| 2023-08-30T19:33:44
| 1,803,961
| 916
| 918
|
NOASSERTION
| 2023-09-08T04:06:26
| 2011-05-26T11:15:35
| null |
UTF-8
|
C
| false
| false
| 489
|
c
|
extra-patch-server_buildmark.c
|
# disable build time stamp in favor of reproducible build
# except building with DEBUG
==============================================================
--- server/buildmark.c.orig 2016-07-03 16:09:18 UTC
+++ server/buildmark.c
@@ -17,6 +17,9 @@
#include "ap_config.h"
#include "httpd.h"
+/* Allow Reproducible build, do not include build time information */
+#undef __DATE__
+
#if defined(__DATE__) && defined(__TIME__)
static const char server_built[] = __DATE__ " " __TIME__;
#else
|
f1da530ceaa04ecf90a0779abb88521bbaab2809
|
c8b39acfd4a857dc15ed3375e0d93e75fa3f1f64
|
/Engine/Source/Runtime/CoreUObject/Public/UObject/UObjectHash.h
|
82386094ac7be3618b288dd6452ac9d15ea08f06
|
[
"MIT",
"LicenseRef-scancode-proprietary-license"
] |
permissive
|
windystrife/UnrealEngine_NVIDIAGameWorks
|
c3c7863083653caf1bc67d3ef104fb4b9f302e2a
|
b50e6338a7c5b26374d66306ebc7807541ff815e
|
refs/heads/4.18-GameWorks
| 2023-03-11T02:50:08.471040
| 2022-01-13T20:50:29
| 2022-01-13T20:50:29
| 124,100,479
| 262
| 179
|
MIT
| 2022-12-16T05:36:38
| 2018-03-06T15:44:09
|
C++
|
UTF-8
|
C
| false
| false
| 7,398
|
h
|
UObjectHash.h
|
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
/*=============================================================================
UObjectHash.h: Unreal object name hashes
=============================================================================*/
#pragma once
#include "CoreMinimal.h"
#include "Stats/Stats.h"
#include "UObject/ObjectMacros.h"
#include "UObject/UObjectArray.h"
DECLARE_STATS_GROUP_VERBOSE(TEXT("UObject Hash"), STATGROUP_UObjectHash, STATCAT_Advanced);
#if UE_GC_TRACK_OBJ_AVAILABLE
DECLARE_DWORD_COUNTER_STAT_EXTERN(TEXT("NumObjects"), STAT_Hash_NumObjects, STATGROUP_UObjectHash, COREUOBJECT_API);
#endif
/**
* Private internal version of StaticFindObjectFast that allows using 0 exclusion flags.
*
* @param Class The to be found object's class
* @param InOuter The to be found object's outer
* @param InName The to be found object's class
* @param ExactClass Whether to require an exact match with the passed in class
* @param AnyPackage Whether to look in any package
* @param ExclusiveFlags Ignores objects that contain any of the specified exclusive flags
* @param ExclusiveInternalFlags Ignores objects that contain any of the specified internal exclusive flags
* @return Returns a pointer to the found object or NULL if none could be found
*/
UObject* StaticFindObjectFastInternal(UClass* Class, UObject* InOuter, FName InName, bool ExactClass = false, bool AnyPackage = false, EObjectFlags ExclusiveFlags = RF_NoFlags, EInternalObjectFlags ExclusiveInternalFlags = EInternalObjectFlags::None);
/**
* Variation of StaticFindObjectFast that uses explicit path.
*
* @param ObjectClass The to be found object's class
* @param ObjectName The to be found object's class
* @param ObjectPathName Full path name for the object to search for
* @param ExactClass Whether to require an exact match with the passed in class
* @param ExclusiveFlags Ignores objects that contain any of the specified exclusive flags
* @return Returns a pointer to the found object or NULL if none could be found
*/
UObject* StaticFindObjectFastExplicit(UClass* ObjectClass, FName ObjectName, const FString& ObjectPathName, bool bExactClass, EObjectFlags ExcludeFlags = RF_NoFlags);
/**
* Return all objects with a given outer
*
* @param Outer Outer to search for
* @param Results Returned results
* @param bIncludeNestedObjects If true, then things whose outers directly or indirectly have Outer as an outer are included, these are the nested objects.
* @param ExclusionFlags Specifies flags to use as a filter for which objects to return
* @param ExclusiveInternalFlags Specifies internal flags to use as a filter for which objects to return
*/
COREUOBJECT_API void GetObjectsWithOuter(const class UObjectBase* Outer, TArray<UObject *>& Results, bool bIncludeNestedObjects = true, EObjectFlags ExclusionFlags = RF_NoFlags, EInternalObjectFlags ExclusionInternalFlags = EInternalObjectFlags::None);
/**
* Performs an operation on all objects with a given outer
*
* @param Outer Outer to search for
* @param Operation Function to be called for each object
* @param bIncludeNestedObjects If true, then things whose outers directly or indirectly have Outer as an outer are included, these are the nested objects.
* @param ExclusionFlags Specifies flags to use as a filter for which objects to return
* @param ExclusiveInternalFlags Specifies internal flags to use as a filter for which objects to return
*/
COREUOBJECT_API void ForEachObjectWithOuter(const class UObjectBase* Outer, TFunctionRef<void(UObject*)> Operation, bool bIncludeNestedObjects = true, EObjectFlags ExclusionFlags = RF_NoFlags, EInternalObjectFlags ExclusionInternalFlags = EInternalObjectFlags::None);
/**
* Find an objects with a given name and or class within an outer
*
* @param Outer Outer to search for
* @param ClassToLookFor if NULL, ignore this parameter, otherwise require the returned object have this class
* @param NameToLookFor if NAME_None, ignore this parameter, otherwise require the returned object have this name
*/
COREUOBJECT_API class UObjectBase* FindObjectWithOuter(class UObjectBase* Outer, class UClass* ClassToLookFor = NULL, FName NameToLookFor = NAME_None);
/**
* Returns an array of objects of a specific class. Optionally, results can include objects of derived classes as well.
*
* @param ClassToLookFor Class of the objects to return.
* @param Results An output list of objects of the specified class.
* @param bIncludeDerivedClasses If true, the results will include objects of child classes as well.
* @param AdditionalExcludeFlags Objects with any of these flags will be excluded from the results.
* @param ExclusiveInternalFlags Specifies internal flags to use as a filter for which objects to return
*/
COREUOBJECT_API void GetObjectsOfClass(UClass* ClassToLookFor, TArray<UObject *>& Results, bool bIncludeDerivedClasses = true, EObjectFlags ExcludeFlags = RF_ClassDefaultObject, EInternalObjectFlags ExclusionInternalFlags = EInternalObjectFlags::None);
/**
* Performs an operation on all objects with a given outer
*
* @param Outer Outer to search for
* @param Operation Function to be called for each object
* @param bIncludeDerivedClasses If true, the results will include objects of child classes as well.
* @param AdditionalExcludeFlags Objects with any of these flags will be excluded from the results.
*/
COREUOBJECT_API void ForEachObjectOfClass(UClass* ClassToLookFor, TFunctionRef<void(UObject*)> Operation, bool bIncludeDerivedClasses = true, EObjectFlags ExcludeFlags = RF_ClassDefaultObject, EInternalObjectFlags ExclusionInternalFlags = EInternalObjectFlags::None);
/**
* Returns an array of classes that were derived from the specified class.
*
* @param ClassToLookFor The parent class of the classes to return.
* @param Results An output list of child classes of the specified parent class.
* @param bRecursive If true, the results will include children of the children classes, recursively. Otherwise, only direct decedents will be included.
*/
COREUOBJECT_API void GetDerivedClasses(UClass* ClassToLookFor, TArray<UClass *>& Results, bool bRecursive = true);
/**
* Add an object to the name hash tables
*
* @param Object Object to add to the hash tables
*/
void HashObject(class UObjectBase* Object);
/**
* Remove an object to the name hash tables
*
* @param Object Object to remove from the hash tables
*/
void UnhashObject(class UObjectBase* Object);
/**
* Logs out information about the object hash for debug purposes
*
* @param Ar the archive to write the log data to
* @param bShowHashBucketCollisionInfo whether to log each bucket's collision count
*/
COREUOBJECT_API void LogHashStatistics(FOutputDevice& Ar, const bool bShowHashBucketCollisionInfo);
/**
* Logs out information about the outer object hash for debug purposes
*
* @param Ar the archive to write the log data to
* @param bShowHashBucketCollisionInfo whether to log each bucket's collision count
*/
COREUOBJECT_API void LogHashOuterStatistics(FOutputDevice& Ar, const bool bShowHashBucketCollisionInfo);
/**
* Adds a uobject to the global array which is used for uobject iteration
*
* @param Object Object to allocate an index for
*/
void AllocateUObjectIndexForCurrentThread(class UObjectBase* Object);
|
c7101609ae6768a39ba727506dd0aa94e275901f
|
29f2c40392489fc1656010f2c9b384fd0b090847
|
/test/synth/07_mem_unsat.c
|
d6fc36e01c8fca90c6c1de4e0aa4857df388f822
|
[
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-warranty-disclaimer"
] |
permissive
|
seahorn/seahorn
|
6498777c0d12716379035c0bc102b9baec6f28f9
|
2bab7831960766a0a16f149adcdce55f0651eb8f
|
refs/heads/main
| 2023-08-25T13:51:48.354660
| 2023-08-11T00:48:27
| 2023-08-14T16:43:13
| 31,487,486
| 423
| 126
|
NOASSERTION
| 2023-09-08T21:30:09
| 2015-03-01T05:08:17
|
C
|
UTF-8
|
C
| false
| false
| 2,014
|
c
|
07_mem_unsat.c
|
// RUN: %sea smt %s --step=small -o %t.sm.smt2
// RUN: %z3 %t.sm.smt2 fp.spacer.order_children=2 2>&1 | OutputCheck %s
//
// RUN: %sea smt %s --step=small --inline --log=inline -o %t.sm.inline.smt2
// RUN: %z3 %t.sm.inline.smt2 fp.spacer.order_children=2 2>&1 | OutputCheck %s
//
// RUN: %sea smt %s --step=large -o %t.lg.smt2
// RUN: %z3 %t.lg.smt2 fp.spacer.order_children=2 2>&1 | OutputCheck %s
//
// RUN: %sea smt %s --step=large --inline -o %t.lg.inline.smt2
// RUN: %z3 %t.lg.inline.smt2 fp.spacer.order_children=2 2>&1 | OutputCheck %s
//
// CHECK: ^unsat$
#include "seahorn/seasynth.h"
extern int nd1();
extern int nd2();
extern int nd3();
extern int nd4();
extern int nd5();
// Compositional invariant.
extern bool infer(int owner, int sum, int i, int v);
bool PARTIAL_FN inv(int owner, int sum, int i, int v) {
if (v == 0) return 1;
return infer(owner, sum, i, v);
}
// Test.
int main(void) {
// Assumption: init => forall i: m[i] = 0
// Program:
// mapping(int => int) m;
// int owner;
// int sum = 0;
//
// void body(int i) {
// if (i == owner) {
// v += 1; sum += 1;
// }
// }
// Property: If a reactive system implements body, then it is always the case
// that v[i] <= sum.
//
// A (sound but incomplete) solution to the above problem is to find a
// compositional invariant Inv such that:
// 1. Init => Inv
// 2. Inv(i) && Tr(i) => Inv'(i)
// 3. Inv(i) && i != j && Tr(i) && Inv(j) => Inv'(i)
// In this case, such an invariant does exist and the program must be UNSAT.
int owner = nd1();
int sum = 0;
while (1) {
int i = nd2();
// START_TX[
int j = nd3();
int v = nd4();
int v_j = nd5();
assume(i != j);
assume(inv(owner, sum, i, v));
assume(inv(owner, sum, j, v_j));
// ]END
if (i != owner) {
v += 1;
sum += 1;
}
sassert(v <= sum);
// END_TX[
sassert(inv(owner, sum, i, v));
sassert(inv(owner, sum, j, v_j));
// ]END
}
}
|
9059132580c62562db08f68257f8a7a6b632b36c
|
d53b3727b12818d992a661266d325b27e8af013e
|
/ip.h
|
b4a93435e8aa6f8962a0855ca63f45de91174db0
|
[
"BSD-3-Clause",
"ISC",
"BSD-2-Clause"
] |
permissive
|
yellowman/nsh
|
9f496366ed4152795b970eae2b71f25a4f21f1e8
|
444134c06cbc0ad8b7366aba187ea98566b758a5
|
refs/heads/master
| 2023-08-31T21:00:58.141210
| 2023-08-22T11:30:19
| 2023-08-22T11:30:19
| 4,527,265
| 136
| 30
|
NOASSERTION
| 2023-09-10T14:57:06
| 2012-06-02T06:15:46
|
C
|
UTF-8
|
C
| false
| false
| 371
|
h
|
ip.h
|
/*
* A clean way to represent IPv4/IPv6 addresses for routines which purport to
* handle either, inspiration from mrtd
*/
#ifndef _IP_T_
#define _IP_T_
#endif
typedef struct _ip_t {
u_short family; /* AF_INET | AF_INET6 */
int bitlen; /* bits */
int ref_count; /* reference count */
union {
struct in_addr in;
struct in6_addr in6;
} addr;
} ip_t;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.