code
stringlengths
3
1.01M
repo_name
stringlengths
5
116
path
stringlengths
3
311
language
stringclasses
30 values
license
stringclasses
15 values
size
int64
3
1.01M
<div class="panel panel-white"> <div class="row"> <div class="col-xs-2"> <% if (obj.profile) { %> <img alt="Group profile picture" src="{{obj.profile}}" class="img-thumbnail img-rounded" /> <% } else { %> <img alt="Logo" src="/images/user_logo.png" class="img-thumbnail img-rounded" /> <% } %> </div> <% if (obj.profile) { %> <div class="col-xs-8"> <% } else { %> <div class="col-xs-10"> <% } %> <h1 class="js-pagetitle"> {{namedisplay}} - Statistics </h1> <p class="text-larger">{{obj.tagline}}</p> <% if (obj.id) { %> <div class="text-muted"> <span class="js-founded"> Founded <span class="js-foundeddate" />. </span> <span class="js-membercount" /> current freeglers.<br /> <span class="js-donationwrapper" style="display: none">Donations this month &pound;<span class="js-donations" /> out of a target of &pound;{{fundingtarget}}. <a href="/donate">Donate here</a></span> </div> <% } %> <div class="js-arealist" /> </div> <div class="col-xs-2"> <% if (obj.id) { %> <br /> <div class="btn btn-success pull-right margright js-join" style="display: none;"> <div class="glyphicon glyphicon-plus" /><span class="topspace">&nbsp;Join</span> </div> <div class="btn btn-white pull-right margright js-leave" style="display: none;"> <div class="glyphicon glyphicon-trash" /><span class="topspace">&nbsp;Leave</span> </div> <% } %> </div> </div> <div class="row js-gotdesc" style="display: none"> <div class="col-xs-12"> <hr /> <div class="padleft groupdescription js-description" /> <br class="clearfix" /> </div> </div> </div> </div> <div class="row"> <div class="col-xs-12"> <div class="panel panel-default"> <div class="panel-body"> <h3>Activity</h3> <p> This includes people OFFERing something, posting a WANTED for something, or searching for something. Figures are only available since late December 2016. </p> <div class="js-messagegraph" /> </div> </div> </div> </div> <div class="row topspace"> <div class="col-md-6"> <div class="panel panel-default"> <div class="panel-body"> <p> Here you can see how often people give things away compared to how often they ask for things. </p> <div class="js-balancechart" /> </div> </div> </div> <div class="col-md-6"> <div class="panel panel-default"> <div class="panel-body"> <p> These charts show how often people are successful in giving something away or getting something - when they let us know! </p> <div class="row"> <div class="col-md-6"> <div class="js-offeroutcome" /> </div> <div class="col-md-6"> <div class="js-wantedoutcome" /> </div> </div> <div class="js-successgraph" /> </div> </div> </div> </div> <div class="row"> <div class="col-xs-12"> <h3>Weights</h3> <p>This is an estimate of the weight of items we have diverted from the waste stream. People don't always tell us when things have worked - so this is likely to be an underestimate. Figures are only available since September 2016. These may change as we improve our estimates.</p> <div class="js-weightgraph" /> </div> </div> <div class="row js-membergraphholder" style="display: none;"> <div class="col-xs-12"> <h3>Members</h3> <p>Here you can see how many members there are.</p> <div class="js-membergraph" /> </div> </div> <p>If you want to find statistics for particular councils, click <a href="/stats/authorities">here</a>.</p>
nicksellen/iznik
http/template/user/stats/main.html
HTML
gpl-2.0
4,608
<?php /** * Zend Framework * * LICENSE * * This source file is subject to the new BSD license that is bundled * with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://framework.zend.com/license/new-bsd * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@zend.com so we can send you a copy immediately. * * @category Zend * @package Zend_Test * @subpackage PHPUnit * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License * @version $Id: QueryTable.php 1 2016-05-25 16:47:26Z admin $ */ require_once "PHPUnit/Extensions/Database/DataSet/QueryTable.php"; require_once "PHPUnit/Extensions/Database/DB/IDatabaseConnection.php"; /** * Represent a PHPUnit Database Extension table with Queries using a Zend_Db adapter for assertion against other tables. * * @uses PHPUnit_Extensions_Database_DataSet_QueryTable * @category Zend * @package Zend_Test * @subpackage PHPUnit * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License */ class Zend_Test_PHPUnit_Db_DataSet_QueryTable extends PHPUnit_Extensions_Database_DataSet_QueryTable { /** * Creates a new database query table object. * * @param string $table_name * @param string $query * @param PHPUnit_Extensions_Database_DB_IDatabaseConnection $databaseConnection */ public function __construct($tableName, $query, PHPUnit_Extensions_Database_DB_IDatabaseConnection $databaseConnection) { if( !($databaseConnection instanceof Zend_Test_PHPUnit_Db_Connection) ) { require_once "Zend/Test/PHPUnit/Db/Exception.php"; throw new Zend_Test_PHPUnit_Db_Exception("Zend_Test_PHPUnit_Db_DataSet_QueryTable only works with Zend_Test_PHPUnit_Db_Connection connections-"); } parent::__construct($tableName, $query, $databaseConnection); } /** * Load data from the database. * * @return void */ protected function loadData() { if($this->data === null) { $stmt = $this->databaseConnection->getConnection()->query($this->query); $this->data = $stmt->fetchAll(Zend_Db::FETCH_ASSOC); } } /** * Create Table Metadata */ protected function createTableMetaData() { if ($this->tableMetaData === NULL) { $this->loadData(); $keys = array(); if(count($this->data) > 0) { $keys = array_keys($this->data[0]); } $this->tableMetaData = new PHPUnit_Extensions_Database_DataSet_DefaultTableMetaData( $this->tableName, $keys ); } } }
redeanisioteixeira/aew_github
library/Zend/Test/PHPUnit/Db/DataSet/QueryTable.php
PHP
gpl-2.0
2,983
<?php /** * @package EasySocial * @copyright Copyright (C) 2010 - 2012 Stack Ideas Sdn Bhd. All rights reserved. * @license GNU/GPL, see LICENSE.php * EasySocial is free software. This version may have been modified pursuant * to the GNU General Public License, and as distributed it includes or * is derivative of works licensed under the GNU General Public License or * other free or open source software licenses. * See COPYRIGHT.php for copyright notices and details. */ defined( '_JEXEC' ) or die( 'Unauthorized Access' ); // Include necessary libraries here. require_once( dirname( __FILE__ ) . '/dependencies.php' ); // Include stream data template here. require_once( dirname( __FILE__ ) . '/template.php' ); // Include stream data template here. require_once( SOCIAL_LIB . '/privacy/option.php' ); class SocialStream { /** * Contains a list of stream data. * @var Array */ private $data = null; /* * this nextStartDate used as pagination. */ private $nextdate = null; /* * this nextEndDate used as pagination. */ private $enddate = null; /* * this nextlimit used as actvities log pagination. */ private $nextlimit = null; /** * Determines if the current request is for a single item output. * @var boolean */ private $singleItem = false; /** * Determines the current filter type. * @var string */ public $filter = null; /** * Determines if the current retrieval is for guest viewing or not. * @var string */ public $guest = null; /** * options * @var string */ public $options = null; /** * public stream pagination * */ public $limit = 0; public $startlimit = 0; /** * Class constructor. * * @since 1.0 * @access public * @param string * @return */ public function __construct() { $this->filter = 'all'; $this->guest = false; $this->options = array(); } /** * Delete stream items given the app type. * * @since 1.0 * @access public * @param */ public function delete( $contextId , $contextType , $actorId = '' ) { // Load dispatcher. $dispatcher = Foundry::dispatcher(); $args = array( $contextId , $contextType ); // Trigger onBeforeStreamDelete $dispatcher->trigger( SOCIAL_APPS_GROUP_USER , 'onBeforeStreamDelete', $args ); $model = Foundry::model( 'Stream' ); $model->delete( $contextId , $contextType , $actorId ); // Trigger onAfterStreamDelete $dispatcher->trigger( SOCIAL_APPS_GROUP_USER , 'onAfterStreamDelete', $args ); } /** * Object initialisation for the class to fetch the appropriate user * object. * * @since 1.0 * @access public * @param null * @return SocialStream The stream object. */ public static function factory() { return new self(); } /** * Creates the stream template * * @since 1.0 * @access public * @param string * @return */ public function getTemplate() { $template = new SocialStreamTemplate(); return $template; } /** * Creates a new stream item. * * Example: * <code> * <?php * // Load up the library. * $stream = Foundry::get( 'Stream' ); * * // We need to generate the stream template. * $template = $stream->getTemplate(); * * // Set actors. * $template->setActor( $id , $type ); * * // Set verb * $template->setVerb( 'create' ); * * // Create the stream item. * $stream->add( $template ); * * </code> * * @since 1.0 * @access public * @param mixed Accepts array, object or SocialStreamTemplate which represents the stream's data. * @return SocialTableStreamItem Returns the new stream id if success, false otherwise. */ public function add( SocialStreamTemplate $data ) { // Let's try to aggregate the stream item. // Get the stream model $model = Foundry::model( 'Stream' ); // Get the config obj. $config = Foundry::config(); // The duration between activities. $duration = $config->get( 'stream.aggregation.duration' ); // Determine which context types should be aggregated. $aggregateContext = $config->get( 'stream.aggregation.contexts' ); if( count( $data->childs ) > 0 ) { // reset this flag to false whenever there are items in child property. $data->isAggregate = false; } // Get the unique id if necessary. $uid = $model->updateStream( $data ); if( count( $data->childs ) > 0 ) { foreach( $data->childs as $contextId ) { // Load the stream item table $item = Foundry::table( 'StreamItem' ); $item->bind( $data ); //override contextId $item->context_id = $contextId; // Set the uid for the item. $item->uid = $uid; // Let's try to store the stream item now. $state = $item->store(); if( !$state ) { Foundry::logError( __FILE__ , __LINE__ , 'STREAM: There was some errors saving the stream item. Message: ' . $item->getError() ); return false; } } } else { // Load the stream item table $item = Foundry::table( 'StreamItem' ); $item->bind( $data ); // Set the uid for the item. $item->uid = $uid; // set context item's params $item->params = $data->item_params; // Let's try to store the stream item now. $state = $item->store(); if( !$state ) { Foundry::logError( __FILE__ , __LINE__ , 'STREAM: There was some errors saving the stream item. Message: ' . $item->getError() ); return false; } } //tag the with $model->setWith( $uid, $data->with ); return $item; } /** * stream's with tagging. * return array of foundry user object. */ private function getStreamTagWith( $streamId ) { $model = Foundry::model( 'Stream' ); return $model->getTagging( $streamId, 'with' ); } /** * stream's mentions tagging. * return array of objects with: * $obj->user : foundry::user(), * $obj->offset : int, * $obj->length : int */ private function getStreamTagMention( $streamId ) { $model = Foundry::model( 'Stream' ); return $model->getTagging( $streamId, 'mention' ); } /** * Formats a stream item with the necessary data. * * Example: * <code> * </code> * * @since 1.0 * @access public * @param Array * */ public function format( $items , $context = 'all', $viewer = null, $loadCoreAction = true, $defaultEvent = 'onPrepareStream' ) { $my = is_null( $viewer ) ? Foundry::user() : Foundry::user( $viewer ); if( empty( $defaultEvent ) ) { $defaultEvent = 'onPrepareStream'; } $isStream = ( $defaultEvent == 'onPrepareStream' ) ? true : false; //var_dump( $isStream ); if( !$items ) { return $items; } $data = array(); $activeUser = Foundry::user(); // Get stream model $model = Foundry::model( 'Stream' ); //current user being view. $targetUser = JRequest::getVar( 'id', '' ); if( empty( $targetUser ) ) { $targetUser = $my->id; } if( $targetUser && strpos( $targetUser, ':') ) { $tmp = explode( ':', $targetUser); $targetUser = $tmp[0]; } // Get template configuration $templateConfig = Foundry::themes()->getConfig(); // Format items with appropriate objects. foreach( $items as &$row ) { //$uid = ( $defaultEvent == 'onPrepareActivity') ? $row->uid : $row->id; $uid = $row->id; $lastupdate = $row->modified; // Obtain related activities for aggregation. $relatedActivities = null; if( $isStream ) { $relatedActivities = $model->getRelatedActivities( $uid , $row->context_type, $viewer ); } else { $relatedActivities = $model->getActivityItem( $uid ); } // If there is no data at all, then there's something really wrong. if( !$relatedActivities ) { Foundry::logError( __FILE__ , __LINE__ , 'STREAM: There is no activity for id: ' . $row->id . ' , type: ' . $row->context_type ); continue; } $aggregatedData = $this->buildAggregatedData( $relatedActivities ); // Get the stream item. $streamItem = new SocialStreamItem(); // Set the actors (Aggregated actors ) $streamItem->actors = $aggregatedData->actors; // Set the content $streamItem->content = $row->content; // Set the targets (Aggregated targets ) $streamItem->targets = $aggregatedData->targets; // Set the context ids. ( Aggregated ids ) $streamItem->contextIds = $aggregatedData->contextIds; // Set the context params. ( Aggregated params ) $streamItem->contextParams = $aggregatedData->params; // main stream params $streamItem->params = $row->params; // Set the stream uid / activity id. $streamItem->uid = $uid; // Set stream lapsed time $streamItem->lapsed = Foundry::date( $row->modified )->toLapsed(); $streamItem->created = Foundry::date( $row->created ); // Set the actor with the user object. $streamItem->actor = Foundry::user( $row->actor_id ); // Set the context id. $streamItem->contextId = $aggregatedData->contextIds[ 0 ]; // Set the verb for this item. $streamItem->verb = $aggregatedData->verbs[ 0 ]; // Set the context type. $streamItem->context = $row->context_type; // Set the title of the stream item. $streamItem->title = $row->title; // stream display type $streamItem->display = $row->stream_type; // Define an empty color $streamItem->color = ''; // Define an empty favicon $streamItem->icon = ''; // Always enable labels $streamItem->label = true; // @TODO: Since our stream has a unique favi on for each item. We need to get it here. // Each application is responsible to override this favicon, or stream wil use the context type. $streamItem->favicon = $row->context_type; $streamItem->type = $row->context_type; $streamDateDisplay = $templateConfig->get( 'stream_datestyle' ); $streamItem->friendlyDate = $streamItem->lapsed; if( $streamDateDisplay == 'datetime' ) { $streamItem->friendlyDate = $streamItem->created->toFormat( $templateConfig->get( 'stream_dateformat_format' , 'Y-m-d H:i' ) ); } // getting the the with and mention tagging for the stream, only if the item is a stream. $streamItem->with = array(); $streamItem->mention = array(); if( $isStream ) { $streamItem->with = $this->getStreamTagWith( $uid ); $streamItem->mention = $this->getStreamTagMention( $uid ); } // Format the users that are tagged in this stream. if( !empty( $row->location_id ) ) { $location = Foundry::table( 'Location' ); $location->load( $row->location_id ); $streamItem->location = $location; } // target user. this target user is different from the targets. this is the user who are being viewed currently. $streamItem->targetUser = $targetUser; // privacy $streamItem->privacy = null; // Check if the content is not empty. We need to perform some formatings if( isset( $streamItem->content ) && !empty( $streamItem->content ) ) { // Apply bbcode $content = Foundry::string()->parseBBCode( $streamItem->content ); // Apply e-mail replacements $content = Foundry::string()->replaceEmails( $content ); // Apply hyperlinks $content = Foundry::string()->replaceHyperlinks( $content ); // Some app might want the raw contents $streamItem->content_raw = $streamItem->content; $streamItem->content = $content; } // streams actions. $streamItem->comments = ( $defaultEvent == 'onPrepareStream' ) ? true : false; $streamItem->likes = ( $defaultEvent == 'onPrepareStream' ) ? true : false; $streamItem->repost = ( $defaultEvent == 'onPrepareStream' ) ? true : false; // @trigger onPrepareStream / onPrepareActivity $result = $this->{$defaultEvent}( $streamItem ); // Allow app to stop loading / generating the stream and // if there is still no title, we need to skip this stream altogether. if( $result === false || !$streamItem->title ) { continue; } //this mean the plugin did not set any privacy. lets use the stream / activity. if( is_null( $streamItem->privacy ) ) { $privacyObj = Foundry::privacy( $activeUser->id ); $privacy = ( isset( $row->privacy ) ) ? $row->privacy : null; $pUid = $uid; if( count( $streamItem->contextIds ) == 1 && is_null( $privacy ) ) { $sModel = Foundry::model( 'Stream' ); $tmpId = ( $defaultEvent == 'onPrepareActivityLog') ? $row->uid : $row->id; $aItem = $sModel->getActivityItem( $tmpId, 'uid' ); if( $aItem ) { $pUid = $aItem[0]->id; } } if(! $privacyObj->validate( 'core.view', $pUid, SOCIAL_TYPE_ACTIVITY, $streamItem->actor->id ) ) { continue; } $streamItem->privacy = $privacyObj->form( $pUid, SOCIAL_TYPE_ACTIVITY, $streamItem->actor->id ); } // comments if( isset( $streamItem->comments ) && $streamItem->comments ) { if(! $streamItem->comments instanceof SocialCommentBlock ) { $streamItem->comments = Foundry::comments( $streamItem->uid , $streamItem->context , SOCIAL_APPS_GROUP_USER , array( 'url' => FRoute::stream( array( 'layout' => 'item', 'id' => $streamItem->uid ) ) ) ); } } //likes if( isset( $streamItem->likes ) && $streamItem->likes ) { if(! $streamItem->likes instanceof SocialLikes ) { $likes = Foundry::likes(); $likes->get( $streamItem->uid , $streamItem->context ); $streamItem->likes = $likes; } } //repost if( isset( $streamItem->repost ) && $streamItem->repost ) { if(! $streamItem->repost instanceof SocialLikes ) { $repost = Foundry::get( 'Repost', $streamItem->uid , SOCIAL_TYPE_STREAM ); $streamItem->repost = $repost; } } // Now we have all the appropriate data, populate the actions $streamItem->actions = $this->getActions( $streamItem ); // Re-assign stream item to the result list. $data[] = $streamItem; } // here we know, the result from queries contain some records but it might return empty data due to privacy. // if that is the case, then we return TRUE so that the library will go retrieve the next set of data. if( count( $data ) <= 0 ) { return true; } return $data; } public function getActivityNextLimit() { return $this->nextlimit; } /** * Some desc * * @since 1.0 * @access public * @param string * @return */ public function getLogs( $max = 10 ) { $model = Foundry::model( 'Activities' ); $result = $model->getData( $max ); $data = $this->format( $result ); return $data; } /** * Retrieves a list of stream item. * * @since 1.0 * @access public * @param string * @return */ //public function getActivityLogs( $uId, $uType = SOCIAL_TYPE_USER, $context = SOCIAL_STREAM_CONTEXT_TYPE_ALL , $filter = 'all') public function getActivityLogs( $options = array() ) { $uId = isset( $options['uId'] ) ? $options['uId'] : ''; $uType = isset( $options['uType'] ) ? $options['uType'] : SOCIAL_TYPE_USER; $context = isset( $options['context'] ) ? $options['context'] : SOCIAL_STREAM_CONTEXT_TYPE_ALL; $filter = isset( $options['filter'] ) ? $options['filter'] : 'all'; $max = isset( $options['max'] ) ? $options['max'] : ''; if( empty( $uId ) ) { $uId = Foundry::user()->id; } if( empty( $context ) ) { $context = SOCIAL_STREAM_CONTEXT_TYPE_ALL; } $activity = Foundry::model( 'Activities' ); $result = $activity->getItems( array( 'uId' => $uId, 'uType' => $uType, 'context' => $context, 'filter' => $filter, 'max' => $max ) ); $this->nextlimit = $activity->getNextLimit(); // If there's nothing, just return a boolean value. if( !$result ) { return false; } // register the resultset. $streamModel = Foundry::model( 'Stream' ); $streamModel->setBatchActivityItems( $result ); $data = $this->format( $result , $context, null, false, 'onPrepareActivityLog' ); if( is_bool( $data ) ) return array(); for( $i = 0; $i < count($data); $i++ ) { $item =& $data[$i]; $tbl = Foundry::table( 'StreamHide' ); $tbl->load( $item->uid, $uId, SOCIAL_STREAM_HIDE_TYPE_ACTIVITY ); $isHidden = false; if( $tbl->id ) $isHidden = true; $item->isHidden = $isHidden; } $this->data = $data; return $this->data; } /** * Retrieves a single stream item. * * @since 1.0 */ public function getItem( $streamId ) { $model = Foundry::model( 'Stream' ); $result = $model->getStreamData( array( 'streamId' => $streamId , 'context' => 'all', 'ignoreUser' => true ) ); $this->data = $this->format( $result ); $this->singleItem = true; return $this->data; } /** * Retrieves a single stream item actor. * return: SocialUser object, all false if not found. * @since 1.0 */ public function getStreamActor( $streamId ) { $model = Foundry::model( 'Stream' ); $actor = $model->getStreamActor( $streamId ); return $actor; } public function getPublicStream( $limit = 10, $startlimit = 0 ) { $this->guest = true; $viewerId = Foundry::user()->id; $context = SOCIAL_STREAM_CONTEXT_TYPE_ALL; $attempts = 2; $keepSearching = true; $model = Foundry::model( 'Stream' ); $this->startlimit = $startlimit; do { $options = array( 'userid' => '0', 'context' => $context, 'direction' => 'older', 'limit' => $limit, 'startlimit' => $startlimit, 'guest' => true, 'viewer' => $viewerId ); $result = $model->getStreamData( $options ); // If there's nothing, just return a boolean value. if( !$result ) { $this->startlimit = 0; // so that the next cycle will stop return $this; } $requireSearch = $this->format( $result , $context, $viewerId ); if( $requireSearch !== true ) { $this->data = $requireSearch; $keepSearching = false; } $attempts--; $startlimit = $startlimit + $limit; $this->startlimit = $startlimit ; } while( $keepSearching === true && $attempts > 0 ); } /** * Retrieves a list of stream item. * * @since 1.0 * @access public * @param string * @return */ //public function get( $userId = '', $listId = null, $viewerId = null, $context = SOCIAL_STREAM_CONTEXT_TYPE_ALL , $type = SOCIAL_TYPE_USER , $limitStart = '', $direction = 'older' ) public function get( $options = array() ) { $users = array(); // lets process default values $userId = isset( $options['userId'] ) ? $options['userId'] : null; $listId = isset( $options['listId'] ) ? $options['listId'] : null; $context = isset( $options['context'] ) ? $options['context'] : SOCIAL_STREAM_CONTEXT_TYPE_ALL; $type = isset( $options['type'] ) ? $options['type'] : SOCIAL_TYPE_USER; $limitStart = isset( $options['limitStart'] ) ? $options['limitStart'] : ''; $limitEnd = isset( $options['limitEnd'] ) ? $options['limitEnd'] : ''; $direction = isset( $options['direction'] ) ? $options['direction'] : 'older'; $viewerId = isset( $options['viewerId'] ) ? $options['viewerId'] : null; $guest = isset( $options['guest'] ) ? $options['guest'] : false; // If viewer is null, we assume the caller wants to fetch from the current user's perspective. if( is_null( $viewerId ) ) { $viewerId = Foundry::user()->id; } // Ensure that the user id's are in an array form. $user = Foundry::user(); $userId = ( empty( $userId ) ) ? $user->id : $userId; $userId = Foundry::makeArray( $userId ); if( empty( $context ) ) { $context = SOCIAL_STREAM_CONTEXT_TYPE_ALL; } $isFollow = false; if( $type == 'follow' ) { $this->filter = 'follow'; // reset the type to user and update the isFollow flag. $type = SOCIAL_TYPE_USER; $isFollow = true; } if( $listId ) { $this->filter = 'list'; } if( $guest ) { $this->filter = 'everyone'; } // Get stream model to fetch those records. $model = Foundry::model( 'Stream' ); $data = array(); //$this->data = $this->format( $result , $context, $viewerId ); $keepSearching = true; $tryLimit = 2; do { $options = array( 'userid' => $userId, 'list' => $listId, 'context' => $context, 'type' => $type, 'limitstart' => $limitStart, 'limitend' => $limitEnd, 'viewer' => $viewerId, 'isfollow' => $isFollow, 'direction' => $direction, 'guest' => $guest ); $this->options = $options; $result = $model->getStreamData( $options ); // If there's nothing, just return a boolean value. if( !$result ) { $this->nextdate = ''; return $this; } $requireSearch = $this->format( $result , $context, $viewerId ); if( $requireSearch !== true ) { $this->data = $requireSearch; $keepSearching = false; } else { // get the next limit date for query. if( $direction == 'later' ) { $limitStart = $model->getCurrentStartDate(); } else { $limitStart = $model->getNextStartDate(); } } $tryLimit--; } while( $keepSearching === true && $tryLimit > 0); if( $direction == 'later' ) { $this->nextdate = $model->getCurrentStartDate(); } else { $this->nextdate = $model->getNextStartDate(); } $this->enddate = $model->getNextEndDate(); return $this; } public function getCount() { if( $this->data ) { return count( $this->data ); } else { return '0'; } } /** * Returns next start date used in stream pagination * * @since 1.0 * @access public * @param string - in mysql date format. * @return */ public function getNextStartDate() { return $this->nextdate; } /** * Returns next end date used in stream pagination * * @since 1.0 * @access public * @param string - in mysql date format. * @return */ public function getNextEndDate() { return $this->enddate; } /** * Returns next limit used in public stream pagination * * @since 1.0 * @access public * @param string - in mysql date format. * @return */ public function getNextStartLimit() { return $this->startlimit; } /** * Returns a html formatted data for the stream * * @since 1.0 * @access public * @param string * @return */ public function html( $loadmore = false, $customEmptyMsg = '' ) { $theme = Foundry::get( 'Themes' ); $output = ''; $view = JRequest::getVar( 'view' ); $isGuest = $this->guest; if( ! $isGuest ) { //let check one more time if current viewer is guest or not. $my = Foundry::user(); $isGuest = ( $my->id == 0 ) ? true : $isGuest; } $theme->set( 'view' , $view ); if (!empty($this->story)) { $theme->set('story', $this->story); } if( $loadmore ) { if( $this->data ) { foreach( $this->data as $stream ) { $output .= $theme->loadTemplate( 'site/stream/default.item' , array( 'stream' => $stream ) ); } } } else { if( $this->singleItem ) { if( empty( $this->data ) || count( $this->data ) == 0 || $this->data === true ) { $output = JText::_( 'COM_EASYSOCIAL_STREAM_CONTENT_NOT_AVAILABLE' ); return $output; } $theme->set( 'stream' , $this->data[ 0 ] ); $output = $theme->output( 'site/stream/default.item' ); } else { // Define empty messages here $empty = ( $customEmptyMsg ) ? $customEmptyMsg : JText::_( 'COM_EASYSOCIAL_STREAM_NO_STREAM_ITEM' ); if( $this->filter == 'follow' ) { $empty = ( $customEmptyMsg ) ? $customEmptyMsg : JText::_( 'COM_EASYSOCIAL_STREAM_NO_STREAM_ITEM_FROM_FOLLOWING' ); } if( $this->filter == 'list' ) { $empty = ( $customEmptyMsg ) ? $customEmptyMsg : JText::_( 'COM_EASYSOCIAL_STREAM_NO_STREAM_ITEM_FROM_LIST' ); } $theme->set( 'empty' , $empty ); $theme->set( 'streams' , $this->data ); $theme->set( 'nextdate' , $this->nextdate ); $theme->set( 'enddate' , $this->enddate ); $theme->set( 'guest' , $isGuest ); $theme->set( 'nextlimit', $this->startlimit ); $output = $theme->output( 'site/stream/default' ); } } return $output; } public function action() { $theme = Foundry::get( 'Themes' ); $theme->set( 'stream' , $this->data[ 0 ] ); $output = $theme->output( 'site/stream/actions' ); return $output; } /** * Return the raw data for the stream. * * @since 1.0 * @access public * @param string * @return */ public function json() { //@TODO: Perhaps there's something that we need to modify here for json type? $json = Foundry::json(); $output = $json->encode( $this->data ); return $output; } /** * Return the raw data for the stream. * * @since 1.0 * @access public * @param string * @return */ public function toArray() { return $this->data; } /** * Prepares core actions * * @since 1.0 * @access public * @param string * @return */ public function prepareCoreActions( SocialStreamItem &$item ) { jimport( 'joomla.filesystem.file' ); jimport( 'joomla.filesystem.folder' ); // Default value. $result = array(); // Get core actions. $path = dirname( __FILE__ ) . '/actions'; $config = Foundry::config(); $actions = $config->get( 'stream.actions' ); foreach( $actions as $action ) { // Include the file library. require_once( $path . '/' . $action . '.php' ); // Replace all spaces with underscores. $name = str_ireplace( ' ' , '_' , $action ); // Build index key here. $key = strtolower( $name ); // Get class name. $className = 'SocialStreamAction' . ucfirst( $name ); // Instantiate the action object. $actionObj = new $className( $item ); // Set the actions. $result[ $action ] = $actionObj; } return $result; } /** * Prepares stream actions. * * @since 1.0 * @access public */ private function onPrepareStreamActions( SocialStreamItem &$item ) { // Get apps library. $apps = Foundry::getInstance( 'Apps' ); // Try to load user apps $state = $apps->load( SOCIAL_APPS_GROUP_USER ); // By default return true. $result = true; if( !$state ) { Foundry::logError( __FILE__ , __LINE__ , 'STREAMS: No applications loaded.' ); } else { // Only go through dispatcher when there is some apps loaded, otherwise it's pointless. $dispatcher = Foundry::dispatcher(); // Pass arguments by reference. $args = array( &$item ); // @trigger: onPrepareStream for the specific context $dispatcher->trigger( SOCIAL_APPS_GROUP_USER , 'onPrepareStreamActions' , $args , $item->context ); // @TODO: Check each actions and ensure that they are instance of ISocialStreamAction } return true; } /** * Prepares a stream item. * * @since 1.0 * @access public */ private function onPrepareStream( SocialStreamItem &$item, $includePrivacy = true ) { // Get apps library. $result = $this->onPrepareEvent( 'onPrepareStream', $item, $includePrivacy ); return $result; } /** * Prepares a stream item for activity logs * * @since 1.0 * @access public */ private function onPrepareActivityLog( SocialStreamItem &$item, $includePrivacy = true ) { // Get apps library. $result = $this->onPrepareEvent( __FUNCTION__ , $item, $includePrivacy ); return $result; } private function onPrepareEvent( $eventName, SocialStreamItem &$item, $includePrivacy = true ) { // Get apps library. $apps = Foundry::getInstance( 'Apps' ); // Try to load user apps $state = $apps->load( SOCIAL_APPS_GROUP_USER ); // By default return true. $result = true; if( !$state ) { Foundry::logError( __FILE__ , __LINE__ , 'STREAMS: No applications loaded.' ); return $result; } // Only go through dispatcher when there is some apps loaded, otherwise it's pointless. $dispatcher = Foundry::dispatcher(); // Pass arguments by reference. $args = array( &$item, $includePrivacy ); // @trigger: onPrepareStream for the specific context $result = $dispatcher->trigger( SOCIAL_APPS_GROUP_USER , $eventName , $args , $item->context ); return $result; } /** * Build the aggregated data * * @since 1.0 * @access public * @param string * @return */ public function buildAggregatedData( $activities ) { // If there's no activity at all, it should fail here. // There should be at least 1 activity. if( !$activities ) { return false; } $data = new stdClass(); $data->contextIds = array(); $data->actors = array(); $data->targets = array(); $data->verbs = array(); $data->params = array(); // Temporary data $actorIds = array(); $targetIds = array(); foreach( $activities as $activity ) { // Assign actor into temporary data only when actor id is valid. if( $activity->actor_id ) { $actorIds[] = $activity->actor_id; } // Assign target into temporary data only when target id is valid. if( $activity->target_id ) { if( !( $activity->context_type == 'photos' && $activity->verb == 'add' ) && !( $activity->context_type == 'shares' && $activity->verb == 'add.stream' ) ) { $targetIds[] = $activity->target_id; } } // Assign context ids. $data->contextIds[] = $activity->context_id; // Assign the verbs. $data->verbs[] = $activity->verb; // Assign the params $data->params[ $activity->context_id ] = isset( $activity->params ) ? $activity->params : ''; } // Pre load users. $userIds = array_merge( $data->actors , $data->targets ); Foundry::user( $userIds ); // Build the actor's data if( $actorIds ) { $actorIds = array_unique( $actorIds ); foreach( $actorIds as $actorId ) { $user = Foundry::user( $actorId ); $data->actors[] = $user; } } // Build the target's data. if( $targetIds ) { $targetIds = array_unique( $targetIds ); foreach( $targetIds as $targetId ) { $user = Foundry::user( $targetId ); $data->targets[] = $user; } } return $data; } /** * Displays the actions block that is used on a stream * * @since 1.0 * @access public * @param string * @return */ public function getActions( $options = array() ) // public function getActions( $date = null , $comments = null , $likes = null , $repost = null , $privacy = null , $uid = null ) { $theme = Foundry::themes(); // If the options is a stream item object, we need to map it accordingly. if( $options instanceof SocialStreamItem ) { // Set the friendly date $friendlyDate = $options->friendlyDate; // Set the comments $comments = isset( $options->comments ) ? $options->comments : ''; // Set the likes $likes = isset( $options->likes ) ? $options->likes : ''; // Set the repost $repost = isset( $options->repost ) ? $options->repost : ''; // Set the privacy $privacy = isset( $options->privacy ) ? $options->privacy : ''; // Set the stream's uid $uid = $options->uid; $icon = isset( $options->icon ) ? $options->icon : ''; } else { // Set the default friendly date $friendlyDate = false; $date = isset( $options[ 'date' ] ) ? $options[ 'date' ] : null; $comments = isset( $options[ 'comments' ] ) ? $options[ 'comments' ] : ''; $likes = isset( $options[ 'likes' ] ) ? $options[ 'likes' ] : ''; $repost = isset( $options[ 'repost' ] ) ? $options[ 'repost' ] : ''; $uid = isset( $options[ 'uid' ] ) ? $options[ 'uid' ] : ''; $privacy = isset( $options[ 'privacy' ] ) ? $options[ 'privacy' ] : ''; $icon = isset( $options[ 'icon' ] ) ? $options[ 'icon' ] : ''; if( !is_null( $date ) ) { $friendlyDate = Foundry::date( $date )->toLapsed(); } } $theme->set( 'icon' , $icon ); $theme->set( 'friendlyDate' , $friendlyDate ); $theme->set( 'privacy' , $privacy ); $theme->set( 'uid' , $uid ); $theme->set( 'comments' , $comments ); $theme->set( 'likes' , $likes ); $theme->set( 'repost' , $repost ); $output = $theme->output( 'site/stream/actions' ); return $output; } /** * Translate stream's date time. * * @since 1.0 * @access public * @param string * @return */ private function translateDate( $day, $hour, $min ) { $dayString = ''; $timeformat = '%I:%M %p'; $day = ( $day < 0 ) ? '0' : $day; $hour = ( $hour < 0 ) ? '0' : $hour; $min = ( $day < 0 ) ? '0' : $min; // today if( $day == 0) { if( $min > 60 ) { $dayString = $hour . JText::_( 'COM_EASYSOCIAL_STREAM_X_HOURS_AGO'); } else if( $min <= 0) { $dayString = JText::_( 'COM_EASYSOCIAL_STREAM_LESS_THAN_ONE_MIN_AGO' ); } else { $dayString = $min . JText::_( 'COM_EASYSOCIAL_STREAM_X_MINS_AGO'); } } elseif ( $day == 1 ) { $time = Foundry::date( '-' . $min . ' mins' ); $dayString = JText::_( 'COM_EASYSOCIAL_STREAM_YESTERDAY_AT' ) . $time->toFormat($timeformat); } elseif( $day > 1 && $day <= 7) { $dayString = Foundry::get( 'Date', '-' . $min . ' mins')->toFormat( '%A ' . JText::_( 'COM_EASYSOCIAL_STREAM_DATE_AT' ) . ' ' . $timeformat); } else { $dayString = Foundry::get( 'Date', '-' . $min . ' mins')->toFormat('%b %d ' . JText::_( 'COM_EASYSOCIAL_STREAM_DATE_AT' ) . ' ' . $timeformat); } return $dayString; } }
cuongnd/test_pro
administrator/components/com_easysocial/includes/stream/stream.php
PHP
gpl-2.0
33,522
<!DOCTYPE html> <html> <!-- Mirrored from www.w3schools.com/aspnet/showaspx.asp?filename=demo_listitem by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 08:22:10 GMT --> <head> <title>Tryit Editor v2.1 - Show ASP.NET</title> <link rel="stylesheet" href="../trycss.css"> <!--[if lt IE 8]> <style> .textarea, .iframe {height:800px;} #iframeSource, #iframeResult {height:700px;} </style> <![endif]--> <script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','../../www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-3855518-1', 'auto'); ga('require', 'displayfeatures'); ga('send', 'pageview'); </script> <script type='text/javascript'> var googletag = googletag || {}; googletag.cmd = googletag.cmd || []; (function() { var gads = document.createElement('script'); gads.async = true; gads.type = 'text/javascript'; var useSSL = 'https:' == document.location.protocol; gads.src = (useSSL ? 'https:' : 'http:') + '//www.googletagservices.com/tag/js/gpt.js'; var node = document.getElementsByTagName('script')[0]; node.parentNode.insertBefore(gads, node); })(); </script> <script type='text/javascript'> googletag.cmd.push(function() { googletag.defineSlot('/16833175/TryitLeaderboard', [[728, 90], [970, 90]], 'div-gpt-ad-1383036313516-0').addService(googletag.pubads()); googletag.pubads().setTargeting("content","trydotnet"); googletag.pubads().enableSingleRequest(); googletag.enableServices(); }); </script> </head> <body> <div id="ads"> <div style="position:relative;width:100%;margin-top:0px;margin-bottom:0px;"> <div style="width:974px;height:94px;position:relative;margin:0px;margin-left:auto; margin-right:auto;margin-top:5px;margin-bottom:5px;padding:0px;overflow:hidden;"> <!-- TryitLeaderboard --> <div id='div-gpt-ad-1383036313516-0' style='width:970px; height:90px;'> <script type='text/javascript'> googletag.cmd.push(function() { googletag.display('div-gpt-ad-1383036313516-0'); }); </script> </div> <div style="clear:both"></div> </div> </div> </div> <div class="menu"> <a href="../index.html"><img src="../images/w3schoolsgray.png" alt="w3schools.com" border="0"></a> </div> <div class="container"> <div class="textareacontainer"> <div class="textarea"> <div class="headerText">ASP Source:</div> <div class="iframewrapper"> <iframe id="iframeSource" frameborder="0" src="showaspxcodea66a.html?source=demo_listitem"></iframe> </div> </div> </div> <div class="iframecontainer"> <div class="iframe"> <div class="headerText">Result:</div> <div class="iframewrapper"> <iframe id="iframeResult" frameborder="0" src="demo_listitem.html"></iframe> </div> <div class="footerText">Show ASP.NET - &copy; <a href="../index.html">w3schools.com</a></div> </div> </div> </div> </body> <!-- Mirrored from www.w3schools.com/aspnet/showaspx.asp?filename=demo_listitem by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 08:22:10 GMT --> </html>
platinhom/ManualHom
Coding/W3School/W3Schools_Offline_2015/www.w3schools.com/aspnet/showaspxa4f5.html
HTML
gpl-2.0
3,205
/* file_dlg.h * Declarations of utilities to use when constructing file selection dialogs * * $Id$ * * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> * Copyright 1998 Gerald Combs * * 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ /** @defgroup filesel_dialog_group File Selection Dialogs * * Dialogs are specially created windows and are related to their parent windows (usually the main window). * See: @ref howto_window_page for details. * * File selection dialogs are created using file_selection_new(). * * - "Browse" file_selection_browse() * - "Open Capture File" file_open_cmd() * - "Save Capture File As" file_save_as_cmd() * - "Import Color Filters" file_color_import_cmd_cb() * - "Export Color Filters" file_color_export_cmd_cb() * - "Save TCP Follow Stream As" follow_save_as_cmd_cb() * - "Export Selected Packet Bytes" savehex_cb() * - "Save Data As CSV" save_csv_as_cb() * - "Save Payload As ..." on_save_bt_clicked() * - "Save selected stream in rtpdump" rtpstream_on_save() * */ /** @file * Utilities for file selection dialog boxes. Depending on the window * functions in gui_utils.h, see: @ref howto_window_page for details. * @ingroup filesel_dialog_group */ #ifndef __FILE_DLG_H__ #define __FILE_DLG_H__ /** the action a file selection is designed for */ typedef enum { FILE_SELECTION_OPEN, /**< open a file */ FILE_SELECTION_READ_BROWSE, /**< browse for a file to read */ FILE_SELECTION_SAVE, /**< save/export a file */ FILE_SELECTION_WRITE_BROWSE, /**< browse for a file to write to */ FILE_SELECTION_CREATE_FOLDER /**< browse for a dir. to save in */ } file_selection_action_t; /** Create a file selection dialog box window that belongs to Wireshark's * main window. See window_new() for usage. * * @param title the title for the new file selection dialog * @param action the desired action * @return the newly created file selection dialog */ extern GtkWidget *file_selection_new(const gchar *title, file_selection_action_t action); /** Set the current folder for a file selection dialog. * * @param fs the file selection dialog from file_selection_new() * @param filename the folder to set * @return TRUE if the folder could be changed successfully */ extern gboolean file_selection_set_current_folder(GtkWidget *fs, const gchar *filename); /** Set the current file for a file selection dialog. * * @param fs the file selection dialog from file_selection_new() * @param filename the folder to set * @return TRUE if the folder could be changed successfully */ #define file_selection_set_current_file(chooser, filename) \ gtk_file_chooser_set_filename(chooser, filename) /** Set the "extra" widget for a file selection dialog. This is needed to support * user-supplied options. * * @param fs the file selection dialog from file_selection_new() * @param extra the widget to set */ extern void file_selection_set_extra_widget(GtkWidget *fs, GtkWidget *extra); /** Run the dialog, and handle some common operations, such as, if the * user selects a directory, browsing that directory, and handling * shortcuts on Windows. * @param fs the file selection dialog from file_selection_new() * @return the pathname of the selected file if the user selected a * file, NULL if they cancelled or closed the dialog. */ extern gchar *file_selection_run(GtkWidget *fs); #ifndef _WIN32 /** If the specified file doesn't exist, return TRUE. * If it exists and is neither user-immutable nor not writable, return * TRUE. * Otherwise, as the user whether they want to overwrite it anyway, and * return TRUE if the file should be overwritten and FALSE otherwise. * * @param chooser_w the GtkFileChooser used to select the file in question * @param cf_name the current name chosen */ extern gboolean file_target_unwritable_ui(GtkWidget *chooser_w, char *cf_name); #endif /** The function file_selection_browse() will g_object_set_data() itself on it's parent window. * When destroying the parent window, it can close the corresponding file selection. */ #define E_FILE_SEL_DIALOG_PTR_KEY "file_sel_dialog_ptr" /** Browse the files and fill in the associated text entry. * * @param file_bt the button that called us (to get the toplevel widget) * @param file_te the GtkEntry the dialog will have to fill in the filename * @param title the title for the file selection dialog * @param action the desired action */ extern void file_selection_browse(GtkWidget *file_bt, GtkWidget *file_te, const char *title, file_selection_action_t action); /** Set the latest opened directory. * Will already be done when using file_selection_new(). * * @param dirname the dirname */ extern void set_last_open_dir(const char *dirname); #endif
sstjohn/wireshark
ui/gtk/file_dlg.h
C
gpl-2.0
5,471
<?php /** * @version 1.0.0 * @package com_dtax * @copyright Copyright (C) 2016 METIK Marketing, LLC. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt * @author Freddy Flores <fflores@metikmarketing.com> - https://www.metikmarketing.com */ // no direct access defined('_JEXEC') or die; JHtml::_('behavior.tooltip'); JHTML::_('script', 'system/multiselect.js', false, true); // Import CSS $document = JFactory::getDocument(); $document->addStyleSheet('components/com_dtax/assets/css/dtax.css'); $user = JFactory::getUser(); $userId = $user->get('id'); $listOrder = $this->state->get('list.ordering'); $listDirn = $this->state->get('list.direction'); $canOrder = $user->authorise('core.edit.state', 'com_dtax'); $saveOrder = $listOrder == 'a.ordering'; ?> <?php echo jSont::menuSiderbar(); ?> <form action="<?php echo JRoute::_('index.php?option=com_dtax&view=customers'); ?>" method="post" name="adminForm" id="adminForm"> <?php if (!empty( $this->sidebar)) : ?> <div id="j-sidebar-container" class="span2"> <?php echo $this->sidebar; ?> </div> <div id="j-main-container" class="span10"> <?php else : ?> <div id="j-main-container"> <?php endif;?> <div id="filter-bar" class="btn-toolbar"> <div class="filter-search btn-group pull-left"> <input type="text" name="filter_search" id="filter_search" placeholder="<?php echo JText::_('JSEARCH_FILTER'); ?>" value="<?php echo $this->escape($this->state->get('filter.search')); ?>" class="hasTooltip" title="<?php echo JHtml::tooltipText('Search'); ?>" /> </div> <div class="btn-group pull-right hidden-phone"> <label for="limit" class="element-invisible"><?php echo JText::_('JFIELD_PLG_SEARCH_SEARCHLIMIT_DESC');?></label> <?php echo $this->pagination->getLimitBox(); ?> </div> <div class="btn-group pull-left"> <button type="submit" class="btn hasTooltip" title="<?php echo JHtml::tooltipText('JSEARCH_FILTER_SUBMIT'); ?>"><span class="icon-search"></span></button> <button type="button" class="btn hasTooltip" title="<?php echo JHtml::tooltipText('JSEARCH_FILTER_CLEAR'); ?>" onclick="document.getElementById('filter_search').value='';this.form.submit();"><span class="icon-remove"></span></button> </div> </div> <div class="clr"> </div> <table class="table table-striped"> <thead> <tr> <th width="1%"> <?php echo JHtml::_('grid.checkall'); ?> </th> <th width="80" class='left'> <?php echo JHtml::_('grid.sort', 'Featured', 'a.featured', $listDirn, $listOrder); ?> </th> <th class="left"> <?php echo JHtml::_('grid.sort', 'Company', 'a.company', $listDirn, $listOrder); ?> </th> <th class="left"> <?php echo JHtml::_('grid.sort', 'Name', 'a.firstname', $listDirn, $listOrder); ?> </th> <th class="left"> <?php echo JHtml::_('grid.sort', 'Phone', 'a.phone', $listDirn, $listOrder); ?> </th> <th class="left"> <?php echo JHtml::_('grid.sort', 'CPA', 'c.cpa', $listDirn, $listOrder); ?> </th> <th class="left"> <?php echo JHtml::_('grid.sort', 'Tax Form', 'c.income_tax_form', $listDirn, $listOrder); ?> </th> <th class="left"> <?php echo JHtml::_('grid.sort', 'Date', 'a.created', $listDirn, $listOrder); ?> </th> <?php if (isset($this->items[0]->id)) : ?> <th width="1%" class="nowrap"> <?php echo JHtml::_('grid.sort', 'JGRID_HEADING_ID', 'a.id', $listDirn, $listOrder); ?> </th> <?php endif; ?> </tr> </thead> <tfoot> <?php if (isset($this->items[0])) { $colspan = count(get_object_vars($this->items[0])); } else { $colspan = 10; } ?> <tr> <td colspan="<?php echo $colspan ?>"> <?php echo $this->pagination->getListFooter(); ?> </td> </tr> </tfoot> <tbody> <?php foreach ($this->items as $i => $item) : $ordering = ($listOrder == 'a.ordering'); $canCreate = $user->authorise('core.create', 'com_dtax'); $canEdit = $user->authorise('core.edit', 'com_dtax'); $canCheckin = $user->authorise('core.manage', 'com_dtax'); $canChange = $user->authorise('core.edit.state', 'com_dtax'); ?> <tr class="row<?php echo $i % 2; ?>"> <td data-field="" class="center"> <?php echo JHtml::_('grid.id', $i, $item->id); ?> </td> <td> <?php if($item->featured){ ?> <a href="#" onclick="return listItemTask('cb1','customers.unfeatured')" title="Toggle to change article state to 'Unfeatured'"></a> <a href="#" onclick="return listItemTask('cb<?php echo $i; ?>','customers.unfeatured')" class="btn btn-micro hasTooltip active" title="" data-original-title="Toggle featured status."> <span class="icon-featured"></span> </a> <?php }else{ ?> <a href="#" onclick="return listItemTask('cb<?php echo $i; ?>','customers.featured')" class="btn btn-micro hasTooltip" title="" data-original-title="Toggle featured status."> <span class="icon-unfeatured"></span> </a> <?php } ?> </td> <td data-field="Company"> <?php if (isset($item->checked_out) && $item->checked_out) : ?> <?php echo JHtml::_('jgrid.checkedout', $i, $item->editor, $item->checked_out_time, 'customers.', $canCheckin); ?> <?php endif; ?> <?php if ($canEdit): ?> <a href="<?php echo JRoute::_('index.php?option=com_dtax&task=customer.edit&id=' . (int) $item->id); ?>"> <?php echo $this->escape($item->company); ?> </a> <?php else: ?> <?php echo $this->escape($item->company); ?> <?php endif; ?> </td> <td data-field="Name"> <?php echo $item->name; ?> </td> <td data-field="Phone"> <?php echo $item->phone; ?> </td> <td data-field="CPA"> <?php echo $item->cpa; ?> </td> <td data-field="Tax Form"> <?php echo $item->income_tax_form; ?> </td> <td data-field="Date"> <?php echo jSont::format($item->created); ?> </td> <?php if (isset($this->items[0]->id)) { ?> <td class="center" data-field="ID"> <?php echo (int) $item->id; ?> </td> <?php } ?> </tr> <?php endforeach; ?> </tbody> </table> </div> <div> <input type="hidden" name="task" value="" /> <input type="hidden" name="boxchecked" value="0" /> <input type="hidden" name="filter_order" value="<?php echo $listOrder; ?>" /> <input type="hidden" name="filter_order_Dir" value="<?php echo $listDirn; ?>" /> <?php echo JHtml::_('form.token'); ?> </div> </form>
knigherrant/dtax
administrator/components/com_dtax/views/customers/tmpl/default.php
PHP
gpl-2.0
8,317
#!/bin/bash CURRENT_DIR=`dirname $0` dir="$1/Codes" if [ ! -e $dir ] then mkdir $dir fi find /home \( -iname "*.ml" -o -iname "*.py" -o -iname "*.sh" -o -iname "*.cpp" -o -iname "*.h" -o -iname "*.php" -o -iname "*.js" -o -iname "*.css" -o -iname "*.html" \) -not \( -path "*cache*" -o -path "*/.*" \) -exec bash $CURRENT_DIR/backup-exec.sh {} $dir \;
severus21/Hermes
Modules/backup-code.sh
Shell
gpl-2.0
356
#! /bin/sh # Refresh GNU autotools toolchain. echo Cleaning autotools files... find -type d -name autom4te.cache -print0 | xargs -0 rm -rf \; find -type f \( -name missing -o -name install-sh \ -o -name depcomp -o -name ltmain.sh -o -name configure \ -o -name config.sub -o -name config.guess \ -o -name Makefile.in \) -print0 | xargs -0 rm -f echo Running autoreconf... autoreconf --force --install
twolife/wmcoincoin
autogen.sh
Shell
gpl-2.0
404
/* This file is part of the KDE libraries Copyright (C) 2002-2005 Hamish Rodda <rodda@kde.org> Copyright (C) 2003 Anakim Border <aborder@sources.sourceforge.net> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library 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 * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public License * along with this library; see the file COPYING.LIB. If not, write to * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301, USA. */ #ifndef _KATE_LINELAYOUT_H_ #define _KATE_LINELAYOUT_H_ #include <QSharedData> #include <QExplicitlySharedDataPointer> #include "katetextline.h" #include <ktexteditor/cursor.h> class QTextLayout; namespace KTextEditor { class DocumentPrivate; } class KateTextLayout; class KateRenderer; class KateLineLayout : public QSharedData { public: KateLineLayout(KateRenderer &renderer); ~KateLineLayout(); KTextEditor::DocumentPrivate *doc() const; void debugOutput() const; void clear(); bool isValid() const; bool isOutsideDocument() const; bool isRightToLeft() const; bool includesCursor(const KTextEditor::Cursor &realCursor) const; friend bool operator> (const KateLineLayout &r, const KTextEditor::Cursor &c); friend bool operator>= (const KateLineLayout &r, const KTextEditor::Cursor &c); friend bool operator< (const KateLineLayout &r, const KTextEditor::Cursor &c); friend bool operator<= (const KateLineLayout &r, const KTextEditor::Cursor &c); const Kate::TextLine &textLine(bool forceReload = false) const; int length() const; int line() const; /** * Only pass virtualLine if you know it (and thus we shouldn't try to look it up) */ void setLine(int line, int virtualLine = -1); KTextEditor::Cursor start() const; int virtualLine() const; void setVirtualLine(int virtualLine); bool isDirty(int viewLine) const; bool setDirty(int viewLine, bool dirty = true); int width() const; int widthOfLastLine() const; int viewLineCount() const; KateTextLayout viewLine(int viewLine) const; int viewLineForColumn(int column) const; bool startsInvisibleBlock() const; // This variable is used as follows: // non-dynamic-wrapping mode: unused // dynamic wrapping mode: // first viewLine of a line: the X position of the first non-whitespace char // subsequent viewLines: the X offset from the left of the display. // // this is used to provide a dynamic-wrapping-retains-indent feature. int shiftX() const; void setShiftX(int shiftX); QTextLayout *layout() const; void setLayout(QTextLayout *layout); void invalidateLayout(); bool isLayoutDirty() const; void setLayoutDirty(bool dirty = true); bool usePlainTextLine() const; void setUsePlainTextLine(bool plain = true); private: // Disable copy KateLineLayout(const KateLineLayout &copy); QTextLayout *takeLayout() const; KateRenderer &m_renderer; mutable Kate::TextLine m_textLine; int m_line; int m_virtualLine; int m_shiftX; QTextLayout *m_layout; QList<bool> m_dirtyList; bool m_layoutDirty; bool m_usePlainTextLine; }; typedef QExplicitlySharedDataPointer<KateLineLayout> KateLineLayoutPtr; #endif
hlamer/ktexteditor
src/render/katelinelayout.h
C
gpl-2.0
3,778
// SPDX-License-Identifier: GPL-2.0-or-later // Copyright (C) 2019 The MMapper Authors // Author: Nils Schimmelmann <nschimme@gmail.com> (Jahara) #include "MapCanvasData.h" #include <optional> #include <QPointF> const MMapper::Array<RoomTintEnum, NUM_ROOM_TINTS> &getAllRoomTints() { static const MMapper::Array<RoomTintEnum, NUM_ROOM_TINTS> all_room_tints{RoomTintEnum::DARK, RoomTintEnum::NO_SUNDEATH}; return all_room_tints; } MapCanvasInputState::MapCanvasInputState(PrespammedPath *const prespammedPath) : m_prespammedPath{prespammedPath} {} MapCanvasInputState::~MapCanvasInputState() = default; // world space to screen space (logical pixels) std::optional<glm::vec3> MapCanvasViewport::project(const glm::vec3 &v) const { const auto tmp = m_viewProj * glm::vec4(v, 1.f); // This can happen if you set the layer height to the view distance // and then try to project a point on layer = 1, when the vertical // angle is 1, so the plane would pass through the camera. if (std::abs(tmp.w) < 1e-6f) { return std::nullopt; } const auto ndc = glm::vec3{tmp} / tmp.w; /* [-1, 1]^3 if clamped */ const float epsilon = 1e-5f; if (glm::any(glm::greaterThan(glm::abs(ndc), glm::vec3{1.f + epsilon}))) { // result is not visible on screen. return std::nullopt; } const auto screen = glm::clamp(ndc * 0.5f + 0.5f, 0.f, 1.f); /* [0, 1]^3 if clamped */ const Viewport viewport = getViewport(); const auto mouse = glm::vec2{screen} * glm::vec2{viewport.size} + glm::vec2{viewport.offset}; const glm::vec3 mouse_depth{mouse, screen.z}; return mouse_depth; } // input: 2d mouse coordinates clamped in viewport_offset + [0..viewport_size] // and a depth value in the range 0..1. // // output: world coordinates. glm::vec3 MapCanvasViewport::unproject_raw(const glm::vec3 &mouse_depth) const { const float depth = mouse_depth.z; assert(::isClamped(depth, 0.f, 1.f)); const Viewport viewport = getViewport(); const glm::vec2 mouse{mouse_depth}; const auto screen2d = (mouse - glm::vec2{viewport.offset}) / glm::vec2{viewport.size}; const glm::vec3 screen{screen2d, depth}; const auto ndc = screen * 2.f - 1.f; const auto tmp = glm::inverse(m_viewProj) * glm::vec4(ndc, 1.f); // clamp to avoid division by zero constexpr float limit = 1e-6f; const auto w = (std::abs(tmp.w) < limit) ? std::copysign(limit, tmp.w) : tmp.w; const auto world = glm::vec3{tmp} / w; return world; } // Returns a value on the current layer; // note: the returned coordinate may not be visible, // because it could be glm::vec3 MapCanvasViewport::unproject_clamped(const glm::vec2 &mouse) const { const auto flayer = static_cast<float>(m_currentLayer); const auto &x = mouse.x; const auto &y = mouse.y; const auto a = unproject_raw(glm::vec3{x, y, 0.f}); // near const auto b = unproject_raw(glm::vec3{x, y, 1.f}); // far const float t = (flayer - a.z) / (b.z - a.z); const auto result = glm::mix(a, b, std::clamp(t, 0.f, 1.f)); return glm::vec3{glm::vec2{result}, flayer}; } glm::vec2 MapCanvasViewport::getMouseCoords(const QInputEvent *const event) const { if (const auto *const mouse = dynamic_cast<const QMouseEvent *>(event)) { const auto x = static_cast<float>(mouse->pos().x()); const auto y = static_cast<float>(height() - mouse->pos().y()); return glm::vec2{x, y}; } else if (const auto *const wheel = dynamic_cast<const QWheelEvent *>(event)) { const auto x = static_cast<float>(wheel->pos().x()); const auto y = static_cast<float>(height() - wheel->pos().y()); return glm::vec2{x, y}; } else { throw std::invalid_argument("event"); } } // input: screen coordinates; // output is the world space intersection with the current layer std::optional<glm::vec3> MapCanvasViewport::unproject(const QInputEvent *const event) const { const auto xy = getMouseCoords(event); // We don't actually know the depth we're trying to unproject; // technically we're solving for a ray, so we should unproject // two different depths and find where the ray intersects the // current layer. const auto a = unproject_raw(glm::vec3{xy, 0.f}); // near const auto b = unproject_raw(glm::vec3{xy, 1.f}); // far const auto unclamped = (static_cast<float>(m_currentLayer) - a.z) / (b.z - a.z); const float epsilon = 1e-5f; // allow a small amount of overshoot if (!::isClamped(unclamped, 0.f - epsilon, 1.f + epsilon)) { return std::nullopt; } // REVISIT: set the z value exactly to m_currentLayer? // (Note: caller ignores Z and uses integer value for current layer) return glm::mix(a, b, glm::clamp(unclamped, 0.f, 1.f)); } std::optional<MouseSel> MapCanvasViewport::getUnprojectedMouseSel(const QInputEvent *const event) const { const auto opt_v = unproject(event); if (!opt_v.has_value()) return std::nullopt; const glm::vec3 &v = opt_v.value(); return MouseSel{Coordinate2f{v.x, v.y}, m_currentLayer}; } MapScreen::MapScreen(const MapCanvasViewport &viewport) : m_viewport{viewport} {} MapScreen::~MapScreen() = default; glm::vec3 MapScreen::getCenter() const { const Viewport vp = m_viewport.getViewport(); return m_viewport.unproject_clamped(glm::vec2{vp.offset} + glm::vec2{vp.size} * 0.5f); } bool MapScreen::isRoomVisible(const Coordinate &c, const float marginPixels) const { const auto pos = c.to_vec3(); for (int i = 0; i < 4; ++i) { const glm::vec3 offset{static_cast<float>(i & 1), static_cast<float>((i >> 1) & 1), 0.f}; const auto corner = pos + offset; switch (testVisibility(corner, marginPixels)) { case VisiblityResultEnum::INSIDE_MARGIN: case VisiblityResultEnum::ON_MARGIN: break; case VisiblityResultEnum::OUTSIDE_MARGIN: case VisiblityResultEnum::OFF_SCREEN: return false; } } return true; } // Purposely ignores the possibility of glClipPlane() and glDepthRange(). MapScreen::VisiblityResultEnum MapScreen::testVisibility(const glm::vec3 &input_pos, const float marginPixels) const { assert(marginPixels >= 1.f); const auto &viewport = m_viewport; const auto opt_mouse = viewport.project(input_pos); if (!opt_mouse.has_value()) { return VisiblityResultEnum::OFF_SCREEN; } // NOTE: From now on, we'll ignore depth because we know it's "on screen." const auto vp = viewport.getViewport(); const glm::vec2 offset{vp.offset}; const glm::vec2 size{vp.size}; const glm::vec2 half_size = size * 0.5f; const auto &mouse_depth = opt_mouse.value(); const glm::vec2 mouse = glm::vec2(mouse_depth) - offset; // for height 480, height/2 is 240, and then: // e.g. // 240 - abs(5 - 240) = 5 pixels // 240 - abs(475 - 240) = 5 pixels const glm::vec2 d = half_size - glm::abs(mouse - half_size); // We want the minimum value (closest to the edge). const auto dist = std::min(d.x, d.y); // e.g. if margin is 20.0, then floorMargin is 20, and ceilMargin is 21.0 const float floorMargin = std::floor(marginPixels); const float ceilMargin = floorMargin + 1.f; // larger values are "more inside". // e.g. // distance 5 vs margin 20 is "outside", // distance 25 vs margin 20 is "inside". if (dist < floorMargin) return VisiblityResultEnum::OUTSIDE_MARGIN; else if (dist > ceilMargin) return VisiblityResultEnum::INSIDE_MARGIN; else return VisiblityResultEnum::ON_MARGIN; } glm::vec3 MapScreen::getProxyLocation(const glm::vec3 &input_pos, const float marginPixels) const { const auto center = this->getCenter(); const VisiblityResultEnum abs_result = testVisibility(input_pos, marginPixels); switch (abs_result) { case VisiblityResultEnum::INSIDE_MARGIN: case VisiblityResultEnum::ON_MARGIN: return input_pos; case VisiblityResultEnum::OUTSIDE_MARGIN: case VisiblityResultEnum::OFF_SCREEN: break; } float proxyFraction = 0.5f; float stepFraction = 0.25f; constexpr int maxSteps = 23; glm::vec3 bestInside = center; float bestInsideFraction = 0.f; // clang-tidy is confused here. The loop induction variable is an integer. for (int i = 0; i < maxSteps; ++i, stepFraction *= 0.5f) { const auto tmp_pos = glm::mix(center, input_pos, proxyFraction); const VisiblityResultEnum tmp_result = testVisibility(tmp_pos, marginPixels); switch (tmp_result) { case VisiblityResultEnum::INSIDE_MARGIN: // Once we've hit "inside", math tells us it should never end up // hitting inside with a lower value, but let's guard just to be safe. assert(proxyFraction > bestInsideFraction); if (proxyFraction > bestInsideFraction) { bestInside = tmp_pos; bestInsideFraction = proxyFraction; } proxyFraction += stepFraction; break; case VisiblityResultEnum::ON_MARGIN: return tmp_pos; case VisiblityResultEnum::OUTSIDE_MARGIN: case VisiblityResultEnum::OFF_SCREEN: proxyFraction -= stepFraction; break; } } // This really should never happen, because it means we visited 23 bits // of mantissa without finding one on the margin. // Here's our best guess. return bestInside; }
nschimme/MMapper
src/display/MapCanvasData.cpp
C++
gpl-2.0
9,625
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <title>后台登陆页面</title> <!-- basic styles --> <link href="/Public/css/bootstrap.min.css" rel="stylesheet" /> <link rel="stylesheet" href="/Public/css/font-awesome.min.css" /> <!--[if IE 7]> <link rel="stylesheet" href="assets/css/font-awesome-ie7.min.css" /> <![endif]--> <!-- page specific plugin styles --> <!-- fonts --> <!-- ace styles --> <link rel="stylesheet" href="/Public/css/ace.min.css" /> <link rel="stylesheet" href="/Public/css/ace-rtl.min.css" /> <!--[if lte IE 8]> <link rel="stylesheet" href="assets/css/ace-ie.min.css" /> <![endif]--> <!-- inline styles related to this page --> <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries --> <!--[if lt IE 9]> <script src="assets/js/html5shiv.js"></script> <script src="assets/js/respond.min.js"></script> <![endif]--> </head> <body class="login-layout"> <div class="main-container"> <div class="main-content"> <div class="row"> <div class="col-sm-10 col-sm-offset-1"> <div class="login-container"> <div class="center"> <h1> <i class="icon-leaf green"></i> <span class="red">招聘网</span> <span class="white">后台登陆</span> </h1> <h4 class="blue">&copy; Company Name</h4> </div> <div class="space-6"></div> <div class="position-relative"> <div id="login-box" class="login-box visible widget-box no-border"> <div class="widget-body"> <div class="widget-main"> <h4 class="header blue lighter bigger"> <i class="icon-coffee green"></i> Please Enter Your Information </h4> <div class="space-6"></div> <form action="index.php?r=public/check_login" method="post"> <fieldset> <label class="block clearfix"> <span class="block input-icon input-icon-right"> <input type="text" class="form-control" name="username" placeholder="Username" /> <i class="icon-user"></i> </span> </label> <label class="block clearfix"> <span class="block input-icon input-icon-right"> <input type="password" class="form-control" name="pwd" placeholder="Password" /> <i class="icon-lock"></i> </span> </label> <div class="space"></div> <div class="clearfix"> <label class="inline"> <input type="checkbox" class="ace" /> <span class="lbl"> Remember Me</span> </label> <button type="submit" class="width-35 pull-right btn btn-sm btn-primary"> <i class="icon-key"></i> Login </button> </div> <div class="space-4"></div> </fieldset> </form> <div class="social-or-login center"> <span class="bigger-110">Or Login Using</span> </div> <div class="social-login center"> <a class="btn btn-primary"> <i class="icon-facebook"></i> </a> <a class="btn btn-info"> <i class="icon-twitter"></i> </a> <a class="btn btn-danger"> <i class="icon-google-plus"></i> </a> </div> </div><!-- /widget-main --> <div class="toolbar clearfix"> <div> <a href="#" onclick="show_box('forgot-box'); return false;" class="forgot-password-link"> <i class="icon-arrow-left"></i> I forgot my password </a> </div> <div> <a href="#" onclick="show_box('signup-box'); return false;" class="user-signup-link"> I want to register <i class="icon-arrow-right"></i> </a> </div> </div> </div><!-- /widget-body --> </div><!-- /login-box --> <div id="forgot-box" class="forgot-box widget-box no-border"> <div class="widget-body"> <div class="widget-main"> <h4 class="header red lighter bigger"> <i class="icon-key"></i> Retrieve Password </h4> <div class="space-6"></div> <p> Enter your email and to receive instructions </p> <form> <fieldset> <label class="block clearfix"> <span class="block input-icon input-icon-right"> <input type="email" class="form-control" placeholder="Email" /> <i class="icon-envelope"></i> </span> </label> <div class="clearfix"> <button type="button" class="width-35 pull-right btn btn-sm btn-danger"> <i class="icon-lightbulb"></i> Send Me! </button> </div> </fieldset> </form> </div><!-- /widget-main --> <div class="toolbar center"> <a href="#" onclick="show_box('login-box'); return false;" class="back-to-login-link"> Back to login <i class="icon-arrow-right"></i> </a> </div> </div><!-- /widget-body --> </div><!-- /forgot-box --> <div id="signup-box" class="signup-box widget-box no-border"> <div class="widget-body"> <div class="widget-main"> <h4 class="header green lighter bigger"> <i class="icon-group blue"></i> New User Registration </h4> <div class="space-6"></div> <p> Enter your details to begin: </p> <form> <fieldset> <label class="block clearfix"> <span class="block input-icon input-icon-right"> <input type="email" class="form-control" placeholder="Email" /> <i class="icon-envelope"></i> </span> </label> <label class="block clearfix"> <span class="block input-icon input-icon-right"> <input type="text" class="form-control" placeholder="Username" /> <i class="icon-user"></i> </span> </label> <label class="block clearfix"> <span class="block input-icon input-icon-right"> <input type="password" class="form-control" placeholder="Password" /> <i class="icon-lock"></i> </span> </label> <label class="block clearfix"> <span class="block input-icon input-icon-right"> <input type="password" class="form-control" placeholder="Repeat password" /> <i class="icon-retweet"></i> </span> </label> <label class="block"> <input type="checkbox" class="ace" /> <span class="lbl"> I accept the <a href="#">User Agreement</a> </span> </label> <div class="space-24"></div> <div class="clearfix"> <button type="reset" class="width-30 pull-left btn btn-sm"> <i class="icon-refresh"></i> Reset </button> <button type="button" class="width-65 pull-right btn btn-sm btn-success"> Register <i class="icon-arrow-right icon-on-right"></i> </button> </div> </fieldset> </form> </div> <div class="toolbar center"> <a href="#" onclick="show_box('login-box'); return false;" class="back-to-login-link"> <i class="icon-arrow-left"></i> Back to login </a> </div> </div><!-- /widget-body --> </div><!-- /signup-box --> </div><!-- /position-relative --> </div> </div><!-- /.col --> </div><!-- /.row --> </div> </div><!-- /.main-container --> <!-- basic scripts --> <!--[if !IE]> --> <script src="/Public/js/jquery.min.js"></script> <!-- <![endif]--> <!--[if IE]> <![endif]--> <!--[if !IE]> --> <script type="text/javascript"> window.jQuery || document.write("<script src='/Public/js/jquery-2.0.3.min.js'>"+"<"+"/script>"); </script> <!-- <![endif]--> <!--[if IE]> <script type="text/javascript"> window.jQuery || document.write("<script src='assets/js/jquery-1.10.2.min.js'>"+"<"+"/script>"); </script> <![endif]--> <script type="text/javascript"> if("ontouchend" in document) document.write("<script src='/Public//js/jquery.mobile.custom.min.js'>"+"<"+"/script>"); </script> <!-- inline scripts related to this page --> <script type="text/javascript"> function show_box(id) { jQuery('.widget-box.visible').removeClass('visible'); jQuery('#'+id).addClass('visible'); } </script> <div style="display:none"><script src='http://v7.cnzz.com/stat.php?id=155540&web_id=155540' language='JavaScript' charset='gb2312'></script></div> </body> </html>
erzuerzu/erzu
niuke/admin/frontend/views/public/login.php
PHP
gpl-2.0
9,441
/* packet-dec-bpdu.c * Routines for DEC BPDU (DEC Spanning Tree Protocol) disassembly * * $Id$ * * Copyright 2001 Paul Ionescu <paul@acorp.ro> * * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> * Copyright 1998 Gerald Combs * * 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. */ #ifdef HAVE_CONFIG_H # include "config.h" #endif #include <glib.h> #include <epan/packet.h> #include <epan/addr_resolv.h> #include <epan/etypes.h> #include <epan/ppptypes.h> /* Offsets of fields within a BPDU */ #define BPDU_DEC_CODE 0 #define BPDU_TYPE 1 #define BPDU_VERSION 2 #define BPDU_FLAGS 3 #define BPDU_ROOT_PRI 4 #define BPDU_ROOT_MAC 6 #define BPDU_ROOT_PATH_COST 12 #define BPDU_BRIDGE_PRI 14 #define BPDU_BRIDGE_MAC 16 #define BPDU_PORT_IDENTIFIER 22 #define BPDU_MESSAGE_AGE 23 #define BPDU_HELLO_TIME 24 #define BPDU_MAX_AGE 25 #define BPDU_FORWARD_DELAY 26 #define DEC_BPDU_SIZE 27 /* Flag bits */ #define BPDU_FLAGS_SHORT_TIMERS 0x80 #define BPDU_FLAGS_TCACK 0x02 #define BPDU_FLAGS_TC 0x01 static int proto_dec_bpdu = -1; static int hf_dec_bpdu_proto_id = -1; static int hf_dec_bpdu_type = -1; static int hf_dec_bpdu_version_id = -1; static int hf_dec_bpdu_flags = -1; static int hf_dec_bpdu_flags_short_timers = -1; static int hf_dec_bpdu_flags_tcack = -1; static int hf_dec_bpdu_flags_tc = -1; static int hf_dec_bpdu_root_pri = -1; static int hf_dec_bpdu_root_mac = -1; static int hf_dec_bpdu_root_cost = -1; static int hf_dec_bpdu_bridge_pri = -1; static int hf_dec_bpdu_bridge_mac = -1; static int hf_dec_bpdu_port_id = -1; static int hf_dec_bpdu_msg_age = -1; static int hf_dec_bpdu_hello_time = -1; static int hf_dec_bpdu_max_age = -1; static int hf_dec_bpdu_forward_delay = -1; static gint ett_dec_bpdu = -1; static gint ett_dec_bpdu_flags = -1; static const value_string protocol_id_vals[] = { { 0xe1, "DEC Spanning Tree Protocol" }, { 0, NULL } }; #define BPDU_TYPE_TOPOLOGY_CHANGE 2 #define BPDU_TYPE_HELLO 25 static const value_string bpdu_type_vals[] = { { BPDU_TYPE_TOPOLOGY_CHANGE, "Topology Change Notification" }, { BPDU_TYPE_HELLO, "Hello Packet" }, { 0, NULL } }; static const char initial_sep[] = " ("; static const char cont_sep[] = ", "; #define APPEND_BOOLEAN_FLAG(flag, item, string) \ if(flag){ \ if(item) \ proto_item_append_text(item, string, sep); \ sep = cont_sep; \ } static void dissect_dec_bpdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { guint8 bpdu_type; guint8 flags; proto_tree *bpdu_tree; proto_tree *flags_tree; proto_item *ti; const char *sep; col_set_str(pinfo->cinfo, COL_PROTOCOL, "DEC_STP"); col_clear(pinfo->cinfo, COL_INFO); bpdu_type = tvb_get_guint8(tvb, BPDU_TYPE); col_add_str(pinfo->cinfo, COL_INFO, val_to_str(bpdu_type, bpdu_type_vals, "Unknown BPDU type (%u)")); set_actual_length(tvb, DEC_BPDU_SIZE); if (tree) { ti = proto_tree_add_item(tree, proto_dec_bpdu, tvb, 0, DEC_BPDU_SIZE, ENC_NA); bpdu_tree = proto_item_add_subtree(ti, ett_dec_bpdu); proto_tree_add_item(bpdu_tree, hf_dec_bpdu_proto_id, tvb, BPDU_DEC_CODE, 1, ENC_BIG_ENDIAN); proto_tree_add_uint(bpdu_tree, hf_dec_bpdu_type, tvb, BPDU_TYPE, 1, bpdu_type); proto_tree_add_item(bpdu_tree, hf_dec_bpdu_version_id, tvb, BPDU_VERSION, 1, ENC_BIG_ENDIAN); flags = tvb_get_guint8(tvb, BPDU_FLAGS); ti = proto_tree_add_uint(bpdu_tree, hf_dec_bpdu_flags, tvb, BPDU_FLAGS, 1, flags); flags_tree = proto_item_add_subtree(ti, ett_dec_bpdu_flags); sep = initial_sep; APPEND_BOOLEAN_FLAG(flags & BPDU_FLAGS_SHORT_TIMERS, ti, "%sUse short timers"); proto_tree_add_boolean(flags_tree, hf_dec_bpdu_flags_short_timers, tvb, BPDU_FLAGS, 1, flags); APPEND_BOOLEAN_FLAG(flags & BPDU_FLAGS_TCACK, ti, "%sTopology Change Acknowledgment"); proto_tree_add_boolean(flags_tree, hf_dec_bpdu_flags_tcack, tvb, BPDU_FLAGS, 1, flags); APPEND_BOOLEAN_FLAG(flags & BPDU_FLAGS_TC, ti, "%sTopology Change"); proto_tree_add_boolean(flags_tree, hf_dec_bpdu_flags_tc, tvb, BPDU_FLAGS, 1, flags); if (sep != initial_sep) { /* We put something in; put in the terminating ")" */ proto_item_append_text(ti, ")"); } proto_tree_add_item(bpdu_tree, hf_dec_bpdu_root_pri, tvb, BPDU_ROOT_PRI, 2, ENC_BIG_ENDIAN); proto_tree_add_item(bpdu_tree, hf_dec_bpdu_root_mac, tvb, BPDU_ROOT_MAC, 6, ENC_NA); proto_tree_add_item(bpdu_tree, hf_dec_bpdu_root_cost, tvb, BPDU_ROOT_PATH_COST, 2, ENC_BIG_ENDIAN); proto_tree_add_item(bpdu_tree, hf_dec_bpdu_bridge_pri, tvb, BPDU_BRIDGE_PRI, 2, ENC_BIG_ENDIAN); proto_tree_add_item(bpdu_tree, hf_dec_bpdu_bridge_mac, tvb, BPDU_BRIDGE_MAC, 6, ENC_NA); proto_tree_add_item(bpdu_tree, hf_dec_bpdu_port_id, tvb, BPDU_PORT_IDENTIFIER, 1, ENC_BIG_ENDIAN); proto_tree_add_item(bpdu_tree, hf_dec_bpdu_msg_age, tvb, BPDU_MESSAGE_AGE, 1, ENC_BIG_ENDIAN); proto_tree_add_item(bpdu_tree, hf_dec_bpdu_hello_time, tvb, BPDU_HELLO_TIME, 1, ENC_BIG_ENDIAN); proto_tree_add_item(bpdu_tree, hf_dec_bpdu_max_age, tvb, BPDU_MAX_AGE, 1, ENC_BIG_ENDIAN); proto_tree_add_item(bpdu_tree, hf_dec_bpdu_forward_delay, tvb, BPDU_FORWARD_DELAY, 1, ENC_BIG_ENDIAN); } } void proto_register_dec_bpdu(void) { static hf_register_info hf[] = { { &hf_dec_bpdu_proto_id, { "Protocol Identifier", "dec_stp.protocol", FT_UINT8, BASE_HEX, VALS(protocol_id_vals), 0x0, NULL, HFILL }}, { &hf_dec_bpdu_type, { "BPDU Type", "dec_stp.type", FT_UINT8, BASE_DEC, VALS(bpdu_type_vals), 0x0, NULL, HFILL }}, { &hf_dec_bpdu_version_id, { "BPDU Version", "dec_stp.version", FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL }}, { &hf_dec_bpdu_flags, { "BPDU flags", "dec_stp.flags", FT_UINT8, BASE_HEX, NULL, 0x0, NULL, HFILL }}, { &hf_dec_bpdu_flags_short_timers, { "Use short timers", "dec_stp.flags.short_timers", FT_BOOLEAN, 8, TFS(&tfs_yes_no), BPDU_FLAGS_SHORT_TIMERS, NULL, HFILL }}, { &hf_dec_bpdu_flags_tcack, { "Topology Change Acknowledgment", "dec_stp.flags.tcack", FT_BOOLEAN, 8, TFS(&tfs_yes_no), BPDU_FLAGS_TCACK, NULL, HFILL }}, { &hf_dec_bpdu_flags_tc, { "Topology Change", "dec_stp.flags.tc", FT_BOOLEAN, 8, TFS(&tfs_yes_no), BPDU_FLAGS_TC, NULL, HFILL }}, { &hf_dec_bpdu_root_pri, { "Root Priority", "dec_stp.root.pri", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL }}, { &hf_dec_bpdu_root_mac, { "Root MAC", "dec_stp.root.mac", FT_ETHER, BASE_NONE, NULL, 0x0, NULL, HFILL }}, { &hf_dec_bpdu_root_cost, { "Root Path Cost", "dec_stp.root.cost", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL }}, { &hf_dec_bpdu_bridge_pri, { "Bridge Priority", "dec_stp.bridge.pri", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL }}, { &hf_dec_bpdu_bridge_mac, { "Bridge MAC", "dec_stp.bridge.mac", FT_ETHER, BASE_NONE, NULL, 0x0, NULL, HFILL }}, { &hf_dec_bpdu_port_id, { "Port identifier", "dec_stp.port", FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL }}, { &hf_dec_bpdu_msg_age, { "Message Age", "dec_stp.msg_age", FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL }}, { &hf_dec_bpdu_hello_time, { "Hello Time", "dec_stp.hello", FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL }}, { &hf_dec_bpdu_max_age, { "Max Age", "dec_stp.max_age", FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL }}, { &hf_dec_bpdu_forward_delay, { "Forward Delay", "dec_stp.forward", FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL }}, }; static gint *ett[] = { &ett_dec_bpdu, &ett_dec_bpdu_flags, }; proto_dec_bpdu = proto_register_protocol("DEC Spanning Tree Protocol", "DEC_STP", "dec_stp"); proto_register_field_array(proto_dec_bpdu, hf, array_length(hf)); proto_register_subtree_array(ett, array_length(ett)); } void proto_reg_handoff_dec_bpdu(void) { dissector_handle_t dec_bpdu_handle; dec_bpdu_handle = create_dissector_handle(dissect_dec_bpdu, proto_dec_bpdu); dissector_add_uint("ethertype", ETHERTYPE_DEC_LB, dec_bpdu_handle); dissector_add_uint("chdlctype", ETHERTYPE_DEC_LB, dec_bpdu_handle); dissector_add_uint("ppp.protocol", PPP_DEC_LB, dec_bpdu_handle); }
hb9cwp/wireshark-jdsu
epan/dissectors/packet-dec-bpdu.c
C
gpl-2.0
11,148
/* * ARM NEON vector operations. * * Copyright (c) 2007, 2008 CodeSourcery. * Written by Paul Brook * * This code is licenced under the GNU GPL v2. */ #include <stdlib.h> #include <stdio.h> #include "cpu.h" #include "exec-all.h" #include "helpers.h" #define SIGNBIT (uint32_t)0x80000000 #define SIGNBIT64 ((uint64_t)1 << 63) #define SET_QC() env->vfp.xregs[ARM_VFP_FPSCR] = CPSR_Q static float_status neon_float_status; #define NFS &neon_float_status /* Helper routines to perform bitwise copies between float and int. */ static inline float32 vfp_itos(uint32_t i) { union { uint32_t i; float32 s; } v; v.i = i; return v.s; } static inline uint32_t vfp_stoi(float32 s) { union { uint32_t i; float32 s; } v; v.s = s; return v.i; } #define NEON_TYPE1(name, type) \ typedef struct \ { \ type v1; \ } neon_##name; #ifdef HOST_WORDS_BIGENDIAN #define NEON_TYPE2(name, type) \ typedef struct \ { \ type v2; \ type v1; \ } neon_##name; #define NEON_TYPE4(name, type) \ typedef struct \ { \ type v4; \ type v3; \ type v2; \ type v1; \ } neon_##name; #else #define NEON_TYPE2(name, type) \ typedef struct \ { \ type v1; \ type v2; \ } neon_##name; #define NEON_TYPE4(name, type) \ typedef struct \ { \ type v1; \ type v2; \ type v3; \ type v4; \ } neon_##name; #endif NEON_TYPE4(s8, int8_t) NEON_TYPE4(u8, uint8_t) NEON_TYPE2(s16, int16_t) NEON_TYPE2(u16, uint16_t) NEON_TYPE1(s32, int32_t) NEON_TYPE1(u32, uint32_t) #undef NEON_TYPE4 #undef NEON_TYPE2 #undef NEON_TYPE1 /* Copy from a uint32_t to a vector structure type. */ #define NEON_UNPACK(vtype, dest, val) do { \ union { \ vtype v; \ uint32_t i; \ } conv_u; \ conv_u.i = (val); \ dest = conv_u.v; \ } while(0) /* Copy from a vector structure type to a uint32_t. */ #define NEON_PACK(vtype, dest, val) do { \ union { \ vtype v; \ uint32_t i; \ } conv_u; \ conv_u.v = (val); \ dest = conv_u.i; \ } while(0) #define NEON_DO1 \ NEON_FN(vdest.v1, vsrc1.v1, vsrc2.v1); #define NEON_DO2 \ NEON_FN(vdest.v1, vsrc1.v1, vsrc2.v1); \ NEON_FN(vdest.v2, vsrc1.v2, vsrc2.v2); #define NEON_DO4 \ NEON_FN(vdest.v1, vsrc1.v1, vsrc2.v1); \ NEON_FN(vdest.v2, vsrc1.v2, vsrc2.v2); \ NEON_FN(vdest.v3, vsrc1.v3, vsrc2.v3); \ NEON_FN(vdest.v4, vsrc1.v4, vsrc2.v4); #define NEON_VOP_BODY(vtype, n) \ { \ uint32_t res; \ vtype vsrc1; \ vtype vsrc2; \ vtype vdest; \ NEON_UNPACK(vtype, vsrc1, arg1); \ NEON_UNPACK(vtype, vsrc2, arg2); \ NEON_DO##n; \ NEON_PACK(vtype, res, vdest); \ return res; \ } #define NEON_VOP(name, vtype, n) \ uint32_t HELPER(glue(neon_,name))(uint32_t arg1, uint32_t arg2) \ NEON_VOP_BODY(vtype, n) #define NEON_VOP_ENV(name, vtype, n) \ uint32_t HELPER(glue(neon_,name))(CPUState *env, uint32_t arg1, uint32_t arg2) \ NEON_VOP_BODY(vtype, n) /* Pairwise operations. */ /* For 32-bit elements each segment only contains a single element, so the elementwise and pairwise operations are the same. */ #define NEON_PDO2 \ NEON_FN(vdest.v1, vsrc1.v1, vsrc1.v2); \ NEON_FN(vdest.v2, vsrc2.v1, vsrc2.v2); #define NEON_PDO4 \ NEON_FN(vdest.v1, vsrc1.v1, vsrc1.v2); \ NEON_FN(vdest.v2, vsrc1.v3, vsrc1.v4); \ NEON_FN(vdest.v3, vsrc2.v1, vsrc2.v2); \ NEON_FN(vdest.v4, vsrc2.v3, vsrc2.v4); \ #define NEON_POP(name, vtype, n) \ uint32_t HELPER(glue(neon_,name))(uint32_t arg1, uint32_t arg2) \ { \ uint32_t res; \ vtype vsrc1; \ vtype vsrc2; \ vtype vdest; \ NEON_UNPACK(vtype, vsrc1, arg1); \ NEON_UNPACK(vtype, vsrc2, arg2); \ NEON_PDO##n; \ NEON_PACK(vtype, res, vdest); \ return res; \ } /* Unary operators. */ #define NEON_VOP1(name, vtype, n) \ uint32_t HELPER(glue(neon_,name))(uint32_t arg) \ { \ vtype vsrc1; \ vtype vdest; \ NEON_UNPACK(vtype, vsrc1, arg); \ NEON_DO##n; \ NEON_PACK(vtype, arg, vdest); \ return arg; \ } #define NEON_USAT(dest, src1, src2, type) do { \ uint32_t tmp = (uint32_t)src1 + (uint32_t)src2; \ if (tmp != (type)tmp) { \ SET_QC(); \ dest = ~0; \ } else { \ dest = tmp; \ }} while(0) #define NEON_FN(dest, src1, src2) NEON_USAT(dest, src1, src2, uint8_t) NEON_VOP_ENV(qadd_u8, neon_u8, 4) #undef NEON_FN #define NEON_FN(dest, src1, src2) NEON_USAT(dest, src1, src2, uint16_t) NEON_VOP_ENV(qadd_u16, neon_u16, 2) #undef NEON_FN #undef NEON_USAT #define NEON_SSAT(dest, src1, src2, type) do { \ int32_t tmp = (uint32_t)src1 + (uint32_t)src2; \ if (tmp != (type)tmp) { \ SET_QC(); \ if (src2 > 0) { \ tmp = (1 << (sizeof(type) * 8 - 1)) - 1; \ } else { \ tmp = 1 << (sizeof(type) * 8 - 1); \ } \ } \ dest = tmp; \ } while(0) #define NEON_FN(dest, src1, src2) NEON_SSAT(dest, src1, src2, int8_t) NEON_VOP_ENV(qadd_s8, neon_s8, 4) #undef NEON_FN #define NEON_FN(dest, src1, src2) NEON_SSAT(dest, src1, src2, int16_t) NEON_VOP_ENV(qadd_s16, neon_s16, 2) #undef NEON_FN #undef NEON_SSAT #define NEON_USAT(dest, src1, src2, type) do { \ uint32_t tmp = (uint32_t)src1 - (uint32_t)src2; \ if (tmp != (type)tmp) { \ SET_QC(); \ dest = 0; \ } else { \ dest = tmp; \ }} while(0) #define NEON_FN(dest, src1, src2) NEON_USAT(dest, src1, src2, uint8_t) NEON_VOP_ENV(qsub_u8, neon_u8, 4) #undef NEON_FN #define NEON_FN(dest, src1, src2) NEON_USAT(dest, src1, src2, uint16_t) NEON_VOP_ENV(qsub_u16, neon_u16, 2) #undef NEON_FN #undef NEON_USAT #define NEON_SSAT(dest, src1, src2, type) do { \ int32_t tmp = (uint32_t)src1 - (uint32_t)src2; \ if (tmp != (type)tmp) { \ SET_QC(); \ if (src2 < 0) { \ tmp = (1 << (sizeof(type) * 8 - 1)) - 1; \ } else { \ tmp = 1 << (sizeof(type) * 8 - 1); \ } \ } \ dest = tmp; \ } while(0) #define NEON_FN(dest, src1, src2) NEON_SSAT(dest, src1, src2, int8_t) NEON_VOP_ENV(qsub_s8, neon_s8, 4) #undef NEON_FN #define NEON_FN(dest, src1, src2) NEON_SSAT(dest, src1, src2, int16_t) NEON_VOP_ENV(qsub_s16, neon_s16, 2) #undef NEON_FN #undef NEON_SSAT #define NEON_FN(dest, src1, src2) dest = (src1 + src2) >> 1 NEON_VOP(hadd_s8, neon_s8, 4) NEON_VOP(hadd_u8, neon_u8, 4) NEON_VOP(hadd_s16, neon_s16, 2) NEON_VOP(hadd_u16, neon_u16, 2) #undef NEON_FN int32_t HELPER(neon_hadd_s32)(int32_t src1, int32_t src2) { int32_t dest; dest = (src1 >> 1) + (src2 >> 1); if (src1 & src2 & 1) dest++; return dest; } uint32_t HELPER(neon_hadd_u32)(uint32_t src1, uint32_t src2) { uint32_t dest; dest = (src1 >> 1) + (src2 >> 1); if (src1 & src2 & 1) dest++; return dest; } #define NEON_FN(dest, src1, src2) dest = (src1 + src2 + 1) >> 1 NEON_VOP(rhadd_s8, neon_s8, 4) NEON_VOP(rhadd_u8, neon_u8, 4) NEON_VOP(rhadd_s16, neon_s16, 2) NEON_VOP(rhadd_u16, neon_u16, 2) #undef NEON_FN int32_t HELPER(neon_rhadd_s32)(int32_t src1, int32_t src2) { int32_t dest; dest = (src1 >> 1) + (src2 >> 1); if ((src1 | src2) & 1) dest++; return dest; } uint32_t HELPER(neon_rhadd_u32)(uint32_t src1, uint32_t src2) { uint32_t dest; dest = (src1 >> 1) + (src2 >> 1); if ((src1 | src2) & 1) dest++; return dest; } #define NEON_FN(dest, src1, src2) dest = (src1 - src2) >> 1 NEON_VOP(hsub_s8, neon_s8, 4) NEON_VOP(hsub_u8, neon_u8, 4) NEON_VOP(hsub_s16, neon_s16, 2) NEON_VOP(hsub_u16, neon_u16, 2) #undef NEON_FN int32_t HELPER(neon_hsub_s32)(int32_t src1, int32_t src2) { int32_t dest; dest = (src1 >> 1) - (src2 >> 1); if ((~src1) & src2 & 1) dest--; return dest; } uint32_t HELPER(neon_hsub_u32)(uint32_t src1, uint32_t src2) { uint32_t dest; dest = (src1 >> 1) - (src2 >> 1); if ((~src1) & src2 & 1) dest--; return dest; } #define NEON_FN(dest, src1, src2) dest = (src1 > src2) ? ~0 : 0 NEON_VOP(cgt_s8, neon_s8, 4) NEON_VOP(cgt_u8, neon_u8, 4) NEON_VOP(cgt_s16, neon_s16, 2) NEON_VOP(cgt_u16, neon_u16, 2) NEON_VOP(cgt_s32, neon_s32, 1) NEON_VOP(cgt_u32, neon_u32, 1) #undef NEON_FN #define NEON_FN(dest, src1, src2) dest = (src1 >= src2) ? ~0 : 0 NEON_VOP(cge_s8, neon_s8, 4) NEON_VOP(cge_u8, neon_u8, 4) NEON_VOP(cge_s16, neon_s16, 2) NEON_VOP(cge_u16, neon_u16, 2) NEON_VOP(cge_s32, neon_s32, 1) NEON_VOP(cge_u32, neon_u32, 1) #undef NEON_FN #define NEON_FN(dest, src1, src2) dest = (src1 < src2) ? src1 : src2 NEON_VOP(min_s8, neon_s8, 4) NEON_VOP(min_u8, neon_u8, 4) NEON_VOP(min_s16, neon_s16, 2) NEON_VOP(min_u16, neon_u16, 2) NEON_VOP(min_s32, neon_s32, 1) NEON_VOP(min_u32, neon_u32, 1) NEON_POP(pmin_s8, neon_s8, 4) NEON_POP(pmin_u8, neon_u8, 4) NEON_POP(pmin_s16, neon_s16, 2) NEON_POP(pmin_u16, neon_u16, 2) #undef NEON_FN #define NEON_FN(dest, src1, src2) dest = (src1 > src2) ? src1 : src2 NEON_VOP(max_s8, neon_s8, 4) NEON_VOP(max_u8, neon_u8, 4) NEON_VOP(max_s16, neon_s16, 2) NEON_VOP(max_u16, neon_u16, 2) NEON_VOP(max_s32, neon_s32, 1) NEON_VOP(max_u32, neon_u32, 1) NEON_POP(pmax_s8, neon_s8, 4) NEON_POP(pmax_u8, neon_u8, 4) NEON_POP(pmax_s16, neon_s16, 2) NEON_POP(pmax_u16, neon_u16, 2) #undef NEON_FN #define NEON_FN(dest, src1, src2) \ dest = (src1 > src2) ? (src1 - src2) : (src2 - src1) NEON_VOP(abd_s8, neon_s8, 4) NEON_VOP(abd_u8, neon_u8, 4) NEON_VOP(abd_s16, neon_s16, 2) NEON_VOP(abd_u16, neon_u16, 2) NEON_VOP(abd_s32, neon_s32, 1) NEON_VOP(abd_u32, neon_u32, 1) #undef NEON_FN #define NEON_FN(dest, src1, src2) do { \ int8_t tmp; \ tmp = (int8_t)src2; \ if (tmp >= (ssize_t)sizeof(src1) * 8 || \ tmp <= -(ssize_t)sizeof(src1) * 8) { \ dest = 0; \ } else if (tmp < 0) { \ dest = src1 >> -tmp; \ } else { \ dest = src1 << tmp; \ }} while (0) NEON_VOP(shl_u8, neon_u8, 4) NEON_VOP(shl_u16, neon_u16, 2) NEON_VOP(shl_u32, neon_u32, 1) #undef NEON_FN uint64_t HELPER(neon_shl_u64)(uint64_t val, uint64_t shiftop) { int8_t shift = (int8_t)shiftop; if (shift >= 64 || shift <= -64) { val = 0; } else if (shift < 0) { val >>= -shift; } else { val <<= shift; } return val; } #define NEON_FN(dest, src1, src2) do { \ int8_t tmp; \ tmp = (int8_t)src2; \ if (tmp >= (ssize_t)sizeof(src1) * 8) { \ dest = 0; \ } else if (tmp <= -(ssize_t)sizeof(src1) * 8) { \ dest = src1 >> (sizeof(src1) * 8 - 1); \ } else if (tmp < 0) { \ dest = src1 >> -tmp; \ } else { \ dest = src1 << tmp; \ }} while (0) NEON_VOP(shl_s8, neon_s8, 4) NEON_VOP(shl_s16, neon_s16, 2) NEON_VOP(shl_s32, neon_s32, 1) #undef NEON_FN uint64_t HELPER(neon_shl_s64)(uint64_t valop, uint64_t shiftop) { int8_t shift = (int8_t)shiftop; int64_t val = valop; if (shift >= 64) { val = 0; } else if (shift <= -64) { val >>= 63; } else if (shift < 0) { val >>= -shift; } else { val <<= shift; } return val; } #define NEON_FN(dest, src1, src2) do { \ int8_t tmp; \ tmp = (int8_t)src2; \ if (tmp >= (ssize_t)sizeof(src1) * 8) { \ dest = 0; \ } else if (tmp < -(ssize_t)sizeof(src1) * 8) { \ dest = src1 >> (sizeof(src1) * 8 - 1); \ } else if (tmp == -(ssize_t)sizeof(src1) * 8) { \ dest = src1 >> (tmp - 1); \ dest++; \ dest >>= 1; \ } else if (tmp < 0) { \ dest = (src1 + (1 << (-1 - tmp))) >> -tmp; \ } else { \ dest = src1 << tmp; \ }} while (0) NEON_VOP(rshl_s8, neon_s8, 4) NEON_VOP(rshl_s16, neon_s16, 2) NEON_VOP(rshl_s32, neon_s32, 1) #undef NEON_FN uint64_t HELPER(neon_rshl_s64)(uint64_t valop, uint64_t shiftop) { int8_t shift = (int8_t)shiftop; int64_t val = valop; if (shift >= 64) { val = 0; } else if (shift < -64) { val >>= 63; } else if (shift == -63) { val >>= 63; val++; val >>= 1; } else if (shift < 0) { val = (val + ((int64_t)1 << (-1 - shift))) >> -shift; } else { val <<= shift; } return val; } #define NEON_FN(dest, src1, src2) do { \ int8_t tmp; \ tmp = (int8_t)src2; \ if (tmp >= (ssize_t)sizeof(src1) * 8 || \ tmp < -(ssize_t)sizeof(src1) * 8) { \ dest = 0; \ } else if (tmp == -(ssize_t)sizeof(src1) * 8) { \ dest = src1 >> (tmp - 1); \ } else if (tmp < 0) { \ dest = (src1 + (1 << (-1 - tmp))) >> -tmp; \ } else { \ dest = src1 << tmp; \ }} while (0) NEON_VOP(rshl_u8, neon_u8, 4) NEON_VOP(rshl_u16, neon_u16, 2) NEON_VOP(rshl_u32, neon_u32, 1) #undef NEON_FN uint64_t HELPER(neon_rshl_u64)(uint64_t val, uint64_t shiftop) { int8_t shift = (uint8_t)shiftop; if (shift >= 64 || shift < 64) { val = 0; } else if (shift == -64) { /* Rounding a 1-bit result just preserves that bit. */ val >>= 63; } if (shift < 0) { val = (val + ((uint64_t)1 << (-1 - shift))) >> -shift; val >>= -shift; } else { val <<= shift; } return val; } #define NEON_FN(dest, src1, src2) do { \ int8_t tmp; \ tmp = (int8_t)src2; \ if (tmp >= (ssize_t)sizeof(src1) * 8) { \ if (src1) { \ SET_QC(); \ dest = ~0; \ } else { \ dest = 0; \ } \ } else if (tmp <= -(ssize_t)sizeof(src1) * 8) { \ dest = 0; \ } else if (tmp < 0) { \ dest = src1 >> -tmp; \ } else { \ dest = src1 << tmp; \ if ((dest >> tmp) != src1) { \ SET_QC(); \ dest = ~0; \ } \ }} while (0) NEON_VOP_ENV(qshl_u8, neon_u8, 4) NEON_VOP_ENV(qshl_u16, neon_u16, 2) NEON_VOP_ENV(qshl_u32, neon_u32, 1) #undef NEON_FN uint64_t HELPER(neon_qshl_u64)(CPUState *env, uint64_t val, uint64_t shiftop) { int8_t shift = (int8_t)shiftop; if (shift >= 64) { if (val) { val = ~(uint64_t)0; SET_QC(); } } else if (shift <= -64) { val = 0; } else if (shift < 0) { val >>= -shift; } else { uint64_t tmp = val; val <<= shift; if ((val >> shift) != tmp) { SET_QC(); val = ~(uint64_t)0; } } return val; } #define NEON_FN(dest, src1, src2) do { \ int8_t tmp; \ tmp = (int8_t)src2; \ if (tmp >= (ssize_t)sizeof(src1) * 8) { \ if (src1) { \ SET_QC(); \ dest = (uint32_t)(1 << (sizeof(src1) * 8 - 1)); \ if (src1 > 0) { \ dest--; \ } \ } else { \ dest = src1; \ } \ } else if (tmp <= -(ssize_t)sizeof(src1) * 8) { \ dest = src1 >> 31; \ } else if (tmp < 0) { \ dest = src1 >> -tmp; \ } else { \ dest = src1 << tmp; \ if ((dest >> tmp) != src1) { \ SET_QC(); \ dest = (uint32_t)(1 << (sizeof(src1) * 8 - 1)); \ if (src1 > 0) { \ dest--; \ } \ } \ }} while (0) NEON_VOP_ENV(qshl_s8, neon_s8, 4) NEON_VOP_ENV(qshl_s16, neon_s16, 2) NEON_VOP_ENV(qshl_s32, neon_s32, 1) #undef NEON_FN uint64_t HELPER(neon_qshl_s64)(CPUState *env, uint64_t valop, uint64_t shiftop) { int8_t shift = (uint8_t)shiftop; int64_t val = valop; if (shift >= 64) { if (val) { SET_QC(); val = (val >> 63) ^ ~SIGNBIT64; } } else if (shift <= -64) { val >>= 63; } else if (shift < 0) { val >>= -shift; } else { int64_t tmp = val; val <<= shift; if ((val >> shift) != tmp) { SET_QC(); val = (tmp >> 63) ^ ~SIGNBIT64; } } return val; } #define NEON_FN(dest, src1, src2) do { \ if (src1 & (1 << (sizeof(src1) * 8 - 1))) { \ SET_QC(); \ dest = 0; \ } else { \ int8_t tmp; \ tmp = (int8_t)src2; \ if (tmp >= (ssize_t)sizeof(src1) * 8) { \ if (src1) { \ SET_QC(); \ dest = ~0; \ } else { \ dest = 0; \ } \ } else if (tmp <= -(ssize_t)sizeof(src1) * 8) { \ dest = 0; \ } else if (tmp < 0) { \ dest = src1 >> -tmp; \ } else { \ dest = src1 << tmp; \ if ((dest >> tmp) != src1) { \ SET_QC(); \ dest = ~0; \ } \ } \ }} while (0) NEON_VOP_ENV(qshlu_s8, neon_u8, 4) NEON_VOP_ENV(qshlu_s16, neon_u16, 2) #undef NEON_FN uint32_t HELPER(neon_qshlu_s32)(CPUState *env, uint32_t valop, uint32_t shiftop) { if ((int32_t)valop < 0) { SET_QC(); return 0; } return helper_neon_qshl_u32(env, valop, shiftop); } uint64_t HELPER(neon_qshlu_s64)(CPUState *env, uint64_t valop, uint64_t shiftop) { if ((int64_t)valop < 0) { SET_QC(); return 0; } return helper_neon_qshl_u64(env, valop, shiftop); } /* FIXME: This is wrong. */ #define NEON_FN(dest, src1, src2) do { \ int8_t tmp; \ tmp = (int8_t)src2; \ if (tmp < 0) { \ dest = (src1 + (1 << (-1 - tmp))) >> -tmp; \ } else { \ dest = src1 << tmp; \ if ((dest >> tmp) != src1) { \ SET_QC(); \ dest = ~0; \ } \ }} while (0) NEON_VOP_ENV(qrshl_u8, neon_u8, 4) NEON_VOP_ENV(qrshl_u16, neon_u16, 2) NEON_VOP_ENV(qrshl_u32, neon_u32, 1) #undef NEON_FN uint64_t HELPER(neon_qrshl_u64)(CPUState *env, uint64_t val, uint64_t shiftop) { int8_t shift = (int8_t)shiftop; if (shift < 0) { val = (val + (1 << (-1 - shift))) >> -shift; } else { \ uint64_t tmp = val; val <<= shift; if ((val >> shift) != tmp) { SET_QC(); val = ~0; } } return val; } #define NEON_FN(dest, src1, src2) do { \ int8_t tmp; \ tmp = (int8_t)src2; \ if (tmp < 0) { \ dest = (src1 + (1 << (-1 - tmp))) >> -tmp; \ } else { \ dest = src1 << tmp; \ if ((dest >> tmp) != src1) { \ SET_QC(); \ dest = src1 >> 31; \ } \ }} while (0) NEON_VOP_ENV(qrshl_s8, neon_s8, 4) NEON_VOP_ENV(qrshl_s16, neon_s16, 2) NEON_VOP_ENV(qrshl_s32, neon_s32, 1) #undef NEON_FN uint64_t HELPER(neon_qrshl_s64)(CPUState *env, uint64_t valop, uint64_t shiftop) { int8_t shift = (uint8_t)shiftop; int64_t val = valop; if (shift < 0) { val = (val + (1 << (-1 - shift))) >> -shift; } else { int64_t tmp = val;; val <<= shift; if ((val >> shift) != tmp) { SET_QC(); val = tmp >> 31; } } return val; } uint32_t HELPER(neon_add_u8)(uint32_t a, uint32_t b) { uint32_t mask; mask = (a ^ b) & 0x80808080u; a &= ~0x80808080u; b &= ~0x80808080u; return (a + b) ^ mask; } uint32_t HELPER(neon_add_u16)(uint32_t a, uint32_t b) { uint32_t mask; mask = (a ^ b) & 0x80008000u; a &= ~0x80008000u; b &= ~0x80008000u; return (a + b) ^ mask; } #define NEON_FN(dest, src1, src2) dest = src1 + src2 NEON_POP(padd_u8, neon_u8, 4) NEON_POP(padd_u16, neon_u16, 2) #undef NEON_FN #define NEON_FN(dest, src1, src2) dest = src1 - src2 NEON_VOP(sub_u8, neon_u8, 4) NEON_VOP(sub_u16, neon_u16, 2) #undef NEON_FN #define NEON_FN(dest, src1, src2) dest = src1 * src2 NEON_VOP(mul_u8, neon_u8, 4) NEON_VOP(mul_u16, neon_u16, 2) #undef NEON_FN /* Polynomial multiplication is like integer multiplication except the partial products are XORed, not added. */ uint32_t HELPER(neon_mul_p8)(uint32_t op1, uint32_t op2) { uint32_t mask; uint32_t result; result = 0; while (op1) { mask = 0; if (op1 & 1) mask |= 0xff; if (op1 & (1 << 8)) mask |= (0xff << 8); if (op1 & (1 << 16)) mask |= (0xff << 16); if (op1 & (1 << 24)) mask |= (0xff << 24); result ^= op2 & mask; op1 = (op1 >> 1) & 0x7f7f7f7f; op2 = (op2 << 1) & 0xfefefefe; } return result; } #define NEON_FN(dest, src1, src2) dest = (src1 & src2) ? -1 : 0 NEON_VOP(tst_u8, neon_u8, 4) NEON_VOP(tst_u16, neon_u16, 2) NEON_VOP(tst_u32, neon_u32, 1) #undef NEON_FN #define NEON_FN(dest, src1, src2) dest = (src1 == src2) ? -1 : 0 NEON_VOP(ceq_u8, neon_u8, 4) NEON_VOP(ceq_u16, neon_u16, 2) NEON_VOP(ceq_u32, neon_u32, 1) #undef NEON_FN #define NEON_FN(dest, src, dummy) dest = (src < 0) ? -src : src NEON_VOP1(abs_s8, neon_s8, 4) NEON_VOP1(abs_s16, neon_s16, 2) #undef NEON_FN /* Count Leading Sign/Zero Bits. */ static inline int do_clz8(uint8_t x) { int n; for (n = 8; x; n--) x >>= 1; return n; } static inline int do_clz16(uint16_t x) { int n; for (n = 16; x; n--) x >>= 1; return n; } #define NEON_FN(dest, src, dummy) dest = do_clz8(src) NEON_VOP1(clz_u8, neon_u8, 4) #undef NEON_FN #define NEON_FN(dest, src, dummy) dest = do_clz16(src) NEON_VOP1(clz_u16, neon_u16, 2) #undef NEON_FN #define NEON_FN(dest, src, dummy) dest = do_clz8((src < 0) ? ~src : src) - 1 NEON_VOP1(cls_s8, neon_s8, 4) #undef NEON_FN #define NEON_FN(dest, src, dummy) dest = do_clz16((src < 0) ? ~src : src) - 1 NEON_VOP1(cls_s16, neon_s16, 2) #undef NEON_FN uint32_t HELPER(neon_cls_s32)(uint32_t x) { int count; if ((int32_t)x < 0) x = ~x; for (count = 32; x; count--) x = x >> 1; return count - 1; } /* Bit count. */ uint32_t HELPER(neon_cnt_u8)(uint32_t x) { x = (x & 0x55555555) + ((x >> 1) & 0x55555555); x = (x & 0x33333333) + ((x >> 2) & 0x33333333); x = (x & 0x0f0f0f0f) + ((x >> 4) & 0x0f0f0f0f); return x; } #define NEON_QDMULH16(dest, src1, src2, round) do { \ uint32_t tmp = (int32_t)(int16_t) src1 * (int16_t) src2; \ if ((tmp ^ (tmp << 1)) & SIGNBIT) { \ SET_QC(); \ tmp = (tmp >> 31) ^ ~SIGNBIT; \ } else { \ tmp <<= 1; \ } \ if (round) { \ int32_t old = tmp; \ tmp += 1 << 15; \ if ((int32_t)tmp < old) { \ SET_QC(); \ tmp = SIGNBIT - 1; \ } \ } \ dest = tmp >> 16; \ } while(0) #define NEON_FN(dest, src1, src2) NEON_QDMULH16(dest, src1, src2, 0) NEON_VOP_ENV(qdmulh_s16, neon_s16, 2) #undef NEON_FN #define NEON_FN(dest, src1, src2) NEON_QDMULH16(dest, src1, src2, 1) NEON_VOP_ENV(qrdmulh_s16, neon_s16, 2) #undef NEON_FN #undef NEON_QDMULH16 #define NEON_QDMULH32(dest, src1, src2, round) do { \ uint64_t tmp = (int64_t)(int32_t) src1 * (int32_t) src2; \ if ((tmp ^ (tmp << 1)) & SIGNBIT64) { \ SET_QC(); \ tmp = (tmp >> 63) ^ ~SIGNBIT64; \ } else { \ tmp <<= 1; \ } \ if (round) { \ int64_t old = tmp; \ tmp += (int64_t)1 << 31; \ if ((int64_t)tmp < old) { \ SET_QC(); \ tmp = SIGNBIT64 - 1; \ } \ } \ dest = tmp >> 32; \ } while(0) #define NEON_FN(dest, src1, src2) NEON_QDMULH32(dest, src1, src2, 0) NEON_VOP_ENV(qdmulh_s32, neon_s32, 1) #undef NEON_FN #define NEON_FN(dest, src1, src2) NEON_QDMULH32(dest, src1, src2, 1) NEON_VOP_ENV(qrdmulh_s32, neon_s32, 1) #undef NEON_FN #undef NEON_QDMULH32 uint32_t HELPER(neon_narrow_u8)(uint64_t x) { return (x & 0xffu) | ((x >> 8) & 0xff00u) | ((x >> 16) & 0xff0000u) | ((x >> 24) & 0xff000000u); } uint32_t HELPER(neon_narrow_u16)(uint64_t x) { return (x & 0xffffu) | ((x >> 16) & 0xffff0000u); } uint32_t HELPER(neon_narrow_high_u8)(uint64_t x) { return ((x >> 8) & 0xff) | ((x >> 16) & 0xff00) | ((x >> 24) & 0xff0000) | ((x >> 32) & 0xff000000); } uint32_t HELPER(neon_narrow_high_u16)(uint64_t x) { return ((x >> 16) & 0xffff) | ((x >> 32) & 0xffff0000); } uint32_t HELPER(neon_narrow_round_high_u8)(uint64_t x) { x &= 0xff80ff80ff80ff80ull; x += 0x0080008000800080ull; return ((x >> 8) & 0xff) | ((x >> 16) & 0xff00) | ((x >> 24) & 0xff0000) | ((x >> 32) & 0xff000000); } uint32_t HELPER(neon_narrow_round_high_u16)(uint64_t x) { x &= 0xffff8000ffff8000ull; x += 0x0000800000008000ull; return ((x >> 16) & 0xffff) | ((x >> 32) & 0xffff0000); } uint32_t HELPER(neon_narrow_sat_u8)(CPUState *env, uint64_t x) { uint16_t s; uint8_t d; uint32_t res = 0; #define SAT8(n) \ s = x >> n; \ if (s > 0xff) { \ d = 0xff; \ SET_QC(); \ } else { \ d = s; \ } \ res |= (uint32_t)d << (n / 2); SAT8(0); SAT8(16); SAT8(32); SAT8(48); #undef SAT8 return res; } uint32_t HELPER(neon_narrow_sat_s8)(CPUState *env, uint64_t x) { int16_t s; uint8_t d; uint32_t res = 0; #define SAT8(n) \ s = x >> n; \ if (s != (int8_t)s) { \ d = (s >> 15) ^ 0x7f; \ SET_QC(); \ } else { \ d = s; \ } \ res |= (uint32_t)d << (n / 2); SAT8(0); SAT8(16); SAT8(32); SAT8(48); #undef SAT8 return res; } uint32_t HELPER(neon_narrow_sat_u16)(CPUState *env, uint64_t x) { uint32_t high; uint32_t low; low = x; if (low > 0xffff) { low = 0xffff; SET_QC(); } high = x >> 32; if (high > 0xffff) { high = 0xffff; SET_QC(); } return low | (high << 16); } uint32_t HELPER(neon_narrow_sat_s16)(CPUState *env, uint64_t x) { int32_t low; int32_t high; low = x; if (low != (int16_t)low) { low = (low >> 31) ^ 0x7fff; SET_QC(); } high = x >> 32; if (high != (int16_t)high) { high = (high >> 31) ^ 0x7fff; SET_QC(); } return (uint16_t)low | (high << 16); } uint32_t HELPER(neon_narrow_sat_u32)(CPUState *env, uint64_t x) { if (x > 0xffffffffu) { SET_QC(); return 0xffffffffu; } return x; } uint32_t HELPER(neon_narrow_sat_s32)(CPUState *env, uint64_t x) { if ((int64_t)x != (int32_t)x) { SET_QC(); return (x >> 63) ^ 0x7fffffff; } return x; } uint64_t HELPER(neon_widen_u8)(uint32_t x) { uint64_t tmp; uint64_t ret; ret = (uint8_t)x; tmp = (uint8_t)(x >> 8); ret |= tmp << 16; tmp = (uint8_t)(x >> 16); ret |= tmp << 32; tmp = (uint8_t)(x >> 24); ret |= tmp << 48; return ret; } uint64_t HELPER(neon_widen_s8)(uint32_t x) { uint64_t tmp; uint64_t ret; ret = (uint16_t)(int8_t)x; tmp = (uint16_t)(int8_t)(x >> 8); ret |= tmp << 16; tmp = (uint16_t)(int8_t)(x >> 16); ret |= tmp << 32; tmp = (uint16_t)(int8_t)(x >> 24); ret |= tmp << 48; return ret; } uint64_t HELPER(neon_widen_u16)(uint32_t x) { uint64_t high = (uint16_t)(x >> 16); return ((uint16_t)x) | (high << 32); } uint64_t HELPER(neon_widen_s16)(uint32_t x) { uint64_t high = (int16_t)(x >> 16); return ((uint32_t)(int16_t)x) | (high << 32); } uint64_t HELPER(neon_addl_u16)(uint64_t a, uint64_t b) { uint64_t mask; mask = (a ^ b) & 0x8000800080008000ull; a &= ~0x8000800080008000ull; b &= ~0x8000800080008000ull; return (a + b) ^ mask; } uint64_t HELPER(neon_addl_u32)(uint64_t a, uint64_t b) { uint64_t mask; mask = (a ^ b) & 0x8000000080000000ull; a &= ~0x8000000080000000ull; b &= ~0x8000000080000000ull; return (a + b) ^ mask; } uint64_t HELPER(neon_paddl_u16)(uint64_t a, uint64_t b) { uint64_t tmp; uint64_t tmp2; tmp = a & 0x0000ffff0000ffffull; tmp += (a >> 16) & 0x0000ffff0000ffffull; tmp2 = b & 0xffff0000ffff0000ull; tmp2 += (b << 16) & 0xffff0000ffff0000ull; return ( tmp & 0xffff) | ((tmp >> 16) & 0xffff0000ull) | ((tmp2 << 16) & 0xffff00000000ull) | ( tmp2 & 0xffff000000000000ull); } uint64_t HELPER(neon_paddl_u32)(uint64_t a, uint64_t b) { uint32_t low = a + (a >> 32); uint32_t high = b + (b >> 32); return low + ((uint64_t)high << 32); } uint64_t HELPER(neon_subl_u16)(uint64_t a, uint64_t b) { uint64_t mask; mask = (a ^ ~b) & 0x8000800080008000ull; a |= 0x8000800080008000ull; b &= ~0x8000800080008000ull; return (a - b) ^ mask; } uint64_t HELPER(neon_subl_u32)(uint64_t a, uint64_t b) { uint64_t mask; mask = (a ^ ~b) & 0x8000000080000000ull; a |= 0x8000000080000000ull; b &= ~0x8000000080000000ull; return (a - b) ^ mask; } uint64_t HELPER(neon_addl_saturate_s32)(CPUState *env, uint64_t a, uint64_t b) { uint32_t x, y; uint32_t low, high; x = a; y = b; low = x + y; if (((low ^ x) & SIGNBIT) && !((x ^ y) & SIGNBIT)) { SET_QC(); low = ((int32_t)x >> 31) ^ ~SIGNBIT; } x = a >> 32; y = b >> 32; high = x + y; if (((high ^ x) & SIGNBIT) && !((x ^ y) & SIGNBIT)) { SET_QC(); high = ((int32_t)x >> 31) ^ ~SIGNBIT; } return low | ((uint64_t)high << 32); } uint64_t HELPER(neon_addl_saturate_s64)(CPUState *env, uint64_t a, uint64_t b) { uint64_t result; result = a + b; if (((result ^ a) & SIGNBIT64) && !((a ^ b) & SIGNBIT64)) { SET_QC(); result = ((int64_t)a >> 63) ^ ~SIGNBIT64; } return result; } #define DO_ABD(dest, x, y, type) do { \ type tmp_x = x; \ type tmp_y = y; \ dest = ((tmp_x > tmp_y) ? tmp_x - tmp_y : tmp_y - tmp_x); \ } while(0) uint64_t HELPER(neon_abdl_u16)(uint32_t a, uint32_t b) { uint64_t tmp; uint64_t result; DO_ABD(result, a, b, uint8_t); DO_ABD(tmp, a >> 8, b >> 8, uint8_t); result |= tmp << 16; DO_ABD(tmp, a >> 16, b >> 16, uint8_t); result |= tmp << 32; DO_ABD(tmp, a >> 24, b >> 24, uint8_t); result |= tmp << 48; return result; } uint64_t HELPER(neon_abdl_s16)(uint32_t a, uint32_t b) { uint64_t tmp; uint64_t result; DO_ABD(result, a, b, int8_t); DO_ABD(tmp, a >> 8, b >> 8, int8_t); result |= tmp << 16; DO_ABD(tmp, a >> 16, b >> 16, int8_t); result |= tmp << 32; DO_ABD(tmp, a >> 24, b >> 24, int8_t); result |= tmp << 48; return result; } uint64_t HELPER(neon_abdl_u32)(uint32_t a, uint32_t b) { uint64_t tmp; uint64_t result; DO_ABD(result, a, b, uint16_t); DO_ABD(tmp, a >> 16, b >> 16, uint16_t); return result | (tmp << 32); } uint64_t HELPER(neon_abdl_s32)(uint32_t a, uint32_t b) { uint64_t tmp; uint64_t result; DO_ABD(result, a, b, int16_t); DO_ABD(tmp, a >> 16, b >> 16, int16_t); return result | (tmp << 32); } uint64_t HELPER(neon_abdl_u64)(uint32_t a, uint32_t b) { uint64_t result; DO_ABD(result, a, b, uint32_t); return result; } uint64_t HELPER(neon_abdl_s64)(uint32_t a, uint32_t b) { uint64_t result; DO_ABD(result, a, b, int32_t); return result; } #undef DO_ABD /* Widening multiply. Named type is the source type. */ #define DO_MULL(dest, x, y, type1, type2) do { \ type1 tmp_x = x; \ type1 tmp_y = y; \ dest = (type2)((type2)tmp_x * (type2)tmp_y); \ } while(0) uint64_t HELPER(neon_mull_u8)(uint32_t a, uint32_t b) { uint64_t tmp; uint64_t result; DO_MULL(result, a, b, uint8_t, uint16_t); DO_MULL(tmp, a >> 8, b >> 8, uint8_t, uint16_t); result |= tmp << 16; DO_MULL(tmp, a >> 16, b >> 16, uint8_t, uint16_t); result |= tmp << 32; DO_MULL(tmp, a >> 24, b >> 24, uint8_t, uint16_t); result |= tmp << 48; return result; } uint64_t HELPER(neon_mull_s8)(uint32_t a, uint32_t b) { uint64_t tmp; uint64_t result; DO_MULL(result, a, b, int8_t, uint16_t); DO_MULL(tmp, a >> 8, b >> 8, int8_t, uint16_t); result |= tmp << 16; DO_MULL(tmp, a >> 16, b >> 16, int8_t, uint16_t); result |= tmp << 32; DO_MULL(tmp, a >> 24, b >> 24, int8_t, uint16_t); result |= tmp << 48; return result; } uint64_t HELPER(neon_mull_u16)(uint32_t a, uint32_t b) { uint64_t tmp; uint64_t result; DO_MULL(result, a, b, uint16_t, uint32_t); DO_MULL(tmp, a >> 16, b >> 16, uint16_t, uint32_t); return result | (tmp << 32); } uint64_t HELPER(neon_mull_s16)(uint32_t a, uint32_t b) { uint64_t tmp; uint64_t result; DO_MULL(result, a, b, int16_t, uint32_t); DO_MULL(tmp, a >> 16, b >> 16, int16_t, uint32_t); return result | (tmp << 32); } uint64_t HELPER(neon_negl_u16)(uint64_t x) { uint16_t tmp; uint64_t result; result = (uint16_t)-x; tmp = -(x >> 16); result |= (uint64_t)tmp << 16; tmp = -(x >> 32); result |= (uint64_t)tmp << 32; tmp = -(x >> 48); result |= (uint64_t)tmp << 48; return result; } #include <stdio.h> uint64_t HELPER(neon_negl_u32)(uint64_t x) { uint32_t low = -x; uint32_t high = -(x >> 32); return low | ((uint64_t)high << 32); } /* FIXME: There should be a native op for this. */ uint64_t HELPER(neon_negl_u64)(uint64_t x) { return -x; } /* Saturnating sign manuipulation. */ /* ??? Make these use NEON_VOP1 */ #define DO_QABS8(x) do { \ if (x == (int8_t)0x80) { \ x = 0x7f; \ SET_QC(); \ } else if (x < 0) { \ x = -x; \ }} while (0) uint32_t HELPER(neon_qabs_s8)(CPUState *env, uint32_t x) { neon_s8 vec; NEON_UNPACK(neon_s8, vec, x); DO_QABS8(vec.v1); DO_QABS8(vec.v2); DO_QABS8(vec.v3); DO_QABS8(vec.v4); NEON_PACK(neon_s8, x, vec); return x; } #undef DO_QABS8 #define DO_QNEG8(x) do { \ if (x == (int8_t)0x80) { \ x = 0x7f; \ SET_QC(); \ } else { \ x = -x; \ }} while (0) uint32_t HELPER(neon_qneg_s8)(CPUState *env, uint32_t x) { neon_s8 vec; NEON_UNPACK(neon_s8, vec, x); DO_QNEG8(vec.v1); DO_QNEG8(vec.v2); DO_QNEG8(vec.v3); DO_QNEG8(vec.v4); NEON_PACK(neon_s8, x, vec); return x; } #undef DO_QNEG8 #define DO_QABS16(x) do { \ if (x == (int16_t)0x8000) { \ x = 0x7fff; \ SET_QC(); \ } else if (x < 0) { \ x = -x; \ }} while (0) uint32_t HELPER(neon_qabs_s16)(CPUState *env, uint32_t x) { neon_s16 vec; NEON_UNPACK(neon_s16, vec, x); DO_QABS16(vec.v1); DO_QABS16(vec.v2); NEON_PACK(neon_s16, x, vec); return x; } #undef DO_QABS16 #define DO_QNEG16(x) do { \ if (x == (int16_t)0x8000) { \ x = 0x7fff; \ SET_QC(); \ } else { \ x = -x; \ }} while (0) uint32_t HELPER(neon_qneg_s16)(CPUState *env, uint32_t x) { neon_s16 vec; NEON_UNPACK(neon_s16, vec, x); DO_QNEG16(vec.v1); DO_QNEG16(vec.v2); NEON_PACK(neon_s16, x, vec); return x; } #undef DO_QNEG16 uint32_t HELPER(neon_qabs_s32)(CPUState *env, uint32_t x) { if (x == SIGNBIT) { SET_QC(); x = ~SIGNBIT; } else if ((int32_t)x < 0) { x = -x; } return x; } uint32_t HELPER(neon_qneg_s32)(CPUState *env, uint32_t x) { if (x == SIGNBIT) { SET_QC(); x = ~SIGNBIT; } else { x = -x; } return x; } /* NEON Float helpers. */ uint32_t HELPER(neon_min_f32)(uint32_t a, uint32_t b) { float32 f0 = vfp_itos(a); float32 f1 = vfp_itos(b); return (float32_compare_quiet(f0, f1, NFS) == -1) ? a : b; } uint32_t HELPER(neon_max_f32)(uint32_t a, uint32_t b) { float32 f0 = vfp_itos(a); float32 f1 = vfp_itos(b); return (float32_compare_quiet(f0, f1, NFS) == 1) ? a : b; } uint32_t HELPER(neon_abd_f32)(uint32_t a, uint32_t b) { float32 f0 = vfp_itos(a); float32 f1 = vfp_itos(b); return vfp_stoi((float32_compare_quiet(f0, f1, NFS) == 1) ? float32_sub(f0, f1, NFS) : float32_sub(f1, f0, NFS)); } uint32_t HELPER(neon_add_f32)(uint32_t a, uint32_t b) { return vfp_stoi(float32_add(vfp_itos(a), vfp_itos(b), NFS)); } uint32_t HELPER(neon_sub_f32)(uint32_t a, uint32_t b) { return vfp_stoi(float32_sub(vfp_itos(a), vfp_itos(b), NFS)); } uint32_t HELPER(neon_mul_f32)(uint32_t a, uint32_t b) { return vfp_stoi(float32_mul(vfp_itos(a), vfp_itos(b), NFS)); } /* Floating point comparisons produce an integer result. */ #define NEON_VOP_FCMP(name, cmp) \ uint32_t HELPER(neon_##name)(uint32_t a, uint32_t b) \ { \ if (float32_compare_quiet(vfp_itos(a), vfp_itos(b), NFS) cmp 0) \ return ~0; \ else \ return 0; \ } NEON_VOP_FCMP(ceq_f32, ==) NEON_VOP_FCMP(cge_f32, >=) NEON_VOP_FCMP(cgt_f32, >) uint32_t HELPER(neon_acge_f32)(uint32_t a, uint32_t b) { float32 f0 = float32_abs(vfp_itos(a)); float32 f1 = float32_abs(vfp_itos(b)); return (float32_compare_quiet(f0, f1,NFS) >= 0) ? ~0 : 0; } uint32_t HELPER(neon_acgt_f32)(uint32_t a, uint32_t b) { float32 f0 = float32_abs(vfp_itos(a)); float32 f1 = float32_abs(vfp_itos(b)); return (float32_compare_quiet(f0, f1, NFS) > 0) ? ~0 : 0; }
dtatulea/qemu
target-arm/neon_helper.c
C
gpl-2.0
36,712
#import <Cocoa/Cocoa.h> #import "Mouse.h" #import "Terminal.h" @interface NSObject (TTLogicalScreen) - (NSValue*) MouseTerm_initVars2; - (void) MouseTerm_setNaturalEmojiWidth: (BOOL) emojiFix; - (BOOL) MouseTerm_getNaturalEmojiWidth; - (unsigned long long)MouseTerm_logicalWidthForCharacter:(int)arg1; - (unsigned long long)MouseTerm_displayWidthForCharacter:(int)arg1; @end @interface NSView (MTView) - (id) MouseTerm_colorForANSIColor:(unsigned int)index; - (id) MouseTerm_colorForANSIColor:(unsigned int)index adjustedRelativeToColor:(id)bgColor; - (id) MouseTerm_colorForExtendedANSIColor:(unsigned long long)index adjustedRelativeToColor:(id)bgColor withProfile:(id)profile; - (NSData*) MouseTerm_codeForX: (unsigned int) x Y: (unsigned int) y modifier: (char) modflag button: (MouseButton) button motion: (BOOL) motion release: (BOOL) release; + (void) MouseTerm_setMouseEnabled: (BOOL) value; + (BOOL) MouseTerm_getMouseEnabled; + (void) MouseTerm_setBase64CopyEnabled: (BOOL) value; + (BOOL) MouseTerm_getBase64CopyEnabled; + (void) MouseTerm_setBase64PasteEnabled: (BOOL) value; + (BOOL) MouseTerm_getBase64PasteEnabled; - (NSScroller*) MouseTerm_scroller; - (BOOL) MouseTerm_shouldIgnore: (NSEvent*) event button: (MouseButton) button; - (BOOL) MouseTerm_shouldIgnoreDown: (NSEvent*) event button: (MouseButton) button; - (BOOL) MouseTerm_shouldIgnoreMoved: (NSEvent*) event; - (Position) MouseTerm_currentPosition: (NSEvent*) event; - (BOOL) MouseTerm_buttonDown: (NSEvent*) event button: (MouseButton) button; - (BOOL) MouseTerm_buttonDragged: (NSEvent*) event button: (MouseButton) button; - (BOOL) MouseTerm_buttonUp: (NSEvent*) event button: (MouseButton) button; - (void) MouseTerm_mouseDown: (NSEvent*) event; - (void) MouseTerm_mouseMoved: (NSEvent*) event; - (void) MouseTerm_mouseDragged: (NSEvent*) event; - (void) MouseTerm_mouseUp: (NSEvent*) event; - (void) MouseTerm_rightMouseDown: (NSEvent*) event; - (void) MouseTerm_rightMouseDragged: (NSEvent*) event; - (void) MouseTerm_rightMouseUp: (NSEvent*) event; - (void) MouseTerm_otherMouseDown: (NSEvent*) event; - (void) MouseTerm_otherMouseDragged: (NSEvent*) event; - (void) MouseTerm_otherMouseUp: (NSEvent*) event; - (void) MouseTerm_scrollWheel: (NSEvent*) event; - (BOOL) MouseTerm_windowDidBecomeKey: (id) arg1; - (BOOL) MouseTerm_windowDidResignKey: (id) arg1; - (BOOL) MouseTerm_acceptsFirstResponder; - (BOOL) MouseTerm_becomeFirstResponder; - (BOOL) MouseTerm_resignFirstResponder; @end
saitoha/mouseterm-plus
MTView.h
C
gpl-2.0
2,674
SET AMSTRHDD= SET AMSTRDSK= SET AMSTRDSK1= SET AMSTRDSK2= SET AMSTRDSK3= SET AMSTRDSK4= for /f "tokens=* delims= " %%a in ('dir /b /a-d "%GBG%\%GAM%\%CONS%\%AMSTR%\%CSTM%\*Disk 1*"') do ( if /I "%%~xa"==".dsc" SET AMSTRDSK1=%%~a if /I "%%~xa"==".dsk" SET AMSTRDSK1=%%~a if /I "%%~xa"==".arc" SET AMSTRDSK1=%%~a if /I "%%~xa"==".cpr" SET AMSTRDSK1=%%~a if /I "%%~xa"==".crt" SET AMSTRDSK1=%%~a if /I "%%~xa"==".cdt" SET AMSTRDSK1=%%~a if /I "%%~xa"==".tzx" SET AMSTRDSK1=%%~a if /I "%%~xa"==".czx" SET AMSTRDSK1=%%~a if /I "%%~xa"==".voc" SET AMSTRDSK1=%%~a ) for /f "tokens=* delims= " %%a in ('dir /b /a-d "%GBG%\%GAM%\%CONS%\%AMSTR%\%CSTM%\*Disk1*"') do ( if /I "%%~xa"==".dsc" SET AMSTRDSK1=%%~a if /I "%%~xa"==".dsk" SET AMSTRDSK1=%%~a if /I "%%~xa"==".arc" SET AMSTRDSK1=%%~a if /I "%%~xa"==".cpr" SET AMSTRDSK1=%%~a if /I "%%~xa"==".crt" SET AMSTRDSK1=%%~a if /I "%%~xa"==".tzx" SET AMSTRDSK1=%%~a if /I "%%~xa"==".czx" SET AMSTRDSK1=%%~a if /I "%%~xa"==".cdt" SET AMSTRDSK1=%%~a if /I "%%~xa"==".voc" SET AMSTRDSK1=%%~a ) for /f "tokens=* delims= " %%a in ('dir /b /a-d "%GBG%\%GAM%\%CONS%\%AMSTR%\%CSTM%\*Disk 2*"') do ( if /I "%%~xa"==".dsc" SET AMSTRDSK2=%%~a if /I "%%~xa"==".dsk" SET AMSTRDSK2=%%~a if /I "%%~xa"==".arc" SET AMSTRDSK2=%%~a if /I "%%~xa"==".cpr" SET AMSTRDSK2=%%~a if /I "%%~xa"==".crt" SET AMSTRDSK2=%%~a if /I "%%~xa"==".cdt" SET AMSTRDSK2=%%~a if /I "%%~xa"==".tzx" SET AMSTRDSK2=%%~a if /I "%%~xa"==".czx" SET AMSTRDSK2=%%~a if /I "%%~xa"==".voc" SET AMSTRDSK2=%%~a ) for /f "tokens=* delims= " %%a in ('dir /b /a-d "%GBG%\%GAM%\%CONS%\%AMSTR%\%CSTM%\*Disk2*"') do ( if /I "%%~xa"==".dsc" SET AMSTRDSK2=%%~a if /I "%%~xa"==".dsk" SET AMSTRDSK2=%%~a if /I "%%~xa"==".arc" SET AMSTRDSK2=%%~a if /I "%%~xa"==".cpr" SET AMSTRDSK2=%%~a if /I "%%~xa"==".crt" SET AMSTRDSK2=%%~a if /I "%%~xa"==".cdt" SET AMSTRDSK2=%%~a if /I "%%~xa"==".tzx" SET AMSTRDSK2=%%~a if /I "%%~xa"==".czx" SET AMSTRDSK2=%%~a if /I "%%~xa"==".voc" SET AMSTRDSK2=%%~a ) for /f "tokens=* delims= " %%a in ('dir /b /a-d "%GBG%\%GAM%\%CONS%\%AMSTR%\%CSTM%\*Disk 3*"') do ( if /I "%%~xa"==".dsc" SET AMSTRDSK3=%%~a if /I "%%~xa"==".dsk" SET AMSTRDSK3=%%~a if /I "%%~xa"==".arc" SET AMSTRDSK3=%%~a if /I "%%~xa"==".cpr" SET AMSTRDSK3=%%~a if /I "%%~xa"==".crt" SET AMSTRDSK3=%%~a if /I "%%~xa"==".cdt" SET AMSTRDSK3=%%~a if /I "%%~xa"==".tzx" SET AMSTRDSK3=%%~a if /I "%%~xa"==".czx" SET AMSTRDSK3=%%~a if /I "%%~xa"==".voc" SET AMSTRDSK3=%%~a ) for /f "tokens=* delims= " %%a in ('dir /b /a-d "%GBG%\%GAM%\%CONS%\%AMSTR%\%CSTM%\*Disk3*"') do ( if /I "%%~xa"==".dsc" SET AMSTRDSK3=%%~a if /I "%%~xa"==".dsk" SET AMSTRDSK3=%%~a if /I "%%~xa"==".arc" SET AMSTRDSK3=%%~a if /I "%%~xa"==".cpr" SET AMSTRDSK3=%%~a if /I "%%~xa"==".crt" SET AMSTRDSK3=%%~a if /I "%%~xa"==".cdt" SET AMSTRDSK3=%%~a if /I "%%~xa"==".tzx" SET AMSTRDSK3=%%~a if /I "%%~xa"==".czx" SET AMSTRDSK3=%%~a if /I "%%~xa"==".voc" SET AMSTRDSK3=%%~a ) for /f "tokens=* delims= " %%a in ('dir /b /a-d "%GBG%\%GAM%\%CONS%\%AMSTR%\%CSTM%\*Disk 4*"') do ( if /I "%%~xa"==".dsc" SET AMSTRDSK4=%%~a if /I "%%~xa"==".dsk" SET AMSTRDSK4=%%~a if /I "%%~xa"==".arc" SET AMSTRDSK4=%%~a if /I "%%~xa"==".cpr" SET AMSTRDSK4=%%~a if /I "%%~xa"==".crt" SET AMSTRDSK4=%%~a if /I "%%~xa"==".cdt" SET AMSTRDSK4=%%~a if /I "%%~xa"==".tzx" SET AMSTRDSK4=%%~a if /I "%%~xa"==".czx" SET AMSTRDSK4=%%~a if /I "%%~xa"==".voc" SET AMSTRDSK4=%%~a ) for /f "tokens=* delims= " %%a in ('dir /b /a-d "%GBG%\%GAM%\%CONS%\%AMSTR%\%CSTM%\*Disk4*"') do ( if /I "%%~xa"==".dsc" SET AMSTRDSK4=%%~a if /I "%%~xa"==".dsk" SET AMSTRDSK4=%%~a if /I "%%~xa"==".arc" SET AMSTRDSK4=%%~a if /I "%%~xa"==".cpr" SET AMSTRDSK4=%%~a if /I "%%~xa"==".crt" SET AMSTRDSK4=%%~a if /I "%%~xa"==".cdt" SET AMSTRDSK4=%%~a if /I "%%~xa"==".tzx" SET AMSTRDSK4=%%~a if /I "%%~xa"==".czx" SET AMSTRDSK4=%%~a if /I "%%~xa"==".voc" SET AMSTRDSK4=%%~a ) for /f "tokens=* delims= " %%a in ('dir /b /a-d "%GBG%\%GAM%\%CONS%\%AMSTR%\%CSTM%"') do ( if /I "%%~xa"==".dsc" SET AMSTRDSK=%%~a CALL :disking if /I "%%~xa"==".tzx" SET AMSTRDSK=%%~a CALL :disking if /I "%%~xa"==".dsk" SET AMSTRDSK=%%~a CALL :disking if /I "%%~xa"==".arc" SET AMSTRDSK=%%~a CALL :disking if /I "%%~xa"==".cpr" SET AMSTRDSK=%%~a CALL :disking if /I "%%~xa"==".crt" SET AMSTRDSK=%%~a CALL :disking if /I "%%~xa"==".cdt" SET AMSTRDSK=%%~a CALL :disking if /I "%%~xa"==".czx" SET AMSTRDSK=%%~a CALL :disking if /I "%%~xa"==".voc" SET AMSTRDSK=%%~a CALL :disking ) goto :injecAMSTRs :disking if /I "%AMSTRDSK%"=="%AMSTRDSK2%" SET AMSTRDSK= exit /b if /I "%AMSTRDSK%"=="%AMSTRDSK3%" SET AMSTRDSK= exit /b if /I "%AMSTRDSK%"=="%AMSTRDSK4%" SET AMSTRDSK= exit /b if /I "%AMSTRDSK%"=="" exit /b :injecAMSTRs "%GBC%\inifile.exe" "WinAPE.ini" [Drives] Drive(0)=%GBG%\%GAM%\%CONS%\%CSTM%\%AMSTRDSK%" if "%AMSTRDSK2%" NEQ "" "%GBC%\inifile.exe" "WinAPE.ini" [Drives] Drive(1)=%GBG%\%GAM%\%CONS%\%CSTM%\%AMSTRDSK2%" if "%AMSTRDSK3%" NEQ "" "%GBC%\inifile.exe" "WinAPE.ini" [Drives] Drive(2)=%GBG%\%GAM%\%CONS%\%CSTM%\%AMSTRDSK3%" if "%AMSTRDSK4%" NEQ "" "%GBC%\inifile.exe" "WinAPE.ini" [Drives] Drive(3)=%GBG%\%GAM%\%CONS%\%CSTM%\%AMSTRDSK4%" goto :AMSTRend :AMSTRend exit /b
HoodlumDTX/rom-jacket
Amstrinject.bat
Batchfile
gpl-2.0
5,272
--liquibase formatted sql --changeset efraimgentil:5 create table CostCenter ( id bigint not null primary key auto_increment, code varchar(100) , name varchar(100) not null, description varchar(100) ) engine = innodb;
cejug/hurraa
src/main/resources/org/cejug/hurraa/db/changelogs/20140130-1-efraimgentil.sql
SQL
gpl-2.0
262
#!/bin/bash export OPSCODE_USER="wendellmedina" export OPSCODE_ORGNAME="medina-systems" export KNIFE_CLIENT_KEY_FOLDER="$HOME/.chef" export KNIFE_VALIDATION_KEY_FOLDER="$HOME/.chef" export KNIFE_CHEF_SERVER="https://api.chef.io/organizations/$OPSCODE_ORGNAME" export KNIFE_CACHE_PATH="$HOME/.chef/checksums" export KNIFE_COOKBOOK_COPYRIGHT="Medina Systems" export KNIFE_COOKBOOK_LICENSE="GPLv2.0" export KNIFE_COOKBOOK_EMAIL="wendellmedina@gmail.com"
wendellmedina/caldereta-repo
env.sh
Shell
gpl-2.0
453
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>dirmogsethandles</title> <link rel="stylesheet" href="style.css" type="text/css"> <meta name="generator" content="DocBook XSL Stylesheets V1.73.2"> <link rel="start" href="index.html" title="LiveJournal Server"> <link rel="up" href="ljp.dbschema.ref.html" title="Database Schema Browser"> <link rel="prev" href="ljp.dbschema.deletion_feedback.html" title="deletion_feedback"> <link rel="next" href="ljp.dbschema.dirsearchres2.html" title="dirsearchres2"> <meta name="date" content="2008-Sep-26"> </head> <body> <div class="navheader"> <table width="100%" summary="Navigation header"> <tr><th colspan="3" align="center"> <span class="database">dirmogsethandles</span> </th></tr> <tr> <td width="20%" align="left"> <a accesskey="p" href="ljp.dbschema.deletion_feedback.html">Prev</a> </td> <th width="60%" align="center">Database Schema Browser</th> <td width="20%" align="right"> <a accesskey="n" href="ljp.dbschema.dirsearchres2.html">Next</a> </td> </tr> </table> <hr> </div> <div class="refentry" lang="en"> <a name="ljp.dbschema.dirmogsethandles"></a><div class="titlepage"></div> <div class="refnamediv"> <h2> <span class="database">dirmogsethandles</span> </h2> <p> <span class="database">dirmogsethandles</span> &#8212; Global. Stores MogileFS sethandles for the Directory Search.</p> </div> <div class="refsect1" lang="en"> <a name="id3707691"></a><h2> <span class="database">dirmogsethandles</span> </h2> <div class="informaltable"><table border="1"> <colgroup> <col> <col> <col> <col> <col> </colgroup> <thead><tr> <th>Column name</th> <th>Type</th> <th>Null</th> <th>Default</th> <th>Description</th> </tr></thead> <tbody> <tr> <td> <span class="database">conskey</span> </td> <td> <span class="type">char(40)</span> </td> <td align="center"> </td> <td align="center"> <code class="literal"></code> </td> <td> </td> </tr> <tr> <td> <span class="database">exptime</span> </td> <td> <span class="type">int unsigned</span> </td> <td align="center"> </td> <td align="center"> <code class="literal"></code> </td> <td> </td> </tr> </tbody> </table></div> <div class="informaltable"><table border="1"> <colgroup> <col> <col> <col> </colgroup> <thead><tr> <th>Key name</th> <th>Type</th> <th>Column(s)</th> </tr></thead> <tbody> <tr> <td> <span class="database">PRIMARY</span> </td> <td> <span class="type">PRIMARY</span> </td> <td> <span class="database"></span> </td> </tr> <tr> <td> <span class="database">exptime</span> </td> <td> <span class="type">INDEX</span> </td> <td> <span class="database"></span> </td> </tr> </tbody> </table></div> </div> </div> <div class="navfooter"> <hr> <table width="100%" summary="Navigation footer"> <tr> <td width="40%" align="left"> <a accesskey="p" href="ljp.dbschema.deletion_feedback.html">Prev</a> </td> <td width="20%" align="center"><a accesskey="u" href="ljp.dbschema.ref.html">Up</a></td> <td width="40%" align="right"> <a accesskey="n" href="ljp.dbschema.dirsearchres2.html">Next</a> </td> </tr> <tr> <td width="40%" align="left" valign="top"> <span class="database">deletion_feedback</span>  </td> <td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td> <td width="40%" align="right" valign="top">  <span class="database">dirsearchres2</span> </td> </tr> </table> </div> </body> </html>
apparentlymart/livejournal
htdocs/doc/server/ljp.dbschema.dirmogsethandles.html
HTML
gpl-2.0
3,832
<?php /* core/themes/classy/templates/views/views-view.html.twig */ class __TwigTemplate_3126087bf1a740f5bd2e01a3303f59cefaecc0edc6722b2beceb2f9d48909b8f extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = false; $this->blocks = array( ); } protected function doDisplay(array $context, array $blocks = array()) { // line 34 $context["classes"] = array(0 => "view", 1 => ("view-" . \Drupal\Component\Utility\Html::getClass( // line 36 (isset($context["id"]) ? $context["id"] : null))), 2 => ("view-id-" . // line 37 (isset($context["id"]) ? $context["id"] : null)), 3 => ("view-display-id-" . // line 38 (isset($context["display_id"]) ? $context["display_id"] : null)), 4 => (( // line 39 (isset($context["dom_id"]) ? $context["dom_id"] : null)) ? (("js-view-dom-id-" . (isset($context["dom_id"]) ? $context["dom_id"] : null))) : (""))); // line 42 echo "<div"; echo $this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute((isset($context["attributes"]) ? $context["attributes"] : null), "addClass", array(0 => (isset($context["classes"]) ? $context["classes"] : null)), "method"), "html", null, true); echo "> "; // line 43 echo $this->env->getExtension('drupal_core')->escapeFilter($this->env, (isset($context["title_prefix"]) ? $context["title_prefix"] : null), "html", null, true); echo " "; // line 44 if ((isset($context["title"]) ? $context["title"] : null)) { // line 45 echo " "; echo $this->env->getExtension('drupal_core')->escapeFilter($this->env, (isset($context["title"]) ? $context["title"] : null), "html", null, true); echo " "; } // line 47 echo " "; echo $this->env->getExtension('drupal_core')->escapeFilter($this->env, (isset($context["title_suffix"]) ? $context["title_suffix"] : null), "html", null, true); echo " "; // line 48 if ((isset($context["header"]) ? $context["header"] : null)) { // line 49 echo " <div class=\"view-header\"> "; // line 50 echo $this->env->getExtension('drupal_core')->escapeFilter($this->env, (isset($context["header"]) ? $context["header"] : null), "html", null, true); echo " </div> "; } // line 53 echo " "; if ((isset($context["exposed"]) ? $context["exposed"] : null)) { // line 54 echo " <div class=\"view-filters\"> "; // line 55 echo $this->env->getExtension('drupal_core')->escapeFilter($this->env, (isset($context["exposed"]) ? $context["exposed"] : null), "html", null, true); echo " </div> "; } // line 58 echo " "; if ((isset($context["attachment_before"]) ? $context["attachment_before"] : null)) { // line 59 echo " <div class=\"attachment attachment-before\"> "; // line 60 echo $this->env->getExtension('drupal_core')->escapeFilter($this->env, (isset($context["attachment_before"]) ? $context["attachment_before"] : null), "html", null, true); echo " </div> "; } // line 63 echo " "; // line 64 if ((isset($context["rows"]) ? $context["rows"] : null)) { // line 65 echo " <div class=\"view-content\"> "; // line 66 echo $this->env->getExtension('drupal_core')->escapeFilter($this->env, (isset($context["rows"]) ? $context["rows"] : null), "html", null, true); echo " </div> "; } elseif ( // line 68 (isset($context["empty"]) ? $context["empty"] : null)) { // line 69 echo " <div class=\"view-empty\"> "; // line 70 echo $this->env->getExtension('drupal_core')->escapeFilter($this->env, (isset($context["empty"]) ? $context["empty"] : null), "html", null, true); echo " </div> "; } // line 73 echo " "; // line 74 if ((isset($context["pager"]) ? $context["pager"] : null)) { // line 75 echo " "; echo $this->env->getExtension('drupal_core')->escapeFilter($this->env, (isset($context["pager"]) ? $context["pager"] : null), "html", null, true); echo " "; } // line 77 echo " "; if ((isset($context["attachment_after"]) ? $context["attachment_after"] : null)) { // line 78 echo " <div class=\"attachment attachment-after\"> "; // line 79 echo $this->env->getExtension('drupal_core')->escapeFilter($this->env, (isset($context["attachment_after"]) ? $context["attachment_after"] : null), "html", null, true); echo " </div> "; } // line 82 echo " "; if ((isset($context["more"]) ? $context["more"] : null)) { // line 83 echo " "; echo $this->env->getExtension('drupal_core')->escapeFilter($this->env, (isset($context["more"]) ? $context["more"] : null), "html", null, true); echo " "; } // line 85 echo " "; if ((isset($context["footer"]) ? $context["footer"] : null)) { // line 86 echo " <div class=\"view-footer\"> "; // line 87 echo $this->env->getExtension('drupal_core')->escapeFilter($this->env, (isset($context["footer"]) ? $context["footer"] : null), "html", null, true); echo " </div> "; } // line 90 echo " "; if ((isset($context["feed_icons"]) ? $context["feed_icons"] : null)) { // line 91 echo " <div class=\"feed-icons\"> "; // line 92 echo $this->env->getExtension('drupal_core')->escapeFilter($this->env, (isset($context["feed_icons"]) ? $context["feed_icons"] : null), "html", null, true); echo " </div> "; } // line 95 echo "</div> "; } public function getTemplateName() { return "core/themes/classy/templates/views/views-view.html.twig"; } public function isTraitable() { return false; } public function getDebugInfo() { return array ( 162 => 95, 156 => 92, 153 => 91, 150 => 90, 144 => 87, 141 => 86, 138 => 85, 132 => 83, 129 => 82, 123 => 79, 120 => 78, 117 => 77, 111 => 75, 109 => 74, 106 => 73, 100 => 70, 97 => 69, 95 => 68, 90 => 66, 87 => 65, 85 => 64, 82 => 63, 76 => 60, 73 => 59, 70 => 58, 64 => 55, 61 => 54, 58 => 53, 52 => 50, 49 => 49, 47 => 48, 42 => 47, 36 => 45, 34 => 44, 30 => 43, 25 => 42, 23 => 39, 22 => 38, 21 => 37, 20 => 36, 19 => 34,); } } /* {#*/ /* /***/ /* * @file*/ /* * Theme override for a main view template.*/ /* **/ /* * Available variables:*/ /* * - attributes: Remaining HTML attributes for the element.*/ /* * - css_name: A css-safe version of the view name.*/ /* * - css_class: The user-specified classes names, if any.*/ /* * - header: The optional header.*/ /* * - footer: The optional footer.*/ /* * - rows: The results of the view query, if any.*/ /* * - empty: The content to display if there are no rows.*/ /* * - pager: The optional pager next/prev links to display.*/ /* * - exposed: Exposed widget form/info to display.*/ /* * - feed_icons: Optional feed icons to display.*/ /* * - more: An optional link to the next page of results.*/ /* * - title: Title of the view, only used when displaying in the admin preview.*/ /* * - title_prefix: Additional output populated by modules, intended to be*/ /* * displayed in front of the view title.*/ /* * - title_suffix: Additional output populated by modules, intended to be*/ /* * displayed after the view title.*/ /* * - attachment_before: An optional attachment view to be displayed before the*/ /* * view content.*/ /* * - attachment_after: An optional attachment view to be displayed after the*/ /* * view content.*/ /* * - dom_id: Unique id for every view being printed to give unique class for*/ /* * Javascript.*/ /* **/ /* * @see template_preprocess_views_view()*/ /* *//* */ /* #}*/ /* {%*/ /* set classes = [*/ /* 'view',*/ /* 'view-' ~ id|clean_class,*/ /* 'view-id-' ~ id,*/ /* 'view-display-id-' ~ display_id,*/ /* dom_id ? 'js-view-dom-id-' ~ dom_id,*/ /* ]*/ /* %}*/ /* <div{{ attributes.addClass(classes) }}>*/ /* {{ title_prefix }}*/ /* {% if title %}*/ /* {{ title }}*/ /* {% endif %}*/ /* {{ title_suffix }}*/ /* {% if header %}*/ /* <div class="view-header">*/ /* {{ header }}*/ /* </div>*/ /* {% endif %}*/ /* {% if exposed %}*/ /* <div class="view-filters">*/ /* {{ exposed }}*/ /* </div>*/ /* {% endif %}*/ /* {% if attachment_before %}*/ /* <div class="attachment attachment-before">*/ /* {{ attachment_before }}*/ /* </div>*/ /* {% endif %}*/ /* */ /* {% if rows %}*/ /* <div class="view-content">*/ /* {{ rows }}*/ /* </div>*/ /* {% elseif empty %}*/ /* <div class="view-empty">*/ /* {{ empty }}*/ /* </div>*/ /* {% endif %}*/ /* */ /* {% if pager %}*/ /* {{ pager }}*/ /* {% endif %}*/ /* {% if attachment_after %}*/ /* <div class="attachment attachment-after">*/ /* {{ attachment_after }}*/ /* </div>*/ /* {% endif %}*/ /* {% if more %}*/ /* {{ more }}*/ /* {% endif %}*/ /* {% if footer %}*/ /* <div class="view-footer">*/ /* {{ footer }}*/ /* </div>*/ /* {% endif %}*/ /* {% if feed_icons %}*/ /* <div class="feed-icons">*/ /* {{ feed_icons }}*/ /* </div>*/ /* {% endif %}*/ /* </div>*/ /* */
lyorb/Bibliotheque-Alexandrie
sites/default/files/php/twig/06934c1a_views-view.html.twig_be5264574865e9a2457a10212adf0292cd10fdfb78e70a0ceffaa38ddbd9a862/d9c9e83b4d66907e89f0a03e2399c718006ee9bd8b2f680c77ffd5f8c61624c9.php
PHP
gpl-2.0
10,053
/****************************************************************************** ** Copyright (C) 2006-2014 ascolab GmbH. All Rights Reserved. ** Web: http://www.ascolab.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. ** ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. ** ** Project: OpcUa Wireshark Plugin ** ** Description: Service table and service dispatcher. ** ** This file was autogenerated on 16.10.2014. ** DON'T MODIFY THIS FILE! ** ******************************************************************************/ #include "config.h" #include <glib.h> #include <epan/packet.h> #include "opcua_identifiers.h" #include "opcua_serviceparser.h" #include "opcua_serviceids.h" #include "opcua_servicetable.h" ParserEntry g_arParserTable[] = { { OpcUaId_ServiceFault_Encoding_DefaultBinary, parseServiceFault }, { OpcUaId_FindServersRequest_Encoding_DefaultBinary, parseFindServersRequest }, { OpcUaId_FindServersResponse_Encoding_DefaultBinary, parseFindServersResponse }, { OpcUaId_GetEndpointsRequest_Encoding_DefaultBinary, parseGetEndpointsRequest }, { OpcUaId_GetEndpointsResponse_Encoding_DefaultBinary, parseGetEndpointsResponse }, { OpcUaId_RegisterServerRequest_Encoding_DefaultBinary, parseRegisterServerRequest }, { OpcUaId_RegisterServerResponse_Encoding_DefaultBinary, parseRegisterServerResponse }, { OpcUaId_OpenSecureChannelRequest_Encoding_DefaultBinary, parseOpenSecureChannelRequest }, { OpcUaId_OpenSecureChannelResponse_Encoding_DefaultBinary, parseOpenSecureChannelResponse }, { OpcUaId_CloseSecureChannelRequest_Encoding_DefaultBinary, parseCloseSecureChannelRequest }, { OpcUaId_CloseSecureChannelResponse_Encoding_DefaultBinary, parseCloseSecureChannelResponse }, { OpcUaId_CreateSessionRequest_Encoding_DefaultBinary, parseCreateSessionRequest }, { OpcUaId_CreateSessionResponse_Encoding_DefaultBinary, parseCreateSessionResponse }, { OpcUaId_ActivateSessionRequest_Encoding_DefaultBinary, parseActivateSessionRequest }, { OpcUaId_ActivateSessionResponse_Encoding_DefaultBinary, parseActivateSessionResponse }, { OpcUaId_CloseSessionRequest_Encoding_DefaultBinary, parseCloseSessionRequest }, { OpcUaId_CloseSessionResponse_Encoding_DefaultBinary, parseCloseSessionResponse }, { OpcUaId_CancelRequest_Encoding_DefaultBinary, parseCancelRequest }, { OpcUaId_CancelResponse_Encoding_DefaultBinary, parseCancelResponse }, { OpcUaId_AddNodesRequest_Encoding_DefaultBinary, parseAddNodesRequest }, { OpcUaId_AddNodesResponse_Encoding_DefaultBinary, parseAddNodesResponse }, { OpcUaId_AddReferencesRequest_Encoding_DefaultBinary, parseAddReferencesRequest }, { OpcUaId_AddReferencesResponse_Encoding_DefaultBinary, parseAddReferencesResponse }, { OpcUaId_DeleteNodesRequest_Encoding_DefaultBinary, parseDeleteNodesRequest }, { OpcUaId_DeleteNodesResponse_Encoding_DefaultBinary, parseDeleteNodesResponse }, { OpcUaId_DeleteReferencesRequest_Encoding_DefaultBinary, parseDeleteReferencesRequest }, { OpcUaId_DeleteReferencesResponse_Encoding_DefaultBinary, parseDeleteReferencesResponse }, { OpcUaId_BrowseRequest_Encoding_DefaultBinary, parseBrowseRequest }, { OpcUaId_BrowseResponse_Encoding_DefaultBinary, parseBrowseResponse }, { OpcUaId_BrowseNextRequest_Encoding_DefaultBinary, parseBrowseNextRequest }, { OpcUaId_BrowseNextResponse_Encoding_DefaultBinary, parseBrowseNextResponse }, { OpcUaId_TranslateBrowsePathsToNodeIdsRequest_Encoding_DefaultBinary, parseTranslateBrowsePathsToNodeIdsRequest }, { OpcUaId_TranslateBrowsePathsToNodeIdsResponse_Encoding_DefaultBinary, parseTranslateBrowsePathsToNodeIdsResponse }, { OpcUaId_RegisterNodesRequest_Encoding_DefaultBinary, parseRegisterNodesRequest }, { OpcUaId_RegisterNodesResponse_Encoding_DefaultBinary, parseRegisterNodesResponse }, { OpcUaId_UnregisterNodesRequest_Encoding_DefaultBinary, parseUnregisterNodesRequest }, { OpcUaId_UnregisterNodesResponse_Encoding_DefaultBinary, parseUnregisterNodesResponse }, { OpcUaId_QueryFirstRequest_Encoding_DefaultBinary, parseQueryFirstRequest }, { OpcUaId_QueryFirstResponse_Encoding_DefaultBinary, parseQueryFirstResponse }, { OpcUaId_QueryNextRequest_Encoding_DefaultBinary, parseQueryNextRequest }, { OpcUaId_QueryNextResponse_Encoding_DefaultBinary, parseQueryNextResponse }, { OpcUaId_ReadRequest_Encoding_DefaultBinary, parseReadRequest }, { OpcUaId_ReadResponse_Encoding_DefaultBinary, parseReadResponse }, { OpcUaId_HistoryReadRequest_Encoding_DefaultBinary, parseHistoryReadRequest }, { OpcUaId_HistoryReadResponse_Encoding_DefaultBinary, parseHistoryReadResponse }, { OpcUaId_WriteRequest_Encoding_DefaultBinary, parseWriteRequest }, { OpcUaId_WriteResponse_Encoding_DefaultBinary, parseWriteResponse }, { OpcUaId_HistoryUpdateRequest_Encoding_DefaultBinary, parseHistoryUpdateRequest }, { OpcUaId_HistoryUpdateResponse_Encoding_DefaultBinary, parseHistoryUpdateResponse }, { OpcUaId_CallRequest_Encoding_DefaultBinary, parseCallRequest }, { OpcUaId_CallResponse_Encoding_DefaultBinary, parseCallResponse }, { OpcUaId_CreateMonitoredItemsRequest_Encoding_DefaultBinary, parseCreateMonitoredItemsRequest }, { OpcUaId_CreateMonitoredItemsResponse_Encoding_DefaultBinary, parseCreateMonitoredItemsResponse }, { OpcUaId_ModifyMonitoredItemsRequest_Encoding_DefaultBinary, parseModifyMonitoredItemsRequest }, { OpcUaId_ModifyMonitoredItemsResponse_Encoding_DefaultBinary, parseModifyMonitoredItemsResponse }, { OpcUaId_SetMonitoringModeRequest_Encoding_DefaultBinary, parseSetMonitoringModeRequest }, { OpcUaId_SetMonitoringModeResponse_Encoding_DefaultBinary, parseSetMonitoringModeResponse }, { OpcUaId_SetTriggeringRequest_Encoding_DefaultBinary, parseSetTriggeringRequest }, { OpcUaId_SetTriggeringResponse_Encoding_DefaultBinary, parseSetTriggeringResponse }, { OpcUaId_DeleteMonitoredItemsRequest_Encoding_DefaultBinary, parseDeleteMonitoredItemsRequest }, { OpcUaId_DeleteMonitoredItemsResponse_Encoding_DefaultBinary, parseDeleteMonitoredItemsResponse }, { OpcUaId_CreateSubscriptionRequest_Encoding_DefaultBinary, parseCreateSubscriptionRequest }, { OpcUaId_CreateSubscriptionResponse_Encoding_DefaultBinary, parseCreateSubscriptionResponse }, { OpcUaId_ModifySubscriptionRequest_Encoding_DefaultBinary, parseModifySubscriptionRequest }, { OpcUaId_ModifySubscriptionResponse_Encoding_DefaultBinary, parseModifySubscriptionResponse }, { OpcUaId_SetPublishingModeRequest_Encoding_DefaultBinary, parseSetPublishingModeRequest }, { OpcUaId_SetPublishingModeResponse_Encoding_DefaultBinary, parseSetPublishingModeResponse }, { OpcUaId_PublishRequest_Encoding_DefaultBinary, parsePublishRequest }, { OpcUaId_PublishResponse_Encoding_DefaultBinary, parsePublishResponse }, { OpcUaId_RepublishRequest_Encoding_DefaultBinary, parseRepublishRequest }, { OpcUaId_RepublishResponse_Encoding_DefaultBinary, parseRepublishResponse }, { OpcUaId_TransferSubscriptionsRequest_Encoding_DefaultBinary, parseTransferSubscriptionsRequest }, { OpcUaId_TransferSubscriptionsResponse_Encoding_DefaultBinary, parseTransferSubscriptionsResponse }, { OpcUaId_DeleteSubscriptionsRequest_Encoding_DefaultBinary, parseDeleteSubscriptionsRequest }, { OpcUaId_DeleteSubscriptionsResponse_Encoding_DefaultBinary, parseDeleteSubscriptionsResponse }, { OpcUaId_TestStackRequest_Encoding_DefaultBinary, parseTestStackRequest }, { OpcUaId_TestStackResponse_Encoding_DefaultBinary, parseTestStackResponse }, { OpcUaId_TestStackExRequest_Encoding_DefaultBinary, parseTestStackExRequest }, { OpcUaId_TestStackExResponse_Encoding_DefaultBinary, parseTestStackExResponse }, }; const int g_NumServices = sizeof(g_arParserTable) / sizeof(ParserEntry); /** Service type table */ const value_string g_requesttypes[] = { { OpcUaId_ServiceFault_Encoding_DefaultBinary, "ServiceFault" }, { OpcUaId_FindServersRequest_Encoding_DefaultBinary, "FindServersRequest" }, { OpcUaId_FindServersResponse_Encoding_DefaultBinary, "FindServersResponse" }, { OpcUaId_GetEndpointsRequest_Encoding_DefaultBinary, "GetEndpointsRequest" }, { OpcUaId_GetEndpointsResponse_Encoding_DefaultBinary, "GetEndpointsResponse" }, { OpcUaId_RegisterServerRequest_Encoding_DefaultBinary, "RegisterServerRequest" }, { OpcUaId_RegisterServerResponse_Encoding_DefaultBinary, "RegisterServerResponse" }, { OpcUaId_OpenSecureChannelRequest_Encoding_DefaultBinary, "OpenSecureChannelRequest" }, { OpcUaId_OpenSecureChannelResponse_Encoding_DefaultBinary, "OpenSecureChannelResponse" }, { OpcUaId_CloseSecureChannelRequest_Encoding_DefaultBinary, "CloseSecureChannelRequest" }, { OpcUaId_CloseSecureChannelResponse_Encoding_DefaultBinary, "CloseSecureChannelResponse" }, { OpcUaId_CreateSessionRequest_Encoding_DefaultBinary, "CreateSessionRequest" }, { OpcUaId_CreateSessionResponse_Encoding_DefaultBinary, "CreateSessionResponse" }, { OpcUaId_ActivateSessionRequest_Encoding_DefaultBinary, "ActivateSessionRequest" }, { OpcUaId_ActivateSessionResponse_Encoding_DefaultBinary, "ActivateSessionResponse" }, { OpcUaId_CloseSessionRequest_Encoding_DefaultBinary, "CloseSessionRequest" }, { OpcUaId_CloseSessionResponse_Encoding_DefaultBinary, "CloseSessionResponse" }, { OpcUaId_CancelRequest_Encoding_DefaultBinary, "CancelRequest" }, { OpcUaId_CancelResponse_Encoding_DefaultBinary, "CancelResponse" }, { OpcUaId_AddNodesRequest_Encoding_DefaultBinary, "AddNodesRequest" }, { OpcUaId_AddNodesResponse_Encoding_DefaultBinary, "AddNodesResponse" }, { OpcUaId_AddReferencesRequest_Encoding_DefaultBinary, "AddReferencesRequest" }, { OpcUaId_AddReferencesResponse_Encoding_DefaultBinary, "AddReferencesResponse" }, { OpcUaId_DeleteNodesRequest_Encoding_DefaultBinary, "DeleteNodesRequest" }, { OpcUaId_DeleteNodesResponse_Encoding_DefaultBinary, "DeleteNodesResponse" }, { OpcUaId_DeleteReferencesRequest_Encoding_DefaultBinary, "DeleteReferencesRequest" }, { OpcUaId_DeleteReferencesResponse_Encoding_DefaultBinary, "DeleteReferencesResponse" }, { OpcUaId_BrowseRequest_Encoding_DefaultBinary, "BrowseRequest" }, { OpcUaId_BrowseResponse_Encoding_DefaultBinary, "BrowseResponse" }, { OpcUaId_BrowseNextRequest_Encoding_DefaultBinary, "BrowseNextRequest" }, { OpcUaId_BrowseNextResponse_Encoding_DefaultBinary, "BrowseNextResponse" }, { OpcUaId_TranslateBrowsePathsToNodeIdsRequest_Encoding_DefaultBinary, "TranslateBrowsePathsToNodeIdsRequest" }, { OpcUaId_TranslateBrowsePathsToNodeIdsResponse_Encoding_DefaultBinary, "TranslateBrowsePathsToNodeIdsResponse" }, { OpcUaId_RegisterNodesRequest_Encoding_DefaultBinary, "RegisterNodesRequest" }, { OpcUaId_RegisterNodesResponse_Encoding_DefaultBinary, "RegisterNodesResponse" }, { OpcUaId_UnregisterNodesRequest_Encoding_DefaultBinary, "UnregisterNodesRequest" }, { OpcUaId_UnregisterNodesResponse_Encoding_DefaultBinary, "UnregisterNodesResponse" }, { OpcUaId_QueryFirstRequest_Encoding_DefaultBinary, "QueryFirstRequest" }, { OpcUaId_QueryFirstResponse_Encoding_DefaultBinary, "QueryFirstResponse" }, { OpcUaId_QueryNextRequest_Encoding_DefaultBinary, "QueryNextRequest" }, { OpcUaId_QueryNextResponse_Encoding_DefaultBinary, "QueryNextResponse" }, { OpcUaId_ReadRequest_Encoding_DefaultBinary, "ReadRequest" }, { OpcUaId_ReadResponse_Encoding_DefaultBinary, "ReadResponse" }, { OpcUaId_HistoryReadRequest_Encoding_DefaultBinary, "HistoryReadRequest" }, { OpcUaId_HistoryReadResponse_Encoding_DefaultBinary, "HistoryReadResponse" }, { OpcUaId_WriteRequest_Encoding_DefaultBinary, "WriteRequest" }, { OpcUaId_WriteResponse_Encoding_DefaultBinary, "WriteResponse" }, { OpcUaId_HistoryUpdateRequest_Encoding_DefaultBinary, "HistoryUpdateRequest" }, { OpcUaId_HistoryUpdateResponse_Encoding_DefaultBinary, "HistoryUpdateResponse" }, { OpcUaId_CallRequest_Encoding_DefaultBinary, "CallRequest" }, { OpcUaId_CallResponse_Encoding_DefaultBinary, "CallResponse" }, { OpcUaId_CreateMonitoredItemsRequest_Encoding_DefaultBinary, "CreateMonitoredItemsRequest" }, { OpcUaId_CreateMonitoredItemsResponse_Encoding_DefaultBinary, "CreateMonitoredItemsResponse" }, { OpcUaId_ModifyMonitoredItemsRequest_Encoding_DefaultBinary, "ModifyMonitoredItemsRequest" }, { OpcUaId_ModifyMonitoredItemsResponse_Encoding_DefaultBinary, "ModifyMonitoredItemsResponse" }, { OpcUaId_SetMonitoringModeRequest_Encoding_DefaultBinary, "SetMonitoringModeRequest" }, { OpcUaId_SetMonitoringModeResponse_Encoding_DefaultBinary, "SetMonitoringModeResponse" }, { OpcUaId_SetTriggeringRequest_Encoding_DefaultBinary, "SetTriggeringRequest" }, { OpcUaId_SetTriggeringResponse_Encoding_DefaultBinary, "SetTriggeringResponse" }, { OpcUaId_DeleteMonitoredItemsRequest_Encoding_DefaultBinary, "DeleteMonitoredItemsRequest" }, { OpcUaId_DeleteMonitoredItemsResponse_Encoding_DefaultBinary, "DeleteMonitoredItemsResponse" }, { OpcUaId_CreateSubscriptionRequest_Encoding_DefaultBinary, "CreateSubscriptionRequest" }, { OpcUaId_CreateSubscriptionResponse_Encoding_DefaultBinary, "CreateSubscriptionResponse" }, { OpcUaId_ModifySubscriptionRequest_Encoding_DefaultBinary, "ModifySubscriptionRequest" }, { OpcUaId_ModifySubscriptionResponse_Encoding_DefaultBinary, "ModifySubscriptionResponse" }, { OpcUaId_SetPublishingModeRequest_Encoding_DefaultBinary, "SetPublishingModeRequest" }, { OpcUaId_SetPublishingModeResponse_Encoding_DefaultBinary, "SetPublishingModeResponse" }, { OpcUaId_PublishRequest_Encoding_DefaultBinary, "PublishRequest" }, { OpcUaId_PublishResponse_Encoding_DefaultBinary, "PublishResponse" }, { OpcUaId_RepublishRequest_Encoding_DefaultBinary, "RepublishRequest" }, { OpcUaId_RepublishResponse_Encoding_DefaultBinary, "RepublishResponse" }, { OpcUaId_TransferSubscriptionsRequest_Encoding_DefaultBinary, "TransferSubscriptionsRequest" }, { OpcUaId_TransferSubscriptionsResponse_Encoding_DefaultBinary, "TransferSubscriptionsResponse" }, { OpcUaId_DeleteSubscriptionsRequest_Encoding_DefaultBinary, "DeleteSubscriptionsRequest" }, { OpcUaId_DeleteSubscriptionsResponse_Encoding_DefaultBinary, "DeleteSubscriptionsResponse" }, { OpcUaId_TestStackRequest_Encoding_DefaultBinary, "TestStackRequest" }, { OpcUaId_TestStackResponse_Encoding_DefaultBinary, "TestStackResponse" }, { OpcUaId_TestStackExRequest_Encoding_DefaultBinary, "TestStackExRequest" }, { OpcUaId_TestStackExResponse_Encoding_DefaultBinary, "TestStackExResponse" }, { 0, NULL } }; /** Dispatch all services to a special parser function. */ void dispatchService(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, gint *pOffset, int ServiceId) { int indx = 0; while (indx < g_NumServices) { if (g_arParserTable[indx].iRequestId == ServiceId) { (*g_arParserTable[indx].pParser)(tree, tvb, pinfo, pOffset); break; } indx++; } }
weizhenwei/wireshark
plugins/opcua/opcua_servicetable.c
C
gpl-2.0
15,492
/* DO NOT EDIT. This file is generated from applets.src.h */ /* vi: set sw=4 ts=4: */ /* * applets.h - a listing of all busybox applets. * * If you write a new applet, you need to add an entry to this list to make * busybox aware of it. */ /* name - applet name as it is typed on command line name2 - applet name, converted to C (ether-wake: name2 = ether_wake) main - corresponding <applet>_main to call (bzcat: main = bunzip2) l - location to install link to: [/usr]/[s]bin s - suid type: BB_SUID_REQUIRE: will complain if busybox isn't suid and is run by non-root (applet_main() will not be called at all) BB_SUID_DROP: will drop suid prior to applet_main() BB_SUID_MAYBE: neither of the above (every instance of BB_SUID_REQUIRE and BB_SUID_MAYBE needs to be justified in comment) NB: please update FEATURE_SUID help text whenever you add/remove BB_SUID_REQUIRE or BB_SUID_MAYBE applet. */ #if defined(PROTOTYPES) # define APPLET(name,l,s) int name##_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; # define APPLET_ODDNAME(name,main,l,s,name2) int main##_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; # define APPLET_NOEXEC(name,main,l,s,name2) int main##_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; # define APPLET_NOFORK(name,main,l,s,name2) int main##_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; #elif defined(NAME_MAIN_CNAME) # define APPLET(name,l,s) name name##_main name # define APPLET_ODDNAME(name,main,l,s,name2) name main##_main name2 # define APPLET_NOEXEC(name,main,l,s,name2) name main##_main name2 # define APPLET_NOFORK(name,main,l,s,name2) name main##_main name2 #elif defined(MAKE_USAGE) && ENABLE_FEATURE_VERBOSE_USAGE # define APPLET(name,l,s) MAKE_USAGE(#name, name##_trivial_usage name##_full_usage) # define APPLET_ODDNAME(name,main,l,s,name2) MAKE_USAGE(#name, name2##_trivial_usage name2##_full_usage) # define APPLET_NOEXEC(name,main,l,s,name2) MAKE_USAGE(#name, name2##_trivial_usage name2##_full_usage) # define APPLET_NOFORK(name,main,l,s,name2) MAKE_USAGE(#name, name2##_trivial_usage name2##_full_usage) #elif defined(MAKE_USAGE) && !ENABLE_FEATURE_VERBOSE_USAGE # define APPLET(name,l,s) MAKE_USAGE(#name, name##_trivial_usage) # define APPLET_ODDNAME(name,main,l,s,name2) MAKE_USAGE(#name, name2##_trivial_usage) # define APPLET_NOEXEC(name,main,l,s,name2) MAKE_USAGE(#name, name2##_trivial_usage) # define APPLET_NOFORK(name,main,l,s,name2) MAKE_USAGE(#name, name2##_trivial_usage) #elif defined(MAKE_LINKS) # define APPLET(name,l,c) LINK l name # define APPLET_ODDNAME(name,main,l,s,name2) LINK l name # define APPLET_NOEXEC(name,main,l,s,name2) LINK l name # define APPLET_NOFORK(name,main,l,s,name2) LINK l name #elif defined(MAKE_SUID) # define APPLET(name,l,s) SUID s l name # define APPLET_ODDNAME(name,main,l,s,name2) SUID s l name # define APPLET_NOEXEC(name,main,l,s,name2) SUID s l name # define APPLET_NOFORK(name,main,l,s,name2) SUID s l name #else static struct bb_applet applets[] = { /* name, main, location, need_suid */ # define APPLET(name,l,s) { #name, #name, l, s }, # define APPLET_ODDNAME(name,main,l,s,name2) { #name, #main, l, s }, # define APPLET_NOEXEC(name,main,l,s,name2) { #name, #main, l, s, 1 }, # define APPLET_NOFORK(name,main,l,s,name2) { #name, #main, l, s, 1, 1 }, #endif #if ENABLE_INSTALL_NO_USR # define BB_DIR_USR_BIN BB_DIR_BIN # define BB_DIR_USR_SBIN BB_DIR_SBIN #endif IF_AR(APPLET(ar, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_UNCOMPRESS(APPLET(uncompress, BB_DIR_BIN, BB_SUID_DROP)) IF_GUNZIP(APPLET(gunzip, BB_DIR_BIN, BB_SUID_DROP)) IF_GUNZIP(APPLET_ODDNAME(zcat, gunzip, BB_DIR_BIN, BB_SUID_DROP, zcat)) IF_BUNZIP2(APPLET(bunzip2, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_BUNZIP2(APPLET_ODDNAME(bzcat, bunzip2, BB_DIR_USR_BIN, BB_SUID_DROP, bzcat)) IF_UNLZMA(APPLET(unlzma, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_UNLZMA(APPLET_ODDNAME(lzcat, unlzma, BB_DIR_USR_BIN, BB_SUID_DROP, lzcat)) IF_LZMA(APPLET_ODDNAME(lzma, unlzma, BB_DIR_USR_BIN, BB_SUID_DROP, lzma)) IF_UNXZ(APPLET(unxz, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_UNXZ(APPLET_ODDNAME(xzcat, unxz, BB_DIR_USR_BIN, BB_SUID_DROP, xzcat)) IF_XZ(APPLET_ODDNAME(xz, unxz, BB_DIR_USR_BIN, BB_SUID_DROP, xz)) IF_BZIP2(APPLET(bzip2, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_CPIO(APPLET(cpio, BB_DIR_BIN, BB_SUID_DROP)) IF_DPKG(APPLET(dpkg, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_DPKG_DEB(APPLET_ODDNAME(dpkg-deb, dpkg_deb, BB_DIR_USR_BIN, BB_SUID_DROP, dpkg_deb)) IF_GZIP(APPLET(gzip, BB_DIR_BIN, BB_SUID_DROP)) IF_LZOP(APPLET(lzop, BB_DIR_BIN, BB_SUID_DROP)) IF_LZOP(APPLET_ODDNAME(lzopcat, lzop, BB_DIR_USR_BIN, BB_SUID_DROP, lzopcat)) IF_LZOP(APPLET_ODDNAME(unlzop, lzop, BB_DIR_USR_BIN, BB_SUID_DROP, unlzop)) IF_RPM2CPIO(APPLET(rpm2cpio, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_RPM(APPLET(rpm, BB_DIR_BIN, BB_SUID_DROP)) IF_TAR(APPLET(tar, BB_DIR_BIN, BB_SUID_DROP)) IF_UNZIP(APPLET(unzip, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_DATE(APPLET(date, BB_DIR_BIN, BB_SUID_DROP)) IF_HOSTID(APPLET_NOFORK(hostid, hostid, BB_DIR_USR_BIN, BB_SUID_DROP, hostid)) IF_GROUPS(APPLET_NOEXEC(groups, id, BB_DIR_USR_BIN, BB_SUID_DROP, groups)) IF_ID( APPLET_NOEXEC(id, id, BB_DIR_USR_BIN, BB_SUID_DROP, id )) IF_TOUCH(APPLET_NOFORK(touch, touch, BB_DIR_BIN, BB_SUID_DROP, touch)) IF_BASE64(APPLET(base64, BB_DIR_BIN, BB_SUID_DROP)) IF_USERS(APPLET_ODDNAME(users, who, BB_DIR_USR_BIN, BB_SUID_DROP, users)) IF_WHO( APPLET( who, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_AWK(APPLET_NOEXEC(awk, awk, BB_DIR_USR_BIN, BB_SUID_DROP, awk)) IF_CMP(APPLET(cmp, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_DIFF(APPLET(diff, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_ED(APPLET(ed, BB_DIR_BIN, BB_SUID_DROP)) IF_PATCH(APPLET(patch, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_SED(APPLET(sed, BB_DIR_BIN, BB_SUID_DROP)) IF_VI(APPLET(vi, BB_DIR_BIN, BB_SUID_DROP)) IF_FIND(APPLET_NOEXEC(find, find, BB_DIR_USR_BIN, BB_SUID_DROP, find)) IF_GREP(APPLET(grep, BB_DIR_BIN, BB_SUID_DROP)) IF_FEATURE_GREP_EGREP_ALIAS(APPLET_ODDNAME(egrep, grep, BB_DIR_BIN, BB_SUID_DROP, egrep)) IF_FEATURE_GREP_FGREP_ALIAS(APPLET_ODDNAME(fgrep, grep, BB_DIR_BIN, BB_SUID_DROP, fgrep)) IF_XARGS(APPLET_NOEXEC(xargs, xargs, BB_DIR_USR_BIN, BB_SUID_DROP, xargs)) IF_BOOTCHARTD(APPLET(bootchartd, BB_DIR_SBIN, BB_SUID_DROP)) IF_HALT(APPLET(halt, BB_DIR_SBIN, BB_SUID_DROP)) IF_HALT(APPLET_ODDNAME(poweroff, halt, BB_DIR_SBIN, BB_SUID_DROP, poweroff)) IF_HALT(APPLET_ODDNAME(reboot, halt, BB_DIR_SBIN, BB_SUID_DROP, reboot)) IF_INIT(APPLET(init, BB_DIR_SBIN, BB_SUID_DROP)) IF_FEATURE_INITRD(APPLET_ODDNAME(linuxrc, init, BB_DIR_ROOT, BB_SUID_DROP, linuxrc)) IF_MESG(APPLET(mesg, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_ADD_SHELL( APPLET_ODDNAME(add-shell , add_remove_shell, BB_DIR_USR_SBIN, BB_SUID_DROP, add_shell )) IF_REMOVE_SHELL(APPLET_ODDNAME(remove-shell, add_remove_shell, BB_DIR_USR_SBIN, BB_SUID_DROP, remove_shell)) IF_CONSPY(APPLET(conspy, BB_DIR_BIN, BB_SUID_DROP)) IF_NANDWRITE(APPLET(nandwrite, BB_DIR_USR_SBIN, BB_SUID_DROP)) IF_NANDDUMP(APPLET_ODDNAME(nanddump, nandwrite, BB_DIR_USR_SBIN, BB_SUID_DROP, nanddump)) IF_RFKILL(APPLET(rfkill, BB_DIR_USR_SBIN, BB_SUID_DROP)) IF_SETSERIAL(APPLET(setserial, BB_DIR_BIN, BB_SUID_DROP)) IF_UBIATTACH(APPLET_ODDNAME(ubiattach, ubi_tools, BB_DIR_USR_SBIN, BB_SUID_DROP, ubiattach)) IF_UBIDETACH(APPLET_ODDNAME(ubidetach, ubi_tools, BB_DIR_USR_SBIN, BB_SUID_DROP, ubidetach)) IF_UBIMKVOL(APPLET_ODDNAME(ubimkvol, ubi_tools, BB_DIR_USR_SBIN, BB_SUID_DROP, ubimkvol)) IF_UBIRMVOL(APPLET_ODDNAME(ubirmvol, ubi_tools, BB_DIR_USR_SBIN, BB_SUID_DROP, ubirmvol)) IF_UBIRSVOL(APPLET_ODDNAME(ubirsvol, ubi_tools, BB_DIR_USR_SBIN, BB_SUID_DROP, ubirsvol)) IF_UBIUPDATEVOL(APPLET_ODDNAME(ubiupdatevol, ubi_tools, BB_DIR_USR_SBIN, BB_SUID_DROP, ubiupdatevol)) IF_WALL(APPLET(wall, BB_DIR_USR_BIN, BB_SUID_REQUIRE)) IF_DEPMOD(APPLET(depmod, BB_DIR_SBIN, BB_SUID_DROP)) IF_INSMOD(APPLET(insmod, BB_DIR_SBIN, BB_SUID_DROP)) IF_LSMOD(APPLET(lsmod, BB_DIR_SBIN, BB_SUID_DROP)) IF_MODINFO(APPLET(modinfo, BB_DIR_SBIN, BB_SUID_DROP)) IF_MODPROBE(APPLET(modprobe, BB_DIR_SBIN, BB_SUID_DROP)) IF_MODPROBE_SMALL(APPLET(modprobe, BB_DIR_SBIN, BB_SUID_DROP)) IF_MODPROBE_SMALL(APPLET_ODDNAME(depmod, modprobe, BB_DIR_SBIN, BB_SUID_DROP, modprobe)) IF_MODPROBE_SMALL(APPLET_ODDNAME(insmod, modprobe, BB_DIR_SBIN, BB_SUID_DROP, modprobe)) IF_MODPROBE_SMALL(APPLET_ODDNAME(lsmod, modprobe, BB_DIR_SBIN, BB_SUID_DROP, modprobe)) IF_MODPROBE_SMALL(APPLET_ODDNAME(rmmod, modprobe, BB_DIR_SBIN, BB_SUID_DROP, modprobe)) IF_RMMOD(APPLET(rmmod, BB_DIR_SBIN, BB_SUID_DROP)) IF_NBDCLIENT(APPLET_ODDNAME(nbd-client, nbdclient, BB_DIR_USR_SBIN, BB_SUID_DROP, nbdclient)) IF_PING(APPLET(ping, BB_DIR_BIN, BB_SUID_MAYBE)) IF_PING6(APPLET(ping6, BB_DIR_BIN, BB_SUID_MAYBE)) IF_WHOIS(APPLET(whois, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_IOSTAT(APPLET(iostat, BB_DIR_BIN, BB_SUID_DROP)) IF_LSOF(APPLET(lsof, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_MPSTAT(APPLET(mpstat, BB_DIR_BIN, BB_SUID_DROP)) IF_NMETER(APPLET(nmeter, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_PMAP(APPLET(pmap, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_POWERTOP(APPLET(powertop, BB_DIR_USR_SBIN, BB_SUID_DROP)) IF_PSTREE(APPLET(pstree, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_PWDX(APPLET(pwdx, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_SMEMCAP(APPLET(smemcap, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_ASH(APPLET(ash, BB_DIR_BIN, BB_SUID_DROP)) IF_FEATURE_SH_IS_ASH(APPLET_ODDNAME(sh, ash, BB_DIR_BIN, BB_SUID_DROP, sh)) IF_FEATURE_BASH_IS_ASH(APPLET_ODDNAME(bash, ash, BB_DIR_BIN, BB_SUID_DROP, bash)) IF_CTTYHACK(APPLET(cttyhack, BB_DIR_BIN, BB_SUID_DROP)) IF_HUSH(APPLET(hush, BB_DIR_BIN, BB_SUID_DROP)) IF_MSH(APPLET(msh, BB_DIR_BIN, BB_SUID_DROP)) IF_FEATURE_SH_IS_HUSH(APPLET_ODDNAME(sh, hush, BB_DIR_BIN, BB_SUID_DROP, sh)) IF_FEATURE_BASH_IS_HUSH(APPLET_ODDNAME(bash, hush, BB_DIR_BIN, BB_SUID_DROP, bash)) IF_BLOCKDEV(APPLET(blockdev, BB_DIR_SBIN, BB_SUID_DROP)) IF_FSTRIM(APPLET(fstrim, BB_DIR_SBIN, BB_SUID_DROP)) IF_MDEV(APPLET(mdev, BB_DIR_SBIN, BB_SUID_DROP)) IF_REV(APPLET(rev, BB_DIR_BIN, BB_SUID_DROP)) IF_UDHCPC6(APPLET(udhcpc6, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_TEST(APPLET_NOFORK([, test, BB_DIR_USR_BIN, BB_SUID_DROP, test)) IF_TEST(APPLET_NOFORK([[, test, BB_DIR_USR_BIN, BB_SUID_DROP, test)) IF_ACPID(APPLET(acpid, BB_DIR_SBIN, BB_SUID_DROP)) IF_ADDGROUP(APPLET(addgroup, BB_DIR_USR_SBIN, BB_SUID_DROP)) IF_ADDUSER(APPLET(adduser, BB_DIR_USR_SBIN, BB_SUID_DROP)) IF_ADJTIMEX(APPLET(adjtimex, BB_DIR_SBIN, BB_SUID_DROP)) IF_ARP(APPLET(arp, BB_DIR_SBIN, BB_SUID_DROP)) IF_ARPING(APPLET(arping, BB_DIR_USR_SBIN, BB_SUID_DROP)) IF_BASENAME(APPLET_NOFORK(basename, basename, BB_DIR_USR_BIN, BB_SUID_DROP, basename)) IF_BBCONFIG(APPLET(bbconfig, BB_DIR_BIN, BB_SUID_DROP)) IF_BEEP(APPLET(beep, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_BLKID(APPLET(blkid, BB_DIR_SBIN, BB_SUID_DROP)) IF_BRCTL(APPLET(brctl, BB_DIR_USR_SBIN, BB_SUID_DROP)) IF_CAL(APPLET(cal, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_CAT(APPLET_NOFORK(cat, cat, BB_DIR_BIN, BB_SUID_DROP, cat)) IF_CATV(APPLET(catv, BB_DIR_BIN, BB_SUID_DROP)) IF_CHAT(APPLET(chat, BB_DIR_USR_SBIN, BB_SUID_DROP)) IF_CHATTR(APPLET(chattr, BB_DIR_BIN, BB_SUID_DROP)) IF_CHCON(APPLET(chcon, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_CHGRP(APPLET_NOEXEC(chgrp, chgrp, BB_DIR_BIN, BB_SUID_DROP, chgrp)) IF_CHMOD(APPLET_NOEXEC(chmod, chmod, BB_DIR_BIN, BB_SUID_DROP, chmod)) IF_CHOWN(APPLET_NOEXEC(chown, chown, BB_DIR_BIN, BB_SUID_DROP, chown)) IF_CHPASSWD(APPLET(chpasswd, BB_DIR_USR_SBIN, BB_SUID_DROP)) IF_CHPST(APPLET(chpst, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_CHROOT(APPLET(chroot, BB_DIR_USR_SBIN, BB_SUID_DROP)) IF_CHRT(APPLET(chrt, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_CHVT(APPLET(chvt, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_CKSUM(APPLET_NOEXEC(cksum, cksum, BB_DIR_USR_BIN, BB_SUID_DROP, cksum)) IF_CLEAR(APPLET(clear, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_COMM(APPLET(comm, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_CP(APPLET_NOEXEC(cp, cp, BB_DIR_BIN, BB_SUID_DROP, cp)) IF_CROND(APPLET(crond, BB_DIR_USR_SBIN, BB_SUID_DROP)) /* Needs to be run by root or be suid root - needs to change /var/spool/cron* files: */ IF_CRONTAB(APPLET(crontab, BB_DIR_USR_BIN, BB_SUID_REQUIRE)) IF_CRYPTPW(APPLET(cryptpw, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_CUT(APPLET_NOEXEC(cut, cut, BB_DIR_USR_BIN, BB_SUID_DROP, cut)) IF_DC(APPLET(dc, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_DD(APPLET_NOEXEC(dd, dd, BB_DIR_BIN, BB_SUID_DROP, dd)) IF_DEALLOCVT(APPLET(deallocvt, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_DELGROUP(APPLET_ODDNAME(delgroup, deluser, BB_DIR_USR_SBIN, BB_SUID_DROP, delgroup)) IF_DELUSER(APPLET(deluser, BB_DIR_USR_SBIN, BB_SUID_DROP)) IF_DEVFSD(APPLET(devfsd, BB_DIR_SBIN, BB_SUID_DROP)) IF_DEVMEM(APPLET(devmem, BB_DIR_SBIN, BB_SUID_DROP)) IF_DF(APPLET(df, BB_DIR_BIN, BB_SUID_DROP)) IF_DHCPRELAY(APPLET(dhcprelay, BB_DIR_USR_SBIN, BB_SUID_DROP)) IF_DIRNAME(APPLET_NOFORK(dirname, dirname, BB_DIR_USR_BIN, BB_SUID_DROP, dirname)) IF_DMESG(APPLET(dmesg, BB_DIR_BIN, BB_SUID_DROP)) IF_DNSD(APPLET(dnsd, BB_DIR_USR_SBIN, BB_SUID_DROP)) IF_HOSTNAME(APPLET_ODDNAME(dnsdomainname, hostname, BB_DIR_BIN, BB_SUID_DROP, dnsdomainname)) IF_DOS2UNIX(APPLET_NOEXEC(dos2unix, dos2unix, BB_DIR_USR_BIN, BB_SUID_DROP, dos2unix)) IF_DU(APPLET(du, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_DUMPKMAP(APPLET(dumpkmap, BB_DIR_BIN, BB_SUID_DROP)) IF_DUMPLEASES(APPLET(dumpleases, BB_DIR_USR_BIN, BB_SUID_DROP)) //IF_E2FSCK(APPLET(e2fsck, BB_DIR_SBIN, BB_SUID_DROP)) //IF_E2LABEL(APPLET_ODDNAME(e2label, tune2fs, BB_DIR_SBIN, BB_SUID_DROP, e2label)) IF_ECHO(APPLET_NOFORK(echo, echo, BB_DIR_BIN, BB_SUID_DROP, echo)) IF_EJECT(APPLET(eject, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_ENV(APPLET_NOEXEC(env, env, BB_DIR_USR_BIN, BB_SUID_DROP, env)) IF_ENVDIR(APPLET_ODDNAME(envdir, chpst, BB_DIR_USR_BIN, BB_SUID_DROP, envdir)) IF_ENVUIDGID(APPLET_ODDNAME(envuidgid, chpst, BB_DIR_USR_BIN, BB_SUID_DROP, envuidgid)) IF_ETHER_WAKE(APPLET_ODDNAME(ether-wake, ether_wake, BB_DIR_USR_SBIN, BB_SUID_DROP, ether_wake)) IF_EXPAND(APPLET(expand, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_EXPR(APPLET(expr, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_FAKEIDENTD(APPLET(fakeidentd, BB_DIR_USR_SBIN, BB_SUID_DROP)) IF_FALSE(APPLET_NOFORK(false, false, BB_DIR_BIN, BB_SUID_DROP, false)) IF_FBSET(APPLET(fbset, BB_DIR_USR_SBIN, BB_SUID_DROP)) IF_FBSPLASH(APPLET(fbsplash, BB_DIR_SBIN, BB_SUID_DROP)) IF_FDFLUSH(APPLET_ODDNAME(fdflush, freeramdisk, BB_DIR_BIN, BB_SUID_DROP, fdflush)) IF_FDFORMAT(APPLET(fdformat, BB_DIR_USR_SBIN, BB_SUID_DROP)) IF_FDISK(APPLET(fdisk, BB_DIR_SBIN, BB_SUID_DROP)) IF_FGCONSOLE(APPLET(fgconsole, BB_DIR_USR_BIN, BB_SUID_DROP)) /* Benefits from suid root: better access to /dev/BLOCKDEVs: */ IF_FINDFS(APPLET(findfs, BB_DIR_SBIN, BB_SUID_MAYBE)) IF_FLASH_ERASEALL(APPLET(flash_eraseall, BB_DIR_USR_SBIN, BB_SUID_DROP)) IF_FLASH_LOCK(APPLET_ODDNAME(flash_lock, flash_lock_unlock, BB_DIR_USR_SBIN, BB_SUID_DROP, flash_lock)) IF_FLASH_UNLOCK(APPLET_ODDNAME(flash_unlock, flash_lock_unlock, BB_DIR_USR_SBIN, BB_SUID_DROP, flash_unlock)) IF_FLASHCP(APPLET(flashcp, BB_DIR_USR_SBIN, BB_SUID_DROP)) IF_FLOCK(APPLET(flock, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_FOLD(APPLET_NOEXEC(fold, fold, BB_DIR_USR_BIN, BB_SUID_DROP, fold)) IF_FREE(APPLET(free, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_FREERAMDISK(APPLET(freeramdisk, BB_DIR_SBIN, BB_SUID_DROP)) IF_FSCK(APPLET(fsck, BB_DIR_SBIN, BB_SUID_DROP)) //IF_E2FSCK(APPLET_ODDNAME(fsck.ext2, e2fsck, BB_DIR_SBIN, BB_SUID_DROP, fsck_ext2)) //IF_E2FSCK(APPLET_ODDNAME(fsck.ext3, e2fsck, BB_DIR_SBIN, BB_SUID_DROP, fsck_ext3)) IF_FSCK_MINIX(APPLET_ODDNAME(fsck.minix, fsck_minix, BB_DIR_SBIN, BB_SUID_DROP, fsck_minix)) IF_FSYNC(APPLET_NOFORK(fsync, fsync, BB_DIR_BIN, BB_SUID_DROP, fsync)) IF_FTPD(APPLET(ftpd, BB_DIR_USR_SBIN, BB_SUID_DROP)) IF_FTPGET(APPLET_ODDNAME(ftpget, ftpgetput, BB_DIR_USR_BIN, BB_SUID_DROP, ftpget)) IF_FTPPUT(APPLET_ODDNAME(ftpput, ftpgetput, BB_DIR_USR_BIN, BB_SUID_DROP, ftpput)) IF_FUSER(APPLET(fuser, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_GETENFORCE(APPLET(getenforce, BB_DIR_USR_SBIN, BB_SUID_DROP)) IF_GETOPT(APPLET(getopt, BB_DIR_BIN, BB_SUID_DROP)) IF_GETSEBOOL(APPLET(getsebool, BB_DIR_USR_SBIN, BB_SUID_DROP)) IF_GETTY(APPLET(getty, BB_DIR_SBIN, BB_SUID_DROP)) IF_HD(APPLET_NOEXEC(hd, hexdump, BB_DIR_USR_BIN, BB_SUID_DROP, hd)) IF_HDPARM(APPLET(hdparm, BB_DIR_SBIN, BB_SUID_DROP)) IF_HEAD(APPLET_NOEXEC(head, head, BB_DIR_USR_BIN, BB_SUID_DROP, head)) IF_HEXDUMP(APPLET_NOEXEC(hexdump, hexdump, BB_DIR_USR_BIN, BB_SUID_DROP, hexdump)) IF_HOSTNAME(APPLET(hostname, BB_DIR_BIN, BB_SUID_DROP)) IF_HTTPD(APPLET(httpd, BB_DIR_USR_SBIN, BB_SUID_DROP)) IF_HWCLOCK(APPLET(hwclock, BB_DIR_SBIN, BB_SUID_DROP)) IF_IFCONFIG(APPLET(ifconfig, BB_DIR_SBIN, BB_SUID_DROP)) IF_IFUPDOWN(APPLET_ODDNAME(ifdown, ifupdown, BB_DIR_SBIN, BB_SUID_DROP, ifdown)) IF_IFENSLAVE(APPLET(ifenslave, BB_DIR_SBIN, BB_SUID_DROP)) IF_IFPLUGD(APPLET(ifplugd, BB_DIR_USR_SBIN, BB_SUID_DROP)) IF_IFUPDOWN(APPLET_ODDNAME(ifup, ifupdown, BB_DIR_SBIN, BB_SUID_DROP, ifup)) IF_INETD(APPLET(inetd, BB_DIR_USR_SBIN, BB_SUID_DROP)) IF_INOTIFYD(APPLET(inotifyd, BB_DIR_SBIN, BB_SUID_DROP)) IF_INSTALL(APPLET(install, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_IONICE(APPLET(ionice, BB_DIR_BIN, BB_SUID_DROP)) #if ENABLE_FEATURE_IP_ADDRESS \ || ENABLE_FEATURE_IP_ROUTE \ || ENABLE_FEATURE_IP_LINK \ || ENABLE_FEATURE_IP_TUNNEL \ || ENABLE_FEATURE_IP_RULE IF_IP(APPLET(ip, BB_DIR_SBIN, BB_SUID_DROP)) #endif IF_IPADDR(APPLET(ipaddr, BB_DIR_SBIN, BB_SUID_DROP)) IF_IPCALC(APPLET(ipcalc, BB_DIR_BIN, BB_SUID_DROP)) IF_IPCRM(APPLET(ipcrm, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_IPCS(APPLET(ipcs, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_IPLINK(APPLET(iplink, BB_DIR_SBIN, BB_SUID_DROP)) IF_IPROUTE(APPLET(iproute, BB_DIR_SBIN, BB_SUID_DROP)) IF_IPRULE(APPLET(iprule, BB_DIR_SBIN, BB_SUID_DROP)) IF_IPTUNNEL(APPLET(iptunnel, BB_DIR_SBIN, BB_SUID_DROP)) IF_KBD_MODE(APPLET(kbd_mode, BB_DIR_BIN, BB_SUID_DROP)) IF_KILL(APPLET(kill, BB_DIR_BIN, BB_SUID_DROP)) IF_KILLALL(APPLET_ODDNAME(killall, kill, BB_DIR_USR_BIN, BB_SUID_DROP, killall)) IF_KILLALL5(APPLET_ODDNAME(killall5, kill, BB_DIR_USR_SBIN, BB_SUID_DROP, killall5)) IF_KLOGD(APPLET(klogd, BB_DIR_SBIN, BB_SUID_DROP)) IF_LAST(APPLET(last, BB_DIR_USR_BIN, BB_SUID_DROP)) //IF_LENGTH(APPLET_NOFORK(length, length, BB_DIR_USR_BIN, BB_SUID_DROP, length)) IF_LESS(APPLET(less, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_SETARCH(APPLET_ODDNAME(linux32, setarch, BB_DIR_BIN, BB_SUID_DROP, linux32)) IF_SETARCH(APPLET_ODDNAME(linux64, setarch, BB_DIR_BIN, BB_SUID_DROP, linux64)) IF_LN(APPLET_NOEXEC(ln, ln, BB_DIR_BIN, BB_SUID_DROP, ln)) IF_LOAD_POLICY(APPLET(load_policy, BB_DIR_USR_SBIN, BB_SUID_DROP)) IF_LOADFONT(APPLET(loadfont, BB_DIR_USR_SBIN, BB_SUID_DROP)) IF_LOADKMAP(APPLET(loadkmap, BB_DIR_SBIN, BB_SUID_DROP)) IF_LOGGER(APPLET(logger, BB_DIR_USR_BIN, BB_SUID_DROP)) /* Needs to be run by root or be suid root - needs to change uid and gid: */ IF_LOGIN(APPLET(login, BB_DIR_BIN, BB_SUID_REQUIRE)) IF_LOGNAME(APPLET_NOFORK(logname, logname, BB_DIR_USR_BIN, BB_SUID_DROP, logname)) IF_LOGREAD(APPLET(logread, BB_DIR_SBIN, BB_SUID_DROP)) IF_LOSETUP(APPLET(losetup, BB_DIR_SBIN, BB_SUID_DROP)) IF_LPD(APPLET(lpd, BB_DIR_USR_SBIN, BB_SUID_DROP)) IF_LPQ(APPLET_ODDNAME(lpq, lpqr, BB_DIR_USR_BIN, BB_SUID_DROP, lpq)) IF_LPR(APPLET_ODDNAME(lpr, lpqr, BB_DIR_USR_BIN, BB_SUID_DROP, lpr)) IF_LS(APPLET_NOEXEC(ls, ls, BB_DIR_BIN, BB_SUID_DROP, ls)) IF_LSATTR(APPLET(lsattr, BB_DIR_BIN, BB_SUID_DROP)) IF_LSPCI(APPLET(lspci, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_LSUSB(APPLET(lsusb, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_MAKEDEVS(APPLET(makedevs, BB_DIR_SBIN, BB_SUID_DROP)) IF_MAKEMIME(APPLET(makemime, BB_DIR_BIN, BB_SUID_DROP)) IF_MAN(APPLET(man, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_MATCHPATHCON(APPLET(matchpathcon, BB_DIR_USR_SBIN, BB_SUID_DROP)) IF_MD5SUM(APPLET_NOEXEC(md5sum, md5_sha1_sum, BB_DIR_USR_BIN, BB_SUID_DROP, md5sum)) IF_MICROCOM(APPLET(microcom, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_MKDIR(APPLET_NOFORK(mkdir, mkdir, BB_DIR_BIN, BB_SUID_DROP, mkdir)) IF_MKFS_VFAT(APPLET_ODDNAME(mkdosfs, mkfs_vfat, BB_DIR_SBIN, BB_SUID_DROP, mkfs_vfat)) IF_MKFS_EXT2(APPLET_ODDNAME(mke2fs, mkfs_ext2, BB_DIR_SBIN, BB_SUID_DROP, mkfs_ext2)) IF_MKFIFO(APPLET_NOEXEC(mkfifo, mkfifo, BB_DIR_USR_BIN, BB_SUID_DROP, mkfifo)) IF_MKFS_EXT2(APPLET_ODDNAME(mkfs.ext2, mkfs_ext2, BB_DIR_SBIN, BB_SUID_DROP, mkfs_ext2)) //IF_MKE2FS(APPLET_ODDNAME(mkfs.ext3, mke2fs, BB_DIR_SBIN, BB_SUID_DROP, mkfs_ext3)) IF_MKFS_MINIX(APPLET_ODDNAME(mkfs.minix, mkfs_minix, BB_DIR_SBIN, BB_SUID_DROP, mkfs_minix)) IF_MKFS_REISER(APPLET_ODDNAME(mkfs.reiser, mkfs_reiser, BB_DIR_SBIN, BB_SUID_DROP, mkfs_reiser)) IF_MKFS_VFAT(APPLET_ODDNAME(mkfs.vfat, mkfs_vfat, BB_DIR_SBIN, BB_SUID_DROP, mkfs_vfat)) IF_MKNOD(APPLET_NOEXEC(mknod, mknod, BB_DIR_BIN, BB_SUID_DROP, mknod)) IF_CRYPTPW(APPLET_ODDNAME(mkpasswd, cryptpw, BB_DIR_USR_BIN, BB_SUID_DROP, mkpasswd)) IF_MKSWAP(APPLET(mkswap, BB_DIR_SBIN, BB_SUID_DROP)) IF_MKTEMP(APPLET(mktemp, BB_DIR_BIN, BB_SUID_DROP)) IF_MORE(APPLET(more, BB_DIR_BIN, BB_SUID_DROP)) /* On full-blown systems, requires suid for user mounts. * But it's not unthinkable to have it available in non-suid flavor on some systems, * for viewing mount table. * Therefore we use BB_SUID_MAYBE instead of BB_SUID_REQUIRE: */ IF_MOUNT(APPLET(mount, BB_DIR_BIN, IF_DESKTOP(BB_SUID_MAYBE) IF_NOT_DESKTOP(BB_SUID_DROP))) IF_MOUNTPOINT(APPLET(mountpoint, BB_DIR_BIN, BB_SUID_DROP)) IF_MT(APPLET(mt, BB_DIR_BIN, BB_SUID_DROP)) IF_MV(APPLET(mv, BB_DIR_BIN, BB_SUID_DROP)) IF_NAMEIF(APPLET(nameif, BB_DIR_SBIN, BB_SUID_DROP)) IF_NC(APPLET(nc, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_NETSTAT(APPLET(netstat, BB_DIR_BIN, BB_SUID_DROP)) IF_NICE(APPLET(nice, BB_DIR_BIN, BB_SUID_DROP)) IF_NOHUP(APPLET(nohup, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_NSLOOKUP(APPLET(nslookup, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_NTPD(APPLET(ntpd, BB_DIR_USR_SBIN, BB_SUID_DROP)) IF_OD(APPLET(od, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_OPENVT(APPLET(openvt, BB_DIR_USR_BIN, BB_SUID_DROP)) //IF_PARSE(APPLET(parse, BB_DIR_USR_BIN, BB_SUID_DROP)) /* Needs to be run by root or be suid root - needs to change /etc/{passwd,shadow}: */ IF_PASSWD(APPLET(passwd, BB_DIR_USR_BIN, BB_SUID_REQUIRE)) IF_PGREP(APPLET(pgrep, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_PIDOF(APPLET(pidof, BB_DIR_BIN, BB_SUID_DROP)) IF_PIPE_PROGRESS(APPLET(pipe_progress, BB_DIR_BIN, BB_SUID_DROP)) IF_PIVOT_ROOT(APPLET(pivot_root, BB_DIR_SBIN, BB_SUID_DROP)) IF_PKILL(APPLET_ODDNAME(pkill, pgrep, BB_DIR_USR_BIN, BB_SUID_DROP, pkill)) IF_POPMAILDIR(APPLET(popmaildir, BB_DIR_USR_SBIN, BB_SUID_DROP)) IF_PRINTENV(APPLET_NOFORK(printenv, printenv, BB_DIR_BIN, BB_SUID_DROP, printenv)) IF_PRINTF(APPLET_NOFORK(printf, printf, BB_DIR_USR_BIN, BB_SUID_DROP, printf)) IF_PS(APPLET(ps, BB_DIR_BIN, BB_SUID_DROP)) IF_PSCAN(APPLET(pscan, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_PWD(APPLET_NOFORK(pwd, pwd, BB_DIR_BIN, BB_SUID_DROP, pwd)) IF_RAIDAUTORUN(APPLET(raidautorun, BB_DIR_SBIN, BB_SUID_DROP)) IF_RDATE(APPLET(rdate, BB_DIR_USR_SBIN, BB_SUID_DROP)) IF_RDEV(APPLET(rdev, BB_DIR_USR_SBIN, BB_SUID_DROP)) IF_READAHEAD(APPLET(readahead, BB_DIR_USR_SBIN, BB_SUID_DROP)) IF_READLINK(APPLET(readlink, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_READPROFILE(APPLET(readprofile, BB_DIR_USR_SBIN, BB_SUID_DROP)) IF_REALPATH(APPLET(realpath, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_REFORMIME(APPLET(reformime, BB_DIR_BIN, BB_SUID_DROP)) IF_RENICE(APPLET(renice, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_RESET(APPLET(reset, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_RESIZE(APPLET(resize, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_RESTORECON(APPLET_ODDNAME(restorecon, setfiles, BB_DIR_SBIN, BB_SUID_DROP, restorecon)) IF_RM(APPLET_NOFORK(rm, rm, BB_DIR_BIN, BB_SUID_DROP, rm)) IF_RMDIR(APPLET_NOFORK(rmdir, rmdir, BB_DIR_BIN, BB_SUID_DROP, rmdir)) IF_ROUTE(APPLET(route, BB_DIR_SBIN, BB_SUID_DROP)) IF_RTCWAKE(APPLET(rtcwake, BB_DIR_USR_SBIN, BB_SUID_DROP)) IF_RUN_PARTS(APPLET_ODDNAME(run-parts, run_parts, BB_DIR_BIN, BB_SUID_DROP, run_parts)) IF_RUNCON(APPLET(runcon, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_RUNLEVEL(APPLET(runlevel, BB_DIR_SBIN, BB_SUID_DROP)) IF_RUNSV(APPLET(runsv, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_RUNSVDIR(APPLET(runsvdir, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_RX(APPLET(rx, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_SCRIPT(APPLET(script, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_SCRIPTREPLAY(APPLET(scriptreplay, BB_DIR_BIN, BB_SUID_DROP)) IF_SELINUXENABLED(APPLET(selinuxenabled, BB_DIR_USR_SBIN, BB_SUID_DROP)) IF_SENDMAIL(APPLET(sendmail, BB_DIR_USR_SBIN, BB_SUID_DROP)) IF_SEQ(APPLET_NOFORK(seq, seq, BB_DIR_USR_BIN, BB_SUID_DROP, seq)) IF_SESTATUS(APPLET(sestatus, BB_DIR_USR_SBIN, BB_SUID_DROP)) IF_SETARCH(APPLET(setarch, BB_DIR_BIN, BB_SUID_DROP)) IF_SETCONSOLE(APPLET(setconsole, BB_DIR_SBIN, BB_SUID_DROP)) IF_SETENFORCE(APPLET(setenforce, BB_DIR_USR_SBIN, BB_SUID_DROP)) IF_SETFILES(APPLET(setfiles, BB_DIR_SBIN, BB_SUID_DROP)) IF_SETFONT(APPLET(setfont, BB_DIR_USR_SBIN, BB_SUID_DROP)) IF_SETKEYCODES(APPLET(setkeycodes, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_SETLOGCONS(APPLET(setlogcons, BB_DIR_USR_SBIN, BB_SUID_DROP)) IF_SETSEBOOL(APPLET(setsebool, BB_DIR_USR_SBIN, BB_SUID_DROP)) IF_SETSID(APPLET(setsid, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_SETUIDGID(APPLET_ODDNAME(setuidgid, chpst, BB_DIR_USR_BIN, BB_SUID_DROP, setuidgid)) IF_SHA1SUM(APPLET_NOEXEC(sha1sum, md5_sha1_sum, BB_DIR_USR_BIN, BB_SUID_DROP, sha1sum)) IF_SHA3SUM(APPLET_NOEXEC(sha3sum, md5_sha1_sum, BB_DIR_USR_BIN, BB_SUID_DROP, sha3sum)) IF_SHA256SUM(APPLET_NOEXEC(sha256sum, md5_sha1_sum, BB_DIR_USR_BIN, BB_SUID_DROP, sha256sum)) IF_SHA512SUM(APPLET_NOEXEC(sha512sum, md5_sha1_sum, BB_DIR_USR_BIN, BB_SUID_DROP, sha512sum)) IF_SHOWKEY(APPLET(showkey, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_SLATTACH(APPLET(slattach, BB_DIR_SBIN, BB_SUID_DROP)) /* Do not make this applet NOFORK. It breaks ^C-ing of pauses in shells: */ IF_SLEEP(APPLET(sleep, BB_DIR_BIN, BB_SUID_DROP)) IF_SOFTLIMIT(APPLET_ODDNAME(softlimit, chpst, BB_DIR_USR_BIN, BB_SUID_DROP, softlimit)) IF_SORT(APPLET_NOEXEC(sort, sort, BB_DIR_USR_BIN, BB_SUID_DROP, sort)) IF_SPLIT(APPLET(split, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_START_STOP_DAEMON(APPLET_ODDNAME(start-stop-daemon, start_stop_daemon, BB_DIR_SBIN, BB_SUID_DROP, start_stop_daemon)) IF_STAT(APPLET(stat, BB_DIR_BIN, BB_SUID_DROP)) IF_STRINGS(APPLET(strings, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_STTY(APPLET(stty, BB_DIR_BIN, BB_SUID_DROP)) /* Needs to be run by root or be suid root - needs to change uid and gid: */ IF_SU(APPLET(su, BB_DIR_BIN, BB_SUID_REQUIRE)) IF_SULOGIN(APPLET(sulogin, BB_DIR_SBIN, BB_SUID_DROP)) IF_SUM(APPLET(sum, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_SV(APPLET(sv, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_SVLOGD(APPLET(svlogd, BB_DIR_USR_SBIN, BB_SUID_DROP)) IF_SWAPONOFF(APPLET_ODDNAME(swapoff, swap_on_off, BB_DIR_SBIN, BB_SUID_DROP, swapoff)) IF_SWAPONOFF(APPLET_ODDNAME(swapon, swap_on_off, BB_DIR_SBIN, BB_SUID_DROP, swapon)) IF_SWITCH_ROOT(APPLET(switch_root, BB_DIR_SBIN, BB_SUID_DROP)) IF_SYNC(APPLET_NOFORK(sync, sync, BB_DIR_BIN, BB_SUID_DROP, sync)) IF_BB_SYSCTL(APPLET(sysctl, BB_DIR_SBIN, BB_SUID_DROP)) IF_SYSLOGD(APPLET(syslogd, BB_DIR_SBIN, BB_SUID_DROP)) IF_TAC(APPLET_NOEXEC(tac, tac, BB_DIR_USR_BIN, BB_SUID_DROP, tac)) IF_TAIL(APPLET(tail, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_TASKSET(APPLET(taskset, BB_DIR_USR_BIN, BB_SUID_DROP)) /* IF_TC(APPLET(tc, BB_DIR_SBIN, BB_SUID_DROP)) */ IF_TCPSVD(APPLET_ODDNAME(tcpsvd, tcpudpsvd, BB_DIR_USR_BIN, BB_SUID_DROP, tcpsvd)) IF_TEE(APPLET(tee, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_TELNET(APPLET(telnet, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_TELNETD(APPLET(telnetd, BB_DIR_USR_SBIN, BB_SUID_DROP)) IF_TEST(APPLET_NOFORK(test, test, BB_DIR_USR_BIN, BB_SUID_DROP, test)) #if ENABLE_FEATURE_TFTP_GET || ENABLE_FEATURE_TFTP_PUT IF_TFTP(APPLET(tftp, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_TFTPD(APPLET(tftpd, BB_DIR_USR_SBIN, BB_SUID_DROP)) #endif IF_TIME(APPLET(time, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_TIMEOUT(APPLET(timeout, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_TOP(APPLET(top, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_TR(APPLET(tr, BB_DIR_USR_BIN, BB_SUID_DROP)) /* Needs socket(AF_INET, SOCK_RAW, IPPROTO_ICMP), therefore BB_SUID_MAYBE: */ IF_TRACEROUTE(APPLET(traceroute, BB_DIR_USR_BIN, BB_SUID_MAYBE)) IF_TRACEROUTE6(APPLET(traceroute6, BB_DIR_USR_BIN, BB_SUID_MAYBE)) IF_TRUE(APPLET_NOFORK(true, true, BB_DIR_BIN, BB_SUID_DROP, true)) IF_TTY(APPLET(tty, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_TTYSIZE(APPLET(ttysize, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_TUNCTL(APPLET(tunctl, BB_DIR_SBIN, BB_SUID_DROP)) IF_TUNE2FS(APPLET(tune2fs, BB_DIR_SBIN, BB_SUID_DROP)) IF_UDHCPC(APPLET(udhcpc, BB_DIR_SBIN, BB_SUID_DROP)) IF_UDHCPD(APPLET(udhcpd, BB_DIR_USR_SBIN, BB_SUID_DROP)) IF_UDPSVD(APPLET_ODDNAME(udpsvd, tcpudpsvd, BB_DIR_USR_BIN, BB_SUID_DROP, udpsvd)) IF_UMOUNT(APPLET(umount, BB_DIR_BIN, BB_SUID_DROP)) IF_UNAME(APPLET(uname, BB_DIR_BIN, BB_SUID_DROP)) IF_UNEXPAND(APPLET_ODDNAME(unexpand, expand, BB_DIR_USR_BIN, BB_SUID_DROP, unexpand)) IF_UNIQ(APPLET(uniq, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_UNIX2DOS(APPLET_NOEXEC(unix2dos, dos2unix, BB_DIR_USR_BIN, BB_SUID_DROP, unix2dos)) IF_UPTIME(APPLET(uptime, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_USLEEP(APPLET_NOFORK(usleep, usleep, BB_DIR_BIN, BB_SUID_DROP, usleep)) IF_UUDECODE(APPLET(uudecode, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_UUENCODE(APPLET(uuencode, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_VCONFIG(APPLET(vconfig, BB_DIR_SBIN, BB_SUID_DROP)) /* Needs to be run by root or be suid root - needs to change uid and gid: */ IF_VLOCK(APPLET(vlock, BB_DIR_USR_BIN, BB_SUID_REQUIRE)) IF_VOLNAME(APPLET(volname, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_WATCH(APPLET(watch, BB_DIR_BIN, BB_SUID_DROP)) IF_WATCHDOG(APPLET(watchdog, BB_DIR_SBIN, BB_SUID_DROP)) IF_WC(APPLET(wc, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_WGET(APPLET(wget, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_WHICH(APPLET(which, BB_DIR_USR_BIN, BB_SUID_DROP)) IF_WHOAMI(APPLET_NOFORK(whoami, whoami, BB_DIR_USR_BIN, BB_SUID_DROP, whoami)) IF_YES(APPLET_NOFORK(yes, yes, BB_DIR_USR_BIN, BB_SUID_DROP, yes)) IF_ZCIP(APPLET(zcip, BB_DIR_SBIN, BB_SUID_DROP)) #if !defined(PROTOTYPES) && !defined(NAME_MAIN_CNAME) && !defined(MAKE_USAGE) \ && !defined(MAKE_LINKS) && !defined(MAKE_SUID) }; #endif #undef APPLET #undef APPLET_ODDNAME #undef APPLET_NOEXEC #undef APPLET_NOFORK
futuretekinc/busybox-1.22.1
include/applets.h
C
gpl-2.0
30,144
#include "meta.h" #include "../util.h" /* B1S (found in 7 Wonders of the Ancient World) */ VGMSTREAM * init_vgmstream_ps2_b1s(STREAMFILE *streamFile) { VGMSTREAM * vgmstream = NULL; char filename[260]; int channel_count; off_t start_offset; /* check extension, case insensitive */ streamFile->get_name(streamFile,filename,sizeof(filename)); if (strcasecmp("b1s",filename_extension(filename))) goto fail; if ((read_32bitLE(0x04,streamFile)+0x18) != get_streamfile_size(streamFile)) goto fail; channel_count = read_32bitLE(0x14,streamFile); /* build the VGMSTREAM */ vgmstream = allocate_vgmstream(channel_count,0); if (!vgmstream) goto fail; /* fill in the vital statistics */ start_offset = 0x18; vgmstream->channels = channel_count; vgmstream->sample_rate = read_32bitBE(0x10,streamFile); vgmstream->coding_type = coding_PSX; vgmstream->num_samples = read_32bitLE(0x04,streamFile)/16/channel_count*28; vgmstream->layout_type = layout_interleave; vgmstream->interleave_block_size = read_32bitLE(0x0C,streamFile); vgmstream->meta_type = meta_PS2_B1S; /* open the file for reading */ { int i; STREAMFILE * file; file = streamFile->open(streamFile,filename,STREAMFILE_DEFAULT_BUFFER_SIZE); if (!file) goto fail; for (i=0;i<channel_count;i++) { vgmstream->ch[i].streamfile = file; vgmstream->ch[i].channel_start_offset= vgmstream->ch[i].offset=start_offset+ vgmstream->interleave_block_size*i; } } return vgmstream; /* clean up anything we may have opened */ fail: if (vgmstream) close_vgmstream(vgmstream); return NULL; }
xbmcin/XBMCinTC
project/cmake/addons/build/audiodecoder.vgmstream/lib/vgmstream/src/meta/ps2_b1s.c
C
gpl-2.0
1,748
// image.h - API for working with images // Copyright ©2011 Guff <cassmacguff@gmail.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. // // 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 Street, Fifth Floor, Boston, // MA 02110-1301, USA. // #ifndef LUALOCK_CLIB_IMAGE_H #define LUALOCK_CLIB_IMAGE_H #include <lualib.h> #include <lauxlib.h> #include "misc.h" typedef struct { GdkPixbuf *pbuf; layer_t *layer; cairo_surface_t *surface; gdouble rotation; } image_t; gdouble image_get_width(image_t *image); gdouble image_get_height(image_t *image); void lualock_lua_image_init(lua_State *L); #endif
Guff/lualock
clib/image.h
C
gpl-2.0
1,279
#!/usr/bin/env python # -*- coding: utf-8 -*- import os,sys, re, json, requests from oxapi import * def get_a_task(ox): folder = ox.get_standard_folder('tasks') task = list(ox.get_tasks(folder.id))[0] return task def upload(bean, args=[{'content':None,'file':None, 'mimetype':'text/plain','name':'attachment.txt'}]): from requests.packages.urllib3.fields import RequestField from requests.packages.urllib3.filepost import encode_multipart_formdata ox = bean._ox url = ox._url('attachment', 'attach') params = ox._params() meta = {'module': bean.module_type, #'attached': bean.id, 'folder': bean.folder_id} counter = 0; fields = [] for data in args: # json metadata rf = RequestField(name='json_' + str(counter) ,data=json.dumps(meta)) rf.make_multipart(content_disposition='form-data') fields.append(rf) # content: data or file to read filename = 'attachment.txt' mimetype = 'text/plain' content = None if 'content' in data: content = data['content'] else: if 'file' in data: filename = data['file'] if os.path.isfile(filename): with open(filename, 'rb') as fh: content = fh.read() if content is None: #TODO: process error return None if 'name' in data: filename = data['name'] mimetype = 'text/plain' if 'mimetype' in data: mimetype = data['mimetype'] rf = RequestField(name='file_' + str(counter), data=content, filename=filename) rf.make_multipart(content_disposition='form-data',content_type=mimetype) fields.append(rf) post_body, content_type = encode_multipart_formdata(fields) content_type = ''.join(('multipart/mixed',) + content_type.partition(';')[1:]) headers = {'Content-Type': content_type} response = requests.post(url, cookies=ox._cookies, params=params, headers=headers, data=post_body) if response and response.status_code == 200: regex='\((\{.*\})\)' match = re.search(regex, response.content) if match: return json.loads(match.group(1)) return None def create_attachment(ox, task): from requests.packages.urllib3.fields import RequestField from requests.packages.urllib3.filepost import encode_multipart_formdata url = ox._url('attachment', 'attach') params = ox._params() json_0 = {'module': task.module_type, 'attached': task.id, 'folder': task.folder_id} fields = [] rf = RequestField(name='json_0',data=json.dumps(json_0)) rf.make_multipart(content_disposition='form-data') fields.append(rf) rf = RequestField(name='file_0', data="TEXT", filename='attachment.txt') rf.make_multipart(content_disposition='form-data',content_type='text/plain') fields.append(rf) post_body, content_type = encode_multipart_formdata(fields) content_type = ''.join(('multipart/mixed',) + content_type.partition(';')[1:]) headers = {'Content-Type': content_type} response = requests.post(url, cookies=ox._cookies, params=params, headers=headers, data=post_body) if response and response.status_code == 200: regex='\((\{.*\})\)' match = re.search(regex, response.content) if match: return json.loads(match.group(1)) return None if __name__ == '__main__': with OxHttpAPI.get_session() as ox: task = get_a_task(ox) # args = [{ 'file':'attachments_module.py' }] # upload(task, args) #create_attachment(ox,task) #attachments = list(ox.get_attachments(task)) attachments = ox.get_attachments(task) pass
bstrebel/OxAPI
test/_attachment.py
Python
gpl-2.0
3,939
<div id="aboutus_others_cathy_hold_ad2"> <!--BLOG POST BANNER--> <div id="aboutus_cathy_shortlinks_ad"> <div id="aboutus_shortlinks_title_ad">ZODML Blog posts</a></div> <div style="margin:5px 0px 0px 0px; padding:4px; font-size:12px; line-height:22px; font-family: 'Lucida Sans Unicode', 'Lucida Grande', sans-serif;"> <a href="blog/what-do-you-see.php">What Do You See? </a><br /> <a href="blog/christmas_stories.php">Christmas Stories</a><br /> <a href="blog/power_of_books.php">The Power of Books</a><br /> </div> </div> <!--END OF BLOG POST BANNER--> <!--VOLUNTEER BANNER--> <a href="volunteer.php"> <div id="cathy_get_involved"> <table> <tr> <td align="center"><img src="images/get-involved-icon.png" width="150" height="80" alt="get involved" /><br/><br/>Volunteer for ZODML</td> <td><span style="font-size:10px;">Want to give back to the community? ZODML offers rewarding opportunities for volunteers of all ages and professions.</span></td> </tr> </table> </div> </a> <!--END OF VOLUNTEER BANNER--> <!--E-LIBRARY BANNER--> <a href="e-library/"> <div id="cathy_get_involved"> <table> <tr> <td align="center"><img src="images/e-library.png" width="150" height="80" alt="e-library" /><br/><br/>e-Books</td> <td valign="top"><span style="font-size:10px;">View our e-library section and browse through our collections of e-books on various subjects.</span></td> </tr> </table> </div> </a> <!--END OF E-LIBRARY BANNER--> <!--DLC BANNER--> <a href="dlc/" target="_blank"> <div id="cathy_get_involved"> <table> <tr> <td align="center"><img src="images/dlc_banner_ad.jpg" width="150" height="80" alt="get involved" /><br/><br/>Join the DLC</td> <td valign="top"><span style="font-size:10px;">Join the Digital Learning Community, share your knowledge with fellow students and win exciting prizes!</span></td> </tr> </table> </div> </a> <!--END OF DLC BANNER--> <!--BOOK OF THE WEEK BANNER--> <div id="each_book_others_holdbow_ad"> <div id="aboutus_shortlinksbow_ad"> <div id="aboutus_shortlinks_titlebow_ad"><b>Book of the Week</b></div> <table cellspacing="8"> <?php include_once("Nigeria/scripts/config2.php"); $bookfiction = mysql_query("SELECT * FROM books2 WHERE Id='29252'"); $row2 = mysql_fetch_array($bookfiction); $fictiontitle = $row2['Title']; $fictionfullname = $row2['FullName']; ?> <tr> <td><img src="images/purple_hibiscus_home.png" width="60" height="70" alt="<?php echo $fictiontitle; ?>" title="<?php echo $fictiontitle; ?>" /></td> <td><a href="book-of-the-week.php?bookid=29252"><?php echo $fictiontitle; ?></a> <br />by <?php echo $fictionfullname; ?><br />Category: Fiction</td> </tr> <?php include_once("Nigeria/scripts/config2.php"); $booknonfiction = mysql_query("SELECT * FROM books2 WHERE Id='2394'"); $row3 = mysql_fetch_array($booknonfiction); $nonfictiontitle = $row3['Title']; $nonfictionfullname = $row3['FullName']; ?> <tr> <td><img src="images/awoism_home.png" width="60" height="70" alt="<?php echo $nonfictiontitle; ?>" title="<?php echo $nonfictiontitle; ?>" /></td> <td><a href="book-of-the-week.php?bookid=2394"><?php echo $nonfictiontitle; ?></a> <br />by <?php echo $nonfictionfullname; ?><br />Category: Non-fiction</td> </tr> <?php include_once("Nigeria/scripts/config2.php"); $bookchildren = mysql_query("SELECT * FROM books2 WHERE Id='16426'"); $row4 = mysql_fetch_array($bookchildren); $childrentitle = $row4['Title']; $childrenfullname = $row4['FullName']; ?> <tr> <td><img src="images/first_corn_home.png" width="60" height="70" alt="<?php echo $childrentitle; ?>" title="<?php echo $childrentitle; ?>"/></td> <td><a href="book-of-the-week.php?bookid=29358"><?php echo $childrentitle; ?></a> <br />by <?php echo $childrenfullname; ?><br />Category: Children & Young Adults</td> </tr> </table> </div> <!--END OF BOOK OF THE WEEK BANNER--> <!--SOCIAL MEDIA BANNER FACEBOOK--> <div id="social_media"> <table cellspacing="0"> <!--FACEBOOK API--> <tr> <td> <div class="fb-like-box" data-href="http://www.facebook.com/pages/Zaccheus-Onumba-Dibiaezue-Memorial-Libraries/233709620080206" data-width="260" data-height="300" data-show-faces="true" data-border-color="#CCC" data-stream="false" data-header="false"></div> </td> </tr> <!--END OF FACEBOOK API--> </table> </div> <!--END OF SOCIAL MEDIA BANNER FACEBOOK--> </div> </div> ~ <div id="aboutus_others_cathy_hold_ad2"> <!--DISCOVER NIGERIA BANNER--> <a href="Nigeria/"> <div id="cathy_get_involved" style="font-size:10px;"> <table cellspacing="10"> <tr> <td valign="top" align="center"><img src="images/discovernigeria5.png" width="150" height="130" alt="discover nigeria" /><br /><br />Discover Nigeria</td> <td valign="top">We at ZODML have set ourselves the task of reminding people about the rich culture we possess, numerous achievements of Nigerians. </td> </tr> </table> </div> </a> <!--END OF DISCOVER NIGERIA BANNER--> <!--E-LIBRARY BANNER--> <a href="e-library/"> <div id="cathy_get_involved"> <table> <tr> <td align="center"><img src="images/e-library.png" width="150" height="80" alt="e-library" /><br/><br/>e-Books</td> <td valign="top"><span style="font-size:10px;">View our e-library section and browse through our collections of e-books on various subjects.</span></td> </tr> </table> </div> </a> <!--END OF E-LIBRARY BANNER--> <!--DLC BANNER <div id="cathy_get_involved"> <table> <tr> <td align="center"><img src="images/dlc_banner_ad.jpg" width="150" height="80" alt="dlc" /><br/><br/><a href="dlc/" target="_blank">Join the DLC</a></td> <td valign="top"><span style="font-size:10px;">Join the Digital Learning Community and Share your learning experience with other students. Exciting prizes to be won!!!</span></td> </tr> </table> </div>--> <!--END OF DLC BANNER--> <!--VOLUNTEER--> <a href="volunteer.php"> <div id="cathy_get_involved"> <table> <tr> <td align="center"><img src="images/get-involved-icon.png" width="150" height="80" alt="get involved" /><br/><br/>Volunteer for ZODML</td> <td><span style="font-size:10px; color:#444;">Want to give back to the community? ZODML offers rewarding opportunities for volunteers of all ages and professions.</span></td> </tr> </table> </div> </a> <!--END OF VOLUNTEER--> <!--CAREER GUIDE BANNER--> <a href="career_guide.php"> <div id="cathy_get_involved"> <table> <tr> <td align="center"><img src="images/career_guide.png" width="150" height="80" alt="career guide" /><br/><br/>Career Guide</td> <td valign="top"><span style="font-size:10px;">Free resources to help you build a thriving and rewarding career.</span></td> </tr> </table> </div> </a> <!--END OF CAREER GUIDE BANNER--> <!--SOCIAL MEDIA BANNER TWITTER--> <div id="social_media2"> <a class="twitter-timeline" href="https://twitter.com/ZODML" data-widget-id="260372541170917376" width="260" height="300">Tweets by @ZODML</a> <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script> </div> </div> </div> </div>
oluabbeys/drupzod
banner.php
PHP
gpl-2.0
13,275
/* * Authors: * Ted Gould <ted@gould.cx> * * Copyright (C) 2005 Authors * * Released under GNU GPL, read the file 'COPYING' for more information */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include "ui/dialog/extensions.h" #include <glibmm/i18n.h> #include "inkscape.h" #include "preferences.h" #include "extension/extension.h" #include "error-file.h" /** The name and group of the preference to say whether the error dialog should be shown on startup. */ #define PREFERENCE_ID "/dialogs/extension-error/show-on-startup" namespace Inkscape { namespace Extension { /** \brief An initializer which builds the dialog Really a simple function. Basically the message dialog itself gets built with the first initializer. The next step is to add in the message, and attach the filename for the error file. After that the checkbox is built, and has the call back attached to it. Also, it is set based on the preferences setting for show on startup (really, it should always be checked if you can see the dialog, but it is probably good to check anyway). */ ErrorFileNotice::ErrorFileNotice (void) : Gtk::MessageDialog( "", /* message */ false, /* use markup */ Gtk::MESSAGE_WARNING, /* dialog type */ Gtk::BUTTONS_OK, /* buttons */ true /* modal */ ) { // \FIXME change this /* This is some filler text, needs to change before relase */ Glib::ustring dialog_text(_("<span weight=\"bold\" size=\"larger\">One or more extensions failed to load</span>\n\nThe failed extensions have been skipped. Inkscape will continue to run normally but those extensions will be unavailable. For details to troubleshoot this problem, please refer to the error log located at: ")); gchar * ext_error_file = Inkscape::Application::profile_path(EXTENSION_ERROR_LOG_FILENAME); dialog_text += ext_error_file; g_free(ext_error_file); set_message(dialog_text, true); #if WITH_GTKMM_3_0 Gtk::Box * vbox = get_content_area(); #else Gtk::Box * vbox = get_vbox(); #endif /* This is some filler text, needs to change before relase */ Inkscape::Preferences *prefs = Inkscape::Preferences::get(); checkbutton = Gtk::manage(new Gtk::CheckButton(_("Show dialog on startup"))); vbox->pack_start(*checkbutton, true, false, 5); checkbutton->show(); checkbutton->set_active(prefs->getBool(PREFERENCE_ID, true)); checkbutton->signal_toggled().connect(sigc::mem_fun(this, &ErrorFileNotice::checkbox_toggle)); set_resizable(true); Inkscape::UI::Dialogs::ExtensionsPanel* extens = new Inkscape::UI::Dialogs::ExtensionsPanel(); extens->set_full(false); vbox->pack_start( *extens, true, true ); extens->show(); return; } /** \brief Sets the preferences based on the checkbox value */ void ErrorFileNotice::checkbox_toggle (void) { // std::cout << "Toggle value" << std::endl; Inkscape::Preferences *prefs = Inkscape::Preferences::get(); prefs->setBool(PREFERENCE_ID, checkbutton->get_active()); } /** \brief Shows the dialog This function only shows the dialog if the preferences say that the user wants to see the dialog, otherwise it just exits. */ int ErrorFileNotice::run (void) { Inkscape::Preferences *prefs = Inkscape::Preferences::get(); if (!prefs->getBool(PREFERENCE_ID, true)) return 0; return Gtk::Dialog::run(); } }; }; /* namespace Inkscape, Extension */ /* Local Variables: mode:c++ c-file-style:"stroustrup" c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +)) indent-tabs-mode:nil fill-column:99 End: */ // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :
danieljabailey/inkscape_experiments
src/extension/error-file.cpp
C++
gpl-2.0
3,806
/* * * linux/drivers/s390/net/qeth_main.c ($Revision: 1.251 $) * * Linux on zSeries OSA Express and HiperSockets support * * Copyright 2000,2003 IBM Corporation * * Author(s): Original Code written by * Utz Bacher (utz.bacher@de.ibm.com) * Rewritten by * Frank Pavlic (fpavlic@de.ibm.com) and * Thomas Spatzier <tspat@de.ibm.com> * * $Revision: 1.251 $ $Date: 2005/05/04 20:19:18 $ * * 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, 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. */ #include <linux/config.h> #include <linux/module.h> #include <linux/moduleparam.h> #include <linux/string.h> #include <linux/errno.h> #include <linux/mm.h> #include <linux/ip.h> #include <linux/inetdevice.h> #include <linux/netdevice.h> #include <linux/sched.h> #include <linux/workqueue.h> #include <linux/kernel.h> #include <linux/slab.h> #include <linux/interrupt.h> #include <linux/tcp.h> #include <linux/icmp.h> #include <linux/skbuff.h> #include <linux/in.h> #include <linux/igmp.h> #include <linux/init.h> #include <linux/reboot.h> #include <linux/mii.h> #include <linux/rcupdate.h> #include <linux/ethtool.h> #include <net/arp.h> #include <net/ip.h> #include <net/route.h> #include <asm/ebcdic.h> #include <asm/io.h> #include <asm/qeth.h> #include <asm/timex.h> #include <asm/semaphore.h> #include <asm/uaccess.h> #include "qeth.h" #include "qeth_mpc.h" #include "qeth_fs.h" #include "qeth_eddp.h" #include "qeth_tso.h" #define VERSION_QETH_C "$Revision: 1.251 $" static const char *version = "qeth S/390 OSA-Express driver"; /** * Debug Facility Stuff */ static debug_info_t *qeth_dbf_setup = NULL; static debug_info_t *qeth_dbf_data = NULL; static debug_info_t *qeth_dbf_misc = NULL; static debug_info_t *qeth_dbf_control = NULL; debug_info_t *qeth_dbf_trace = NULL; static debug_info_t *qeth_dbf_sense = NULL; static debug_info_t *qeth_dbf_qerr = NULL; DEFINE_PER_CPU(char[256], qeth_dbf_txt_buf); /** * some more definitions and declarations */ static unsigned int known_devices[][10] = QETH_MODELLIST_ARRAY; /* list of our cards */ struct qeth_card_list_struct qeth_card_list; /*process list want to be notified*/ spinlock_t qeth_notify_lock; struct list_head qeth_notify_list; static void qeth_send_control_data_cb(struct qeth_channel *, struct qeth_cmd_buffer *); /** * here we go with function implementation */ static void qeth_init_qdio_info(struct qeth_card *card); static int qeth_init_qdio_queues(struct qeth_card *card); static int qeth_alloc_qdio_buffers(struct qeth_card *card); static void qeth_free_qdio_buffers(struct qeth_card *); static void qeth_clear_qdio_buffers(struct qeth_card *); static void qeth_clear_ip_list(struct qeth_card *, int, int); static void qeth_clear_ipacmd_list(struct qeth_card *); static int qeth_qdio_clear_card(struct qeth_card *, int); static void qeth_clear_working_pool_list(struct qeth_card *); static void qeth_clear_cmd_buffers(struct qeth_channel *); static int qeth_stop(struct net_device *); static void qeth_clear_ipato_list(struct qeth_card *); static int qeth_is_addr_covered_by_ipato(struct qeth_card *, struct qeth_ipaddr *); static void qeth_irq_tasklet(unsigned long); static int qeth_set_online(struct ccwgroup_device *); static int __qeth_set_online(struct ccwgroup_device *gdev, int recovery_mode); static struct qeth_ipaddr * qeth_get_addr_buffer(enum qeth_prot_versions); static void qeth_set_multicast_list(struct net_device *); static void qeth_setadp_promisc_mode(struct qeth_card *); static void qeth_notify_processes(void) { /*notify all registered processes */ struct qeth_notify_list_struct *n_entry; QETH_DBF_TEXT(trace,3,"procnoti"); spin_lock(&qeth_notify_lock); list_for_each_entry(n_entry, &qeth_notify_list, list) { send_sig(n_entry->signum, n_entry->task, 1); } spin_unlock(&qeth_notify_lock); } int qeth_notifier_unregister(struct task_struct *p) { struct qeth_notify_list_struct *n_entry, *tmp; QETH_DBF_TEXT(trace, 2, "notunreg"); spin_lock(&qeth_notify_lock); list_for_each_entry_safe(n_entry, tmp, &qeth_notify_list, list) { if (n_entry->task == p) { list_del(&n_entry->list); kfree(n_entry); goto out; } } out: spin_unlock(&qeth_notify_lock); return 0; } int qeth_notifier_register(struct task_struct *p, int signum) { struct qeth_notify_list_struct *n_entry; /*check first if entry already exists*/ spin_lock(&qeth_notify_lock); list_for_each_entry(n_entry, &qeth_notify_list, list) { if (n_entry->task == p) { n_entry->signum = signum; spin_unlock(&qeth_notify_lock); return 0; } } spin_unlock(&qeth_notify_lock); n_entry = (struct qeth_notify_list_struct *) kmalloc(sizeof(struct qeth_notify_list_struct),GFP_KERNEL); if (!n_entry) return -ENOMEM; n_entry->task = p; n_entry->signum = signum; spin_lock(&qeth_notify_lock); list_add(&n_entry->list,&qeth_notify_list); spin_unlock(&qeth_notify_lock); return 0; } /** * free channel command buffers */ static void qeth_clean_channel(struct qeth_channel *channel) { int cnt; QETH_DBF_TEXT(setup, 2, "freech"); for (cnt = 0; cnt < QETH_CMD_BUFFER_NO; cnt++) kfree(channel->iob[cnt].data); } /** * free card */ static void qeth_free_card(struct qeth_card *card) { QETH_DBF_TEXT(setup, 2, "freecrd"); QETH_DBF_HEX(setup, 2, &card, sizeof(void *)); qeth_clean_channel(&card->read); qeth_clean_channel(&card->write); if (card->dev) free_netdev(card->dev); qeth_clear_ip_list(card, 0, 0); qeth_clear_ipato_list(card); kfree(card->ip_tbd_list); qeth_free_qdio_buffers(card); kfree(card); } /** * alloc memory for command buffer per channel */ static int qeth_setup_channel(struct qeth_channel *channel) { int cnt; QETH_DBF_TEXT(setup, 2, "setupch"); for (cnt=0; cnt < QETH_CMD_BUFFER_NO; cnt++) { channel->iob[cnt].data = (char *) kmalloc(QETH_BUFSIZE, GFP_DMA|GFP_KERNEL); if (channel->iob[cnt].data == NULL) break; channel->iob[cnt].state = BUF_STATE_FREE; channel->iob[cnt].channel = channel; channel->iob[cnt].callback = qeth_send_control_data_cb; channel->iob[cnt].rc = 0; } if (cnt < QETH_CMD_BUFFER_NO) { while (cnt-- > 0) kfree(channel->iob[cnt].data); return -ENOMEM; } channel->buf_no = 0; channel->io_buf_no = 0; atomic_set(&channel->irq_pending, 0); spin_lock_init(&channel->iob_lock); init_waitqueue_head(&channel->wait_q); channel->irq_tasklet.data = (unsigned long) channel; channel->irq_tasklet.func = qeth_irq_tasklet; return 0; } /** * alloc memory for card structure */ static struct qeth_card * qeth_alloc_card(void) { struct qeth_card *card; QETH_DBF_TEXT(setup, 2, "alloccrd"); card = (struct qeth_card *) kmalloc(sizeof(struct qeth_card), GFP_DMA|GFP_KERNEL); if (!card) return NULL; QETH_DBF_HEX(setup, 2, &card, sizeof(void *)); memset(card, 0, sizeof(struct qeth_card)); if (qeth_setup_channel(&card->read)) { kfree(card); return NULL; } if (qeth_setup_channel(&card->write)) { qeth_clean_channel(&card->read); kfree(card); return NULL; } return card; } static long __qeth_check_irb_error(struct ccw_device *cdev, struct irb *irb) { if (!IS_ERR(irb)) return 0; switch (PTR_ERR(irb)) { case -EIO: PRINT_WARN("i/o-error on device %s\n", cdev->dev.bus_id); QETH_DBF_TEXT(trace, 2, "ckirberr"); QETH_DBF_TEXT_(trace, 2, " rc%d", -EIO); break; case -ETIMEDOUT: PRINT_WARN("timeout on device %s\n", cdev->dev.bus_id); QETH_DBF_TEXT(trace, 2, "ckirberr"); QETH_DBF_TEXT_(trace, 2, " rc%d", -ETIMEDOUT); break; default: PRINT_WARN("unknown error %ld on device %s\n", PTR_ERR(irb), cdev->dev.bus_id); QETH_DBF_TEXT(trace, 2, "ckirberr"); QETH_DBF_TEXT(trace, 2, " rc???"); } return PTR_ERR(irb); } static int qeth_get_problem(struct ccw_device *cdev, struct irb *irb) { int dstat,cstat; char *sense; sense = (char *) irb->ecw; cstat = irb->scsw.cstat; dstat = irb->scsw.dstat; if (cstat & (SCHN_STAT_CHN_CTRL_CHK | SCHN_STAT_INTF_CTRL_CHK | SCHN_STAT_CHN_DATA_CHK | SCHN_STAT_CHAIN_CHECK | SCHN_STAT_PROT_CHECK | SCHN_STAT_PROG_CHECK)) { QETH_DBF_TEXT(trace,2, "CGENCHK"); PRINT_WARN("check on device %s, dstat=x%x, cstat=x%x ", cdev->dev.bus_id, dstat, cstat); HEXDUMP16(WARN, "irb: ", irb); HEXDUMP16(WARN, "irb: ", ((char *) irb) + 32); return 1; } if (dstat & DEV_STAT_UNIT_CHECK) { if (sense[SENSE_RESETTING_EVENT_BYTE] & SENSE_RESETTING_EVENT_FLAG) { QETH_DBF_TEXT(trace,2,"REVIND"); return 1; } if (sense[SENSE_COMMAND_REJECT_BYTE] & SENSE_COMMAND_REJECT_FLAG) { QETH_DBF_TEXT(trace,2,"CMDREJi"); return 0; } if ((sense[2] == 0xaf) && (sense[3] == 0xfe)) { QETH_DBF_TEXT(trace,2,"AFFE"); return 1; } if ((!sense[0]) && (!sense[1]) && (!sense[2]) && (!sense[3])) { QETH_DBF_TEXT(trace,2,"ZEROSEN"); return 0; } QETH_DBF_TEXT(trace,2,"DGENCHK"); return 1; } return 0; } static int qeth_issue_next_read(struct qeth_card *); /** * interrupt handler */ static void qeth_irq(struct ccw_device *cdev, unsigned long intparm, struct irb *irb) { int rc; int cstat,dstat; struct qeth_cmd_buffer *buffer; struct qeth_channel *channel; struct qeth_card *card; QETH_DBF_TEXT(trace,5,"irq"); if (__qeth_check_irb_error(cdev, irb)) return; cstat = irb->scsw.cstat; dstat = irb->scsw.dstat; card = CARD_FROM_CDEV(cdev); if (!card) return; if (card->read.ccwdev == cdev){ channel = &card->read; QETH_DBF_TEXT(trace,5,"read"); } else if (card->write.ccwdev == cdev) { channel = &card->write; QETH_DBF_TEXT(trace,5,"write"); } else { channel = &card->data; QETH_DBF_TEXT(trace,5,"data"); } atomic_set(&channel->irq_pending, 0); if (irb->scsw.fctl & (SCSW_FCTL_CLEAR_FUNC)) channel->state = CH_STATE_STOPPED; if (irb->scsw.fctl & (SCSW_FCTL_HALT_FUNC)) channel->state = CH_STATE_HALTED; /*let's wake up immediately on data channel*/ if ((channel == &card->data) && (intparm != 0)) goto out; if (intparm == QETH_CLEAR_CHANNEL_PARM) { QETH_DBF_TEXT(trace, 6, "clrchpar"); /* we don't have to handle this further */ intparm = 0; } if (intparm == QETH_HALT_CHANNEL_PARM) { QETH_DBF_TEXT(trace, 6, "hltchpar"); /* we don't have to handle this further */ intparm = 0; } if ((dstat & DEV_STAT_UNIT_EXCEP) || (dstat & DEV_STAT_UNIT_CHECK) || (cstat)) { if (irb->esw.esw0.erw.cons) { /* TODO: we should make this s390dbf */ PRINT_WARN("sense data available on channel %s.\n", CHANNEL_ID(channel)); PRINT_WARN(" cstat 0x%X\n dstat 0x%X\n", cstat, dstat); HEXDUMP16(WARN,"irb: ",irb); HEXDUMP16(WARN,"sense data: ",irb->ecw); } rc = qeth_get_problem(cdev,irb); if (rc) { qeth_schedule_recovery(card); goto out; } } if (intparm) { buffer = (struct qeth_cmd_buffer *) __va((addr_t)intparm); buffer->state = BUF_STATE_PROCESSED; } if (channel == &card->data) return; if (channel == &card->read && channel->state == CH_STATE_UP) qeth_issue_next_read(card); tasklet_schedule(&channel->irq_tasklet); return; out: wake_up(&card->wait_q); } /** * tasklet function scheduled from irq handler */ static void qeth_irq_tasklet(unsigned long data) { struct qeth_card *card; struct qeth_channel *channel; struct qeth_cmd_buffer *iob; __u8 index; QETH_DBF_TEXT(trace,5,"irqtlet"); channel = (struct qeth_channel *) data; iob = channel->iob; index = channel->buf_no; card = CARD_FROM_CDEV(channel->ccwdev); while (iob[index].state == BUF_STATE_PROCESSED) { if (iob[index].callback !=NULL) { iob[index].callback(channel,iob + index); } index = (index + 1) % QETH_CMD_BUFFER_NO; } channel->buf_no = index; wake_up(&card->wait_q); } static int qeth_stop_card(struct qeth_card *, int); static int __qeth_set_offline(struct ccwgroup_device *cgdev, int recovery_mode) { struct qeth_card *card = (struct qeth_card *) cgdev->dev.driver_data; int rc = 0, rc2 = 0, rc3 = 0; enum qeth_card_states recover_flag; QETH_DBF_TEXT(setup, 3, "setoffl"); QETH_DBF_HEX(setup, 3, &card, sizeof(void *)); netif_carrier_off(card->dev); recover_flag = card->state; if (qeth_stop_card(card, recovery_mode) == -ERESTARTSYS){ PRINT_WARN("Stopping card %s interrupted by user!\n", CARD_BUS_ID(card)); return -ERESTARTSYS; } rc = ccw_device_set_offline(CARD_DDEV(card)); rc2 = ccw_device_set_offline(CARD_WDEV(card)); rc3 = ccw_device_set_offline(CARD_RDEV(card)); if (!rc) rc = (rc2) ? rc2 : rc3; if (rc) QETH_DBF_TEXT_(setup, 2, "1err%d", rc); if (recover_flag == CARD_STATE_UP) card->state = CARD_STATE_RECOVER; qeth_notify_processes(); return 0; } static int qeth_set_offline(struct ccwgroup_device *cgdev) { return __qeth_set_offline(cgdev, 0); } static int qeth_wait_for_threads(struct qeth_card *card, unsigned long threads); static void qeth_remove_device(struct ccwgroup_device *cgdev) { struct qeth_card *card = (struct qeth_card *) cgdev->dev.driver_data; unsigned long flags; QETH_DBF_TEXT(setup, 3, "rmdev"); QETH_DBF_HEX(setup, 3, &card, sizeof(void *)); if (!card) return; if (qeth_wait_for_threads(card, 0xffffffff)) return; if (cgdev->state == CCWGROUP_ONLINE){ card->use_hard_stop = 1; qeth_set_offline(cgdev); } /* remove form our internal list */ write_lock_irqsave(&qeth_card_list.rwlock, flags); list_del(&card->list); write_unlock_irqrestore(&qeth_card_list.rwlock, flags); if (card->dev) unregister_netdev(card->dev); qeth_remove_device_attributes(&cgdev->dev); qeth_free_card(card); cgdev->dev.driver_data = NULL; put_device(&cgdev->dev); } static int qeth_register_addr_entry(struct qeth_card *, struct qeth_ipaddr *); static int qeth_deregister_addr_entry(struct qeth_card *, struct qeth_ipaddr *); /** * Add/remove address to/from card's ip list, i.e. try to add or remove * reference to/from an IP address that is already registered on the card. * Returns: * 0 address was on card and its reference count has been adjusted, * but is still > 0, so nothing has to be done * also returns 0 if card was not on card and the todo was to delete * the address -> there is also nothing to be done * 1 address was not on card and the todo is to add it to the card's ip * list * -1 address was on card and its reference count has been decremented * to <= 0 by the todo -> address must be removed from card */ static int __qeth_ref_ip_on_card(struct qeth_card *card, struct qeth_ipaddr *todo, struct qeth_ipaddr **__addr) { struct qeth_ipaddr *addr; int found = 0; list_for_each_entry(addr, &card->ip_list, entry) { if (card->options.layer2) { if ((addr->type == todo->type) && (memcmp(&addr->mac, &todo->mac, OSA_ADDR_LEN) == 0)) { found = 1; break; } continue; } if ((addr->proto == QETH_PROT_IPV4) && (todo->proto == QETH_PROT_IPV4) && (addr->type == todo->type) && (addr->u.a4.addr == todo->u.a4.addr) && (addr->u.a4.mask == todo->u.a4.mask)) { found = 1; break; } if ((addr->proto == QETH_PROT_IPV6) && (todo->proto == QETH_PROT_IPV6) && (addr->type == todo->type) && (addr->u.a6.pfxlen == todo->u.a6.pfxlen) && (memcmp(&addr->u.a6.addr, &todo->u.a6.addr, sizeof(struct in6_addr)) == 0)) { found = 1; break; } } if (found) { addr->users += todo->users; if (addr->users <= 0){ *__addr = addr; return -1; } else { /* for VIPA and RXIP limit refcount to 1 */ if (addr->type != QETH_IP_TYPE_NORMAL) addr->users = 1; return 0; } } if (todo->users > 0) { /* for VIPA and RXIP limit refcount to 1 */ if (todo->type != QETH_IP_TYPE_NORMAL) todo->users = 1; return 1; } else return 0; } static inline int __qeth_address_exists_in_list(struct list_head *list, struct qeth_ipaddr *addr, int same_type) { struct qeth_ipaddr *tmp; list_for_each_entry(tmp, list, entry) { if ((tmp->proto == QETH_PROT_IPV4) && (addr->proto == QETH_PROT_IPV4) && ((same_type && (tmp->type == addr->type)) || (!same_type && (tmp->type != addr->type)) ) && (tmp->u.a4.addr == addr->u.a4.addr) ){ return 1; } if ((tmp->proto == QETH_PROT_IPV6) && (addr->proto == QETH_PROT_IPV6) && ((same_type && (tmp->type == addr->type)) || (!same_type && (tmp->type != addr->type)) ) && (memcmp(&tmp->u.a6.addr, &addr->u.a6.addr, sizeof(struct in6_addr)) == 0) ) { return 1; } } return 0; } /* * Add IP to be added to todo list. If there is already an "add todo" * in this list we just incremenent the reference count. * Returns 0 if we just incremented reference count. */ static int __qeth_insert_ip_todo(struct qeth_card *card, struct qeth_ipaddr *addr, int add) { struct qeth_ipaddr *tmp, *t; int found = 0; list_for_each_entry_safe(tmp, t, card->ip_tbd_list, entry) { if ((addr->type == QETH_IP_TYPE_DEL_ALL_MC) && (tmp->type == QETH_IP_TYPE_DEL_ALL_MC)) return 0; if (card->options.layer2) { if ((tmp->type == addr->type) && (tmp->is_multicast == addr->is_multicast) && (memcmp(&tmp->mac, &addr->mac, OSA_ADDR_LEN) == 0)) { found = 1; break; } continue; } if ((tmp->proto == QETH_PROT_IPV4) && (addr->proto == QETH_PROT_IPV4) && (tmp->type == addr->type) && (tmp->is_multicast == addr->is_multicast) && (tmp->u.a4.addr == addr->u.a4.addr) && (tmp->u.a4.mask == addr->u.a4.mask)) { found = 1; break; } if ((tmp->proto == QETH_PROT_IPV6) && (addr->proto == QETH_PROT_IPV6) && (tmp->type == addr->type) && (tmp->is_multicast == addr->is_multicast) && (tmp->u.a6.pfxlen == addr->u.a6.pfxlen) && (memcmp(&tmp->u.a6.addr, &addr->u.a6.addr, sizeof(struct in6_addr)) == 0)) { found = 1; break; } } if (found){ if (addr->users != 0) tmp->users += addr->users; else tmp->users += add? 1:-1; if (tmp->users == 0) { list_del(&tmp->entry); kfree(tmp); } return 0; } else { if (addr->type == QETH_IP_TYPE_DEL_ALL_MC) list_add(&addr->entry, card->ip_tbd_list); else { if (addr->users == 0) addr->users += add? 1:-1; if (add && (addr->type == QETH_IP_TYPE_NORMAL) && qeth_is_addr_covered_by_ipato(card, addr)){ QETH_DBF_TEXT(trace, 2, "tkovaddr"); addr->set_flags |= QETH_IPA_SETIP_TAKEOVER_FLAG; } list_add_tail(&addr->entry, card->ip_tbd_list); } return 1; } } /** * Remove IP address from list */ static int qeth_delete_ip(struct qeth_card *card, struct qeth_ipaddr *addr) { unsigned long flags; int rc = 0; QETH_DBF_TEXT(trace, 4, "delip"); if (card->options.layer2) QETH_DBF_HEX(trace, 4, &addr->mac, 6); else if (addr->proto == QETH_PROT_IPV4) QETH_DBF_HEX(trace, 4, &addr->u.a4.addr, 4); else { QETH_DBF_HEX(trace, 4, &addr->u.a6.addr, 8); QETH_DBF_HEX(trace, 4, ((char *)&addr->u.a6.addr) + 8, 8); } spin_lock_irqsave(&card->ip_lock, flags); rc = __qeth_insert_ip_todo(card, addr, 0); spin_unlock_irqrestore(&card->ip_lock, flags); return rc; } static int qeth_add_ip(struct qeth_card *card, struct qeth_ipaddr *addr) { unsigned long flags; int rc = 0; QETH_DBF_TEXT(trace, 4, "addip"); if (card->options.layer2) QETH_DBF_HEX(trace, 4, &addr->mac, 6); else if (addr->proto == QETH_PROT_IPV4) QETH_DBF_HEX(trace, 4, &addr->u.a4.addr, 4); else { QETH_DBF_HEX(trace, 4, &addr->u.a6.addr, 8); QETH_DBF_HEX(trace, 4, ((char *)&addr->u.a6.addr) + 8, 8); } spin_lock_irqsave(&card->ip_lock, flags); rc = __qeth_insert_ip_todo(card, addr, 1); spin_unlock_irqrestore(&card->ip_lock, flags); return rc; } static inline void __qeth_delete_all_mc(struct qeth_card *card, unsigned long *flags) { struct qeth_ipaddr *addr, *tmp; int rc; again: list_for_each_entry_safe(addr, tmp, &card->ip_list, entry) { if (addr->is_multicast) { spin_unlock_irqrestore(&card->ip_lock, *flags); rc = qeth_deregister_addr_entry(card, addr); spin_lock_irqsave(&card->ip_lock, *flags); if (!rc) { list_del(&addr->entry); kfree(addr); goto again; } } } } static void qeth_set_ip_addr_list(struct qeth_card *card) { struct list_head *tbd_list; struct qeth_ipaddr *todo, *addr; unsigned long flags; int rc; QETH_DBF_TEXT(trace, 2, "sdiplist"); QETH_DBF_HEX(trace, 2, &card, sizeof(void *)); spin_lock_irqsave(&card->ip_lock, flags); tbd_list = card->ip_tbd_list; card->ip_tbd_list = kmalloc(sizeof(struct list_head), GFP_ATOMIC); if (!card->ip_tbd_list) { QETH_DBF_TEXT(trace, 0, "silnomem"); card->ip_tbd_list = tbd_list; spin_unlock_irqrestore(&card->ip_lock, flags); return; } else INIT_LIST_HEAD(card->ip_tbd_list); while (!list_empty(tbd_list)){ todo = list_entry(tbd_list->next, struct qeth_ipaddr, entry); list_del(&todo->entry); if (todo->type == QETH_IP_TYPE_DEL_ALL_MC){ __qeth_delete_all_mc(card, &flags); kfree(todo); continue; } rc = __qeth_ref_ip_on_card(card, todo, &addr); if (rc == 0) { /* nothing to be done; only adjusted refcount */ kfree(todo); } else if (rc == 1) { /* new entry to be added to on-card list */ spin_unlock_irqrestore(&card->ip_lock, flags); rc = qeth_register_addr_entry(card, todo); spin_lock_irqsave(&card->ip_lock, flags); if (!rc) list_add_tail(&todo->entry, &card->ip_list); else kfree(todo); } else if (rc == -1) { /* on-card entry to be removed */ list_del_init(&addr->entry); spin_unlock_irqrestore(&card->ip_lock, flags); rc = qeth_deregister_addr_entry(card, addr); spin_lock_irqsave(&card->ip_lock, flags); if (!rc) kfree(addr); else list_add_tail(&addr->entry, &card->ip_list); kfree(todo); } } spin_unlock_irqrestore(&card->ip_lock, flags); kfree(tbd_list); } static void qeth_delete_mc_addresses(struct qeth_card *); static void qeth_add_multicast_ipv4(struct qeth_card *); static void qeth_layer2_add_multicast(struct qeth_card *); #ifdef CONFIG_QETH_IPV6 static void qeth_add_multicast_ipv6(struct qeth_card *); #endif static inline int qeth_set_thread_start_bit(struct qeth_card *card, unsigned long thread) { unsigned long flags; spin_lock_irqsave(&card->thread_mask_lock, flags); if ( !(card->thread_allowed_mask & thread) || (card->thread_start_mask & thread) ) { spin_unlock_irqrestore(&card->thread_mask_lock, flags); return -EPERM; } card->thread_start_mask |= thread; spin_unlock_irqrestore(&card->thread_mask_lock, flags); return 0; } static void qeth_clear_thread_start_bit(struct qeth_card *card, unsigned long thread) { unsigned long flags; spin_lock_irqsave(&card->thread_mask_lock, flags); card->thread_start_mask &= ~thread; spin_unlock_irqrestore(&card->thread_mask_lock, flags); wake_up(&card->wait_q); } static void qeth_clear_thread_running_bit(struct qeth_card *card, unsigned long thread) { unsigned long flags; spin_lock_irqsave(&card->thread_mask_lock, flags); card->thread_running_mask &= ~thread; spin_unlock_irqrestore(&card->thread_mask_lock, flags); wake_up(&card->wait_q); } static inline int __qeth_do_run_thread(struct qeth_card *card, unsigned long thread) { unsigned long flags; int rc = 0; spin_lock_irqsave(&card->thread_mask_lock, flags); if (card->thread_start_mask & thread){ if ((card->thread_allowed_mask & thread) && !(card->thread_running_mask & thread)){ rc = 1; card->thread_start_mask &= ~thread; card->thread_running_mask |= thread; } else rc = -EPERM; } spin_unlock_irqrestore(&card->thread_mask_lock, flags); return rc; } static int qeth_do_run_thread(struct qeth_card *card, unsigned long thread) { int rc = 0; wait_event(card->wait_q, (rc = __qeth_do_run_thread(card, thread)) >= 0); return rc; } static int qeth_register_ip_addresses(void *ptr) { struct qeth_card *card; card = (struct qeth_card *) ptr; daemonize("qeth_reg_ip"); QETH_DBF_TEXT(trace,4,"regipth1"); if (!qeth_do_run_thread(card, QETH_SET_IP_THREAD)) return 0; QETH_DBF_TEXT(trace,4,"regipth2"); qeth_set_ip_addr_list(card); qeth_clear_thread_running_bit(card, QETH_SET_IP_THREAD); return 0; } /* * Drive the SET_PROMISC_MODE thread */ static int qeth_set_promisc_mode(void *ptr) { struct qeth_card *card = (struct qeth_card *) ptr; daemonize("qeth_setprm"); QETH_DBF_TEXT(trace,4,"setprm1"); if (!qeth_do_run_thread(card, QETH_SET_PROMISC_MODE_THREAD)) return 0; QETH_DBF_TEXT(trace,4,"setprm2"); qeth_setadp_promisc_mode(card); qeth_clear_thread_running_bit(card, QETH_SET_PROMISC_MODE_THREAD); return 0; } static int qeth_recover(void *ptr) { struct qeth_card *card; int rc = 0; card = (struct qeth_card *) ptr; daemonize("qeth_recover"); QETH_DBF_TEXT(trace,2,"recover1"); QETH_DBF_HEX(trace, 2, &card, sizeof(void *)); if (!qeth_do_run_thread(card, QETH_RECOVER_THREAD)) return 0; QETH_DBF_TEXT(trace,2,"recover2"); PRINT_WARN("Recovery of device %s started ...\n", CARD_BUS_ID(card)); card->use_hard_stop = 1; __qeth_set_offline(card->gdev,1); rc = __qeth_set_online(card->gdev,1); if (!rc) PRINT_INFO("Device %s successfully recovered!\n", CARD_BUS_ID(card)); else PRINT_INFO("Device %s could not be recovered!\n", CARD_BUS_ID(card)); /* don't run another scheduled recovery */ qeth_clear_thread_start_bit(card, QETH_RECOVER_THREAD); qeth_clear_thread_running_bit(card, QETH_RECOVER_THREAD); return 0; } void qeth_schedule_recovery(struct qeth_card *card) { QETH_DBF_TEXT(trace,2,"startrec"); if (qeth_set_thread_start_bit(card, QETH_RECOVER_THREAD) == 0) schedule_work(&card->kernel_thread_starter); } static int qeth_do_start_thread(struct qeth_card *card, unsigned long thread) { unsigned long flags; int rc = 0; spin_lock_irqsave(&card->thread_mask_lock, flags); QETH_DBF_TEXT_(trace, 4, " %02x%02x%02x", (u8) card->thread_start_mask, (u8) card->thread_allowed_mask, (u8) card->thread_running_mask); rc = (card->thread_start_mask & thread); spin_unlock_irqrestore(&card->thread_mask_lock, flags); return rc; } static void qeth_start_kernel_thread(struct qeth_card *card) { QETH_DBF_TEXT(trace , 2, "strthrd"); if (card->read.state != CH_STATE_UP && card->write.state != CH_STATE_UP) return; if (qeth_do_start_thread(card, QETH_SET_IP_THREAD)) kernel_thread(qeth_register_ip_addresses, (void *)card,SIGCHLD); if (qeth_do_start_thread(card, QETH_SET_PROMISC_MODE_THREAD)) kernel_thread(qeth_set_promisc_mode, (void *)card, SIGCHLD); if (qeth_do_start_thread(card, QETH_RECOVER_THREAD)) kernel_thread(qeth_recover, (void *) card, SIGCHLD); } static void qeth_set_intial_options(struct qeth_card *card) { card->options.route4.type = NO_ROUTER; #ifdef CONFIG_QETH_IPV6 card->options.route6.type = NO_ROUTER; #endif /* QETH_IPV6 */ card->options.checksum_type = QETH_CHECKSUM_DEFAULT; card->options.broadcast_mode = QETH_TR_BROADCAST_ALLRINGS; card->options.macaddr_mode = QETH_TR_MACADDR_NONCANONICAL; card->options.fake_broadcast = 0; card->options.add_hhlen = DEFAULT_ADD_HHLEN; card->options.fake_ll = 0; if (card->info.type == QETH_CARD_TYPE_OSN) card->options.layer2 = 1; else card->options.layer2 = 0; } /** * initialize channels ,card and all state machines */ static int qeth_setup_card(struct qeth_card *card) { QETH_DBF_TEXT(setup, 2, "setupcrd"); QETH_DBF_HEX(setup, 2, &card, sizeof(void *)); card->read.state = CH_STATE_DOWN; card->write.state = CH_STATE_DOWN; card->data.state = CH_STATE_DOWN; card->state = CARD_STATE_DOWN; card->lan_online = 0; card->use_hard_stop = 0; card->dev = NULL; #ifdef CONFIG_QETH_VLAN spin_lock_init(&card->vlanlock); card->vlangrp = NULL; #endif spin_lock_init(&card->lock); spin_lock_init(&card->ip_lock); spin_lock_init(&card->thread_mask_lock); card->thread_start_mask = 0; card->thread_allowed_mask = 0; card->thread_running_mask = 0; INIT_WORK(&card->kernel_thread_starter, (void *)qeth_start_kernel_thread,card); INIT_LIST_HEAD(&card->ip_list); card->ip_tbd_list = kmalloc(sizeof(struct list_head), GFP_KERNEL); if (!card->ip_tbd_list) { QETH_DBF_TEXT(setup, 0, "iptbdnom"); return -ENOMEM; } INIT_LIST_HEAD(card->ip_tbd_list); INIT_LIST_HEAD(&card->cmd_waiter_list); init_waitqueue_head(&card->wait_q); /* intial options */ qeth_set_intial_options(card); /* IP address takeover */ INIT_LIST_HEAD(&card->ipato.entries); card->ipato.enabled = 0; card->ipato.invert4 = 0; card->ipato.invert6 = 0; /* init QDIO stuff */ qeth_init_qdio_info(card); return 0; } static int is_1920_device (struct qeth_card *card) { int single_queue = 0; struct ccw_device *ccwdev; struct channelPath_dsc { u8 flags; u8 lsn; u8 desc; u8 chpid; u8 swla; u8 zeroes; u8 chla; u8 chpp; } *chp_dsc; QETH_DBF_TEXT(setup, 2, "chk_1920"); ccwdev = card->data.ccwdev; chp_dsc = (struct channelPath_dsc *)ccw_device_get_chp_desc(ccwdev, 0); if (chp_dsc != NULL) { /* CHPP field bit 6 == 1 -> single queue */ single_queue = ((chp_dsc->chpp & 0x02) == 0x02); kfree(chp_dsc); } QETH_DBF_TEXT_(setup, 2, "rc:%x", single_queue); return single_queue; } static int qeth_determine_card_type(struct qeth_card *card) { int i = 0; QETH_DBF_TEXT(setup, 2, "detcdtyp"); card->qdio.do_prio_queueing = QETH_PRIOQ_DEFAULT; card->qdio.default_out_queue = QETH_DEFAULT_QUEUE; while (known_devices[i][4]) { if ((CARD_RDEV(card)->id.dev_type == known_devices[i][2]) && (CARD_RDEV(card)->id.dev_model == known_devices[i][3])) { card->info.type = known_devices[i][4]; card->qdio.no_out_queues = known_devices[i][8]; card->info.is_multicast_different = known_devices[i][9]; if (is_1920_device(card)) { PRINT_INFO("Priority Queueing not able " "due to hardware limitations!\n"); card->qdio.no_out_queues = 1; card->qdio.default_out_queue = 0; } return 0; } i++; } card->info.type = QETH_CARD_TYPE_UNKNOWN; PRINT_ERR("unknown card type on device %s\n", CARD_BUS_ID(card)); return -ENOENT; } static int qeth_probe_device(struct ccwgroup_device *gdev) { struct qeth_card *card; struct device *dev; unsigned long flags; int rc; QETH_DBF_TEXT(setup, 2, "probedev"); dev = &gdev->dev; if (!get_device(dev)) return -ENODEV; QETH_DBF_TEXT_(setup, 2, "%s", gdev->dev.bus_id); card = qeth_alloc_card(); if (!card) { put_device(dev); QETH_DBF_TEXT_(setup, 2, "1err%d", -ENOMEM); return -ENOMEM; } card->read.ccwdev = gdev->cdev[0]; card->write.ccwdev = gdev->cdev[1]; card->data.ccwdev = gdev->cdev[2]; gdev->dev.driver_data = card; card->gdev = gdev; gdev->cdev[0]->handler = qeth_irq; gdev->cdev[1]->handler = qeth_irq; gdev->cdev[2]->handler = qeth_irq; if ((rc = qeth_determine_card_type(card))){ PRINT_WARN("%s: not a valid card type\n", __func__); QETH_DBF_TEXT_(setup, 2, "3err%d", rc); put_device(dev); qeth_free_card(card); return rc; } if ((rc = qeth_setup_card(card))){ QETH_DBF_TEXT_(setup, 2, "2err%d", rc); put_device(dev); qeth_free_card(card); return rc; } rc = qeth_create_device_attributes(dev); if (rc) { put_device(dev); qeth_free_card(card); return rc; } /* insert into our internal list */ write_lock_irqsave(&qeth_card_list.rwlock, flags); list_add_tail(&card->list, &qeth_card_list.list); write_unlock_irqrestore(&qeth_card_list.rwlock, flags); return rc; } static int qeth_get_unitaddr(struct qeth_card *card) { int length; char *prcd; int rc; QETH_DBF_TEXT(setup, 2, "getunit"); rc = read_conf_data(CARD_DDEV(card), (void **) &prcd, &length); if (rc) { PRINT_ERR("read_conf_data for device %s returned %i\n", CARD_DDEV_ID(card), rc); return rc; } card->info.chpid = prcd[30]; card->info.unit_addr2 = prcd[31]; card->info.cula = prcd[63]; card->info.guestlan = ((prcd[0x10] == _ascebc['V']) && (prcd[0x11] == _ascebc['M'])); return 0; } static void qeth_init_tokens(struct qeth_card *card) { card->token.issuer_rm_w = 0x00010103UL; card->token.cm_filter_w = 0x00010108UL; card->token.cm_connection_w = 0x0001010aUL; card->token.ulp_filter_w = 0x0001010bUL; card->token.ulp_connection_w = 0x0001010dUL; } static inline __u16 raw_devno_from_bus_id(char *id) { id += (strlen(id) - 4); return (__u16) simple_strtoul(id, &id, 16); } /** * setup channel */ static void qeth_setup_ccw(struct qeth_channel *channel,unsigned char *iob, __u32 len) { struct qeth_card *card; QETH_DBF_TEXT(trace, 4, "setupccw"); card = CARD_FROM_CDEV(channel->ccwdev); if (channel == &card->read) memcpy(&channel->ccw, READ_CCW, sizeof(struct ccw1)); else memcpy(&channel->ccw, WRITE_CCW, sizeof(struct ccw1)); channel->ccw.count = len; channel->ccw.cda = (__u32) __pa(iob); } /** * get free buffer for ccws (IDX activation, lancmds,ipassists...) */ static struct qeth_cmd_buffer * __qeth_get_buffer(struct qeth_channel *channel) { __u8 index; QETH_DBF_TEXT(trace, 6, "getbuff"); index = channel->io_buf_no; do { if (channel->iob[index].state == BUF_STATE_FREE) { channel->iob[index].state = BUF_STATE_LOCKED; channel->io_buf_no = (channel->io_buf_no + 1) % QETH_CMD_BUFFER_NO; memset(channel->iob[index].data, 0, QETH_BUFSIZE); return channel->iob + index; } index = (index + 1) % QETH_CMD_BUFFER_NO; } while(index != channel->io_buf_no); return NULL; } /** * release command buffer */ static void qeth_release_buffer(struct qeth_channel *channel, struct qeth_cmd_buffer *iob) { unsigned long flags; QETH_DBF_TEXT(trace, 6, "relbuff"); spin_lock_irqsave(&channel->iob_lock, flags); memset(iob->data, 0, QETH_BUFSIZE); iob->state = BUF_STATE_FREE; iob->callback = qeth_send_control_data_cb; iob->rc = 0; spin_unlock_irqrestore(&channel->iob_lock, flags); } static struct qeth_cmd_buffer * qeth_get_buffer(struct qeth_channel *channel) { struct qeth_cmd_buffer *buffer = NULL; unsigned long flags; spin_lock_irqsave(&channel->iob_lock, flags); buffer = __qeth_get_buffer(channel); spin_unlock_irqrestore(&channel->iob_lock, flags); return buffer; } static struct qeth_cmd_buffer * qeth_wait_for_buffer(struct qeth_channel *channel) { struct qeth_cmd_buffer *buffer; wait_event(channel->wait_q, ((buffer = qeth_get_buffer(channel)) != NULL)); return buffer; } static void qeth_clear_cmd_buffers(struct qeth_channel *channel) { int cnt = 0; for (cnt=0; cnt < QETH_CMD_BUFFER_NO; cnt++) qeth_release_buffer(channel,&channel->iob[cnt]); channel->buf_no = 0; channel->io_buf_no = 0; } /** * start IDX for read and write channel */ static int qeth_idx_activate_get_answer(struct qeth_channel *channel, void (*idx_reply_cb)(struct qeth_channel *, struct qeth_cmd_buffer *)) { struct qeth_cmd_buffer *iob; unsigned long flags; int rc; struct qeth_card *card; QETH_DBF_TEXT(setup, 2, "idxanswr"); card = CARD_FROM_CDEV(channel->ccwdev); iob = qeth_get_buffer(channel); iob->callback = idx_reply_cb; memcpy(&channel->ccw, READ_CCW, sizeof(struct ccw1)); channel->ccw.count = QETH_BUFSIZE; channel->ccw.cda = (__u32) __pa(iob->data); wait_event(card->wait_q, atomic_compare_and_swap(0,1,&channel->irq_pending) == 0); QETH_DBF_TEXT(setup, 6, "noirqpnd"); spin_lock_irqsave(get_ccwdev_lock(channel->ccwdev), flags); rc = ccw_device_start(channel->ccwdev, &channel->ccw,(addr_t) iob, 0, 0); spin_unlock_irqrestore(get_ccwdev_lock(channel->ccwdev), flags); if (rc) { PRINT_ERR("qeth: Error2 in activating channel rc=%d\n",rc); QETH_DBF_TEXT_(setup, 2, "2err%d", rc); atomic_set(&channel->irq_pending, 0); wake_up(&card->wait_q); return rc; } rc = wait_event_interruptible_timeout(card->wait_q, channel->state == CH_STATE_UP, QETH_TIMEOUT); if (rc == -ERESTARTSYS) return rc; if (channel->state != CH_STATE_UP){ rc = -ETIME; QETH_DBF_TEXT_(setup, 2, "3err%d", rc); qeth_clear_cmd_buffers(channel); } else rc = 0; return rc; } static int qeth_idx_activate_channel(struct qeth_channel *channel, void (*idx_reply_cb)(struct qeth_channel *, struct qeth_cmd_buffer *)) { struct qeth_card *card; struct qeth_cmd_buffer *iob; unsigned long flags; __u16 temp; int rc; card = CARD_FROM_CDEV(channel->ccwdev); QETH_DBF_TEXT(setup, 2, "idxactch"); iob = qeth_get_buffer(channel); iob->callback = idx_reply_cb; memcpy(&channel->ccw, WRITE_CCW, sizeof(struct ccw1)); channel->ccw.count = IDX_ACTIVATE_SIZE; channel->ccw.cda = (__u32) __pa(iob->data); if (channel == &card->write) { memcpy(iob->data, IDX_ACTIVATE_WRITE, IDX_ACTIVATE_SIZE); memcpy(QETH_TRANSPORT_HEADER_SEQ_NO(iob->data), &card->seqno.trans_hdr, QETH_SEQ_NO_LENGTH); card->seqno.trans_hdr++; } else { memcpy(iob->data, IDX_ACTIVATE_READ, IDX_ACTIVATE_SIZE); memcpy(QETH_TRANSPORT_HEADER_SEQ_NO(iob->data), &card->seqno.trans_hdr, QETH_SEQ_NO_LENGTH); } memcpy(QETH_IDX_ACT_ISSUER_RM_TOKEN(iob->data), &card->token.issuer_rm_w,QETH_MPC_TOKEN_LENGTH); memcpy(QETH_IDX_ACT_FUNC_LEVEL(iob->data), &card->info.func_level,sizeof(__u16)); temp = raw_devno_from_bus_id(CARD_DDEV_ID(card)); memcpy(QETH_IDX_ACT_QDIO_DEV_CUA(iob->data), &temp, 2); temp = (card->info.cula << 8) + card->info.unit_addr2; memcpy(QETH_IDX_ACT_QDIO_DEV_REALADDR(iob->data), &temp, 2); wait_event(card->wait_q, atomic_compare_and_swap(0,1,&channel->irq_pending) == 0); QETH_DBF_TEXT(setup, 6, "noirqpnd"); spin_lock_irqsave(get_ccwdev_lock(channel->ccwdev), flags); rc = ccw_device_start(channel->ccwdev, &channel->ccw,(addr_t) iob, 0, 0); spin_unlock_irqrestore(get_ccwdev_lock(channel->ccwdev), flags); if (rc) { PRINT_ERR("qeth: Error1 in activating channel. rc=%d\n",rc); QETH_DBF_TEXT_(setup, 2, "1err%d", rc); atomic_set(&channel->irq_pending, 0); wake_up(&card->wait_q); return rc; } rc = wait_event_interruptible_timeout(card->wait_q, channel->state == CH_STATE_ACTIVATING, QETH_TIMEOUT); if (rc == -ERESTARTSYS) return rc; if (channel->state != CH_STATE_ACTIVATING) { PRINT_WARN("qeth: IDX activate timed out!\n"); QETH_DBF_TEXT_(setup, 2, "2err%d", -ETIME); qeth_clear_cmd_buffers(channel); return -ETIME; } return qeth_idx_activate_get_answer(channel,idx_reply_cb); } static int qeth_peer_func_level(int level) { if ((level & 0xff) == 8) return (level & 0xff) + 0x400; if (((level >> 8) & 3) == 1) return (level & 0xff) + 0x200; return level; } static void qeth_idx_write_cb(struct qeth_channel *channel, struct qeth_cmd_buffer *iob) { struct qeth_card *card; __u16 temp; QETH_DBF_TEXT(setup ,2, "idxwrcb"); if (channel->state == CH_STATE_DOWN) { channel->state = CH_STATE_ACTIVATING; goto out; } card = CARD_FROM_CDEV(channel->ccwdev); if (!(QETH_IS_IDX_ACT_POS_REPLY(iob->data))) { PRINT_ERR("IDX_ACTIVATE on write channel device %s: negative " "reply\n", CARD_WDEV_ID(card)); goto out; } memcpy(&temp, QETH_IDX_ACT_FUNC_LEVEL(iob->data), 2); if ((temp & ~0x0100) != qeth_peer_func_level(card->info.func_level)) { PRINT_WARN("IDX_ACTIVATE on write channel device %s: " "function level mismatch " "(sent: 0x%x, received: 0x%x)\n", CARD_WDEV_ID(card), card->info.func_level, temp); goto out; } channel->state = CH_STATE_UP; out: qeth_release_buffer(channel, iob); } static int qeth_check_idx_response(unsigned char *buffer) { if (!buffer) return 0; QETH_DBF_HEX(control, 2, buffer, QETH_DBF_CONTROL_LEN); if ((buffer[2] & 0xc0) == 0xc0) { PRINT_WARN("received an IDX TERMINATE " "with cause code 0x%02x%s\n", buffer[4], ((buffer[4] == 0x22) ? " -- try another portname" : "")); QETH_DBF_TEXT(trace, 2, "ckidxres"); QETH_DBF_TEXT(trace, 2, " idxterm"); QETH_DBF_TEXT_(trace, 2, " rc%d", -EIO); return -EIO; } return 0; } static void qeth_idx_read_cb(struct qeth_channel *channel, struct qeth_cmd_buffer *iob) { struct qeth_card *card; __u16 temp; QETH_DBF_TEXT(setup , 2, "idxrdcb"); if (channel->state == CH_STATE_DOWN) { channel->state = CH_STATE_ACTIVATING; goto out; } card = CARD_FROM_CDEV(channel->ccwdev); if (qeth_check_idx_response(iob->data)) { goto out; } if (!(QETH_IS_IDX_ACT_POS_REPLY(iob->data))) { PRINT_ERR("IDX_ACTIVATE on read channel device %s: negative " "reply\n", CARD_RDEV_ID(card)); goto out; } /** * temporary fix for microcode bug * to revert it,replace OR by AND */ if ( (!QETH_IDX_NO_PORTNAME_REQUIRED(iob->data)) || (card->info.type == QETH_CARD_TYPE_OSAE) ) card->info.portname_required = 1; memcpy(&temp, QETH_IDX_ACT_FUNC_LEVEL(iob->data), 2); if (temp != qeth_peer_func_level(card->info.func_level)) { PRINT_WARN("IDX_ACTIVATE on read channel device %s: function " "level mismatch (sent: 0x%x, received: 0x%x)\n", CARD_RDEV_ID(card), card->info.func_level, temp); goto out; } memcpy(&card->token.issuer_rm_r, QETH_IDX_ACT_ISSUER_RM_TOKEN(iob->data), QETH_MPC_TOKEN_LENGTH); memcpy(&card->info.mcl_level[0], QETH_IDX_REPLY_LEVEL(iob->data), QETH_MCL_LENGTH); channel->state = CH_STATE_UP; out: qeth_release_buffer(channel,iob); } static int qeth_issue_next_read(struct qeth_card *card) { int rc; struct qeth_cmd_buffer *iob; QETH_DBF_TEXT(trace,5,"issnxrd"); if (card->read.state != CH_STATE_UP) return -EIO; iob = qeth_get_buffer(&card->read); if (!iob) { PRINT_WARN("issue_next_read failed: no iob available!\n"); return -ENOMEM; } qeth_setup_ccw(&card->read, iob->data, QETH_BUFSIZE); wait_event(card->wait_q, atomic_compare_and_swap(0,1,&card->read.irq_pending) == 0); QETH_DBF_TEXT(trace, 6, "noirqpnd"); rc = ccw_device_start(card->read.ccwdev, &card->read.ccw, (addr_t) iob, 0, 0); if (rc) { PRINT_ERR("Error in starting next read ccw! rc=%i\n", rc); atomic_set(&card->read.irq_pending, 0); qeth_schedule_recovery(card); wake_up(&card->wait_q); } return rc; } static struct qeth_reply * qeth_alloc_reply(struct qeth_card *card) { struct qeth_reply *reply; reply = kmalloc(sizeof(struct qeth_reply), GFP_ATOMIC); if (reply){ memset(reply, 0, sizeof(struct qeth_reply)); atomic_set(&reply->refcnt, 1); reply->card = card; }; return reply; } static void qeth_get_reply(struct qeth_reply *reply) { WARN_ON(atomic_read(&reply->refcnt) <= 0); atomic_inc(&reply->refcnt); } static void qeth_put_reply(struct qeth_reply *reply) { WARN_ON(atomic_read(&reply->refcnt) <= 0); if (atomic_dec_and_test(&reply->refcnt)) kfree(reply); } static void qeth_cmd_timeout(unsigned long data) { struct qeth_reply *reply, *list_reply, *r; unsigned long flags; reply = (struct qeth_reply *) data; spin_lock_irqsave(&reply->card->lock, flags); list_for_each_entry_safe(list_reply, r, &reply->card->cmd_waiter_list, list) { if (reply == list_reply){ qeth_get_reply(reply); list_del_init(&reply->list); spin_unlock_irqrestore(&reply->card->lock, flags); reply->rc = -ETIME; reply->received = 1; wake_up(&reply->wait_q); qeth_put_reply(reply); return; } } spin_unlock_irqrestore(&reply->card->lock, flags); } static struct qeth_ipa_cmd * qeth_check_ipa_data(struct qeth_card *card, struct qeth_cmd_buffer *iob) { struct qeth_ipa_cmd *cmd = NULL; QETH_DBF_TEXT(trace,5,"chkipad"); if (IS_IPA(iob->data)){ cmd = (struct qeth_ipa_cmd *) PDU_ENCAPSULATION(iob->data); if (IS_IPA_REPLY(cmd)) return cmd; else { switch (cmd->hdr.command) { case IPA_CMD_STOPLAN: PRINT_WARN("Link failure on %s (CHPID 0x%X) - " "there is a network problem or " "someone pulled the cable or " "disabled the port.\n", QETH_CARD_IFNAME(card), card->info.chpid); card->lan_online = 0; netif_carrier_off(card->dev); return NULL; case IPA_CMD_STARTLAN: PRINT_INFO("Link reestablished on %s " "(CHPID 0x%X). Scheduling " "IP address reset.\n", QETH_CARD_IFNAME(card), card->info.chpid); qeth_schedule_recovery(card); return NULL; case IPA_CMD_MODCCID: return cmd; case IPA_CMD_REGISTER_LOCAL_ADDR: QETH_DBF_TEXT(trace,3, "irla"); break; case IPA_CMD_UNREGISTER_LOCAL_ADDR: QETH_DBF_TEXT(trace,3, "urla"); break; default: PRINT_WARN("Received data is IPA " "but not a reply!\n"); break; } } } return cmd; } /** * wake all waiting ipa commands */ static void qeth_clear_ipacmd_list(struct qeth_card *card) { struct qeth_reply *reply, *r; unsigned long flags; QETH_DBF_TEXT(trace, 4, "clipalst"); spin_lock_irqsave(&card->lock, flags); list_for_each_entry_safe(reply, r, &card->cmd_waiter_list, list) { qeth_get_reply(reply); reply->rc = -EIO; reply->received = 1; list_del_init(&reply->list); wake_up(&reply->wait_q); qeth_put_reply(reply); } spin_unlock_irqrestore(&card->lock, flags); } static void qeth_send_control_data_cb(struct qeth_channel *channel, struct qeth_cmd_buffer *iob) { struct qeth_card *card; struct qeth_reply *reply, *r; struct qeth_ipa_cmd *cmd; unsigned long flags; int keep_reply; QETH_DBF_TEXT(trace,4,"sndctlcb"); card = CARD_FROM_CDEV(channel->ccwdev); if (qeth_check_idx_response(iob->data)) { qeth_clear_ipacmd_list(card); qeth_schedule_recovery(card); goto out; } cmd = qeth_check_ipa_data(card, iob); if ((cmd == NULL) && (card->state != CARD_STATE_DOWN)) goto out; /*in case of OSN : check if cmd is set */ if (card->info.type == QETH_CARD_TYPE_OSN && cmd && cmd->hdr.command != IPA_CMD_STARTLAN && card->osn_info.assist_cb != NULL) { card->osn_info.assist_cb(card->dev, cmd); goto out; } spin_lock_irqsave(&card->lock, flags); list_for_each_entry_safe(reply, r, &card->cmd_waiter_list, list) { if ((reply->seqno == QETH_IDX_COMMAND_SEQNO) || ((cmd) && (reply->seqno == cmd->hdr.seqno))) { qeth_get_reply(reply); list_del_init(&reply->list); spin_unlock_irqrestore(&card->lock, flags); keep_reply = 0; if (reply->callback != NULL) { if (cmd) { reply->offset = (__u16)((char*)cmd - (char *)iob->data); keep_reply = reply->callback(card, reply, (unsigned long)cmd); } else keep_reply = reply->callback(card, reply, (unsigned long)iob); } if (cmd) reply->rc = (u16) cmd->hdr.return_code; else if (iob->rc) reply->rc = iob->rc; if (keep_reply) { spin_lock_irqsave(&card->lock, flags); list_add_tail(&reply->list, &card->cmd_waiter_list); spin_unlock_irqrestore(&card->lock, flags); } else { reply->received = 1; wake_up(&reply->wait_q); } qeth_put_reply(reply); goto out; } } spin_unlock_irqrestore(&card->lock, flags); out: memcpy(&card->seqno.pdu_hdr_ack, QETH_PDU_HEADER_SEQ_NO(iob->data), QETH_SEQ_NO_LENGTH); qeth_release_buffer(channel,iob); } static inline void qeth_prepare_control_data(struct qeth_card *card, int len, struct qeth_cmd_buffer *iob) { qeth_setup_ccw(&card->write,iob->data,len); iob->callback = qeth_release_buffer; memcpy(QETH_TRANSPORT_HEADER_SEQ_NO(iob->data), &card->seqno.trans_hdr, QETH_SEQ_NO_LENGTH); card->seqno.trans_hdr++; memcpy(QETH_PDU_HEADER_SEQ_NO(iob->data), &card->seqno.pdu_hdr, QETH_SEQ_NO_LENGTH); card->seqno.pdu_hdr++; memcpy(QETH_PDU_HEADER_ACK_SEQ_NO(iob->data), &card->seqno.pdu_hdr_ack, QETH_SEQ_NO_LENGTH); QETH_DBF_HEX(control, 2, iob->data, QETH_DBF_CONTROL_LEN); } static int qeth_send_control_data(struct qeth_card *card, int len, struct qeth_cmd_buffer *iob, int (*reply_cb) (struct qeth_card *, struct qeth_reply*, unsigned long), void *reply_param) { int rc; unsigned long flags; struct qeth_reply *reply = NULL; struct timer_list timer; QETH_DBF_TEXT(trace, 2, "sendctl"); reply = qeth_alloc_reply(card); if (!reply) { PRINT_WARN("Could no alloc qeth_reply!\n"); return -ENOMEM; } reply->callback = reply_cb; reply->param = reply_param; if (card->state == CARD_STATE_DOWN) reply->seqno = QETH_IDX_COMMAND_SEQNO; else reply->seqno = card->seqno.ipa++; init_timer(&timer); timer.function = qeth_cmd_timeout; timer.data = (unsigned long) reply; init_waitqueue_head(&reply->wait_q); spin_lock_irqsave(&card->lock, flags); list_add_tail(&reply->list, &card->cmd_waiter_list); spin_unlock_irqrestore(&card->lock, flags); QETH_DBF_HEX(control, 2, iob->data, QETH_DBF_CONTROL_LEN); wait_event(card->wait_q, atomic_compare_and_swap(0,1,&card->write.irq_pending) == 0); qeth_prepare_control_data(card, len, iob); if (IS_IPA(iob->data)) timer.expires = jiffies + QETH_IPA_TIMEOUT; else timer.expires = jiffies + QETH_TIMEOUT; QETH_DBF_TEXT(trace, 6, "noirqpnd"); spin_lock_irqsave(get_ccwdev_lock(card->write.ccwdev), flags); rc = ccw_device_start(card->write.ccwdev, &card->write.ccw, (addr_t) iob, 0, 0); spin_unlock_irqrestore(get_ccwdev_lock(card->write.ccwdev), flags); if (rc){ PRINT_WARN("qeth_send_control_data: " "ccw_device_start rc = %i\n", rc); QETH_DBF_TEXT_(trace, 2, " err%d", rc); spin_lock_irqsave(&card->lock, flags); list_del_init(&reply->list); qeth_put_reply(reply); spin_unlock_irqrestore(&card->lock, flags); qeth_release_buffer(iob->channel, iob); atomic_set(&card->write.irq_pending, 0); wake_up(&card->wait_q); return rc; } add_timer(&timer); wait_event(reply->wait_q, reply->received); del_timer_sync(&timer); rc = reply->rc; qeth_put_reply(reply); return rc; } static int qeth_osn_send_control_data(struct qeth_card *card, int len, struct qeth_cmd_buffer *iob) { unsigned long flags; int rc = 0; QETH_DBF_TEXT(trace, 5, "osndctrd"); wait_event(card->wait_q, atomic_compare_and_swap(0,1,&card->write.irq_pending) == 0); qeth_prepare_control_data(card, len, iob); QETH_DBF_TEXT(trace, 6, "osnoirqp"); spin_lock_irqsave(get_ccwdev_lock(card->write.ccwdev), flags); rc = ccw_device_start(card->write.ccwdev, &card->write.ccw, (addr_t) iob, 0, 0); spin_unlock_irqrestore(get_ccwdev_lock(card->write.ccwdev), flags); if (rc){ PRINT_WARN("qeth_osn_send_control_data: " "ccw_device_start rc = %i\n", rc); QETH_DBF_TEXT_(trace, 2, " err%d", rc); qeth_release_buffer(iob->channel, iob); atomic_set(&card->write.irq_pending, 0); wake_up(&card->wait_q); } return rc; } static inline void qeth_prepare_ipa_cmd(struct qeth_card *card, struct qeth_cmd_buffer *iob, char prot_type) { memcpy(iob->data, IPA_PDU_HEADER, IPA_PDU_HEADER_SIZE); memcpy(QETH_IPA_CMD_PROT_TYPE(iob->data),&prot_type,1); memcpy(QETH_IPA_CMD_DEST_ADDR(iob->data), &card->token.ulp_connection_r, QETH_MPC_TOKEN_LENGTH); } static int qeth_osn_send_ipa_cmd(struct qeth_card *card, struct qeth_cmd_buffer *iob, int data_len) { u16 s1, s2; QETH_DBF_TEXT(trace,4,"osndipa"); qeth_prepare_ipa_cmd(card, iob, QETH_PROT_OSN2); s1 = (u16)(IPA_PDU_HEADER_SIZE + data_len); s2 = (u16)data_len; memcpy(QETH_IPA_PDU_LEN_TOTAL(iob->data), &s1, 2); memcpy(QETH_IPA_PDU_LEN_PDU1(iob->data), &s2, 2); memcpy(QETH_IPA_PDU_LEN_PDU2(iob->data), &s2, 2); memcpy(QETH_IPA_PDU_LEN_PDU3(iob->data), &s2, 2); return qeth_osn_send_control_data(card, s1, iob); } static int qeth_send_ipa_cmd(struct qeth_card *card, struct qeth_cmd_buffer *iob, int (*reply_cb) (struct qeth_card *,struct qeth_reply*, unsigned long), void *reply_param) { int rc; char prot_type; QETH_DBF_TEXT(trace,4,"sendipa"); if (card->options.layer2) if (card->info.type == QETH_CARD_TYPE_OSN) prot_type = QETH_PROT_OSN2; else prot_type = QETH_PROT_LAYER2; else prot_type = QETH_PROT_TCPIP; qeth_prepare_ipa_cmd(card,iob,prot_type); rc = qeth_send_control_data(card, IPA_CMD_LENGTH, iob, reply_cb, reply_param); return rc; } static int qeth_cm_enable_cb(struct qeth_card *card, struct qeth_reply *reply, unsigned long data) { struct qeth_cmd_buffer *iob; QETH_DBF_TEXT(setup, 2, "cmenblcb"); iob = (struct qeth_cmd_buffer *) data; memcpy(&card->token.cm_filter_r, QETH_CM_ENABLE_RESP_FILTER_TOKEN(iob->data), QETH_MPC_TOKEN_LENGTH); QETH_DBF_TEXT_(setup, 2, " rc%d", iob->rc); return 0; } static int qeth_cm_enable(struct qeth_card *card) { int rc; struct qeth_cmd_buffer *iob; QETH_DBF_TEXT(setup,2,"cmenable"); iob = qeth_wait_for_buffer(&card->write); memcpy(iob->data, CM_ENABLE, CM_ENABLE_SIZE); memcpy(QETH_CM_ENABLE_ISSUER_RM_TOKEN(iob->data), &card->token.issuer_rm_r, QETH_MPC_TOKEN_LENGTH); memcpy(QETH_CM_ENABLE_FILTER_TOKEN(iob->data), &card->token.cm_filter_w, QETH_MPC_TOKEN_LENGTH); rc = qeth_send_control_data(card, CM_ENABLE_SIZE, iob, qeth_cm_enable_cb, NULL); return rc; } static int qeth_cm_setup_cb(struct qeth_card *card, struct qeth_reply *reply, unsigned long data) { struct qeth_cmd_buffer *iob; QETH_DBF_TEXT(setup, 2, "cmsetpcb"); iob = (struct qeth_cmd_buffer *) data; memcpy(&card->token.cm_connection_r, QETH_CM_SETUP_RESP_DEST_ADDR(iob->data), QETH_MPC_TOKEN_LENGTH); QETH_DBF_TEXT_(setup, 2, " rc%d", iob->rc); return 0; } static int qeth_cm_setup(struct qeth_card *card) { int rc; struct qeth_cmd_buffer *iob; QETH_DBF_TEXT(setup,2,"cmsetup"); iob = qeth_wait_for_buffer(&card->write); memcpy(iob->data, CM_SETUP, CM_SETUP_SIZE); memcpy(QETH_CM_SETUP_DEST_ADDR(iob->data), &card->token.issuer_rm_r, QETH_MPC_TOKEN_LENGTH); memcpy(QETH_CM_SETUP_CONNECTION_TOKEN(iob->data), &card->token.cm_connection_w, QETH_MPC_TOKEN_LENGTH); memcpy(QETH_CM_SETUP_FILTER_TOKEN(iob->data), &card->token.cm_filter_r, QETH_MPC_TOKEN_LENGTH); rc = qeth_send_control_data(card, CM_SETUP_SIZE, iob, qeth_cm_setup_cb, NULL); return rc; } static int qeth_ulp_enable_cb(struct qeth_card *card, struct qeth_reply *reply, unsigned long data) { __u16 mtu, framesize; __u16 len; __u8 link_type; struct qeth_cmd_buffer *iob; QETH_DBF_TEXT(setup, 2, "ulpenacb"); iob = (struct qeth_cmd_buffer *) data; memcpy(&card->token.ulp_filter_r, QETH_ULP_ENABLE_RESP_FILTER_TOKEN(iob->data), QETH_MPC_TOKEN_LENGTH); if (qeth_get_mtu_out_of_mpc(card->info.type)) { memcpy(&framesize, QETH_ULP_ENABLE_RESP_MAX_MTU(iob->data), 2); mtu = qeth_get_mtu_outof_framesize(framesize); if (!mtu) { iob->rc = -EINVAL; QETH_DBF_TEXT_(setup, 2, " rc%d", iob->rc); return 0; } card->info.max_mtu = mtu; card->info.initial_mtu = mtu; card->qdio.in_buf_size = mtu + 2 * PAGE_SIZE; } else { card->info.initial_mtu = qeth_get_initial_mtu_for_card(card); card->info.max_mtu = qeth_get_max_mtu_for_card(card->info.type); card->qdio.in_buf_size = QETH_IN_BUF_SIZE_DEFAULT; } memcpy(&len, QETH_ULP_ENABLE_RESP_DIFINFO_LEN(iob->data), 2); if (len >= QETH_MPC_DIFINFO_LEN_INDICATES_LINK_TYPE) { memcpy(&link_type, QETH_ULP_ENABLE_RESP_LINK_TYPE(iob->data), 1); card->info.link_type = link_type; } else card->info.link_type = 0; QETH_DBF_TEXT_(setup, 2, " rc%d", iob->rc); return 0; } static int qeth_ulp_enable(struct qeth_card *card) { int rc; char prot_type; struct qeth_cmd_buffer *iob; /*FIXME: trace view callbacks*/ QETH_DBF_TEXT(setup,2,"ulpenabl"); iob = qeth_wait_for_buffer(&card->write); memcpy(iob->data, ULP_ENABLE, ULP_ENABLE_SIZE); *(QETH_ULP_ENABLE_LINKNUM(iob->data)) = (__u8) card->info.portno; if (card->options.layer2) if (card->info.type == QETH_CARD_TYPE_OSN) prot_type = QETH_PROT_OSN2; else prot_type = QETH_PROT_LAYER2; else prot_type = QETH_PROT_TCPIP; memcpy(QETH_ULP_ENABLE_PROT_TYPE(iob->data),&prot_type,1); memcpy(QETH_ULP_ENABLE_DEST_ADDR(iob->data), &card->token.cm_connection_r, QETH_MPC_TOKEN_LENGTH); memcpy(QETH_ULP_ENABLE_FILTER_TOKEN(iob->data), &card->token.ulp_filter_w, QETH_MPC_TOKEN_LENGTH); memcpy(QETH_ULP_ENABLE_PORTNAME_AND_LL(iob->data), card->info.portname, 9); rc = qeth_send_control_data(card, ULP_ENABLE_SIZE, iob, qeth_ulp_enable_cb, NULL); return rc; } static inline __u16 __raw_devno_from_bus_id(char *id) { id += (strlen(id) - 4); return (__u16) simple_strtoul(id, &id, 16); } static int qeth_ulp_setup_cb(struct qeth_card *card, struct qeth_reply *reply, unsigned long data) { struct qeth_cmd_buffer *iob; QETH_DBF_TEXT(setup, 2, "ulpstpcb"); iob = (struct qeth_cmd_buffer *) data; memcpy(&card->token.ulp_connection_r, QETH_ULP_SETUP_RESP_CONNECTION_TOKEN(iob->data), QETH_MPC_TOKEN_LENGTH); QETH_DBF_TEXT_(setup, 2, " rc%d", iob->rc); return 0; } static int qeth_ulp_setup(struct qeth_card *card) { int rc; __u16 temp; struct qeth_cmd_buffer *iob; QETH_DBF_TEXT(setup,2,"ulpsetup"); iob = qeth_wait_for_buffer(&card->write); memcpy(iob->data, ULP_SETUP, ULP_SETUP_SIZE); memcpy(QETH_ULP_SETUP_DEST_ADDR(iob->data), &card->token.cm_connection_r, QETH_MPC_TOKEN_LENGTH); memcpy(QETH_ULP_SETUP_CONNECTION_TOKEN(iob->data), &card->token.ulp_connection_w, QETH_MPC_TOKEN_LENGTH); memcpy(QETH_ULP_SETUP_FILTER_TOKEN(iob->data), &card->token.ulp_filter_r, QETH_MPC_TOKEN_LENGTH); temp = __raw_devno_from_bus_id(CARD_DDEV_ID(card)); memcpy(QETH_ULP_SETUP_CUA(iob->data), &temp, 2); temp = (card->info.cula << 8) + card->info.unit_addr2; memcpy(QETH_ULP_SETUP_REAL_DEVADDR(iob->data), &temp, 2); rc = qeth_send_control_data(card, ULP_SETUP_SIZE, iob, qeth_ulp_setup_cb, NULL); return rc; } static inline int qeth_check_qdio_errors(struct qdio_buffer *buf, unsigned int qdio_error, unsigned int siga_error, const char *dbftext) { if (qdio_error || siga_error) { QETH_DBF_TEXT(trace, 2, dbftext); QETH_DBF_TEXT(qerr, 2, dbftext); QETH_DBF_TEXT_(qerr, 2, " F15=%02X", buf->element[15].flags & 0xff); QETH_DBF_TEXT_(qerr, 2, " F14=%02X", buf->element[14].flags & 0xff); QETH_DBF_TEXT_(qerr, 2, " qerr=%X", qdio_error); QETH_DBF_TEXT_(qerr, 2, " serr=%X", siga_error); return 1; } return 0; } static inline struct sk_buff * qeth_get_skb(unsigned int length, struct qeth_hdr *hdr) { struct sk_buff* skb; int add_len; add_len = 0; if (hdr->hdr.osn.id == QETH_HEADER_TYPE_OSN) add_len = sizeof(struct qeth_hdr); #ifdef CONFIG_QETH_VLAN else add_len = VLAN_HLEN; #endif skb = dev_alloc_skb(length + add_len); if (skb && add_len) skb_reserve(skb, add_len); return skb; } static inline struct sk_buff * qeth_get_next_skb(struct qeth_card *card, struct qdio_buffer *buffer, struct qdio_buffer_element **__element, int *__offset, struct qeth_hdr **hdr) { struct qdio_buffer_element *element = *__element; int offset = *__offset; struct sk_buff *skb = NULL; int skb_len; void *data_ptr; int data_len; QETH_DBF_TEXT(trace,6,"nextskb"); /* qeth_hdr must not cross element boundaries */ if (element->length < offset + sizeof(struct qeth_hdr)){ if (qeth_is_last_sbale(element)) return NULL; element++; offset = 0; if (element->length < sizeof(struct qeth_hdr)) return NULL; } *hdr = element->addr + offset; offset += sizeof(struct qeth_hdr); if (card->options.layer2) if (card->info.type == QETH_CARD_TYPE_OSN) skb_len = (*hdr)->hdr.osn.pdu_length; else skb_len = (*hdr)->hdr.l2.pkt_length; else skb_len = (*hdr)->hdr.l3.length; if (!skb_len) return NULL; if (card->options.fake_ll){ if(card->dev->type == ARPHRD_IEEE802_TR){ if (!(skb = qeth_get_skb(skb_len+QETH_FAKE_LL_LEN_TR, *hdr))) goto no_mem; skb_reserve(skb,QETH_FAKE_LL_LEN_TR); } else { if (!(skb = qeth_get_skb(skb_len+QETH_FAKE_LL_LEN_ETH, *hdr))) goto no_mem; skb_reserve(skb,QETH_FAKE_LL_LEN_ETH); } } else if (!(skb = qeth_get_skb(skb_len, *hdr))) goto no_mem; data_ptr = element->addr + offset; while (skb_len) { data_len = min(skb_len, (int)(element->length - offset)); if (data_len) memcpy(skb_put(skb, data_len), data_ptr, data_len); skb_len -= data_len; if (skb_len){ if (qeth_is_last_sbale(element)){ QETH_DBF_TEXT(trace,4,"unexeob"); QETH_DBF_TEXT_(trace,4,"%s",CARD_BUS_ID(card)); QETH_DBF_TEXT(qerr,2,"unexeob"); QETH_DBF_TEXT_(qerr,2,"%s",CARD_BUS_ID(card)); QETH_DBF_HEX(misc,4,buffer,sizeof(*buffer)); dev_kfree_skb_any(skb); card->stats.rx_errors++; return NULL; } element++; offset = 0; data_ptr = element->addr; } else { offset += data_len; } } *__element = element; *__offset = offset; return skb; no_mem: if (net_ratelimit()){ PRINT_WARN("No memory for packet received on %s.\n", QETH_CARD_IFNAME(card)); QETH_DBF_TEXT(trace,2,"noskbmem"); QETH_DBF_TEXT_(trace,2,"%s",CARD_BUS_ID(card)); } card->stats.rx_dropped++; return NULL; } static inline __be16 qeth_type_trans(struct sk_buff *skb, struct net_device *dev) { struct qeth_card *card; struct ethhdr *eth; QETH_DBF_TEXT(trace,6,"typtrans"); card = (struct qeth_card *)dev->priv; #ifdef CONFIG_TR if ((card->info.link_type == QETH_LINK_TYPE_HSTR) || (card->info.link_type == QETH_LINK_TYPE_LANE_TR)) return tr_type_trans(skb,dev); #endif /* CONFIG_TR */ skb->mac.raw = skb->data; skb_pull(skb, ETH_HLEN ); eth = eth_hdr(skb); if (*eth->h_dest & 1) { if (memcmp(eth->h_dest, dev->broadcast, ETH_ALEN) == 0) skb->pkt_type = PACKET_BROADCAST; else skb->pkt_type = PACKET_MULTICAST; } else if (memcmp(eth->h_dest, dev->dev_addr, ETH_ALEN)) skb->pkt_type = PACKET_OTHERHOST; if (ntohs(eth->h_proto) >= 1536) return eth->h_proto; if (*(unsigned short *) (skb->data) == 0xFFFF) return htons(ETH_P_802_3); return htons(ETH_P_802_2); } static inline void qeth_rebuild_skb_fake_ll_tr(struct qeth_card *card, struct sk_buff *skb, struct qeth_hdr *hdr) { struct trh_hdr *fake_hdr; struct trllc *fake_llc; struct iphdr *ip_hdr; QETH_DBF_TEXT(trace,5,"skbfktr"); skb->mac.raw = skb->data - QETH_FAKE_LL_LEN_TR; /* this is a fake ethernet header */ fake_hdr = (struct trh_hdr *) skb->mac.raw; /* the destination MAC address */ switch (skb->pkt_type){ case PACKET_MULTICAST: switch (skb->protocol){ #ifdef CONFIG_QETH_IPV6 case __constant_htons(ETH_P_IPV6): ndisc_mc_map((struct in6_addr *) skb->data + QETH_FAKE_LL_V6_ADDR_POS, fake_hdr->daddr, card->dev, 0); break; #endif /* CONFIG_QETH_IPV6 */ case __constant_htons(ETH_P_IP): ip_hdr = (struct iphdr *)skb->data; ip_tr_mc_map(ip_hdr->daddr, fake_hdr->daddr); break; default: memcpy(fake_hdr->daddr, card->dev->dev_addr, TR_ALEN); } break; case PACKET_BROADCAST: memset(fake_hdr->daddr, 0xff, TR_ALEN); break; default: memcpy(fake_hdr->daddr, card->dev->dev_addr, TR_ALEN); } /* the source MAC address */ if (hdr->hdr.l3.ext_flags & QETH_HDR_EXT_SRC_MAC_ADDR) memcpy(fake_hdr->saddr, &hdr->hdr.l3.dest_addr[2], TR_ALEN); else memset(fake_hdr->saddr, 0, TR_ALEN); fake_hdr->rcf=0; fake_llc = (struct trllc*)&(fake_hdr->rcf); fake_llc->dsap = EXTENDED_SAP; fake_llc->ssap = EXTENDED_SAP; fake_llc->llc = UI_CMD; fake_llc->protid[0] = 0; fake_llc->protid[1] = 0; fake_llc->protid[2] = 0; fake_llc->ethertype = ETH_P_IP; } static inline void qeth_rebuild_skb_fake_ll_eth(struct qeth_card *card, struct sk_buff *skb, struct qeth_hdr *hdr) { struct ethhdr *fake_hdr; struct iphdr *ip_hdr; QETH_DBF_TEXT(trace,5,"skbfketh"); skb->mac.raw = skb->data - QETH_FAKE_LL_LEN_ETH; /* this is a fake ethernet header */ fake_hdr = (struct ethhdr *) skb->mac.raw; /* the destination MAC address */ switch (skb->pkt_type){ case PACKET_MULTICAST: switch (skb->protocol){ #ifdef CONFIG_QETH_IPV6 case __constant_htons(ETH_P_IPV6): ndisc_mc_map((struct in6_addr *) skb->data + QETH_FAKE_LL_V6_ADDR_POS, fake_hdr->h_dest, card->dev, 0); break; #endif /* CONFIG_QETH_IPV6 */ case __constant_htons(ETH_P_IP): ip_hdr = (struct iphdr *)skb->data; ip_eth_mc_map(ip_hdr->daddr, fake_hdr->h_dest); break; default: memcpy(fake_hdr->h_dest, card->dev->dev_addr, ETH_ALEN); } break; case PACKET_BROADCAST: memset(fake_hdr->h_dest, 0xff, ETH_ALEN); break; default: memcpy(fake_hdr->h_dest, card->dev->dev_addr, ETH_ALEN); } /* the source MAC address */ if (hdr->hdr.l3.ext_flags & QETH_HDR_EXT_SRC_MAC_ADDR) memcpy(fake_hdr->h_source, &hdr->hdr.l3.dest_addr[2], ETH_ALEN); else memset(fake_hdr->h_source, 0, ETH_ALEN); /* the protocol */ fake_hdr->h_proto = skb->protocol; } static inline void qeth_rebuild_skb_fake_ll(struct qeth_card *card, struct sk_buff *skb, struct qeth_hdr *hdr) { if (card->dev->type == ARPHRD_IEEE802_TR) qeth_rebuild_skb_fake_ll_tr(card, skb, hdr); else qeth_rebuild_skb_fake_ll_eth(card, skb, hdr); } static inline void qeth_rebuild_skb_vlan(struct qeth_card *card, struct sk_buff *skb, struct qeth_hdr *hdr) { #ifdef CONFIG_QETH_VLAN u16 *vlan_tag; if (hdr->hdr.l3.ext_flags & (QETH_HDR_EXT_VLAN_FRAME | QETH_HDR_EXT_INCLUDE_VLAN_TAG)) { vlan_tag = (u16 *) skb_push(skb, VLAN_HLEN); *vlan_tag = (hdr->hdr.l3.ext_flags & QETH_HDR_EXT_VLAN_FRAME)? hdr->hdr.l3.vlan_id : *((u16 *)&hdr->hdr.l3.dest_addr[12]); *(vlan_tag + 1) = skb->protocol; skb->protocol = __constant_htons(ETH_P_8021Q); } #endif /* CONFIG_QETH_VLAN */ } static inline __u16 qeth_layer2_rebuild_skb(struct qeth_card *card, struct sk_buff *skb, struct qeth_hdr *hdr) { unsigned short vlan_id = 0; #ifdef CONFIG_QETH_VLAN struct vlan_hdr *vhdr; #endif skb->pkt_type = PACKET_HOST; skb->protocol = qeth_type_trans(skb, skb->dev); if (card->options.checksum_type == NO_CHECKSUMMING) skb->ip_summed = CHECKSUM_UNNECESSARY; else skb->ip_summed = CHECKSUM_NONE; #ifdef CONFIG_QETH_VLAN if (hdr->hdr.l2.flags[2] & (QETH_LAYER2_FLAG_VLAN)) { vhdr = (struct vlan_hdr *) skb->data; skb->protocol = __constant_htons(vhdr->h_vlan_encapsulated_proto); vlan_id = hdr->hdr.l2.vlan_id; skb_pull(skb, VLAN_HLEN); } #endif *((__u32 *)skb->cb) = ++card->seqno.pkt_seqno; return vlan_id; } static inline void qeth_rebuild_skb(struct qeth_card *card, struct sk_buff *skb, struct qeth_hdr *hdr) { #ifdef CONFIG_QETH_IPV6 if (hdr->hdr.l3.flags & QETH_HDR_PASSTHRU) { skb->pkt_type = PACKET_HOST; skb->protocol = qeth_type_trans(skb, card->dev); return; } #endif /* CONFIG_QETH_IPV6 */ skb->protocol = htons((hdr->hdr.l3.flags & QETH_HDR_IPV6)? ETH_P_IPV6 : ETH_P_IP); switch (hdr->hdr.l3.flags & QETH_HDR_CAST_MASK){ case QETH_CAST_UNICAST: skb->pkt_type = PACKET_HOST; break; case QETH_CAST_MULTICAST: skb->pkt_type = PACKET_MULTICAST; card->stats.multicast++; break; case QETH_CAST_BROADCAST: skb->pkt_type = PACKET_BROADCAST; card->stats.multicast++; break; case QETH_CAST_ANYCAST: case QETH_CAST_NOCAST: default: skb->pkt_type = PACKET_HOST; } qeth_rebuild_skb_vlan(card, skb, hdr); if (card->options.fake_ll) qeth_rebuild_skb_fake_ll(card, skb, hdr); else skb->mac.raw = skb->data; skb->ip_summed = card->options.checksum_type; if (card->options.checksum_type == HW_CHECKSUMMING){ if ( (hdr->hdr.l3.ext_flags & (QETH_HDR_EXT_CSUM_HDR_REQ | QETH_HDR_EXT_CSUM_TRANSP_REQ)) == (QETH_HDR_EXT_CSUM_HDR_REQ | QETH_HDR_EXT_CSUM_TRANSP_REQ) ) skb->ip_summed = CHECKSUM_UNNECESSARY; else skb->ip_summed = SW_CHECKSUMMING; } } static inline void qeth_process_inbound_buffer(struct qeth_card *card, struct qeth_qdio_buffer *buf, int index) { struct qdio_buffer_element *element; struct sk_buff *skb; struct qeth_hdr *hdr; int offset; int rxrc; __u16 vlan_tag = 0; /* get first element of current buffer */ element = (struct qdio_buffer_element *)&buf->buffer->element[0]; offset = 0; #ifdef CONFIG_QETH_PERF_STATS card->perf_stats.bufs_rec++; #endif while((skb = qeth_get_next_skb(card, buf->buffer, &element, &offset, &hdr))) { skb->dev = card->dev; if (hdr->hdr.l2.id == QETH_HEADER_TYPE_LAYER2) vlan_tag = qeth_layer2_rebuild_skb(card, skb, hdr); else if (hdr->hdr.l3.id == QETH_HEADER_TYPE_LAYER3) qeth_rebuild_skb(card, skb, hdr); else { /*in case of OSN*/ skb_push(skb, sizeof(struct qeth_hdr)); memcpy(skb->data, hdr, sizeof(struct qeth_hdr)); } /* is device UP ? */ if (!(card->dev->flags & IFF_UP)){ dev_kfree_skb_any(skb); continue; } #ifdef CONFIG_QETH_VLAN if (vlan_tag) vlan_hwaccel_rx(skb, card->vlangrp, vlan_tag); else #endif if (card->info.type == QETH_CARD_TYPE_OSN) rxrc = card->osn_info.data_cb(skb); else rxrc = netif_rx(skb); card->dev->last_rx = jiffies; card->stats.rx_packets++; card->stats.rx_bytes += skb->len; } } static inline struct qeth_buffer_pool_entry * qeth_get_buffer_pool_entry(struct qeth_card *card) { struct qeth_buffer_pool_entry *entry; QETH_DBF_TEXT(trace, 6, "gtbfplen"); if (!list_empty(&card->qdio.in_buf_pool.entry_list)) { entry = list_entry(card->qdio.in_buf_pool.entry_list.next, struct qeth_buffer_pool_entry, list); list_del_init(&entry->list); return entry; } return NULL; } static inline void qeth_init_input_buffer(struct qeth_card *card, struct qeth_qdio_buffer *buf) { struct qeth_buffer_pool_entry *pool_entry; int i; pool_entry = qeth_get_buffer_pool_entry(card); /* * since the buffer is accessed only from the input_tasklet * there shouldn't be a need to synchronize; also, since we use * the QETH_IN_BUF_REQUEUE_THRESHOLD we should never run out off * buffers */ BUG_ON(!pool_entry); buf->pool_entry = pool_entry; for(i = 0; i < QETH_MAX_BUFFER_ELEMENTS(card); ++i){ buf->buffer->element[i].length = PAGE_SIZE; buf->buffer->element[i].addr = pool_entry->elements[i]; if (i == QETH_MAX_BUFFER_ELEMENTS(card) - 1) buf->buffer->element[i].flags = SBAL_FLAGS_LAST_ENTRY; else buf->buffer->element[i].flags = 0; } buf->state = QETH_QDIO_BUF_EMPTY; } static inline void qeth_clear_output_buffer(struct qeth_qdio_out_q *queue, struct qeth_qdio_out_buffer *buf) { int i; struct sk_buff *skb; /* is PCI flag set on buffer? */ if (buf->buffer->element[0].flags & 0x40) atomic_dec(&queue->set_pci_flags_count); while ((skb = skb_dequeue(&buf->skb_list))){ atomic_dec(&skb->users); dev_kfree_skb_any(skb); } qeth_eddp_buf_release_contexts(buf); for(i = 0; i < QETH_MAX_BUFFER_ELEMENTS(queue->card); ++i){ buf->buffer->element[i].length = 0; buf->buffer->element[i].addr = NULL; buf->buffer->element[i].flags = 0; } buf->next_element_to_fill = 0; atomic_set(&buf->state, QETH_QDIO_BUF_EMPTY); } static inline void qeth_queue_input_buffer(struct qeth_card *card, int index) { struct qeth_qdio_q *queue = card->qdio.in_q; int count; int i; int rc; QETH_DBF_TEXT(trace,6,"queinbuf"); count = (index < queue->next_buf_to_init)? card->qdio.in_buf_pool.buf_count - (queue->next_buf_to_init - index) : card->qdio.in_buf_pool.buf_count - (queue->next_buf_to_init + QDIO_MAX_BUFFERS_PER_Q - index); /* only requeue at a certain threshold to avoid SIGAs */ if (count >= QETH_IN_BUF_REQUEUE_THRESHOLD(card)){ for (i = queue->next_buf_to_init; i < queue->next_buf_to_init + count; ++i) qeth_init_input_buffer(card, &queue->bufs[i % QDIO_MAX_BUFFERS_PER_Q]); /* * according to old code it should be avoided to requeue all * 128 buffers in order to benefit from PCI avoidance. * this function keeps at least one buffer (the buffer at * 'index') un-requeued -> this buffer is the first buffer that * will be requeued the next time */ #ifdef CONFIG_QETH_PERF_STATS card->perf_stats.inbound_do_qdio_cnt++; card->perf_stats.inbound_do_qdio_start_time = qeth_get_micros(); #endif rc = do_QDIO(CARD_DDEV(card), QDIO_FLAG_SYNC_INPUT | QDIO_FLAG_UNDER_INTERRUPT, 0, queue->next_buf_to_init, count, NULL); #ifdef CONFIG_QETH_PERF_STATS card->perf_stats.inbound_do_qdio_time += qeth_get_micros() - card->perf_stats.inbound_do_qdio_start_time; #endif if (rc){ PRINT_WARN("qeth_queue_input_buffer's do_QDIO " "return %i (device %s).\n", rc, CARD_DDEV_ID(card)); QETH_DBF_TEXT(trace,2,"qinberr"); QETH_DBF_TEXT_(trace,2,"%s",CARD_BUS_ID(card)); } queue->next_buf_to_init = (queue->next_buf_to_init + count) % QDIO_MAX_BUFFERS_PER_Q; } } static inline void qeth_put_buffer_pool_entry(struct qeth_card *card, struct qeth_buffer_pool_entry *entry) { QETH_DBF_TEXT(trace, 6, "ptbfplen"); list_add_tail(&entry->list, &card->qdio.in_buf_pool.entry_list); } static void qeth_qdio_input_handler(struct ccw_device * ccwdev, unsigned int status, unsigned int qdio_err, unsigned int siga_err, unsigned int queue, int first_element, int count, unsigned long card_ptr) { struct net_device *net_dev; struct qeth_card *card; struct qeth_qdio_buffer *buffer; int index; int i; QETH_DBF_TEXT(trace, 6, "qdinput"); card = (struct qeth_card *) card_ptr; net_dev = card->dev; #ifdef CONFIG_QETH_PERF_STATS card->perf_stats.inbound_cnt++; card->perf_stats.inbound_start_time = qeth_get_micros(); #endif if (status & QDIO_STATUS_LOOK_FOR_ERROR) { if (status & QDIO_STATUS_ACTIVATE_CHECK_CONDITION){ QETH_DBF_TEXT(trace, 1,"qdinchk"); QETH_DBF_TEXT_(trace,1,"%s",CARD_BUS_ID(card)); QETH_DBF_TEXT_(trace,1,"%04X%04X",first_element,count); QETH_DBF_TEXT_(trace,1,"%04X%04X", queue, status); qeth_schedule_recovery(card); return; } } for (i = first_element; i < (first_element + count); ++i) { index = i % QDIO_MAX_BUFFERS_PER_Q; buffer = &card->qdio.in_q->bufs[index]; if (!((status & QDIO_STATUS_LOOK_FOR_ERROR) && qeth_check_qdio_errors(buffer->buffer, qdio_err, siga_err,"qinerr"))) qeth_process_inbound_buffer(card, buffer, index); /* clear buffer and give back to hardware */ qeth_put_buffer_pool_entry(card, buffer->pool_entry); qeth_queue_input_buffer(card, index); } #ifdef CONFIG_QETH_PERF_STATS card->perf_stats.inbound_time += qeth_get_micros() - card->perf_stats.inbound_start_time; #endif } static inline int qeth_handle_send_error(struct qeth_card *card, struct qeth_qdio_out_buffer *buffer, unsigned int qdio_err, unsigned int siga_err) { int sbalf15 = buffer->buffer->element[15].flags & 0xff; int cc = siga_err & 3; QETH_DBF_TEXT(trace, 6, "hdsnderr"); qeth_check_qdio_errors(buffer->buffer, qdio_err, siga_err, "qouterr"); switch (cc) { case 0: if (qdio_err){ QETH_DBF_TEXT(trace, 1,"lnkfail"); QETH_DBF_TEXT_(trace,1,"%s",CARD_BUS_ID(card)); QETH_DBF_TEXT_(trace,1,"%04x %02x", (u16)qdio_err, (u8)sbalf15); return QETH_SEND_ERROR_LINK_FAILURE; } return QETH_SEND_ERROR_NONE; case 2: if (siga_err & QDIO_SIGA_ERROR_B_BIT_SET) { QETH_DBF_TEXT(trace, 1, "SIGAcc2B"); QETH_DBF_TEXT_(trace,1,"%s",CARD_BUS_ID(card)); return QETH_SEND_ERROR_KICK_IT; } if ((sbalf15 >= 15) && (sbalf15 <= 31)) return QETH_SEND_ERROR_RETRY; return QETH_SEND_ERROR_LINK_FAILURE; /* look at qdio_error and sbalf 15 */ case 1: QETH_DBF_TEXT(trace, 1, "SIGAcc1"); QETH_DBF_TEXT_(trace,1,"%s",CARD_BUS_ID(card)); return QETH_SEND_ERROR_LINK_FAILURE; case 3: QETH_DBF_TEXT(trace, 1, "SIGAcc3"); QETH_DBF_TEXT_(trace,1,"%s",CARD_BUS_ID(card)); return QETH_SEND_ERROR_KICK_IT; } return QETH_SEND_ERROR_LINK_FAILURE; } void qeth_flush_buffers(struct qeth_qdio_out_q *queue, int under_int, int index, int count) { struct qeth_qdio_out_buffer *buf; int rc; int i; QETH_DBF_TEXT(trace, 6, "flushbuf"); for (i = index; i < index + count; ++i) { buf = &queue->bufs[i % QDIO_MAX_BUFFERS_PER_Q]; buf->buffer->element[buf->next_element_to_fill - 1].flags |= SBAL_FLAGS_LAST_ENTRY; if (queue->card->info.type == QETH_CARD_TYPE_IQD) continue; if (!queue->do_pack){ if ((atomic_read(&queue->used_buffers) >= (QETH_HIGH_WATERMARK_PACK - QETH_WATERMARK_PACK_FUZZ)) && !atomic_read(&queue->set_pci_flags_count)){ /* it's likely that we'll go to packing * mode soon */ atomic_inc(&queue->set_pci_flags_count); buf->buffer->element[0].flags |= 0x40; } } else { if (!atomic_read(&queue->set_pci_flags_count)){ /* * there's no outstanding PCI any more, so we * have to request a PCI to be sure the the PCI * will wake at some time in the future then we * can flush packed buffers that might still be * hanging around, which can happen if no * further send was requested by the stack */ atomic_inc(&queue->set_pci_flags_count); buf->buffer->element[0].flags |= 0x40; } } } queue->card->dev->trans_start = jiffies; #ifdef CONFIG_QETH_PERF_STATS queue->card->perf_stats.outbound_do_qdio_cnt++; queue->card->perf_stats.outbound_do_qdio_start_time = qeth_get_micros(); #endif if (under_int) rc = do_QDIO(CARD_DDEV(queue->card), QDIO_FLAG_SYNC_OUTPUT | QDIO_FLAG_UNDER_INTERRUPT, queue->queue_no, index, count, NULL); else rc = do_QDIO(CARD_DDEV(queue->card), QDIO_FLAG_SYNC_OUTPUT, queue->queue_no, index, count, NULL); #ifdef CONFIG_QETH_PERF_STATS queue->card->perf_stats.outbound_do_qdio_time += qeth_get_micros() - queue->card->perf_stats.outbound_do_qdio_start_time; #endif if (rc){ QETH_DBF_TEXT(trace, 2, "flushbuf"); QETH_DBF_TEXT_(trace, 2, " err%d", rc); QETH_DBF_TEXT_(trace, 2, "%s", CARD_DDEV_ID(queue->card)); queue->card->stats.tx_errors += count; /* this must not happen under normal circumstances. if it * happens something is really wrong -> recover */ qeth_schedule_recovery(queue->card); return; } atomic_add(count, &queue->used_buffers); #ifdef CONFIG_QETH_PERF_STATS queue->card->perf_stats.bufs_sent += count; #endif } /* * Switched to packing state if the number of used buffers on a queue * reaches a certain limit. */ static inline void qeth_switch_to_packing_if_needed(struct qeth_qdio_out_q *queue) { if (!queue->do_pack) { if (atomic_read(&queue->used_buffers) >= QETH_HIGH_WATERMARK_PACK){ /* switch non-PACKING -> PACKING */ QETH_DBF_TEXT(trace, 6, "np->pack"); #ifdef CONFIG_QETH_PERF_STATS queue->card->perf_stats.sc_dp_p++; #endif queue->do_pack = 1; } } } /* * Switches from packing to non-packing mode. If there is a packing * buffer on the queue this buffer will be prepared to be flushed. * In that case 1 is returned to inform the caller. If no buffer * has to be flushed, zero is returned. */ static inline int qeth_switch_to_nonpacking_if_needed(struct qeth_qdio_out_q *queue) { struct qeth_qdio_out_buffer *buffer; int flush_count = 0; if (queue->do_pack) { if (atomic_read(&queue->used_buffers) <= QETH_LOW_WATERMARK_PACK) { /* switch PACKING -> non-PACKING */ QETH_DBF_TEXT(trace, 6, "pack->np"); #ifdef CONFIG_QETH_PERF_STATS queue->card->perf_stats.sc_p_dp++; #endif queue->do_pack = 0; /* flush packing buffers */ buffer = &queue->bufs[queue->next_buf_to_fill]; if ((atomic_read(&buffer->state) == QETH_QDIO_BUF_EMPTY) && (buffer->next_element_to_fill > 0)) { atomic_set(&buffer->state,QETH_QDIO_BUF_PRIMED); flush_count++; queue->next_buf_to_fill = (queue->next_buf_to_fill + 1) % QDIO_MAX_BUFFERS_PER_Q; } } } return flush_count; } /* * Called to flush a packing buffer if no more pci flags are on the queue. * Checks if there is a packing buffer and prepares it to be flushed. * In that case returns 1, otherwise zero. */ static inline int qeth_flush_buffers_on_no_pci(struct qeth_qdio_out_q *queue) { struct qeth_qdio_out_buffer *buffer; buffer = &queue->bufs[queue->next_buf_to_fill]; if((atomic_read(&buffer->state) == QETH_QDIO_BUF_EMPTY) && (buffer->next_element_to_fill > 0)){ /* it's a packing buffer */ atomic_set(&buffer->state, QETH_QDIO_BUF_PRIMED); queue->next_buf_to_fill = (queue->next_buf_to_fill + 1) % QDIO_MAX_BUFFERS_PER_Q; return 1; } return 0; } static inline void qeth_check_outbound_queue(struct qeth_qdio_out_q *queue) { int index; int flush_cnt = 0; int q_was_packing = 0; /* * check if weed have to switch to non-packing mode or if * we have to get a pci flag out on the queue */ if ((atomic_read(&queue->used_buffers) <= QETH_LOW_WATERMARK_PACK) || !atomic_read(&queue->set_pci_flags_count)){ if (atomic_swap(&queue->state, QETH_OUT_Q_LOCKED_FLUSH) == QETH_OUT_Q_UNLOCKED) { /* * If we get in here, there was no action in * do_send_packet. So, we check if there is a * packing buffer to be flushed here. */ netif_stop_queue(queue->card->dev); index = queue->next_buf_to_fill; q_was_packing = queue->do_pack; flush_cnt += qeth_switch_to_nonpacking_if_needed(queue); if (!flush_cnt && !atomic_read(&queue->set_pci_flags_count)) flush_cnt += qeth_flush_buffers_on_no_pci(queue); #ifdef CONFIG_QETH_PERF_STATS if (q_was_packing) queue->card->perf_stats.bufs_sent_pack += flush_cnt; #endif if (flush_cnt) qeth_flush_buffers(queue, 1, index, flush_cnt); atomic_set(&queue->state, QETH_OUT_Q_UNLOCKED); } } } static void qeth_qdio_output_handler(struct ccw_device * ccwdev, unsigned int status, unsigned int qdio_error, unsigned int siga_error, unsigned int __queue, int first_element, int count, unsigned long card_ptr) { struct qeth_card *card = (struct qeth_card *) card_ptr; struct qeth_qdio_out_q *queue = card->qdio.out_qs[__queue]; struct qeth_qdio_out_buffer *buffer; int i; QETH_DBF_TEXT(trace, 6, "qdouhdl"); if (status & QDIO_STATUS_LOOK_FOR_ERROR) { if (status & QDIO_STATUS_ACTIVATE_CHECK_CONDITION){ QETH_DBF_TEXT(trace, 2, "achkcond"); QETH_DBF_TEXT_(trace, 2, "%s", CARD_BUS_ID(card)); QETH_DBF_TEXT_(trace, 2, "%08x", status); netif_stop_queue(card->dev); qeth_schedule_recovery(card); return; } } #ifdef CONFIG_QETH_PERF_STATS card->perf_stats.outbound_handler_cnt++; card->perf_stats.outbound_handler_start_time = qeth_get_micros(); #endif for(i = first_element; i < (first_element + count); ++i){ buffer = &queue->bufs[i % QDIO_MAX_BUFFERS_PER_Q]; /*we only handle the KICK_IT error by doing a recovery */ if (qeth_handle_send_error(card, buffer, qdio_error, siga_error) == QETH_SEND_ERROR_KICK_IT){ netif_stop_queue(card->dev); qeth_schedule_recovery(card); return; } qeth_clear_output_buffer(queue, buffer); } atomic_sub(count, &queue->used_buffers); /* check if we need to do something on this outbound queue */ if (card->info.type != QETH_CARD_TYPE_IQD) qeth_check_outbound_queue(queue); netif_wake_queue(queue->card->dev); #ifdef CONFIG_QETH_PERF_STATS card->perf_stats.outbound_handler_time += qeth_get_micros() - card->perf_stats.outbound_handler_start_time; #endif } static void qeth_create_qib_param_field(struct qeth_card *card, char *param_field) { param_field[0] = _ascebc['P']; param_field[1] = _ascebc['C']; param_field[2] = _ascebc['I']; param_field[3] = _ascebc['T']; *((unsigned int *) (&param_field[4])) = QETH_PCI_THRESHOLD_A(card); *((unsigned int *) (&param_field[8])) = QETH_PCI_THRESHOLD_B(card); *((unsigned int *) (&param_field[12])) = QETH_PCI_TIMER_VALUE(card); } static void qeth_create_qib_param_field_blkt(struct qeth_card *card, char *param_field) { param_field[16] = _ascebc['B']; param_field[17] = _ascebc['L']; param_field[18] = _ascebc['K']; param_field[19] = _ascebc['T']; *((unsigned int *) (&param_field[20])) = card->info.blkt.time_total; *((unsigned int *) (&param_field[24])) = card->info.blkt.inter_packet; *((unsigned int *) (&param_field[28])) = card->info.blkt.inter_packet_jumbo; } static void qeth_initialize_working_pool_list(struct qeth_card *card) { struct qeth_buffer_pool_entry *entry; QETH_DBF_TEXT(trace,5,"inwrklst"); list_for_each_entry(entry, &card->qdio.init_pool.entry_list, init_list) { qeth_put_buffer_pool_entry(card,entry); } } static void qeth_clear_working_pool_list(struct qeth_card *card) { struct qeth_buffer_pool_entry *pool_entry, *tmp; QETH_DBF_TEXT(trace,5,"clwrklst"); list_for_each_entry_safe(pool_entry, tmp, &card->qdio.in_buf_pool.entry_list, list){ list_del(&pool_entry->list); } } static void qeth_free_buffer_pool(struct qeth_card *card) { struct qeth_buffer_pool_entry *pool_entry, *tmp; int i=0; QETH_DBF_TEXT(trace,5,"freepool"); list_for_each_entry_safe(pool_entry, tmp, &card->qdio.init_pool.entry_list, init_list){ for (i = 0; i < QETH_MAX_BUFFER_ELEMENTS(card); ++i) free_page((unsigned long)pool_entry->elements[i]); list_del(&pool_entry->init_list); kfree(pool_entry); } } static int qeth_alloc_buffer_pool(struct qeth_card *card) { struct qeth_buffer_pool_entry *pool_entry; void *ptr; int i, j; QETH_DBF_TEXT(trace,5,"alocpool"); for (i = 0; i < card->qdio.init_pool.buf_count; ++i){ pool_entry = kmalloc(sizeof(*pool_entry), GFP_KERNEL); if (!pool_entry){ qeth_free_buffer_pool(card); return -ENOMEM; } for(j = 0; j < QETH_MAX_BUFFER_ELEMENTS(card); ++j){ ptr = (void *) __get_free_page(GFP_KERNEL|GFP_DMA); if (!ptr) { while (j > 0) free_page((unsigned long) pool_entry->elements[--j]); kfree(pool_entry); qeth_free_buffer_pool(card); return -ENOMEM; } pool_entry->elements[j] = ptr; } list_add(&pool_entry->init_list, &card->qdio.init_pool.entry_list); } return 0; } int qeth_realloc_buffer_pool(struct qeth_card *card, int bufcnt) { QETH_DBF_TEXT(trace, 2, "realcbp"); if ((card->state != CARD_STATE_DOWN) && (card->state != CARD_STATE_RECOVER)) return -EPERM; /* TODO: steel/add buffers from/to a running card's buffer pool (?) */ qeth_clear_working_pool_list(card); qeth_free_buffer_pool(card); card->qdio.in_buf_pool.buf_count = bufcnt; card->qdio.init_pool.buf_count = bufcnt; return qeth_alloc_buffer_pool(card); } static int qeth_alloc_qdio_buffers(struct qeth_card *card) { int i, j; QETH_DBF_TEXT(setup, 2, "allcqdbf"); if (card->qdio.state == QETH_QDIO_ALLOCATED) return 0; card->qdio.in_q = kmalloc(sizeof(struct qeth_qdio_q), GFP_KERNEL|GFP_DMA); if (!card->qdio.in_q) return - ENOMEM; QETH_DBF_TEXT(setup, 2, "inq"); QETH_DBF_HEX(setup, 2, &card->qdio.in_q, sizeof(void *)); memset(card->qdio.in_q, 0, sizeof(struct qeth_qdio_q)); /* give inbound qeth_qdio_buffers their qdio_buffers */ for (i = 0; i < QDIO_MAX_BUFFERS_PER_Q; ++i) card->qdio.in_q->bufs[i].buffer = &card->qdio.in_q->qdio_bufs[i]; /* inbound buffer pool */ if (qeth_alloc_buffer_pool(card)){ kfree(card->qdio.in_q); return -ENOMEM; } /* outbound */ card->qdio.out_qs = kmalloc(card->qdio.no_out_queues * sizeof(struct qeth_qdio_out_q *), GFP_KERNEL); if (!card->qdio.out_qs){ qeth_free_buffer_pool(card); return -ENOMEM; } for (i = 0; i < card->qdio.no_out_queues; ++i){ card->qdio.out_qs[i] = kmalloc(sizeof(struct qeth_qdio_out_q), GFP_KERNEL|GFP_DMA); if (!card->qdio.out_qs[i]){ while (i > 0) kfree(card->qdio.out_qs[--i]); kfree(card->qdio.out_qs); return -ENOMEM; } QETH_DBF_TEXT_(setup, 2, "outq %i", i); QETH_DBF_HEX(setup, 2, &card->qdio.out_qs[i], sizeof(void *)); memset(card->qdio.out_qs[i], 0, sizeof(struct qeth_qdio_out_q)); card->qdio.out_qs[i]->queue_no = i; /* give outbound qeth_qdio_buffers their qdio_buffers */ for (j = 0; j < QDIO_MAX_BUFFERS_PER_Q; ++j){ card->qdio.out_qs[i]->bufs[j].buffer = &card->qdio.out_qs[i]->qdio_bufs[j]; skb_queue_head_init(&card->qdio.out_qs[i]->bufs[j]. skb_list); INIT_LIST_HEAD(&card->qdio.out_qs[i]->bufs[j].ctx_list); } } card->qdio.state = QETH_QDIO_ALLOCATED; return 0; } static void qeth_free_qdio_buffers(struct qeth_card *card) { int i, j; QETH_DBF_TEXT(trace, 2, "freeqdbf"); if (card->qdio.state == QETH_QDIO_UNINITIALIZED) return; kfree(card->qdio.in_q); /* inbound buffer pool */ qeth_free_buffer_pool(card); /* free outbound qdio_qs */ for (i = 0; i < card->qdio.no_out_queues; ++i){ for (j = 0; j < QDIO_MAX_BUFFERS_PER_Q; ++j) qeth_clear_output_buffer(card->qdio.out_qs[i], &card->qdio.out_qs[i]->bufs[j]); kfree(card->qdio.out_qs[i]); } kfree(card->qdio.out_qs); card->qdio.state = QETH_QDIO_UNINITIALIZED; } static void qeth_clear_qdio_buffers(struct qeth_card *card) { int i, j; QETH_DBF_TEXT(trace, 2, "clearqdbf"); /* clear outbound buffers to free skbs */ for (i = 0; i < card->qdio.no_out_queues; ++i) if (card->qdio.out_qs[i]){ for (j = 0; j < QDIO_MAX_BUFFERS_PER_Q; ++j) qeth_clear_output_buffer(card->qdio.out_qs[i], &card->qdio.out_qs[i]->bufs[j]); } } static void qeth_init_qdio_info(struct qeth_card *card) { QETH_DBF_TEXT(setup, 4, "intqdinf"); card->qdio.state = QETH_QDIO_UNINITIALIZED; /* inbound */ card->qdio.in_buf_size = QETH_IN_BUF_SIZE_DEFAULT; card->qdio.init_pool.buf_count = QETH_IN_BUF_COUNT_DEFAULT; card->qdio.in_buf_pool.buf_count = card->qdio.init_pool.buf_count; INIT_LIST_HEAD(&card->qdio.in_buf_pool.entry_list); INIT_LIST_HEAD(&card->qdio.init_pool.entry_list); } static int qeth_init_qdio_queues(struct qeth_card *card) { int i, j; int rc; QETH_DBF_TEXT(setup, 2, "initqdqs"); /* inbound queue */ memset(card->qdio.in_q->qdio_bufs, 0, QDIO_MAX_BUFFERS_PER_Q * sizeof(struct qdio_buffer)); qeth_initialize_working_pool_list(card); /*give only as many buffers to hardware as we have buffer pool entries*/ for (i = 0; i < card->qdio.in_buf_pool.buf_count - 1; ++i) qeth_init_input_buffer(card, &card->qdio.in_q->bufs[i]); card->qdio.in_q->next_buf_to_init = card->qdio.in_buf_pool.buf_count - 1; rc = do_QDIO(CARD_DDEV(card), QDIO_FLAG_SYNC_INPUT, 0, 0, card->qdio.in_buf_pool.buf_count - 1, NULL); if (rc) { QETH_DBF_TEXT_(setup, 2, "1err%d", rc); return rc; } rc = qdio_synchronize(CARD_DDEV(card), QDIO_FLAG_SYNC_INPUT, 0); if (rc) { QETH_DBF_TEXT_(setup, 2, "2err%d", rc); return rc; } /* outbound queue */ for (i = 0; i < card->qdio.no_out_queues; ++i){ memset(card->qdio.out_qs[i]->qdio_bufs, 0, QDIO_MAX_BUFFERS_PER_Q * sizeof(struct qdio_buffer)); for (j = 0; j < QDIO_MAX_BUFFERS_PER_Q; ++j){ qeth_clear_output_buffer(card->qdio.out_qs[i], &card->qdio.out_qs[i]->bufs[j]); } card->qdio.out_qs[i]->card = card; card->qdio.out_qs[i]->next_buf_to_fill = 0; card->qdio.out_qs[i]->do_pack = 0; atomic_set(&card->qdio.out_qs[i]->used_buffers,0); atomic_set(&card->qdio.out_qs[i]->set_pci_flags_count, 0); atomic_set(&card->qdio.out_qs[i]->state, QETH_OUT_Q_UNLOCKED); } return 0; } static int qeth_qdio_establish(struct qeth_card *card) { struct qdio_initialize init_data; char *qib_param_field; struct qdio_buffer **in_sbal_ptrs; struct qdio_buffer **out_sbal_ptrs; int i, j, k; int rc; QETH_DBF_TEXT(setup, 2, "qdioest"); qib_param_field = kmalloc(QDIO_MAX_BUFFERS_PER_Q * sizeof(char), GFP_KERNEL); if (!qib_param_field) return -ENOMEM; memset(qib_param_field, 0, QDIO_MAX_BUFFERS_PER_Q * sizeof(char)); qeth_create_qib_param_field(card, qib_param_field); qeth_create_qib_param_field_blkt(card, qib_param_field); in_sbal_ptrs = kmalloc(QDIO_MAX_BUFFERS_PER_Q * sizeof(void *), GFP_KERNEL); if (!in_sbal_ptrs) { kfree(qib_param_field); return -ENOMEM; } for(i = 0; i < QDIO_MAX_BUFFERS_PER_Q; ++i) in_sbal_ptrs[i] = (struct qdio_buffer *) virt_to_phys(card->qdio.in_q->bufs[i].buffer); out_sbal_ptrs = kmalloc(card->qdio.no_out_queues * QDIO_MAX_BUFFERS_PER_Q * sizeof(void *), GFP_KERNEL); if (!out_sbal_ptrs) { kfree(in_sbal_ptrs); kfree(qib_param_field); return -ENOMEM; } for(i = 0, k = 0; i < card->qdio.no_out_queues; ++i) for(j = 0; j < QDIO_MAX_BUFFERS_PER_Q; ++j, ++k){ out_sbal_ptrs[k] = (struct qdio_buffer *) virt_to_phys(card->qdio.out_qs[i]-> bufs[j].buffer); } memset(&init_data, 0, sizeof(struct qdio_initialize)); init_data.cdev = CARD_DDEV(card); init_data.q_format = qeth_get_qdio_q_format(card); init_data.qib_param_field_format = 0; init_data.qib_param_field = qib_param_field; init_data.min_input_threshold = QETH_MIN_INPUT_THRESHOLD; init_data.max_input_threshold = QETH_MAX_INPUT_THRESHOLD; init_data.min_output_threshold = QETH_MIN_OUTPUT_THRESHOLD; init_data.max_output_threshold = QETH_MAX_OUTPUT_THRESHOLD; init_data.no_input_qs = 1; init_data.no_output_qs = card->qdio.no_out_queues; init_data.input_handler = (qdio_handler_t *) qeth_qdio_input_handler; init_data.output_handler = (qdio_handler_t *) qeth_qdio_output_handler; init_data.int_parm = (unsigned long) card; init_data.flags = QDIO_INBOUND_0COPY_SBALS | QDIO_OUTBOUND_0COPY_SBALS | QDIO_USE_OUTBOUND_PCIS; init_data.input_sbal_addr_array = (void **) in_sbal_ptrs; init_data.output_sbal_addr_array = (void **) out_sbal_ptrs; if (!(rc = qdio_initialize(&init_data))) card->qdio.state = QETH_QDIO_ESTABLISHED; kfree(out_sbal_ptrs); kfree(in_sbal_ptrs); kfree(qib_param_field); return rc; } static int qeth_qdio_activate(struct qeth_card *card) { QETH_DBF_TEXT(setup,3,"qdioact"); return qdio_activate(CARD_DDEV(card), 0); } static int qeth_clear_channel(struct qeth_channel *channel) { unsigned long flags; struct qeth_card *card; int rc; QETH_DBF_TEXT(trace,3,"clearch"); card = CARD_FROM_CDEV(channel->ccwdev); spin_lock_irqsave(get_ccwdev_lock(channel->ccwdev), flags); rc = ccw_device_clear(channel->ccwdev, QETH_CLEAR_CHANNEL_PARM); spin_unlock_irqrestore(get_ccwdev_lock(channel->ccwdev), flags); if (rc) return rc; rc = wait_event_interruptible_timeout(card->wait_q, channel->state==CH_STATE_STOPPED, QETH_TIMEOUT); if (rc == -ERESTARTSYS) return rc; if (channel->state != CH_STATE_STOPPED) return -ETIME; channel->state = CH_STATE_DOWN; return 0; } static int qeth_halt_channel(struct qeth_channel *channel) { unsigned long flags; struct qeth_card *card; int rc; QETH_DBF_TEXT(trace,3,"haltch"); card = CARD_FROM_CDEV(channel->ccwdev); spin_lock_irqsave(get_ccwdev_lock(channel->ccwdev), flags); rc = ccw_device_halt(channel->ccwdev, QETH_HALT_CHANNEL_PARM); spin_unlock_irqrestore(get_ccwdev_lock(channel->ccwdev), flags); if (rc) return rc; rc = wait_event_interruptible_timeout(card->wait_q, channel->state==CH_STATE_HALTED, QETH_TIMEOUT); if (rc == -ERESTARTSYS) return rc; if (channel->state != CH_STATE_HALTED) return -ETIME; return 0; } static int qeth_halt_channels(struct qeth_card *card) { int rc1 = 0, rc2=0, rc3 = 0; QETH_DBF_TEXT(trace,3,"haltchs"); rc1 = qeth_halt_channel(&card->read); rc2 = qeth_halt_channel(&card->write); rc3 = qeth_halt_channel(&card->data); if (rc1) return rc1; if (rc2) return rc2; return rc3; } static int qeth_clear_channels(struct qeth_card *card) { int rc1 = 0, rc2=0, rc3 = 0; QETH_DBF_TEXT(trace,3,"clearchs"); rc1 = qeth_clear_channel(&card->read); rc2 = qeth_clear_channel(&card->write); rc3 = qeth_clear_channel(&card->data); if (rc1) return rc1; if (rc2) return rc2; return rc3; } static int qeth_clear_halt_card(struct qeth_card *card, int halt) { int rc = 0; QETH_DBF_TEXT(trace,3,"clhacrd"); QETH_DBF_HEX(trace, 3, &card, sizeof(void *)); if (halt) rc = qeth_halt_channels(card); if (rc) return rc; return qeth_clear_channels(card); } static int qeth_qdio_clear_card(struct qeth_card *card, int use_halt) { int rc = 0; QETH_DBF_TEXT(trace,3,"qdioclr"); if (card->qdio.state == QETH_QDIO_ESTABLISHED){ if ((rc = qdio_cleanup(CARD_DDEV(card), (card->info.type == QETH_CARD_TYPE_IQD) ? QDIO_FLAG_CLEANUP_USING_HALT : QDIO_FLAG_CLEANUP_USING_CLEAR))) QETH_DBF_TEXT_(trace, 3, "1err%d", rc); card->qdio.state = QETH_QDIO_ALLOCATED; } if ((rc = qeth_clear_halt_card(card, use_halt))) QETH_DBF_TEXT_(trace, 3, "2err%d", rc); card->state = CARD_STATE_DOWN; return rc; } static int qeth_dm_act(struct qeth_card *card) { int rc; struct qeth_cmd_buffer *iob; QETH_DBF_TEXT(setup,2,"dmact"); iob = qeth_wait_for_buffer(&card->write); memcpy(iob->data, DM_ACT, DM_ACT_SIZE); memcpy(QETH_DM_ACT_DEST_ADDR(iob->data), &card->token.cm_connection_r, QETH_MPC_TOKEN_LENGTH); memcpy(QETH_DM_ACT_CONNECTION_TOKEN(iob->data), &card->token.ulp_connection_r, QETH_MPC_TOKEN_LENGTH); rc = qeth_send_control_data(card, DM_ACT_SIZE, iob, NULL, NULL); return rc; } static int qeth_mpc_initialize(struct qeth_card *card) { int rc; QETH_DBF_TEXT(setup,2,"mpcinit"); if ((rc = qeth_issue_next_read(card))){ QETH_DBF_TEXT_(setup, 2, "1err%d", rc); return rc; } if ((rc = qeth_cm_enable(card))){ QETH_DBF_TEXT_(setup, 2, "2err%d", rc); goto out_qdio; } if ((rc = qeth_cm_setup(card))){ QETH_DBF_TEXT_(setup, 2, "3err%d", rc); goto out_qdio; } if ((rc = qeth_ulp_enable(card))){ QETH_DBF_TEXT_(setup, 2, "4err%d", rc); goto out_qdio; } if ((rc = qeth_ulp_setup(card))){ QETH_DBF_TEXT_(setup, 2, "5err%d", rc); goto out_qdio; } if ((rc = qeth_alloc_qdio_buffers(card))){ QETH_DBF_TEXT_(setup, 2, "5err%d", rc); goto out_qdio; } if ((rc = qeth_qdio_establish(card))){ QETH_DBF_TEXT_(setup, 2, "6err%d", rc); qeth_free_qdio_buffers(card); goto out_qdio; } if ((rc = qeth_qdio_activate(card))){ QETH_DBF_TEXT_(setup, 2, "7err%d", rc); goto out_qdio; } if ((rc = qeth_dm_act(card))){ QETH_DBF_TEXT_(setup, 2, "8err%d", rc); goto out_qdio; } return 0; out_qdio: qeth_qdio_clear_card(card, card->info.type!=QETH_CARD_TYPE_IQD); return rc; } static struct net_device * qeth_get_netdevice(enum qeth_card_types type, enum qeth_link_types linktype) { struct net_device *dev = NULL; switch (type) { case QETH_CARD_TYPE_OSAE: switch (linktype) { case QETH_LINK_TYPE_LANE_TR: case QETH_LINK_TYPE_HSTR: #ifdef CONFIG_TR dev = alloc_trdev(0); #endif /* CONFIG_TR */ break; default: dev = alloc_etherdev(0); } break; case QETH_CARD_TYPE_IQD: dev = alloc_netdev(0, "hsi%d", ether_setup); break; case QETH_CARD_TYPE_OSN: dev = alloc_netdev(0, "osn%d", ether_setup); break; default: dev = alloc_etherdev(0); } return dev; } /*hard_header fake function; used in case fake_ll is set */ static int qeth_fake_header(struct sk_buff *skb, struct net_device *dev, unsigned short type, void *daddr, void *saddr, unsigned len) { if(dev->type == ARPHRD_IEEE802_TR){ struct trh_hdr *hdr; hdr = (struct trh_hdr *)skb_push(skb, QETH_FAKE_LL_LEN_TR); memcpy(hdr->saddr, dev->dev_addr, TR_ALEN); memcpy(hdr->daddr, "FAKELL", TR_ALEN); return QETH_FAKE_LL_LEN_TR; } else { struct ethhdr *hdr; hdr = (struct ethhdr *)skb_push(skb, QETH_FAKE_LL_LEN_ETH); memcpy(hdr->h_source, dev->dev_addr, ETH_ALEN); memcpy(hdr->h_dest, "FAKELL", ETH_ALEN); if (type != ETH_P_802_3) hdr->h_proto = htons(type); else hdr->h_proto = htons(len); return QETH_FAKE_LL_LEN_ETH; } } static inline int qeth_send_packet(struct qeth_card *, struct sk_buff *); static int qeth_hard_start_xmit(struct sk_buff *skb, struct net_device *dev) { int rc; struct qeth_card *card; QETH_DBF_TEXT(trace, 6, "hrdstxmi"); card = (struct qeth_card *)dev->priv; if (skb==NULL) { card->stats.tx_dropped++; card->stats.tx_errors++; /* return OK; otherwise ksoftirqd goes to 100% */ return NETDEV_TX_OK; } if ((card->state != CARD_STATE_UP) || !card->lan_online) { card->stats.tx_dropped++; card->stats.tx_errors++; card->stats.tx_carrier_errors++; dev_kfree_skb_any(skb); /* return OK; otherwise ksoftirqd goes to 100% */ return NETDEV_TX_OK; } #ifdef CONFIG_QETH_PERF_STATS card->perf_stats.outbound_cnt++; card->perf_stats.outbound_start_time = qeth_get_micros(); #endif netif_stop_queue(dev); if ((rc = qeth_send_packet(card, skb))) { if (rc == -EBUSY) { return NETDEV_TX_BUSY; } else { card->stats.tx_errors++; card->stats.tx_dropped++; dev_kfree_skb_any(skb); /*set to OK; otherwise ksoftirqd goes to 100% */ rc = NETDEV_TX_OK; } } netif_wake_queue(dev); #ifdef CONFIG_QETH_PERF_STATS card->perf_stats.outbound_time += qeth_get_micros() - card->perf_stats.outbound_start_time; #endif return rc; } static int qeth_verify_vlan_dev(struct net_device *dev, struct qeth_card *card) { int rc = 0; #ifdef CONFIG_QETH_VLAN struct vlan_group *vg; int i; if (!(vg = card->vlangrp)) return rc; for (i = 0; i < VLAN_GROUP_ARRAY_LEN; i++){ if (vg->vlan_devices[i] == dev){ rc = QETH_VLAN_CARD; break; } } if (rc && !(VLAN_DEV_INFO(dev)->real_dev->priv == (void *)card)) return 0; #endif return rc; } static int qeth_verify_dev(struct net_device *dev) { struct qeth_card *card; unsigned long flags; int rc = 0; read_lock_irqsave(&qeth_card_list.rwlock, flags); list_for_each_entry(card, &qeth_card_list.list, list){ if (card->dev == dev){ rc = QETH_REAL_CARD; break; } rc = qeth_verify_vlan_dev(dev, card); if (rc) break; } read_unlock_irqrestore(&qeth_card_list.rwlock, flags); return rc; } static struct qeth_card * qeth_get_card_from_dev(struct net_device *dev) { struct qeth_card *card = NULL; int rc; rc = qeth_verify_dev(dev); if (rc == QETH_REAL_CARD) card = (struct qeth_card *)dev->priv; else if (rc == QETH_VLAN_CARD) card = (struct qeth_card *) VLAN_DEV_INFO(dev)->real_dev->priv; QETH_DBF_TEXT_(trace, 4, "%d", rc); return card ; } static void qeth_tx_timeout(struct net_device *dev) { struct qeth_card *card; card = (struct qeth_card *) dev->priv; card->stats.tx_errors++; qeth_schedule_recovery(card); } static int qeth_open(struct net_device *dev) { struct qeth_card *card; QETH_DBF_TEXT(trace, 4, "qethopen"); card = (struct qeth_card *) dev->priv; if (card->state != CARD_STATE_SOFTSETUP) return -ENODEV; if ( (card->info.type != QETH_CARD_TYPE_OSN) && (card->options.layer2) && (!(card->info.mac_bits & QETH_LAYER2_MAC_REGISTERED))) { QETH_DBF_TEXT(trace,4,"nomacadr"); return -EPERM; } card->dev->flags |= IFF_UP; netif_start_queue(dev); card->data.state = CH_STATE_UP; card->state = CARD_STATE_UP; if (!card->lan_online && netif_carrier_ok(dev)) netif_carrier_off(dev); return 0; } static int qeth_stop(struct net_device *dev) { struct qeth_card *card; QETH_DBF_TEXT(trace, 4, "qethstop"); card = (struct qeth_card *) dev->priv; netif_stop_queue(dev); card->dev->flags &= ~IFF_UP; if (card->state == CARD_STATE_UP) card->state = CARD_STATE_SOFTSETUP; return 0; } static inline int qeth_get_cast_type(struct qeth_card *card, struct sk_buff *skb) { int cast_type = RTN_UNSPEC; if (card->info.type == QETH_CARD_TYPE_OSN) return cast_type; if (skb->dst && skb->dst->neighbour){ cast_type = skb->dst->neighbour->type; if ((cast_type == RTN_BROADCAST) || (cast_type == RTN_MULTICAST) || (cast_type == RTN_ANYCAST)) return cast_type; else return RTN_UNSPEC; } /* try something else */ if (skb->protocol == ETH_P_IPV6) return (skb->nh.raw[24] == 0xff) ? RTN_MULTICAST : 0; else if (skb->protocol == ETH_P_IP) return ((skb->nh.raw[16] & 0xf0) == 0xe0) ? RTN_MULTICAST : 0; /* ... */ if (!memcmp(skb->data, skb->dev->broadcast, 6)) return RTN_BROADCAST; else { u16 hdr_mac; hdr_mac = *((u16 *)skb->data); /* tr multicast? */ switch (card->info.link_type) { case QETH_LINK_TYPE_HSTR: case QETH_LINK_TYPE_LANE_TR: if ((hdr_mac == QETH_TR_MAC_NC) || (hdr_mac == QETH_TR_MAC_C)) return RTN_MULTICAST; /* eth or so multicast? */ default: if ((hdr_mac == QETH_ETH_MAC_V4) || (hdr_mac == QETH_ETH_MAC_V6)) return RTN_MULTICAST; } } return cast_type; } static inline int qeth_get_priority_queue(struct qeth_card *card, struct sk_buff *skb, int ipv, int cast_type) { if (!ipv && (card->info.type == QETH_CARD_TYPE_OSAE)) return card->qdio.default_out_queue; switch (card->qdio.no_out_queues) { case 4: if (cast_type && card->info.is_multicast_different) return card->info.is_multicast_different & (card->qdio.no_out_queues - 1); if (card->qdio.do_prio_queueing && (ipv == 4)) { if (card->qdio.do_prio_queueing==QETH_PRIO_Q_ING_TOS){ if (skb->nh.iph->tos & IP_TOS_NOTIMPORTANT) return 3; if (skb->nh.iph->tos & IP_TOS_HIGHRELIABILITY) return 2; if (skb->nh.iph->tos & IP_TOS_HIGHTHROUGHPUT) return 1; if (skb->nh.iph->tos & IP_TOS_LOWDELAY) return 0; } if (card->qdio.do_prio_queueing==QETH_PRIO_Q_ING_PREC) return 3 - (skb->nh.iph->tos >> 6); } else if (card->qdio.do_prio_queueing && (ipv == 6)) { /* TODO: IPv6!!! */ } return card->qdio.default_out_queue; case 1: /* fallthrough for single-out-queue 1920-device */ default: return card->qdio.default_out_queue; } } static inline int qeth_get_ip_version(struct sk_buff *skb) { switch (skb->protocol) { case ETH_P_IPV6: return 6; case ETH_P_IP: return 4; default: return 0; } } static inline int qeth_prepare_skb(struct qeth_card *card, struct sk_buff **skb, struct qeth_hdr **hdr, int ipv) { int rc = 0; #ifdef CONFIG_QETH_VLAN u16 *tag; #endif QETH_DBF_TEXT(trace, 6, "prepskb"); if (card->info.type == QETH_CARD_TYPE_OSN) { *hdr = (struct qeth_hdr *)(*skb)->data; return rc; } rc = qeth_realloc_headroom(card, skb, sizeof(struct qeth_hdr)); if (rc) return rc; #ifdef CONFIG_QETH_VLAN if (card->vlangrp && vlan_tx_tag_present(*skb) && ((ipv == 6) || card->options.layer2) ) { /* * Move the mac addresses (6 bytes src, 6 bytes dest) * to the beginning of the new header. We are using three * memcpys instead of one memmove to save cycles. */ skb_push(*skb, VLAN_HLEN); memcpy((*skb)->data, (*skb)->data + 4, 4); memcpy((*skb)->data + 4, (*skb)->data + 8, 4); memcpy((*skb)->data + 8, (*skb)->data + 12, 4); tag = (u16 *)((*skb)->data + 12); /* * first two bytes = ETH_P_8021Q (0x8100) * second two bytes = VLANID */ *tag = __constant_htons(ETH_P_8021Q); *(tag + 1) = htons(vlan_tx_tag_get(*skb)); } #endif *hdr = (struct qeth_hdr *) qeth_push_skb(card, skb, sizeof(struct qeth_hdr)); if (hdr == NULL) return -EINVAL; return 0; } static inline u8 qeth_get_qeth_hdr_flags4(int cast_type) { if (cast_type == RTN_MULTICAST) return QETH_CAST_MULTICAST; if (cast_type == RTN_BROADCAST) return QETH_CAST_BROADCAST; return QETH_CAST_UNICAST; } static inline u8 qeth_get_qeth_hdr_flags6(int cast_type) { u8 ct = QETH_HDR_PASSTHRU | QETH_HDR_IPV6; if (cast_type == RTN_MULTICAST) return ct | QETH_CAST_MULTICAST; if (cast_type == RTN_ANYCAST) return ct | QETH_CAST_ANYCAST; if (cast_type == RTN_BROADCAST) return ct | QETH_CAST_BROADCAST; return ct | QETH_CAST_UNICAST; } static inline void qeth_layer2_get_packet_type(struct qeth_card *card, struct qeth_hdr *hdr, struct sk_buff *skb) { __u16 hdr_mac; if (!memcmp(skb->data+QETH_HEADER_SIZE, skb->dev->broadcast,6)) { /* broadcast? */ *(__u32 *)hdr->hdr.l2.flags |= QETH_LAYER2_FLAG_BROADCAST << 8; return; } hdr_mac=*((__u16*)skb->data); /* tr multicast? */ switch (card->info.link_type) { case QETH_LINK_TYPE_HSTR: case QETH_LINK_TYPE_LANE_TR: if ((hdr_mac == QETH_TR_MAC_NC) || (hdr_mac == QETH_TR_MAC_C) ) *(__u32 *)hdr->hdr.l2.flags |= QETH_LAYER2_FLAG_MULTICAST << 8; else *(__u32 *)hdr->hdr.l2.flags |= QETH_LAYER2_FLAG_UNICAST << 8; break; /* eth or so multicast? */ default: if ( (hdr_mac==QETH_ETH_MAC_V4) || (hdr_mac==QETH_ETH_MAC_V6) ) *(__u32 *)hdr->hdr.l2.flags |= QETH_LAYER2_FLAG_MULTICAST << 8; else *(__u32 *)hdr->hdr.l2.flags |= QETH_LAYER2_FLAG_UNICAST << 8; } } static inline void qeth_layer2_fill_header(struct qeth_card *card, struct qeth_hdr *hdr, struct sk_buff *skb, int cast_type) { memset(hdr, 0, sizeof(struct qeth_hdr)); hdr->hdr.l2.id = QETH_HEADER_TYPE_LAYER2; /* set byte 0 to "0x02" and byte 3 to casting flags */ if (cast_type==RTN_MULTICAST) *(__u32 *)hdr->hdr.l2.flags |= QETH_LAYER2_FLAG_MULTICAST << 8; else if (cast_type==RTN_BROADCAST) *(__u32 *)hdr->hdr.l2.flags |= QETH_LAYER2_FLAG_BROADCAST << 8; else qeth_layer2_get_packet_type(card, hdr, skb); hdr->hdr.l2.pkt_length = skb->len-QETH_HEADER_SIZE; #ifdef CONFIG_QETH_VLAN /* VSWITCH relies on the VLAN * information to be present in * the QDIO header */ if ((card->vlangrp != NULL) && vlan_tx_tag_present(skb)) { *(__u32 *)hdr->hdr.l2.flags |= QETH_LAYER2_FLAG_VLAN << 8; hdr->hdr.l2.vlan_id = vlan_tx_tag_get(skb); } #endif } void qeth_fill_header(struct qeth_card *card, struct qeth_hdr *hdr, struct sk_buff *skb, int ipv, int cast_type) { QETH_DBF_TEXT(trace, 6, "fillhdr"); memset(hdr, 0, sizeof(struct qeth_hdr)); if (card->options.layer2) { qeth_layer2_fill_header(card, hdr, skb, cast_type); return; } hdr->hdr.l3.id = QETH_HEADER_TYPE_LAYER3; hdr->hdr.l3.ext_flags = 0; #ifdef CONFIG_QETH_VLAN /* * before we're going to overwrite this location with next hop ip. * v6 uses passthrough, v4 sets the tag in the QDIO header. */ if (card->vlangrp && vlan_tx_tag_present(skb)) { hdr->hdr.l3.ext_flags = (ipv == 4) ? QETH_HDR_EXT_VLAN_FRAME : QETH_HDR_EXT_INCLUDE_VLAN_TAG; hdr->hdr.l3.vlan_id = vlan_tx_tag_get(skb); } #endif /* CONFIG_QETH_VLAN */ hdr->hdr.l3.length = skb->len - sizeof(struct qeth_hdr); if (ipv == 4) { /* IPv4 */ hdr->hdr.l3.flags = qeth_get_qeth_hdr_flags4(cast_type); memset(hdr->hdr.l3.dest_addr, 0, 12); if ((skb->dst) && (skb->dst->neighbour)) { *((u32 *) (&hdr->hdr.l3.dest_addr[12])) = *((u32 *) skb->dst->neighbour->primary_key); } else { /* fill in destination address used in ip header */ *((u32 *) (&hdr->hdr.l3.dest_addr[12])) = skb->nh.iph->daddr; } } else if (ipv == 6) { /* IPv6 or passthru */ hdr->hdr.l3.flags = qeth_get_qeth_hdr_flags6(cast_type); if ((skb->dst) && (skb->dst->neighbour)) { memcpy(hdr->hdr.l3.dest_addr, skb->dst->neighbour->primary_key, 16); } else { /* fill in destination address used in ip header */ memcpy(hdr->hdr.l3.dest_addr, &skb->nh.ipv6h->daddr, 16); } } else { /* passthrough */ if((skb->dev->type == ARPHRD_IEEE802_TR) && !memcmp(skb->data + sizeof(struct qeth_hdr) + sizeof(__u16), skb->dev->broadcast, 6)) { hdr->hdr.l3.flags = QETH_CAST_BROADCAST | QETH_HDR_PASSTHRU; } else if (!memcmp(skb->data + sizeof(struct qeth_hdr), skb->dev->broadcast, 6)) { /* broadcast? */ hdr->hdr.l3.flags = QETH_CAST_BROADCAST | QETH_HDR_PASSTHRU; } else { hdr->hdr.l3.flags = (cast_type == RTN_MULTICAST) ? QETH_CAST_MULTICAST | QETH_HDR_PASSTHRU : QETH_CAST_UNICAST | QETH_HDR_PASSTHRU; } } } static inline void __qeth_fill_buffer(struct sk_buff *skb, struct qdio_buffer *buffer, int is_tso, int *next_element_to_fill) { int length = skb->len; int length_here; int element; char *data; int first_lap ; element = *next_element_to_fill; data = skb->data; first_lap = (is_tso == 0 ? 1 : 0); while (length > 0) { /* length_here is the remaining amount of data in this page */ length_here = PAGE_SIZE - ((unsigned long) data % PAGE_SIZE); if (length < length_here) length_here = length; buffer->element[element].addr = data; buffer->element[element].length = length_here; length -= length_here; if (!length) { if (first_lap) buffer->element[element].flags = 0; else buffer->element[element].flags = SBAL_FLAGS_LAST_FRAG; } else { if (first_lap) buffer->element[element].flags = SBAL_FLAGS_FIRST_FRAG; else buffer->element[element].flags = SBAL_FLAGS_MIDDLE_FRAG; } data += length_here; element++; first_lap = 0; } *next_element_to_fill = element; } static inline int qeth_fill_buffer(struct qeth_qdio_out_q *queue, struct qeth_qdio_out_buffer *buf, struct sk_buff *skb) { struct qdio_buffer *buffer; struct qeth_hdr_tso *hdr; int flush_cnt = 0, hdr_len, large_send = 0; QETH_DBF_TEXT(trace, 6, "qdfillbf"); buffer = buf->buffer; atomic_inc(&skb->users); skb_queue_tail(&buf->skb_list, skb); hdr = (struct qeth_hdr_tso *) skb->data; /*check first on TSO ....*/ if (hdr->hdr.hdr.l3.id == QETH_HEADER_TYPE_TSO) { int element = buf->next_element_to_fill; hdr_len = sizeof(struct qeth_hdr_tso) + hdr->ext.dg_hdr_len; /*fill first buffer entry only with header information */ buffer->element[element].addr = skb->data; buffer->element[element].length = hdr_len; buffer->element[element].flags = SBAL_FLAGS_FIRST_FRAG; buf->next_element_to_fill++; skb->data += hdr_len; skb->len -= hdr_len; large_send = 1; } if (skb_shinfo(skb)->nr_frags == 0) __qeth_fill_buffer(skb, buffer, large_send, (int *)&buf->next_element_to_fill); else __qeth_fill_buffer_frag(skb, buffer, large_send, (int *)&buf->next_element_to_fill); if (!queue->do_pack) { QETH_DBF_TEXT(trace, 6, "fillbfnp"); /* set state to PRIMED -> will be flushed */ atomic_set(&buf->state, QETH_QDIO_BUF_PRIMED); flush_cnt = 1; } else { QETH_DBF_TEXT(trace, 6, "fillbfpa"); #ifdef CONFIG_QETH_PERF_STATS queue->card->perf_stats.skbs_sent_pack++; #endif if (buf->next_element_to_fill >= QETH_MAX_BUFFER_ELEMENTS(queue->card)) { /* * packed buffer if full -> set state PRIMED * -> will be flushed */ atomic_set(&buf->state, QETH_QDIO_BUF_PRIMED); flush_cnt = 1; } } return flush_cnt; } static inline int qeth_do_send_packet_fast(struct qeth_card *card, struct qeth_qdio_out_q *queue, struct sk_buff *skb, struct qeth_hdr *hdr, int elements_needed, struct qeth_eddp_context *ctx) { struct qeth_qdio_out_buffer *buffer; int buffers_needed = 0; int flush_cnt = 0; int index; QETH_DBF_TEXT(trace, 6, "dosndpfa"); /* spin until we get the queue ... */ while (atomic_compare_and_swap(QETH_OUT_Q_UNLOCKED, QETH_OUT_Q_LOCKED, &queue->state)); /* ... now we've got the queue */ index = queue->next_buf_to_fill; buffer = &queue->bufs[queue->next_buf_to_fill]; /* * check if buffer is empty to make sure that we do not 'overtake' * ourselves and try to fill a buffer that is already primed */ if (atomic_read(&buffer->state) != QETH_QDIO_BUF_EMPTY) { card->stats.tx_dropped++; atomic_set(&queue->state, QETH_OUT_Q_UNLOCKED); return -EBUSY; } if (ctx == NULL) queue->next_buf_to_fill = (queue->next_buf_to_fill + 1) % QDIO_MAX_BUFFERS_PER_Q; else { buffers_needed = qeth_eddp_check_buffers_for_context(queue,ctx); if (buffers_needed < 0) { card->stats.tx_dropped++; atomic_set(&queue->state, QETH_OUT_Q_UNLOCKED); return -EBUSY; } queue->next_buf_to_fill = (queue->next_buf_to_fill + buffers_needed) % QDIO_MAX_BUFFERS_PER_Q; } atomic_set(&queue->state, QETH_OUT_Q_UNLOCKED); if (ctx == NULL) { qeth_fill_buffer(queue, buffer, skb); qeth_flush_buffers(queue, 0, index, 1); } else { flush_cnt = qeth_eddp_fill_buffer(queue, ctx, index); WARN_ON(buffers_needed != flush_cnt); qeth_flush_buffers(queue, 0, index, flush_cnt); } return 0; } static inline int qeth_do_send_packet(struct qeth_card *card, struct qeth_qdio_out_q *queue, struct sk_buff *skb, struct qeth_hdr *hdr, int elements_needed, struct qeth_eddp_context *ctx) { struct qeth_qdio_out_buffer *buffer; int start_index; int flush_count = 0; int do_pack = 0; int tmp; int rc = 0; QETH_DBF_TEXT(trace, 6, "dosndpkt"); /* spin until we get the queue ... */ while (atomic_compare_and_swap(QETH_OUT_Q_UNLOCKED, QETH_OUT_Q_LOCKED, &queue->state)); start_index = queue->next_buf_to_fill; buffer = &queue->bufs[queue->next_buf_to_fill]; /* * check if buffer is empty to make sure that we do not 'overtake' * ourselves and try to fill a buffer that is already primed */ if (atomic_read(&buffer->state) != QETH_QDIO_BUF_EMPTY){ card->stats.tx_dropped++; atomic_set(&queue->state, QETH_OUT_Q_UNLOCKED); return -EBUSY; } /* check if we need to switch packing state of this queue */ qeth_switch_to_packing_if_needed(queue); if (queue->do_pack){ do_pack = 1; if (ctx == NULL) { /* does packet fit in current buffer? */ if((QETH_MAX_BUFFER_ELEMENTS(card) - buffer->next_element_to_fill) < elements_needed){ /* ... no -> set state PRIMED */ atomic_set(&buffer->state,QETH_QDIO_BUF_PRIMED); flush_count++; queue->next_buf_to_fill = (queue->next_buf_to_fill + 1) % QDIO_MAX_BUFFERS_PER_Q; buffer = &queue->bufs[queue->next_buf_to_fill]; /* we did a step forward, so check buffer state * again */ if (atomic_read(&buffer->state) != QETH_QDIO_BUF_EMPTY){ card->stats.tx_dropped++; qeth_flush_buffers(queue, 0, start_index, flush_count); atomic_set(&queue->state, QETH_OUT_Q_UNLOCKED); return -EBUSY; } } } else { /* check if we have enough elements (including following * free buffers) to handle eddp context */ if (qeth_eddp_check_buffers_for_context(queue,ctx) < 0){ printk("eddp tx_dropped 1\n"); card->stats.tx_dropped++; rc = -EBUSY; goto out; } } } if (ctx == NULL) tmp = qeth_fill_buffer(queue, buffer, skb); else { tmp = qeth_eddp_fill_buffer(queue,ctx,queue->next_buf_to_fill); if (tmp < 0) { printk("eddp tx_dropped 2\n"); card->stats.tx_dropped++; rc = - EBUSY; goto out; } } queue->next_buf_to_fill = (queue->next_buf_to_fill + tmp) % QDIO_MAX_BUFFERS_PER_Q; flush_count += tmp; out: if (flush_count) qeth_flush_buffers(queue, 0, start_index, flush_count); else if (!atomic_read(&queue->set_pci_flags_count)) atomic_swap(&queue->state, QETH_OUT_Q_LOCKED_FLUSH); /* * queue->state will go from LOCKED -> UNLOCKED or from * LOCKED_FLUSH -> LOCKED if output_handler wanted to 'notify' us * (switch packing state or flush buffer to get another pci flag out). * In that case we will enter this loop */ while (atomic_dec_return(&queue->state)){ flush_count = 0; start_index = queue->next_buf_to_fill; /* check if we can go back to non-packing state */ flush_count += qeth_switch_to_nonpacking_if_needed(queue); /* * check if we need to flush a packing buffer to get a pci * flag out on the queue */ if (!flush_count && !atomic_read(&queue->set_pci_flags_count)) flush_count += qeth_flush_buffers_on_no_pci(queue); if (flush_count) qeth_flush_buffers(queue, 0, start_index, flush_count); } /* at this point the queue is UNLOCKED again */ #ifdef CONFIG_QETH_PERF_STATS if (do_pack) queue->card->perf_stats.bufs_sent_pack += flush_count; #endif /* CONFIG_QETH_PERF_STATS */ return rc; } static inline int qeth_get_elements_no(struct qeth_card *card, void *hdr, struct sk_buff *skb, int elems) { int elements_needed = 0; if (skb_shinfo(skb)->nr_frags > 0) { elements_needed = (skb_shinfo(skb)->nr_frags + 1); } if (elements_needed == 0 ) elements_needed = 1 + (((((unsigned long) hdr) % PAGE_SIZE) + skb->len) >> PAGE_SHIFT); if ((elements_needed + elems) > QETH_MAX_BUFFER_ELEMENTS(card)){ PRINT_ERR("qeth_do_send_packet: invalid size of " "IP packet (Number=%d / Length=%d). Discarded.\n", (elements_needed+elems), skb->len); return 0; } return elements_needed; } static inline int qeth_send_packet(struct qeth_card *card, struct sk_buff *skb) { int ipv = 0; int cast_type; struct qeth_qdio_out_q *queue; struct qeth_hdr *hdr = NULL; int elements_needed = 0; enum qeth_large_send_types large_send = QETH_LARGE_SEND_NO; struct qeth_eddp_context *ctx = NULL; int rc; QETH_DBF_TEXT(trace, 6, "sendpkt"); if (!card->options.layer2) { ipv = qeth_get_ip_version(skb); if ((card->dev->hard_header == qeth_fake_header) && ipv) { if ((skb = qeth_pskb_unshare(skb,GFP_ATOMIC)) == NULL) { card->stats.tx_dropped++; dev_kfree_skb_irq(skb); return 0; } if(card->dev->type == ARPHRD_IEEE802_TR){ skb_pull(skb, QETH_FAKE_LL_LEN_TR); } else { skb_pull(skb, QETH_FAKE_LL_LEN_ETH); } } } if ((card->info.type == QETH_CARD_TYPE_OSN) && (skb->protocol == htons(ETH_P_IPV6))) { dev_kfree_skb_any(skb); return 0; } cast_type = qeth_get_cast_type(card, skb); if ((cast_type == RTN_BROADCAST) && (card->info.broadcast_capable == 0)){ card->stats.tx_dropped++; card->stats.tx_errors++; dev_kfree_skb_any(skb); return NETDEV_TX_OK; } queue = card->qdio.out_qs [qeth_get_priority_queue(card, skb, ipv, cast_type)]; if (skb_shinfo(skb)->tso_size) large_send = card->options.large_send; /*are we able to do TSO ? If so ,prepare and send it from here */ if ((large_send == QETH_LARGE_SEND_TSO) && (cast_type == RTN_UNSPEC)) { rc = qeth_tso_prepare_packet(card, skb, ipv, cast_type); if (rc) { card->stats.tx_dropped++; card->stats.tx_errors++; dev_kfree_skb_any(skb); return NETDEV_TX_OK; } elements_needed++; } else { if ((rc = qeth_prepare_skb(card, &skb, &hdr, ipv))) { QETH_DBF_TEXT_(trace, 4, "pskbe%d", rc); return rc; } if (card->info.type != QETH_CARD_TYPE_OSN) qeth_fill_header(card, hdr, skb, ipv, cast_type); } if (large_send == QETH_LARGE_SEND_EDDP) { ctx = qeth_eddp_create_context(card, skb, hdr); if (ctx == NULL) { PRINT_WARN("could not create eddp context\n"); return -EINVAL; } } else { int elems = qeth_get_elements_no(card,(void*) hdr, skb, elements_needed); if (!elems) return -EINVAL; elements_needed += elems; } if (card->info.type != QETH_CARD_TYPE_IQD) rc = qeth_do_send_packet(card, queue, skb, hdr, elements_needed, ctx); else rc = qeth_do_send_packet_fast(card, queue, skb, hdr, elements_needed, ctx); if (!rc){ card->stats.tx_packets++; card->stats.tx_bytes += skb->len; #ifdef CONFIG_QETH_PERF_STATS if (skb_shinfo(skb)->tso_size && !(large_send == QETH_LARGE_SEND_NO)) { card->perf_stats.large_send_bytes += skb->len; card->perf_stats.large_send_cnt++; } if (skb_shinfo(skb)->nr_frags > 0){ card->perf_stats.sg_skbs_sent++; /* nr_frags + skb->data */ card->perf_stats.sg_frags_sent += skb_shinfo(skb)->nr_frags + 1; } #endif /* CONFIG_QETH_PERF_STATS */ } if (ctx != NULL) { /* drop creator's reference */ qeth_eddp_put_context(ctx); /* free skb; it's not referenced by a buffer */ if (rc == 0) dev_kfree_skb_any(skb); } return rc; } static int qeth_mdio_read(struct net_device *dev, int phy_id, int regnum) { struct qeth_card *card = (struct qeth_card *) dev->priv; int rc = 0; switch(regnum){ case MII_BMCR: /* Basic mode control register */ rc = BMCR_FULLDPLX; if ((card->info.link_type != QETH_LINK_TYPE_GBIT_ETH)&& (card->info.link_type != QETH_LINK_TYPE_OSN) && (card->info.link_type != QETH_LINK_TYPE_10GBIT_ETH)) rc |= BMCR_SPEED100; break; case MII_BMSR: /* Basic mode status register */ rc = BMSR_ERCAP | BMSR_ANEGCOMPLETE | BMSR_LSTATUS | BMSR_10HALF | BMSR_10FULL | BMSR_100HALF | BMSR_100FULL | BMSR_100BASE4; break; case MII_PHYSID1: /* PHYS ID 1 */ rc = (dev->dev_addr[0] << 16) | (dev->dev_addr[1] << 8) | dev->dev_addr[2]; rc = (rc >> 5) & 0xFFFF; break; case MII_PHYSID2: /* PHYS ID 2 */ rc = (dev->dev_addr[2] << 10) & 0xFFFF; break; case MII_ADVERTISE: /* Advertisement control reg */ rc = ADVERTISE_ALL; break; case MII_LPA: /* Link partner ability reg */ rc = LPA_10HALF | LPA_10FULL | LPA_100HALF | LPA_100FULL | LPA_100BASE4 | LPA_LPACK; break; case MII_EXPANSION: /* Expansion register */ break; case MII_DCOUNTER: /* disconnect counter */ break; case MII_FCSCOUNTER: /* false carrier counter */ break; case MII_NWAYTEST: /* N-way auto-neg test register */ break; case MII_RERRCOUNTER: /* rx error counter */ rc = card->stats.rx_errors; break; case MII_SREVISION: /* silicon revision */ break; case MII_RESV1: /* reserved 1 */ break; case MII_LBRERROR: /* loopback, rx, bypass error */ break; case MII_PHYADDR: /* physical address */ break; case MII_RESV2: /* reserved 2 */ break; case MII_TPISTATUS: /* TPI status for 10mbps */ break; case MII_NCONFIG: /* network interface config */ break; default: rc = 0; break; } return rc; } static void qeth_mdio_write(struct net_device *dev, int phy_id, int regnum, int value) { switch(regnum){ case MII_BMCR: /* Basic mode control register */ case MII_BMSR: /* Basic mode status register */ case MII_PHYSID1: /* PHYS ID 1 */ case MII_PHYSID2: /* PHYS ID 2 */ case MII_ADVERTISE: /* Advertisement control reg */ case MII_LPA: /* Link partner ability reg */ case MII_EXPANSION: /* Expansion register */ case MII_DCOUNTER: /* disconnect counter */ case MII_FCSCOUNTER: /* false carrier counter */ case MII_NWAYTEST: /* N-way auto-neg test register */ case MII_RERRCOUNTER: /* rx error counter */ case MII_SREVISION: /* silicon revision */ case MII_RESV1: /* reserved 1 */ case MII_LBRERROR: /* loopback, rx, bypass error */ case MII_PHYADDR: /* physical address */ case MII_RESV2: /* reserved 2 */ case MII_TPISTATUS: /* TPI status for 10mbps */ case MII_NCONFIG: /* network interface config */ default: break; } } static inline const char * qeth_arp_get_error_cause(int *rc) { switch (*rc) { case QETH_IPA_ARP_RC_FAILED: *rc = -EIO; return "operation failed"; case QETH_IPA_ARP_RC_NOTSUPP: *rc = -EOPNOTSUPP; return "operation not supported"; case QETH_IPA_ARP_RC_OUT_OF_RANGE: *rc = -EINVAL; return "argument out of range"; case QETH_IPA_ARP_RC_Q_NOTSUPP: *rc = -EOPNOTSUPP; return "query operation not supported"; case QETH_IPA_ARP_RC_Q_NO_DATA: *rc = -ENOENT; return "no query data available"; default: return "unknown error"; } } static int qeth_send_simple_setassparms(struct qeth_card *, enum qeth_ipa_funcs, __u16, long); static int qeth_arp_set_no_entries(struct qeth_card *card, int no_entries) { int tmp; int rc; QETH_DBF_TEXT(trace,3,"arpstnoe"); /* * currently GuestLAN only supports the ARP assist function * IPA_CMD_ASS_ARP_QUERY_INFO, but not IPA_CMD_ASS_ARP_SET_NO_ENTRIES; * thus we say EOPNOTSUPP for this ARP function */ if (card->info.guestlan) return -EOPNOTSUPP; if (!qeth_is_supported(card,IPA_ARP_PROCESSING)) { PRINT_WARN("ARP processing not supported " "on %s!\n", QETH_CARD_IFNAME(card)); return -EOPNOTSUPP; } rc = qeth_send_simple_setassparms(card, IPA_ARP_PROCESSING, IPA_CMD_ASS_ARP_SET_NO_ENTRIES, no_entries); if (rc) { tmp = rc; PRINT_WARN("Could not set number of ARP entries on %s: " "%s (0x%x/%d)\n", QETH_CARD_IFNAME(card), qeth_arp_get_error_cause(&rc), tmp, tmp); } return rc; } static inline void qeth_copy_arp_entries_stripped(struct qeth_arp_query_info *qinfo, struct qeth_arp_query_data *qdata, int entry_size, int uentry_size) { char *entry_ptr; char *uentry_ptr; int i; entry_ptr = (char *)&qdata->data; uentry_ptr = (char *)(qinfo->udata + qinfo->udata_offset); for (i = 0; i < qdata->no_entries; ++i){ /* strip off 32 bytes "media specific information" */ memcpy(uentry_ptr, (entry_ptr + 32), entry_size - 32); entry_ptr += entry_size; uentry_ptr += uentry_size; } } static int qeth_arp_query_cb(struct qeth_card *card, struct qeth_reply *reply, unsigned long data) { struct qeth_ipa_cmd *cmd; struct qeth_arp_query_data *qdata; struct qeth_arp_query_info *qinfo; int entry_size; int uentry_size; int i; QETH_DBF_TEXT(trace,4,"arpquecb"); qinfo = (struct qeth_arp_query_info *) reply->param; cmd = (struct qeth_ipa_cmd *) data; if (cmd->hdr.return_code) { QETH_DBF_TEXT_(trace,4,"qaer1%i", cmd->hdr.return_code); return 0; } if (cmd->data.setassparms.hdr.return_code) { cmd->hdr.return_code = cmd->data.setassparms.hdr.return_code; QETH_DBF_TEXT_(trace,4,"qaer2%i", cmd->hdr.return_code); return 0; } qdata = &cmd->data.setassparms.data.query_arp; switch(qdata->reply_bits){ case 5: uentry_size = entry_size = sizeof(struct qeth_arp_qi_entry5); if (qinfo->mask_bits & QETH_QARP_STRIP_ENTRIES) uentry_size = sizeof(struct qeth_arp_qi_entry5_short); break; case 7: /* fall through to default */ default: /* tr is the same as eth -> entry7 */ uentry_size = entry_size = sizeof(struct qeth_arp_qi_entry7); if (qinfo->mask_bits & QETH_QARP_STRIP_ENTRIES) uentry_size = sizeof(struct qeth_arp_qi_entry7_short); break; } /* check if there is enough room in userspace */ if ((qinfo->udata_len - qinfo->udata_offset) < qdata->no_entries * uentry_size){ QETH_DBF_TEXT_(trace, 4, "qaer3%i", -ENOMEM); cmd->hdr.return_code = -ENOMEM; PRINT_WARN("query ARP user space buffer is too small for " "the returned number of ARP entries. " "Aborting query!\n"); goto out_error; } QETH_DBF_TEXT_(trace, 4, "anore%i", cmd->data.setassparms.hdr.number_of_replies); QETH_DBF_TEXT_(trace, 4, "aseqn%i", cmd->data.setassparms.hdr.seq_no); QETH_DBF_TEXT_(trace, 4, "anoen%i", qdata->no_entries); if (qinfo->mask_bits & QETH_QARP_STRIP_ENTRIES) { /* strip off "media specific information" */ qeth_copy_arp_entries_stripped(qinfo, qdata, entry_size, uentry_size); } else /*copy entries to user buffer*/ memcpy(qinfo->udata + qinfo->udata_offset, (char *)&qdata->data, qdata->no_entries*uentry_size); qinfo->no_entries += qdata->no_entries; qinfo->udata_offset += (qdata->no_entries*uentry_size); /* check if all replies received ... */ if (cmd->data.setassparms.hdr.seq_no < cmd->data.setassparms.hdr.number_of_replies) return 1; memcpy(qinfo->udata, &qinfo->no_entries, 4); /* keep STRIP_ENTRIES flag so the user program can distinguish * stripped entries from normal ones */ if (qinfo->mask_bits & QETH_QARP_STRIP_ENTRIES) qdata->reply_bits |= QETH_QARP_STRIP_ENTRIES; memcpy(qinfo->udata + QETH_QARP_MASK_OFFSET,&qdata->reply_bits,2); return 0; out_error: i = 0; memcpy(qinfo->udata, &i, 4); return 0; } static int qeth_send_ipa_arp_cmd(struct qeth_card *card, struct qeth_cmd_buffer *iob, int len, int (*reply_cb)(struct qeth_card *, struct qeth_reply *, unsigned long), void *reply_param) { QETH_DBF_TEXT(trace,4,"sendarp"); memcpy(iob->data, IPA_PDU_HEADER, IPA_PDU_HEADER_SIZE); memcpy(QETH_IPA_CMD_DEST_ADDR(iob->data), &card->token.ulp_connection_r, QETH_MPC_TOKEN_LENGTH); return qeth_send_control_data(card, IPA_PDU_HEADER_SIZE + len, iob, reply_cb, reply_param); } static int qeth_send_ipa_snmp_cmd(struct qeth_card *card, struct qeth_cmd_buffer *iob, int len, int (*reply_cb)(struct qeth_card *, struct qeth_reply *, unsigned long), void *reply_param) { u16 s1, s2; QETH_DBF_TEXT(trace,4,"sendsnmp"); memcpy(iob->data, IPA_PDU_HEADER, IPA_PDU_HEADER_SIZE); memcpy(QETH_IPA_CMD_DEST_ADDR(iob->data), &card->token.ulp_connection_r, QETH_MPC_TOKEN_LENGTH); /* adjust PDU length fields in IPA_PDU_HEADER */ s1 = (u32) IPA_PDU_HEADER_SIZE + len; s2 = (u32) len; memcpy(QETH_IPA_PDU_LEN_TOTAL(iob->data), &s1, 2); memcpy(QETH_IPA_PDU_LEN_PDU1(iob->data), &s2, 2); memcpy(QETH_IPA_PDU_LEN_PDU2(iob->data), &s2, 2); memcpy(QETH_IPA_PDU_LEN_PDU3(iob->data), &s2, 2); return qeth_send_control_data(card, IPA_PDU_HEADER_SIZE + len, iob, reply_cb, reply_param); } static struct qeth_cmd_buffer * qeth_get_setassparms_cmd(struct qeth_card *, enum qeth_ipa_funcs, __u16, __u16, enum qeth_prot_versions); static int qeth_arp_query(struct qeth_card *card, char *udata) { struct qeth_cmd_buffer *iob; struct qeth_arp_query_info qinfo = {0, }; int tmp; int rc; QETH_DBF_TEXT(trace,3,"arpquery"); if (!qeth_is_supported(card,/*IPA_QUERY_ARP_ADDR_INFO*/ IPA_ARP_PROCESSING)) { PRINT_WARN("ARP processing not supported " "on %s!\n", QETH_CARD_IFNAME(card)); return -EOPNOTSUPP; } /* get size of userspace buffer and mask_bits -> 6 bytes */ if (copy_from_user(&qinfo, udata, 6)) return -EFAULT; if (!(qinfo.udata = kmalloc(qinfo.udata_len, GFP_KERNEL))) return -ENOMEM; memset(qinfo.udata, 0, qinfo.udata_len); qinfo.udata_offset = QETH_QARP_ENTRIES_OFFSET; iob = qeth_get_setassparms_cmd(card, IPA_ARP_PROCESSING, IPA_CMD_ASS_ARP_QUERY_INFO, sizeof(int),QETH_PROT_IPV4); rc = qeth_send_ipa_arp_cmd(card, iob, QETH_SETASS_BASE_LEN+QETH_ARP_CMD_LEN, qeth_arp_query_cb, (void *)&qinfo); if (rc) { tmp = rc; PRINT_WARN("Error while querying ARP cache on %s: %s " "(0x%x/%d)\n", QETH_CARD_IFNAME(card), qeth_arp_get_error_cause(&rc), tmp, tmp); copy_to_user(udata, qinfo.udata, 4); } else { copy_to_user(udata, qinfo.udata, qinfo.udata_len); } kfree(qinfo.udata); return rc; } /** * SNMP command callback */ static int qeth_snmp_command_cb(struct qeth_card *card, struct qeth_reply *reply, unsigned long sdata) { struct qeth_ipa_cmd *cmd; struct qeth_arp_query_info *qinfo; struct qeth_snmp_cmd *snmp; unsigned char *data; __u16 data_len; QETH_DBF_TEXT(trace,3,"snpcmdcb"); cmd = (struct qeth_ipa_cmd *) sdata; data = (unsigned char *)((char *)cmd - reply->offset); qinfo = (struct qeth_arp_query_info *) reply->param; snmp = &cmd->data.setadapterparms.data.snmp; if (cmd->hdr.return_code) { QETH_DBF_TEXT_(trace,4,"scer1%i", cmd->hdr.return_code); return 0; } if (cmd->data.setadapterparms.hdr.return_code) { cmd->hdr.return_code = cmd->data.setadapterparms.hdr.return_code; QETH_DBF_TEXT_(trace,4,"scer2%i", cmd->hdr.return_code); return 0; } data_len = *((__u16*)QETH_IPA_PDU_LEN_PDU1(data)); if (cmd->data.setadapterparms.hdr.seq_no == 1) data_len -= (__u16)((char *)&snmp->data - (char *)cmd); else data_len -= (__u16)((char*)&snmp->request - (char *)cmd); /* check if there is enough room in userspace */ if ((qinfo->udata_len - qinfo->udata_offset) < data_len) { QETH_DBF_TEXT_(trace, 4, "scer3%i", -ENOMEM); cmd->hdr.return_code = -ENOMEM; return 0; } QETH_DBF_TEXT_(trace, 4, "snore%i", cmd->data.setadapterparms.hdr.used_total); QETH_DBF_TEXT_(trace, 4, "sseqn%i", cmd->data.setadapterparms.hdr.seq_no); /*copy entries to user buffer*/ if (cmd->data.setadapterparms.hdr.seq_no == 1) { memcpy(qinfo->udata + qinfo->udata_offset, (char *)snmp, data_len + offsetof(struct qeth_snmp_cmd,data)); qinfo->udata_offset += offsetof(struct qeth_snmp_cmd, data); } else { memcpy(qinfo->udata + qinfo->udata_offset, (char *)&snmp->request, data_len); } qinfo->udata_offset += data_len; /* check if all replies received ... */ QETH_DBF_TEXT_(trace, 4, "srtot%i", cmd->data.setadapterparms.hdr.used_total); QETH_DBF_TEXT_(trace, 4, "srseq%i", cmd->data.setadapterparms.hdr.seq_no); if (cmd->data.setadapterparms.hdr.seq_no < cmd->data.setadapterparms.hdr.used_total) return 1; return 0; } static struct qeth_cmd_buffer * qeth_get_ipacmd_buffer(struct qeth_card *, enum qeth_ipa_cmds, enum qeth_prot_versions ); static struct qeth_cmd_buffer * qeth_get_adapter_cmd(struct qeth_card *card, __u32 command, __u32 cmdlen) { struct qeth_cmd_buffer *iob; struct qeth_ipa_cmd *cmd; iob = qeth_get_ipacmd_buffer(card,IPA_CMD_SETADAPTERPARMS, QETH_PROT_IPV4); cmd = (struct qeth_ipa_cmd *)(iob->data+IPA_PDU_HEADER_SIZE); cmd->data.setadapterparms.hdr.cmdlength = cmdlen; cmd->data.setadapterparms.hdr.command_code = command; cmd->data.setadapterparms.hdr.used_total = 1; cmd->data.setadapterparms.hdr.seq_no = 1; return iob; } /** * function to send SNMP commands to OSA-E card */ static int qeth_snmp_command(struct qeth_card *card, char *udata) { struct qeth_cmd_buffer *iob; struct qeth_ipa_cmd *cmd; struct qeth_snmp_ureq *ureq; int req_len; struct qeth_arp_query_info qinfo = {0, }; int rc = 0; QETH_DBF_TEXT(trace,3,"snmpcmd"); if (card->info.guestlan) return -EOPNOTSUPP; if ((!qeth_adp_supported(card,IPA_SETADP_SET_SNMP_CONTROL)) && (!card->options.layer2) ) { PRINT_WARN("SNMP Query MIBS not supported " "on %s!\n", QETH_CARD_IFNAME(card)); return -EOPNOTSUPP; } /* skip 4 bytes (data_len struct member) to get req_len */ if (copy_from_user(&req_len, udata + sizeof(int), sizeof(int))) return -EFAULT; ureq = kmalloc(req_len+sizeof(struct qeth_snmp_ureq_hdr), GFP_KERNEL); if (!ureq) { QETH_DBF_TEXT(trace, 2, "snmpnome"); return -ENOMEM; } if (copy_from_user(ureq, udata, req_len+sizeof(struct qeth_snmp_ureq_hdr))){ kfree(ureq); return -EFAULT; } qinfo.udata_len = ureq->hdr.data_len; if (!(qinfo.udata = kmalloc(qinfo.udata_len, GFP_KERNEL))){ kfree(ureq); return -ENOMEM; } memset(qinfo.udata, 0, qinfo.udata_len); qinfo.udata_offset = sizeof(struct qeth_snmp_ureq_hdr); iob = qeth_get_adapter_cmd(card, IPA_SETADP_SET_SNMP_CONTROL, QETH_SNMP_SETADP_CMDLENGTH + req_len); cmd = (struct qeth_ipa_cmd *)(iob->data+IPA_PDU_HEADER_SIZE); memcpy(&cmd->data.setadapterparms.data.snmp, &ureq->cmd, req_len); rc = qeth_send_ipa_snmp_cmd(card, iob, QETH_SETADP_BASE_LEN + req_len, qeth_snmp_command_cb, (void *)&qinfo); if (rc) PRINT_WARN("SNMP command failed on %s: (0x%x)\n", QETH_CARD_IFNAME(card), rc); else copy_to_user(udata, qinfo.udata, qinfo.udata_len); kfree(ureq); kfree(qinfo.udata); return rc; } static int qeth_default_setassparms_cb(struct qeth_card *, struct qeth_reply *, unsigned long); static int qeth_default_setadapterparms_cb(struct qeth_card *card, struct qeth_reply *reply, unsigned long data); static int qeth_send_setassparms(struct qeth_card *, struct qeth_cmd_buffer *, __u16, long, int (*reply_cb) (struct qeth_card *, struct qeth_reply *, unsigned long), void *reply_param); static int qeth_arp_add_entry(struct qeth_card *card, struct qeth_arp_cache_entry *entry) { struct qeth_cmd_buffer *iob; char buf[16]; int tmp; int rc; QETH_DBF_TEXT(trace,3,"arpadent"); /* * currently GuestLAN only supports the ARP assist function * IPA_CMD_ASS_ARP_QUERY_INFO, but not IPA_CMD_ASS_ARP_ADD_ENTRY; * thus we say EOPNOTSUPP for this ARP function */ if (card->info.guestlan) return -EOPNOTSUPP; if (!qeth_is_supported(card,IPA_ARP_PROCESSING)) { PRINT_WARN("ARP processing not supported " "on %s!\n", QETH_CARD_IFNAME(card)); return -EOPNOTSUPP; } iob = qeth_get_setassparms_cmd(card, IPA_ARP_PROCESSING, IPA_CMD_ASS_ARP_ADD_ENTRY, sizeof(struct qeth_arp_cache_entry), QETH_PROT_IPV4); rc = qeth_send_setassparms(card, iob, sizeof(struct qeth_arp_cache_entry), (unsigned long) entry, qeth_default_setassparms_cb, NULL); if (rc) { tmp = rc; qeth_ipaddr4_to_string((u8 *)entry->ipaddr, buf); PRINT_WARN("Could not add ARP entry for address %s on %s: " "%s (0x%x/%d)\n", buf, QETH_CARD_IFNAME(card), qeth_arp_get_error_cause(&rc), tmp, tmp); } return rc; } static int qeth_arp_remove_entry(struct qeth_card *card, struct qeth_arp_cache_entry *entry) { struct qeth_cmd_buffer *iob; char buf[16] = {0, }; int tmp; int rc; QETH_DBF_TEXT(trace,3,"arprment"); /* * currently GuestLAN only supports the ARP assist function * IPA_CMD_ASS_ARP_QUERY_INFO, but not IPA_CMD_ASS_ARP_REMOVE_ENTRY; * thus we say EOPNOTSUPP for this ARP function */ if (card->info.guestlan) return -EOPNOTSUPP; if (!qeth_is_supported(card,IPA_ARP_PROCESSING)) { PRINT_WARN("ARP processing not supported " "on %s!\n", QETH_CARD_IFNAME(card)); return -EOPNOTSUPP; } memcpy(buf, entry, 12); iob = qeth_get_setassparms_cmd(card, IPA_ARP_PROCESSING, IPA_CMD_ASS_ARP_REMOVE_ENTRY, 12, QETH_PROT_IPV4); rc = qeth_send_setassparms(card, iob, 12, (unsigned long)buf, qeth_default_setassparms_cb, NULL); if (rc) { tmp = rc; memset(buf, 0, 16); qeth_ipaddr4_to_string((u8 *)entry->ipaddr, buf); PRINT_WARN("Could not delete ARP entry for address %s on %s: " "%s (0x%x/%d)\n", buf, QETH_CARD_IFNAME(card), qeth_arp_get_error_cause(&rc), tmp, tmp); } return rc; } static int qeth_arp_flush_cache(struct qeth_card *card) { int rc; int tmp; QETH_DBF_TEXT(trace,3,"arpflush"); /* * currently GuestLAN only supports the ARP assist function * IPA_CMD_ASS_ARP_QUERY_INFO, but not IPA_CMD_ASS_ARP_FLUSH_CACHE; * thus we say EOPNOTSUPP for this ARP function */ if (card->info.guestlan || (card->info.type == QETH_CARD_TYPE_IQD)) return -EOPNOTSUPP; if (!qeth_is_supported(card,IPA_ARP_PROCESSING)) { PRINT_WARN("ARP processing not supported " "on %s!\n", QETH_CARD_IFNAME(card)); return -EOPNOTSUPP; } rc = qeth_send_simple_setassparms(card, IPA_ARP_PROCESSING, IPA_CMD_ASS_ARP_FLUSH_CACHE, 0); if (rc){ tmp = rc; PRINT_WARN("Could not flush ARP cache on %s: %s (0x%x/%d)\n", QETH_CARD_IFNAME(card), qeth_arp_get_error_cause(&rc), tmp, tmp); } return rc; } static int qeth_do_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) { struct qeth_card *card = (struct qeth_card *)dev->priv; struct qeth_arp_cache_entry arp_entry; struct mii_ioctl_data *mii_data; int rc = 0; if (!card) return -ENODEV; if ((card->state != CARD_STATE_UP) && (card->state != CARD_STATE_SOFTSETUP)) return -ENODEV; if (card->info.type == QETH_CARD_TYPE_OSN) return -EPERM; switch (cmd){ case SIOC_QETH_ARP_SET_NO_ENTRIES: if ( !capable(CAP_NET_ADMIN) || (card->options.layer2) ) { rc = -EPERM; break; } rc = qeth_arp_set_no_entries(card, rq->ifr_ifru.ifru_ivalue); break; case SIOC_QETH_ARP_QUERY_INFO: if ( !capable(CAP_NET_ADMIN) || (card->options.layer2) ) { rc = -EPERM; break; } rc = qeth_arp_query(card, rq->ifr_ifru.ifru_data); break; case SIOC_QETH_ARP_ADD_ENTRY: if ( !capable(CAP_NET_ADMIN) || (card->options.layer2) ) { rc = -EPERM; break; } if (copy_from_user(&arp_entry, rq->ifr_ifru.ifru_data, sizeof(struct qeth_arp_cache_entry))) rc = -EFAULT; else rc = qeth_arp_add_entry(card, &arp_entry); break; case SIOC_QETH_ARP_REMOVE_ENTRY: if ( !capable(CAP_NET_ADMIN) || (card->options.layer2) ) { rc = -EPERM; break; } if (copy_from_user(&arp_entry, rq->ifr_ifru.ifru_data, sizeof(struct qeth_arp_cache_entry))) rc = -EFAULT; else rc = qeth_arp_remove_entry(card, &arp_entry); break; case SIOC_QETH_ARP_FLUSH_CACHE: if ( !capable(CAP_NET_ADMIN) || (card->options.layer2) ) { rc = -EPERM; break; } rc = qeth_arp_flush_cache(card); break; case SIOC_QETH_ADP_SET_SNMP_CONTROL: rc = qeth_snmp_command(card, rq->ifr_ifru.ifru_data); break; case SIOC_QETH_GET_CARD_TYPE: if ((card->info.type == QETH_CARD_TYPE_OSAE) && !card->info.guestlan) return 1; return 0; break; case SIOCGMIIPHY: mii_data = if_mii(rq); mii_data->phy_id = 0; break; case SIOCGMIIREG: mii_data = if_mii(rq); if (mii_data->phy_id != 0) rc = -EINVAL; else mii_data->val_out = qeth_mdio_read(dev,mii_data->phy_id, mii_data->reg_num); break; case SIOCSMIIREG: rc = -EOPNOTSUPP; break; /* TODO: remove return if qeth_mdio_write does something */ if (!capable(CAP_NET_ADMIN)){ rc = -EPERM; break; } mii_data = if_mii(rq); if (mii_data->phy_id != 0) rc = -EINVAL; else qeth_mdio_write(dev, mii_data->phy_id, mii_data->reg_num, mii_data->val_in); break; default: rc = -EOPNOTSUPP; } if (rc) QETH_DBF_TEXT_(trace, 2, "ioce%d", rc); return rc; } static struct net_device_stats * qeth_get_stats(struct net_device *dev) { struct qeth_card *card; card = (struct qeth_card *) (dev->priv); QETH_DBF_TEXT(trace,5,"getstat"); return &card->stats; } static int qeth_change_mtu(struct net_device *dev, int new_mtu) { struct qeth_card *card; char dbf_text[15]; card = (struct qeth_card *) (dev->priv); QETH_DBF_TEXT(trace,4,"chgmtu"); sprintf(dbf_text, "%8x", new_mtu); QETH_DBF_TEXT(trace,4,dbf_text); if (new_mtu < 64) return -EINVAL; if (new_mtu > 65535) return -EINVAL; if ((!qeth_is_supported(card,IPA_IP_FRAGMENTATION)) && (!qeth_mtu_is_valid(card, new_mtu))) return -EINVAL; dev->mtu = new_mtu; return 0; } #ifdef CONFIG_QETH_VLAN static void qeth_vlan_rx_register(struct net_device *dev, struct vlan_group *grp) { struct qeth_card *card; unsigned long flags; QETH_DBF_TEXT(trace,4,"vlanreg"); card = (struct qeth_card *) dev->priv; spin_lock_irqsave(&card->vlanlock, flags); card->vlangrp = grp; spin_unlock_irqrestore(&card->vlanlock, flags); } static inline void qeth_free_vlan_buffer(struct qeth_card *card, struct qeth_qdio_out_buffer *buf, unsigned short vid) { int i; struct sk_buff *skb; struct sk_buff_head tmp_list; skb_queue_head_init(&tmp_list); for(i = 0; i < QETH_MAX_BUFFER_ELEMENTS(card); ++i){ while ((skb = skb_dequeue(&buf->skb_list))){ if (vlan_tx_tag_present(skb) && (vlan_tx_tag_get(skb) == vid)) { atomic_dec(&skb->users); dev_kfree_skb(skb); } else skb_queue_tail(&tmp_list, skb); } } while ((skb = skb_dequeue(&tmp_list))) skb_queue_tail(&buf->skb_list, skb); } static void qeth_free_vlan_skbs(struct qeth_card *card, unsigned short vid) { int i, j; QETH_DBF_TEXT(trace, 4, "frvlskbs"); for (i = 0; i < card->qdio.no_out_queues; ++i){ for (j = 0; j < QDIO_MAX_BUFFERS_PER_Q; ++j) qeth_free_vlan_buffer(card, &card->qdio. out_qs[i]->bufs[j], vid); } } static void qeth_free_vlan_addresses4(struct qeth_card *card, unsigned short vid) { struct in_device *in_dev; struct in_ifaddr *ifa; struct qeth_ipaddr *addr; QETH_DBF_TEXT(trace, 4, "frvaddr4"); rcu_read_lock(); in_dev = __in_dev_get_rcu(card->vlangrp->vlan_devices[vid]); if (!in_dev) goto out; for (ifa = in_dev->ifa_list; ifa; ifa = ifa->ifa_next) { addr = qeth_get_addr_buffer(QETH_PROT_IPV4); if (addr){ addr->u.a4.addr = ifa->ifa_address; addr->u.a4.mask = ifa->ifa_mask; addr->type = QETH_IP_TYPE_NORMAL; if (!qeth_delete_ip(card, addr)) kfree(addr); } } out: rcu_read_unlock(); } static void qeth_free_vlan_addresses6(struct qeth_card *card, unsigned short vid) { #ifdef CONFIG_QETH_IPV6 struct inet6_dev *in6_dev; struct inet6_ifaddr *ifa; struct qeth_ipaddr *addr; QETH_DBF_TEXT(trace, 4, "frvaddr6"); in6_dev = in6_dev_get(card->vlangrp->vlan_devices[vid]); if (!in6_dev) return; for (ifa = in6_dev->addr_list; ifa; ifa = ifa->lst_next){ addr = qeth_get_addr_buffer(QETH_PROT_IPV6); if (addr){ memcpy(&addr->u.a6.addr, &ifa->addr, sizeof(struct in6_addr)); addr->u.a6.pfxlen = ifa->prefix_len; addr->type = QETH_IP_TYPE_NORMAL; if (!qeth_delete_ip(card, addr)) kfree(addr); } } in6_dev_put(in6_dev); #endif /* CONFIG_QETH_IPV6 */ } static void qeth_free_vlan_addresses(struct qeth_card *card, unsigned short vid) { if (card->options.layer2 || !card->vlangrp) return; qeth_free_vlan_addresses4(card, vid); qeth_free_vlan_addresses6(card, vid); } static int qeth_layer2_send_setdelvlan_cb(struct qeth_card *card, struct qeth_reply *reply, unsigned long data) { struct qeth_ipa_cmd *cmd; QETH_DBF_TEXT(trace, 2, "L2sdvcb"); cmd = (struct qeth_ipa_cmd *) data; if (cmd->hdr.return_code) { PRINT_ERR("Error in processing VLAN %i on %s: 0x%x. " "Continuing\n",cmd->data.setdelvlan.vlan_id, QETH_CARD_IFNAME(card), cmd->hdr.return_code); QETH_DBF_TEXT_(trace, 2, "L2VL%4x", cmd->hdr.command); QETH_DBF_TEXT_(trace, 2, "L2%s", CARD_BUS_ID(card)); QETH_DBF_TEXT_(trace, 2, "err%d", cmd->hdr.return_code); } return 0; } static int qeth_layer2_send_setdelvlan(struct qeth_card *card, __u16 i, enum qeth_ipa_cmds ipacmd) { struct qeth_ipa_cmd *cmd; struct qeth_cmd_buffer *iob; QETH_DBF_TEXT_(trace, 4, "L2sdv%x",ipacmd); iob = qeth_get_ipacmd_buffer(card, ipacmd, QETH_PROT_IPV4); cmd = (struct qeth_ipa_cmd *)(iob->data+IPA_PDU_HEADER_SIZE); cmd->data.setdelvlan.vlan_id = i; return qeth_send_ipa_cmd(card, iob, qeth_layer2_send_setdelvlan_cb, NULL); } static void qeth_layer2_process_vlans(struct qeth_card *card, int clear) { unsigned short i; QETH_DBF_TEXT(trace, 3, "L2prcvln"); if (!card->vlangrp) return; for (i = 0; i < VLAN_GROUP_ARRAY_LEN; i++) { if (card->vlangrp->vlan_devices[i] == NULL) continue; if (clear) qeth_layer2_send_setdelvlan(card, i, IPA_CMD_DELVLAN); else qeth_layer2_send_setdelvlan(card, i, IPA_CMD_SETVLAN); } } /*add_vid is layer 2 used only ....*/ static void qeth_vlan_rx_add_vid(struct net_device *dev, unsigned short vid) { struct qeth_card *card; QETH_DBF_TEXT_(trace, 4, "aid:%d", vid); card = (struct qeth_card *) dev->priv; if (!card->options.layer2) return; qeth_layer2_send_setdelvlan(card, vid, IPA_CMD_SETVLAN); } /*... kill_vid used for both modes*/ static void qeth_vlan_rx_kill_vid(struct net_device *dev, unsigned short vid) { struct qeth_card *card; unsigned long flags; QETH_DBF_TEXT_(trace, 4, "kid:%d", vid); card = (struct qeth_card *) dev->priv; /* free all skbs for the vlan device */ qeth_free_vlan_skbs(card, vid); spin_lock_irqsave(&card->vlanlock, flags); /* unregister IP addresses of vlan device */ qeth_free_vlan_addresses(card, vid); if (card->vlangrp) card->vlangrp->vlan_devices[vid] = NULL; spin_unlock_irqrestore(&card->vlanlock, flags); if (card->options.layer2) qeth_layer2_send_setdelvlan(card, vid, IPA_CMD_DELVLAN); qeth_set_multicast_list(card->dev); } #endif /** * Examine hardware response to SET_PROMISC_MODE */ static int qeth_setadp_promisc_mode_cb(struct qeth_card *card, struct qeth_reply *reply, unsigned long data) { struct qeth_ipa_cmd *cmd; struct qeth_ipacmd_setadpparms *setparms; QETH_DBF_TEXT(trace,4,"prmadpcb"); cmd = (struct qeth_ipa_cmd *) data; setparms = &(cmd->data.setadapterparms); qeth_default_setadapterparms_cb(card, reply, (unsigned long)cmd); if (cmd->hdr.return_code) { QETH_DBF_TEXT_(trace,4,"prmrc%2.2x",cmd->hdr.return_code); setparms->data.mode = SET_PROMISC_MODE_OFF; } card->info.promisc_mode = setparms->data.mode; return 0; } /* * Set promiscuous mode (on or off) (SET_PROMISC_MODE command) */ static void qeth_setadp_promisc_mode(struct qeth_card *card) { enum qeth_ipa_promisc_modes mode; struct net_device *dev = card->dev; struct qeth_cmd_buffer *iob; struct qeth_ipa_cmd *cmd; QETH_DBF_TEXT(trace, 4, "setprom"); if (((dev->flags & IFF_PROMISC) && (card->info.promisc_mode == SET_PROMISC_MODE_ON)) || (!(dev->flags & IFF_PROMISC) && (card->info.promisc_mode == SET_PROMISC_MODE_OFF))) return; mode = SET_PROMISC_MODE_OFF; if (dev->flags & IFF_PROMISC) mode = SET_PROMISC_MODE_ON; QETH_DBF_TEXT_(trace, 4, "mode:%x", mode); iob = qeth_get_adapter_cmd(card, IPA_SETADP_SET_PROMISC_MODE, sizeof(struct qeth_ipacmd_setadpparms)); cmd = (struct qeth_ipa_cmd *)(iob->data + IPA_PDU_HEADER_SIZE); cmd->data.setadapterparms.data.mode = mode; qeth_send_ipa_cmd(card, iob, qeth_setadp_promisc_mode_cb, NULL); } /** * set multicast address on card */ static void qeth_set_multicast_list(struct net_device *dev) { struct qeth_card *card = (struct qeth_card *) dev->priv; if (card->info.type == QETH_CARD_TYPE_OSN) return ; QETH_DBF_TEXT(trace,3,"setmulti"); qeth_delete_mc_addresses(card); if (card->options.layer2) { qeth_layer2_add_multicast(card); goto out; } qeth_add_multicast_ipv4(card); #ifdef CONFIG_QETH_IPV6 qeth_add_multicast_ipv6(card); #endif out: if (qeth_set_thread_start_bit(card, QETH_SET_IP_THREAD) == 0) schedule_work(&card->kernel_thread_starter); if (!qeth_adp_supported(card, IPA_SETADP_SET_PROMISC_MODE)) return; if (qeth_set_thread_start_bit(card, QETH_SET_PROMISC_MODE_THREAD)==0) schedule_work(&card->kernel_thread_starter); } static int qeth_neigh_setup(struct net_device *dev, struct neigh_parms *np) { return 0; } static void qeth_get_mac_for_ipm(__u32 ipm, char *mac, struct net_device *dev) { if (dev->type == ARPHRD_IEEE802_TR) ip_tr_mc_map(ipm, mac); else ip_eth_mc_map(ipm, mac); } static struct qeth_ipaddr * qeth_get_addr_buffer(enum qeth_prot_versions prot) { struct qeth_ipaddr *addr; addr = kmalloc(sizeof(struct qeth_ipaddr), GFP_ATOMIC); if (addr == NULL) { PRINT_WARN("Not enough memory to add address\n"); return NULL; } memset(addr,0,sizeof(struct qeth_ipaddr)); addr->type = QETH_IP_TYPE_NORMAL; addr->proto = prot; return addr; } int qeth_osn_assist(struct net_device *dev, void *data, int data_len) { struct qeth_cmd_buffer *iob; struct qeth_card *card; int rc; QETH_DBF_TEXT(trace, 2, "osnsdmc"); if (!dev) return -ENODEV; card = (struct qeth_card *)dev->priv; if (!card) return -ENODEV; if ((card->state != CARD_STATE_UP) && (card->state != CARD_STATE_SOFTSETUP)) return -ENODEV; iob = qeth_wait_for_buffer(&card->write); memcpy(iob->data+IPA_PDU_HEADER_SIZE, data, data_len); rc = qeth_osn_send_ipa_cmd(card, iob, data_len); return rc; } static struct net_device * qeth_netdev_by_devno(unsigned char *read_dev_no) { struct qeth_card *card; struct net_device *ndev; unsigned char *readno; __u16 temp_dev_no, card_dev_no; char *endp; unsigned long flags; ndev = NULL; memcpy(&temp_dev_no, read_dev_no, 2); read_lock_irqsave(&qeth_card_list.rwlock, flags); list_for_each_entry(card, &qeth_card_list.list, list) { readno = CARD_RDEV_ID(card); readno += (strlen(readno) - 4); card_dev_no = simple_strtoul(readno, &endp, 16); if (card_dev_no == temp_dev_no) { ndev = card->dev; break; } } read_unlock_irqrestore(&qeth_card_list.rwlock, flags); return ndev; } int qeth_osn_register(unsigned char *read_dev_no, struct net_device **dev, int (*assist_cb)(struct net_device *, void *), int (*data_cb)(struct sk_buff *)) { struct qeth_card * card; QETH_DBF_TEXT(trace, 2, "osnreg"); *dev = qeth_netdev_by_devno(read_dev_no); if (*dev == NULL) return -ENODEV; card = (struct qeth_card *)(*dev)->priv; if (!card) return -ENODEV; if ((assist_cb == NULL) || (data_cb == NULL)) return -EINVAL; card->osn_info.assist_cb = assist_cb; card->osn_info.data_cb = data_cb; return 0; } void qeth_osn_deregister(struct net_device * dev) { struct qeth_card *card; QETH_DBF_TEXT(trace, 2, "osndereg"); if (!dev) return; card = (struct qeth_card *)dev->priv; if (!card) return; card->osn_info.assist_cb = NULL; card->osn_info.data_cb = NULL; return; } static void qeth_delete_mc_addresses(struct qeth_card *card) { struct qeth_ipaddr *iptodo; unsigned long flags; QETH_DBF_TEXT(trace,4,"delmc"); iptodo = qeth_get_addr_buffer(QETH_PROT_IPV4); if (!iptodo) { QETH_DBF_TEXT(trace, 2, "dmcnomem"); return; } iptodo->type = QETH_IP_TYPE_DEL_ALL_MC; spin_lock_irqsave(&card->ip_lock, flags); if (!__qeth_insert_ip_todo(card, iptodo, 0)) kfree(iptodo); spin_unlock_irqrestore(&card->ip_lock, flags); } static inline void qeth_add_mc(struct qeth_card *card, struct in_device *in4_dev) { struct qeth_ipaddr *ipm; struct ip_mc_list *im4; char buf[MAX_ADDR_LEN]; QETH_DBF_TEXT(trace,4,"addmc"); for (im4 = in4_dev->mc_list; im4; im4 = im4->next) { qeth_get_mac_for_ipm(im4->multiaddr, buf, in4_dev->dev); ipm = qeth_get_addr_buffer(QETH_PROT_IPV4); if (!ipm) continue; ipm->u.a4.addr = im4->multiaddr; memcpy(ipm->mac,buf,OSA_ADDR_LEN); ipm->is_multicast = 1; if (!qeth_add_ip(card,ipm)) kfree(ipm); } } static inline void qeth_add_vlan_mc(struct qeth_card *card) { #ifdef CONFIG_QETH_VLAN struct in_device *in_dev; struct vlan_group *vg; int i; QETH_DBF_TEXT(trace,4,"addmcvl"); if ( ((card->options.layer2 == 0) && (!qeth_is_supported(card,IPA_FULL_VLAN))) || (card->vlangrp == NULL) ) return ; vg = card->vlangrp; for (i = 0; i < VLAN_GROUP_ARRAY_LEN; i++) { if (vg->vlan_devices[i] == NULL || !(vg->vlan_devices[i]->flags & IFF_UP)) continue; in_dev = in_dev_get(vg->vlan_devices[i]); if (!in_dev) continue; read_lock(&in_dev->mc_list_lock); qeth_add_mc(card,in_dev); read_unlock(&in_dev->mc_list_lock); in_dev_put(in_dev); } #endif } static void qeth_add_multicast_ipv4(struct qeth_card *card) { struct in_device *in4_dev; QETH_DBF_TEXT(trace,4,"chkmcv4"); in4_dev = in_dev_get(card->dev); if (in4_dev == NULL) return; read_lock(&in4_dev->mc_list_lock); qeth_add_mc(card, in4_dev); qeth_add_vlan_mc(card); read_unlock(&in4_dev->mc_list_lock); in_dev_put(in4_dev); } static void qeth_layer2_add_multicast(struct qeth_card *card) { struct qeth_ipaddr *ipm; struct dev_mc_list *dm; QETH_DBF_TEXT(trace,4,"L2addmc"); for (dm = card->dev->mc_list; dm; dm = dm->next) { ipm = qeth_get_addr_buffer(QETH_PROT_IPV4); if (!ipm) continue; memcpy(ipm->mac,dm->dmi_addr,MAX_ADDR_LEN); ipm->is_multicast = 1; if (!qeth_add_ip(card, ipm)) kfree(ipm); } } #ifdef CONFIG_QETH_IPV6 static inline void qeth_add_mc6(struct qeth_card *card, struct inet6_dev *in6_dev) { struct qeth_ipaddr *ipm; struct ifmcaddr6 *im6; char buf[MAX_ADDR_LEN]; QETH_DBF_TEXT(trace,4,"addmc6"); for (im6 = in6_dev->mc_list; im6 != NULL; im6 = im6->next) { ndisc_mc_map(&im6->mca_addr, buf, in6_dev->dev, 0); ipm = qeth_get_addr_buffer(QETH_PROT_IPV6); if (!ipm) continue; ipm->is_multicast = 1; memcpy(ipm->mac,buf,OSA_ADDR_LEN); memcpy(&ipm->u.a6.addr,&im6->mca_addr.s6_addr, sizeof(struct in6_addr)); if (!qeth_add_ip(card,ipm)) kfree(ipm); } } static inline void qeth_add_vlan_mc6(struct qeth_card *card) { #ifdef CONFIG_QETH_VLAN struct inet6_dev *in_dev; struct vlan_group *vg; int i; QETH_DBF_TEXT(trace,4,"admc6vl"); if ( ((card->options.layer2 == 0) && (!qeth_is_supported(card,IPA_FULL_VLAN))) || (card->vlangrp == NULL)) return ; vg = card->vlangrp; for (i = 0; i < VLAN_GROUP_ARRAY_LEN; i++) { if (vg->vlan_devices[i] == NULL || !(vg->vlan_devices[i]->flags & IFF_UP)) continue; in_dev = in6_dev_get(vg->vlan_devices[i]); if (!in_dev) continue; read_lock(&in_dev->lock); qeth_add_mc6(card,in_dev); read_unlock(&in_dev->lock); in6_dev_put(in_dev); } #endif /* CONFIG_QETH_VLAN */ } static void qeth_add_multicast_ipv6(struct qeth_card *card) { struct inet6_dev *in6_dev; QETH_DBF_TEXT(trace,4,"chkmcv6"); if (!qeth_is_supported(card, IPA_IPV6)) return ; in6_dev = in6_dev_get(card->dev); if (in6_dev == NULL) return; read_lock(&in6_dev->lock); qeth_add_mc6(card, in6_dev); qeth_add_vlan_mc6(card); read_unlock(&in6_dev->lock); in6_dev_put(in6_dev); } #endif /* CONFIG_QETH_IPV6 */ static int qeth_layer2_send_setdelmac(struct qeth_card *card, __u8 *mac, enum qeth_ipa_cmds ipacmd, int (*reply_cb) (struct qeth_card *, struct qeth_reply*, unsigned long)) { struct qeth_ipa_cmd *cmd; struct qeth_cmd_buffer *iob; QETH_DBF_TEXT(trace, 2, "L2sdmac"); iob = qeth_get_ipacmd_buffer(card, ipacmd, QETH_PROT_IPV4); cmd = (struct qeth_ipa_cmd *)(iob->data+IPA_PDU_HEADER_SIZE); cmd->data.setdelmac.mac_length = OSA_ADDR_LEN; memcpy(&cmd->data.setdelmac.mac, mac, OSA_ADDR_LEN); return qeth_send_ipa_cmd(card, iob, reply_cb, NULL); } static int qeth_layer2_send_setgroupmac_cb(struct qeth_card *card, struct qeth_reply *reply, unsigned long data) { struct qeth_ipa_cmd *cmd; __u8 *mac; QETH_DBF_TEXT(trace, 2, "L2Sgmacb"); cmd = (struct qeth_ipa_cmd *) data; mac = &cmd->data.setdelmac.mac[0]; /* MAC already registered, needed in couple/uncouple case */ if (cmd->hdr.return_code == 0x2005) { PRINT_WARN("Group MAC %02x:%02x:%02x:%02x:%02x:%02x " \ "already existing on %s \n", mac[0], mac[1], mac[2], mac[3], mac[4], mac[5], QETH_CARD_IFNAME(card)); cmd->hdr.return_code = 0; } if (cmd->hdr.return_code) PRINT_ERR("Could not set group MAC " \ "%02x:%02x:%02x:%02x:%02x:%02x on %s: %x\n", mac[0], mac[1], mac[2], mac[3], mac[4], mac[5], QETH_CARD_IFNAME(card),cmd->hdr.return_code); return 0; } static int qeth_layer2_send_setgroupmac(struct qeth_card *card, __u8 *mac) { QETH_DBF_TEXT(trace, 2, "L2Sgmac"); return qeth_layer2_send_setdelmac(card, mac, IPA_CMD_SETGMAC, qeth_layer2_send_setgroupmac_cb); } static int qeth_layer2_send_delgroupmac_cb(struct qeth_card *card, struct qeth_reply *reply, unsigned long data) { struct qeth_ipa_cmd *cmd; __u8 *mac; QETH_DBF_TEXT(trace, 2, "L2Dgmacb"); cmd = (struct qeth_ipa_cmd *) data; mac = &cmd->data.setdelmac.mac[0]; if (cmd->hdr.return_code) PRINT_ERR("Could not delete group MAC " \ "%02x:%02x:%02x:%02x:%02x:%02x on %s: %x\n", mac[0], mac[1], mac[2], mac[3], mac[4], mac[5], QETH_CARD_IFNAME(card), cmd->hdr.return_code); return 0; } static int qeth_layer2_send_delgroupmac(struct qeth_card *card, __u8 *mac) { QETH_DBF_TEXT(trace, 2, "L2Dgmac"); return qeth_layer2_send_setdelmac(card, mac, IPA_CMD_DELGMAC, qeth_layer2_send_delgroupmac_cb); } static int qeth_layer2_send_setmac_cb(struct qeth_card *card, struct qeth_reply *reply, unsigned long data) { struct qeth_ipa_cmd *cmd; QETH_DBF_TEXT(trace, 2, "L2Smaccb"); cmd = (struct qeth_ipa_cmd *) data; if (cmd->hdr.return_code) { QETH_DBF_TEXT_(trace, 2, "L2er%x", cmd->hdr.return_code); PRINT_WARN("Error in registering MAC address on " \ "device %s: x%x\n", CARD_BUS_ID(card), cmd->hdr.return_code); card->info.mac_bits &= ~QETH_LAYER2_MAC_REGISTERED; cmd->hdr.return_code = -EIO; } else { card->info.mac_bits |= QETH_LAYER2_MAC_REGISTERED; memcpy(card->dev->dev_addr,cmd->data.setdelmac.mac, OSA_ADDR_LEN); PRINT_INFO("MAC address %2.2x:%2.2x:%2.2x:%2.2x:%2.2x:%2.2x " "successfully registered on device %s\n", card->dev->dev_addr[0], card->dev->dev_addr[1], card->dev->dev_addr[2], card->dev->dev_addr[3], card->dev->dev_addr[4], card->dev->dev_addr[5], card->dev->name); } return 0; } static int qeth_layer2_send_setmac(struct qeth_card *card, __u8 *mac) { QETH_DBF_TEXT(trace, 2, "L2Setmac"); return qeth_layer2_send_setdelmac(card, mac, IPA_CMD_SETVMAC, qeth_layer2_send_setmac_cb); } static int qeth_layer2_send_delmac_cb(struct qeth_card *card, struct qeth_reply *reply, unsigned long data) { struct qeth_ipa_cmd *cmd; QETH_DBF_TEXT(trace, 2, "L2Dmaccb"); cmd = (struct qeth_ipa_cmd *) data; if (cmd->hdr.return_code) { PRINT_WARN("Error in deregistering MAC address on " \ "device %s: x%x\n", CARD_BUS_ID(card), cmd->hdr.return_code); QETH_DBF_TEXT_(trace, 2, "err%d", cmd->hdr.return_code); cmd->hdr.return_code = -EIO; return 0; } card->info.mac_bits &= ~QETH_LAYER2_MAC_REGISTERED; return 0; } static int qeth_layer2_send_delmac(struct qeth_card *card, __u8 *mac) { QETH_DBF_TEXT(trace, 2, "L2Delmac"); if (!(card->info.mac_bits & QETH_LAYER2_MAC_REGISTERED)) return 0; return qeth_layer2_send_setdelmac(card, mac, IPA_CMD_DELVMAC, qeth_layer2_send_delmac_cb); } static int qeth_layer2_set_mac_address(struct net_device *dev, void *p) { struct sockaddr *addr = p; struct qeth_card *card; int rc = 0; QETH_DBF_TEXT(trace, 3, "setmac"); if (qeth_verify_dev(dev) != QETH_REAL_CARD) { QETH_DBF_TEXT(trace, 3, "setmcINV"); return -EOPNOTSUPP; } card = (struct qeth_card *) dev->priv; if (!card->options.layer2) { PRINT_WARN("Setting MAC address on %s is not supported " "in Layer 3 mode.\n", dev->name); QETH_DBF_TEXT(trace, 3, "setmcLY3"); return -EOPNOTSUPP; } if (card->info.type == QETH_CARD_TYPE_OSN) { PRINT_WARN("Setting MAC address on %s is not supported.\n", dev->name); QETH_DBF_TEXT(trace, 3, "setmcOSN"); return -EOPNOTSUPP; } QETH_DBF_TEXT_(trace, 3, "%s", CARD_BUS_ID(card)); QETH_DBF_HEX(trace, 3, addr->sa_data, OSA_ADDR_LEN); rc = qeth_layer2_send_delmac(card, &card->dev->dev_addr[0]); if (!rc) rc = qeth_layer2_send_setmac(card, addr->sa_data); return rc; } static void qeth_fill_ipacmd_header(struct qeth_card *card, struct qeth_ipa_cmd *cmd, __u8 command, enum qeth_prot_versions prot) { memset(cmd, 0, sizeof (struct qeth_ipa_cmd)); cmd->hdr.command = command; cmd->hdr.initiator = IPA_CMD_INITIATOR_HOST; cmd->hdr.seqno = card->seqno.ipa; cmd->hdr.adapter_type = qeth_get_ipa_adp_type(card->info.link_type); cmd->hdr.rel_adapter_no = (__u8) card->info.portno; if (card->options.layer2) cmd->hdr.prim_version_no = 2; else cmd->hdr.prim_version_no = 1; cmd->hdr.param_count = 1; cmd->hdr.prot_version = prot; cmd->hdr.ipa_supported = 0; cmd->hdr.ipa_enabled = 0; } static struct qeth_cmd_buffer * qeth_get_ipacmd_buffer(struct qeth_card *card, enum qeth_ipa_cmds ipacmd, enum qeth_prot_versions prot) { struct qeth_cmd_buffer *iob; struct qeth_ipa_cmd *cmd; iob = qeth_wait_for_buffer(&card->write); cmd = (struct qeth_ipa_cmd *)(iob->data+IPA_PDU_HEADER_SIZE); qeth_fill_ipacmd_header(card, cmd, ipacmd, prot); return iob; } static int qeth_send_setdelmc(struct qeth_card *card, struct qeth_ipaddr *addr, int ipacmd) { int rc; struct qeth_cmd_buffer *iob; struct qeth_ipa_cmd *cmd; QETH_DBF_TEXT(trace,4,"setdelmc"); iob = qeth_get_ipacmd_buffer(card, ipacmd, addr->proto); cmd = (struct qeth_ipa_cmd *)(iob->data+IPA_PDU_HEADER_SIZE); memcpy(&cmd->data.setdelipm.mac,addr->mac, OSA_ADDR_LEN); if (addr->proto == QETH_PROT_IPV6) memcpy(cmd->data.setdelipm.ip6, &addr->u.a6.addr, sizeof(struct in6_addr)); else memcpy(&cmd->data.setdelipm.ip4, &addr->u.a4.addr,4); rc = qeth_send_ipa_cmd(card, iob, NULL, NULL); return rc; } static inline void qeth_fill_netmask(u8 *netmask, unsigned int len) { int i,j; for (i=0;i<16;i++) { j=(len)-(i*8); if (j >= 8) netmask[i] = 0xff; else if (j > 0) netmask[i] = (u8)(0xFF00>>j); else netmask[i] = 0; } } static int qeth_send_setdelip(struct qeth_card *card, struct qeth_ipaddr *addr, int ipacmd, unsigned int flags) { int rc; struct qeth_cmd_buffer *iob; struct qeth_ipa_cmd *cmd; __u8 netmask[16]; QETH_DBF_TEXT(trace,4,"setdelip"); QETH_DBF_TEXT_(trace,4,"flags%02X", flags); iob = qeth_get_ipacmd_buffer(card, ipacmd, addr->proto); cmd = (struct qeth_ipa_cmd *)(iob->data+IPA_PDU_HEADER_SIZE); if (addr->proto == QETH_PROT_IPV6) { memcpy(cmd->data.setdelip6.ip_addr, &addr->u.a6.addr, sizeof(struct in6_addr)); qeth_fill_netmask(netmask,addr->u.a6.pfxlen); memcpy(cmd->data.setdelip6.mask, netmask, sizeof(struct in6_addr)); cmd->data.setdelip6.flags = flags; } else { memcpy(cmd->data.setdelip4.ip_addr, &addr->u.a4.addr, 4); memcpy(cmd->data.setdelip4.mask, &addr->u.a4.mask, 4); cmd->data.setdelip4.flags = flags; } rc = qeth_send_ipa_cmd(card, iob, NULL, NULL); return rc; } static int qeth_layer2_register_addr_entry(struct qeth_card *card, struct qeth_ipaddr *addr) { if (!addr->is_multicast) return 0; QETH_DBF_TEXT(trace, 2, "setgmac"); QETH_DBF_HEX(trace,3,&addr->mac[0],OSA_ADDR_LEN); return qeth_layer2_send_setgroupmac(card, &addr->mac[0]); } static int qeth_layer2_deregister_addr_entry(struct qeth_card *card, struct qeth_ipaddr *addr) { if (!addr->is_multicast) return 0; QETH_DBF_TEXT(trace, 2, "delgmac"); QETH_DBF_HEX(trace,3,&addr->mac[0],OSA_ADDR_LEN); return qeth_layer2_send_delgroupmac(card, &addr->mac[0]); } static int qeth_layer3_register_addr_entry(struct qeth_card *card, struct qeth_ipaddr *addr) { char buf[50]; int rc; int cnt = 3; if (addr->proto == QETH_PROT_IPV4) { QETH_DBF_TEXT(trace, 2,"setaddr4"); QETH_DBF_HEX(trace, 3, &addr->u.a4.addr, sizeof(int)); } else if (addr->proto == QETH_PROT_IPV6) { QETH_DBF_TEXT(trace, 2, "setaddr6"); QETH_DBF_HEX(trace,3,&addr->u.a6.addr,8); QETH_DBF_HEX(trace,3,((char *)&addr->u.a6.addr)+8,8); } else { QETH_DBF_TEXT(trace, 2, "setaddr?"); QETH_DBF_HEX(trace, 3, addr, sizeof(struct qeth_ipaddr)); } do { if (addr->is_multicast) rc = qeth_send_setdelmc(card, addr, IPA_CMD_SETIPM); else rc = qeth_send_setdelip(card, addr, IPA_CMD_SETIP, addr->set_flags); if (rc) QETH_DBF_TEXT(trace, 2, "failed"); } while ((--cnt > 0) && rc); if (rc){ QETH_DBF_TEXT(trace, 2, "FAILED"); qeth_ipaddr_to_string(addr->proto, (u8 *)&addr->u, buf); PRINT_WARN("Could not register IP address %s (rc=0x%x/%d)\n", buf, rc, rc); } return rc; } static int qeth_layer3_deregister_addr_entry(struct qeth_card *card, struct qeth_ipaddr *addr) { //char buf[50]; int rc; if (addr->proto == QETH_PROT_IPV4) { QETH_DBF_TEXT(trace, 2,"deladdr4"); QETH_DBF_HEX(trace, 3, &addr->u.a4.addr, sizeof(int)); } else if (addr->proto == QETH_PROT_IPV6) { QETH_DBF_TEXT(trace, 2, "deladdr6"); QETH_DBF_HEX(trace,3,&addr->u.a6.addr,8); QETH_DBF_HEX(trace,3,((char *)&addr->u.a6.addr)+8,8); } else { QETH_DBF_TEXT(trace, 2, "deladdr?"); QETH_DBF_HEX(trace, 3, addr, sizeof(struct qeth_ipaddr)); } if (addr->is_multicast) rc = qeth_send_setdelmc(card, addr, IPA_CMD_DELIPM); else rc = qeth_send_setdelip(card, addr, IPA_CMD_DELIP, addr->del_flags); if (rc) { QETH_DBF_TEXT(trace, 2, "failed"); /* TODO: re-activate this warning as soon as we have a * clean mirco code qeth_ipaddr_to_string(addr->proto, (u8 *)&addr->u, buf); PRINT_WARN("Could not deregister IP address %s (rc=%x)\n", buf, rc); */ } return rc; } static int qeth_register_addr_entry(struct qeth_card *card, struct qeth_ipaddr *addr) { if (card->options.layer2) return qeth_layer2_register_addr_entry(card, addr); return qeth_layer3_register_addr_entry(card, addr); } static int qeth_deregister_addr_entry(struct qeth_card *card, struct qeth_ipaddr *addr) { if (card->options.layer2) return qeth_layer2_deregister_addr_entry(card, addr); return qeth_layer3_deregister_addr_entry(card, addr); } static u32 qeth_ethtool_get_tx_csum(struct net_device *dev) { /* We may need to say that we support tx csum offload if * we do EDDP or TSO. There are discussions going on to * enforce rules in the stack and in ethtool that make * SG and TSO depend on HW_CSUM. At the moment there are * no such rules.... * If we say yes here, we have to checksum outbound packets * any time. */ return 0; } static int qeth_ethtool_set_tx_csum(struct net_device *dev, u32 data) { return -EINVAL; } static u32 qeth_ethtool_get_rx_csum(struct net_device *dev) { struct qeth_card *card = (struct qeth_card *)dev->priv; return (card->options.checksum_type == HW_CHECKSUMMING); } static int qeth_ethtool_set_rx_csum(struct net_device *dev, u32 data) { struct qeth_card *card = (struct qeth_card *)dev->priv; if ((card->state != CARD_STATE_DOWN) && (card->state != CARD_STATE_RECOVER)) return -EPERM; if (data) card->options.checksum_type = HW_CHECKSUMMING; else card->options.checksum_type = SW_CHECKSUMMING; return 0; } static u32 qeth_ethtool_get_sg(struct net_device *dev) { struct qeth_card *card = (struct qeth_card *)dev->priv; return ((card->options.large_send != QETH_LARGE_SEND_NO) && (dev->features & NETIF_F_SG)); } static int qeth_ethtool_set_sg(struct net_device *dev, u32 data) { struct qeth_card *card = (struct qeth_card *)dev->priv; if (data) { if (card->options.large_send != QETH_LARGE_SEND_NO) dev->features |= NETIF_F_SG; else { dev->features &= ~NETIF_F_SG; return -EINVAL; } } else dev->features &= ~NETIF_F_SG; return 0; } static u32 qeth_ethtool_get_tso(struct net_device *dev) { struct qeth_card *card = (struct qeth_card *)dev->priv; return ((card->options.large_send != QETH_LARGE_SEND_NO) && (dev->features & NETIF_F_TSO)); } static int qeth_ethtool_set_tso(struct net_device *dev, u32 data) { struct qeth_card *card = (struct qeth_card *)dev->priv; if (data) { if (card->options.large_send != QETH_LARGE_SEND_NO) dev->features |= NETIF_F_TSO; else { dev->features &= ~NETIF_F_TSO; return -EINVAL; } } else dev->features &= ~NETIF_F_TSO; return 0; } static struct ethtool_ops qeth_ethtool_ops = { .get_tx_csum = qeth_ethtool_get_tx_csum, .set_tx_csum = qeth_ethtool_set_tx_csum, .get_rx_csum = qeth_ethtool_get_rx_csum, .set_rx_csum = qeth_ethtool_set_rx_csum, .get_sg = qeth_ethtool_get_sg, .set_sg = qeth_ethtool_set_sg, .get_tso = qeth_ethtool_get_tso, .set_tso = qeth_ethtool_set_tso, }; static int qeth_netdev_init(struct net_device *dev) { struct qeth_card *card; card = (struct qeth_card *) dev->priv; QETH_DBF_TEXT(trace,3,"initdev"); dev->tx_timeout = &qeth_tx_timeout; dev->watchdog_timeo = QETH_TX_TIMEOUT; dev->open = qeth_open; dev->stop = qeth_stop; dev->hard_start_xmit = qeth_hard_start_xmit; dev->do_ioctl = qeth_do_ioctl; dev->get_stats = qeth_get_stats; dev->change_mtu = qeth_change_mtu; dev->neigh_setup = qeth_neigh_setup; dev->set_multicast_list = qeth_set_multicast_list; #ifdef CONFIG_QETH_VLAN dev->vlan_rx_register = qeth_vlan_rx_register; dev->vlan_rx_kill_vid = qeth_vlan_rx_kill_vid; dev->vlan_rx_add_vid = qeth_vlan_rx_add_vid; #endif dev->hard_header = card->orig_hard_header; if (qeth_get_netdev_flags(card) & IFF_NOARP) { dev->rebuild_header = NULL; dev->hard_header = NULL; if (card->options.fake_ll) dev->hard_header = qeth_fake_header; dev->header_cache_update = NULL; dev->hard_header_cache = NULL; } #ifdef CONFIG_QETH_IPV6 /*IPv6 address autoconfiguration stuff*/ if (!(card->info.unique_id & UNIQUE_ID_NOT_BY_CARD)) card->dev->dev_id = card->info.unique_id & 0xffff; #endif dev->hard_header_parse = NULL; dev->set_mac_address = qeth_layer2_set_mac_address; dev->flags |= qeth_get_netdev_flags(card); if ((card->options.fake_broadcast) || (card->info.broadcast_capable)) dev->flags |= IFF_BROADCAST; dev->hard_header_len = qeth_get_hlen(card->info.link_type) + card->options.add_hhlen; dev->addr_len = OSA_ADDR_LEN; dev->mtu = card->info.initial_mtu; if (card->info.type != QETH_CARD_TYPE_OSN) SET_ETHTOOL_OPS(dev, &qeth_ethtool_ops); SET_MODULE_OWNER(dev); return 0; } static void qeth_init_func_level(struct qeth_card *card) { if (card->ipato.enabled) { if (card->info.type == QETH_CARD_TYPE_IQD) card->info.func_level = QETH_IDX_FUNC_LEVEL_IQD_ENA_IPAT; else card->info.func_level = QETH_IDX_FUNC_LEVEL_OSAE_ENA_IPAT; } else { if (card->info.type == QETH_CARD_TYPE_IQD) /*FIXME:why do we have same values for dis and ena for osae??? */ card->info.func_level = QETH_IDX_FUNC_LEVEL_IQD_DIS_IPAT; else card->info.func_level = QETH_IDX_FUNC_LEVEL_OSAE_DIS_IPAT; } } /** * hardsetup card, initialize MPC and QDIO stuff */ static int qeth_hardsetup_card(struct qeth_card *card) { int retries = 3; int rc; QETH_DBF_TEXT(setup, 2, "hrdsetup"); retry: if (retries < 3){ PRINT_WARN("Retrying to do IDX activates.\n"); ccw_device_set_offline(CARD_DDEV(card)); ccw_device_set_offline(CARD_WDEV(card)); ccw_device_set_offline(CARD_RDEV(card)); ccw_device_set_online(CARD_RDEV(card)); ccw_device_set_online(CARD_WDEV(card)); ccw_device_set_online(CARD_DDEV(card)); } rc = qeth_qdio_clear_card(card,card->info.type!=QETH_CARD_TYPE_IQD); if (rc == -ERESTARTSYS) { QETH_DBF_TEXT(setup, 2, "break1"); return rc; } else if (rc) { QETH_DBF_TEXT_(setup, 2, "1err%d", rc); if (--retries < 0) goto out; else goto retry; } if ((rc = qeth_get_unitaddr(card))){ QETH_DBF_TEXT_(setup, 2, "2err%d", rc); return rc; } qeth_init_tokens(card); qeth_init_func_level(card); rc = qeth_idx_activate_channel(&card->read, qeth_idx_read_cb); if (rc == -ERESTARTSYS) { QETH_DBF_TEXT(setup, 2, "break2"); return rc; } else if (rc) { QETH_DBF_TEXT_(setup, 2, "3err%d", rc); if (--retries < 0) goto out; else goto retry; } rc = qeth_idx_activate_channel(&card->write, qeth_idx_write_cb); if (rc == -ERESTARTSYS) { QETH_DBF_TEXT(setup, 2, "break3"); return rc; } else if (rc) { QETH_DBF_TEXT_(setup, 2, "4err%d", rc); if (--retries < 0) goto out; else goto retry; } if ((rc = qeth_mpc_initialize(card))){ QETH_DBF_TEXT_(setup, 2, "5err%d", rc); goto out; } /*network device will be recovered*/ if (card->dev) { card->dev->hard_header = card->orig_hard_header; return 0; } /* at first set_online allocate netdev */ card->dev = qeth_get_netdevice(card->info.type, card->info.link_type); if (!card->dev){ qeth_qdio_clear_card(card, card->info.type != QETH_CARD_TYPE_IQD); rc = -ENODEV; QETH_DBF_TEXT_(setup, 2, "6err%d", rc); goto out; } card->dev->priv = card; card->orig_hard_header = card->dev->hard_header; card->dev->type = qeth_get_arphdr_type(card->info.type, card->info.link_type); card->dev->init = qeth_netdev_init; return 0; out: PRINT_ERR("Initialization in hardsetup failed! rc=%d\n", rc); return rc; } static int qeth_default_setassparms_cb(struct qeth_card *card, struct qeth_reply *reply, unsigned long data) { struct qeth_ipa_cmd *cmd; QETH_DBF_TEXT(trace,4,"defadpcb"); cmd = (struct qeth_ipa_cmd *) data; if (cmd->hdr.return_code == 0){ cmd->hdr.return_code = cmd->data.setassparms.hdr.return_code; if (cmd->hdr.prot_version == QETH_PROT_IPV4) card->options.ipa4.enabled_funcs = cmd->hdr.ipa_enabled; #ifdef CONFIG_QETH_IPV6 if (cmd->hdr.prot_version == QETH_PROT_IPV6) card->options.ipa6.enabled_funcs = cmd->hdr.ipa_enabled; #endif } if (cmd->data.setassparms.hdr.assist_no == IPA_INBOUND_CHECKSUM && cmd->data.setassparms.hdr.command_code == IPA_CMD_ASS_START) { card->info.csum_mask = cmd->data.setassparms.data.flags_32bit; QETH_DBF_TEXT_(trace, 3, "csum:%d", card->info.csum_mask); } return 0; } static int qeth_default_setadapterparms_cb(struct qeth_card *card, struct qeth_reply *reply, unsigned long data) { struct qeth_ipa_cmd *cmd; QETH_DBF_TEXT(trace,4,"defadpcb"); cmd = (struct qeth_ipa_cmd *) data; if (cmd->hdr.return_code == 0) cmd->hdr.return_code = cmd->data.setadapterparms.hdr.return_code; return 0; } static int qeth_query_setadapterparms_cb(struct qeth_card *card, struct qeth_reply *reply, unsigned long data) { struct qeth_ipa_cmd *cmd; QETH_DBF_TEXT(trace,3,"quyadpcb"); cmd = (struct qeth_ipa_cmd *) data; if (cmd->data.setadapterparms.data.query_cmds_supp.lan_type & 0x7f) card->info.link_type = cmd->data.setadapterparms.data.query_cmds_supp.lan_type; card->options.adp.supported_funcs = cmd->data.setadapterparms.data.query_cmds_supp.supported_cmds; return qeth_default_setadapterparms_cb(card, reply, (unsigned long)cmd); } static int qeth_query_setadapterparms(struct qeth_card *card) { int rc; struct qeth_cmd_buffer *iob; QETH_DBF_TEXT(trace,3,"queryadp"); iob = qeth_get_adapter_cmd(card, IPA_SETADP_QUERY_COMMANDS_SUPPORTED, sizeof(struct qeth_ipacmd_setadpparms)); rc = qeth_send_ipa_cmd(card, iob, qeth_query_setadapterparms_cb, NULL); return rc; } static int qeth_setadpparms_change_macaddr_cb(struct qeth_card *card, struct qeth_reply *reply, unsigned long data) { struct qeth_ipa_cmd *cmd; QETH_DBF_TEXT(trace,4,"chgmaccb"); cmd = (struct qeth_ipa_cmd *) data; if (!card->options.layer2 || card->info.guestlan || !(card->info.mac_bits & QETH_LAYER2_MAC_READ)) { memcpy(card->dev->dev_addr, &cmd->data.setadapterparms.data.change_addr.addr, OSA_ADDR_LEN); card->info.mac_bits |= QETH_LAYER2_MAC_READ; } qeth_default_setadapterparms_cb(card, reply, (unsigned long) cmd); return 0; } static int qeth_setadpparms_change_macaddr(struct qeth_card *card) { int rc; struct qeth_cmd_buffer *iob; struct qeth_ipa_cmd *cmd; QETH_DBF_TEXT(trace,4,"chgmac"); iob = qeth_get_adapter_cmd(card,IPA_SETADP_ALTER_MAC_ADDRESS, sizeof(struct qeth_ipacmd_setadpparms)); cmd = (struct qeth_ipa_cmd *)(iob->data+IPA_PDU_HEADER_SIZE); cmd->data.setadapterparms.data.change_addr.cmd = CHANGE_ADDR_READ_MAC; cmd->data.setadapterparms.data.change_addr.addr_size = OSA_ADDR_LEN; memcpy(&cmd->data.setadapterparms.data.change_addr.addr, card->dev->dev_addr, OSA_ADDR_LEN); rc = qeth_send_ipa_cmd(card, iob, qeth_setadpparms_change_macaddr_cb, NULL); return rc; } static int qeth_send_setadp_mode(struct qeth_card *card, __u32 command, __u32 mode) { int rc; struct qeth_cmd_buffer *iob; struct qeth_ipa_cmd *cmd; QETH_DBF_TEXT(trace,4,"adpmode"); iob = qeth_get_adapter_cmd(card, command, sizeof(struct qeth_ipacmd_setadpparms)); cmd = (struct qeth_ipa_cmd *)(iob->data+IPA_PDU_HEADER_SIZE); cmd->data.setadapterparms.data.mode = mode; rc = qeth_send_ipa_cmd(card, iob, qeth_default_setadapterparms_cb, NULL); return rc; } static inline int qeth_setadapter_hstr(struct qeth_card *card) { int rc; QETH_DBF_TEXT(trace,4,"adphstr"); if (qeth_adp_supported(card,IPA_SETADP_SET_BROADCAST_MODE)) { rc = qeth_send_setadp_mode(card, IPA_SETADP_SET_BROADCAST_MODE, card->options.broadcast_mode); if (rc) PRINT_WARN("couldn't set broadcast mode on " "device %s: x%x\n", CARD_BUS_ID(card), rc); rc = qeth_send_setadp_mode(card, IPA_SETADP_ALTER_MAC_ADDRESS, card->options.macaddr_mode); if (rc) PRINT_WARN("couldn't set macaddr mode on " "device %s: x%x\n", CARD_BUS_ID(card), rc); return rc; } if (card->options.broadcast_mode == QETH_TR_BROADCAST_LOCAL) PRINT_WARN("set adapter parameters not available " "to set broadcast mode, using ALLRINGS " "on device %s:\n", CARD_BUS_ID(card)); if (card->options.macaddr_mode == QETH_TR_MACADDR_CANONICAL) PRINT_WARN("set adapter parameters not available " "to set macaddr mode, using NONCANONICAL " "on device %s:\n", CARD_BUS_ID(card)); return 0; } static int qeth_setadapter_parms(struct qeth_card *card) { int rc; QETH_DBF_TEXT(setup, 2, "setadprm"); if (!qeth_is_supported(card, IPA_SETADAPTERPARMS)){ PRINT_WARN("set adapter parameters not supported " "on device %s.\n", CARD_BUS_ID(card)); QETH_DBF_TEXT(setup, 2, " notsupp"); return 0; } rc = qeth_query_setadapterparms(card); if (rc) { PRINT_WARN("couldn't set adapter parameters on device %s: " "x%x\n", CARD_BUS_ID(card), rc); return rc; } if (qeth_adp_supported(card,IPA_SETADP_ALTER_MAC_ADDRESS)) { rc = qeth_setadpparms_change_macaddr(card); if (rc) PRINT_WARN("couldn't get MAC address on " "device %s: x%x\n", CARD_BUS_ID(card), rc); } if ((card->info.link_type == QETH_LINK_TYPE_HSTR) || (card->info.link_type == QETH_LINK_TYPE_LANE_TR)) rc = qeth_setadapter_hstr(card); return rc; } static int qeth_layer2_initialize(struct qeth_card *card) { int rc = 0; QETH_DBF_TEXT(setup, 2, "doL2init"); QETH_DBF_TEXT_(setup, 2, "doL2%s", CARD_BUS_ID(card)); rc = qeth_query_setadapterparms(card); if (rc) { PRINT_WARN("could not query adapter parameters on device %s: " "x%x\n", CARD_BUS_ID(card), rc); } rc = qeth_setadpparms_change_macaddr(card); if (rc) { PRINT_WARN("couldn't get MAC address on " "device %s: x%x\n", CARD_BUS_ID(card), rc); QETH_DBF_TEXT_(setup, 2,"1err%d",rc); return rc; } QETH_DBF_HEX(setup,2, card->dev->dev_addr, OSA_ADDR_LEN); rc = qeth_layer2_send_setmac(card, &card->dev->dev_addr[0]); if (rc) QETH_DBF_TEXT_(setup, 2,"2err%d",rc); return 0; } static int qeth_send_startstoplan(struct qeth_card *card, enum qeth_ipa_cmds ipacmd, enum qeth_prot_versions prot) { int rc; struct qeth_cmd_buffer *iob; iob = qeth_get_ipacmd_buffer(card,ipacmd,prot); rc = qeth_send_ipa_cmd(card, iob, NULL, NULL); return rc; } static int qeth_send_startlan(struct qeth_card *card, enum qeth_prot_versions prot) { int rc; QETH_DBF_TEXT_(setup, 2, "strtlan%i", prot); rc = qeth_send_startstoplan(card, IPA_CMD_STARTLAN, prot); return rc; } static int qeth_send_stoplan(struct qeth_card *card) { int rc = 0; /* * TODO: according to the IPA format document page 14, * TCP/IP (we!) never issue a STOPLAN * is this right ?!? */ QETH_DBF_TEXT(trace, 2, "stoplan"); rc = qeth_send_startstoplan(card, IPA_CMD_STOPLAN, QETH_PROT_IPV4); return rc; } static int qeth_query_ipassists_cb(struct qeth_card *card, struct qeth_reply *reply, unsigned long data) { struct qeth_ipa_cmd *cmd; QETH_DBF_TEXT(setup, 2, "qipasscb"); cmd = (struct qeth_ipa_cmd *) data; if (cmd->hdr.prot_version == QETH_PROT_IPV4) { card->options.ipa4.supported_funcs = cmd->hdr.ipa_supported; card->options.ipa4.enabled_funcs = cmd->hdr.ipa_enabled; /* Disable IPV6 support hard coded for Hipersockets */ if(card->info.type == QETH_CARD_TYPE_IQD) card->options.ipa4.supported_funcs &= ~IPA_IPV6; } else { #ifdef CONFIG_QETH_IPV6 card->options.ipa6.supported_funcs = cmd->hdr.ipa_supported; card->options.ipa6.enabled_funcs = cmd->hdr.ipa_enabled; #endif } QETH_DBF_TEXT(setup, 2, "suppenbl"); QETH_DBF_TEXT_(setup, 2, "%x",cmd->hdr.ipa_supported); QETH_DBF_TEXT_(setup, 2, "%x",cmd->hdr.ipa_enabled); return 0; } static int qeth_query_ipassists(struct qeth_card *card, enum qeth_prot_versions prot) { int rc; struct qeth_cmd_buffer *iob; QETH_DBF_TEXT_(setup, 2, "qipassi%i", prot); if (card->options.layer2) { QETH_DBF_TEXT(setup, 2, "noprmly2"); return -EPERM; } iob = qeth_get_ipacmd_buffer(card,IPA_CMD_QIPASSIST,prot); rc = qeth_send_ipa_cmd(card, iob, qeth_query_ipassists_cb, NULL); return rc; } static struct qeth_cmd_buffer * qeth_get_setassparms_cmd(struct qeth_card *card, enum qeth_ipa_funcs ipa_func, __u16 cmd_code, __u16 len, enum qeth_prot_versions prot) { struct qeth_cmd_buffer *iob; struct qeth_ipa_cmd *cmd; QETH_DBF_TEXT(trace,4,"getasscm"); iob = qeth_get_ipacmd_buffer(card,IPA_CMD_SETASSPARMS,prot); cmd = (struct qeth_ipa_cmd *)(iob->data+IPA_PDU_HEADER_SIZE); cmd->data.setassparms.hdr.assist_no = ipa_func; cmd->data.setassparms.hdr.length = 8 + len; cmd->data.setassparms.hdr.command_code = cmd_code; cmd->data.setassparms.hdr.return_code = 0; cmd->data.setassparms.hdr.seq_no = 0; return iob; } static int qeth_send_setassparms(struct qeth_card *card, struct qeth_cmd_buffer *iob, __u16 len, long data, int (*reply_cb) (struct qeth_card *,struct qeth_reply *,unsigned long), void *reply_param) { int rc; struct qeth_ipa_cmd *cmd; QETH_DBF_TEXT(trace,4,"sendassp"); cmd = (struct qeth_ipa_cmd *)(iob->data+IPA_PDU_HEADER_SIZE); if (len <= sizeof(__u32)) cmd->data.setassparms.data.flags_32bit = (__u32) data; else if (len > sizeof(__u32)) memcpy(&cmd->data.setassparms.data, (void *) data, len); rc = qeth_send_ipa_cmd(card, iob, reply_cb, reply_param); return rc; } #ifdef CONFIG_QETH_IPV6 static int qeth_send_simple_setassparms_ipv6(struct qeth_card *card, enum qeth_ipa_funcs ipa_func, __u16 cmd_code) { int rc; struct qeth_cmd_buffer *iob; QETH_DBF_TEXT(trace,4,"simassp6"); iob = qeth_get_setassparms_cmd(card, ipa_func, cmd_code, 0, QETH_PROT_IPV6); rc = qeth_send_setassparms(card, iob, 0, 0, qeth_default_setassparms_cb, NULL); return rc; } #endif static int qeth_send_simple_setassparms(struct qeth_card *card, enum qeth_ipa_funcs ipa_func, __u16 cmd_code, long data) { int rc; int length = 0; struct qeth_cmd_buffer *iob; QETH_DBF_TEXT(trace,4,"simassp4"); if (data) length = sizeof(__u32); iob = qeth_get_setassparms_cmd(card, ipa_func, cmd_code, length, QETH_PROT_IPV4); rc = qeth_send_setassparms(card, iob, length, data, qeth_default_setassparms_cb, NULL); return rc; } static inline int qeth_start_ipa_arp_processing(struct qeth_card *card) { int rc; QETH_DBF_TEXT(trace,3,"ipaarp"); if (!qeth_is_supported(card,IPA_ARP_PROCESSING)) { PRINT_WARN("ARP processing not supported " "on %s!\n", QETH_CARD_IFNAME(card)); return 0; } rc = qeth_send_simple_setassparms(card,IPA_ARP_PROCESSING, IPA_CMD_ASS_START, 0); if (rc) { PRINT_WARN("Could not start ARP processing " "assist on %s: 0x%x\n", QETH_CARD_IFNAME(card), rc); } return rc; } static int qeth_start_ipa_ip_fragmentation(struct qeth_card *card) { int rc; QETH_DBF_TEXT(trace,3,"ipaipfrg"); if (!qeth_is_supported(card, IPA_IP_FRAGMENTATION)) { PRINT_INFO("Hardware IP fragmentation not supported on %s\n", QETH_CARD_IFNAME(card)); return -EOPNOTSUPP; } rc = qeth_send_simple_setassparms(card, IPA_IP_FRAGMENTATION, IPA_CMD_ASS_START, 0); if (rc) { PRINT_WARN("Could not start Hardware IP fragmentation " "assist on %s: 0x%x\n", QETH_CARD_IFNAME(card), rc); } else PRINT_INFO("Hardware IP fragmentation enabled \n"); return rc; } static int qeth_start_ipa_source_mac(struct qeth_card *card) { int rc; QETH_DBF_TEXT(trace,3,"stsrcmac"); if (!card->options.fake_ll) return -EOPNOTSUPP; if (!qeth_is_supported(card, IPA_SOURCE_MAC)) { PRINT_INFO("Inbound source address not " "supported on %s\n", QETH_CARD_IFNAME(card)); return -EOPNOTSUPP; } rc = qeth_send_simple_setassparms(card, IPA_SOURCE_MAC, IPA_CMD_ASS_START, 0); if (rc) PRINT_WARN("Could not start inbound source " "assist on %s: 0x%x\n", QETH_CARD_IFNAME(card), rc); return rc; } static int qeth_start_ipa_vlan(struct qeth_card *card) { int rc = 0; QETH_DBF_TEXT(trace,3,"strtvlan"); #ifdef CONFIG_QETH_VLAN if (!qeth_is_supported(card, IPA_FULL_VLAN)) { PRINT_WARN("VLAN not supported on %s\n", QETH_CARD_IFNAME(card)); return -EOPNOTSUPP; } rc = qeth_send_simple_setassparms(card, IPA_VLAN_PRIO, IPA_CMD_ASS_START,0); if (rc) { PRINT_WARN("Could not start vlan " "assist on %s: 0x%x\n", QETH_CARD_IFNAME(card), rc); } else { PRINT_INFO("VLAN enabled \n"); card->dev->features |= NETIF_F_HW_VLAN_FILTER | NETIF_F_HW_VLAN_TX | NETIF_F_HW_VLAN_RX; } #endif /* QETH_VLAN */ return rc; } static int qeth_start_ipa_multicast(struct qeth_card *card) { int rc; QETH_DBF_TEXT(trace,3,"stmcast"); if (!qeth_is_supported(card, IPA_MULTICASTING)) { PRINT_WARN("Multicast not supported on %s\n", QETH_CARD_IFNAME(card)); return -EOPNOTSUPP; } rc = qeth_send_simple_setassparms(card, IPA_MULTICASTING, IPA_CMD_ASS_START,0); if (rc) { PRINT_WARN("Could not start multicast " "assist on %s: rc=%i\n", QETH_CARD_IFNAME(card), rc); } else { PRINT_INFO("Multicast enabled\n"); card->dev->flags |= IFF_MULTICAST; } return rc; } #ifdef CONFIG_QETH_IPV6 static int qeth_softsetup_ipv6(struct qeth_card *card) { int rc; QETH_DBF_TEXT(trace,3,"softipv6"); netif_stop_queue(card->dev); rc = qeth_send_startlan(card, QETH_PROT_IPV6); if (rc) { PRINT_ERR("IPv6 startlan failed on %s\n", QETH_CARD_IFNAME(card)); return rc; } netif_wake_queue(card->dev); rc = qeth_query_ipassists(card,QETH_PROT_IPV6); if (rc) { PRINT_ERR("IPv6 query ipassist failed on %s\n", QETH_CARD_IFNAME(card)); return rc; } rc = qeth_send_simple_setassparms(card, IPA_IPV6, IPA_CMD_ASS_START, 3); if (rc) { PRINT_WARN("IPv6 start assist (version 4) failed " "on %s: 0x%x\n", QETH_CARD_IFNAME(card), rc); return rc; } rc = qeth_send_simple_setassparms_ipv6(card, IPA_IPV6, IPA_CMD_ASS_START); if (rc) { PRINT_WARN("IPV6 start assist (version 6) failed " "on %s: 0x%x\n", QETH_CARD_IFNAME(card), rc); return rc; } rc = qeth_send_simple_setassparms_ipv6(card, IPA_PASSTHRU, IPA_CMD_ASS_START); if (rc) { PRINT_WARN("Could not enable passthrough " "on %s: 0x%x\n", QETH_CARD_IFNAME(card), rc); return rc; } PRINT_INFO("IPV6 enabled \n"); return 0; } #endif static int qeth_start_ipa_ipv6(struct qeth_card *card) { int rc = 0; #ifdef CONFIG_QETH_IPV6 QETH_DBF_TEXT(trace,3,"strtipv6"); if (!qeth_is_supported(card, IPA_IPV6)) { PRINT_WARN("IPv6 not supported on %s\n", QETH_CARD_IFNAME(card)); return 0; } rc = qeth_softsetup_ipv6(card); #endif return rc ; } static int qeth_start_ipa_broadcast(struct qeth_card *card) { int rc; QETH_DBF_TEXT(trace,3,"stbrdcst"); card->info.broadcast_capable = 0; if (!qeth_is_supported(card, IPA_FILTERING)) { PRINT_WARN("Broadcast not supported on %s\n", QETH_CARD_IFNAME(card)); rc = -EOPNOTSUPP; goto out; } rc = qeth_send_simple_setassparms(card, IPA_FILTERING, IPA_CMD_ASS_START, 0); if (rc) { PRINT_WARN("Could not enable broadcasting filtering " "on %s: 0x%x\n", QETH_CARD_IFNAME(card), rc); goto out; } rc = qeth_send_simple_setassparms(card, IPA_FILTERING, IPA_CMD_ASS_CONFIGURE, 1); if (rc) { PRINT_WARN("Could not set up broadcast filtering on %s: 0x%x\n", QETH_CARD_IFNAME(card), rc); goto out; } card->info.broadcast_capable = QETH_BROADCAST_WITH_ECHO; PRINT_INFO("Broadcast enabled \n"); rc = qeth_send_simple_setassparms(card, IPA_FILTERING, IPA_CMD_ASS_ENABLE, 1); if (rc) { PRINT_WARN("Could not set up broadcast echo filtering on " "%s: 0x%x\n", QETH_CARD_IFNAME(card), rc); goto out; } card->info.broadcast_capable = QETH_BROADCAST_WITHOUT_ECHO; out: if (card->info.broadcast_capable) card->dev->flags |= IFF_BROADCAST; else card->dev->flags &= ~IFF_BROADCAST; return rc; } static int qeth_send_checksum_command(struct qeth_card *card) { int rc; rc = qeth_send_simple_setassparms(card, IPA_INBOUND_CHECKSUM, IPA_CMD_ASS_START, 0); if (rc) { PRINT_WARN("Starting Inbound HW Checksumming failed on %s: " "0x%x,\ncontinuing using Inbound SW Checksumming\n", QETH_CARD_IFNAME(card), rc); return rc; } rc = qeth_send_simple_setassparms(card, IPA_INBOUND_CHECKSUM, IPA_CMD_ASS_ENABLE, card->info.csum_mask); if (rc) { PRINT_WARN("Enabling Inbound HW Checksumming failed on %s: " "0x%x,\ncontinuing using Inbound SW Checksumming\n", QETH_CARD_IFNAME(card), rc); return rc; } return 0; } static int qeth_start_ipa_checksum(struct qeth_card *card) { int rc = 0; QETH_DBF_TEXT(trace,3,"strtcsum"); if (card->options.checksum_type == NO_CHECKSUMMING) { PRINT_WARN("Using no checksumming on %s.\n", QETH_CARD_IFNAME(card)); return 0; } if (card->options.checksum_type == SW_CHECKSUMMING) { PRINT_WARN("Using SW checksumming on %s.\n", QETH_CARD_IFNAME(card)); return 0; } if (!qeth_is_supported(card, IPA_INBOUND_CHECKSUM)) { PRINT_WARN("Inbound HW Checksumming not " "supported on %s,\ncontinuing " "using Inbound SW Checksumming\n", QETH_CARD_IFNAME(card)); card->options.checksum_type = SW_CHECKSUMMING; return 0; } rc = qeth_send_checksum_command(card); if (!rc) { PRINT_INFO("HW Checksumming (inbound) enabled \n"); } return rc; } static int qeth_start_ipa_tso(struct qeth_card *card) { int rc; QETH_DBF_TEXT(trace,3,"sttso"); if (!qeth_is_supported(card, IPA_OUTBOUND_TSO)) { PRINT_WARN("Outbound TSO not supported on %s\n", QETH_CARD_IFNAME(card)); rc = -EOPNOTSUPP; } else { rc = qeth_send_simple_setassparms(card, IPA_OUTBOUND_TSO, IPA_CMD_ASS_START,0); if (rc) PRINT_WARN("Could not start outbound TSO " "assist on %s: rc=%i\n", QETH_CARD_IFNAME(card), rc); else PRINT_INFO("Outbound TSO enabled\n"); } if (rc && (card->options.large_send == QETH_LARGE_SEND_TSO)){ card->options.large_send = QETH_LARGE_SEND_NO; card->dev->features &= ~ (NETIF_F_TSO | NETIF_F_SG); } return rc; } static int qeth_start_ipassists(struct qeth_card *card) { QETH_DBF_TEXT(trace,3,"strtipas"); qeth_start_ipa_arp_processing(card); /* go on*/ qeth_start_ipa_ip_fragmentation(card); /* go on*/ qeth_start_ipa_source_mac(card); /* go on*/ qeth_start_ipa_vlan(card); /* go on*/ qeth_start_ipa_multicast(card); /* go on*/ qeth_start_ipa_ipv6(card); /* go on*/ qeth_start_ipa_broadcast(card); /* go on*/ qeth_start_ipa_checksum(card); /* go on*/ qeth_start_ipa_tso(card); /* go on*/ return 0; } static int qeth_send_setrouting(struct qeth_card *card, enum qeth_routing_types type, enum qeth_prot_versions prot) { int rc; struct qeth_ipa_cmd *cmd; struct qeth_cmd_buffer *iob; QETH_DBF_TEXT(trace,4,"setroutg"); iob = qeth_get_ipacmd_buffer(card, IPA_CMD_SETRTG, prot); cmd = (struct qeth_ipa_cmd *)(iob->data+IPA_PDU_HEADER_SIZE); cmd->data.setrtg.type = (type); rc = qeth_send_ipa_cmd(card, iob, NULL, NULL); return rc; } static void qeth_correct_routing_type(struct qeth_card *card, enum qeth_routing_types *type, enum qeth_prot_versions prot) { if (card->info.type == QETH_CARD_TYPE_IQD) { switch (*type) { case NO_ROUTER: case PRIMARY_CONNECTOR: case SECONDARY_CONNECTOR: case MULTICAST_ROUTER: return; default: goto out_inval; } } else { switch (*type) { case NO_ROUTER: case PRIMARY_ROUTER: case SECONDARY_ROUTER: return; case MULTICAST_ROUTER: if (qeth_is_ipafunc_supported(card, prot, IPA_OSA_MC_ROUTER)) return; default: goto out_inval; } } out_inval: PRINT_WARN("Routing type '%s' not supported for interface %s.\n" "Router status set to 'no router'.\n", ((*type == PRIMARY_ROUTER)? "primary router" : (*type == SECONDARY_ROUTER)? "secondary router" : (*type == PRIMARY_CONNECTOR)? "primary connector" : (*type == SECONDARY_CONNECTOR)? "secondary connector" : (*type == MULTICAST_ROUTER)? "multicast router" : "unknown"), card->dev->name); *type = NO_ROUTER; } int qeth_setrouting_v4(struct qeth_card *card) { int rc; QETH_DBF_TEXT(trace,3,"setrtg4"); qeth_correct_routing_type(card, &card->options.route4.type, QETH_PROT_IPV4); rc = qeth_send_setrouting(card, card->options.route4.type, QETH_PROT_IPV4); if (rc) { card->options.route4.type = NO_ROUTER; PRINT_WARN("Error (0x%04x) while setting routing type on %s. " "Type set to 'no router'.\n", rc, QETH_CARD_IFNAME(card)); } return rc; } int qeth_setrouting_v6(struct qeth_card *card) { int rc = 0; QETH_DBF_TEXT(trace,3,"setrtg6"); #ifdef CONFIG_QETH_IPV6 qeth_correct_routing_type(card, &card->options.route6.type, QETH_PROT_IPV6); if ((card->options.route6.type == NO_ROUTER) || ((card->info.type == QETH_CARD_TYPE_OSAE) && (card->options.route6.type == MULTICAST_ROUTER) && !qeth_is_supported6(card,IPA_OSA_MC_ROUTER))) return 0; rc = qeth_send_setrouting(card, card->options.route6.type, QETH_PROT_IPV6); if (rc) { card->options.route6.type = NO_ROUTER; PRINT_WARN("Error (0x%04x) while setting routing type on %s. " "Type set to 'no router'.\n", rc, QETH_CARD_IFNAME(card)); } #endif return rc; } int qeth_set_large_send(struct qeth_card *card, enum qeth_large_send_types type) { int rc = 0; if (card->dev == NULL) { card->options.large_send = type; return 0; } netif_stop_queue(card->dev); card->options.large_send = type; switch (card->options.large_send) { case QETH_LARGE_SEND_EDDP: card->dev->features |= NETIF_F_TSO | NETIF_F_SG; break; case QETH_LARGE_SEND_TSO: if (qeth_is_supported(card, IPA_OUTBOUND_TSO)){ card->dev->features |= NETIF_F_TSO | NETIF_F_SG; } else { PRINT_WARN("TSO not supported on %s. " "large_send set to 'no'.\n", card->dev->name); card->dev->features &= ~(NETIF_F_TSO | NETIF_F_SG); card->options.large_send = QETH_LARGE_SEND_NO; rc = -EOPNOTSUPP; } break; default: /* includes QETH_LARGE_SEND_NO */ card->dev->features &= ~(NETIF_F_TSO | NETIF_F_SG); break; } netif_wake_queue(card->dev); return rc; } /* * softsetup card: init IPA stuff */ static int qeth_softsetup_card(struct qeth_card *card) { int rc; QETH_DBF_TEXT(setup, 2, "softsetp"); if ((rc = qeth_send_startlan(card, QETH_PROT_IPV4))){ QETH_DBF_TEXT_(setup, 2, "1err%d", rc); if (rc == 0xe080){ PRINT_WARN("LAN on card %s if offline! " "Continuing softsetup.\n", CARD_BUS_ID(card)); card->lan_online = 0; } else return rc; } else card->lan_online = 1; if (card->info.type==QETH_CARD_TYPE_OSN) goto out; if (card->options.layer2) { card->dev->features |= NETIF_F_HW_VLAN_FILTER | NETIF_F_HW_VLAN_TX | NETIF_F_HW_VLAN_RX; card->dev->flags|=IFF_MULTICAST|IFF_BROADCAST; card->info.broadcast_capable=1; if ((rc = qeth_layer2_initialize(card))) { QETH_DBF_TEXT_(setup, 2, "L2err%d", rc); return rc; } #ifdef CONFIG_QETH_VLAN qeth_layer2_process_vlans(card, 0); #endif goto out; } if ((card->options.large_send == QETH_LARGE_SEND_EDDP) || (card->options.large_send == QETH_LARGE_SEND_TSO)) card->dev->features |= NETIF_F_TSO | NETIF_F_SG; else card->dev->features &= ~(NETIF_F_TSO | NETIF_F_SG); if ((rc = qeth_setadapter_parms(card))) QETH_DBF_TEXT_(setup, 2, "2err%d", rc); if ((rc = qeth_start_ipassists(card))) QETH_DBF_TEXT_(setup, 2, "3err%d", rc); if ((rc = qeth_setrouting_v4(card))) QETH_DBF_TEXT_(setup, 2, "4err%d", rc); if ((rc = qeth_setrouting_v6(card))) QETH_DBF_TEXT_(setup, 2, "5err%d", rc); out: netif_stop_queue(card->dev); return 0; } #ifdef CONFIG_QETH_IPV6 static int qeth_get_unique_id_cb(struct qeth_card *card, struct qeth_reply *reply, unsigned long data) { struct qeth_ipa_cmd *cmd; cmd = (struct qeth_ipa_cmd *) data; if (cmd->hdr.return_code == 0) card->info.unique_id = *((__u16 *) &cmd->data.create_destroy_addr.unique_id[6]); else { card->info.unique_id = UNIQUE_ID_IF_CREATE_ADDR_FAILED | UNIQUE_ID_NOT_BY_CARD; PRINT_WARN("couldn't get a unique id from the card on device " "%s (result=x%x), using default id. ipv6 " "autoconfig on other lpars may lead to duplicate " "ip addresses. please use manually " "configured ones.\n", CARD_BUS_ID(card), cmd->hdr.return_code); } return 0; } #endif static int qeth_put_unique_id(struct qeth_card *card) { int rc = 0; #ifdef CONFIG_QETH_IPV6 struct qeth_cmd_buffer *iob; struct qeth_ipa_cmd *cmd; QETH_DBF_TEXT(trace,2,"puniqeid"); if ((card->info.unique_id & UNIQUE_ID_NOT_BY_CARD) == UNIQUE_ID_NOT_BY_CARD) return -1; iob = qeth_get_ipacmd_buffer(card, IPA_CMD_DESTROY_ADDR, QETH_PROT_IPV6); cmd = (struct qeth_ipa_cmd *)(iob->data+IPA_PDU_HEADER_SIZE); *((__u16 *) &cmd->data.create_destroy_addr.unique_id[6]) = card->info.unique_id; memcpy(&cmd->data.create_destroy_addr.unique_id[0], card->dev->dev_addr, OSA_ADDR_LEN); rc = qeth_send_ipa_cmd(card, iob, NULL, NULL); #else card->info.unique_id = UNIQUE_ID_IF_CREATE_ADDR_FAILED | UNIQUE_ID_NOT_BY_CARD; #endif return rc; } /** * Clear IP List */ static void qeth_clear_ip_list(struct qeth_card *card, int clean, int recover) { struct qeth_ipaddr *addr, *tmp; unsigned long flags; QETH_DBF_TEXT(trace,4,"clearip"); spin_lock_irqsave(&card->ip_lock, flags); /* clear todo list */ list_for_each_entry_safe(addr, tmp, card->ip_tbd_list, entry){ list_del(&addr->entry); kfree(addr); } while (!list_empty(&card->ip_list)) { addr = list_entry(card->ip_list.next, struct qeth_ipaddr, entry); list_del_init(&addr->entry); if (clean) { spin_unlock_irqrestore(&card->ip_lock, flags); qeth_deregister_addr_entry(card, addr); spin_lock_irqsave(&card->ip_lock, flags); } if (!recover || addr->is_multicast) { kfree(addr); continue; } list_add_tail(&addr->entry, card->ip_tbd_list); } spin_unlock_irqrestore(&card->ip_lock, flags); } static void qeth_set_allowed_threads(struct qeth_card *card, unsigned long threads, int clear_start_mask) { unsigned long flags; spin_lock_irqsave(&card->thread_mask_lock, flags); card->thread_allowed_mask = threads; if (clear_start_mask) card->thread_start_mask &= threads; spin_unlock_irqrestore(&card->thread_mask_lock, flags); wake_up(&card->wait_q); } static inline int qeth_threads_running(struct qeth_card *card, unsigned long threads) { unsigned long flags; int rc = 0; spin_lock_irqsave(&card->thread_mask_lock, flags); rc = (card->thread_running_mask & threads); spin_unlock_irqrestore(&card->thread_mask_lock, flags); return rc; } static int qeth_wait_for_threads(struct qeth_card *card, unsigned long threads) { return wait_event_interruptible(card->wait_q, qeth_threads_running(card, threads) == 0); } static int qeth_stop_card(struct qeth_card *card, int recovery_mode) { int rc = 0; QETH_DBF_TEXT(setup ,2,"stopcard"); QETH_DBF_HEX(setup, 2, &card, sizeof(void *)); qeth_set_allowed_threads(card, 0, 1); if (qeth_wait_for_threads(card, ~QETH_RECOVER_THREAD)) return -ERESTARTSYS; if (card->read.state == CH_STATE_UP && card->write.state == CH_STATE_UP && (card->state == CARD_STATE_UP)) { if (recovery_mode && card->info.type != QETH_CARD_TYPE_OSN) { qeth_stop(card->dev); } else { rtnl_lock(); dev_close(card->dev); rtnl_unlock(); } if (!card->use_hard_stop) { __u8 *mac = &card->dev->dev_addr[0]; rc = qeth_layer2_send_delmac(card, mac); QETH_DBF_TEXT_(setup, 2, "Lerr%d", rc); if ((rc = qeth_send_stoplan(card))) QETH_DBF_TEXT_(setup, 2, "1err%d", rc); } card->state = CARD_STATE_SOFTSETUP; } if (card->state == CARD_STATE_SOFTSETUP) { #ifdef CONFIG_QETH_VLAN if (card->options.layer2) qeth_layer2_process_vlans(card, 1); #endif qeth_clear_ip_list(card, !card->use_hard_stop, 1); qeth_clear_ipacmd_list(card); card->state = CARD_STATE_HARDSETUP; } if (card->state == CARD_STATE_HARDSETUP) { if ((!card->use_hard_stop) && (!card->options.layer2)) if ((rc = qeth_put_unique_id(card))) QETH_DBF_TEXT_(setup, 2, "2err%d", rc); qeth_qdio_clear_card(card, 0); qeth_clear_qdio_buffers(card); qeth_clear_working_pool_list(card); card->state = CARD_STATE_DOWN; } if (card->state == CARD_STATE_DOWN) { qeth_clear_cmd_buffers(&card->read); qeth_clear_cmd_buffers(&card->write); } card->use_hard_stop = 0; return rc; } static int qeth_get_unique_id(struct qeth_card *card) { int rc = 0; #ifdef CONFIG_QETH_IPV6 struct qeth_cmd_buffer *iob; struct qeth_ipa_cmd *cmd; QETH_DBF_TEXT(setup, 2, "guniqeid"); if (!qeth_is_supported(card,IPA_IPV6)) { card->info.unique_id = UNIQUE_ID_IF_CREATE_ADDR_FAILED | UNIQUE_ID_NOT_BY_CARD; return 0; } iob = qeth_get_ipacmd_buffer(card, IPA_CMD_CREATE_ADDR, QETH_PROT_IPV6); cmd = (struct qeth_ipa_cmd *)(iob->data+IPA_PDU_HEADER_SIZE); *((__u16 *) &cmd->data.create_destroy_addr.unique_id[6]) = card->info.unique_id; rc = qeth_send_ipa_cmd(card, iob, qeth_get_unique_id_cb, NULL); #else card->info.unique_id = UNIQUE_ID_IF_CREATE_ADDR_FAILED | UNIQUE_ID_NOT_BY_CARD; #endif return rc; } static void qeth_print_status_with_portname(struct qeth_card *card) { char dbf_text[15]; int i; sprintf(dbf_text, "%s", card->info.portname + 1); for (i = 0; i < 8; i++) dbf_text[i] = (char) _ebcasc[(__u8) dbf_text[i]]; dbf_text[8] = 0; printk("qeth: Device %s/%s/%s is a%s card%s%s%s\n" "with link type %s (portname: %s)\n", CARD_RDEV_ID(card), CARD_WDEV_ID(card), CARD_DDEV_ID(card), qeth_get_cardname(card), (card->info.mcl_level[0]) ? " (level: " : "", (card->info.mcl_level[0]) ? card->info.mcl_level : "", (card->info.mcl_level[0]) ? ")" : "", qeth_get_cardname_short(card), dbf_text); } static void qeth_print_status_no_portname(struct qeth_card *card) { if (card->info.portname[0]) printk("qeth: Device %s/%s/%s is a%s " "card%s%s%s\nwith link type %s " "(no portname needed by interface).\n", CARD_RDEV_ID(card), CARD_WDEV_ID(card), CARD_DDEV_ID(card), qeth_get_cardname(card), (card->info.mcl_level[0]) ? " (level: " : "", (card->info.mcl_level[0]) ? card->info.mcl_level : "", (card->info.mcl_level[0]) ? ")" : "", qeth_get_cardname_short(card)); else printk("qeth: Device %s/%s/%s is a%s " "card%s%s%s\nwith link type %s.\n", CARD_RDEV_ID(card), CARD_WDEV_ID(card), CARD_DDEV_ID(card), qeth_get_cardname(card), (card->info.mcl_level[0]) ? " (level: " : "", (card->info.mcl_level[0]) ? card->info.mcl_level : "", (card->info.mcl_level[0]) ? ")" : "", qeth_get_cardname_short(card)); } static void qeth_print_status_message(struct qeth_card *card) { switch (card->info.type) { case QETH_CARD_TYPE_OSAE: /* VM will use a non-zero first character * to indicate a HiperSockets like reporting * of the level OSA sets the first character to zero * */ if (!card->info.mcl_level[0]) { sprintf(card->info.mcl_level,"%02x%02x", card->info.mcl_level[2], card->info.mcl_level[3]); card->info.mcl_level[QETH_MCL_LENGTH] = 0; break; } /* fallthrough */ case QETH_CARD_TYPE_IQD: card->info.mcl_level[0] = (char) _ebcasc[(__u8) card->info.mcl_level[0]]; card->info.mcl_level[1] = (char) _ebcasc[(__u8) card->info.mcl_level[1]]; card->info.mcl_level[2] = (char) _ebcasc[(__u8) card->info.mcl_level[2]]; card->info.mcl_level[3] = (char) _ebcasc[(__u8) card->info.mcl_level[3]]; card->info.mcl_level[QETH_MCL_LENGTH] = 0; break; default: memset(&card->info.mcl_level[0], 0, QETH_MCL_LENGTH + 1); } if (card->info.portname_required) qeth_print_status_with_portname(card); else qeth_print_status_no_portname(card); } static int qeth_register_netdev(struct qeth_card *card) { QETH_DBF_TEXT(setup, 3, "regnetd"); if (card->dev->reg_state != NETREG_UNINITIALIZED) { qeth_netdev_init(card->dev); return 0; } /* sysfs magic */ SET_NETDEV_DEV(card->dev, &card->gdev->dev); return register_netdev(card->dev); } static void qeth_start_again(struct qeth_card *card, int recovery_mode) { QETH_DBF_TEXT(setup ,2, "startag"); if (recovery_mode && card->info.type != QETH_CARD_TYPE_OSN) { qeth_open(card->dev); } else { rtnl_lock(); dev_open(card->dev); rtnl_unlock(); } /* this also sets saved unicast addresses */ qeth_set_multicast_list(card->dev); } /* Layer 2 specific stuff */ #define IGNORE_PARAM_EQ(option,value,reset_value,msg) \ if (card->options.option == value) { \ PRINT_ERR("%s not supported with layer 2 " \ "functionality, ignoring option on read" \ "channel device %s .\n",msg,CARD_RDEV_ID(card)); \ card->options.option = reset_value; \ } #define IGNORE_PARAM_NEQ(option,value,reset_value,msg) \ if (card->options.option != value) { \ PRINT_ERR("%s not supported with layer 2 " \ "functionality, ignoring option on read" \ "channel device %s .\n",msg,CARD_RDEV_ID(card)); \ card->options.option = reset_value; \ } static void qeth_make_parameters_consistent(struct qeth_card *card) { if (card->options.layer2 == 0) return; if (card->info.type == QETH_CARD_TYPE_OSN) return; if (card->info.type == QETH_CARD_TYPE_IQD) { PRINT_ERR("Device %s does not support layer 2 functionality." \ " Ignoring layer2 option.\n",CARD_BUS_ID(card)); card->options.layer2 = 0; return; } IGNORE_PARAM_NEQ(route4.type, NO_ROUTER, NO_ROUTER, "Routing options are"); #ifdef CONFIG_QETH_IPV6 IGNORE_PARAM_NEQ(route6.type, NO_ROUTER, NO_ROUTER, "Routing options are"); #endif IGNORE_PARAM_EQ(checksum_type, HW_CHECKSUMMING, QETH_CHECKSUM_DEFAULT, "Checksumming options are"); IGNORE_PARAM_NEQ(broadcast_mode, QETH_TR_BROADCAST_ALLRINGS, QETH_TR_BROADCAST_ALLRINGS, "Broadcast mode options are"); IGNORE_PARAM_NEQ(macaddr_mode, QETH_TR_MACADDR_NONCANONICAL, QETH_TR_MACADDR_NONCANONICAL, "Canonical MAC addr options are"); IGNORE_PARAM_NEQ(fake_broadcast, 0, 0, "Broadcast faking options are"); IGNORE_PARAM_NEQ(add_hhlen, DEFAULT_ADD_HHLEN, DEFAULT_ADD_HHLEN,"Option add_hhlen is"); IGNORE_PARAM_NEQ(fake_ll, 0, 0,"Option fake_ll is"); } static int __qeth_set_online(struct ccwgroup_device *gdev, int recovery_mode) { struct qeth_card *card = gdev->dev.driver_data; int rc = 0; enum qeth_card_states recover_flag; BUG_ON(!card); QETH_DBF_TEXT(setup ,2, "setonlin"); QETH_DBF_HEX(setup, 2, &card, sizeof(void *)); qeth_set_allowed_threads(card, QETH_RECOVER_THREAD, 1); if (qeth_wait_for_threads(card, ~QETH_RECOVER_THREAD)){ PRINT_WARN("set_online of card %s interrupted by user!\n", CARD_BUS_ID(card)); return -ERESTARTSYS; } recover_flag = card->state; if ((rc = ccw_device_set_online(CARD_RDEV(card))) || (rc = ccw_device_set_online(CARD_WDEV(card))) || (rc = ccw_device_set_online(CARD_DDEV(card)))){ QETH_DBF_TEXT_(setup, 2, "1err%d", rc); return -EIO; } qeth_make_parameters_consistent(card); if ((rc = qeth_hardsetup_card(card))){ QETH_DBF_TEXT_(setup, 2, "2err%d", rc); goto out_remove; } card->state = CARD_STATE_HARDSETUP; if (!(rc = qeth_query_ipassists(card,QETH_PROT_IPV4))) rc = qeth_get_unique_id(card); if (rc && card->options.layer2 == 0) { QETH_DBF_TEXT_(setup, 2, "3err%d", rc); goto out_remove; } qeth_print_status_message(card); if ((rc = qeth_register_netdev(card))){ QETH_DBF_TEXT_(setup, 2, "4err%d", rc); goto out_remove; } if ((rc = qeth_softsetup_card(card))){ QETH_DBF_TEXT_(setup, 2, "5err%d", rc); goto out_remove; } card->state = CARD_STATE_SOFTSETUP; if ((rc = qeth_init_qdio_queues(card))){ QETH_DBF_TEXT_(setup, 2, "6err%d", rc); goto out_remove; } netif_carrier_on(card->dev); qeth_set_allowed_threads(card, 0xffffffff, 0); if (recover_flag == CARD_STATE_RECOVER) qeth_start_again(card, recovery_mode); qeth_notify_processes(); return 0; out_remove: card->use_hard_stop = 1; qeth_stop_card(card, 0); ccw_device_set_offline(CARD_DDEV(card)); ccw_device_set_offline(CARD_WDEV(card)); ccw_device_set_offline(CARD_RDEV(card)); if (recover_flag == CARD_STATE_RECOVER) card->state = CARD_STATE_RECOVER; else card->state = CARD_STATE_DOWN; return -ENODEV; } static int qeth_set_online(struct ccwgroup_device *gdev) { return __qeth_set_online(gdev, 0); } static struct ccw_device_id qeth_ids[] = { {CCW_DEVICE(0x1731, 0x01), driver_info:QETH_CARD_TYPE_OSAE}, {CCW_DEVICE(0x1731, 0x05), driver_info:QETH_CARD_TYPE_IQD}, {CCW_DEVICE(0x1731, 0x06), driver_info:QETH_CARD_TYPE_OSN}, {}, }; MODULE_DEVICE_TABLE(ccw, qeth_ids); struct device *qeth_root_dev = NULL; struct ccwgroup_driver qeth_ccwgroup_driver = { .owner = THIS_MODULE, .name = "qeth", .driver_id = 0xD8C5E3C8, .probe = qeth_probe_device, .remove = qeth_remove_device, .set_online = qeth_set_online, .set_offline = qeth_set_offline, }; struct ccw_driver qeth_ccw_driver = { .name = "qeth", .ids = qeth_ids, .probe = ccwgroup_probe_ccwdev, .remove = ccwgroup_remove_ccwdev, }; static void qeth_unregister_dbf_views(void) { if (qeth_dbf_setup) debug_unregister(qeth_dbf_setup); if (qeth_dbf_qerr) debug_unregister(qeth_dbf_qerr); if (qeth_dbf_sense) debug_unregister(qeth_dbf_sense); if (qeth_dbf_misc) debug_unregister(qeth_dbf_misc); if (qeth_dbf_data) debug_unregister(qeth_dbf_data); if (qeth_dbf_control) debug_unregister(qeth_dbf_control); if (qeth_dbf_trace) debug_unregister(qeth_dbf_trace); } static int qeth_register_dbf_views(void) { qeth_dbf_setup = debug_register(QETH_DBF_SETUP_NAME, QETH_DBF_SETUP_PAGES, QETH_DBF_SETUP_NR_AREAS, QETH_DBF_SETUP_LEN); qeth_dbf_misc = debug_register(QETH_DBF_MISC_NAME, QETH_DBF_MISC_PAGES, QETH_DBF_MISC_NR_AREAS, QETH_DBF_MISC_LEN); qeth_dbf_data = debug_register(QETH_DBF_DATA_NAME, QETH_DBF_DATA_PAGES, QETH_DBF_DATA_NR_AREAS, QETH_DBF_DATA_LEN); qeth_dbf_control = debug_register(QETH_DBF_CONTROL_NAME, QETH_DBF_CONTROL_PAGES, QETH_DBF_CONTROL_NR_AREAS, QETH_DBF_CONTROL_LEN); qeth_dbf_sense = debug_register(QETH_DBF_SENSE_NAME, QETH_DBF_SENSE_PAGES, QETH_DBF_SENSE_NR_AREAS, QETH_DBF_SENSE_LEN); qeth_dbf_qerr = debug_register(QETH_DBF_QERR_NAME, QETH_DBF_QERR_PAGES, QETH_DBF_QERR_NR_AREAS, QETH_DBF_QERR_LEN); qeth_dbf_trace = debug_register(QETH_DBF_TRACE_NAME, QETH_DBF_TRACE_PAGES, QETH_DBF_TRACE_NR_AREAS, QETH_DBF_TRACE_LEN); if ((qeth_dbf_setup == NULL) || (qeth_dbf_misc == NULL) || (qeth_dbf_data == NULL) || (qeth_dbf_control == NULL) || (qeth_dbf_sense == NULL) || (qeth_dbf_qerr == NULL) || (qeth_dbf_trace == NULL)) { qeth_unregister_dbf_views(); return -ENOMEM; } debug_register_view(qeth_dbf_setup, &debug_hex_ascii_view); debug_set_level(qeth_dbf_setup, QETH_DBF_SETUP_LEVEL); debug_register_view(qeth_dbf_misc, &debug_hex_ascii_view); debug_set_level(qeth_dbf_misc, QETH_DBF_MISC_LEVEL); debug_register_view(qeth_dbf_data, &debug_hex_ascii_view); debug_set_level(qeth_dbf_data, QETH_DBF_DATA_LEVEL); debug_register_view(qeth_dbf_control, &debug_hex_ascii_view); debug_set_level(qeth_dbf_control, QETH_DBF_CONTROL_LEVEL); debug_register_view(qeth_dbf_sense, &debug_hex_ascii_view); debug_set_level(qeth_dbf_sense, QETH_DBF_SENSE_LEVEL); debug_register_view(qeth_dbf_qerr, &debug_hex_ascii_view); debug_set_level(qeth_dbf_qerr, QETH_DBF_QERR_LEVEL); debug_register_view(qeth_dbf_trace, &debug_hex_ascii_view); debug_set_level(qeth_dbf_trace, QETH_DBF_TRACE_LEVEL); return 0; } #ifdef CONFIG_QETH_IPV6 extern struct neigh_table arp_tbl; static struct neigh_ops *arp_direct_ops; static int (*qeth_old_arp_constructor) (struct neighbour *); static struct neigh_ops arp_direct_ops_template = { .family = AF_INET, .destructor = NULL, .solicit = NULL, .error_report = NULL, .output = dev_queue_xmit, .connected_output = dev_queue_xmit, .hh_output = dev_queue_xmit, .queue_xmit = dev_queue_xmit }; static int qeth_arp_constructor(struct neighbour *neigh) { struct net_device *dev = neigh->dev; struct in_device *in_dev; struct neigh_parms *parms; struct qeth_card *card; card = qeth_get_card_from_dev(dev); if (card == NULL) goto out; if((card->options.layer2) || (card->dev->hard_header == qeth_fake_header)) goto out; rcu_read_lock(); in_dev = __in_dev_get_rcu(dev); if (in_dev == NULL) { rcu_read_unlock(); return -EINVAL; } parms = in_dev->arp_parms; __neigh_parms_put(neigh->parms); neigh->parms = neigh_parms_clone(parms); rcu_read_unlock(); neigh->type = inet_addr_type(*(u32 *) neigh->primary_key); neigh->nud_state = NUD_NOARP; neigh->ops = arp_direct_ops; neigh->output = neigh->ops->queue_xmit; return 0; out: return qeth_old_arp_constructor(neigh); } #endif /*CONFIG_QETH_IPV6*/ /* * IP address takeover related functions */ static void qeth_clear_ipato_list(struct qeth_card *card) { struct qeth_ipato_entry *ipatoe, *tmp; unsigned long flags; spin_lock_irqsave(&card->ip_lock, flags); list_for_each_entry_safe(ipatoe, tmp, &card->ipato.entries, entry) { list_del(&ipatoe->entry); kfree(ipatoe); } spin_unlock_irqrestore(&card->ip_lock, flags); } int qeth_add_ipato_entry(struct qeth_card *card, struct qeth_ipato_entry *new) { struct qeth_ipato_entry *ipatoe; unsigned long flags; int rc = 0; QETH_DBF_TEXT(trace, 2, "addipato"); spin_lock_irqsave(&card->ip_lock, flags); list_for_each_entry(ipatoe, &card->ipato.entries, entry){ if (ipatoe->proto != new->proto) continue; if (!memcmp(ipatoe->addr, new->addr, (ipatoe->proto == QETH_PROT_IPV4)? 4:16) && (ipatoe->mask_bits == new->mask_bits)){ PRINT_WARN("ipato entry already exists!\n"); rc = -EEXIST; break; } } if (!rc) { list_add_tail(&new->entry, &card->ipato.entries); } spin_unlock_irqrestore(&card->ip_lock, flags); return rc; } void qeth_del_ipato_entry(struct qeth_card *card, enum qeth_prot_versions proto, u8 *addr, int mask_bits) { struct qeth_ipato_entry *ipatoe, *tmp; unsigned long flags; QETH_DBF_TEXT(trace, 2, "delipato"); spin_lock_irqsave(&card->ip_lock, flags); list_for_each_entry_safe(ipatoe, tmp, &card->ipato.entries, entry){ if (ipatoe->proto != proto) continue; if (!memcmp(ipatoe->addr, addr, (proto == QETH_PROT_IPV4)? 4:16) && (ipatoe->mask_bits == mask_bits)){ list_del(&ipatoe->entry); kfree(ipatoe); } } spin_unlock_irqrestore(&card->ip_lock, flags); } static inline void qeth_convert_addr_to_bits(u8 *addr, u8 *bits, int len) { int i, j; u8 octet; for (i = 0; i < len; ++i){ octet = addr[i]; for (j = 7; j >= 0; --j){ bits[i*8 + j] = octet & 1; octet >>= 1; } } } static int qeth_is_addr_covered_by_ipato(struct qeth_card *card, struct qeth_ipaddr *addr) { struct qeth_ipato_entry *ipatoe; u8 addr_bits[128] = {0, }; u8 ipatoe_bits[128] = {0, }; int rc = 0; if (!card->ipato.enabled) return 0; qeth_convert_addr_to_bits((u8 *) &addr->u, addr_bits, (addr->proto == QETH_PROT_IPV4)? 4:16); list_for_each_entry(ipatoe, &card->ipato.entries, entry){ if (addr->proto != ipatoe->proto) continue; qeth_convert_addr_to_bits(ipatoe->addr, ipatoe_bits, (ipatoe->proto==QETH_PROT_IPV4) ? 4:16); if (addr->proto == QETH_PROT_IPV4) rc = !memcmp(addr_bits, ipatoe_bits, min(32, ipatoe->mask_bits)); else rc = !memcmp(addr_bits, ipatoe_bits, min(128, ipatoe->mask_bits)); if (rc) break; } /* invert? */ if ((addr->proto == QETH_PROT_IPV4) && card->ipato.invert4) rc = !rc; else if ((addr->proto == QETH_PROT_IPV6) && card->ipato.invert6) rc = !rc; return rc; } /* * VIPA related functions */ int qeth_add_vipa(struct qeth_card *card, enum qeth_prot_versions proto, const u8 *addr) { struct qeth_ipaddr *ipaddr; unsigned long flags; int rc = 0; ipaddr = qeth_get_addr_buffer(proto); if (ipaddr){ if (proto == QETH_PROT_IPV4){ QETH_DBF_TEXT(trace, 2, "addvipa4"); memcpy(&ipaddr->u.a4.addr, addr, 4); ipaddr->u.a4.mask = 0; #ifdef CONFIG_QETH_IPV6 } else if (proto == QETH_PROT_IPV6){ QETH_DBF_TEXT(trace, 2, "addvipa6"); memcpy(&ipaddr->u.a6.addr, addr, 16); ipaddr->u.a6.pfxlen = 0; #endif } ipaddr->type = QETH_IP_TYPE_VIPA; ipaddr->set_flags = QETH_IPA_SETIP_VIPA_FLAG; ipaddr->del_flags = QETH_IPA_DELIP_VIPA_FLAG; } else return -ENOMEM; spin_lock_irqsave(&card->ip_lock, flags); if (__qeth_address_exists_in_list(&card->ip_list, ipaddr, 0) || __qeth_address_exists_in_list(card->ip_tbd_list, ipaddr, 0)) rc = -EEXIST; spin_unlock_irqrestore(&card->ip_lock, flags); if (rc){ PRINT_WARN("Cannot add VIPA. Address already exists!\n"); return rc; } if (!qeth_add_ip(card, ipaddr)) kfree(ipaddr); if (qeth_set_thread_start_bit(card, QETH_SET_IP_THREAD) == 0) schedule_work(&card->kernel_thread_starter); return rc; } void qeth_del_vipa(struct qeth_card *card, enum qeth_prot_versions proto, const u8 *addr) { struct qeth_ipaddr *ipaddr; ipaddr = qeth_get_addr_buffer(proto); if (ipaddr){ if (proto == QETH_PROT_IPV4){ QETH_DBF_TEXT(trace, 2, "delvipa4"); memcpy(&ipaddr->u.a4.addr, addr, 4); ipaddr->u.a4.mask = 0; #ifdef CONFIG_QETH_IPV6 } else if (proto == QETH_PROT_IPV6){ QETH_DBF_TEXT(trace, 2, "delvipa6"); memcpy(&ipaddr->u.a6.addr, addr, 16); ipaddr->u.a6.pfxlen = 0; #endif } ipaddr->type = QETH_IP_TYPE_VIPA; } else return; if (!qeth_delete_ip(card, ipaddr)) kfree(ipaddr); if (qeth_set_thread_start_bit(card, QETH_SET_IP_THREAD) == 0) schedule_work(&card->kernel_thread_starter); } /* * proxy ARP related functions */ int qeth_add_rxip(struct qeth_card *card, enum qeth_prot_versions proto, const u8 *addr) { struct qeth_ipaddr *ipaddr; unsigned long flags; int rc = 0; ipaddr = qeth_get_addr_buffer(proto); if (ipaddr){ if (proto == QETH_PROT_IPV4){ QETH_DBF_TEXT(trace, 2, "addrxip4"); memcpy(&ipaddr->u.a4.addr, addr, 4); ipaddr->u.a4.mask = 0; #ifdef CONFIG_QETH_IPV6 } else if (proto == QETH_PROT_IPV6){ QETH_DBF_TEXT(trace, 2, "addrxip6"); memcpy(&ipaddr->u.a6.addr, addr, 16); ipaddr->u.a6.pfxlen = 0; #endif } ipaddr->type = QETH_IP_TYPE_RXIP; ipaddr->set_flags = QETH_IPA_SETIP_TAKEOVER_FLAG; ipaddr->del_flags = 0; } else return -ENOMEM; spin_lock_irqsave(&card->ip_lock, flags); if (__qeth_address_exists_in_list(&card->ip_list, ipaddr, 0) || __qeth_address_exists_in_list(card->ip_tbd_list, ipaddr, 0)) rc = -EEXIST; spin_unlock_irqrestore(&card->ip_lock, flags); if (rc){ PRINT_WARN("Cannot add RXIP. Address already exists!\n"); return rc; } if (!qeth_add_ip(card, ipaddr)) kfree(ipaddr); if (qeth_set_thread_start_bit(card, QETH_SET_IP_THREAD) == 0) schedule_work(&card->kernel_thread_starter); return 0; } void qeth_del_rxip(struct qeth_card *card, enum qeth_prot_versions proto, const u8 *addr) { struct qeth_ipaddr *ipaddr; ipaddr = qeth_get_addr_buffer(proto); if (ipaddr){ if (proto == QETH_PROT_IPV4){ QETH_DBF_TEXT(trace, 2, "addrxip4"); memcpy(&ipaddr->u.a4.addr, addr, 4); ipaddr->u.a4.mask = 0; #ifdef CONFIG_QETH_IPV6 } else if (proto == QETH_PROT_IPV6){ QETH_DBF_TEXT(trace, 2, "addrxip6"); memcpy(&ipaddr->u.a6.addr, addr, 16); ipaddr->u.a6.pfxlen = 0; #endif } ipaddr->type = QETH_IP_TYPE_RXIP; } else return; if (!qeth_delete_ip(card, ipaddr)) kfree(ipaddr); if (qeth_set_thread_start_bit(card, QETH_SET_IP_THREAD) == 0) schedule_work(&card->kernel_thread_starter); } /** * IP event handler */ static int qeth_ip_event(struct notifier_block *this, unsigned long event,void *ptr) { struct in_ifaddr *ifa = (struct in_ifaddr *)ptr; struct net_device *dev =(struct net_device *) ifa->ifa_dev->dev; struct qeth_ipaddr *addr; struct qeth_card *card; QETH_DBF_TEXT(trace,3,"ipevent"); card = qeth_get_card_from_dev(dev); if (!card) return NOTIFY_DONE; if (card->options.layer2) return NOTIFY_DONE; addr = qeth_get_addr_buffer(QETH_PROT_IPV4); if (addr != NULL) { addr->u.a4.addr = ifa->ifa_address; addr->u.a4.mask = ifa->ifa_mask; addr->type = QETH_IP_TYPE_NORMAL; } else goto out; switch(event) { case NETDEV_UP: if (!qeth_add_ip(card, addr)) kfree(addr); break; case NETDEV_DOWN: if (!qeth_delete_ip(card, addr)) kfree(addr); break; default: break; } if (qeth_set_thread_start_bit(card, QETH_SET_IP_THREAD) == 0) schedule_work(&card->kernel_thread_starter); out: return NOTIFY_DONE; } static struct notifier_block qeth_ip_notifier = { qeth_ip_event, 0 }; #ifdef CONFIG_QETH_IPV6 /** * IPv6 event handler */ static int qeth_ip6_event(struct notifier_block *this, unsigned long event,void *ptr) { struct inet6_ifaddr *ifa = (struct inet6_ifaddr *)ptr; struct net_device *dev = (struct net_device *)ifa->idev->dev; struct qeth_ipaddr *addr; struct qeth_card *card; QETH_DBF_TEXT(trace,3,"ip6event"); card = qeth_get_card_from_dev(dev); if (!card) return NOTIFY_DONE; if (!qeth_is_supported(card, IPA_IPV6)) return NOTIFY_DONE; addr = qeth_get_addr_buffer(QETH_PROT_IPV6); if (addr != NULL) { memcpy(&addr->u.a6.addr, &ifa->addr, sizeof(struct in6_addr)); addr->u.a6.pfxlen = ifa->prefix_len; addr->type = QETH_IP_TYPE_NORMAL; } else goto out; switch(event) { case NETDEV_UP: if (!qeth_add_ip(card, addr)) kfree(addr); break; case NETDEV_DOWN: if (!qeth_delete_ip(card, addr)) kfree(addr); break; default: break; } if (qeth_set_thread_start_bit(card, QETH_SET_IP_THREAD) == 0) schedule_work(&card->kernel_thread_starter); out: return NOTIFY_DONE; } static struct notifier_block qeth_ip6_notifier = { qeth_ip6_event, 0 }; #endif static int __qeth_reboot_event_card(struct device *dev, void *data) { struct qeth_card *card; card = (struct qeth_card *) dev->driver_data; qeth_clear_ip_list(card, 0, 0); qeth_qdio_clear_card(card, 0); return 0; } static int qeth_reboot_event(struct notifier_block *this, unsigned long event, void *ptr) { driver_for_each_device(&qeth_ccwgroup_driver.driver, NULL, NULL, __qeth_reboot_event_card); return NOTIFY_DONE; } static struct notifier_block qeth_reboot_notifier = { qeth_reboot_event, 0 }; static int qeth_register_notifiers(void) { int r; QETH_DBF_TEXT(trace,5,"regnotif"); if ((r = register_reboot_notifier(&qeth_reboot_notifier))) return r; if ((r = register_inetaddr_notifier(&qeth_ip_notifier))) goto out_reboot; #ifdef CONFIG_QETH_IPV6 if ((r = register_inet6addr_notifier(&qeth_ip6_notifier))) goto out_ipv4; #endif return 0; #ifdef CONFIG_QETH_IPV6 out_ipv4: unregister_inetaddr_notifier(&qeth_ip_notifier); #endif out_reboot: unregister_reboot_notifier(&qeth_reboot_notifier); return r; } /** * unregister all event notifiers */ static void qeth_unregister_notifiers(void) { QETH_DBF_TEXT(trace,5,"unregnot"); BUG_ON(unregister_reboot_notifier(&qeth_reboot_notifier)); BUG_ON(unregister_inetaddr_notifier(&qeth_ip_notifier)); #ifdef CONFIG_QETH_IPV6 BUG_ON(unregister_inet6addr_notifier(&qeth_ip6_notifier)); #endif /* QETH_IPV6 */ } #ifdef CONFIG_QETH_IPV6 static int qeth_ipv6_init(void) { qeth_old_arp_constructor = arp_tbl.constructor; write_lock(&arp_tbl.lock); arp_tbl.constructor = qeth_arp_constructor; write_unlock(&arp_tbl.lock); arp_direct_ops = (struct neigh_ops*) kmalloc(sizeof(struct neigh_ops), GFP_KERNEL); if (!arp_direct_ops) return -ENOMEM; memcpy(arp_direct_ops, &arp_direct_ops_template, sizeof(struct neigh_ops)); return 0; } static void qeth_ipv6_uninit(void) { write_lock(&arp_tbl.lock); arp_tbl.constructor = qeth_old_arp_constructor; write_unlock(&arp_tbl.lock); kfree(arp_direct_ops); } #endif /* CONFIG_QETH_IPV6 */ static void qeth_sysfs_unregister(void) { qeth_remove_driver_attributes(); ccw_driver_unregister(&qeth_ccw_driver); ccwgroup_driver_unregister(&qeth_ccwgroup_driver); s390_root_dev_unregister(qeth_root_dev); } /** * register qeth at sysfs */ static int qeth_sysfs_register(void) { int rc=0; rc = ccwgroup_driver_register(&qeth_ccwgroup_driver); if (rc) return rc; rc = ccw_driver_register(&qeth_ccw_driver); if (rc) return rc; rc = qeth_create_driver_attributes(); if (rc) return rc; qeth_root_dev = s390_root_dev_register("qeth"); if (IS_ERR(qeth_root_dev)) { rc = PTR_ERR(qeth_root_dev); return rc; } return 0; } /*** * init function */ static int __init qeth_init(void) { int rc=0; PRINT_INFO("loading %s (%s/%s/%s/%s/%s/%s/%s %s %s)\n", version, VERSION_QETH_C, VERSION_QETH_H, VERSION_QETH_MPC_H, VERSION_QETH_MPC_C, VERSION_QETH_FS_H, VERSION_QETH_PROC_C, VERSION_QETH_SYS_C, QETH_VERSION_IPV6, QETH_VERSION_VLAN); INIT_LIST_HEAD(&qeth_card_list.list); INIT_LIST_HEAD(&qeth_notify_list); spin_lock_init(&qeth_notify_lock); rwlock_init(&qeth_card_list.rwlock); if (qeth_register_dbf_views()) goto out_err; if (qeth_sysfs_register()) goto out_sysfs; #ifdef CONFIG_QETH_IPV6 if (qeth_ipv6_init()) { PRINT_ERR("Out of memory during ipv6 init.\n"); goto out_sysfs; } #endif /* QETH_IPV6 */ if (qeth_register_notifiers()) goto out_ipv6; if (qeth_create_procfs_entries()) goto out_notifiers; return rc; out_notifiers: qeth_unregister_notifiers(); out_ipv6: #ifdef CONFIG_QETH_IPV6 qeth_ipv6_uninit(); #endif /* QETH_IPV6 */ out_sysfs: qeth_sysfs_unregister(); qeth_unregister_dbf_views(); out_err: PRINT_ERR("Initialization failed"); return rc; } static void __exit qeth_exit(void) { struct qeth_card *card, *tmp; unsigned long flags; QETH_DBF_TEXT(trace,1, "cleanup."); /* * Weed would not need to clean up our devices here, because the * common device layer calls qeth_remove_device for each device * as soon as we unregister our driver (done in qeth_sysfs_unregister). * But we do cleanup here so we can do a "soft" shutdown of our cards. * qeth_remove_device called by the common device layer would otherwise * do a "hard" shutdown (card->use_hard_stop is set to one in * qeth_remove_device). */ again: read_lock_irqsave(&qeth_card_list.rwlock, flags); list_for_each_entry_safe(card, tmp, &qeth_card_list.list, list){ read_unlock_irqrestore(&qeth_card_list.rwlock, flags); qeth_set_offline(card->gdev); qeth_remove_device(card->gdev); goto again; } read_unlock_irqrestore(&qeth_card_list.rwlock, flags); #ifdef CONFIG_QETH_IPV6 qeth_ipv6_uninit(); #endif qeth_unregister_notifiers(); qeth_remove_procfs_entries(); qeth_sysfs_unregister(); qeth_unregister_dbf_views(); printk("qeth: removed\n"); } EXPORT_SYMBOL(qeth_osn_register); EXPORT_SYMBOL(qeth_osn_deregister); EXPORT_SYMBOL(qeth_osn_assist); module_init(qeth_init); module_exit(qeth_exit); MODULE_AUTHOR("Frank Pavlic <fpavlic@de.ibm.com>"); MODULE_DESCRIPTION("Linux on zSeries OSA Express and HiperSockets support\n" \ "Copyright 2000,2003 IBM Corporation\n"); MODULE_LICENSE("GPL");
gnensis/linux-2.6.15
drivers/s390/net/qeth_main.c
C
gpl-2.0
234,931
# # Makefile for building the SELinux module as part of the kernel tree. # CFLAGS_KERNEL := -fno-strict-aliasing obj-$(CONFIG_SECURITY_SELINUX) := selinux.o selinux-y := avc.o hooks.o selinuxfs.o netlink.o nlmsgtab.o netif.o \ netnode.o netport.o exports.o \ ss/ebitmap.o ss/hashtab.o ss/symtab.o ss/sidtab.o ss/avtab.o \ ss/policydb.o ss/services.o ss/conditional.o ss/mls.o ss/status.o #TmmSecure start ifeq ($(SEC_BUILD_OPTION_SELINUX_ENFORCE),false) ifdef CONFIG_SECURITY_SEC selinux-y += \ sec/seclsm.o \ sec/secfs.o \ sec/secpolicy.o \ sec/seccore.o \ sec/secfunc.o \ sec/seclog.o EXTRA_CFLAGS += -DSECSUBLSM_ENABLE endif endif #TmmSecure end selinux-$(CONFIG_SECURITY_NETWORK_XFRM) += xfrm.o selinux-$(CONFIG_NETLABEL) += netlabel.o ccflags-y := -Isecurity/selinux -Isecurity/selinux/include $(addprefix $(obj)/,$(selinux-y)): $(obj)/flask.h quiet_cmd_flask = GEN $(obj)/flask.h $(obj)/av_permissions.h cmd_flask = scripts/selinux/genheaders/genheaders $(obj)/flask.h $(obj)/av_permissions.h targets += flask.h av_permissions.h $(obj)/flask.h: $(src)/include/classmap.h FORCE $(call if_changed,flask)
chris4824/kernel_samsung_jf
security/selinux/Makefile
Makefile
gpl-2.0
1,156
/* * IComponentParaTabla.java * * Created on 5 de abril de 2004, 11:41 */ package utilesGUI.tabla; /**Interfaz que debe cumplir el componente a asignar en la tabla*/ public interface IComponentParaTabla { /** * Establece el valor y el valor original al componente * @param poValor valor * @throws Exception error */ public void setValueTabla(Object poValor) throws Exception ; /** * Devuelve el valor actual del componente * @return valor */ public Object getValueTabla(); /** * Si el valor a cambiado con respecto al valor original * @return si ha cambiado */ public boolean getTextoCambiado(); }
Creativa3d/box3d
paquetes/src/utilesGUI/tabla/IComponentParaTabla.java
Java
gpl-2.0
685
package commLayer; /** * An enumeration of the different RequestTypes of a _REQUEST message * */ public enum RequestType { ALL_OPEN_ITEMS, ALL_SOLD_ITEMS, ITEM_BY_ID, ITEM_BY_SELLER, ITEM_BY_CATEGORY, ITEM_CONTAINING_BID_BY_CURRENT_USER, ALL_USERS, ITEMS_WON_BY_USER, DATABASE_HAS_A_USER, USER_BY_ID }
Novanet-/AuctionSystem
AuctionSystem/src/commLayer/RequestType.java
Java
gpl-2.0
307
// // Created by developer on 11/17/15. // #include "ZCLUTCTimeImpl.h" #include <boost/date_time/posix_time/posix_time.hpp> #include "zcl/exceptions/NoUintException.h" namespace zigbee { union Converter { uint32_t value; uint8_t raw[4]; }; using boost::posix_time::ptime; using boost::posix_time::time_duration; using boost::gregorian::date; using boost::gregorian::Jan; using boost::posix_time::seconds; std::any ZCLUTCTimeImpl::getValue() const { if (status != Available) { throw ZCLAttributeNotAvailableException(parent, identifier); } seconds from2000(value); ptime start(boost::gregorian::date(2000, Jan, 1), time_duration(0, 0, 0)); return std::any(start + from2000); } void ZCLUTCTimeImpl::setValue(std::any &anyValue) { if (anyValue.type() == typeid(uint32_t)) { value = std::any_cast<uint32_t>(anyValue); } else { throw NoUintException(anyValue); } } void ZCLUTCTimeImpl::setRawValue(uint8_t *rawData) { Converter converter; converter.raw[0] = *rawData; converter.raw[1] = *(rawData + 1); converter.raw[2] = *(rawData + 2); converter.raw[3] = *(rawData + 3); value = converter.value; status = Available; } std::ostream &operator<<(std::ostream &out, const ZCLUTCTimeImpl *attribute) { out << attribute->value; return out; } }
paoloach/zdomus
zigbee_lib/src/zcl/attributeTypes/implementation/ZCLUTCTimeImpl.cpp
C++
gpl-2.0
1,494
<!-- BEGIN .entry-meta-footer--> <div class="entry-meta-footer"> <?php /*?> <span class="comment-count"><?php _e('Comments: ', 'zilla'); comments_popup_link( '0', '1', '%' ); ?></span> <span class="author"><?php _e('Posted by:', 'zilla') ?> <?php the_author_posts_link(); ?></span> <?php */?> <span class="entry-categories"> <?php $archive_year = get_the_time('Y'); ?> <?php _e('Year: ', 'zilla');?><a href="<?php echo get_year_link( $archive_year ); ?>"><?php the_time('Y'); ?></a> </span> <?php /*?> <span class="entry-categories"><?php _e('Categories:', 'zilla') ?> <?php the_category(', ') ?></span><?php */?> <span class="entry-tags"><?php the_tags( __('Tags:', 'zilla') . ' ', ', ', ''); ?></span> <?php /*?> <?php if( function_exists('zilla_likes') ) { zilla_likes(); } ?> <?php */?> <!-- END .entry-meta-footer--> </div>
hernanv/vionnet
wp-content/themes/vionnet/content-meta.php
PHP
gpl-2.0
882
// // Copyright(C) 1993-1996 Id Software, Inc. // Copyright(C) 1993-2008 Raven Software // Copyright(C) 2005-2014 Simon Howard // // 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. // #include "doomdef.h" #include "p_action.h" char *sprnames[] = { "IMPX","ACLO","PTN1","SHLD","SHD2","BAGH","SPMP","INVS","PTN2","SOAR", "INVU","PWBK","EGGC","EGGM","FX01","SPHL","TRCH","FBMB","XPL1","ATLP", "PPOD","AMG1","SPSH","LVAS","SLDG","SKH1","SKH2","SKH3","SKH4","CHDL", "SRTC","SMPL","STGS","STGL","STCS","STCL","KFR1","BARL","BRPL","MOS1", "MOS2","WTRH","HCOR","KGZ1","KGZB","KGZG","KGZY","VLCO","VFBL","VTFB", "SFFI","TGLT","TELE","STFF","PUF3","PUF4","BEAK","WGNT","GAUN","PUF1", "WBLS","BLSR","FX18","FX17","WMCE","MACE","FX02","WSKL","HROD","FX00", "FX20","FX21","FX22","FX23","GWND","PUF2","WPHX","PHNX","FX04","FX08", "FX09","WBOW","CRBW","FX03","BLOD","PLAY","FDTH","BSKL","CHKN","MUMM", "FX15","BEAS","FRB1","SNKE","SNFX","HEAD","FX05","FX06","FX07","CLNK", "WZRD","FX11","FX10","KNIG","SPAX","RAXE","SRCR","FX14","SOR2","SDTH", "FX16","MNTR","FX12","FX13","AKYY","BKYY","CKYY","AMG2","AMM1","AMM2", "AMC1","AMC2","AMS1","AMS2","AMP1","AMP2","AMB1","AMB2", NULL }; state_t states[NUMSTATES] = { {SPR_IMPX, 0, -1, NULL, S_NULL, 0, 0}, // S_NULL {SPR_ACLO, 4, 1050, A_FreeTargMobj, S_NULL, 0, 0}, // S_FREETARGMOBJ {SPR_PTN1, 0, 3, NULL, S_ITEM_PTN1_2, 0, 0}, // S_ITEM_PTN1_1 {SPR_PTN1, 1, 3, NULL, S_ITEM_PTN1_3, 0, 0}, // S_ITEM_PTN1_2 {SPR_PTN1, 2, 3, NULL, S_ITEM_PTN1_1, 0, 0}, // S_ITEM_PTN1_3 {SPR_SHLD, 0, -1, NULL, S_NULL, 0, 0}, // S_ITEM_SHLD1 {SPR_SHD2, 0, -1, NULL, S_NULL, 0, 0}, // S_ITEM_SHD2_1 {SPR_BAGH, 0, -1, NULL, S_NULL, 0, 0}, // S_ITEM_BAGH1 {SPR_SPMP, 0, -1, NULL, S_NULL, 0, 0}, // S_ITEM_SPMP1 {SPR_ACLO, 4, 1400, NULL, S_HIDESPECIAL2, 0, 0}, // S_HIDESPECIAL1 {SPR_ACLO, 0, 4, A_RestoreSpecialThing1, S_HIDESPECIAL3, 0, 0}, // S_HIDESPECIAL2 {SPR_ACLO, 1, 4, NULL, S_HIDESPECIAL4, 0, 0}, // S_HIDESPECIAL3 {SPR_ACLO, 0, 4, NULL, S_HIDESPECIAL5, 0, 0}, // S_HIDESPECIAL4 {SPR_ACLO, 1, 4, NULL, S_HIDESPECIAL6, 0, 0}, // S_HIDESPECIAL5 {SPR_ACLO, 2, 4, NULL, S_HIDESPECIAL7, 0, 0}, // S_HIDESPECIAL6 {SPR_ACLO, 1, 4, NULL, S_HIDESPECIAL8, 0, 0}, // S_HIDESPECIAL7 {SPR_ACLO, 2, 4, NULL, S_HIDESPECIAL9, 0, 0}, // S_HIDESPECIAL8 {SPR_ACLO, 3, 4, NULL, S_HIDESPECIAL10, 0, 0}, // S_HIDESPECIAL9 {SPR_ACLO, 2, 4, NULL, S_HIDESPECIAL11, 0, 0}, // S_HIDESPECIAL10 {SPR_ACLO, 3, 4, A_RestoreSpecialThing2, S_NULL, 0, 0}, // S_HIDESPECIAL11 {SPR_ACLO, 3, 3, NULL, S_DORMANTARTI2, 0, 0}, // S_DORMANTARTI1 {SPR_ACLO, 2, 3, NULL, S_DORMANTARTI3, 0, 0}, // S_DORMANTARTI2 {SPR_ACLO, 3, 3, NULL, S_DORMANTARTI4, 0, 0}, // S_DORMANTARTI3 {SPR_ACLO, 2, 3, NULL, S_DORMANTARTI5, 0, 0}, // S_DORMANTARTI4 {SPR_ACLO, 1, 3, NULL, S_DORMANTARTI6, 0, 0}, // S_DORMANTARTI5 {SPR_ACLO, 2, 3, NULL, S_DORMANTARTI7, 0, 0}, // S_DORMANTARTI6 {SPR_ACLO, 1, 3, NULL, S_DORMANTARTI8, 0, 0}, // S_DORMANTARTI7 {SPR_ACLO, 0, 3, NULL, S_DORMANTARTI9, 0, 0}, // S_DORMANTARTI8 {SPR_ACLO, 1, 3, NULL, S_DORMANTARTI10, 0, 0}, // S_DORMANTARTI9 {SPR_ACLO, 0, 3, NULL, S_DORMANTARTI11, 0, 0}, // S_DORMANTARTI10 {SPR_ACLO, 0, 1400, A_HideThing, S_DORMANTARTI12, 0, 0}, // S_DORMANTARTI11 {SPR_ACLO, 0, 3, A_UnHideThing, S_DORMANTARTI13, 0, 0}, // S_DORMANTARTI12 {SPR_ACLO, 1, 3, NULL, S_DORMANTARTI14, 0, 0}, // S_DORMANTARTI13 {SPR_ACLO, 0, 3, NULL, S_DORMANTARTI15, 0, 0}, // S_DORMANTARTI14 {SPR_ACLO, 1, 3, NULL, S_DORMANTARTI16, 0, 0}, // S_DORMANTARTI15 {SPR_ACLO, 2, 3, NULL, S_DORMANTARTI17, 0, 0}, // S_DORMANTARTI16 {SPR_ACLO, 1, 3, NULL, S_DORMANTARTI18, 0, 0}, // S_DORMANTARTI17 {SPR_ACLO, 2, 3, NULL, S_DORMANTARTI19, 0, 0}, // S_DORMANTARTI18 {SPR_ACLO, 3, 3, NULL, S_DORMANTARTI20, 0, 0}, // S_DORMANTARTI19 {SPR_ACLO, 2, 3, NULL, S_DORMANTARTI21, 0, 0}, // S_DORMANTARTI20 {SPR_ACLO, 3, 3, A_RestoreArtifact, S_NULL, 0, 0}, // S_DORMANTARTI21 {SPR_ACLO, 3, 3, NULL, S_DEADARTI2, 0, 0}, // S_DEADARTI1 {SPR_ACLO, 2, 3, NULL, S_DEADARTI3, 0, 0}, // S_DEADARTI2 {SPR_ACLO, 3, 3, NULL, S_DEADARTI4, 0, 0}, // S_DEADARTI3 {SPR_ACLO, 2, 3, NULL, S_DEADARTI5, 0, 0}, // S_DEADARTI4 {SPR_ACLO, 1, 3, NULL, S_DEADARTI6, 0, 0}, // S_DEADARTI5 {SPR_ACLO, 2, 3, NULL, S_DEADARTI7, 0, 0}, // S_DEADARTI6 {SPR_ACLO, 1, 3, NULL, S_DEADARTI8, 0, 0}, // S_DEADARTI7 {SPR_ACLO, 0, 3, NULL, S_DEADARTI9, 0, 0}, // S_DEADARTI8 {SPR_ACLO, 1, 3, NULL, S_DEADARTI10, 0, 0}, // S_DEADARTI9 {SPR_ACLO, 0, 3, NULL, S_NULL, 0, 0}, // S_DEADARTI10 {SPR_INVS, 32768, 350, NULL, S_ARTI_INVS1, 0, 0}, // S_ARTI_INVS1 {SPR_PTN2, 0, 4, NULL, S_ARTI_PTN2_2, 0, 0}, // S_ARTI_PTN2_1 {SPR_PTN2, 1, 4, NULL, S_ARTI_PTN2_3, 0, 0}, // S_ARTI_PTN2_2 {SPR_PTN2, 2, 4, NULL, S_ARTI_PTN2_1, 0, 0}, // S_ARTI_PTN2_3 {SPR_SOAR, 0, 5, NULL, S_ARTI_SOAR2, 0, 0}, // S_ARTI_SOAR1 {SPR_SOAR, 1, 5, NULL, S_ARTI_SOAR3, 0, 0}, // S_ARTI_SOAR2 {SPR_SOAR, 2, 5, NULL, S_ARTI_SOAR4, 0, 0}, // S_ARTI_SOAR3 {SPR_SOAR, 1, 5, NULL, S_ARTI_SOAR1, 0, 0}, // S_ARTI_SOAR4 {SPR_INVU, 0, 3, NULL, S_ARTI_INVU2, 0, 0}, // S_ARTI_INVU1 {SPR_INVU, 1, 3, NULL, S_ARTI_INVU3, 0, 0}, // S_ARTI_INVU2 {SPR_INVU, 2, 3, NULL, S_ARTI_INVU4, 0, 0}, // S_ARTI_INVU3 {SPR_INVU, 3, 3, NULL, S_ARTI_INVU1, 0, 0}, // S_ARTI_INVU4 {SPR_PWBK, 0, 350, NULL, S_ARTI_PWBK1, 0, 0}, // S_ARTI_PWBK1 {SPR_EGGC, 0, 6, NULL, S_ARTI_EGGC2, 0, 0}, // S_ARTI_EGGC1 {SPR_EGGC, 1, 6, NULL, S_ARTI_EGGC3, 0, 0}, // S_ARTI_EGGC2 {SPR_EGGC, 2, 6, NULL, S_ARTI_EGGC4, 0, 0}, // S_ARTI_EGGC3 {SPR_EGGC, 1, 6, NULL, S_ARTI_EGGC1, 0, 0}, // S_ARTI_EGGC4 {SPR_EGGM, 0, 4, NULL, S_EGGFX2, 0, 0}, // S_EGGFX1 {SPR_EGGM, 1, 4, NULL, S_EGGFX3, 0, 0}, // S_EGGFX2 {SPR_EGGM, 2, 4, NULL, S_EGGFX4, 0, 0}, // S_EGGFX3 {SPR_EGGM, 3, 4, NULL, S_EGGFX5, 0, 0}, // S_EGGFX4 {SPR_EGGM, 4, 4, NULL, S_EGGFX1, 0, 0}, // S_EGGFX5 {SPR_FX01, 32772, 3, NULL, S_EGGFXI1_2, 0, 0}, // S_EGGFXI1_1 {SPR_FX01, 32773, 3, NULL, S_EGGFXI1_3, 0, 0}, // S_EGGFXI1_2 {SPR_FX01, 32774, 3, NULL, S_EGGFXI1_4, 0, 0}, // S_EGGFXI1_3 {SPR_FX01, 32775, 3, NULL, S_NULL, 0, 0}, // S_EGGFXI1_4 {SPR_SPHL, 0, 350, NULL, S_ARTI_SPHL1, 0, 0}, // S_ARTI_SPHL1 {SPR_TRCH, 32768, 3, NULL, S_ARTI_TRCH2, 0, 0}, // S_ARTI_TRCH1 {SPR_TRCH, 32769, 3, NULL, S_ARTI_TRCH3, 0, 0}, // S_ARTI_TRCH2 {SPR_TRCH, 32770, 3, NULL, S_ARTI_TRCH1, 0, 0}, // S_ARTI_TRCH3 {SPR_FBMB, 4, 350, NULL, S_ARTI_FBMB1, 0, 0}, // S_ARTI_FBMB1 {SPR_FBMB, 0, 10, NULL, S_FIREBOMB2, 0, 0}, // S_FIREBOMB1 {SPR_FBMB, 1, 10, NULL, S_FIREBOMB3, 0, 0}, // S_FIREBOMB2 {SPR_FBMB, 2, 10, NULL, S_FIREBOMB4, 0, 0}, // S_FIREBOMB3 {SPR_FBMB, 3, 10, NULL, S_FIREBOMB5, 0, 0}, // S_FIREBOMB4 {SPR_FBMB, 4, 6, A_Scream, S_FIREBOMB6, 0, 0}, // S_FIREBOMB5 {SPR_XPL1, 32768, 4, A_Explode, S_FIREBOMB7, 0, 0}, // S_FIREBOMB6 {SPR_XPL1, 32769, 4, NULL, S_FIREBOMB8, 0, 0}, // S_FIREBOMB7 {SPR_XPL1, 32770, 4, NULL, S_FIREBOMB9, 0, 0}, // S_FIREBOMB8 {SPR_XPL1, 32771, 4, NULL, S_FIREBOMB10, 0, 0}, // S_FIREBOMB9 {SPR_XPL1, 32772, 4, NULL, S_FIREBOMB11, 0, 0}, // S_FIREBOMB10 {SPR_XPL1, 32773, 4, NULL, S_NULL, 0, 0}, // S_FIREBOMB11 {SPR_ATLP, 0, 4, NULL, S_ARTI_ATLP2, 0, 0}, // S_ARTI_ATLP1 {SPR_ATLP, 1, 4, NULL, S_ARTI_ATLP3, 0, 0}, // S_ARTI_ATLP2 {SPR_ATLP, 2, 4, NULL, S_ARTI_ATLP4, 0, 0}, // S_ARTI_ATLP3 {SPR_ATLP, 1, 4, NULL, S_ARTI_ATLP1, 0, 0}, // S_ARTI_ATLP4 {SPR_PPOD, 0, 10, NULL, S_POD_WAIT1, 0, 0}, // S_POD_WAIT1 {SPR_PPOD, 1, 14, A_PodPain, S_POD_WAIT1, 0, 0}, // S_POD_PAIN1 {SPR_PPOD, 32770, 5, A_RemovePod, S_POD_DIE2, 0, 0}, // S_POD_DIE1 {SPR_PPOD, 32771, 5, A_Scream, S_POD_DIE3, 0, 0}, // S_POD_DIE2 {SPR_PPOD, 32772, 5, A_Explode, S_POD_DIE4, 0, 0}, // S_POD_DIE3 {SPR_PPOD, 32773, 10, NULL, S_FREETARGMOBJ, 0, 0}, // S_POD_DIE4 {SPR_PPOD, 8, 3, NULL, S_POD_GROW2, 0, 0}, // S_POD_GROW1 {SPR_PPOD, 9, 3, NULL, S_POD_GROW3, 0, 0}, // S_POD_GROW2 {SPR_PPOD, 10, 3, NULL, S_POD_GROW4, 0, 0}, // S_POD_GROW3 {SPR_PPOD, 11, 3, NULL, S_POD_GROW5, 0, 0}, // S_POD_GROW4 {SPR_PPOD, 12, 3, NULL, S_POD_GROW6, 0, 0}, // S_POD_GROW5 {SPR_PPOD, 13, 3, NULL, S_POD_GROW7, 0, 0}, // S_POD_GROW6 {SPR_PPOD, 14, 3, NULL, S_POD_GROW8, 0, 0}, // S_POD_GROW7 {SPR_PPOD, 15, 3, NULL, S_POD_WAIT1, 0, 0}, // S_POD_GROW8 {SPR_PPOD, 6, 8, NULL, S_PODGOO2, 0, 0}, // S_PODGOO1 {SPR_PPOD, 7, 8, NULL, S_PODGOO1, 0, 0}, // S_PODGOO2 {SPR_PPOD, 6, 10, NULL, S_NULL, 0, 0}, // S_PODGOOX {SPR_AMG1, 0, 35, A_MakePod, S_PODGENERATOR, 0, 0}, // S_PODGENERATOR {SPR_SPSH, 0, 8, NULL, S_SPLASH2, 0, 0}, // S_SPLASH1 {SPR_SPSH, 1, 8, NULL, S_SPLASH3, 0, 0}, // S_SPLASH2 {SPR_SPSH, 2, 8, NULL, S_SPLASH4, 0, 0}, // S_SPLASH3 {SPR_SPSH, 3, 16, NULL, S_NULL, 0, 0}, // S_SPLASH4 {SPR_SPSH, 3, 10, NULL, S_NULL, 0, 0}, // S_SPLASHX {SPR_SPSH, 4, 5, NULL, S_SPLASHBASE2, 0, 0}, // S_SPLASHBASE1 {SPR_SPSH, 5, 5, NULL, S_SPLASHBASE3, 0, 0}, // S_SPLASHBASE2 {SPR_SPSH, 6, 5, NULL, S_SPLASHBASE4, 0, 0}, // S_SPLASHBASE3 {SPR_SPSH, 7, 5, NULL, S_SPLASHBASE5, 0, 0}, // S_SPLASHBASE4 {SPR_SPSH, 8, 5, NULL, S_SPLASHBASE6, 0, 0}, // S_SPLASHBASE5 {SPR_SPSH, 9, 5, NULL, S_SPLASHBASE7, 0, 0}, // S_SPLASHBASE6 {SPR_SPSH, 10, 5, NULL, S_NULL, 0, 0}, // S_SPLASHBASE7 {SPR_LVAS, 32768, 5, NULL, S_LAVASPLASH2, 0, 0}, // S_LAVASPLASH1 {SPR_LVAS, 32769, 5, NULL, S_LAVASPLASH3, 0, 0}, // S_LAVASPLASH2 {SPR_LVAS, 32770, 5, NULL, S_LAVASPLASH4, 0, 0}, // S_LAVASPLASH3 {SPR_LVAS, 32771, 5, NULL, S_LAVASPLASH5, 0, 0}, // S_LAVASPLASH4 {SPR_LVAS, 32772, 5, NULL, S_LAVASPLASH6, 0, 0}, // S_LAVASPLASH5 {SPR_LVAS, 32773, 5, NULL, S_NULL, 0, 0}, // S_LAVASPLASH6 {SPR_LVAS, 32774, 5, NULL, S_LAVASMOKE2, 0, 0}, // S_LAVASMOKE1 {SPR_LVAS, 32775, 5, NULL, S_LAVASMOKE3, 0, 0}, // S_LAVASMOKE2 {SPR_LVAS, 32776, 5, NULL, S_LAVASMOKE4, 0, 0}, // S_LAVASMOKE3 {SPR_LVAS, 32777, 5, NULL, S_LAVASMOKE5, 0, 0}, // S_LAVASMOKE4 {SPR_LVAS, 32778, 5, NULL, S_NULL, 0, 0}, // S_LAVASMOKE5 {SPR_SLDG, 0, 8, NULL, S_SLUDGECHUNK2, 0, 0}, // S_SLUDGECHUNK1 {SPR_SLDG, 1, 8, NULL, S_SLUDGECHUNK3, 0, 0}, // S_SLUDGECHUNK2 {SPR_SLDG, 2, 8, NULL, S_SLUDGECHUNK4, 0, 0}, // S_SLUDGECHUNK3 {SPR_SLDG, 3, 8, NULL, S_NULL, 0, 0}, // S_SLUDGECHUNK4 {SPR_SLDG, 3, 6, NULL, S_NULL, 0, 0}, // S_SLUDGECHUNKX {SPR_SLDG, 4, 5, NULL, S_SLUDGESPLASH2, 0, 0}, // S_SLUDGESPLASH1 {SPR_SLDG, 5, 5, NULL, S_SLUDGESPLASH3, 0, 0}, // S_SLUDGESPLASH2 {SPR_SLDG, 6, 5, NULL, S_SLUDGESPLASH4, 0, 0}, // S_SLUDGESPLASH3 {SPR_SLDG, 7, 5, NULL, S_NULL, 0, 0}, // S_SLUDGESPLASH4 {SPR_SKH1, 0, -1, NULL, S_NULL, 0, 0}, // S_SKULLHANG70_1 {SPR_SKH2, 0, -1, NULL, S_NULL, 0, 0}, // S_SKULLHANG60_1 {SPR_SKH3, 0, -1, NULL, S_NULL, 0, 0}, // S_SKULLHANG45_1 {SPR_SKH4, 0, -1, NULL, S_NULL, 0, 0}, // S_SKULLHANG35_1 {SPR_CHDL, 0, 4, NULL, S_CHANDELIER2, 0, 0}, // S_CHANDELIER1 {SPR_CHDL, 1, 4, NULL, S_CHANDELIER3, 0, 0}, // S_CHANDELIER2 {SPR_CHDL, 2, 4, NULL, S_CHANDELIER1, 0, 0}, // S_CHANDELIER3 {SPR_SRTC, 0, 4, NULL, S_SERPTORCH2, 0, 0}, // S_SERPTORCH1 {SPR_SRTC, 1, 4, NULL, S_SERPTORCH3, 0, 0}, // S_SERPTORCH2 {SPR_SRTC, 2, 4, NULL, S_SERPTORCH1, 0, 0}, // S_SERPTORCH3 {SPR_SMPL, 0, -1, NULL, S_NULL, 0, 0}, // S_SMALLPILLAR {SPR_STGS, 0, -1, NULL, S_NULL, 0, 0}, // S_STALAGMITESMALL {SPR_STGL, 0, -1, NULL, S_NULL, 0, 0}, // S_STALAGMITELARGE {SPR_STCS, 0, -1, NULL, S_NULL, 0, 0}, // S_STALACTITESMALL {SPR_STCL, 0, -1, NULL, S_NULL, 0, 0}, // S_STALACTITELARGE {SPR_KFR1, 32768, 3, NULL, S_FIREBRAZIER2, 0, 0}, // S_FIREBRAZIER1 {SPR_KFR1, 32769, 3, NULL, S_FIREBRAZIER3, 0, 0}, // S_FIREBRAZIER2 {SPR_KFR1, 32770, 3, NULL, S_FIREBRAZIER4, 0, 0}, // S_FIREBRAZIER3 {SPR_KFR1, 32771, 3, NULL, S_FIREBRAZIER5, 0, 0}, // S_FIREBRAZIER4 {SPR_KFR1, 32772, 3, NULL, S_FIREBRAZIER6, 0, 0}, // S_FIREBRAZIER5 {SPR_KFR1, 32773, 3, NULL, S_FIREBRAZIER7, 0, 0}, // S_FIREBRAZIER6 {SPR_KFR1, 32774, 3, NULL, S_FIREBRAZIER8, 0, 0}, // S_FIREBRAZIER7 {SPR_KFR1, 32775, 3, NULL, S_FIREBRAZIER1, 0, 0}, // S_FIREBRAZIER8 {SPR_BARL, 0, -1, NULL, S_NULL, 0, 0}, // S_BARREL {SPR_BRPL, 0, -1, NULL, S_NULL, 0, 0}, // S_BRPILLAR {SPR_MOS1, 0, -1, NULL, S_NULL, 0, 0}, // S_MOSS1 {SPR_MOS2, 0, -1, NULL, S_NULL, 0, 0}, // S_MOSS2 {SPR_WTRH, 32768, 6, NULL, S_WALLTORCH2, 0, 0}, // S_WALLTORCH1 {SPR_WTRH, 32769, 6, NULL, S_WALLTORCH3, 0, 0}, // S_WALLTORCH2 {SPR_WTRH, 32770, 6, NULL, S_WALLTORCH1, 0, 0}, // S_WALLTORCH3 {SPR_HCOR, 0, -1, NULL, S_NULL, 0, 0}, // S_HANGINGCORPSE {SPR_KGZ1, 0, 1, NULL, S_KEYGIZMO2, 0, 0}, // S_KEYGIZMO1 {SPR_KGZ1, 0, 1, A_InitKeyGizmo, S_KEYGIZMO3, 0, 0}, // S_KEYGIZMO2 {SPR_KGZ1, 0, -1, NULL, S_NULL, 0, 0}, // S_KEYGIZMO3 {SPR_KGZB, 0, 1, NULL, S_KGZ_START, 0, 0}, // S_KGZ_START {SPR_KGZB, 32768, -1, NULL, S_NULL, 0, 0}, // S_KGZ_BLUEFLOAT1 {SPR_KGZG, 32768, -1, NULL, S_NULL, 0, 0}, // S_KGZ_GREENFLOAT1 {SPR_KGZY, 32768, -1, NULL, S_NULL, 0, 0}, // S_KGZ_YELLOWFLOAT1 {SPR_VLCO, 0, 350, NULL, S_VOLCANO2, 0, 0}, // S_VOLCANO1 {SPR_VLCO, 0, 35, A_VolcanoSet, S_VOLCANO3, 0, 0}, // S_VOLCANO2 {SPR_VLCO, 1, 3, NULL, S_VOLCANO4, 0, 0}, // S_VOLCANO3 {SPR_VLCO, 2, 3, NULL, S_VOLCANO5, 0, 0}, // S_VOLCANO4 {SPR_VLCO, 3, 3, NULL, S_VOLCANO6, 0, 0}, // S_VOLCANO5 {SPR_VLCO, 1, 3, NULL, S_VOLCANO7, 0, 0}, // S_VOLCANO6 {SPR_VLCO, 2, 3, NULL, S_VOLCANO8, 0, 0}, // S_VOLCANO7 {SPR_VLCO, 3, 3, NULL, S_VOLCANO9, 0, 0}, // S_VOLCANO8 {SPR_VLCO, 4, 10, A_VolcanoBlast, S_VOLCANO2, 0, 0}, // S_VOLCANO9 {SPR_VFBL, 0, 4, A_BeastPuff, S_VOLCANOBALL2, 0, 0}, // S_VOLCANOBALL1 {SPR_VFBL, 1, 4, A_BeastPuff, S_VOLCANOBALL1, 0, 0}, // S_VOLCANOBALL2 {SPR_XPL1, 0, 4, A_VolcBallImpact, S_VOLCANOBALLX2, 0, 0}, // S_VOLCANOBALLX1 {SPR_XPL1, 1, 4, NULL, S_VOLCANOBALLX3, 0, 0}, // S_VOLCANOBALLX2 {SPR_XPL1, 2, 4, NULL, S_VOLCANOBALLX4, 0, 0}, // S_VOLCANOBALLX3 {SPR_XPL1, 3, 4, NULL, S_VOLCANOBALLX5, 0, 0}, // S_VOLCANOBALLX4 {SPR_XPL1, 4, 4, NULL, S_VOLCANOBALLX6, 0, 0}, // S_VOLCANOBALLX5 {SPR_XPL1, 5, 4, NULL, S_NULL, 0, 0}, // S_VOLCANOBALLX6 {SPR_VTFB, 0, 4, NULL, S_VOLCANOTBALL2, 0, 0}, // S_VOLCANOTBALL1 {SPR_VTFB, 1, 4, NULL, S_VOLCANOTBALL1, 0, 0}, // S_VOLCANOTBALL2 {SPR_SFFI, 2, 4, NULL, S_VOLCANOTBALLX2, 0, 0}, // S_VOLCANOTBALLX1 {SPR_SFFI, 1, 4, NULL, S_VOLCANOTBALLX3, 0, 0}, // S_VOLCANOTBALLX2 {SPR_SFFI, 0, 4, NULL, S_VOLCANOTBALLX4, 0, 0}, // S_VOLCANOTBALLX3 {SPR_SFFI, 1, 4, NULL, S_VOLCANOTBALLX5, 0, 0}, // S_VOLCANOTBALLX4 {SPR_SFFI, 2, 4, NULL, S_VOLCANOTBALLX6, 0, 0}, // S_VOLCANOTBALLX5 {SPR_SFFI, 3, 4, NULL, S_VOLCANOTBALLX7, 0, 0}, // S_VOLCANOTBALLX6 {SPR_SFFI, 4, 4, NULL, S_NULL, 0, 0}, // S_VOLCANOTBALLX7 {SPR_TGLT, 0, 8, A_SpawnTeleGlitter, S_TELEGLITGEN1, 0, 0}, // S_TELEGLITGEN1 {SPR_TGLT, 5, 8, A_SpawnTeleGlitter2, S_TELEGLITGEN2, 0, 0}, // S_TELEGLITGEN2 {SPR_TGLT, 32768, 2, NULL, S_TELEGLITTER1_2, 0, 0}, // S_TELEGLITTER1_1 {SPR_TGLT, 32769, 2, A_AccTeleGlitter, S_TELEGLITTER1_3, 0, 0}, // S_TELEGLITTER1_2 {SPR_TGLT, 32770, 2, NULL, S_TELEGLITTER1_4, 0, 0}, // S_TELEGLITTER1_3 {SPR_TGLT, 32771, 2, A_AccTeleGlitter, S_TELEGLITTER1_5, 0, 0}, // S_TELEGLITTER1_4 {SPR_TGLT, 32772, 2, NULL, S_TELEGLITTER1_1, 0, 0}, // S_TELEGLITTER1_5 {SPR_TGLT, 32773, 2, NULL, S_TELEGLITTER2_2, 0, 0}, // S_TELEGLITTER2_1 {SPR_TGLT, 32774, 2, A_AccTeleGlitter, S_TELEGLITTER2_3, 0, 0}, // S_TELEGLITTER2_2 {SPR_TGLT, 32775, 2, NULL, S_TELEGLITTER2_4, 0, 0}, // S_TELEGLITTER2_3 {SPR_TGLT, 32776, 2, A_AccTeleGlitter, S_TELEGLITTER2_5, 0, 0}, // S_TELEGLITTER2_4 {SPR_TGLT, 32777, 2, NULL, S_TELEGLITTER2_1, 0, 0}, // S_TELEGLITTER2_5 {SPR_TELE, 32768, 6, NULL, S_TFOG2, 0, 0}, // S_TFOG1 {SPR_TELE, 32769, 6, NULL, S_TFOG3, 0, 0}, // S_TFOG2 {SPR_TELE, 32770, 6, NULL, S_TFOG4, 0, 0}, // S_TFOG3 {SPR_TELE, 32771, 6, NULL, S_TFOG5, 0, 0}, // S_TFOG4 {SPR_TELE, 32772, 6, NULL, S_TFOG6, 0, 0}, // S_TFOG5 {SPR_TELE, 32773, 6, NULL, S_TFOG7, 0, 0}, // S_TFOG6 {SPR_TELE, 32774, 6, NULL, S_TFOG8, 0, 0}, // S_TFOG7 {SPR_TELE, 32775, 6, NULL, S_TFOG9, 0, 0}, // S_TFOG8 {SPR_TELE, 32774, 6, NULL, S_TFOG10, 0, 0}, // S_TFOG9 {SPR_TELE, 32773, 6, NULL, S_TFOG11, 0, 0}, // S_TFOG10 {SPR_TELE, 32772, 6, NULL, S_TFOG12, 0, 0}, // S_TFOG11 {SPR_TELE, 32771, 6, NULL, S_TFOG13, 0, 0}, // S_TFOG12 {SPR_TELE, 32770, 6, NULL, S_NULL, 0, 0}, // S_TFOG13 {SPR_STFF, 0, 0, A_Light0, S_NULL, 0, 0}, // S_LIGHTDONE {SPR_STFF, 0, 1, A_WeaponReady, S_STAFFREADY, 0, 0}, // S_STAFFREADY {SPR_STFF, 0, 1, A_Lower, S_STAFFDOWN, 0, 0}, // S_STAFFDOWN {SPR_STFF, 0, 1, A_Raise, S_STAFFUP, 0, 0}, // S_STAFFUP {SPR_STFF, 3, 4, A_WeaponReady, S_STAFFREADY2_2, 0, 0}, // S_STAFFREADY2_1 {SPR_STFF, 4, 4, A_WeaponReady, S_STAFFREADY2_3, 0, 0}, // S_STAFFREADY2_2 {SPR_STFF, 5, 4, A_WeaponReady, S_STAFFREADY2_1, 0, 0}, // S_STAFFREADY2_3 {SPR_STFF, 3, 1, A_Lower, S_STAFFDOWN2, 0, 0}, // S_STAFFDOWN2 {SPR_STFF, 3, 1, A_Raise, S_STAFFUP2, 0, 0}, // S_STAFFUP2 {SPR_STFF, 1, 6, NULL, S_STAFFATK1_2, 0, 0}, // S_STAFFATK1_1 {SPR_STFF, 2, 8, A_StaffAttackPL1, S_STAFFATK1_3, 0, 0}, // S_STAFFATK1_2 {SPR_STFF, 1, 8, A_ReFire, S_STAFFREADY, 0, 0}, // S_STAFFATK1_3 {SPR_STFF, 6, 6, NULL, S_STAFFATK2_2, 0, 0}, // S_STAFFATK2_1 {SPR_STFF, 7, 8, A_StaffAttackPL2, S_STAFFATK2_3, 0, 0}, // S_STAFFATK2_2 {SPR_STFF, 6, 8, A_ReFire, S_STAFFREADY2_1, 0, 0}, // S_STAFFATK2_3 {SPR_PUF3, 32768, 4, NULL, S_STAFFPUFF2, 0, 0}, // S_STAFFPUFF1 {SPR_PUF3, 1, 4, NULL, S_STAFFPUFF3, 0, 0}, // S_STAFFPUFF2 {SPR_PUF3, 2, 4, NULL, S_STAFFPUFF4, 0, 0}, // S_STAFFPUFF3 {SPR_PUF3, 3, 4, NULL, S_NULL, 0, 0}, // S_STAFFPUFF4 {SPR_PUF4, 32768, 4, NULL, S_STAFFPUFF2_2, 0, 0}, // S_STAFFPUFF2_1 {SPR_PUF4, 32769, 4, NULL, S_STAFFPUFF2_3, 0, 0}, // S_STAFFPUFF2_2 {SPR_PUF4, 32770, 4, NULL, S_STAFFPUFF2_4, 0, 0}, // S_STAFFPUFF2_3 {SPR_PUF4, 32771, 4, NULL, S_STAFFPUFF2_5, 0, 0}, // S_STAFFPUFF2_4 {SPR_PUF4, 32772, 4, NULL, S_STAFFPUFF2_6, 0, 0}, // S_STAFFPUFF2_5 {SPR_PUF4, 32773, 4, NULL, S_NULL, 0, 0}, // S_STAFFPUFF2_6 {SPR_BEAK, 0, 1, A_BeakReady, S_BEAKREADY, 0, 0}, // S_BEAKREADY {SPR_BEAK, 0, 1, A_Lower, S_BEAKDOWN, 0, 0}, // S_BEAKDOWN {SPR_BEAK, 0, 1, A_BeakRaise, S_BEAKUP, 0, 0}, // S_BEAKUP {SPR_BEAK, 0, 18, A_BeakAttackPL1, S_BEAKREADY, 0, 0}, // S_BEAKATK1_1 {SPR_BEAK, 0, 12, A_BeakAttackPL2, S_BEAKREADY, 0, 0}, // S_BEAKATK2_1 {SPR_WGNT, 0, -1, NULL, S_NULL, 0, 0}, // S_WGNT {SPR_GAUN, 0, 1, A_WeaponReady, S_GAUNTLETREADY, 0, 0}, // S_GAUNTLETREADY {SPR_GAUN, 0, 1, A_Lower, S_GAUNTLETDOWN, 0, 0}, // S_GAUNTLETDOWN {SPR_GAUN, 0, 1, A_Raise, S_GAUNTLETUP, 0, 0}, // S_GAUNTLETUP {SPR_GAUN, 6, 4, A_WeaponReady, S_GAUNTLETREADY2_2, 0, 0}, // S_GAUNTLETREADY2_1 {SPR_GAUN, 7, 4, A_WeaponReady, S_GAUNTLETREADY2_3, 0, 0}, // S_GAUNTLETREADY2_2 {SPR_GAUN, 8, 4, A_WeaponReady, S_GAUNTLETREADY2_1, 0, 0}, // S_GAUNTLETREADY2_3 {SPR_GAUN, 6, 1, A_Lower, S_GAUNTLETDOWN2, 0, 0}, // S_GAUNTLETDOWN2 {SPR_GAUN, 6, 1, A_Raise, S_GAUNTLETUP2, 0, 0}, // S_GAUNTLETUP2 {SPR_GAUN, 1, 4, NULL, S_GAUNTLETATK1_2, 0, 0}, // S_GAUNTLETATK1_1 {SPR_GAUN, 2, 4, NULL, S_GAUNTLETATK1_3, 0, 0}, // S_GAUNTLETATK1_2 {SPR_GAUN, 32771, 4, A_GauntletAttack, S_GAUNTLETATK1_4, 0, 0}, // S_GAUNTLETATK1_3 {SPR_GAUN, 32772, 4, A_GauntletAttack, S_GAUNTLETATK1_5, 0, 0}, // S_GAUNTLETATK1_4 {SPR_GAUN, 32773, 4, A_GauntletAttack, S_GAUNTLETATK1_6, 0, 0}, // S_GAUNTLETATK1_5 {SPR_GAUN, 2, 4, A_ReFire, S_GAUNTLETATK1_7, 0, 0}, // S_GAUNTLETATK1_6 {SPR_GAUN, 1, 4, A_Light0, S_GAUNTLETREADY, 0, 0}, // S_GAUNTLETATK1_7 {SPR_GAUN, 9, 4, NULL, S_GAUNTLETATK2_2, 0, 0}, // S_GAUNTLETATK2_1 {SPR_GAUN, 10, 4, NULL, S_GAUNTLETATK2_3, 0, 0}, // S_GAUNTLETATK2_2 {SPR_GAUN, 32779, 4, A_GauntletAttack, S_GAUNTLETATK2_4, 0, 0}, // S_GAUNTLETATK2_3 {SPR_GAUN, 32780, 4, A_GauntletAttack, S_GAUNTLETATK2_5, 0, 0}, // S_GAUNTLETATK2_4 {SPR_GAUN, 32781, 4, A_GauntletAttack, S_GAUNTLETATK2_6, 0, 0}, // S_GAUNTLETATK2_5 {SPR_GAUN, 10, 4, A_ReFire, S_GAUNTLETATK2_7, 0, 0}, // S_GAUNTLETATK2_6 {SPR_GAUN, 9, 4, A_Light0, S_GAUNTLETREADY2_1, 0, 0}, // S_GAUNTLETATK2_7 {SPR_PUF1, 32768, 4, NULL, S_GAUNTLETPUFF1_2, 0, 0}, // S_GAUNTLETPUFF1_1 {SPR_PUF1, 32769, 4, NULL, S_GAUNTLETPUFF1_3, 0, 0}, // S_GAUNTLETPUFF1_2 {SPR_PUF1, 32770, 4, NULL, S_GAUNTLETPUFF1_4, 0, 0}, // S_GAUNTLETPUFF1_3 {SPR_PUF1, 32771, 4, NULL, S_NULL, 0, 0}, // S_GAUNTLETPUFF1_4 {SPR_PUF1, 32772, 4, NULL, S_GAUNTLETPUFF2_2, 0, 0}, // S_GAUNTLETPUFF2_1 {SPR_PUF1, 32773, 4, NULL, S_GAUNTLETPUFF2_3, 0, 0}, // S_GAUNTLETPUFF2_2 {SPR_PUF1, 32774, 4, NULL, S_GAUNTLETPUFF2_4, 0, 0}, // S_GAUNTLETPUFF2_3 {SPR_PUF1, 32775, 4, NULL, S_NULL, 0, 0}, // S_GAUNTLETPUFF2_4 {SPR_WBLS, 0, -1, NULL, S_NULL, 0, 0}, // S_BLSR {SPR_BLSR, 0, 1, A_WeaponReady, S_BLASTERREADY, 0, 0}, // S_BLASTERREADY {SPR_BLSR, 0, 1, A_Lower, S_BLASTERDOWN, 0, 0}, // S_BLASTERDOWN {SPR_BLSR, 0, 1, A_Raise, S_BLASTERUP, 0, 0}, // S_BLASTERUP {SPR_BLSR, 1, 3, NULL, S_BLASTERATK1_2, 0, 0}, // S_BLASTERATK1_1 {SPR_BLSR, 2, 3, NULL, S_BLASTERATK1_3, 0, 0}, // S_BLASTERATK1_2 {SPR_BLSR, 3, 2, A_FireBlasterPL1, S_BLASTERATK1_4, 0, 0}, // S_BLASTERATK1_3 {SPR_BLSR, 2, 2, NULL, S_BLASTERATK1_5, 0, 0}, // S_BLASTERATK1_4 {SPR_BLSR, 1, 2, NULL, S_BLASTERATK1_6, 0, 0}, // S_BLASTERATK1_5 {SPR_BLSR, 0, 0, A_ReFire, S_BLASTERREADY, 0, 0}, // S_BLASTERATK1_6 {SPR_BLSR, 1, 0, NULL, S_BLASTERATK2_2, 0, 0}, // S_BLASTERATK2_1 {SPR_BLSR, 2, 0, NULL, S_BLASTERATK2_3, 0, 0}, // S_BLASTERATK2_2 {SPR_BLSR, 3, 3, A_FireBlasterPL2, S_BLASTERATK2_4, 0, 0}, // S_BLASTERATK2_3 {SPR_BLSR, 2, 4, NULL, S_BLASTERATK2_5, 0, 0}, // S_BLASTERATK2_4 {SPR_BLSR, 1, 4, NULL, S_BLASTERATK2_6, 0, 0}, // S_BLASTERATK2_5 {SPR_BLSR, 0, 0, A_ReFire, S_BLASTERREADY, 0, 0}, // S_BLASTERATK2_6 {SPR_ACLO, 4, 200, NULL, S_BLASTERFX1_1, 0, 0}, // S_BLASTERFX1_1 {SPR_FX18, 32768, 3, A_SpawnRippers, S_BLASTERFXI1_2, 0, 0}, // S_BLASTERFXI1_1 {SPR_FX18, 32769, 3, NULL, S_BLASTERFXI1_3, 0, 0}, // S_BLASTERFXI1_2 {SPR_FX18, 32770, 4, NULL, S_BLASTERFXI1_4, 0, 0}, // S_BLASTERFXI1_3 {SPR_FX18, 32771, 4, NULL, S_BLASTERFXI1_5, 0, 0}, // S_BLASTERFXI1_4 {SPR_FX18, 32772, 4, NULL, S_BLASTERFXI1_6, 0, 0}, // S_BLASTERFXI1_5 {SPR_FX18, 32773, 4, NULL, S_BLASTERFXI1_7, 0, 0}, // S_BLASTERFXI1_6 {SPR_FX18, 32774, 4, NULL, S_NULL, 0, 0}, // S_BLASTERFXI1_7 {SPR_FX18, 7, 4, NULL, S_BLASTERSMOKE2, 0, 0}, // S_BLASTERSMOKE1 {SPR_FX18, 8, 4, NULL, S_BLASTERSMOKE3, 0, 0}, // S_BLASTERSMOKE2 {SPR_FX18, 9, 4, NULL, S_BLASTERSMOKE4, 0, 0}, // S_BLASTERSMOKE3 {SPR_FX18, 10, 4, NULL, S_BLASTERSMOKE5, 0, 0}, // S_BLASTERSMOKE4 {SPR_FX18, 11, 4, NULL, S_NULL, 0, 0}, // S_BLASTERSMOKE5 {SPR_FX18, 12, 4, NULL, S_RIPPER2, 0, 0}, // S_RIPPER1 {SPR_FX18, 13, 5, NULL, S_RIPPER1, 0, 0}, // S_RIPPER2 {SPR_FX18, 32782, 4, NULL, S_RIPPERX2, 0, 0}, // S_RIPPERX1 {SPR_FX18, 32783, 4, NULL, S_RIPPERX3, 0, 0}, // S_RIPPERX2 {SPR_FX18, 32784, 4, NULL, S_RIPPERX4, 0, 0}, // S_RIPPERX3 {SPR_FX18, 32785, 4, NULL, S_RIPPERX5, 0, 0}, // S_RIPPERX4 {SPR_FX18, 32786, 4, NULL, S_NULL, 0, 0}, // S_RIPPERX5 {SPR_FX17, 32768, 4, NULL, S_BLASTERPUFF1_2, 0, 0}, // S_BLASTERPUFF1_1 {SPR_FX17, 32769, 4, NULL, S_BLASTERPUFF1_3, 0, 0}, // S_BLASTERPUFF1_2 {SPR_FX17, 32770, 4, NULL, S_BLASTERPUFF1_4, 0, 0}, // S_BLASTERPUFF1_3 {SPR_FX17, 32771, 4, NULL, S_BLASTERPUFF1_5, 0, 0}, // S_BLASTERPUFF1_4 {SPR_FX17, 32772, 4, NULL, S_NULL, 0, 0}, // S_BLASTERPUFF1_5 {SPR_FX17, 32773, 3, NULL, S_BLASTERPUFF2_2, 0, 0}, // S_BLASTERPUFF2_1 {SPR_FX17, 32774, 3, NULL, S_BLASTERPUFF2_3, 0, 0}, // S_BLASTERPUFF2_2 {SPR_FX17, 32775, 4, NULL, S_BLASTERPUFF2_4, 0, 0}, // S_BLASTERPUFF2_3 {SPR_FX17, 32776, 4, NULL, S_BLASTERPUFF2_5, 0, 0}, // S_BLASTERPUFF2_4 {SPR_FX17, 32777, 4, NULL, S_BLASTERPUFF2_6, 0, 0}, // S_BLASTERPUFF2_5 {SPR_FX17, 32778, 4, NULL, S_BLASTERPUFF2_7, 0, 0}, // S_BLASTERPUFF2_6 {SPR_FX17, 32779, 4, NULL, S_NULL, 0, 0}, // S_BLASTERPUFF2_7 {SPR_WMCE, 0, -1, NULL, S_NULL, 0, 0}, // S_WMCE {SPR_MACE, 0, 1, A_WeaponReady, S_MACEREADY, 0, 0}, // S_MACEREADY {SPR_MACE, 0, 1, A_Lower, S_MACEDOWN, 0, 0}, // S_MACEDOWN {SPR_MACE, 0, 1, A_Raise, S_MACEUP, 0, 0}, // S_MACEUP {SPR_MACE, 1, 4, NULL, S_MACEATK1_2, 0, 0}, // S_MACEATK1_1 {SPR_MACE, 2, 3, A_FireMacePL1, S_MACEATK1_3, 0, 0}, // S_MACEATK1_2 {SPR_MACE, 3, 3, A_FireMacePL1, S_MACEATK1_4, 0, 0}, // S_MACEATK1_3 {SPR_MACE, 4, 3, A_FireMacePL1, S_MACEATK1_5, 0, 0}, // S_MACEATK1_4 {SPR_MACE, 5, 3, A_FireMacePL1, S_MACEATK1_6, 0, 0}, // S_MACEATK1_5 {SPR_MACE, 2, 4, A_ReFire, S_MACEATK1_7, 0, 0}, // S_MACEATK1_6 {SPR_MACE, 3, 4, NULL, S_MACEATK1_8, 0, 0}, // S_MACEATK1_7 {SPR_MACE, 4, 4, NULL, S_MACEATK1_9, 0, 0}, // S_MACEATK1_8 {SPR_MACE, 5, 4, NULL, S_MACEATK1_10, 0, 0}, // S_MACEATK1_9 {SPR_MACE, 1, 4, NULL, S_MACEREADY, 0, 0}, // S_MACEATK1_10 {SPR_MACE, 1, 4, NULL, S_MACEATK2_2, 0, 0}, // S_MACEATK2_1 {SPR_MACE, 3, 4, A_FireMacePL2, S_MACEATK2_3, 0, 0}, // S_MACEATK2_2 {SPR_MACE, 1, 4, NULL, S_MACEATK2_4, 0, 0}, // S_MACEATK2_3 {SPR_MACE, 0, 8, A_ReFire, S_MACEREADY, 0, 0}, // S_MACEATK2_4 {SPR_FX02, 0, 4, A_MacePL1Check, S_MACEFX1_2, 0, 0}, // S_MACEFX1_1 {SPR_FX02, 1, 4, A_MacePL1Check, S_MACEFX1_1, 0, 0}, // S_MACEFX1_2 {SPR_FX02, 32773, 4, A_MaceBallImpact, S_MACEFXI1_2, 0, 0}, // S_MACEFXI1_1 {SPR_FX02, 32774, 4, NULL, S_MACEFXI1_3, 0, 0}, // S_MACEFXI1_2 {SPR_FX02, 32775, 4, NULL, S_MACEFXI1_4, 0, 0}, // S_MACEFXI1_3 {SPR_FX02, 32776, 4, NULL, S_MACEFXI1_5, 0, 0}, // S_MACEFXI1_4 {SPR_FX02, 32777, 4, NULL, S_NULL, 0, 0}, // S_MACEFXI1_5 {SPR_FX02, 2, 4, NULL, S_MACEFX2_2, 0, 0}, // S_MACEFX2_1 {SPR_FX02, 3, 4, NULL, S_MACEFX2_1, 0, 0}, // S_MACEFX2_2 {SPR_FX02, 32773, 4, A_MaceBallImpact2, S_MACEFXI1_2, 0, 0}, // S_MACEFXI2_1 {SPR_FX02, 0, 4, NULL, S_MACEFX3_2, 0, 0}, // S_MACEFX3_1 {SPR_FX02, 1, 4, NULL, S_MACEFX3_1, 0, 0}, // S_MACEFX3_2 {SPR_FX02, 4, 99, NULL, S_MACEFX4_1, 0, 0}, // S_MACEFX4_1 {SPR_FX02, 32770, 4, A_DeathBallImpact, S_MACEFXI1_2, 0, 0}, // S_MACEFXI4_1 {SPR_WSKL, 0, -1, NULL, S_NULL, 0, 0}, // S_WSKL {SPR_HROD, 0, 1, A_WeaponReady, S_HORNRODREADY, 0, 0}, // S_HORNRODREADY {SPR_HROD, 0, 1, A_Lower, S_HORNRODDOWN, 0, 0}, // S_HORNRODDOWN {SPR_HROD, 0, 1, A_Raise, S_HORNRODUP, 0, 0}, // S_HORNRODUP {SPR_HROD, 0, 4, A_FireSkullRodPL1, S_HORNRODATK1_2, 0, 0}, // S_HORNRODATK1_1 {SPR_HROD, 1, 4, A_FireSkullRodPL1, S_HORNRODATK1_3, 0, 0}, // S_HORNRODATK1_2 {SPR_HROD, 1, 0, A_ReFire, S_HORNRODREADY, 0, 0}, // S_HORNRODATK1_3 {SPR_HROD, 2, 2, NULL, S_HORNRODATK2_2, 0, 0}, // S_HORNRODATK2_1 {SPR_HROD, 3, 3, NULL, S_HORNRODATK2_3, 0, 0}, // S_HORNRODATK2_2 {SPR_HROD, 4, 2, NULL, S_HORNRODATK2_4, 0, 0}, // S_HORNRODATK2_3 {SPR_HROD, 5, 3, NULL, S_HORNRODATK2_5, 0, 0}, // S_HORNRODATK2_4 {SPR_HROD, 6, 4, A_FireSkullRodPL2, S_HORNRODATK2_6, 0, 0}, // S_HORNRODATK2_5 {SPR_HROD, 5, 2, NULL, S_HORNRODATK2_7, 0, 0}, // S_HORNRODATK2_6 {SPR_HROD, 4, 3, NULL, S_HORNRODATK2_8, 0, 0}, // S_HORNRODATK2_7 {SPR_HROD, 3, 2, NULL, S_HORNRODATK2_9, 0, 0}, // S_HORNRODATK2_8 {SPR_HROD, 2, 2, A_ReFire, S_HORNRODREADY, 0, 0}, // S_HORNRODATK2_9 {SPR_FX00, 32768, 6, NULL, S_HRODFX1_2, 0, 0}, // S_HRODFX1_1 {SPR_FX00, 32769, 6, NULL, S_HRODFX1_1, 0, 0}, // S_HRODFX1_2 {SPR_FX00, 32775, 5, NULL, S_HRODFXI1_2, 0, 0}, // S_HRODFXI1_1 {SPR_FX00, 32776, 5, NULL, S_HRODFXI1_3, 0, 0}, // S_HRODFXI1_2 {SPR_FX00, 32777, 4, NULL, S_HRODFXI1_4, 0, 0}, // S_HRODFXI1_3 {SPR_FX00, 32778, 4, NULL, S_HRODFXI1_5, 0, 0}, // S_HRODFXI1_4 {SPR_FX00, 32779, 3, NULL, S_HRODFXI1_6, 0, 0}, // S_HRODFXI1_5 {SPR_FX00, 32780, 3, NULL, S_NULL, 0, 0}, // S_HRODFXI1_6 {SPR_FX00, 32770, 3, NULL, S_HRODFX2_2, 0, 0}, // S_HRODFX2_1 {SPR_FX00, 32771, 3, A_SkullRodPL2Seek, S_HRODFX2_3, 0, 0}, // S_HRODFX2_2 {SPR_FX00, 32772, 3, NULL, S_HRODFX2_4, 0, 0}, // S_HRODFX2_3 {SPR_FX00, 32773, 3, A_SkullRodPL2Seek, S_HRODFX2_1, 0, 0}, // S_HRODFX2_4 {SPR_FX00, 32775, 5, A_AddPlayerRain, S_HRODFXI2_2, 0, 0}, // S_HRODFXI2_1 {SPR_FX00, 32776, 5, NULL, S_HRODFXI2_3, 0, 0}, // S_HRODFXI2_2 {SPR_FX00, 32777, 4, NULL, S_HRODFXI2_4, 0, 0}, // S_HRODFXI2_3 {SPR_FX00, 32778, 3, NULL, S_HRODFXI2_5, 0, 0}, // S_HRODFXI2_4 {SPR_FX00, 32779, 3, NULL, S_HRODFXI2_6, 0, 0}, // S_HRODFXI2_5 {SPR_FX00, 32780, 3, NULL, S_HRODFXI2_7, 0, 0}, // S_HRODFXI2_6 {SPR_FX00, 6, 1, A_HideInCeiling, S_HRODFXI2_8, 0, 0}, // S_HRODFXI2_7 {SPR_FX00, 6, 1, A_SkullRodStorm, S_HRODFXI2_8, 0, 0}, // S_HRODFXI2_8 {SPR_FX20, 32768, -1, NULL, S_NULL, 0, 0}, // S_RAINPLR1_1 {SPR_FX21, 32768, -1, NULL, S_NULL, 0, 0}, // S_RAINPLR2_1 {SPR_FX22, 32768, -1, NULL, S_NULL, 0, 0}, // S_RAINPLR3_1 {SPR_FX23, 32768, -1, NULL, S_NULL, 0, 0}, // S_RAINPLR4_1 {SPR_FX20, 32769, 4, A_RainImpact, S_RAINPLR1X_2, 0, 0}, // S_RAINPLR1X_1 {SPR_FX20, 32770, 4, NULL, S_RAINPLR1X_3, 0, 0}, // S_RAINPLR1X_2 {SPR_FX20, 32771, 4, NULL, S_RAINPLR1X_4, 0, 0}, // S_RAINPLR1X_3 {SPR_FX20, 32772, 4, NULL, S_RAINPLR1X_5, 0, 0}, // S_RAINPLR1X_4 {SPR_FX20, 32773, 4, NULL, S_NULL, 0, 0}, // S_RAINPLR1X_5 {SPR_FX21, 32769, 4, A_RainImpact, S_RAINPLR2X_2, 0, 0}, // S_RAINPLR2X_1 {SPR_FX21, 32770, 4, NULL, S_RAINPLR2X_3, 0, 0}, // S_RAINPLR2X_2 {SPR_FX21, 32771, 4, NULL, S_RAINPLR2X_4, 0, 0}, // S_RAINPLR2X_3 {SPR_FX21, 32772, 4, NULL, S_RAINPLR2X_5, 0, 0}, // S_RAINPLR2X_4 {SPR_FX21, 32773, 4, NULL, S_NULL, 0, 0}, // S_RAINPLR2X_5 {SPR_FX22, 32769, 4, A_RainImpact, S_RAINPLR3X_2, 0, 0}, // S_RAINPLR3X_1 {SPR_FX22, 32770, 4, NULL, S_RAINPLR3X_3, 0, 0}, // S_RAINPLR3X_2 {SPR_FX22, 32771, 4, NULL, S_RAINPLR3X_4, 0, 0}, // S_RAINPLR3X_3 {SPR_FX22, 32772, 4, NULL, S_RAINPLR3X_5, 0, 0}, // S_RAINPLR3X_4 {SPR_FX22, 32773, 4, NULL, S_NULL, 0, 0}, // S_RAINPLR3X_5 {SPR_FX23, 32769, 4, A_RainImpact, S_RAINPLR4X_2, 0, 0}, // S_RAINPLR4X_1 {SPR_FX23, 32770, 4, NULL, S_RAINPLR4X_3, 0, 0}, // S_RAINPLR4X_2 {SPR_FX23, 32771, 4, NULL, S_RAINPLR4X_4, 0, 0}, // S_RAINPLR4X_3 {SPR_FX23, 32772, 4, NULL, S_RAINPLR4X_5, 0, 0}, // S_RAINPLR4X_4 {SPR_FX23, 32773, 4, NULL, S_NULL, 0, 0}, // S_RAINPLR4X_5 {SPR_FX20, 32774, 4, NULL, S_RAINAIRXPLR1_2, 0, 0}, // S_RAINAIRXPLR1_1 {SPR_FX21, 32774, 4, NULL, S_RAINAIRXPLR2_2, 0, 0}, // S_RAINAIRXPLR2_1 {SPR_FX22, 32774, 4, NULL, S_RAINAIRXPLR3_2, 0, 0}, // S_RAINAIRXPLR3_1 {SPR_FX23, 32774, 4, NULL, S_RAINAIRXPLR4_2, 0, 0}, // S_RAINAIRXPLR4_1 {SPR_FX20, 32775, 4, NULL, S_RAINAIRXPLR1_3, 0, 0}, // S_RAINAIRXPLR1_2 {SPR_FX21, 32775, 4, NULL, S_RAINAIRXPLR2_3, 0, 0}, // S_RAINAIRXPLR2_2 {SPR_FX22, 32775, 4, NULL, S_RAINAIRXPLR3_3, 0, 0}, // S_RAINAIRXPLR3_2 {SPR_FX23, 32775, 4, NULL, S_RAINAIRXPLR4_3, 0, 0}, // S_RAINAIRXPLR4_2 {SPR_FX20, 32776, 4, NULL, S_NULL, 0, 0}, // S_RAINAIRXPLR1_3 {SPR_FX21, 32776, 4, NULL, S_NULL, 0, 0}, // S_RAINAIRXPLR2_3 {SPR_FX22, 32776, 4, NULL, S_NULL, 0, 0}, // S_RAINAIRXPLR3_3 {SPR_FX23, 32776, 4, NULL, S_NULL, 0, 0}, // S_RAINAIRXPLR4_3 {SPR_GWND, 0, 1, A_WeaponReady, S_GOLDWANDREADY, 0, 0}, // S_GOLDWANDREADY {SPR_GWND, 0, 1, A_Lower, S_GOLDWANDDOWN, 0, 0}, // S_GOLDWANDDOWN {SPR_GWND, 0, 1, A_Raise, S_GOLDWANDUP, 0, 0}, // S_GOLDWANDUP {SPR_GWND, 1, 3, NULL, S_GOLDWANDATK1_2, 0, 0}, // S_GOLDWANDATK1_1 {SPR_GWND, 2, 5, A_FireGoldWandPL1, S_GOLDWANDATK1_3, 0, 0}, // S_GOLDWANDATK1_2 {SPR_GWND, 3, 3, NULL, S_GOLDWANDATK1_4, 0, 0}, // S_GOLDWANDATK1_3 {SPR_GWND, 3, 0, A_ReFire, S_GOLDWANDREADY, 0, 0}, // S_GOLDWANDATK1_4 {SPR_GWND, 1, 3, NULL, S_GOLDWANDATK2_2, 0, 0}, // S_GOLDWANDATK2_1 {SPR_GWND, 2, 4, A_FireGoldWandPL2, S_GOLDWANDATK2_3, 0, 0}, // S_GOLDWANDATK2_2 {SPR_GWND, 3, 3, NULL, S_GOLDWANDATK2_4, 0, 0}, // S_GOLDWANDATK2_3 {SPR_GWND, 3, 0, A_ReFire, S_GOLDWANDREADY, 0, 0}, // S_GOLDWANDATK2_4 {SPR_FX01, 32768, 6, NULL, S_GWANDFX1_2, 0, 0}, // S_GWANDFX1_1 {SPR_FX01, 32769, 6, NULL, S_GWANDFX1_1, 0, 0}, // S_GWANDFX1_2 {SPR_FX01, 32772, 3, NULL, S_GWANDFXI1_2, 0, 0}, // S_GWANDFXI1_1 {SPR_FX01, 32773, 3, NULL, S_GWANDFXI1_3, 0, 0}, // S_GWANDFXI1_2 {SPR_FX01, 32774, 3, NULL, S_GWANDFXI1_4, 0, 0}, // S_GWANDFXI1_3 {SPR_FX01, 32775, 3, NULL, S_NULL, 0, 0}, // S_GWANDFXI1_4 {SPR_FX01, 32770, 6, NULL, S_GWANDFX2_2, 0, 0}, // S_GWANDFX2_1 {SPR_FX01, 32771, 6, NULL, S_GWANDFX2_1, 0, 0}, // S_GWANDFX2_2 {SPR_PUF2, 32768, 3, NULL, S_GWANDPUFF1_2, 0, 0}, // S_GWANDPUFF1_1 {SPR_PUF2, 32769, 3, NULL, S_GWANDPUFF1_3, 0, 0}, // S_GWANDPUFF1_2 {SPR_PUF2, 32770, 3, NULL, S_GWANDPUFF1_4, 0, 0}, // S_GWANDPUFF1_3 {SPR_PUF2, 32771, 3, NULL, S_GWANDPUFF1_5, 0, 0}, // S_GWANDPUFF1_4 {SPR_PUF2, 32772, 3, NULL, S_NULL, 0, 0}, // S_GWANDPUFF1_5 {SPR_WPHX, 0, -1, NULL, S_NULL, 0, 0}, // S_WPHX {SPR_PHNX, 0, 1, A_WeaponReady, S_PHOENIXREADY, 0, 0}, // S_PHOENIXREADY {SPR_PHNX, 0, 1, A_Lower, S_PHOENIXDOWN, 0, 0}, // S_PHOENIXDOWN {SPR_PHNX, 0, 1, A_Raise, S_PHOENIXUP, 0, 0}, // S_PHOENIXUP {SPR_PHNX, 1, 5, NULL, S_PHOENIXATK1_2, 0, 0}, // S_PHOENIXATK1_1 {SPR_PHNX, 2, 7, A_FirePhoenixPL1, S_PHOENIXATK1_3, 0, 0}, // S_PHOENIXATK1_2 {SPR_PHNX, 3, 4, NULL, S_PHOENIXATK1_4, 0, 0}, // S_PHOENIXATK1_3 {SPR_PHNX, 1, 4, NULL, S_PHOENIXATK1_5, 0, 0}, // S_PHOENIXATK1_4 {SPR_PHNX, 1, 0, A_ReFire, S_PHOENIXREADY, 0, 0}, // S_PHOENIXATK1_5 {SPR_PHNX, 1, 3, A_InitPhoenixPL2, S_PHOENIXATK2_2, 0, 0}, // S_PHOENIXATK2_1 {SPR_PHNX, 32770, 1, A_FirePhoenixPL2, S_PHOENIXATK2_3, 0, 0}, // S_PHOENIXATK2_2 {SPR_PHNX, 1, 4, A_ReFire, S_PHOENIXATK2_4, 0, 0}, // S_PHOENIXATK2_3 {SPR_PHNX, 1, 4, A_ShutdownPhoenixPL2, S_PHOENIXREADY, 0, 0}, // S_PHOENIXATK2_4 {SPR_FX04, 32768, 4, A_PhoenixPuff, S_PHOENIXFX1_1, 0, 0}, // S_PHOENIXFX1_1 {SPR_FX08, 32768, 6, A_Explode, S_PHOENIXFXI1_2, 0, 0}, // S_PHOENIXFXI1_1 {SPR_FX08, 32769, 5, NULL, S_PHOENIXFXI1_3, 0, 0}, // S_PHOENIXFXI1_2 {SPR_FX08, 32770, 5, NULL, S_PHOENIXFXI1_4, 0, 0}, // S_PHOENIXFXI1_3 {SPR_FX08, 32771, 4, NULL, S_PHOENIXFXI1_5, 0, 0}, // S_PHOENIXFXI1_4 {SPR_FX08, 32772, 4, NULL, S_PHOENIXFXI1_6, 0, 0}, // S_PHOENIXFXI1_5 {SPR_FX08, 32773, 4, NULL, S_PHOENIXFXI1_7, 0, 0}, // S_PHOENIXFXI1_6 {SPR_FX08, 32774, 4, NULL, S_PHOENIXFXI1_8, 0, 0}, // S_PHOENIXFXI1_7 {SPR_FX08, 32775, 4, NULL, S_NULL, 0, 0}, // S_PHOENIXFXI1_8 {SPR_FX08, 32776, 8, NULL, S_PHOENIXFXIX_1, 0, 0 }, // S_PHOENIXFXIX_1 {SPR_FX08, 32777, 8, A_RemovedPhoenixFunc, S_PHOENIXFXIX_2, 0, 0 }, // S_PHOENIXFXIX_2 {SPR_FX08, 32778, 8, NULL, S_NULL, 0, 0 }, // S_PHOENIXFXIX_3 {SPR_FX04, 1, 4, NULL, S_PHOENIXPUFF2, 0, 0}, // S_PHOENIXPUFF1 {SPR_FX04, 2, 4, NULL, S_PHOENIXPUFF3, 0, 0}, // S_PHOENIXPUFF2 {SPR_FX04, 3, 4, NULL, S_PHOENIXPUFF4, 0, 0}, // S_PHOENIXPUFF3 {SPR_FX04, 4, 4, NULL, S_PHOENIXPUFF5, 0, 0}, // S_PHOENIXPUFF4 {SPR_FX04, 5, 4, NULL, S_NULL, 0, 0}, // S_PHOENIXPUFF5 {SPR_FX09, 32768, 2, NULL, S_PHOENIXFX2_2, 0, 0}, // S_PHOENIXFX2_1 {SPR_FX09, 32769, 2, NULL, S_PHOENIXFX2_3, 0, 0}, // S_PHOENIXFX2_2 {SPR_FX09, 32768, 2, NULL, S_PHOENIXFX2_4, 0, 0}, // S_PHOENIXFX2_3 {SPR_FX09, 32769, 2, NULL, S_PHOENIXFX2_5, 0, 0}, // S_PHOENIXFX2_4 {SPR_FX09, 32768, 2, NULL, S_PHOENIXFX2_6, 0, 0}, // S_PHOENIXFX2_5 {SPR_FX09, 32769, 2, A_FlameEnd, S_PHOENIXFX2_7, 0, 0}, // S_PHOENIXFX2_6 {SPR_FX09, 32770, 2, NULL, S_PHOENIXFX2_8, 0, 0}, // S_PHOENIXFX2_7 {SPR_FX09, 32771, 2, NULL, S_PHOENIXFX2_9, 0, 0}, // S_PHOENIXFX2_8 {SPR_FX09, 32772, 2, NULL, S_PHOENIXFX2_10, 0, 0}, // S_PHOENIXFX2_9 {SPR_FX09, 32773, 2, NULL, S_NULL, 0, 0}, // S_PHOENIXFX2_10 {SPR_FX09, 32774, 3, NULL, S_PHOENIXFXI2_2, 0, 0}, // S_PHOENIXFXI2_1 {SPR_FX09, 32775, 3, A_FloatPuff, S_PHOENIXFXI2_3, 0, 0}, // S_PHOENIXFXI2_2 {SPR_FX09, 32776, 4, NULL, S_PHOENIXFXI2_4, 0, 0}, // S_PHOENIXFXI2_3 {SPR_FX09, 32777, 5, NULL, S_PHOENIXFXI2_5, 0, 0}, // S_PHOENIXFXI2_4 {SPR_FX09, 32778, 5, NULL, S_NULL, 0, 0}, // S_PHOENIXFXI2_5 {SPR_WBOW, 0, -1, NULL, S_NULL, 0, 0}, // S_WBOW {SPR_CRBW, 0, 1, A_WeaponReady, S_CRBOW2, 0, 0}, // S_CRBOW1 {SPR_CRBW, 0, 1, A_WeaponReady, S_CRBOW3, 0, 0}, // S_CRBOW2 {SPR_CRBW, 0, 1, A_WeaponReady, S_CRBOW4, 0, 0}, // S_CRBOW3 {SPR_CRBW, 0, 1, A_WeaponReady, S_CRBOW5, 0, 0}, // S_CRBOW4 {SPR_CRBW, 0, 1, A_WeaponReady, S_CRBOW6, 0, 0}, // S_CRBOW5 {SPR_CRBW, 0, 1, A_WeaponReady, S_CRBOW7, 0, 0}, // S_CRBOW6 {SPR_CRBW, 1, 1, A_WeaponReady, S_CRBOW8, 0, 0}, // S_CRBOW7 {SPR_CRBW, 1, 1, A_WeaponReady, S_CRBOW9, 0, 0}, // S_CRBOW8 {SPR_CRBW, 1, 1, A_WeaponReady, S_CRBOW10, 0, 0}, // S_CRBOW9 {SPR_CRBW, 1, 1, A_WeaponReady, S_CRBOW11, 0, 0}, // S_CRBOW10 {SPR_CRBW, 1, 1, A_WeaponReady, S_CRBOW12, 0, 0}, // S_CRBOW11 {SPR_CRBW, 1, 1, A_WeaponReady, S_CRBOW13, 0, 0}, // S_CRBOW12 {SPR_CRBW, 2, 1, A_WeaponReady, S_CRBOW14, 0, 0}, // S_CRBOW13 {SPR_CRBW, 2, 1, A_WeaponReady, S_CRBOW15, 0, 0}, // S_CRBOW14 {SPR_CRBW, 2, 1, A_WeaponReady, S_CRBOW16, 0, 0}, // S_CRBOW15 {SPR_CRBW, 2, 1, A_WeaponReady, S_CRBOW17, 0, 0}, // S_CRBOW16 {SPR_CRBW, 2, 1, A_WeaponReady, S_CRBOW18, 0, 0}, // S_CRBOW17 {SPR_CRBW, 2, 1, A_WeaponReady, S_CRBOW1, 0, 0}, // S_CRBOW18 {SPR_CRBW, 0, 1, A_Lower, S_CRBOWDOWN, 0, 0}, // S_CRBOWDOWN {SPR_CRBW, 0, 1, A_Raise, S_CRBOWUP, 0, 0}, // S_CRBOWUP {SPR_CRBW, 3, 6, A_FireCrossbowPL1, S_CRBOWATK1_2, 0, 0}, // S_CRBOWATK1_1 {SPR_CRBW, 4, 3, NULL, S_CRBOWATK1_3, 0, 0}, // S_CRBOWATK1_2 {SPR_CRBW, 5, 3, NULL, S_CRBOWATK1_4, 0, 0}, // S_CRBOWATK1_3 {SPR_CRBW, 6, 3, NULL, S_CRBOWATK1_5, 0, 0}, // S_CRBOWATK1_4 {SPR_CRBW, 7, 3, NULL, S_CRBOWATK1_6, 0, 0}, // S_CRBOWATK1_5 {SPR_CRBW, 0, 4, NULL, S_CRBOWATK1_7, 0, 0}, // S_CRBOWATK1_6 {SPR_CRBW, 1, 4, NULL, S_CRBOWATK1_8, 0, 0}, // S_CRBOWATK1_7 {SPR_CRBW, 2, 5, A_ReFire, S_CRBOW1, 0, 0}, // S_CRBOWATK1_8 {SPR_CRBW, 3, 5, A_FireCrossbowPL2, S_CRBOWATK2_2, 0, 0}, // S_CRBOWATK2_1 {SPR_CRBW, 4, 3, NULL, S_CRBOWATK2_3, 0, 0}, // S_CRBOWATK2_2 {SPR_CRBW, 5, 2, NULL, S_CRBOWATK2_4, 0, 0}, // S_CRBOWATK2_3 {SPR_CRBW, 6, 3, NULL, S_CRBOWATK2_5, 0, 0}, // S_CRBOWATK2_4 {SPR_CRBW, 7, 2, NULL, S_CRBOWATK2_6, 0, 0}, // S_CRBOWATK2_5 {SPR_CRBW, 0, 3, NULL, S_CRBOWATK2_7, 0, 0}, // S_CRBOWATK2_6 {SPR_CRBW, 1, 3, NULL, S_CRBOWATK2_8, 0, 0}, // S_CRBOWATK2_7 {SPR_CRBW, 2, 4, A_ReFire, S_CRBOW1, 0, 0}, // S_CRBOWATK2_8 {SPR_FX03, 32769, 1, NULL, S_CRBOWFX1, 0, 0}, // S_CRBOWFX1 {SPR_FX03, 32775, 8, NULL, S_CRBOWFXI1_2, 0, 0}, // S_CRBOWFXI1_1 {SPR_FX03, 32776, 8, NULL, S_CRBOWFXI1_3, 0, 0}, // S_CRBOWFXI1_2 {SPR_FX03, 32777, 8, NULL, S_NULL, 0, 0}, // S_CRBOWFXI1_3 {SPR_FX03, 32769, 1, A_BoltSpark, S_CRBOWFX2, 0, 0}, // S_CRBOWFX2 {SPR_FX03, 32768, 1, NULL, S_CRBOWFX3, 0, 0}, // S_CRBOWFX3 {SPR_FX03, 32770, 8, NULL, S_CRBOWFXI3_2, 0, 0}, // S_CRBOWFXI3_1 {SPR_FX03, 32771, 8, NULL, S_CRBOWFXI3_3, 0, 0}, // S_CRBOWFXI3_2 {SPR_FX03, 32772, 8, NULL, S_NULL, 0, 0}, // S_CRBOWFXI3_3 {SPR_FX03, 32773, 8, NULL, S_CRBOWFX4_2, 0, 0}, // S_CRBOWFX4_1 {SPR_FX03, 32774, 8, NULL, S_NULL, 0, 0}, // S_CRBOWFX4_2 {SPR_BLOD, 2, 8, NULL, S_BLOOD2, 0, 0}, // S_BLOOD1 {SPR_BLOD, 1, 8, NULL, S_BLOOD3, 0, 0}, // S_BLOOD2 {SPR_BLOD, 0, 8, NULL, S_NULL, 0, 0}, // S_BLOOD3 {SPR_BLOD, 2, 8, NULL, S_BLOODSPLATTER2, 0, 0}, // S_BLOODSPLATTER1 {SPR_BLOD, 1, 8, NULL, S_BLOODSPLATTER3, 0, 0}, // S_BLOODSPLATTER2 {SPR_BLOD, 0, 8, NULL, S_NULL, 0, 0}, // S_BLOODSPLATTER3 {SPR_BLOD, 0, 6, NULL, S_NULL, 0, 0}, // S_BLOODSPLATTERX {SPR_PLAY, 0, -1, NULL, S_NULL, 0, 0}, // S_PLAY {SPR_PLAY, 0, 4, NULL, S_PLAY_RUN2, 0, 0}, // S_PLAY_RUN1 {SPR_PLAY, 1, 4, NULL, S_PLAY_RUN3, 0, 0}, // S_PLAY_RUN2 {SPR_PLAY, 2, 4, NULL, S_PLAY_RUN4, 0, 0}, // S_PLAY_RUN3 {SPR_PLAY, 3, 4, NULL, S_PLAY_RUN1, 0, 0}, // S_PLAY_RUN4 {SPR_PLAY, 4, 12, NULL, S_PLAY, 0, 0}, // S_PLAY_ATK1 {SPR_PLAY, 32773, 6, NULL, S_PLAY_ATK1, 0, 0}, // S_PLAY_ATK2 {SPR_PLAY, 6, 4, NULL, S_PLAY_PAIN2, 0, 0}, // S_PLAY_PAIN {SPR_PLAY, 6, 4, A_Pain, S_PLAY, 0, 0}, // S_PLAY_PAIN2 {SPR_PLAY, 7, 6, NULL, S_PLAY_DIE2, 0, 0}, // S_PLAY_DIE1 {SPR_PLAY, 8, 6, A_Scream, S_PLAY_DIE3, 0, 0}, // S_PLAY_DIE2 {SPR_PLAY, 9, 6, NULL, S_PLAY_DIE4, 0, 0}, // S_PLAY_DIE3 {SPR_PLAY, 10, 6, NULL, S_PLAY_DIE5, 0, 0}, // S_PLAY_DIE4 {SPR_PLAY, 11, 6, A_NoBlocking, S_PLAY_DIE6, 0, 0}, // S_PLAY_DIE5 {SPR_PLAY, 12, 6, NULL, S_PLAY_DIE7, 0, 0}, // S_PLAY_DIE6 {SPR_PLAY, 13, 6, NULL, S_PLAY_DIE8, 0, 0}, // S_PLAY_DIE7 {SPR_PLAY, 14, 6, NULL, S_PLAY_DIE9, 0, 0}, // S_PLAY_DIE8 {SPR_PLAY, 15, -1, A_AddPlayerCorpse, S_NULL, 0, 0}, // S_PLAY_DIE9 {SPR_PLAY, 16, 5, A_Scream, S_PLAY_XDIE2, 0, 0}, // S_PLAY_XDIE1 {SPR_PLAY, 17, 5, A_SkullPop, S_PLAY_XDIE3, 0, 0}, // S_PLAY_XDIE2 {SPR_PLAY, 18, 5, A_NoBlocking, S_PLAY_XDIE4, 0, 0}, // S_PLAY_XDIE3 {SPR_PLAY, 19, 5, NULL, S_PLAY_XDIE5, 0, 0}, // S_PLAY_XDIE4 {SPR_PLAY, 20, 5, NULL, S_PLAY_XDIE6, 0, 0}, // S_PLAY_XDIE5 {SPR_PLAY, 21, 5, NULL, S_PLAY_XDIE7, 0, 0}, // S_PLAY_XDIE6 {SPR_PLAY, 22, 5, NULL, S_PLAY_XDIE8, 0, 0}, // S_PLAY_XDIE7 {SPR_PLAY, 23, 5, NULL, S_PLAY_XDIE9, 0, 0}, // S_PLAY_XDIE8 {SPR_PLAY, 24, -1, A_AddPlayerCorpse, S_NULL, 0, 0}, // S_PLAY_XDIE9 {SPR_FDTH, 32768, 5, A_FlameSnd, S_PLAY_FDTH2, 0, 0}, // S_PLAY_FDTH1 {SPR_FDTH, 32769, 4, NULL, S_PLAY_FDTH3, 0, 0}, // S_PLAY_FDTH2 {SPR_FDTH, 32770, 5, NULL, S_PLAY_FDTH4, 0, 0}, // S_PLAY_FDTH3 {SPR_FDTH, 32771, 4, A_Scream, S_PLAY_FDTH5, 0, 0}, // S_PLAY_FDTH4 {SPR_FDTH, 32772, 5, NULL, S_PLAY_FDTH6, 0, 0}, // S_PLAY_FDTH5 {SPR_FDTH, 32773, 4, NULL, S_PLAY_FDTH7, 0, 0}, // S_PLAY_FDTH6 {SPR_FDTH, 32774, 5, A_FlameSnd, S_PLAY_FDTH8, 0, 0}, // S_PLAY_FDTH7 {SPR_FDTH, 32775, 4, NULL, S_PLAY_FDTH9, 0, 0}, // S_PLAY_FDTH8 {SPR_FDTH, 32776, 5, NULL, S_PLAY_FDTH10, 0, 0}, // S_PLAY_FDTH9 {SPR_FDTH, 32777, 4, NULL, S_PLAY_FDTH11, 0, 0}, // S_PLAY_FDTH10 {SPR_FDTH, 32778, 5, NULL, S_PLAY_FDTH12, 0, 0}, // S_PLAY_FDTH11 {SPR_FDTH, 32779, 4, NULL, S_PLAY_FDTH13, 0, 0}, // S_PLAY_FDTH12 {SPR_FDTH, 32780, 5, NULL, S_PLAY_FDTH14, 0, 0}, // S_PLAY_FDTH13 {SPR_FDTH, 32781, 4, NULL, S_PLAY_FDTH15, 0, 0}, // S_PLAY_FDTH14 {SPR_FDTH, 32782, 5, A_NoBlocking, S_PLAY_FDTH16, 0, 0}, // S_PLAY_FDTH15 {SPR_FDTH, 32783, 4, NULL, S_PLAY_FDTH17, 0, 0}, // S_PLAY_FDTH16 {SPR_FDTH, 32784, 5, NULL, S_PLAY_FDTH18, 0, 0}, // S_PLAY_FDTH17 {SPR_FDTH, 32785, 4, NULL, S_PLAY_FDTH19, 0, 0}, // S_PLAY_FDTH18 {SPR_ACLO, 4, 35, A_CheckBurnGone, S_PLAY_FDTH19, 0, 0}, // S_PLAY_FDTH19 {SPR_ACLO, 4, 8, NULL, S_NULL, 0, 0}, // S_PLAY_FDTH20 {SPR_BSKL, 0, 5, A_CheckSkullFloor, S_BLOODYSKULL2, 0, 0}, // S_BLOODYSKULL1 {SPR_BSKL, 1, 5, A_CheckSkullFloor, S_BLOODYSKULL3, 0, 0}, // S_BLOODYSKULL2 {SPR_BSKL, 2, 5, A_CheckSkullFloor, S_BLOODYSKULL4, 0, 0}, // S_BLOODYSKULL3 {SPR_BSKL, 3, 5, A_CheckSkullFloor, S_BLOODYSKULL5, 0, 0}, // S_BLOODYSKULL4 {SPR_BSKL, 4, 5, A_CheckSkullFloor, S_BLOODYSKULL1, 0, 0}, // S_BLOODYSKULL5 {SPR_BSKL, 5, 16, A_CheckSkullDone, S_BLOODYSKULLX1, 0, 0}, // S_BLOODYSKULLX1 {SPR_BSKL, 5, 1050, NULL, S_NULL, 0, 0}, // S_BLOODYSKULLX2 {SPR_CHKN, 0, -1, NULL, S_NULL, 0, 0}, // S_CHICPLAY {SPR_CHKN, 0, 3, NULL, S_CHICPLAY_RUN2, 0, 0}, // S_CHICPLAY_RUN1 {SPR_CHKN, 1, 3, NULL, S_CHICPLAY_RUN3, 0, 0}, // S_CHICPLAY_RUN2 {SPR_CHKN, 0, 3, NULL, S_CHICPLAY_RUN4, 0, 0}, // S_CHICPLAY_RUN3 {SPR_CHKN, 1, 3, NULL, S_CHICPLAY_RUN1, 0, 0}, // S_CHICPLAY_RUN4 {SPR_CHKN, 2, 12, NULL, S_CHICPLAY, 0, 0}, // S_CHICPLAY_ATK1 {SPR_CHKN, 3, 4, A_Feathers, S_CHICPLAY_PAIN2, 0, 0}, // S_CHICPLAY_PAIN {SPR_CHKN, 2, 4, A_Pain, S_CHICPLAY, 0, 0}, // S_CHICPLAY_PAIN2 {SPR_CHKN, 0, 10, A_ChicLook, S_CHICKEN_LOOK2, 0, 0}, // S_CHICKEN_LOOK1 {SPR_CHKN, 1, 10, A_ChicLook, S_CHICKEN_LOOK1, 0, 0}, // S_CHICKEN_LOOK2 {SPR_CHKN, 0, 3, A_ChicChase, S_CHICKEN_WALK2, 0, 0}, // S_CHICKEN_WALK1 {SPR_CHKN, 1, 3, A_ChicChase, S_CHICKEN_WALK1, 0, 0}, // S_CHICKEN_WALK2 {SPR_CHKN, 3, 5, A_Feathers, S_CHICKEN_PAIN2, 0, 0}, // S_CHICKEN_PAIN1 {SPR_CHKN, 2, 5, A_ChicPain, S_CHICKEN_WALK1, 0, 0}, // S_CHICKEN_PAIN2 {SPR_CHKN, 0, 8, A_FaceTarget, S_CHICKEN_ATK2, 0, 0}, // S_CHICKEN_ATK1 {SPR_CHKN, 2, 10, A_ChicAttack, S_CHICKEN_WALK1, 0, 0}, // S_CHICKEN_ATK2 {SPR_CHKN, 4, 6, A_Scream, S_CHICKEN_DIE2, 0, 0}, // S_CHICKEN_DIE1 {SPR_CHKN, 5, 6, A_Feathers, S_CHICKEN_DIE3, 0, 0}, // S_CHICKEN_DIE2 {SPR_CHKN, 6, 6, NULL, S_CHICKEN_DIE4, 0, 0}, // S_CHICKEN_DIE3 {SPR_CHKN, 7, 6, A_NoBlocking, S_CHICKEN_DIE5, 0, 0}, // S_CHICKEN_DIE4 {SPR_CHKN, 8, 6, NULL, S_CHICKEN_DIE6, 0, 0}, // S_CHICKEN_DIE5 {SPR_CHKN, 9, 6, NULL, S_CHICKEN_DIE7, 0, 0}, // S_CHICKEN_DIE6 {SPR_CHKN, 10, 6, NULL, S_CHICKEN_DIE8, 0, 0}, // S_CHICKEN_DIE7 {SPR_CHKN, 11, -1, NULL, S_NULL, 0, 0}, // S_CHICKEN_DIE8 {SPR_CHKN, 12, 3, NULL, S_FEATHER2, 0, 0}, // S_FEATHER1 {SPR_CHKN, 13, 3, NULL, S_FEATHER3, 0, 0}, // S_FEATHER2 {SPR_CHKN, 14, 3, NULL, S_FEATHER4, 0, 0}, // S_FEATHER3 {SPR_CHKN, 15, 3, NULL, S_FEATHER5, 0, 0}, // S_FEATHER4 {SPR_CHKN, 16, 3, NULL, S_FEATHER6, 0, 0}, // S_FEATHER5 {SPR_CHKN, 15, 3, NULL, S_FEATHER7, 0, 0}, // S_FEATHER6 {SPR_CHKN, 14, 3, NULL, S_FEATHER8, 0, 0}, // S_FEATHER7 {SPR_CHKN, 13, 3, NULL, S_FEATHER1, 0, 0}, // S_FEATHER8 {SPR_CHKN, 13, 6, NULL, S_NULL, 0, 0}, // S_FEATHERX {SPR_MUMM, 0, 10, A_Look, S_MUMMY_LOOK2, 0, 0}, // S_MUMMY_LOOK1 {SPR_MUMM, 1, 10, A_Look, S_MUMMY_LOOK1, 0, 0}, // S_MUMMY_LOOK2 {SPR_MUMM, 0, 4, A_Chase, S_MUMMY_WALK2, 0, 0}, // S_MUMMY_WALK1 {SPR_MUMM, 1, 4, A_Chase, S_MUMMY_WALK3, 0, 0}, // S_MUMMY_WALK2 {SPR_MUMM, 2, 4, A_Chase, S_MUMMY_WALK4, 0, 0}, // S_MUMMY_WALK3 {SPR_MUMM, 3, 4, A_Chase, S_MUMMY_WALK1, 0, 0}, // S_MUMMY_WALK4 {SPR_MUMM, 4, 6, A_FaceTarget, S_MUMMY_ATK2, 0, 0}, // S_MUMMY_ATK1 {SPR_MUMM, 5, 6, A_MummyAttack, S_MUMMY_ATK3, 0, 0}, // S_MUMMY_ATK2 {SPR_MUMM, 6, 6, A_FaceTarget, S_MUMMY_WALK1, 0, 0}, // S_MUMMY_ATK3 {SPR_MUMM, 23, 5, A_FaceTarget, S_MUMMYL_ATK2, 0, 0}, // S_MUMMYL_ATK1 {SPR_MUMM, 32792, 5, A_FaceTarget, S_MUMMYL_ATK3, 0, 0}, // S_MUMMYL_ATK2 {SPR_MUMM, 23, 5, A_FaceTarget, S_MUMMYL_ATK4, 0, 0}, // S_MUMMYL_ATK3 {SPR_MUMM, 32792, 5, A_FaceTarget, S_MUMMYL_ATK5, 0, 0}, // S_MUMMYL_ATK4 {SPR_MUMM, 23, 5, A_FaceTarget, S_MUMMYL_ATK6, 0, 0}, // S_MUMMYL_ATK5 {SPR_MUMM, 32792, 15, A_MummyAttack2, S_MUMMY_WALK1, 0, 0}, // S_MUMMYL_ATK6 {SPR_MUMM, 7, 4, NULL, S_MUMMY_PAIN2, 0, 0}, // S_MUMMY_PAIN1 {SPR_MUMM, 7, 4, A_Pain, S_MUMMY_WALK1, 0, 0}, // S_MUMMY_PAIN2 {SPR_MUMM, 8, 5, NULL, S_MUMMY_DIE2, 0, 0}, // S_MUMMY_DIE1 {SPR_MUMM, 9, 5, A_Scream, S_MUMMY_DIE3, 0, 0}, // S_MUMMY_DIE2 {SPR_MUMM, 10, 5, A_MummySoul, S_MUMMY_DIE4, 0, 0}, // S_MUMMY_DIE3 {SPR_MUMM, 11, 5, NULL, S_MUMMY_DIE5, 0, 0}, // S_MUMMY_DIE4 {SPR_MUMM, 12, 5, A_NoBlocking, S_MUMMY_DIE6, 0, 0}, // S_MUMMY_DIE5 {SPR_MUMM, 13, 5, NULL, S_MUMMY_DIE7, 0, 0}, // S_MUMMY_DIE6 {SPR_MUMM, 14, 5, NULL, S_MUMMY_DIE8, 0, 0}, // S_MUMMY_DIE7 {SPR_MUMM, 15, -1, NULL, S_NULL, 0, 0}, // S_MUMMY_DIE8 {SPR_MUMM, 16, 5, NULL, S_MUMMY_SOUL2, 0, 0}, // S_MUMMY_SOUL1 {SPR_MUMM, 17, 5, NULL, S_MUMMY_SOUL3, 0, 0}, // S_MUMMY_SOUL2 {SPR_MUMM, 18, 5, NULL, S_MUMMY_SOUL4, 0, 0}, // S_MUMMY_SOUL3 {SPR_MUMM, 19, 9, NULL, S_MUMMY_SOUL5, 0, 0}, // S_MUMMY_SOUL4 {SPR_MUMM, 20, 5, NULL, S_MUMMY_SOUL6, 0, 0}, // S_MUMMY_SOUL5 {SPR_MUMM, 21, 5, NULL, S_MUMMY_SOUL7, 0, 0}, // S_MUMMY_SOUL6 {SPR_MUMM, 22, 5, NULL, S_NULL, 0, 0}, // S_MUMMY_SOUL7 {SPR_FX15, 32768, 5, A_ContMobjSound, S_MUMMYFX1_2, 0, 0}, // S_MUMMYFX1_1 {SPR_FX15, 32769, 5, A_MummyFX1Seek, S_MUMMYFX1_3, 0, 0}, // S_MUMMYFX1_2 {SPR_FX15, 32770, 5, NULL, S_MUMMYFX1_4, 0, 0}, // S_MUMMYFX1_3 {SPR_FX15, 32769, 5, A_MummyFX1Seek, S_MUMMYFX1_1, 0, 0}, // S_MUMMYFX1_4 {SPR_FX15, 32771, 5, NULL, S_MUMMYFXI1_2, 0, 0}, // S_MUMMYFXI1_1 {SPR_FX15, 32772, 5, NULL, S_MUMMYFXI1_3, 0, 0}, // S_MUMMYFXI1_2 {SPR_FX15, 32773, 5, NULL, S_MUMMYFXI1_4, 0, 0}, // S_MUMMYFXI1_3 {SPR_FX15, 32774, 5, NULL, S_NULL, 0, 0}, // S_MUMMYFXI1_4 {SPR_BEAS, 0, 10, A_Look, S_BEAST_LOOK2, 0, 0}, // S_BEAST_LOOK1 {SPR_BEAS, 1, 10, A_Look, S_BEAST_LOOK1, 0, 0}, // S_BEAST_LOOK2 {SPR_BEAS, 0, 3, A_Chase, S_BEAST_WALK2, 0, 0}, // S_BEAST_WALK1 {SPR_BEAS, 1, 3, A_Chase, S_BEAST_WALK3, 0, 0}, // S_BEAST_WALK2 {SPR_BEAS, 2, 3, A_Chase, S_BEAST_WALK4, 0, 0}, // S_BEAST_WALK3 {SPR_BEAS, 3, 3, A_Chase, S_BEAST_WALK5, 0, 0}, // S_BEAST_WALK4 {SPR_BEAS, 4, 3, A_Chase, S_BEAST_WALK6, 0, 0}, // S_BEAST_WALK5 {SPR_BEAS, 5, 3, A_Chase, S_BEAST_WALK1, 0, 0}, // S_BEAST_WALK6 {SPR_BEAS, 7, 10, A_FaceTarget, S_BEAST_ATK2, 0, 0}, // S_BEAST_ATK1 {SPR_BEAS, 8, 10, A_BeastAttack, S_BEAST_WALK1, 0, 0}, // S_BEAST_ATK2 {SPR_BEAS, 6, 3, NULL, S_BEAST_PAIN2, 0, 0}, // S_BEAST_PAIN1 {SPR_BEAS, 6, 3, A_Pain, S_BEAST_WALK1, 0, 0}, // S_BEAST_PAIN2 {SPR_BEAS, 17, 6, NULL, S_BEAST_DIE2, 0, 0}, // S_BEAST_DIE1 {SPR_BEAS, 18, 6, A_Scream, S_BEAST_DIE3, 0, 0}, // S_BEAST_DIE2 {SPR_BEAS, 19, 6, NULL, S_BEAST_DIE4, 0, 0}, // S_BEAST_DIE3 {SPR_BEAS, 20, 6, NULL, S_BEAST_DIE5, 0, 0}, // S_BEAST_DIE4 {SPR_BEAS, 21, 6, NULL, S_BEAST_DIE6, 0, 0}, // S_BEAST_DIE5 {SPR_BEAS, 22, 6, A_NoBlocking, S_BEAST_DIE7, 0, 0}, // S_BEAST_DIE6 {SPR_BEAS, 23, 6, NULL, S_BEAST_DIE8, 0, 0}, // S_BEAST_DIE7 {SPR_BEAS, 24, 6, NULL, S_BEAST_DIE9, 0, 0}, // S_BEAST_DIE8 {SPR_BEAS, 25, -1, NULL, S_NULL, 0, 0}, // S_BEAST_DIE9 {SPR_BEAS, 9, 5, NULL, S_BEAST_XDIE2, 0, 0}, // S_BEAST_XDIE1 {SPR_BEAS, 10, 6, A_Scream, S_BEAST_XDIE3, 0, 0}, // S_BEAST_XDIE2 {SPR_BEAS, 11, 5, NULL, S_BEAST_XDIE4, 0, 0}, // S_BEAST_XDIE3 {SPR_BEAS, 12, 6, NULL, S_BEAST_XDIE5, 0, 0}, // S_BEAST_XDIE4 {SPR_BEAS, 13, 5, NULL, S_BEAST_XDIE6, 0, 0}, // S_BEAST_XDIE5 {SPR_BEAS, 14, 6, A_NoBlocking, S_BEAST_XDIE7, 0, 0}, // S_BEAST_XDIE6 {SPR_BEAS, 15, 5, NULL, S_BEAST_XDIE8, 0, 0}, // S_BEAST_XDIE7 {SPR_BEAS, 16, -1, NULL, S_NULL, 0, 0}, // S_BEAST_XDIE8 {SPR_FRB1, 0, 2, A_BeastPuff, S_BEASTBALL2, 0, 0}, // S_BEASTBALL1 {SPR_FRB1, 0, 2, A_BeastPuff, S_BEASTBALL3, 0, 0}, // S_BEASTBALL2 {SPR_FRB1, 1, 2, A_BeastPuff, S_BEASTBALL4, 0, 0}, // S_BEASTBALL3 {SPR_FRB1, 1, 2, A_BeastPuff, S_BEASTBALL5, 0, 0}, // S_BEASTBALL4 {SPR_FRB1, 2, 2, A_BeastPuff, S_BEASTBALL6, 0, 0}, // S_BEASTBALL5 {SPR_FRB1, 2, 2, A_BeastPuff, S_BEASTBALL1, 0, 0}, // S_BEASTBALL6 {SPR_FRB1, 3, 4, NULL, S_BEASTBALLX2, 0, 0}, // S_BEASTBALLX1 {SPR_FRB1, 4, 4, NULL, S_BEASTBALLX3, 0, 0}, // S_BEASTBALLX2 {SPR_FRB1, 5, 4, NULL, S_BEASTBALLX4, 0, 0}, // S_BEASTBALLX3 {SPR_FRB1, 6, 4, NULL, S_BEASTBALLX5, 0, 0}, // S_BEASTBALLX4 {SPR_FRB1, 7, 4, NULL, S_NULL, 0, 0}, // S_BEASTBALLX5 {SPR_FRB1, 0, 4, NULL, S_BURNBALL2, 0, 0}, // S_BURNBALL1 {SPR_FRB1, 1, 4, NULL, S_BURNBALL3, 0, 0}, // S_BURNBALL2 {SPR_FRB1, 2, 4, NULL, S_BURNBALL4, 0, 0}, // S_BURNBALL3 {SPR_FRB1, 3, 4, NULL, S_BURNBALL5, 0, 0}, // S_BURNBALL4 {SPR_FRB1, 4, 4, NULL, S_BURNBALL6, 0, 0}, // S_BURNBALL5 {SPR_FRB1, 5, 4, NULL, S_BURNBALL7, 0, 0}, // S_BURNBALL6 {SPR_FRB1, 6, 4, NULL, S_BURNBALL8, 0, 0}, // S_BURNBALL7 {SPR_FRB1, 7, 4, NULL, S_NULL, 0, 0}, // S_BURNBALL8 {SPR_FRB1, 32768, 4, NULL, S_BURNBALLFB2, 0, 0}, // S_BURNBALLFB1 {SPR_FRB1, 32769, 4, NULL, S_BURNBALLFB3, 0, 0}, // S_BURNBALLFB2 {SPR_FRB1, 32770, 4, NULL, S_BURNBALLFB4, 0, 0}, // S_BURNBALLFB3 {SPR_FRB1, 32771, 4, NULL, S_BURNBALLFB5, 0, 0}, // S_BURNBALLFB4 {SPR_FRB1, 32772, 4, NULL, S_BURNBALLFB6, 0, 0}, // S_BURNBALLFB5 {SPR_FRB1, 32773, 4, NULL, S_BURNBALLFB7, 0, 0}, // S_BURNBALLFB6 {SPR_FRB1, 32774, 4, NULL, S_BURNBALLFB8, 0, 0}, // S_BURNBALLFB7 {SPR_FRB1, 32775, 4, NULL, S_NULL, 0, 0}, // S_BURNBALLFB8 {SPR_FRB1, 3, 4, NULL, S_PUFFY2, 0, 0}, // S_PUFFY1 {SPR_FRB1, 4, 4, NULL, S_PUFFY3, 0, 0}, // S_PUFFY2 {SPR_FRB1, 5, 4, NULL, S_PUFFY4, 0, 0}, // S_PUFFY3 {SPR_FRB1, 6, 4, NULL, S_PUFFY5, 0, 0}, // S_PUFFY4 {SPR_FRB1, 7, 4, NULL, S_NULL, 0, 0}, // S_PUFFY5 {SPR_SNKE, 0, 10, A_Look, S_SNAKE_LOOK2, 0, 0}, // S_SNAKE_LOOK1 {SPR_SNKE, 1, 10, A_Look, S_SNAKE_LOOK1, 0, 0}, // S_SNAKE_LOOK2 {SPR_SNKE, 0, 4, A_Chase, S_SNAKE_WALK2, 0, 0}, // S_SNAKE_WALK1 {SPR_SNKE, 1, 4, A_Chase, S_SNAKE_WALK3, 0, 0}, // S_SNAKE_WALK2 {SPR_SNKE, 2, 4, A_Chase, S_SNAKE_WALK4, 0, 0}, // S_SNAKE_WALK3 {SPR_SNKE, 3, 4, A_Chase, S_SNAKE_WALK1, 0, 0}, // S_SNAKE_WALK4 {SPR_SNKE, 5, 5, A_FaceTarget, S_SNAKE_ATK2, 0, 0}, // S_SNAKE_ATK1 {SPR_SNKE, 5, 5, A_FaceTarget, S_SNAKE_ATK3, 0, 0}, // S_SNAKE_ATK2 {SPR_SNKE, 5, 4, A_SnakeAttack, S_SNAKE_ATK4, 0, 0}, // S_SNAKE_ATK3 {SPR_SNKE, 5, 4, A_SnakeAttack, S_SNAKE_ATK5, 0, 0}, // S_SNAKE_ATK4 {SPR_SNKE, 5, 4, A_SnakeAttack, S_SNAKE_ATK6, 0, 0}, // S_SNAKE_ATK5 {SPR_SNKE, 5, 5, A_FaceTarget, S_SNAKE_ATK7, 0, 0}, // S_SNAKE_ATK6 {SPR_SNKE, 5, 5, A_FaceTarget, S_SNAKE_ATK8, 0, 0}, // S_SNAKE_ATK7 {SPR_SNKE, 5, 5, A_FaceTarget, S_SNAKE_ATK9, 0, 0}, // S_SNAKE_ATK8 {SPR_SNKE, 5, 4, A_SnakeAttack2, S_SNAKE_WALK1, 0, 0}, // S_SNAKE_ATK9 {SPR_SNKE, 4, 3, NULL, S_SNAKE_PAIN2, 0, 0}, // S_SNAKE_PAIN1 {SPR_SNKE, 4, 3, A_Pain, S_SNAKE_WALK1, 0, 0}, // S_SNAKE_PAIN2 {SPR_SNKE, 6, 5, NULL, S_SNAKE_DIE2, 0, 0}, // S_SNAKE_DIE1 {SPR_SNKE, 7, 5, A_Scream, S_SNAKE_DIE3, 0, 0}, // S_SNAKE_DIE2 {SPR_SNKE, 8, 5, NULL, S_SNAKE_DIE4, 0, 0}, // S_SNAKE_DIE3 {SPR_SNKE, 9, 5, NULL, S_SNAKE_DIE5, 0, 0}, // S_SNAKE_DIE4 {SPR_SNKE, 10, 5, NULL, S_SNAKE_DIE6, 0, 0}, // S_SNAKE_DIE5 {SPR_SNKE, 11, 5, NULL, S_SNAKE_DIE7, 0, 0}, // S_SNAKE_DIE6 {SPR_SNKE, 12, 5, A_NoBlocking, S_SNAKE_DIE8, 0, 0}, // S_SNAKE_DIE7 {SPR_SNKE, 13, 5, NULL, S_SNAKE_DIE9, 0, 0}, // S_SNAKE_DIE8 {SPR_SNKE, 14, 5, NULL, S_SNAKE_DIE10, 0, 0}, // S_SNAKE_DIE9 {SPR_SNKE, 15, -1, NULL, S_NULL, 0, 0}, // S_SNAKE_DIE10 {SPR_SNFX, 32768, 5, NULL, S_SNAKEPRO_A2, 0, 0}, // S_SNAKEPRO_A1 {SPR_SNFX, 32769, 5, NULL, S_SNAKEPRO_A3, 0, 0}, // S_SNAKEPRO_A2 {SPR_SNFX, 32770, 5, NULL, S_SNAKEPRO_A4, 0, 0}, // S_SNAKEPRO_A3 {SPR_SNFX, 32771, 5, NULL, S_SNAKEPRO_A1, 0, 0}, // S_SNAKEPRO_A4 {SPR_SNFX, 32772, 5, NULL, S_SNAKEPRO_AX2, 0, 0}, // S_SNAKEPRO_AX1 {SPR_SNFX, 32773, 5, NULL, S_SNAKEPRO_AX3, 0, 0}, // S_SNAKEPRO_AX2 {SPR_SNFX, 32774, 4, NULL, S_SNAKEPRO_AX4, 0, 0}, // S_SNAKEPRO_AX3 {SPR_SNFX, 32775, 3, NULL, S_SNAKEPRO_AX5, 0, 0}, // S_SNAKEPRO_AX4 {SPR_SNFX, 32776, 3, NULL, S_NULL, 0, 0}, // S_SNAKEPRO_AX5 {SPR_SNFX, 32777, 6, NULL, S_SNAKEPRO_B2, 0, 0}, // S_SNAKEPRO_B1 {SPR_SNFX, 32778, 6, NULL, S_SNAKEPRO_B1, 0, 0}, // S_SNAKEPRO_B2 {SPR_SNFX, 32779, 5, NULL, S_SNAKEPRO_BX2, 0, 0}, // S_SNAKEPRO_BX1 {SPR_SNFX, 32780, 5, NULL, S_SNAKEPRO_BX3, 0, 0}, // S_SNAKEPRO_BX2 {SPR_SNFX, 32781, 4, NULL, S_SNAKEPRO_BX4, 0, 0}, // S_SNAKEPRO_BX3 {SPR_SNFX, 32782, 3, NULL, S_NULL, 0, 0}, // S_SNAKEPRO_BX4 {SPR_HEAD, 0, 10, A_Look, S_HEAD_LOOK, 0, 0}, // S_HEAD_LOOK {SPR_HEAD, 0, 4, A_Chase, S_HEAD_FLOAT, 0, 0}, // S_HEAD_FLOAT {SPR_HEAD, 0, 5, A_FaceTarget, S_HEAD_ATK2, 0, 0}, // S_HEAD_ATK1 {SPR_HEAD, 1, 20, A_HeadAttack, S_HEAD_FLOAT, 0, 0}, // S_HEAD_ATK2 {SPR_HEAD, 0, 4, NULL, S_HEAD_PAIN2, 0, 0}, // S_HEAD_PAIN1 {SPR_HEAD, 0, 4, A_Pain, S_HEAD_FLOAT, 0, 0}, // S_HEAD_PAIN2 {SPR_HEAD, 2, 7, NULL, S_HEAD_DIE2, 0, 0}, // S_HEAD_DIE1 {SPR_HEAD, 3, 7, A_Scream, S_HEAD_DIE3, 0, 0}, // S_HEAD_DIE2 {SPR_HEAD, 4, 7, NULL, S_HEAD_DIE4, 0, 0}, // S_HEAD_DIE3 {SPR_HEAD, 5, 7, NULL, S_HEAD_DIE5, 0, 0}, // S_HEAD_DIE4 {SPR_HEAD, 6, 7, A_NoBlocking, S_HEAD_DIE6, 0, 0}, // S_HEAD_DIE5 {SPR_HEAD, 7, 7, NULL, S_HEAD_DIE7, 0, 0}, // S_HEAD_DIE6 {SPR_HEAD, 8, -1, A_BossDeath, S_NULL, 0, 0}, // S_HEAD_DIE7 {SPR_FX05, 0, 6, NULL, S_HEADFX1_2, 0, 0}, // S_HEADFX1_1 {SPR_FX05, 1, 6, NULL, S_HEADFX1_3, 0, 0}, // S_HEADFX1_2 {SPR_FX05, 2, 6, NULL, S_HEADFX1_1, 0, 0}, // S_HEADFX1_3 {SPR_FX05, 3, 5, A_HeadIceImpact, S_HEADFXI1_2, 0, 0}, // S_HEADFXI1_1 {SPR_FX05, 4, 5, NULL, S_HEADFXI1_3, 0, 0}, // S_HEADFXI1_2 {SPR_FX05, 5, 5, NULL, S_HEADFXI1_4, 0, 0}, // S_HEADFXI1_3 {SPR_FX05, 6, 5, NULL, S_NULL, 0, 0}, // S_HEADFXI1_4 {SPR_FX05, 7, 6, NULL, S_HEADFX2_2, 0, 0}, // S_HEADFX2_1 {SPR_FX05, 8, 6, NULL, S_HEADFX2_3, 0, 0}, // S_HEADFX2_2 {SPR_FX05, 9, 6, NULL, S_HEADFX2_1, 0, 0}, // S_HEADFX2_3 {SPR_FX05, 3, 5, NULL, S_HEADFXI2_2, 0, 0}, // S_HEADFXI2_1 {SPR_FX05, 4, 5, NULL, S_HEADFXI2_3, 0, 0}, // S_HEADFXI2_2 {SPR_FX05, 5, 5, NULL, S_HEADFXI2_4, 0, 0}, // S_HEADFXI2_3 {SPR_FX05, 6, 5, NULL, S_NULL, 0, 0}, // S_HEADFXI2_4 {SPR_FX06, 0, 4, A_HeadFireGrow, S_HEADFX3_2, 0, 0}, // S_HEADFX3_1 {SPR_FX06, 1, 4, A_HeadFireGrow, S_HEADFX3_3, 0, 0}, // S_HEADFX3_2 {SPR_FX06, 2, 4, A_HeadFireGrow, S_HEADFX3_1, 0, 0}, // S_HEADFX3_3 {SPR_FX06, 0, 5, NULL, S_HEADFX3_5, 0, 0}, // S_HEADFX3_4 {SPR_FX06, 1, 5, NULL, S_HEADFX3_6, 0, 0}, // S_HEADFX3_5 {SPR_FX06, 2, 5, NULL, S_HEADFX3_4, 0, 0}, // S_HEADFX3_6 {SPR_FX06, 3, 5, NULL, S_HEADFXI3_2, 0, 0}, // S_HEADFXI3_1 {SPR_FX06, 4, 5, NULL, S_HEADFXI3_3, 0, 0}, // S_HEADFXI3_2 {SPR_FX06, 5, 5, NULL, S_HEADFXI3_4, 0, 0}, // S_HEADFXI3_3 {SPR_FX06, 6, 5, NULL, S_NULL, 0, 0}, // S_HEADFXI3_4 {SPR_FX07, 3, 3, NULL, S_HEADFX4_2, 0, 0}, // S_HEADFX4_1 {SPR_FX07, 4, 3, NULL, S_HEADFX4_3, 0, 0}, // S_HEADFX4_2 {SPR_FX07, 5, 3, NULL, S_HEADFX4_4, 0, 0}, // S_HEADFX4_3 {SPR_FX07, 6, 3, NULL, S_HEADFX4_5, 0, 0}, // S_HEADFX4_4 {SPR_FX07, 0, 3, A_WhirlwindSeek, S_HEADFX4_6, 0, 0}, // S_HEADFX4_5 {SPR_FX07, 1, 3, A_WhirlwindSeek, S_HEADFX4_7, 0, 0}, // S_HEADFX4_6 {SPR_FX07, 2, 3, A_WhirlwindSeek, S_HEADFX4_5, 0, 0}, // S_HEADFX4_7 {SPR_FX07, 6, 4, NULL, S_HEADFXI4_2, 0, 0}, // S_HEADFXI4_1 {SPR_FX07, 5, 4, NULL, S_HEADFXI4_3, 0, 0}, // S_HEADFXI4_2 {SPR_FX07, 4, 4, NULL, S_HEADFXI4_4, 0, 0}, // S_HEADFXI4_3 {SPR_FX07, 3, 4, NULL, S_NULL, 0, 0}, // S_HEADFXI4_4 {SPR_CLNK, 0, 10, A_Look, S_CLINK_LOOK2, 0, 0}, // S_CLINK_LOOK1 {SPR_CLNK, 1, 10, A_Look, S_CLINK_LOOK1, 0, 0}, // S_CLINK_LOOK2 {SPR_CLNK, 0, 3, A_Chase, S_CLINK_WALK2, 0, 0}, // S_CLINK_WALK1 {SPR_CLNK, 1, 3, A_Chase, S_CLINK_WALK3, 0, 0}, // S_CLINK_WALK2 {SPR_CLNK, 2, 3, A_Chase, S_CLINK_WALK4, 0, 0}, // S_CLINK_WALK3 {SPR_CLNK, 3, 3, A_Chase, S_CLINK_WALK1, 0, 0}, // S_CLINK_WALK4 {SPR_CLNK, 4, 5, A_FaceTarget, S_CLINK_ATK2, 0, 0}, // S_CLINK_ATK1 {SPR_CLNK, 5, 4, A_FaceTarget, S_CLINK_ATK3, 0, 0}, // S_CLINK_ATK2 {SPR_CLNK, 6, 7, A_ClinkAttack, S_CLINK_WALK1, 0, 0}, // S_CLINK_ATK3 {SPR_CLNK, 7, 3, NULL, S_CLINK_PAIN2, 0, 0}, // S_CLINK_PAIN1 {SPR_CLNK, 7, 3, A_Pain, S_CLINK_WALK1, 0, 0}, // S_CLINK_PAIN2 {SPR_CLNK, 8, 6, NULL, S_CLINK_DIE2, 0, 0}, // S_CLINK_DIE1 {SPR_CLNK, 9, 6, NULL, S_CLINK_DIE3, 0, 0}, // S_CLINK_DIE2 {SPR_CLNK, 10, 5, A_Scream, S_CLINK_DIE4, 0, 0}, // S_CLINK_DIE3 {SPR_CLNK, 11, 5, A_NoBlocking, S_CLINK_DIE5, 0, 0}, // S_CLINK_DIE4 {SPR_CLNK, 12, 5, NULL, S_CLINK_DIE6, 0, 0}, // S_CLINK_DIE5 {SPR_CLNK, 13, 5, NULL, S_CLINK_DIE7, 0, 0}, // S_CLINK_DIE6 {SPR_CLNK, 14, -1, NULL, S_NULL, 0, 0}, // S_CLINK_DIE7 {SPR_WZRD, 0, 10, A_Look, S_WIZARD_LOOK2, 0, 0}, // S_WIZARD_LOOK1 {SPR_WZRD, 1, 10, A_Look, S_WIZARD_LOOK1, 0, 0}, // S_WIZARD_LOOK2 {SPR_WZRD, 0, 3, A_Chase, S_WIZARD_WALK2, 0, 0}, // S_WIZARD_WALK1 {SPR_WZRD, 0, 4, A_Chase, S_WIZARD_WALK3, 0, 0}, // S_WIZARD_WALK2 {SPR_WZRD, 0, 3, A_Chase, S_WIZARD_WALK4, 0, 0}, // S_WIZARD_WALK3 {SPR_WZRD, 0, 4, A_Chase, S_WIZARD_WALK5, 0, 0}, // S_WIZARD_WALK4 {SPR_WZRD, 1, 3, A_Chase, S_WIZARD_WALK6, 0, 0}, // S_WIZARD_WALK5 {SPR_WZRD, 1, 4, A_Chase, S_WIZARD_WALK7, 0, 0}, // S_WIZARD_WALK6 {SPR_WZRD, 1, 3, A_Chase, S_WIZARD_WALK8, 0, 0}, // S_WIZARD_WALK7 {SPR_WZRD, 1, 4, A_Chase, S_WIZARD_WALK1, 0, 0}, // S_WIZARD_WALK8 {SPR_WZRD, 2, 4, A_WizAtk1, S_WIZARD_ATK2, 0, 0}, // S_WIZARD_ATK1 {SPR_WZRD, 2, 4, A_WizAtk2, S_WIZARD_ATK3, 0, 0}, // S_WIZARD_ATK2 {SPR_WZRD, 2, 4, A_WizAtk1, S_WIZARD_ATK4, 0, 0}, // S_WIZARD_ATK3 {SPR_WZRD, 2, 4, A_WizAtk2, S_WIZARD_ATK5, 0, 0}, // S_WIZARD_ATK4 {SPR_WZRD, 2, 4, A_WizAtk1, S_WIZARD_ATK6, 0, 0}, // S_WIZARD_ATK5 {SPR_WZRD, 2, 4, A_WizAtk2, S_WIZARD_ATK7, 0, 0}, // S_WIZARD_ATK6 {SPR_WZRD, 2, 4, A_WizAtk1, S_WIZARD_ATK8, 0, 0}, // S_WIZARD_ATK7 {SPR_WZRD, 2, 4, A_WizAtk2, S_WIZARD_ATK9, 0, 0}, // S_WIZARD_ATK8 {SPR_WZRD, 3, 12, A_WizAtk3, S_WIZARD_WALK1, 0, 0}, // S_WIZARD_ATK9 {SPR_WZRD, 4, 3, A_GhostOff, S_WIZARD_PAIN2, 0, 0}, // S_WIZARD_PAIN1 {SPR_WZRD, 4, 3, A_Pain, S_WIZARD_WALK1, 0, 0}, // S_WIZARD_PAIN2 {SPR_WZRD, 5, 6, A_GhostOff, S_WIZARD_DIE2, 0, 0}, // S_WIZARD_DIE1 {SPR_WZRD, 6, 6, A_Scream, S_WIZARD_DIE3, 0, 0}, // S_WIZARD_DIE2 {SPR_WZRD, 7, 6, NULL, S_WIZARD_DIE4, 0, 0}, // S_WIZARD_DIE3 {SPR_WZRD, 8, 6, NULL, S_WIZARD_DIE5, 0, 0}, // S_WIZARD_DIE4 {SPR_WZRD, 9, 6, A_NoBlocking, S_WIZARD_DIE6, 0, 0}, // S_WIZARD_DIE5 {SPR_WZRD, 10, 6, NULL, S_WIZARD_DIE7, 0, 0}, // S_WIZARD_DIE6 {SPR_WZRD, 11, 6, NULL, S_WIZARD_DIE8, 0, 0}, // S_WIZARD_DIE7 {SPR_WZRD, 12, -1, NULL, S_NULL, 0, 0}, // S_WIZARD_DIE8 {SPR_FX11, 32768, 6, NULL, S_WIZFX1_2, 0, 0}, // S_WIZFX1_1 {SPR_FX11, 32769, 6, NULL, S_WIZFX1_1, 0, 0}, // S_WIZFX1_2 {SPR_FX11, 32770, 5, NULL, S_WIZFXI1_2, 0, 0}, // S_WIZFXI1_1 {SPR_FX11, 32771, 5, NULL, S_WIZFXI1_3, 0, 0}, // S_WIZFXI1_2 {SPR_FX11, 32772, 5, NULL, S_WIZFXI1_4, 0, 0}, // S_WIZFXI1_3 {SPR_FX11, 32773, 5, NULL, S_WIZFXI1_5, 0, 0}, // S_WIZFXI1_4 {SPR_FX11, 32774, 5, NULL, S_NULL, 0, 0}, // S_WIZFXI1_5 {SPR_IMPX, 0, 10, A_Look, S_IMP_LOOK2, 0, 0}, // S_IMP_LOOK1 {SPR_IMPX, 1, 10, A_Look, S_IMP_LOOK3, 0, 0}, // S_IMP_LOOK2 {SPR_IMPX, 2, 10, A_Look, S_IMP_LOOK4, 0, 0}, // S_IMP_LOOK3 {SPR_IMPX, 1, 10, A_Look, S_IMP_LOOK1, 0, 0}, // S_IMP_LOOK4 {SPR_IMPX, 0, 3, A_Chase, S_IMP_FLY2, 0, 0}, // S_IMP_FLY1 {SPR_IMPX, 0, 3, A_Chase, S_IMP_FLY3, 0, 0}, // S_IMP_FLY2 {SPR_IMPX, 1, 3, A_Chase, S_IMP_FLY4, 0, 0}, // S_IMP_FLY3 {SPR_IMPX, 1, 3, A_Chase, S_IMP_FLY5, 0, 0}, // S_IMP_FLY4 {SPR_IMPX, 2, 3, A_Chase, S_IMP_FLY6, 0, 0}, // S_IMP_FLY5 {SPR_IMPX, 2, 3, A_Chase, S_IMP_FLY7, 0, 0}, // S_IMP_FLY6 {SPR_IMPX, 1, 3, A_Chase, S_IMP_FLY8, 0, 0}, // S_IMP_FLY7 {SPR_IMPX, 1, 3, A_Chase, S_IMP_FLY1, 0, 0}, // S_IMP_FLY8 {SPR_IMPX, 3, 6, A_FaceTarget, S_IMP_MEATK2, 0, 0}, // S_IMP_MEATK1 {SPR_IMPX, 4, 6, A_FaceTarget, S_IMP_MEATK3, 0, 0}, // S_IMP_MEATK2 {SPR_IMPX, 5, 6, A_ImpMeAttack, S_IMP_FLY1, 0, 0}, // S_IMP_MEATK3 {SPR_IMPX, 0, 10, A_FaceTarget, S_IMP_MSATK1_2, 0, 0}, // S_IMP_MSATK1_1 {SPR_IMPX, 1, 6, A_ImpMsAttack, S_IMP_MSATK1_3, 0, 0}, // S_IMP_MSATK1_2 {SPR_IMPX, 2, 6, NULL, S_IMP_MSATK1_4, 0, 0}, // S_IMP_MSATK1_3 {SPR_IMPX, 1, 6, NULL, S_IMP_MSATK1_5, 0, 0}, // S_IMP_MSATK1_4 {SPR_IMPX, 0, 6, NULL, S_IMP_MSATK1_6, 0, 0}, // S_IMP_MSATK1_5 {SPR_IMPX, 1, 6, NULL, S_IMP_MSATK1_3, 0, 0}, // S_IMP_MSATK1_6 {SPR_IMPX, 3, 6, A_FaceTarget, S_IMP_MSATK2_2, 0, 0}, // S_IMP_MSATK2_1 {SPR_IMPX, 4, 6, A_FaceTarget, S_IMP_MSATK2_3, 0, 0}, // S_IMP_MSATK2_2 {SPR_IMPX, 5, 6, A_ImpMsAttack2, S_IMP_FLY1, 0, 0}, // S_IMP_MSATK2_3 {SPR_IMPX, 6, 3, NULL, S_IMP_PAIN2, 0, 0}, // S_IMP_PAIN1 {SPR_IMPX, 6, 3, A_Pain, S_IMP_FLY1, 0, 0}, // S_IMP_PAIN2 {SPR_IMPX, 6, 4, A_ImpDeath, S_IMP_DIE2, 0, 0}, // S_IMP_DIE1 {SPR_IMPX, 7, 5, NULL, S_IMP_DIE2, 0, 0}, // S_IMP_DIE2 {SPR_IMPX, 18, 5, A_ImpXDeath1, S_IMP_XDIE2, 0, 0}, // S_IMP_XDIE1 {SPR_IMPX, 19, 5, NULL, S_IMP_XDIE3, 0, 0}, // S_IMP_XDIE2 {SPR_IMPX, 20, 5, NULL, S_IMP_XDIE4, 0, 0}, // S_IMP_XDIE3 {SPR_IMPX, 21, 5, A_ImpXDeath2, S_IMP_XDIE5, 0, 0}, // S_IMP_XDIE4 {SPR_IMPX, 22, 5, NULL, S_IMP_XDIE5, 0, 0}, // S_IMP_XDIE5 {SPR_IMPX, 8, 7, A_ImpExplode, S_IMP_CRASH2, 0, 0}, // S_IMP_CRASH1 {SPR_IMPX, 9, 7, A_Scream, S_IMP_CRASH3, 0, 0}, // S_IMP_CRASH2 {SPR_IMPX, 10, 7, NULL, S_IMP_CRASH4, 0, 0}, // S_IMP_CRASH3 {SPR_IMPX, 11, -1, NULL, S_NULL, 0, 0}, // S_IMP_CRASH4 {SPR_IMPX, 23, 7, NULL, S_IMP_XCRASH2, 0, 0}, // S_IMP_XCRASH1 {SPR_IMPX, 24, 7, NULL, S_IMP_XCRASH3, 0, 0}, // S_IMP_XCRASH2 {SPR_IMPX, 25, -1, NULL, S_NULL, 0, 0}, // S_IMP_XCRASH3 {SPR_IMPX, 12, 5, NULL, S_IMP_CHUNKA2, 0, 0}, // S_IMP_CHUNKA1 {SPR_IMPX, 13, 700, NULL, S_IMP_CHUNKA3, 0, 0}, // S_IMP_CHUNKA2 {SPR_IMPX, 14, 700, NULL, S_NULL, 0, 0}, // S_IMP_CHUNKA3 {SPR_IMPX, 15, 5, NULL, S_IMP_CHUNKB2, 0, 0}, // S_IMP_CHUNKB1 {SPR_IMPX, 16, 700, NULL, S_IMP_CHUNKB3, 0, 0}, // S_IMP_CHUNKB2 {SPR_IMPX, 17, 700, NULL, S_NULL, 0, 0}, // S_IMP_CHUNKB3 {SPR_FX10, 32768, 6, NULL, S_IMPFX2, 0, 0}, // S_IMPFX1 {SPR_FX10, 32769, 6, NULL, S_IMPFX3, 0, 0}, // S_IMPFX2 {SPR_FX10, 32770, 6, NULL, S_IMPFX1, 0, 0}, // S_IMPFX3 {SPR_FX10, 32771, 5, NULL, S_IMPFXI2, 0, 0}, // S_IMPFXI1 {SPR_FX10, 32772, 5, NULL, S_IMPFXI3, 0, 0}, // S_IMPFXI2 {SPR_FX10, 32773, 5, NULL, S_IMPFXI4, 0, 0}, // S_IMPFXI3 {SPR_FX10, 32774, 5, NULL, S_NULL, 0, 0}, // S_IMPFXI4 {SPR_KNIG, 0, 10, A_Look, S_KNIGHT_STND2, 0, 0}, // S_KNIGHT_STND1 {SPR_KNIG, 1, 10, A_Look, S_KNIGHT_STND1, 0, 0}, // S_KNIGHT_STND2 {SPR_KNIG, 0, 4, A_Chase, S_KNIGHT_WALK2, 0, 0}, // S_KNIGHT_WALK1 {SPR_KNIG, 1, 4, A_Chase, S_KNIGHT_WALK3, 0, 0}, // S_KNIGHT_WALK2 {SPR_KNIG, 2, 4, A_Chase, S_KNIGHT_WALK4, 0, 0}, // S_KNIGHT_WALK3 {SPR_KNIG, 3, 4, A_Chase, S_KNIGHT_WALK1, 0, 0}, // S_KNIGHT_WALK4 {SPR_KNIG, 4, 10, A_FaceTarget, S_KNIGHT_ATK2, 0, 0}, // S_KNIGHT_ATK1 {SPR_KNIG, 5, 8, A_FaceTarget, S_KNIGHT_ATK3, 0, 0}, // S_KNIGHT_ATK2 {SPR_KNIG, 6, 8, A_KnightAttack, S_KNIGHT_ATK4, 0, 0}, // S_KNIGHT_ATK3 {SPR_KNIG, 4, 10, A_FaceTarget, S_KNIGHT_ATK5, 0, 0}, // S_KNIGHT_ATK4 {SPR_KNIG, 5, 8, A_FaceTarget, S_KNIGHT_ATK6, 0, 0}, // S_KNIGHT_ATK5 {SPR_KNIG, 6, 8, A_KnightAttack, S_KNIGHT_WALK1, 0, 0}, // S_KNIGHT_ATK6 {SPR_KNIG, 7, 3, NULL, S_KNIGHT_PAIN2, 0, 0}, // S_KNIGHT_PAIN1 {SPR_KNIG, 7, 3, A_Pain, S_KNIGHT_WALK1, 0, 0}, // S_KNIGHT_PAIN2 {SPR_KNIG, 8, 6, NULL, S_KNIGHT_DIE2, 0, 0}, // S_KNIGHT_DIE1 {SPR_KNIG, 9, 6, A_Scream, S_KNIGHT_DIE3, 0, 0}, // S_KNIGHT_DIE2 {SPR_KNIG, 10, 6, NULL, S_KNIGHT_DIE4, 0, 0}, // S_KNIGHT_DIE3 {SPR_KNIG, 11, 6, A_NoBlocking, S_KNIGHT_DIE5, 0, 0}, // S_KNIGHT_DIE4 {SPR_KNIG, 12, 6, NULL, S_KNIGHT_DIE6, 0, 0}, // S_KNIGHT_DIE5 {SPR_KNIG, 13, 6, NULL, S_KNIGHT_DIE7, 0, 0}, // S_KNIGHT_DIE6 {SPR_KNIG, 14, -1, NULL, S_NULL, 0, 0}, // S_KNIGHT_DIE7 {SPR_SPAX, 32768, 3, A_ContMobjSound, S_SPINAXE2, 0, 0}, // S_SPINAXE1 {SPR_SPAX, 32769, 3, NULL, S_SPINAXE3, 0, 0}, // S_SPINAXE2 {SPR_SPAX, 32770, 3, NULL, S_SPINAXE1, 0, 0}, // S_SPINAXE3 {SPR_SPAX, 32771, 6, NULL, S_SPINAXEX2, 0, 0}, // S_SPINAXEX1 {SPR_SPAX, 32772, 6, NULL, S_SPINAXEX3, 0, 0}, // S_SPINAXEX2 {SPR_SPAX, 32773, 6, NULL, S_NULL, 0, 0}, // S_SPINAXEX3 {SPR_RAXE, 32768, 5, A_DripBlood, S_REDAXE2, 0, 0}, // S_REDAXE1 {SPR_RAXE, 32769, 5, A_DripBlood, S_REDAXE1, 0, 0}, // S_REDAXE2 {SPR_RAXE, 32770, 6, NULL, S_REDAXEX2, 0, 0}, // S_REDAXEX1 {SPR_RAXE, 32771, 6, NULL, S_REDAXEX3, 0, 0}, // S_REDAXEX2 {SPR_RAXE, 32772, 6, NULL, S_NULL, 0, 0}, // S_REDAXEX3 {SPR_SRCR, 0, 10, A_Look, S_SRCR1_LOOK2, 0, 0}, // S_SRCR1_LOOK1 {SPR_SRCR, 1, 10, A_Look, S_SRCR1_LOOK1, 0, 0}, // S_SRCR1_LOOK2 {SPR_SRCR, 0, 5, A_Sor1Chase, S_SRCR1_WALK2, 0, 0}, // S_SRCR1_WALK1 {SPR_SRCR, 1, 5, A_Sor1Chase, S_SRCR1_WALK3, 0, 0}, // S_SRCR1_WALK2 {SPR_SRCR, 2, 5, A_Sor1Chase, S_SRCR1_WALK4, 0, 0}, // S_SRCR1_WALK3 {SPR_SRCR, 3, 5, A_Sor1Chase, S_SRCR1_WALK1, 0, 0}, // S_SRCR1_WALK4 {SPR_SRCR, 16, 6, A_Sor1Pain, S_SRCR1_WALK1, 0, 0}, // S_SRCR1_PAIN1 {SPR_SRCR, 16, 7, A_FaceTarget, S_SRCR1_ATK2, 0, 0}, // S_SRCR1_ATK1 {SPR_SRCR, 17, 6, A_FaceTarget, S_SRCR1_ATK3, 0, 0}, // S_SRCR1_ATK2 {SPR_SRCR, 18, 10, A_Srcr1Attack, S_SRCR1_WALK1, 0, 0}, // S_SRCR1_ATK3 {SPR_SRCR, 18, 10, A_FaceTarget, S_SRCR1_ATK5, 0, 0}, // S_SRCR1_ATK4 {SPR_SRCR, 16, 7, A_FaceTarget, S_SRCR1_ATK6, 0, 0}, // S_SRCR1_ATK5 {SPR_SRCR, 17, 6, A_FaceTarget, S_SRCR1_ATK7, 0, 0}, // S_SRCR1_ATK6 {SPR_SRCR, 18, 10, A_Srcr1Attack, S_SRCR1_WALK1, 0, 0}, // S_SRCR1_ATK7 {SPR_SRCR, 4, 7, NULL, S_SRCR1_DIE2, 0, 0}, // S_SRCR1_DIE1 {SPR_SRCR, 5, 7, A_Scream, S_SRCR1_DIE3, 0, 0}, // S_SRCR1_DIE2 {SPR_SRCR, 6, 7, NULL, S_SRCR1_DIE4, 0, 0}, // S_SRCR1_DIE3 {SPR_SRCR, 7, 6, NULL, S_SRCR1_DIE5, 0, 0}, // S_SRCR1_DIE4 {SPR_SRCR, 8, 6, NULL, S_SRCR1_DIE6, 0, 0}, // S_SRCR1_DIE5 {SPR_SRCR, 9, 6, NULL, S_SRCR1_DIE7, 0, 0}, // S_SRCR1_DIE6 {SPR_SRCR, 10, 6, NULL, S_SRCR1_DIE8, 0, 0}, // S_SRCR1_DIE7 {SPR_SRCR, 11, 25, A_SorZap, S_SRCR1_DIE9, 0, 0}, // S_SRCR1_DIE8 {SPR_SRCR, 12, 5, NULL, S_SRCR1_DIE10, 0, 0}, // S_SRCR1_DIE9 {SPR_SRCR, 13, 5, NULL, S_SRCR1_DIE11, 0, 0}, // S_SRCR1_DIE10 {SPR_SRCR, 14, 4, NULL, S_SRCR1_DIE12, 0, 0}, // S_SRCR1_DIE11 {SPR_SRCR, 11, 20, A_SorZap, S_SRCR1_DIE13, 0, 0}, // S_SRCR1_DIE12 {SPR_SRCR, 12, 5, NULL, S_SRCR1_DIE14, 0, 0}, // S_SRCR1_DIE13 {SPR_SRCR, 13, 5, NULL, S_SRCR1_DIE15, 0, 0}, // S_SRCR1_DIE14 {SPR_SRCR, 14, 4, NULL, S_SRCR1_DIE16, 0, 0}, // S_SRCR1_DIE15 {SPR_SRCR, 11, 12, NULL, S_SRCR1_DIE17, 0, 0}, // S_SRCR1_DIE16 {SPR_SRCR, 15, -1, A_SorcererRise, S_NULL, 0, 0}, // S_SRCR1_DIE17 {SPR_FX14, 32768, 6, NULL, S_SRCRFX1_2, 0, 0}, // S_SRCRFX1_1 {SPR_FX14, 32769, 6, NULL, S_SRCRFX1_3, 0, 0}, // S_SRCRFX1_2 {SPR_FX14, 32770, 6, NULL, S_SRCRFX1_1, 0, 0}, // S_SRCRFX1_3 {SPR_FX14, 32771, 5, NULL, S_SRCRFXI1_2, 0, 0}, // S_SRCRFXI1_1 {SPR_FX14, 32772, 5, NULL, S_SRCRFXI1_3, 0, 0}, // S_SRCRFXI1_2 {SPR_FX14, 32773, 5, NULL, S_SRCRFXI1_4, 0, 0}, // S_SRCRFXI1_3 {SPR_FX14, 32774, 5, NULL, S_SRCRFXI1_5, 0, 0}, // S_SRCRFXI1_4 {SPR_FX14, 32775, 5, NULL, S_NULL, 0, 0}, // S_SRCRFXI1_5 {SPR_SOR2, 0, 4, NULL, S_SOR2_RISE2, 0, 0}, // S_SOR2_RISE1 {SPR_SOR2, 1, 4, NULL, S_SOR2_RISE3, 0, 0}, // S_SOR2_RISE2 {SPR_SOR2, 2, 4, A_SorRise, S_SOR2_RISE4, 0, 0}, // S_SOR2_RISE3 {SPR_SOR2, 3, 4, NULL, S_SOR2_RISE5, 0, 0}, // S_SOR2_RISE4 {SPR_SOR2, 4, 4, NULL, S_SOR2_RISE6, 0, 0}, // S_SOR2_RISE5 {SPR_SOR2, 5, 4, NULL, S_SOR2_RISE7, 0, 0}, // S_SOR2_RISE6 {SPR_SOR2, 6, 12, A_SorSightSnd, S_SOR2_WALK1, 0, 0}, // S_SOR2_RISE7 {SPR_SOR2, 12, 10, A_Look, S_SOR2_LOOK2, 0, 0}, // S_SOR2_LOOK1 {SPR_SOR2, 13, 10, A_Look, S_SOR2_LOOK1, 0, 0}, // S_SOR2_LOOK2 {SPR_SOR2, 12, 4, A_Chase, S_SOR2_WALK2, 0, 0}, // S_SOR2_WALK1 {SPR_SOR2, 13, 4, A_Chase, S_SOR2_WALK3, 0, 0}, // S_SOR2_WALK2 {SPR_SOR2, 14, 4, A_Chase, S_SOR2_WALK4, 0, 0}, // S_SOR2_WALK3 {SPR_SOR2, 15, 4, A_Chase, S_SOR2_WALK1, 0, 0}, // S_SOR2_WALK4 {SPR_SOR2, 16, 3, NULL, S_SOR2_PAIN2, 0, 0}, // S_SOR2_PAIN1 {SPR_SOR2, 16, 6, A_Pain, S_SOR2_WALK1, 0, 0}, // S_SOR2_PAIN2 {SPR_SOR2, 17, 9, A_Srcr2Decide, S_SOR2_ATK2, 0, 0}, // S_SOR2_ATK1 {SPR_SOR2, 18, 9, A_FaceTarget, S_SOR2_ATK3, 0, 0}, // S_SOR2_ATK2 {SPR_SOR2, 19, 20, A_Srcr2Attack, S_SOR2_WALK1, 0, 0}, // S_SOR2_ATK3 {SPR_SOR2, 11, 6, NULL, S_SOR2_TELE2, 0, 0}, // S_SOR2_TELE1 {SPR_SOR2, 10, 6, NULL, S_SOR2_TELE3, 0, 0}, // S_SOR2_TELE2 {SPR_SOR2, 9, 6, NULL, S_SOR2_TELE4, 0, 0}, // S_SOR2_TELE3 {SPR_SOR2, 8, 6, NULL, S_SOR2_TELE5, 0, 0}, // S_SOR2_TELE4 {SPR_SOR2, 7, 6, NULL, S_SOR2_TELE6, 0, 0}, // S_SOR2_TELE5 {SPR_SOR2, 6, 6, NULL, S_SOR2_WALK1, 0, 0}, // S_SOR2_TELE6 {SPR_SDTH, 0, 8, A_Sor2DthInit, S_SOR2_DIE2, 0, 0}, // S_SOR2_DIE1 {SPR_SDTH, 1, 8, NULL, S_SOR2_DIE3, 0, 0}, // S_SOR2_DIE2 {SPR_SDTH, 2, 8, A_SorDSph, S_SOR2_DIE4, 0, 0}, // S_SOR2_DIE3 {SPR_SDTH, 3, 7, NULL, S_SOR2_DIE5, 0, 0}, // S_SOR2_DIE4 {SPR_SDTH, 4, 7, NULL, S_SOR2_DIE6, 0, 0}, // S_SOR2_DIE5 {SPR_SDTH, 5, 7, A_Sor2DthLoop, S_SOR2_DIE7, 0, 0}, // S_SOR2_DIE6 {SPR_SDTH, 6, 6, A_SorDExp, S_SOR2_DIE8, 0, 0}, // S_SOR2_DIE7 {SPR_SDTH, 7, 6, NULL, S_SOR2_DIE9, 0, 0}, // S_SOR2_DIE8 {SPR_SDTH, 8, 18, NULL, S_SOR2_DIE10, 0, 0}, // S_SOR2_DIE9 {SPR_SDTH, 9, 6, A_NoBlocking, S_SOR2_DIE11, 0, 0}, // S_SOR2_DIE10 {SPR_SDTH, 10, 6, A_SorDBon, S_SOR2_DIE12, 0, 0}, // S_SOR2_DIE11 {SPR_SDTH, 11, 6, NULL, S_SOR2_DIE13, 0, 0}, // S_SOR2_DIE12 {SPR_SDTH, 12, 6, NULL, S_SOR2_DIE14, 0, 0}, // S_SOR2_DIE13 {SPR_SDTH, 13, 6, NULL, S_SOR2_DIE15, 0, 0}, // S_SOR2_DIE14 {SPR_SDTH, 14, -1, A_BossDeath, S_NULL, 0, 0}, // S_SOR2_DIE15 {SPR_FX16, 32768, 3, A_BlueSpark, S_SOR2FX1_2, 0, 0}, // S_SOR2FX1_1 {SPR_FX16, 32769, 3, A_BlueSpark, S_SOR2FX1_3, 0, 0}, // S_SOR2FX1_2 {SPR_FX16, 32770, 3, A_BlueSpark, S_SOR2FX1_1, 0, 0}, // S_SOR2FX1_3 {SPR_FX16, 32774, 5, A_Explode, S_SOR2FXI1_2, 0, 0}, // S_SOR2FXI1_1 {SPR_FX16, 32775, 5, NULL, S_SOR2FXI1_3, 0, 0}, // S_SOR2FXI1_2 {SPR_FX16, 32776, 5, NULL, S_SOR2FXI1_4, 0, 0}, // S_SOR2FXI1_3 {SPR_FX16, 32777, 5, NULL, S_SOR2FXI1_5, 0, 0}, // S_SOR2FXI1_4 {SPR_FX16, 32778, 5, NULL, S_SOR2FXI1_6, 0, 0}, // S_SOR2FXI1_5 {SPR_FX16, 32779, 5, NULL, S_NULL, 0, 0}, // S_SOR2FXI1_6 {SPR_FX16, 32771, 12, NULL, S_SOR2FXSPARK2, 0, 0}, // S_SOR2FXSPARK1 {SPR_FX16, 32772, 12, NULL, S_SOR2FXSPARK3, 0, 0}, // S_SOR2FXSPARK2 {SPR_FX16, 32773, 12, NULL, S_NULL, 0, 0}, // S_SOR2FXSPARK3 {SPR_FX11, 32768, 35, NULL, S_SOR2FX2_2, 0, 0}, // S_SOR2FX2_1 {SPR_FX11, 32768, 5, A_GenWizard, S_SOR2FX2_3, 0, 0}, // S_SOR2FX2_2 {SPR_FX11, 32769, 5, NULL, S_SOR2FX2_2, 0, 0}, // S_SOR2FX2_3 {SPR_FX11, 32770, 5, NULL, S_SOR2FXI2_2, 0, 0}, // S_SOR2FXI2_1 {SPR_FX11, 32771, 5, NULL, S_SOR2FXI2_3, 0, 0}, // S_SOR2FXI2_2 {SPR_FX11, 32772, 5, NULL, S_SOR2FXI2_4, 0, 0}, // S_SOR2FXI2_3 {SPR_FX11, 32773, 5, NULL, S_SOR2FXI2_5, 0, 0}, // S_SOR2FXI2_4 {SPR_FX11, 32774, 5, NULL, S_NULL, 0, 0}, // S_SOR2FXI2_5 {SPR_SOR2, 6, 8, NULL, S_SOR2TELEFADE2, 0, 0}, // S_SOR2TELEFADE1 {SPR_SOR2, 7, 6, NULL, S_SOR2TELEFADE3, 0, 0}, // S_SOR2TELEFADE2 {SPR_SOR2, 8, 6, NULL, S_SOR2TELEFADE4, 0, 0}, // S_SOR2TELEFADE3 {SPR_SOR2, 9, 6, NULL, S_SOR2TELEFADE5, 0, 0}, // S_SOR2TELEFADE4 {SPR_SOR2, 10, 6, NULL, S_SOR2TELEFADE6, 0, 0}, // S_SOR2TELEFADE5 {SPR_SOR2, 11, 6, NULL, S_NULL, 0, 0}, // S_SOR2TELEFADE6 {SPR_MNTR, 0, 10, A_Look, S_MNTR_LOOK2, 0, 0}, // S_MNTR_LOOK1 {SPR_MNTR, 1, 10, A_Look, S_MNTR_LOOK1, 0, 0}, // S_MNTR_LOOK2 {SPR_MNTR, 0, 5, A_Chase, S_MNTR_WALK2, 0, 0}, // S_MNTR_WALK1 {SPR_MNTR, 1, 5, A_Chase, S_MNTR_WALK3, 0, 0}, // S_MNTR_WALK2 {SPR_MNTR, 2, 5, A_Chase, S_MNTR_WALK4, 0, 0}, // S_MNTR_WALK3 {SPR_MNTR, 3, 5, A_Chase, S_MNTR_WALK1, 0, 0}, // S_MNTR_WALK4 {SPR_MNTR, 21, 10, A_FaceTarget, S_MNTR_ATK1_2, 0, 0}, // S_MNTR_ATK1_1 {SPR_MNTR, 22, 7, A_FaceTarget, S_MNTR_ATK1_3, 0, 0}, // S_MNTR_ATK1_2 {SPR_MNTR, 23, 12, A_MinotaurAtk1, S_MNTR_WALK1, 0, 0}, // S_MNTR_ATK1_3 {SPR_MNTR, 21, 10, A_MinotaurDecide, S_MNTR_ATK2_2, 0, 0}, // S_MNTR_ATK2_1 {SPR_MNTR, 24, 4, A_FaceTarget, S_MNTR_ATK2_3, 0, 0}, // S_MNTR_ATK2_2 {SPR_MNTR, 25, 9, A_MinotaurAtk2, S_MNTR_WALK1, 0, 0}, // S_MNTR_ATK2_3 {SPR_MNTR, 21, 10, A_FaceTarget, S_MNTR_ATK3_2, 0, 0}, // S_MNTR_ATK3_1 {SPR_MNTR, 22, 7, A_FaceTarget, S_MNTR_ATK3_3, 0, 0}, // S_MNTR_ATK3_2 {SPR_MNTR, 23, 12, A_MinotaurAtk3, S_MNTR_WALK1, 0, 0}, // S_MNTR_ATK3_3 {SPR_MNTR, 23, 12, NULL, S_MNTR_ATK3_1, 0, 0}, // S_MNTR_ATK3_4 {SPR_MNTR, 20, 2, A_MinotaurCharge, S_MNTR_ATK4_1, 0, 0}, // S_MNTR_ATK4_1 {SPR_MNTR, 4, 3, NULL, S_MNTR_PAIN2, 0, 0}, // S_MNTR_PAIN1 {SPR_MNTR, 4, 6, A_Pain, S_MNTR_WALK1, 0, 0}, // S_MNTR_PAIN2 {SPR_MNTR, 5, 6, NULL, S_MNTR_DIE2, 0, 0}, // S_MNTR_DIE1 {SPR_MNTR, 6, 5, NULL, S_MNTR_DIE3, 0, 0}, // S_MNTR_DIE2 {SPR_MNTR, 7, 6, A_Scream, S_MNTR_DIE4, 0, 0}, // S_MNTR_DIE3 {SPR_MNTR, 8, 5, NULL, S_MNTR_DIE5, 0, 0}, // S_MNTR_DIE4 {SPR_MNTR, 9, 6, NULL, S_MNTR_DIE6, 0, 0}, // S_MNTR_DIE5 {SPR_MNTR, 10, 5, NULL, S_MNTR_DIE7, 0, 0}, // S_MNTR_DIE6 {SPR_MNTR, 11, 6, NULL, S_MNTR_DIE8, 0, 0}, // S_MNTR_DIE7 {SPR_MNTR, 12, 5, A_NoBlocking, S_MNTR_DIE9, 0, 0}, // S_MNTR_DIE8 {SPR_MNTR, 13, 6, NULL, S_MNTR_DIE10, 0, 0}, // S_MNTR_DIE9 {SPR_MNTR, 14, 5, NULL, S_MNTR_DIE11, 0, 0}, // S_MNTR_DIE10 {SPR_MNTR, 15, 6, NULL, S_MNTR_DIE12, 0, 0}, // S_MNTR_DIE11 {SPR_MNTR, 16, 5, NULL, S_MNTR_DIE13, 0, 0}, // S_MNTR_DIE12 {SPR_MNTR, 17, 6, NULL, S_MNTR_DIE14, 0, 0}, // S_MNTR_DIE13 {SPR_MNTR, 18, 5, NULL, S_MNTR_DIE15, 0, 0}, // S_MNTR_DIE14 {SPR_MNTR, 19, -1, A_BossDeath, S_NULL, 0, 0}, // S_MNTR_DIE15 {SPR_FX12, 32768, 6, NULL, S_MNTRFX1_2, 0, 0}, // S_MNTRFX1_1 {SPR_FX12, 32769, 6, NULL, S_MNTRFX1_1, 0, 0}, // S_MNTRFX1_2 {SPR_FX12, 32770, 5, NULL, S_MNTRFXI1_2, 0, 0}, // S_MNTRFXI1_1 {SPR_FX12, 32771, 5, NULL, S_MNTRFXI1_3, 0, 0}, // S_MNTRFXI1_2 {SPR_FX12, 32772, 5, NULL, S_MNTRFXI1_4, 0, 0}, // S_MNTRFXI1_3 {SPR_FX12, 32773, 5, NULL, S_MNTRFXI1_5, 0, 0}, // S_MNTRFXI1_4 {SPR_FX12, 32774, 5, NULL, S_MNTRFXI1_6, 0, 0}, // S_MNTRFXI1_5 {SPR_FX12, 32775, 5, NULL, S_NULL, 0, 0}, // S_MNTRFXI1_6 {SPR_FX13, 0, 2, A_MntrFloorFire, S_MNTRFX2_1, 0, 0}, // S_MNTRFX2_1 {SPR_FX13, 32776, 4, A_Explode, S_MNTRFXI2_2, 0, 0}, // S_MNTRFXI2_1 {SPR_FX13, 32777, 4, NULL, S_MNTRFXI2_3, 0, 0}, // S_MNTRFXI2_2 {SPR_FX13, 32778, 4, NULL, S_MNTRFXI2_4, 0, 0}, // S_MNTRFXI2_3 {SPR_FX13, 32779, 4, NULL, S_MNTRFXI2_5, 0, 0}, // S_MNTRFXI2_4 {SPR_FX13, 32780, 4, NULL, S_NULL, 0, 0}, // S_MNTRFXI2_5 {SPR_FX13, 32771, 4, NULL, S_MNTRFX3_2, 0, 0}, // S_MNTRFX3_1 {SPR_FX13, 32770, 4, NULL, S_MNTRFX3_3, 0, 0}, // S_MNTRFX3_2 {SPR_FX13, 32769, 5, NULL, S_MNTRFX3_4, 0, 0}, // S_MNTRFX3_3 {SPR_FX13, 32770, 5, NULL, S_MNTRFX3_5, 0, 0}, // S_MNTRFX3_4 {SPR_FX13, 32771, 5, NULL, S_MNTRFX3_6, 0, 0}, // S_MNTRFX3_5 {SPR_FX13, 32772, 5, NULL, S_MNTRFX3_7, 0, 0}, // S_MNTRFX3_6 {SPR_FX13, 32773, 4, NULL, S_MNTRFX3_8, 0, 0}, // S_MNTRFX3_7 {SPR_FX13, 32774, 4, NULL, S_MNTRFX3_9, 0, 0}, // S_MNTRFX3_8 {SPR_FX13, 32775, 4, NULL, S_NULL, 0, 0}, // S_MNTRFX3_9 {SPR_AKYY, 32768, 3, NULL, S_AKYY2, 0, 0}, // S_AKYY1 {SPR_AKYY, 32769, 3, NULL, S_AKYY3, 0, 0}, // S_AKYY2 {SPR_AKYY, 32770, 3, NULL, S_AKYY4, 0, 0}, // S_AKYY3 {SPR_AKYY, 32771, 3, NULL, S_AKYY5, 0, 0}, // S_AKYY4 {SPR_AKYY, 32772, 3, NULL, S_AKYY6, 0, 0}, // S_AKYY5 {SPR_AKYY, 32773, 3, NULL, S_AKYY7, 0, 0}, // S_AKYY6 {SPR_AKYY, 32774, 3, NULL, S_AKYY8, 0, 0}, // S_AKYY7 {SPR_AKYY, 32775, 3, NULL, S_AKYY9, 0, 0}, // S_AKYY8 {SPR_AKYY, 32776, 3, NULL, S_AKYY10, 0, 0}, // S_AKYY9 {SPR_AKYY, 32777, 3, NULL, S_AKYY1, 0, 0}, // S_AKYY10 {SPR_BKYY, 32768, 3, NULL, S_BKYY2, 0, 0}, // S_BKYY1 {SPR_BKYY, 32769, 3, NULL, S_BKYY3, 0, 0}, // S_BKYY2 {SPR_BKYY, 32770, 3, NULL, S_BKYY4, 0, 0}, // S_BKYY3 {SPR_BKYY, 32771, 3, NULL, S_BKYY5, 0, 0}, // S_BKYY4 {SPR_BKYY, 32772, 3, NULL, S_BKYY6, 0, 0}, // S_BKYY5 {SPR_BKYY, 32773, 3, NULL, S_BKYY7, 0, 0}, // S_BKYY6 {SPR_BKYY, 32774, 3, NULL, S_BKYY8, 0, 0}, // S_BKYY7 {SPR_BKYY, 32775, 3, NULL, S_BKYY9, 0, 0}, // S_BKYY8 {SPR_BKYY, 32776, 3, NULL, S_BKYY10, 0, 0}, // S_BKYY9 {SPR_BKYY, 32777, 3, NULL, S_BKYY1, 0, 0}, // S_BKYY10 {SPR_CKYY, 32768, 3, NULL, S_CKYY2, 0, 0}, // S_CKYY1 {SPR_CKYY, 32769, 3, NULL, S_CKYY3, 0, 0}, // S_CKYY2 {SPR_CKYY, 32770, 3, NULL, S_CKYY4, 0, 0}, // S_CKYY3 {SPR_CKYY, 32771, 3, NULL, S_CKYY5, 0, 0}, // S_CKYY4 {SPR_CKYY, 32772, 3, NULL, S_CKYY6, 0, 0}, // S_CKYY5 {SPR_CKYY, 32773, 3, NULL, S_CKYY7, 0, 0}, // S_CKYY6 {SPR_CKYY, 32774, 3, NULL, S_CKYY8, 0, 0}, // S_CKYY7 {SPR_CKYY, 32775, 3, NULL, S_CKYY9, 0, 0}, // S_CKYY8 {SPR_CKYY, 32776, 3, NULL, S_CKYY1, 0, 0}, // S_CKYY9 {SPR_AMG1, 0, -1, NULL, S_NULL, 0, 0}, // S_AMG1 {SPR_AMG2, 0, 4, NULL, S_AMG2_2, 0, 0}, // S_AMG2_1 {SPR_AMG2, 1, 4, NULL, S_AMG2_3, 0, 0}, // S_AMG2_2 {SPR_AMG2, 2, 4, NULL, S_AMG2_1, 0, 0}, // S_AMG2_3 {SPR_AMM1, 0, -1, NULL, S_NULL, 0, 0}, // S_AMM1 {SPR_AMM2, 0, -1, NULL, S_NULL, 0, 0}, // S_AMM2 {SPR_AMC1, 0, -1, NULL, S_NULL, 0, 0}, // S_AMC1 {SPR_AMC2, 0, 5, NULL, S_AMC2_2, 0, 0}, // S_AMC2_1 {SPR_AMC2, 1, 5, NULL, S_AMC2_3, 0, 0}, // S_AMC2_2 {SPR_AMC2, 2, 5, NULL, S_AMC2_1, 0, 0}, // S_AMC2_3 {SPR_AMS1, 0, 5, NULL, S_AMS1_2, 0, 0}, // S_AMS1_1 {SPR_AMS1, 1, 5, NULL, S_AMS1_1, 0, 0}, // S_AMS1_2 {SPR_AMS2, 0, 5, NULL, S_AMS2_2, 0, 0}, // S_AMS2_1 {SPR_AMS2, 1, 5, NULL, S_AMS2_1, 0, 0}, // S_AMS2_2 {SPR_AMP1, 0, 4, NULL, S_AMP1_2, 0, 0}, // S_AMP1_1 {SPR_AMP1, 1, 4, NULL, S_AMP1_3, 0, 0}, // S_AMP1_2 {SPR_AMP1, 2, 4, NULL, S_AMP1_1, 0, 0}, // S_AMP1_3 {SPR_AMP2, 0, 4, NULL, S_AMP2_2, 0, 0}, // S_AMP2_1 {SPR_AMP2, 1, 4, NULL, S_AMP2_3, 0, 0}, // S_AMP2_2 {SPR_AMP2, 2, 4, NULL, S_AMP2_1, 0, 0}, // S_AMP2_3 {SPR_AMB1, 0, 4, NULL, S_AMB1_2, 0, 0}, // S_AMB1_1 {SPR_AMB1, 1, 4, NULL, S_AMB1_3, 0, 0}, // S_AMB1_2 {SPR_AMB1, 2, 4, NULL, S_AMB1_1, 0, 0}, // S_AMB1_3 {SPR_AMB2, 0, 4, NULL, S_AMB2_2, 0, 0}, // S_AMB2_1 {SPR_AMB2, 1, 4, NULL, S_AMB2_3, 0, 0}, // S_AMB2_2 {SPR_AMB2, 2, 4, NULL, S_AMB2_1, 0, 0}, // S_AMB2_3 {SPR_AMG1, 0, 100, A_ESound, S_SND_WIND, 0, 0}, // S_SND_WIND {SPR_AMG1, 0, 85, A_ESound, S_SND_WATERFALL, 0, 0} // S_SND_WATERFALL }; mobjinfo_t mobjinfo[NUMMOBJTYPES] = { { // MT_MISC0 81, // doomednum S_ITEM_PTN1_1, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 20 * FRACUNIT, // radius 16 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_SPECIAL, // flags MF2_FLOATBOB // flags2 }, { // MT_ITEMSHIELD1 85, // doomednum S_ITEM_SHLD1, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 20 * FRACUNIT, // radius 16 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_SPECIAL, // flags MF2_FLOATBOB // flags2 }, { // MT_ITEMSHIELD2 31, // doomednum S_ITEM_SHD2_1, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 20 * FRACUNIT, // radius 16 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_SPECIAL, // flags MF2_FLOATBOB // flags2 }, { // MT_MISC1 8, // doomednum S_ITEM_BAGH1, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 20 * FRACUNIT, // radius 16 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_SPECIAL | MF_COUNTITEM, // flags MF2_FLOATBOB // flags2 }, { // MT_MISC2 35, // doomednum S_ITEM_SPMP1, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 20 * FRACUNIT, // radius 16 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_SPECIAL | MF_COUNTITEM, // flags MF2_FLOATBOB // flags2 }, { // MT_ARTIINVISIBILITY 75, // doomednum S_ARTI_INVS1, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 20 * FRACUNIT, // radius 16 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_SPECIAL | MF_SHADOW | MF_COUNTITEM, // flags MF2_FLOATBOB // flags2 }, { // MT_MISC3 82, // doomednum S_ARTI_PTN2_1, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 20 * FRACUNIT, // radius 16 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_SPECIAL | MF_COUNTITEM, // flags MF2_FLOATBOB // flags2 }, { // MT_ARTIFLY 83, // doomednum S_ARTI_SOAR1, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 20 * FRACUNIT, // radius 16 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_SPECIAL | MF_COUNTITEM, // flags MF2_FLOATBOB // flags2 }, { // MT_ARTIINVULNERABILITY 84, // doomednum S_ARTI_INVU1, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 20 * FRACUNIT, // radius 16 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_SPECIAL | MF_COUNTITEM, // flags MF2_FLOATBOB // flags2 }, { // MT_ARTITOMEOFPOWER 86, // doomednum S_ARTI_PWBK1, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 20 * FRACUNIT, // radius 16 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_SPECIAL | MF_COUNTITEM, // flags MF2_FLOATBOB // flags2 }, { // MT_ARTIEGG 30, // doomednum S_ARTI_EGGC1, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 20 * FRACUNIT, // radius 16 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_SPECIAL | MF_COUNTITEM, // flags MF2_FLOATBOB // flags2 }, { // MT_EGGFX -1, // doomednum S_EGGFX1, // spawnstate 1000, // spawnhealth S_NULL, // seestate 0, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_EGGFXI1_1, // deathstate S_NULL, // xdeathstate 0, // deathsound 18 * FRACUNIT, // speed 8 * FRACUNIT, // radius 8 * FRACUNIT, // height 100, // mass 1, // damage sfx_None, // activesound MF_NOBLOCKMAP | MF_MISSILE | MF_DROPOFF | MF_NOGRAVITY, // flags MF2_NOTELEPORT // flags2 }, { // MT_ARTISUPERHEAL 32, // doomednum S_ARTI_SPHL1, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 20 * FRACUNIT, // radius 16 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_SPECIAL | MF_COUNTITEM, // flags MF2_FLOATBOB // flags2 }, { // MT_MISC4 33, // doomednum S_ARTI_TRCH1, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 20 * FRACUNIT, // radius 16 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_SPECIAL | MF_COUNTITEM, // flags MF2_FLOATBOB // flags2 }, { // MT_MISC5 34, // doomednum S_ARTI_FBMB1, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 20 * FRACUNIT, // radius 16 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_SPECIAL | MF_COUNTITEM, // flags MF2_FLOATBOB // flags2 }, { // MT_FIREBOMB -1, // doomednum S_FIREBOMB1, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_phohit, // deathsound 0, // speed 20 * FRACUNIT, // radius 16 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_NOGRAVITY | MF_SHADOW, // flags 0 // flags2 }, { // MT_ARTITELEPORT 36, // doomednum S_ARTI_ATLP1, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 20 * FRACUNIT, // radius 16 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_SPECIAL | MF_COUNTITEM, // flags MF2_FLOATBOB // flags2 }, { // MT_POD 2035, // doomednum S_POD_WAIT1, // spawnstate 45, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_POD_PAIN1, // painstate 255, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_POD_DIE1, // deathstate S_NULL, // xdeathstate sfx_podexp, // deathsound 0, // speed 16 * FRACUNIT, // radius 54 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_SOLID | MF_NOBLOOD | MF_SHOOTABLE | MF_DROPOFF, // flags MF2_WINDTHRUST | MF2_PUSHABLE | MF2_SLIDE | MF2_PASSMOBJ | MF2_TELESTOMP // flags2 }, { // MT_PODGOO -1, // doomednum S_PODGOO1, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_PODGOOX, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 2 * FRACUNIT, // radius 4 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_NOBLOCKMAP | MF_MISSILE | MF_DROPOFF, // flags MF2_NOTELEPORT | MF2_LOGRAV | MF2_CANNOTPUSH // flags2 }, { // MT_PODGENERATOR 43, // doomednum S_PODGENERATOR, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 20 * FRACUNIT, // radius 16 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_NOBLOCKMAP | MF_NOSECTOR, // flags 0 // flags2 }, { // MT_SPLASH -1, // doomednum S_SPLASH1, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_SPLASHX, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 2 * FRACUNIT, // radius 4 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_NOBLOCKMAP | MF_MISSILE | MF_DROPOFF, // flags MF2_NOTELEPORT | MF2_LOGRAV | MF2_CANNOTPUSH // flags2 }, { // MT_SPLASHBASE -1, // doomednum S_SPLASHBASE1, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 20 * FRACUNIT, // radius 16 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_NOBLOCKMAP, // flags 0 // flags2 }, { // MT_LAVASPLASH -1, // doomednum S_LAVASPLASH1, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 20 * FRACUNIT, // radius 16 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_NOBLOCKMAP, // flags 0 // flags2 }, { // MT_LAVASMOKE -1, // doomednum S_LAVASMOKE1, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 20 * FRACUNIT, // radius 16 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_NOBLOCKMAP | MF_NOGRAVITY | MF_SHADOW, // flags 0 // flags2 }, { // MT_SLUDGECHUNK -1, // doomednum S_SLUDGECHUNK1, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_SLUDGECHUNKX, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 2 * FRACUNIT, // radius 4 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_NOBLOCKMAP | MF_MISSILE | MF_DROPOFF, // flags MF2_NOTELEPORT | MF2_LOGRAV | MF2_CANNOTPUSH // flags2 }, { // MT_SLUDGESPLASH -1, // doomednum S_SLUDGESPLASH1, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 20 * FRACUNIT, // radius 16 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_NOBLOCKMAP, // flags 0 // flags2 }, { // MT_SKULLHANG70 17, // doomednum S_SKULLHANG70_1, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 20 * FRACUNIT, // radius 70 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_SPAWNCEILING | MF_NOGRAVITY, // flags 0 // flags2 }, { // MT_SKULLHANG60 24, // doomednum S_SKULLHANG60_1, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 20 * FRACUNIT, // radius 60 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_SPAWNCEILING | MF_NOGRAVITY, // flags 0 // flags2 }, { // MT_SKULLHANG45 25, // doomednum S_SKULLHANG45_1, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 20 * FRACUNIT, // radius 45 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_SPAWNCEILING | MF_NOGRAVITY, // flags 0 // flags2 }, { // MT_SKULLHANG35 26, // doomednum S_SKULLHANG35_1, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 20 * FRACUNIT, // radius 35 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_SPAWNCEILING | MF_NOGRAVITY, // flags 0 // flags2 }, { // MT_CHANDELIER 28, // doomednum S_CHANDELIER1, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 20 * FRACUNIT, // radius 60 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_SPAWNCEILING | MF_NOGRAVITY, // flags 0 // flags2 }, { // MT_SERPTORCH 27, // doomednum S_SERPTORCH1, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 12 * FRACUNIT, // radius 54 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_SOLID, // flags 0 // flags2 }, { // MT_SMALLPILLAR 29, // doomednum S_SMALLPILLAR, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 16 * FRACUNIT, // radius 34 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_SOLID, // flags 0 // flags2 }, { // MT_STALAGMITESMALL 37, // doomednum S_STALAGMITESMALL, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 8 * FRACUNIT, // radius 32 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_SOLID, // flags 0 // flags2 }, { // MT_STALAGMITELARGE 38, // doomednum S_STALAGMITELARGE, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 12 * FRACUNIT, // radius 64 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_SOLID, // flags 0 // flags2 }, { // MT_STALACTITESMALL 39, // doomednum S_STALACTITESMALL, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 8 * FRACUNIT, // radius 36 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_SOLID | MF_SPAWNCEILING | MF_NOGRAVITY, // flags 0 // flags2 }, { // MT_STALACTITELARGE 40, // doomednum S_STALACTITELARGE, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 12 * FRACUNIT, // radius 68 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_SOLID | MF_SPAWNCEILING | MF_NOGRAVITY, // flags 0 // flags2 }, { // MT_MISC6 76, // doomednum S_FIREBRAZIER1, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 16 * FRACUNIT, // radius 44 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_SOLID, // flags 0 // flags2 }, { // MT_BARREL 44, // doomednum S_BARREL, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 12 * FRACUNIT, // radius 32 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_SOLID, // flags 0 // flags2 }, { // MT_MISC7 47, // doomednum S_BRPILLAR, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 14 * FRACUNIT, // radius 128 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_SOLID, // flags 0 // flags2 }, { // MT_MISC8 48, // doomednum S_MOSS1, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 20 * FRACUNIT, // radius 23 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_SPAWNCEILING | MF_NOGRAVITY, // flags 0 // flags2 }, { // MT_MISC9 49, // doomednum S_MOSS2, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 20 * FRACUNIT, // radius 27 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_SPAWNCEILING | MF_NOGRAVITY, // flags 0 // flags2 }, { // MT_MISC10 50, // doomednum S_WALLTORCH1, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 20 * FRACUNIT, // radius 16 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_NOGRAVITY, // flags 0 // flags2 }, { // MT_MISC11 51, // doomednum S_HANGINGCORPSE, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 8 * FRACUNIT, // radius 104 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_SOLID | MF_SPAWNCEILING | MF_NOGRAVITY, // flags 0 // flags2 }, { // MT_KEYGIZMOBLUE 94, // doomednum S_KEYGIZMO1, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 16 * FRACUNIT, // radius 50 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_SOLID, // flags 0 // flags2 }, { // MT_KEYGIZMOGREEN 95, // doomednum S_KEYGIZMO1, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 16 * FRACUNIT, // radius 50 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_SOLID, // flags 0 // flags2 }, { // MT_KEYGIZMOYELLOW 96, // doomednum S_KEYGIZMO1, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 16 * FRACUNIT, // radius 50 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_SOLID, // flags 0 // flags2 }, { // MT_KEYGIZMOFLOAT -1, // doomednum S_KGZ_START, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 16 * FRACUNIT, // radius 16 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_SOLID | MF_NOGRAVITY, // flags 0 // flags2 }, { // MT_MISC12 87, // doomednum S_VOLCANO1, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 12 * FRACUNIT, // radius 20 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_SOLID, // flags 0 // flags2 }, { // MT_VOLCANOBLAST -1, // doomednum S_VOLCANOBALL1, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_VOLCANOBALLX1, // deathstate S_NULL, // xdeathstate sfx_volhit, // deathsound 2 * FRACUNIT, // speed 8 * FRACUNIT, // radius 8 * FRACUNIT, // height 100, // mass 2, // damage sfx_None, // activesound MF_NOBLOCKMAP | MF_MISSILE | MF_DROPOFF, // flags MF2_LOGRAV | MF2_NOTELEPORT | MF2_FIREDAMAGE // flags2 }, { // MT_VOLCANOTBLAST -1, // doomednum S_VOLCANOTBALL1, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_VOLCANOTBALLX1, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 2 * FRACUNIT, // speed 8 * FRACUNIT, // radius 6 * FRACUNIT, // height 100, // mass 1, // damage sfx_None, // activesound MF_NOBLOCKMAP | MF_MISSILE | MF_DROPOFF, // flags MF2_LOGRAV | MF2_NOTELEPORT | MF2_FIREDAMAGE // flags2 }, { // MT_TELEGLITGEN 74, // doomednum S_TELEGLITGEN1, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 20 * FRACUNIT, // radius 16 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_NOBLOCKMAP | MF_NOGRAVITY | MF_NOSECTOR, // flags 0 // flags2 }, { // MT_TELEGLITGEN2 52, // doomednum S_TELEGLITGEN2, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 20 * FRACUNIT, // radius 16 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_NOBLOCKMAP | MF_NOGRAVITY | MF_NOSECTOR, // flags 0 // flags2 }, { // MT_TELEGLITTER -1, // doomednum S_TELEGLITTER1_1, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 20 * FRACUNIT, // radius 16 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_NOBLOCKMAP | MF_NOGRAVITY | MF_MISSILE, // flags 0 // flags2 }, { // MT_TELEGLITTER2 -1, // doomednum S_TELEGLITTER2_1, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 20 * FRACUNIT, // radius 16 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_NOBLOCKMAP | MF_NOGRAVITY | MF_MISSILE, // flags 0 // flags2 }, { // MT_TFOG -1, // doomednum S_TFOG1, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 20 * FRACUNIT, // radius 16 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_NOBLOCKMAP | MF_NOGRAVITY, // flags 0 // flags2 }, { // MT_TELEPORTMAN 14, // doomednum S_NULL, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 20 * FRACUNIT, // radius 16 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_NOBLOCKMAP | MF_NOSECTOR, // flags 0 // flags2 }, { // MT_STAFFPUFF -1, // doomednum S_STAFFPUFF1, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_stfhit, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 20 * FRACUNIT, // radius 16 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_NOBLOCKMAP | MF_NOGRAVITY, // flags 0 // flags2 }, { // MT_STAFFPUFF2 -1, // doomednum S_STAFFPUFF2_1, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_stfpow, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 20 * FRACUNIT, // radius 16 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_NOBLOCKMAP | MF_NOGRAVITY, // flags 0 // flags2 }, { // MT_BEAKPUFF -1, // doomednum S_STAFFPUFF1, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_chicatk, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 20 * FRACUNIT, // radius 16 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_NOBLOCKMAP | MF_NOGRAVITY, // flags 0 // flags2 }, { // MT_MISC13 2005, // doomednum S_WGNT, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 20 * FRACUNIT, // radius 16 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_SPECIAL, // flags 0 // flags2 }, { // MT_GAUNTLETPUFF1 -1, // doomednum S_GAUNTLETPUFF1_1, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 20 * FRACUNIT, // radius 16 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_NOBLOCKMAP | MF_NOGRAVITY | MF_SHADOW, // flags 0 // flags2 }, { // MT_GAUNTLETPUFF2 -1, // doomednum S_GAUNTLETPUFF2_1, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 20 * FRACUNIT, // radius 16 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_NOBLOCKMAP | MF_NOGRAVITY | MF_SHADOW, // flags 0 // flags2 }, { // MT_MISC14 53, // doomednum S_BLSR, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 20 * FRACUNIT, // radius 16 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_SPECIAL, // flags 0 // flags2 }, { // MT_BLASTERFX1 -1, // doomednum S_BLASTERFX1_1, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_BLASTERFXI1_1, // deathstate S_NULL, // xdeathstate sfx_blshit, // deathsound 184 * FRACUNIT, // speed 12 * FRACUNIT, // radius 8 * FRACUNIT, // height 100, // mass 2, // damage sfx_None, // activesound MF_NOBLOCKMAP | MF_MISSILE | MF_DROPOFF | MF_NOGRAVITY, // flags MF2_NOTELEPORT // flags2 }, { // MT_BLASTERSMOKE -1, // doomednum S_BLASTERSMOKE1, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 20 * FRACUNIT, // radius 16 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_NOBLOCKMAP | MF_NOGRAVITY | MF_SHADOW, // flags MF2_NOTELEPORT | MF2_CANNOTPUSH // flags2 }, { // MT_RIPPER -1, // doomednum S_RIPPER1, // spawnstate 1000, // spawnhealth S_NULL, // seestate 0, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_RIPPERX1, // deathstate S_NULL, // xdeathstate sfx_hrnhit, // deathsound 14 * FRACUNIT, // speed 8 * FRACUNIT, // radius 6 * FRACUNIT, // height 100, // mass 1, // damage sfx_None, // activesound MF_NOBLOCKMAP | MF_MISSILE | MF_DROPOFF | MF_NOGRAVITY, // flags MF2_NOTELEPORT | MF2_RIP // flags2 }, { // MT_BLASTERPUFF1 -1, // doomednum S_BLASTERPUFF1_1, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 20 * FRACUNIT, // radius 16 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_NOBLOCKMAP | MF_NOGRAVITY, // flags 0 // flags2 }, { // MT_BLASTERPUFF2 -1, // doomednum S_BLASTERPUFF2_1, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 20 * FRACUNIT, // radius 16 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_NOBLOCKMAP | MF_NOGRAVITY, // flags 0 // flags2 }, { // MT_WMACE 2002, // doomednum S_WMCE, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 20 * FRACUNIT, // radius 16 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_SPECIAL, // flags 0 // flags2 }, { // MT_MACEFX1 -1, // doomednum S_MACEFX1_1, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_lobsht, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_MACEFXI1_1, // deathstate S_NULL, // xdeathstate 0, // deathsound 20 * FRACUNIT, // speed 8 * FRACUNIT, // radius 6 * FRACUNIT, // height 100, // mass 2, // damage sfx_None, // activesound MF_NOBLOCKMAP | MF_MISSILE | MF_DROPOFF | MF_NOGRAVITY, // flags MF2_FLOORBOUNCE | MF2_THRUGHOST | MF2_NOTELEPORT // flags2 }, { // MT_MACEFX2 -1, // doomednum S_MACEFX2_1, // spawnstate 1000, // spawnhealth S_NULL, // seestate 0, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_MACEFXI2_1, // deathstate S_NULL, // xdeathstate 0, // deathsound 10 * FRACUNIT, // speed 8 * FRACUNIT, // radius 6 * FRACUNIT, // height 100, // mass 6, // damage sfx_None, // activesound MF_NOBLOCKMAP | MF_MISSILE | MF_DROPOFF, // flags MF2_LOGRAV | MF2_FLOORBOUNCE | MF2_THRUGHOST | MF2_NOTELEPORT // flags2 }, { // MT_MACEFX3 -1, // doomednum S_MACEFX3_1, // spawnstate 1000, // spawnhealth S_NULL, // seestate 0, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_MACEFXI1_1, // deathstate S_NULL, // xdeathstate 0, // deathsound 7 * FRACUNIT, // speed 8 * FRACUNIT, // radius 6 * FRACUNIT, // height 100, // mass 4, // damage sfx_None, // activesound MF_NOBLOCKMAP | MF_MISSILE | MF_DROPOFF, // flags MF2_LOGRAV | MF2_FLOORBOUNCE | MF2_THRUGHOST | MF2_NOTELEPORT // flags2 }, { // MT_MACEFX4 -1, // doomednum S_MACEFX4_1, // spawnstate 1000, // spawnhealth S_NULL, // seestate 0, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_MACEFXI4_1, // deathstate S_NULL, // xdeathstate 0, // deathsound 7 * FRACUNIT, // speed 8 * FRACUNIT, // radius 6 * FRACUNIT, // height 100, // mass 18, // damage sfx_None, // activesound MF_NOBLOCKMAP | MF_MISSILE | MF_DROPOFF, // flags MF2_LOGRAV | MF2_FLOORBOUNCE | MF2_THRUGHOST | MF2_TELESTOMP // flags2 }, { // MT_WSKULLROD 2004, // doomednum S_WSKL, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 20 * FRACUNIT, // radius 16 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_SPECIAL, // flags 0 // flags2 }, { // MT_HORNRODFX1 -1, // doomednum S_HRODFX1_1, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_hrnsht, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_HRODFXI1_1, // deathstate S_NULL, // xdeathstate sfx_hrnhit, // deathsound 22 * FRACUNIT, // speed 12 * FRACUNIT, // radius 8 * FRACUNIT, // height 100, // mass 3, // damage sfx_None, // activesound MF_NOBLOCKMAP | MF_MISSILE | MF_DROPOFF | MF_NOGRAVITY, // flags MF2_WINDTHRUST | MF2_NOTELEPORT // flags2 }, { // MT_HORNRODFX2 -1, // doomednum S_HRODFX2_1, // spawnstate 4 * 35, // spawnhealth S_NULL, // seestate sfx_hrnsht, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_HRODFXI2_1, // deathstate S_NULL, // xdeathstate sfx_ramphit, // deathsound 22 * FRACUNIT, // speed 12 * FRACUNIT, // radius 8 * FRACUNIT, // height 100, // mass 10, // damage sfx_None, // activesound MF_NOBLOCKMAP | MF_MISSILE | MF_DROPOFF | MF_NOGRAVITY, // flags MF2_NOTELEPORT // flags2 }, { // MT_RAINPLR1 -1, // doomednum S_RAINPLR1_1, // spawnstate 1000, // spawnhealth S_NULL, // seestate 0, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_RAINPLR1X_1, // deathstate S_NULL, // xdeathstate 0, // deathsound 12 * FRACUNIT, // speed 5 * FRACUNIT, // radius 12 * FRACUNIT, // height 100, // mass 5, // damage sfx_None, // activesound MF_NOBLOCKMAP | MF_MISSILE | MF_DROPOFF | MF_NOGRAVITY, // flags MF2_NOTELEPORT // flags2 }, { // MT_RAINPLR2 -1, // doomednum S_RAINPLR2_1, // spawnstate 1000, // spawnhealth S_NULL, // seestate 0, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_RAINPLR2X_1, // deathstate S_NULL, // xdeathstate 0, // deathsound 12 * FRACUNIT, // speed 5 * FRACUNIT, // radius 12 * FRACUNIT, // height 100, // mass 5, // damage sfx_None, // activesound MF_NOBLOCKMAP | MF_MISSILE | MF_DROPOFF | MF_NOGRAVITY, // flags MF2_NOTELEPORT // flags2 }, { // MT_RAINPLR3 -1, // doomednum S_RAINPLR3_1, // spawnstate 1000, // spawnhealth S_NULL, // seestate 0, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_RAINPLR3X_1, // deathstate S_NULL, // xdeathstate 0, // deathsound 12 * FRACUNIT, // speed 5 * FRACUNIT, // radius 12 * FRACUNIT, // height 100, // mass 5, // damage sfx_None, // activesound MF_NOBLOCKMAP | MF_MISSILE | MF_DROPOFF | MF_NOGRAVITY, // flags MF2_NOTELEPORT // flags2 }, { // MT_RAINPLR4 -1, // doomednum S_RAINPLR4_1, // spawnstate 1000, // spawnhealth S_NULL, // seestate 0, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_RAINPLR4X_1, // deathstate S_NULL, // xdeathstate 0, // deathsound 12 * FRACUNIT, // speed 5 * FRACUNIT, // radius 12 * FRACUNIT, // height 100, // mass 5, // damage sfx_None, // activesound MF_NOBLOCKMAP | MF_MISSILE | MF_DROPOFF | MF_NOGRAVITY, // flags MF2_NOTELEPORT // flags2 }, { // MT_GOLDWANDFX1 -1, // doomednum S_GWANDFX1_1, // spawnstate 1000, // spawnhealth S_NULL, // seestate 0, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_GWANDFXI1_1, // deathstate S_NULL, // xdeathstate sfx_gldhit, // deathsound 22 * FRACUNIT, // speed 10 * FRACUNIT, // radius 6 * FRACUNIT, // height 100, // mass 2, // damage sfx_None, // activesound MF_NOBLOCKMAP | MF_MISSILE | MF_DROPOFF | MF_NOGRAVITY, // flags MF2_NOTELEPORT // flags2 }, { // MT_GOLDWANDFX2 -1, // doomednum S_GWANDFX2_1, // spawnstate 1000, // spawnhealth S_NULL, // seestate 0, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_GWANDFXI1_1, // deathstate S_NULL, // xdeathstate 0, // deathsound 18 * FRACUNIT, // speed 10 * FRACUNIT, // radius 6 * FRACUNIT, // height 100, // mass 1, // damage sfx_None, // activesound MF_NOBLOCKMAP | MF_MISSILE | MF_DROPOFF | MF_NOGRAVITY, // flags MF2_NOTELEPORT // flags2 }, { // MT_GOLDWANDPUFF1 -1, // doomednum S_GWANDPUFF1_1, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 20 * FRACUNIT, // radius 16 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_NOBLOCKMAP | MF_NOGRAVITY, // flags 0 // flags2 }, { // MT_GOLDWANDPUFF2 -1, // doomednum S_GWANDFXI1_1, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 20 * FRACUNIT, // radius 16 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_NOBLOCKMAP | MF_NOGRAVITY, // flags 0 // flags2 }, { // MT_WPHOENIXROD 2003, // doomednum S_WPHX, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 20 * FRACUNIT, // radius 16 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_SPECIAL, // flags 0 // flags2 }, { // MT_PHOENIXFX1 -1, // doomednum S_PHOENIXFX1_1, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_phosht, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_PHOENIXFXI1_1, // deathstate S_NULL, // xdeathstate sfx_phohit, // deathsound 20 * FRACUNIT, // speed 11 * FRACUNIT, // radius 8 * FRACUNIT, // height 100, // mass 20, // damage sfx_None, // activesound MF_NOBLOCKMAP | MF_MISSILE | MF_DROPOFF | MF_NOGRAVITY, // flags MF2_THRUGHOST | MF2_NOTELEPORT // flags2 }, // The following thing is present in the mobjinfo table from Heretic 1.0, // but not in Heretic 1.3 (ie. it was removed). It has been re-inserted // here to support HHE patches. { // MT_PHOENIXFX_REMOVED -1, // doomednum S_PHOENIXFXIX_1, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_PHOENIXFXIX_3, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 2 * FRACUNIT, // radius 4 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_NOBLOCKMAP | MF_MISSILE | MF_DROPOFF | MF_NOGRAVITY, // flags MF2_NOTELEPORT // flags2 }, { // MT_PHOENIXPUFF -1, // doomednum S_PHOENIXPUFF1, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 20 * FRACUNIT, // radius 16 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_NOBLOCKMAP | MF_NOGRAVITY | MF_SHADOW, // flags MF2_NOTELEPORT | MF2_CANNOTPUSH // flags2 }, { // MT_PHOENIXFX2 -1, // doomednum S_PHOENIXFX2_1, // spawnstate 1000, // spawnhealth S_NULL, // seestate 0, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_PHOENIXFXI2_1, // deathstate S_NULL, // xdeathstate 0, // deathsound 10 * FRACUNIT, // speed 6 * FRACUNIT, // radius 8 * FRACUNIT, // height 100, // mass 2, // damage sfx_None, // activesound MF_NOBLOCKMAP | MF_MISSILE | MF_DROPOFF | MF_NOGRAVITY, // flags MF2_NOTELEPORT | MF2_FIREDAMAGE // flags2 }, { // MT_MISC15 2001, // doomednum S_WBOW, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 20 * FRACUNIT, // radius 16 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_SPECIAL, // flags 0 // flags2 }, { // MT_CRBOWFX1 -1, // doomednum S_CRBOWFX1, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_bowsht, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_CRBOWFXI1_1, // deathstate S_NULL, // xdeathstate sfx_hrnhit, // deathsound 30 * FRACUNIT, // speed 11 * FRACUNIT, // radius 8 * FRACUNIT, // height 100, // mass 10, // damage sfx_None, // activesound MF_NOBLOCKMAP | MF_MISSILE | MF_DROPOFF | MF_NOGRAVITY, // flags MF2_NOTELEPORT // flags2 }, { // MT_CRBOWFX2 -1, // doomednum S_CRBOWFX2, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_bowsht, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_CRBOWFXI1_1, // deathstate S_NULL, // xdeathstate sfx_hrnhit, // deathsound 32 * FRACUNIT, // speed 11 * FRACUNIT, // radius 8 * FRACUNIT, // height 100, // mass 6, // damage sfx_None, // activesound MF_NOBLOCKMAP | MF_MISSILE | MF_DROPOFF | MF_NOGRAVITY, // flags MF2_NOTELEPORT // flags2 }, { // MT_CRBOWFX3 -1, // doomednum S_CRBOWFX3, // spawnstate 1000, // spawnhealth S_NULL, // seestate 0, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_CRBOWFXI3_1, // deathstate S_NULL, // xdeathstate sfx_hrnhit, // deathsound 20 * FRACUNIT, // speed 11 * FRACUNIT, // radius 8 * FRACUNIT, // height 100, // mass 2, // damage sfx_None, // activesound MF_NOBLOCKMAP | MF_MISSILE | MF_DROPOFF | MF_NOGRAVITY, // flags MF2_WINDTHRUST | MF2_THRUGHOST | MF2_NOTELEPORT // flags2 }, { // MT_CRBOWFX4 -1, // doomednum S_CRBOWFX4_1, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 20 * FRACUNIT, // radius 16 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_NOBLOCKMAP, // flags MF2_LOGRAV // flags2 }, { // MT_BLOOD -1, // doomednum S_BLOOD1, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 20 * FRACUNIT, // radius 16 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_NOBLOCKMAP, // flags 0 // flags2 }, { // MT_BLOODSPLATTER -1, // doomednum S_BLOODSPLATTER1, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_BLOODSPLATTERX, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 2 * FRACUNIT, // radius 4 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_NOBLOCKMAP | MF_MISSILE | MF_DROPOFF, // flags MF2_NOTELEPORT | MF2_CANNOTPUSH // flags2 }, { // MT_PLAYER -1, // doomednum S_PLAY, // spawnstate 100, // spawnhealth S_PLAY_RUN1, // seestate sfx_None, // seesound 0, // reactiontime sfx_None, // attacksound S_PLAY_PAIN, // painstate 255, // painchance sfx_plrpai, // painsound S_NULL, // meleestate S_PLAY_ATK1, // missilestate S_NULL, // crashstate S_PLAY_DIE1, // deathstate S_PLAY_XDIE1, // xdeathstate sfx_plrdth, // deathsound 0, // speed 16 * FRACUNIT, // radius 56 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_SOLID | MF_SHOOTABLE | MF_DROPOFF | MF_PICKUP | MF_NOTDMATCH, // flags MF2_WINDTHRUST | MF2_FOOTCLIP | MF2_SLIDE | MF2_PASSMOBJ | MF2_TELESTOMP // flags2 }, { // MT_BLOODYSKULL -1, // doomednum S_BLOODYSKULL1, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 4 * FRACUNIT, // radius 4 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_NOBLOCKMAP | MF_DROPOFF, // flags MF2_LOGRAV | MF2_CANNOTPUSH // flags2 }, { // MT_CHICPLAYER -1, // doomednum S_CHICPLAY, // spawnstate 100, // spawnhealth S_CHICPLAY_RUN1, // seestate sfx_None, // seesound 0, // reactiontime sfx_None, // attacksound S_CHICPLAY_PAIN, // painstate 255, // painchance sfx_chicpai, // painsound S_NULL, // meleestate S_CHICPLAY_ATK1, // missilestate S_NULL, // crashstate S_CHICKEN_DIE1, // deathstate S_NULL, // xdeathstate sfx_chicdth, // deathsound 0, // speed 16 * FRACUNIT, // radius 24 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_SOLID | MF_SHOOTABLE | MF_DROPOFF | MF_NOTDMATCH, // flags MF2_WINDTHRUST | MF2_SLIDE | MF2_PASSMOBJ | MF2_FOOTCLIP | MF2_LOGRAV | MF2_TELESTOMP // flags2 }, { // MT_CHICKEN -1, // doomednum S_CHICKEN_LOOK1, // spawnstate 10, // spawnhealth S_CHICKEN_WALK1, // seestate sfx_chicpai, // seesound 8, // reactiontime sfx_chicatk, // attacksound S_CHICKEN_PAIN1, // painstate 200, // painchance sfx_chicpai, // painsound S_CHICKEN_ATK1, // meleestate 0, // missilestate S_NULL, // crashstate S_CHICKEN_DIE1, // deathstate S_NULL, // xdeathstate sfx_chicdth, // deathsound 4, // speed 9 * FRACUNIT, // radius 22 * FRACUNIT, // height 40, // mass 0, // damage sfx_chicact, // activesound MF_SOLID | MF_SHOOTABLE | MF_COUNTKILL | MF_DROPOFF, // flags MF2_WINDTHRUST | MF2_FOOTCLIP | MF2_PASSMOBJ // flags2 }, { // MT_FEATHER -1, // doomednum S_FEATHER1, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_FEATHERX, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 2 * FRACUNIT, // radius 4 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_NOBLOCKMAP | MF_MISSILE | MF_DROPOFF, // flags MF2_NOTELEPORT | MF2_LOGRAV | MF2_CANNOTPUSH | MF2_WINDTHRUST // flags2 }, { // MT_MUMMY 68, // doomednum S_MUMMY_LOOK1, // spawnstate 80, // spawnhealth S_MUMMY_WALK1, // seestate sfx_mumsit, // seesound 8, // reactiontime sfx_mumat1, // attacksound S_MUMMY_PAIN1, // painstate 128, // painchance sfx_mumpai, // painsound S_MUMMY_ATK1, // meleestate 0, // missilestate S_NULL, // crashstate S_MUMMY_DIE1, // deathstate S_NULL, // xdeathstate sfx_mumdth, // deathsound 12, // speed 22 * FRACUNIT, // radius 62 * FRACUNIT, // height 75, // mass 0, // damage sfx_mumact, // activesound MF_SOLID | MF_SHOOTABLE | MF_COUNTKILL, // flags MF2_FOOTCLIP | MF2_PASSMOBJ // flags2 }, { // MT_MUMMYLEADER 45, // doomednum S_MUMMY_LOOK1, // spawnstate 100, // spawnhealth S_MUMMY_WALK1, // seestate sfx_mumsit, // seesound 8, // reactiontime sfx_mumat1, // attacksound S_MUMMY_PAIN1, // painstate 64, // painchance sfx_mumpai, // painsound S_MUMMY_ATK1, // meleestate S_MUMMYL_ATK1, // missilestate S_NULL, // crashstate S_MUMMY_DIE1, // deathstate S_NULL, // xdeathstate sfx_mumdth, // deathsound 12, // speed 22 * FRACUNIT, // radius 62 * FRACUNIT, // height 75, // mass 0, // damage sfx_mumact, // activesound MF_SOLID | MF_SHOOTABLE | MF_COUNTKILL, // flags MF2_FOOTCLIP | MF2_PASSMOBJ // flags2 }, { // MT_MUMMYGHOST 69, // doomednum S_MUMMY_LOOK1, // spawnstate 80, // spawnhealth S_MUMMY_WALK1, // seestate sfx_mumsit, // seesound 8, // reactiontime sfx_mumat1, // attacksound S_MUMMY_PAIN1, // painstate 128, // painchance sfx_mumpai, // painsound S_MUMMY_ATK1, // meleestate 0, // missilestate S_NULL, // crashstate S_MUMMY_DIE1, // deathstate S_NULL, // xdeathstate sfx_mumdth, // deathsound 12, // speed 22 * FRACUNIT, // radius 62 * FRACUNIT, // height 75, // mass 0, // damage sfx_mumact, // activesound MF_SOLID | MF_SHOOTABLE | MF_COUNTKILL | MF_SHADOW, // flags MF2_FOOTCLIP | MF2_PASSMOBJ // flags2 }, { // MT_MUMMYLEADERGHOST 46, // doomednum S_MUMMY_LOOK1, // spawnstate 100, // spawnhealth S_MUMMY_WALK1, // seestate sfx_mumsit, // seesound 8, // reactiontime sfx_mumat1, // attacksound S_MUMMY_PAIN1, // painstate 64, // painchance sfx_mumpai, // painsound S_MUMMY_ATK1, // meleestate S_MUMMYL_ATK1, // missilestate S_NULL, // crashstate S_MUMMY_DIE1, // deathstate S_NULL, // xdeathstate sfx_mumdth, // deathsound 12, // speed 22 * FRACUNIT, // radius 62 * FRACUNIT, // height 75, // mass 0, // damage sfx_mumact, // activesound MF_SOLID | MF_SHOOTABLE | MF_COUNTKILL | MF_SHADOW, // flags MF2_FOOTCLIP | MF2_PASSMOBJ // flags2 }, { // MT_MUMMYSOUL -1, // doomednum S_MUMMY_SOUL1, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 20 * FRACUNIT, // radius 16 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_NOBLOCKMAP | MF_NOGRAVITY, // flags 0 // flags2 }, { // MT_MUMMYFX1 -1, // doomednum S_MUMMYFX1_1, // spawnstate 1000, // spawnhealth S_NULL, // seestate 0, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_MUMMYFXI1_1, // deathstate S_NULL, // xdeathstate 0, // deathsound 9 * FRACUNIT, // speed 8 * FRACUNIT, // radius 14 * FRACUNIT, // height 100, // mass 4, // damage sfx_None, // activesound MF_NOBLOCKMAP | MF_MISSILE | MF_DROPOFF | MF_NOGRAVITY, // flags MF2_NOTELEPORT // flags2 }, { // MT_BEAST 70, // doomednum S_BEAST_LOOK1, // spawnstate 220, // spawnhealth S_BEAST_WALK1, // seestate sfx_bstsit, // seesound 8, // reactiontime sfx_bstatk, // attacksound S_BEAST_PAIN1, // painstate 100, // painchance sfx_bstpai, // painsound 0, // meleestate S_BEAST_ATK1, // missilestate S_NULL, // crashstate S_BEAST_DIE1, // deathstate S_BEAST_XDIE1, // xdeathstate sfx_bstdth, // deathsound 14, // speed 32 * FRACUNIT, // radius 74 * FRACUNIT, // height 200, // mass 0, // damage sfx_bstact, // activesound MF_SOLID | MF_SHOOTABLE | MF_COUNTKILL, // flags MF2_FOOTCLIP | MF2_PASSMOBJ // flags2 }, { // MT_BEASTBALL -1, // doomednum S_BEASTBALL1, // spawnstate 1000, // spawnhealth S_NULL, // seestate 0, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_BEASTBALLX1, // deathstate S_NULL, // xdeathstate 0, // deathsound 12 * FRACUNIT, // speed 9 * FRACUNIT, // radius 8 * FRACUNIT, // height 100, // mass 4, // damage sfx_None, // activesound MF_NOBLOCKMAP | MF_MISSILE | MF_DROPOFF | MF_NOGRAVITY, // flags MF2_WINDTHRUST | MF2_NOTELEPORT // flags2 }, { // MT_BURNBALL -1, // doomednum S_BURNBALL1, // spawnstate 1000, // spawnhealth S_NULL, // seestate 0, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_BEASTBALLX1, // deathstate S_NULL, // xdeathstate 0, // deathsound 10 * FRACUNIT, // speed 6 * FRACUNIT, // radius 8 * FRACUNIT, // height 100, // mass 2, // damage sfx_None, // activesound MF_NOBLOCKMAP | MF_NOGRAVITY | MF_MISSILE, // flags MF2_NOTELEPORT // flags2 }, { // MT_BURNBALLFB -1, // doomednum S_BURNBALLFB1, // spawnstate 1000, // spawnhealth S_NULL, // seestate 0, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_BEASTBALLX1, // deathstate S_NULL, // xdeathstate 0, // deathsound 10 * FRACUNIT, // speed 6 * FRACUNIT, // radius 8 * FRACUNIT, // height 100, // mass 2, // damage sfx_None, // activesound MF_NOBLOCKMAP | MF_NOGRAVITY | MF_MISSILE, // flags MF2_NOTELEPORT // flags2 }, { // MT_PUFFY -1, // doomednum S_PUFFY1, // spawnstate 1000, // spawnhealth S_NULL, // seestate 0, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_PUFFY1, // deathstate S_NULL, // xdeathstate 0, // deathsound 10 * FRACUNIT, // speed 6 * FRACUNIT, // radius 8 * FRACUNIT, // height 100, // mass 2, // damage sfx_None, // activesound MF_NOBLOCKMAP | MF_NOGRAVITY | MF_MISSILE, // flags MF2_NOTELEPORT // flags2 }, { // MT_SNAKE 92, // doomednum S_SNAKE_LOOK1, // spawnstate 280, // spawnhealth S_SNAKE_WALK1, // seestate sfx_snksit, // seesound 8, // reactiontime sfx_snkatk, // attacksound S_SNAKE_PAIN1, // painstate 48, // painchance sfx_snkpai, // painsound 0, // meleestate S_SNAKE_ATK1, // missilestate S_NULL, // crashstate S_SNAKE_DIE1, // deathstate S_NULL, // xdeathstate sfx_snkdth, // deathsound 10, // speed 22 * FRACUNIT, // radius 70 * FRACUNIT, // height 100, // mass 0, // damage sfx_snkact, // activesound MF_SOLID | MF_SHOOTABLE | MF_COUNTKILL, // flags MF2_FOOTCLIP | MF2_PASSMOBJ // flags2 }, { // MT_SNAKEPRO_A -1, // doomednum S_SNAKEPRO_A1, // spawnstate 1000, // spawnhealth S_NULL, // seestate 0, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_SNAKEPRO_AX1, // deathstate S_NULL, // xdeathstate 0, // deathsound 14 * FRACUNIT, // speed 12 * FRACUNIT, // radius 8 * FRACUNIT, // height 100, // mass 1, // damage sfx_None, // activesound MF_NOBLOCKMAP | MF_MISSILE | MF_DROPOFF | MF_NOGRAVITY, // flags MF2_WINDTHRUST | MF2_NOTELEPORT // flags2 }, { // MT_SNAKEPRO_B -1, // doomednum S_SNAKEPRO_B1, // spawnstate 1000, // spawnhealth S_NULL, // seestate 0, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_SNAKEPRO_BX1, // deathstate S_NULL, // xdeathstate 0, // deathsound 14 * FRACUNIT, // speed 12 * FRACUNIT, // radius 8 * FRACUNIT, // height 100, // mass 3, // damage sfx_None, // activesound MF_NOBLOCKMAP | MF_MISSILE | MF_DROPOFF | MF_NOGRAVITY, // flags MF2_NOTELEPORT // flags2 }, { // MT_HEAD 6, // doomednum S_HEAD_LOOK, // spawnstate 700, // spawnhealth S_HEAD_FLOAT, // seestate sfx_hedsit, // seesound 8, // reactiontime sfx_hedat1, // attacksound S_HEAD_PAIN1, // painstate 32, // painchance sfx_hedpai, // painsound 0, // meleestate S_HEAD_ATK1, // missilestate S_NULL, // crashstate S_HEAD_DIE1, // deathstate S_NULL, // xdeathstate sfx_heddth, // deathsound 6, // speed 40 * FRACUNIT, // radius 72 * FRACUNIT, // height 325, // mass 0, // damage sfx_hedact, // activesound MF_SOLID | MF_SHOOTABLE | MF_COUNTKILL | MF_NOBLOOD, // flags MF2_PASSMOBJ // flags2 }, { // MT_HEADFX1 -1, // doomednum S_HEADFX1_1, // spawnstate 1000, // spawnhealth S_NULL, // seestate 0, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_HEADFXI1_1, // deathstate S_NULL, // xdeathstate 0, // deathsound 13 * FRACUNIT, // speed 12 * FRACUNIT, // radius 6 * FRACUNIT, // height 100, // mass 1, // damage sfx_None, // activesound MF_NOBLOCKMAP | MF_MISSILE | MF_DROPOFF | MF_NOGRAVITY, // flags MF2_NOTELEPORT | MF2_THRUGHOST // flags2 }, { // MT_HEADFX2 -1, // doomednum S_HEADFX2_1, // spawnstate 1000, // spawnhealth S_NULL, // seestate 0, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_HEADFXI2_1, // deathstate S_NULL, // xdeathstate 0, // deathsound 8 * FRACUNIT, // speed 12 * FRACUNIT, // radius 6 * FRACUNIT, // height 100, // mass 3, // damage sfx_None, // activesound MF_NOBLOCKMAP | MF_MISSILE | MF_DROPOFF | MF_NOGRAVITY, // flags MF2_NOTELEPORT // flags2 }, { // MT_HEADFX3 -1, // doomednum S_HEADFX3_1, // spawnstate 1000, // spawnhealth S_NULL, // seestate 0, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_HEADFXI3_1, // deathstate S_NULL, // xdeathstate 0, // deathsound 10 * FRACUNIT, // speed 14 * FRACUNIT, // radius 12 * FRACUNIT, // height 100, // mass 5, // damage sfx_None, // activesound MF_NOBLOCKMAP | MF_MISSILE | MF_DROPOFF | MF_NOGRAVITY, // flags MF2_WINDTHRUST | MF2_NOTELEPORT // flags2 }, { // MT_WHIRLWIND -1, // doomednum S_HEADFX4_1, // spawnstate 1000, // spawnhealth S_NULL, // seestate 0, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_HEADFXI4_1, // deathstate S_NULL, // xdeathstate 0, // deathsound 10 * FRACUNIT, // speed 16 * FRACUNIT, // radius 74 * FRACUNIT, // height 100, // mass 1, // damage sfx_None, // activesound MF_NOBLOCKMAP | MF_MISSILE | MF_DROPOFF | MF_NOGRAVITY | MF_SHADOW, // flags MF2_NOTELEPORT // flags2 }, { // MT_CLINK 90, // doomednum S_CLINK_LOOK1, // spawnstate 150, // spawnhealth S_CLINK_WALK1, // seestate sfx_clksit, // seesound 8, // reactiontime sfx_clkatk, // attacksound S_CLINK_PAIN1, // painstate 32, // painchance sfx_clkpai, // painsound S_CLINK_ATK1, // meleestate 0, // missilestate S_NULL, // crashstate S_CLINK_DIE1, // deathstate S_NULL, // xdeathstate sfx_clkdth, // deathsound 14, // speed 20 * FRACUNIT, // radius 64 * FRACUNIT, // height 75, // mass 0, // damage sfx_clkact, // activesound MF_SOLID | MF_SHOOTABLE | MF_COUNTKILL | MF_NOBLOOD, // flags MF2_FOOTCLIP | MF2_PASSMOBJ // flags2 }, { // MT_WIZARD 15, // doomednum S_WIZARD_LOOK1, // spawnstate 180, // spawnhealth S_WIZARD_WALK1, // seestate sfx_wizsit, // seesound 8, // reactiontime sfx_wizatk, // attacksound S_WIZARD_PAIN1, // painstate 64, // painchance sfx_wizpai, // painsound 0, // meleestate S_WIZARD_ATK1, // missilestate S_NULL, // crashstate S_WIZARD_DIE1, // deathstate S_NULL, // xdeathstate sfx_wizdth, // deathsound 12, // speed 16 * FRACUNIT, // radius 68 * FRACUNIT, // height 100, // mass 0, // damage sfx_wizact, // activesound MF_SOLID | MF_SHOOTABLE | MF_COUNTKILL | MF_FLOAT | MF_NOGRAVITY, // flags MF2_PASSMOBJ // flags2 }, { // MT_WIZFX1 -1, // doomednum S_WIZFX1_1, // spawnstate 1000, // spawnhealth S_NULL, // seestate 0, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_WIZFXI1_1, // deathstate S_NULL, // xdeathstate 0, // deathsound 18 * FRACUNIT, // speed 10 * FRACUNIT, // radius 6 * FRACUNIT, // height 100, // mass 3, // damage sfx_None, // activesound MF_NOBLOCKMAP | MF_MISSILE | MF_DROPOFF | MF_NOGRAVITY, // flags MF2_NOTELEPORT // flags2 }, { // MT_IMP 66, // doomednum S_IMP_LOOK1, // spawnstate 40, // spawnhealth S_IMP_FLY1, // seestate sfx_impsit, // seesound 8, // reactiontime sfx_impat1, // attacksound S_IMP_PAIN1, // painstate 200, // painchance sfx_imppai, // painsound S_IMP_MEATK1, // meleestate S_IMP_MSATK1_1, // missilestate S_IMP_CRASH1, // crashstate S_IMP_DIE1, // deathstate S_IMP_XDIE1, // xdeathstate sfx_impdth, // deathsound 10, // speed 16 * FRACUNIT, // radius 36 * FRACUNIT, // height 50, // mass 0, // damage sfx_impact, // activesound MF_SOLID | MF_SHOOTABLE | MF_FLOAT | MF_NOGRAVITY | MF_COUNTKILL, // flags MF2_SPAWNFLOAT | MF2_PASSMOBJ // flags2 }, { // MT_IMPLEADER 5, // doomednum S_IMP_LOOK1, // spawnstate 80, // spawnhealth S_IMP_FLY1, // seestate sfx_impsit, // seesound 8, // reactiontime sfx_impat2, // attacksound S_IMP_PAIN1, // painstate 200, // painchance sfx_imppai, // painsound 0, // meleestate S_IMP_MSATK2_1, // missilestate S_IMP_CRASH1, // crashstate S_IMP_DIE1, // deathstate S_IMP_XDIE1, // xdeathstate sfx_impdth, // deathsound 10, // speed 16 * FRACUNIT, // radius 36 * FRACUNIT, // height 50, // mass 0, // damage sfx_impact, // activesound MF_SOLID | MF_SHOOTABLE | MF_FLOAT | MF_NOGRAVITY | MF_COUNTKILL, // flags MF2_SPAWNFLOAT | MF2_PASSMOBJ // flags2 }, { // MT_IMPCHUNK1 -1, // doomednum S_IMP_CHUNKA1, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 20 * FRACUNIT, // radius 16 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_NOBLOCKMAP, // flags 0 // flags2 }, { // MT_IMPCHUNK2 -1, // doomednum S_IMP_CHUNKB1, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 20 * FRACUNIT, // radius 16 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_NOBLOCKMAP, // flags 0 // flags2 }, { // MT_IMPBALL -1, // doomednum S_IMPFX1, // spawnstate 1000, // spawnhealth S_NULL, // seestate 0, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_IMPFXI1, // deathstate S_NULL, // xdeathstate 0, // deathsound 10 * FRACUNIT, // speed 8 * FRACUNIT, // radius 8 * FRACUNIT, // height 100, // mass 1, // damage sfx_None, // activesound MF_NOBLOCKMAP | MF_MISSILE | MF_DROPOFF | MF_NOGRAVITY, // flags MF2_WINDTHRUST | MF2_NOTELEPORT // flags2 }, { // MT_KNIGHT 64, // doomednum S_KNIGHT_STND1, // spawnstate 200, // spawnhealth S_KNIGHT_WALK1, // seestate sfx_kgtsit, // seesound 8, // reactiontime sfx_kgtatk, // attacksound S_KNIGHT_PAIN1, // painstate 100, // painchance sfx_kgtpai, // painsound S_KNIGHT_ATK1, // meleestate S_KNIGHT_ATK1, // missilestate S_NULL, // crashstate S_KNIGHT_DIE1, // deathstate S_NULL, // xdeathstate sfx_kgtdth, // deathsound 12, // speed 24 * FRACUNIT, // radius 78 * FRACUNIT, // height 150, // mass 0, // damage sfx_kgtact, // activesound MF_SOLID | MF_SHOOTABLE | MF_COUNTKILL, // flags MF2_FOOTCLIP | MF2_PASSMOBJ // flags2 }, { // MT_KNIGHTGHOST 65, // doomednum S_KNIGHT_STND1, // spawnstate 200, // spawnhealth S_KNIGHT_WALK1, // seestate sfx_kgtsit, // seesound 8, // reactiontime sfx_kgtatk, // attacksound S_KNIGHT_PAIN1, // painstate 100, // painchance sfx_kgtpai, // painsound S_KNIGHT_ATK1, // meleestate S_KNIGHT_ATK1, // missilestate S_NULL, // crashstate S_KNIGHT_DIE1, // deathstate S_NULL, // xdeathstate sfx_kgtdth, // deathsound 12, // speed 24 * FRACUNIT, // radius 78 * FRACUNIT, // height 150, // mass 0, // damage sfx_kgtact, // activesound MF_SOLID | MF_SHOOTABLE | MF_COUNTKILL | MF_SHADOW, // flags MF2_FOOTCLIP | MF2_PASSMOBJ // flags2 }, { // MT_KNIGHTAXE -1, // doomednum S_SPINAXE1, // spawnstate 1000, // spawnhealth S_NULL, // seestate 0, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_SPINAXEX1, // deathstate S_NULL, // xdeathstate sfx_hrnhit, // deathsound 9 * FRACUNIT, // speed 10 * FRACUNIT, // radius 8 * FRACUNIT, // height 100, // mass 2, // damage sfx_None, // activesound MF_NOBLOCKMAP | MF_MISSILE | MF_DROPOFF | MF_NOGRAVITY, // flags MF2_WINDTHRUST | MF2_NOTELEPORT | MF2_THRUGHOST // flags2 }, { // MT_REDAXE -1, // doomednum S_REDAXE1, // spawnstate 1000, // spawnhealth S_NULL, // seestate 0, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_REDAXEX1, // deathstate S_NULL, // xdeathstate sfx_hrnhit, // deathsound 9 * FRACUNIT, // speed 10 * FRACUNIT, // radius 8 * FRACUNIT, // height 100, // mass 7, // damage sfx_None, // activesound MF_NOBLOCKMAP | MF_MISSILE | MF_DROPOFF | MF_NOGRAVITY, // flags MF2_NOTELEPORT | MF2_THRUGHOST // flags2 }, { // MT_SORCERER1 7, // doomednum S_SRCR1_LOOK1, // spawnstate 2000, // spawnhealth S_SRCR1_WALK1, // seestate sfx_sbtsit, // seesound 8, // reactiontime sfx_sbtatk, // attacksound S_SRCR1_PAIN1, // painstate 56, // painchance sfx_sbtpai, // painsound 0, // meleestate S_SRCR1_ATK1, // missilestate S_NULL, // crashstate S_SRCR1_DIE1, // deathstate S_NULL, // xdeathstate sfx_sbtdth, // deathsound 16, // speed 28 * FRACUNIT, // radius 100 * FRACUNIT, // height 800, // mass 0, // damage sfx_sbtact, // activesound MF_SOLID | MF_SHOOTABLE | MF_COUNTKILL, // flags MF2_FOOTCLIP | MF2_PASSMOBJ | MF2_BOSS // flags2 }, { // MT_SRCRFX1 -1, // doomednum S_SRCRFX1_1, // spawnstate 1000, // spawnhealth S_NULL, // seestate 0, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_SRCRFXI1_1, // deathstate S_NULL, // xdeathstate 0, // deathsound 20 * FRACUNIT, // speed 10 * FRACUNIT, // radius 10 * FRACUNIT, // height 100, // mass 10, // damage sfx_None, // activesound MF_NOBLOCKMAP | MF_MISSILE | MF_DROPOFF | MF_NOGRAVITY, // flags MF2_NOTELEPORT | MF2_FIREDAMAGE // flags2 }, { // MT_SORCERER2 -1, // doomednum S_SOR2_LOOK1, // spawnstate 3500, // spawnhealth S_SOR2_WALK1, // seestate sfx_sorsit, // seesound 8, // reactiontime sfx_soratk, // attacksound S_SOR2_PAIN1, // painstate 32, // painchance sfx_sorpai, // painsound 0, // meleestate S_SOR2_ATK1, // missilestate S_NULL, // crashstate S_SOR2_DIE1, // deathstate S_NULL, // xdeathstate 0, // deathsound 14, // speed 16 * FRACUNIT, // radius 70 * FRACUNIT, // height 300, // mass 0, // damage sfx_soract, // activesound MF_SOLID | MF_SHOOTABLE | MF_COUNTKILL | MF_DROPOFF, // flags MF2_FOOTCLIP | MF2_PASSMOBJ | MF2_BOSS // flags2 }, { // MT_SOR2FX1 -1, // doomednum S_SOR2FX1_1, // spawnstate 1000, // spawnhealth S_NULL, // seestate 0, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_SOR2FXI1_1, // deathstate S_NULL, // xdeathstate 0, // deathsound 20 * FRACUNIT, // speed 10 * FRACUNIT, // radius 6 * FRACUNIT, // height 100, // mass 1, // damage sfx_None, // activesound MF_NOBLOCKMAP | MF_MISSILE | MF_DROPOFF | MF_NOGRAVITY, // flags MF2_NOTELEPORT // flags2 }, { // MT_SOR2FXSPARK -1, // doomednum S_SOR2FXSPARK1, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 20 * FRACUNIT, // radius 16 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_NOBLOCKMAP | MF_NOGRAVITY, // flags MF2_NOTELEPORT | MF2_CANNOTPUSH // flags2 }, { // MT_SOR2FX2 -1, // doomednum S_SOR2FX2_1, // spawnstate 1000, // spawnhealth S_NULL, // seestate 0, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_SOR2FXI2_1, // deathstate S_NULL, // xdeathstate 0, // deathsound 6 * FRACUNIT, // speed 10 * FRACUNIT, // radius 6 * FRACUNIT, // height 100, // mass 10, // damage sfx_None, // activesound MF_NOBLOCKMAP | MF_MISSILE | MF_DROPOFF | MF_NOGRAVITY, // flags MF2_NOTELEPORT // flags2 }, { // MT_SOR2TELEFADE -1, // doomednum S_SOR2TELEFADE1, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 20 * FRACUNIT, // radius 16 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_NOBLOCKMAP, // flags 0 // flags2 }, { // MT_MINOTAUR 9, // doomednum S_MNTR_LOOK1, // spawnstate 3000, // spawnhealth S_MNTR_WALK1, // seestate sfx_minsit, // seesound 8, // reactiontime sfx_minat1, // attacksound S_MNTR_PAIN1, // painstate 25, // painchance sfx_minpai, // painsound S_MNTR_ATK1_1, // meleestate S_MNTR_ATK2_1, // missilestate S_NULL, // crashstate S_MNTR_DIE1, // deathstate S_NULL, // xdeathstate sfx_mindth, // deathsound 16, // speed 28 * FRACUNIT, // radius 100 * FRACUNIT, // height 800, // mass 7, // damage sfx_minact, // activesound MF_SOLID | MF_SHOOTABLE | MF_COUNTKILL | MF_DROPOFF, // flags MF2_FOOTCLIP | MF2_PASSMOBJ | MF2_BOSS // flags2 }, { // MT_MNTRFX1 -1, // doomednum S_MNTRFX1_1, // spawnstate 1000, // spawnhealth S_NULL, // seestate 0, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_MNTRFXI1_1, // deathstate S_NULL, // xdeathstate 0, // deathsound 20 * FRACUNIT, // speed 10 * FRACUNIT, // radius 6 * FRACUNIT, // height 100, // mass 3, // damage sfx_None, // activesound MF_NOBLOCKMAP | MF_MISSILE | MF_DROPOFF | MF_NOGRAVITY, // flags MF2_NOTELEPORT | MF2_FIREDAMAGE // flags2 }, { // MT_MNTRFX2 -1, // doomednum S_MNTRFX2_1, // spawnstate 1000, // spawnhealth S_NULL, // seestate 0, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_MNTRFXI2_1, // deathstate S_NULL, // xdeathstate sfx_phohit, // deathsound 14 * FRACUNIT, // speed 5 * FRACUNIT, // radius 12 * FRACUNIT, // height 100, // mass 4, // damage sfx_None, // activesound MF_NOBLOCKMAP | MF_MISSILE | MF_DROPOFF | MF_NOGRAVITY, // flags MF2_NOTELEPORT | MF2_FIREDAMAGE // flags2 }, { // MT_MNTRFX3 -1, // doomednum S_MNTRFX3_1, // spawnstate 1000, // spawnhealth S_NULL, // seestate 0, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_MNTRFXI2_1, // deathstate S_NULL, // xdeathstate sfx_phohit, // deathsound 0, // speed 8 * FRACUNIT, // radius 16 * FRACUNIT, // height 100, // mass 4, // damage sfx_None, // activesound MF_NOBLOCKMAP | MF_MISSILE | MF_DROPOFF | MF_NOGRAVITY, // flags MF2_NOTELEPORT | MF2_FIREDAMAGE // flags2 }, { // MT_AKYY 73, // doomednum S_AKYY1, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 20 * FRACUNIT, // radius 16 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_SPECIAL | MF_NOTDMATCH, // flags 0 // flags2 }, { // MT_BKYY 79, // doomednum S_BKYY1, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 20 * FRACUNIT, // radius 16 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_SPECIAL | MF_NOTDMATCH, // flags 0 // flags2 }, { // MT_CKEY 80, // doomednum S_CKYY1, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 20 * FRACUNIT, // radius 16 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_SPECIAL | MF_NOTDMATCH, // flags 0 // flags2 }, { // MT_AMGWNDWIMPY 10, // doomednum S_AMG1, // spawnstate AMMO_GWND_WIMPY, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 20 * FRACUNIT, // radius 16 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_SPECIAL, // flags 0 // flags2 }, { // MT_AMGWNDHEFTY 12, // doomednum S_AMG2_1, // spawnstate AMMO_GWND_HEFTY, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 20 * FRACUNIT, // radius 16 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_SPECIAL, // flags 0 // flags2 }, { // MT_AMMACEWIMPY 13, // doomednum S_AMM1, // spawnstate AMMO_MACE_WIMPY, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 20 * FRACUNIT, // radius 16 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_SPECIAL, // flags 0 // flags2 }, { // MT_AMMACEHEFTY 16, // doomednum S_AMM2, // spawnstate AMMO_MACE_HEFTY, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 20 * FRACUNIT, // radius 16 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_SPECIAL, // flags 0 // flags2 }, { // MT_AMCBOWWIMPY 18, // doomednum S_AMC1, // spawnstate AMMO_CBOW_WIMPY, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 20 * FRACUNIT, // radius 16 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_SPECIAL, // flags 0 // flags2 }, { // MT_AMCBOWHEFTY 19, // doomednum S_AMC2_1, // spawnstate AMMO_CBOW_HEFTY, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 20 * FRACUNIT, // radius 16 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_SPECIAL, // flags 0 // flags2 }, { // MT_AMSKRDWIMPY 20, // doomednum S_AMS1_1, // spawnstate AMMO_SKRD_WIMPY, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 20 * FRACUNIT, // radius 16 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_SPECIAL, // flags 0 // flags2 }, { // MT_AMSKRDHEFTY 21, // doomednum S_AMS2_1, // spawnstate AMMO_SKRD_HEFTY, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 20 * FRACUNIT, // radius 16 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_SPECIAL, // flags 0 // flags2 }, { // MT_AMPHRDWIMPY 22, // doomednum S_AMP1_1, // spawnstate AMMO_PHRD_WIMPY, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 20 * FRACUNIT, // radius 16 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_SPECIAL, // flags 0 // flags2 }, { // MT_AMPHRDHEFTY 23, // doomednum S_AMP2_1, // spawnstate AMMO_PHRD_HEFTY, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 20 * FRACUNIT, // radius 16 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_SPECIAL, // flags 0 // flags2 }, { // MT_AMBLSRWIMPY 54, // doomednum S_AMB1_1, // spawnstate AMMO_BLSR_WIMPY, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 20 * FRACUNIT, // radius 16 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_SPECIAL, // flags 0 // flags2 }, { // MT_AMBLSRHEFTY 55, // doomednum S_AMB2_1, // spawnstate AMMO_BLSR_HEFTY, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 20 * FRACUNIT, // radius 16 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_SPECIAL, // flags 0 // flags2 }, { // MT_SOUNDWIND 42, // doomednum S_SND_WIND, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 20 * FRACUNIT, // radius 16 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_NOBLOCKMAP | MF_NOSECTOR, // flags 0 // flags2 }, { // MT_SOUNDWATERFALL 41, // doomednum S_SND_WATERFALL, // spawnstate 1000, // spawnhealth S_NULL, // seestate sfx_None, // seesound 8, // reactiontime sfx_None, // attacksound S_NULL, // painstate 0, // painchance sfx_None, // painsound S_NULL, // meleestate S_NULL, // missilestate S_NULL, // crashstate S_NULL, // deathstate S_NULL, // xdeathstate sfx_None, // deathsound 0, // speed 20 * FRACUNIT, // radius 16 * FRACUNIT, // height 100, // mass 0, // damage sfx_None, // activesound MF_NOBLOCKMAP | MF_NOSECTOR, // flags 0 // flags2 } };
jfaulken/chocolate-doom
src/heretic/info.c
C
gpl-2.0
256,752
<?php /* * This file is part of PHPExifTool. * * (c) 2012 Romain Neutron <imprec@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace PHPExiftool\Driver\Tag\Microsoft; use PHPExiftool\Driver\AbstractTag; class AudioBitrate extends AbstractTag { protected $Id = 'AudioBitrate'; protected $Name = 'AudioBitrate'; protected $FullName = 'Microsoft::Xtra'; protected $GroupName = 'Microsoft'; protected $g0 = 'QuickTime'; protected $g1 = 'Microsoft'; protected $g2 = 'Video'; protected $Type = '?'; protected $Writable = false; protected $Description = 'Audio Bitrate'; }
Droces/casabio
vendor/phpexiftool/phpexiftool/lib/PHPExiftool/Driver/Tag/Microsoft/AudioBitrate.php
PHP
gpl-2.0
727
/* gEDA - GPL Electronic Design Automation * gschem - gEDA Schematic Capture * Copyright (C) 1998-2010 Ales Hvezda * Copyright (C) 1998-2010 gEDA Contributors (see ChangeLog for details) * * 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /*! \file x_aligncb.c * * \brief A GtkComboBox with the gschem text alignments. */ #include <config.h> #include <version.h> #include <missing.h> #include <stdio.h> #ifdef HAVE_STDLIB_H #include <stdlib.h> #endif #ifdef HAVE_STRING_H #include <string.h> #endif #include "gschem.h" /*! \brief The columns in the GtkListStore */ enum { COLUMN_NAME, COLUMN_ALIGN, COLUMN_COUNT }; /*! \brief Stores the list of alignments for use by the GtkComboBox */ static GtkListStore* align_list_store = NULL; /*! \brief Create the alignment combo box list store for the text property dialog * * \return A GtkListStore with gschem text alignment entries. */ static GtkListStore * create_align_list_store () { GtkTreeIter iter; GtkListStore *store; store = gtk_list_store_new (COLUMN_COUNT, G_TYPE_STRING, G_TYPE_INT); /* Upper row */ gtk_list_store_append (store, &iter); gtk_list_store_set (store, &iter, COLUMN_NAME, _("Upper Left"), COLUMN_ALIGN, UPPER_LEFT, -1); gtk_list_store_append (store, &iter); gtk_list_store_set (store, &iter, COLUMN_NAME, _("Upper Middle"), COLUMN_ALIGN, UPPER_MIDDLE, -1); gtk_list_store_append (store, &iter); gtk_list_store_set (store, &iter, COLUMN_NAME, _("Upper Right"), COLUMN_ALIGN, UPPER_RIGHT, -1); /* Middle row */ gtk_list_store_append (store, &iter); gtk_list_store_set (store, &iter, COLUMN_NAME, _("Middle Left"), COLUMN_ALIGN, MIDDLE_LEFT, -1); gtk_list_store_append (store, &iter); gtk_list_store_set (store, &iter, COLUMN_NAME, _("Middle Middle"), COLUMN_ALIGN, MIDDLE_MIDDLE, -1); gtk_list_store_append (store, &iter); gtk_list_store_set (store, &iter, COLUMN_NAME, _("Middle Right"), COLUMN_ALIGN, MIDDLE_RIGHT, -1); /* Lower row */ gtk_list_store_append (store, &iter); gtk_list_store_set (store, &iter, COLUMN_NAME, _("Lower Left"), COLUMN_ALIGN, LOWER_LEFT, -1); gtk_list_store_append (store, &iter); gtk_list_store_set (store, &iter, COLUMN_NAME, _("Lower Middle"), COLUMN_ALIGN, LOWER_MIDDLE, -1); gtk_list_store_append (store, &iter); gtk_list_store_set (store, &iter, COLUMN_NAME, _("Lower Right"), COLUMN_ALIGN, LOWER_RIGHT, -1); return store; } /*! \brief Create a ComboBox with the gschem alignments. * * \return A GtkWidget for selecting text alignments. */ GtkWidget* x_aligncb_new () { GtkCellRenderer *cell; GtkComboBox *combo; if (align_list_store == NULL) { align_list_store = create_align_list_store (); } combo = GTK_COMBO_BOX (gtk_combo_box_new_with_model (GTK_TREE_MODEL (align_list_store))); gtk_combo_box_set_wrap_width (GTK_COMBO_BOX (combo), 3); cell = gtk_cell_renderer_text_new (); gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (combo), cell, TRUE); gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (combo), cell, "text", COLUMN_NAME, NULL); return GTK_WIDGET (combo); } /*! \brief Get the currently selected text alignment * * \param [in,out] widget The text alignment combo box * \return The currently selected text alignment */ int x_aligncb_get_align (GtkWidget *widget) { int align = -1; GtkTreeIter iter; GValue value = {0}; if (gtk_combo_box_get_active_iter (GTK_COMBO_BOX(widget), &iter)) { gtk_tree_model_get_value (GTK_TREE_MODEL (align_list_store), &iter, COLUMN_ALIGN, &value); align = g_value_get_int (&value); g_value_unset (&value); } return align; } /*! \brief Select the given text alignment * * \par Function Description * Selects the given text alignment. With an invalid alignment, this * function does nothing. * * \param [in,out] widget The text alignment combo box * \param [in] align The text alignment to select */ void x_aligncb_set_align (GtkWidget *widget, int align) { GtkTreeIter iter; gboolean success; GValue value = {0}; g_return_if_fail (align_list_store != NULL); success = gtk_tree_model_get_iter_first (GTK_TREE_MODEL (align_list_store), &iter); while (success) { gtk_tree_model_get_value (GTK_TREE_MODEL (align_list_store), &iter, COLUMN_ALIGN, &value); if (g_value_get_int (&value) == align) { g_value_unset (&value); gtk_combo_box_set_active_iter (GTK_COMBO_BOX (widget), &iter); break; } g_value_unset (&value); success = gtk_tree_model_iter_next (GTK_TREE_MODEL (align_list_store), &iter); } }
frantony/geda-gaf
gschem/src/x_aligncb.c
C
gpl-2.0
5,240
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>About | Bootsassy Template</title> <!-- Stylesheets --> <link href="css/bootstrap.css" rel="stylesheet"> <link href="css/bootsassy.css" rel="stylesheet"> </head> <body> <header class="header-main"> <nav class="navbar navbar-fixed-top navbar-default" role="navigation"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="index.html"><h1><span class="em-primary">Boot</span>Sassy</h1></a> </div> <!-- Collect the nav links, forms, and other content for toggling --> <div class="collapse navbar-collapse navbar-ex1-collapse"> <ul class="nav navbar-nav navbar-right"> <li><a href="index.html">Home</a></li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">Features <span class="caret"></span></a> <ul class="dropdown-menu" role="menu"> <li class="dropdown-submenu"><a href="typography.html">Typography</a> <ul class="dropdown-menu"> <li><a href="typography.html">General</a></li> <li><a href="typography.html#blockquotes">Blockquotes</a></li> <li><a href="typography.html#dropcaps">Dropcaps</a></li> <li><a href="typography.html#taglineboxes">Tagline Boxes</a></li> </ul> </li> <li class="dropdown-submenu"><a href="blocks.html">Blocks</a> <ul class="dropdown-menu"> <li><a href="blocks.html">Content Blocks</a></li> <li><a href="blocks.html#blocktitles">Block Titles</a></li> <li><a href="blocks.html#iconblocks">Icon Blocks</a></li> </ul> </li> <li class="dropdown-submenu"><a href="components.html">CSS Components</a> <ul class="dropdown-menu"> <li><a href="components.html#panels">Panels</a></li> <li><a href="components.html#wells">Wells</a></li> <li><a href="components.html#alerts">Alerts</a></li> <li><a href="components.html#progress">Progress Bars</a></li> <li><a href="components.html#labels">Labels</a></li> <li><a href="components.html#pagination">Pagination</a></li> </ul> </li> <li class="dropdown-submenu"><a href="#">JavaScript Components</a> <ul class="dropdown-menu"> <li><a href="carousel.html">Carousel</a></li> <li><a href="scroller.html">Slick Scroller</a></li> <li><a href="gallery.html">Image Gallery</a></li> <li><a href="tabs.html">Tabs</a></li> <li><a href="accordian.html">Accordian</a></li> <li><a href="tooltips.html">Tooltips</a></li> </ul> </li> <li class="dropdown-submenu"><a href="buttons.html">Buttons</a> <ul class="dropdown-menu"> <li><a href="buttons.html">General Buttons</a></li> <li><a href="buttons.html#buttonsizes">Button Sizes</a></li> <li><a href="buttons.html#buttongroups">Button Groups</a></li> <li><a href="buttons.html#buttondropdowns">Button Dropdowns</a></li> </ul> </li> <li><a href="sections.html">Sections</a></li> <li><a href="icons.html">Icons</a></li> <li><a href="tables.html">Tables</a></li> <li><a href="forms.html">Forms</a></li> <li><a href="grid.html">Grid System</a></li> </ul> </li> <li class="active"><a href="about.html">About</a></li> <li><a href="services.html">Services</a></li> <li class="dropdown"> <a href="portfolio.html" class="dropdown-toggle" data-toggle="dropdown">Portfolio<span class="caret"></span></a> <ul class="dropdown-menu" role="menu"> <li><a href="portfolio-col-4.html"> Portfolio 4 Column</a></li> <li><a href="portfolio-col-3.html"> Portfolio 3 Column</a></li> <li><a href="portfolio-col-2.html"> Portfolio 2 Column</a></li> <li><a href="portfolio-col-1.html"> Portfolio 1 Column</a></li> </ul> </li> <li class="dropdown"> <a href="blog-right-sidebar.html" class="dropdown-toggle" data-toggle="dropdown">Blog <span class="caret"></span></a> <ul class="dropdown-menu" role="menu"> <li><a href="blog-right-sidebar.html"> Blog - Right Sidebar</a></li> <li><a href="blog-left-sidebar.html">Blog - Left Sidebar</a></li> <li><a href="blog-no-sidebar.html">Blog - No Sidebar</a></li> </ul> </li> <li><a href="contact.html">Contact</a></li> </ul> </div><!-- /.navbar-collapse --> </div><!-- /.container --> </nav> </header> <section class="section-dark-e section-text-button"> <div class="container"> <div class="row"> <div class="col-md-12"> <h2>All code snippets can be found under the <span class="em-primary">"Features"</span> menu item</h2> <a href="typography.html" class="btn btn-dark btn-border-1 btn-lg">Read More</a> </div> </div> </div> </section> <section> <div class="container"> <div class="row"> <div class="col-md-8"> <h2 class="heading-line-primary">About Us</h2> <div class="carousel-widget"> <div id="mycarousel" class="carousel slide" data-ride="carousel"> <!-- Indicators --> <ol class="carousel-indicators"> <li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li> <li data-target="#carousel-example-generic" data-slide-to="1"></li> <li data-target="#carousel-example-generic" data-slide-to="2"></li> </ol> <div class="carousel-inner"> <div class="item active"> <img src="img/demo_content/stock1.jpg" alt="carousel1"> </div> <div class="item"> <img src="img/demo_content/stock2.jpg" alt="carousel2"> </div> <div class="item"> <img src="img/demo_content/stock3.jpg" alt="carousel3"> </div> </div> <!-- Carousel Controls --> <a class="left carousel-control" href="#mycarousel" role="button" data-slide="prev"> <span class="glyphicon glyphicon-chevron-left"></span> </a> <a class="right carousel-control" href="#mycarousel" role="button" data-slide="next"> <span class="glyphicon glyphicon-chevron-right"></span> </a> </div> </div> <p>Vivamus vestibulum neque quis nunc convallis venenatis. Nulla tristique lorem sit amet ipsum ornare sit amet feugiat nulla condimentum. Sed faucibus volutpat nunc, at ullamcorper augue elementum id. Quisque at lectus leo, nec placerat mi. Curabitur egestas eleifend interdum. Suspendisse potenti. Suspendisse nec risus fermentum. </p> <p> In hac habitasse platea dictumst. In hac habitasse platea dictumst. Donec aliquet tellus enim, a tincidunt nulla. Praesent mollis felis at nulla fermentum mattis. Vivamus vestibulum neque quis nunc convallis venenatis. Nulla tristique lorem sit amet ipsum ornare sit amet feugiat nulla condimentum. Sed faucibus volutpat nunc, at ullamcorper augue elementum id. </p> </div> <div class="col-md-4"> <div class="block block-title-1 block-light"> <h3>Our Skills</h3> HTML <div class="progress"> <div class="progress-bar progress-dark" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: 100%;"> 100% </div> </div> CSS <div class="progress"> <div class="progress-bar progress-dark" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: 100%;"> 100% </div> </div> JavaScript <div class="progress"> <div class="progress-bar progress-dark" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: 100%;"> 100% </div> </div> PHP <div class="progress"> <div class="progress-bar progress-dark" role="progressbar" aria-valuenow="90" aria-valuemin="0" aria-valuemax="100" style="width: 90%;"> 90% </div> </div> Python <div class="progress"> <div class="progress-bar progress-dark" role="progressbar" aria-valuenow="90" aria-valuemin="0" aria-valuemax="100" style="width: 90%;"> 90% </div> </div> </div> </div> </div> </div> </section> <section class="section-primary"> <div class="container"> <!-- What we do --> <h2 class="page-header">Recent Testimonial</h2> <div class="row"> <div class="col-md-12"> <blockquote class="blockquote blockquote-reverse"> <h1>"I do not believe you can do today's job with yesterday's methods and be in business tomorrow"</h1> <footer><em>Nelson Jackson</em></footer> </blockquote> </div> </div> </div> </section> <section class="section team-wrap"> <div class="container"> <div class="row"> <div class="col-lg-12"> <h2 class="page-header"><span class="em-primary">Our</span> Team</h2> </div> <div class="col-sm-3"> <div class="block block-light block-rounded"> <img class="img-circle" src="img/demo_content/headshot1.jpg"> <h3>Mark Sampson <small>Artist</small></h3> <p>Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus.</p> <ul class="list-unstyled list-inline list-social-icons"> <li class="tooltip-social facebook-link"><a href="#facebook-profile" data-toggle="tooltip" data-placement="top" title="Facebook"><i class="fa fa-facebook-square fa-2x"></i></a></li> <li class="tooltip-social linkedin-link"><a href="#linkedin-profile" data-toggle="tooltip" data-placement="top" title="LinkedIn"><i class="fa fa-linkedin-square fa-2x"></i></a></li> <li class="tooltip-social twitter-link"><a href="#twitter-profile" data-toggle="tooltip" data-placement="top" title="Twitter"><i class="fa fa-twitter-square fa-2x"></i></a></li> <li class="tooltip-social google-plus-link"><a href="#google-plus-profile" data-toggle="tooltip" data-placement="top" title="Google+"><i class="fa fa-google-plus-square fa-2x"></i></a></li> </ul> </div> </div> <div class="col-sm-3"> <div class="block block-dark block-rounded"> <img class="img-circle" src="img/demo_content/headshot2.jpg"> <h3>John Smith <small>Architect</small></h3> <p>Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus.</p> <ul class="list-unstyled list-inline list-social-icons"> <li class="tooltip-social facebook-link"><a href="#facebook-profile" data-toggle="tooltip" data-placement="top" title="Facebook"><i class="fa fa-facebook-square fa-2x"></i></a></li> <li class="tooltip-social linkedin-link"><a href="#linkedin-profile" data-toggle="tooltip" data-placement="top" title="LinkedIn"><i class="fa fa-linkedin-square fa-2x"></i></a></li> <li class="tooltip-social twitter-link"><a href="#twitter-profile" data-toggle="tooltip" data-placement="top" title="Twitter"><i class="fa fa-twitter-square fa-2x"></i></a></li> <li class="tooltip-social google-plus-link"><a href="#google-plus-profile" data-toggle="tooltip" data-placement="top" title="Google+"><i class="fa fa-google-plus-square fa-2x"></i></a></li> </ul> </div> </div> <div class="col-sm-3"> <div class="block block-light block-rounded"> <img class="img-circle" src="img/demo_content/headshot3.jpg"> <h3>Paul Rogers <small>Designer</small></h3> <p>Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus.</p> <ul class="list-unstyled list-inline list-social-icons"> <li class="tooltip-social facebook-link"><a href="#facebook-profile" data-toggle="tooltip" data-placement="top" title="Facebook"><i class="fa fa-facebook-square fa-2x"></i></a></li> <li class="tooltip-social linkedin-link"><a href="#linkedin-profile" data-toggle="tooltip" data-placement="top" title="LinkedIn"><i class="fa fa-linkedin-square fa-2x"></i></a></li> <li class="tooltip-social twitter-link"><a href="#twitter-profile" data-toggle="tooltip" data-placement="top" title="Twitter"><i class="fa fa-twitter-square fa-2x"></i></a></li> <li class="tooltip-social google-plus-link"><a href="#google-plus-profile" data-toggle="tooltip" data-placement="top" title="Google+"><i class="fa fa-google-plus-square fa-2x"></i></a></li> </ul> </div> </div> <div class="col-sm-3"> <div class="block block-dark block-rounded"> <img class="img-circle" src="img/demo_content/headshot4.jpg"> <h3>Paula Moore <small>Web Developer</small></h3> <p>Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus.</p> <ul class="list-unstyled list-inline list-social-icons"> <li class="tooltip-social facebook-link"><a href="#facebook-profile" data-toggle="tooltip" data-placement="top" title="Facebook"><i class="fa fa-facebook-square fa-2x"></i></a></li> <li class="tooltip-social linkedin-link"><a href="#linkedin-profile" data-toggle="tooltip" data-placement="top" title="LinkedIn"><i class="fa fa-linkedin-square fa-2x"></i></a></li> <li class="tooltip-social twitter-link"><a href="#twitter-profile" data-toggle="tooltip" data-placement="top" title="Twitter"><i class="fa fa-twitter-square fa-2x"></i></a></li> <li class="tooltip-social google-plus-link"><a href="#google-plus-profile" data-toggle="tooltip" data-placement="top" title="Google+"><i class="fa fa-google-plus-square fa-2x"></i></a></li> </ul> </div> </div> </div> </section> <footer class="footer-main"> <div class="container"> <div class="row"> <div class="col-md-3"> <h3>Who We Are</h3> <p> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin est turpis, commodo sit amet nunc non, mattis condimentum felis. Aliquam lacinia tempus felis at commodo. </p> <h5>Follow Us:</h5> <i class="fa fa-2 fa-facebook"></i>&nbsp;&nbsp; <i class="fa fa-2 fa-twitter"></i>&nbsp;&nbsp; <i class="fa fa-2 fa-linkedin"></i>&nbsp;&nbsp; <i class="fa fa-2 fa-google-plus-square"></i>&nbsp;&nbsp; <i class="fa fa-2 fa-youtube"></i> </div> <div class="col-md-3"> <h3>Recent Posts</h3> <ul class="blogroll"> <li> Curabitur a mi imperdiet <div><i class="fa fa-clock-o"></i> September 13, 2014</div> </li> <li> Curabitur a mi imperdiet <div><i class="fa fa-clock-o"></i> September 13, 2014</div> </li> <li> Curabitur a mi imperdiet <div><i class="fa fa-clock-o"></i> September 13, 2014</div> </li> </ul> </div> <div class="col-md-3"> <h3>Get In Touch</h3> <p>Aliquam lacinia tempus felis at commodo</p> <ul> <li><i class="fa fa-home"></i> 555 Mass Ave st, Suite 7</li> <li><i class="fa fa-globe"></i> Boston MA 02115</li> <li><i class="fa fa-envelope-o"></i> <strong>Email:</strong> support@codeskillet.com</li> <li><i class="fa fa-phone"></i> <strong>Phone:</strong> (555) 555-5555</li> </ul> </div> <div class="col-md-3"> <h3>Newsletter</h3> <p>Sign up for our newsletter</p> <form class="search-form-a input-group"> <input type="text" class="form-control" placeholder="Enter email..."> <span class="input-group-btn"> <button class="btn">Sign Up</button> </span> </form> </div> </div> </div> </footer> <script src="js/jquery-1.11.1.min.js"></script> <script src="js/bootstrap.min.js"></script> <script src="js/modernizr.js"></script> <script src="js/bootsassy.min.js"></script> </body> </html>
bradtraversy/bootsassy
demo/full/about.html
HTML
gpl-2.0
17,068
#ifndef __SYS_TIME_H__ #define __SYS_TIME_H__ #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ #include <stddef.h> typedef unsigned long clock_t; typedef long time_t; typedef int64_t suseconds_t; struct tm { int tm_sec; int tm_min; int tm_hour; int tm_mday; int tm_mon; int tm_year; int tm_wday; int tm_yday; int tm_isdst; }; struct timeval { time_t tv_sec; /* seconds */ suseconds_t tv_usec; /* microseconds */ }; struct timezone { int tz_minuteswest; /* minutes west of Greenwich */ int tz_dsttime; /* type of DST correction */ }; int gettimeofday(struct timeval *tv, struct timezone *tz); int settimeofday(const struct timeval *tv, const struct timezone *tz); struct tm *localtime(const time_t *tp); size_t strftime(char *s, size_t max, const char *fmt, const struct tm *tm); #ifdef __cplusplus } #endif /* __cplusplus */ #endif /* __SYS_TIME_H__ */
Ted-Chang/matrix
sdk/include/sys/time.h
C
gpl-2.0
885
/******************************************************************************\ This file is part of the FAHViewer. The FAHViewer displays 3D views of Folding@home proteins. Copyright (c) 2016-2020, foldingathome.org Copyright (c) 2003-2016, Stanford University 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 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. For information regarding this software email: Joseph Coffland joseph@cauldrondevelopment.com \******************************************************************************/ #pragma once #include <fah/viewer/pyon/Object.h> #include <cbang/StdTypes.h> #include <cbang/geom/Vector.h> #include <iostream> #include <string> namespace FAH { class Atom : public PyON::Object { public: enum { HYDROGEN = 1, CARBON = 6, NITROGEN = 7, OXYGEN = 8, SULFUR = 16, HEAVY = 999, }; protected: std::string type; unsigned number; float charge; float radius; float mass; unsigned index; public: Atom() : number(0), charge(0), radius(0), mass(0), index(0) {} Atom(const cb::JSON::Value &value, float scale = 1) : number(0), charge(0), radius(0), mass(0), index(0) {loadJSON(value, scale);} Atom(const std::string &type, float charge = 0, float radius = 0, float mass = 0, unsigned number = 0); const std::string &getType() const {return type;} void setType(const std::string &type) {this->type = type;} unsigned getNumber() const {return number;} void setNumber(unsigned number) {this->number = number;} float getCharge() const {return charge;} float getRadius() const {return radius;} float getMass() const {return mass;} void setIndex(unsigned index) {this->index = index;} unsigned getIndex() const {return index;} static float chargeFromNumber(unsigned number); static float radiusFromNumber(unsigned number); static float massFromNumber(unsigned number); static unsigned numberFromName(const std::string &name); void setDataFromNumber(unsigned number); double averageBondLength(const Atom &atom) const; // From PyONObject const char *getPyONType() const {return "atom";} cb::SmartPointer<cb::JSON::Value> getJSON() const; void loadJSON(const cb::JSON::Value &value) {loadJSON(value, 1);} void loadJSON(const cb::JSON::Value &value, float scale); }; }
FoldingAtHome/fah-viewer
src/fah/viewer/Atom.h
C
gpl-2.0
3,309
/* Copyright (c) 2003-2011 Gordon Gremme <gremme@zbh.uni-hamburg.de> Copyright (c) 2003-2008 Center for Bioinformatics, University of Hamburg 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 <math.h> #include "core/divmodmul.h" #include "core/safearith.h" #include "core/undef_api.h" #include "core/unused_api.h" #include "gth/align_dna_imp.h" #include "gth/array2dim_plain.h" #include "gth/compute_scores.h" #include "gth/gthenum.h" #include "gth/gtherror.h" #include "gth/path_matrix.h" #include "gth/path_walker.h" /* IMPORTANT: Definition has to be consistent with DnaRetrace in align_dna_imp.h. */ static const char *dna_retracenames[]= { SHOWENUMTYPE(DNA_I_N), SHOWENUMTYPE(DNA_E_N), SHOWENUMTYPE(DNA_E_NM), SHOWENUMTYPE(DNA_I_NM), SHOWENUMTYPE(DNA_E_M), SHOWENUMTYPE(DNA_I_M), SHOWENUMTYPE(DNA_NUMOFRETRACE) }; static const char* dna_showretracenames(DnaRetrace retrace) { gt_assert(retrace <= DNA_NUMOFRETRACE); return dna_retracenames[retrace]; } /* the following function allocates space for the DP tables for cDNAs/ESTs */ static int dp_matrix_init(GthDPMatrix *dpm, unsigned long gen_dp_length, unsigned long ref_dp_length, unsigned long autoicmaxmatrixsize, bool introncutout, GthJumpTable *jump_table, GthStat *stat) { unsigned long t, n, m, matrixsize, sizeofpathtype = sizeof (GthPath); /* XXX: adjust this check for QUARTER_MATRIX case */ if (DNA_NUMOFSTATES * sizeofpathtype * (gen_dp_length + 1) >= (~0)/(ref_dp_length + 1)) { /* in this case the matrix would be larger than the addressable memory of this machine -> return ERROR_MATRIX_ALLOCATION_FAILED */ return GTH_ERROR_MATRIX_ALLOCATION_FAILED; } matrixsize = gt_safe_mult_ulong((GT_DIV2(gen_dp_length + 1) + GT_MOD2(gen_dp_length + 1)), ref_dp_length + 1); if (!introncutout && autoicmaxmatrixsize > 0) { /* in this case the automatic intron cutout technique is enabled check if allocated matrix would be larger as specified maximal matrix size. If so, return matrix allocation error */ if (sizeofpathtype * matrixsize * DNA_NUMOFSTATES > autoicmaxmatrixsize << 20) { return GTH_ERROR_MATRIX_ALLOCATION_FAILED; } } /* allocate space for dpm->path */ if (jump_table) { gth_array2dim_plain_calloc(dpm->path, GT_DIV2(gen_dp_length + 1) + GT_MOD2(gen_dp_length + 1), ref_dp_length + 1); } else { gth_array2dim_plain_malloc(dpm->path, GT_DIV2(gen_dp_length + 1) + GT_MOD2(gen_dp_length + 1), ref_dp_length + 1); } dpm->path_jt = NULL; if (!dpm->path) return GTH_ERROR_MATRIX_ALLOCATION_FAILED; /* allocate space for dpm->score */ for (t = DNA_E_STATE; t < DNA_NUMOFSTATES; t++) { for (n = 0; n < DNA_NUMOFSCORETABLES; n++) { dpm->score[t][n] = gt_malloc(sizeof (GthFlt) * (ref_dp_length + 1)); } } /* allocating space for intronstart and exonstart */ for (n = 0; n < DNA_NUMOFSCORETABLES; n++) { dpm->intronstart[n] = gt_calloc(ref_dp_length + 1, sizeof *dpm->intronstart); dpm->exonstart[n] = gt_calloc(ref_dp_length + 1, sizeof *dpm->exonstart); } /* initialize the DP matrices */ dpm->path[0][0] = DNA_E_NM; dpm->path[0][0] |= I_STATE_E_N; for (m = 1; m <= ref_dp_length; m++) { dpm->path[0][m] = DNA_E_M; dpm->path[0][m] |= I_STATE_I_N; } for (n = 0; n < DNA_NUMOFSCORETABLES; n++) { dpm->score[DNA_E_STATE][n][0] = 0.0; dpm->score[DNA_I_STATE][n][0] = 0.0; for (m = 1; m <= ref_dp_length; m++) { dpm->score[DNA_E_STATE][n][m] = (GthFlt) 0.0; /* disallow intron status for 5' non-matching cDNA letters: */ dpm->score[DNA_I_STATE][n][m] = (GthFlt) GTH_MINUSINFINITY; } } dpm->gen_dp_length = gen_dp_length; dpm->ref_dp_length = ref_dp_length; /* statistics */ gth_stat_increment_numofbacktracematrixallocations(stat); gth_stat_increase_totalsizeofbacktracematricesinMB(stat, (sizeofpathtype * matrixsize) >> 20); return 0; } #if 0 static unsigned long dp_matrix_get_reference_length(DPMatrix *dpm) { return dpm->ref_dp_length; } #endif /* the following function evaluates state E_1m for indices 1 and <m> and stores a backtrace reference */ static void E_1m(GthDPMatrix *dpm, unsigned char genomicchar, const unsigned char *ref_seq_tran, unsigned long m, GtAlphabet *gen_alphabet, GthDbl log_probies, GthDPOptionsEST *dp_options_est, GthDPOptionsCore *dp_options_core) { GthFlt value, maxvalue; GthPath retrace; GthDbl rval = 0.0, outputweight = 0.0; unsigned char referencechar = ref_seq_tran[m-1]; unsigned int gen_alphabet_mapsize = gt_alphabet_size(gen_alphabet); /* 0. */ rval = log_probies; ADDOUTPUTWEIGHT(rval,genomicchar,referencechar); if ((m < dp_options_est->wdecreasedoutput || m > dpm->ref_dp_length - dp_options_est->wdecreasedoutput) && genomicchar == referencechar) { ADDOUTPUTWEIGHT(outputweight, genomicchar, referencechar); rval -= (outputweight / 2.0); } maxvalue = (GthFlt) (dpm->score[DNA_E_STATE][0][m-1] + rval); retrace = DNA_E_NM; /* 1. */ outputweight = 0.0; rval = log_probies; ADDOUTPUTWEIGHT(rval,genomicchar,referencechar); if ((m < dp_options_est->wdecreasedoutput || m > dpm->ref_dp_length - dp_options_est->wdecreasedoutput) && genomicchar == referencechar) { ADDOUTPUTWEIGHT(outputweight, genomicchar, referencechar); rval -= (outputweight / 2.0); } value = (GthFlt) (dpm->score[DNA_I_STATE][0][m-1] + rval); /* intron from intronstart to n-1 => n-1 - intronstart + 1 */ if (1 - dpm->intronstart[0][m - 1] < dp_options_core->dpminintronlength) value -= dp_options_core->shortintronpenalty; UPDATEMAX(DNA_I_NM); /* 2. */ rval = log_probies; if (m < dpm->ref_dp_length) { ADDOUTPUTWEIGHT(rval, genomicchar, (unsigned char) DASH); } value = (GthFlt) (dpm->score[DNA_E_STATE][0][m] + rval); UPDATEMAX(DNA_E_N); /* 3. */ rval = log_probies; if (m < dpm->ref_dp_length) { ADDOUTPUTWEIGHT(rval, genomicchar, (unsigned char) DASH); } value = (GthFlt) (dpm->score[DNA_I_STATE][0][m] + rval); /* intron from intronstart to n-1 => n-1 - intronstart + 1 */ if (1 - dpm->intronstart[0][m] < dp_options_core->dpminintronlength) value -= dp_options_core->shortintronpenalty; UPDATEMAX(DNA_I_N); /* 4. */ rval = log_probies; ADDOUTPUTWEIGHT(rval, (unsigned char) DASH, referencechar); value = (GthFlt) (dpm->score[DNA_E_STATE][1][m-1] + rval); UPDATEMAX(DNA_E_M); /* 5. */ rval = dpm->score[DNA_I_STATE][1][m-1] + log_probies; ADDOUTPUTWEIGHT(rval, (unsigned char) DASH, referencechar); value = (GthFlt) (dpm->score[DNA_I_STATE][1][m-1] + rval); /* intron from intronstart to n => n - intronstart + 1 */ if (1 - dpm->intronstart[1][m - 1] + 1 < dp_options_core->dpminintronlength) value -= dp_options_core->shortintronpenalty; UPDATEMAX(DNA_I_M); /* save maximum values */ dpm->score[DNA_E_STATE][1][m] = maxvalue; dpm->path[0][m] |= (retrace << 4); switch (retrace) { case DNA_I_NM: case DNA_I_N: case DNA_I_M: dpm->exonstart[1][m] = 1; break; case DNA_E_NM: dpm->exonstart[1][m] = dpm->exonstart[0][m - 1]; break; case DNA_E_N: dpm->exonstart[1][m] = dpm->exonstart[0][m]; break; case DNA_E_M: dpm->exonstart[1][m] = dpm->exonstart[1][m - 1]; break; default: gt_assert(0); } } /* the following function evaluates state I_1m for indices 1 and <m> and stores a backtrace reference */ static void I_1m(GthDPMatrix *dpm, unsigned long m, GthDbl log_1minusprobies) { GthFlt value, maxvalue; GthPath retrace; /* 0. */ maxvalue = (GthFlt) (dpm->score[DNA_E_STATE][0][m] + log_1minusprobies); retrace = I_STATE_E_N; /* 1. */ value = (GthFlt) (dpm->score[DNA_I_STATE][0][m] + log_1minusprobies); UPDATEMAX(I_STATE_I_N); /* save maximum values */ dpm->score[DNA_I_STATE][1][m] = maxvalue; dpm->path[0][m] |= (retrace << 4); switch (retrace) { case I_STATE_E_N: /* begin of a new intron */ dpm->intronstart[1][m] = 1; break; case I_STATE_I_N: /* continue existing intron */ dpm->intronstart[1][m] = dpm->intronstart[0][m]; break; default: gt_assert(0); } } /* the following function evaluate the dynamic programming tables */ static void dna_complete_path_matrix(GthDPMatrix *dpm, const unsigned char *gen_seq_tran, const unsigned char *ref_seq_tran, unsigned long genomic_offset, GtAlphabet *gen_alphabet, GthDPParam *dp_param, GthDPOptionsEST *dp_options_est, GthDPOptionsCore *dp_options_core) { GthFlt value, maxvalue; GthPath retrace; unsigned long n, m, modn, modnminus1; GthDbl rval, outputweight, **outputweights, log_probies, /* initial exon state probability */ log_1minusprobies; /* initial intron state probability */ GthFlt log_probdelgen, /* deletion in genomic sequence */ log_1minusprobdelgen; unsigned char genomicchar, referencechar; unsigned int gen_alphabet_mapsize = gt_alphabet_size(gen_alphabet); gt_assert(dpm->gen_dp_length > 1); log_probies = (GthDbl) log((double) dp_options_est->probies); log_1minusprobies = (GthDbl) log(1.0 - dp_options_est->probies); log_probdelgen = (GthFlt) log((double) dp_options_est->probdelgen); log_1minusprobdelgen = (GthFlt) log(1.0 - dp_options_est->probdelgen); /* precompute outputweights XXX: move this to somewhere else, maybe make it smaller */ gt_array2dim_calloc(outputweights, UCHAR_MAX+1, UCHAR_MAX+1); for (n = 0; n <= UCHAR_MAX; n++) { for (m = 0; m <= UCHAR_MAX; m++) { ADDOUTPUTWEIGHT(outputweights[n][m], n, m); } } if (!genomic_offset) { /* handle case for n equals 1 */ dpm->path[0][0] |= UPPER_E_N; dpm->path[0][0] |= UPPER_I_STATE_I_N; /* stepping along the cDNA/EST sequence */ for (m = 1; m <= dpm->ref_dp_length; m++) { E_1m(dpm, gen_seq_tran[0], ref_seq_tran, m, gen_alphabet, log_probies, dp_options_est, dp_options_core); I_1m(dpm, m, log_1minusprobies); } } /* handle all other n's stepping along the genomic sequence */ if (genomic_offset) n = genomic_offset + 1; else n = 2; for (; n <= dpm->gen_dp_length; n++) { modn = GT_MOD2(n); modnminus1 = GT_MOD2(n-1); genomicchar = gen_seq_tran[n-1]; if (modn) { dpm->path[GT_DIV2(n)][0] |= UPPER_E_N; dpm->path[GT_DIV2(n)][0] |= UPPER_I_STATE_I_N; } else { dpm->path[GT_DIV2(n)][0] = DNA_E_N; dpm->path[GT_DIV2(n)][0] |= I_STATE_I_N; } /* stepping along the cDNA/EST sequence */ for (m = 1; m <= dpm->ref_dp_length; m++) { referencechar = ref_seq_tran[m-1]; /* evaluate E_nm */ /* 0. */ outputweight = 0.0; rval = (GthDbl) (log_1minusprobdelgen + dp_param->log_1minusPdonor[n-1]); rval += outputweights[genomicchar][referencechar]; if ((m < dp_options_est->wdecreasedoutput || m > dpm->ref_dp_length - dp_options_est->wdecreasedoutput) && genomicchar == referencechar) { outputweight += outputweights[genomicchar][referencechar]; rval -= (outputweight / 2.0); } maxvalue = (GthFlt) (dpm->score[DNA_E_STATE][modnminus1][m-1] + rval); retrace = DNA_E_NM; /* 1. */ outputweight = 0.0; rval = (GthDbl) (dp_param->log_Pacceptor[n-2] + log_1minusprobdelgen); rval += outputweights[genomicchar][referencechar]; if ((m < dp_options_est->wdecreasedoutput || m > dpm->ref_dp_length - dp_options_est->wdecreasedoutput) && genomicchar == referencechar) { outputweight += outputweights[genomicchar][referencechar]; rval -= (outputweight / 2.0); } value = (GthFlt) (dpm->score[DNA_I_STATE][modnminus1][m-1] + rval); /* intron from intronstart to n-1 => n-1 - intronstart + 1 */ if (n - dpm->intronstart[modnminus1][m - 1] < dp_options_core->dpminintronlength) { value -= dp_options_core->shortintronpenalty; } UPDATEMAX(DNA_I_NM); /* 2. */ rval = 0.0; if (m < dpm->ref_dp_length || n < dp_options_est->wzerotransition) rval += (log_1minusprobdelgen + dp_param->log_1minusPdonor[n-1]); if (m < dpm->ref_dp_length) rval += outputweights[genomicchar][DASH]; value = (GthFlt) (dpm->score[DNA_E_STATE][modnminus1][m] + rval); UPDATEMAX(DNA_E_N); /* 3. */ rval = (GthDbl) (dp_param->log_Pacceptor[n-2] + log_1minusprobdelgen); if (m < dpm->ref_dp_length) rval += outputweights[genomicchar][DASH]; value = (GthFlt) (dpm->score[DNA_I_STATE][modnminus1][m] + rval); /* intron from intronstart to n-1 => n-1 - intronstart + 1 */ if (n - dpm->intronstart[modnminus1][m] < dp_options_core->dpminintronlength) { value -= dp_options_core->shortintronpenalty; } UPDATEMAX(DNA_I_N); /* 4. */ rval = 0.0; if (n < dpm->gen_dp_length || m < dp_options_est->wzerotransition) rval = (GthDbl) log_probdelgen; if (n < dpm->gen_dp_length) rval += outputweights[DASH][referencechar]; value = (GthFlt) (dpm->score[DNA_E_STATE][modn][m-1] + rval); UPDATEMAX(DNA_E_M); /* 5. */ rval = 0.0; if (n < dpm->gen_dp_length) rval += (dp_param->log_Pacceptor[n-1] + log_probdelgen); if (n < dpm->gen_dp_length) rval += outputweights[DASH][referencechar]; value = (GthFlt) (dpm->score[DNA_I_STATE][modn][m-1] + rval); /* intron from intronstart to n => n - intronstart + 1 */ if (n - dpm->intronstart[modn][m - 1] + 1 < dp_options_core->dpminintronlength) { value -= dp_options_core->shortintronpenalty; } UPDATEMAX(DNA_I_M); /* save maximum values */ dpm->score[DNA_E_STATE][modn][m] = maxvalue; if (modn) dpm->path[GT_DIV2(n)][m] |= (retrace << 4); else dpm->path[GT_DIV2(n)][m] = retrace; switch (retrace) { case DNA_I_NM: case DNA_I_N: case DNA_I_M: dpm->exonstart[modn][m] = n; break; case DNA_E_NM: dpm->exonstart[modn][m] = dpm->exonstart[modnminus1][m - 1]; break; case DNA_E_N: dpm->exonstart[modn][m] = dpm->exonstart[modnminus1][m]; break; case DNA_E_M: dpm->exonstart[modn][m] = dpm->exonstart[modn][m - 1]; break; default: gt_assert(0); } /* evaluate I_nm */ /* 0. */ maxvalue = dpm->score[DNA_E_STATE][modnminus1][m] + (log_1minusprobdelgen + dp_param->log_Pdonor[n-1]); if (n - dpm->exonstart[modnminus1][m] < dp_options_core->dpminexonlength) { maxvalue -= dp_options_core->shortexonpenalty; } retrace = I_STATE_E_N; /* 1. */ value = dpm->score[DNA_I_STATE][modnminus1][m]; if (!dp_options_core->freeintrontrans && m < dpm->ref_dp_length) value += dp_param->log_1minusPacceptor[n-2]; UPDATEMAX(I_STATE_I_N); /* save maximum values */ dpm->score[DNA_I_STATE][modn][m] = maxvalue; if (modn) dpm->path[GT_DIV2(n)][m] |= (retrace << 4); else dpm->path[GT_DIV2(n)][m] |= retrace; switch (retrace) { case I_STATE_E_N: /* begin of a new intron */ dpm->intronstart[modn][m] = n; break; case I_STATE_I_N: /* continue existing intron */ dpm->intronstart[modn][m] = dpm->intronstart[modnminus1][m]; break; default: gt_assert(0); } } } /* free space */ gt_array2dim_delete(outputweights); } static void dna_include_exon(GthBacktracePath *backtrace_path, unsigned long exonlength) { /* at least one editoperation already saved */ gt_assert(gth_backtrace_path_length(backtrace_path)); while (exonlength) { /* XXX: The following would be the better solution, but leads to problems in the score computation, because the backtrace then ``produces genomic bases'' which are not present in the spliced sequence. gth_backtrace_path_add_deletion(backtrace_path); */ gth_backtrace_path_add_intron(backtrace_path); exonlength--; } } static void dna_include_intron(GthBacktracePath *backtrace_path, unsigned long intronlength) { /* at least one editoperation already saved */ gt_assert(gth_backtrace_path_length(backtrace_path)); while (intronlength) { gth_backtrace_path_add_intron(backtrace_path); intronlength--; } } static int dna_evaltracepath(GthBacktracePath *backtrace_path, GthDPMatrix *dpm, const unsigned char *ref_seq_tran, const unsigned char *gen_seq_tran, DnaStates actualstate, bool introncutout, GthSplicedSeq *spliced_seq, bool comments, bool noicinintroncheck, GthPathMatrix *pm, GtFile *outfp) { unsigned long genptr = dpm->gen_dp_length, last_genptr = 0, refptr = dpm->ref_dp_length; GthPath pathtype, pathtype_jt = 0; bool lower; gt_assert(!gth_backtrace_path_length(backtrace_path)); while ((genptr > 0) || (refptr > 0)) { /* here we map the quarter matrix bitvector stuff back on the simple Retrace types. Thereby, no further changes on the backtracing procedure are necessary. */ pathtype = dpm->path[GT_DIV2(genptr)][refptr]; if (dpm->path_jt) pathtype_jt = dpm->path_jt[GT_DIV2(genptr)][refptr]; lower = (bool) !GT_MOD2(genptr); if (lower) { if (actualstate == DNA_E_STATE) { pathtype &= LOWER_E_STATE_MASK; pathtype_jt &= LOWER_E_STATE_MASK; } else { pathtype &= LOWER_I_STATE_MASK; pathtype >>= 3; pathtype_jt &= LOWER_I_STATE_MASK; pathtype_jt >>= 3; } } else { if (actualstate == DNA_E_STATE) { pathtype &= UPPER_E_STATE_MASK; pathtype >>= 4; pathtype_jt &= UPPER_E_STATE_MASK; pathtype_jt >>= 4; } else { pathtype &= UPPER_I_STATE_MASK; pathtype >>= 7; pathtype_jt &= UPPER_I_STATE_MASK; pathtype_jt >>= 7; } } if (dpm->path_jt) { #if 0 printf("genptr=%lu, refptr=%lu\n", genptr, refptr); printf("pathtype=%d, pathtype_jt=%d\n", pathtype, pathtype_jt); #endif gt_assert(pathtype == pathtype_jt); } if (introncutout) { if (genptr > 0) { if (gth_spliced_seq_pos_is_border(spliced_seq, genptr - 1)) { /* ensure that introns are only included into already existing introns */ if (pathtype != DNA_I_N || !gth_backtrace_path_last_is_intron(backtrace_path)) { if (noicinintroncheck) { /* intron cutout in intron check disabled, include exon consisting of deletions */ if (genptr != last_genptr) { last_genptr = genptr; dna_include_exon(backtrace_path, gth_spliced_seq_border_length(spliced_seq, genptr - 1)); } } else { if (comments) { gt_file_xprintf(outfp, "%c abort backtracing, intron cutout " "at p=%s (genpos=%lu (actual strand!))\n", COMMENTCHAR, dna_showretracenames((DnaRetrace) pathtype), spliced_seq->positionmapping[genptr]); } return GTH_ERROR_CUTOUT_NOT_IN_INTRON; } } else { /* include intron */ dna_include_intron(backtrace_path, gth_spliced_seq_border_length(spliced_seq, genptr - 1)); } } } } if (pm) { gth_path_matrix_set_max_path(pm, genptr, refptr, actualstate == DNA_E_STATE); } switch (actualstate) { case DNA_E_STATE: /* we are currently in an exon state, the possible pathtypes for exon states are handled here */ switch (pathtype) { case DNA_E_NM: if (gen_seq_tran[genptr-1] == ref_seq_tran[refptr-1]) gth_backtrace_path_add_match(backtrace_path, false); else gth_backtrace_path_add_mismatch(backtrace_path); genptr--; refptr--; break; case DNA_I_NM: if (gen_seq_tran[genptr-1] == ref_seq_tran[refptr-1]) gth_backtrace_path_add_match(backtrace_path, false); else gth_backtrace_path_add_mismatch(backtrace_path); genptr--; refptr--; actualstate = DNA_I_STATE; break; case DNA_E_N: gth_backtrace_path_add_deletion(backtrace_path); genptr--; break; case DNA_I_N: gth_backtrace_path_add_deletion(backtrace_path); genptr--; actualstate = DNA_I_STATE; break; case DNA_E_M: gth_backtrace_path_add_insertion(backtrace_path); refptr--; break; case DNA_I_M: gth_backtrace_path_add_insertion(backtrace_path); refptr--; actualstate = DNA_I_STATE; break; default: gt_assert(0); } break; case DNA_I_STATE: /* we are currently in an intron state, the possible pathtypes for intron states are handled here */ switch (pathtype) { case DNA_E_N: gth_backtrace_path_add_intron(backtrace_path); genptr--; actualstate = DNA_E_STATE; break; case DNA_I_N: gth_backtrace_path_add_intron(backtrace_path); genptr--; break; default: gt_assert(0); } break; default: gt_assert(0); } } /* genptr is at start of genseq */ gt_assert(genptr == 0); /* refptr is at start of refseq */ gt_assert(refptr == 0); if (pm) gth_path_matrix_set_max_path(pm, genptr, refptr, actualstate); return 0; } static int dna_find_optimal_path(GthBacktracePath *backtrace_path, GthDPMatrix *dpm, const unsigned char *ref_seq_tran, const unsigned char *gen_seq_tran, bool introncutout, GthSplicedSeq *spliced_seq, bool comments, bool noicinintroncheck, bool useintron, /* XXX */ GthPathMatrix *pm, GtFile *outfp) { int rval; GthFlt value, maxvalue; GthPath retrace; DnaStates state; if (useintron) { retrace = DNA_I_STATE; } else { maxvalue = dpm->score[DNA_E_STATE][GT_MOD2(dpm->gen_dp_length)][dpm->ref_dp_length]; retrace = DNA_E_STATE; for (state = (DnaStates) 1; state < DNA_NUMOFSTATES; state++) { value = dpm->score[state][GT_MOD2(dpm->gen_dp_length)] [dpm->ref_dp_length]; UPDATEMAX(state); } } if ((rval = dna_evaltracepath(backtrace_path, dpm, ref_seq_tran, gen_seq_tran, (DnaStates) retrace, introncutout, spliced_seq, comments, noicinintroncheck, pm, outfp))) { return rval; } gt_assert(gth_backtrace_path_is_valid(backtrace_path)); return 0; } /* the following function frees the DP tables for cDNAs/ESTs */ static void dp_matrix_free(GthDPMatrix *dpm) { unsigned long t, n; /* freeing space for dpm->intronstart and dpm->exonstart */ for (n = 0; n < DNA_NUMOFSCORETABLES; n++) { gt_free(dpm->intronstart[n]); gt_free(dpm->exonstart[n]); } /* freeing space for dpm->score */ for (t = DNA_E_STATE; t < DNA_NUMOFSTATES; t++) { for (n = 0; n < DNA_NUMOFSCORETABLES; n++) gt_free(dpm->score[t][n]); } /* freeing space for dpm->path */ gth_array2dim_plain_delete(dpm->path); if (dpm->path_jt) gt_array2dim_delete(dpm->path_jt); } #if 0 static GthFlt dp_matrix_get_score_e_state(DPMatrix *dpm, unsigned long n, unsigned long m) { gt_assert(dpm && n < dpm->gen_dp_length && m < dpm->ref_dp_length); return dpm->score[DNA_E_STATE][GT_MOD2(n)][m]; } static GthFlt dp_matrix_get_score_i_state(DPMatrix *dpm, unsigned long n, unsigned long m) { gt_assert(dpm && n < dpm->gen_dp_length && m < dpm->ref_dp_length); return dpm->score[DNA_I_STATE][GT_MOD2(n)][m]; } static void dp_matrix_set_score_e_state(DPMatrix *dpm, unsigned long n, unsigned long m, GthFlt score) { gt_assert(dpm && n < dpm->gen_dp_length && m < dpm->ref_dp_length); dpm->score[DNA_E_STATE][GT_MOD2(n)][m] = score; } static void dp_matrix_set_score_i_state(DPMatrix *dpm, unsigned long n, unsigned long m, GthFlt score) { gt_assert(dpm && n < dpm->gen_dp_length && m < dpm->ref_dp_length); dpm->score[DNA_I_STATE][GT_MOD2(n)][m] = score; } static unsigned long dp_matrix_get_intronstart(DPMatrix *dpm, unsigned long n, unsigned long m) { gt_assert(dpm && n < dpm->gen_dp_length && m < dpm->ref_dp_length); return dpm->intronstart[GT_MOD2(n)][m]; } static void dp_matrix_set_intronstart(DPMatrix *dpm, unsigned long n, unsigned long m, unsigned long start) { gt_assert(dpm && n < dpm->gen_dp_length && m < dpm->ref_dp_length); dpm->intronstart[GT_MOD2(n)][m] = start; } static unsigned long dp_matrix_get_exonstart(DPMatrix *dpm, unsigned long n, unsigned long m) { gt_assert(dpm && n < dpm->gen_dp_length && m < dpm->ref_dp_length); return dpm->exonstart[GT_MOD2(n)][m]; } static void dp_matrix_set_exonstart(DPMatrix *dpm, unsigned long n, unsigned long m, unsigned long start) { gt_assert(dpm && n < dpm->gen_dp_length && m < dpm->ref_dp_length); dpm->exonstart[GT_MOD2(n)][m] = start; } static DnaRetrace dp_matrix_get_retrace_e_state(DPMatrix *dpm, unsigned long n, unsigned long m) { GthPath pathtype; gt_assert(dpm && n < dpm->gen_dp_length && m < dpm->ref_dp_length); pathtype = dpm->path[GT_DIV2(n)][m]; if (!GT_MOD2(n)) { pathtype &= LOWER_E_STATE_MASK; } else { pathtype &= UPPER_E_STATE_MASK; pathtype >>= 4; } return pathtype; } static DnaRetrace dp_matrix_get_retrace_i_state(DPMatrix *dpm, unsigned long n, unsigned long m) { GthPath pathtype; gt_assert(dpm && n < dpm->gen_dp_length && m < dpm->ref_dp_length); pathtype = dpm->path[GT_DIV2(n)][m]; if (!GT_MOD2(n)) { pathtype &= LOWER_I_STATE_MASK; pathtype >>= 3; } else { pathtype &= UPPER_I_STATE_MASK; pathtype >>= 7; } return pathtype; } static void dp_matrix_set_retrace_e_state(DPMatrix *dpm, unsigned long n, unsigned long m, DnaRetrace retrace) { gt_assert(dpm && n < dpm->gen_dp_length && m < dpm->ref_dp_length); gt_assert(retrace < DNA_NUMOFRETRACE); if (!GT_MOD2(n)) { dpm->path[GT_DIV2(n)][m] &= ~LOWER_E_STATE_MASK; dpm->path[GT_DIV2(n)][m] |= retrace; } else { dpm->path[GT_DIV2(n)][m] &= ~UPPER_E_STATE_MASK; dpm->path[GT_DIV2(n)][m] |= retrace << 4; } } static void dp_matrix_set_retrace_i_state(DPMatrix *dpm, unsigned long n, unsigned long m, DnaRetrace retrace) { gt_assert(dpm && n < dpm->gen_dp_length && m < dpm->ref_dp_length); gt_assert(retrace == DNA_I_N || retrace == DNA_E_N); if (!GT_MOD2(n)) { dpm->path[GT_DIV2(n)][m] &= ~LOWER_I_STATE_MASK; dpm->path[GT_DIV2(n)][m] |= retrace << 3; } else { dpm->path[GT_DIV2(n)][m] &= ~UPPER_I_STATE_MASK; dpm->path[GT_DIV2(n)][m] |= retrace << 7; } } #endif #if 0 static void dp_matrix_copy_terminal(DPMatrix *dpm_terminal, DPMatrix *dpm, unsigned long genomic_offset, unsigned long genomic_overlap, unsigned long reference_offset) { GthFlt score; unsigned long n, m, start; DnaRetrace retrace; gt_assert(dpm_terminal && dpm); /* copy last score, intronstart, and exonstart row */ n = genomic_overlap - 1; for (m = 0; m < dp_matrix_get_reference_length(dpm_terminal); m++) { score = dp_matrix_get_score_e_state(dpm, n + genomic_offset, m + reference_offset); dp_matrix_set_score_e_state(dpm_terminal, n, m, score); score = dp_matrix_get_score_i_state(dpm, n + genomic_offset, m + reference_offset); dp_matrix_set_score_i_state(dpm_terminal, n, m, score); start = dp_matrix_get_intronstart(dpm, n + genomic_offset, m + reference_offset); dp_matrix_set_intronstart(dpm_terminal, n, m, start); start = dp_matrix_get_exonstart(dpm, n + genomic_offset, m + reference_offset); dp_matrix_set_exonstart(dpm_terminal, n, m, start); } /* copy path matrix */ for (n = 0; n < genomic_overlap; n++) { for (m = 0; m < dp_matrix_get_reference_length(dpm_terminal); m++) { retrace = dp_matrix_get_retrace_e_state(dpm, n + genomic_offset, m + reference_offset); dp_matrix_set_retrace_e_state(dpm_terminal, n, m, retrace); retrace = dp_matrix_get_retrace_i_state(dpm, n + genomic_offset, m + reference_offset); dp_matrix_set_retrace_i_state(dpm_terminal, n, m, retrace); } } } #endif /* XXX */ #define DETECT_SMALL_EXONS_DP_LENGTH 100000 #define DETECT_SMALL_EXONS_EXTRA_OVERLAP 0 static void detect_small_terminal_exons(GthSA *sa, unsigned long gen_dp_start, const unsigned char *gen_seq_tran, unsigned long gen_dp_length, const unsigned char *ref_seq_tran, unsigned long ref_dp_length, const GtRange *gen_seq_bounds, bool comments, GthSpliceSiteModel *splice_site_model, GtAlphabet *gen_alphabet, GT_UNUSED GthDPMatrix *dpm, GthDPOptionsEST *dp_options_est, GthDPOptionsCore *dp_options_core, GthStat *stat, GtFile *outfp) { unsigned long gen_dp_start_terminal, gen_dp_length_terminal, ref_dp_start_terminal, ref_dp_length_terminal; GthDPParam *dp_param_terminal; GthDPMatrix dpm_terminal; GthBacktracePath *backtrace_path; GthDPOptionsCore *dp_options_core_terminal; GthDPOptionsEST *dp_options_est_terminal; GT_UNUSED int rval; /*XXX*/ /* determine positions of terminal DP */ gen_dp_start_terminal = gen_dp_start + gen_dp_length - gth_sa_genomiccutoff_end(sa); if (gen_dp_start_terminal >= gen_seq_bounds->end) return; gen_dp_length_terminal = gth_sa_genomiccutoff_end(sa) + DETECT_SMALL_EXONS_DP_LENGTH; ref_dp_start_terminal = 0 + ref_dp_length - gth_sa_referencecutoff_end(sa); ref_dp_length_terminal = gth_sa_referencecutoff_end(sa) + DETECT_SMALL_EXONS_EXTRA_OVERLAP; if (comments) { gt_file_xprintf(outfp, "%c detect_small_terminal_exons():\n", COMMENTCHAR); gt_file_xprintf(outfp, "%c gen_dp_start_terminal=%lu\n", COMMENTCHAR, gen_dp_start_terminal); gt_file_xprintf(outfp, "%c gen_dp_length_terminal=%lu\n", COMMENTCHAR, gen_dp_length_terminal); gt_file_xprintf(outfp, "%c gen_dp_length=%lu\n", COMMENTCHAR, gen_dp_length); gt_file_xprintf(outfp, "%c gen_seq_bounds=%lu, %lu\n", COMMENTCHAR, gen_seq_bounds->start, gen_seq_bounds->end); } if (gen_dp_start_terminal + gen_dp_length_terminal - 1 > gen_seq_bounds->end) { gen_dp_length_terminal -= gen_dp_start_terminal + gen_dp_length_terminal - 1 - gen_seq_bounds->end; gt_assert(gen_dp_start_terminal + gen_dp_length_terminal - 1 == gen_seq_bounds->end); } gt_assert(gen_dp_start_terminal + gen_dp_length_terminal - 1 <= gen_seq_bounds->end); if (comments) { gt_file_xprintf(outfp, "%c gen_dp_start_terminal=%lu\n", COMMENTCHAR, gen_dp_start_terminal); gt_file_xprintf(outfp, "%c gen_dp_length_terminal=%lu\n", COMMENTCHAR, gen_dp_length_terminal); } if (dp_matrix_init(&dpm_terminal, gen_dp_length_terminal, ref_dp_length_terminal, 0, false, NULL, stat)) { /* out of memory */ return; } dp_param_terminal = gth_dp_param_new_with_range(gen_dp_start_terminal, gen_dp_start_terminal + gen_dp_length_terminal - 1, gen_seq_tran, gen_seq_bounds, splice_site_model, gen_alphabet); if (!dp_param_terminal) { /* out of memory */ dp_matrix_free(&dpm_terminal); return; } dp_options_core_terminal = gth_dp_options_core_clone(dp_options_core); dp_options_est_terminal = gth_dp_options_est_clone(dp_options_est); /* XXX */ #if 0 dp_options_est_terminal->wzerotransition = 0; /* XXX */ dp_options_est_terminal->wdecreasedoutput = 0; /* XXX */ dp_options_core_terminal->freeintrontrans = true; #endif #if 0 dp_matrix_copy_terminal(&dpm_terminal, dpm, dpm->gen_dp_length - gth_sa_genomiccutoff_end(sa), gth_sa_genomiccutoff_end(sa), ref_dp_length - ref_dp_length_terminal); #endif dna_complete_path_matrix(&dpm_terminal, gen_seq_tran + gen_dp_start_terminal, ref_seq_tran + ref_dp_length - ref_dp_length_terminal, /*gth_sa_genomiccutoff_end(sa), */ 0, gen_alphabet, dp_param_terminal, dp_options_est_terminal, dp_options_core_terminal); backtrace_path = gth_backtrace_path_new(gen_dp_start_terminal, gen_dp_length_terminal, ref_dp_start_terminal, ref_dp_length_terminal); gth_backtrace_path_set_alphatype(backtrace_path, DNA_ALPHA); rval = dna_find_optimal_path(backtrace_path, &dpm_terminal, ref_seq_tran + ref_dp_length - ref_dp_length_terminal, gen_seq_tran + gen_dp_start_terminal, false, NULL, comments, false, false, NULL, outfp); gt_assert(!rval); gt_assert(gth_sa_is_valid(sa)); /* XXX */ gth_sa_cutoff_end(sa); gt_assert(gth_sa_is_valid(sa)); /* XXX */ gth_sa_append(sa, backtrace_path); gt_assert(gth_sa_is_valid(sa)); /* XXX */ gth_backtrace_path_delete(backtrace_path); gth_dp_param_delete(dp_param_terminal); dp_matrix_free(&dpm_terminal); gth_dp_options_core_delete(dp_options_core_terminal); gth_dp_options_est_delete(dp_options_est_terminal); } static void detect_small_initial_exons(GthSA *sa, unsigned long *gen_dp_start, const unsigned char *gen_seq_tran, unsigned long gen_dp_length, const unsigned char *ref_seq_tran, const GtRange *gen_seq_bounds, bool showeops, bool comments, GthSpliceSiteModel *splice_site_model, GtAlphabet *gen_alphabet, GthDPOptionsEST *dp_options_est, GthDPOptionsCore *dp_options_core, GthStat *stat, GtFile *outfp) { unsigned long gen_dp_start_initial, gen_dp_length_initial, ref_dp_start_initial, ref_dp_length_initial; GthDPParam *dp_param_initial; GthDPMatrix dpm_initial; GthBacktracePath *backtrace_path; GthPathWalker *path_walker = NULL; /* XXX */ GT_UNUSED int rval; /*XXX*/ if (comments) { gt_file_xprintf(outfp, "%c detect_small_initial_exons():\n", COMMENTCHAR); gt_file_xprintf(outfp, "%c gen_dp_start=%lu\n", COMMENTCHAR, *gen_dp_start); gt_file_xprintf(outfp, "%c DETECT_SMALL_EXONS_DP_LENGTH=%d\n", COMMENTCHAR, DETECT_SMALL_EXONS_DP_LENGTH); gt_file_xprintf(outfp, "%c genomic_cutoff=%lu\n", COMMENTCHAR, gth_sa_genomiccutoff_start(sa)); } /* determine positions of initial DP */ ref_dp_start_initial = 0; /* XXX */ ref_dp_length_initial = gth_sa_referencecutoff_start(sa) + DETECT_SMALL_EXONS_EXTRA_OVERLAP; if (*gen_dp_start >= DETECT_SMALL_EXONS_DP_LENGTH + gth_sa_genomiccutoff_start(sa)) { gen_dp_start_initial = *gen_dp_start - DETECT_SMALL_EXONS_DP_LENGTH; gen_dp_length_initial = gth_sa_genomiccutoff_start(sa) + DETECT_SMALL_EXONS_DP_LENGTH; } else { gen_dp_start_initial = 0; gen_dp_length_initial = *gen_dp_start + gth_sa_genomiccutoff_start(sa); } path_walker = gth_path_walker_new(gth_sa_backtrace_path(sa), true); gth_path_walker_try_steps(path_walker, 10); /* XXX */ gen_dp_length_initial += gth_path_walker_gen_distance(path_walker); ref_dp_length_initial += gth_path_walker_ref_distance(path_walker); if (comments) { gt_file_xprintf(outfp, "%c detect_small_initial_exons():\n", COMMENTCHAR); gth_path_walker_show(path_walker, outfp); gt_file_xprintf(outfp, "%c gen_dp_start=%lu\n", COMMENTCHAR, *gen_dp_start); gt_file_xprintf(outfp, "%c gen_dp_start_initial=%lu\n", COMMENTCHAR, gen_dp_start_initial); gt_file_xprintf(outfp, "%c gen_dp_length_initial=%lu\n", COMMENTCHAR, gen_dp_length_initial); gt_file_xprintf(outfp, "%c gen_dp_length=%lu\n", COMMENTCHAR, gen_dp_length); } if (gen_dp_start_initial + gen_dp_length_initial - 1 > gen_seq_bounds->end) { gen_dp_length_initial -= gen_seq_bounds->end - gen_dp_start_initial + gen_dp_length_initial - 1; } gt_assert(gen_dp_start_initial + gen_dp_length_initial - 1 < gen_seq_bounds->end); if (dp_matrix_init(&dpm_initial, gen_dp_length_initial, ref_dp_length_initial, 0, false, NULL, stat)) { /* out of memory */ return; } dp_param_initial = gth_dp_param_new_with_range(gen_dp_start_initial, gen_dp_start_initial + gen_dp_length_initial - 1, gen_seq_tran, gen_seq_bounds, splice_site_model, gen_alphabet); if (!dp_param_initial) { /* out of memory */ dp_matrix_free(&dpm_initial); return; } dna_complete_path_matrix(&dpm_initial, gen_seq_tran + gen_dp_start_initial, ref_seq_tran, 0, gen_alphabet, dp_param_initial, dp_options_est, dp_options_core); backtrace_path = gth_backtrace_path_new(gen_dp_start_initial, gen_dp_length_initial, ref_dp_start_initial, ref_dp_length_initial); gth_backtrace_path_set_alphatype(backtrace_path, DNA_ALPHA); rval = dna_find_optimal_path(backtrace_path, &dpm_initial, ref_seq_tran, gen_seq_tran + gen_dp_start_initial, false, NULL, comments, false, false, NULL, outfp); gt_assert(!rval); gt_assert(gth_sa_is_valid(sa)); /* XXX */ gth_sa_cutoff_start(sa); gt_assert(gth_sa_is_valid(sa)); /* XXX */ gth_sa_cutoff_walked_path(sa, path_walker, showeops, outfp); gt_assert(gth_sa_is_valid(sa)); /* XXX */ if (comments) gth_backtrace_path_show(backtrace_path, false, 0, NULL); gth_sa_prepend(sa, backtrace_path); gt_assert(gth_sa_is_valid(sa)); /* XXX */ gth_path_walker_delete(path_walker); gth_backtrace_path_delete(backtrace_path); gth_dp_param_delete(dp_param_initial); dp_matrix_free(&dpm_initial); *gen_dp_start = gen_dp_start_initial; } static void detect_small_exons(GthSA *sa, unsigned long *gen_dp_start, const unsigned char *gen_seq_tran, unsigned long gen_dp_length, const unsigned char *ref_seq_tran, unsigned long ref_dp_length, const GtRange *gen_seq_bounds, bool showeops, bool comments, GthSpliceSiteModel *splice_site_model, GtAlphabet *gen_alphabet, GthDPMatrix *dpm, GthDPOptionsEST *dp_options_est, GthDPOptionsCore *dp_options_core, GthStat *stat, GtFile *outfp) { gt_assert(sa); if (gth_sa_referencecutoff_end(sa)) { /* XXX: relax condition */ /* the cDNA has not been aligned completely -> try to align end again */ detect_small_terminal_exons(sa, *gen_dp_start, gen_seq_tran, gen_dp_length, ref_seq_tran, ref_dp_length, gen_seq_bounds, comments, splice_site_model, gen_alphabet, dpm, dp_options_est, dp_options_core, stat, outfp); } #if 0 if (gth_sa_referencecutoff_start(sa)) { /* XXX: relax condition */ #endif /* the cDNA has not been aligned completely -> try to align start again */ detect_small_initial_exons(sa, gen_dp_start, gen_seq_tran, gen_dp_length, ref_seq_tran, gen_seq_bounds, showeops, comments, splice_site_model, gen_alphabet, dp_options_est, dp_options_core, stat, outfp); #if 0 } #endif } int gth_align_dna(GthSA *sa, GtArray *gen_ranges, const unsigned char *gen_seq_tran, GT_UNUSED const unsigned char *gen_seq_orig, const unsigned char *ref_seq_tran, const unsigned char *ref_seq_orig, unsigned long ref_dp_length, GtAlphabet *gen_alphabet, GtAlphabet *ref_alphabet, bool introncutout, unsigned long autoicmaxmatrixsize, bool showeops, bool comments, bool gs2out, const GtRange *gen_seq_bounds, GthSpliceSiteModel *splice_site_model, GthDPOptionsCore *dp_options_core, GthDPOptionsEST *dp_options_est, GthDPOptionsPostpro *dp_options_postpro, GthDNACompletePathMatrixJT dna_complete_path_matrix_jt, GthJumpTable *jump_table, unsigned long ref_offset, GthStat *stat, GtFile *outfp) { unsigned long gen_dp_start, gen_dp_end, gen_dp_length; GthSplicedSeq *spliced_seq = NULL; GthPathMatrix *pm = NULL; GthDPParam *dp_param; GthDPMatrix dpm; int rval; gt_assert(gen_ranges); /* initialization */ gen_dp_start = ((GtRange*) gt_array_get_first(gen_ranges))->start; gen_dp_end = ((GtRange*) gt_array_get_last(gen_ranges))->end; gt_assert(gen_dp_start <= gen_dp_end); gen_dp_length = gen_dp_end - gen_dp_start + 1; dp_param = gth_dp_param_new(gen_ranges, gen_seq_tran, gen_seq_bounds, splice_site_model, gen_alphabet); if (!dp_param) return GTH_ERROR_DP_PARAMETER_ALLOCATION_FAILED; if (introncutout) { spliced_seq = gth_spliced_seq_new_with_comments(gen_seq_tran, gen_ranges, comments, outfp); } if ((rval = dp_matrix_init(&dpm, introncutout ? spliced_seq->splicedseqlen : gen_dp_length, ref_dp_length, autoicmaxmatrixsize, introncutout, jump_table, stat))) { gth_dp_param_delete(dp_param); gth_spliced_seq_delete(spliced_seq); return rval; } gth_sa_set(sa, DNA_ALPHA, gen_dp_start, gen_dp_length); /* calculation */ if (jump_table) { gt_assert(dna_complete_path_matrix_jt); dna_complete_path_matrix_jt(&dpm, introncutout ? spliced_seq->splicedseq : gen_seq_tran + gen_dp_start, ref_seq_tran, 0, gen_alphabet, dp_param, dp_options_est, dp_options_core, jump_table, gen_ranges, ref_dp_length, ref_offset, &pm); } else { dna_complete_path_matrix(&dpm, introncutout ? spliced_seq->splicedseq : gen_seq_tran + gen_dp_start, ref_seq_tran, 0, gen_alphabet, dp_param, dp_options_est, dp_options_core); } /* debugging */ if (!dpm.path_jt && dp_options_core->btmatrixgenrange.start != GT_UNDEF_ULONG) { pm = gth_path_matrix_new(dpm.path, dpm.gen_dp_length, dpm.ref_dp_length, &dp_options_core->btmatrixgenrange, &dp_options_core->btmatrixrefrange, NULL); } /* backtracing */ if ((rval = dna_find_optimal_path(gth_sa_backtrace_path(sa), &dpm, ref_seq_tran, introncutout ? spliced_seq->splicedseq : gen_seq_tran + gen_dp_start, introncutout, spliced_seq, comments, dp_options_core->noicinintroncheck, false, pm, outfp))) { if (rval == GTH_ERROR_CUTOUT_NOT_IN_INTRON) { dp_matrix_free(&dpm); gth_dp_param_delete(dp_param); gth_spliced_seq_delete(spliced_seq); } return rval; } if (pm) { gth_path_matrix_show(pm); gth_path_matrix_delete(pm); } /* intron cutout is done after this point */ if (showeops) { gt_file_xprintf(outfp, "showeops (before cutoffs): "); gth_backtrace_path_show(gth_sa_backtrace_path(sa), false, 0, outfp); } /* determine cutoffs if not switched off by command line option */ gth_sa_determine_cutoffs(sa, dp_options_postpro->leadcutoffsmode, dp_options_postpro->termcutoffsmode, dp_options_postpro->cutoffsminexonlen); if (showeops) { gt_file_xprintf(outfp, "showeops (after cutoffs): "); gth_backtrace_path_show(gth_sa_backtrace_path(sa), false, 0, outfp); } /* remove zero base exons */ gth_sa_remove_zero_base_exons(sa, stat); /* try to detect small exons */ if (dp_options_est->detectsmallexons) { if (gth_sa_get_editoperations_length(sa)) { /* only try to detect small exons if the alignment does not already have length 0 */ detect_small_exons(sa, &gen_dp_start, gen_seq_tran, gen_dp_length, ref_seq_tran, ref_dp_length, gen_seq_bounds, showeops, comments, splice_site_model, gen_alphabet, &dpm, dp_options_est, dp_options_core, stat, outfp); gth_sa_determine_cutoffs(sa, dp_options_postpro->leadcutoffsmode, dp_options_postpro->termcutoffsmode, dp_options_postpro->cutoffsminexonlen); if (showeops) { gt_file_xprintf(outfp, "showeops (after small exon detection): "); gth_backtrace_path_show(gth_sa_backtrace_path(sa), false, 0, outfp); } } } /* compute borders and scores */ gth_compute_scores(sa, false, dp_param, dp_options_est, gen_seq_tran + gen_dp_start, ref_seq_tran, ref_seq_orig, NULL, gen_dp_start, dp_options_postpro->scoreminexonlen, introncutout, gs2out, spliced_seq, ref_dp_length, gen_alphabet, ref_alphabet, NULL); /* free space */ dp_matrix_free(&dpm); gth_dp_param_delete(dp_param); gth_spliced_seq_delete(spliced_seq); return 0; } GthSA* gth_align_dna_simple(GthInput *input, const GtRange *gen_range, unsigned long gen_file_num, unsigned long gen_seq_num, bool gen_strand_forward, unsigned long ref_file_num, unsigned long ref_seq_num, GthSpliceSiteModel *splice_site_model) { GthDPOptionsCore *dp_options_core; GthDPOptionsEST *dp_options_est; GthDPOptionsPostpro *dp_options_postpro; GtRange gen_seq_bounds, ref_seq_bounds; GtArray *gen_ranges; GthStat *stat; GthSA *sa; int rval; dp_options_core = gth_dp_options_core_new(); dp_options_est = gth_dp_options_est_new(); dp_options_postpro = gth_dp_options_postpro_new(); stat = gth_stat_new(); gen_seq_bounds = gth_input_get_genomic_range(input, gen_file_num, gen_seq_num); gt_assert(gen_range->start >= gen_seq_bounds.start); gt_assert(gen_range->end <= gen_seq_bounds.end); gth_input_load_reference_file(input, ref_file_num, true); ref_seq_bounds = gth_input_get_reference_range(input, ref_file_num, ref_seq_num); sa = gth_sa_new_and_set(gen_strand_forward, true, input, gen_file_num, gen_seq_num, ref_file_num, ref_seq_num, 1, gt_range_length(&gen_seq_bounds), gen_seq_bounds.start, gt_range_length(&ref_seq_bounds)); gen_ranges = gt_array_new(sizeof (GtRange)); gt_array_add_elem(gen_ranges, (void*) gen_range, sizeof (GtRange)); rval = gth_align_dna(sa, gen_ranges, gen_strand_forward ? gth_input_current_gen_seq_tran(input) : gth_input_current_gen_seq_tran_rc(input), gen_strand_forward ? gth_input_current_gen_seq_orig(input) : gth_input_current_gen_seq_orig_rc(input), gth_input_current_ref_seq_tran(input), gth_input_current_ref_seq_orig(input), gt_range_length(&ref_seq_bounds), gth_input_current_gen_alphabet(input), gth_input_current_ref_alphabet(input), false, 0, false, false, false, &gen_seq_bounds, splice_site_model, dp_options_core, dp_options_est, dp_options_postpro, NULL, NULL, 0, stat, NULL); if (rval) { gth_sa_delete(sa); sa = NULL; } gt_array_delete(gen_ranges); gth_stat_delete(stat); gth_dp_options_postpro_delete(dp_options_postpro); gth_dp_options_est_delete(dp_options_est); gth_dp_options_core_delete(dp_options_core); return sa; }
bioh4x/NeatFreq
lib/genometools-1.4.1/src/gth/align_dna.c
C
gpl-2.0
55,297
/* * Meraki board data config driver * * Copyright (C) 2013 Cisco Systems, Inc. * * 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; version 2 of the License. */ #include <linux/init.h> #include <linux/module.h> #include <linux/slab.h> #include <linux/platform_device.h> #include <linux/i2c.h> #include <linux/device.h> #include <linux/fs.h> #include <linux/of.h> #include <linux/of_i2c.h> #include <linux/of_gpio.h> #include <linux/miscdevice.h> #include <linux/uaccess.h> #include <linux/i2c/at24.h> #include <linux/meraki/board_data.h> #include <linux/meraki/meraki_config.h> static struct memory_accessor *eeprom_accessor = NULL; static struct device *config_dev = NULL; static int wp_gpio = -1; static bool wp_low = false; #define MERAKI_CONFIG_EEPROM_SIZE 8192 struct board_table_element { const char *board_name; int board_type; }; static const struct board_table_element board_table[] = { { "meraki_MS220-48 600-21030", MERAKI_BOARD_MS220_48 }, { "meraki_MS220-48LP 600-21040", MERAKI_BOARD_MS220_48LP }, { "meraki_MS220-48FP 600-21050", MERAKI_BOARD_MS220_48FP }, { "meraki_MS220-24 600-20030", MERAKI_BOARD_MS220_24 }, { "meraki_MS220-24P 600-20040", MERAKI_BOARD_MS220_24P }, { "meraki_MS320-24 600-20050", MERAKI_BOARD_MS320_24 }, { "meraki_MS320-24P 600-20060", MERAKI_BOARD_MS320_24P }, { "meraki_MS320-48 600-21060", MERAKI_BOARD_MS320_48 }, { "meraki_MS320-48LP 600-21070", MERAKI_BOARD_MS320_48LP }, { "meraki_MS320-48FP 600-21080", MERAKI_BOARD_MS320_48FP }, { "meraki_MS420-24 600-29020", MERAKI_BOARD_MS420_24 }, { "meraki_MS420-48 600-29010", MERAKI_BOARD_MS420_48 }, }; #if defined(CONFIG_OF) static const struct of_device_id meraki_config_dt_ids[] = { { .compatible = "meraki,meraki-config" }, }; #endif static DEFINE_MUTEX(fops_lock); // Too big for stack. Since reads and writes are mutex-protected we // can make this a static variable. static uint8_t meraki_config_buf[MERAKI_CONFIG_EEPROM_SIZE]; static ssize_t meraki_config_board_data_read(struct file* f, char __user *buf, size_t count, loff_t* offset) { ssize_t ret = 0; if (!eeprom_accessor) return -ENODEV; if (*offset >= MERAKI_CONFIG_EEPROM_SIZE) return 0; if (count > (MERAKI_CONFIG_EEPROM_SIZE - *offset)) count = MERAKI_CONFIG_EEPROM_SIZE - *offset; mutex_lock(&fops_lock); ret = eeprom_accessor->read(eeprom_accessor, meraki_config_buf, *offset, count); mutex_unlock(&fops_lock); if (ret > 0 && copy_to_user(buf, meraki_config_buf, ret)) { ret = -EFAULT; } if (ret > 0) *offset += ret; return ret; } static ssize_t meraki_config_board_data_write(struct file* f, const char __user *buf, size_t count, loff_t* offset) { ssize_t ret = 0; if (!eeprom_accessor) return -ENODEV; if (*offset >= MERAKI_CONFIG_EEPROM_SIZE) return 0; if (count > (MERAKI_CONFIG_EEPROM_SIZE - *offset)) count = MERAKI_CONFIG_EEPROM_SIZE - *offset; if (copy_from_user(meraki_config_buf, buf, count)) ret = -EFAULT; else { mutex_lock(&fops_lock); if (wp_gpio >= 0) gpio_set_value(wp_gpio, !wp_low); ret = eeprom_accessor->write(eeprom_accessor, meraki_config_buf, *offset, count); if (wp_gpio >= 0) gpio_set_value(wp_gpio, wp_low); mutex_unlock(&fops_lock); } if (ret > 0) *offset += ret; return ret; } static loff_t meraki_config_board_data_llseek(struct file* f, loff_t offset, int orig) { loff_t new_offset; switch (orig) { case SEEK_SET: new_offset = offset; break; case SEEK_CUR: new_offset = f->f_pos + offset; break; case SEEK_END: new_offset = MERAKI_CONFIG_EEPROM_SIZE + offset; break; default: return -EINVAL; } if (new_offset >= MERAKI_CONFIG_EEPROM_SIZE || new_offset < 0) return -EINVAL; f->f_pos = new_offset; return new_offset; } int meraki_config_get_product() { struct ar531x_boarddata board_data; int i, retries = 5, ret; ssize_t count = 0, board_name_len; unsigned short csum; if (!eeprom_accessor) { return MERAKI_BOARD_UNKNOWN; } do { ret = eeprom_accessor->read(eeprom_accessor, ((char *)&board_data) + count, count, sizeof(board_data) - count); if (ret < 0) continue; count += ret; if (count >= sizeof(board_data)) break; } while (--retries); if (!retries) { dev_warn(config_dev, "Failure to read from eeprom\n"); return MERAKI_BOARD_UNKNOWN; } if (ntohl(board_data.magic) != AR531X_BD_MAGIC) { dev_warn(config_dev, "Board data has bad magic field\n"); return MERAKI_BOARD_UNKNOWN; } csum = calc_board_data_checksum(&board_data); if (csum != 0 && csum != ntohs(board_data.cksum)) { dev_warn(config_dev, "Board data has bad checksum\n"); return MERAKI_BOARD_UNKNOWN; } for (i = 0; i < ARRAY_SIZE(board_table); ++i) { board_name_len = strlen(board_table[i].board_name); if (strncmp(&board_data.boardName[0], board_table[i].board_name, board_name_len) == 0 && (board_data.boardName[board_name_len] == '\0' || board_data.boardName[board_name_len] == '-')) { return board_table[i].board_type; } } return MERAKI_BOARD_UNKNOWN; } EXPORT_SYMBOL(meraki_config_get_product); #if defined(CONFIG_OF_I2C) static struct i2c_client* find_of_i2c_client(struct device_node* node) { const __be32* i2cp; struct device_node* client_node; i2cp = of_get_property(node, "i2c-eeprom", NULL); if (i2cp == NULL) return NULL; client_node = of_find_node_by_phandle(be32_to_cpup(i2cp)); if (!client_node) return NULL; return of_find_i2c_device_by_node(client_node); } #else inline struct i2c_client* find_of_i2c_client(struct device_node* node) { return NULL; } #endif static int i2c_find_match(struct device* dev, void* data) { return (dev->platform_data == data); } static struct i2c_client* find_i2c_client(struct meraki_config_platform_data* data) { struct device* dev; if (data->eeprom_data == NULL) return NULL; dev = bus_find_device(&i2c_bus_type, NULL, data->eeprom_data, i2c_find_match); if (!dev) return NULL; return i2c_verify_client(dev); } static struct file_operations meraki_config_fileops = { .owner = THIS_MODULE, .read = meraki_config_board_data_read, .write = meraki_config_board_data_write, .llseek = meraki_config_board_data_llseek, }; static struct miscdevice meraki_config_miscdevice = { .minor = MISC_DYNAMIC_MINOR, .name = "meraki-board-config", .fops = &meraki_config_fileops, }; int __devinit meraki_config_probe(struct platform_device *pdev) { struct meraki_config_platform_data *pdata = pdev->dev.platform_data; int ret; struct i2c_client* client; if (eeprom_accessor) { dev_err(&pdev->dev, "Cannot have more than one meraki-config\n"); return -ENODEV; } pdev->id = -1; config_dev = &pdev->dev; if (pdev->dev.of_node) { client = find_of_i2c_client(pdev->dev.of_node); if (of_gpio_count(pdev->dev.of_node)) { enum of_gpio_flags flags; wp_gpio = of_get_gpio_flags(pdev->dev.of_node, 0, &flags); if (wp_gpio < 0) { dev_err(&pdev->dev, "GPIO configuration incorrect\n"); return wp_gpio; } if (flags & OF_GPIO_ACTIVE_LOW) wp_low = true; } } else { client = find_i2c_client(pdata); wp_gpio = pdata->write_protect_gpio; wp_low = pdata->write_protect_active_low; } if (!client) return -ENODEV; if (wp_gpio >= 0) { ret = gpio_request_one(wp_gpio, (wp_low ? GPIOF_OUT_INIT_HIGH : GPIOF_OUT_INIT_LOW), "meraki-config WP"); if (ret) { dev_err(&pdev->dev, "Unable to request write protect GPIO, error %d\n", ret); return -ENODEV; } } ret = -ENODEV; if (client->driver && client->driver->command) ret = client->driver->command(client, AT24_CMD_GET_ACCESSOR, &eeprom_accessor); put_device(&client->dev); if (ret) { dev_err(&pdev->dev, "Failed to get eeprom_accessor\n"); goto err; } ret = misc_register(&meraki_config_miscdevice); if (ret) { dev_err(&pdev->dev, "Failed to register misc device, error %d\n", ret); goto err; } dev_info(&pdev->dev, "Meraki config device loaded\n"); return 0; err: if (wp_gpio) gpio_free(wp_gpio); return -ENODEV; } static int __devexit meraki_config_remove(struct platform_device *pdev) { if (wp_gpio >= 0) gpio_free(wp_gpio); misc_deregister(&meraki_config_miscdevice); eeprom_accessor = NULL; config_dev = NULL; wp_gpio = -1; wp_low = false; return 0; } static struct platform_driver meraki_config_driver = { .driver = { .name = "meraki-config", .owner = THIS_MODULE, #if defined(CONFIG_OF) .of_match_table = meraki_config_dt_ids, #endif }, .probe = meraki_config_probe, .remove = __devexit_p(meraki_config_remove), }; static int __init meraki_config_init(void) { int ret; ret = platform_driver_register(&meraki_config_driver); if (ret) printk(KERN_ERR "meraki-config: driver init failed: %d\n", ret); return ret; } module_init(meraki_config_init); static void __exit meraki_config_exit(void) { platform_driver_unregister(&meraki_config_driver); } module_exit(meraki_config_exit); MODULE_AUTHOR("J. Chris Parks <jamparks@cisco.com>"); MODULE_DESCRIPTION("Meraki board data config driver"); MODULE_LICENSE("GPL");
riptidewave93/meraki-linux
drivers/meraki/meraki_config.c
C
gpl-2.0
10,149
/* * Copyright (c) Espressif System * Apr 13 2013 16:44:24 */ static u8 eagle_fw1[] = { 0xe9, 0x03, 0x00, 0x00, 0x00, 0x00, 0x10, 0x40, 0x00, 0x00, 0x10, 0x40, 0x5c, 0xc1, 0x00, 0x00, 0x12, 0xc1, 0xf0, 0x09, 0x01, 0x05, 0x31, 0x00, 0x08, 0x01, 0x12, 0xc1, 0x10, 0x0d, 0xf0, 0x00, 0x00, 0xfe, 0xef, 0x3f, 0x71, 0xff, 0xff, 0xc0, 0x20, 0x00, 0x92, 0x27, 0x97, 0xc0, 0x20, 0x00, 0x82, 0x27, 0x96, 0xc0, 0x20, 0x00, 0x52, 0x27, 0x95, 0xc0, 0x20, 0x00, 0x72, 0x27, 0x94, 0x80, 0x6c, 0x04, 0x8c, 0x13, 0x62, 0x43, 0x00, 0x0c, 0x03, 0xf7, 0x68, 0x13, 0xfc, 0x36, 0x32, 0x42, 0x01, 0x50, 0x60, 0xf5, 0x32, 0x42, 0x02, 0x62, 0x42, 0x00, 0x50, 0x38, 0x41, 0x06, 0x05, 0x00, 0x7d, 0x08, 0xec, 0xb6, 0x32, 0x42, 0x01, 0x90, 0x50, 0xf5, 0x52, 0x42, 0x00, 0x32, 0x42, 0x02, 0x5d, 0x09, 0x90, 0x38, 0x41, 0x32, 0x42, 0x03, 0x52, 0x42, 0x04, 0x70, 0x88, 0x75, 0x82, 0x42, 0x05, 0x0d, 0xf0, 0x3d, 0x09, 0x90, 0x60, 0xf5, 0x90, 0xa8, 0x41, 0xa2, 0x42, 0x01, 0x86, 0xf0, 0xff, 0x3d, 0x05, 0x50, 0xb8, 0x41, 0xb2, 0x42, 0x01, 0x50, 0x50, 0xf5, 0x86, 0xf2, 0xff, 0x00, 0x30, 0x8a, 0xfe, 0x3f, 0x40, 0x4f, 0x00, 0x40, 0x0c, 0xc3, 0x52, 0xa1, 0x00, 0x62, 0xa1, 0x00, 0x0c, 0x17, 0x12, 0xc1, 0xe0, 0x09, 0x61, 0x22, 0xc1, 0x10, 0x29, 0x01, 0x02, 0xc1, 0x14, 0x21, 0xf8, 0xff, 0x09, 0x11, 0x42, 0xc2, 0x10, 0x01, 0xf7, 0xff, 0xc0, 0x00, 0x00, 0x28, 0x41, 0x08, 0x61, 0x12, 0xc1, 0x20, 0x0d, 0xf0, 0x00, 0x00, 0x00, 0x06, 0x00, 0x60, 0x00, 0x80, 0xfe, 0x3f, 0x28, 0x03, 0x00, 0x60, 0x00, 0x0a, 0x00, 0x60, 0xd0, 0x4c, 0x00, 0x40, 0x04, 0x4d, 0x00, 0x40, 0xc0, 0x5d, 0x00, 0x40, 0xb8, 0x5d, 0x00, 0x40, 0x12, 0xc1, 0xe0, 0xe9, 0x41, 0xf9, 0x51, 0x39, 0x01, 0x09, 0x11, 0xd9, 0x31, 0xc9, 0x21, 0xdd, 0x02, 0x20, 0xc0, 0x75, 0xb6, 0x8c, 0x06, 0x0c, 0x10, 0x0c, 0x1c, 0x46, 0x00, 0x00, 0x0c, 0x00, 0x9c, 0xfc, 0x26, 0x1c, 0x1f, 0xf6, 0x4c, 0x02, 0xf6, 0x2c, 0x0e, 0x22, 0xcc, 0xfc, 0x16, 0xa2, 0x14, 0x26, 0x5c, 0x05, 0x32, 0xcc, 0xfa, 0x16, 0x13, 0x14, 0x0c, 0x04, 0x49, 0x61, 0x0c, 0x04, 0xc6, 0x01, 0x00, 0x0c, 0x10, 0x0c, 0x14, 0x0c, 0x05, 0x59, 0x61, 0x0c, 0x12, 0xd0, 0xe0, 0x34, 0x00, 0x1e, 0x40, 0x00, 0xf2, 0xa1, 0x9c, 0x64, 0x4d, 0x0f, 0x0c, 0x05, 0x0c, 0x03, 0x00, 0x32, 0x83, 0x00, 0x33, 0xa1, 0x00, 0x20, 0xa1, 0x01, 0xe2, 0xff, 0xc0, 0x00, 0x00, 0x46, 0x03, 0x00, 0x0c, 0x02, 0x0c, 0x03, 0x0c, 0x04, 0x5d, 0x0f, 0x01, 0xde, 0xff, 0xc0, 0x00, 0x00, 0x21, 0xd8, 0xff, 0xd0, 0x09, 0x54, 0xa2, 0xae, 0xcf, 0x2a, 0x00, 0xc0, 0x20, 0x00, 0x92, 0x20, 0x80, 0xa0, 0x99, 0x10, 0xc0, 0x20, 0x00, 0x92, 0x60, 0x80, 0x0c, 0x48, 0xd0, 0x74, 0x24, 0xd0, 0x64, 0x14, 0x80, 0x77, 0x10, 0xe0, 0x77, 0x11, 0x70, 0x66, 0x20, 0xc0, 0x66, 0x11, 0xc0, 0x20, 0x00, 0x52, 0x20, 0x80, 0x60, 0x55, 0x20, 0xc0, 0x20, 0x00, 0x48, 0x61, 0x52, 0x60, 0x80, 0xdc, 0x34, 0x42, 0xaf, 0x7f, 0xc0, 0x20, 0x00, 0x32, 0x20, 0x80, 0x40, 0x33, 0x10, 0xc0, 0x20, 0x00, 0x32, 0x60, 0x80, 0x46, 0x04, 0x00, 0x62, 0xa0, 0x80, 0xc0, 0x20, 0x00, 0x52, 0x20, 0x80, 0x60, 0x55, 0x20, 0xc0, 0x20, 0x00, 0x52, 0x60, 0x80, 0x21, 0xbf, 0xff, 0xb6, 0x2c, 0x44, 0x26, 0x5c, 0x44, 0x41, 0xbe, 0xff, 0xe0, 0x3e, 0x11, 0x4a, 0x33, 0xc0, 0x20, 0x00, 0x42, 0xa8, 0x7f, 0x38, 0x03, 0x68, 0x01, 0x40, 0x33, 0x10, 0x42, 0xcc, 0xfe, 0x90, 0x44, 0x11, 0x40, 0x33, 0x20, 0x26, 0x2c, 0x05, 0x52, 0xa4, 0x00, 0x50, 0x33, 0x20, 0x16, 0x96, 0x06, 0x72, 0x12, 0x01, 0x09, 0x71, 0xf0, 0x77, 0x20, 0x72, 0x52, 0x01, 0x2d, 0x0e, 0x01, 0xb3, 0xff, 0xc0, 0x00, 0x00, 0x08, 0x71, 0xc6, 0x02, 0x00, 0x66, 0x5c, 0x08, 0x82, 0x12, 0x03, 0x80, 0x8f, 0x20, 0x82, 0x52, 0x03, 0xa2, 0xaf, 0xbf, 0xc0, 0x20, 0x00, 0x92, 0x20, 0x80, 0xa0, 0x99, 0x10, 0xc0, 0x20, 0x00, 0x92, 0x60, 0x80, 0xdc, 0xac, 0x2d, 0x0e, 0x01, 0xa9, 0xff, 0xc0, 0x00, 0x00, 0xd0, 0x27, 0x14, 0x01, 0xa8, 0xff, 0xc0, 0x00, 0x00, 0x0c, 0x0b, 0xc1, 0xa2, 0xff, 0xc0, 0x20, 0x00, 0xb2, 0x6c, 0x6d, 0xc8, 0x21, 0xd8, 0x31, 0xe8, 0x41, 0xf8, 0x51, 0x08, 0x11, 0x12, 0xc1, 0x20, 0x0d, 0xf0, 0x0c, 0x1e, 0xe9, 0x61, 0x86, 0xae, 0xff, 0x42, 0x12, 0x00, 0x26, 0x2c, 0x0a, 0x40, 0x4f, 0x20, 0x42, 0x52, 0x00, 0x09, 0x71, 0xc6, 0xe3, 0xff, 0x7c, 0xf5, 0x62, 0x12, 0x03, 0x50, 0x5f, 0x30, 0x40, 0x45, 0x10, 0x60, 0x55, 0x10, 0x52, 0x52, 0x03, 0xc6, 0xf8, 0xff, 0x34, 0x83, 0xfe, 0x3f, 0x40, 0x83, 0xfe, 0x3f, 0x1a, 0x47, 0x00, 0x00, 0xb8, 0x1c, 0x00, 0x40, 0x14, 0x1d, 0x00, 0x40, 0x68, 0x2e, 0x00, 0x40, 0x48, 0x1d, 0x00, 0x40, 0x12, 0xc1, 0xf0, 0x22, 0x61, 0x00, 0x02, 0x61, 0x01, 0x05, 0xde, 0xff, 0x01, 0xf9, 0xff, 0xc0, 0x00, 0x00, 0x21, 0xf4, 0xff, 0x31, 0xf4, 0xff, 0x4c, 0x94, 0x51, 0xf4, 0xff, 0x01, 0xf5, 0xff, 0xc0, 0x00, 0x00, 0x28, 0x01, 0x05, 0xbf, 0x03, 0x01, 0xf4, 0xff, 0xc0, 0x00, 0x00, 0x01, 0xf3, 0xff, 0xc0, 0x00, 0x00, 0x1c, 0x02, 0x45, 0x44, 0x00, 0x08, 0x11, 0x12, 0xc1, 0x10, 0x0d, 0xf0, 0xf0, 0xf4, 0xfe, 0x3f, 0x20, 0x8a, 0xfe, 0x3f, 0x50, 0x83, 0xfe, 0x3f, 0x5c, 0x83, 0xfe, 0x3f, 0x68, 0x83, 0xfe, 0x3f, 0xdc, 0x05, 0x10, 0x40, 0x00, 0x00, 0x06, 0x00, 0x74, 0x83, 0xfe, 0x3f, 0xcc, 0x24, 0x00, 0x40, 0x2c, 0x24, 0x00, 0x40, 0xc4, 0x56, 0x00, 0x40, 0x51, 0xf5, 0xff, 0x12, 0xc1, 0xf0, 0x02, 0x61, 0x00, 0x01, 0xf3, 0xff, 0xc2, 0x61, 0x01, 0x57, 0xb0, 0x09, 0x0c, 0x02, 0x22, 0x40, 0x00, 0x1b, 0x00, 0x57, 0x90, 0xf7, 0x21, 0xf0, 0xff, 0x31, 0xf0, 0xff, 0x41, 0xf0, 0xff, 0x01, 0xf3, 0xff, 0xc0, 0x00, 0x00, 0x21, 0xef, 0xff, 0x01, 0xf2, 0xff, 0xc0, 0x00, 0x00, 0xc1, 0x62, 0xff, 0xc0, 0x20, 0x00, 0xc2, 0x2c, 0x66, 0xac, 0x0c, 0xc0, 0x20, 0xf4, 0x8c, 0xb2, 0x0c, 0x03, 0x85, 0xd8, 0xff, 0x21, 0x5a, 0xff, 0x0c, 0x10, 0x02, 0x42, 0x0a, 0xc0, 0x00, 0xf5, 0x8c, 0x90, 0x21, 0xe5, 0xff, 0x0c, 0x13, 0x20, 0x20, 0x20, 0x05, 0xd7, 0xff, 0x01, 0xe6, 0xff, 0xc0, 0x00, 0x00, 0x22, 0xa2, 0x0c, 0x45, 0x36, 0x00, 0x85, 0x04, 0x00, 0x0c, 0x02, 0xc5, 0x39, 0x00, 0x21, 0xde, 0xff, 0x01, 0xdf, 0xff, 0xc0, 0x00, 0x00, 0xc8, 0x11, 0x08, 0x01, 0x12, 0xc1, 0x10, 0x0d, 0xf0, 0x00, 0x20, 0x8a, 0xfe, 0x3f, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x8c, 0x04, 0x10, 0x40, 0x00, 0xde, 0xff, 0x3f, 0x00, 0xe1, 0xff, 0x3f, 0x00, 0x02, 0x00, 0x60, 0x80, 0x83, 0xfe, 0x3f, 0xf9, 0x84, 0x2a, 0x00, 0xa8, 0x58, 0x00, 0x40, 0x88, 0x0f, 0x00, 0x40, 0xa8, 0x0f, 0x00, 0x40, 0x12, 0xc1, 0xf0, 0x09, 0x01, 0x01, 0xfb, 0xff, 0xc0, 0x00, 0x00, 0x61, 0xf1, 0xff, 0x58, 0xc2, 0x59, 0x06, 0x41, 0xf0, 0xff, 0x21, 0x3b, 0xff, 0xc0, 0x20, 0x00, 0x32, 0x22, 0x57, 0x40, 0x33, 0x20, 0xc0, 0x20, 0x00, 0x32, 0x62, 0x57, 0x31, 0xec, 0xff, 0xc0, 0x20, 0x00, 0x02, 0x22, 0x51, 0x00, 0x00, 0xf4, 0x30, 0x00, 0x20, 0xc0, 0x20, 0x00, 0x31, 0xe8, 0xff, 0x02, 0x62, 0x51, 0x0c, 0x04, 0x0c, 0x12, 0x01, 0xed, 0xff, 0xc0, 0x00, 0x00, 0x71, 0x2c, 0xff, 0x41, 0xe6, 0xff, 0x72, 0x07, 0x0a, 0x01, 0xe3, 0xff, 0xac, 0x87, 0x02, 0x20, 0xfe, 0x31, 0xe3, 0xff, 0x66, 0x20, 0x0b, 0x22, 0x14, 0x7e, 0xc0, 0x20, 0x00, 0x22, 0x63, 0x42, 0xc6, 0x02, 0x00, 0x66, 0x30, 0x08, 0x52, 0x14, 0x7e, 0xc0, 0x20, 0x00, 0x52, 0x63, 0x41, 0x21, 0xdd, 0xff, 0x01, 0xb0, 0xff, 0xc0, 0x00, 0x00, 0x71, 0xdb, 0xff, 0xc0, 0x20, 0x00, 0x61, 0x1f, 0xff, 0x72, 0x66, 0x43, 0xc0, 0x20, 0x00, 0x62, 0x26, 0x43, 0x0c, 0x22, 0x01, 0xd9, 0xff, 0xc0, 0x00, 0x00, 0x08, 0x01, 0x12, 0xc1, 0x10, 0x0d, 0xf0, 0x00, 0x00, 0xf9, 0x04, 0x28, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x80, 0x00, 0x00, 0xff, 0xff, 0xfe, 0xff, 0x94, 0x83, 0xfe, 0x3f, 0x88, 0x83, 0xfe, 0x3f, 0x12, 0xc1, 0xe0, 0xc9, 0x11, 0x09, 0x01, 0xe9, 0x31, 0xf9, 0x41, 0xd9, 0x21, 0xf1, 0xc1, 0xff, 0xd1, 0x0e, 0xff, 0xe1, 0xf5, 0xff, 0xc0, 0x20, 0x00, 0xc2, 0x2d, 0x42, 0x16, 0xdc, 0x0f, 0x17, 0xfc, 0x02, 0x27, 0x6c, 0x68, 0xc0, 0x20, 0x00, 0x02, 0x0f, 0x04, 0x22, 0xa0, 0xff, 0x22, 0x6d, 0x6c, 0x1b, 0x00, 0x00, 0x00, 0x74, 0x02, 0x4f, 0x04, 0xc0, 0x20, 0x00, 0xb1, 0x01, 0xff, 0x02, 0x6d, 0x4b, 0xb2, 0x0b, 0x0a, 0x01, 0xb7, 0xff, 0xac, 0x8b, 0x02, 0x20, 0xfe, 0x66, 0x20, 0x11, 0x21, 0xb6, 0xff, 0x22, 0x12, 0x7e, 0xc0, 0x20, 0x00, 0x31, 0xb4, 0xff, 0x22, 0x63, 0x42, 0x46, 0x04, 0x00, 0x66, 0x30, 0x0e, 0x31, 0xb0, 0xff, 0x32, 0x13, 0x7e, 0xc0, 0x20, 0x00, 0x41, 0xaf, 0xff, 0x32, 0x64, 0x41, 0xc0, 0x20, 0x00, 0x41, 0xdd, 0xff, 0x42, 0x6d, 0x44, 0xc0, 0x20, 0x00, 0x0c, 0x43, 0x28, 0x0f, 0x32, 0x6d, 0x44, 0x08, 0x52, 0x28, 0x82, 0xc0, 0x00, 0x00, 0xf7, 0x6c, 0x1b, 0xc0, 0x20, 0x00, 0x61, 0xd7, 0xff, 0x62, 0x6d, 0x44, 0xc0, 0x20, 0x00, 0x52, 0x2d, 0x53, 0x58, 0x25, 0x8c, 0x75, 0x28, 0x0f, 0x08, 0x62, 0x28, 0x82, 0xc0, 0x00, 0x00, 0x07, 0x7c, 0x20, 0xc0, 0x20, 0x00, 0x41, 0xd0, 0xff, 0x52, 0x2d, 0x43, 0x40, 0x55, 0x10, 0xc0, 0x20, 0x00, 0x52, 0x6d, 0x43, 0xc0, 0x20, 0x00, 0x32, 0x2d, 0x44, 0x40, 0x33, 0x10, 0xc0, 0x20, 0x00, 0x32, 0x6d, 0x44, 0xe7, 0x8c, 0x02, 0x86, 0xcf, 0xff, 0x37, 0xfc, 0x30, 0x57, 0xfc, 0x4e, 0xa7, 0xec, 0x5d, 0x77, 0xec, 0x08, 0xc0, 0x20, 0x00, 0x62, 0x2d, 0x44, 0x46, 0xca, 0xff, 0x81, 0xd4, 0xfe, 0xc0, 0x20, 0x00, 0xa2, 0xa0, 0x80, 0xa2, 0x6d, 0x44, 0x0c, 0x09, 0xc0, 0x20, 0x00, 0x92, 0x68, 0xc1, 0x3c, 0xd7, 0xc0, 0x20, 0x00, 0x72, 0x68, 0xc0, 0x06, 0xff, 0xff, 0x21, 0xbb, 0xff, 0x31, 0xbb, 0xff, 0x42, 0xa2, 0x71, 0x01, 0x5b, 0xff, 0xc0, 0x00, 0x00, 0x06, 0xff, 0xff, 0xc8, 0x11, 0xd8, 0x21, 0xe8, 0x31, 0xf8, 0x41, 0x08, 0x01, 0x12, 0xc1, 0x20, 0x0d, 0xf0, 0x21, 0xb3, 0xff, 0x31, 0xb3, 0xff, 0x42, 0xa2, 0x78, 0x01, 0x52, 0xff, 0xc0, 0x00, 0x00, 0x06, 0xff, 0xff, 0x21, 0xae, 0xff, 0x31, 0xae, 0xff, 0x42, 0xa2, 0x7f, 0x01, 0x4e, 0xff, 0xc0, 0x00, 0x00, 0x06, 0xff, 0xff, 0x12, 0xc1, 0xf0, 0x09, 0x01, 0x66, 0x92, 0x0c, 0x0c, 0xd2, 0x45, 0x02, 0x00, 0x0c, 0xa2, 0x05, 0x02, 0x00, 0xc6, 0x01, 0x00, 0x0c, 0xd0, 0x07, 0x12, 0x02, 0x45, 0x01, 0x00, 0x08, 0x01, 0x12, 0xc1, 0x10, 0x0d, 0xf0, 0x00, 0x0f, 0x00, 0x00, 0x00, 0xfe, 0xff, 0x5f, 0x4c, 0x3f, 0x00, 0x40, 0x12, 0xc1, 0xf0, 0x29, 0x11, 0x09, 0x01, 0x01, 0xfd, 0xff, 0xc0, 0x00, 0x00, 0x42, 0x02, 0x40, 0x08, 0x11, 0x21, 0xf8, 0xff, 0x31, 0xf8, 0xff, 0x40, 0x22, 0xd1, 0x3a, 0x22, 0xc0, 0x20, 0x00, 0x32, 0x22, 0x87, 0x77, 0x73, 0x08, 0xc0, 0x20, 0x00, 0x52, 0x22, 0x87, 0x77, 0xf5, 0xf6, 0xc0, 0x20, 0x00, 0x02, 0x62, 0x80, 0x0c, 0x02, 0x08, 0x01, 0x12, 0xc1, 0x10, 0x0d, 0xf0, 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, 0x12, 0xc1, 0xf0, 0x09, 0x01, 0x01, 0xec, 0xff, 0xc0, 0x00, 0x00, 0x01, 0xfc, 0xff, 0x72, 0x02, 0x40, 0x51, 0xe7, 0xff, 0x61, 0xe8, 0xff, 0x70, 0x55, 0xd1, 0x6a, 0x55, 0xc0, 0x20, 0x00, 0x22, 0x25, 0x87, 0x27, 0x00, 0x08, 0xc0, 0x20, 0x00, 0x82, 0x25, 0x87, 0x07, 0x88, 0xf6, 0x08, 0x01, 0x12, 0xc1, 0x10, 0x0d, 0xf0, 0x00, 0x00, 0x00, 0x40, 0x8b, 0xfe, 0x3f, 0xd0, 0x8f, 0xfe, 0x3f, 0x80, 0x61, 0x00, 0x00, 0x94, 0x5e, 0x00, 0x40, 0x51, 0xfe, 0xff, 0x0c, 0x07, 0x21, 0xfa, 0xff, 0x12, 0xc1, 0xe0, 0x32, 0xa1, 0x04, 0x6d, 0x03, 0x09, 0x61, 0x48, 0x02, 0x02, 0xc1, 0x14, 0x22, 0xc2, 0x10, 0x32, 0x54, 0x02, 0x41, 0xf5, 0xff, 0x32, 0xc1, 0x10, 0x09, 0x11, 0x39, 0x01, 0x32, 0xa4, 0x80, 0x01, 0x74, 0xfe, 0xc0, 0x00, 0x00, 0x28, 0x41, 0x38, 0x51, 0x42, 0xa0, 0x60, 0x01, 0xf1, 0xff, 0xc0, 0x00, 0x00, 0x08, 0x61, 0x12, 0xc1, 0x20, 0x0d, 0xf0, 0x48, 0x07, 0x10, 0x40, 0x4c, 0x54, 0x00, 0x40, 0x8c, 0x60, 0x00, 0x40, 0x12, 0xc1, 0xf0, 0x29, 0x01, 0x09, 0x11, 0x01, 0x35, 0xff, 0xc0, 0x00, 0x00, 0x01, 0xe4, 0xff, 0x29, 0x00, 0x21, 0xf8, 0xff, 0x01, 0xf8, 0xff, 0xc0, 0x00, 0x00, 0x31, 0xe1, 0xff, 0x38, 0x03, 0x28, 0x01, 0x22, 0x53, 0x03, 0x01, 0xf5, 0xff, 0xc0, 0x00, 0x00, 0x45, 0xf8, 0xff, 0x08, 0x11, 0x12, 0xc1, 0x10, 0x0d, 0xf0, 0x00, 0x00, 0x00, 0x80, 0x51, 0x00, 0x40, 0x08, 0x58, 0x00, 0x40, 0x3d, 0x02, 0x12, 0xc1, 0xf0, 0x0c, 0x02, 0x09, 0x01, 0x01, 0xfb, 0xff, 0xc0, 0x00, 0x00, 0x3d, 0x02, 0x01, 0xfa, 0xff, 0xc0, 0x00, 0x00, 0x08, 0x01, 0x12, 0xc1, 0x10, 0x0d, 0xf0, 0x00, 0x00, 0x12, 0xc1, 0xf0, 0x22, 0x22, 0x01, 0x02, 0x61, 0x00, 0x02, 0x02, 0x07, 0x32, 0x02, 0x06, 0x80, 0x00, 0x11, 0x30, 0x00, 0x20, 0x32, 0x02, 0x05, 0x80, 0x00, 0x11, 0x30, 0x00, 0x20, 0x32, 0x02, 0x04, 0x80, 0x00, 0x11, 0x30, 0x00, 0x20, 0x66, 0x70, 0x05, 0x22, 0xc2, 0x0c, 0x45, 0xb3, 0xff, 0x08, 0x01, 0x12, 0xc1, 0x10, 0x0d, 0xf0, 0x00, 0x0d, 0xf0, 0x00, 0x00, 0x0d, 0xf0, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x60, 0x20, 0x93, 0xc0, 0x3b, 0x89, 0x90, 0x89, 0xb3, 0x80, 0x82, 0x21, 0x1b, 0x88, 0x9c, 0x88, 0x31, 0xfb, 0xff, 0x20, 0x78, 0xa0, 0x3a, 0x34, 0xc0, 0x20, 0x00, 0x48, 0x02, 0xc0, 0x20, 0x00, 0x42, 0x63, 0x80, 0x4b, 0x22, 0x4b, 0x33, 0x77, 0x92, 0xed, 0xe0, 0x28, 0x11, 0x0d, 0xf0, 0x00, 0x00, 0x20, 0x83, 0xc0, 0x3b, 0x78, 0x80, 0x78, 0xb3, 0x70, 0x72, 0x21, 0x1b, 0x77, 0x9c, 0xa7, 0xa1, 0xef, 0xff, 0x40, 0x97, 0xa0, 0xaa, 0x34, 0xaa, 0x49, 0xc0, 0x20, 0x00, 0xb2, 0x23, 0x80, 0xc0, 0x20, 0x00, 0xb9, 0x02, 0x4b, 0x33, 0x4b, 0x22, 0x47, 0x93, 0xed, 0xe0, 0x27, 0x11, 0x0d, 0xf0, 0x50, 0xf1, 0xfe, 0x3f, 0x20, 0x73, 0x04, 0x20, 0x61, 0x04, 0x20, 0x50, 0x04, 0x12, 0xc1, 0xe0, 0x09, 0x31, 0xc9, 0x41, 0x6a, 0x55, 0xc1, 0xfa, 0xff, 0x20, 0x62, 0x04, 0x7a, 0x66, 0x20, 0x05, 0x04, 0x20, 0x76, 0x04, 0x7a, 0x00, 0x20, 0x74, 0x04, 0x7a, 0x00, 0x6a, 0x00, 0x5a, 0x00, 0x30, 0x53, 0x24, 0x00, 0x20, 0x74, 0x0c, 0x40, 0xf6, 0x52, 0x01, 0x0d, 0x02, 0x00, 0x20, 0x90, 0x1c, 0xd0, 0x50, 0x22, 0x90, 0x20, 0x20, 0x74, 0x27, 0x30, 0x01, 0x0d, 0x02, 0x0c, 0x42, 0x00, 0x50, 0x74, 0x0c, 0x13, 0x08, 0x0c, 0x40, 0x45, 0xb0, 0x68, 0x14, 0x02, 0x20, 0x2b, 0x48, 0x04, 0x60, 0x79, 0x84, 0x79, 0x11, 0x40, 0x50, 0x84, 0x60, 0x60, 0x84, 0x69, 0x21, 0x59, 0x01, 0x40, 0x49, 0x84, 0xc0, 0x00, 0x00, 0x48, 0x11, 0x08, 0x0c, 0x0c, 0x52, 0x02, 0x20, 0x2b, 0x0c, 0x13, 0xc0, 0x00, 0x00, 0x48, 0x01, 0x08, 0x0c, 0x0c, 0x42, 0x02, 0x20, 0x2b, 0x0c, 0x23, 0xc0, 0x00, 0x00, 0x48, 0x21, 0x08, 0x0c, 0x0c, 0x52, 0x02, 0x20, 0x2b, 0x0c, 0x23, 0xc0, 0x00, 0x00, 0xc8, 0x41, 0x08, 0x31, 0x12, 0xc1, 0x20, 0x0d, 0xf0, 0x00, 0x9c, 0x83, 0xfe, 0x3f, 0xf4, 0x83, 0xfe, 0x3f, 0x00, 0x00, 0x80, 0x00, 0x10, 0x84, 0xfe, 0x3f, 0x1c, 0x84, 0xfe, 0x3f, 0xad, 0x05, 0x9d, 0x06, 0x12, 0xc1, 0xb0, 0x29, 0xd1, 0x09, 0x51, 0xf9, 0x91, 0xc9, 0x61, 0x39, 0xf1, 0xe9, 0x81, 0xd9, 0x71, 0x49, 0xa1, 0xd1, 0xcb, 0xff, 0x6c, 0xf4, 0xed, 0x07, 0x31, 0xbc, 0xfe, 0xc0, 0x20, 0x00, 0x22, 0x23, 0xe4, 0x40, 0x22, 0x10, 0xc0, 0x20, 0x00, 0x1c, 0x24, 0x0c, 0x75, 0x0c, 0x06, 0x0c, 0x07, 0xa9, 0xb1, 0x99, 0xe1, 0x08, 0x0d, 0x22, 0x63, 0xe4, 0x22, 0xa0, 0x77, 0x02, 0x20, 0x27, 0x0c, 0x03, 0xc0, 0x00, 0x00, 0x22, 0xa0, 0x77, 0x0c, 0x03, 0x0c, 0x94, 0x0c, 0x75, 0x08, 0x0d, 0x0c, 0x06, 0x02, 0x20, 0x27, 0x0c, 0x07, 0xc0, 0x00, 0x00, 0x0c, 0x13, 0x0c, 0x52, 0x0c, 0x0c, 0x48, 0xd1, 0xc2, 0x61, 0x13, 0x40, 0x23, 0x93, 0x29, 0xc1, 0x08, 0xc1, 0xf2, 0x21, 0x13, 0x07, 0x2f, 0x02, 0x06, 0xa7, 0x00, 0x16, 0x4f, 0x28, 0x0b, 0x3f, 0x16, 0x43, 0x28, 0x42, 0xcf, 0xfe, 0x16, 0x34, 0x28, 0x52, 0xcf, 0xfd, 0x16, 0xb5, 0x2a, 0x62, 0xcf, 0xfc, 0x16, 0x06, 0x2b, 0x0c, 0x0c, 0x0c, 0x07, 0x72, 0x61, 0x10, 0x32, 0x21, 0x13, 0x0c, 0x82, 0x08, 0x0d, 0x0c, 0x0f, 0x02, 0x20, 0x34, 0x30, 0xf2, 0x83, 0x2d, 0x0f, 0xc0, 0x00, 0x00, 0x42, 0x21, 0x13, 0xf6, 0x24, 0x13, 0x0c, 0x02, 0x3d, 0x0f, 0x42, 0xa1, 0xf4, 0x08, 0x0d, 0x0c, 0xc5, 0x02, 0x20, 0x3a, 0x62, 0xc1, 0x10, 0xc0, 0x00, 0x00, 0x0c, 0x02, 0xd1, 0x9e, 0xff, 0x32, 0xa1, 0x04, 0x08, 0x0d, 0x4d, 0x0c, 0x02, 0x20, 0x15, 0x1c, 0x65, 0xc0, 0x00, 0x00, 0x2d, 0x0c, 0x1c, 0x63, 0x48, 0xb1, 0x45, 0xe6, 0xff, 0xac, 0xde, 0x7d, 0x0c, 0x6d, 0x0f, 0x21, 0xc0, 0xff, 0x0c, 0x03, 0x1c, 0x6a, 0xa9, 0x01, 0x92, 0x01, 0x10, 0x42, 0xa1, 0x04, 0x80, 0x99, 0x01, 0x90, 0x98, 0x31, 0x99, 0x11, 0x82, 0x01, 0x11, 0x52, 0x21, 0x10, 0x80, 0x88, 0x01, 0x80, 0x88, 0x31, 0x89, 0x21, 0x01, 0x3a, 0xfe, 0xc0, 0x00, 0x00, 0xd1, 0x8b, 0xff, 0x08, 0x0d, 0x02, 0x20, 0x10, 0x0c, 0x12, 0xc0, 0x00, 0x00, 0x0c, 0x0f, 0x0c, 0x12, 0x38, 0xf1, 0x42, 0x21, 0x10, 0x0c, 0x05, 0x0c, 0x06, 0x69, 0x01, 0x69, 0x11, 0x69, 0x21, 0x08, 0x0d, 0x0c, 0x07, 0x02, 0x20, 0x1a, 0x0c, 0x06, 0xc0, 0x00, 0x00, 0x08, 0x0d, 0x0c, 0x12, 0x08, 0xd0, 0x32, 0xa4, 0x00, 0xc0, 0x00, 0x00, 0xc0, 0x20, 0x00, 0x08, 0x0d, 0xc1, 0x6f, 0xfe, 0x08, 0xc0, 0xc2, 0x2c, 0xf9, 0xc0, 0x00, 0x00, 0x8c, 0xde, 0x21, 0xa4, 0xff, 0xc0, 0x38, 0x21, 0x41, 0x9b, 0xfe, 0x01, 0x23, 0xfe, 0xc0, 0x00, 0x00, 0x21, 0xa1, 0xff, 0x02, 0x21, 0x10, 0xc7, 0xa2, 0x10, 0x22, 0xc0, 0x18, 0x1b, 0xff, 0xf0, 0xf0, 0x74, 0x20, 0x00, 0x74, 0x02, 0x61, 0x10, 0x66, 0x2f, 0x9b, 0x02, 0x2d, 0x00, 0x02, 0x20, 0x1b, 0x22, 0xa0, 0x01, 0xc0, 0x00, 0x00, 0xc2, 0xa0, 0x00, 0x0c, 0x0f, 0x0c, 0x0d, 0x0c, 0x02, 0x0c, 0x03, 0x32, 0x61, 0x11, 0x22, 0x61, 0x12, 0x0c, 0xe2, 0x38, 0xf1, 0x42, 0x21, 0x10, 0x52, 0xc1, 0x12, 0x68, 0xe1, 0x7d, 0x0e, 0x05, 0x5d, 0x05, 0x9c, 0xbe, 0x21, 0x8f, 0xff, 0x3d, 0x0c, 0x52, 0x01, 0x13, 0x42, 0x01, 0x12, 0x80, 0x55, 0x01, 0x80, 0x44, 0x01, 0x40, 0x48, 0x31, 0x50, 0x58, 0x31, 0x01, 0x0a, 0xfe, 0xc0, 0x00, 0x00, 0xbc, 0x0c, 0x22, 0x01, 0x12, 0x01, 0x5a, 0xff, 0x80, 0x22, 0x01, 0x08, 0x00, 0x20, 0x28, 0x31, 0x08, 0x00, 0x20, 0x2d, 0xc0, 0xc0, 0x00, 0x00, 0xe6, 0x22, 0x18, 0x22, 0x01, 0x13, 0x01, 0x54, 0xff, 0x80, 0x22, 0x01, 0x08, 0x00, 0x20, 0x28, 0x31, 0x08, 0x00, 0x20, 0x2f, 0xc0, 0xc0, 0x00, 0x00, 0xa6, 0x22, 0x31, 0x32, 0x21, 0x12, 0x22, 0x21, 0x11, 0xd2, 0x01, 0x12, 0xf2, 0x01, 0x13, 0x1b, 0xcc, 0xc0, 0xc0, 0x74, 0x80, 0xff, 0x01, 0x80, 0xdd, 0x01, 0xd0, 0xd8, 0x31, 0xf0, 0xf8, 0x31, 0x2a, 0x2f, 0x3a, 0x3d, 0x32, 0x61, 0x12, 0x22, 0x61, 0x11, 0x26, 0x4c, 0x02, 0x86, 0xdb, 0xff, 0x0c, 0x00, 0x46, 0x00, 0x00, 0x0c, 0x10, 0x6c, 0x13, 0x56, 0x40, 0x09, 0xd2, 0x21, 0x12, 0x02, 0x21, 0x11, 0x2b, 0xdd, 0x2b, 0x00, 0x00, 0x02, 0x21, 0xd0, 0xd2, 0x21, 0x80, 0xdd, 0x01, 0xd0, 0xd8, 0x31, 0x7c, 0x12, 0x80, 0xf0, 0x01, 0xf0, 0xf8, 0x31, 0x0d, 0x02, 0x27, 0x2d, 0x01, 0x0d, 0x0d, 0x0c, 0xf2, 0x7d, 0x02, 0xe6, 0xb0, 0x01, 0x7d, 0x00, 0x0d, 0x03, 0x80, 0xd7, 0x01, 0xd0, 0xd8, 0x31, 0x37, 0x2f, 0x01, 0x0d, 0x0f, 0x1c, 0xff, 0x7d, 0x0f, 0xe6, 0xc0, 0x01, 0x7d, 0x00, 0x80, 0xf7, 0x01, 0x08, 0xd1, 0xf0, 0xf8, 0x31, 0xdc, 0x50, 0x38, 0xa1, 0x70, 0x00, 0x54, 0xd0, 0x20, 0x44, 0xa0, 0x22, 0x11, 0x20, 0x00, 0x20, 0x22, 0x21, 0x13, 0x30, 0x22, 0x90, 0x02, 0x52, 0x00, 0x8c, 0xee, 0x5d, 0x0f, 0x4d, 0x0d, 0x21, 0x53, 0xff, 0x32, 0x21, 0x13, 0x01, 0xd1, 0xfd, 0xc0, 0x00, 0x00, 0xc0, 0x50, 0x14, 0xd1, 0x21, 0xff, 0x32, 0x21, 0x13, 0x68, 0x1d, 0x1b, 0x43, 0x40, 0x30, 0x74, 0x32, 0x61, 0x13, 0xe0, 0x66, 0x11, 0x60, 0x55, 0x20, 0x59, 0x1d, 0x46, 0x65, 0xff, 0x02, 0x01, 0x13, 0x22, 0x01, 0x12, 0x80, 0x00, 0x01, 0x80, 0x22, 0x01, 0x20, 0x28, 0x31, 0x00, 0x08, 0x31, 0xfa, 0x00, 0xda, 0xd2, 0x1b, 0xdd, 0x1b, 0x00, 0x00, 0x01, 0x21, 0xd0, 0xd1, 0x21, 0x80, 0xdd, 0x01, 0xd0, 0xd8, 0x31, 0xc6, 0xd5, 0xff, 0x0c, 0x0c, 0x86, 0x63, 0xff, 0x4c, 0x0c, 0x46, 0x62, 0xff, 0xc2, 0xa0, 0x60, 0x0c, 0xf2, 0x22, 0x61, 0x10, 0xc6, 0x60, 0xff, 0x1c, 0x05, 0xc0, 0x20, 0x00, 0x41, 0xfd, 0xfd, 0x32, 0x24, 0xe4, 0x50, 0x33, 0x20, 0xc0, 0x20, 0x00, 0x32, 0x64, 0xe4, 0xc8, 0x61, 0xd8, 0x71, 0xe8, 0x81, 0xf8, 0x91, 0x08, 0x51, 0x12, 0xc1, 0x50, 0x0d, 0xf0, 0xc2, 0xa0, 0x70, 0x2c, 0x86, 0x62, 0x61, 0x10, 0x46, 0x55, 0xff, 0xc2, 0xa0, 0x78, 0x4c, 0x17, 0x72, 0x61, 0x10, 0x86, 0x52, 0xff, 0x00, 0x40, 0x84, 0xfe, 0x3f, 0x10, 0x80, 0xfe, 0x3f, 0x12, 0xc1, 0xc0, 0xc9, 0x21, 0xd9, 0x31, 0xe9, 0x41, 0xf9, 0x51, 0x09, 0x11, 0x59, 0xa1, 0x79, 0x91, 0x29, 0x71, 0x49, 0x81, 0x22, 0xa0, 0x7f, 0x80, 0x43, 0x01, 0x40, 0x48, 0x31, 0x40, 0x32, 0xa3, 0x39, 0x61, 0xe6, 0x13, 0x02, 0x46, 0x40, 0x00, 0x0c, 0x0c, 0x0c, 0x00, 0x0c, 0x0f, 0x58, 0xa1, 0x0b, 0x76, 0xdd, 0x05, 0x7a, 0x55, 0x59, 0xb1, 0x1c, 0x83, 0xa2, 0x0d, 0x00, 0xf0, 0x6c, 0xc0, 0x80, 0xe6, 0x01, 0xe0, 0xe8, 0x31, 0x80, 0xaa, 0x01, 0xa0, 0xa8, 0x31, 0xa7, 0x2e, 0x3e, 0x80, 0x66, 0x01, 0x28, 0xb1, 0x60, 0x68, 0x31, 0x27, 0xad, 0x33, 0xa0, 0x70, 0x74, 0xcc, 0xa7, 0x82, 0x0d, 0x01, 0x80, 0x88, 0x01, 0x80, 0x88, 0x31, 0x87, 0x26, 0x22, 0xd8, 0xa1, 0x1b, 0x00, 0xa0, 0x20, 0x74, 0x2a, 0xff, 0x00, 0x00, 0x74, 0x0a, 0xdd, 0xf0, 0x6c, 0xc0, 0x80, 0xe6, 0x01, 0xa2, 0x0d, 0x00, 0xe0, 0xe8, 0x31, 0x80, 0xaa, 0x01, 0xa0, 0xa8, 0x31, 0xa7, 0xae, 0xc0, 0x09, 0xc1, 0x37, 0x2e, 0x0d, 0x62, 0xce, 0xe8, 0x0c, 0xfe, 0x80, 0x66, 0x01, 0x60, 0x68, 0x31, 0x86, 0x09, 0x00, 0xe0, 0x2e, 0x20, 0x32, 0xa0, 0x06, 0x85, 0x26, 0x0b, 0x0d, 0x02, 0x0c, 0x63, 0x2d, 0x0e, 0x00, 0x10, 0x40, 0x0c, 0x1e, 0x00, 0xee, 0xa1, 0x0b, 0xee, 0xe0, 0xe0, 0xf4, 0xc5, 0x2b, 0x0b, 0x08, 0xc1, 0x80, 0x62, 0x01, 0x60, 0x68, 0x31, 0xa6, 0x56, 0x04, 0x0c, 0x56, 0x86, 0x00, 0x00, 0x60, 0x60, 0xf4, 0x09, 0xc1, 0x69, 0x01, 0x78, 0x91, 0x98, 0x81, 0x88, 0x71, 0x90, 0x90, 0x90, 0x42, 0x19, 0x00, 0x80, 0x8c, 0x90, 0x40, 0x4e, 0xb0, 0x4a, 0x46, 0x40, 0x40, 0xf4, 0x42, 0x58, 0x00, 0x9c, 0x47, 0x52, 0x19, 0x00, 0x21, 0xc0, 0xff, 0x3d, 0x0c, 0x6d, 0x0e, 0x78, 0x01, 0x01, 0x68, 0xfd, 0xc0, 0x00, 0x00, 0x08, 0xc1, 0x68, 0x01, 0x0c, 0xfa, 0xa7, 0x9e, 0x0b, 0x66, 0x56, 0x08, 0xb1, 0xba, 0xff, 0xc2, 0x4b, 0x00, 0xc6, 0x03, 0x00, 0xe8, 0x61, 0x1b, 0xcc, 0x80, 0xcc, 0x01, 0xc0, 0xc8, 0x31, 0xe0, 0xec, 0xc0, 0x56, 0xde, 0xf0, 0xc8, 0x21, 0xd8, 0x31, 0xe8, 0x41, 0xf8, 0x51, 0x08, 0x11, 0x12, 0xc1, 0x40, 0x0d, 0xf0, 0x00, 0x00, 0x12, 0xc1, 0xf0, 0xc9, 0x11, 0x09, 0x01, 0xcd, 0x02, 0x1c, 0x70, 0x27, 0x20, 0x1d, 0x1c, 0x12, 0xc7, 0x22, 0x12, 0xe6, 0xac, 0x09, 0x4c, 0x00, 0xe6, 0x6c, 0x13, 0x0c, 0x00, 0x86, 0x03, 0x00, 0x02, 0xa0, 0x60, 0x06, 0x02, 0x00, 0x02, 0xa0, 0x70, 0x86, 0x00, 0x00, 0x02, 0xa0, 0x78, 0x21, 0xa0, 0xfe, 0x00, 0x40, 0xf4, 0x02, 0x22, 0x00, 0x32, 0xa0, 0x01, 0x02, 0x20, 0x2b, 0x22, 0xa0, 0x03, 0xc0, 0x00, 0x00, 0x2d, 0x0c, 0x0c, 0x63, 0x45, 0x1f, 0x0b, 0x0c, 0x23, 0x0c, 0x65, 0xd0, 0x42, 0x11, 0x01, 0x97, 0xfe, 0x0c, 0x32, 0x08, 0x00, 0x50, 0x44, 0x20, 0x02, 0x20, 0x2b, 0x40, 0x40, 0xf4, 0xc0, 0x00, 0x00, 0xc8, 0x11, 0x08, 0x01, 0x12, 0xc1, 0x10, 0x0d, 0xf0, 0x00, 0x00, 0x00, 0x9a, 0x00, 0x60, 0x00, 0x00, 0x03, 0x00, 0xa0, 0x0f, 0x00, 0x00, 0xff, 0xff, 0xfc, 0xff, 0x00, 0x00, 0x01, 0x00, 0x00, 0x9e, 0x00, 0x60, 0x4d, 0x06, 0x12, 0xc1, 0xa0, 0xc9, 0xb1, 0x09, 0xa1, 0x29, 0x81, 0x39, 0x61, 0x52, 0x61, 0x11, 0xd9, 0xc1, 0xe9, 0xd1, 0xf9, 0xe1, 0xed, 0x07, 0xf1, 0x84, 0xfe, 0xd1, 0xf3, 0xff, 0x52, 0x0f, 0x08, 0x49, 0x71, 0x8c, 0x85, 0x98, 0x03, 0x39, 0x61, 0x90, 0x90, 0x05, 0x56, 0x89, 0x1e, 0x41, 0xef, 0xff, 0x31, 0x70, 0xfd, 0xc0, 0x20, 0x00, 0x22, 0x23, 0xf2, 0x40, 0x22, 0x20, 0xc0, 0x20, 0x00, 0x22, 0x63, 0xf2, 0xc0, 0x20, 0x00, 0x08, 0x0f, 0xc2, 0xa1, 0xe0, 0x02, 0x20, 0x28, 0xc2, 0x6d, 0x1a, 0xc0, 0x00, 0x00, 0x22, 0xa0, 0x77, 0x0c, 0x03, 0x1c, 0x24, 0x08, 0x0f, 0x0c, 0x75, 0x02, 0x20, 0x25, 0x0c, 0x06, 0xc0, 0x00, 0x00, 0x0c, 0x03, 0x1c, 0x84, 0x0c, 0x55, 0x0c, 0x56, 0x08, 0x0f, 0x29, 0x91, 0x02, 0x20, 0x25, 0x22, 0xa0, 0x77, 0xc0, 0x00, 0x00, 0x0c, 0x03, 0x1c, 0x84, 0x0c, 0x55, 0x0c, 0x56, 0x0c, 0x07, 0x08, 0x0f, 0xcd, 0x02, 0x02, 0x20, 0x27, 0x22, 0xa0, 0x77, 0xc0, 0x00, 0x00, 0x22, 0xa0, 0x77, 0x0c, 0x03, 0x1c, 0x24, 0x0c, 0x75, 0x08, 0x0f, 0x0c, 0x06, 0x02, 0x20, 0x27, 0x0c, 0x07, 0xc0, 0x00, 0x00, 0xc2, 0x61, 0x12, 0x16, 0x8e, 0x0d, 0x0c, 0x05, 0x0c, 0x0c, 0x22, 0x01, 0x6c, 0xf2, 0x21, 0x18, 0x29, 0xf1, 0xf0, 0x6c, 0x90, 0x62, 0x16, 0x00, 0x0c, 0x44, 0x0d, 0x04, 0x60, 0xa0, 0xe4, 0x60, 0x24, 0x04, 0x60, 0x87, 0x04, 0x60, 0xb6, 0x04, 0x60, 0x75, 0x04, 0x60, 0x99, 0x04, 0x60, 0x38, 0x04, 0x9a, 0x33, 0xba, 0x77, 0x8a, 0x33, 0x7a, 0x33, 0x1c, 0xd7, 0x60, 0x63, 0x04, 0x2a, 0x66, 0x6a, 0x33, 0x30, 0x30, 0x74, 0xf6, 0x53, 0x01, 0x0d, 0x03, 0x00, 0xb0, 0x74, 0x52, 0x61, 0x13, 0xa0, 0x00, 0x24, 0xb0, 0xbb, 0x90, 0x00, 0xbb, 0x90, 0x0d, 0x07, 0xb0, 0xb0, 0xf4, 0xb7, 0x37, 0x01, 0x0d, 0x0b, 0x00, 0x30, 0xf4, 0x32, 0x61, 0x10, 0x00, 0x03, 0x40, 0x50, 0x20, 0x91, 0x07, 0xe2, 0x5e, 0xa0, 0x20, 0xb4, 0x45, 0x93, 0x08, 0x21, 0xb3, 0xff, 0x32, 0xc1, 0x10, 0x01, 0x40, 0xfe, 0x42, 0xa0, 0x0a, 0x02, 0x20, 0x00, 0x52, 0x21, 0x0f, 0x02, 0x20, 0x3b, 0x0c, 0x06, 0xc0, 0x00, 0x00, 0x52, 0x21, 0x13, 0x0c, 0x18, 0x32, 0x21, 0x11, 0x42, 0x91, 0x08, 0x22, 0x91, 0x09, 0x92, 0x21, 0x10, 0x62, 0x91, 0x0a, 0x72, 0x91, 0x0b, 0x60, 0x60, 0x84, 0x70, 0x70, 0x84, 0x00, 0x19, 0x40, 0x20, 0x20, 0x84, 0x40, 0x40, 0x84, 0x30, 0x39, 0xb0, 0x70, 0x44, 0x11, 0x70, 0x22, 0x11, 0x00, 0x88, 0xa1, 0x80, 0x55, 0x20, 0x70, 0x22, 0x20, 0x60, 0x44, 0x20, 0x49, 0x03, 0x29, 0x13, 0x1b, 0xcc, 0xc0, 0xc0, 0x74, 0xf0, 0x6c, 0x90, 0xc0, 0x4e, 0xc0, 0x56, 0x54, 0xf3, 0x08, 0x61, 0xf1, 0x27, 0xfe, 0x08, 0x00, 0xc2, 0x21, 0x12, 0x07, 0xf0, 0x1a, 0x28, 0x81, 0x9c, 0x52, 0x0c, 0x02, 0x0c, 0x83, 0x48, 0x71, 0x52, 0x21, 0x11, 0x62, 0x01, 0x64, 0x72, 0x01, 0x68, 0x82, 0x01, 0x6c, 0x89, 0x01, 0x45, 0x93, 0xff, 0x7d, 0x0c, 0x41, 0x90, 0xff, 0xc0, 0x20, 0x00, 0x31, 0x0f, 0xfd, 0x22, 0x23, 0xf2, 0x40, 0x22, 0x10, 0xc0, 0x20, 0x00, 0x1c, 0x84, 0x0c, 0x55, 0x0c, 0x56, 0x22, 0x63, 0xf2, 0x08, 0x0f, 0x22, 0xa0, 0x77, 0x02, 0x20, 0x27, 0x0c, 0x03, 0xc0, 0x00, 0x00, 0x78, 0x91, 0x22, 0xa0, 0x77, 0x0c, 0x03, 0x1c, 0x24, 0x08, 0x0f, 0x0c, 0x75, 0x02, 0x20, 0x27, 0x0c, 0x06, 0xc0, 0x00, 0x00, 0x08, 0x0f, 0x02, 0x20, 0x32, 0xc0, 0x00, 0x00, 0x08, 0x0f, 0x02, 0x20, 0x31, 0xc0, 0x00, 0x00, 0x08, 0x0f, 0x02, 0x20, 0x2f, 0xc1, 0x7d, 0xff, 0xc0, 0x00, 0x00, 0x48, 0x61, 0x38, 0x04, 0x0c, 0x12, 0xc0, 0x33, 0x20, 0x39, 0x04, 0x22, 0x4f, 0x08, 0x16, 0xfe, 0x0d, 0xf2, 0x21, 0x18, 0x61, 0x77, 0xff, 0x0c, 0x0c, 0x28, 0x71, 0x02, 0x21, 0x11, 0x0c, 0x45, 0xf0, 0xac, 0x90, 0xa2, 0x1a, 0x00, 0x3d, 0x05, 0xa0, 0x78, 0x04, 0xa0, 0x94, 0x04, 0xa0, 0x83, 0x04, 0x9a, 0x88, 0xa0, 0xb6, 0x04, 0xa0, 0x95, 0x04, 0xba, 0x99, 0xa0, 0xb9, 0x04, 0xba, 0x77, 0xa0, 0xb7, 0x04, 0xba, 0x77, 0xa0, 0xa0, 0xe4, 0x1c, 0xdb, 0x9a, 0x77, 0x8a, 0x77, 0xa0, 0x80, 0x24, 0x70, 0x70, 0x74, 0xf6, 0x57, 0x01, 0x3d, 0x07, 0x30, 0x40, 0x74, 0x3d, 0x0b, 0x40, 0x74, 0x90, 0x80, 0x77, 0x90, 0x70, 0x70, 0xf4, 0x77, 0x3b, 0x01, 0x3d, 0x07, 0x30, 0xb0, 0xf4, 0x00, 0xbb, 0xb0, 0x88, 0x1b, 0xb8, 0x0b, 0x80, 0x39, 0x84, 0xb0, 0x70, 0x84, 0x80, 0x80, 0x84, 0xb0, 0xb9, 0x84, 0xc0, 0x20, 0x00, 0x80, 0xbb, 0x11, 0xf0, 0x9a, 0x01, 0x1c, 0xe5, 0x52, 0x6d, 0x1a, 0xba, 0x99, 0x70, 0xb1, 0x41, 0x60, 0x5c, 0xa0, 0xba, 0x99, 0xc0, 0x20, 0x00, 0x99, 0x05, 0xc0, 0x20, 0x00, 0x1c, 0xfb, 0xb2, 0x6d, 0x1a, 0xc0, 0x20, 0x00, 0x10, 0x77, 0x01, 0xa0, 0x33, 0x01, 0x99, 0x05, 0x7a, 0x33, 0x20, 0x74, 0x90, 0x72, 0x17, 0x00, 0x30, 0x88, 0x11, 0x70, 0x70, 0xa4, 0x80, 0x77, 0xa0, 0x7a, 0x33, 0xc0, 0x20, 0x00, 0x82, 0xa1, 0xe0, 0x82, 0x6d, 0x1a, 0xc0, 0x20, 0x00, 0x39, 0x05, 0xc0, 0x20, 0x00, 0x72, 0xa1, 0xe1, 0x72, 0x6d, 0x1a, 0xc0, 0x20, 0x00, 0x39, 0x05, 0x1b, 0xcc, 0x32, 0x21, 0x14, 0x0c, 0x45, 0xc0, 0xc0, 0x74, 0xc0, 0x8e, 0xc0, 0x56, 0xe8, 0xf2, 0xc8, 0xb1, 0xd8, 0xc1, 0xe8, 0xd1, 0xf8, 0xe1, 0x08, 0xa1, 0x12, 0xc1, 0x60, 0x0d, 0xf0, 0x00, 0x00, 0x12, 0xc1, 0xc0, 0xd2, 0x61, 0x0c, 0xc2, 0x61, 0x0b, 0x09, 0xa1, 0xcd, 0x02, 0x21, 0xb6, 0xfc, 0xc0, 0x20, 0x00, 0x52, 0x22, 0xe3, 0x50, 0x59, 0x21, 0xc0, 0x20, 0x00, 0x42, 0x22, 0xe0, 0x40, 0x49, 0x21, 0x5a, 0x44, 0xc0, 0x20, 0x00, 0x52, 0x22, 0xe2, 0x50, 0x59, 0x21, 0xc0, 0x20, 0x00, 0x02, 0x22, 0xe1, 0x00, 0x09, 0x21, 0x50, 0x00, 0xc0, 0x09, 0x31, 0xc0, 0x20, 0x00, 0x62, 0x22, 0xf7, 0x60, 0x68, 0x21, 0x69, 0x01, 0xc0, 0x20, 0x00, 0x52, 0x22, 0xf8, 0x50, 0x58, 0x21, 0x59, 0x11, 0xc0, 0x20, 0x00, 0x22, 0x22, 0xf9, 0x7c, 0xcd, 0x52, 0xc3, 0xfe, 0x00, 0x0f, 0x31, 0x09, 0x21, 0x00, 0x05, 0x40, 0xd0, 0xd3, 0x90, 0x40, 0x5f, 0x31, 0x20, 0x20, 0xb1, 0x29, 0x0c, 0x3d, 0x05, 0x2d, 0x04, 0x45, 0x33, 0x0a, 0x29, 0x51, 0x39, 0x41, 0x58, 0x21, 0x48, 0x31, 0x3d, 0x05, 0x2d, 0x04, 0x45, 0x32, 0x0a, 0x4d, 0x03, 0x68, 0x51, 0x38, 0x41, 0x2a, 0x26, 0x4a, 0x33, 0x67, 0xb2, 0x01, 0x1b, 0x33, 0x4d, 0x0d, 0x45, 0xec, 0x0a, 0x29, 0x1c, 0x48, 0x01, 0x68, 0x11, 0x69, 0x71, 0x40, 0x5f, 0x31, 0x60, 0x6f, 0x31, 0x69, 0x61, 0x3d, 0x05, 0x2d, 0x04, 0x85, 0x2f, 0x0a, 0x29, 0x91, 0x39, 0x81, 0x58, 0x61, 0x48, 0x71, 0x3d, 0x05, 0x2d, 0x04, 0x85, 0x2e, 0x0a, 0x4d, 0x03, 0x88, 0x91, 0x38, 0x81, 0x2a, 0x28, 0x4a, 0x33, 0x87, 0xb2, 0x01, 0x1b, 0x33, 0x4d, 0x0d, 0x85, 0xe8, 0x0a, 0x08, 0xa1, 0x29, 0x2c, 0xd8, 0xc1, 0xc8, 0xb1, 0x12, 0xc1, 0x40, 0x0d, 0xf0, 0x37, 0x22, 0x02, 0x27, 0xa4, 0x11, 0x00, 0x15, 0x40, 0x31, 0x8c, 0xfd, 0x0c, 0x14, 0x28, 0x33, 0x00, 0x44, 0xa1, 0x40, 0x22, 0x20, 0x29, 0x33, 0x0d, 0xf0, 0x00, 0x00, 0xfd, 0x7f, 0xfd, 0xff, 0x82, 0xae, 0x00, 0x72, 0xa1, 0x42, 0x31, 0xf5, 0xfe, 0xc0, 0x20, 0x00, 0x62, 0x23, 0x59, 0x80, 0x66, 0x10, 0x70, 0x66, 0x20, 0xc0, 0x20, 0x00, 0x62, 0x63, 0x59, 0x51, 0xf8, 0xff, 0x0c, 0x24, 0xc0, 0x20, 0x00, 0x22, 0x23, 0x58, 0x50, 0x22, 0x10, 0x40, 0x22, 0x20, 0xc0, 0x20, 0x00, 0x22, 0x63, 0x58, 0x0d, 0xf0, 0x00, 0x0a, 0xf2, 0x3f, 0xcc, 0x2e, 0x00, 0x40, 0x12, 0xc1, 0xe0, 0x09, 0x11, 0x29, 0x01, 0xd9, 0x31, 0xe9, 0x41, 0xc9, 0x21, 0xed, 0x05, 0xc1, 0xe4, 0xfe, 0xd1, 0xf9, 0xff, 0xc0, 0x20, 0x00, 0x02, 0x2c, 0x58, 0x49, 0x51, 0x17, 0xe0, 0x24, 0x2d, 0x03, 0x01, 0xf6, 0xff, 0xc0, 0x00, 0x00, 0x01, 0x6e, 0xfd, 0x08, 0x00, 0x02, 0x20, 0x19, 0x28, 0x01, 0xc0, 0x00, 0x00, 0x08, 0x51, 0xc0, 0x20, 0x00, 0x22, 0x2c, 0x58, 0x17, 0xe2, 0x13, 0x0c, 0x02, 0x06, 0x07, 0x00, 0xc0, 0x20, 0x00, 0x52, 0x2d, 0x80, 0x40, 0x55, 0xc0, 0x57, 0xbe, 0xc3, 0xc6, 0x02, 0x00, 0xc0, 0x20, 0x00, 0x62, 0x2d, 0x80, 0x00, 0x66, 0xc0, 0x67, 0xbe, 0xd6, 0x0c, 0x12, 0xc8, 0x21, 0xd8, 0x31, 0xe8, 0x41, 0x08, 0x11, 0x12, 0xc1, 0x20, 0x0d, 0xf0, 0x00, 0xff, 0xff, 0xff, 0xf7, 0x91, 0xff, 0xff, 0x31, 0xca, 0xfe, 0xc0, 0x20, 0x00, 0x82, 0x23, 0x42, 0x90, 0x88, 0x10, 0xc0, 0x20, 0x00, 0x82, 0x63, 0x42, 0x0c, 0x17, 0xc0, 0x20, 0x00, 0x62, 0x23, 0x58, 0x70, 0x66, 0x20, 0xc0, 0x20, 0x00, 0x62, 0x63, 0x58, 0x7c, 0xe5, 0xc0, 0x20, 0x00, 0x42, 0x23, 0x58, 0x50, 0x44, 0x10, 0xc0, 0x20, 0x00, 0x42, 0x63, 0x58, 0xc0, 0x20, 0x00, 0x29, 0xb3, 0x0d, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0xff, 0xff, 0xf7, 0xff, 0x41, 0xb9, 0xfe, 0xc0, 0x20, 0x00, 0x71, 0xfc, 0xff, 0x28, 0xb4, 0xc0, 0x20, 0x00, 0x62, 0x24, 0x42, 0x70, 0x66, 0x20, 0xc0, 0x20, 0x00, 0x62, 0x64, 0x42, 0x51, 0xf8, 0xff, 0xc0, 0x20, 0x00, 0x38, 0xb4, 0x50, 0x33, 0x10, 0xc0, 0x20, 0x00, 0x39, 0xb4, 0x0d, 0xf0, 0x12, 0xc1, 0xf0, 0x02, 0x61, 0x00, 0x01, 0x3c, 0xfd, 0x02, 0x20, 0x00, 0x02, 0x20, 0x11, 0x32, 0xa0, 0x80, 0xc0, 0x00, 0x00, 0xc5, 0x21, 0x09, 0x22, 0xa0, 0x00, 0x08, 0x01, 0x12, 0xc1, 0x10, 0x0d, 0xf0, 0x00, 0x00, 0xcc, 0xf2, 0xfe, 0x3f, 0xa8, 0xf1, 0xfe, 0x3f, 0xb5, 0xf2, 0xfe, 0x3f, 0x60, 0xf1, 0xfe, 0x3f, 0xcf, 0x09, 0x00, 0x00, 0x38, 0x80, 0xfe, 0x3f, 0x00, 0x00, 0x04, 0x00, 0x12, 0xc1, 0xc0, 0xc2, 0x61, 0x06, 0xd2, 0x61, 0x07, 0xf9, 0x91, 0xe9, 0x81, 0xe1, 0x2a, 0xfd, 0x09, 0x51, 0x08, 0x4e, 0xf2, 0xce, 0x2d, 0x00, 0x02, 0x05, 0x56, 0x80, 0x18, 0x08, 0x0e, 0x02, 0x20, 0x28, 0xc0, 0x00, 0x00, 0x08, 0x0e, 0x02, 0x20, 0x30, 0x0c, 0x12, 0xc0, 0x00, 0x00, 0xc1, 0x26, 0xfe, 0x22, 0x1c, 0x01, 0x20, 0x20, 0xb4, 0x45, 0x62, 0x08, 0x22, 0x1c, 0x01, 0x32, 0xc1, 0x10, 0x0c, 0x14, 0xc5, 0xfa, 0x02, 0x08, 0x0e, 0x08, 0x60, 0x0c, 0x02, 0xc0, 0x00, 0x00, 0xd2, 0x01, 0x12, 0x0c, 0x0c, 0x31, 0xe4, 0xff, 0x39, 0xa1, 0x9c, 0x6c, 0x26, 0x1c, 0x0f, 0x26, 0x2c, 0x07, 0x66, 0x3c, 0x10, 0x0c, 0xed, 0xc6, 0x02, 0x00, 0x0c, 0xbd, 0x86, 0x01, 0x00, 0x0c, 0x6d, 0x46, 0x00, 0x00, 0x0c, 0x1d, 0x72, 0x21, 0x0a, 0x62, 0xa0, 0x64, 0x42, 0xa0, 0x01, 0x31, 0xdb, 0xff, 0x51, 0xd9, 0xff, 0x80, 0x2d, 0x01, 0x20, 0x28, 0x31, 0x52, 0x95, 0xfc, 0x32, 0x03, 0x80, 0x49, 0x11, 0x69, 0x01, 0x0c, 0x04, 0x61, 0xd6, 0xff, 0x85, 0x00, 0x09, 0x4c, 0x02, 0x2c, 0x83, 0x0c, 0x24, 0x0c, 0x05, 0xd0, 0x6d, 0x90, 0x6a, 0x6f, 0x05, 0x51, 0x04, 0x1b, 0xcc, 0xc0, 0xc0, 0x74, 0x66, 0x4c, 0xa4, 0x0c, 0x0c, 0x0c, 0x0f, 0x0c, 0x3d, 0x01, 0xcd, 0xff, 0xd9, 0xb1, 0x0a, 0xef, 0xd2, 0xa0, 0x0e, 0xf6, 0x6c, 0x22, 0xc0, 0x2c, 0x20, 0x32, 0xa0, 0x05, 0x02, 0x0e, 0x20, 0x09, 0xe1, 0x05, 0xbc, 0x0a, 0x3d, 0x02, 0x42, 0x0e, 0x2f, 0x28, 0xe1, 0x01, 0xc5, 0xff, 0x20, 0x44, 0xc0, 0x40, 0x33, 0x82, 0x3a, 0x22, 0xc6, 0x13, 0x00, 0x52, 0xa0, 0x0a, 0xc7, 0x35, 0x21, 0x32, 0xa0, 0x05, 0x22, 0xcc, 0xfb, 0x42, 0x0e, 0x3e, 0x52, 0x0e, 0x2f, 0x52, 0x61, 0x0d, 0x50, 0x44, 0xc0, 0x40, 0x22, 0x82, 0x85, 0xad, 0x0a, 0x68, 0xd1, 0x01, 0xb9, 0xff, 0x6a, 0x22, 0xc6, 0x09, 0x00, 0x22, 0x0e, 0x47, 0x72, 0xa0, 0x0c, 0xc7, 0x37, 0x1e, 0xc0, 0x8c, 0xa0, 0x32, 0x0e, 0x3e, 0x32, 0x61, 0x0c, 0x82, 0xc8, 0xce, 0x30, 0x22, 0xc0, 0x20, 0x28, 0x82, 0x32, 0xa0, 0x16, 0xc5, 0xaa, 0x0a, 0x98, 0xc1, 0x01, 0xae, 0xff, 0x9a, 0x22, 0xd2, 0xcd, 0xff, 0xc0, 0x3c, 0x90, 0x30, 0x3f, 0x80, 0x1b, 0xcc, 0xc0, 0xc0, 0x74, 0x3a, 0x30, 0x22, 0x43, 0x20, 0x56, 0x3d, 0xf7, 0x0c, 0x0c, 0x48, 0xb1, 0x1b, 0xff, 0xf0, 0xf0, 0x74, 0x0a, 0xef, 0x0b, 0x44, 0x49, 0xb1, 0x56, 0xe4, 0xf5, 0x31, 0xa4, 0xff, 0x21, 0xa1, 0xff, 0x0c, 0x04, 0x22, 0x02, 0x80, 0xc5, 0x55, 0x08, 0xd1, 0xd2, 0xfc, 0x4c, 0x02, 0x2c, 0x83, 0x0c, 0x24, 0x0c, 0x05, 0x61, 0x9f, 0xff, 0xc5, 0x43, 0x04, 0x08, 0x0d, 0x02, 0x20, 0x32, 0xc0, 0x00, 0x00, 0x08, 0x0d, 0x02, 0x20, 0x31, 0xc0, 0x00, 0x00, 0x08, 0x0d, 0x02, 0x20, 0x2f, 0xc1, 0x99, 0xff, 0xc0, 0x00, 0x00, 0x28, 0x4d, 0xc0, 0x22, 0x20, 0x29, 0x4d, 0x86, 0x06, 0x00, 0x22, 0x0e, 0x5e, 0x32, 0x0e, 0x5e, 0x80, 0x22, 0x01, 0x20, 0x28, 0x31, 0x80, 0x33, 0x01, 0x30, 0x38, 0x31, 0x30, 0x22, 0x90, 0x20, 0x2f, 0x80, 0xc5, 0x99, 0x08, 0xc2, 0x21, 0x06, 0xd2, 0x21, 0x07, 0xe8, 0x81, 0xf8, 0x91, 0x08, 0x51, 0x12, 0xc1, 0x40, 0x0d, 0xf0, 0x00, 0x00, 0x1c, 0x08, 0x62, 0x03, 0x00, 0x1c, 0xc5, 0x47, 0xa5, 0x04, 0x0c, 0xc7, 0x86, 0x02, 0x00, 0x47, 0xa8, 0x05, 0x72, 0xc4, 0xf0, 0x46, 0x00, 0x00, 0x0c, 0x07, 0x70, 0x66, 0xc0, 0x62, 0x42, 0x00, 0x7d, 0x08, 0x47, 0x28, 0x01, 0x7d, 0x04, 0x0c, 0x14, 0x4a, 0x92, 0x1b, 0xa4, 0x4a, 0x83, 0x82, 0x08, 0x00, 0xa0, 0x40, 0x74, 0x70, 0x88, 0xc0, 0x82, 0x49, 0x00, 0x66, 0x64, 0xea, 0x0d, 0xf0, 0xec, 0xf2, 0xfe, 0x3f, 0x7d, 0xf1, 0xfe, 0x3f, 0xc8, 0xf1, 0xfe, 0x3f, 0xb0, 0xf1, 0xfe, 0x3f, 0x00, 0x00, 0x00, 0x20, 0x62, 0xa0, 0x64, 0x42, 0xa0, 0x01, 0x71, 0xf9, 0xff, 0x12, 0xc1, 0xd0, 0xe9, 0xa1, 0x09, 0x71, 0xc9, 0x81, 0xd9, 0x91, 0x52, 0x97, 0x5a, 0xdd, 0x03, 0xcd, 0x02, 0x32, 0x07, 0x49, 0x80, 0x22, 0x01, 0x20, 0x28, 0x31, 0x72, 0xc7, 0xe0, 0x49, 0x11, 0x69, 0x01, 0x0c, 0x04, 0x61, 0x66, 0xff, 0x85, 0xe4, 0x08, 0x31, 0xef, 0xff, 0xc0, 0x2c, 0x90, 0x3a, 0x22, 0x85, 0x8f, 0x08, 0x66, 0x6c, 0x02, 0x85, 0xfb, 0x02, 0xe1, 0xec, 0xff, 0x66, 0x1d, 0x34, 0x0c, 0x0d, 0x0c, 0x04, 0x49, 0x61, 0xe0, 0x2e, 0x20, 0x05, 0x0f, 0x03, 0x52, 0x21, 0x06, 0xd0, 0xd2, 0x80, 0x00, 0xdd, 0x11, 0xd0, 0xd0, 0x31, 0x1b, 0x05, 0x00, 0x50, 0x74, 0x59, 0x61, 0x66, 0x45, 0xe3, 0x2b, 0x0d, 0x5b, 0xdd, 0x00, 0xd0, 0xb3, 0xd0, 0xd2, 0x21, 0x00, 0xdd, 0x11, 0xd0, 0xd0, 0x31, 0x46, 0x00, 0x00, 0x0c, 0x0d, 0x3d, 0x0e, 0x22, 0xc1, 0x10, 0x4d, 0x0d, 0x05, 0xf2, 0xff, 0x01, 0xd8, 0xff, 0xe1, 0x4e, 0xff, 0x61, 0x72, 0xfb, 0xd0, 0x80, 0x74, 0x26, 0x1c, 0x12, 0x22, 0xcc, 0xfa, 0x16, 0x22, 0x0b, 0x42, 0xcc, 0xf5, 0x0c, 0x23, 0x0c, 0x32, 0x40, 0x23, 0x83, 0x86, 0x00, 0x00, 0x22, 0xa0, 0x00, 0xd0, 0x92, 0x11, 0xe0, 0xa2, 0x90, 0xd2, 0x5a, 0x06, 0x00, 0x19, 0x40, 0x00, 0x88, 0xa1, 0x92, 0xa0, 0xff, 0xa2, 0xaf, 0xff, 0x00, 0x99, 0xa1, 0xa0, 0x99, 0x30, 0xc0, 0x20, 0x00, 0x72, 0x26, 0xff, 0x90, 0x77, 0x10, 0x80, 0x77, 0x20, 0xc0, 0x20, 0x00, 0x72, 0x66, 0xff, 0x52, 0x00, 0x98, 0x66, 0x15, 0x08, 0xd0, 0xb0, 0xf4, 0xc0, 0x20, 0x00, 0xb2, 0x66, 0xff, 0x32, 0xc1, 0x10, 0x42, 0xa0, 0x06, 0x1c, 0xf5, 0x71, 0xc1, 0xff, 0x20, 0xc2, 0x90, 0x61, 0x69, 0xfd, 0x22, 0xa1, 0x38, 0xf0, 0xcc, 0x11, 0x62, 0x16, 0x01, 0x7a, 0x7c, 0x29, 0x01, 0x4c, 0x02, 0xd2, 0x00, 0xb6, 0xd9, 0x11, 0x45, 0x44, 0x04, 0xd8, 0x91, 0x08, 0x71, 0xea, 0xac, 0x31, 0x5d, 0xfc, 0xe8, 0xa1, 0x82, 0x0a, 0x51, 0x92, 0x03, 0x79, 0x72, 0x03, 0x78, 0xa2, 0x0a, 0x50, 0x80, 0x88, 0x01, 0x80, 0x88, 0x31, 0x80, 0xaa, 0x01, 0x90, 0x77, 0xc0, 0xa0, 0xa8, 0x31, 0xa0, 0x88, 0xc0, 0x4b, 0x77, 0x87, 0xa7, 0x09, 0xc1, 0xae, 0xff, 0xb8, 0x43, 0xc0, 0xbb, 0x20, 0xb9, 0x43, 0xc8, 0x81, 0x12, 0xc1, 0x30, 0x0d, 0xf0, 0x0c, 0x12, 0xc6, 0xd5, 0xff, 0xdf, 0xf4, 0xfe, 0x3f, 0x17, 0xf3, 0xfe, 0x3f, 0x5e, 0xf3, 0xfe, 0x3f, 0x42, 0xc2, 0xfa, 0x20, 0x52, 0xa0, 0x12, 0xc1, 0xc0, 0xd2, 0x61, 0x05, 0x32, 0x61, 0x0c, 0x02, 0x61, 0x03, 0xe9, 0x61, 0xf9, 0x71, 0xc9, 0x41, 0x52, 0xc5, 0xc9, 0xcd, 0x02, 0x59, 0x21, 0x49, 0x81, 0x0c, 0x0f, 0x0c, 0x6e, 0x01, 0x0f, 0xff, 0x0b, 0x32, 0x39, 0xb1, 0xdd, 0x00, 0x02, 0xc0, 0xf0, 0xf6, 0x7c, 0x2a, 0x0c, 0x53, 0x28, 0xb1, 0x42, 0x0d, 0x56, 0x52, 0x0d, 0x50, 0x59, 0xa1, 0x80, 0x44, 0x01, 0x80, 0x55, 0x01, 0x50, 0x58, 0x31, 0x40, 0x48, 0x31, 0x50, 0x44, 0xc0, 0x40, 0x22, 0x82, 0x05, 0x80, 0x0a, 0x58, 0xa1, 0x01, 0x35, 0xfc, 0x5a, 0x22, 0x06, 0x18, 0x00, 0xf6, 0xac, 0x2d, 0x32, 0xa0, 0x05, 0x22, 0x21, 0x08, 0x42, 0x0d, 0x5c, 0x52, 0x0d, 0x56, 0x52, 0x61, 0x09, 0x80, 0x44, 0x01, 0x80, 0x55, 0x01, 0x50, 0x58, 0x31, 0x40, 0x48, 0x31, 0x50, 0x44, 0xc0, 0x40, 0x22, 0x82, 0x05, 0x7d, 0x0a, 0x58, 0x91, 0x01, 0x29, 0xfc, 0x5a, 0x22, 0xc6, 0x0b, 0x00, 0x22, 0x0d, 0x62, 0x62, 0xa0, 0x0d, 0x80, 0x22, 0x01, 0x20, 0x28, 0x31, 0xc7, 0x36, 0x20, 0x42, 0x0d, 0x5c, 0x42, 0x61, 0x01, 0x80, 0x44, 0x01, 0x40, 0x48, 0x31, 0x40, 0x42, 0xc0, 0x22, 0x21, 0x02, 0x1c, 0x63, 0x40, 0x22, 0x82, 0xc5, 0x79, 0x0a, 0x58, 0x11, 0x01, 0x1c, 0xfc, 0x5a, 0x22, 0xd2, 0xcd, 0x01, 0xe2, 0xce, 0xff, 0x72, 0x21, 0x0c, 0x62, 0x00, 0x88, 0x7a, 0x7f, 0x80, 0x66, 0x01, 0x1b, 0xff, 0x60, 0x68, 0x31, 0x2a, 0x66, 0x62, 0x47, 0x00, 0x56, 0x2e, 0xf5, 0x21, 0xc6, 0xff, 0x91, 0xc4, 0xff, 0xa8, 0xc1, 0x92, 0x09, 0x00, 0xb2, 0x0a, 0x00, 0x80, 0x99, 0x01, 0x90, 0x98, 0x31, 0xba, 0x99, 0x92, 0x4a, 0x00, 0x82, 0x02, 0x6c, 0xa2, 0x02, 0x8c, 0x26, 0x18, 0x28, 0x26, 0x1a, 0x25, 0x0c, 0x05, 0xd2, 0xaf, 0x80, 0x6d, 0x0d, 0x21, 0xbc, 0xff, 0x0c, 0xd3, 0x48, 0xc1, 0xd2, 0x40, 0x5f, 0x52, 0x40, 0x7e, 0x05, 0x05, 0x03, 0xc8, 0x41, 0xd8, 0x51, 0xe8, 0x61, 0xf8, 0x71, 0x08, 0x31, 0x12, 0xc1, 0x40, 0x0d, 0xf0, 0xb2, 0x02, 0x63, 0xe2, 0x02, 0x67, 0xdc, 0x5b, 0xb6, 0x3c, 0x02, 0x86, 0x45, 0x00, 0x21, 0xcb, 0xfe, 0x22, 0x02, 0x52, 0x0c, 0x15, 0x80, 0xd2, 0x01, 0xd0, 0xd8, 0x31, 0xc6, 0xef, 0xff, 0xc7, 0x3e, 0x5d, 0xf1, 0xc6, 0xfe, 0xd2, 0x02, 0x65, 0xf0, 0xdd, 0x80, 0xd2, 0x0d, 0x50, 0xf2, 0x02, 0x68, 0x80, 0xdd, 0x01, 0xd0, 0xd8, 0x31, 0x66, 0x1f, 0x40, 0xc1, 0xf2, 0xfb, 0x32, 0xa0, 0x05, 0x22, 0x0c, 0x66, 0xc2, 0x0c, 0x60, 0x80, 0x22, 0x01, 0x20, 0x28, 0x31, 0x80, 0xcc, 0x01, 0xc0, 0xc8, 0x31, 0xc0, 0x22, 0xc0, 0x20, 0x2e, 0x82, 0x05, 0x6d, 0x0a, 0x2a, 0x3c, 0x80, 0x33, 0x01, 0x28, 0xb1, 0x30, 0x38, 0x31, 0xd0, 0x33, 0xc0, 0x30, 0x22, 0x82, 0x3d, 0x0e, 0xc5, 0x6b, 0x0a, 0x01, 0xe4, 0xfb, 0x2a, 0xdd, 0x80, 0xdd, 0x01, 0xd0, 0xd8, 0x31, 0x0c, 0x15, 0x86, 0xd7, 0xff, 0x32, 0x02, 0x66, 0xf2, 0xa0, 0x0f, 0x30, 0xff, 0xc0, 0xf7, 0x2c, 0x49, 0xf1, 0xab, 0xfe, 0xd2, 0x02, 0x64, 0xf0, 0xdd, 0x80, 0xd2, 0x0d, 0x62, 0x42, 0x02, 0x68, 0x80, 0xdd, 0x01, 0xd0, 0xd8, 0x31, 0x66, 0x14, 0xd6, 0xf2, 0x00, 0x6c, 0x80, 0xff, 0x01, 0xf0, 0xf8, 0x31, 0xf6, 0xac, 0x2d, 0x21, 0xd4, 0xfb, 0x32, 0xa0, 0x08, 0x22, 0x02, 0x66, 0xe0, 0x33, 0xc0, 0x80, 0x22, 0x01, 0x20, 0x28, 0x31, 0x29, 0x01, 0x20, 0x2f, 0xc0, 0x30, 0x22, 0x82, 0x0c, 0x53, 0xc5, 0x65, 0x0a, 0x08, 0x01, 0x2a, 0x00, 0x86, 0x0a, 0x00, 0x0c, 0x05, 0xd2, 0xaf, 0x80, 0x06, 0xc0, 0xff, 0x21, 0xc9, 0xfb, 0x32, 0xa0, 0x03, 0x22, 0x02, 0x72, 0xe0, 0x33, 0xc0, 0x80, 0x22, 0x01, 0x20, 0x28, 0x31, 0xf0, 0x22, 0xc0, 0x30, 0x22, 0x82, 0x20, 0x22, 0xa0, 0x32, 0xa0, 0x16, 0xc5, 0x62, 0x0a, 0x2a, 0x0f, 0x0c, 0xe3, 0x80, 0x20, 0x01, 0x20, 0x28, 0x31, 0xc0, 0x33, 0xc0, 0xd0, 0x22, 0xc0, 0x30, 0x22, 0x82, 0x3d, 0x0e, 0x45, 0x61, 0x0a, 0x01, 0xbb, 0xfb, 0x2a, 0xdd, 0x80, 0xdd, 0x01, 0xd0, 0xd8, 0x31, 0x46, 0xd5, 0xff, 0xb6, 0x9c, 0x08, 0x21, 0x84, 0xfe, 0x22, 0x02, 0x5e, 0x86, 0xb8, 0xff, 0xd2, 0xaf, 0x80, 0x0c, 0x05, 0x46, 0xa9, 0xff, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0xaa, 0xf2, 0xfe, 0x3f, 0x12, 0xc1, 0xd0, 0xe2, 0x61, 0x07, 0x22, 0x61, 0x09, 0xc9, 0x51, 0x09, 0x41, 0xf9, 0x81, 0xd9, 0x61, 0xd1, 0xab, 0xfb, 0xfd, 0x02, 0x08, 0x4d, 0xc1, 0xae, 0xfc, 0x00, 0x04, 0x05, 0x56, 0x30, 0x09, 0x08, 0x0d, 0x02, 0x20, 0x28, 0xc0, 0x00, 0x00, 0x08, 0x0d, 0x02, 0x20, 0x30, 0x0c, 0x12, 0xc0, 0x00, 0x00, 0x22, 0x1c, 0x01, 0x20, 0x20, 0xb4, 0xc5, 0x02, 0x08, 0x22, 0x1c, 0x01, 0x3d, 0x01, 0x0c, 0x14, 0x45, 0x9b, 0x02, 0x08, 0x0d, 0x08, 0x60, 0x0c, 0x02, 0xc0, 0x00, 0x00, 0xe2, 0x01, 0x02, 0x0c, 0x0c, 0x9c, 0x6c, 0x26, 0x1c, 0x0f, 0x26, 0x2c, 0x07, 0x66, 0x3c, 0x10, 0x0c, 0xee, 0xc6, 0x02, 0x00, 0x0c, 0xbe, 0x86, 0x01, 0x00, 0x0c, 0x1e, 0x46, 0x00, 0x00, 0x0c, 0x6e, 0x3d, 0x0f, 0x2d, 0x0e, 0x85, 0xbb, 0xff, 0x1b, 0xcc, 0xc0, 0xc0, 0x74, 0x66, 0x4c, 0xd4, 0x08, 0x0d, 0x02, 0x20, 0x32, 0xc0, 0x00, 0x00, 0x08, 0x0d, 0x02, 0x20, 0x31, 0xc0, 0x00, 0x00, 0x08, 0x0d, 0x02, 0x20, 0x2f, 0xc1, 0xd9, 0xff, 0xc0, 0x00, 0x00, 0x08, 0x4d, 0x31, 0xd8, 0xff, 0x0c, 0x02, 0x22, 0x4d, 0x89, 0x22, 0x4d, 0x88, 0x22, 0x53, 0x41, 0x22, 0x43, 0x80, 0xc0, 0x00, 0x20, 0x09, 0x4d, 0x06, 0x06, 0x00, 0x10, 0x31, 0x20, 0x42, 0xa0, 0x00, 0x22, 0x1d, 0x43, 0x22, 0x5c, 0x01, 0x45, 0x93, 0x02, 0x22, 0x1c, 0x01, 0x3d, 0x01, 0x05, 0x89, 0x02, 0x08, 0x4d, 0xb7, 0xf0, 0x06, 0x0c, 0xe2, 0x8b, 0x31, 0xc5, 0xcb, 0xff, 0xc8, 0x51, 0xd8, 0x61, 0xe8, 0x71, 0xf8, 0x81, 0x08, 0x41, 0x12, 0xc1, 0x30, 0x0d, 0xf0, 0x00, 0x21, 0xe6, 0xfc, 0xc0, 0x20, 0x00, 0x22, 0x22, 0x59, 0x20, 0x24, 0xb5, 0x1b, 0x22, 0x20, 0x21, 0x41, 0x22, 0xd2, 0xf8, 0x00, 0x22, 0x11, 0x20, 0x20, 0x31, 0x0d, 0xf0, 0x12, 0xc1, 0xf0, 0x09, 0x01, 0x01, 0x6d, 0xfb, 0x08, 0x00, 0x08, 0xa0, 0xc0, 0x00, 0x00, 0x52, 0xae, 0xac, 0x02, 0xae, 0x78, 0x07, 0x22, 0x01, 0x0d, 0x02, 0x2d, 0x05, 0x07, 0x25, 0x01, 0x2d, 0x00, 0x08, 0x01, 0x00, 0x22, 0x11, 0x20, 0x20, 0x31, 0x12, 0xc1, 0x10, 0x0d, 0xf0, 0x00, 0x00, 0x7c, 0xda, 0x41, 0xd2, 0xfc, 0xc0, 0x20, 0x00, 0x92, 0x24, 0x58, 0xa0, 0x99, 0x10, 0xc0, 0x20, 0x00, 0x92, 0x64, 0x58, 0x1b, 0xa2, 0x2b, 0x82, 0xa0, 0x8a, 0xb3, 0x80, 0x81, 0x21, 0x92, 0xae, 0x00, 0x82, 0xd8, 0x02, 0x80, 0x80, 0x84, 0xc0, 0x20, 0x00, 0x72, 0x24, 0x59, 0x90, 0x77, 0x10, 0x80, 0x77, 0x20, 0xc0, 0x20, 0x00, 0x72, 0x64, 0x59, 0x61, 0xcc, 0xfd, 0x0c, 0x25, 0xc0, 0x20, 0x00, 0x32, 0x24, 0x58, 0x60, 0x33, 0x10, 0x50, 0x33, 0x20, 0xc0, 0x20, 0x00, 0x32, 0x64, 0x58, 0x0d, 0xf0, 0x00, 0x00, 0x00, 0xf0, 0xff, 0xff, 0x02, 0x80, 0x02, 0x00, 0x71, 0xbc, 0xfc, 0xc0, 0x20, 0x00, 0x32, 0x27, 0x58, 0x82, 0xa1, 0xa0, 0x17, 0xe3, 0x2f, 0x20, 0x90, 0x24, 0xa1, 0xf9, 0xff, 0x70, 0x99, 0x11, 0xc0, 0x20, 0x00, 0x62, 0x27, 0x59, 0xa0, 0x66, 0x10, 0x90, 0x66, 0x20, 0x80, 0x66, 0x20, 0xc0, 0x20, 0x00, 0x62, 0x67, 0x59, 0x51, 0xf3, 0xff, 0xc0, 0x20, 0x00, 0x42, 0x27, 0x58, 0x50, 0x44, 0x20, 0xc0, 0x20, 0x00, 0x42, 0x67, 0x58, 0x0d, 0xf0, 0x00, 0x00, 0x00, 0x01, 0xf0, 0xff, 0xff, 0x00, 0x96, 0x00, 0x60, 0x31, 0xfe, 0xff, 0x21, 0xfe, 0xff, 0xc0, 0x20, 0x00, 0x22, 0x22, 0x89, 0x20, 0x20, 0xb4, 0x3a, 0x22, 0x20, 0x21, 0x41, 0x00, 0x22, 0x11, 0x20, 0x20, 0x31, 0x0d, 0xf0, 0xff, 0xf1, 0xff, 0xff, 0xd8, 0xf4, 0xfe, 0x3f, 0xd0, 0xf1, 0xfe, 0x3f, 0x24, 0xf3, 0xfe, 0x3f, 0x71, 0xfc, 0xff, 0x62, 0xa2, 0x00, 0x12, 0xc1, 0xf0, 0x09, 0x01, 0xc9, 0x11, 0xd9, 0x21, 0x51, 0x9a, 0xfc, 0xdd, 0x02, 0xc1, 0x29, 0xfb, 0xc0, 0x20, 0x00, 0x42, 0x25, 0x59, 0x70, 0x44, 0x10, 0x60, 0x44, 0x20, 0xc0, 0x20, 0x00, 0x42, 0x65, 0x59, 0x0c, 0x54, 0xc0, 0x20, 0x00, 0x02, 0x25, 0x58, 0x00, 0x0f, 0x41, 0x40, 0x00, 0x10, 0x26, 0x50, 0x0a, 0x08, 0x0c, 0x02, 0x20, 0x19, 0xc0, 0x00, 0x00, 0x86, 0x05, 0x00, 0x01, 0xeb, 0xff, 0x22, 0x10, 0x00, 0xc0, 0x20, 0x00, 0x42, 0x25, 0x58, 0x17, 0x64, 0x1d, 0xf6, 0x92, 0x1f, 0x1b, 0x22, 0x22, 0x50, 0x00, 0x21, 0xe7, 0xff, 0x42, 0x2c, 0x78, 0x9b, 0x32, 0x05, 0xbf, 0xfe, 0xc8, 0x11, 0xd8, 0x21, 0x08, 0x01, 0x12, 0xc1, 0x10, 0x0d, 0xf0, 0x39, 0x31, 0xb6, 0x92, 0x05, 0x22, 0xae, 0xb0, 0xc6, 0x02, 0x00, 0x08, 0x0c, 0x08, 0xa0, 0xc0, 0x00, 0x00, 0x38, 0x31, 0x01, 0xdb, 0xff, 0x42, 0xae, 0x6c, 0x27, 0xa4, 0x6f, 0x52, 0x10, 0x00, 0x62, 0xae, 0x78, 0xf6, 0x95, 0x14, 0x72, 0xae, 0xac, 0x67, 0x22, 0x01, 0x6d, 0x02, 0x2d, 0x07, 0x67, 0x27, 0x01, 0x2d, 0x06, 0x00, 0x22, 0x11, 0x20, 0x20, 0x31, 0x71, 0xd3, 0xff, 0x62, 0x9c, 0x42, 0x72, 0x07, 0x80, 0x27, 0xa6, 0x61, 0x60, 0x46, 0x90, 0x4a, 0x22, 0x42, 0xc2, 0xfe, 0x1b, 0x22, 0x40, 0x24, 0xb3, 0x20, 0x22, 0x21, 0x00, 0x62, 0x11, 0x60, 0x60, 0x31, 0x62, 0x5c, 0x42, 0x16, 0x47, 0x05, 0x22, 0xae, 0x7c, 0x67, 0xa2, 0x35, 0x2a, 0x46, 0x1b, 0x24, 0x40, 0x24, 0xb3, 0x20, 0x21, 0x21, 0x00, 0x22, 0x11, 0x20, 0x20, 0x31, 0x22, 0x5c, 0x2e, 0x06, 0x09, 0x00, 0x0c, 0x05, 0x8c, 0x83, 0x8c, 0x65, 0x08, 0x0c, 0x02, 0x20, 0x16, 0xc0, 0x00, 0x00, 0x08, 0x0c, 0x02, 0x20, 0x19, 0x2d, 0x0d, 0xc0, 0x00, 0x00, 0x01, 0xba, 0xff, 0x0c, 0x02, 0xc6, 0xd1, 0xff, 0x2d, 0x06, 0x62, 0x5c, 0x2e, 0x0c, 0x15, 0xc6, 0xf5, 0xff, 0x67, 0xa2, 0xb3, 0x42, 0xc6, 0xf0, 0x47, 0xa2, 0x1b, 0x22, 0xc6, 0xf4, 0x86, 0xe7, 0xff, 0x22, 0x9c, 0x2e, 0x8b, 0x52, 0x67, 0x25, 0x05, 0x72, 0xc2, 0xf8, 0x77, 0xa6, 0xb8, 0x2d, 0x06, 0x62, 0x5c, 0x2e, 0x46, 0xf5, 0xff, 0x20, 0x22, 0x90, 0x2a, 0x26, 0x42, 0xc2, 0xfe, 0x1b, 0x22, 0x40, 0x24, 0xb3, 0x20, 0x22, 0x21, 0x46, 0xdd, 0xff, 0x00, 0xc0, 0xf3, 0xfe, 0x3f, 0xff, 0xff, 0xff, 0xbf, 0x00, 0x00, 0x20, 0x00, 0x8d, 0x02, 0x12, 0xc1, 0xc0, 0x09, 0x51, 0xd9, 0x71, 0xe9, 0x81, 0xf9, 0x91, 0xc9, 0x61, 0xf2, 0xac, 0x00, 0xc2, 0xa0, 0xc9, 0xed, 0x03, 0xd1, 0xd0, 0xfa, 0x3d, 0x04, 0x42, 0x21, 0x10, 0x98, 0x0d, 0x08, 0x04, 0x92, 0x29, 0x16, 0x00, 0x05, 0x05, 0x56, 0xf0, 0x18, 0x22, 0xae, 0x7c, 0x69, 0x11, 0x49, 0x01, 0x89, 0xd1, 0x39, 0xc1, 0x59, 0xb1, 0xc0, 0x09, 0x00, 0x92, 0xae, 0x7c, 0xc0, 0x20, 0x00, 0xa1, 0x35, 0xfc, 0x38, 0xda, 0xf0, 0x33, 0x10, 0xc0, 0x33, 0x20, 0xc0, 0x20, 0x00, 0x39, 0xda, 0xc0, 0x20, 0x00, 0x08, 0xda, 0x7c, 0xe2, 0x20, 0x00, 0x10, 0xc0, 0x20, 0x00, 0x09, 0xda, 0xc0, 0x20, 0x00, 0x01, 0xe4, 0xff, 0x82, 0xae, 0xac, 0xa2, 0x2a, 0x58, 0x0c, 0x0b, 0xb9, 0xa1, 0x92, 0x5d, 0x2e, 0x48, 0xa1, 0x1b, 0x54, 0x00, 0x64, 0x90, 0x82, 0x56, 0x00, 0x50, 0x40, 0x74, 0x49, 0xa1, 0x66, 0x44, 0xed, 0xc0, 0x20, 0x00, 0x91, 0x23, 0xfc, 0x38, 0xb9, 0x39, 0x21, 0xc0, 0x20, 0x00, 0x22, 0x29, 0xc8, 0x29, 0x31, 0xc0, 0x20, 0x00, 0xf2, 0x29, 0xd0, 0xf9, 0x41, 0xc0, 0x20, 0x00, 0xb8, 0xb9, 0x7c, 0xec, 0xc0, 0xbb, 0x10, 0xc0, 0x20, 0x00, 0xb9, 0xb9, 0xa1, 0xd2, 0xff, 0xc0, 0x20, 0x00, 0x82, 0x29, 0xc8, 0xa0, 0x88, 0x10, 0xc0, 0x20, 0x00, 0x82, 0x69, 0xc8, 0xc1, 0x2b, 0xfd, 0x0c, 0x07, 0x79, 0xa1, 0xc0, 0x20, 0x00, 0xf2, 0x2c, 0x80, 0x42, 0x21, 0x0a, 0x22, 0xa0, 0x0e, 0x40, 0x34, 0xa0, 0x42, 0xc4, 0xfd, 0x32, 0xc3, 0x01, 0x40, 0x23, 0x93, 0x80, 0x22, 0x01, 0x20, 0x28, 0x31, 0xc5, 0x7a, 0x08, 0xc0, 0x20, 0x00, 0x01, 0x0b, 0xfc, 0xd8, 0xa1, 0x42, 0x20, 0x58, 0xac, 0xde, 0x01, 0xbf, 0xff, 0x0c, 0x0c, 0x00, 0xdd, 0x90, 0x4d, 0x0f, 0x28, 0xd1, 0x38, 0xc1, 0x58, 0xb1, 0x05, 0x47, 0xff, 0xdc, 0x22, 0x05, 0xc9, 0xff, 0x42, 0x9d, 0x00, 0x1b, 0xcc, 0x47, 0xa2, 0x02, 0x22, 0x5d, 0x00, 0xc0, 0xc0, 0x74, 0xc7, 0x9e, 0xde, 0x01, 0xfe, 0xfb, 0xc1, 0x13, 0xfd, 0xc0, 0x20, 0x00, 0x28, 0xd0, 0x7c, 0xe3, 0x30, 0x22, 0x10, 0xc0, 0x20, 0x00, 0xd8, 0xa1, 0x29, 0xd0, 0x1b, 0xfd, 0xf0, 0xd0, 0x74, 0xd9, 0xa1, 0x66, 0x4d, 0x87, 0xc0, 0x20, 0x00, 0x61, 0xf5, 0xfb, 0x88, 0x21, 0x89, 0xb6, 0xc0, 0x20, 0x00, 0x78, 0x31, 0x72, 0x66, 0xc8, 0xc0, 0x20, 0x00, 0x58, 0x41, 0x48, 0x11, 0x52, 0x66, 0xd0, 0xbc, 0xb4, 0x01, 0xa5, 0xff, 0x22, 0xaf, 0xd8, 0x0c, 0x09, 0x99, 0xa1, 0x00, 0xa2, 0x11, 0xa0, 0xa0, 0x31, 0x38, 0xa1, 0x48, 0xa1, 0x00, 0x33, 0x90, 0x1b, 0x54, 0x50, 0x40, 0x74, 0x32, 0x93, 0x00, 0x49, 0xa1, 0xa7, 0xa3, 0x01, 0x2d, 0x03, 0x00, 0xa2, 0x11, 0x66, 0x44, 0xe0, 0x31, 0x73, 0xfa, 0x08, 0x03, 0x02, 0x20, 0x16, 0x22, 0x53, 0x2e, 0xc0, 0x00, 0x00, 0x06, 0x02, 0x00, 0x51, 0x6f, 0xfa, 0x42, 0xae, 0x7c, 0x42, 0x55, 0x2e, 0xa1, 0x96, 0xff, 0x98, 0x01, 0x71, 0x6b, 0xfa, 0x88, 0x09, 0x62, 0x97, 0x2e, 0xa0, 0x88, 0x20, 0x89, 0x09, 0x62, 0x57, 0x42, 0x46, 0x0b, 0x00, 0x22, 0x9d, 0x2e, 0xc0, 0x09, 0x00, 0xc0, 0x20, 0x00, 0xb1, 0xd4, 0xfb, 0x08, 0xdb, 0xf0, 0x00, 0x10, 0xc0, 0x00, 0x20, 0xc0, 0x20, 0x00, 0x09, 0xdb, 0xc0, 0x20, 0x00, 0xd8, 0xdb, 0x7c, 0xee, 0xe0, 0xdd, 0x10, 0xc0, 0x20, 0x00, 0xd9, 0xdb, 0xc0, 0x20, 0x00, 0xb2, 0x2b, 0x58, 0xc8, 0x61, 0xd8, 0x71, 0xe8, 0x81, 0xf8, 0x91, 0x08, 0x51, 0x12, 0xc1, 0x40, 0x0d, 0xf0, 0x00, 0x00, 0x00, 0x12, 0xc1, 0xf0, 0xc2, 0x61, 0x03, 0x10, 0x31, 0x20, 0x20, 0xc2, 0x20, 0x21, 0x54, 0xfa, 0x09, 0x21, 0x22, 0x02, 0x5e, 0x85, 0x81, 0xff, 0x01, 0x51, 0xfa, 0x0c, 0x02, 0x5d, 0x01, 0x1b, 0x62, 0x5a, 0x42, 0x32, 0x04, 0x00, 0x60, 0x20, 0x74, 0xca, 0x33, 0x32, 0x44, 0x00, 0x66, 0x62, 0xed, 0x21, 0xff, 0xfd, 0x0c, 0xd3, 0x4d, 0x01, 0x62, 0x00, 0x5f, 0x52, 0x00, 0x7e, 0x80, 0x66, 0x01, 0x60, 0x68, 0x31, 0x45, 0x95, 0x02, 0xc8, 0x31, 0x08, 0x21, 0x12, 0xc1, 0x10, 0x0d, 0xf0, 0x00, 0x0c, 0x84, 0xfe, 0x3f, 0x7d, 0x02, 0x12, 0xc1, 0xe0, 0x39, 0x01, 0x21, 0xfd, 0xff, 0x09, 0x11, 0xc9, 0x21, 0xd9, 0x31, 0xcd, 0x05, 0xdd, 0x04, 0x79, 0x41, 0x01, 0xe9, 0xf8, 0xc0, 0x00, 0x00, 0x08, 0x41, 0xc0, 0x20, 0x00, 0x28, 0x0d, 0xc7, 0x92, 0xf7, 0x2d, 0x00, 0x01, 0xbf, 0xfc, 0xc0, 0x00, 0x00, 0x08, 0x01, 0x0c, 0x54, 0x21, 0xa5, 0xfb, 0xc0, 0x20, 0x00, 0x32, 0x22, 0x58, 0x30, 0x3f, 0x41, 0x40, 0x33, 0x10, 0x66, 0x53, 0x13, 0x7c, 0xd5, 0xc0, 0x20, 0x00, 0x42, 0x22, 0x58, 0x50, 0x44, 0x10, 0xc0, 0x20, 0x00, 0x42, 0x62, 0x58, 0x46, 0x01, 0x00, 0xc0, 0x20, 0x00, 0x62, 0x22, 0x58, 0x71, 0x2a, 0xfa, 0x78, 0x07, 0x72, 0x27, 0x19, 0x00, 0x20, 0x74, 0xc0, 0x07, 0x00, 0xc8, 0x21, 0xd8, 0x31, 0x08, 0x11, 0x12, 0xc1, 0x20, 0x0d, 0xf0, 0x00, 0x00, 0x81, 0xfe, 0x3f, 0xca, 0xf2, 0xfe, 0x3f, 0xff, 0x03, 0xfc, 0xff, 0x42, 0xa0, 0x00, 0x12, 0xc1, 0xe0, 0xe2, 0x61, 0x05, 0xd2, 0x61, 0x04, 0x09, 0x21, 0xc9, 0x31, 0x01, 0xfa, 0xff, 0xcd, 0x02, 0xdd, 0x03, 0x0c, 0x22, 0x31, 0xf6, 0xff, 0xe2, 0x00, 0x7d, 0x3a, 0x44, 0x80, 0xee, 0x01, 0x3a, 0x22, 0x42, 0x14, 0x00, 0x42, 0x51, 0x00, 0x22, 0x02, 0x00, 0xe0, 0xe8, 0x31, 0x22, 0x41, 0x02, 0x0c, 0xd2, 0xe6, 0x7c, 0x20, 0x0c, 0x53, 0x4d, 0x00, 0x42, 0x04, 0x7c, 0x0b, 0x2c, 0x80, 0x44, 0x01, 0x40, 0x48, 0x31, 0x49, 0x11, 0x40, 0x4e, 0xc0, 0x40, 0x22, 0x82, 0x85, 0xf5, 0x09, 0xe8, 0x11, 0x2a, 0xee, 0x06, 0x08, 0x00, 0x32, 0x00, 0x7e, 0x80, 0x33, 0x01, 0x30, 0x38, 0x31, 0xe0, 0x33, 0xc0, 0xc7, 0xa2, 0x02, 0x46, 0x42, 0x00, 0x22, 0xcc, 0xfa, 0x20, 0x23, 0x82, 0x32, 0xa0, 0x05, 0x45, 0xf3, 0x09, 0x20, 0xee, 0x80, 0x66, 0x1d, 0x0b, 0xd2, 0xaf, 0xfa, 0xd2, 0x41, 0x00, 0xd2, 0x41, 0x02, 0xc6, 0x08, 0x00, 0x32, 0xcd, 0xfe, 0x56, 0x93, 0x0b, 0x01, 0xd9, 0xff, 0x32, 0x00, 0x7f, 0x32, 0x41, 0x00, 0x22, 0x00, 0x80, 0x22, 0x41, 0x01, 0x02, 0x00, 0x81, 0x02, 0x41, 0x02, 0xd2, 0x01, 0x01, 0x80, 0xdd, 0x01, 0xd0, 0xd8, 0x31, 0xe6, 0x7c, 0x2c, 0x32, 0x01, 0x00, 0x22, 0xcc, 0xff, 0x80, 0x33, 0x01, 0x30, 0x38, 0x31, 0x80, 0x33, 0x01, 0x30, 0x38, 0x31, 0x30, 0x3d, 0xc0, 0x30, 0x22, 0x82, 0x32, 0xa0, 0x05, 0xc5, 0xed, 0x09, 0x02, 0x01, 0x00, 0x80, 0x00, 0x01, 0x00, 0x08, 0x31, 0x20, 0x00, 0x80, 0x06, 0x08, 0x00, 0x02, 0x01, 0x02, 0x22, 0xa0, 0x0d, 0x80, 0x00, 0x01, 0x00, 0x08, 0x31, 0xd0, 0x00, 0xc0, 0xc7, 0x22, 0x74, 0x32, 0xa0, 0x05, 0x22, 0xcc, 0xfa, 0x20, 0x20, 0x82, 0x05, 0xeb, 0x09, 0xd0, 0x02, 0x80, 0xa1, 0xbf, 0xff, 0x0a, 0x9e, 0x41, 0x4f, 0xfb, 0x90, 0x90, 0x74, 0x60, 0x99, 0x11, 0xc0, 0x20, 0x00, 0x82, 0x24, 0xda, 0xa0, 0x88, 0x10, 0x90, 0x88, 0x20, 0xc0, 0x20, 0x00, 0x82, 0x64, 0xda, 0x0c, 0x17, 0xc0, 0x20, 0x00, 0x68, 0xd4, 0x70, 0x66, 0x20, 0xc0, 0x20, 0x00, 0x69, 0xd4, 0x7c, 0xe5, 0xc0, 0x20, 0x00, 0x38, 0xd4, 0x50, 0x33, 0x10, 0xc0, 0x20, 0x00, 0x39, 0xd4, 0xc8, 0x31, 0xd8, 0x41, 0xe8, 0x51, 0x08, 0x21, 0x12, 0xc1, 0x20, 0x0d, 0xf0, 0xa2, 0xcd, 0xfd, 0x56, 0x4a, 0xf5, 0x01, 0xa9, 0xff, 0x32, 0x00, 0x82, 0x32, 0x41, 0x00, 0x22, 0x00, 0x83, 0x22, 0x41, 0x01, 0x02, 0x00, 0x84, 0x06, 0xcf, 0xff, 0x0c, 0x53, 0x22, 0xcc, 0xfe, 0x20, 0x20, 0x82, 0xc5, 0xe3, 0x09, 0x06, 0xe2, 0xff, 0x00, 0x00, 0x00, 0x22, 0xcc, 0xfe, 0x20, 0x23, 0x82, 0x0c, 0x53, 0xc5, 0xe2, 0x09, 0xc6, 0xbc, 0xff, 0x00, 0x00, 0x00, 0x12, 0xc1, 0xf0, 0x02, 0x61, 0x03, 0x01, 0xbd, 0xf9, 0x08, 0x40, 0x29, 0x21, 0x27, 0x70, 0x0f, 0x31, 0xbb, 0xf9, 0x20, 0x22, 0x90, 0x32, 0xc3, 0x2d, 0x3a, 0x22, 0x45, 0xd8, 0x07, 0x28, 0x21, 0x41, 0x3d, 0xfc, 0xc0, 0x20, 0x00, 0x42, 0x24, 0x9c, 0x17, 0x64, 0x25, 0x20, 0x20, 0x74, 0x3d, 0x01, 0xc5, 0x59, 0xff, 0x45, 0x11, 0x04, 0x0c, 0x02, 0x05, 0x5a, 0x00, 0x21, 0xb0, 0xf9, 0x08, 0x02, 0x02, 0x20, 0x16, 0x22, 0x92, 0x2e, 0xc0, 0x00, 0x00, 0x1c, 0xe2, 0x01, 0x33, 0xfc, 0xc0, 0x00, 0x00, 0x08, 0x31, 0x12, 0xc1, 0x10, 0x0d, 0xf0, 0x00, 0x00, 0x00, 0xd6, 0xf2, 0xfe, 0x3f, 0x04, 0x81, 0xfe, 0x3f, 0xc0, 0x5d, 0x00, 0x00, 0x00, 0x00, 0x24, 0x40, 0x99, 0x99, 0x49, 0x40, 0x9a, 0x99, 0x99, 0x99, 0x99, 0x99, 0xe9, 0x40, 0xff, 0xff, 0x0f, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x12, 0xc1, 0xb0, 0xe9, 0xd1, 0xf9, 0xe1, 0x29, 0x71, 0xd9, 0xc1, 0xc9, 0xb1, 0xc1, 0xf3, 0xff, 0x09, 0xa1, 0x02, 0x0c, 0x5f, 0xdd, 0x03, 0xcc, 0x30, 0x2c, 0x8e, 0xc6, 0x04, 0x00, 0x66, 0x10, 0x04, 0x1c, 0xae, 0xc6, 0x02, 0x00, 0x32, 0xc0, 0xfe, 0x22, 0xa0, 0x18, 0xe2, 0xa0, 0x28, 0x30, 0xe2, 0x83, 0x2d, 0x0d, 0x3d, 0x0e, 0x45, 0xdd, 0x09, 0xe6, 0x92, 0x17, 0x2d, 0x0d, 0x3d, 0x0e, 0x05, 0xd6, 0x09, 0x20, 0x0e, 0x82, 0xd0, 0x00, 0xc0, 0x00, 0x00, 0xa0, 0xf0, 0x20, 0x11, 0x29, 0x61, 0xc6, 0x08, 0x00, 0x20, 0x4e, 0xc0, 0xe6, 0x94, 0x17, 0xd0, 0x2d, 0x20, 0xe0, 0x3e, 0x20, 0x05, 0xd4, 0x09, 0x02, 0xc2, 0x01, 0x00, 0x0e, 0x82, 0xd0, 0x00, 0xc0, 0x00, 0x00, 0xa0, 0x46, 0xf6, 0xff, 0x22, 0xa0, 0x00, 0x22, 0x61, 0x06, 0x32, 0x0c, 0x7b, 0x22, 0x0c, 0x9e, 0x16, 0xa3, 0x06, 0x32, 0x61, 0x05, 0xf2, 0x0c, 0x7a, 0x80, 0x22, 0x11, 0x2a, 0xff, 0x16, 0xcf, 0x05, 0x2d, 0x03, 0x7c, 0x6e, 0xd0, 0xee, 0x82, 0xd0, 0x22, 0xc1, 0x30, 0x33, 0xa0, 0xf0, 0x33, 0x11, 0x22, 0x61, 0x10, 0x32, 0x61, 0x12, 0x3d, 0x0f, 0x45, 0xd6, 0x09, 0x02, 0x21, 0x12, 0x42, 0x21, 0x10, 0x07, 0x22, 0x02, 0xc6, 0x48, 0x00, 0x2d, 0x04, 0x3d, 0x0f, 0x85, 0xce, 0x09, 0x45, 0xe3, 0x09, 0x29, 0x21, 0x2d, 0x0f, 0xc5, 0xe2, 0x09, 0xfd, 0x02, 0x28, 0x51, 0x05, 0xe2, 0x09, 0x3d, 0x02, 0x2d, 0x0f, 0x45, 0xb5, 0x08, 0x3d, 0x02, 0x28, 0x21, 0x85, 0x9e, 0x08, 0xf1, 0xc1, 0xff, 0x38, 0x0f, 0x05, 0x9e, 0x08, 0xc5, 0xbf, 0x08, 0x2a, 0xfe, 0x06, 0x02, 0x00, 0xf2, 0xa0, 0x00, 0xe2, 0xaf, 0xf6, 0xd0, 0xee, 0x82, 0x02, 0x0c, 0x9a, 0xf2, 0x61, 0x13, 0x16, 0x70, 0x06, 0x02, 0x61, 0x04, 0x22, 0x0c, 0x9f, 0xf2, 0x0c, 0x99, 0x80, 0x22, 0x11, 0x2a, 0xff, 0x16, 0x6f, 0x05, 0x3d, 0x0f, 0xd0, 0x20, 0xc1, 0x22, 0x61, 0x11, 0x00, 0xd0, 0xa0, 0xf0, 0xdd, 0x11, 0xc5, 0xce, 0x09, 0x02, 0x21, 0x11, 0xd7, 0x22, 0x02, 0x46, 0x3c, 0x00, 0x3d, 0x0f, 0x2d, 0x00, 0x45, 0xc7, 0x09, 0x05, 0xdc, 0x09, 0x29, 0x31, 0xd8, 0x41, 0x2d, 0x0f, 0x85, 0xdb, 0x09, 0xfd, 0x02, 0x2d, 0x0d, 0x85, 0xda, 0x09, 0x3d, 0x02, 0xd8, 0x31, 0x2d, 0x0f, 0xc5, 0xad, 0x08, 0x3d, 0x02, 0x2d, 0x0d, 0x05, 0x97, 0x08, 0x31, 0xa3, 0xff, 0x38, 0x03, 0x85, 0x96, 0x08, 0x85, 0xb8, 0x08, 0xf2, 0x21, 0x13, 0x2a, 0x3e, 0x06, 0x01, 0x00, 0xf2, 0x21, 0x13, 0x0c, 0x03, 0x39, 0xf1, 0x21, 0x9d, 0xff, 0xd2, 0x1c, 0x50, 0x01, 0x42, 0xf9, 0xda, 0xde, 0x08, 0x00, 0x2a, 0xdd, 0x08, 0x00, 0x2d, 0x0d, 0xc0, 0x00, 0x00, 0x01, 0x98, 0xff, 0x41, 0x3d, 0xf9, 0x0c, 0x03, 0x52, 0xa0, 0x64, 0x57, 0x22, 0x01, 0xdd, 0x03, 0x32, 0x1c, 0x51, 0x28, 0x04, 0x3a, 0xee, 0x0a, 0xee, 0x08, 0x02, 0x2d, 0x0e, 0xc0, 0x00, 0x00, 0x38, 0xf1, 0x08, 0x71, 0x42, 0x1c, 0x3e, 0x0b, 0x00, 0x00, 0x00, 0x40, 0x40, 0x40, 0xb1, 0x07, 0x64, 0x02, 0x56, 0x6f, 0x11, 0x42, 0x1c, 0x4e, 0x00, 0x00, 0x40, 0x40, 0x40, 0xb1, 0x07, 0x64, 0x02, 0x56, 0x93, 0x11, 0x56, 0xfd, 0x08, 0x52, 0xa0, 0x64, 0x57, 0x22, 0x01, 0x0c, 0x0e, 0xc8, 0x61, 0xe0, 0xce, 0x93, 0x86, 0x20, 0x00, 0x20, 0x6f, 0xc0, 0x07, 0x26, 0x02, 0x06, 0x3c, 0x00, 0x2d, 0x04, 0x3d, 0x0f, 0xc5, 0xbb, 0x09, 0x1b, 0x22, 0x45, 0xd0, 0x09, 0x29, 0x01, 0x2d, 0x0f, 0x05, 0xd0, 0x09, 0x29, 0x11, 0x28, 0x51, 0x05, 0xcf, 0x09, 0x3d, 0x02, 0xf8, 0x01, 0x28, 0x11, 0x45, 0xa2, 0x08, 0x3d, 0x02, 0x2d, 0x0f, 0x85, 0x8b, 0x08, 0x31, 0x74, 0xff, 0x38, 0x03, 0x05, 0x8b, 0x08, 0xc5, 0xac, 0x08, 0xc6, 0xb2, 0xff, 0x20, 0x4f, 0xc0, 0xd7, 0x24, 0x02, 0x06, 0x2d, 0x00, 0x3d, 0x0f, 0x2d, 0x00, 0x85, 0xb7, 0x09, 0x1b, 0x22, 0x45, 0xcc, 0x09, 0xdd, 0x02, 0x2d, 0x0f, 0xc5, 0xcb, 0x09, 0xfd, 0x02, 0x28, 0x41, 0x05, 0xcb, 0x09, 0x3d, 0x02, 0x2d, 0x0f, 0x45, 0x9e, 0x08, 0x3d, 0x02, 0x2d, 0x0d, 0x85, 0x87, 0x08, 0x31, 0x65, 0xff, 0x38, 0x03, 0x05, 0x87, 0x08, 0xc5, 0xa8, 0x08, 0xc6, 0xc0, 0xff, 0xd0, 0xcd, 0x20, 0xe1, 0x62, 0xff, 0x0c, 0x0d, 0x2d, 0x0c, 0x05, 0xcd, 0x09, 0x29, 0x91, 0x39, 0x81, 0x51, 0x60, 0xff, 0x41, 0x60, 0xff, 0x45, 0xbe, 0x08, 0x5d, 0x0e, 0x4d, 0x0d, 0x05, 0xe8, 0x08, 0x45, 0xfa, 0x08, 0x38, 0x81, 0x51, 0x5d, 0xff, 0xfd, 0x02, 0x41, 0x5a, 0xff, 0x28, 0x91, 0xc5, 0xbc, 0x08, 0x4d, 0x0d, 0x5d, 0x0e, 0x85, 0xe6, 0x08, 0xd1, 0xc0, 0xfd, 0x85, 0xf8, 0x08, 0x71, 0x58, 0xff, 0x51, 0x56, 0xff, 0xf0, 0x60, 0x94, 0x50, 0x52, 0x10, 0xc0, 0x66, 0x01, 0x2d, 0x0c, 0xc0, 0x20, 0x00, 0x42, 0x2d, 0xa8, 0x70, 0x44, 0x10, 0x60, 0x44, 0x20, 0x50, 0x44, 0x20, 0xc0, 0x20, 0x00, 0xc8, 0xb1, 0xe8, 0xd1, 0x42, 0x6d, 0xa8, 0xf8, 0xe1, 0xd8, 0xc1, 0x08, 0xa1, 0x12, 0xc1, 0x50, 0x0d, 0xf0, 0xcd, 0x0f, 0x06, 0xe2, 0xff, 0x0c, 0x0f, 0xc6, 0x86, 0xff, 0xf2, 0x21, 0x13, 0x0c, 0x03, 0x46, 0xa2, 0xff, 0xcd, 0x03, 0x86, 0xdd, 0xff, 0x00, 0x00, 0x12, 0xc1, 0xf0, 0xc9, 0x21, 0x09, 0x11, 0xcc, 0x52, 0x0c, 0x00, 0x0c, 0x0c, 0x86, 0x10, 0x00, 0xe6, 0x12, 0x02, 0xc6, 0x70, 0x00, 0x32, 0xa0, 0x64, 0xb0, 0xc2, 0x11, 0xc0, 0x2c, 0x20, 0xc5, 0xa9, 0x09, 0x0d, 0x02, 0x0c, 0xa3, 0x2d, 0x0c, 0x80, 0xc0, 0x01, 0xc0, 0xc8, 0x31, 0xc5, 0xa8, 0x09, 0x0c, 0xa3, 0x05, 0xaf, 0x09, 0xa6, 0x22, 0x02, 0x06, 0x73, 0x00, 0x0c, 0x10, 0x46, 0x04, 0x00, 0xc2, 0x01, 0x01, 0x02, 0x01, 0x00, 0x80, 0xcc, 0x01, 0x80, 0x00, 0x01, 0x00, 0x08, 0x31, 0xc0, 0xc8, 0x31, 0xe6, 0x1c, 0x05, 0x00, 0x41, 0x21, 0xc6, 0x01, 0x00, 0x0b, 0x2c, 0x00, 0x12, 0x40, 0x00, 0x40, 0xa1, 0x21, 0x92, 0xfd, 0xc0, 0x20, 0x00, 0x42, 0x62, 0xb5, 0x62, 0xcc, 0x1e, 0x0c, 0x05, 0x00, 0x16, 0x40, 0x00, 0x30, 0xa1, 0xc0, 0x35, 0xb3, 0xc0, 0x20, 0x00, 0x32, 0x62, 0xa7, 0xe6, 0x1c, 0x05, 0x00, 0x41, 0x21, 0xc6, 0x01, 0x00, 0x0b, 0x7c, 0x00, 0x17, 0x40, 0x00, 0x40, 0xa1, 0xc0, 0x20, 0x00, 0x0c, 0x06, 0x42, 0x62, 0xec, 0xa2, 0xcc, 0x1e, 0x0c, 0x09, 0x00, 0x1a, 0x40, 0x00, 0x80, 0xa1, 0xc0, 0x89, 0xb3, 0xc0, 0x20, 0x00, 0x82, 0x62, 0xa1, 0x26, 0x10, 0x14, 0x66, 0x20, 0x04, 0x0c, 0x85, 0x86, 0x03, 0x00, 0x32, 0xc0, 0xfd, 0x0c, 0xab, 0x5d, 0x06, 0x30, 0x5b, 0x83, 0x46, 0x00, 0x00, 0x0c, 0x25, 0xa6, 0xbc, 0x0d, 0x6c, 0x04, 0x40, 0x4c, 0x90, 0x00, 0x14, 0x40, 0x00, 0x45, 0xa1, 0x46, 0x00, 0x00, 0x0c, 0x04, 0xc0, 0x20, 0x00, 0x42, 0x62, 0xa3, 0x7c, 0x0b, 0xa6, 0x1c, 0x10, 0xe6, 0xbc, 0x0d, 0x7c, 0xe7, 0x70, 0x7c, 0x90, 0x00, 0x17, 0x40, 0x00, 0x75, 0xa1, 0xc6, 0x01, 0x00, 0x0c, 0x08, 0x50, 0x72, 0x21, 0xc0, 0x78, 0x93, 0xc0, 0x20, 0x00, 0x6c, 0x1a, 0x72, 0x62, 0xa2, 0x81, 0x13, 0xfa, 0xc7, 0xab, 0x10, 0xd6, 0xdc, 0x00, 0x1c, 0xe9, 0x90, 0x9c, 0x90, 0x00, 0x19, 0x40, 0x00, 0x75, 0xa1, 0x46, 0x00, 0x00, 0x0c, 0x07, 0x7c, 0x19, 0xc0, 0x20, 0x00, 0x72, 0x68, 0xc3, 0xc7, 0xaa, 0x10, 0x97, 0xac, 0x0d, 0x3c, 0xc3, 0x30, 0x3c, 0x90, 0x00, 0x13, 0x40, 0x00, 0x45, 0xa1, 0x46, 0x00, 0x00, 0x0c, 0x04, 0xc0, 0x20, 0x00, 0x42, 0x68, 0xc2, 0x26, 0x10, 0x14, 0x66, 0x20, 0x04, 0x0c, 0x40, 0x86, 0x03, 0x00, 0x52, 0xc0, 0xfd, 0x0c, 0x54, 0x50, 0x64, 0x83, 0x0d, 0x06, 0x46, 0x00, 0x00, 0x0c, 0x10, 0xa6, 0xbc, 0x0d, 0x6c, 0x06, 0x60, 0x6c, 0x90, 0x00, 0x16, 0x40, 0x00, 0x40, 0xa1, 0x46, 0x00, 0x00, 0x0c, 0x04, 0xc0, 0x20, 0x00, 0x42, 0x62, 0xef, 0xa6, 0x1c, 0x10, 0xe6, 0xbc, 0x0d, 0x7c, 0xe7, 0x70, 0x7c, 0x90, 0x00, 0x17, 0x40, 0x00, 0x50, 0xa1, 0xc6, 0x01, 0x00, 0x0c, 0x08, 0x00, 0x52, 0x21, 0xc0, 0x58, 0x93, 0xc0, 0x20, 0x00, 0x52, 0x62, 0xee, 0xc7, 0xab, 0x10, 0xd6, 0xdc, 0x00, 0x1c, 0xeb, 0xb0, 0xbc, 0x90, 0x00, 0x1b, 0x40, 0x00, 0x50, 0xa1, 0x46, 0x00, 0x00, 0x0c, 0x05, 0xc0, 0x20, 0x00, 0x52, 0x62, 0xeb, 0xc7, 0xaa, 0x10, 0x97, 0xac, 0x0d, 0x3c, 0xc3, 0x30, 0x3c, 0x90, 0x00, 0x13, 0x40, 0x00, 0x00, 0xa1, 0x46, 0x00, 0x00, 0x0c, 0x00, 0xc0, 0x20, 0x00, 0xc8, 0x21, 0x02, 0x62, 0xea, 0x08, 0x11, 0x12, 0xc1, 0x10, 0x0d, 0xf0, 0xd6, 0x32, 0xe6, 0x32, 0xa0, 0x64, 0xb0, 0xc2, 0x11, 0xc0, 0x2c, 0x20, 0x45, 0x8d, 0x09, 0x0d, 0x02, 0x0c, 0xa3, 0x2d, 0x0c, 0x0b, 0xc0, 0x80, 0xcc, 0x01, 0xc0, 0xc8, 0x31, 0x45, 0x8c, 0x09, 0x0c, 0xa3, 0x45, 0x92, 0x09, 0x7c, 0x83, 0x37, 0xa2, 0x11, 0x0c, 0x10, 0x46, 0x92, 0xff, 0x0c, 0x30, 0xe6, 0x82, 0x02, 0x46, 0x90, 0xff, 0x0c, 0x20, 0x06, 0x8f, 0xff, 0x0c, 0x30, 0x7c, 0xe4, 0x47, 0xa2, 0x02, 0x86, 0x8c, 0xff, 0x0c, 0x20, 0x46, 0x8b, 0xff, 0x00, 0x00, 0x00, 0x12, 0xc1, 0xf0, 0x09, 0x01, 0x01, 0x4c, 0xf7, 0xdc, 0x22, 0x1c, 0x04, 0xc0, 0x20, 0x00, 0x32, 0x20, 0xe4, 0x40, 0x33, 0x20, 0xc0, 0x20, 0x00, 0x32, 0x60, 0xe4, 0x06, 0x04, 0x00, 0x6c, 0xf6, 0xc0, 0x20, 0x00, 0x52, 0x20, 0xe4, 0x60, 0x55, 0x10, 0xc0, 0x20, 0x00, 0x52, 0x60, 0xe4, 0x41, 0x4f, 0xf8, 0x80, 0x32, 0x01, 0x22, 0x04, 0x5e, 0x30, 0x38, 0x31, 0x80, 0x22, 0x01, 0x20, 0x28, 0x31, 0x45, 0x8a, 0xff, 0x08, 0x01, 0x12, 0xc1, 0x10, 0x0d, 0xf0, 0x00, 0x12, 0xc1, 0xf0, 0xc2, 0x61, 0x01, 0x02, 0x61, 0x00, 0x20, 0xc2, 0x20, 0x45, 0x39, 0x07, 0x2d, 0x0c, 0x05, 0xfa, 0xff, 0xc8, 0x11, 0x08, 0x01, 0x12, 0xc1, 0x10, 0x0d, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0xff, 0xff, 0x7f, 0x80, 0x81, 0xbc, 0x14, 0x09, 0x98, 0x41, 0xc6, 0x5a, 0xff, 0xff, 0xff, 0x7f, 0xff, 0xff, 0x00, 0xfc, 0x00, 0x00, 0x90, 0x01, 0xff, 0xff, 0xff, 0xfb, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x18, 0xff, 0xff, 0xff, 0x80, 0xff, 0x0f, 0xf0, 0xff, 0x00, 0x20, 0x02, 0x00, 0xa6, 0x0f, 0x00, 0x00, 0x00, 0x00, 0xc0, 0xff, 0x54, 0x58, 0x38, 0x00, 0x00, 0xff, 0x0f, 0xf0, 0xe6, 0x00, 0x20, 0x0b, 0x3f, 0xf0, 0xff, 0xdf, 0x40, 0x0c, 0x00, 0x20, 0xff, 0xff, 0x80, 0xff, 0x00, 0x00, 0x13, 0x00, 0x3f, 0xf0, 0xff, 0xff, 0x80, 0x0d, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfc, 0x24, 0x01, 0xfe, 0x03, 0xff, 0xff, 0xff, 0x0f, 0x00, 0x00, 0x00, 0xb0, 0x00, 0x00, 0x00, 0x04, 0xff, 0xff, 0x0b, 0xff, 0x00, 0x00, 0x24, 0x00, 0xff, 0xff, 0xbf, 0xff, 0xff, 0x0f, 0x00, 0x00, 0x83, 0x00, 0x80, 0x00, 0xff, 0xf7, 0xff, 0xff, 0xd0, 0xf3, 0xfe, 0x3f, 0x40, 0x80, 0xfe, 0x3f, 0x37, 0xf3, 0xfe, 0x3f, 0x61, 0xd9, 0xff, 0xb1, 0xd9, 0xff, 0x41, 0x1b, 0xf9, 0x51, 0x9c, 0xfa, 0x12, 0xc1, 0xe0, 0xc9, 0x51, 0x09, 0x41, 0xd9, 0x61, 0x82, 0xaf, 0x80, 0x21, 0x83, 0xf9, 0xd1, 0xd8, 0xfc, 0xc0, 0x20, 0x00, 0x32, 0x22, 0x58, 0x60, 0x33, 0x20, 0xc0, 0x20, 0x00, 0x32, 0x62, 0x58, 0xc0, 0x20, 0x00, 0x02, 0x22, 0x43, 0xb0, 0x00, 0x20, 0xc0, 0x20, 0x00, 0x02, 0x62, 0x43, 0xc1, 0xcc, 0xff, 0xc0, 0x20, 0x00, 0xa2, 0x22, 0xd0, 0xc0, 0xaa, 0x10, 0xb0, 0xaa, 0x20, 0xc0, 0x20, 0x00, 0xa2, 0x62, 0xd0, 0x91, 0xc7, 0xff, 0xc0, 0x20, 0x00, 0x92, 0x62, 0x5b, 0x71, 0xc6, 0xff, 0xc0, 0x20, 0x00, 0x72, 0x62, 0x5a, 0x61, 0xc5, 0xff, 0xc0, 0x20, 0x00, 0x32, 0x22, 0x54, 0x60, 0x33, 0x10, 0xc0, 0x20, 0x00, 0x32, 0x62, 0x54, 0xc0, 0x20, 0x00, 0xc2, 0xa1, 0x90, 0x02, 0x22, 0xc6, 0xc0, 0x20, 0x00, 0xc2, 0x62, 0xc6, 0xb1, 0xbe, 0xff, 0xa1, 0xbe, 0xff, 0xc0, 0x20, 0x00, 0x92, 0x2d, 0xbb, 0xb0, 0x99, 0x10, 0xa0, 0x99, 0x20, 0xc0, 0x20, 0x00, 0x92, 0x6d, 0xbb, 0x71, 0xba, 0xff, 0xc0, 0x20, 0x00, 0x62, 0x2d, 0xe2, 0x70, 0x66, 0x10, 0xc0, 0x20, 0x00, 0x42, 0x04, 0x00, 0x62, 0x6d, 0xe2, 0x42, 0xc4, 0xf1, 0x40, 0x40, 0x64, 0xc0, 0x20, 0x00, 0x32, 0x22, 0x52, 0x80, 0x33, 0x10, 0x40, 0x33, 0x20, 0xc0, 0x20, 0x00, 0x32, 0x62, 0x52, 0x01, 0xaf, 0xff, 0xc1, 0xb0, 0xff, 0xc0, 0x20, 0x00, 0xb2, 0x22, 0x4a, 0x00, 0xbb, 0x10, 0xc0, 0xbb, 0x20, 0xc0, 0x20, 0x00, 0xb2, 0x62, 0x4a, 0xa1, 0xab, 0xff, 0xc0, 0x20, 0x00, 0x98, 0xd2, 0xa0, 0x99, 0x10, 0xc0, 0x20, 0x00, 0x99, 0xd2, 0x2c, 0x67, 0xc0, 0x20, 0x00, 0x62, 0x22, 0x51, 0x80, 0x66, 0x10, 0x70, 0x66, 0x20, 0xc0, 0x20, 0x00, 0x62, 0x62, 0x51, 0x42, 0xaf, 0xc0, 0x1c, 0x13, 0xc0, 0x20, 0x00, 0x02, 0x22, 0xdc, 0x40, 0x00, 0x10, 0x30, 0x00, 0x20, 0xc0, 0x20, 0x00, 0x02, 0x62, 0xdc, 0xc1, 0x32, 0xfe, 0xc0, 0x20, 0x00, 0xb2, 0x2d, 0xa8, 0xc0, 0xbb, 0x20, 0xc0, 0x20, 0x00, 0xb2, 0x6d, 0xa8, 0xa1, 0x99, 0xff, 0x91, 0x99, 0xff, 0xc0, 0x20, 0x00, 0x82, 0x22, 0x59, 0xa0, 0x88, 0x10, 0x90, 0x88, 0x20, 0xc0, 0x20, 0x00, 0x82, 0x62, 0x59, 0x71, 0x79, 0xfc, 0x61, 0x94, 0xff, 0xc0, 0x20, 0x00, 0x42, 0x22, 0x59, 0x70, 0x44, 0x10, 0x60, 0x44, 0x20, 0xc0, 0x20, 0x00, 0x42, 0x62, 0x59, 0x31, 0x90, 0xff, 0x01, 0x90, 0xff, 0xc0, 0x20, 0x00, 0xc2, 0x22, 0x57, 0x30, 0xcc, 0x10, 0x00, 0xcc, 0x20, 0xc0, 0x20, 0x00, 0xc2, 0x62, 0x57, 0xb1, 0x8c, 0xff, 0xa1, 0x8c, 0xff, 0xc0, 0x20, 0x00, 0x92, 0x22, 0x54, 0xb0, 0x99, 0x10, 0xa0, 0x99, 0x20, 0xc0, 0x20, 0x00, 0x92, 0x62, 0x54, 0xc0, 0x20, 0x00, 0x72, 0xa0, 0x80, 0x82, 0x22, 0xc6, 0xc0, 0x20, 0x00, 0x72, 0x62, 0xc6, 0x0c, 0x46, 0xc0, 0x20, 0x00, 0x42, 0x22, 0xc4, 0x60, 0x44, 0x20, 0xc0, 0x20, 0x00, 0x42, 0x62, 0xc4, 0x31, 0x80, 0xff, 0x01, 0x80, 0xff, 0xc0, 0x20, 0x00, 0xc2, 0x22, 0xdc, 0x30, 0xcc, 0x10, 0x00, 0xcc, 0x20, 0xc0, 0x20, 0x00, 0xc2, 0x62, 0xdc, 0xb1, 0x7c, 0xff, 0xa1, 0x7c, 0xff, 0xc0, 0x20, 0x00, 0x92, 0x22, 0xc9, 0xb0, 0x99, 0x10, 0xa0, 0x99, 0x20, 0xc0, 0x20, 0x00, 0x92, 0x62, 0xc9, 0x81, 0x78, 0xff, 0x71, 0x78, 0xff, 0xc0, 0x20, 0x00, 0x62, 0x22, 0x56, 0x80, 0x66, 0x10, 0x70, 0x66, 0x20, 0xc0, 0x20, 0x00, 0x62, 0x62, 0x56, 0x41, 0x74, 0xff, 0x31, 0x74, 0xff, 0xc0, 0x20, 0x00, 0x02, 0x22, 0xd3, 0x40, 0x00, 0x10, 0x30, 0x00, 0x20, 0xc0, 0x20, 0x00, 0x02, 0x62, 0xd3, 0xc1, 0x70, 0xff, 0xb1, 0x70, 0xff, 0xc0, 0x20, 0x00, 0xa2, 0x22, 0xc8, 0xc0, 0xaa, 0x10, 0xb0, 0xaa, 0x20, 0xc0, 0x20, 0x00, 0xa2, 0x62, 0xc8, 0x91, 0x6c, 0xff, 0xc0, 0x20, 0x00, 0x82, 0x2d, 0xe2, 0x90, 0x88, 0x20, 0xc0, 0x20, 0x00, 0x82, 0x6d, 0xe2, 0x71, 0x69, 0xff, 0x61, 0x69, 0xff, 0xc0, 0x20, 0x00, 0x42, 0x25, 0x9c, 0x70, 0x44, 0x10, 0x60, 0x44, 0x20, 0xc0, 0x20, 0x00, 0x42, 0x65, 0x9c, 0x31, 0x65, 0xff, 0xc0, 0x20, 0x00, 0x02, 0x22, 0xd1, 0x30, 0x00, 0x10, 0xc0, 0x20, 0x00, 0x02, 0x62, 0xd1, 0x0c, 0x02, 0x05, 0xc9, 0xff, 0xc1, 0x7f, 0xf7, 0x08, 0x0c, 0x08, 0x30, 0x0c, 0x02, 0xc0, 0x00, 0x00, 0xb2, 0xaf, 0xcf, 0x2c, 0x0a, 0x31, 0x6e, 0xf6, 0x61, 0x83, 0xf5, 0x21, 0x5a, 0xff, 0xc0, 0x20, 0x00, 0x92, 0x2d, 0x8e, 0xb0, 0x99, 0x10, 0xa0, 0x99, 0x20, 0xc0, 0x20, 0x00, 0x92, 0x6d, 0x8e, 0xc0, 0x20, 0x00, 0xa1, 0xe3, 0xf8, 0x71, 0x54, 0xff, 0x82, 0x2a, 0x92, 0xc0, 0x20, 0x00, 0x72, 0x6a, 0x92, 0x0c, 0x65, 0xc0, 0x20, 0x00, 0x42, 0x2a, 0x93, 0x50, 0x44, 0x20, 0xc0, 0x20, 0x00, 0x42, 0x6a, 0x93, 0xc0, 0x20, 0x00, 0x22, 0x6a, 0xc7, 0xc0, 0x20, 0x00, 0x02, 0x2a, 0xc7, 0x20, 0x00, 0x20, 0xc0, 0x20, 0x00, 0x02, 0x6a, 0xc7, 0xb1, 0x49, 0xff, 0xc0, 0x20, 0x00, 0x98, 0xaa, 0xb0, 0x99, 0x10, 0xc0, 0x20, 0x00, 0x99, 0xaa, 0x7c, 0x98, 0x0c, 0x27, 0xc0, 0x20, 0x00, 0x52, 0x26, 0x89, 0x80, 0x55, 0x10, 0x70, 0x55, 0x20, 0xc0, 0x20, 0x00, 0x52, 0x66, 0x89, 0x7c, 0xe4, 0xc0, 0x20, 0x00, 0x22, 0x23, 0xf0, 0x40, 0x22, 0x10, 0xc0, 0x20, 0x00, 0x08, 0x0c, 0x02, 0x20, 0x28, 0x22, 0x63, 0xf0, 0xc0, 0x00, 0x00, 0x0c, 0x12, 0x08, 0x0c, 0x0c, 0x13, 0x02, 0x20, 0x2b, 0x0c, 0xc4, 0xc0, 0x00, 0x00, 0x0c, 0x22, 0x08, 0x0c, 0x0c, 0x13, 0x02, 0x20, 0x2b, 0x42, 0xa1, 0x84, 0xc0, 0x00, 0x00, 0x0c, 0x32, 0x08, 0x0c, 0x0c, 0x23, 0x02, 0x20, 0x2b, 0x0c, 0x64, 0xc0, 0x00, 0x00, 0x08, 0x0c, 0x02, 0x20, 0x2f, 0xc0, 0x00, 0x00, 0x28, 0x4c, 0x01, 0x2d, 0xff, 0x07, 0xf2, 0x17, 0xb7, 0xf2, 0x14, 0x32, 0xa0, 0x7f, 0x41, 0x2b, 0xff, 0x51, 0x2b, 0xff, 0x1c, 0x06, 0x0c, 0x07, 0x2d, 0x00, 0x05, 0x12, 0xfe, 0x01, 0x26, 0xff, 0x0c, 0x12, 0x42, 0x2c, 0x74, 0x0c, 0x08, 0x31, 0x0e, 0xfa, 0x71, 0x43, 0xf8, 0x52, 0xc3, 0x7c, 0x62, 0xc3, 0x16, 0x72, 0x07, 0x00, 0x89, 0x11, 0x89, 0x21, 0x89, 0x31, 0x09, 0x01, 0x1b, 0x77, 0x70, 0x70, 0x74, 0x85, 0x2b, 0xfe, 0x22, 0xa0, 0x77, 0x0c, 0x03, 0x1c, 0x24, 0x0c, 0x75, 0x08, 0x0c, 0x0c, 0x06, 0x02, 0x20, 0x27, 0x72, 0xa0, 0xe8, 0xc0, 0x00, 0x00, 0x0c, 0x13, 0xc0, 0x20, 0x00, 0x22, 0x2d, 0x98, 0x30, 0x22, 0x20, 0xc0, 0x20, 0x00, 0x22, 0x6d, 0x98, 0xc8, 0x51, 0xd8, 0x61, 0x08, 0x41, 0x12, 0xc1, 0x20, 0x0d, 0xf0, 0x00, 0x00, 0x00, 0x12, 0xc1, 0xf0, 0x02, 0x61, 0x00, 0x85, 0xb0, 0xfd, 0x22, 0xa0, 0x64, 0x01, 0xaf, 0xf9, 0xc0, 0x00, 0x00, 0x02, 0x21, 0x00, 0x12, 0xc1, 0x10, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0x1f, 0xf0, 0x00, 0x00, 0x80, 0x01, 0xff, 0xff, 0xff, 0x1f, 0xff, 0x3f, 0xe0, 0xff, 0x00, 0x40, 0x1f, 0x00, 0xff, 0xff, 0x00, 0xff, 0x00, 0x00, 0xab, 0x00, 0xff, 0x00, 0xff, 0xff, 0xb1, 0xf8, 0xff, 0xa1, 0xf8, 0xff, 0x31, 0x0d, 0xf6, 0xc0, 0x20, 0x00, 0x22, 0x23, 0xe6, 0xb0, 0x22, 0x10, 0xa0, 0x22, 0x20, 0xc0, 0x20, 0x00, 0x22, 0x63, 0xe6, 0xc0, 0x20, 0x00, 0x92, 0x23, 0xe7, 0xb0, 0x99, 0x10, 0xa0, 0x99, 0x20, 0xc0, 0x20, 0x00, 0x92, 0x63, 0xe7, 0x81, 0xee, 0xff, 0x71, 0x70, 0xfd, 0xc0, 0x20, 0x00, 0x62, 0x23, 0xe5, 0x80, 0x66, 0x10, 0x70, 0x66, 0x20, 0xc0, 0x20, 0x00, 0x62, 0x63, 0xe5, 0x51, 0xe9, 0xff, 0x41, 0xea, 0xff, 0xc0, 0x20, 0x00, 0x22, 0x23, 0xe6, 0x50, 0x22, 0x10, 0x40, 0x22, 0x20, 0xc0, 0x20, 0x00, 0x22, 0x63, 0xe6, 0xb1, 0xe5, 0xff, 0xa1, 0xe6, 0xff, 0xc0, 0x20, 0x00, 0x92, 0x23, 0xe8, 0xb0, 0x99, 0x10, 0xa0, 0x99, 0x20, 0xc0, 0x20, 0x00, 0x92, 0x63, 0xe8, 0x81, 0xe1, 0xff, 0x72, 0xa1, 0x00, 0xc0, 0x20, 0x00, 0x62, 0x23, 0xf2, 0x80, 0x66, 0x10, 0x70, 0x66, 0x20, 0xc0, 0x20, 0x00, 0x62, 0x63, 0xf2, 0x52, 0xaf, 0x80, 0x4c, 0x74, 0xc0, 0x20, 0x00, 0x22, 0x23, 0xe6, 0x50, 0x22, 0x10, 0x40, 0x22, 0x20, 0xc0, 0x20, 0x00, 0x22, 0x63, 0xe6, 0x0d, 0xf0, 0x00, 0x00, 0xeb, 0xf2, 0xfe, 0x3f, 0xff, 0x0f, 0xff, 0xff, 0x00, 0x10, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x0e, 0x01, 0x00, 0x00, 0x0d, 0x01, 0x00, 0x00, 0xde, 0x03, 0x00, 0x00, 0xed, 0x03, 0x12, 0xc1, 0xf0, 0x41, 0xf7, 0xff, 0x09, 0x01, 0x22, 0x04, 0x82, 0x01, 0x1e, 0xf5, 0x66, 0x22, 0x17, 0x52, 0xa0, 0x69, 0x62, 0xaf, 0x94, 0xc0, 0x20, 0x00, 0x32, 0x20, 0x68, 0x60, 0x33, 0x10, 0x50, 0x33, 0x20, 0xc0, 0x20, 0x00, 0x32, 0x60, 0x68, 0x32, 0x04, 0x83, 0x26, 0x13, 0x02, 0x66, 0x33, 0x2a, 0x0c, 0x1a, 0xb2, 0xaf, 0xbc, 0xc0, 0x20, 0x00, 0x92, 0x20, 0x68, 0xb0, 0x99, 0x10, 0xa0, 0x99, 0x20, 0xc0, 0x20, 0x00, 0x92, 0x60, 0x68, 0x7c, 0xe8, 0xc0, 0x20, 0x00, 0x72, 0x20, 0x5d, 0x80, 0x77, 0x10, 0xc0, 0x20, 0x00, 0x72, 0x60, 0x5d, 0x32, 0x04, 0x83, 0x52, 0xae, 0xff, 0x26, 0x23, 0x02, 0x66, 0x33, 0x2b, 0xc0, 0x20, 0x00, 0x21, 0x06, 0xf5, 0x02, 0x22, 0x8d, 0x32, 0xae, 0xff, 0x30, 0x00, 0x10, 0xc0, 0x20, 0x00, 0x0c, 0x03, 0x0c, 0x04, 0x02, 0x62, 0x8d, 0x0c, 0x15, 0x0c, 0x02, 0x01, 0x04, 0xf5, 0xc0, 0x00, 0x00, 0x01, 0xfe, 0xf4, 0x41, 0xd5, 0xff, 0x52, 0xae, 0xff, 0x32, 0x04, 0x7c, 0x26, 0x13, 0x11, 0xc0, 0x20, 0x00, 0x62, 0x20, 0x8d, 0x50, 0x66, 0x10, 0xc0, 0x20, 0x00, 0x62, 0x60, 0x8d, 0x32, 0x04, 0x7c, 0x66, 0x23, 0x11, 0x82, 0xa1, 0x00, 0xc0, 0x20, 0x00, 0x72, 0x20, 0x85, 0x80, 0x77, 0x20, 0xc0, 0x20, 0x00, 0x72, 0x60, 0x85, 0x62, 0xae, 0xcf, 0x32, 0x04, 0x81, 0x3c, 0x07, 0x66, 0x13, 0x14, 0xc0, 0x20, 0x00, 0x92, 0x20, 0x86, 0x60, 0x99, 0x10, 0x70, 0x99, 0x20, 0xc0, 0x20, 0x00, 0x92, 0x60, 0x86, 0x46, 0x0d, 0x00, 0x66, 0x23, 0x11, 0xc0, 0x20, 0x00, 0xa2, 0x20, 0x8e, 0x50, 0xaa, 0x10, 0xc0, 0x20, 0x00, 0xa2, 0x60, 0x8e, 0x06, 0x08, 0x00, 0xc0, 0x20, 0x00, 0x22, 0x20, 0x86, 0x60, 0x22, 0x10, 0x70, 0x22, 0x20, 0xc0, 0x20, 0x00, 0x22, 0x60, 0x86, 0xc0, 0x20, 0x00, 0xb2, 0x20, 0x8e, 0x50, 0xbb, 0x10, 0xc0, 0x20, 0x00, 0xb2, 0x60, 0x8e, 0x32, 0x04, 0x7e, 0x2c, 0x08, 0x26, 0x13, 0x26, 0x26, 0x33, 0x23, 0x26, 0x43, 0x20, 0x26, 0x53, 0x1d, 0x32, 0x04, 0x80, 0x52, 0xc3, 0xfd, 0x56, 0x25, 0x10, 0xc0, 0x20, 0x00, 0x72, 0x20, 0x8d, 0x60, 0x77, 0x10, 0x80, 0x77, 0x20, 0xc0, 0x20, 0x00, 0x72, 0x60, 0x8d, 0xc6, 0x2a, 0x00, 0x51, 0x8c, 0xf5, 0x0c, 0x09, 0x0b, 0xa3, 0x16, 0xba, 0x0f, 0xb2, 0xc3, 0xfc, 0x16, 0x5b, 0x0f, 0x22, 0xc3, 0xfd, 0x16, 0x72, 0x15, 0xa2, 0xc3, 0xfb, 0x16, 0x1a, 0x15, 0x32, 0xae, 0x0f, 0xc0, 0x20, 0x00, 0x52, 0x20, 0x82, 0x30, 0x55, 0x10, 0x70, 0x55, 0x20, 0xc0, 0x20, 0x00, 0x52, 0x60, 0x82, 0xc0, 0x20, 0x00, 0x22, 0x20, 0x83, 0x30, 0x22, 0x10, 0x70, 0x22, 0x20, 0xc0, 0x20, 0x00, 0x22, 0x60, 0x83, 0xb2, 0x04, 0x7f, 0xb6, 0x2b, 0x26, 0xc0, 0x20, 0x00, 0x92, 0x20, 0x85, 0x60, 0x99, 0x10, 0x80, 0x99, 0x20, 0xc0, 0x20, 0x00, 0x92, 0x60, 0x85, 0xc0, 0x20, 0x00, 0x72, 0x20, 0x8d, 0x60, 0x77, 0x10, 0x80, 0x77, 0x20, 0xc0, 0x20, 0x00, 0x72, 0x60, 0x8d, 0x06, 0x08, 0x00, 0xc0, 0x20, 0x00, 0xb2, 0x20, 0x85, 0x60, 0xbb, 0x10, 0x70, 0xbb, 0x20, 0xc0, 0x20, 0x00, 0xb2, 0x60, 0x85, 0xc0, 0x20, 0x00, 0xa2, 0x20, 0x8d, 0x60, 0xaa, 0x10, 0xc0, 0x20, 0x00, 0xa2, 0x60, 0x8d, 0x32, 0x04, 0x7e, 0x66, 0x13, 0x02, 0x06, 0x23, 0x00, 0x66, 0x33, 0x02, 0x86, 0x21, 0x00, 0x02, 0xc3, 0xfc, 0x16, 0xf0, 0x0d, 0x22, 0xc3, 0xfb, 0x16, 0x92, 0x0d, 0x01, 0x7c, 0xff, 0x41, 0xa7, 0xf4, 0x02, 0x00, 0x7d, 0x31, 0x7a, 0xff, 0x66, 0x10, 0x15, 0x51, 0x7a, 0xff, 0xc0, 0x20, 0x00, 0x28, 0x14, 0x30, 0x22, 0x10, 0x50, 0x22, 0x20, 0xc0, 0x20, 0x00, 0x29, 0x14, 0x46, 0x05, 0x00, 0x66, 0x20, 0x12, 0x61, 0x75, 0xff, 0xc0, 0x20, 0x00, 0x58, 0x14, 0x30, 0x55, 0x10, 0x60, 0x55, 0x20, 0xc0, 0x20, 0x00, 0x59, 0x14, 0x08, 0x01, 0x12, 0xc1, 0x10, 0x0d, 0xf0, 0x66, 0x23, 0xba, 0xc0, 0x20, 0x00, 0x72, 0x20, 0x85, 0x60, 0x77, 0x10, 0x80, 0x77, 0x20, 0xc0, 0x20, 0x00, 0x72, 0x60, 0x85, 0x46, 0xe9, 0xff, 0x32, 0x04, 0x7f, 0xa2, 0xc3, 0xfd, 0x16, 0xfa, 0x0c, 0xb2, 0xc3, 0xfb, 0x16, 0x9b, 0x0c, 0xf6, 0x23, 0x02, 0x46, 0x2c, 0x00, 0x21, 0x64, 0xff, 0xc0, 0x20, 0x00, 0x22, 0x65, 0x40, 0x06, 0xbd, 0xff, 0x32, 0x04, 0x7f, 0x66, 0x13, 0x1e, 0x0c, 0x12, 0x0c, 0x03, 0x0c, 0x14, 0x0c, 0x05, 0x01, 0x86, 0xf4, 0xc0, 0x00, 0x00, 0x0c, 0x02, 0x0c, 0x83, 0x0c, 0x84, 0x0c, 0x05, 0x01, 0x83, 0xf4, 0xc0, 0x00, 0x00, 0xc6, 0xd7, 0xff, 0x56, 0xc3, 0xf5, 0x0c, 0x02, 0x0c, 0x13, 0x0c, 0x14, 0x0c, 0x05, 0x01, 0x7e, 0xf4, 0xc0, 0x00, 0x00, 0x0c, 0x82, 0x0c, 0x03, 0x0c, 0x84, 0x0c, 0x05, 0x01, 0x7a, 0xf4, 0xc0, 0x00, 0x00, 0x46, 0xcf, 0xff, 0x32, 0x04, 0x7f, 0x26, 0x33, 0x76, 0x26, 0x53, 0x73, 0xb6, 0x23, 0x5b, 0x31, 0x4d, 0xff, 0xc0, 0x20, 0x00, 0x32, 0x65, 0x40, 0x46, 0xa5, 0xff, 0x32, 0x04, 0x7f, 0x66, 0x13, 0x1e, 0x0c, 0x02, 0x0c, 0x13, 0x0c, 0x14, 0x0c, 0x05, 0x01, 0x6f, 0xf4, 0xc0, 0x00, 0x00, 0x0c, 0x82, 0x0c, 0x03, 0x0c, 0x84, 0x0c, 0x05, 0x01, 0x6b, 0xf4, 0xc0, 0x00, 0x00, 0x06, 0xc0, 0xff, 0x56, 0xd3, 0xef, 0x0c, 0x12, 0x0c, 0x03, 0x0c, 0x14, 0x0c, 0x05, 0x01, 0x66, 0xf4, 0xc0, 0x00, 0x00, 0x0c, 0x02, 0x0c, 0x83, 0x0c, 0x84, 0x0c, 0x05, 0x01, 0x63, 0xf4, 0xc0, 0x00, 0x00, 0x86, 0xb7, 0xff, 0xc0, 0x20, 0x00, 0x92, 0x65, 0x40, 0x46, 0x91, 0xff, 0xc0, 0x20, 0x00, 0x92, 0x65, 0x40, 0x06, 0x8f, 0xff, 0x91, 0x35, 0xff, 0xc0, 0x20, 0x00, 0x92, 0x65, 0x40, 0x06, 0x8c, 0xff, 0xa1, 0x33, 0xff, 0xc0, 0x20, 0x00, 0xa2, 0x65, 0x40, 0x06, 0x89, 0xff, 0x00, 0x23, 0xf3, 0xfe, 0x3f, 0x80, 0x3f, 0xe0, 0x0f, 0xff, 0xff, 0xcf, 0xff, 0x12, 0xc1, 0xf0, 0x09, 0x01, 0x01, 0xfb, 0xff, 0x22, 0x00, 0x80, 0x56, 0x62, 0x08, 0x01, 0x14, 0xf6, 0x22, 0xa0, 0x66, 0x08, 0x00, 0x0c, 0x33, 0x02, 0x20, 0x24, 0x0c, 0x14, 0xc0, 0x00, 0x00, 0x31, 0x10, 0xf6, 0x22, 0x63, 0x96, 0x21, 0x01, 0xf5, 0xc0, 0x20, 0x00, 0x52, 0x22, 0xe5, 0x52, 0x63, 0x97, 0xc0, 0x20, 0x00, 0x42, 0x22, 0xe6, 0x42, 0x63, 0x98, 0xc0, 0x20, 0x00, 0x0c, 0x14, 0x0c, 0x55, 0x0c, 0x06, 0x3c, 0xc7, 0x22, 0x22, 0xe7, 0x22, 0x63, 0x99, 0x08, 0x03, 0x22, 0xa0, 0x66, 0x02, 0x20, 0x27, 0x0c, 0x33, 0xc0, 0x00, 0x00, 0x01, 0xe6, 0xff, 0x21, 0xe7, 0xff, 0xc0, 0x20, 0x00, 0x71, 0xf2, 0xf4, 0xb2, 0x27, 0xe7, 0x20, 0xbb, 0x20, 0xc0, 0x20, 0x00, 0xb2, 0x67, 0xe7, 0xa1, 0xd6, 0xfd, 0xc0, 0x20, 0x00, 0x92, 0x27, 0xe6, 0xa0, 0x99, 0x20, 0xc0, 0x20, 0x00, 0x92, 0x67, 0xe6, 0x81, 0xde, 0xff, 0xc0, 0x20, 0x00, 0x62, 0x27, 0xe5, 0x80, 0x66, 0x10, 0xc0, 0x20, 0x00, 0x62, 0x67, 0xe5, 0x0c, 0x13, 0x32, 0x40, 0x80, 0x08, 0x01, 0x12, 0xc1, 0x10, 0x0d, 0xf0, 0x00, 0x00, 0x00, 0x28, 0xf3, 0xfe, 0x3f, 0x12, 0xc1, 0xf0, 0x09, 0x01, 0x01, 0xfd, 0xff, 0x22, 0x00, 0x7b, 0x66, 0x12, 0x38, 0x22, 0xa0, 0x66, 0x0c, 0x33, 0x01, 0xe9, 0xf5, 0x0c, 0x14, 0x08, 0x00, 0x51, 0xf8, 0xff, 0x02, 0x20, 0x26, 0x52, 0x05, 0x80, 0xc0, 0x00, 0x00, 0x01, 0xf5, 0xff, 0x31, 0xd6, 0xf4, 0x52, 0x20, 0x21, 0xc0, 0x20, 0x00, 0x52, 0x63, 0xe5, 0x42, 0x20, 0x22, 0xc0, 0x20, 0x00, 0x42, 0x63, 0xe6, 0x22, 0x20, 0x23, 0xc0, 0x20, 0x00, 0x22, 0x63, 0xe7, 0x0c, 0x06, 0x62, 0x40, 0x7b, 0x08, 0x01, 0x12, 0xc1, 0x10, 0x0d, 0xf0, 0x00, 0x12, 0xc1, 0xf0, 0x09, 0x01, 0x66, 0x12, 0x05, 0x85, 0xef, 0xff, 0x86, 0x00, 0x00, 0xc5, 0xf9, 0xff, 0x08, 0x01, 0x12, 0xc1, 0x10, 0x0d, 0xf0, 0x00, 0x00, 0x40, 0x00, 0x13, 0xf3, 0xfe, 0x3f, 0x00, 0x78, 0x00, 0x00, 0x12, 0xc1, 0xe0, 0x02, 0x61, 0x04, 0xc9, 0x51, 0x21, 0xd7, 0xf3, 0xc1, 0xcd, 0xf5, 0xc0, 0x20, 0x00, 0x42, 0x22, 0x97, 0xc0, 0x20, 0x00, 0x32, 0x22, 0x96, 0xc0, 0x20, 0x00, 0x10, 0x48, 0x40, 0x0c, 0x13, 0x0c, 0x74, 0x0c, 0x35, 0x0c, 0x26, 0x0c, 0x07, 0x08, 0x0c, 0x22, 0x22, 0x97, 0x02, 0x20, 0x27, 0x22, 0xa0, 0x61, 0xc0, 0x00, 0x00, 0x45, 0xa9, 0xff, 0x22, 0xa0, 0x77, 0x0c, 0x03, 0x1c, 0x04, 0x0c, 0x05, 0x08, 0x0c, 0x0c, 0x06, 0x02, 0x20, 0x27, 0x0c, 0x17, 0xc0, 0x00, 0x00, 0x45, 0xce, 0x01, 0x31, 0x89, 0xf8, 0x2d, 0x03, 0x4b, 0x33, 0xc5, 0x0b, 0x01, 0x48, 0x4c, 0x67, 0xf4, 0x0e, 0x0c, 0x02, 0x45, 0xd0, 0x06, 0x71, 0xe3, 0xff, 0x68, 0x4c, 0x70, 0x66, 0x20, 0x69, 0x4c, 0x45, 0x21, 0xfe, 0x81, 0xe1, 0xff, 0x82, 0x08, 0x7f, 0x8c, 0x68, 0x0c, 0x02, 0x05, 0x80, 0xfe, 0x46, 0x01, 0x00, 0x22, 0xa0, 0x01, 0x85, 0x7f, 0xfe, 0x52, 0xa0, 0x40, 0x0c, 0x07, 0x0c, 0x06, 0x0c, 0x19, 0x0c, 0x0a, 0x41, 0xae, 0xf6, 0x21, 0x78, 0xf8, 0x82, 0x0c, 0x77, 0x32, 0xc2, 0x14, 0x80, 0x88, 0x01, 0x42, 0x14, 0x01, 0xa9, 0x01, 0x99, 0x11, 0x80, 0x88, 0x31, 0x82, 0xc8, 0x1f, 0x80, 0x88, 0x01, 0x80, 0x88, 0x31, 0x80, 0x68, 0xb3, 0x60, 0x60, 0x74, 0x85, 0xa0, 0x01, 0x98, 0x4c, 0xb7, 0xf9, 0x04, 0x0c, 0x62, 0x45, 0x3b, 0x07, 0x22, 0xa0, 0x00, 0x05, 0x19, 0x03, 0x85, 0x60, 0xff, 0x0c, 0x22, 0x01, 0x20, 0xf8, 0xc0, 0x20, 0x00, 0xb2, 0x20, 0x9c, 0x20, 0xbb, 0x20, 0xc0, 0x20, 0x00, 0x0c, 0x12, 0x0c, 0x73, 0x0c, 0x54, 0x51, 0xc4, 0xff, 0x0c, 0x16, 0x0c, 0x07, 0xb2, 0x60, 0x9c, 0xa1, 0x61, 0xf8, 0xa9, 0x01, 0xc5, 0xae, 0xfe, 0x85, 0x28, 0x02, 0x38, 0x4c, 0xb7, 0x73, 0x27, 0x85, 0xdc, 0x06, 0x62, 0xab, 0xff, 0x51, 0xc7, 0xf3, 0xc0, 0x20, 0x00, 0x42, 0x25, 0xd0, 0x60, 0x44, 0x10, 0xc0, 0x20, 0x00, 0x42, 0x65, 0xd0, 0x0c, 0x02, 0x05, 0x50, 0xff, 0x08, 0x0c, 0x02, 0x20, 0x16, 0x22, 0x9c, 0x2e, 0xc0, 0x00, 0x00, 0x22, 0xa0, 0x77, 0x32, 0xa0, 0x00, 0x42, 0xa0, 0x0f, 0x52, 0xa0, 0x01, 0x0c, 0x16, 0x71, 0xaf, 0xff, 0x08, 0x0c, 0x72, 0x07, 0x7e, 0x02, 0x20, 0x27, 0x70, 0x70, 0x04, 0xc0, 0x00, 0x00, 0x41, 0xab, 0xff, 0x22, 0x04, 0x7f, 0x32, 0x04, 0x80, 0x42, 0x04, 0x81, 0x85, 0x61, 0x07, 0x0c, 0x02, 0xc8, 0x51, 0x08, 0x41, 0x12, 0xc1, 0x20, 0x0d, 0xf0, 0x00, 0x00, 0x00, 0x64, 0xf1, 0xfe, 0x3f, 0xdc, 0xf1, 0xfe, 0x3f, 0x68, 0x84, 0xfe, 0x3f, 0x31, 0xfd, 0xff, 0x12, 0xc1, 0xe0, 0x22, 0x61, 0x05, 0x02, 0x61, 0x06, 0x22, 0xc1, 0x10, 0x02, 0xa0, 0x00, 0x09, 0x41, 0xc5, 0xf8, 0x00, 0x0c, 0x02, 0x32, 0xc1, 0x10, 0x81, 0x50, 0xfd, 0x0c, 0x09, 0x71, 0x6e, 0xf6, 0x51, 0xf5, 0xff, 0x41, 0x69, 0xf5, 0x62, 0xc5, 0x9a, 0x42, 0x24, 0x74, 0x72, 0x07, 0x00, 0x99, 0x11, 0x99, 0x21, 0x99, 0x31, 0x89, 0x01, 0x1b, 0x77, 0x70, 0x70, 0x74, 0x05, 0xb6, 0xfd, 0x21, 0x30, 0xf8, 0x0c, 0x04, 0x32, 0xc2, 0x6f, 0x05, 0x52, 0xfd, 0x01, 0x5f, 0xf5, 0x58, 0x51, 0x22, 0x60, 0x78, 0xac, 0x45, 0x21, 0xe9, 0xff, 0x62, 0x20, 0x42, 0x72, 0x20, 0x41, 0x42, 0x10, 0x0a, 0x70, 0x59, 0x84, 0x40, 0x30, 0x74, 0x60, 0x80, 0x84, 0x40, 0x48, 0x74, 0x60, 0x69, 0x84, 0x70, 0x70, 0x84, 0x89, 0x01, 0x01, 0x1d, 0xf4, 0xc0, 0x00, 0x00, 0x08, 0x61, 0x12, 0xc1, 0x20, 0x0d, 0xf0, 0x00, 0x00, 0x00, 0x04, 0x2f, 0x00, 0x40, 0x12, 0xc1, 0xf0, 0x09, 0x11, 0x21, 0x57, 0xf3, 0xc0, 0x20, 0x00, 0x42, 0x22, 0x85, 0x49, 0x01, 0x7c, 0xe3, 0xc0, 0x20, 0x00, 0x02, 0x22, 0x85, 0x30, 0x00, 0x10, 0xc0, 0x20, 0x00, 0x02, 0x62, 0x85, 0x5c, 0x02, 0x01, 0xf6, 0xff, 0xc0, 0x00, 0x00, 0x0c, 0x12, 0x01, 0xcc, 0xf7, 0xc0, 0x00, 0x00, 0x0c, 0x87, 0x7c, 0x38, 0x61, 0x7c, 0xf3, 0xc0, 0x20, 0x00, 0x52, 0x26, 0xd0, 0x80, 0x55, 0x10, 0x70, 0x55, 0x20, 0xc0, 0x20, 0x00, 0x52, 0x66, 0xd0, 0x22, 0xa3, 0xe8, 0x01, 0xc3, 0xf7, 0xc0, 0x00, 0x00, 0x0c, 0x4b, 0xc0, 0x20, 0x00, 0xa1, 0x74, 0xf3, 0x92, 0x2a, 0xd0, 0x7c, 0x30, 0x00, 0x99, 0x10, 0xb0, 0x99, 0x20, 0xc0, 0x20, 0x00, 0x92, 0x6a, 0xd0, 0x0c, 0x12, 0x01, 0xbb, 0xf7, 0xc0, 0x00, 0x00, 0xc0, 0x20, 0x00, 0x31, 0x3b, 0xf3, 0x28, 0x01, 0x22, 0x63, 0x85, 0x07, 0x62, 0x08, 0x22, 0xa0, 0xa0, 0x01, 0xdd, 0xff, 0xc0, 0x00, 0x00, 0x08, 0x11, 0x12, 0xc1, 0x10, 0x0d, 0xf0, 0x00, 0x00, 0x88, 0x84, 0xfe, 0x3f, 0x90, 0x84, 0xfe, 0x3f, 0x12, 0xc1, 0xf0, 0x02, 0x61, 0x01, 0x01, 0x38, 0xff, 0x02, 0x00, 0x70, 0x22, 0x61, 0x00, 0x17, 0xe0, 0x39, 0x21, 0xf9, 0xff, 0x01, 0xeb, 0xf3, 0xc0, 0x00, 0x00, 0x22, 0xa0, 0x04, 0x45, 0xb4, 0x03, 0x21, 0x31, 0xff, 0x22, 0x02, 0x90, 0xcc, 0x12, 0x85, 0xf3, 0xff, 0x22, 0x21, 0x00, 0x41, 0x2e, 0xff, 0x32, 0xa0, 0x00, 0x32, 0x44, 0x90, 0xc5, 0xe9, 0xff, 0x22, 0xa0, 0x04, 0x0c, 0x03, 0x05, 0xc5, 0x03, 0x21, 0xee, 0xff, 0x01, 0xdf, 0xf3, 0xc0, 0x00, 0x00, 0x08, 0x11, 0x12, 0xc1, 0x10, 0x0d, 0xf0, 0x00, 0x34, 0xf3, 0xfe, 0x3f, 0x38, 0xf3, 0xfe, 0x3f, 0x3a, 0xf3, 0xfe, 0x3f, 0x3c, 0xf3, 0xfe, 0x3f, 0x0c, 0x06, 0x91, 0xfb, 0xff, 0x42, 0x02, 0x00, 0x5d, 0x09, 0x82, 0xc9, 0xc0, 0x42, 0x49, 0x00, 0x32, 0x02, 0x01, 0xfb, 0x79, 0x30, 0x31, 0x04, 0x32, 0x49, 0x02, 0x2a, 0xa6, 0x1b, 0x66, 0xa2, 0x0a, 0x02, 0xa2, 0x45, 0x03, 0x1b, 0x55, 0x77, 0x95, 0xf0, 0x5d, 0x09, 0xa1, 0xeb, 0xfc, 0x0c, 0x06, 0x2a, 0x36, 0x1b, 0x55, 0x1b, 0x66, 0x42, 0x03, 0x11, 0x42, 0x45, 0x11, 0x72, 0x03, 0x14, 0x80, 0xb4, 0x01, 0x7a, 0x44, 0x42, 0x45, 0x14, 0x32, 0x03, 0x17, 0xb0, 0xb8, 0x31, 0x3a, 0xbb, 0xb2, 0x45, 0x17, 0xa7, 0x95, 0xda, 0x5d, 0x09, 0x71, 0xe7, 0xff, 0x0c, 0x0a, 0x0c, 0x06, 0xb2, 0x02, 0x1a, 0xb2, 0x48, 0x5c, 0x42, 0x02, 0x1b, 0x42, 0x48, 0x5d, 0x2a, 0x46, 0x32, 0x02, 0x1c, 0xb2, 0x02, 0x1d, 0x30, 0x30, 0x54, 0x80, 0x33, 0x11, 0x30, 0xbb, 0x20, 0xb2, 0x58, 0x2f, 0x1b, 0x66, 0x42, 0x04, 0x1e, 0x42, 0x45, 0x20, 0x80, 0x34, 0x01, 0x30, 0x38, 0x31, 0xe6, 0x63, 0x02, 0x77, 0x64, 0x02, 0xa2, 0x45, 0x20, 0x2a, 0x46, 0x1b, 0x55, 0x77, 0x95, 0xe1, 0x5d, 0x09, 0x71, 0xd6, 0xff, 0x0c, 0x06, 0x2a, 0xa6, 0x1b, 0x66, 0xa2, 0x0a, 0x22, 0xa2, 0x45, 0x24, 0x1b, 0x55, 0x77, 0x95, 0xf0, 0x5d, 0x09, 0x71, 0xd1, 0xff, 0x0c, 0x06, 0x2a, 0xb6, 0x1b, 0x66, 0xb2, 0x0b, 0x28, 0xb2, 0x45, 0x2a, 0x1b, 0x55, 0x77, 0x95, 0xf0, 0x0c, 0x55, 0x32, 0x02, 0x30, 0x32, 0x48, 0x41, 0xb2, 0x02, 0x31, 0xb2, 0x48, 0x73, 0xa2, 0x02, 0x32, 0xa2, 0x48, 0x74, 0x92, 0x02, 0x33, 0x92, 0x48, 0x75, 0x72, 0x02, 0x34, 0x72, 0x48, 0x76, 0x62, 0x02, 0x35, 0x62, 0x48, 0x77, 0x42, 0x02, 0x36, 0x42, 0x48, 0x78, 0x32, 0x02, 0x37, 0x32, 0x48, 0x79, 0xb2, 0x02, 0x38, 0xb2, 0x48, 0x7a, 0xa2, 0x02, 0x40, 0xa2, 0x48, 0x7b, 0x92, 0x02, 0x41, 0x92, 0x48, 0x7c, 0x72, 0x02, 0x42, 0x62, 0x02, 0x43, 0x70, 0x70, 0x54, 0x80, 0x77, 0x11, 0x70, 0x66, 0x20, 0x62, 0x58, 0x3f, 0x42, 0x02, 0x44, 0x42, 0x48, 0x80, 0x32, 0x02, 0x45, 0x32, 0x48, 0x81, 0xb2, 0x02, 0x47, 0xa2, 0x02, 0x46, 0x80, 0xbb, 0x01, 0x80, 0xaa, 0x01, 0xa0, 0xa8, 0x31, 0xb0, 0xb8, 0x31, 0x80, 0xbb, 0x11, 0xb0, 0xaa, 0x20, 0xa2, 0x58, 0x41, 0x92, 0x02, 0x49, 0x72, 0x02, 0x48, 0x80, 0x99, 0x01, 0x80, 0x77, 0x01, 0x70, 0x78, 0x31, 0x90, 0x98, 0x31, 0x80, 0x99, 0x11, 0x90, 0x77, 0x20, 0x72, 0x58, 0x42, 0x62, 0x02, 0x4a, 0x62, 0x48, 0x86, 0x42, 0x02, 0x4b, 0x6d, 0x05, 0x40, 0x40, 0x34, 0x42, 0x48, 0x88, 0xf6, 0x64, 0x01, 0x6d, 0x04, 0x62, 0x48, 0x88, 0x92, 0x02, 0x4b, 0x90, 0x94, 0x24, 0x92, 0x48, 0x8a, 0x72, 0x02, 0x4b, 0x70, 0x77, 0x04, 0x72, 0x48, 0x8c, 0x62, 0x02, 0x4c, 0x60, 0x60, 0x34, 0x62, 0x48, 0x87, 0x67, 0x35, 0x01, 0x5d, 0x06, 0x52, 0x48, 0x87, 0x42, 0x02, 0x4c, 0x40, 0x44, 0x24, 0x42, 0x48, 0x89, 0x32, 0x02, 0x4c, 0x30, 0x37, 0x04, 0x32, 0x48, 0x8b, 0xb2, 0x02, 0x4d, 0xb0, 0xb0, 0x34, 0xb2, 0x48, 0x8e, 0xa2, 0x02, 0x4d, 0xa0, 0xa4, 0x34, 0xa2, 0x48, 0x8d, 0x92, 0x02, 0x4e, 0x92, 0x48, 0x8f, 0x72, 0x02, 0x4f, 0x72, 0x48, 0x90, 0x62, 0x02, 0x50, 0x62, 0x48, 0x91, 0x42, 0x02, 0x51, 0x42, 0x48, 0x92, 0x32, 0x02, 0x52, 0x32, 0x48, 0x93, 0xb2, 0x02, 0x53, 0xb2, 0x48, 0x94, 0xa2, 0x02, 0x54, 0xa2, 0x48, 0x95, 0x92, 0x02, 0x55, 0x92, 0x48, 0x96, 0x72, 0x02, 0x56, 0x72, 0x48, 0x97, 0x62, 0x02, 0x57, 0x62, 0x48, 0x98, 0x42, 0x02, 0x58, 0x42, 0x48, 0x99, 0x32, 0x02, 0x59, 0x32, 0x48, 0x9a, 0xb2, 0x02, 0x5a, 0xb2, 0x48, 0x9b, 0xa2, 0x02, 0x5b, 0xa2, 0x48, 0x9c, 0x92, 0x02, 0x5c, 0x92, 0x48, 0x9d, 0x72, 0x02, 0x5d, 0x72, 0x48, 0x9e, 0x62, 0x02, 0x5e, 0x62, 0x48, 0x9f, 0x42, 0x02, 0x5f, 0x42, 0x48, 0xa0, 0x32, 0x02, 0x60, 0x32, 0x48, 0xa1, 0xb2, 0x02, 0x61, 0xb2, 0x48, 0xa2, 0xa2, 0x02, 0x62, 0xa2, 0x48, 0xa3, 0x92, 0x02, 0x63, 0x92, 0x48, 0xa4, 0x72, 0x02, 0x64, 0x72, 0x48, 0xa5, 0x62, 0x02, 0x65, 0x62, 0x48, 0xa6, 0x42, 0x02, 0x66, 0x42, 0x48, 0xa7, 0x32, 0x02, 0x67, 0x32, 0x48, 0xa8, 0xb2, 0x02, 0x68, 0xb2, 0x48, 0xa9, 0xa2, 0x02, 0x69, 0xa2, 0x48, 0xaa, 0x0c, 0x02, 0x0d, 0xf0, 0x00, 0x00, 0x00, 0x70, 0x00, 0x80, 0x00, 0x12, 0xc1, 0xf0, 0x02, 0x61, 0x02, 0xc2, 0x61, 0x03, 0x7c, 0xf2, 0xc1, 0xa7, 0xf2, 0x01, 0x6f, 0xf4, 0xc0, 0x20, 0x00, 0x0c, 0x23, 0x0c, 0x84, 0x0c, 0x05, 0x08, 0x00, 0x22, 0x6c, 0x49, 0x02, 0x20, 0x26, 0x22, 0xa0, 0x6a, 0xc0, 0x00, 0x00, 0x0c, 0x02, 0xc0, 0x20, 0x00, 0x22, 0x6c, 0x43, 0x0c, 0x32, 0xc5, 0x0b, 0x03, 0xc0, 0x20, 0x00, 0x0c, 0x07, 0x72, 0x6c, 0x50, 0xc0, 0x20, 0x00, 0x72, 0x6c, 0x51, 0x7c, 0xe6, 0xc0, 0x20, 0x00, 0x52, 0x2c, 0x6a, 0x60, 0x55, 0x10, 0xc0, 0x20, 0x00, 0x52, 0x6c, 0x6a, 0xc0, 0x20, 0x00, 0x42, 0x2c, 0x40, 0x49, 0x11, 0x31, 0xe8, 0xff, 0xc0, 0x20, 0x00, 0x32, 0x6c, 0x40, 0x0c, 0x82, 0x0c, 0x03, 0x85, 0x15, 0x03, 0x91, 0xa6, 0xf8, 0xc0, 0x20, 0x00, 0x82, 0x2c, 0x42, 0x01, 0x22, 0xf7, 0x90, 0x88, 0x20, 0x02, 0x00, 0x80, 0x89, 0x01, 0x66, 0x10, 0x2c, 0x22, 0xa0, 0x67, 0x01, 0x51, 0xf4, 0x0c, 0x43, 0x08, 0x00, 0x0c, 0x14, 0x02, 0x20, 0x26, 0x52, 0xa0, 0x88, 0xc0, 0x00, 0x00, 0x22, 0xa0, 0x67, 0x01, 0x4c, 0xf4, 0x0c, 0x43, 0x08, 0x00, 0x0c, 0x24, 0x02, 0x20, 0x26, 0x52, 0xa0, 0x91, 0xc0, 0x00, 0x00, 0x46, 0x07, 0x00, 0x66, 0x20, 0x1a, 0x22, 0xa0, 0x67, 0x32, 0xa0, 0x04, 0x42, 0xa0, 0x02, 0x01, 0x44, 0xf4, 0x52, 0xa0, 0x07, 0x08, 0x00, 0x0c, 0x56, 0x02, 0x20, 0x27, 0x0c, 0x27, 0xc0, 0x00, 0x00, 0xc0, 0x20, 0x00, 0x28, 0x01, 0x22, 0x6c, 0x42, 0x0c, 0x12, 0xc5, 0x3f, 0x03, 0xc0, 0x20, 0x00, 0x38, 0x11, 0x08, 0x21, 0x32, 0x6c, 0x40, 0xc8, 0x31, 0x12, 0xc1, 0x10, 0x0d, 0xf0, 0xe7, 0xf2, 0xfe, 0x3f, 0x08, 0x6b, 0x00, 0x40, 0x12, 0xc1, 0xf0, 0xc2, 0x61, 0x01, 0x02, 0x61, 0x00, 0x05, 0x10, 0x03, 0x20, 0xc2, 0x20, 0x01, 0xfb, 0xff, 0xc0, 0x00, 0x00, 0x01, 0xf8, 0xff, 0x22, 0x00, 0x4e, 0x02, 0x00, 0xb2, 0x9c, 0x12, 0x66, 0x10, 0x05, 0x85, 0xee, 0xff, 0x46, 0x02, 0x00, 0xcc, 0x60, 0x26, 0x1c, 0x04, 0x8c, 0x1c, 0x85, 0xed, 0xff, 0xc8, 0x11, 0x08, 0x01, 0x12, 0xc1, 0x10, 0x0d, 0xf0, 0x14, 0x3a, 0x00, 0x40, 0xa4, 0x38, 0x00, 0x40, 0xd8, 0x39, 0x00, 0x40, 0x12, 0xc1, 0xf0, 0x09, 0x01, 0x01, 0xef, 0xf6, 0x21, 0x22, 0xf4, 0x02, 0x00, 0x80, 0x28, 0x42, 0x16, 0x40, 0x04, 0xb7, 0xf2, 0x02, 0xc5, 0xea, 0xff, 0x01, 0x10, 0xf3, 0xc0, 0x20, 0x00, 0x32, 0x20, 0x46, 0x27, 0x73, 0x32, 0xc0, 0x20, 0x00, 0x42, 0x20, 0x46, 0x40, 0x4d, 0x25, 0x66, 0x24, 0x26, 0x51, 0x4e, 0xf2, 0xc0, 0x20, 0x00, 0x52, 0x25, 0x88, 0x87, 0x65, 0x1a, 0x0c, 0x12, 0x01, 0xed, 0xff, 0xc0, 0x00, 0x00, 0x0c, 0x12, 0x01, 0xec, 0xff, 0xc0, 0x00, 0x00, 0x0c, 0x12, 0x32, 0xa2, 0xb6, 0x01, 0xea, 0xff, 0xc0, 0x00, 0x00, 0x08, 0x01, 0x12, 0xc1, 0x10, 0x0d, 0xf0, 0x00, 0x10, 0x81, 0xfe, 0x3f, 0x30, 0x81, 0xfe, 0x3f, 0x98, 0x84, 0xfe, 0x3f, 0xa4, 0x84, 0xfe, 0x3f, 0x20, 0x4e, 0x00, 0x00, 0x31, 0xfb, 0xff, 0x42, 0xa0, 0x1c, 0x12, 0xc1, 0xa0, 0xd2, 0x61, 0x13, 0xe2, 0x61, 0x14, 0xf2, 0x61, 0x15, 0xc2, 0x61, 0x12, 0x02, 0x61, 0x11, 0x20, 0xc2, 0x20, 0x2d, 0x01, 0x05, 0x62, 0x08, 0x22, 0xc1, 0x20, 0x31, 0xf3, 0xff, 0x1c, 0xc4, 0x45, 0x61, 0x08, 0xc0, 0x20, 0x00, 0x21, 0x81, 0xf6, 0x0c, 0x0d, 0x22, 0x22, 0x80, 0x22, 0x61, 0x10, 0x8c, 0xcc, 0x22, 0xa3, 0xe8, 0x01, 0x7e, 0xf6, 0xc0, 0x00, 0x00, 0x1b, 0xdd, 0xd7, 0x9c, 0xf1, 0xc2, 0xa0, 0x01, 0xe2, 0xae, 0x78, 0xd2, 0xa0, 0x0e, 0xf2, 0xd1, 0xff, 0xc0, 0x2c, 0x20, 0x45, 0x14, 0x04, 0x62, 0xaf, 0x60, 0xb2, 0xa1, 0x90, 0x0b, 0xdd, 0x52, 0xac, 0xe0, 0xf0, 0xac, 0x90, 0x20, 0x70, 0xf5, 0x02, 0xd1, 0xff, 0x00, 0x82, 0x11, 0x80, 0x80, 0x31, 0x02, 0xc0, 0x20, 0x00, 0x77, 0x11, 0x70, 0x70, 0x31, 0x00, 0x9c, 0x90, 0x82, 0x59, 0x7f, 0x72, 0x5a, 0x7f, 0x1b, 0xcc, 0xc0, 0xc0, 0x74, 0x57, 0x97, 0x0b, 0x72, 0xaf, 0x6a, 0x02, 0xaf, 0x6a, 0x02, 0x5a, 0x7f, 0x06, 0x05, 0x00, 0xe7, 0xa7, 0x08, 0xe2, 0x5a, 0x7f, 0x72, 0xae, 0x78, 0x06, 0x02, 0x00, 0x77, 0xa6, 0x05, 0x62, 0x5a, 0x7f, 0x72, 0xaf, 0x60, 0x00, 0x02, 0x11, 0x00, 0x00, 0x31, 0x57, 0x90, 0x0b, 0x82, 0xaf, 0x6a, 0x22, 0xaf, 0x6a, 0x22, 0x59, 0x7f, 0x06, 0x05, 0x00, 0xe7, 0xa0, 0x08, 0xe2, 0x59, 0x7f, 0x82, 0xae, 0x78, 0x06, 0x02, 0x00, 0x07, 0xa6, 0x05, 0x62, 0x59, 0x7f, 0x82, 0xaf, 0x60, 0x87, 0xa7, 0x0b, 0x82, 0x5a, 0x7f, 0x72, 0x59, 0x7f, 0x3d, 0x07, 0x7d, 0x08, 0x8d, 0x03, 0xba, 0x08, 0xba, 0x27, 0x22, 0x5a, 0x7f, 0x02, 0x59, 0x7f, 0x56, 0xed, 0xf5, 0xc1, 0x03, 0xf2, 0x32, 0x91, 0x10, 0x52, 0x91, 0x12, 0x42, 0x91, 0x13, 0x50, 0x50, 0x74, 0x80, 0x44, 0x01, 0x00, 0x55, 0x11, 0x50, 0x44, 0x20, 0x52, 0x91, 0x11, 0x30, 0x30, 0x74, 0x50, 0x50, 0x74, 0x80, 0x55, 0x11, 0x50, 0x33, 0x20, 0x40, 0x33, 0x20, 0xc0, 0x20, 0x00, 0x02, 0x91, 0x14, 0x32, 0x6c, 0x65, 0x22, 0x91, 0x17, 0x32, 0x91, 0x16, 0x80, 0x22, 0x01, 0x30, 0x30, 0x74, 0x00, 0x33, 0x11, 0x30, 0x22, 0x20, 0x32, 0x91, 0x15, 0x00, 0x00, 0x74, 0x30, 0x30, 0x74, 0x80, 0x33, 0x11, 0x30, 0x00, 0x20, 0x20, 0x00, 0x20, 0xc0, 0x20, 0x00, 0x02, 0x6c, 0x66, 0xc0, 0x20, 0x00, 0x22, 0x91, 0x1a, 0xf2, 0xa0, 0xfe, 0x02, 0x91, 0x1b, 0xe2, 0x91, 0x18, 0x80, 0x00, 0x01, 0xf0, 0xee, 0x10, 0x20, 0x20, 0x74, 0xf2, 0x91, 0x19, 0x00, 0x22, 0x11, 0x20, 0x00, 0x20, 0xf0, 0xf0, 0x74, 0x80, 0xff, 0x11, 0xf0, 0xee, 0x20, 0xf2, 0x2c, 0x69, 0x00, 0xee, 0x20, 0xf0, 0xf0, 0x04, 0xf0, 0xee, 0x20, 0xc0, 0x20, 0x00, 0xe2, 0x6c, 0x69, 0xd2, 0x91, 0x1d, 0xb2, 0x91, 0x1c, 0xd0, 0xd0, 0x74, 0xb0, 0xb0, 0x74, 0x80, 0xdd, 0x11, 0xd0, 0xbb, 0x20, 0xc0, 0x20, 0x00, 0x92, 0x91, 0x00, 0xb2, 0x6c, 0x6a, 0xa2, 0x91, 0x03, 0xb2, 0x91, 0x02, 0x80, 0xaa, 0x01, 0xb0, 0xb0, 0x74, 0x00, 0xbb, 0x11, 0xb0, 0xaa, 0x20, 0xb2, 0x91, 0x01, 0x90, 0x90, 0x74, 0xb0, 0xb0, 0x74, 0x80, 0xbb, 0x11, 0xb0, 0x99, 0x20, 0xa0, 0x99, 0x20, 0xc0, 0x20, 0x00, 0x72, 0x91, 0x04, 0x92, 0x6c, 0x6f, 0x82, 0x91, 0x07, 0x92, 0x91, 0x06, 0x80, 0x88, 0x01, 0x90, 0x90, 0x74, 0x00, 0x99, 0x11, 0x90, 0x88, 0x20, 0x92, 0x91, 0x05, 0x70, 0x70, 0x74, 0x90, 0x90, 0x74, 0x80, 0x99, 0x11, 0x90, 0x77, 0x20, 0x80, 0x77, 0x20, 0xc0, 0x20, 0x00, 0x52, 0x91, 0x08, 0x72, 0x6c, 0x7e, 0x62, 0x91, 0x0b, 0x72, 0x91, 0x0a, 0x80, 0x66, 0x01, 0x70, 0x70, 0x74, 0x00, 0x77, 0x11, 0x70, 0x66, 0x20, 0x72, 0x91, 0x09, 0x50, 0x50, 0x74, 0x70, 0x70, 0x74, 0x80, 0x77, 0x11, 0x70, 0x55, 0x20, 0x60, 0x55, 0x20, 0xc0, 0x20, 0x00, 0x42, 0x91, 0x0c, 0x52, 0x6c, 0x7f, 0x62, 0x91, 0x0d, 0x51, 0x69, 0xf2, 0x60, 0x60, 0x74, 0x40, 0x40, 0x74, 0x80, 0x66, 0x11, 0x60, 0x44, 0x20, 0x50, 0x44, 0x20, 0xc0, 0x20, 0x00, 0x42, 0x6c, 0x6e, 0x21, 0x6a, 0xff, 0xc0, 0x20, 0x00, 0x31, 0xf8, 0xf5, 0x42, 0x21, 0x10, 0x32, 0x23, 0x80, 0x40, 0x33, 0xc0, 0x01, 0x37, 0xf2, 0xc0, 0x00, 0x00, 0x21, 0x65, 0xff, 0xc0, 0x20, 0x00, 0x32, 0x2c, 0x6e, 0x30, 0x30, 0xf5, 0x01, 0x33, 0xf2, 0xc0, 0x00, 0x00, 0x0c, 0x0d, 0xc1, 0x61, 0xff, 0x22, 0xa3, 0xe8, 0x01, 0xee, 0xf5, 0xc0, 0x00, 0x00, 0x1b, 0xdd, 0xc7, 0x9d, 0xf1, 0xc2, 0x21, 0x12, 0xd2, 0x21, 0x13, 0xe2, 0x21, 0x14, 0xf2, 0x21, 0x15, 0x02, 0x21, 0x11, 0x12, 0xc1, 0x60, 0x0d, 0xf0, 0x00, 0x00, 0x00, 0x50, 0x81, 0xfe, 0x3f, 0x70, 0x81, 0xfe, 0x3f, 0x90, 0x81, 0xfe, 0x3f, 0xb0, 0x84, 0xfe, 0x3f, 0x04, 0x85, 0xfe, 0x3f, 0x31, 0xfb, 0xff, 0x1c, 0xc4, 0x22, 0xa0, 0xf0, 0x20, 0x11, 0xc0, 0xc2, 0x61, 0x34, 0xd2, 0x61, 0x35, 0xe2, 0x61, 0x36, 0xf2, 0x61, 0x37, 0x22, 0xc1, 0x50, 0x02, 0x61, 0x33, 0xc5, 0x36, 0x08, 0x22, 0xc1, 0x70, 0x31, 0xf3, 0xff, 0x1c, 0xc4, 0x05, 0x36, 0x08, 0x31, 0xf2, 0xff, 0x1c, 0xc4, 0x22, 0xc1, 0x7f, 0x22, 0xc2, 0x11, 0x45, 0x35, 0x08, 0x0c, 0x02, 0x85, 0x14, 0x05, 0xf1, 0x3d, 0xf2, 0xc0, 0x20, 0x00, 0x0c, 0x1c, 0x42, 0x2f, 0xff, 0xd2, 0xd1, 0xff, 0xe2, 0xd1, 0xff, 0xe2, 0xce, 0x70, 0xd2, 0xcd, 0x50, 0x40, 0x30, 0xf5, 0x40, 0x58, 0x75, 0x52, 0x61, 0x32, 0x80, 0x33, 0x01, 0x00, 0x44, 0x11, 0x30, 0x38, 0x31, 0x32, 0x61, 0x31, 0x40, 0x40, 0x31, 0x42, 0x61, 0x30, 0xc0, 0x2c, 0x20, 0x85, 0xe7, 0x03, 0xc0, 0x20, 0x00, 0xe0, 0x2c, 0x90, 0x02, 0x2f, 0xff, 0x02, 0x52, 0x7f, 0xd0, 0x2c, 0x90, 0x00, 0x00, 0xf5, 0xc2, 0xcc, 0x01, 0xc0, 0xc0, 0x74, 0x02, 0x52, 0x7f, 0x22, 0xa0, 0x0f, 0x27, 0x9c, 0xd8, 0x0c, 0x1c, 0xe1, 0x37, 0xf4, 0xd1, 0x33, 0xf3, 0x0c, 0xe3, 0x32, 0x61, 0x38, 0x08, 0x0d, 0x02, 0x20, 0x28, 0xc0, 0x00, 0x00, 0x08, 0x0d, 0x02, 0x20, 0x30, 0x0c, 0x12, 0xc0, 0x00, 0x00, 0x22, 0x1e, 0x01, 0x20, 0x20, 0xb4, 0x05, 0xe5, 0x05, 0x22, 0x1e, 0x01, 0x0c, 0x14, 0x32, 0xc1, 0x7f, 0x32, 0xc3, 0x31, 0x45, 0x7d, 0x00, 0x08, 0x0d, 0x08, 0x60, 0x0c, 0x02, 0xc0, 0x00, 0x00, 0x2d, 0x0c, 0x0c, 0x13, 0xc5, 0x9f, 0xfd, 0x32, 0xc1, 0x90, 0x30, 0x3c, 0x90, 0xc0, 0x20, 0x00, 0x08, 0x0d, 0x22, 0x2f, 0xff, 0x02, 0x20, 0x32, 0x22, 0x53, 0x7f, 0xc0, 0x00, 0x00, 0x08, 0x0d, 0x02, 0x20, 0x31, 0xc0, 0x00, 0x00, 0x08, 0x0d, 0x02, 0x20, 0x2f, 0xc0, 0x00, 0x00, 0x22, 0x1e, 0x01, 0x0c, 0x04, 0x32, 0xc1, 0x7f, 0x32, 0xc3, 0x31, 0x05, 0x79, 0x00, 0x22, 0x1e, 0x01, 0x32, 0xc1, 0x7f, 0x32, 0xc3, 0x31, 0x85, 0x6e, 0x00, 0x0c, 0xe2, 0x32, 0xc1, 0x7f, 0x32, 0xc3, 0x39, 0x45, 0xb1, 0xfd, 0x42, 0x21, 0x38, 0x1b, 0xcc, 0xc0, 0xc0, 0x74, 0x0b, 0x44, 0x42, 0x61, 0x38, 0x56, 0xa4, 0xf6, 0xf2, 0x91, 0x29, 0xf9, 0x01, 0xe2, 0x91, 0x39, 0xe9, 0x11, 0xd2, 0x91, 0x2a, 0xd9, 0x21, 0xc2, 0x91, 0x3a, 0xc9, 0x31, 0xb2, 0x91, 0x2b, 0xb9, 0x41, 0xa2, 0x91, 0x3b, 0xa9, 0x51, 0x92, 0x91, 0x2c, 0x99, 0x61, 0x82, 0x91, 0x3c, 0x89, 0x71, 0x72, 0x91, 0x2d, 0x79, 0x81, 0x62, 0x91, 0x3d, 0x69, 0x91, 0x52, 0x91, 0x2e, 0x59, 0xa1, 0x42, 0x91, 0x3e, 0x52, 0x21, 0x30, 0x49, 0xb1, 0x42, 0x21, 0x31, 0x32, 0x91, 0x2f, 0x39, 0xc1, 0x22, 0x91, 0x3f, 0x32, 0x21, 0x32, 0x29, 0xd1, 0x21, 0x9c, 0xff, 0x02, 0x91, 0x30, 0x09, 0xe1, 0xf2, 0x91, 0x40, 0xf9, 0xf1, 0xe2, 0x91, 0x31, 0xe2, 0x61, 0x10, 0xd2, 0x91, 0x41, 0xd2, 0x61, 0x11, 0x62, 0x91, 0x28, 0x72, 0x91, 0x38, 0x01, 0x9d, 0xf1, 0xc0, 0x00, 0x00, 0xc2, 0x21, 0x30, 0xd2, 0x21, 0x31, 0xe2, 0x21, 0x32, 0xf2, 0x91, 0x32, 0x62, 0x91, 0x44, 0x69, 0x01, 0x52, 0x91, 0x35, 0x59, 0x11, 0x42, 0x91, 0x45, 0x49, 0x21, 0x32, 0x91, 0x48, 0x39, 0x31, 0x22, 0x91, 0x49, 0x29, 0x41, 0x02, 0x91, 0x4a, 0x09, 0x51, 0xb2, 0x91, 0x4b, 0xb9, 0x61, 0xa2, 0x91, 0x4c, 0xa9, 0x71, 0x92, 0x91, 0x4d, 0x99, 0x81, 0x82, 0x91, 0x4e, 0x89, 0x91, 0x72, 0x91, 0x4f, 0x79, 0xa1, 0x62, 0x91, 0x50, 0x69, 0xb1, 0x52, 0x91, 0x51, 0x59, 0xc1, 0x42, 0x91, 0x52, 0x49, 0xd1, 0x32, 0x91, 0x53, 0x39, 0xe1, 0x22, 0x91, 0x54, 0x3d, 0x0f, 0x29, 0xf1, 0x21, 0x7c, 0xff, 0x02, 0x91, 0x55, 0x02, 0x61, 0x10, 0x42, 0x91, 0x42, 0x52, 0x91, 0x33, 0x62, 0x91, 0x43, 0x72, 0x91, 0x34, 0x01, 0x7f, 0xf1, 0xc0, 0x00, 0x00, 0x22, 0x91, 0x29, 0x29, 0x01, 0x02, 0x91, 0x39, 0x09, 0x11, 0xb2, 0x91, 0x2a, 0xb9, 0x21, 0xa2, 0x91, 0x3a, 0xa9, 0x31, 0x92, 0x91, 0x2b, 0x99, 0x41, 0x82, 0x91, 0x3b, 0x89, 0x51, 0x72, 0x91, 0x2c, 0x79, 0x61, 0x62, 0x91, 0x3c, 0x69, 0x71, 0x52, 0x91, 0x2d, 0x59, 0x81, 0x42, 0x91, 0x3d, 0x5d, 0x0c, 0x49, 0x91, 0x4d, 0x0d, 0x32, 0x91, 0x2e, 0x39, 0xa1, 0x22, 0x91, 0x3e, 0x3d, 0x0e, 0x29, 0xb1, 0x21, 0x64, 0xff, 0x02, 0x91, 0x2f, 0x09, 0xc1, 0xb2, 0x91, 0x3f, 0xb9, 0xd1, 0xa2, 0x91, 0x30, 0xa9, 0xe1, 0x92, 0x91, 0x40, 0x99, 0xf1, 0x82, 0x91, 0x31, 0x82, 0x61, 0x10, 0x72, 0x91, 0x41, 0x72, 0x61, 0x11, 0x62, 0x91, 0x28, 0x72, 0x91, 0x38, 0x01, 0x7d, 0xf1, 0xc0, 0x00, 0x00, 0x52, 0x91, 0x44, 0x59, 0x01, 0x42, 0x91, 0x35, 0x49, 0x11, 0x32, 0x91, 0x45, 0x39, 0x21, 0x22, 0x91, 0x48, 0x29, 0x31, 0x02, 0x91, 0x49, 0x21, 0x53, 0xff, 0x09, 0x41, 0xe2, 0x91, 0x4a, 0xe9, 0x51, 0xd2, 0x91, 0x4b, 0xd9, 0x61, 0xc2, 0x91, 0x4c, 0xc9, 0x71, 0xb2, 0x91, 0x4d, 0xb9, 0x81, 0xa2, 0x91, 0x4e, 0xa9, 0x91, 0x92, 0x91, 0x4f, 0x99, 0xa1, 0x82, 0x91, 0x50, 0x89, 0xb1, 0x72, 0x91, 0x51, 0x79, 0xc1, 0x62, 0x91, 0x52, 0x69, 0xd1, 0x52, 0x91, 0x53, 0x59, 0xe1, 0x42, 0x91, 0x54, 0x49, 0xf1, 0x32, 0x91, 0x55, 0x32, 0x61, 0x10, 0x3d, 0x0f, 0x42, 0x91, 0x42, 0x52, 0x91, 0x33, 0x62, 0x91, 0x43, 0x72, 0x91, 0x34, 0x01, 0x62, 0xf1, 0xc0, 0x00, 0x00, 0xc2, 0x21, 0x34, 0xd2, 0x21, 0x35, 0xe2, 0x21, 0x36, 0xf2, 0x21, 0x37, 0x22, 0xa0, 0xf0, 0x02, 0x21, 0x33, 0x2a, 0x11, 0x0d, 0xf0, 0x00, 0x00, 0xea, 0xf2, 0xfe, 0x3f, 0x01, 0x01, 0x01, 0x01, 0x04, 0x04, 0x04, 0x04, 0x04, 0x01, 0x01, 0x04, 0x01, 0x04, 0x04, 0x01, 0xff, 0xc3, 0xff, 0xff, 0x00, 0x08, 0x00, 0x00, 0x01, 0x01, 0x01, 0x04, 0x04, 0x04, 0x04, 0x01, 0x71, 0xf7, 0xff, 0x31, 0xf9, 0xf3, 0x42, 0x07, 0x7f, 0x51, 0xf5, 0xff, 0x26, 0x14, 0x68, 0x26, 0x34, 0x65, 0x61, 0xf4, 0xff, 0x26, 0x44, 0x71, 0x26, 0x54, 0x6e, 0x42, 0x07, 0x81, 0x66, 0x24, 0x11, 0x21, 0xf1, 0xff, 0xc0, 0x20, 0x00, 0x22, 0x63, 0xd8, 0xc0, 0x20, 0x00, 0x62, 0x63, 0xd9, 0x46, 0x04, 0x00, 0x66, 0x34, 0x0e, 0x41, 0xed, 0xff, 0xc0, 0x20, 0x00, 0x42, 0x63, 0xd8, 0xc0, 0x20, 0x00, 0x52, 0x63, 0xd9, 0xa1, 0xa4, 0xf2, 0xc0, 0x20, 0x00, 0x92, 0x23, 0x40, 0xa0, 0x99, 0x20, 0xc0, 0x20, 0x00, 0x92, 0x63, 0x40, 0x81, 0xe6, 0xff, 0x71, 0xe6, 0xff, 0xc0, 0x20, 0x00, 0x62, 0x23, 0x42, 0x80, 0x66, 0x10, 0x70, 0x66, 0x20, 0xc0, 0x20, 0x00, 0x62, 0x63, 0x42, 0x0c, 0x25, 0xc0, 0x20, 0x00, 0x59, 0xa3, 0x0d, 0xf0, 0xc0, 0x20, 0x00, 0x52, 0x63, 0xd8, 0xb1, 0xde, 0xff, 0xc0, 0x20, 0x00, 0xb2, 0x63, 0xd9, 0x86, 0xee, 0xff, 0xc0, 0x20, 0x00, 0x62, 0x63, 0xd8, 0x21, 0xdb, 0xff, 0xc0, 0x20, 0x00, 0x22, 0x63, 0xd9, 0x06, 0xea, 0xff, 0x8c, 0x5e, 0x10, 0x40, 0xcc, 0x5c, 0x10, 0x40, 0xe0, 0x56, 0x10, 0x40, 0xe0, 0x98, 0x10, 0x40, 0xbc, 0x9b, 0x10, 0x40, 0x14, 0x1a, 0x10, 0x40, 0x60, 0x1a, 0x10, 0x40, 0xbc, 0x1a, 0x10, 0x40, 0x38, 0x56, 0x10, 0x40, 0x10, 0x9f, 0x10, 0x40, 0x80, 0x07, 0x10, 0x40, 0x84, 0x07, 0x10, 0x40, 0xda, 0xf4, 0xfe, 0x3f, 0x14, 0x80, 0xfe, 0x3f, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x1a, 0x47, 0x50, 0xf3, 0xfe, 0x3f, 0xff, 0x1f, 0x00, 0x00, 0x00, 0xfe, 0xf1, 0x3f, 0x00, 0x00, 0x00, 0x30, 0x00, 0x00, 0xff, 0xff, 0xa4, 0x85, 0xfe, 0x3f, 0xcc, 0x85, 0xfe, 0x3f, 0xc0, 0x0c, 0xf2, 0x3f, 0x6c, 0x85, 0xfe, 0x3f, 0x12, 0xc1, 0xd0, 0xd9, 0xb1, 0xc9, 0xa1, 0xc1, 0x48, 0xf2, 0x09, 0x91, 0x08, 0x4c, 0xdd, 0x02, 0x97, 0xf0, 0x4d, 0x01, 0x0e, 0xfe, 0xc0, 0x00, 0x00, 0x51, 0xe0, 0xff, 0x41, 0xe1, 0xff, 0x61, 0xe8, 0xff, 0x71, 0xe6, 0xff, 0x81, 0xe4, 0xff, 0x91, 0xe3, 0xff, 0xa1, 0xe1, 0xff, 0xb1, 0xdf, 0xff, 0x01, 0xdd, 0xff, 0x29, 0x0c, 0x31, 0xdb, 0xff, 0x32, 0x62, 0x3a, 0x02, 0x62, 0x28, 0xb2, 0x62, 0x22, 0xa9, 0xa2, 0x92, 0x62, 0x16, 0x82, 0x62, 0x19, 0x79, 0x92, 0x62, 0x62, 0x36, 0x42, 0x62, 0x12, 0x52, 0x62, 0x43, 0x41, 0xdc, 0xff, 0x51, 0xdb, 0xff, 0x52, 0x62, 0x1e, 0x42, 0x62, 0x1d, 0x61, 0xda, 0xff, 0x82, 0x0c, 0x5e, 0x62, 0x06, 0x00, 0x80, 0x88, 0x01, 0xcc, 0xc6, 0x2d, 0x0d, 0x45, 0x47, 0xff, 0xdd, 0x02, 0x0c, 0xe7, 0x79, 0x81, 0x06, 0x02, 0x00, 0xd2, 0xa0, 0x00, 0x80, 0x88, 0x31, 0x82, 0x61, 0x08, 0x05, 0x81, 0xff, 0x45, 0xe7, 0xff, 0x05, 0xcf, 0xfe, 0x05, 0x0e, 0xff, 0x21, 0xcf, 0xff, 0x85, 0x7e, 0x05, 0x01, 0xcd, 0xff, 0x92, 0x00, 0x00, 0x38, 0x4c, 0x66, 0x19, 0x0a, 0xb7, 0xf3, 0x27, 0x28, 0x81, 0x85, 0x5b, 0x06, 0xc6, 0x07, 0x00, 0x0c, 0x04, 0xa1, 0xc9, 0xff, 0x21, 0xeb, 0xf4, 0xa0, 0xa3, 0x20, 0xa9, 0x4c, 0x32, 0xc2, 0x6f, 0x85, 0x80, 0xfc, 0x4d, 0x02, 0x21, 0xe9, 0xf6, 0x42, 0x6c, 0x78, 0x9b, 0x32, 0xc5, 0x7f, 0xfc, 0x31, 0xc2, 0xff, 0xc1, 0xc2, 0xff, 0x21, 0xfc, 0xf1, 0xc0, 0x20, 0x00, 0x02, 0x22, 0x9f, 0x00, 0x00, 0xf4, 0x30, 0x00, 0x20, 0xc0, 0x20, 0x00, 0x02, 0x62, 0x9f, 0xb2, 0x0c, 0x3d, 0x66, 0x2b, 0x40, 0x52, 0x0c, 0x3c, 0x22, 0x0c, 0x4a, 0x62, 0x0c, 0x4d, 0x42, 0x0c, 0x3a, 0x32, 0x0c, 0x39, 0x80, 0x44, 0x11, 0x40, 0x33, 0x20, 0x42, 0x0c, 0x4b, 0x80, 0x66, 0x01, 0x80, 0x44, 0x11, 0x40, 0x22, 0x20, 0x42, 0x0c, 0x3b, 0x80, 0x55, 0x01, 0x00, 0x44, 0x11, 0x50, 0x44, 0x20, 0x52, 0x0c, 0x4c, 0x40, 0x33, 0x20, 0x00, 0x55, 0x11, 0x60, 0x55, 0x20, 0x50, 0x22, 0x20, 0xc0, 0x20, 0x00, 0x29, 0x03, 0x02, 0x0c, 0x34, 0x0c, 0x02, 0x66, 0x10, 0x54, 0x45, 0xa8, 0xff, 0x0c, 0x02, 0x22, 0x4c, 0x34, 0x52, 0x0c, 0x35, 0x01, 0x7f, 0xf4, 0x66, 0x15, 0x4f, 0x62, 0x0c, 0x36, 0x62, 0xc6, 0xff, 0x56, 0x36, 0x11, 0xd1, 0x7b, 0xf4, 0x22, 0xa0, 0x01, 0x85, 0x06, 0xff, 0x22, 0x0c, 0x37, 0x45, 0x75, 0x05, 0x0c, 0xa2, 0x0c, 0x03, 0x41, 0x9e, 0xff, 0x51, 0x62, 0xf3, 0x62, 0xa0, 0xbf, 0x0c, 0x07, 0x79, 0x01, 0x79, 0x11, 0x79, 0x21, 0x79, 0x31, 0x79, 0x41, 0x71, 0x5d, 0xf3, 0x45, 0x45, 0x03, 0xc0, 0x20, 0x00, 0x0c, 0x08, 0x82, 0x6d, 0xf0, 0x0c, 0x0d, 0x06, 0x42, 0x00, 0x66, 0x20, 0xaf, 0x22, 0xa7, 0xd0, 0x85, 0x77, 0xff, 0x46, 0xe8, 0xff, 0x92, 0x0c, 0x3e, 0x66, 0x19, 0x71, 0xb1, 0x91, 0xff, 0xc0, 0x20, 0x00, 0x22, 0x6b, 0x9b, 0x7c, 0xd5, 0xc0, 0x20, 0x00, 0x42, 0x20, 0xa2, 0x50, 0x44, 0x10, 0xc0, 0x20, 0x00, 0x42, 0x60, 0xa2, 0x7c, 0x73, 0xc0, 0x20, 0x00, 0xa2, 0x20, 0xa2, 0x30, 0xaa, 0x10, 0xc0, 0x20, 0x00, 0xa2, 0x60, 0xa2, 0x6c, 0xf9, 0xc0, 0x20, 0x00, 0x82, 0x20, 0xa2, 0x90, 0x88, 0x10, 0xc0, 0x20, 0x00, 0x82, 0x60, 0xa2, 0x71, 0x98, 0xf9, 0xc0, 0x20, 0x00, 0x62, 0x20, 0xa2, 0x70, 0x66, 0x10, 0xc0, 0x20, 0x00, 0x62, 0x60, 0xa2, 0x51, 0x7e, 0xff, 0xc0, 0x20, 0x00, 0x42, 0x2b, 0x80, 0x50, 0x44, 0x20, 0xc0, 0x20, 0x00, 0x42, 0x6b, 0x80, 0x31, 0x7b, 0xff, 0xc0, 0x20, 0x00, 0xa2, 0x2b, 0x9c, 0x30, 0xaa, 0x10, 0xc0, 0x20, 0x00, 0xa2, 0x6b, 0x9c, 0x62, 0x0c, 0x3d, 0x66, 0x16, 0x39, 0x32, 0x0c, 0x39, 0x42, 0x0c, 0x3b, 0x52, 0x0c, 0x3c, 0x80, 0x44, 0x11, 0x50, 0x44, 0x20, 0x52, 0x0c, 0x3a, 0x80, 0x33, 0x01, 0x00, 0x55, 0x11, 0x50, 0x33, 0x20, 0x40, 0x33, 0x20, 0x8c, 0xf3, 0x21, 0x6e, 0xff, 0xc0, 0x20, 0x00, 0x48, 0x03, 0x01, 0x82, 0xf0, 0xc0, 0x00, 0x00, 0x06, 0x02, 0x00, 0x21, 0x6b, 0xff, 0x01, 0x7f, 0xf0, 0xc0, 0x00, 0x00, 0x08, 0x91, 0xc8, 0xa1, 0x61, 0x5d, 0xff, 0x2d, 0x0d, 0x0c, 0x15, 0xd8, 0xb1, 0x52, 0x46, 0x00, 0x12, 0xc1, 0x30, 0x0d, 0xf0, 0x22, 0xa0, 0x00, 0x85, 0xf5, 0xfe, 0x22, 0x0c, 0x37, 0x45, 0x64, 0x05, 0x22, 0xa0, 0x0a, 0x32, 0xa0, 0x00, 0x42, 0xa4, 0x00, 0x0c, 0x45, 0x0c, 0x06, 0x72, 0xa3, 0xfc, 0x0c, 0x08, 0x89, 0x11, 0x89, 0x21, 0x89, 0x31, 0x79, 0x01, 0x89, 0x41, 0x0c, 0x07, 0x05, 0x34, 0x03, 0xd2, 0xa7, 0xd0, 0x85, 0x66, 0x05, 0x21, 0x57, 0xff, 0x0c, 0x03, 0xc5, 0x2d, 0x03, 0x21, 0x56, 0xff, 0x32, 0x0c, 0x37, 0x42, 0x0c, 0x38, 0x01, 0x67, 0xf0, 0xc0, 0x00, 0x00, 0x0c, 0xa2, 0x32, 0x0c, 0x38, 0x0c, 0x14, 0x5d, 0x0d, 0x85, 0x73, 0x03, 0x06, 0xfc, 0xff, 0x00, 0x26, 0x42, 0x14, 0x26, 0xb2, 0x09, 0x1c, 0x23, 0x37, 0x12, 0x10, 0x1c, 0x44, 0x47, 0x12, 0x03, 0x0c, 0x12, 0x0d, 0xf0, 0x0c, 0x32, 0x0d, 0xf0, 0x0c, 0x02, 0x0d, 0xf0, 0x0c, 0x22, 0x0d, 0xf0, 0x8c, 0xf2, 0x26, 0x12, 0x05, 0x26, 0x22, 0x0e, 0x26, 0x32, 0x03, 0x1c, 0x02, 0x0d, 0xf0, 0x1c, 0x42, 0x0d, 0xf0, 0x0c, 0x42, 0x0d, 0xf0, 0x1c, 0x22, 0x0d, 0xf0, 0x00, 0x12, 0x80, 0xfe, 0x3f, 0x12, 0xc1, 0xe0, 0xd9, 0x31, 0xf9, 0x51, 0xc9, 0x21, 0xe9, 0x41, 0x09, 0x11, 0xed, 0x03, 0x08, 0x02, 0xcd, 0x02, 0x00, 0x03, 0x05, 0x56, 0xe0, 0x08, 0xf1, 0x83, 0xf1, 0x21, 0xf8, 0xff, 0x08, 0x0f, 0x22, 0x12, 0x00, 0x02, 0x20, 0x29, 0x20, 0x20, 0x44, 0xc0, 0x00, 0x00, 0x0c, 0x12, 0x08, 0x0f, 0x0c, 0x13, 0x02, 0x20, 0x2b, 0x1c, 0xf4, 0xc0, 0x00, 0x00, 0x0c, 0x0d, 0xd0, 0x2d, 0x20, 0xc5, 0xf9, 0xff, 0x42, 0xa1, 0xf4, 0x52, 0xa0, 0x0c, 0x10, 0x61, 0x20, 0x08, 0x0f, 0x3d, 0x02, 0x02, 0x20, 0x3a, 0x0c, 0x02, 0xc0, 0x00, 0x00, 0x02, 0x01, 0x00, 0x22, 0x01, 0x01, 0x80, 0x00, 0x01, 0x80, 0x22, 0x01, 0x20, 0x28, 0x31, 0x00, 0x08, 0x31, 0x80, 0x22, 0x11, 0x20, 0x00, 0x20, 0xe0, 0x2d, 0x90, 0x02, 0x52, 0x00, 0x1b, 0xdd, 0xd0, 0xd0, 0x74, 0x66, 0x4d, 0xbe, 0x3d, 0x01, 0x21, 0xdf, 0xff, 0x0c, 0x14, 0x22, 0x12, 0x00, 0x45, 0x0d, 0x00, 0x21, 0xdc, 0xff, 0x3d, 0x01, 0x22, 0x12, 0x00, 0x05, 0x03, 0x00, 0x08, 0x0f, 0x02, 0x20, 0x2a, 0xd1, 0x51, 0xf0, 0xc0, 0x00, 0x00, 0x28, 0x0c, 0xd0, 0x22, 0x20, 0x29, 0x0c, 0xc8, 0x21, 0xd8, 0x31, 0xe8, 0x41, 0xf8, 0x51, 0x08, 0x11, 0x12, 0xc1, 0x20, 0x0d, 0xf0, 0x00, 0xff, 0x00, 0xf0, 0xff, 0xff, 0x3f, 0x00, 0xf0, 0x00, 0xc0, 0xff, 0xff, 0x80, 0x92, 0x11, 0x81, 0xfc, 0xff, 0x71, 0x4a, 0xf0, 0xb1, 0xfb, 0xff, 0xa1, 0xfc, 0xff, 0x12, 0xc1, 0xf0, 0xc9, 0x11, 0xe9, 0x31, 0x09, 0x01, 0xd9, 0x21, 0x0c, 0x00, 0x1c, 0x8d, 0x70, 0x50, 0xa0, 0xc0, 0x20, 0x00, 0x42, 0x25, 0xc1, 0x80, 0x44, 0x10, 0x90, 0x44, 0x20, 0xc0, 0x20, 0x00, 0x42, 0x65, 0xc1, 0x00, 0x21, 0x41, 0x70, 0x22, 0xa0, 0x62, 0x03, 0x01, 0x52, 0x03, 0x00, 0x80, 0x66, 0x01, 0x80, 0x55, 0x01, 0x50, 0x58, 0x31, 0x60, 0x68, 0x31, 0x07, 0x60, 0x1d, 0x20, 0xe5, 0x11, 0xb0, 0x46, 0x01, 0xc0, 0x20, 0x00, 0xc2, 0x22, 0x81, 0xb0, 0xcc, 0x10, 0x40, 0xcc, 0x20, 0xe0, 0xcc, 0x20, 0xc0, 0x20, 0x00, 0xc2, 0x62, 0x81, 0xc6, 0x05, 0x00, 0x90, 0x46, 0x11, 0xc0, 0x20, 0x00, 0xe2, 0x22, 0x81, 0xa0, 0xee, 0x10, 0x40, 0xee, 0x20, 0x50, 0xee, 0x20, 0xc0, 0x20, 0x00, 0xe2, 0x62, 0x81, 0x1b, 0x00, 0x00, 0x00, 0x74, 0xd7, 0x90, 0x91, 0xc8, 0x11, 0xd8, 0x21, 0xe8, 0x31, 0x08, 0x01, 0x12, 0xc1, 0x10, 0x0d, 0xf0, 0x00, 0x00, 0x00, 0x20, 0x20, 0x44, 0x12, 0xc1, 0xf0, 0x49, 0x01, 0xc9, 0x21, 0x09, 0x11, 0xcd, 0x03, 0x05, 0xe5, 0xff, 0x41, 0xfb, 0xf3, 0x40, 0x22, 0x90, 0x32, 0x12, 0x02, 0x32, 0x4c, 0x00, 0x22, 0x12, 0x02, 0x08, 0x01, 0x20, 0x28, 0x41, 0x22, 0x4c, 0x01, 0xbc, 0x40, 0x0c, 0x02, 0x0c, 0x23, 0x42, 0x0c, 0x00, 0x01, 0x25, 0xf1, 0x80, 0x44, 0x01, 0x08, 0x00, 0x40, 0x48, 0x31, 0x02, 0x20, 0x2b, 0x40, 0x40, 0xf4, 0xc0, 0x00, 0x00, 0x0c, 0x12, 0x0c, 0x23, 0x42, 0x0c, 0x01, 0x01, 0x1f, 0xf1, 0x80, 0x44, 0x01, 0x08, 0x00, 0x40, 0x48, 0x31, 0x02, 0x20, 0x2b, 0x40, 0x40, 0xf4, 0xc0, 0x00, 0x00, 0xc8, 0x21, 0x08, 0x11, 0x12, 0xc1, 0x10, 0x0d, 0xf0, 0x00, 0x00, 0x00, 0x26, 0x12, 0x14, 0x26, 0x22, 0x15, 0x26, 0x32, 0x16, 0x26, 0x42, 0x17, 0x42, 0xc2, 0xfb, 0x0c, 0x63, 0x0c, 0x52, 0x40, 0x23, 0x83, 0x0d, 0xf0, 0x0c, 0xe2, 0x0d, 0xf0, 0x0c, 0xa2, 0x0d, 0xf0, 0x0c, 0x82, 0x0d, 0xf0, 0x0c, 0x72, 0x0d, 0xf0, 0x12, 0xc1, 0xe0, 0x09, 0x01, 0x39, 0x51, 0xc9, 0x11, 0xd9, 0x21, 0xf9, 0x41, 0xe9, 0x31, 0xfd, 0x03, 0xed, 0x02, 0xd2, 0x13, 0x00, 0x22, 0x02, 0x00, 0xd0, 0xc9, 0x24, 0xd0, 0x30, 0x34, 0x80, 0x02, 0x01, 0x00, 0x08, 0x31, 0xd0, 0xd4, 0x04, 0xd0, 0xdd, 0x90, 0x30, 0xdd, 0x90, 0xd0, 0xd0, 0x74, 0xa6, 0x10, 0x7c, 0x66, 0x4d, 0x10, 0x02, 0xc0, 0xf8, 0x2b, 0xdd, 0xd0, 0xd0, 0x74, 0x02, 0x4e, 0x00, 0x80, 0x00, 0x01, 0x00, 0x08, 0x31, 0xa6, 0x10, 0x3e, 0xf6, 0x7c, 0x1e, 0x2d, 0x0c, 0x45, 0xf8, 0xff, 0x02, 0x0e, 0x00, 0x1b, 0xcc, 0xc0, 0xc0, 0x74, 0x20, 0x00, 0xc0, 0x02, 0x4e, 0x00, 0x80, 0x00, 0x01, 0x00, 0x08, 0x31, 0xa6, 0x10, 0x1f, 0x66, 0x7c, 0xe0, 0xa6, 0x10, 0x19, 0xf6, 0x9d, 0x16, 0x02, 0xc0, 0xf8, 0x2b, 0xdd, 0xd0, 0xd0, 0x74, 0x02, 0x4e, 0x00, 0x80, 0x00, 0x01, 0x00, 0x08, 0x31, 0xa6, 0x10, 0x02, 0xb6, 0x9d, 0xe8, 0xc0, 0xec, 0x11, 0x08, 0x01, 0xc8, 0x11, 0xfb, 0xee, 0xe0, 0xe0, 0x74, 0xb0, 0xee, 0x11, 0xb6, 0x6d, 0x04, 0xab, 0xdd, 0xd0, 0xd0, 0x74, 0xea, 0xed, 0xe2, 0x5f, 0x00, 0xd8, 0x21, 0xe8, 0x31, 0xf8, 0x41, 0x12, 0xc1, 0x20, 0x0d, 0xf0, 0x77, 0x62, 0xd5, 0xb6, 0x7d, 0x16, 0xd2, 0xcd, 0xfe, 0x8b, 0x20, 0x22, 0x4e, 0x00, 0xd0, 0xd0, 0x74, 0x80, 0x02, 0x01, 0x00, 0x08, 0x31, 0x77, 0x62, 0x02, 0xf6, 0x7d, 0xe8, 0xd6, 0x80, 0xfb, 0xb6, 0x2c, 0x1d, 0x0b, 0xcc, 0xc0, 0xc0, 0x74, 0x2d, 0x0c, 0xc5, 0xef, 0xff, 0x32, 0x0e, 0x00, 0x2a, 0x23, 0x22, 0x4e, 0x00, 0x80, 0x02, 0x01, 0x00, 0x08, 0x31, 0x77, 0x62, 0x02, 0x66, 0x1c, 0xe1, 0xd6, 0x40, 0xf9, 0x66, 0x6d, 0x91, 0xd2, 0xcd, 0xfe, 0x8b, 0x20, 0x22, 0x4e, 0x00, 0xd0, 0xd0, 0x74, 0xc6, 0xe0, 0xff, 0x00, 0x00, 0x12, 0xc1, 0xe0, 0x29, 0x41, 0x09, 0x71, 0x2d, 0x01, 0x85, 0x10, 0x01, 0x0c, 0x33, 0x52, 0x11, 0x03, 0xb2, 0x11, 0x02, 0x82, 0x11, 0x01, 0xa2, 0x11, 0x07, 0x72, 0x11, 0x06, 0x92, 0x11, 0x05, 0x62, 0x11, 0x04, 0x01, 0xc2, 0xf0, 0x0c, 0x04, 0x2d, 0x04, 0x08, 0x00, 0x9a, 0x66, 0xaa, 0x77, 0xba, 0x88, 0x08, 0xe0, 0x8a, 0x55, 0x70, 0x77, 0x90, 0x60, 0x66, 0x90, 0x70, 0x66, 0xc0, 0x70, 0x55, 0xd0, 0x00, 0x55, 0x11, 0x00, 0x66, 0x11, 0x60, 0x60, 0x31, 0x50, 0x50, 0x31, 0x50, 0x25, 0xb3, 0x60, 0x46, 0xb3, 0x00, 0x44, 0x11, 0x00, 0x22, 0x11, 0x20, 0x20, 0x31, 0x40, 0x40, 0x31, 0x49, 0x51, 0xc0, 0x00, 0x00, 0x01, 0xb1, 0xf0, 0x0c, 0x33, 0x08, 0x00, 0x29, 0x61, 0x08, 0xe0, 0x28, 0x51, 0xc0, 0x00, 0x00, 0x38, 0x61, 0x08, 0x71, 0x20, 0x33, 0xc0, 0x28, 0x41, 0x12, 0xc1, 0x20, 0x3a, 0x22, 0x00, 0x22, 0x11, 0x20, 0x20, 0x31, 0x0d, 0xf0, 0x00, 0xf0, 0x0b, 0x00, 0x00, 0xcd, 0xf1, 0xfe, 0x3f, 0xa2, 0xf3, 0xfe, 0x3f, 0x0c, 0x13, 0x5c, 0xf4, 0x21, 0xfc, 0xff, 0x12, 0xc1, 0xe0, 0xc9, 0x61, 0x09, 0x51, 0xc1, 0x16, 0xff, 0x01, 0xa0, 0xf0, 0x22, 0x5c, 0x00, 0x08, 0x00, 0x22, 0x5c, 0x00, 0x02, 0x20, 0x2b, 0x0c, 0x72, 0xc0, 0x00, 0x00, 0x0c, 0x02, 0x01, 0x9b, 0xf0, 0x0c, 0x13, 0x08, 0x00, 0x42, 0x1c, 0x00, 0x02, 0x20, 0x2b, 0x40, 0x40, 0x44, 0xc0, 0x00, 0x00, 0x22, 0x1c, 0x00, 0x32, 0xc1, 0x10, 0x0c, 0x14, 0x85, 0xd8, 0xff, 0x4c, 0x02, 0x31, 0xec, 0xff, 0x0c, 0x14, 0x1c, 0xf5, 0x72, 0xc1, 0x12, 0x81, 0xeb, 0xff, 0x62, 0x1c, 0x00, 0x92, 0xa1, 0x38, 0x60, 0x60, 0x44, 0x99, 0x01, 0x82, 0x08, 0x00, 0x89, 0x11, 0x85, 0x4f, 0x01, 0x02, 0x01, 0x12, 0x2c, 0x47, 0x80, 0x00, 0x01, 0x00, 0x08, 0x31, 0x07, 0x27, 0x02, 0xe6, 0xa0, 0x39, 0x1c, 0x82, 0x3d, 0x0c, 0x00, 0x22, 0xc0, 0x22, 0x41, 0x12, 0x22, 0xc1, 0x12, 0x85, 0xdd, 0xff, 0x0c, 0x72, 0x01, 0x82, 0xf0, 0x0c, 0x13, 0x08, 0x00, 0x42, 0x1c, 0x00, 0x02, 0x20, 0x2b, 0x40, 0x45, 0x41, 0xc0, 0x00, 0x00, 0x0c, 0x02, 0x01, 0x7d, 0xf0, 0x0c, 0x13, 0x08, 0x00, 0x42, 0x1c, 0x00, 0x02, 0x20, 0x2b, 0x40, 0x40, 0x44, 0xc0, 0x00, 0x00, 0x22, 0x1c, 0x00, 0x32, 0xc1, 0x10, 0x0c, 0x14, 0x05, 0xd1, 0xff, 0x22, 0x1c, 0x00, 0x32, 0xc1, 0x10, 0xc5, 0xc6, 0xff, 0x08, 0x51, 0x22, 0x1c, 0x00, 0x31, 0x40, 0xf3, 0xc8, 0x61, 0x22, 0x53, 0x3b, 0x12, 0xc1, 0x20, 0x0d, 0xf0, 0x00, 0x0c, 0x05, 0x0c, 0x06, 0x0c, 0x07, 0x20, 0x40, 0x74, 0x0c, 0x03, 0x12, 0xc1, 0xe0, 0xc9, 0x51, 0xd9, 0x61, 0x09, 0x41, 0xe9, 0x71, 0x39, 0x21, 0x39, 0x11, 0xe1, 0x68, 0xf0, 0x39, 0x01, 0x08, 0x0e, 0x0c, 0x12, 0x02, 0x20, 0x1a, 0x4c, 0x03, 0xc0, 0x00, 0x00, 0x0c, 0x0d, 0x0c, 0x0c, 0x08, 0x0e, 0x08, 0xb0, 0x22, 0xa1, 0x38, 0xc0, 0x00, 0x00, 0x1b, 0xdd, 0xca, 0xc2, 0x00, 0xcc, 0x11, 0xc0, 0xc0, 0x31, 0x66, 0x4d, 0xe8, 0x08, 0x0e, 0x02, 0x20, 0x1b, 0x0c, 0x12, 0xc0, 0x00, 0x00, 0x08, 0x41, 0xd8, 0x61, 0x4b, 0x3c, 0xbb, 0x2c, 0xe8, 0x71, 0xc8, 0x51, 0x30, 0x23, 0xb3, 0x20, 0x23, 0x21, 0x12, 0xc1, 0x20, 0x00, 0x22, 0x11, 0x20, 0x20, 0x31, 0x0d, 0xf0, 0x00, 0x00, 0x00, 0x0c, 0x14, 0x1c, 0xf5, 0x82, 0xa1, 0x38, 0x61, 0xc6, 0xfe, 0x12, 0xc1, 0xc0, 0xc9, 0x61, 0xd9, 0x71, 0xe9, 0x81, 0xf9, 0x91, 0x72, 0xc1, 0x10, 0x29, 0xc1, 0x09, 0x51, 0x4c, 0x02, 0x38, 0xc1, 0x01, 0xa5, 0xff, 0x62, 0x16, 0x00, 0x89, 0x01, 0x60, 0x60, 0x44, 0x02, 0x00, 0x00, 0x09, 0x11, 0x05, 0x3e, 0x01, 0x0c, 0x0e, 0x0c, 0x00, 0xf2, 0xa0, 0x6f, 0x72, 0x01, 0x10, 0x68, 0xc1, 0x0c, 0x0a, 0xa9, 0xd1, 0x82, 0x06, 0x05, 0x80, 0x77, 0x01, 0x62, 0x06, 0x00, 0x70, 0x78, 0x31, 0x72, 0xc7, 0x1f, 0x72, 0x41, 0x10, 0x80, 0x66, 0xc0, 0x00, 0x66, 0x11, 0x60, 0x60, 0x31, 0xf0, 0x76, 0x11, 0x82, 0xc7, 0xf9, 0x89, 0xb1, 0x72, 0xc7, 0xf8, 0x00, 0x77, 0x11, 0x70, 0x70, 0x31, 0x79, 0xa1, 0x32, 0x01, 0x10, 0x2d, 0x0f, 0x80, 0x33, 0x01, 0x30, 0x38, 0x31, 0x0a, 0x03, 0x02, 0x41, 0x10, 0x0a, 0xc6, 0x80, 0x00, 0x01, 0x00, 0x08, 0x31, 0x07, 0x2f, 0x01, 0x2d, 0x00, 0x22, 0x41, 0x10, 0x69, 0xf1, 0xc5, 0xef, 0xff, 0x80, 0x4c, 0x01, 0xdd, 0x02, 0x0c, 0x1c, 0x40, 0x48, 0x31, 0x49, 0xe1, 0x47, 0x2f, 0x01, 0x0c, 0x0c, 0x28, 0xe1, 0xc0, 0x2f, 0x93, 0x05, 0xee, 0xff, 0x58, 0xb1, 0x20, 0x7d, 0xc0, 0x00, 0x07, 0x11, 0x00, 0x00, 0x31, 0x57, 0x20, 0x05, 0x32, 0xa0, 0xa8, 0xd7, 0xa3, 0x51, 0x8c, 0xee, 0x48, 0xd1, 0x58, 0xa1, 0x07, 0x24, 0x08, 0x57, 0x20, 0x05, 0x62, 0xa0, 0xa8, 0xd7, 0xa6, 0x3f, 0x5c, 0x08, 0x87, 0x22, 0x3a, 0x98, 0xe1, 0x68, 0xf1, 0xc0, 0x9f, 0x93, 0xf7, 0x19, 0x30, 0x1b, 0xee, 0x00, 0x27, 0x11, 0x0c, 0x2a, 0x1b, 0x90, 0x2b, 0x80, 0x90, 0x89, 0xb3, 0x0d, 0x0a, 0x80, 0x81, 0x21, 0x80, 0x86, 0xc0, 0x0b, 0x88, 0x80, 0x88, 0x01, 0x80, 0x88, 0x31, 0xa6, 0x28, 0x01, 0x0d, 0x08, 0xe0, 0xe0, 0x74, 0x20, 0x20, 0x31, 0x29, 0xd1, 0xa2, 0xce, 0xf6, 0x56, 0xba, 0xf5, 0x08, 0xc1, 0xc8, 0x61, 0x02, 0x00, 0x00, 0xf8, 0x91, 0xf0, 0x30, 0x11, 0x37, 0xad, 0x1f, 0x9c, 0xce, 0xd0, 0x20, 0xd0, 0x1b, 0x32, 0x2b, 0x22, 0x30, 0x23, 0xb3, 0x20, 0x21, 0x21, 0x00, 0x22, 0x11, 0x20, 0x20, 0x31, 0xd8, 0x71, 0xe8, 0x81, 0x08, 0x51, 0x12, 0xc1, 0x40, 0x0d, 0xf0, 0x0c, 0x02, 0xc6, 0xfb, 0xff, 0x00, 0x00, 0x00, 0x8c, 0xa2, 0x26, 0x23, 0x0c, 0x26, 0x33, 0x09, 0x26, 0x63, 0x06, 0x26, 0x73, 0x03, 0x0c, 0x02, 0x0d, 0xf0, 0x21, 0xe7, 0xfa, 0x41, 0xc8, 0xf2, 0x32, 0x02, 0x4e, 0x42, 0x04, 0x4e, 0x22, 0x02, 0x4d, 0x80, 0x44, 0x01, 0x80, 0x33, 0x01, 0x30, 0x38, 0x31, 0x40, 0x48, 0x31, 0x80, 0x22, 0x01, 0x20, 0x28, 0x31, 0xe6, 0x74, 0xd9, 0x2d, 0x03, 0x0d, 0xf0, 0x00, 0x00, 0x12, 0xc1, 0xd0, 0x09, 0x11, 0x39, 0x61, 0x69, 0x71, 0x29, 0x01, 0x49, 0x81, 0xf9, 0x51, 0xd9, 0x31, 0xc9, 0x21, 0xe9, 0x41, 0x0c, 0x0c, 0x1c, 0x8e, 0xd1, 0xdd, 0xee, 0xf8, 0x81, 0x2d, 0x0c, 0x38, 0x01, 0x05, 0x75, 0x00, 0xfa, 0x02, 0x02, 0x00, 0x00, 0x48, 0x61, 0x80, 0x00, 0x01, 0x00, 0x08, 0x31, 0xf6, 0x8c, 0x04, 0x4a, 0x40, 0x06, 0x02, 0x00, 0x58, 0x71, 0x4d, 0x05, 0x07, 0xa5, 0x01, 0x4d, 0x00, 0x02, 0xaf, 0x00, 0xd0, 0x3c, 0xa0, 0x40, 0x80, 0x60, 0x4d, 0x0e, 0x80, 0x88, 0x01, 0x80, 0x88, 0x31, 0x87, 0x2e, 0x01, 0x4d, 0x08, 0x40, 0x50, 0x74, 0xc0, 0x20, 0x00, 0x22, 0x23, 0xc1, 0x00, 0x22, 0x10, 0x50, 0x22, 0x20, 0xc0, 0x20, 0x00, 0x22, 0x63, 0xc1, 0x1b, 0xcc, 0xc0, 0xc0, 0x74, 0xe7, 0x9c, 0xa7, 0xc8, 0x21, 0xd8, 0x31, 0xe8, 0x41, 0xf8, 0x51, 0x08, 0x11, 0x12, 0xc1, 0x30, 0x0d, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x2c, 0x00, 0x00, 0x00, 0x00, 0xf0, 0xff, 0xff, 0xff, 0xf0, 0x91, 0xfe, 0xff, 0x60, 0x82, 0x01, 0x12, 0xc1, 0xf0, 0x72, 0xa1, 0x00, 0x30, 0x77, 0xc0, 0x69, 0x11, 0x59, 0x01, 0xc9, 0x31, 0x09, 0x21, 0xcd, 0x02, 0x01, 0xc5, 0xef, 0x51, 0xb8, 0xee, 0x61, 0xf5, 0xff, 0x70, 0x70, 0x74, 0x60, 0x77, 0x11, 0x60, 0x64, 0x20, 0xc0, 0x20, 0x00, 0x22, 0x25, 0xee, 0x90, 0x22, 0x10, 0x80, 0x22, 0x20, 0x70, 0x22, 0x20, 0x60, 0x22, 0x20, 0xc0, 0x20, 0x00, 0x0c, 0xa3, 0x08, 0x00, 0x22, 0x65, 0xee, 0x02, 0x20, 0x1c, 0x0c, 0x42, 0xc0, 0x00, 0x00, 0xd0, 0x5c, 0x11, 0xc0, 0x70, 0x04, 0x0c, 0x16, 0x88, 0x01, 0x0c, 0x04, 0x22, 0x58, 0x00, 0x70, 0x46, 0x83, 0x50, 0x44, 0x20, 0x80, 0x44, 0x01, 0x51, 0xe5, 0xff, 0xc0, 0x20, 0x00, 0x31, 0xa3, 0xee, 0x22, 0x23, 0xee, 0x50, 0x22, 0x10, 0x40, 0x22, 0x20, 0xc0, 0x20, 0x00, 0x01, 0xad, 0xef, 0x08, 0x00, 0x22, 0x63, 0xee, 0x0c, 0x42, 0x02, 0x20, 0x1c, 0x0c, 0xa3, 0xc0, 0x00, 0x00, 0x08, 0x21, 0x98, 0x11, 0xc8, 0x31, 0x22, 0x59, 0x00, 0x12, 0xc1, 0x10, 0x0d, 0xf0, 0x5c, 0xf1, 0xfe, 0x3f, 0xe4, 0x85, 0xfe, 0x3f, 0x9d, 0x03, 0x0c, 0x0b, 0x12, 0xc1, 0xb0, 0x69, 0x91, 0x52, 0x61, 0x10, 0xf9, 0x61, 0x29, 0xc1, 0x09, 0x21, 0xc9, 0x31, 0xd9, 0x41, 0xe9, 0x51, 0xdd, 0x04, 0x0c, 0x0e, 0x0c, 0x0c, 0xb9, 0xe1, 0x99, 0x11, 0x0c, 0x00, 0x0c, 0x02, 0xf2, 0x21, 0x10, 0x38, 0xc1, 0x29, 0xf1, 0x09, 0xd1, 0x0c, 0x72, 0x0c, 0x30, 0x32, 0xc3, 0xf4, 0x70, 0x02, 0x93, 0x30, 0x30, 0x74, 0x39, 0xb1, 0x09, 0xa1, 0xf6, 0x3c, 0x45, 0x4d, 0x0f, 0x01, 0x91, 0xef, 0x32, 0xa0, 0x80, 0xe0, 0x2e, 0xd1, 0x3a, 0x22, 0x08, 0x00, 0x38, 0xf1, 0x20, 0x28, 0x21, 0x29, 0x81, 0x02, 0x20, 0x42, 0x3a, 0x22, 0x0c, 0x13, 0x80, 0x22, 0x01, 0x20, 0x28, 0x31, 0xc0, 0x00, 0x00, 0x4d, 0x0f, 0x38, 0x81, 0x01, 0x87, 0xef, 0x30, 0x32, 0xc0, 0x08, 0x00, 0x2d, 0x0e, 0x80, 0x33, 0x01, 0x30, 0x38, 0x31, 0x39, 0xf1, 0x02, 0x20, 0x42, 0x0c, 0x03, 0xc0, 0x00, 0x00, 0xed, 0x02, 0x22, 0xa0, 0x01, 0x32, 0x21, 0x0b, 0x48, 0x11, 0x5d, 0x01, 0x2b, 0x61, 0x45, 0xec, 0xff, 0x72, 0x91, 0x01, 0x52, 0x91, 0x00, 0x0d, 0x07, 0x77, 0xa5, 0x01, 0x0d, 0x05, 0x0c, 0x14, 0x00, 0x30, 0x11, 0x50, 0x27, 0xc0, 0x50, 0x22, 0x11, 0x30, 0x30, 0x31, 0x00, 0x34, 0x83, 0xc5, 0x4f, 0x07, 0x02, 0xc2, 0x10, 0x00, 0x05, 0x21, 0x02, 0x4d, 0x00, 0x8c, 0x9f, 0x28, 0xf1, 0xd6, 0x52, 0x00, 0x00, 0x30, 0x60, 0x32, 0x4d, 0x00, 0x0c, 0x02, 0x38, 0xc1, 0x48, 0x11, 0x5d, 0x01, 0x2b, 0x61, 0x05, 0xe8, 0xff, 0x32, 0x91, 0x01, 0x42, 0x91, 0x00, 0x30, 0x24, 0xc0, 0x4a, 0x33, 0x40, 0x22, 0x11, 0x0c, 0x14, 0x00, 0x33, 0x11, 0x30, 0x30, 0x31, 0x30, 0x34, 0x83, 0xc5, 0x4b, 0x07, 0x52, 0xc2, 0x10, 0x50, 0x55, 0x21, 0x52, 0x4d, 0x01, 0x8c, 0x7f, 0xd6, 0x5e, 0x00, 0x50, 0x50, 0x60, 0x52, 0x4d, 0x01, 0x02, 0x0d, 0x00, 0x28, 0xf1, 0x80, 0x00, 0x01, 0x00, 0x08, 0x31, 0xf6, 0x3c, 0x16, 0x50, 0xee, 0xc0, 0x00, 0x32, 0xc0, 0x80, 0x33, 0x01, 0x80, 0xee, 0x01, 0xe0, 0xe8, 0x31, 0x30, 0x28, 0x31, 0x29, 0xf1, 0x46, 0x1a, 0x00, 0x28, 0xd1, 0x48, 0xe1, 0x2a, 0x35, 0x4a, 0x60, 0x80, 0x66, 0x01, 0x80, 0x33, 0x01, 0x30, 0x28, 0x31, 0x60, 0x48, 0x31, 0x49, 0xe1, 0x29, 0xd1, 0x66, 0x6c, 0x4e, 0x38, 0xf1, 0x28, 0xe1, 0x01, 0x4f, 0xef, 0x2b, 0x22, 0x08, 0x00, 0x20, 0x22, 0x21, 0x20, 0x43, 0xc0, 0x80, 0x44, 0x01, 0x40, 0x38, 0x31, 0x39, 0xf1, 0x38, 0xd1, 0x08, 0x00, 0x2b, 0x33, 0x30, 0x32, 0x21, 0x39, 0x71, 0x30, 0xee, 0xc0, 0x80, 0xee, 0x01, 0xe0, 0xe8, 0x31, 0xc0, 0x00, 0x00, 0xe6, 0x52, 0x0e, 0x01, 0x43, 0xef, 0x08, 0x00, 0x08, 0x00, 0x28, 0x71, 0xc0, 0x00, 0x00, 0xa6, 0x52, 0x0c, 0x31, 0x9a, 0xff, 0x41, 0x4f, 0xf8, 0x28, 0x03, 0x40, 0x22, 0x20, 0x29, 0x03, 0x58, 0x91, 0x9c, 0x95, 0x21, 0x97, 0xff, 0x42, 0x0d, 0x01, 0x32, 0x0d, 0x00, 0x80, 0x44, 0x01, 0x80, 0x33, 0x01, 0x30, 0x38, 0x31, 0x40, 0x48, 0x31, 0x01, 0xfe, 0xed, 0xc0, 0x00, 0x00, 0x58, 0xa1, 0x1b, 0xcc, 0xc0, 0xc0, 0x74, 0xc0, 0x55, 0xc0, 0x56, 0x85, 0xe7, 0x0c, 0x13, 0x4d, 0x0f, 0x01, 0x30, 0xef, 0x28, 0xf1, 0x08, 0x00, 0x80, 0x22, 0x01, 0x02, 0x20, 0x42, 0x20, 0x28, 0x31, 0xc0, 0x00, 0x00, 0x4d, 0x0f, 0x01, 0x2b, 0xef, 0x0c, 0x03, 0x08, 0x00, 0x80, 0x2e, 0x01, 0x02, 0x20, 0x42, 0x20, 0x28, 0x31, 0xc0, 0x00, 0x00, 0x08, 0x21, 0xc8, 0x31, 0xf8, 0x61, 0xe2, 0x4d, 0x01, 0x28, 0xf1, 0x22, 0x4d, 0x00, 0xe8, 0x51, 0xd8, 0x41, 0x12, 0xc1, 0x50, 0x0d, 0xf0, 0x00, 0x00, 0xf0, 0x85, 0xfe, 0x3f, 0xff, 0xff, 0x00, 0xe0, 0x30, 0x93, 0x20, 0x12, 0xc1, 0xc0, 0xc2, 0x61, 0x09, 0xf2, 0x61, 0x0c, 0x59, 0xd1, 0x69, 0x31, 0x49, 0x21, 0x09, 0x81, 0xd9, 0xa1, 0xe9, 0xb1, 0xdd, 0x02, 0xed, 0x07, 0x08, 0x02, 0x99, 0x11, 0x00, 0x01, 0x05, 0x56, 0xa0, 0x18, 0xf8, 0xd1, 0x22, 0xa0, 0x77, 0x0c, 0x03, 0xc1, 0x12, 0xef, 0x1c, 0x04, 0x08, 0x0c, 0x0c, 0x05, 0x02, 0x20, 0x25, 0x0c, 0x06, 0xc0, 0x00, 0x00, 0x0c, 0x03, 0x0c, 0xf4, 0x0c, 0x65, 0x0c, 0x66, 0x08, 0x0c, 0x29, 0x51, 0x02, 0x20, 0x25, 0x22, 0xa0, 0x77, 0xc0, 0x00, 0x00, 0x0c, 0x03, 0x0c, 0x94, 0x0c, 0x75, 0x0c, 0x06, 0x08, 0x0c, 0x29, 0x61, 0x02, 0x20, 0x25, 0x22, 0xa0, 0x77, 0xc0, 0x00, 0x00, 0x08, 0x0c, 0x02, 0x20, 0x28, 0x29, 0x71, 0xc0, 0x00, 0x00, 0x08, 0x0c, 0x02, 0x20, 0x30, 0x0c, 0x12, 0xc0, 0x00, 0x00, 0x28, 0x21, 0x20, 0x20, 0xb4, 0xc5, 0xd9, 0x04, 0x28, 0x21, 0x3d, 0x01, 0x0c, 0x14, 0x45, 0x72, 0xff, 0x08, 0x0c, 0x08, 0x60, 0x0c, 0x02, 0xc0, 0x00, 0x00, 0x08, 0x0c, 0x08, 0xf0, 0x0c, 0x12, 0xc0, 0x00, 0x00, 0x22, 0xa0, 0x77, 0x0c, 0x03, 0x0c, 0x94, 0x0c, 0x75, 0x08, 0x0c, 0x0c, 0x06, 0x02, 0x20, 0x27, 0x0c, 0x07, 0xc0, 0x00, 0x00, 0x22, 0xa0, 0x77, 0x0c, 0x03, 0x1c, 0x04, 0x0c, 0x25, 0x08, 0x0c, 0x0c, 0x26, 0x02, 0x20, 0x27, 0x0c, 0x17, 0xc0, 0x00, 0x00, 0x28, 0x31, 0x72, 0x01, 0x44, 0x3d, 0x0f, 0x2b, 0x41, 0xf2, 0x01, 0x40, 0x5d, 0x0e, 0x6d, 0x0f, 0x05, 0xd1, 0xff, 0x08, 0x0c, 0x02, 0x20, 0x1b, 0x0c, 0x12, 0xc0, 0x00, 0x00, 0x22, 0xa0, 0x77, 0x0c, 0x03, 0x1c, 0x04, 0x0c, 0x05, 0x0c, 0x06, 0x08, 0x0c, 0x78, 0x51, 0x02, 0x20, 0x27, 0x79, 0x41, 0xc0, 0x00, 0x00, 0x78, 0x61, 0x22, 0xa0, 0x77, 0x0c, 0x03, 0x0c, 0xf4, 0x08, 0x0c, 0x0c, 0x65, 0x02, 0x20, 0x27, 0x0c, 0x66, 0xc0, 0x00, 0x00, 0x78, 0x71, 0x22, 0xa0, 0x77, 0x0c, 0x03, 0x0c, 0x94, 0x08, 0x0c, 0x0c, 0x75, 0x02, 0x20, 0x27, 0x0c, 0x06, 0xc0, 0x00, 0x00, 0x22, 0xa0, 0x77, 0x0c, 0x03, 0x1c, 0x04, 0x0c, 0x25, 0x08, 0x0c, 0x0c, 0x26, 0x02, 0x20, 0x27, 0x0c, 0x07, 0xc0, 0x00, 0x00, 0x0c, 0xf2, 0x42, 0x01, 0x02, 0x7c, 0x10, 0x80, 0x44, 0x01, 0x40, 0x48, 0x31, 0x07, 0x24, 0x01, 0x0d, 0x04, 0x42, 0x01, 0x03, 0x07, 0x22, 0x01, 0x2d, 0x00, 0x6c, 0x10, 0x22, 0x41, 0x02, 0x80, 0x44, 0x01, 0x80, 0x32, 0x01, 0x30, 0x38, 0x31, 0x40, 0x48, 0x31, 0x1c, 0xf2, 0x07, 0x24, 0x01, 0x0d, 0x04, 0x07, 0x22, 0x01, 0x2d, 0x00, 0x22, 0x41, 0x03, 0x80, 0x42, 0x01, 0x40, 0x48, 0x31, 0x8c, 0xee, 0x58, 0x41, 0x8c, 0xa5, 0x30, 0x30, 0x60, 0x32, 0x41, 0x02, 0x80, 0x33, 0x01, 0x30, 0x38, 0x31, 0x8c, 0xdf, 0x21, 0x9a, 0xff, 0x01, 0x81, 0xed, 0xc0, 0x00, 0x00, 0x42, 0x01, 0x03, 0x32, 0x01, 0x02, 0x30, 0x57, 0x04, 0x80, 0xe3, 0x01, 0xe0, 0xe8, 0x31, 0x16, 0x65, 0x08, 0xe2, 0xc3, 0x20, 0x06, 0x20, 0x00, 0xc2, 0x13, 0x00, 0xc0, 0xe8, 0x41, 0x80, 0xcc, 0x01, 0xc0, 0xc8, 0x31, 0x61, 0x1e, 0xf0, 0x80, 0xae, 0x01, 0xb1, 0x1e, 0xf0, 0xe0, 0x9c, 0x01, 0xb0, 0x99, 0x20, 0xe1, 0x71, 0xf3, 0xb1, 0x8b, 0xff, 0xc0, 0x20, 0x00, 0x82, 0x2e, 0x98, 0xb0, 0x88, 0x10, 0xa0, 0x88, 0x20, 0x90, 0x88, 0x20, 0xc0, 0x20, 0x00, 0x82, 0x6e, 0x98, 0x2c, 0x07, 0xc0, 0x20, 0x00, 0x58, 0xa6, 0x70, 0x55, 0x20, 0xc0, 0x20, 0x00, 0x59, 0xa6, 0x7c, 0x04, 0x0c, 0x23, 0xc0, 0x20, 0x00, 0x22, 0x2e, 0x8f, 0x40, 0x22, 0x10, 0x30, 0x22, 0x20, 0xc0, 0x20, 0x00, 0x22, 0x6e, 0x8f, 0x02, 0xae, 0x0e, 0x0c, 0x1f, 0xc0, 0x20, 0x00, 0xd2, 0x2e, 0x99, 0x00, 0xdd, 0x10, 0xf0, 0xdd, 0x20, 0xc0, 0x20, 0x00, 0xc8, 0x91, 0xd2, 0x6e, 0x99, 0xf8, 0xc1, 0xd8, 0xa1, 0xe8, 0xb1, 0x08, 0x81, 0x12, 0xc1, 0x40, 0x0d, 0xf0, 0x80, 0xf4, 0x01, 0xf0, 0xf8, 0x31, 0x77, 0x64, 0x02, 0xf2, 0xc4, 0x40, 0x08, 0x0c, 0x80, 0xcf, 0x01, 0x02, 0x20, 0x2a, 0xc0, 0xc8, 0x31, 0xc0, 0x00, 0x00, 0x31, 0xae, 0xed, 0x28, 0x0d, 0x80, 0x4f, 0x01, 0x80, 0x5e, 0x11, 0x40, 0x48, 0x31, 0x50, 0x44, 0x20, 0x58, 0x11, 0x30, 0x22, 0x20, 0x42, 0x55, 0x00, 0x29, 0x0d, 0x86, 0xd4, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x12, 0xc1, 0xf0, 0xd9, 0x21, 0xc9, 0x11, 0xe9, 0x31, 0xe1, 0x4d, 0xf1, 0x09, 0x01, 0x08, 0x0e, 0xc1, 0x7e, 0xee, 0x77, 0xf0, 0x35, 0x22, 0xa0, 0x6a, 0x0c, 0x23, 0x0c, 0x04, 0x0c, 0x55, 0x08, 0x0c, 0x0c, 0x46, 0x02, 0x20, 0x27, 0x0c, 0x07, 0xc0, 0x00, 0x00, 0x91, 0x63, 0xf9, 0xa8, 0x0c, 0x22, 0x09, 0x01, 0xa2, 0x2a, 0x27, 0x16, 0xd2, 0x04, 0x22, 0xa0, 0x6a, 0x0c, 0x23, 0x0c, 0x44, 0x0c, 0x75, 0x0c, 0x46, 0x0c, 0x17, 0xc0, 0x0a, 0x00, 0x86, 0x12, 0x00, 0xd2, 0x0e, 0x4a, 0x22, 0xa0, 0x61, 0x0c, 0x13, 0x0c, 0x24, 0x0c, 0x45, 0x08, 0x0c, 0x0c, 0x06, 0x02, 0x20, 0x27, 0x7d, 0x0d, 0xc0, 0x00, 0x00, 0x72, 0x0e, 0x4b, 0x22, 0xa0, 0x66, 0x0c, 0x33, 0x0c, 0x14, 0x08, 0x0c, 0x0c, 0x55, 0x02, 0x20, 0x27, 0x0c, 0x06, 0xc0, 0x00, 0x00, 0xc8, 0x11, 0xd8, 0x21, 0xe8, 0x31, 0x08, 0x01, 0x12, 0xc1, 0x10, 0x0d, 0xf0, 0x22, 0xa0, 0x6a, 0x0c, 0x23, 0x0c, 0x44, 0x0c, 0x75, 0x0c, 0x46, 0x0c, 0x27, 0xc0, 0x0a, 0x00, 0x22, 0xa0, 0x68, 0x0c, 0x33, 0x0c, 0x14, 0x0c, 0x05, 0x08, 0x0c, 0x0c, 0x06, 0x02, 0x20, 0x27, 0x0c, 0x17, 0xc0, 0x00, 0x00, 0x22, 0xa0, 0x6a, 0x0c, 0x23, 0x0c, 0x64, 0x0c, 0x45, 0x08, 0x0c, 0x0c, 0x06, 0x02, 0x20, 0x27, 0x0c, 0x87, 0xc0, 0x00, 0x00, 0x22, 0xa0, 0x6a, 0x0c, 0x23, 0x0c, 0x44, 0x0c, 0x05, 0x08, 0x0c, 0x0c, 0x06, 0x02, 0x20, 0x27, 0x0c, 0x17, 0xc0, 0x00, 0x00, 0x22, 0xa0, 0x6a, 0x0c, 0x23, 0x0c, 0x34, 0x0c, 0x65, 0x08, 0x0c, 0x0c, 0x66, 0x02, 0x20, 0x27, 0x0c, 0x17, 0xc0, 0x00, 0x00, 0x22, 0xa0, 0x6a, 0x0c, 0x23, 0x0c, 0x44, 0x0c, 0x35, 0x08, 0x0c, 0x0c, 0x36, 0x02, 0x20, 0x27, 0x0c, 0x07, 0xc0, 0x00, 0x00, 0x22, 0xa0, 0x6a, 0x0c, 0x23, 0x0c, 0x44, 0x0c, 0x35, 0x08, 0x0c, 0x0c, 0x36, 0x02, 0x20, 0x27, 0x0c, 0x17, 0xc0, 0x00, 0x00, 0x22, 0xa0, 0x64, 0x01, 0xc3, 0xf0, 0xc0, 0x00, 0x00, 0x22, 0xa0, 0x6a, 0x0c, 0x23, 0x0c, 0x54, 0x08, 0x0c, 0x0c, 0x55, 0x02, 0x20, 0x25, 0x0c, 0x06, 0xc0, 0x00, 0x00, 0x0c, 0x33, 0x0c, 0x14, 0x0c, 0x05, 0x0c, 0x06, 0x0c, 0x07, 0x08, 0x0c, 0xdd, 0x02, 0x02, 0x20, 0x27, 0x22, 0xa0, 0x68, 0xc0, 0x00, 0x00, 0x01, 0x1c, 0xf9, 0x41, 0x8a, 0xfe, 0x62, 0x00, 0x01, 0xb6, 0x3d, 0x04, 0x3c, 0xc2, 0xd7, 0xb2, 0x0b, 0x51, 0xa8, 0xff, 0x32, 0x24, 0x00, 0x50, 0x33, 0x20, 0x32, 0x64, 0x00, 0xbc, 0x56, 0x1c, 0xe3, 0xc0, 0x2d, 0x11, 0x22, 0xc2, 0xd9, 0x05, 0xfc, 0x06, 0xd0, 0x3d, 0xf0, 0x20, 0xd0, 0x74, 0xd2, 0x4e, 0x4a, 0xe0, 0x23, 0x11, 0x20, 0x20, 0xf4, 0x0c, 0x93, 0x05, 0x06, 0x07, 0x61, 0x4c, 0xee, 0x58, 0x0e, 0x20, 0x40, 0x74, 0x2b, 0x44, 0x40, 0x42, 0x21, 0x42, 0x4e, 0x4b, 0x60, 0x55, 0x20, 0x59, 0x0e, 0x06, 0xac, 0xff, 0x1c, 0x43, 0xd0, 0x2d, 0xa0, 0xd0, 0x22, 0x90, 0x22, 0xc2, 0xf2, 0x45, 0xf8, 0x06, 0x86, 0xf0, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc8, 0x4f, 0x10, 0x40, 0x12, 0xc1, 0xf0, 0x09, 0x01, 0xc9, 0x11, 0xd9, 0x21, 0xcd, 0x02, 0xdd, 0x03, 0x21, 0xde, 0xf0, 0x3d, 0x0c, 0x22, 0x02, 0x6e, 0x85, 0x83, 0xff, 0x01, 0xdc, 0xf0, 0x61, 0xf9, 0xf8, 0xf6, 0xbc, 0x3a, 0x41, 0xf6, 0xff, 0xc0, 0x3c, 0x90, 0x4a, 0x33, 0xa0, 0x03, 0x00, 0x46, 0x23, 0x00, 0x86, 0x22, 0x00, 0xc6, 0x2d, 0x00, 0x06, 0x2d, 0x00, 0x46, 0x20, 0x00, 0x86, 0x1f, 0x00, 0xc6, 0x2a, 0x00, 0x06, 0x2a, 0x00, 0xc6, 0x27, 0x00, 0x86, 0x25, 0x00, 0x46, 0x23, 0x00, 0x86, 0x1c, 0x00, 0x46, 0x20, 0x00, 0x06, 0x1e, 0x00, 0xc6, 0x1b, 0x00, 0x86, 0x19, 0x00, 0xda, 0x3c, 0x32, 0xd3, 0xff, 0x32, 0x03, 0xf0, 0x02, 0x00, 0x4e, 0xf6, 0x8c, 0x0a, 0x42, 0x06, 0x61, 0xfc, 0xb4, 0x32, 0x0d, 0x00, 0x86, 0x0d, 0x00, 0x80, 0x00, 0x01, 0x00, 0x08, 0x31, 0x26, 0x10, 0x17, 0x0c, 0xb2, 0x27, 0x10, 0x2d, 0x0c, 0xd4, 0x47, 0x10, 0x2e, 0x72, 0xc0, 0xf2, 0x52, 0x06, 0x23, 0x0c, 0x02, 0x70, 0x25, 0x83, 0x86, 0x00, 0x00, 0x22, 0x06, 0x20, 0xc8, 0x11, 0xd8, 0x21, 0x30, 0x00, 0x74, 0x07, 0xb2, 0x01, 0x2d, 0x00, 0x08, 0x01, 0x12, 0xc1, 0x10, 0x0d, 0xf0, 0x3a, 0x32, 0xc6, 0xf0, 0xff, 0x22, 0x06, 0x21, 0x46, 0xf8, 0xff, 0x22, 0x06, 0x22, 0xc6, 0xf6, 0xff, 0x32, 0x06, 0x63, 0x06, 0xe8, 0xff, 0x32, 0x0d, 0x00, 0x86, 0xe6, 0xff, 0x32, 0x0d, 0x02, 0x06, 0xe5, 0xff, 0x32, 0x0d, 0x04, 0x86, 0xe3, 0xff, 0x32, 0x0d, 0x06, 0x06, 0xe2, 0xff, 0x32, 0x0d, 0x01, 0x86, 0xe0, 0xff, 0x32, 0x0d, 0x03, 0x06, 0xdf, 0xff, 0x32, 0x0d, 0x05, 0x86, 0xdd, 0xff, 0x32, 0x06, 0x62, 0x06, 0xdc, 0xff, 0x00, 0x2b, 0x64, 0x82, 0x93, 0x00, 0x00, 0x04, 0x40, 0x80, 0x90, 0xb1, 0x90, 0x88, 0xc0, 0x00, 0x16, 0x40, 0x8a, 0x82, 0x00, 0x25, 0xa1, 0x00, 0x88, 0x11, 0x80, 0x80, 0x31, 0x82, 0x53, 0x00, 0x27, 0x28, 0x14, 0x20, 0x48, 0xc0, 0x50, 0x20, 0x60, 0x80, 0x22, 0x01, 0x20, 0x28, 0x31, 0x42, 0x53, 0x00, 0x0d, 0xf0, 0x0c, 0x02, 0x0d, 0xf0, 0x20, 0x40, 0x60, 0x87, 0x24, 0xf5, 0x2a, 0x48, 0x80, 0x25, 0x01, 0x20, 0x28, 0x31, 0x46, 0xf9, 0xff, 0xdc, 0xf4, 0xfe, 0x3f, 0x10, 0x86, 0xfe, 0x3f, 0xf3, 0x0f, 0x00, 0x00, 0xe0, 0xf2, 0xfe, 0x3f, 0x30, 0x86, 0xfe, 0x3f, 0x12, 0xc1, 0x90, 0xf2, 0x61, 0x18, 0x02, 0x61, 0x14, 0x22, 0x61, 0x11, 0x52, 0x61, 0x12, 0x62, 0x61, 0x19, 0xc2, 0x61, 0x15, 0xe2, 0x61, 0x17, 0xd2, 0x61, 0x16, 0xdd, 0x04, 0xed, 0x03, 0xc1, 0xf2, 0xeb, 0xc0, 0x20, 0x00, 0xc2, 0x2c, 0xd8, 0x22, 0xa1, 0x38, 0xc0, 0xc8, 0x45, 0x45, 0x3a, 0xff, 0x22, 0x61, 0x13, 0xf6, 0x8c, 0x0a, 0x7c, 0xf2, 0x20, 0x2c, 0x30, 0x20, 0x20, 0x24, 0x46, 0x00, 0x00, 0x2d, 0x0c, 0x3d, 0x0e, 0x85, 0xe6, 0xff, 0xf1, 0xe8, 0xff, 0xe1, 0x7b, 0xf0, 0x6c, 0x03, 0x42, 0x21, 0x13, 0x0d, 0x02, 0x52, 0x21, 0x11, 0x2c, 0x0a, 0x5a, 0x52, 0x52, 0x61, 0x10, 0x52, 0x05, 0x00, 0x2d, 0x0a, 0xe0, 0x55, 0x11, 0x50, 0x44, 0xc0, 0x00, 0x44, 0x11, 0x40, 0x40, 0x31, 0x37, 0x24, 0x01, 0x3d, 0x04, 0x09, 0xe1, 0x68, 0x0e, 0x37, 0x2a, 0x01, 0x2d, 0x03, 0x00, 0x82, 0x11, 0x80, 0x80, 0x31, 0xd7, 0x76, 0x19, 0x09, 0xe1, 0xdc, 0x40, 0x2d, 0x08, 0x89, 0xc1, 0x3d, 0x0f, 0x0c, 0x44, 0x0c, 0x25, 0xd9, 0xd1, 0x85, 0xf0, 0xff, 0x0d, 0x02, 0x0c, 0x0d, 0x06, 0x11, 0x00, 0x3d, 0x0d, 0x2d, 0x08, 0x89, 0xc1, 0xd9, 0xd1, 0x0c, 0x44, 0x0c, 0x25, 0x45, 0xef, 0xff, 0x98, 0xe1, 0xdd, 0x02, 0x56, 0x49, 0x19, 0xa8, 0xc1, 0xe6, 0x1a, 0x02, 0x06, 0x63, 0x00, 0xa6, 0xba, 0x02, 0x86, 0x61, 0x00, 0x56, 0x32, 0x18, 0x02, 0x0f, 0x02, 0x1b, 0x00, 0x00, 0x00, 0x74, 0x02, 0x4f, 0x02, 0x1c, 0x42, 0x27, 0x90, 0x0b, 0x7c, 0xed, 0x48, 0xd1, 0x0c, 0x03, 0x32, 0x4f, 0x02, 0x32, 0x54, 0x00, 0x0c, 0x00, 0x62, 0x21, 0x19, 0x8c, 0x6d, 0x0c, 0x05, 0x52, 0x4f, 0x03, 0x52, 0x5f, 0x00, 0x02, 0x61, 0x1a, 0xbc, 0x36, 0x21, 0xbd, 0xff, 0x3d, 0x0c, 0x48, 0xc1, 0x62, 0x9f, 0x00, 0x71, 0x72, 0xec, 0x58, 0xd1, 0x70, 0x7c, 0xa0, 0x52, 0x95, 0x00, 0xc0, 0x20, 0x00, 0x82, 0x0e, 0x4e, 0x72, 0x27, 0xc1, 0x80, 0x88, 0x01, 0x80, 0x77, 0x01, 0x70, 0x78, 0x31, 0x80, 0x88, 0x31, 0x89, 0x01, 0x01, 0x3e, 0xec, 0xc0, 0x00, 0x00, 0x02, 0x21, 0x1a, 0x62, 0x21, 0x12, 0x16, 0x46, 0x10, 0xc9, 0xf1, 0xcc, 0x3d, 0xc9, 0xf1, 0x16, 0xb0, 0x0f, 0x0c, 0x05, 0xfd, 0x0d, 0xa1, 0xaa, 0xff, 0x22, 0x0e, 0x78, 0xc2, 0xa0, 0x7f, 0x80, 0x22, 0x01, 0x20, 0x28, 0x31, 0x50, 0x95, 0x90, 0x80, 0x7c, 0x01, 0x70, 0x78, 0x31, 0x1b, 0x55, 0xe0, 0x99, 0x90, 0x92, 0x09, 0x55, 0x50, 0x50, 0x74, 0x80, 0x99, 0x01, 0x90, 0x98, 0x31, 0x77, 0xa9, 0x01, 0xcd, 0x09, 0x66, 0x45, 0xdd, 0x51, 0xd8, 0xfb, 0xca, 0xc2, 0x80, 0xcc, 0x01, 0xc0, 0xc8, 0x31, 0x16, 0x8d, 0x09, 0x2c, 0x44, 0xd0, 0x9c, 0xc0, 0x80, 0x99, 0x01, 0x90, 0x98, 0x31, 0x97, 0xa4, 0x0b, 0x02, 0x61, 0x1a, 0x22, 0x15, 0x00, 0xb2, 0xa3, 0xe4, 0x27, 0x3b, 0x0e, 0xe6, 0xa9, 0x7b, 0x42, 0x15, 0x00, 0x31, 0x95, 0xff, 0x02, 0x61, 0x1a, 0x47, 0x33, 0x6f, 0x22, 0xc1, 0x20, 0x31, 0xca, 0xfb, 0x1c, 0x85, 0x90, 0x55, 0xc0, 0x52, 0x41, 0x20, 0x45, 0x11, 0xff, 0x62, 0x0e, 0x79, 0x72, 0x01, 0x20, 0x41, 0x8e, 0xff, 0x21, 0xc4, 0xfb, 0xc0, 0x8d, 0xc0, 0x82, 0xc8, 0x18, 0x22, 0x12, 0x00, 0x32, 0x04, 0x4a, 0x80, 0x77, 0x01, 0x80, 0x66, 0x01, 0x60, 0x68, 0x31, 0x70, 0x78, 0x31, 0x80, 0x33, 0x01, 0x70, 0x58, 0xc0, 0x5a, 0x66, 0x30, 0x38, 0x31, 0x80, 0x77, 0xc0, 0x7a, 0xff, 0x5a, 0x33, 0x62, 0x4e, 0x79, 0x32, 0x44, 0x4a, 0x32, 0xc1, 0x22, 0x0c, 0x04, 0xc5, 0x03, 0xff, 0x21, 0xb5, 0xfb, 0x32, 0xc1, 0x22, 0x22, 0x12, 0x00, 0x45, 0xf9, 0xfe, 0x02, 0x21, 0x1a, 0x51, 0xb1, 0xfb, 0xa1, 0x77, 0xff, 0x32, 0x15, 0x00, 0x32, 0x5e, 0x3b, 0xf0, 0x9c, 0xc0, 0x00, 0xf0, 0x93, 0x80, 0x99, 0x01, 0x90, 0x98, 0x31, 0x80, 0x4f, 0x01, 0x40, 0xf8, 0x31, 0xd6, 0x4f, 0x00, 0x4c, 0x6b, 0x97, 0xab, 0x1e, 0xa6, 0x1f, 0x02, 0xe6, 0xa9, 0x18, 0xc2, 0x21, 0x15, 0xd2, 0x21, 0x16, 0xe2, 0x21, 0x17, 0xf2, 0x21, 0x18, 0x02, 0x21, 0x14, 0x12, 0xc1, 0x70, 0x0d, 0xf0, 0x0c, 0x00, 0x86, 0x9f, 0xff, 0xac, 0x90, 0x0c, 0x8d, 0xb2, 0x0a, 0x03, 0x7c, 0x89, 0x80, 0xbb, 0x01, 0xb0, 0xb8, 0x31, 0x00, 0xbb, 0xc0, 0xb2, 0x4a, 0x03, 0x80, 0xbb, 0x01, 0xb0, 0xb8, 0x31, 0x97, 0x2b, 0x01, 0x9d, 0x0b, 0x0d, 0x0d, 0x97, 0x2d, 0x01, 0x0d, 0x09, 0x02, 0x4a, 0x03, 0xc6, 0x0b, 0x00, 0x32, 0x0e, 0x78, 0x01, 0x5d, 0xff, 0x22, 0x0e, 0x79, 0xd2, 0x00, 0x4a, 0x80, 0x22, 0x01, 0x80, 0x33, 0x01, 0x30, 0x38, 0x31, 0x20, 0x28, 0x31, 0x80, 0xdd, 0x01, 0xf0, 0x22, 0x80, 0xf0, 0x33, 0xc0, 0x32, 0x4e, 0x78, 0x22, 0x4e, 0x79, 0xd0, 0xd8, 0x31, 0xf0, 0xdd, 0x80, 0xd2, 0x40, 0x4a, 0x22, 0x0e, 0x4e, 0x32, 0xc1, 0x28, 0xc5, 0x31, 0xfc, 0x45, 0xe9, 0x00, 0xf2, 0x21, 0x19, 0x16, 0x7f, 0xf7, 0x21, 0x4e, 0xff, 0x52, 0x0e, 0x78, 0x32, 0x0e, 0x79, 0x41, 0x4b, 0xff, 0x80, 0x33, 0x01, 0x42, 0x04, 0x4a, 0x80, 0x55, 0x01, 0x50, 0x58, 0x31, 0x80, 0x44, 0x01, 0x30, 0x38, 0x31, 0x40, 0x48, 0x31, 0xc0, 0x20, 0x00, 0x88, 0xf1, 0xb2, 0x21, 0x10, 0xd8, 0xc1, 0x71, 0x7a, 0xfb, 0xa1, 0xf7, 0xeb, 0x72, 0x17, 0x00, 0x62, 0x2a, 0xd8, 0xd9, 0x01, 0xb2, 0x0b, 0x00, 0xb9, 0x11, 0x89, 0x21, 0x92, 0x0e, 0x4e, 0x80, 0x66, 0x01, 0x80, 0x99, 0x01, 0x90, 0x98, 0x31, 0x99, 0x31, 0x60, 0x68, 0x31, 0x60, 0x60, 0x60, 0xa0, 0x88, 0xa0, 0xc0, 0x20, 0x00, 0x82, 0x28, 0xc1, 0x01, 0x33, 0xff, 0x80, 0x88, 0x01, 0x80, 0x88, 0x31, 0x89, 0x41, 0x02, 0x00, 0x03, 0xc9, 0x61, 0x80, 0x00, 0x01, 0x00, 0x08, 0x31, 0x09, 0x51, 0x01, 0xba, 0xeb, 0xc0, 0x00, 0x00, 0x46, 0xbe, 0xff, 0x00, 0xff, 0xff, 0xdf, 0xff, 0xff, 0xff, 0x7f, 0xff, 0x41, 0xfe, 0xff, 0x7c, 0xe6, 0x31, 0x26, 0xeb, 0xc0, 0x20, 0x00, 0x22, 0x23, 0xd7, 0x40, 0x22, 0x10, 0xc0, 0x20, 0x00, 0x22, 0x63, 0xd7, 0xb1, 0xf9, 0xff, 0xc0, 0x20, 0x00, 0xa2, 0x23, 0xd7, 0xb0, 0xaa, 0x10, 0xc0, 0x20, 0x00, 0xa2, 0x63, 0xd7, 0xc0, 0x20, 0x00, 0x92, 0x23, 0xd4, 0x60, 0x99, 0x10, 0xc0, 0x20, 0x00, 0x92, 0x63, 0xd4, 0x0c, 0x28, 0xc0, 0x20, 0x00, 0x72, 0x23, 0xd8, 0x80, 0x77, 0x20, 0xc0, 0x20, 0x00, 0x72, 0x63, 0xd8, 0xc0, 0x20, 0x00, 0x52, 0x23, 0xd8, 0x60, 0x55, 0x10, 0xc0, 0x20, 0x00, 0x52, 0x63, 0xd8, 0x0c, 0x14, 0xc0, 0x20, 0x00, 0x22, 0x23, 0xd8, 0x40, 0x22, 0x20, 0xc0, 0x20, 0x00, 0x22, 0x63, 0xd8, 0x0d, 0xf0, 0x00, 0x2c, 0xf3, 0xfe, 0x3f, 0x94, 0x86, 0xfe, 0x3f, 0x12, 0xc1, 0xe0, 0x02, 0x61, 0x06, 0x01, 0xbb, 0xf7, 0xc2, 0x61, 0x07, 0x02, 0x00, 0x64, 0x30, 0xc3, 0x20, 0x00, 0x00, 0x04, 0x56, 0x50, 0x0b, 0x01, 0x99, 0xef, 0x31, 0x04, 0xeb, 0xc0, 0x20, 0x00, 0x42, 0x23, 0xd4, 0xf7, 0xf4, 0x5f, 0xc0, 0x20, 0x00, 0x62, 0x23, 0xd4, 0x71, 0x00, 0xff, 0x60, 0x68, 0x25, 0x56, 0x06, 0x05, 0x72, 0x07, 0x04, 0x56, 0xa7, 0x04, 0x32, 0x00, 0x4e, 0x29, 0x51, 0xb6, 0x73, 0x02, 0xc6, 0x23, 0x00, 0x41, 0x8d, 0xef, 0x0b, 0x23, 0x52, 0x94, 0x06, 0x42, 0x94, 0x07, 0x59, 0x41, 0x50, 0x34, 0xc0, 0x30, 0x22, 0x82, 0x0c, 0x53, 0xc5, 0xa0, 0x06, 0x08, 0x41, 0x2a, 0x00, 0x86, 0x00, 0x00, 0x60, 0x06, 0x20, 0x10, 0x21, 0x20, 0x31, 0x0f, 0xf0, 0x00, 0x40, 0x11, 0x40, 0x40, 0x31, 0x85, 0xfe, 0xfb, 0x2d, 0x01, 0x31, 0x66, 0xf0, 0x41, 0xde, 0xff, 0x58, 0x51, 0x6d, 0x0c, 0xc5, 0xbb, 0xff, 0x45, 0xf0, 0xff, 0x31, 0xe9, 0xfe, 0x0c, 0x02, 0x01, 0xad, 0xec, 0x22, 0x43, 0x04, 0x21, 0xe9, 0xfe, 0x08, 0x00, 0x22, 0x02, 0x4a, 0x08, 0x00, 0x80, 0x22, 0x01, 0x20, 0x28, 0x31, 0xc0, 0x00, 0x00, 0xa6, 0x82, 0x22, 0x2d, 0x0c, 0x51, 0xe3, 0xfe, 0x0c, 0x04, 0x42, 0x45, 0x4a, 0x85, 0xde, 0xfd, 0x61, 0x71, 0xef, 0x32, 0x26, 0x1c, 0x1b, 0x33, 0x32, 0x66, 0x1c, 0x8c, 0x7c, 0x21, 0xcd, 0xff, 0x01, 0x67, 0xeb, 0xc0, 0x00, 0x00, 0xc8, 0x71, 0x08, 0x61, 0x12, 0xc1, 0x20, 0x0d, 0xf0, 0xf6, 0xa3, 0x22, 0x41, 0x68, 0xef, 0x22, 0xc3, 0xfa, 0x52, 0x94, 0x07, 0x42, 0x94, 0x08, 0x52, 0x61, 0x03, 0x50, 0x34, 0xc0, 0x30, 0x22, 0x82, 0x32, 0xa0, 0x05, 0x85, 0x97, 0x06, 0x02, 0x21, 0x03, 0x2a, 0x00, 0xc6, 0xda, 0xff, 0x62, 0x90, 0x09, 0x22, 0xa0, 0x0d, 0x37, 0xb2, 0x02, 0x06, 0xd7, 0xff, 0x30, 0x23, 0xa0, 0x31, 0x5c, 0xef, 0x22, 0xc2, 0xc9, 0x32, 0x93, 0x08, 0x32, 0x61, 0x02, 0x30, 0x36, 0xc0, 0x30, 0x22, 0x82, 0x32, 0xa0, 0x16, 0x85, 0x94, 0x06, 0x08, 0x21, 0x2a, 0x00, 0x46, 0xcf, 0xff, 0x00, 0x91, 0xc0, 0xea, 0x81, 0x0a, 0xec, 0x0c, 0x0b, 0x12, 0xc1, 0xf0, 0xc9, 0x11, 0x09, 0x01, 0xd9, 0x21, 0x0c, 0x00, 0xd2, 0xa0, 0xff, 0x7c, 0xfc, 0x90, 0x60, 0xa0, 0x20, 0x70, 0x90, 0x5d, 0x0d, 0xad, 0x0b, 0xc0, 0x20, 0x00, 0x32, 0xa1, 0x17, 0x62, 0x26, 0xe0, 0x1b, 0x00, 0x00, 0x00, 0x74, 0xc0, 0x66, 0x30, 0x60, 0x40, 0x74, 0x42, 0xc4, 0xeb, 0x60, 0x60, 0xa4, 0x62, 0x57, 0x00, 0x40, 0xa4, 0xb3, 0x30, 0xaa, 0x82, 0x80, 0x36, 0x10, 0xa0, 0xa8, 0x21, 0xa7, 0x2d, 0x01, 0x5d, 0x0a, 0x3a, 0x35, 0x32, 0x57, 0x00, 0x66, 0x80, 0xbf, 0xc8, 0x11, 0xd8, 0x21, 0x08, 0x01, 0x12, 0xc1, 0x10, 0x0d, 0xf0, 0x00, 0x12, 0xc1, 0xe0, 0x09, 0x61, 0x39, 0x41, 0x29, 0x51, 0x7c, 0xd5, 0x21, 0xa4, 0xea, 0xc0, 0x20, 0x00, 0x42, 0x22, 0xd4, 0x50, 0x44, 0x10, 0xc0, 0x20, 0x00, 0x42, 0x62, 0xd4, 0x0c, 0x23, 0xc0, 0x20, 0x00, 0x02, 0x22, 0xd4, 0x30, 0x00, 0x20, 0xc0, 0x20, 0x00, 0x02, 0x62, 0xd4, 0x1c, 0x92, 0x01, 0xe8, 0xee, 0xc0, 0x00, 0x00, 0x2d, 0x01, 0x05, 0xf6, 0xff, 0x28, 0x51, 0x02, 0x11, 0x03, 0x42, 0x11, 0x02, 0x32, 0x11, 0x01, 0x92, 0x11, 0x07, 0x72, 0x11, 0x05, 0x62, 0x11, 0x04, 0x82, 0x11, 0x06, 0x7a, 0x66, 0x9a, 0x88, 0x4a, 0x33, 0x3a, 0x00, 0x80, 0x88, 0x90, 0x60, 0x66, 0x90, 0x60, 0x60, 0xf4, 0x80, 0x70, 0xf4, 0xf0, 0x90, 0x11, 0x90, 0x90, 0xf4, 0x77, 0x39, 0x05, 0x80, 0x80, 0xd0, 0x46, 0x00, 0x00, 0x0c, 0x08, 0x82, 0x52, 0x00, 0x08, 0x41, 0x77, 0x36, 0x05, 0x70, 0x26, 0xc0, 0x46, 0x00, 0x00, 0x0c, 0x02, 0x22, 0x50, 0x00, 0x08, 0x61, 0x12, 0xc1, 0x20, 0x0d, 0xf0, 0x00, 0x00, 0x00, 0xf1, 0x3c, 0x11, 0x01, 0xf3, 0x3c, 0x11, 0x01, 0x00, 0x00, 0x00, 0x40, 0xf0, 0x3c, 0x11, 0x01, 0xff, 0xff, 0x03, 0x00, 0x30, 0x40, 0xf4, 0x12, 0xc1, 0xc0, 0xc9, 0x61, 0xe9, 0x81, 0xf9, 0x91, 0x59, 0xd1, 0x69, 0x41, 0x0c, 0x13, 0xd9, 0x71, 0xd1, 0x3e, 0xec, 0x09, 0x51, 0x08, 0x0d, 0x29, 0x31, 0x02, 0x20, 0x2b, 0x0c, 0x02, 0xc0, 0x00, 0x00, 0x28, 0xd1, 0xc1, 0x73, 0xea, 0x16, 0x52, 0x12, 0x4c, 0x0f, 0x0c, 0x1e, 0xd2, 0xc2, 0xfc, 0x4c, 0x07, 0x1c, 0xc8, 0x0c, 0x09, 0x0c, 0x0a, 0x0c, 0x0b, 0xb9, 0x21, 0xa9, 0xb1, 0x99, 0xc1, 0x89, 0x11, 0x79, 0x01, 0xd9, 0xa1, 0x0c, 0x0d, 0x0c, 0x12, 0x01, 0x2f, 0xec, 0x0c, 0x23, 0x08, 0x00, 0x48, 0x01, 0x02, 0x20, 0x2b, 0x40, 0x40, 0xf4, 0xc0, 0x00, 0x00, 0x01, 0x2b, 0xec, 0x0c, 0x02, 0x08, 0x00, 0x0c, 0x23, 0x02, 0x20, 0x2b, 0xf0, 0x40, 0xf4, 0xc0, 0x00, 0x00, 0xc0, 0x20, 0x00, 0x31, 0xdd, 0xff, 0x32, 0x6c, 0xd3, 0xc0, 0x20, 0x00, 0x21, 0xdc, 0xff, 0x22, 0x6c, 0xd3, 0x0c, 0x22, 0x01, 0xa8, 0xee, 0xc0, 0x00, 0x00, 0x08, 0x01, 0x38, 0x11, 0x88, 0x21, 0x71, 0xd8, 0xff, 0x52, 0xa0, 0x7f, 0x4d, 0x0d, 0xc0, 0x20, 0x00, 0x62, 0x2c, 0xd3, 0x60, 0x68, 0x75, 0x60, 0x4e, 0x83, 0x56, 0xe4, 0xfe, 0xc0, 0x20, 0x00, 0x92, 0x2c, 0xd3, 0x0c, 0x1b, 0x90, 0x9f, 0x05, 0xb0, 0x99, 0x30, 0xc0, 0x20, 0x00, 0x22, 0x2c, 0xd3, 0x0c, 0x0a, 0x70, 0x22, 0x10, 0x20, 0xab, 0x83, 0x9c, 0x29, 0x9d, 0x05, 0xfa, 0xf3, 0x00, 0xff, 0x11, 0xf0, 0xf0, 0x31, 0xf7, 0x25, 0x01, 0x9d, 0x0f, 0xfd, 0x09, 0x46, 0x03, 0x00, 0x30, 0x2f, 0xc0, 0xfd, 0x0d, 0x00, 0x22, 0x11, 0x20, 0x20, 0x31, 0x20, 0xf2, 0xb3, 0x9c, 0x2a, 0x9d, 0x05, 0x0a, 0x03, 0x00, 0x00, 0x11, 0x00, 0x00, 0x31, 0x07, 0x25, 0x01, 0x9d, 0x00, 0x0d, 0x09, 0x46, 0x03, 0x00, 0x30, 0x20, 0xc0, 0x0d, 0x0d, 0x00, 0x22, 0x11, 0x20, 0x20, 0x31, 0x20, 0x02, 0xb3, 0x09, 0x01, 0x48, 0xa1, 0x72, 0xc3, 0xfe, 0x30, 0x61, 0x21, 0x1b, 0x66, 0x0c, 0x13, 0x80, 0x66, 0x01, 0x60, 0x68, 0x31, 0x70, 0x36, 0x93, 0x39, 0x11, 0x47, 0x28, 0x17, 0x78, 0xb1, 0xa8, 0xc1, 0x0a, 0x97, 0xfa, 0xba, 0x00, 0xbb, 0x11, 0x00, 0x99, 0x11, 0x90, 0x70, 0x31, 0xb0, 0xa0, 0x31, 0xa9, 0xc1, 0x79, 0xb1, 0xa8, 0xd1, 0x1b, 0x88, 0x80, 0x80, 0x74, 0x89, 0x21, 0x80, 0xaa, 0xc0, 0x56, 0xba, 0xef, 0xc6, 0x01, 0x00, 0x0c, 0x09, 0x0c, 0x0a, 0xa9, 0xb1, 0x99, 0xc1, 0x0c, 0x12, 0x0c, 0x23, 0xf8, 0xb1, 0xd1, 0xea, 0xeb, 0x2b, 0xff, 0x08, 0x0d, 0xf0, 0x42, 0xf4, 0x02, 0x20, 0x2b, 0xf0, 0xf2, 0x21, 0xc0, 0x00, 0x00, 0x0c, 0x02, 0x0c, 0x23, 0xe8, 0xc1, 0x08, 0x0d, 0x2b, 0xee, 0xe0, 0x42, 0xf4, 0x02, 0x20, 0x2b, 0xe0, 0xe2, 0x21, 0xc0, 0x00, 0x00, 0x0c, 0x12, 0x08, 0x0d, 0x0c, 0x13, 0x02, 0x20, 0x2b, 0x42, 0xa0, 0x7f, 0xc0, 0x00, 0x00, 0x41, 0x97, 0xff, 0xc0, 0x20, 0x00, 0x28, 0x31, 0x38, 0x41, 0x42, 0x6c, 0xd3, 0xe2, 0x43, 0x00, 0xf2, 0x43, 0x01, 0x9c, 0xf2, 0x91, 0x93, 0xff, 0xe0, 0x7e, 0x01, 0x70, 0x8f, 0x01, 0x61, 0x9b, 0xf0, 0xc0, 0x20, 0x00, 0x52, 0x26, 0x99, 0x90, 0x55, 0x10, 0x80, 0x55, 0x20, 0x70, 0x55, 0x20, 0xc0, 0x20, 0x00, 0x52, 0x66, 0x99, 0xc8, 0x61, 0xd8, 0x71, 0xe8, 0x81, 0xf8, 0x91, 0x08, 0x51, 0x12, 0xc1, 0x40, 0x0d, 0xf0, 0x00, 0x00, 0x0c, 0x04, 0x8b, 0x52, 0x22, 0xa0, 0x7f, 0x30, 0x55, 0xe0, 0x00, 0x55, 0x11, 0x50, 0x50, 0x31, 0x50, 0x45, 0xb3, 0x00, 0x44, 0x11, 0x40, 0x30, 0x31, 0xe6, 0xe3, 0x01, 0x2d, 0x03, 0x80, 0x22, 0x01, 0x20, 0x28, 0x31, 0x0d, 0xf0, 0x00, 0x00, 0xac, 0x86, 0xfe, 0x3f, 0xc8, 0x86, 0xfe, 0x3f, 0x0c, 0x07, 0x12, 0xc1, 0xb0, 0xe9, 0x81, 0xf9, 0x91, 0xd9, 0x71, 0x09, 0x51, 0xc9, 0x61, 0x69, 0xa1, 0x49, 0xe1, 0x52, 0x61, 0x10, 0x0c, 0x94, 0x0c, 0x75, 0x0c, 0x06, 0xcd, 0x03, 0x01, 0xb7, 0xeb, 0xdd, 0x02, 0x08, 0x00, 0x22, 0xa0, 0x77, 0x02, 0x20, 0x27, 0x0c, 0x03, 0xc0, 0x00, 0x00, 0x4d, 0x0c, 0x3d, 0x0d, 0x0c, 0x05, 0x0c, 0x06, 0x01, 0xb1, 0xeb, 0x0c, 0x02, 0x29, 0x01, 0x29, 0x11, 0x29, 0x21, 0x08, 0x00, 0x0c, 0x07, 0x02, 0x20, 0x1a, 0x0c, 0x12, 0xc0, 0x00, 0x00, 0x0c, 0x0c, 0x0c, 0x33, 0x52, 0x01, 0x10, 0x59, 0xb1, 0x39, 0xc1, 0x0c, 0x0d, 0x0c, 0x0f, 0x98, 0xa1, 0x0c, 0x08, 0x8c, 0x4c, 0x26, 0x1c, 0x09, 0x66, 0x2c, 0x0a, 0x0c, 0x76, 0x69, 0xb1, 0xc6, 0x00, 0x00, 0x0c, 0xf7, 0x79, 0xb1, 0xa8, 0xb1, 0xca, 0x99, 0x99, 0xd1, 0x82, 0x49, 0x00, 0x1b, 0xaa, 0xa9, 0xf1, 0xbc, 0xac, 0x26, 0x1c, 0x1d, 0x66, 0x2c, 0x53, 0x22, 0xa0, 0x6b, 0x0c, 0x23, 0x0c, 0x24, 0x01, 0x9a, 0xeb, 0x0c, 0x65, 0x08, 0x00, 0x0c, 0x46, 0x02, 0x20, 0x27, 0x7d, 0x0d, 0xc0, 0x00, 0x00, 0x06, 0x0e, 0x00, 0x22, 0xa0, 0x6b, 0x0c, 0x23, 0x0c, 0x24, 0x01, 0x94, 0xeb, 0x0c, 0x35, 0x08, 0x00, 0x0c, 0x06, 0x02, 0x20, 0x27, 0x7d, 0x0d, 0xc0, 0x00, 0x00, 0x46, 0x07, 0x00, 0x22, 0xa0, 0x6b, 0x0c, 0x23, 0x0c, 0x14, 0x0c, 0x35, 0x0c, 0x06, 0x01, 0x8c, 0xeb, 0x0c, 0x17, 0x08, 0x00, 0x70, 0x7d, 0x90, 0x02, 0x20, 0x27, 0x70, 0x70, 0x74, 0xc0, 0x00, 0x00, 0x01, 0x87, 0xeb, 0x08, 0x00, 0x28, 0xe1, 0x02, 0x20, 0x1c, 0x0c, 0xa3, 0xc0, 0x00, 0x00, 0xed, 0x02, 0x22, 0x21, 0x10, 0x8c, 0xb2, 0x21, 0xc1, 0xff, 0x3d, 0x0d, 0x4d, 0x0e, 0x01, 0x48, 0xea, 0xc0, 0x00, 0x00, 0xe7, 0xaf, 0x0e, 0xfd, 0x0e, 0x48, 0xd1, 0x0c, 0x13, 0x30, 0x3d, 0x90, 0xc0, 0x3d, 0x93, 0x32, 0x44, 0x00, 0x48, 0xf1, 0x1b, 0xdd, 0xd0, 0xd0, 0x74, 0xd0, 0x44, 0xc0, 0x56, 0x14, 0xf6, 0xe2, 0x21, 0x10, 0x8c, 0xee, 0x21, 0xb5, 0xff, 0x48, 0xd1, 0x3d, 0x0c, 0x42, 0x04, 0x00, 0x01, 0x3b, 0xea, 0xc0, 0x00, 0x00, 0xac, 0x2c, 0x26, 0x1c, 0x65, 0x66, 0x2c, 0x38, 0x22, 0xa0, 0x6b, 0x0c, 0x23, 0x0c, 0x24, 0x0c, 0x65, 0x01, 0x6d, 0xeb, 0x0c, 0x46, 0x08, 0x00, 0x78, 0xd1, 0x02, 0x20, 0x27, 0x72, 0x07, 0x00, 0xc0, 0x00, 0x00, 0x86, 0x06, 0x00, 0x22, 0xa0, 0x6b, 0x0c, 0x23, 0x0c, 0x14, 0x0c, 0x35, 0x01, 0x66, 0xeb, 0x0c, 0x06, 0x08, 0x00, 0x78, 0xd1, 0x02, 0x20, 0x27, 0x72, 0x07, 0x00, 0xc0, 0x00, 0x00, 0x28, 0xc1, 0x1b, 0xcc, 0xc0, 0xc0, 0x74, 0x0b, 0x22, 0x29, 0xc1, 0x56, 0x52, 0xed, 0x01, 0x5e, 0xeb, 0x08, 0x00, 0x02, 0x20, 0x1b, 0x0c, 0x12, 0xc0, 0x00, 0x00, 0xc8, 0x61, 0xd8, 0x71, 0xe8, 0x81, 0xf8, 0x91, 0x08, 0x51, 0x12, 0xc1, 0x50, 0x0d, 0xf0, 0x22, 0xa0, 0x6b, 0x0c, 0x23, 0x0c, 0x24, 0x0c, 0x35, 0x01, 0x54, 0xeb, 0x0c, 0x06, 0x08, 0x00, 0x78, 0xd1, 0x02, 0x20, 0x27, 0x72, 0x07, 0x00, 0xc0, 0x00, 0x00, 0xc6, 0xed, 0xff, 0x00, 0x00, 0xe0, 0x86, 0xfe, 0x3f, 0x12, 0xc1, 0xa0, 0xf9, 0x81, 0x09, 0x41, 0xd9, 0x61, 0xc9, 0x51, 0xe9, 0x71, 0x79, 0xd1, 0x59, 0xe1, 0x39, 0xb1, 0x49, 0xc1, 0x0c, 0x03, 0x0c, 0x94, 0x0c, 0x75, 0x0c, 0x07, 0xed, 0x06, 0xc1, 0x46, 0xeb, 0xdd, 0x02, 0x08, 0x0c, 0x22, 0xa0, 0x77, 0x02, 0x20, 0x27, 0x0c, 0x06, 0xc0, 0x00, 0x00, 0x28, 0xc1, 0x16, 0x72, 0x15, 0xf2, 0xaf, 0x80, 0x0c, 0x0b, 0xe0, 0x60, 0x24, 0xe0, 0x53, 0x14, 0xd9, 0x91, 0x32, 0x11, 0x30, 0x42, 0x01, 0x64, 0x0c, 0x08, 0x82, 0x61, 0x15, 0x49, 0xa1, 0x32, 0x61, 0x14, 0xd2, 0xa0, 0x7f, 0x50, 0x55, 0x90, 0x0c, 0x0e, 0x60, 0x55, 0x90, 0x50, 0x50, 0x74, 0x59, 0xf1, 0xa2, 0x21, 0x15, 0x98, 0xb1, 0xb2, 0x61, 0x12, 0xaa, 0x99, 0xa8, 0xe1, 0x92, 0x09, 0x00, 0x92, 0x61, 0x11, 0xa0, 0x99, 0xc0, 0x92, 0x61, 0x10, 0x32, 0x21, 0x10, 0x28, 0xf1, 0xe0, 0x33, 0xc0, 0x80, 0x33, 0x01, 0x30, 0x38, 0x31, 0x05, 0xd8, 0xff, 0x0c, 0x00, 0x20, 0x02, 0xb3, 0x80, 0xc0, 0x01, 0xc0, 0xc8, 0x31, 0xc7, 0xad, 0x04, 0x0b, 0xcd, 0x06, 0x01, 0x00, 0xf7, 0xac, 0x01, 0x1b, 0xcf, 0x0c, 0x12, 0x38, 0x91, 0xc0, 0x40, 0x74, 0x0c, 0x05, 0x01, 0x22, 0xeb, 0x0c, 0x06, 0x69, 0x01, 0x69, 0x11, 0x69, 0x21, 0x08, 0x00, 0x0c, 0x07, 0x02, 0x20, 0x1a, 0x0c, 0x06, 0xc0, 0x00, 0x00, 0x01, 0x1d, 0xeb, 0x08, 0x00, 0x08, 0xb0, 0x22, 0x21, 0x14, 0xc0, 0x00, 0x00, 0x01, 0x19, 0xeb, 0x08, 0x00, 0x22, 0x61, 0x13, 0x08, 0xb0, 0x22, 0x21, 0x14, 0xc0, 0x00, 0x00, 0x02, 0x21, 0x13, 0x62, 0x21, 0x11, 0x2a, 0x00, 0x00, 0x00, 0x11, 0x00, 0x00, 0x31, 0x4b, 0x00, 0x00, 0x03, 0x21, 0x60, 0x60, 0xc0, 0x00, 0x66, 0x11, 0x60, 0x60, 0x31, 0xe6, 0x16, 0x08, 0x80, 0xdc, 0x01, 0xd0, 0xd8, 0x31, 0x46, 0x01, 0x00, 0x80, 0xfc, 0x01, 0xf0, 0xf8, 0x31, 0xac, 0x46, 0x26, 0x06, 0x22, 0x80, 0x2c, 0x01, 0x20, 0x28, 0x31, 0xcc, 0x12, 0x96, 0x76, 0x01, 0x1b, 0x3f, 0x37, 0x1d, 0x12, 0x42, 0x21, 0x12, 0xea, 0xe6, 0x1b, 0x54, 0x50, 0x40, 0x74, 0x42, 0x61, 0x12, 0x42, 0xc4, 0xf6, 0x56, 0x34, 0xf4, 0x98, 0xa1, 0xb2, 0x21, 0x15, 0x78, 0xe1, 0xa8, 0xd1, 0x70, 0x7c, 0xc0, 0xba, 0xaa, 0x80, 0x67, 0x01, 0x60, 0x68, 0x31, 0x72, 0x4a, 0x00, 0x6c, 0x87, 0x77, 0xa6, 0x06, 0x6c, 0x86, 0x6c, 0x88, 0x82, 0x4a, 0x00, 0x9c, 0x39, 0x42, 0x21, 0x11, 0x21, 0xa7, 0xff, 0x32, 0x21, 0x15, 0x80, 0x50, 0x01, 0x50, 0x58, 0x31, 0x01, 0xa0, 0xe9, 0xc0, 0x00, 0x00, 0xf2, 0xaf, 0x80, 0xd2, 0xa0, 0x7f, 0x0c, 0x0e, 0x0c, 0x0b, 0x72, 0x21, 0x15, 0x68, 0xc1, 0x1b, 0x87, 0x80, 0x70, 0x74, 0x72, 0x61, 0x15, 0x70, 0x66, 0xc0, 0x56, 0x46, 0xed, 0xc1, 0xea, 0xea, 0x3c, 0x29, 0x38, 0xd1, 0x28, 0xc1, 0xa2, 0x03, 0x00, 0x3a, 0x22, 0x80, 0xaa, 0x01, 0x22, 0xc2, 0x80, 0x02, 0x02, 0x7f, 0xa0, 0xa8, 0x31, 0x80, 0x00, 0x01, 0x00, 0x08, 0x31, 0xa0, 0xa0, 0xc0, 0xa7, 0xa9, 0x05, 0x42, 0xc0, 0xce, 0x42, 0x43, 0x00, 0x61, 0xcb, 0xf5, 0x62, 0x06, 0x5e, 0xbc, 0x66, 0x58, 0xc1, 0x0b, 0x55, 0xa6, 0x15, 0x30, 0x61, 0xa9, 0xed, 0x0c, 0x07, 0x48, 0xc1, 0x72, 0x61, 0x15, 0x6a, 0x44, 0x82, 0x21, 0x15, 0xb2, 0x04, 0x67, 0x6a, 0xd8, 0xd2, 0x0d, 0x68, 0xa2, 0x02, 0x7f, 0xd0, 0xbb, 0xc0, 0xba, 0xaa, 0xb8, 0xd1, 0x1b, 0x98, 0x8a, 0xbb, 0xa2, 0x4b, 0x00, 0x90, 0x80, 0x74, 0x82, 0x61, 0x15, 0x87, 0x95, 0xda, 0x08, 0x0c, 0x02, 0x20, 0x1b, 0x0c, 0x12, 0xc0, 0x00, 0x00, 0xc8, 0x51, 0xd8, 0x61, 0xe8, 0x71, 0xf8, 0x81, 0x08, 0x41, 0x12, 0xc1, 0x60, 0x0d, 0xf0, 0x00, 0x28, 0x87, 0xfe, 0x3f, 0x82, 0xc2, 0xfe, 0x12, 0xc1, 0xa0, 0xc2, 0x61, 0x0a, 0xe2, 0x61, 0x0c, 0xf9, 0xd1, 0x09, 0x91, 0x69, 0xe1, 0x52, 0x61, 0x13, 0xd9, 0xb1, 0x89, 0x11, 0xd1, 0xb4, 0xe9, 0xc0, 0x20, 0x00, 0x92, 0x2d, 0xe0, 0x00, 0x08, 0x40, 0x90, 0x90, 0xb1, 0xc0, 0x20, 0x00, 0xa2, 0x2d, 0xe3, 0x00, 0x08, 0x40, 0xa0, 0xa0, 0xb1, 0xa0, 0xf9, 0xc0, 0xc0, 0x20, 0x00, 0x62, 0x2d, 0xe2, 0x00, 0x08, 0x40, 0x60, 0x60, 0xb1, 0xc0, 0x20, 0x00, 0x79, 0x01, 0x02, 0x2d, 0xe1, 0x00, 0x08, 0x40, 0xaa, 0x99, 0x2d, 0x09, 0x88, 0xe1, 0x00, 0x00, 0xb1, 0x0a, 0xe6, 0x80, 0x85, 0x30, 0x60, 0x00, 0xc0, 0xcd, 0x00, 0x40, 0x63, 0x30, 0x80, 0x66, 0x30, 0x60, 0x60, 0x74, 0x8c, 0x66, 0xcd, 0x0e, 0x2d, 0x0f, 0xed, 0x00, 0xfd, 0x09, 0x22, 0x61, 0x10, 0xc0, 0xdf, 0x31, 0x4d, 0x02, 0x20, 0x5f, 0x31, 0x59, 0xf1, 0x3d, 0x05, 0x85, 0x72, 0x05, 0x5d, 0x0d, 0x4d, 0x0c, 0x39, 0x31, 0x29, 0x41, 0x3d, 0x0d, 0x2d, 0x0c, 0x85, 0x71, 0x05, 0x0c, 0x06, 0x0c, 0x10, 0x0c, 0x07, 0x58, 0x31, 0xb8, 0x41, 0x3a, 0x55, 0x2a, 0x4b, 0x40, 0x70, 0x83, 0xb7, 0xb4, 0x01, 0x1b, 0x55, 0xbd, 0x04, 0xad, 0x05, 0x50, 0x60, 0x83, 0x77, 0x06, 0x03, 0xbd, 0x00, 0x0c, 0x0a, 0xf0, 0x4f, 0x20, 0xf2, 0x61, 0x06, 0xe2, 0x61, 0x12, 0x38, 0xf1, 0x22, 0x21, 0x10, 0xa2, 0x61, 0x14, 0xb2, 0x61, 0x15, 0xe0, 0x8f, 0x31, 0xf0, 0x5f, 0x31, 0x59, 0x51, 0x82, 0x61, 0x11, 0x05, 0x6d, 0x05, 0xe2, 0x21, 0x15, 0xf2, 0x21, 0x14, 0x52, 0x21, 0x11, 0x42, 0x21, 0x12, 0x39, 0x71, 0x29, 0x81, 0x3d, 0x0d, 0x2d, 0x0c, 0xc5, 0x6b, 0x05, 0x08, 0x71, 0x30, 0x00, 0xc0, 0x38, 0x81, 0x20, 0xa3, 0xc0, 0xa7, 0xb3, 0x01, 0x0b, 0x00, 0x70, 0x2a, 0x11, 0xf0, 0x5f, 0x20, 0x4d, 0x0e, 0x10, 0x47, 0x40, 0xa0, 0x30, 0x81, 0x45, 0x6d, 0x05, 0x38, 0x01, 0x80, 0x42, 0x01, 0x58, 0xe1, 0x40, 0x48, 0x31, 0x1b, 0x44, 0x40, 0x41, 0x21, 0x40, 0x20, 0x60, 0x50, 0x24, 0x83, 0x58, 0x51, 0x48, 0x61, 0x22, 0x43, 0x00, 0x29, 0x21, 0x3d, 0x0d, 0x2d, 0x0c, 0x45, 0x67, 0x05, 0x52, 0x21, 0x11, 0x42, 0x21, 0x12, 0xdd, 0x03, 0xcd, 0x02, 0x38, 0xf1, 0x22, 0x21, 0x10, 0x45, 0x66, 0x05, 0x3a, 0x0d, 0x2a, 0x2c, 0xc7, 0xb2, 0x01, 0x1b, 0x00, 0xe0, 0x4e, 0x20, 0xf0, 0x5f, 0x20, 0xc2, 0x21, 0x00, 0x10, 0x47, 0x40, 0xd2, 0x21, 0x13, 0x20, 0x30, 0x81, 0x70, 0x22, 0x11, 0xc5, 0x67, 0x05, 0x52, 0x01, 0x60, 0x80, 0x62, 0x01, 0x60, 0x68, 0x31, 0x1b, 0x66, 0x60, 0x61, 0x21, 0x60, 0x00, 0x60, 0xd0, 0x06, 0x83, 0x02, 0x4c, 0x01, 0xac, 0x65, 0x21, 0x9e, 0xff, 0xc0, 0x20, 0x00, 0x31, 0x58, 0xe9, 0x48, 0x11, 0x80, 0x50, 0x01, 0x50, 0x58, 0x31, 0x00, 0x04, 0x40, 0x32, 0x23, 0xf9, 0x48, 0x21, 0x30, 0x30, 0xb1, 0x80, 0x44, 0x01, 0x40, 0x48, 0x31, 0x01, 0x0b, 0xe9, 0xc0, 0x00, 0x00, 0xc8, 0xa1, 0xd8, 0xb1, 0xe8, 0xc1, 0xf8, 0xd1, 0x08, 0x91, 0x12, 0xc1, 0x60, 0x0d, 0xf0, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x9d, 0x03, 0x12, 0xc1, 0xb0, 0x79, 0x71, 0x49, 0x51, 0x62, 0x61, 0x12, 0x52, 0x61, 0x11, 0x09, 0x81, 0x22, 0x61, 0x10, 0xf9, 0xc1, 0xd9, 0xa1, 0xe9, 0xb1, 0xc9, 0x91, 0x0c, 0x0e, 0x0c, 0x0c, 0xd1, 0x50, 0xea, 0xf2, 0x01, 0x54, 0x99, 0x61, 0x0c, 0x22, 0x02, 0x21, 0x10, 0x22, 0x61, 0x13, 0x52, 0x21, 0x12, 0x62, 0x21, 0x11, 0x62, 0x41, 0x10, 0x52, 0x41, 0x11, 0x0c, 0x12, 0x00, 0x10, 0x40, 0x00, 0x22, 0xa1, 0x02, 0x01, 0x58, 0x09, 0xe1, 0x20, 0x20, 0xf4, 0x29, 0xd1, 0x0c, 0x14, 0x5d, 0x0f, 0x32, 0xa0, 0x80, 0x08, 0x0d, 0xc0, 0x2c, 0xd1, 0x02, 0x20, 0x3e, 0x3a, 0x22, 0x20, 0x28, 0x21, 0x32, 0xc1, 0x10, 0x29, 0xf1, 0x20, 0x2e, 0xc0, 0x80, 0x22, 0x01, 0x20, 0x28, 0x31, 0xc0, 0x00, 0x00, 0x32, 0xc1, 0x11, 0x0c, 0x04, 0x5d, 0x0f, 0x08, 0x0d, 0xed, 0x02, 0x02, 0x20, 0x3e, 0x2d, 0x0c, 0xc0, 0x00, 0x00, 0x38, 0xd1, 0x08, 0x0d, 0xcd, 0x02, 0x08, 0xd0, 0x0c, 0x12, 0xc0, 0x00, 0x00, 0x22, 0x21, 0x10, 0x38, 0x61, 0x52, 0x01, 0x11, 0x82, 0x21, 0x11, 0x62, 0x01, 0x10, 0x0c, 0x19, 0x80, 0x66, 0xc0, 0x82, 0x21, 0x12, 0x60, 0x69, 0x93, 0x62, 0x41, 0x10, 0x80, 0x55, 0xc0, 0x88, 0xe1, 0x50, 0x59, 0x93, 0x52, 0x41, 0x11, 0x89, 0x01, 0x08, 0x0d, 0x48, 0x51, 0x02, 0x20, 0x12, 0x72, 0xc1, 0x12, 0xc0, 0x00, 0x00, 0x28, 0xf1, 0x02, 0x01, 0x12, 0x2a, 0x2e, 0x80, 0xe0, 0x01, 0x02, 0x01, 0x13, 0xe0, 0xe8, 0x31, 0x2a, 0xee, 0x80, 0x00, 0x01, 0x80, 0xee, 0x01, 0xe0, 0xe8, 0x31, 0x00, 0x08, 0x31, 0x00, 0xcc, 0xc0, 0x08, 0x0d, 0x80, 0xcc, 0x01, 0x08, 0xc0, 0xc0, 0xc8, 0x31, 0xc0, 0x00, 0x00, 0x32, 0x21, 0x13, 0x0b, 0x33, 0x32, 0x61, 0x13, 0x56, 0xb3, 0xf4, 0x22, 0x01, 0x12, 0x08, 0x0d, 0x80, 0x22, 0x01, 0x08, 0x00, 0x20, 0x28, 0x31, 0xc0, 0x00, 0x00, 0xe6, 0x52, 0x12, 0x22, 0x01, 0x13, 0x08, 0x0d, 0x80, 0x22, 0x01, 0x08, 0x00, 0x20, 0x28, 0x31, 0xc0, 0x00, 0x00, 0xa6, 0x52, 0x17, 0x71, 0xb5, 0xff, 0x41, 0x68, 0xfa, 0x61, 0x47, 0xfc, 0x38, 0x04, 0x52, 0x06, 0x05, 0x70, 0x33, 0x20, 0x1b, 0x55, 0x52, 0x46, 0x05, 0x39, 0x04, 0x0c, 0xf2, 0x7c, 0x10, 0x07, 0x2e, 0x01, 0x0d, 0x0e, 0x07, 0x22, 0x01, 0x2d, 0x00, 0x6c, 0x10, 0x80, 0xe2, 0x01, 0xe0, 0xe8, 0x31, 0x1c, 0xf2, 0x07, 0x2c, 0x01, 0x0d, 0x0c, 0x07, 0x22, 0x01, 0x2d, 0x00, 0x32, 0xc1, 0x10, 0x0c, 0x14, 0x5d, 0x0f, 0x80, 0xc2, 0x01, 0x08, 0x0d, 0xc0, 0xc8, 0x31, 0x02, 0x20, 0x3e, 0x2d, 0x0e, 0xc0, 0x00, 0x00, 0x5d, 0x0f, 0x2d, 0x0c, 0x08, 0x0d, 0x32, 0xc1, 0x11, 0x02, 0x20, 0x3e, 0x0c, 0x04, 0xc0, 0x00, 0x00, 0x08, 0x81, 0xd8, 0xa1, 0xf8, 0xc1, 0x38, 0x71, 0x22, 0x21, 0x14, 0xe2, 0x43, 0x00, 0xc2, 0x42, 0x00, 0xe8, 0xb1, 0xc8, 0x91, 0x12, 0xc1, 0x50, 0x0d, 0xf0, 0x9d, 0x05, 0xad, 0x03, 0x12, 0xc1, 0xb0, 0xd9, 0xe1, 0xe9, 0xf1, 0x79, 0x81, 0x0c, 0x03, 0x0c, 0x05, 0xf2, 0x61, 0x10, 0x09, 0xc1, 0xc9, 0xd1, 0x62, 0x61, 0x13, 0x29, 0x51, 0x49, 0x61, 0x22, 0xa0, 0x77, 0x1c, 0x04, 0x0c, 0x06, 0xc1, 0xe5, 0xe9, 0xa2, 0x61, 0x11, 0x08, 0x0c, 0x92, 0x61, 0x12, 0x02, 0x20, 0x25, 0xf2, 0x21, 0x13, 0xc0, 0x00, 0x00, 0x0c, 0x03, 0x0c, 0xf4, 0x0c, 0x65, 0x0c, 0x66, 0x08, 0x0c, 0xed, 0x02, 0x02, 0x20, 0x25, 0x22, 0xa0, 0x77, 0xc0, 0x00, 0x00, 0x0c, 0x03, 0x1c, 0x84, 0x0c, 0x55, 0x0c, 0x56, 0x08, 0x0c, 0xdd, 0x02, 0x02, 0x20, 0x25, 0x22, 0xa0, 0x77, 0xc0, 0x00, 0x00, 0x0c, 0x03, 0x1c, 0x84, 0x0c, 0x35, 0x0c, 0x36, 0x08, 0x0c, 0x29, 0x91, 0x02, 0x20, 0x25, 0x22, 0xa0, 0x77, 0xc0, 0x00, 0x00, 0x0c, 0x03, 0x0c, 0x94, 0x0c, 0x75, 0x0c, 0x06, 0x08, 0x0c, 0x29, 0xa1, 0x02, 0x20, 0x25, 0x22, 0xa0, 0x77, 0xc0, 0x00, 0x00, 0x08, 0x0c, 0x29, 0x71, 0x02, 0x20, 0x10, 0x0c, 0x12, 0xc0, 0x00, 0x00, 0xe2, 0x41, 0x10, 0xd2, 0x41, 0x11, 0x8c, 0xcf, 0x08, 0x0c, 0x22, 0xc1, 0x10, 0x02, 0x20, 0x45, 0x32, 0xc1, 0x11, 0xc0, 0x00, 0x00, 0x22, 0xa0, 0x77, 0x0c, 0x03, 0x1c, 0x04, 0x0c, 0x25, 0x08, 0x0c, 0x0c, 0x26, 0x02, 0x20, 0x27, 0x0c, 0x17, 0xc0, 0x00, 0x00, 0xe9, 0xb1, 0x22, 0xa0, 0x77, 0x0c, 0x03, 0x1c, 0x84, 0x0c, 0x75, 0x08, 0x0c, 0x0c, 0x17, 0x92, 0x01, 0x10, 0x82, 0x01, 0x11, 0xe0, 0x99, 0xc0, 0xd0, 0x88, 0xc0, 0x80, 0x87, 0x93, 0x90, 0x97, 0x93, 0x92, 0x41, 0x10, 0x82, 0x41, 0x11, 0x02, 0x20, 0x27, 0x0c, 0x76, 0xc0, 0x00, 0x00, 0x08, 0x0c, 0xe2, 0x21, 0x11, 0x02, 0x20, 0x14, 0x28, 0x61, 0xc0, 0x00, 0x00, 0x0c, 0x05, 0x0c, 0x06, 0x0c, 0x07, 0x4d, 0x02, 0x0c, 0x03, 0x39, 0x21, 0x39, 0x11, 0x39, 0x01, 0x08, 0x0c, 0x0c, 0x12, 0x02, 0x20, 0x1a, 0x3d, 0x0e, 0xc0, 0x00, 0x00, 0x28, 0x51, 0x78, 0x81, 0x62, 0xc1, 0x13, 0x42, 0x01, 0x11, 0x58, 0x91, 0x32, 0x01, 0x10, 0xed, 0x05, 0xf9, 0x11, 0x69, 0x01, 0x79, 0x21, 0x72, 0xc1, 0x12, 0x08, 0x0c, 0x68, 0xa1, 0x02, 0x20, 0x43, 0xfd, 0x06, 0xc0, 0x00, 0x00, 0x08, 0x0c, 0x02, 0x20, 0x1b, 0x0c, 0x12, 0xc0, 0x00, 0x00, 0x78, 0xb1, 0x22, 0xa0, 0x77, 0x0c, 0x03, 0x1c, 0x04, 0x08, 0x0c, 0x0c, 0x05, 0x02, 0x20, 0x27, 0x0c, 0x06, 0xc0, 0x00, 0x00, 0x7d, 0x0d, 0x22, 0xa0, 0x77, 0x0c, 0x03, 0x0c, 0xf4, 0x08, 0x0c, 0x0c, 0x65, 0x02, 0x20, 0x27, 0x0c, 0x66, 0xc0, 0x00, 0x00, 0x7d, 0x0e, 0x22, 0xa0, 0x77, 0x0c, 0x03, 0x1c, 0x84, 0x08, 0x0c, 0x0c, 0x55, 0x02, 0x20, 0x27, 0x0c, 0x56, 0xc0, 0x00, 0x00, 0x7d, 0x0f, 0x22, 0xa0, 0x77, 0x0c, 0x03, 0x1c, 0x84, 0x0c, 0x35, 0x08, 0x0c, 0x0c, 0x36, 0x02, 0x20, 0x27, 0xd8, 0x71, 0xc0, 0x00, 0x00, 0x7d, 0x0d, 0x22, 0xa0, 0x77, 0x0c, 0x03, 0x0c, 0x94, 0x08, 0x0c, 0x0c, 0x75, 0x02, 0x20, 0x27, 0x0c, 0x06, 0xc0, 0x00, 0x00, 0x22, 0xa0, 0x77, 0x0c, 0x03, 0x1c, 0x84, 0x0c, 0x75, 0x08, 0x0c, 0x0c, 0x76, 0x02, 0x20, 0x27, 0x0c, 0x07, 0xc0, 0x00, 0x00, 0x22, 0xa0, 0x77, 0x0c, 0x03, 0x1c, 0x04, 0x0c, 0x25, 0x08, 0x0c, 0x0c, 0x26, 0x02, 0x20, 0x27, 0x0c, 0x07, 0xc0, 0x00, 0x00, 0x08, 0x0c, 0xd2, 0x21, 0x12, 0x02, 0x20, 0x10, 0x0c, 0x02, 0xc0, 0x00, 0x00, 0x08, 0xc1, 0xc8, 0xd1, 0xe8, 0xf1, 0x32, 0x01, 0x12, 0xf2, 0x21, 0x10, 0x32, 0x4d, 0x00, 0x22, 0x01, 0x13, 0x22, 0x4d, 0x01, 0xd8, 0xe1, 0x12, 0xc1, 0x50, 0x0d, 0xf0, 0x00, 0x12, 0xc1, 0xf0, 0x09, 0x01, 0x51, 0x5d, 0xe8, 0xc0, 0x20, 0x00, 0x22, 0xa0, 0x77, 0x0c, 0x03, 0x0c, 0x84, 0x52, 0x25, 0xd8, 0x61, 0x34, 0xec, 0x01, 0x66, 0xe9, 0x62, 0x06, 0x6f, 0x08, 0x00, 0x50, 0x50, 0x60, 0x80, 0x55, 0x01, 0x02, 0x20, 0x26, 0x50, 0x58, 0x31, 0x80, 0x66, 0x01, 0x60, 0x68, 0x31, 0x60, 0x55, 0xc0, 0x52, 0xc5, 0xe8, 0x50, 0x50, 0x74, 0xc0, 0x00, 0x00, 0x08, 0x01, 0x12, 0xc1, 0x10, 0x0d, 0xf0, 0x00, 0x00, 0x00, 0x5d, 0x03, 0x12, 0xc1, 0xf0, 0x0c, 0x03, 0x09, 0x01, 0xe9, 0x31, 0xd9, 0x21, 0xc9, 0x11, 0xdd, 0x04, 0xc1, 0x55, 0xe9, 0xed, 0x02, 0x08, 0x0c, 0x22, 0xa0, 0x77, 0x02, 0x20, 0x26, 0x1c, 0xb4, 0xc0, 0x00, 0x00, 0x22, 0xa0, 0x77, 0x0c, 0x03, 0x08, 0x0c, 0x0c, 0x54, 0x02, 0x20, 0x26, 0xe0, 0x54, 0x74, 0xc0, 0x00, 0x00, 0xe0, 0x50, 0x34, 0x22, 0xa0, 0x77, 0x08, 0x0c, 0x0c, 0x03, 0x02, 0x20, 0x26, 0x0c, 0x64, 0xc0, 0x00, 0x00, 0x22, 0xa0, 0x77, 0x0c, 0x03, 0x0c, 0xf4, 0x0c, 0x45, 0x08, 0x0c, 0x50, 0x5d, 0x20, 0x02, 0x20, 0x26, 0x50, 0x50, 0x74, 0xc0, 0x00, 0x00, 0x5d, 0x0d, 0x22, 0xa0, 0x77, 0x08, 0x0c, 0x0c, 0x03, 0x02, 0x20, 0x26, 0x0c, 0xf4, 0xc0, 0x00, 0x00, 0xc8, 0x11, 0xd8, 0x21, 0xe8, 0x31, 0x08, 0x01, 0x12, 0xc1, 0x10, 0x0d, 0xf0, 0x4c, 0x87, 0xfe, 0x3f, 0x60, 0x80, 0xfe, 0x3f, 0xc0, 0x80, 0xfe, 0x3f, 0x32, 0xa0, 0xf0, 0x30, 0x11, 0xc0, 0x02, 0x61, 0x2b, 0xe2, 0x61, 0x2e, 0xd2, 0x61, 0x2d, 0xf2, 0x61, 0x2f, 0x22, 0x61, 0x30, 0xc2, 0x61, 0x2c, 0xc1, 0x32, 0xe9, 0x21, 0xb7, 0xeb, 0xf1, 0xfe, 0xeb, 0xc0, 0x20, 0x00, 0x02, 0x2f, 0x00, 0x22, 0x22, 0x80, 0x00, 0x0c, 0x05, 0x56, 0x30, 0x26, 0x22, 0xa0, 0x06, 0x3d, 0x01, 0xc5, 0x37, 0xfb, 0x22, 0xa0, 0x77, 0x0c, 0x03, 0x0c, 0xf4, 0x0c, 0x15, 0x08, 0x0c, 0x0c, 0x16, 0x02, 0x20, 0x27, 0x0c, 0x17, 0xc0, 0x00, 0x00, 0x22, 0xa0, 0x6b, 0x0c, 0x23, 0x0c, 0xa4, 0x08, 0x0c, 0x0c, 0x55, 0x02, 0x20, 0x25, 0x0c, 0x46, 0xc0, 0x00, 0x00, 0x0c, 0x23, 0x0c, 0xa4, 0x0c, 0x55, 0x0c, 0x46, 0x0c, 0x27, 0x08, 0x0c, 0x22, 0x61, 0x2a, 0x02, 0x20, 0x27, 0x22, 0xa0, 0x6b, 0xc0, 0x00, 0x00, 0x08, 0x0c, 0x02, 0x20, 0x28, 0xc0, 0x00, 0x00, 0x08, 0x0c, 0x02, 0x20, 0x30, 0x0c, 0x12, 0xc0, 0x00, 0x00, 0x21, 0x8a, 0xf7, 0x22, 0x12, 0x00, 0x45, 0x5f, 0x03, 0x08, 0x0c, 0x08, 0x60, 0x0c, 0x02, 0xc0, 0x00, 0x00, 0xd1, 0x04, 0xe8, 0xc0, 0x20, 0x00, 0xe2, 0xc1, 0x70, 0x5c, 0xf4, 0xd2, 0x2d, 0xd8, 0x3c, 0x02, 0x0c, 0x08, 0x0c, 0x09, 0xc2, 0xd1, 0xff, 0xc2, 0xcc, 0x10, 0x92, 0x61, 0x32, 0x82, 0x61, 0x33, 0x22, 0x61, 0x35, 0xd0, 0xd0, 0x60, 0xd2, 0x4f, 0x6f, 0xd2, 0xcd, 0x1f, 0x80, 0xdd, 0x01, 0xd0, 0xd8, 0x31, 0xd2, 0x61, 0x34, 0x0c, 0x0d, 0x32, 0x21, 0x34, 0x0d, 0x04, 0xd0, 0x33, 0xc0, 0x80, 0x33, 0x01, 0x30, 0x38, 0x31, 0x37, 0x24, 0x01, 0x0d, 0x03, 0x0c, 0x02, 0x00, 0x20, 0xb3, 0x80, 0x22, 0x01, 0x20, 0x28, 0x31, 0x22, 0x61, 0x36, 0xc5, 0x22, 0xfe, 0x4d, 0x02, 0x02, 0x21, 0x34, 0x22, 0x21, 0x36, 0xc0, 0xfd, 0x90, 0x20, 0x00, 0xc0, 0xf0, 0x00, 0x11, 0xf6, 0x4d, 0x18, 0x42, 0x5f, 0x80, 0x32, 0x21, 0x33, 0x00, 0x54, 0xc0, 0x5a, 0x53, 0x00, 0x55, 0x11, 0x50, 0x30, 0x31, 0x32, 0x61, 0x33, 0x5d, 0x04, 0x46, 0x08, 0x00, 0x66, 0x4d, 0x10, 0x62, 0x21, 0x33, 0x2b, 0x76, 0x70, 0x72, 0x21, 0x00, 0x77, 0x11, 0x70, 0x60, 0x31, 0x62, 0x61, 0x33, 0x52, 0x21, 0x33, 0x5a, 0x50, 0x00, 0x55, 0x11, 0x50, 0x50, 0x31, 0x52, 0x5f, 0x80, 0x62, 0x21, 0x32, 0x40, 0x05, 0xc0, 0xdc, 0x16, 0x00, 0x60, 0x11, 0x60, 0x60, 0x31, 0xa6, 0x26, 0x09, 0x0c, 0x17, 0x0b, 0x86, 0x82, 0x61, 0x31, 0x72, 0x61, 0x32, 0x72, 0x21, 0x30, 0x0c, 0x02, 0x62, 0x21, 0x31, 0x0c, 0x89, 0x60, 0x60, 0xc0, 0x0d, 0x09, 0x00, 0x66, 0x11, 0x60, 0x60, 0x31, 0x67, 0x29, 0x01, 0x0d, 0x06, 0x00, 0x20, 0xb3, 0x00, 0x02, 0x11, 0x00, 0x00, 0x31, 0x02, 0x61, 0x29, 0x8c, 0xf7, 0x21, 0x9a, 0xff, 0x32, 0x21, 0x36, 0x6d, 0x00, 0x01, 0x80, 0xe7, 0xc0, 0x00, 0x00, 0x02, 0x21, 0x29, 0x02, 0x5f, 0x80, 0x31, 0x96, 0xff, 0x22, 0x21, 0x36, 0x5c, 0xf4, 0x3a, 0x22, 0xea, 0x3d, 0x22, 0x02, 0x00, 0x1b, 0xdd, 0x22, 0x43, 0x00, 0x32, 0x21, 0x35, 0xd0, 0xd0, 0xf4, 0x0b, 0x33, 0x32, 0x61, 0x35, 0x56, 0x33, 0xf1, 0xc6, 0x6a, 0x00, 0x1b, 0x6d, 0xc0, 0x5d, 0x90, 0x42, 0x95, 0x80, 0x60, 0xd0, 0xf4, 0x20, 0x44, 0x90, 0x42, 0x94, 0x00, 0x42, 0x55, 0x80, 0x07, 0x9d, 0xe8, 0x22, 0xa0, 0x77, 0x0c, 0x03, 0x0c, 0xf4, 0x0c, 0x15, 0x08, 0x0f, 0x0c, 0x16, 0x02, 0x20, 0x27, 0x0c, 0x07, 0xc0, 0x00, 0x00, 0x22, 0xa0, 0x77, 0x0c, 0x03, 0x08, 0x0f, 0x0c, 0x74, 0x02, 0x20, 0x26, 0x0c, 0x05, 0xc0, 0x00, 0x00, 0x22, 0xa0, 0x77, 0x08, 0x0f, 0x0c, 0x03, 0x02, 0x20, 0x24, 0x0c, 0xf4, 0xc0, 0x00, 0x00, 0xf2, 0x11, 0x50, 0x0c, 0x0c, 0x0c, 0x0d, 0x32, 0xa0, 0xfb, 0x42, 0xa1, 0x00, 0xa2, 0x01, 0x70, 0xa2, 0x61, 0x37, 0x42, 0x61, 0x39, 0x30, 0x22, 0x10, 0x22, 0x61, 0x38, 0xb2, 0x21, 0x37, 0x22, 0x01, 0x9f, 0xb7, 0x3d, 0x02, 0x46, 0x28, 0x00, 0xf2, 0xa4, 0x00, 0x02, 0xa4, 0x00, 0x22, 0xa7, 0xff, 0x5d, 0x02, 0x3d, 0x00, 0xf7, 0x32, 0x01, 0x5d, 0x0f, 0x07, 0x35, 0x01, 0x3d, 0x05, 0x30, 0xf0, 0xf4, 0x42, 0x21, 0x38, 0xd0, 0x30, 0x74, 0x2d, 0x0f, 0xc5, 0xd1, 0xff, 0x02, 0x21, 0x39, 0x1b, 0xdd, 0xd0, 0xd0, 0xf4, 0x0b, 0x00, 0x02, 0x61, 0x39, 0x56, 0xe0, 0xfb, 0x72, 0x21, 0x2a, 0x22, 0xa0, 0x6b, 0x0c, 0x23, 0x01, 0x9b, 0xe8, 0x0c, 0xa4, 0x08, 0x00, 0x0c, 0x55, 0x02, 0x20, 0x27, 0x0c, 0x46, 0xc0, 0x00, 0x00, 0x31, 0x65, 0xeb, 0x41, 0x57, 0xf0, 0x28, 0x03, 0xc1, 0x95, 0xe8, 0x40, 0x22, 0x20, 0x29, 0x03, 0x22, 0xa0, 0x77, 0x0c, 0x03, 0x0c, 0xf4, 0x0c, 0x15, 0x08, 0x0c, 0x0c, 0x16, 0x02, 0x20, 0x27, 0x0c, 0x07, 0xc0, 0x00, 0x00, 0x45, 0xc8, 0xff, 0x22, 0xa0, 0x77, 0x0c, 0x03, 0x1c, 0xb4, 0x0c, 0x75, 0x08, 0x0c, 0x0c, 0x06, 0x02, 0x20, 0x27, 0x72, 0xa0, 0xff, 0xc0, 0x00, 0x00, 0xc2, 0x21, 0x2c, 0xd2, 0x21, 0x2d, 0xe2, 0x21, 0x2e, 0xf2, 0x21, 0x2f, 0x22, 0xa0, 0xf0, 0x02, 0x21, 0x2b, 0x2a, 0x11, 0x0d, 0xf0, 0xd7, 0xb2, 0x05, 0xf2, 0x11, 0x37, 0xc6, 0xd5, 0xff, 0x22, 0xc1, 0xf0, 0x2a, 0x2c, 0x02, 0x02, 0x80, 0xea, 0x3c, 0xd7, 0xb0, 0x1d, 0x32, 0x03, 0x00, 0xd7, 0xb3, 0x56, 0x1b, 0xcc, 0xc0, 0xc0, 0x74, 0xea, 0x4c, 0x42, 0x04, 0x00, 0xd7, 0x34, 0xf2, 0x02, 0xc1, 0xf0, 0x0a, 0x0c, 0x02, 0x00, 0x80, 0x86, 0x0f, 0x00, 0x02, 0x61, 0x3a, 0x07, 0xbd, 0x38, 0x52, 0xa0, 0x01, 0x42, 0x02, 0x7f, 0x22, 0xd1, 0xff, 0x40, 0x30, 0xc0, 0x22, 0xc2, 0x10, 0x40, 0x4d, 0xc0, 0x20, 0x2c, 0x90, 0x30, 0x30, 0x74, 0xf2, 0x92, 0x7f, 0x22, 0x92, 0x80, 0x30, 0x35, 0x83, 0xf0, 0x22, 0xc0, 0x00, 0x22, 0x11, 0x20, 0x20, 0x31, 0x40, 0x22, 0x82, 0x85, 0x8c, 0x05, 0x02, 0x21, 0x3a, 0x20, 0xff, 0x80, 0xf0, 0xf0, 0xf4, 0xd0, 0x20, 0xc0, 0x56, 0x72, 0xee, 0x32, 0xa0, 0x2e, 0xf2, 0xd1, 0xff, 0xf2, 0xcf, 0x10, 0xf0, 0xfc, 0x90, 0xf2, 0x1f, 0x80, 0xc7, 0xb3, 0x02, 0x86, 0xb4, 0xff, 0x1b, 0xcc, 0xc0, 0xc0, 0x74, 0x86, 0xb2, 0xff, 0xf1, 0x5c, 0xe8, 0x08, 0x0f, 0x02, 0x20, 0x32, 0xc0, 0x00, 0x00, 0x08, 0x0f, 0x02, 0x20, 0x31, 0xc0, 0x00, 0x00, 0x08, 0x0f, 0x02, 0x20, 0x2f, 0xc0, 0x00, 0x00, 0x2c, 0xfd, 0xc0, 0xfd, 0x90, 0x22, 0x9f, 0x7f, 0x0b, 0xdd, 0x52, 0x9f, 0x80, 0xd0, 0xd0, 0xf4, 0x27, 0xa5, 0x02, 0x52, 0x5f, 0x7f, 0x56, 0x8d, 0xfe, 0x3c, 0x00, 0xf1, 0x4f, 0xe8, 0x0c, 0x0d, 0x21, 0x14, 0xff, 0x86, 0x84, 0xff, 0x00, 0x60, 0x87, 0xfe, 0x3f, 0x12, 0xc1, 0xf0, 0xc2, 0x61, 0x01, 0x02, 0x61, 0x00, 0x20, 0xc2, 0x20, 0xdc, 0x13, 0x21, 0xfb, 0xff, 0x01, 0x0e, 0xe7, 0xc0, 0x00, 0x00, 0x2d, 0x0c, 0x0c, 0x53, 0xc5, 0x8e, 0x05, 0xc6, 0x05, 0x00, 0x01, 0xa1, 0xee, 0x37, 0xb0, 0x0b, 0x05, 0x8e, 0x05, 0x40, 0x22, 0x11, 0x06, 0x02, 0x00, 0x00, 0x00, 0x00, 0x40, 0x22, 0x11, 0x05, 0x8d, 0x05, 0xc2, 0x21, 0x01, 0x02, 0x21, 0x00, 0x12, 0xc1, 0x10, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x22, 0x82, 0x20, 0x2c, 0x41, 0x0d, 0xf0, 0x41, 0x6e, 0xe6, 0xc0, 0x20, 0x00, 0x32, 0x24, 0x47, 0x3a, 0x32, 0xc0, 0x20, 0x00, 0x32, 0x64, 0x41, 0x0d, 0xf0, 0x00, 0x12, 0xc1, 0xf0, 0x39, 0x01, 0x09, 0x11, 0x01, 0x1c, 0xf3, 0xc9, 0x21, 0x02, 0x00, 0x39, 0xc1, 0x65, 0xe6, 0xdc, 0x20, 0x7c, 0xc5, 0xc0, 0x20, 0x00, 0x32, 0x2c, 0x59, 0x50, 0x33, 0x10, 0xc0, 0x20, 0x00, 0x32, 0x6c, 0x59, 0x86, 0x07, 0x00, 0x66, 0x10, 0x07, 0x2c, 0x06, 0x60, 0x44, 0x20, 0xc6, 0x04, 0x00, 0x66, 0x20, 0x10, 0x0c, 0x38, 0xc0, 0x20, 0x00, 0x72, 0x2c, 0x59, 0x80, 0x77, 0x20, 0xc0, 0x20, 0x00, 0x72, 0x6c, 0x59, 0x0c, 0x03, 0x01, 0x1f, 0xe8, 0xc0, 0x20, 0x00, 0x32, 0x6c, 0x50, 0xc0, 0x20, 0x00, 0x22, 0x6c, 0x51, 0xc0, 0x20, 0x00, 0x22, 0xa0, 0x77, 0x0c, 0x55, 0x0c, 0x56, 0x0c, 0x17, 0x08, 0x00, 0x42, 0x6c, 0x40, 0x02, 0x20, 0x27, 0x1c, 0xc4, 0xc0, 0x00, 0x00, 0x51, 0x88, 0xe9, 0x41, 0x89, 0xe9, 0x31, 0x07, 0xe7, 0xc0, 0x20, 0x00, 0x22, 0x23, 0xf2, 0x50, 0x22, 0x10, 0x40, 0x22, 0x20, 0xc0, 0x20, 0x00, 0x22, 0x63, 0xf2, 0x0c, 0x12, 0x01, 0x95, 0xea, 0xc0, 0x00, 0x00, 0x22, 0xa0, 0x77, 0x0c, 0x03, 0x1c, 0xc4, 0x01, 0x0b, 0xe8, 0x0c, 0x55, 0x08, 0x00, 0x0c, 0x56, 0x02, 0x20, 0x27, 0x0c, 0x07, 0xc0, 0x00, 0x00, 0xc0, 0x20, 0x00, 0x28, 0x01, 0x08, 0x11, 0x22, 0x6c, 0x44, 0xc8, 0x21, 0x12, 0xc1, 0x10, 0x0d, 0xf0, 0x00, 0x00, 0x00, 0x20, 0x90, 0x54, 0xa2, 0xaf, 0xc0, 0x51, 0x37, 0xe6, 0xc0, 0x20, 0x00, 0x82, 0x25, 0x46, 0xa0, 0x88, 0x10, 0x90, 0x88, 0x20, 0xc0, 0x20, 0x00, 0x82, 0x65, 0x46, 0x30, 0x60, 0x04, 0x7c, 0xe7, 0xc0, 0x20, 0x00, 0x42, 0x25, 0x6a, 0x70, 0x44, 0x10, 0x60, 0x44, 0x20, 0xc0, 0x20, 0x00, 0x42, 0x65, 0x6a, 0x0d, 0xf0, 0xf0, 0x80, 0xfe, 0x3f, 0x00, 0x00, 0x00, 0x0f, 0x61, 0xfe, 0xff, 0x28, 0x06, 0x66, 0x02, 0x25, 0x51, 0x15, 0xe7, 0x41, 0xfc, 0xff, 0x21, 0xf8, 0xe5, 0xc0, 0x20, 0x00, 0x32, 0x22, 0x96, 0x50, 0x33, 0x10, 0x30, 0x3f, 0x41, 0x66, 0x13, 0x0f, 0xc0, 0x20, 0x00, 0x22, 0x22, 0x95, 0x40, 0x22, 0x10, 0x20, 0x28, 0x75, 0x29, 0x06, 0x0d, 0xf0, 0xc0, 0x20, 0x00, 0x22, 0x22, 0x97, 0x06, 0xfb, 0xff, 0x00, 0x00, 0x00, 0x50, 0x00, 0x80, 0x00, 0x12, 0xc1, 0xf0, 0x09, 0x01, 0x85, 0xfb, 0xff, 0x26, 0x22, 0x0c, 0x0c, 0x42, 0x0c, 0x03, 0x41, 0xfb, 0xff, 0x05, 0xeb, 0xff, 0xc6, 0x07, 0x00, 0x01, 0xc9, 0xf2, 0x02, 0x00, 0x65, 0x66, 0x20, 0x0c, 0x0c, 0x42, 0x0c, 0x03, 0x41, 0xf5, 0xff, 0x85, 0xe9, 0xff, 0x46, 0x02, 0x00, 0x0c, 0x42, 0x0c, 0x03, 0x41, 0x02, 0xe8, 0xc5, 0xe8, 0xff, 0x08, 0x01, 0x12, 0xc1, 0x10, 0x0d, 0xf0, 0x00, 0x12, 0xc1, 0xf0, 0x09, 0x01, 0x85, 0xf7, 0xff, 0x26, 0x22, 0x0c, 0x0c, 0x02, 0x0c, 0x03, 0x41, 0xeb, 0xff, 0x05, 0xe7, 0xff, 0xc6, 0x07, 0x00, 0x01, 0xb9, 0xf2, 0x02, 0x00, 0x65, 0x66, 0x20, 0x0c, 0x0c, 0x02, 0x0c, 0x03, 0x41, 0xe5, 0xff, 0x85, 0xe5, 0xff, 0x46, 0x02, 0x00, 0x0c, 0x02, 0x0c, 0x03, 0x41, 0xf2, 0xe7, 0xc5, 0xe4, 0xff, 0x08, 0x01, 0x12, 0xc1, 0x10, 0x0d, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x80, 0x12, 0xc1, 0xf0, 0x09, 0x01, 0xd9, 0x21, 0xc9, 0x11, 0x51, 0x84, 0xef, 0xcd, 0x02, 0xd1, 0xb1, 0xe6, 0xc0, 0x20, 0x00, 0x42, 0x2d, 0x5c, 0x50, 0x44, 0x10, 0xc0, 0x20, 0x00, 0x42, 0x6d, 0x5c, 0x32, 0xa1, 0x01, 0xc0, 0x20, 0x00, 0x32, 0x6d, 0x5b, 0x21, 0xf4, 0xff, 0xc0, 0x20, 0x00, 0x02, 0x2d, 0x5b, 0x20, 0x00, 0x20, 0xc0, 0x20, 0x00, 0x22, 0xa0, 0x64, 0x02, 0x6d, 0x5b, 0x01, 0x39, 0xea, 0xc0, 0x00, 0x00, 0xc0, 0x20, 0x00, 0x62, 0x2d, 0x5c, 0x96, 0x86, 0x00, 0xc0, 0x20, 0x00, 0x72, 0x2d, 0x5c, 0xd6, 0x67, 0xff, 0x31, 0x87, 0xef, 0xc0, 0x20, 0x00, 0x01, 0x97, 0xf2, 0x22, 0x2d, 0x5c, 0x02, 0x00, 0x01, 0x30, 0x22, 0x10, 0x8c, 0x40, 0x26, 0x10, 0x07, 0x26, 0x20, 0x3f, 0x2c, 0x83, 0x86, 0x00, 0x00, 0x32, 0xa0, 0x1a, 0xc0, 0x22, 0x11, 0x85, 0x66, 0x05, 0xd2, 0x21, 0x02, 0x16, 0x22, 0x02, 0x08, 0x1c, 0x9c, 0xb0, 0x42, 0xa1, 0xff, 0x27, 0xb0, 0x05, 0x00, 0x32, 0xc0, 0x86, 0x00, 0x00, 0x20, 0x30, 0xc0, 0x37, 0x34, 0x0c, 0x20, 0x32, 0xa0, 0x00, 0x20, 0x90, 0x3a, 0x22, 0x20, 0x23, 0x41, 0x29, 0x1c, 0xc8, 0x11, 0x08, 0x01, 0x12, 0xc1, 0x10, 0x0d, 0xf0, 0x1c, 0x83, 0x86, 0xf0, 0xff, 0x00, 0x00, 0x00, 0x28, 0xe0, 0x01, 0x00, 0x3c, 0x20, 0x03, 0x00, 0x64, 0x80, 0x0c, 0x00, 0x12, 0xc1, 0xf0, 0x09, 0x01, 0x05, 0xe7, 0xff, 0x01, 0xc6, 0xe5, 0x26, 0x12, 0x2b, 0xac, 0x82, 0x21, 0x79, 0xf2, 0x32, 0x02, 0x01, 0x42, 0x02, 0x65, 0x9c, 0x13, 0x26, 0x24, 0x0f, 0x51, 0xf5, 0xff, 0xc0, 0x20, 0x00, 0x52, 0x60, 0x43, 0x08, 0x01, 0x12, 0xc1, 0x10, 0x0d, 0xf0, 0x61, 0xf2, 0xff, 0xc0, 0x20, 0x00, 0x62, 0x60, 0x43, 0x06, 0xfb, 0xff, 0x71, 0xf0, 0xff, 0xc0, 0x20, 0x00, 0x72, 0x60, 0x43, 0x06, 0xf8, 0xff, 0x00, 0x00, 0x31, 0x6b, 0xf2, 0x22, 0x03, 0x39, 0x32, 0x03, 0x3a, 0x26, 0x22, 0x10, 0x26, 0x13, 0x0d, 0x26, 0x33, 0x0a, 0x0c, 0x23, 0x41, 0xb1, 0xe5, 0xc0, 0x20, 0x00, 0x32, 0x64, 0x68, 0x0d, 0xf0, 0x00, 0xff, 0xff, 0xef, 0xff, 0x11, 0x20, 0x00, 0x00, 0x71, 0xfe, 0xff, 0x81, 0x7d, 0xe5, 0xc0, 0x20, 0x00, 0x62, 0x28, 0x86, 0x21, 0x65, 0xe6, 0x70, 0x66, 0x10, 0xc0, 0x20, 0x00, 0x22, 0x22, 0x46, 0x71, 0xf9, 0xff, 0x27, 0x72, 0x51, 0x51, 0xa7, 0xe5, 0xc0, 0x20, 0x00, 0x92, 0x25, 0x56, 0x77, 0x19, 0x03, 0x0c, 0x12, 0x0d, 0xf0, 0xc0, 0x20, 0x00, 0x22, 0x25, 0x4f, 0x20, 0xa2, 0x15, 0x66, 0x3a, 0xef, 0x20, 0xb4, 0x25, 0x66, 0x2b, 0xe9, 0x20, 0x37, 0x85, 0x92, 0xa0, 0x7f, 0x37, 0x89, 0xe0, 0xc0, 0x20, 0x00, 0x22, 0x25, 0x4f, 0x20, 0x42, 0x15, 0x66, 0x34, 0xd4, 0x20, 0xa4, 0x25, 0x66, 0x2a, 0xce, 0x20, 0xb7, 0x85, 0xb7, 0x89, 0xc8, 0xc0, 0x20, 0x00, 0x22, 0x25, 0x56, 0x77, 0x92, 0xbf, 0xc0, 0x20, 0x00, 0x62, 0x68, 0x86, 0x0c, 0x02, 0x0d, 0xf0, 0xe4, 0xf4, 0xfe, 0x3f, 0xb8, 0xf3, 0xfe, 0x3f, 0x12, 0xc1, 0xf0, 0x09, 0x01, 0x26, 0x12, 0x0b, 0x26, 0x22, 0x08, 0x0c, 0x12, 0x08, 0x01, 0x12, 0xc1, 0x10, 0x0d, 0xf0, 0xc5, 0xf6, 0xff, 0x01, 0xf8, 0xff, 0x22, 0x40, 0x00, 0x56, 0xa2, 0xfe, 0xb1, 0xf7, 0xff, 0x0c, 0x1a, 0xa2, 0x4b, 0x00, 0x31, 0x86, 0xe5, 0x7c, 0xf9, 0x71, 0x81, 0xe5, 0xc0, 0x20, 0x00, 0x92, 0x67, 0x49, 0x81, 0x96, 0xeb, 0xc0, 0x20, 0x00, 0x62, 0x27, 0x42, 0x80, 0x66, 0x20, 0xc0, 0x20, 0x00, 0x62, 0x67, 0x42, 0x0c, 0x84, 0x7c, 0x35, 0xc0, 0x20, 0x00, 0x22, 0x23, 0xd0, 0x50, 0x22, 0x10, 0x40, 0x22, 0x20, 0xc0, 0x20, 0x00, 0x22, 0x63, 0xd0, 0x0c, 0x02, 0x46, 0xea, 0xff, 0x00, 0x26, 0x12, 0x02, 0x66, 0x22, 0x2f, 0x51, 0xe3, 0xff, 0x22, 0x05, 0x00, 0xec, 0x62, 0x21, 0x70, 0xe5, 0xc0, 0x20, 0x00, 0x32, 0x22, 0x4a, 0x30, 0x30, 0x14, 0xcc, 0xa3, 0xc0, 0x20, 0x00, 0x42, 0x22, 0x4a, 0x40, 0x40, 0x14, 0x16, 0x34, 0xff, 0x0c, 0x27, 0xc0, 0x20, 0x00, 0x62, 0x22, 0x4a, 0x70, 0x66, 0x10, 0x62, 0x45, 0x01, 0x0d, 0xf0, 0x00, 0x00, 0x00, 0xfe, 0x81, 0xff, 0xff, 0x31, 0x20, 0xe6, 0x61, 0x63, 0xe5, 0xc0, 0x20, 0x00, 0x82, 0x66, 0x44, 0x0c, 0x07, 0xc0, 0x20, 0x00, 0x72, 0x66, 0x51, 0x51, 0xa5, 0xf8, 0xc0, 0x20, 0x00, 0x52, 0x66, 0x40, 0x41, 0x99, 0xe8, 0xc0, 0x20, 0x00, 0x22, 0x23, 0xf2, 0x40, 0x22, 0x10, 0xc0, 0x20, 0x00, 0x22, 0x63, 0xf2, 0x0d, 0xf0, 0x33, 0x33, 0x00, 0x00, 0xff, 0xff, 0x3f, 0xff, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff, 0xcf, 0xff, 0xff, 0xff, 0x3f, 0xa1, 0xfb, 0xff, 0x31, 0xca, 0xf4, 0x61, 0xa0, 0xe9, 0xc0, 0x20, 0x00, 0xa2, 0x66, 0xf8, 0x91, 0xf8, 0xff, 0x81, 0x43, 0xe7, 0xc0, 0x20, 0x00, 0x72, 0x26, 0x9d, 0x90, 0x77, 0x10, 0x80, 0x77, 0x20, 0xc0, 0x20, 0x00, 0x72, 0x66, 0x9d, 0x51, 0xf3, 0xff, 0x41, 0xbc, 0xf4, 0xc0, 0x20, 0x00, 0x22, 0x26, 0x9d, 0x50, 0x22, 0x10, 0x40, 0x22, 0x20, 0xc0, 0x20, 0x00, 0x22, 0x66, 0x9d, 0xb1, 0xee, 0xff, 0xa1, 0x66, 0xea, 0xc0, 0x20, 0x00, 0x92, 0x26, 0x9d, 0xb0, 0x99, 0x10, 0xa0, 0x99, 0x20, 0xc0, 0x20, 0x00, 0x92, 0x66, 0x9d, 0x81, 0xe9, 0xff, 0x71, 0x42, 0xff, 0xc0, 0x20, 0x00, 0x52, 0x26, 0x9d, 0x80, 0x55, 0x10, 0x70, 0x55, 0x20, 0xc0, 0x20, 0x00, 0x52, 0x66, 0x9d, 0x41, 0xc5, 0xee, 0xc0, 0x20, 0x00, 0x22, 0x23, 0x81, 0x40, 0x22, 0x10, 0xc0, 0x20, 0x00, 0x22, 0x63, 0x81, 0x0d, 0xf0, 0x00, 0x41, 0xe7, 0xf1, 0x12, 0xc1, 0xf0, 0xc9, 0x11, 0x09, 0x01, 0x02, 0x04, 0x35, 0xc1, 0x7d, 0xe9, 0x26, 0x10, 0x76, 0x26, 0x30, 0x73, 0x26, 0x40, 0x70, 0x26, 0x50, 0x6d, 0x0c, 0x00, 0xc0, 0x20, 0x00, 0x02, 0x6c, 0xf8, 0x01, 0xd5, 0xff, 0x31, 0xa0, 0xf4, 0xc0, 0x20, 0x00, 0xb2, 0x2c, 0x9d, 0x00, 0xbb, 0x10, 0xc0, 0x20, 0x00, 0xb2, 0x6c, 0x9d, 0xa1, 0xce, 0xff, 0xc0, 0x20, 0x00, 0x92, 0x2c, 0x9d, 0xa0, 0x99, 0x10, 0xc0, 0x20, 0x00, 0x92, 0x6c, 0x9d, 0x81, 0xc9, 0xff, 0xc0, 0x20, 0x00, 0x72, 0x2c, 0x9d, 0x80, 0x77, 0x10, 0xc0, 0x20, 0x00, 0x72, 0x6c, 0x9d, 0x61, 0xc3, 0xff, 0xc0, 0x20, 0x00, 0x52, 0x2c, 0x9d, 0x60, 0x55, 0x10, 0xc0, 0x20, 0x00, 0x52, 0x6c, 0x9d, 0x41, 0x1c, 0xff, 0xc0, 0x20, 0x00, 0x22, 0x23, 0x81, 0x40, 0x22, 0x20, 0xc0, 0x20, 0x00, 0x22, 0x63, 0x81, 0xc8, 0x11, 0x08, 0x01, 0x12, 0xc1, 0x10, 0x0d, 0xf0, 0x22, 0x04, 0x36, 0xc5, 0x2e, 0x00, 0x06, 0xe4, 0xff, 0x00, 0x87, 0x13, 0x00, 0x00, 0x00, 0x02, 0xf2, 0x3f, 0x1c, 0x42, 0x12, 0xc1, 0xe0, 0xc9, 0x11, 0xd9, 0x21, 0xe9, 0x31, 0xf9, 0x41, 0x09, 0x01, 0x01, 0x57, 0xe9, 0xc0, 0x00, 0x00, 0x0c, 0x0c, 0xe1, 0xf8, 0xff, 0xd1, 0xf8, 0xff, 0xf1, 0x7b, 0xf4, 0xc0, 0x20, 0x00, 0x02, 0x2d, 0x84, 0x00, 0x00, 0x34, 0xcc, 0x90, 0xc0, 0x20, 0x00, 0x22, 0x2f, 0xf4, 0x20, 0x2c, 0x34, 0x9c, 0x02, 0x0c, 0x22, 0x01, 0x4d, 0xe9, 0xc0, 0x00, 0x00, 0x3d, 0x0c, 0x1b, 0xcc, 0xc0, 0xc0, 0xf4, 0x37, 0xbe, 0xd7, 0xc8, 0x11, 0xd8, 0x21, 0xe8, 0x31, 0xf8, 0x41, 0x08, 0x01, 0x12, 0xc1, 0x20, 0x0d, 0xf0, 0x00, 0x12, 0xc1, 0xf0, 0x31, 0xa9, 0xf1, 0x09, 0x01, 0x02, 0x03, 0x35, 0x42, 0xae, 0xcf, 0x26, 0x10, 0x0f, 0x26, 0x30, 0x0c, 0x26, 0x40, 0x09, 0x26, 0x50, 0x06, 0x08, 0x01, 0x12, 0xc1, 0x10, 0x0d, 0xf0, 0x3c, 0x06, 0x21, 0xec, 0xe4, 0xc0, 0x20, 0x00, 0x52, 0x22, 0x85, 0x40, 0x55, 0x10, 0x60, 0x55, 0x20, 0xc0, 0x20, 0x00, 0x52, 0x62, 0x85, 0xc0, 0x20, 0x00, 0x02, 0x22, 0x8d, 0x40, 0x00, 0x10, 0xc0, 0x20, 0x00, 0x02, 0x62, 0x8d, 0x02, 0x03, 0x35, 0x26, 0x10, 0x2d, 0x26, 0x30, 0x2a, 0x26, 0x40, 0x02, 0x66, 0x50, 0xc3, 0x62, 0x03, 0x36, 0xb6, 0x26, 0xbd, 0x0c, 0x02, 0x0c, 0x13, 0x0c, 0x14, 0x0c, 0x05, 0x01, 0xe0, 0xe4, 0xc0, 0x00, 0x00, 0x0c, 0x82, 0x0c, 0x03, 0x0c, 0x84, 0x0c, 0x05, 0x01, 0xdc, 0xe4, 0xc0, 0x00, 0x00, 0x86, 0xe7, 0xff, 0x72, 0x03, 0x36, 0xb6, 0x27, 0x98, 0x0c, 0x12, 0x0c, 0x03, 0x0c, 0x14, 0x0c, 0x05, 0x01, 0xd6, 0xe4, 0xc0, 0x00, 0x00, 0x0c, 0x02, 0x0c, 0x83, 0x0c, 0x84, 0x0c, 0x05, 0x01, 0xd3, 0xe4, 0xc0, 0x00, 0x00, 0x46, 0xde, 0xff, 0x12, 0xc1, 0xf0, 0x31, 0x81, 0xf1, 0x09, 0x01, 0x02, 0x03, 0x35, 0x52, 0xae, 0xcf, 0x26, 0x10, 0x0f, 0x26, 0x30, 0x0c, 0x26, 0x40, 0x09, 0x26, 0x50, 0x06, 0x08, 0x01, 0x12, 0xc1, 0x10, 0x0d, 0xf0, 0x22, 0x03, 0x36, 0x01, 0xc4, 0xe4, 0xb6, 0x22, 0x28, 0x2c, 0x06, 0xc0, 0x20, 0x00, 0x72, 0x20, 0x85, 0x50, 0x77, 0x10, 0x60, 0x77, 0x20, 0xc0, 0x20, 0x00, 0x72, 0x60, 0x85, 0xc0, 0x20, 0x00, 0x42, 0x20, 0x8d, 0x50, 0x44, 0x10, 0x60, 0x44, 0x20, 0xc0, 0x20, 0x00, 0x42, 0x60, 0x8d, 0x86, 0x08, 0x00, 0x3c, 0x0a, 0xc0, 0x20, 0x00, 0x92, 0x20, 0x85, 0x50, 0x99, 0x10, 0xa0, 0x99, 0x20, 0xc0, 0x20, 0x00, 0x92, 0x60, 0x85, 0xc0, 0x20, 0x00, 0x82, 0x20, 0x8d, 0x50, 0x88, 0x10, 0xc0, 0x20, 0x00, 0x82, 0x60, 0x8d, 0x02, 0x03, 0x35, 0x26, 0x10, 0x4f, 0x26, 0x30, 0x4c, 0x26, 0x40, 0x02, 0x66, 0x50, 0x94, 0x02, 0x03, 0x36, 0x66, 0x10, 0x1e, 0x0c, 0x02, 0x0c, 0x13, 0x0c, 0x14, 0x0c, 0x05, 0x01, 0xac, 0xe4, 0xc0, 0x00, 0x00, 0x0c, 0x82, 0x0c, 0x03, 0x0c, 0x84, 0x0c, 0x05, 0x01, 0xa8, 0xe4, 0xc0, 0x00, 0x00, 0xc6, 0xdb, 0xff, 0x56, 0xc0, 0xf6, 0x0c, 0x12, 0x0c, 0x03, 0x0c, 0x14, 0x0c, 0x05, 0x01, 0xa3, 0xe4, 0xc0, 0x00, 0x00, 0x0c, 0x02, 0x0c, 0x83, 0x0c, 0x84, 0x0c, 0x05, 0x01, 0xa0, 0xe4, 0xc0, 0x00, 0x00, 0x46, 0xd3, 0xff, 0x02, 0x03, 0x36, 0x66, 0x10, 0x1e, 0x0c, 0x12, 0x0c, 0x03, 0x0c, 0x14, 0x0c, 0x05, 0x01, 0x9a, 0xe4, 0xc0, 0x00, 0x00, 0x0c, 0x02, 0x0c, 0x83, 0x0c, 0x84, 0x0c, 0x05, 0x01, 0x97, 0xe4, 0xc0, 0x00, 0x00, 0x06, 0xca, 0xff, 0x56, 0x50, 0xf2, 0x0c, 0x02, 0x0c, 0x13, 0x0c, 0x14, 0x0c, 0x05, 0x01, 0x92, 0xe4, 0xc0, 0x00, 0x00, 0x0c, 0x82, 0x0c, 0x03, 0x0c, 0x84, 0x0c, 0x05, 0x01, 0x8e, 0xe4, 0xc0, 0x00, 0x00, 0x86, 0xc1, 0xff, 0x00, 0xff, 0xff, 0x70, 0xfc, 0x32, 0xa0, 0x00, 0x12, 0xc1, 0xf0, 0xc2, 0x61, 0x01, 0x02, 0x61, 0x00, 0xcd, 0x02, 0x0c, 0x12, 0x45, 0xc7, 0xfa, 0x31, 0x00, 0xe9, 0x21, 0xba, 0xe7, 0xc0, 0x20, 0x00, 0x02, 0x22, 0x42, 0x30, 0x00, 0x20, 0xc0, 0x20, 0x00, 0x02, 0x62, 0x42, 0x05, 0xad, 0xff, 0x26, 0x4c, 0x11, 0x66, 0x1c, 0x05, 0x05, 0x98, 0xff, 0x06, 0x02, 0x00, 0x26, 0x2c, 0x02, 0x66, 0x8c, 0x02, 0x45, 0x9b, 0xff, 0x31, 0xf2, 0xea, 0x0c, 0x22, 0x51, 0xc4, 0xe8, 0xc0, 0x20, 0x00, 0x02, 0x25, 0x85, 0x30, 0x00, 0x10, 0x20, 0x00, 0x20, 0xc0, 0x20, 0x00, 0x02, 0x65, 0x85, 0xb1, 0x61, 0xeb, 0xc0, 0x20, 0x00, 0xa2, 0x25, 0x85, 0xb0, 0xaa, 0x10, 0xc0, 0x20, 0x00, 0xa2, 0x65, 0x85, 0x91, 0x72, 0xfe, 0xc0, 0x20, 0x00, 0x82, 0x25, 0x85, 0x90, 0x88, 0x20, 0xc0, 0x20, 0x00, 0x82, 0x65, 0x85, 0x71, 0x10, 0xff, 0x61, 0x5b, 0xe6, 0xc0, 0x20, 0x00, 0x42, 0x25, 0x9d, 0x70, 0x44, 0x10, 0x60, 0x44, 0x20, 0xc0, 0x20, 0x00, 0x42, 0x65, 0x9d, 0x05, 0xdb, 0xff, 0x45, 0xc3, 0xff, 0x05, 0xd5, 0xff, 0x66, 0x8c, 0x14, 0x61, 0xd6, 0xff, 0x51, 0x2f, 0xe4, 0xc0, 0x20, 0x00, 0x42, 0x25, 0x86, 0x60, 0x44, 0x10, 0xc0, 0x20, 0x00, 0x42, 0x65, 0x86, 0xc8, 0x11, 0x08, 0x01, 0x12, 0xc1, 0x10, 0x0d, 0xf0, 0x60, 0x36, 0x00, 0x40, 0x10, 0x11, 0x00, 0x40, 0x50, 0x15, 0x00, 0x40, 0x30, 0x33, 0x00, 0x40, 0x41, 0xa2, 0xe8, 0x9c, 0x82, 0x26, 0x12, 0x20, 0x26, 0x22, 0x28, 0x26, 0x32, 0x30, 0x26, 0x42, 0x38, 0x66, 0x52, 0x08, 0x21, 0xf7, 0xff, 0xc0, 0x20, 0x00, 0x22, 0x64, 0xf8, 0x0d, 0xf0, 0x0c, 0x03, 0xc0, 0x20, 0x00, 0x32, 0x64, 0xf8, 0x0d, 0xf0, 0x51, 0xf0, 0xfe, 0xc0, 0x20, 0x00, 0x52, 0x64, 0xf8, 0x0d, 0xf0, 0x61, 0xf0, 0xff, 0xc0, 0x20, 0x00, 0x62, 0x64, 0xf8, 0x0d, 0xf0, 0x71, 0xee, 0xff, 0xc0, 0x20, 0x00, 0x72, 0x64, 0xf8, 0x0d, 0xf0, 0x81, 0xec, 0xff, 0xc0, 0x20, 0x00, 0x82, 0x64, 0xf8, 0x0d, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x8f, 0x03, 0xff, 0x0f, 0x00, 0x80, 0x12, 0xc1, 0xf0, 0xc9, 0x11, 0x09, 0x01, 0x26, 0x22, 0x02, 0x66, 0x12, 0x18, 0x56, 0x53, 0x01, 0x01, 0xa8, 0xfe, 0x32, 0x00, 0x00, 0x56, 0xc3, 0x00, 0x42, 0x00, 0x01, 0x22, 0x61, 0x02, 0xcc, 0x34, 0x45, 0x71, 0xfc, 0x28, 0x21, 0x7c, 0x3b, 0x0c, 0x4a, 0x61, 0x02, 0xe4, 0x91, 0x32, 0xe4, 0xc0, 0x20, 0x00, 0x82, 0x29, 0xd0, 0xb0, 0x88, 0x10, 0xa0, 0x88, 0x20, 0xc0, 0x20, 0x00, 0x82, 0x69, 0xd0, 0x71, 0x41, 0xea, 0xc0, 0x20, 0x00, 0x52, 0x26, 0x86, 0x70, 0x55, 0x20, 0xc0, 0x20, 0x00, 0x52, 0x66, 0x86, 0x66, 0x82, 0x11, 0x01, 0xe8, 0xff, 0xc0, 0x20, 0x00, 0xc2, 0x26, 0x86, 0x00, 0xcc, 0x20, 0xc0, 0x20, 0x00, 0xc2, 0x66, 0x86, 0x71, 0xe4, 0xff, 0xc1, 0x8d, 0xe8, 0x51, 0x6e, 0xe8, 0xc0, 0x20, 0x00, 0x72, 0x65, 0x85, 0x61, 0xc6, 0xfe, 0xc0, 0x20, 0x00, 0x42, 0x25, 0x9d, 0x60, 0x44, 0x10, 0xc0, 0x20, 0x00, 0x42, 0x65, 0x9d, 0x0b, 0x32, 0x16, 0xf3, 0x09, 0x82, 0xc2, 0xfe, 0x16, 0x98, 0x09, 0x92, 0xc2, 0xf8, 0x16, 0x39, 0x09, 0x22, 0xa1, 0x2c, 0x01, 0x63, 0xe8, 0xc0, 0x00, 0x00, 0x01, 0x4b, 0xe7, 0xc0, 0x20, 0x00, 0x52, 0x20, 0x42, 0xc0, 0x55, 0x10, 0xc0, 0x20, 0x00, 0x52, 0x60, 0x42, 0x0c, 0x14, 0xc0, 0x20, 0x00, 0x32, 0x20, 0x58, 0x40, 0x33, 0x20, 0xc0, 0x20, 0x00, 0x32, 0x60, 0x58, 0x7c, 0xe2, 0xc0, 0x20, 0x00, 0xb2, 0x20, 0x58, 0x20, 0xbb, 0x10, 0xc0, 0x20, 0x00, 0xb2, 0x60, 0x58, 0xc0, 0x20, 0x00, 0xa1, 0x53, 0xe8, 0xa2, 0x2a, 0x9c, 0x17, 0x6a, 0x3b, 0x0c, 0x22, 0x01, 0x51, 0xe8, 0xc0, 0x00, 0x00, 0xb2, 0xa0, 0xf1, 0x92, 0xac, 0x00, 0xc0, 0x20, 0x00, 0x71, 0x36, 0xe7, 0xa8, 0xd7, 0x90, 0xaa, 0x10, 0xb0, 0xaa, 0x20, 0xc0, 0x20, 0x00, 0xa9, 0xd7, 0x82, 0xa0, 0xf0, 0xc0, 0x20, 0x00, 0x68, 0xd7, 0x90, 0x66, 0x10, 0x80, 0x66, 0x20, 0xc0, 0x20, 0x00, 0x69, 0xd7, 0x0c, 0x22, 0x01, 0x44, 0xe8, 0xc0, 0x00, 0x00, 0x45, 0xc9, 0xff, 0x05, 0xb0, 0xff, 0xc8, 0x11, 0x08, 0x01, 0x12, 0xc1, 0x10, 0x0d, 0xf0, 0x85, 0xa2, 0xff, 0x01, 0x85, 0xe8, 0x31, 0x6b, 0xe8, 0xb2, 0x20, 0x00, 0x22, 0xa0, 0x00, 0x30, 0xbb, 0x20, 0xb2, 0x60, 0x00, 0x05, 0xda, 0xfc, 0x22, 0xa0, 0xc8, 0x01, 0x38, 0xe8, 0xc0, 0x00, 0x00, 0x51, 0x7e, 0xe8, 0x48, 0x05, 0xc0, 0x44, 0x10, 0x49, 0x05, 0x86, 0xd1, 0xff, 0x00, 0x00, 0x00, 0x12, 0xc1, 0xf0, 0x02, 0x61, 0x00, 0xc5, 0x8b, 0x02, 0x21, 0x79, 0xe8, 0x45, 0xd4, 0x02, 0x0c, 0x02, 0x05, 0x92, 0x02, 0x08, 0x01, 0x12, 0xc1, 0x10, 0x0d, 0xf0, 0x00, 0x00, 0x06, 0xf2, 0x3f, 0x0c, 0x02, 0x31, 0xfe, 0xff, 0xc0, 0x20, 0x00, 0x22, 0x63, 0x80, 0xc0, 0x20, 0x00, 0x22, 0x63, 0x83, 0x0d, 0xf0, 0x00, 0xb0, 0x71, 0x10, 0x40, 0xc4, 0x0d, 0xf2, 0x3f, 0xf0, 0x0c, 0xf2, 0x3f, 0x1c, 0x0d, 0xf2, 0x3f, 0x34, 0x0d, 0xf2, 0x3f, 0x4c, 0x0d, 0xf2, 0x3f, 0x64, 0x0d, 0xf2, 0x3f, 0x7c, 0x0d, 0xf2, 0x3f, 0x94, 0x0d, 0xf2, 0x3f, 0xac, 0x0d, 0xf2, 0x3f, 0xc8, 0x0c, 0xf2, 0x3f, 0xdc, 0x0c, 0xf2, 0x3f, 0x1c, 0xc3, 0x37, 0xb2, 0x5e, 0x51, 0xf2, 0xff, 0x20, 0x42, 0x90, 0x5a, 0x44, 0xa0, 0x04, 0x00, 0x06, 0x14, 0x00, 0x86, 0x14, 0x00, 0x06, 0x1f, 0x00, 0x06, 0x1d, 0x00, 0x06, 0x11, 0x00, 0x46, 0x10, 0x00, 0x86, 0x0f, 0x00, 0xc6, 0x0e, 0x00, 0x06, 0x0e, 0x00, 0x46, 0x0d, 0x00, 0x86, 0x0c, 0x00, 0xc6, 0x15, 0x00, 0xc6, 0x13, 0x00, 0xc6, 0x11, 0x00, 0xc6, 0x0f, 0x00, 0xc6, 0x0d, 0x00, 0xc6, 0x0b, 0x00, 0xc6, 0x09, 0x00, 0x86, 0x06, 0x00, 0xc6, 0x05, 0x00, 0x06, 0x05, 0x00, 0x46, 0x0e, 0x00, 0x46, 0x0c, 0x00, 0x46, 0x0a, 0x00, 0x46, 0x08, 0x00, 0x46, 0x06, 0x00, 0x46, 0x04, 0x00, 0x46, 0x02, 0x00, 0x21, 0xdc, 0xff, 0x0d, 0xf0, 0x21, 0xdb, 0xff, 0x0d, 0xf0, 0x21, 0xdb, 0xff, 0x0d, 0xf0, 0x21, 0xdb, 0xff, 0x0d, 0xf0, 0x21, 0xdb, 0xff, 0x0d, 0xf0, 0x21, 0xda, 0xff, 0x0d, 0xf0, 0x21, 0xda, 0xff, 0x0d, 0xf0, 0x21, 0xda, 0xff, 0x0d, 0xf0, 0x21, 0xda, 0xff, 0x0d, 0xf0, 0x21, 0xd9, 0xff, 0x0d, 0xf0, 0x21, 0xd9, 0xff, 0x0d, 0xf0, 0x00, 0x7c, 0x72, 0x10, 0x40, 0xc8, 0x0d, 0xf2, 0x3f, 0xf4, 0x0c, 0xf2, 0x3f, 0x20, 0x0d, 0xf2, 0x3f, 0x38, 0x0d, 0xf2, 0x3f, 0x50, 0x0d, 0xf2, 0x3f, 0x68, 0x0d, 0xf2, 0x3f, 0x80, 0x0d, 0xf2, 0x3f, 0x98, 0x0d, 0xf2, 0x3f, 0xb0, 0x0d, 0xf2, 0x3f, 0xcc, 0x0c, 0xf2, 0x3f, 0xe0, 0x0c, 0xf2, 0x3f, 0x1c, 0xc3, 0x37, 0xb2, 0x5e, 0x51, 0xf2, 0xff, 0x20, 0x42, 0x90, 0x5a, 0x44, 0xa0, 0x04, 0x00, 0x06, 0x14, 0x00, 0x86, 0x14, 0x00, 0x06, 0x1f, 0x00, 0x06, 0x1d, 0x00, 0x06, 0x11, 0x00, 0x46, 0x10, 0x00, 0x86, 0x0f, 0x00, 0xc6, 0x0e, 0x00, 0x06, 0x0e, 0x00, 0x46, 0x0d, 0x00, 0x86, 0x0c, 0x00, 0xc6, 0x15, 0x00, 0xc6, 0x13, 0x00, 0xc6, 0x11, 0x00, 0xc6, 0x0f, 0x00, 0xc6, 0x0d, 0x00, 0xc6, 0x0b, 0x00, 0xc6, 0x09, 0x00, 0x86, 0x06, 0x00, 0xc6, 0x05, 0x00, 0x06, 0x05, 0x00, 0x46, 0x0e, 0x00, 0x46, 0x0c, 0x00, 0x46, 0x0a, 0x00, 0x46, 0x08, 0x00, 0x46, 0x06, 0x00, 0x46, 0x04, 0x00, 0x46, 0x02, 0x00, 0x21, 0xdc, 0xff, 0x0d, 0xf0, 0x21, 0xdb, 0xff, 0x0d, 0xf0, 0x21, 0xdb, 0xff, 0x0d, 0xf0, 0x21, 0xdb, 0xff, 0x0d, 0xf0, 0x21, 0xdb, 0xff, 0x0d, 0xf0, 0x21, 0xda, 0xff, 0x0d, 0xf0, 0x21, 0xda, 0xff, 0x0d, 0xf0, 0x21, 0xda, 0xff, 0x0d, 0xf0, 0x21, 0xda, 0xff, 0x0d, 0xf0, 0x21, 0xd9, 0xff, 0x0d, 0xf0, 0x21, 0xd9, 0xff, 0x0d, 0xf0, 0x00, 0x48, 0x73, 0x10, 0x40, 0xcc, 0x0d, 0xf2, 0x3f, 0xf8, 0x0c, 0xf2, 0x3f, 0x24, 0x0d, 0xf2, 0x3f, 0x3c, 0x0d, 0xf2, 0x3f, 0x54, 0x0d, 0xf2, 0x3f, 0x6c, 0x0d, 0xf2, 0x3f, 0x84, 0x0d, 0xf2, 0x3f, 0x9c, 0x0d, 0xf2, 0x3f, 0xb4, 0x0d, 0xf2, 0x3f, 0xd0, 0x0c, 0xf2, 0x3f, 0xe4, 0x0c, 0xf2, 0x3f, 0x1c, 0xc3, 0x37, 0xb2, 0x5e, 0x51, 0xf2, 0xff, 0x20, 0x42, 0x90, 0x5a, 0x44, 0xa0, 0x04, 0x00, 0x06, 0x14, 0x00, 0x86, 0x14, 0x00, 0x06, 0x1f, 0x00, 0x06, 0x1d, 0x00, 0x06, 0x11, 0x00, 0x46, 0x10, 0x00, 0x86, 0x0f, 0x00, 0xc6, 0x0e, 0x00, 0x06, 0x0e, 0x00, 0x46, 0x0d, 0x00, 0x86, 0x0c, 0x00, 0xc6, 0x15, 0x00, 0xc6, 0x13, 0x00, 0xc6, 0x11, 0x00, 0xc6, 0x0f, 0x00, 0xc6, 0x0d, 0x00, 0xc6, 0x0b, 0x00, 0xc6, 0x09, 0x00, 0x86, 0x06, 0x00, 0xc6, 0x05, 0x00, 0x06, 0x05, 0x00, 0x46, 0x0e, 0x00, 0x46, 0x0c, 0x00, 0x46, 0x0a, 0x00, 0x46, 0x08, 0x00, 0x46, 0x06, 0x00, 0x46, 0x04, 0x00, 0x46, 0x02, 0x00, 0x21, 0xdc, 0xff, 0x0d, 0xf0, 0x21, 0xdb, 0xff, 0x0d, 0xf0, 0x21, 0xdb, 0xff, 0x0d, 0xf0, 0x21, 0xdb, 0xff, 0x0d, 0xf0, 0x21, 0xdb, 0xff, 0x0d, 0xf0, 0x21, 0xda, 0xff, 0x0d, 0xf0, 0x21, 0xda, 0xff, 0x0d, 0xf0, 0x21, 0xda, 0xff, 0x0d, 0xf0, 0x21, 0xda, 0xff, 0x0d, 0xf0, 0x21, 0xd9, 0xff, 0x0d, 0xf0, 0x21, 0xd9, 0xff, 0x0d, 0xf0, 0x00, 0xc0, 0x0d, 0xf2, 0x3f, 0x18, 0x0d, 0xf2, 0x3f, 0xa8, 0x0d, 0xf2, 0x3f, 0x90, 0x0d, 0xf2, 0x3f, 0x78, 0x0d, 0xf2, 0x3f, 0x60, 0x0d, 0xf2, 0x3f, 0x48, 0x0d, 0xf2, 0x3f, 0x30, 0x0d, 0xf2, 0x3f, 0x26, 0x92, 0x1e, 0x0c, 0xb3, 0x37, 0x12, 0x23, 0x26, 0xa2, 0x25, 0x0c, 0xd4, 0x47, 0x12, 0x25, 0x0c, 0xe5, 0x57, 0x12, 0x25, 0x0c, 0xf6, 0x67, 0x12, 0x25, 0x26, 0xb2, 0x27, 0x1c, 0x17, 0x77, 0x12, 0x04, 0x21, 0xef, 0xff, 0x0d, 0xf0, 0x21, 0xef, 0xff, 0x0d, 0xf0, 0x21, 0xef, 0xff, 0x0d, 0xf0, 0x21, 0xee, 0xff, 0x0d, 0xf0, 0x21, 0xee, 0xff, 0x0d, 0xf0, 0x21, 0xee, 0xff, 0x0d, 0xf0, 0x21, 0xee, 0xff, 0x0d, 0xf0, 0x21, 0xed, 0xff, 0x0d, 0xf0, 0x00, 0x00, 0xc0, 0x20, 0x00, 0x39, 0x02, 0x0d, 0xf0, 0x00, 0x00, 0xb9, 0x00, 0x01, 0x00, 0x00, 0x00, 0x07, 0x00, 0x90, 0x02, 0x00, 0x00, 0x90, 0xfe, 0x3f, 0x04, 0x90, 0xfe, 0x3f, 0x00, 0x94, 0xfe, 0x3f, 0x08, 0x90, 0xfe, 0x3f, 0x10, 0x90, 0xfe, 0x3f, 0x14, 0x90, 0xfe, 0x3f, 0x00, 0x9c, 0xfe, 0x3f, 0x18, 0x90, 0xfe, 0x3f, 0x20, 0x90, 0xfe, 0x3f, 0x24, 0x90, 0xfe, 0x3f, 0x00, 0xa2, 0xfe, 0x3f, 0x28, 0x90, 0xfe, 0x3f, 0x30, 0x90, 0xfe, 0x3f, 0x34, 0x90, 0xfe, 0x3f, 0x00, 0x9d, 0xfe, 0x3f, 0x38, 0x90, 0xfe, 0x3f, 0xb0, 0x81, 0xfe, 0x3f, 0x82, 0xa0, 0xf0, 0x80, 0x11, 0xc0, 0xe2, 0x61, 0x33, 0xf2, 0x61, 0x34, 0x22, 0x61, 0x36, 0x32, 0x61, 0x39, 0x72, 0x61, 0x2f, 0x62, 0x61, 0x2e, 0x02, 0x61, 0x30, 0xc2, 0x61, 0x31, 0xd2, 0x61, 0x32, 0xcd, 0x05, 0xdd, 0x04, 0xc5, 0xc9, 0xff, 0xe2, 0x21, 0x36, 0xe0, 0xe0, 0x74, 0x2d, 0x0e, 0x45, 0xcd, 0xff, 0xfd, 0x02, 0x2d, 0x0e, 0xc5, 0xd9, 0xff, 0x22, 0x61, 0x35, 0xf2, 0x61, 0x2d, 0x2d, 0x0e, 0xc5, 0xe5, 0xff, 0xfd, 0x02, 0x2d, 0x0e, 0x05, 0xf1, 0xff, 0x0c, 0x03, 0xf2, 0x61, 0x2c, 0x45, 0xf5, 0xff, 0x80, 0x5d, 0x11, 0x02, 0x21, 0x39, 0xf2, 0x21, 0x40, 0x42, 0x21, 0x3d, 0x32, 0x21, 0x3e, 0x00, 0x44, 0x11, 0x90, 0x33, 0x01, 0x10, 0xff, 0x01, 0x00, 0x20, 0x34, 0x5a, 0x22, 0x2a, 0xff, 0xf6, 0xb0, 0x1c, 0x22, 0x21, 0x35, 0x3a, 0x34, 0x40, 0x50, 0x11, 0xd0, 0x40, 0xb4, 0x5a, 0x44, 0x4a, 0x33, 0x05, 0xf2, 0xff, 0x3d, 0x0f, 0x22, 0x21, 0x2c, 0x85, 0xf1, 0xff, 0x06, 0x1d, 0x00, 0x30, 0x74, 0x20, 0x81, 0xc6, 0xff, 0x31, 0xba, 0xfc, 0x80, 0x77, 0x20, 0xc0, 0x20, 0x00, 0x82, 0x21, 0x35, 0x1c, 0x36, 0x79, 0x08, 0xe7, 0xb6, 0x1e, 0x6c, 0xfe, 0x3a, 0x3f, 0x22, 0x21, 0x2c, 0x45, 0xef, 0xff, 0xc0, 0x20, 0x00, 0xa1, 0x2c, 0xe7, 0x92, 0x2a, 0xa2, 0xe0, 0x99, 0x10, 0xc0, 0x20, 0x00, 0x92, 0x6a, 0xa2, 0x06, 0x0f, 0x00, 0xa2, 0x21, 0x36, 0xa0, 0xa8, 0x74, 0xec, 0x0a, 0x6c, 0xfe, 0x31, 0xb7, 0xff, 0x22, 0x21, 0x2c, 0x3a, 0x3f, 0x85, 0xec, 0xff, 0xc0, 0x20, 0x00, 0x51, 0x22, 0xe7, 0x42, 0x25, 0xa2, 0xe0, 0x44, 0x10, 0xc0, 0x20, 0x00, 0x42, 0x65, 0xa2, 0x86, 0x04, 0x00, 0x3a, 0x3f, 0x22, 0x21, 0x2c, 0xc5, 0xea, 0xff, 0x1c, 0x05, 0xc0, 0x20, 0x00, 0x61, 0x1a, 0xe7, 0x52, 0x66, 0xa2, 0xfc, 0x5c, 0x72, 0x21, 0x2e, 0xfc, 0x07, 0x92, 0x21, 0x3c, 0x82, 0x21, 0x2f, 0x92, 0x61, 0x37, 0xec, 0xb8, 0xec, 0x99, 0x41, 0x4a, 0xf8, 0x32, 0x21, 0x3f, 0x22, 0x21, 0x2d, 0x40, 0x33, 0x10, 0xc5, 0xe7, 0xff, 0xc2, 0x21, 0x31, 0xd2, 0x21, 0x32, 0xe2, 0x21, 0x33, 0xf2, 0x21, 0x34, 0x22, 0xa0, 0xf0, 0x02, 0x21, 0x30, 0x2a, 0x11, 0x0d, 0xf0, 0x42, 0x21, 0x3c, 0x42, 0x61, 0x37, 0x22, 0x21, 0x2d, 0x31, 0x9b, 0xff, 0x85, 0xe5, 0xff, 0x52, 0x21, 0x37, 0x16, 0x35, 0x11, 0x0c, 0x4e, 0x86, 0x00, 0x00, 0xe2, 0xa0, 0x03, 0x21, 0x97, 0xff, 0x40, 0x4c, 0x11, 0x52, 0xce, 0xff, 0xf1, 0xdb, 0xea, 0x31, 0xb7, 0xfc, 0x32, 0x61, 0x38, 0x50, 0x3f, 0x83, 0x40, 0x33, 0x80, 0x3a, 0x3c, 0xc5, 0xe2, 0xff, 0x21, 0x91, 0xff, 0x31, 0x91, 0xff, 0x45, 0xe2, 0xff, 0x21, 0x91, 0xff, 0x31, 0x91, 0xff, 0xc5, 0xe1, 0xff, 0x21, 0x8f, 0xff, 0x62, 0xce, 0xfe, 0x32, 0x21, 0x2e, 0x42, 0x21, 0x38, 0x40, 0x53, 0x11, 0x60, 0x4f, 0x83, 0x5a, 0x44, 0x4a, 0x33, 0x45, 0xe0, 0xff, 0x21, 0x8a, 0xff, 0x31, 0x8a, 0xff, 0x85, 0xdf, 0xff, 0x21, 0x8a, 0xff, 0x31, 0x8a, 0xff, 0x05, 0xdf, 0xff, 0x21, 0x89, 0xff, 0x62, 0xce, 0xfd, 0x32, 0x21, 0x2f, 0x42, 0x21, 0x38, 0x40, 0x53, 0x11, 0x60, 0x4f, 0x83, 0x5a, 0x44, 0x4a, 0x33, 0x85, 0xdd, 0xff, 0x21, 0x83, 0xff, 0x31, 0x84, 0xff, 0x05, 0xdd, 0xff, 0x21, 0x83, 0xff, 0x31, 0x83, 0xff, 0x45, 0xdc, 0xff, 0x21, 0x82, 0xff, 0x62, 0xce, 0xfc, 0x32, 0x21, 0x37, 0x42, 0x21, 0x38, 0x40, 0x53, 0x11, 0x60, 0x4f, 0x83, 0x5a, 0x44, 0x4a, 0x33, 0xc5, 0xda, 0xff, 0x21, 0x7d, 0xff, 0x31, 0x7d, 0xff, 0x45, 0xda, 0xff, 0x21, 0x7c, 0xff, 0x0c, 0x03, 0xc5, 0xd9, 0xff, 0x2d, 0x01, 0x31, 0x7b, 0xff, 0x42, 0xa0, 0xb0, 0x05, 0x76, 0x04, 0x16, 0xfd, 0xf0, 0x2d, 0x01, 0x0c, 0x00, 0xb1, 0x75, 0xff, 0xa1, 0x70, 0xff, 0x51, 0x6b, 0xff, 0x41, 0x67, 0xff, 0x62, 0x21, 0x2e, 0x72, 0x21, 0x2f, 0x6a, 0x6c, 0x7a, 0x76, 0xc7, 0xb0, 0x09, 0x88, 0x02, 0x82, 0x44, 0x00, 0x1b, 0x44, 0x46, 0x07, 0x00, 0x00, 0x30, 0x74, 0x67, 0xb0, 0x07, 0x32, 0x45, 0x00, 0x1b, 0x55, 0xc6, 0x03, 0x00, 0x77, 0xb0, 0x07, 0x32, 0x4a, 0x00, 0x1b, 0xaa, 0x06, 0x01, 0x00, 0x32, 0x4b, 0x00, 0x1b, 0xbb, 0x4b, 0x22, 0x1b, 0x00, 0x07, 0x9d, 0xcd, 0x06, 0xb0, 0xff, 0x92, 0x21, 0x2f, 0x56, 0xa9, 0xee, 0xb2, 0x21, 0x2e, 0x0c, 0x2a, 0x0c, 0x1e, 0xb0, 0xea, 0x93, 0x06, 0xb8, 0xff, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x40, 0x68, 0x87, 0xfe, 0x3f, 0x9c, 0x87, 0xfe, 0x3f, 0xb8, 0x87, 0xfe, 0x3f, 0xe8, 0x87, 0xfe, 0x3f, 0x12, 0xc1, 0xf0, 0xc2, 0x61, 0x01, 0x02, 0x61, 0x00, 0x20, 0xc2, 0x20, 0x85, 0x08, 0x02, 0x2d, 0x0c, 0x05, 0xa6, 0xff, 0xa1, 0xf6, 0xff, 0x0d, 0x02, 0xc1, 0xaf, 0xe6, 0x21, 0x15, 0xef, 0xc0, 0x20, 0x00, 0xa2, 0x6c, 0x82, 0x0c, 0x49, 0xc0, 0x20, 0x00, 0x82, 0x2c, 0x86, 0x90, 0x88, 0x20, 0xc0, 0x20, 0x00, 0x82, 0x6c, 0x86, 0x0c, 0x37, 0xc0, 0x20, 0x00, 0x62, 0x2c, 0x89, 0x70, 0x66, 0x20, 0xc0, 0x20, 0x00, 0x62, 0x6c, 0x89, 0x7c, 0x05, 0xc0, 0x20, 0x00, 0x42, 0x2c, 0x86, 0x50, 0x44, 0x10, 0xc0, 0x20, 0x00, 0x42, 0x6c, 0x86, 0x32, 0x02, 0x59, 0x66, 0x13, 0x45, 0x09, 0x21, 0x32, 0x02, 0x55, 0x42, 0x02, 0x57, 0x52, 0x02, 0x58, 0x80, 0x44, 0x11, 0x50, 0x44, 0x20, 0x52, 0x02, 0x56, 0x80, 0x33, 0x01, 0x00, 0x55, 0x11, 0x50, 0x33, 0x20, 0x40, 0x33, 0x20, 0x9c, 0x43, 0x21, 0xdc, 0xff, 0xc0, 0x20, 0x00, 0x48, 0x03, 0x01, 0xd6, 0xe2, 0xc0, 0x00, 0x00, 0x08, 0x21, 0x21, 0xf8, 0xee, 0x46, 0x03, 0x00, 0x21, 0xd7, 0xff, 0x01, 0xd1, 0xe2, 0xc0, 0x00, 0x00, 0x08, 0x21, 0x21, 0xf3, 0xee, 0x0c, 0x06, 0x0c, 0x23, 0x91, 0xb5, 0xf1, 0xc0, 0x20, 0x00, 0x62, 0x69, 0x9b, 0x7c, 0xd5, 0xc0, 0x20, 0x00, 0x42, 0x2c, 0xa2, 0x50, 0x44, 0x10, 0xc0, 0x20, 0x00, 0x42, 0x6c, 0xa2, 0x7c, 0x7b, 0xc0, 0x20, 0x00, 0xa2, 0x2c, 0xa2, 0xb0, 0xaa, 0x10, 0xc0, 0x20, 0x00, 0xa2, 0x6c, 0xa2, 0x6c, 0xf8, 0xc0, 0x20, 0x00, 0x72, 0x2c, 0xa2, 0x80, 0x77, 0x10, 0xc0, 0x20, 0x00, 0x72, 0x6c, 0xa2, 0x61, 0xbc, 0xeb, 0xc0, 0x20, 0x00, 0x52, 0x2c, 0xa2, 0x60, 0x55, 0x10, 0xc0, 0x20, 0x00, 0x52, 0x6c, 0xa2, 0x41, 0xa2, 0xf1, 0xc0, 0x20, 0x00, 0xb2, 0x29, 0x80, 0x40, 0xbb, 0x20, 0xc0, 0x20, 0x00, 0xb2, 0x69, 0x80, 0xa1, 0x9f, 0xf1, 0xc0, 0x20, 0x00, 0x82, 0x29, 0x9c, 0xa0, 0x88, 0x10, 0xc0, 0x20, 0x00, 0x82, 0x69, 0x9c, 0x71, 0x49, 0xea, 0xc0, 0x20, 0x00, 0x68, 0x00, 0x70, 0x66, 0x20, 0xc0, 0x20, 0x00, 0x69, 0x00, 0xc0, 0x20, 0x00, 0x52, 0x2c, 0x87, 0x17, 0xe5, 0x08, 0xc0, 0x20, 0x00, 0x72, 0x2c, 0x87, 0x37, 0x07, 0xf6, 0x82, 0x02, 0x59, 0x66, 0x18, 0x39, 0x32, 0x02, 0x55, 0x42, 0x02, 0x57, 0x52, 0x02, 0x58, 0x80, 0x44, 0x11, 0x50, 0x44, 0x20, 0x52, 0x02, 0x56, 0x80, 0x33, 0x01, 0x00, 0x55, 0x11, 0x50, 0x33, 0x20, 0x40, 0x33, 0x20, 0x8c, 0xf3, 0x21, 0xa5, 0xff, 0xc0, 0x20, 0x00, 0x48, 0x03, 0x01, 0x9d, 0xe2, 0xc0, 0x00, 0x00, 0x06, 0x02, 0x00, 0x21, 0xa2, 0xff, 0x01, 0x9a, 0xe2, 0xc0, 0x00, 0x00, 0xc8, 0x11, 0x08, 0x01, 0x12, 0xc1, 0x10, 0x0d, 0xf0, 0x00, 0x00, 0x00, 0x00, 0xb0, 0x00, 0x00, 0x12, 0xc1, 0xe0, 0xc9, 0x21, 0xf9, 0x51, 0x59, 0x01, 0x39, 0x61, 0x09, 0x11, 0xe9, 0x41, 0xd9, 0x31, 0xed, 0x04, 0xdd, 0x02, 0xc5, 0x99, 0xff, 0xcd, 0x02, 0xf8, 0x61, 0x2d, 0x0d, 0x05, 0xa6, 0xff, 0x41, 0xa5, 0xfc, 0x31, 0xd3, 0xec, 0xf0, 0x00, 0x34, 0xf6, 0xbf, 0x22, 0x40, 0x60, 0x11, 0xc0, 0x20, 0x00, 0x58, 0x0c, 0x30, 0x55, 0x10, 0x60, 0x55, 0x20, 0xc0, 0x20, 0x00, 0x59, 0x0c, 0xc0, 0x20, 0x00, 0x28, 0x0c, 0x40, 0x22, 0x10, 0xc0, 0x20, 0x00, 0x29, 0x0c, 0xc6, 0x0d, 0x00, 0xa1, 0xeb, 0xff, 0xc0, 0x20, 0x00, 0x98, 0x0c, 0x30, 0x99, 0x10, 0xa0, 0x99, 0x20, 0xc0, 0x20, 0x00, 0x99, 0x0c, 0x91, 0x31, 0xf5, 0xc0, 0x20, 0x00, 0x88, 0x0c, 0x40, 0x88, 0x10, 0x90, 0x88, 0x20, 0xc0, 0x20, 0x00, 0x89, 0x0c, 0x7c, 0x07, 0xc0, 0x20, 0x00, 0x68, 0x02, 0x70, 0x66, 0x10, 0x00, 0x66, 0x20, 0xc0, 0x20, 0x00, 0x69, 0x02, 0x9c, 0x7e, 0xf8, 0x01, 0x0c, 0x0c, 0xf0, 0xf0, 0xf4, 0x2d, 0x0d, 0x05, 0xde, 0xff, 0x2d, 0x0f, 0x01, 0x2e, 0xe6, 0xc0, 0x00, 0x00, 0x1b, 0xcc, 0xe7, 0x9c, 0xed, 0xc8, 0x21, 0xd8, 0x31, 0xe8, 0x41, 0xf8, 0x51, 0x08, 0x11, 0x12, 0xc1, 0x20, 0x0d, 0xf0, 0x00, 0x00, 0x00, 0x60, 0x09, 0x00, 0x12, 0xc1, 0xe0, 0xc2, 0x61, 0x01, 0xd2, 0x61, 0x02, 0xe9, 0x31, 0xf9, 0x41, 0x09, 0x01, 0x0c, 0xe0, 0x27, 0x30, 0x04, 0x8c, 0x12, 0x05, 0xdf, 0x01, 0x0c, 0x0c, 0xe1, 0x1e, 0xe6, 0xc0, 0x20, 0x00, 0x0c, 0x72, 0x0c, 0x53, 0x51, 0xf5, 0xff, 0x42, 0x2e, 0x80, 0x05, 0x87, 0xf9, 0x8c, 0x42, 0x22, 0xac, 0xe0, 0x46, 0x02, 0x00, 0x01, 0x91, 0xe3, 0x08, 0x00, 0x08, 0xa0, 0xc0, 0x00, 0x00, 0xcc, 0x5c, 0xfd, 0x02, 0xdd, 0x02, 0x06, 0x05, 0x00, 0x27, 0xad, 0x04, 0xdd, 0x02, 0x06, 0x03, 0x00, 0x0d, 0x0f, 0xf7, 0xa2, 0x01, 0x0d, 0x02, 0x00, 0xf0, 0x11, 0xf0, 0xf0, 0x31, 0x1b, 0xcc, 0xc0, 0xc0, 0x74, 0x66, 0x5c, 0xb7, 0x00, 0x3d, 0x11, 0xe1, 0x70, 0xee, 0xf0, 0x20, 0xf4, 0xe2, 0x0e, 0x50, 0x30, 0x22, 0x20, 0x66, 0x1e, 0x08, 0xf1, 0x74, 0xe2, 0xc0, 0x20, 0x00, 0x22, 0x6f, 0xff, 0xc8, 0x11, 0xd8, 0x21, 0xe8, 0x31, 0xf8, 0x41, 0x08, 0x01, 0x12, 0xc1, 0x20, 0x0d, 0xf0, 0x32, 0xa0, 0x0e, 0x12, 0xc1, 0xe0, 0xd2, 0x61, 0x02, 0x02, 0x61, 0x00, 0xf9, 0x41, 0xe9, 0x31, 0xc9, 0x11, 0x0c, 0x1e, 0xc1, 0xfc, 0xe5, 0x0c, 0xff, 0xe7, 0x33, 0x06, 0x8c, 0x3e, 0x2d, 0x0e, 0x45, 0xd5, 0x01, 0x0c, 0x0d, 0xc0, 0x20, 0x00, 0x22, 0xa0, 0x07, 0x32, 0xa0, 0x05, 0x42, 0x2c, 0x80, 0x51, 0xce, 0xff, 0x45, 0x7d, 0xf9, 0x20, 0x40, 0x74, 0x16, 0x54, 0x00, 0x22, 0xac, 0xe0, 0x46, 0x02, 0x00, 0x01, 0x6a, 0xe3, 0x08, 0x00, 0x08, 0xa0, 0xc0, 0x00, 0x00, 0x1b, 0xdd, 0xd0, 0xd0, 0x74, 0x66, 0x5d, 0xcf, 0x0c, 0xe3, 0x1b, 0xee, 0xe0, 0xe0, 0x74, 0xf7, 0x9e, 0xb9, 0xc8, 0x11, 0xd8, 0x21, 0xe8, 0x31, 0xf8, 0x41, 0x08, 0x01, 0x12, 0xc1, 0x20, 0x0d, 0xf0, 0x00, 0x00, 0x21, 0x52, 0xe2, 0xc0, 0x20, 0x00, 0x22, 0x22, 0xff, 0x0d, 0xf0, 0x00, 0xb0, 0x82, 0xfe, 0x3f, 0x12, 0xc1, 0xd0, 0xf2, 0x61, 0x08, 0x02, 0x61, 0x04, 0xe9, 0x71, 0xc9, 0x51, 0xd9, 0x61, 0xcd, 0x04, 0xdd, 0x02, 0xed, 0x03, 0x2d, 0x01, 0x31, 0xf9, 0xff, 0x1c, 0x04, 0x05, 0x37, 0x04, 0xf6, 0x3c, 0x12, 0x2d, 0x0d, 0x3d, 0x0e, 0x0c, 0x34, 0xc0, 0x44, 0xc0, 0x85, 0x56, 0x04, 0xed, 0x03, 0xdd, 0x02, 0x06, 0x04, 0x00, 0xd0, 0x2d, 0x20, 0xe0, 0x3e, 0x20, 0x42, 0xcc, 0xfd, 0x45, 0x58, 0x04, 0x30, 0xe3, 0x20, 0xdd, 0x02, 0x3c, 0xfc, 0x0c, 0x1f, 0xf0, 0x2f, 0x20, 0x32, 0xa0, 0x00, 0x4d, 0x0c, 0x05, 0x54, 0x04, 0x20, 0x2d, 0x10, 0x30, 0x3e, 0x10, 0x4d, 0x0c, 0x45, 0x56, 0x04, 0x0c, 0x17, 0x30, 0x37, 0x93, 0x20, 0x27, 0x93, 0x30, 0x62, 0x20, 0xcc, 0x66, 0x0b, 0xcc, 0xc0, 0xc0, 0x74, 0x66, 0x2c, 0xd4, 0xc2, 0xcc, 0xfd, 0x80, 0xcc, 0x01, 0xc0, 0xc8, 0x31, 0xe6, 0x2c, 0x26, 0x08, 0x41, 0xe8, 0x71, 0xf8, 0x81, 0xb0, 0x4c, 0x11, 0xd0, 0x20, 0x34, 0xc0, 0x3c, 0x11, 0xd8, 0x61, 0x1a, 0x22, 0xc8, 0x51, 0x22, 0x02, 0x00, 0x4a, 0x33, 0x3a, 0x22, 0x00, 0x22, 0x11, 0x20, 0x20, 0x31, 0x12, 0xc1, 0x30, 0x0d, 0xf0, 0xd0, 0x2d, 0x20, 0xe0, 0x3e, 0x20, 0x42, 0xcc, 0xff, 0x05, 0x51, 0x04, 0xdd, 0x02, 0xc6, 0xf1, 0xff, 0x00, 0x00, 0x00, 0x04, 0x88, 0xfe, 0x3f, 0x2c, 0x88, 0xfe, 0x3f, 0x54, 0x88, 0xfe, 0x3f, 0x6c, 0x88, 0xfe, 0x3f, 0xe4, 0xfb, 0x07, 0x00, 0x78, 0x88, 0xfe, 0x3f, 0xa0, 0x88, 0xfe, 0x3f, 0xc8, 0x88, 0xfe, 0x3f, 0x52, 0xa0, 0xd0, 0x50, 0x11, 0xc0, 0xd2, 0x61, 0x1b, 0xe2, 0x61, 0x1c, 0x02, 0x61, 0x19, 0x22, 0x61, 0x21, 0x32, 0x61, 0x11, 0x42, 0x61, 0x32, 0xc2, 0x61, 0x1a, 0xf2, 0x61, 0x1d, 0xc1, 0x0f, 0xe2, 0xfd, 0x04, 0x16, 0x54, 0x06, 0x21, 0xee, 0xff, 0xc0, 0x20, 0x00, 0x32, 0x2c, 0xe0, 0xc0, 0x20, 0x00, 0x42, 0x2c, 0xe1, 0xc0, 0x20, 0x00, 0x52, 0x2c, 0xe2, 0xc0, 0x20, 0x00, 0x62, 0x2c, 0xe3, 0x01, 0xc0, 0xe1, 0xc0, 0x00, 0x00, 0x21, 0xe7, 0xff, 0xc0, 0x20, 0x00, 0x32, 0x2c, 0xf3, 0xc0, 0x20, 0x00, 0x42, 0x2c, 0xf4, 0xc0, 0x20, 0x00, 0x52, 0x2c, 0xf5, 0xc0, 0x20, 0x00, 0x62, 0x2c, 0xf6, 0x01, 0xb8, 0xe1, 0xc0, 0x00, 0x00, 0x21, 0xe0, 0xff, 0xc0, 0x20, 0x00, 0x32, 0x2c, 0xf7, 0xc0, 0x20, 0x00, 0x42, 0x2c, 0xf8, 0x01, 0xb3, 0xe1, 0xc0, 0x00, 0x00, 0x21, 0xdb, 0xff, 0xc0, 0x20, 0x00, 0x32, 0x2c, 0xf9, 0x01, 0xaf, 0xe1, 0xc0, 0x00, 0x00, 0xd1, 0xd9, 0xff, 0x0c, 0x0e, 0xc0, 0x20, 0x00, 0x42, 0x2c, 0xe3, 0xc0, 0x20, 0x00, 0x32, 0x2c, 0xe0, 0x5d, 0x0e, 0x4a, 0x33, 0x10, 0x23, 0x11, 0x4d, 0x0d, 0x30, 0x31, 0x31, 0x85, 0x8a, 0x03, 0x39, 0xf1, 0x22, 0x61, 0x26, 0xc0, 0x20, 0x00, 0x42, 0x2c, 0xe2, 0xc0, 0x20, 0x00, 0x32, 0x2c, 0xe1, 0x5d, 0x0e, 0x40, 0x33, 0xc0, 0x10, 0x23, 0x11, 0x4d, 0x0d, 0x30, 0x31, 0x31, 0x85, 0x88, 0x03, 0x32, 0x61, 0x10, 0x29, 0xe1, 0xc0, 0x20, 0x00, 0x42, 0x2c, 0xf6, 0xc0, 0x20, 0x00, 0x32, 0x2c, 0xf3, 0x5d, 0x0e, 0x4a, 0x33, 0x10, 0x23, 0x11, 0x4d, 0x0d, 0x30, 0x31, 0x31, 0x85, 0x86, 0x03, 0x32, 0x61, 0x1e, 0x22, 0x61, 0x31, 0xc0, 0x20, 0x00, 0x42, 0x2c, 0xf5, 0xc0, 0x20, 0x00, 0x32, 0x2c, 0xf4, 0x5d, 0x0e, 0x40, 0x33, 0xc0, 0x10, 0x23, 0x11, 0x4d, 0x0d, 0x30, 0x31, 0x31, 0x45, 0x84, 0x03, 0x08, 0xe1, 0x42, 0x21, 0x31, 0xa2, 0x21, 0x10, 0x58, 0xf1, 0x72, 0x21, 0x26, 0xbd, 0x05, 0x1b, 0x67, 0x77, 0xb6, 0x01, 0x1b, 0xb5, 0x7d, 0x0a, 0x1b, 0x50, 0x07, 0xb5, 0x01, 0x1b, 0x7a, 0xa2, 0x21, 0x1e, 0x1b, 0x04, 0x1b, 0x82, 0x82, 0x61, 0x12, 0x47, 0xb0, 0x01, 0x1b, 0xaa, 0x4d, 0x03, 0x27, 0xb8, 0x01, 0x1b, 0x43, 0x22, 0x21, 0x12, 0x00, 0x41, 0x40, 0x50, 0x57, 0x81, 0x00, 0x3a, 0x81, 0x60, 0x9b, 0x81, 0x92, 0x61, 0x23, 0x32, 0x61, 0x2e, 0x52, 0x61, 0x2c, 0x20, 0x24, 0x81, 0x70, 0x01, 0x21, 0x02, 0x61, 0x2b, 0x22, 0x61, 0x1f, 0xb0, 0x51, 0x21, 0x52, 0x61, 0x22, 0x3d, 0x05, 0xa0, 0xb1, 0x21, 0x2d, 0x09, 0x40, 0xa1, 0x21, 0xb2, 0x61, 0x2d, 0x4d, 0x09, 0xa2, 0x61, 0x20, 0x85, 0x79, 0x03, 0x22, 0x61, 0x28, 0x32, 0x61, 0x27, 0x52, 0x21, 0x2b, 0x42, 0x21, 0x2c, 0x3d, 0x05, 0x2d, 0x04, 0x85, 0x78, 0x03, 0x22, 0x61, 0x2a, 0x32, 0x61, 0x29, 0x52, 0x21, 0x2d, 0x42, 0x21, 0x2e, 0x3d, 0x05, 0x2d, 0x04, 0x45, 0x77, 0x03, 0x22, 0x61, 0x2f, 0x32, 0x61, 0x30, 0x52, 0x21, 0x20, 0x42, 0x21, 0x1f, 0x3d, 0x05, 0x2d, 0x04, 0x05, 0x76, 0x03, 0x72, 0x21, 0x2f, 0x62, 0x21, 0x28, 0x02, 0x21, 0x29, 0xa2, 0x21, 0x27, 0xb2, 0x21, 0x30, 0x0a, 0xaa, 0x02, 0x21, 0x2a, 0x3a, 0xbb, 0x0a, 0x06, 0x67, 0xb0, 0x01, 0x1b, 0xaa, 0x2a, 0x67, 0x77, 0xb6, 0x01, 0x1b, 0xbb, 0xba, 0xaa, 0x6a, 0xb0, 0xb9, 0xc1, 0x07, 0xbb, 0x01, 0x1b, 0xaa, 0xa9, 0xd1, 0xac, 0xff, 0x52, 0x21, 0x22, 0x42, 0x21, 0x23, 0x72, 0x21, 0x2b, 0x62, 0x21, 0x2c, 0x02, 0x21, 0x2e, 0x22, 0x21, 0x2d, 0x88, 0xc1, 0x98, 0xd1, 0xa2, 0x21, 0x1f, 0xb2, 0x21, 0x20, 0xb9, 0x31, 0xa9, 0x21, 0x99, 0x51, 0x89, 0x41, 0x29, 0x11, 0x09, 0x01, 0x21, 0x77, 0xff, 0x01, 0x4a, 0xe1, 0xc0, 0x00, 0x00, 0xc0, 0x20, 0x00, 0x42, 0x2c, 0xe3, 0xc0, 0x20, 0x00, 0x32, 0x2c, 0xe0, 0x5d, 0x0e, 0x40, 0x33, 0xc0, 0x10, 0x23, 0x11, 0x4d, 0x0d, 0x30, 0x31, 0x31, 0x85, 0x71, 0x03, 0x39, 0xf1, 0x22, 0x61, 0x26, 0xc0, 0x20, 0x00, 0x42, 0x2c, 0xe2, 0xc0, 0x20, 0x00, 0x32, 0x2c, 0xe1, 0x5d, 0x0e, 0x4a, 0x33, 0x10, 0x23, 0x11, 0x4d, 0x0d, 0x30, 0x31, 0x31, 0x85, 0x6f, 0x03, 0x32, 0x61, 0x10, 0x29, 0xe1, 0xc0, 0x20, 0x00, 0x42, 0x2c, 0xf6, 0xc0, 0x20, 0x00, 0x32, 0x2c, 0xf3, 0x5d, 0x0e, 0x40, 0x33, 0xc0, 0x10, 0x23, 0x11, 0x4d, 0x0d, 0x30, 0x31, 0x31, 0x85, 0x6d, 0x03, 0x32, 0x61, 0x1e, 0x22, 0x61, 0x31, 0x5d, 0x0e, 0xc0, 0x20, 0x00, 0x42, 0x2c, 0xf5, 0xc0, 0x20, 0x00, 0x32, 0x2c, 0xf4, 0x4a, 0x33, 0x10, 0x23, 0x11, 0x4d, 0x0d, 0x30, 0x31, 0x31, 0x85, 0x6b, 0x03, 0x02, 0x21, 0x1e, 0x42, 0x21, 0x10, 0xd2, 0x21, 0x31, 0xa8, 0xe1, 0x58, 0xf1, 0x72, 0x21, 0x26, 0xbd, 0x05, 0x1b, 0x67, 0x77, 0xb6, 0x01, 0x1b, 0xb5, 0x7d, 0x04, 0x1b, 0x5a, 0xa7, 0xb5, 0x01, 0x1b, 0x74, 0xad, 0x00, 0xed, 0x03, 0x1b, 0x4d, 0xd7, 0xb4, 0x01, 0x1b, 0xa0, 0x0d, 0x04, 0x1b, 0xd2, 0x27, 0xbd, 0x01, 0x1b, 0xe3, 0x00, 0x41, 0x40, 0xa0, 0x81, 0x21, 0x70, 0x91, 0x21, 0x92, 0x61, 0x2b, 0x82, 0x61, 0x2d, 0x50, 0x27, 0x81, 0x00, 0x0a, 0x81, 0xd0, 0xde, 0x81, 0x60, 0x4b, 0x81, 0x42, 0x61, 0x23, 0xe0, 0xe1, 0x21, 0x02, 0x61, 0x2e, 0x22, 0x61, 0x2c, 0xb0, 0x51, 0x21, 0x52, 0x61, 0x22, 0x3d, 0x05, 0x2d, 0x04, 0x45, 0x61, 0x03, 0x22, 0x61, 0x28, 0x32, 0x61, 0x27, 0x52, 0x21, 0x2b, 0x42, 0x21, 0x2c, 0x3d, 0x05, 0x2d, 0x04, 0x05, 0x60, 0x03, 0x22, 0x61, 0x2a, 0x32, 0x61, 0x29, 0x52, 0x21, 0x2d, 0x42, 0x21, 0x2e, 0x3d, 0x05, 0x2d, 0x04, 0x05, 0x5f, 0x03, 0x5d, 0x0e, 0x4d, 0x0d, 0x32, 0x61, 0x30, 0x22, 0x61, 0x2f, 0x3d, 0x0e, 0x2d, 0x0d, 0xc5, 0x5d, 0x03, 0xb2, 0x21, 0x2f, 0x72, 0x21, 0x30, 0x68, 0xc1, 0x02, 0x21, 0x29, 0xa2, 0x21, 0x27, 0x42, 0x21, 0x28, 0x0a, 0xaa, 0x02, 0x21, 0x2a, 0x58, 0xd1, 0x0a, 0x04, 0x47, 0xb0, 0x01, 0x1b, 0xaa, 0x3a, 0x77, 0x2a, 0x4b, 0xb7, 0xb4, 0x01, 0x1b, 0x77, 0x7a, 0xba, 0x4a, 0xa0, 0x07, 0xba, 0x01, 0x1b, 0xbb, 0x22, 0x21, 0x21, 0x5a, 0x3b, 0xb9, 0x72, 0xa9, 0x62, 0x6a, 0x2a, 0xa7, 0xb2, 0x01, 0x1b, 0x33, 0x22, 0x61, 0x25, 0x32, 0x61, 0x24, 0xac, 0xaf, 0xe9, 0x31, 0xd9, 0x21, 0x52, 0x21, 0x22, 0x42, 0x21, 0x23, 0x72, 0x21, 0x2b, 0x62, 0x21, 0x2c, 0x21, 0x17, 0xff, 0x82, 0x21, 0x25, 0x9d, 0x03, 0xa2, 0x21, 0x2e, 0xb2, 0x21, 0x2d, 0xb9, 0x11, 0xa9, 0x01, 0x99, 0x51, 0x89, 0x41, 0x01, 0xe5, 0xe0, 0xc0, 0x00, 0x00, 0xc0, 0x20, 0x00, 0xd2, 0x2c, 0xf7, 0xd0, 0xd3, 0x21, 0xd0, 0x7f, 0x31, 0xc0, 0x20, 0x00, 0xa2, 0x2c, 0xf8, 0x1b, 0x6d, 0xa0, 0xa3, 0x21, 0xa0, 0x4f, 0x31, 0xd7, 0xb6, 0x01, 0x1b, 0x77, 0x0d, 0x04, 0x1b, 0x5a, 0xa7, 0xb5, 0x01, 0x1b, 0x04, 0x00, 0xd1, 0x21, 0x00, 0x41, 0x40, 0x50, 0xe0, 0x81, 0x60, 0x47, 0x81, 0x42, 0x61, 0x0b, 0x40, 0x24, 0x20, 0x70, 0x51, 0x21, 0x59, 0xa1, 0x3d, 0x05, 0x45, 0x52, 0x03, 0x5d, 0x0d, 0x4d, 0x0e, 0x32, 0x61, 0x13, 0x22, 0x61, 0x14, 0x3d, 0x0d, 0x2d, 0x0e, 0x45, 0x51, 0x03, 0x02, 0x21, 0x13, 0xd9, 0x91, 0x3a, 0x00, 0x32, 0x21, 0x14, 0xe9, 0x81, 0x2a, 0xa3, 0x37, 0xba, 0x01, 0x1b, 0x00, 0xa0, 0xda, 0x20, 0x00, 0xe0, 0x20, 0x16, 0x4f, 0x02, 0x21, 0xf4, 0xfe, 0xc0, 0x20, 0x00, 0x32, 0x2c, 0xf7, 0xc0, 0x20, 0x00, 0x78, 0xa1, 0x58, 0x81, 0x68, 0x91, 0x42, 0x2c, 0xf8, 0xa9, 0x21, 0x09, 0x31, 0x69, 0x11, 0x59, 0x01, 0x68, 0xb1, 0x01, 0xc0, 0xe0, 0xc0, 0x00, 0x00, 0xc0, 0x20, 0x00, 0x32, 0x2c, 0xf9, 0x42, 0x21, 0x11, 0x2d, 0x03, 0x6b, 0x44, 0x30, 0x3f, 0x31, 0xc5, 0x05, 0x04, 0x0d, 0x02, 0x4d, 0x03, 0xe0, 0x53, 0xc0, 0xd0, 0x72, 0xc0, 0x77, 0xb2, 0x01, 0x0b, 0x55, 0x32, 0x21, 0x24, 0x62, 0x21, 0x25, 0x30, 0x35, 0xc0, 0x60, 0x67, 0xc0, 0x67, 0xb7, 0x01, 0x0b, 0x33, 0x0c, 0x07, 0x0c, 0x05, 0xe6, 0x13, 0x07, 0xcc, 0x03, 0xcc, 0x26, 0x6d, 0x05, 0x3d, 0x07, 0x62, 0x61, 0x17, 0x32, 0x61, 0x18, 0x42, 0x61, 0x16, 0x02, 0x61, 0x15, 0x9c, 0xff, 0x21, 0xd8, 0xfe, 0xc0, 0x20, 0x00, 0x32, 0x2c, 0xf9, 0x52, 0x21, 0x16, 0x42, 0x21, 0x15, 0x72, 0x21, 0x18, 0x62, 0x21, 0x17, 0x01, 0xa5, 0xe0, 0xc0, 0x00, 0x00, 0x02, 0x21, 0x15, 0x42, 0x21, 0x16, 0xc2, 0x21, 0x17, 0xf2, 0x21, 0x18, 0x22, 0x21, 0x25, 0x82, 0x21, 0x21, 0x32, 0x21, 0x24, 0xe9, 0x58, 0xd9, 0x48, 0x39, 0x38, 0x29, 0x28, 0x49, 0x18, 0x09, 0x08, 0x0c, 0x34, 0x85, 0xa4, 0xff, 0x3d, 0x0f, 0xdd, 0x02, 0x0c, 0x34, 0x2d, 0x0c, 0x05, 0xa4, 0xff, 0x02, 0x21, 0x19, 0xc2, 0x21, 0x1a, 0xe2, 0x21, 0x1c, 0xf2, 0x21, 0x1d, 0x20, 0x2d, 0xc0, 0x32, 0xa0, 0xd0, 0xd2, 0x21, 0x1b, 0x00, 0x22, 0x11, 0x20, 0x20, 0x31, 0x3a, 0x11, 0x0d, 0xf0, 0x00, 0x00, 0x00, 0xc0, 0x82, 0xfe, 0x3f, 0x08, 0x00, 0x24, 0x00, 0x07, 0x00, 0x24, 0x00, 0x00, 0x00, 0x7e, 0x00, 0x88, 0x13, 0x00, 0x00, 0x22, 0xa0, 0x77, 0x32, 0xa0, 0x00, 0x42, 0xa0, 0x12, 0x52, 0xa0, 0x07, 0x0c, 0x06, 0x12, 0xc1, 0xa0, 0xd9, 0xf1, 0xc9, 0xe1, 0xc1, 0xd7, 0xe1, 0x09, 0xd1, 0x08, 0x0c, 0xe2, 0x61, 0x10, 0x02, 0x20, 0x25, 0xf2, 0x61, 0x11, 0xc0, 0x00, 0x00, 0x08, 0x0c, 0x02, 0x20, 0x28, 0x29, 0xc1, 0xc0, 0x00, 0x00, 0x08, 0x0c, 0x02, 0x20, 0x34, 0x0c, 0x02, 0xc0, 0x00, 0x00, 0x0c, 0x72, 0x08, 0x0c, 0x0c, 0x13, 0x02, 0x20, 0x2b, 0x0c, 0xf4, 0xc0, 0x00, 0x00, 0x0c, 0x22, 0x08, 0x0c, 0x0c, 0x13, 0x02, 0x20, 0x2b, 0x42, 0xa1, 0x04, 0xc0, 0x00, 0x00, 0x0c, 0x02, 0x0c, 0x03, 0x42, 0xa1, 0xf4, 0x08, 0x0c, 0x0c, 0xc5, 0x02, 0x20, 0x3a, 0x6d, 0x01, 0xc0, 0x00, 0x00, 0x6c, 0xf3, 0xd1, 0xb4, 0xe0, 0xc0, 0x20, 0x00, 0x22, 0x2d, 0xe4, 0x30, 0x22, 0x10, 0xc0, 0x20, 0x00, 0x0c, 0x03, 0x0c, 0x94, 0x0c, 0x75, 0x0c, 0x06, 0x0c, 0x07, 0x08, 0x0c, 0x22, 0x6d, 0xe4, 0x02, 0x20, 0x27, 0x22, 0xa0, 0x77, 0xc0, 0x00, 0x00, 0x22, 0xa0, 0x77, 0x0c, 0x03, 0x1c, 0x24, 0x0c, 0x75, 0x08, 0x0c, 0x0c, 0x06, 0x02, 0x20, 0x27, 0x0c, 0x07, 0xc0, 0x00, 0x00, 0x22, 0xa0, 0x77, 0x0c, 0x03, 0x1c, 0x04, 0x0c, 0x25, 0x08, 0x0c, 0x0c, 0x26, 0x02, 0x20, 0x27, 0x0c, 0x17, 0xc0, 0x00, 0x00, 0x22, 0xa0, 0x77, 0x0c, 0x03, 0x1c, 0x84, 0x0c, 0x75, 0x08, 0x0c, 0x0c, 0x76, 0x02, 0x20, 0x27, 0x0c, 0x17, 0xc0, 0x00, 0x00, 0x0c, 0x0d, 0x0c, 0x6f, 0x0c, 0x0e, 0x0c, 0x0a, 0xb1, 0x31, 0xec, 0xb2, 0x61, 0x12, 0xa2, 0x61, 0x13, 0x61, 0xc1, 0xff, 0x52, 0x21, 0x13, 0x6a, 0x55, 0x52, 0x05, 0x00, 0x42, 0xa1, 0x00, 0x80, 0x55, 0x01, 0x50, 0x58, 0x31, 0x50, 0x44, 0xc0, 0x40, 0x40, 0x74, 0x60, 0x44, 0x11, 0xc0, 0x20, 0x00, 0x31, 0x8e, 0xe0, 0x51, 0x74, 0xe9, 0x62, 0x23, 0xee, 0x71, 0xb8, 0xff, 0x50, 0x66, 0x10, 0x40, 0x66, 0x20, 0x70, 0x66, 0x20, 0xc0, 0x20, 0x00, 0x62, 0x63, 0xee, 0xc0, 0x20, 0x00, 0x22, 0x23, 0xef, 0x50, 0x22, 0x10, 0x40, 0x22, 0x20, 0x41, 0xb2, 0xff, 0x40, 0x22, 0x20, 0xc0, 0x20, 0x00, 0x4d, 0x0e, 0x08, 0x0c, 0x22, 0x63, 0xef, 0x0c, 0x32, 0x02, 0x20, 0x2b, 0x0c, 0x13, 0xc0, 0x00, 0x00, 0x0c, 0x32, 0x08, 0x0c, 0x0c, 0x23, 0x02, 0x20, 0x2b, 0x4d, 0x0f, 0xc0, 0x00, 0x00, 0x2d, 0x0e, 0x3d, 0x0f, 0x42, 0x21, 0x12, 0xc5, 0x61, 0xf8, 0x08, 0x0c, 0x08, 0xf0, 0x0c, 0x12, 0xc0, 0x00, 0x00, 0x08, 0x0c, 0x02, 0x20, 0x10, 0x0c, 0x12, 0xc0, 0x00, 0x00, 0x08, 0x0c, 0x0c, 0x12, 0x08, 0xd0, 0x32, 0xa4, 0x00, 0xc0, 0x00, 0x00, 0xc0, 0x20, 0x00, 0x21, 0x70, 0xe0, 0x08, 0x0c, 0x22, 0x22, 0xf9, 0x08, 0xc0, 0x22, 0x61, 0x14, 0xc0, 0x00, 0x00, 0x31, 0xa2, 0xe6, 0x02, 0x21, 0x14, 0x1b, 0xdd, 0x37, 0x20, 0x08, 0x21, 0x97, 0xff, 0x07, 0xa2, 0x36, 0x37, 0xa0, 0x1f, 0x66, 0x6f, 0x04, 0x1c, 0xef, 0x86, 0x08, 0x00, 0x0c, 0x6f, 0xcc, 0x3e, 0x4c, 0x0e, 0xc6, 0x02, 0x00, 0x42, 0xa0, 0x60, 0x52, 0xce, 0xc0, 0xe0, 0xe0, 0xf4, 0x50, 0xe4, 0x83, 0x86, 0x02, 0x00, 0x62, 0x21, 0x13, 0x1b, 0x76, 0x70, 0x60, 0x74, 0x62, 0x61, 0x13, 0xd0, 0xd0, 0x74, 0x82, 0xcd, 0xfb, 0x56, 0xc8, 0xf0, 0x0c, 0x0e, 0x0c, 0x0d, 0x08, 0x0c, 0x0c, 0x12, 0x08, 0xd0, 0x31, 0x0b, 0xf7, 0xc0, 0x00, 0x00, 0x22, 0xc1, 0x10, 0x0c, 0xe3, 0x0c, 0x04, 0x45, 0x8f, 0xff, 0x08, 0x0c, 0x08, 0xc0, 0xfd, 0x02, 0xc0, 0x00, 0x00, 0x1b, 0xdd, 0xd0, 0xd0, 0x74, 0xe7, 0xaf, 0x01, 0xfd, 0x0e, 0x00, 0xef, 0x11, 0xe0, 0xe0, 0x31, 0x66, 0x4d, 0xcd, 0x32, 0xa0, 0x23, 0x41, 0x7a, 0xff, 0x52, 0xa0, 0x07, 0x22, 0xce, 0x08, 0x20, 0x24, 0x21, 0x00, 0x22, 0x11, 0x20, 0x20, 0x31, 0x45, 0xf1, 0xf8, 0xd1, 0x46, 0xe0, 0x22, 0xa0, 0x77, 0x0c, 0x03, 0x1c, 0x24, 0x0c, 0x75, 0x0c, 0x06, 0x08, 0x0c, 0x78, 0xc1, 0x02, 0x20, 0x27, 0x70, 0x70, 0x74, 0xc0, 0x00, 0x00, 0x1c, 0x04, 0xc0, 0x20, 0x00, 0x22, 0x2d, 0xe4, 0x40, 0x22, 0x20, 0xc0, 0x20, 0x00, 0x0c, 0x03, 0x0c, 0x25, 0x0c, 0x26, 0x0c, 0x07, 0x08, 0x0c, 0x22, 0x6d, 0xe4, 0x02, 0x20, 0x27, 0x22, 0xa0, 0x77, 0xc0, 0x00, 0x00, 0x22, 0xa0, 0x77, 0x0c, 0x03, 0x1c, 0x84, 0x0c, 0x75, 0x08, 0x0c, 0x0c, 0x76, 0x02, 0x20, 0x27, 0x0c, 0x07, 0xc0, 0x00, 0x00, 0x08, 0x0c, 0x02, 0x20, 0x1b, 0x0c, 0x02, 0xc0, 0x00, 0x00, 0x08, 0x0c, 0x02, 0x20, 0x10, 0x0c, 0x02, 0xc0, 0x00, 0x00, 0x08, 0x0c, 0x08, 0xc0, 0xc0, 0x00, 0x00, 0x08, 0x0c, 0x02, 0x20, 0x32, 0xc0, 0x00, 0x00, 0x08, 0x0c, 0x02, 0x20, 0x31, 0xc0, 0x00, 0x00, 0x08, 0x0c, 0x02, 0x20, 0x2f, 0xc0, 0x00, 0x00, 0xc8, 0xe1, 0xd8, 0xf1, 0xe2, 0x21, 0x10, 0xf2, 0x21, 0x11, 0x08, 0xd1, 0x12, 0xc1, 0x60, 0x0d, 0xf0, 0x00, 0x00, 0x00, 0x13, 0x40, 0x12, 0xc1, 0xf0, 0x49, 0x01, 0xc9, 0x21, 0x09, 0x11, 0xcd, 0x03, 0x01, 0x29, 0xe1, 0x0c, 0x13, 0x08, 0x00, 0x00, 0x33, 0xa1, 0x08, 0xd0, 0x30, 0x30, 0xf4, 0xc0, 0x00, 0x00, 0x21, 0x18, 0xe0, 0x6b, 0x5c, 0x0b, 0x6c, 0x0c, 0x14, 0x00, 0x16, 0x40, 0x00, 0x44, 0xa1, 0xc0, 0x20, 0x00, 0x38, 0x01, 0x62, 0x22, 0xf7, 0x00, 0x05, 0x40, 0x4a, 0x66, 0x60, 0x60, 0xb1, 0x62, 0x53, 0x00, 0xc0, 0x20, 0x00, 0x00, 0x05, 0x40, 0x22, 0x22, 0xf8, 0x01, 0x1a, 0xe1, 0x4a, 0x22, 0x08, 0x00, 0x20, 0x20, 0xb1, 0x08, 0xc0, 0x22, 0x53, 0x01, 0xc0, 0x00, 0x00, 0xc8, 0x21, 0x08, 0x11, 0x12, 0xc1, 0x10, 0x0d, 0xf0, 0x00, 0x00, 0x22, 0xa0, 0x77, 0x0c, 0x03, 0x1c, 0x24, 0x0c, 0x75, 0x0c, 0x06, 0x12, 0xc1, 0xb0, 0xc9, 0x41, 0xd9, 0x51, 0xd1, 0x0e, 0xe1, 0x09, 0x31, 0x08, 0x0d, 0xe9, 0x61, 0x02, 0x20, 0x25, 0xf9, 0x71, 0xc0, 0x00, 0x00, 0x0c, 0x03, 0x1c, 0x24, 0x0c, 0x75, 0x0c, 0x06, 0x0c, 0x07, 0x08, 0x0d, 0xed, 0x02, 0x02, 0x20, 0x27, 0x22, 0xa0, 0x77, 0xc0, 0x00, 0x00, 0x6c, 0xf3, 0xc1, 0xf7, 0xdf, 0xc0, 0x20, 0x00, 0x22, 0x2c, 0xe4, 0x30, 0x22, 0x10, 0xc0, 0x20, 0x00, 0x08, 0x0d, 0xe2, 0x61, 0x13, 0x02, 0x20, 0x28, 0x22, 0x6c, 0xe4, 0xc0, 0x00, 0x00, 0x0c, 0x22, 0x08, 0x0d, 0x0c, 0x13, 0x02, 0x20, 0x2b, 0x0c, 0x04, 0xc0, 0x00, 0x00, 0x0c, 0x32, 0x08, 0x0d, 0x0c, 0x13, 0x02, 0x20, 0x2b, 0x0c, 0x04, 0xc0, 0x00, 0x00, 0x0c, 0x32, 0x08, 0x0d, 0x0c, 0x23, 0x02, 0x20, 0x2b, 0x0c, 0x64, 0xc0, 0x00, 0x00, 0x08, 0x0d, 0x02, 0x20, 0x10, 0x0c, 0x12, 0xc0, 0x00, 0x00, 0x0c, 0x0c, 0x0c, 0x0f, 0x0c, 0x0e, 0x22, 0xa2, 0x00, 0x0c, 0x15, 0x0c, 0x16, 0x0c, 0x17, 0x0c, 0x18, 0x0c, 0x09, 0x0c, 0x0a, 0xa9, 0x21, 0x99, 0x11, 0x89, 0xc1, 0x79, 0xd1, 0x69, 0xe1, 0x59, 0xf1, 0x22, 0x61, 0x12, 0x0c, 0x42, 0x08, 0x0d, 0x0c, 0x13, 0x02, 0x20, 0x2b, 0x4d, 0x0c, 0xc0, 0x00, 0x00, 0x0c, 0x42, 0x08, 0x0d, 0x0c, 0x23, 0x02, 0x20, 0x2b, 0x4d, 0x0c, 0xc0, 0x00, 0x00, 0x0c, 0x52, 0x08, 0x0d, 0x0c, 0x13, 0x02, 0x20, 0x2b, 0x4d, 0x0c, 0xc0, 0x00, 0x00, 0x0c, 0x52, 0x08, 0x0d, 0x0c, 0x23, 0x02, 0x20, 0x2b, 0x4d, 0x0c, 0xc0, 0x00, 0x00, 0x0c, 0xa2, 0x01, 0x5f, 0xe3, 0xc0, 0x00, 0x00, 0x0c, 0x12, 0x0c, 0x63, 0x4d, 0x01, 0x05, 0xea, 0xff, 0x08, 0x11, 0x48, 0x21, 0x92, 0xaf, 0x00, 0xa2, 0xa0, 0xff, 0x78, 0xe1, 0x28, 0xf1, 0x62, 0x91, 0x00, 0x8c, 0xc2, 0x67, 0xa9, 0x0a, 0x0b, 0x3c, 0x0c, 0x05, 0x59, 0xf1, 0x30, 0x30, 0xf4, 0x39, 0xb1, 0x28, 0xd1, 0x52, 0x91, 0x01, 0x8c, 0xc7, 0x57, 0xa9, 0x0a, 0x0b, 0x8c, 0x0c, 0x0b, 0xb9, 0xe1, 0x80, 0x80, 0xf4, 0x89, 0xa1, 0x88, 0xc1, 0x8c, 0x72, 0xa7, 0x96, 0x05, 0xc9, 0x91, 0x0c, 0x03, 0x39, 0xd1, 0x8c, 0x78, 0xa7, 0x95, 0x05, 0xc9, 0x81, 0x0c, 0x0b, 0xb9, 0xc1, 0x16, 0x7c, 0x04, 0x82, 0x21, 0x10, 0x80, 0x86, 0xc0, 0x00, 0x88, 0x11, 0x80, 0x80, 0x31, 0x7d, 0x08, 0xe7, 0xa8, 0x01, 0x7d, 0x0e, 0xb2, 0x21, 0x11, 0x00, 0xe7, 0x11, 0xe0, 0xe0, 0x31, 0xb0, 0xb5, 0xc0, 0x87, 0xa0, 0x01, 0x8d, 0x00, 0x00, 0x08, 0x11, 0x00, 0x00, 0x31, 0x00, 0x8b, 0x11, 0x80, 0x80, 0x31, 0x7d, 0x08, 0xf7, 0xa8, 0x01, 0x7d, 0x0f, 0x00, 0xf7, 0x11, 0xf0, 0xf0, 0x31, 0x87, 0xa4, 0x01, 0x8d, 0x04, 0x00, 0x48, 0x11, 0x40, 0x40, 0x31, 0x52, 0x61, 0x11, 0x62, 0x61, 0x10, 0x49, 0x21, 0x09, 0x11, 0x72, 0x21, 0x12, 0x1b, 0xcc, 0xc0, 0xc0, 0xf4, 0x0b, 0x77, 0x72, 0x61, 0x12, 0x56, 0x37, 0xf0, 0x08, 0x0d, 0x02, 0x20, 0x10, 0x0c, 0x02, 0xc0, 0x00, 0x00, 0x42, 0x21, 0x13, 0x51, 0xff, 0xf0, 0x01, 0x74, 0xe3, 0xe6, 0x6e, 0x04, 0x28, 0x11, 0xd6, 0x62, 0x00, 0x38, 0x05, 0x00, 0x33, 0x20, 0x39, 0x05, 0x88, 0xb1, 0xe6, 0x6f, 0x04, 0x68, 0x21, 0xd6, 0x66, 0x00, 0x78, 0x05, 0x00, 0x77, 0x20, 0x79, 0x05, 0x02, 0xa0, 0x6d, 0x87, 0xb0, 0x11, 0x98, 0xa1, 0xa8, 0x91, 0x97, 0xb0, 0x0a, 0x02, 0xa1, 0x90, 0xa7, 0x30, 0x04, 0xb8, 0x81, 0xb7, 0xb0, 0x09, 0xe1, 0x83, 0xdf, 0xc8, 0x05, 0xe0, 0xcc, 0x20, 0xc9, 0x05, 0xc1, 0x85, 0xdf, 0x22, 0xa0, 0x77, 0x0c, 0x03, 0x0c, 0x75, 0x0c, 0x06, 0x08, 0x0d, 0x40, 0x70, 0x74, 0x02, 0x20, 0x27, 0x1c, 0x24, 0xc0, 0x00, 0x00, 0x1c, 0x03, 0xc0, 0x20, 0x00, 0x22, 0x2c, 0xe4, 0x30, 0x22, 0x20, 0xc0, 0x20, 0x00, 0x08, 0x0d, 0x02, 0x20, 0x2f, 0x22, 0x6c, 0xe4, 0xc0, 0x00, 0x00, 0xc8, 0x41, 0xd8, 0x51, 0xe8, 0x61, 0xf8, 0x71, 0x08, 0x31, 0x12, 0xc1, 0x50, 0x0d, 0xf0, 0x00, 0xd0, 0x82, 0xfe, 0x3f, 0xe0, 0x82, 0xfe, 0x3f, 0xf0, 0x82, 0xfe, 0x3f, 0x31, 0xfd, 0xff, 0x42, 0xa0, 0x0e, 0x22, 0xa0, 0xa0, 0x20, 0x11, 0xc0, 0xd2, 0x61, 0x1e, 0xe2, 0x61, 0x1f, 0xf2, 0x61, 0x20, 0x22, 0xc1, 0x10, 0xc2, 0x61, 0x1d, 0x02, 0x61, 0x1c, 0xc1, 0x77, 0xe0, 0xc5, 0x7f, 0x03, 0x02, 0x2c, 0x00, 0x02, 0x20, 0x28, 0xc0, 0x00, 0x00, 0xd1, 0xe8, 0xee, 0x08, 0x0c, 0x22, 0x1d, 0x00, 0x02, 0x20, 0x34, 0x20, 0x20, 0x44, 0xc0, 0x00, 0x00, 0x22, 0x1d, 0x00, 0x32, 0xc1, 0x20, 0x0c, 0x14, 0xc5, 0xce, 0xfb, 0x0c, 0x22, 0x08, 0x0c, 0x0c, 0x13, 0x02, 0x20, 0x2b, 0x0c, 0x04, 0xc0, 0x00, 0x00, 0x08, 0x0c, 0x02, 0x20, 0x31, 0xc0, 0x00, 0x00, 0x08, 0x0c, 0x02, 0x20, 0x10, 0x0c, 0x12, 0xc0, 0x00, 0x00, 0x0c, 0xf7, 0x0c, 0xea, 0x51, 0xe2, 0xff, 0x31, 0xe3, 0xff, 0x0c, 0x00, 0x0c, 0x08, 0x82, 0x61, 0x21, 0xf0, 0xd0, 0x11, 0x30, 0x30, 0x90, 0x5a, 0x50, 0x02, 0x61, 0x22, 0x72, 0x61, 0x25, 0x32, 0x13, 0x00, 0x98, 0x0c, 0x52, 0x05, 0x00, 0x92, 0x29, 0x15, 0xa7, 0x90, 0x09, 0x0c, 0x02, 0x4c, 0x04, 0xc0, 0x09, 0x00, 0xc6, 0x02, 0x00, 0x50, 0x45, 0x20, 0x22, 0xa0, 0x00, 0x52, 0xa0, 0x06, 0xc0, 0x09, 0x00, 0x21, 0xc6, 0xe1, 0x32, 0xc1, 0x50, 0x0c, 0xa4, 0x08, 0x0c, 0x0c, 0x05, 0x02, 0x20, 0x3b, 0x0c, 0x06, 0xc0, 0x00, 0x00, 0x0c, 0x12, 0x4c, 0x03, 0x1c, 0x44, 0x0c, 0x05, 0x0c, 0x07, 0xe2, 0xd1, 0xff, 0x0c, 0x06, 0x69, 0x01, 0x69, 0x11, 0x69, 0x21, 0x08, 0x0c, 0xe2, 0xce, 0x30, 0x02, 0x20, 0x1a, 0x0c, 0x06, 0xc0, 0x00, 0x00, 0x0c, 0x0f, 0xea, 0x0d, 0x02, 0x61, 0x23, 0xd2, 0xa0, 0x80, 0xf2, 0x61, 0x24, 0xf2, 0xaf, 0x80, 0x22, 0xa0, 0x77, 0x0c, 0x03, 0x0c, 0x94, 0x0c, 0x75, 0x08, 0x0c, 0x0c, 0x06, 0x02, 0x20, 0x27, 0x7d, 0x0d, 0xc0, 0x00, 0x00, 0x0c, 0x52, 0x01, 0xc3, 0xe2, 0xc0, 0x00, 0x00, 0x08, 0x0c, 0x0c, 0x12, 0x08, 0xd0, 0x32, 0xa4, 0x00, 0xc0, 0x00, 0x00, 0x22, 0xc1, 0x60, 0x0c, 0xa3, 0xc5, 0x9b, 0xf8, 0x08, 0x0c, 0x08, 0xc0, 0xc0, 0x00, 0x00, 0x08, 0x0c, 0x22, 0x21, 0x18, 0x08, 0xe0, 0x0c, 0x03, 0xc0, 0x00, 0x00, 0x0c, 0x03, 0x08, 0x0c, 0xed, 0x02, 0x08, 0xe0, 0x22, 0x21, 0x19, 0xc0, 0x00, 0x00, 0x7c, 0x10, 0x42, 0x21, 0x23, 0x4b, 0x22, 0x4b, 0x3e, 0x30, 0x33, 0x21, 0x20, 0x23, 0x21, 0x22, 0x54, 0x80, 0x00, 0x33, 0x11, 0x30, 0x30, 0x31, 0x00, 0x22, 0x11, 0x20, 0x20, 0x31, 0x30, 0x22, 0xc0, 0x27, 0x20, 0x04, 0x1c, 0xe4, 0x47, 0xa3, 0x1d, 0x52, 0xa0, 0x3c, 0x57, 0xa3, 0x29, 0xf0, 0x33, 0x11, 0x30, 0x3f, 0xc0, 0x32, 0xc3, 0x78, 0x00, 0xf3, 0x11, 0xf0, 0xf0, 0x31, 0xa6, 0xef, 0x02, 0x06, 0x53, 0x00, 0x30, 0xd0, 0x74, 0x42, 0x21, 0x24, 0x52, 0xc4, 0x01, 0x50, 0x40, 0x74, 0x42, 0x61, 0x24, 0x42, 0xc4, 0xf8, 0x56, 0x44, 0xf5, 0xd0, 0x7d, 0x20, 0x22, 0xa0, 0x77, 0x0c, 0x03, 0x0c, 0x94, 0x08, 0x0c, 0x0c, 0x75, 0x02, 0x20, 0x27, 0x0c, 0x06, 0xc0, 0x00, 0x00, 0x0c, 0x52, 0x01, 0x98, 0xe2, 0xc0, 0x00, 0x00, 0x08, 0x0c, 0x0c, 0x12, 0x08, 0xd0, 0x31, 0x1e, 0xe9, 0xc0, 0x00, 0x00, 0x22, 0xc1, 0x60, 0x0c, 0xc3, 0x05, 0x91, 0xf8, 0x08, 0x0c, 0x08, 0xc0, 0xc0, 0x00, 0x00, 0x08, 0x0c, 0x22, 0x21, 0x19, 0x08, 0xe0, 0x0c, 0x03, 0xc0, 0x00, 0x00, 0x32, 0x21, 0x23, 0x02, 0xcf, 0x50, 0x4b, 0xe2, 0xd2, 0xcf, 0x51, 0x22, 0x21, 0x22, 0xe0, 0xe3, 0x21, 0x00, 0xd0, 0xb3, 0xd0, 0xd1, 0x21, 0xd0, 0x0e, 0xc0, 0x02, 0x53, 0x80, 0xbc, 0x02, 0xf6, 0x42, 0x02, 0xc6, 0x25, 0x00, 0x42, 0xc1, 0x90, 0x22, 0x21, 0x23, 0x32, 0x21, 0x22, 0x22, 0x92, 0x7f, 0x4a, 0x33, 0x32, 0x03, 0x7f, 0x20, 0x20, 0xc0, 0x30, 0x22, 0xc0, 0x08, 0x0c, 0x80, 0x22, 0x01, 0x08, 0x00, 0x20, 0x28, 0x31, 0xc0, 0x00, 0x00, 0xa6, 0x52, 0x70, 0x0c, 0x13, 0x32, 0x61, 0x21, 0x08, 0x0c, 0x08, 0xc0, 0xc0, 0x00, 0x00, 0x08, 0x0c, 0x02, 0x20, 0x1b, 0x0c, 0x12, 0xc0, 0x00, 0x00, 0x0c, 0xea, 0x51, 0x6c, 0xff, 0x31, 0x6c, 0xff, 0x72, 0x21, 0x25, 0x02, 0x21, 0x22, 0x0b, 0x77, 0x1b, 0x20, 0x20, 0x00, 0x74, 0xf0, 0xd0, 0x11, 0x30, 0x30, 0x90, 0x5a, 0x50, 0x56, 0xd7, 0xe1, 0x08, 0x0c, 0x02, 0x20, 0x10, 0x0c, 0x02, 0xc0, 0x00, 0x00, 0x08, 0x0c, 0x02, 0x20, 0x32, 0xc0, 0x00, 0x00, 0x08, 0x0c, 0x02, 0x20, 0x31, 0xc0, 0x00, 0x00, 0x08, 0x0c, 0x02, 0x20, 0x2f, 0xc0, 0x00, 0x00, 0x22, 0x21, 0x21, 0xc2, 0x21, 0x1d, 0xd2, 0x21, 0x1e, 0xe2, 0x21, 0x1f, 0xf2, 0x21, 0x20, 0x32, 0xa0, 0xa0, 0x02, 0x21, 0x1c, 0x3a, 0x11, 0x0d, 0xf0, 0x22, 0x21, 0x22, 0xb6, 0x22, 0x8d, 0xd0, 0x2e, 0xc0, 0x52, 0xc1, 0x90, 0x32, 0x21, 0x22, 0x08, 0x0c, 0x42, 0x21, 0x23, 0x08, 0x00, 0x42, 0x94, 0x7f, 0x5a, 0x33, 0x32, 0x03, 0x7f, 0x40, 0x22, 0xc0, 0x30, 0x22, 0xc0, 0x80, 0x22, 0x01, 0x20, 0x28, 0x31, 0xc0, 0x00, 0x00, 0xa6, 0x72, 0x02, 0xc6, 0xd6, 0xff, 0x46, 0xd7, 0xff, 0xd2, 0xa0, 0x7f, 0xf2, 0xa0, 0x7f, 0x86, 0xaf, 0xff, 0x00, 0x00, 0x10, 0x83, 0xfe, 0x3f, 0x80, 0xf1, 0xfe, 0x3f, 0xa0, 0xf3, 0xfe, 0x3f, 0x41, 0xfd, 0xff, 0x32, 0xa0, 0x00, 0x12, 0xc1, 0xd0, 0xd9, 0x71, 0x22, 0xc1, 0x10, 0x09, 0x51, 0xe9, 0x81, 0xf9, 0x91, 0xc9, 0x61, 0xf1, 0x89, 0xe2, 0x0c, 0x0c, 0xe1, 0xf7, 0xff, 0x0c, 0x20, 0x4a, 0x33, 0x4a, 0x00, 0x02, 0x00, 0x00, 0x32, 0x13, 0x00, 0x32, 0x52, 0x00, 0x02, 0x42, 0x02, 0x7d, 0x0f, 0x0c, 0x04, 0x61, 0x85, 0xe2, 0x0c, 0x10, 0x22, 0xa0, 0x64, 0x31, 0xa1, 0xea, 0x51, 0xef, 0xff, 0xc0, 0xdc, 0xa0, 0x1b, 0xdd, 0x52, 0x95, 0x00, 0x32, 0x03, 0x01, 0x29, 0x01, 0x09, 0x11, 0x80, 0x2d, 0x01, 0x20, 0x28, 0x31, 0x45, 0xaa, 0x01, 0xc0, 0x2c, 0x11, 0xc0, 0x22, 0xc0, 0x2a, 0x2e, 0x05, 0x55, 0x01, 0xd0, 0x20, 0x74, 0x85, 0xca, 0xff, 0x42, 0xc1, 0x10, 0x4a, 0x4c, 0x22, 0x44, 0x00, 0x32, 0x01, 0x10, 0x52, 0x01, 0x11, 0x9c, 0x03, 0x8c, 0xe5, 0x62, 0x01, 0x12, 0x8c, 0x96, 0x0c, 0x12, 0x0c, 0x23, 0x0c, 0x24, 0x0c, 0x55, 0x85, 0x84, 0xf8, 0x1b, 0xcc, 0xc0, 0xc0, 0x74, 0x66, 0x3c, 0x9a, 0xc8, 0x61, 0xd8, 0x71, 0xe8, 0x81, 0xf8, 0x91, 0x08, 0x51, 0x12, 0xc1, 0x30, 0x0d, 0xf0, 0xf6, 0x93, 0x03, 0x2c, 0x72, 0x0d, 0xf0, 0x0c, 0xc4, 0x37, 0x34, 0x03, 0x2c, 0x42, 0x0d, 0xf0, 0x66, 0x22, 0x03, 0x2c, 0x12, 0x0d, 0xf0, 0x66, 0x32, 0x03, 0x1c, 0xe2, 0x0d, 0xf0, 0x66, 0x42, 0x03, 0x1c, 0xb2, 0x0d, 0xf0, 0xf6, 0x72, 0x06, 0xb6, 0x52, 0x03, 0x1c, 0x82, 0x0d, 0xf0, 0xf6, 0x92, 0x06, 0xb6, 0x72, 0x03, 0x1c, 0x52, 0x0d, 0xf0, 0x0c, 0xd3, 0x27, 0x33, 0x06, 0xb6, 0x92, 0x03, 0x1c, 0x22, 0x0d, 0xf0, 0x1c, 0x66, 0x27, 0x36, 0x06, 0x27, 0xb3, 0x03, 0x0c, 0xf2, 0x0d, 0xf0, 0x2c, 0x93, 0x27, 0x33, 0x06, 0x27, 0xb6, 0x03, 0x0c, 0xc2, 0x0d, 0xf0, 0x5c, 0x86, 0x27, 0x36, 0x06, 0x27, 0xb3, 0x03, 0x0c, 0x92, 0x0d, 0xf0, 0x32, 0xa1, 0x0a, 0x27, 0x33, 0x06, 0x27, 0xb6, 0x03, 0x0c, 0x62, 0x0d, 0xf0, 0x52, 0xa3, 0x20, 0x27, 0x35, 0x06, 0x27, 0xb3, 0x03, 0x0c, 0x32, 0x0d, 0xf0, 0x0c, 0x02, 0x0d, 0xf0, 0x00, 0x00, 0x00, 0x24, 0x10, 0x00, 0x00, 0x00, 0xe0, 0x12, 0xc1, 0xa0, 0xf9, 0xf1, 0x39, 0xa1, 0x49, 0x81, 0x69, 0x91, 0xd9, 0xd1, 0x09, 0xb1, 0xc9, 0xc1, 0xe9, 0xe1, 0xe1, 0x72, 0xdf, 0xcd, 0x05, 0x08, 0x0e, 0xdd, 0x02, 0x08, 0xf0, 0x0c, 0x12, 0xc0, 0x00, 0x00, 0xf1, 0xf5, 0xff, 0xd2, 0x61, 0x17, 0x01, 0x5f, 0xde, 0x41, 0xf4, 0xff, 0x0c, 0x03, 0x0c, 0x15, 0x2d, 0x03, 0xc0, 0x20, 0x00, 0xb2, 0x20, 0xf1, 0x40, 0xbb, 0x10, 0x48, 0xa1, 0x40, 0xbb, 0x20, 0xf0, 0xbb, 0x20, 0xc0, 0x20, 0x00, 0x32, 0x61, 0x10, 0x0c, 0x0f, 0x00, 0x1d, 0x40, 0x0c, 0x06, 0x0c, 0x07, 0x0c, 0x08, 0x0c, 0x09, 0xb2, 0x60, 0xf1, 0x39, 0x1c, 0x39, 0x0c, 0x39, 0x3c, 0x39, 0x2c, 0x39, 0x5c, 0x39, 0x4c, 0x39, 0x7c, 0x39, 0x6c, 0x92, 0x61, 0x11, 0x82, 0x61, 0x14, 0x72, 0x61, 0x12, 0x62, 0x61, 0x13, 0x00, 0x45, 0xa1, 0x42, 0x61, 0x16, 0xe6, 0x14, 0x02, 0x06, 0x2b, 0x00, 0xf8, 0x81, 0x0c, 0x0d, 0x00, 0x1f, 0x40, 0x00, 0x65, 0xa1, 0x60, 0x60, 0xf4, 0x62, 0x61, 0x15, 0x08, 0x0e, 0x0c, 0x12, 0x08, 0xd0, 0x32, 0x21, 0x15, 0xc0, 0x00, 0x00, 0x3d, 0x0f, 0x2d, 0x01, 0x0c, 0x04, 0x45, 0x0a, 0xff, 0x48, 0x2c, 0x58, 0x21, 0x38, 0x31, 0x08, 0x1c, 0x28, 0x0c, 0x3a, 0x00, 0x5a, 0x52, 0x27, 0xb5, 0x01, 0x1b, 0x00, 0x38, 0x4c, 0x09, 0x1c, 0x59, 0x0c, 0x08, 0x3c, 0x28, 0x11, 0x58, 0x01, 0x2a, 0x00, 0x5a, 0x54, 0x47, 0xb5, 0x01, 0x1b, 0x00, 0x09, 0x3c, 0x59, 0x2c, 0x08, 0x5c, 0x28, 0x51, 0x58, 0x41, 0x2a, 0x00, 0x5a, 0x53, 0x37, 0xb5, 0x01, 0x1b, 0x00, 0x38, 0x6c, 0x09, 0x5c, 0x59, 0x4c, 0x08, 0x7c, 0x28, 0x71, 0x58, 0x61, 0x2a, 0x00, 0x5a, 0x53, 0x37, 0xb5, 0x01, 0x1b, 0x00, 0x28, 0x0e, 0x09, 0x7c, 0x08, 0xc2, 0x59, 0x6c, 0xc0, 0x00, 0x00, 0x32, 0x21, 0x16, 0x1b, 0xdd, 0xd0, 0xd0, 0x74, 0xd0, 0x33, 0xc0, 0x56, 0x13, 0xf8, 0x38, 0x1c, 0x28, 0x0c, 0xf8, 0x4c, 0x08, 0x6c, 0x48, 0x7c, 0x58, 0x5c, 0x68, 0x2c, 0x78, 0x3c, 0x72, 0x61, 0x10, 0x62, 0x61, 0x11, 0x52, 0x61, 0x14, 0x42, 0x61, 0x12, 0x02, 0x61, 0x13, 0xd2, 0x21, 0x17, 0xd0, 0x4d, 0x20, 0xc5, 0x4f, 0x03, 0x22, 0x6c, 0x00, 0x32, 0x6c, 0x01, 0x42, 0x21, 0x14, 0x32, 0x21, 0x10, 0x82, 0x21, 0x11, 0x40, 0x33, 0xc0, 0xf0, 0x28, 0xc0, 0x27, 0xb8, 0x01, 0x0b, 0x33, 0xd0, 0x4d, 0x20, 0xc5, 0x4d, 0x03, 0x4d, 0x0d, 0x29, 0x2c, 0x39, 0x3c, 0x2d, 0x0f, 0x32, 0x21, 0x14, 0xc5, 0x4c, 0x03, 0x4d, 0x0d, 0x39, 0x5c, 0x29, 0x4c, 0x32, 0x21, 0x12, 0x22, 0x21, 0x13, 0xc5, 0x4b, 0x03, 0x39, 0x7c, 0x29, 0x6c, 0x0c, 0x34, 0x05, 0xef, 0xfe, 0x58, 0x0c, 0x48, 0x7c, 0x38, 0x1c, 0xdd, 0x02, 0x28, 0x6c, 0x40, 0x33, 0xc0, 0x20, 0x25, 0xc0, 0x27, 0xb5, 0x01, 0x0b, 0x33, 0xc8, 0x91, 0xf1, 0x04, 0xde, 0x0c, 0x34, 0x05, 0xed, 0xfe, 0x20, 0x4d, 0xc0, 0x00, 0x44, 0x11, 0x40, 0x40, 0x31, 0x8b, 0x44, 0x40, 0x44, 0x21, 0x42, 0x5c, 0x00, 0xc0, 0x20, 0x00, 0x31, 0x92, 0xff, 0x22, 0x2f, 0xf1, 0x30, 0x22, 0x10, 0xc0, 0x20, 0x00, 0x08, 0x0e, 0x22, 0x6f, 0xf1, 0x08, 0xf0, 0x0c, 0x02, 0xc0, 0x00, 0x00, 0xc8, 0xc1, 0xd8, 0xd1, 0xe8, 0xe1, 0xf8, 0xf1, 0x08, 0xb1, 0x12, 0xc1, 0x60, 0x0d, 0xf0, 0x00, 0x00, 0xff, 0xff, 0x1f, 0x00, 0xf4, 0x88, 0xfe, 0x3f, 0x6c, 0x89, 0xfe, 0x3f, 0xd3, 0x09, 0x00, 0x00, 0x14, 0x89, 0xfe, 0x3f, 0x3c, 0x89, 0xfe, 0x3f, 0x4c, 0x89, 0xfe, 0x3f, 0x1c, 0x24, 0x0c, 0x75, 0x0c, 0x06, 0x32, 0xa1, 0x10, 0x30, 0x11, 0xc0, 0xd2, 0x61, 0x35, 0xe2, 0x61, 0x36, 0xf2, 0x61, 0x37, 0x0c, 0x03, 0xc2, 0x61, 0x34, 0xc1, 0xf2, 0xde, 0x02, 0x61, 0x33, 0x08, 0x0c, 0x22, 0x61, 0x3d, 0x02, 0x20, 0x25, 0x22, 0xa0, 0x77, 0xc0, 0x00, 0x00, 0x6c, 0xf4, 0xed, 0x02, 0xd1, 0xdf, 0xdd, 0x21, 0xd7, 0xe9, 0xc0, 0x20, 0x00, 0x32, 0x2d, 0xe4, 0x40, 0x33, 0x10, 0xc0, 0x20, 0x00, 0x32, 0x6d, 0xe4, 0x0c, 0x04, 0x31, 0xb5, 0xe1, 0x22, 0x02, 0x01, 0x45, 0x4e, 0xfe, 0x22, 0xa0, 0x77, 0x0c, 0x03, 0x1c, 0x24, 0x0c, 0x75, 0x0c, 0x06, 0x08, 0x0c, 0x0c, 0x07, 0x02, 0x20, 0x27, 0xe2, 0x61, 0x41, 0xc0, 0x00, 0x00, 0x22, 0xa0, 0x77, 0x0c, 0x03, 0x1c, 0x04, 0x0c, 0x25, 0x08, 0x0c, 0x0c, 0x26, 0x02, 0x20, 0x27, 0x0c, 0x17, 0xc0, 0x00, 0x00, 0x22, 0xa0, 0x77, 0x0c, 0x03, 0x1c, 0x84, 0x0c, 0x75, 0x08, 0x0c, 0x0c, 0x76, 0x02, 0x20, 0x27, 0x0c, 0x17, 0xc0, 0x00, 0x00, 0x0c, 0x0f, 0x3c, 0x3d, 0xe0, 0x8d, 0x11, 0xc0, 0x20, 0x00, 0xe1, 0x41, 0xe0, 0x78, 0xde, 0x92, 0xac, 0x00, 0x90, 0x77, 0x10, 0x80, 0x77, 0x20, 0x0c, 0x18, 0x80, 0x77, 0x20, 0xc0, 0x20, 0x00, 0x79, 0xde, 0x0c, 0x52, 0x01, 0x52, 0xe1, 0xc0, 0x00, 0x00, 0x08, 0x0c, 0x0c, 0x12, 0x08, 0xd0, 0x32, 0xa4, 0x00, 0xc0, 0x00, 0x00, 0xc0, 0x20, 0x00, 0x08, 0x0c, 0xe1, 0xb8, 0xdd, 0x08, 0xc0, 0xe2, 0x2e, 0xf9, 0xc0, 0x00, 0x00, 0x01, 0xc2, 0xff, 0x1b, 0xff, 0xe7, 0xa0, 0x0e, 0xe2, 0x61, 0x30, 0x21, 0xeb, 0xde, 0xd2, 0x61, 0x2f, 0xe7, 0xa2, 0x1c, 0xe7, 0x20, 0x13, 0x3b, 0x3d, 0x30, 0xd0, 0x74, 0xf0, 0xf0, 0x74, 0x66, 0x4f, 0x9b, 0xe2, 0x61, 0x30, 0xd2, 0x61, 0x2f, 0x46, 0x01, 0x00, 0x32, 0xcd, 0xfd, 0xc6, 0xf9, 0xff, 0x0c, 0x0d, 0x0c, 0x0f, 0x0c, 0x0e, 0x0c, 0x0c, 0x0c, 0x04, 0x0c, 0x05, 0x0c, 0x06, 0x62, 0x61, 0x40, 0x52, 0x61, 0x3e, 0x42, 0x61, 0x3f, 0x0c, 0x62, 0x0c, 0x94, 0x52, 0xc1, 0x60, 0x32, 0xcd, 0x2f, 0x62, 0xc1, 0x7f, 0x1b, 0x66, 0x00, 0x33, 0x11, 0x30, 0x30, 0x31, 0x05, 0xcd, 0xff, 0x0c, 0x93, 0x0c, 0x00, 0x62, 0x21, 0x18, 0xa2, 0x21, 0x19, 0x42, 0xc1, 0x10, 0x40, 0x7d, 0xb0, 0xa9, 0x17, 0x69, 0x07, 0xe7, 0x3a, 0x07, 0xe7, 0x9a, 0x02, 0x67, 0xbc, 0x01, 0x0c, 0x10, 0x9c, 0xa0, 0xed, 0x0a, 0xcd, 0x06, 0x00, 0xfd, 0x11, 0x02, 0x91, 0x40, 0x22, 0x21, 0x1a, 0x52, 0x21, 0x1b, 0x52, 0x61, 0x3e, 0x22, 0x61, 0x3f, 0x02, 0x61, 0x40, 0xf0, 0xf0, 0x31, 0x1b, 0xdd, 0xd0, 0xd0, 0x74, 0x37, 0x9d, 0xa2, 0x22, 0x21, 0x3f, 0x72, 0x21, 0x3e, 0x0c, 0x00, 0x4d, 0x00, 0xe0, 0x77, 0xc0, 0xc0, 0x62, 0xc0, 0x67, 0xb2, 0x01, 0x0b, 0x77, 0x3d, 0x07, 0x77, 0x20, 0x09, 0x07, 0x97, 0x02, 0x67, 0x34, 0x03, 0x6d, 0x04, 0x3d, 0x00, 0xdd, 0x06, 0x2d, 0x0c, 0x32, 0x61, 0x3c, 0x0c, 0x34, 0x3d, 0x0e, 0x85, 0xcc, 0xfe, 0x32, 0x21, 0x3c, 0x22, 0x61, 0x39, 0x0c, 0x34, 0x2d, 0x0d, 0xc5, 0xcb, 0xfe, 0x82, 0x21, 0x3d, 0x22, 0x61, 0x3a, 0xac, 0x38, 0x6d, 0x0d, 0x72, 0x21, 0x3c, 0x5d, 0x0e, 0x92, 0x21, 0x39, 0x4d, 0x0c, 0x20, 0x99, 0xc0, 0x21, 0x84, 0xff, 0x00, 0x99, 0x11, 0x90, 0x90, 0x31, 0x8b, 0x99, 0x90, 0x94, 0x21, 0x99, 0x01, 0x01, 0x2c, 0xdd, 0xc0, 0x00, 0x00, 0xd1, 0x7e, 0xde, 0x08, 0x0d, 0x08, 0x00, 0x22, 0xcf, 0xfc, 0xc0, 0x00, 0x00, 0x4c, 0xe0, 0x00, 0x0f, 0xd1, 0x02, 0x61, 0x28, 0x66, 0x42, 0x19, 0xa6, 0x4f, 0x02, 0x46, 0xd7, 0x00, 0x02, 0xa1, 0x11, 0xd2, 0x21, 0x28, 0x0c, 0x0e, 0xd0, 0xd0, 0xc0, 0x00, 0xdd, 0x11, 0xd0, 0xd0, 0x31, 0xc6, 0x0b, 0x00, 0x72, 0x21, 0x3a, 0x62, 0x21, 0x39, 0x22, 0xa0, 0x1e, 0x70, 0x66, 0xc0, 0x00, 0x56, 0x11, 0x50, 0x50, 0x31, 0x32, 0xc5, 0x08, 0x30, 0x34, 0x21, 0x37, 0x22, 0x02, 0x86, 0x49, 0x00, 0x82, 0xa1, 0x48, 0x00, 0x08, 0xc0, 0x00, 0xe3, 0x11, 0x00, 0xd0, 0x11, 0xd0, 0xd0, 0x31, 0xe0, 0xe0, 0x31, 0xf2, 0x21, 0x3d, 0x8c, 0x9f, 0x21, 0x66, 0xff, 0x3d, 0x0d, 0x01, 0x10, 0xdd, 0xc0, 0x00, 0x00, 0x22, 0x21, 0x30, 0x01, 0x61, 0xff, 0x27, 0xa0, 0x02, 0x06, 0xb3, 0x00, 0x02, 0x21, 0x2f, 0x02, 0xc0, 0x14, 0x2c, 0xa3, 0x3c, 0x64, 0x1c, 0x15, 0x00, 0xc0, 0x74, 0x2d, 0x0c, 0xc5, 0x32, 0xf8, 0x31, 0x5c, 0xff, 0xc2, 0x61, 0x31, 0x22, 0xa3, 0xe8, 0xd0, 0x22, 0xd1, 0x05, 0x08, 0x03, 0x7c, 0x63, 0x0c, 0xa4, 0x0c, 0x85, 0xf2, 0xc2, 0xfc, 0x80, 0xff, 0x01, 0xf0, 0xf8, 0x31, 0x2d, 0x0f, 0x85, 0x30, 0xf8, 0x2d, 0x0e, 0x1c, 0x13, 0x41, 0x72, 0xfc, 0x0c, 0x95, 0xc5, 0x2f, 0xf8, 0x22, 0x21, 0x40, 0x32, 0xaf, 0x38, 0x6c, 0x24, 0x0c, 0xa5, 0xc2, 0x21, 0x41, 0xc5, 0x2e, 0xf8, 0x7d, 0x0c, 0x22, 0xa0, 0x77, 0x0c, 0x03, 0x01, 0x48, 0xde, 0x1c, 0x24, 0x08, 0x00, 0x0c, 0x75, 0x02, 0x20, 0x27, 0x0c, 0x06, 0xc0, 0x00, 0x00, 0x22, 0xa0, 0x77, 0x0c, 0x03, 0x1c, 0x04, 0xc1, 0x42, 0xde, 0x0c, 0x25, 0x08, 0x0c, 0x0c, 0x26, 0x02, 0x20, 0x27, 0x0c, 0x07, 0xc0, 0x00, 0x00, 0x22, 0xa0, 0x77, 0x0c, 0x03, 0x1c, 0x84, 0x0c, 0x75, 0x08, 0x0c, 0x0c, 0x76, 0x02, 0x20, 0x27, 0x0c, 0x07, 0xc0, 0x00, 0x00, 0x1c, 0x03, 0xc0, 0x20, 0x00, 0xc1, 0x2a, 0xdd, 0x22, 0x2c, 0xe4, 0x30, 0x22, 0x20, 0xc0, 0x20, 0x00, 0x22, 0x6c, 0xe4, 0x0c, 0xe2, 0x85, 0x60, 0x01, 0x41, 0x1e, 0xe9, 0x42, 0x04, 0x50, 0x1c, 0x00, 0x66, 0x14, 0x1d, 0xf0, 0x60, 0x74, 0xe0, 0x50, 0xf4, 0x00, 0x66, 0x11, 0x60, 0x55, 0x20, 0x62, 0x21, 0x31, 0x80, 0x66, 0x01, 0x60, 0x55, 0x20, 0xc0, 0x20, 0x00, 0x61, 0x1c, 0xdd, 0x52, 0x66, 0xff, 0xc2, 0x21, 0x34, 0xe2, 0x21, 0x36, 0xf2, 0x21, 0x37, 0xd0, 0x20, 0xc0, 0x32, 0xa1, 0x10, 0x02, 0x21, 0x33, 0xd2, 0x21, 0x35, 0x00, 0x22, 0x11, 0x20, 0x20, 0x31, 0x3a, 0x11, 0x0d, 0xf0, 0x0c, 0x03, 0x52, 0x61, 0x29, 0x02, 0x61, 0x28, 0xa2, 0xd1, 0xfe, 0xa2, 0xca, 0x18, 0xa0, 0xaf, 0xb0, 0x72, 0x2a, 0x81, 0x42, 0x2a, 0x7c, 0xb2, 0x2a, 0x80, 0xb2, 0x61, 0x2b, 0xa2, 0x2a, 0x7d, 0x72, 0x61, 0x2a, 0x77, 0x3a, 0x07, 0x77, 0x9a, 0x02, 0x47, 0xbb, 0x01, 0x0c, 0x13, 0xa2, 0x61, 0x26, 0x42, 0x61, 0x25, 0x62, 0x61, 0x24, 0x82, 0x21, 0x28, 0x72, 0xa1, 0x38, 0x0c, 0x12, 0x7c, 0xf0, 0x10, 0x4c, 0x40, 0xb2, 0xcf, 0x2f, 0x0c, 0x05, 0xc0, 0x9c, 0x11, 0x92, 0x61, 0x2d, 0x52, 0x61, 0x38, 0x00, 0xbb, 0x11, 0xc0, 0xde, 0x81, 0xd2, 0x61, 0x2c, 0xb0, 0xb0, 0x31, 0x30, 0x02, 0x93, 0x02, 0x61, 0x3b, 0xb2, 0x61, 0x2e, 0x80, 0x77, 0xc0, 0x72, 0x61, 0x27, 0xa2, 0x21, 0x3b, 0x42, 0x21, 0x2b, 0x66, 0x1a, 0x08, 0x52, 0x21, 0x26, 0x42, 0x21, 0x25, 0x86, 0x00, 0x00, 0x52, 0x21, 0x2a, 0x32, 0x21, 0x2c, 0x22, 0x21, 0x2d, 0xc5, 0x96, 0x02, 0xb2, 0x21, 0x3d, 0x20, 0xd0, 0xf4, 0xd2, 0xcd, 0x01, 0xd0, 0xd1, 0xf4, 0xc2, 0xcd, 0x04, 0xc0, 0xc3, 0xf4, 0x16, 0xeb, 0x00, 0x3d, 0x0f, 0x21, 0xfc, 0xfe, 0x4d, 0x0c, 0x5d, 0x0d, 0x01, 0xa3, 0xdc, 0xc0, 0x00, 0x00, 0x3d, 0x0d, 0x2d, 0x0c, 0x05, 0x96, 0xff, 0xe2, 0xa1, 0x38, 0xc2, 0x21, 0x3b, 0xd2, 0x21, 0x28, 0xc0, 0xc2, 0xd1, 0x00, 0x3c, 0x11, 0x30, 0x30, 0x31, 0xd0, 0xd3, 0xc0, 0xea, 0xdd, 0xe2, 0x21, 0x3d, 0x8c, 0x7e, 0x21, 0xf1, 0xfe, 0x01, 0x98, 0xdc, 0xc0, 0x00, 0x00, 0x31, 0xb8, 0xe0, 0x21, 0xd5, 0xe8, 0xc0, 0x40, 0x60, 0x00, 0x44, 0x11, 0x40, 0x40, 0x31, 0x22, 0x02, 0x01, 0x45, 0x0e, 0xfe, 0x0c, 0x62, 0x32, 0x21, 0x2e, 0x0c, 0x94, 0x52, 0xc1, 0x60, 0x62, 0xc1, 0x7f, 0x1b, 0x66, 0x45, 0x9a, 0xff, 0x0c, 0x0b, 0x72, 0x21, 0x1a, 0x32, 0x21, 0x1b, 0x0c, 0x05, 0x02, 0x21, 0x18, 0x42, 0x21, 0x19, 0x42, 0x61, 0x23, 0x02, 0x61, 0x22, 0xad, 0x05, 0x40, 0x33, 0xc0, 0x00, 0x67, 0xc0, 0x67, 0xb7, 0x01, 0x0b, 0x33, 0x7d, 0x03, 0xe6, 0x13, 0x07, 0xcc, 0x03, 0xcc, 0x26, 0x6d, 0x0b, 0x7d, 0x0a, 0xcd, 0x07, 0xed, 0x06, 0x32, 0x21, 0x23, 0x22, 0x21, 0x22, 0x0c, 0x34, 0x45, 0x9d, 0xfe, 0xe2, 0x61, 0x21, 0x3d, 0x0c, 0x22, 0x61, 0x32, 0x0c, 0x34, 0x2d, 0x0e, 0x85, 0x9c, 0xfe, 0xe2, 0x21, 0x32, 0x62, 0x21, 0x3d, 0x20, 0xee, 0xc0, 0xe2, 0x61, 0x42, 0x00, 0xee, 0x11, 0xe0, 0xe0, 0x31, 0x9c, 0x96, 0x7d, 0x0c, 0x52, 0x21, 0x23, 0x42, 0x21, 0x22, 0x62, 0x21, 0x21, 0x21, 0xca, 0xfe, 0x8b, 0x0e, 0x00, 0x04, 0x21, 0x09, 0x01, 0x01, 0x6f, 0xdc, 0xc0, 0x00, 0x00, 0x22, 0x21, 0x42, 0x32, 0x21, 0x29, 0x00, 0x22, 0x11, 0x20, 0x20, 0x31, 0x37, 0xa2, 0x34, 0x32, 0x21, 0x38, 0x02, 0x21, 0x38, 0x42, 0x21, 0x3b, 0x1b, 0x20, 0x40, 0x50, 0x60, 0x80, 0x55, 0x01, 0x20, 0x00, 0x74, 0x02, 0x61, 0x38, 0x50, 0x48, 0x31, 0x42, 0x61, 0x3b, 0x66, 0x13, 0x0b, 0xe2, 0x21, 0x24, 0xd2, 0x21, 0x27, 0x00, 0xee, 0x11, 0xe0, 0xe0, 0x31, 0x02, 0xc0, 0xfe, 0x56, 0xc0, 0xea, 0x46, 0x01, 0x00, 0x32, 0x91, 0x40, 0x32, 0x61, 0x40, 0x02, 0xcd, 0x10, 0x8b, 0x3e, 0x30, 0x34, 0x21, 0x86, 0x42, 0xff, 0x01, 0xab, 0xdd, 0x08, 0x00, 0x20, 0x28, 0x21, 0x08, 0xe0, 0x0c, 0x03, 0xc0, 0x00, 0x00, 0x01, 0xa7, 0xdd, 0x0c, 0x03, 0x08, 0x00, 0xcd, 0x02, 0x08, 0xe0, 0x21, 0xb6, 0xe6, 0xc0, 0x00, 0x00, 0x02, 0x21, 0x2f, 0x20, 0x2c, 0xc0, 0x8b, 0x22, 0x20, 0x24, 0x21, 0x20, 0x00, 0xc0, 0xc6, 0x41, 0xff, 0x02, 0xa1, 0x5f, 0x86, 0x27, 0xff, 0x00, 0x00, 0x00, 0x0c, 0x68, 0xb2, 0xa0, 0x70, 0x92, 0xa0, 0x60, 0x1c, 0xe7, 0xa2, 0x13, 0x00, 0xbc, 0x54, 0x26, 0x6a, 0x29, 0x42, 0x12, 0x00, 0xcc, 0x84, 0x7d, 0x08, 0x4c, 0x06, 0x62, 0x52, 0x00, 0x86, 0x06, 0x00, 0x26, 0xd4, 0x04, 0x97, 0x94, 0x09, 0x9d, 0x0b, 0x92, 0x52, 0x00, 0x7d, 0x08, 0x86, 0x02, 0x00, 0xb7, 0x94, 0x0f, 0x72, 0xa0, 0x78, 0x72, 0x52, 0x00, 0x7d, 0x08, 0x72, 0x53, 0x00, 0x0d, 0xf0, 0x26, 0xd4, 0x25, 0x0d, 0xf0, 0x77, 0x1a, 0x27, 0x42, 0x12, 0x00, 0x82, 0xa0, 0x78, 0x87, 0x94, 0x07, 0x8d, 0x07, 0xb2, 0x52, 0x00, 0x86, 0x05, 0x00, 0xb7, 0x14, 0x04, 0x97, 0x94, 0xe0, 0x4c, 0x09, 0x8d, 0x07, 0x92, 0x52, 0x00, 0x86, 0x01, 0x00, 0x8d, 0x07, 0x0c, 0x09, 0x92, 0x52, 0x00, 0x82, 0x53, 0x00, 0x0d, 0xf0, 0x00, 0x00, 0x20, 0x83, 0xfe, 0x3f, 0x32, 0xa0, 0x00, 0x42, 0xa0, 0x12, 0x52, 0xa0, 0x07, 0x0c, 0x06, 0x12, 0xc1, 0x90, 0xd2, 0x61, 0x15, 0xf2, 0x61, 0x17, 0xc2, 0x61, 0x14, 0xe2, 0x61, 0x16, 0xe1, 0x77, 0xdd, 0x02, 0x61, 0x13, 0x08, 0x0e, 0xcd, 0x02, 0x02, 0x20, 0x25, 0x22, 0xa0, 0x77, 0xc0, 0x00, 0x00, 0xdd, 0x02, 0x31, 0x5e, 0xe8, 0x4d, 0x0c, 0x22, 0x03, 0x01, 0x31, 0x3f, 0xe0, 0xc5, 0xf0, 0xfd, 0x22, 0xa0, 0x77, 0x0c, 0x03, 0x1c, 0x24, 0x0c, 0x75, 0x0c, 0x06, 0x08, 0x0e, 0x0c, 0x07, 0x02, 0x20, 0x27, 0xd2, 0x61, 0x12, 0xc0, 0x00, 0x00, 0x22, 0xa0, 0x77, 0x0c, 0x03, 0x1c, 0x04, 0x0c, 0x25, 0x08, 0x0e, 0x0c, 0x26, 0x02, 0x20, 0x27, 0x0c, 0x17, 0xc0, 0x00, 0x00, 0x22, 0xa0, 0x77, 0x0c, 0x03, 0x1c, 0x84, 0x0c, 0x75, 0x08, 0x0e, 0x0c, 0x76, 0x02, 0x20, 0x27, 0x0c, 0x17, 0xc0, 0x00, 0x00, 0x6c, 0xf3, 0xc1, 0x50, 0xdc, 0xc0, 0x20, 0x00, 0x22, 0x2c, 0xe4, 0x30, 0x22, 0x10, 0xc0, 0x20, 0x00, 0x08, 0x0e, 0x02, 0x20, 0x28, 0x22, 0x6c, 0xe4, 0xc0, 0x00, 0x00, 0x0c, 0x12, 0x3c, 0x33, 0x0c, 0x04, 0x0c, 0x05, 0x0c, 0x06, 0x69, 0x21, 0x69, 0x11, 0x69, 0x01, 0x08, 0x0e, 0x0c, 0x07, 0x02, 0x20, 0x1a, 0x0c, 0x06, 0xc0, 0x00, 0x00, 0x61, 0xd1, 0xff, 0x0c, 0x57, 0x0c, 0x00, 0x21, 0xd9, 0xe7, 0x22, 0x61, 0x18, 0x02, 0x61, 0x10, 0x72, 0x61, 0x11, 0x0c, 0x22, 0x0c, 0x13, 0x08, 0x0e, 0xc2, 0x21, 0x10, 0x02, 0x20, 0x2b, 0x60, 0x4c, 0x90, 0x42, 0x14, 0x00, 0xf0, 0xcc, 0x11, 0xc0, 0x00, 0x00, 0x52, 0x21, 0x10, 0x1c, 0xe0, 0x22, 0xc1, 0x20, 0x32, 0xc1, 0x10, 0x3a, 0xdc, 0x2a, 0xfc, 0x02, 0x5f, 0x00, 0xb6, 0x25, 0x02, 0x86, 0x5d, 0x00, 0x62, 0xa0, 0x78, 0x62, 0x5d, 0x00, 0x0c, 0x0c, 0x0c, 0x32, 0x08, 0x0e, 0x0c, 0x13, 0x02, 0x20, 0x2b, 0x42, 0x1d, 0x00, 0xc0, 0x00, 0x00, 0x0c, 0x32, 0x08, 0x0e, 0x0c, 0x23, 0x02, 0x20, 0x2b, 0x42, 0x1f, 0x00, 0xc0, 0x00, 0x00, 0x22, 0x1d, 0x00, 0x32, 0x1f, 0x00, 0x42, 0x21, 0x18, 0x05, 0x4d, 0xf7, 0x08, 0x0e, 0x0c, 0x12, 0x08, 0xd0, 0x32, 0xa4, 0x00, 0xc0, 0x00, 0x00, 0xc0, 0x20, 0x00, 0x21, 0x22, 0xdc, 0x08, 0x0e, 0x22, 0x22, 0xf9, 0x08, 0xc0, 0x22, 0x61, 0x19, 0xc0, 0x00, 0x00, 0x02, 0x21, 0x19, 0x21, 0x2a, 0xfe, 0x31, 0x55, 0xdd, 0x07, 0xa2, 0x02, 0x07, 0xa3, 0x3b, 0x32, 0x1d, 0x00, 0x07, 0x22, 0x19, 0x42, 0xa0, 0x78, 0x47, 0x93, 0x07, 0x52, 0x1f, 0x00, 0x1c, 0xe6, 0x67, 0x15, 0x27, 0x2d, 0x0d, 0x3d, 0x0f, 0x0c, 0x14, 0xc5, 0xe0, 0xff, 0x06, 0x04, 0x00, 0xcc, 0x43, 0x72, 0x1f, 0x00, 0x26, 0x67, 0x13, 0x2d, 0x0d, 0x3d, 0x0f, 0x0c, 0x04, 0x85, 0xdf, 0xff, 0x1b, 0xcc, 0xc0, 0xc0, 0x74, 0x26, 0x5c, 0x02, 0xc6, 0xda, 0xff, 0xf2, 0x21, 0x10, 0x0c, 0x0d, 0x0c, 0x0c, 0x02, 0x2e, 0x00, 0x22, 0xa0, 0x01, 0x08, 0xd0, 0x32, 0xa2, 0x00, 0xc0, 0x00, 0x00, 0x22, 0xc1, 0x30, 0x0c, 0x93, 0x85, 0xd2, 0xf7, 0x08, 0x0e, 0x08, 0xc0, 0xc0, 0x00, 0x00, 0x28, 0xd1, 0x1b, 0xcc, 0xc0, 0xc0, 0x74, 0xda, 0xd2, 0x66, 0xcc, 0xd6, 0x08, 0x0e, 0x28, 0xc1, 0x08, 0xe0, 0x0c, 0x03, 0xc0, 0x00, 0x00, 0x2d, 0x0d, 0x08, 0x0e, 0xc2, 0x21, 0x11, 0x08, 0xe0, 0x0c, 0x53, 0xc0, 0x00, 0x00, 0x61, 0x87, 0xff, 0x1b, 0xff, 0x0b, 0xcc, 0xc2, 0x61, 0x11, 0xf0, 0xf0, 0x74, 0xf2, 0x61, 0x10, 0x56, 0x7c, 0xed, 0x08, 0x0e, 0x02, 0x20, 0x1b, 0x0c, 0x02, 0xc0, 0x00, 0x00, 0x08, 0x0e, 0x02, 0x20, 0x2f, 0xc0, 0x00, 0x00, 0x72, 0x21, 0x12, 0x22, 0xa0, 0x77, 0x0c, 0x03, 0x1c, 0x24, 0x08, 0x0e, 0x0c, 0x75, 0x02, 0x20, 0x27, 0x0c, 0x06, 0xc0, 0x00, 0x00, 0x22, 0xa0, 0x77, 0x0c, 0x03, 0x1c, 0x04, 0x0c, 0x25, 0x08, 0x0e, 0x0c, 0x26, 0x02, 0x20, 0x27, 0x0c, 0x07, 0xc0, 0x00, 0x00, 0xc1, 0xe5, 0xdb, 0x22, 0xa0, 0x77, 0x0c, 0x03, 0x1c, 0x84, 0x0c, 0x75, 0x08, 0x0e, 0x0c, 0x76, 0x02, 0x20, 0x27, 0x0c, 0x07, 0xc0, 0x00, 0x00, 0x1c, 0x03, 0xc0, 0x20, 0x00, 0x22, 0x2c, 0xe4, 0x30, 0x22, 0x20, 0xc0, 0x20, 0x00, 0x22, 0x6c, 0xe4, 0x0c, 0xe2, 0x85, 0x0d, 0x01, 0xc2, 0x21, 0x14, 0xd2, 0x21, 0x15, 0xe2, 0x21, 0x16, 0xf2, 0x21, 0x17, 0x02, 0x21, 0x13, 0x12, 0xc1, 0x70, 0x0d, 0xf0, 0x42, 0xa0, 0x60, 0x42, 0x5d, 0x00, 0x46, 0xa1, 0xff, 0x00, 0x00, 0x12, 0xc1, 0x90, 0x42, 0x61, 0x12, 0x02, 0x61, 0x0d, 0xf2, 0x61, 0x11, 0xe2, 0x61, 0x10, 0xc2, 0x61, 0x0e, 0xd2, 0x61, 0x0f, 0x7d, 0x02, 0x5d, 0x03, 0xd1, 0x48, 0xde, 0xc0, 0x20, 0x00, 0x81, 0x8c, 0xdf, 0xe8, 0xbd, 0xc0, 0x20, 0x00, 0x62, 0x2d, 0x42, 0x80, 0x66, 0x20, 0xc0, 0x20, 0x00, 0x62, 0x6d, 0x42, 0x41, 0x88, 0xdf, 0xc0, 0x20, 0x00, 0x38, 0xbd, 0x40, 0x33, 0x10, 0x4d, 0x05, 0xc0, 0x20, 0x00, 0x39, 0xbd, 0x21, 0xb9, 0xe7, 0x3d, 0x07, 0x22, 0x02, 0x01, 0xc5, 0xc7, 0xfd, 0xc1, 0xcb, 0xdc, 0x08, 0x0c, 0x02, 0x20, 0x28, 0xe2, 0x61, 0x18, 0xc0, 0x00, 0x00, 0x08, 0x0c, 0x02, 0x20, 0x10, 0x0c, 0x12, 0xc0, 0x00, 0x00, 0x0c, 0x02, 0x32, 0xa1, 0xf4, 0x08, 0x0c, 0x0c, 0x04, 0x02, 0x20, 0x15, 0x0c, 0x65, 0xc0, 0x00, 0x00, 0x0c, 0x22, 0x08, 0x0c, 0x0c, 0x13, 0x02, 0x20, 0x2b, 0x42, 0xa1, 0x84, 0xc0, 0x00, 0x00, 0x21, 0x2f, 0xde, 0x32, 0xc1, 0x10, 0x0c, 0xa4, 0x08, 0x0c, 0x0c, 0x05, 0x02, 0x20, 0x3b, 0x0c, 0x06, 0xc0, 0x00, 0x00, 0x0c, 0x22, 0x08, 0x0c, 0x0c, 0x13, 0x02, 0x20, 0x2b, 0x42, 0xa1, 0xf4, 0xc0, 0x00, 0x00, 0x0c, 0x02, 0x05, 0x62, 0xf9, 0x0c, 0x22, 0x42, 0xaf, 0x9c, 0x52, 0xa0, 0x79, 0x62, 0xa0, 0x7b, 0x0c, 0x07, 0x72, 0x61, 0x15, 0x62, 0x61, 0x14, 0x52, 0x61, 0x16, 0x49, 0xc1, 0x22, 0x61, 0x13, 0x1c, 0x00, 0x0c, 0x0d, 0x0c, 0x08, 0x82, 0x61, 0x17, 0x92, 0x21, 0x15, 0x22, 0xcd, 0x70, 0xcc, 0xa9, 0x20, 0xf0, 0x74, 0xe2, 0xa0, 0x7b, 0x02, 0x61, 0x19, 0x06, 0x02, 0x00, 0xf2, 0x21, 0x16, 0x20, 0xe0, 0x74, 0x02, 0x61, 0x19, 0x22, 0xa0, 0x64, 0x32, 0xa0, 0x00, 0x02, 0x2c, 0x00, 0x42, 0xa0, 0x04, 0x02, 0x20, 0x26, 0x5d, 0x0f, 0xc0, 0x00, 0x00, 0x22, 0xa0, 0x64, 0x0c, 0x03, 0x08, 0x0c, 0x0c, 0x74, 0x02, 0x20, 0x26, 0x5d, 0x0e, 0xc0, 0x00, 0x00, 0x0c, 0x12, 0x4c, 0x03, 0x0c, 0x04, 0x0c, 0x05, 0x0c, 0x06, 0x69, 0x01, 0x69, 0x11, 0x69, 0x21, 0x08, 0x0c, 0x0c, 0x07, 0x02, 0x20, 0x1a, 0x0c, 0x06, 0xc0, 0x00, 0x00, 0x0c, 0x52, 0x01, 0x19, 0xdf, 0xc0, 0x00, 0x00, 0x08, 0x0c, 0x0c, 0x12, 0x08, 0xd0, 0x32, 0xa4, 0x00, 0xc0, 0x00, 0x00, 0x22, 0xc1, 0x20, 0x0c, 0xa3, 0x45, 0xb1, 0xf7, 0x08, 0x0c, 0x08, 0xc0, 0xc0, 0x00, 0x00, 0x08, 0x0c, 0x28, 0x81, 0x08, 0xe0, 0x0c, 0x03, 0xc0, 0x00, 0x00, 0x08, 0x0c, 0x28, 0x91, 0x08, 0xe0, 0x0c, 0x03, 0xc0, 0x00, 0x00, 0x08, 0xc1, 0x4b, 0x22, 0x20, 0x23, 0x21, 0x00, 0x22, 0x11, 0x20, 0x20, 0x31, 0x27, 0xa0, 0x0f, 0xe2, 0x61, 0x14, 0xf2, 0x61, 0x16, 0x29, 0xc1, 0x0c, 0x03, 0x32, 0x61, 0x17, 0x06, 0x04, 0x00, 0x00, 0x92, 0xc0, 0x72, 0x21, 0x17, 0x0c, 0x18, 0x70, 0x70, 0x74, 0x90, 0x78, 0x83, 0x72, 0x61, 0x17, 0x08, 0x0c, 0x08, 0xc0, 0xc0, 0x00, 0x00, 0x08, 0x0c, 0x02, 0x20, 0x1b, 0x0c, 0x12, 0xc0, 0x00, 0x00, 0x1b, 0xdd, 0x02, 0x21, 0x19, 0xd0, 0xd0, 0x74, 0x0b, 0x00, 0x56, 0x90, 0xf1, 0xe2, 0x21, 0x15, 0x0c, 0x1f, 0x0c, 0x02, 0x62, 0x21, 0x15, 0x02, 0x21, 0x17, 0x1b, 0x76, 0x0b, 0x00, 0x00, 0x2f, 0x83, 0x70, 0x60, 0x74, 0xdc, 0x3e, 0x32, 0x21, 0x16, 0x42, 0x21, 0x12, 0x30, 0x30, 0x34, 0xf0, 0x33, 0x11, 0x30, 0x32, 0x20, 0x32, 0x44, 0x00, 0x46, 0x04, 0x00, 0x42, 0x21, 0x14, 0x52, 0x21, 0x12, 0x40, 0x40, 0x34, 0xf0, 0x44, 0x11, 0x40, 0x42, 0x20, 0x42, 0x45, 0x01, 0x52, 0x21, 0x13, 0x62, 0x61, 0x15, 0x0b, 0x55, 0x52, 0x61, 0x13, 0x56, 0x25, 0xec, 0x08, 0x0c, 0x02, 0x20, 0x10, 0x0c, 0x02, 0xc0, 0x00, 0x00, 0x08, 0x0c, 0xd2, 0x21, 0x18, 0x02, 0x20, 0x2f, 0xe1, 0xc8, 0xdd, 0xc0, 0x00, 0x00, 0x71, 0xfb, 0xde, 0xc0, 0x20, 0x00, 0x62, 0x2e, 0x42, 0x70, 0x66, 0x10, 0xc0, 0x20, 0x00, 0x62, 0x6e, 0x42, 0xc0, 0x20, 0x00, 0x42, 0x2e, 0x58, 0x0c, 0x15, 0x50, 0x44, 0x20, 0xc0, 0x20, 0x00, 0x42, 0x6e, 0x58, 0x7c, 0xe3, 0xc0, 0x20, 0x00, 0x22, 0x2e, 0x58, 0x30, 0x22, 0x10, 0xc0, 0x20, 0x00, 0x22, 0x6e, 0x58, 0xc0, 0x20, 0x00, 0xc8, 0xe1, 0xd9, 0xbe, 0xf2, 0x21, 0x11, 0xd8, 0xf1, 0xe2, 0x21, 0x10, 0x08, 0xd1, 0x12, 0xc1, 0x70, 0x0d, 0xf0, 0x00, 0x00, 0xe8, 0xf4, 0xfe, 0x3f, 0x12, 0xc1, 0xf0, 0x09, 0x01, 0x01, 0xfd, 0xff, 0x08, 0x00, 0x80, 0x42, 0x01, 0x08, 0x00, 0x40, 0x28, 0x31, 0xc0, 0x00, 0x00, 0x08, 0x01, 0x12, 0xc1, 0x10, 0x0d, 0xf0, 0x12, 0xc1, 0xf0, 0x09, 0x01, 0x01, 0xf6, 0xff, 0x08, 0x00, 0x08, 0x60, 0xc0, 0x00, 0x00, 0x08, 0x01, 0x12, 0xc1, 0x10, 0x0d, 0xf0, 0x00, 0x00, 0x12, 0xc1, 0xf0, 0xc9, 0x11, 0x09, 0x01, 0xcd, 0x03, 0x01, 0xef, 0xff, 0x80, 0x32, 0x01, 0x08, 0x00, 0x30, 0x28, 0x31, 0x08, 0x00, 0x3d, 0x0c, 0xc0, 0x00, 0x00, 0x01, 0xeb, 0xff, 0x08, 0x00, 0x08, 0x60, 0x2d, 0x0c, 0xc0, 0x00, 0x00, 0xc8, 0x11, 0x08, 0x01, 0x12, 0xc1, 0x10, 0x0d, 0xf0, 0x0c, 0x03, 0x12, 0xc1, 0xf0, 0x5d, 0x02, 0x09, 0x01, 0x01, 0xe3, 0xff, 0x0c, 0x12, 0x59, 0x00, 0xc5, 0xfb, 0xff, 0x08, 0x01, 0x12, 0xc1, 0x10, 0x0d, 0xf0, 0x00, 0x00, 0x12, 0xc1, 0xf0, 0x09, 0x01, 0x01, 0xdd, 0xff, 0x08, 0x00, 0x08, 0x10, 0xc0, 0x00, 0x00, 0x0c, 0x02, 0x08, 0x01, 0x12, 0xc1, 0x10, 0x0d, 0xf0, 0x12, 0xc1, 0xf0, 0x09, 0x01, 0x01, 0xd7, 0xff, 0x08, 0x00, 0x80, 0x32, 0x01, 0x08, 0x20, 0x30, 0x28, 0x31, 0xc0, 0x00, 0x00, 0x08, 0x01, 0x12, 0xc1, 0x10, 0x0d, 0xf0, 0x12, 0xc1, 0xf0, 0x09, 0x01, 0x01, 0xd0, 0xff, 0x08, 0x00, 0x08, 0x30, 0xc0, 0x00, 0x00, 0x08, 0x01, 0x12, 0xc1, 0x10, 0x0d, 0xf0, 0x00, 0x00, 0x12, 0xc1, 0xf0, 0x09, 0x01, 0x01, 0xca, 0xff, 0x08, 0x00, 0x08, 0x40, 0xc0, 0x00, 0x00, 0x08, 0x01, 0x12, 0xc1, 0x10, 0x0d, 0xf0, 0x00, 0x00, 0x12, 0xc1, 0xf0, 0x09, 0x01, 0x01, 0xc4, 0xff, 0x08, 0x00, 0x08, 0x50, 0xc0, 0x00, 0x00, 0x08, 0x01, 0x12, 0xc1, 0x10, 0x0d, 0xf0, 0x00, 0x00, 0x12, 0xc1, 0xf0, 0x09, 0x01, 0x01, 0xbe, 0xff, 0x08, 0x00, 0x08, 0x60, 0xc0, 0x00, 0x00, 0x08, 0x01, 0x12, 0xc1, 0x10, 0x0d, 0xf0, 0x00, 0x00, 0x12, 0xc1, 0xf0, 0x09, 0x01, 0x01, 0xb8, 0xff, 0x08, 0x00, 0x08, 0x70, 0xc0, 0x00, 0x00, 0x08, 0x01, 0x12, 0xc1, 0x10, 0x0d, 0xf0, 0x00, 0x00, 0x21, 0x7e, 0xde, 0xc0, 0x20, 0x00, 0x22, 0x22, 0x80, 0x0d, 0xf0, 0x00, 0x0c, 0x23, 0x12, 0xc1, 0xe0, 0xc9, 0x31, 0xd9, 0x41, 0xd1, 0xf2, 0xdb, 0x09, 0x21, 0x08, 0x0d, 0xcd, 0x02, 0x02, 0x20, 0x2c, 0x0c, 0x32, 0xc0, 0x00, 0x00, 0x0c, 0x13, 0x08, 0x0d, 0x29, 0x01, 0x02, 0x20, 0x2c, 0x0c, 0x22, 0xc0, 0x00, 0x00, 0x0c, 0x13, 0xc0, 0x49, 0x04, 0x08, 0x0d, 0xc0, 0x58, 0x04, 0xc0, 0x66, 0x04, 0x29, 0x11, 0xc0, 0x77, 0x04, 0x0c, 0x32, 0xe0, 0x77, 0x11, 0xd0, 0x66, 0x11, 0xf0, 0x55, 0x11, 0x02, 0x20, 0x2b, 0x50, 0x44, 0x20, 0x70, 0x66, 0x20, 0xc0, 0x53, 0x04, 0xc0, 0x74, 0x04, 0xa0, 0x55, 0x11, 0xb0, 0x77, 0x11, 0x70, 0x55, 0x20, 0xc0, 0x75, 0x04, 0xc0, 0x77, 0x11, 0x70, 0x55, 0x20, 0x60, 0x55, 0x20, 0x50, 0x44, 0x20, 0x40, 0x40, 0xf4, 0xc0, 0x00, 0x00, 0x0c, 0x32, 0x0c, 0x23, 0x08, 0x0d, 0x48, 0x01, 0x52, 0xa1, 0xc7, 0x50, 0x44, 0x10, 0x02, 0x20, 0x2b, 0xc0, 0x50, 0x24, 0xd0, 0x55, 0x11, 0x50, 0x44, 0x20, 0x40, 0x40, 0xf4, 0xc0, 0x00, 0x00, 0x0c, 0x22, 0x0c, 0x13, 0x08, 0x0d, 0x48, 0x11, 0x52, 0xa1, 0x85, 0x50, 0x44, 0x10, 0x02, 0x20, 0x2b, 0xc0, 0x5b, 0x34, 0xd0, 0x55, 0x11, 0x50, 0x44, 0x20, 0xc0, 0x5a, 0x04, 0xf0, 0x55, 0x11, 0x50, 0x44, 0x20, 0x40, 0x40, 0xf4, 0xc0, 0x00, 0x00, 0xc8, 0x31, 0xd8, 0x41, 0x08, 0x21, 0x12, 0xc1, 0x20, 0x0d, 0xf0, 0x00, 0x00, 0x12, 0xc1, 0xe0, 0xd9, 0x21, 0xe9, 0x31, 0x09, 0x01, 0xc9, 0x11, 0xf9, 0x41, 0x4d, 0x00, 0xf1, 0x45, 0xde, 0xc1, 0xb1, 0xda, 0xc0, 0x20, 0x00, 0x22, 0x2c, 0xe5, 0x07, 0xe2, 0x41, 0xc0, 0x20, 0x00, 0x52, 0x2f, 0x9c, 0x17, 0x65, 0x38, 0xd1, 0xb9, 0xdb, 0x08, 0x0d, 0x02, 0x20, 0x1d, 0xc0, 0x00, 0x00, 0x0c, 0x52, 0x01, 0x3d, 0xde, 0xc0, 0x00, 0x00, 0xe2, 0xa1, 0x84, 0x08, 0x0d, 0x0c, 0x22, 0x02, 0x20, 0x2c, 0x0c, 0x13, 0xc0, 0x00, 0x00, 0xe7, 0xc2, 0xf0, 0x08, 0x0d, 0x0c, 0x32, 0x02, 0x20, 0x2c, 0x0c, 0x23, 0xc0, 0x00, 0x00, 0x0c, 0x63, 0x30, 0x22, 0x10, 0x66, 0x62, 0xdc, 0x91, 0x60, 0xde, 0x81, 0x1a, 0xdd, 0xc0, 0x20, 0x00, 0x72, 0x28, 0x42, 0x90, 0x77, 0x20, 0xc0, 0x20, 0x00, 0x72, 0x68, 0x42, 0xc0, 0x20, 0x00, 0x52, 0x2c, 0xe5, 0x0c, 0x16, 0x60, 0x55, 0x20, 0xc0, 0x20, 0x00, 0x52, 0x6c, 0xe5, 0xc0, 0x20, 0x00, 0x42, 0x2f, 0x9c, 0x01, 0x5a, 0xef, 0x17, 0x64, 0x11, 0xc0, 0x20, 0x00, 0xa2, 0x2c, 0xe8, 0xe7, 0xfa, 0x08, 0xc0, 0x20, 0x00, 0xb2, 0x2c, 0xe8, 0x07, 0x0b, 0xf6, 0xc8, 0x11, 0xd8, 0x21, 0xe8, 0x31, 0xf8, 0x41, 0x08, 0x01, 0x12, 0xc1, 0x20, 0x0d, 0xf0, 0x00, 0x0c, 0x13, 0x42, 0xa0, 0x81, 0x12, 0xc1, 0xf0, 0xc9, 0x11, 0xd9, 0x21, 0xd1, 0x93, 0xdb, 0x09, 0x01, 0x08, 0x0d, 0xcd, 0x02, 0x02, 0x20, 0x2b, 0x0c, 0x22, 0xc0, 0x00, 0x00, 0x0c, 0x72, 0x08, 0x0d, 0x0c, 0x13, 0x02, 0x20, 0x2b, 0xc0, 0x45, 0x41, 0xc0, 0x00, 0x00, 0xc0, 0x40, 0x44, 0x08, 0x0d, 0x0c, 0x02, 0x02, 0x20, 0x2b, 0x0c, 0x13, 0xc0, 0x00, 0x00, 0x0c, 0x12, 0x08, 0x0d, 0x0c, 0x13, 0x02, 0x20, 0x2b, 0x42, 0xa0, 0x7f, 0xc0, 0x00, 0x00, 0x0c, 0x62, 0x08, 0x0d, 0x0c, 0x13, 0x02, 0x20, 0x2b, 0x42, 0xa0, 0x7f, 0xc0, 0x00, 0x00, 0xc8, 0x11, 0xd8, 0x21, 0x08, 0x01, 0x12, 0xc1, 0x10, 0x0d, 0xf0, 0x00, 0x00, 0xf0, 0x00, 0xff, 0xff, 0x0f, 0xff, 0x12, 0xc1, 0xe0, 0x29, 0x11, 0x39, 0x21, 0x09, 0x41, 0x49, 0x31, 0x41, 0xfb, 0xff, 0x01, 0x77, 0xdb, 0x31, 0x69, 0xda, 0xc0, 0x20, 0x00, 0x22, 0x23, 0xf2, 0x40, 0x22, 0x20, 0xc0, 0x20, 0x00, 0x08, 0x00, 0x02, 0x20, 0x37, 0x22, 0x63, 0xf2, 0xc0, 0x00, 0x00, 0x28, 0x21, 0x38, 0x11, 0x48, 0x31, 0x5d, 0x01, 0xc5, 0x5b, 0x00, 0x01, 0x6d, 0xdb, 0x08, 0x00, 0x02, 0x20, 0x38, 0x2d, 0x01, 0xc0, 0x00, 0x00, 0x01, 0x6a, 0xdb, 0x08, 0x00, 0x02, 0x20, 0x36, 0xc0, 0x00, 0x00, 0xc5, 0x52, 0x00, 0x41, 0xea, 0xff, 0xc0, 0x20, 0x00, 0x31, 0x58, 0xda, 0x22, 0x23, 0xf2, 0x40, 0x22, 0x10, 0xc0, 0x20, 0x00, 0x22, 0x63, 0xf2, 0x08, 0x41, 0x12, 0xc1, 0x20, 0x0d, 0xf0, 0x00, 0x00, 0x00, 0x32, 0xa0, 0x01, 0x42, 0xa0, 0x05, 0x0c, 0x75, 0x0c, 0x06, 0x12, 0xc1, 0xe0, 0xd9, 0x21, 0xf9, 0x41, 0xc9, 0x11, 0xe9, 0x31, 0xe1, 0x59, 0xdb, 0x09, 0x01, 0x08, 0x0e, 0xcd, 0x02, 0x02, 0x20, 0x25, 0x22, 0xa0, 0x62, 0xc0, 0x00, 0x00, 0x0c, 0x0d, 0xfd, 0x02, 0x32, 0xae, 0xac, 0x20, 0x22, 0x90, 0x30, 0x22, 0xb0, 0x32, 0xa0, 0xe3, 0xc5, 0x46, 0x02, 0x00, 0x52, 0x11, 0x0c, 0xf4, 0x0d, 0x04, 0x50, 0x50, 0x31, 0x2d, 0x0d, 0x50, 0x25, 0xb3, 0xe6, 0xb2, 0x01, 0x0d, 0x02, 0x32, 0xa0, 0xcf, 0xf0, 0x2f, 0x90, 0xf0, 0x22, 0xf0, 0x22, 0xc2, 0x1d, 0x00, 0xf0, 0x11, 0xf0, 0xf0, 0x31, 0x05, 0x44, 0x02, 0x98, 0x0e, 0x00, 0x42, 0x11, 0x0c, 0xf3, 0x0d, 0x03, 0x40, 0x40, 0x31, 0x92, 0x29, 0x27, 0x40, 0xd4, 0xb3, 0xe6, 0xbd, 0x01, 0x0d, 0x0d, 0x00, 0xd0, 0x11, 0xd0, 0xd0, 0x31, 0xb6, 0x3c, 0x1c, 0x0c, 0x82, 0xa6, 0x8f, 0x01, 0x7c, 0x82, 0x0c, 0x03, 0x0c, 0x44, 0x0c, 0x35, 0x0c, 0x06, 0x2a, 0x7f, 0x70, 0x70, 0x74, 0x22, 0xa0, 0x64, 0xc0, 0x09, 0x00, 0x06, 0x04, 0x00, 0xf0, 0x70, 0x74, 0x22, 0xa0, 0x64, 0x0c, 0x03, 0x0c, 0x44, 0x0c, 0x35, 0x0c, 0x06, 0xc0, 0x09, 0x00, 0x98, 0x0e, 0x0c, 0x80, 0x92, 0x29, 0x27, 0xb6, 0x2c, 0x1a, 0xa6, 0x8d, 0x01, 0x7c, 0x80, 0x22, 0xa0, 0x64, 0x0c, 0x03, 0x0c, 0x74, 0x0c, 0x35, 0x0c, 0x06, 0x0a, 0x7d, 0x70, 0x70, 0x74, 0xc0, 0x09, 0x00, 0x06, 0x04, 0x00, 0xd0, 0x70, 0x74, 0x22, 0xa0, 0x64, 0x0c, 0x03, 0x0c, 0x74, 0x0c, 0x35, 0x0c, 0x06, 0xc0, 0x09, 0x00, 0x98, 0x0e, 0x92, 0x29, 0x27, 0xac, 0x6c, 0x22, 0xa0, 0x61, 0x0c, 0x13, 0x0c, 0x54, 0x0c, 0x35, 0x0c, 0x26, 0x0c, 0x37, 0xc0, 0x09, 0x00, 0x22, 0xa0, 0x61, 0x0c, 0x13, 0x0c, 0x54, 0x0c, 0x15, 0x08, 0x0e, 0x0c, 0x06, 0x02, 0x20, 0x27, 0x0c, 0x37, 0xc0, 0x00, 0x00, 0x06, 0x09, 0x00, 0x22, 0xa0, 0x61, 0x0c, 0x13, 0x0c, 0x54, 0x0c, 0x35, 0x0c, 0x26, 0x0c, 0x07, 0xc0, 0x09, 0x00, 0x22, 0xa0, 0x61, 0x0c, 0x13, 0x0c, 0x54, 0x0c, 0x15, 0x08, 0x0e, 0x0c, 0x06, 0x02, 0x20, 0x27, 0x0c, 0x07, 0xc0, 0x00, 0x00, 0xc8, 0x11, 0xd8, 0x21, 0xe8, 0x31, 0xf8, 0x41, 0x08, 0x01, 0x12, 0xc1, 0x20, 0x0d, 0xf0, 0x00, 0x00, 0x22, 0xa0, 0x61, 0x12, 0xc1, 0xf0, 0x09, 0x01, 0x01, 0x0a, 0xdb, 0x0c, 0x13, 0x08, 0x00, 0x0c, 0x84, 0x02, 0x20, 0x26, 0x1c, 0x15, 0xc0, 0x00, 0x00, 0x0c, 0x02, 0x85, 0xe9, 0xff, 0x08, 0x01, 0x12, 0xc1, 0x10, 0x0d, 0xf0, 0x00, 0x00, 0x00, 0x12, 0xc1, 0xf0, 0x09, 0x01, 0x72, 0xaf, 0xdf, 0x21, 0x3a, 0xd9, 0xc0, 0x20, 0x00, 0x62, 0x22, 0xd4, 0x70, 0x66, 0x10, 0xc0, 0x20, 0x00, 0x62, 0x62, 0xd4, 0x51, 0x24, 0xe0, 0xc0, 0x20, 0x00, 0x42, 0x22, 0xd7, 0x50, 0x44, 0x20, 0xc0, 0x20, 0x00, 0x42, 0x62, 0xd7, 0x31, 0x08, 0xee, 0xc0, 0x20, 0x00, 0x02, 0x22, 0xd7, 0x30, 0x00, 0x10, 0xc0, 0x20, 0x00, 0x02, 0x62, 0xd7, 0x22, 0xa0, 0xc8, 0x01, 0x78, 0xdd, 0xc0, 0x00, 0x00, 0x22, 0xa0, 0x6c, 0x0c, 0x23, 0x0c, 0x04, 0x01, 0xee, 0xda, 0x0c, 0x65, 0x08, 0x00, 0x0c, 0x66, 0x02, 0x20, 0x27, 0x0c, 0x07, 0xc0, 0x00, 0x00, 0x22, 0xa0, 0x6c, 0x0c, 0x23, 0x0c, 0x04, 0x01, 0xe8, 0xda, 0x0c, 0x65, 0x08, 0x00, 0x0c, 0x66, 0x02, 0x20, 0x27, 0x0c, 0x17, 0xc0, 0x00, 0x00, 0x2c, 0x04, 0xc0, 0x20, 0x00, 0x31, 0x1d, 0xd9, 0x22, 0x23, 0xd4, 0x40, 0x22, 0x20, 0xc0, 0x20, 0x00, 0x0c, 0x24, 0x0c, 0x75, 0x01, 0xdf, 0xda, 0x0c, 0x06, 0x08, 0x00, 0x22, 0x63, 0xd4, 0x22, 0xa0, 0x6c, 0x02, 0x20, 0x25, 0x0c, 0x23, 0xc0, 0x00, 0x00, 0x08, 0x01, 0x12, 0xc1, 0x10, 0x0d, 0xf0, 0x12, 0xc1, 0xd0, 0xd2, 0x61, 0x07, 0xd1, 0xd6, 0xda, 0x02, 0x61, 0x05, 0x02, 0x2d, 0x00, 0xc9, 0x61, 0x02, 0x20, 0x28, 0xe9, 0x81, 0xc0, 0x00, 0x00, 0x08, 0x0d, 0x0c, 0x62, 0x02, 0x20, 0x2c, 0x0c, 0x13, 0xc0, 0x00, 0x00, 0x0c, 0x23, 0x0c, 0x94, 0x0c, 0x25, 0x0c, 0x06, 0x08, 0x0d, 0xed, 0x02, 0x02, 0x20, 0x25, 0x22, 0xa0, 0x6b, 0xc0, 0x00, 0x00, 0x0c, 0x23, 0x0c, 0x04, 0x0c, 0x55, 0x0c, 0x56, 0x08, 0x0d, 0x29, 0x41, 0x02, 0x20, 0x25, 0x22, 0xa0, 0x6c, 0xc0, 0x00, 0x00, 0x0c, 0x13, 0x08, 0x0d, 0xcd, 0x02, 0x0c, 0x24, 0x0c, 0x62, 0x40, 0x4e, 0x20, 0x02, 0x20, 0x2b, 0x40, 0x40, 0xf4, 0xc0, 0x00, 0x00, 0x22, 0xa0, 0x6b, 0x0c, 0x23, 0x0c, 0x94, 0x0c, 0x75, 0x0c, 0x76, 0x08, 0x0d, 0x0c, 0x17, 0x02, 0x20, 0x27, 0xc9, 0x91, 0xc0, 0x00, 0x00, 0x22, 0xa0, 0x6b, 0x0c, 0x23, 0x0c, 0x94, 0x0c, 0x25, 0x08, 0x0d, 0x0c, 0x06, 0x02, 0x20, 0x27, 0x0c, 0x07, 0xc0, 0x00, 0x00, 0x0c, 0x2c, 0x22, 0xa0, 0x6c, 0x0c, 0x23, 0x0c, 0x04, 0x0c, 0x55, 0x08, 0x0d, 0x0c, 0x56, 0x02, 0x20, 0x27, 0x0c, 0x17, 0xc0, 0x00, 0x00, 0x91, 0xda, 0xda, 0x31, 0xe7, 0xd8, 0xc0, 0x20, 0x00, 0x82, 0x23, 0xd7, 0x90, 0x88, 0x20, 0xc0, 0x20, 0x00, 0x82, 0x63, 0xd7, 0x71, 0xb8, 0xed, 0xc0, 0x20, 0x00, 0x62, 0x23, 0xd7, 0x70, 0x66, 0x10, 0xc0, 0x20, 0x00, 0x62, 0x63, 0xd7, 0x7c, 0xd5, 0xc0, 0x20, 0x00, 0x42, 0x23, 0xd4, 0x50, 0x44, 0x10, 0xc0, 0x20, 0x00, 0x42, 0x63, 0xd4, 0xc0, 0x20, 0x00, 0x22, 0x23, 0xd4, 0xc0, 0x22, 0x20, 0xc0, 0x20, 0x00, 0x22, 0x63, 0xd4, 0x1c, 0x92, 0x01, 0x22, 0xdd, 0xc0, 0x00, 0x00, 0x2d, 0x01, 0xc5, 0x84, 0xfb, 0x0c, 0x00, 0x0c, 0x0c, 0x2d, 0x01, 0x1b, 0x40, 0x20, 0x30, 0x90, 0x32, 0x13, 0x00, 0x40, 0x00, 0x74, 0xca, 0xc3, 0xc0, 0xc0, 0xf4, 0x66, 0x80, 0xec, 0xe0, 0x40, 0xf4, 0x08, 0x0d, 0x0c, 0x62, 0x02, 0x20, 0x2b, 0x0c, 0x13, 0xc0, 0x00, 0x00, 0x22, 0xa0, 0x6b, 0x0c, 0x23, 0x0c, 0x94, 0x0c, 0x75, 0x08, 0x0d, 0x0c, 0x76, 0x02, 0x20, 0x27, 0x0c, 0x07, 0xc0, 0x00, 0x00, 0xe8, 0x91, 0x22, 0xa0, 0x6b, 0x0c, 0x23, 0x0c, 0x94, 0x0c, 0x25, 0x0c, 0x06, 0x08, 0x0d, 0x78, 0x41, 0x02, 0x20, 0x27, 0x70, 0x70, 0x74, 0xc0, 0x00, 0x00, 0xe0, 0x70, 0x74, 0x22, 0xa0, 0x6c, 0x0c, 0x23, 0x0c, 0x04, 0x08, 0x0d, 0x0c, 0x55, 0x02, 0x20, 0x27, 0x0c, 0x56, 0xc0, 0x00, 0x00, 0x08, 0x0d, 0x02, 0x20, 0x2f, 0xc0, 0x00, 0x00, 0x08, 0x51, 0xd8, 0x71, 0x60, 0x2c, 0x11, 0xe8, 0x81, 0xc8, 0x61, 0x22, 0xd2, 0x08, 0x20, 0x2c, 0xf4, 0x12, 0xc1, 0x30, 0x0d, 0xf0, 0x00, 0x33, 0x0d, 0x00, 0x00, 0x12, 0xc1, 0xf0, 0xc9, 0x21, 0x29, 0x01, 0x09, 0x11, 0x85, 0xe6, 0xff, 0x01, 0xfc, 0xff, 0x0c, 0x0c, 0x07, 0x32, 0x02, 0x86, 0x0a, 0x00, 0xc1, 0x6f, 0xda, 0x08, 0x0c, 0x08, 0xe0, 0x0c, 0x33, 0xc0, 0x00, 0x00, 0x0c, 0x33, 0x08, 0x0c, 0xcd, 0x02, 0x08, 0xe0, 0x21, 0xf4, 0xff, 0xc0, 0x00, 0x00, 0x20, 0xcc, 0xc0, 0xf0, 0xcc, 0x11, 0x00, 0xcc, 0x11, 0xc0, 0xc0, 0x31, 0x2b, 0xcc, 0xc0, 0xc2, 0x21, 0x85, 0xd8, 0xff, 0x0c, 0x00, 0x51, 0x31, 0xdd, 0x28, 0x01, 0x41, 0x4e, 0xe5, 0xca, 0xc2, 0x00, 0xcc, 0x11, 0xc0, 0xc0, 0x31, 0x2d, 0x0c, 0x5a, 0x60, 0x1b, 0x70, 0x4a, 0x30, 0x32, 0x03, 0x24, 0x70, 0x00, 0x74, 0x3a, 0x3c, 0x32, 0x46, 0x68, 0x66, 0x60, 0xeb, 0xc8, 0x21, 0x08, 0x11, 0x12, 0xc1, 0x10, 0x0d, 0xf0, 0x00, 0x00, 0x12, 0xc1, 0xf0, 0x09, 0x01, 0xc9, 0x11, 0xd9, 0x21, 0xcd, 0x02, 0x0c, 0x0d, 0x16, 0x1d, 0x04, 0x26, 0x1d, 0x20, 0x66, 0x2d, 0x56, 0x22, 0xa0, 0x6b, 0x0c, 0x23, 0x0c, 0x24, 0x0c, 0x65, 0x01, 0x4f, 0xda, 0x0c, 0x46, 0x08, 0x00, 0xda, 0x7c, 0x02, 0x20, 0x27, 0x72, 0x07, 0x00, 0xc0, 0x00, 0x00, 0x06, 0x0e, 0x00, 0x22, 0xa0, 0x6b, 0x0c, 0x23, 0x0c, 0x24, 0x0c, 0x35, 0x01, 0x47, 0xda, 0x0c, 0x06, 0x08, 0x00, 0xda, 0x7c, 0x02, 0x20, 0x27, 0x72, 0x07, 0x00, 0xc0, 0x00, 0x00, 0x86, 0x06, 0x00, 0x22, 0xa0, 0x6b, 0x0c, 0x23, 0x0c, 0x14, 0x0c, 0x35, 0x01, 0x40, 0xda, 0x0c, 0x06, 0x08, 0x00, 0xda, 0x7c, 0x02, 0x20, 0x27, 0x72, 0x07, 0x00, 0xc0, 0x00, 0x00, 0x1b, 0xdd, 0xd0, 0xd0, 0x74, 0x66, 0x3d, 0x97, 0xc8, 0x11, 0xd8, 0x21, 0x08, 0x01, 0x12, 0xc1, 0x10, 0x0d, 0xf0, 0x22, 0xa0, 0x62, 0x0c, 0x13, 0x0c, 0x04, 0x0c, 0x65, 0x12, 0xc1, 0xf0, 0xc9, 0x11, 0xc1, 0x33, 0xda, 0x09, 0x01, 0x08, 0x0c, 0x0c, 0x66, 0x02, 0x20, 0x27, 0x0c, 0x17, 0xc0, 0x00, 0x00, 0x22, 0xa0, 0x62, 0x0c, 0x13, 0x0c, 0x04, 0x0c, 0x55, 0x08, 0x0c, 0x0c, 0x56, 0x02, 0x20, 0x27, 0x0c, 0x07, 0xc0, 0x00, 0x00, 0x22, 0xa0, 0x62, 0x0c, 0x13, 0x0c, 0x04, 0x0c, 0x55, 0x08, 0x0c, 0x0c, 0x56, 0x02, 0x20, 0x27, 0x0c, 0x17, 0xc0, 0x00, 0x00, 0x22, 0xa0, 0x62, 0x0c, 0x13, 0x0c, 0x04, 0x0c, 0x65, 0x08, 0x0c, 0x0c, 0x66, 0x02, 0x20, 0x27, 0x0c, 0x07, 0xc0, 0x00, 0x00, 0xc8, 0x11, 0x08, 0x01, 0x12, 0xc1, 0x10, 0x0d, 0xf0, 0x00, 0x84, 0x89, 0xfe, 0x3f, 0x12, 0xc1, 0xe0, 0x09, 0x01, 0xd9, 0x21, 0xe9, 0x31, 0xc9, 0x11, 0xf9, 0x41, 0x0c, 0x0c, 0xf2, 0xa0, 0x63, 0xe2, 0xa0, 0x64, 0xd1, 0x16, 0xda, 0x1c, 0x42, 0x01, 0x9c, 0xdc, 0xc0, 0x00, 0x00, 0x22, 0xa0, 0x62, 0x0c, 0x13, 0x0c, 0x74, 0x08, 0x0d, 0x0c, 0x75, 0x02, 0x20, 0x25, 0x0c, 0x76, 0xc0, 0x00, 0x00, 0xdc, 0x22, 0xf7, 0x9c, 0x08, 0x21, 0xf1, 0xff, 0x01, 0xba, 0xd8, 0xc0, 0x00, 0x00, 0x1b, 0xcc, 0xc0, 0xc0, 0x74, 0xe7, 0x9c, 0xce, 0xc8, 0x11, 0xd8, 0x21, 0xe8, 0x31, 0xf8, 0x41, 0x08, 0x01, 0x12, 0xc1, 0x20, 0x0d, 0xf0, 0x00, 0x00, 0x20, 0x42, 0x00, 0x00, 0xc0, 0x41, 0x00, 0x00, 0xd0, 0x41, 0x00, 0x00, 0x80, 0x43, 0x00, 0x00, 0x08, 0x40, 0x00, 0x00, 0x80, 0x44, 0x00, 0x00, 0x00, 0xc2, 0x12, 0xc1, 0xe0, 0xd9, 0x31, 0x09, 0x11, 0xc9, 0x21, 0xe9, 0x41, 0xcd, 0x05, 0xe1, 0xf5, 0xff, 0x8c, 0xd3, 0x26, 0x13, 0x08, 0x66, 0x23, 0x08, 0xe1, 0xf4, 0xff, 0x86, 0x00, 0x00, 0xe1, 0xf3, 0xff, 0xd1, 0xf3, 0xff, 0x60, 0x22, 0x11, 0x20, 0x24, 0x80, 0xe0, 0x22, 0x11, 0x05, 0x08, 0x02, 0x51, 0xf1, 0xff, 0x0c, 0x04, 0x45, 0x24, 0x01, 0xc5, 0x3a, 0x01, 0x29, 0x01, 0x31, 0xee, 0xff, 0x2d, 0x0e, 0x05, 0xc0, 0x00, 0x3d, 0x02, 0x28, 0x01, 0xc5, 0xd5, 0x00, 0x31, 0xec, 0xff, 0x85, 0x99, 0x00, 0xed, 0x02, 0xc5, 0xe4, 0x00, 0x22, 0x4c, 0x00, 0x20, 0x20, 0x74, 0x45, 0x01, 0x02, 0x3d, 0x02, 0x2d, 0x0e, 0x85, 0xa6, 0x00, 0x3d, 0x0d, 0x85, 0xbd, 0x00, 0xed, 0x02, 0x45, 0xe3, 0x00, 0x22, 0x4c, 0x01, 0x20, 0x20, 0x74, 0xc5, 0xff, 0x01, 0x3d, 0x02, 0x2d, 0x0e, 0x05, 0xa5, 0x00, 0x3d, 0x0d, 0x05, 0xbc, 0x00, 0xc5, 0xe1, 0x00, 0x08, 0x11, 0xd8, 0x31, 0x22, 0x4c, 0x02, 0xe8, 0x41, 0xc8, 0x21, 0x12, 0xc1, 0x20, 0x0d, 0xf0, 0x00, 0x00, 0x00, 0x2d, 0xa1, 0x10, 0x40, 0xb4, 0x09, 0x00, 0x00, 0x8b, 0xa1, 0x10, 0x40, 0x44, 0xa2, 0x10, 0x40, 0x6c, 0x09, 0x00, 0x00, 0xa8, 0x09, 0x00, 0x00, 0xa3, 0x09, 0x00, 0x00, 0x9e, 0x09, 0x00, 0x00, 0x99, 0x09, 0x00, 0x00, 0x94, 0x09, 0x00, 0x00, 0x8f, 0x09, 0x00, 0x00, 0x8a, 0x09, 0x00, 0x00, 0x85, 0x09, 0x00, 0x00, 0x80, 0x09, 0x00, 0x00, 0x7b, 0x09, 0x00, 0x00, 0x76, 0x09, 0x00, 0x00, 0x71, 0x09, 0x00, 0x00, 0x12, 0xc1, 0xd0, 0xc9, 0x41, 0x49, 0x81, 0x69, 0x21, 0x09, 0x31, 0xf9, 0x71, 0xd9, 0x51, 0xe9, 0x61, 0xdd, 0x02, 0xed, 0x03, 0xfd, 0x04, 0xa6, 0x12, 0x0e, 0x0c, 0xd0, 0x27, 0x20, 0x09, 0x0b, 0x22, 0x20, 0x20, 0x74, 0x29, 0x11, 0xc6, 0x00, 0x00, 0x0c, 0xd3, 0x39, 0x11, 0x41, 0x3e, 0xfe, 0xc1, 0xbb, 0xd9, 0x31, 0xad, 0xd8, 0xc0, 0x20, 0x00, 0x22, 0x23, 0xf2, 0x40, 0x22, 0x20, 0xc0, 0x20, 0x00, 0x08, 0x0c, 0x02, 0x20, 0x37, 0x22, 0x63, 0xf2, 0xc0, 0x00, 0x00, 0x0c, 0xe5, 0x57, 0xbd, 0x34, 0x71, 0xda, 0xff, 0xd0, 0x6d, 0x90, 0x7a, 0x66, 0xa0, 0x06, 0x00, 0x86, 0x09, 0x00, 0x46, 0x5b, 0x00, 0x86, 0x6c, 0x00, 0x46, 0x6a, 0x00, 0x06, 0x68, 0x00, 0xc6, 0x65, 0x00, 0x86, 0x63, 0x00, 0x46, 0x61, 0x00, 0x06, 0x5f, 0x00, 0xc6, 0x5c, 0x00, 0x86, 0x5a, 0x00, 0x46, 0x58, 0x00, 0x06, 0x56, 0x00, 0xc6, 0x53, 0x00, 0xc1, 0xce, 0xff, 0x56, 0x7f, 0x05, 0xf6, 0x2e, 0x54, 0x3c, 0xb0, 0x0b, 0x8e, 0x56, 0x98, 0x0b, 0x42, 0xaf, 0xb7, 0xb2, 0xaf, 0x83, 0xa2, 0xa0, 0x76, 0x5c, 0xe3, 0x5c, 0xd9, 0x5c, 0xc6, 0x5c, 0xb8, 0x0c, 0xee, 0xe7, 0x3d, 0x02, 0x86, 0x5f, 0x00, 0x21, 0xc5, 0xff, 0xd0, 0xfd, 0x90, 0x2a, 0xff, 0xa0, 0x0f, 0x00, 0x06, 0x5c, 0x00, 0x06, 0x40, 0x00, 0x86, 0x5e, 0x00, 0x46, 0x89, 0x00, 0xc6, 0x85, 0x00, 0x06, 0x82, 0x00, 0x06, 0x5f, 0x00, 0x86, 0x7e, 0x00, 0x46, 0x7a, 0x00, 0x46, 0x76, 0x00, 0xc6, 0x72, 0x00, 0x86, 0x6e, 0x00, 0x06, 0x6b, 0x00, 0x86, 0x67, 0x00, 0x4d, 0x0f, 0x3d, 0x0e, 0xd8, 0x11, 0x2d, 0x0c, 0x5d, 0x01, 0x05, 0xe3, 0xff, 0x32, 0x01, 0x02, 0x52, 0x01, 0x00, 0x48, 0x21, 0x62, 0x01, 0x01, 0x40, 0x4d, 0xa0, 0x80, 0x66, 0x11, 0x00, 0x55, 0x11, 0x60, 0x55, 0x20, 0x50, 0x33, 0x20, 0x39, 0x04, 0xd1, 0x83, 0xd9, 0x08, 0x0d, 0x02, 0x20, 0x38, 0x2d, 0x01, 0xc0, 0x00, 0x00, 0x08, 0x0d, 0x02, 0x20, 0x36, 0xc0, 0x00, 0x00, 0x22, 0x01, 0x30, 0x8c, 0x12, 0x05, 0xd8, 0xff, 0x2d, 0x0c, 0x51, 0xff, 0xfd, 0xc0, 0x20, 0x00, 0x41, 0x6d, 0xd8, 0x32, 0x24, 0xf2, 0x50, 0x33, 0x10, 0xc0, 0x20, 0x00, 0x32, 0x64, 0xf2, 0xc8, 0x41, 0xd8, 0x51, 0xe8, 0x61, 0xf8, 0x71, 0x08, 0x31, 0x12, 0xc1, 0x30, 0x0d, 0xf0, 0x3c, 0x04, 0x3c, 0x1a, 0x3c, 0x22, 0x32, 0xa0, 0x66, 0xb2, 0xaf, 0x91, 0x62, 0xaf, 0xbb, 0x6c, 0x69, 0x1c, 0x18, 0x0c, 0xe7, 0x77, 0xbd, 0x34, 0xf1, 0x97, 0xff, 0xd0, 0xed, 0x90, 0xfa, 0xee, 0xa0, 0x0e, 0x00, 0x86, 0x09, 0x00, 0x06, 0x0f, 0x00, 0xc6, 0x09, 0x00, 0x06, 0x3a, 0x00, 0x46, 0x3a, 0x00, 0x86, 0x3d, 0x00, 0x46, 0x08, 0x00, 0x86, 0x24, 0x00, 0xc6, 0x24, 0x00, 0xc6, 0x38, 0x00, 0x46, 0x24, 0x00, 0x86, 0x30, 0x00, 0xc6, 0x30, 0x00, 0x86, 0x05, 0x00, 0x4d, 0x02, 0x82, 0xaf, 0xcc, 0xbd, 0x08, 0x6d, 0x08, 0x0d, 0x0b, 0xad, 0x04, 0x3d, 0x06, 0x4d, 0x0a, 0x02, 0x41, 0x01, 0x06, 0x01, 0x00, 0x4d, 0x02, 0x32, 0x41, 0x01, 0x0d, 0x03, 0x42, 0x41, 0x00, 0x06, 0x02, 0x00, 0x82, 0x41, 0x00, 0x22, 0xaf, 0xb1, 0x22, 0x41, 0x01, 0x02, 0x41, 0x02, 0x06, 0xcf, 0xff, 0xc1, 0x7e, 0xff, 0x86, 0xac, 0xff, 0xc1, 0x7e, 0xff, 0x06, 0xab, 0xff, 0xc1, 0x7d, 0xff, 0x86, 0xa9, 0xff, 0xc1, 0x7d, 0xff, 0x06, 0xa8, 0xff, 0xc1, 0x7c, 0xff, 0x86, 0xa6, 0xff, 0xc1, 0x7c, 0xff, 0x06, 0xa5, 0xff, 0xc1, 0x7b, 0xff, 0x86, 0xa3, 0xff, 0xc1, 0x7b, 0xff, 0x06, 0xa2, 0xff, 0xc1, 0x7a, 0xff, 0x86, 0xa0, 0xff, 0xc1, 0x7a, 0xff, 0x06, 0x9f, 0xff, 0xc1, 0x79, 0xff, 0x86, 0x9d, 0xff, 0xc1, 0x79, 0xff, 0x06, 0x9c, 0xff, 0xc1, 0x78, 0xff, 0x86, 0x9a, 0xff, 0x8d, 0x03, 0xbd, 0x08, 0x3d, 0x08, 0x9d, 0x0b, 0x4d, 0x0a, 0x92, 0x41, 0x01, 0x86, 0xe2, 0xff, 0x0d, 0x0a, 0x22, 0xa0, 0x62, 0x5c, 0xf3, 0x32, 0x41, 0x00, 0x22, 0x41, 0x01, 0xc6, 0xe2, 0xff, 0x82, 0x41, 0x00, 0x02, 0xaf, 0xdf, 0x7c, 0x24, 0x42, 0x41, 0x01, 0x46, 0xdf, 0xff, 0x62, 0x41, 0x00, 0x02, 0xa0, 0x6f, 0x7c, 0x95, 0x52, 0x41, 0x01, 0xc6, 0xdb, 0xff, 0x6d, 0x08, 0x0d, 0x06, 0x3d, 0x06, 0x4d, 0x02, 0x02, 0x41, 0x01, 0x06, 0xd4, 0xff, 0x3d, 0x06, 0x9d, 0x03, 0x6d, 0x03, 0x0d, 0x09, 0xad, 0x04, 0x06, 0xcd, 0xff, 0x3d, 0x06, 0x9d, 0x03, 0x46, 0xea, 0xff, 0x6d, 0x08, 0x0d, 0x06, 0x86, 0xc9, 0xff, 0x32, 0x41, 0x00, 0x22, 0xaf, 0xc4, 0x6c, 0xc0, 0x06, 0xce, 0xff, 0x32, 0x41, 0x00, 0xb2, 0x41, 0x01, 0x4c, 0x80, 0x06, 0xcc, 0xff, 0x32, 0x41, 0x00, 0x02, 0xaf, 0xa4, 0x4c, 0x16, 0x62, 0x41, 0x01, 0x86, 0xc8, 0xff, 0x0c, 0x00, 0x02, 0x41, 0x01, 0x32, 0x41, 0x00, 0xc6, 0xc5, 0xff, 0x0d, 0x08, 0x3d, 0x09, 0x72, 0xaf, 0xbe, 0x72, 0x41, 0x01, 0x06, 0xfb, 0xff, 0x92, 0x41, 0x00, 0x02, 0xa0, 0x7c, 0x02, 0x41, 0x01, 0x0d, 0x04, 0x06, 0xbf, 0xff, 0x92, 0x41, 0x00, 0x1c, 0x34, 0xc6, 0xfb, 0xff, 0x62, 0x41, 0x00, 0x42, 0x41, 0x01, 0x02, 0xaf, 0xcb, 0x06, 0xba, 0xff, 0x62, 0x41, 0x00, 0xa2, 0x41, 0x01, 0x2c, 0x70, 0x46, 0xb7, 0xff, 0x0d, 0x0b, 0x62, 0x41, 0x00, 0x3c, 0x48, 0x82, 0x41, 0x01, 0x06, 0xb4, 0xff, 0x00, 0x00, 0x0a, 0xa4, 0x10, 0x40, 0x08, 0x52, 0x00, 0x00, 0x00, 0x60, 0x00, 0x00, 0x81, 0xd3, 0xdb, 0x4d, 0x05, 0x12, 0xc1, 0xe0, 0x09, 0x41, 0xc9, 0x51, 0x5d, 0x06, 0xcd, 0x02, 0x22, 0x48, 0x4e, 0x6d, 0x07, 0x02, 0x01, 0x24, 0x72, 0x11, 0x10, 0x09, 0x01, 0x85, 0xcd, 0xff, 0x3d, 0x02, 0x0c, 0xe9, 0x97, 0xbc, 0x34, 0xb1, 0xf3, 0xff, 0xc0, 0xac, 0x90, 0xba, 0xaa, 0xa0, 0x0a, 0x00, 0x86, 0x09, 0x00, 0x06, 0x17, 0x00, 0x46, 0x28, 0x00, 0x06, 0x26, 0x00, 0xc6, 0x23, 0x00, 0x86, 0x21, 0x00, 0x46, 0x1f, 0x00, 0x06, 0x1d, 0x00, 0xc6, 0x1a, 0x00, 0x86, 0x18, 0x00, 0x46, 0x16, 0x00, 0x06, 0x14, 0x00, 0xc6, 0x11, 0x00, 0x86, 0x0f, 0x00, 0x02, 0xa0, 0x6a, 0x41, 0xe7, 0xff, 0x51, 0xe5, 0xff, 0x21, 0x5b, 0xda, 0x50, 0x50, 0x80, 0xf0, 0x55, 0x01, 0xc0, 0x20, 0x00, 0x02, 0x22, 0x45, 0x00, 0x00, 0xc4, 0x50, 0x00, 0x20, 0x40, 0x00, 0x20, 0xc0, 0x20, 0x00, 0x02, 0x62, 0x45, 0xc0, 0x2c, 0x20, 0x05, 0xd1, 0xf7, 0x45, 0xff, 0xf7, 0xc8, 0x51, 0x08, 0x41, 0x12, 0xc1, 0x20, 0x0d, 0xf0, 0x02, 0xa2, 0xe1, 0xc6, 0xf0, 0xff, 0x02, 0xa0, 0xd1, 0x46, 0xef, 0xff, 0x02, 0xa0, 0xfc, 0xc6, 0xed, 0xff, 0x02, 0xa1, 0x27, 0x46, 0xec, 0xff, 0x02, 0xa1, 0x53, 0xc6, 0xea, 0xff, 0x02, 0xa1, 0x7e, 0x46, 0xe9, 0xff, 0x02, 0xa1, 0xaa, 0xc6, 0xe7, 0xff, 0x02, 0xa1, 0xd6, 0x46, 0xe6, 0xff, 0x02, 0xa2, 0x02, 0xc6, 0xe4, 0xff, 0x02, 0xa2, 0x2e, 0x46, 0xe3, 0xff, 0x02, 0xa2, 0x5a, 0xc6, 0xe1, 0xff, 0x02, 0xa2, 0x87, 0x46, 0xe0, 0xff, 0x02, 0xa2, 0xb4, 0xc6, 0xde, 0xff, 0x00, 0xa4, 0x89, 0xfe, 0x3f, 0x42, 0xc2, 0xff, 0x12, 0xc1, 0xe0, 0x02, 0x61, 0x04, 0xd2, 0x61, 0x06, 0x00, 0x14, 0x40, 0xc9, 0x51, 0x7c, 0xf4, 0xcd, 0x02, 0xdd, 0x03, 0x21, 0x93, 0xdb, 0x0c, 0x13, 0x00, 0x33, 0xa1, 0x40, 0x33, 0x30, 0x08, 0x02, 0x4d, 0x0d, 0x30, 0x00, 0x10, 0x09, 0x02, 0x3d, 0x0c, 0x21, 0xf3, 0xff, 0x01, 0x6c, 0xd7, 0xc0, 0x00, 0x00, 0x5d, 0x0d, 0x61, 0x8b, 0xdb, 0x2d, 0x0c, 0x0c, 0x04, 0x82, 0xa0, 0x64, 0x31, 0xa6, 0xe3, 0x0c, 0x17, 0x32, 0x03, 0x01, 0x79, 0x11, 0x89, 0x01, 0x71, 0x82, 0xdb, 0x45, 0xec, 0xff, 0x2d, 0x0c, 0x85, 0xbd, 0xf7, 0xc8, 0x51, 0xd8, 0x61, 0x08, 0x41, 0x12, 0xc1, 0x20, 0x0d, 0xf0, 0xe0, 0xf4, 0xfe, 0x3f, 0x41, 0xff, 0xff, 0x32, 0xa0, 0x01, 0x12, 0xc1, 0xe0, 0xc2, 0x61, 0x06, 0x02, 0x61, 0x05, 0x01, 0x7b, 0xdb, 0xcd, 0x02, 0x08, 0x00, 0x32, 0x44, 0x00, 0x57, 0x70, 0x07, 0x0c, 0x42, 0x45, 0x96, 0xfc, 0x46, 0x01, 0x00, 0x85, 0xd7, 0xf6, 0x22, 0x61, 0x04, 0x61, 0x74, 0xdb, 0x71, 0x70, 0xdb, 0x42, 0xa0, 0x64, 0x0c, 0x12, 0x51, 0xde, 0xf8, 0x31, 0x8f, 0xe3, 0x52, 0x95, 0x00, 0x32, 0x03, 0x01, 0x29, 0x11, 0x49, 0x01, 0x2d, 0x0c, 0x0c, 0x04, 0x45, 0xe6, 0xff, 0x2d, 0x0c, 0x85, 0xb7, 0xf7, 0x61, 0x6a, 0xdb, 0x68, 0x06, 0x57, 0x76, 0x09, 0x0c, 0x42, 0x0c, 0x03, 0x45, 0xa5, 0xfc, 0x46, 0x01, 0x00, 0x22, 0x21, 0x04, 0x05, 0xcf, 0xf6, 0xc2, 0x21, 0x06, 0x02, 0x21, 0x05, 0x12, 0xc1, 0x20, 0x0d, 0xf0, 0x12, 0xc1, 0xe0, 0x02, 0x61, 0x06, 0xc2, 0x61, 0x07, 0x82, 0xa4, 0x00, 0x71, 0xcb, 0xd6, 0x20, 0xc2, 0x20, 0xc0, 0x20, 0x00, 0x62, 0x27, 0xd0, 0x80, 0x66, 0x20, 0xc0, 0x20, 0x00, 0x0c, 0x04, 0x0c, 0x00, 0x22, 0xa0, 0x64, 0x31, 0x76, 0xe3, 0x62, 0x67, 0xd0, 0x51, 0xc4, 0xf8, 0x61, 0x56, 0xdb, 0x71, 0x52, 0xdb, 0x52, 0x95, 0x00, 0x32, 0x03, 0x01, 0x29, 0x01, 0x09, 0x11, 0x2d, 0x0c, 0x85, 0xdf, 0xff, 0x31, 0xdb, 0xdb, 0xc0, 0x2c, 0x90, 0x3a, 0x22, 0x85, 0x8a, 0xff, 0xc0, 0x20, 0x74, 0x32, 0xc1, 0x10, 0xc5, 0x0c, 0xf7, 0xc8, 0x71, 0x08, 0x61, 0x12, 0xc1, 0x20, 0x0d, 0xf0, 0xff, 0xff, 0xff, 0xe0, 0x00, 0x00, 0x00, 0x1c, 0x00, 0x00, 0x00, 0x0c, 0x61, 0x1d, 0xdb, 0x12, 0xc1, 0xf0, 0x09, 0x11, 0x29, 0x01, 0xc9, 0x21, 0xd9, 0x31, 0x51, 0x68, 0xd7, 0xd1, 0xab, 0xd6, 0xc1, 0x74, 0xd8, 0xc0, 0x20, 0x00, 0x42, 0x25, 0xfa, 0x60, 0x44, 0x10, 0xc0, 0x20, 0x00, 0x42, 0x65, 0xfa, 0x31, 0x1a, 0xe6, 0xc0, 0x20, 0x00, 0x22, 0x2d, 0x44, 0x30, 0x22, 0x20, 0xc0, 0x20, 0x00, 0x0c, 0x23, 0x0c, 0x04, 0x2c, 0x75, 0x08, 0x0c, 0x22, 0x6d, 0x44, 0x02, 0x20, 0x26, 0x22, 0xa0, 0x6a, 0xc0, 0x00, 0x00, 0x08, 0x0c, 0x02, 0x20, 0x35, 0xc0, 0x00, 0x00, 0x21, 0x14, 0xe6, 0x31, 0xea, 0xda, 0xc0, 0x20, 0x00, 0x02, 0x2d, 0x44, 0x20, 0x00, 0x20, 0xc0, 0x20, 0x00, 0x02, 0x6d, 0x44, 0xb1, 0xe3, 0xff, 0xa1, 0xe3, 0xff, 0xc0, 0x20, 0x00, 0x61, 0x50, 0xd7, 0x92, 0x26, 0xe8, 0xb0, 0x99, 0x10, 0xa0, 0x99, 0x20, 0xc0, 0x20, 0x00, 0x92, 0x66, 0xe8, 0x81, 0x3a, 0xf1, 0x71, 0x19, 0xe0, 0xc0, 0x20, 0x00, 0x52, 0x26, 0xe6, 0x80, 0x55, 0x10, 0x70, 0x55, 0x20, 0xc0, 0x20, 0x00, 0x52, 0x66, 0xe6, 0x7c, 0xd4, 0xc0, 0x20, 0x00, 0x22, 0x23, 0x9c, 0x40, 0x22, 0x10, 0xc0, 0x20, 0x00, 0x22, 0x63, 0x9c, 0x0c, 0x22, 0x01, 0xd5, 0xda, 0xc0, 0x00, 0x00, 0x08, 0x0c, 0x02, 0x20, 0x28, 0xc0, 0x00, 0x00, 0x0c, 0x22, 0x08, 0x0c, 0x0c, 0x13, 0x02, 0x20, 0x2b, 0x42, 0xa0, 0x81, 0xc0, 0x00, 0x00, 0x31, 0xcc, 0xff, 0xc0, 0x20, 0x00, 0x22, 0x2d, 0x44, 0x30, 0x22, 0x20, 0xc0, 0x20, 0x00, 0x08, 0x0c, 0x02, 0x20, 0x32, 0x22, 0x6d, 0x44, 0xc0, 0x00, 0x00, 0x22, 0xa0, 0x6a, 0x0c, 0x23, 0x08, 0x0c, 0x0c, 0x04, 0x02, 0x20, 0x26, 0x2c, 0x45, 0xc0, 0x00, 0x00, 0x08, 0x0c, 0x02, 0x20, 0x31, 0xc0, 0x00, 0x00, 0x22, 0xa0, 0x6a, 0x0c, 0x23, 0x08, 0x0c, 0x0c, 0x04, 0x02, 0x20, 0x26, 0x2c, 0x55, 0xc0, 0x00, 0x00, 0x08, 0x0c, 0x02, 0x20, 0x2f, 0xc0, 0x00, 0x00, 0x42, 0xa9, 0xff, 0x31, 0x6d, 0xd6, 0xc0, 0x20, 0x00, 0x22, 0x23, 0xd0, 0x40, 0x22, 0x10, 0xc0, 0x20, 0x00, 0x0c, 0x04, 0x0c, 0x45, 0x0c, 0x06, 0x0c, 0x87, 0x08, 0x0c, 0x22, 0x63, 0xd0, 0x22, 0xa0, 0x62, 0x02, 0x20, 0x27, 0x0c, 0x13, 0xc0, 0x00, 0x00, 0x01, 0xf7, 0xda, 0x58, 0x00, 0xb7, 0xf5, 0x07, 0x28, 0x01, 0x45, 0xdd, 0xff, 0xc6, 0x02, 0x00, 0x22, 0x00, 0x4e, 0x80, 0x22, 0x01, 0x20, 0x28, 0x31, 0x85, 0xe3, 0xff, 0x08, 0x0c, 0x02, 0x20, 0x23, 0xc0, 0x00, 0x00, 0x22, 0xa0, 0x6b, 0x0c, 0x23, 0x08, 0x0c, 0x0c, 0x14, 0x02, 0x20, 0x26, 0x4c, 0x85, 0xc0, 0x00, 0x00, 0x08, 0x0c, 0x02, 0x20, 0x22, 0xc0, 0x00, 0x00, 0x22, 0xa0, 0x6c, 0x0c, 0x23, 0x0c, 0x04, 0x0c, 0x05, 0x08, 0x0c, 0x0c, 0x06, 0x02, 0x20, 0x27, 0x0c, 0x17, 0xc0, 0x00, 0x00, 0x22, 0xa0, 0x6c, 0x0c, 0x23, 0x0c, 0x04, 0x0c, 0x25, 0x08, 0x0c, 0x0c, 0x26, 0x02, 0x20, 0x27, 0x0c, 0x17, 0xc0, 0x00, 0x00, 0x08, 0x0c, 0x02, 0x20, 0x13, 0xc0, 0x00, 0x00, 0x22, 0xa0, 0x77, 0x0c, 0x03, 0x1c, 0xa4, 0x0c, 0x45, 0x08, 0x0c, 0x0c, 0x46, 0x02, 0x20, 0x27, 0x0c, 0x07, 0xc0, 0x00, 0x00, 0x22, 0xa0, 0x77, 0x0c, 0x03, 0x1c, 0xa4, 0x0c, 0x55, 0x08, 0x0c, 0x0c, 0x56, 0x02, 0x20, 0x27, 0x0c, 0x07, 0xc0, 0x00, 0x00, 0x22, 0xa0, 0x77, 0x0c, 0x03, 0x1c, 0xa4, 0x0c, 0x45, 0x08, 0x0c, 0x0c, 0x46, 0x02, 0x20, 0x27, 0x0c, 0x17, 0xc0, 0x00, 0x00, 0x22, 0xa0, 0x77, 0x0c, 0x03, 0x1c, 0xa4, 0x0c, 0x55, 0x08, 0x0c, 0x0c, 0x56, 0x02, 0x20, 0x27, 0x0c, 0x17, 0xc0, 0x00, 0x00, 0x0c, 0x02, 0xc8, 0x21, 0xd8, 0x31, 0x08, 0x11, 0x12, 0xc1, 0x10, 0x0d, 0xf0, 0x00, 0x00, 0x1f, 0xfe, 0xff, 0x61, 0xc2, 0xda, 0x1c, 0x8b, 0x92, 0x06, 0x78, 0x71, 0xe5, 0xd6, 0x80, 0x99, 0x01, 0x90, 0x98, 0x31, 0x90, 0x94, 0xc0, 0xbc, 0x22, 0x0c, 0x02, 0x30, 0xa3, 0x11, 0x31, 0xf8, 0xff, 0x70, 0x62, 0xa0, 0xc0, 0x20, 0x00, 0x82, 0x26, 0xc1, 0x30, 0x58, 0x10, 0x90, 0x88, 0xc0, 0x50, 0x5a, 0x20, 0x80, 0x80, 0x74, 0x80, 0x55, 0x20, 0xc0, 0x20, 0x00, 0x52, 0x66, 0xc1, 0x1b, 0x22, 0x20, 0x20, 0x74, 0xb7, 0x92, 0xd9, 0x91, 0xb1, 0xda, 0x42, 0x49, 0x78, 0x0d, 0xf0, 0x58, 0x87, 0xfe, 0x3f, 0x12, 0xc1, 0xd0, 0xd9, 0x71, 0xe9, 0x81, 0xf9, 0x91, 0x29, 0x41, 0xc9, 0x61, 0x09, 0x51, 0x41, 0x05, 0xdd, 0x0c, 0x70, 0xc1, 0x15, 0xd6, 0xc0, 0x20, 0x00, 0x32, 0x2c, 0xd7, 0x40, 0x33, 0x20, 0xc0, 0x20, 0x00, 0x32, 0x6c, 0xd7, 0xc0, 0x20, 0x00, 0x22, 0x2c, 0xd4, 0x20, 0x28, 0x75, 0x27, 0x00, 0x0b, 0xc0, 0x20, 0x00, 0x52, 0x2c, 0xd4, 0x50, 0x58, 0x25, 0x56, 0x35, 0xff, 0x7c, 0xd8, 0xc0, 0x20, 0x00, 0x72, 0x2c, 0xd4, 0x80, 0x77, 0x10, 0xc0, 0x20, 0x00, 0x72, 0x6c, 0xd4, 0x0c, 0x22, 0xc0, 0x20, 0x00, 0x62, 0x2c, 0xd4, 0x20, 0x66, 0x20, 0xc0, 0x20, 0x00, 0x62, 0x6c, 0xd4, 0x01, 0x4f, 0xda, 0xc0, 0x00, 0x00, 0xc0, 0x20, 0x00, 0xa2, 0x2c, 0xd4, 0x0c, 0x79, 0xa0, 0xa8, 0x75, 0xa7, 0x09, 0x0b, 0xc0, 0x20, 0x00, 0xb2, 0x2c, 0xd4, 0xb0, 0xb8, 0x25, 0x56, 0x3b, 0xff, 0xf8, 0x41, 0x0c, 0x0d, 0x5d, 0x01, 0x7c, 0xfe, 0xc0, 0x3d, 0xa0, 0x50, 0x0d, 0x90, 0xc0, 0x20, 0x00, 0x32, 0x23, 0xe0, 0xe0, 0x33, 0x30, 0x30, 0x30, 0xa4, 0x32, 0x50, 0x00, 0x8c, 0x9f, 0x21, 0xd7, 0xff, 0x01, 0x64, 0xd6, 0xc0, 0x00, 0x00, 0x5d, 0x01, 0xd2, 0xcd, 0x01, 0xd0, 0xd0, 0x74, 0x66, 0x8d, 0xd4, 0x10, 0x21, 0x20, 0x05, 0xcb, 0xfa, 0x10, 0x01, 0x20, 0x0c, 0x0d, 0x0c, 0x0e, 0x00, 0x3d, 0x90, 0x32, 0x13, 0x00, 0xea, 0xe3, 0xe0, 0xe0, 0xf4, 0x8c, 0x9f, 0x21, 0xcb, 0xff, 0x01, 0x59, 0xd6, 0xc0, 0x00, 0x00, 0x0d, 0x01, 0x1b, 0xdd, 0xd0, 0xd0, 0x74, 0x66, 0x8d, 0xdf, 0xc0, 0x20, 0x00, 0x02, 0x2c, 0xd4, 0x0c, 0x7f, 0x00, 0x08, 0x75, 0x07, 0x0f, 0x0b, 0xc0, 0x20, 0x00, 0x22, 0x2c, 0xd4, 0x20, 0x28, 0x25, 0x56, 0x32, 0xff, 0x81, 0xb1, 0xea, 0xc0, 0x20, 0x00, 0x72, 0x2c, 0xd7, 0x80, 0x77, 0x10, 0xc0, 0x20, 0x00, 0x72, 0x6c, 0xd7, 0x7c, 0xe6, 0xc0, 0x20, 0x00, 0x52, 0x2c, 0xd8, 0x60, 0x55, 0x10, 0xc0, 0x20, 0x00, 0x52, 0x6c, 0xd8, 0x0c, 0x14, 0xc0, 0x20, 0x00, 0x32, 0x2c, 0xd8, 0x40, 0x33, 0x20, 0xc0, 0x20, 0x00, 0x08, 0x51, 0xd8, 0x71, 0xf8, 0x91, 0x32, 0x6c, 0xd8, 0x8b, 0x2e, 0xc8, 0x61, 0xe8, 0x81, 0x20, 0x24, 0xf4, 0x12, 0xc1, 0x30, 0x0d, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x80, 0x7f, 0x00, 0x00, 0xf0, 0x7f, 0x00, 0x00, 0x00, 0x38, 0x67, 0xc3, 0x04, 0x70, 0x72, 0x11, 0x8c, 0x07, 0x0d, 0xf0, 0x2d, 0x03, 0x0d, 0xf0, 0x00, 0x00, 0x80, 0x76, 0x11, 0x70, 0x33, 0x30, 0xc6, 0x3c, 0x00, 0x00, 0x00, 0x00, 0x61, 0xf6, 0xff, 0x30, 0x72, 0x30, 0x96, 0xa7, 0xfe, 0x67, 0x42, 0xd7, 0x67, 0x43, 0xde, 0x20, 0x77, 0x85, 0x30, 0x87, 0x85, 0x87, 0x37, 0x4c, 0x67, 0x03, 0x28, 0x60, 0x33, 0x20, 0x80, 0x33, 0x11, 0x30, 0x38, 0x41, 0x80, 0xa7, 0xc0, 0xf6, 0xca, 0x29, 0x00, 0x0a, 0x40, 0x0c, 0x09, 0x90, 0x93, 0x81, 0x30, 0x30, 0x91, 0x3a, 0x22, 0x20, 0xa7, 0x85, 0x77, 0x1a, 0x4a, 0x8d, 0x07, 0x46, 0x15, 0x00, 0x00, 0x00, 0x70, 0x33, 0x11, 0x30, 0x39, 0x41, 0x67, 0x02, 0x04, 0x1b, 0x88, 0x46, 0xf4, 0xff, 0x3a, 0x22, 0x0d, 0xf0, 0x00, 0x00, 0x70, 0x22, 0x11, 0x20, 0x29, 0x41, 0x1b, 0x77, 0x46, 0x03, 0x00, 0x00, 0x00, 0x67, 0x02, 0xef, 0x60, 0x22, 0x20, 0x80, 0x22, 0x11, 0x20, 0x28, 0x41, 0x70, 0xa8, 0xc0, 0xf6, 0xca, 0x1c, 0x00, 0x0a, 0x40, 0x00, 0x92, 0xa1, 0x20, 0x20, 0x91, 0x3a, 0x22, 0x20, 0xa7, 0x85, 0x87, 0x9a, 0x0f, 0xd6, 0x69, 0x00, 0x1b, 0x22, 0xf0, 0x99, 0x11, 0xac, 0xc9, 0x0d, 0xf0, 0x2d, 0x03, 0x0d, 0xf0, 0xad, 0x02, 0x20, 0x21, 0x41, 0x1b, 0x88, 0xa0, 0x88, 0x01, 0x8a, 0x22, 0x67, 0x42, 0x08, 0x07, 0x6a, 0x03, 0x1b, 0x22, 0x9c, 0x09, 0x0d, 0xf0, 0x20, 0x27, 0x85, 0x90, 0x22, 0x01, 0xf0, 0x88, 0x11, 0x80, 0x22, 0x20, 0x0d, 0xf0, 0x00, 0x00, 0x20, 0x21, 0x41, 0xf0, 0x22, 0x11, 0x0d, 0xf0, 0x67, 0xc3, 0x05, 0x41, 0x7f, 0xe1, 0x40, 0x22, 0x20, 0x0d, 0xf0, 0x00, 0x80, 0x76, 0x11, 0x70, 0x23, 0x30, 0x0d, 0xf0, 0x80, 0x76, 0x11, 0x70, 0x33, 0x30, 0xc6, 0xc8, 0xff, 0x00, 0x00, 0x00, 0x61, 0xbc, 0xff, 0x30, 0x72, 0x30, 0x96, 0xa7, 0xfe, 0x67, 0x42, 0xd3, 0x67, 0x43, 0xdc, 0x20, 0x77, 0x75, 0x30, 0x87, 0x75, 0x37, 0x32, 0x4b, 0x67, 0x03, 0x2d, 0x60, 0x33, 0x20, 0x80, 0x33, 0x11, 0x30, 0x38, 0x41, 0x80, 0xa7, 0xc0, 0xf6, 0xca, 0x37, 0x00, 0x0a, 0x40, 0x0c, 0x09, 0x90, 0x93, 0x81, 0x30, 0x30, 0x91, 0x30, 0x22, 0xc0, 0x90, 0x90, 0x60, 0x0b, 0xa2, 0x90, 0x2a, 0x93, 0x20, 0xa7, 0x75, 0x77, 0x1a, 0x51, 0xc6, 0x1b, 0x00, 0x37, 0x12, 0x68, 0x70, 0x33, 0x11, 0x30, 0x39, 0x41, 0x67, 0x02, 0xce, 0x1b, 0x88, 0x46, 0xf2, 0xff, 0x00, 0x00, 0x80, 0x76, 0x11, 0x70, 0x23, 0x30, 0x0d, 0xf0, 0x67, 0x02, 0x3c, 0x60, 0x22, 0x20, 0x80, 0x22, 0x11, 0x20, 0x28, 0x41, 0x70, 0xa8, 0xc0, 0xf6, 0xca, 0xe5, 0x00, 0x0a, 0x40, 0x0c, 0x09, 0x90, 0x92, 0x81, 0x20, 0x20, 0x91, 0x80, 0xb6, 0x11, 0xb0, 0x33, 0x30, 0x20, 0x23, 0xc0, 0x90, 0x90, 0x60, 0x0b, 0xa2, 0x90, 0x2a, 0x93, 0x20, 0xa7, 0x75, 0x87, 0x9a, 0x20, 0xd6, 0x69, 0x00, 0x1b, 0x22, 0xf0, 0x99, 0x11, 0xbc, 0xc9, 0x0d, 0xf0, 0x37, 0x12, 0x0d, 0x70, 0x22, 0x11, 0x20, 0x29, 0x41, 0x67, 0x03, 0xbf, 0x1b, 0x77, 0x86, 0xee, 0xff, 0x0c, 0x02, 0x0d, 0xf0, 0x70, 0x82, 0x11, 0xac, 0x88, 0x60, 0xf8, 0x40, 0x80, 0x89, 0x41, 0xa7, 0xa6, 0x2e, 0x1b, 0x66, 0x00, 0x16, 0x40, 0x90, 0x88, 0x81, 0x00, 0x99, 0xa1, 0x20, 0x27, 0x85, 0x60, 0x22, 0xc0, 0x90, 0x22, 0x01, 0x8a, 0x22, 0xc6, 0xed, 0xff, 0x20, 0x21, 0x41, 0xf0, 0x22, 0x11, 0x0d, 0xf0, 0x16, 0x99, 0xfc, 0xb2, 0xca, 0xe8, 0x1c, 0x86, 0xb0, 0x6a, 0xa3, 0x86, 0xf4, 0xff, 0x6d, 0x0a, 0x46, 0xf3, 0xff, 0x00, 0xf0, 0x22, 0x11, 0x20, 0x21, 0x41, 0xac, 0xe2, 0xa0, 0xf2, 0x40, 0xa2, 0xca, 0xf8, 0x00, 0x1a, 0x40, 0x00, 0x22, 0xa1, 0x0c, 0x18, 0xa0, 0x88, 0xc0, 0xc6, 0x1e, 0x00, 0xf0, 0x33, 0x11, 0x30, 0x31, 0x41, 0x9c, 0x23, 0xa0, 0xf3, 0x40, 0xa2, 0xca, 0xf8, 0x00, 0x1a, 0x40, 0x00, 0x33, 0xa1, 0x0c, 0x19, 0xa0, 0x99, 0xc0, 0x86, 0x18, 0x00, 0x70, 0x2f, 0x05, 0x10, 0x22, 0x01, 0x06, 0x34, 0x00, 0xf0, 0x83, 0x11, 0xcc, 0x88, 0x41, 0x27, 0xe1, 0x40, 0x22, 0x20, 0x86, 0x30, 0x00, 0x00, 0x67, 0xc3, 0x06, 0x70, 0x83, 0x11, 0x8c, 0x08, 0x2d, 0x03, 0x70, 0x7f, 0x05, 0xf0, 0x22, 0x11, 0x00, 0x41, 0x40, 0x20, 0x27, 0x81, 0x06, 0x2a, 0x00, 0xf0, 0x82, 0x11, 0x56, 0x88, 0xfe, 0x71, 0x1d, 0xe1, 0x70, 0x23, 0x20, 0x46, 0x26, 0x00, 0x12, 0xc1, 0xe0, 0xc9, 0x41, 0xd9, 0x51, 0xe9, 0x61, 0xf9, 0x71, 0x61, 0x5c, 0xff, 0x30, 0x72, 0x30, 0x67, 0x42, 0xb4, 0x67, 0x43, 0xd9, 0x20, 0x87, 0x75, 0x30, 0x97, 0x75, 0x16, 0x78, 0xf6, 0x16, 0x09, 0xf8, 0x9a, 0x88, 0xa1, 0xad, 0xde, 0x60, 0x22, 0x20, 0xa0, 0x22, 0x10, 0x60, 0x33, 0x20, 0xa0, 0x33, 0x10, 0x20, 0x40, 0xf5, 0x30, 0x50, 0xf5, 0x50, 0x62, 0xc1, 0x30, 0xb4, 0xc1, 0x0c, 0x09, 0xba, 0x66, 0xb7, 0xb6, 0x01, 0x1b, 0x99, 0x10, 0x40, 0x40, 0x60, 0x99, 0x81, 0x30, 0xb2, 0xc1, 0x00, 0x66, 0xa1, 0xba, 0x66, 0xb7, 0xb6, 0x01, 0x1b, 0x99, 0x50, 0x24, 0xc1, 0x9a, 0x22, 0x0c, 0x94, 0x20, 0x5f, 0x41, 0x8c, 0x25, 0x0b, 0x44, 0x1b, 0x88, 0x00, 0x14, 0x40, 0x60, 0x22, 0x81, 0x00, 0x66, 0xa1, 0x42, 0xa0, 0x80, 0x40, 0x88, 0xc0, 0x42, 0xa0, 0xfe, 0x47, 0xb8, 0x2f, 0xd6, 0x76, 0x00, 0x1b, 0x22, 0xf0, 0x66, 0x11, 0x16, 0xb6, 0x01, 0x90, 0x88, 0x01, 0x8a, 0x22, 0x70, 0x7f, 0x05, 0x10, 0x77, 0x01, 0x70, 0x22, 0x20, 0xc8, 0x41, 0xd8, 0x51, 0xe8, 0x61, 0xf8, 0x71, 0x12, 0xc1, 0x20, 0x0d, 0xf0, 0x00, 0x20, 0x21, 0x41, 0xf0, 0x22, 0x11, 0x86, 0xf6, 0xff, 0x96, 0x88, 0x00, 0x82, 0xa0, 0xff, 0x90, 0x28, 0x01, 0xc6, 0xf4, 0xff, 0x80, 0x80, 0x60, 0x9d, 0x06, 0x00, 0x08, 0x40, 0xf6, 0xc8, 0x13, 0x00, 0x62, 0xa1, 0x20, 0x20, 0x91, 0x0c, 0x08, 0x16, 0xd9, 0xfa, 0x0c, 0x19, 0x90, 0x66, 0x20, 0x46, 0xe9, 0xff, 0x00, 0x70, 0x2f, 0x05, 0x10, 0x22, 0x01, 0x06, 0xed, 0xff, 0x00, 0x00, 0x00, 0xf0, 0x33, 0x11, 0x30, 0x31, 0x41, 0x9c, 0x33, 0xa0, 0xf3, 0x40, 0xa2, 0xca, 0xf8, 0x00, 0x1a, 0x40, 0x00, 0x33, 0xa1, 0x0c, 0x19, 0xa0, 0x99, 0xc0, 0x06, 0x1d, 0x00, 0x00, 0xf0, 0x42, 0x11, 0x40, 0x41, 0x41, 0x70, 0x2f, 0x05, 0x10, 0x22, 0x01, 0x60, 0x22, 0x20, 0xcc, 0x44, 0x41, 0xd5, 0xe0, 0x40, 0x22, 0x20, 0x0d, 0xf0, 0x00, 0x00, 0xf0, 0x22, 0x11, 0x20, 0x21, 0x41, 0x9c, 0x22, 0xa0, 0xf2, 0x40, 0xa2, 0xca, 0xf8, 0x00, 0x1a, 0x40, 0x00, 0x22, 0xa1, 0x0c, 0x18, 0xa0, 0x88, 0xc0, 0xc6, 0x0f, 0x00, 0x70, 0x2f, 0x05, 0x10, 0x22, 0x01, 0x0d, 0xf0, 0x30, 0x7f, 0x05, 0x10, 0x77, 0x01, 0x70, 0x22, 0x30, 0x67, 0xc3, 0x05, 0x41, 0xc7, 0xe0, 0x40, 0x22, 0x20, 0x0d, 0xf0, 0x70, 0x83, 0x11, 0x16, 0xd8, 0xfd, 0x2d, 0x03, 0x0d, 0xf0, 0x00, 0x00, 0x61, 0x06, 0xff, 0x30, 0x72, 0x30, 0x67, 0x42, 0xd6, 0x67, 0x43, 0xe7, 0x20, 0x87, 0x75, 0x30, 0x97, 0x75, 0x16, 0xe9, 0xf6, 0x16, 0x38, 0xfa, 0x90, 0x88, 0xc0, 0xa1, 0x57, 0xde, 0x60, 0x22, 0x20, 0xa0, 0x22, 0x10, 0x60, 0x33, 0x20, 0xa0, 0x33, 0x10, 0x27, 0x33, 0x04, 0xf0, 0x22, 0x11, 0x0b, 0x88, 0x30, 0x22, 0xc0, 0xf0, 0x22, 0x11, 0x0c, 0x1a, 0x92, 0xa0, 0x17, 0xf0, 0xaa, 0x11, 0x37, 0x32, 0x04, 0x1b, 0xaa, 0x30, 0x22, 0xc0, 0xf0, 0x22, 0x11, 0x0b, 0x99, 0x56, 0xc9, 0xfe, 0x82, 0xc8, 0x7e, 0x42, 0xa0, 0xfe, 0x47, 0xb8, 0x17, 0x37, 0x32, 0x04, 0x1b, 0xaa, 0x37, 0x12, 0x1a, 0x90, 0x88, 0x01, 0x8a, 0x2a, 0x70, 0x7f, 0x05, 0x10, 0x77, 0x01, 0x70, 0x22, 0x20, 0x0d, 0xf0, 0x96, 0x08, 0x01, 0x1b, 0x84, 0x90, 0x28, 0x01, 0x46, 0xfa, 0xff, 0xa0, 0xa1, 0x41, 0xf0, 0xaa, 0x11, 0xc6, 0xf6, 0xff, 0x80, 0x80, 0x60, 0x00, 0x08, 0x40, 0xf6, 0xc8, 0x22, 0x00, 0x6a, 0xa1, 0xa0, 0xa0, 0x91, 0x0c, 0x08, 0x8c, 0x32, 0x0c, 0x19, 0x90, 0x66, 0x20, 0xd6, 0x06, 0xfc, 0x1b, 0xaa, 0xf0, 0x66, 0x11, 0x56, 0x86, 0xfb, 0xa0, 0xa1, 0x41, 0xf0, 0xaa, 0x11, 0xc6, 0xeb, 0xff, 0x70, 0x2f, 0x05, 0x10, 0x22, 0x01, 0x0d, 0xf0, 0x00, 0x00, 0x00, 0x61, 0xd7, 0xfe, 0x67, 0x42, 0x22, 0x20, 0x47, 0x75, 0x42, 0xc4, 0x82, 0xe6, 0xc4, 0x20, 0xa6, 0x14, 0x29, 0x60, 0x72, 0x20, 0x80, 0x57, 0x11, 0x00, 0x14, 0x40, 0x50, 0x50, 0x91, 0x50, 0x20, 0x60, 0x70, 0x25, 0xb3, 0x0d, 0xf0, 0x00, 0x00, 0x00, 0x70, 0x42, 0x11, 0x8c, 0x04, 0x0c, 0x02, 0x80, 0x46, 0x11, 0x0b, 0x54, 0x20, 0x45, 0xb3, 0x2d, 0x04, 0x0d, 0xf0, 0x0c, 0x02, 0x0d, 0xf0, 0x61, 0xc7, 0xfe, 0x67, 0x42, 0x25, 0x20, 0x47, 0x75, 0x42, 0xc4, 0x81, 0xe6, 0xc4, 0x25, 0x96, 0xe4, 0x02, 0x60, 0x72, 0x20, 0x80, 0x57, 0x11, 0x1b, 0x44, 0x26, 0xc4, 0x27, 0x00, 0x14, 0x40, 0x50, 0x50, 0x91, 0x50, 0x20, 0x60, 0x70, 0x25, 0xb3, 0x0d, 0xf0, 0x00, 0x70, 0x42, 0x11, 0x8c, 0x24, 0x7c, 0xf2, 0x0d, 0xf0, 0x80, 0x46, 0x11, 0x7c, 0xf5, 0x20, 0x45, 0xb3, 0x2d, 0x04, 0x0d, 0xf0, 0x0c, 0x02, 0x0d, 0xf0, 0x96, 0x32, 0x00, 0x2d, 0x05, 0x0d, 0xf0, 0x80, 0x26, 0x11, 0x0d, 0xf0, 0x00, 0x00, 0x00, 0xf0, 0x33, 0x11, 0x30, 0x31, 0x41, 0x20, 0xa3, 0x20, 0x16, 0x4a, 0x08, 0x9c, 0x53, 0xa0, 0xf3, 0x40, 0xa2, 0xca, 0xf5, 0x00, 0x1a, 0x40, 0x20, 0x33, 0x81, 0x00, 0x22, 0xa1, 0x0c, 0x18, 0xa0, 0x88, 0xc0, 0x86, 0x36, 0x00, 0xa0, 0xf2, 0x40, 0xa2, 0xca, 0xf5, 0x6c, 0x18, 0xa0, 0x88, 0xc0, 0x00, 0x1a, 0x40, 0x96, 0x9a, 0x00, 0x00, 0x32, 0xa1, 0x0c, 0x02, 0x46, 0x30, 0x00, 0x00, 0x00, 0x20, 0x30, 0x91, 0x00, 0x22, 0xa1, 0x86, 0x2d, 0x00, 0xf0, 0x55, 0x11, 0x50, 0x51, 0x41, 0x40, 0xa5, 0x20, 0xbc, 0xba, 0x9c, 0x55, 0xa0, 0xf5, 0x40, 0xa2, 0xca, 0xf5, 0x00, 0x1a, 0x40, 0x40, 0x55, 0x81, 0x00, 0x44, 0xa1, 0x0c, 0x19, 0xa0, 0x99, 0xc0, 0x46, 0x25, 0x00, 0xa0, 0xf4, 0x40, 0xa2, 0xca, 0xf5, 0x6c, 0x19, 0xa0, 0x99, 0xc0, 0x00, 0x1a, 0x40, 0x96, 0x9a, 0x00, 0x00, 0x54, 0xa1, 0x0c, 0x04, 0x06, 0x1f, 0x00, 0x00, 0x00, 0x40, 0x50, 0x91, 0x00, 0x44, 0xa1, 0x46, 0x1c, 0x00, 0x70, 0x3f, 0x05, 0x10, 0x33, 0x01, 0x0c, 0x02, 0x46, 0x64, 0x00, 0xcc, 0xd4, 0xf0, 0x85, 0x11, 0xcc, 0x88, 0x41, 0x06, 0xd5, 0x40, 0x33, 0x20, 0x46, 0x60, 0x00, 0x00, 0x67, 0xc5, 0x0b, 0x40, 0x85, 0x11, 0x40, 0x88, 0x20, 0x8c, 0x28, 0x3d, 0x05, 0x2d, 0x04, 0x70, 0x7f, 0x05, 0xf0, 0x33, 0x11, 0x00, 0x41, 0x40, 0x30, 0x37, 0x81, 0x86, 0x58, 0x00, 0x00, 0x56, 0x82, 0xfe, 0xf0, 0x83, 0x11, 0x56, 0x28, 0xfe, 0x71, 0xf9, 0xd4, 0x70, 0x35, 0x20, 0xc6, 0x53, 0x00, 0x00, 0x00, 0x12, 0xc1, 0xe0, 0xc9, 0x41, 0xd9, 0x51, 0xe9, 0x61, 0xf9, 0x71, 0x61, 0x78, 0xfe, 0x50, 0x73, 0x30, 0x67, 0x43, 0xa7, 0x67, 0x45, 0xd4, 0x30, 0x84, 0xa5, 0x50, 0x94, 0xa5, 0x16, 0xf8, 0xef, 0x16, 0x59, 0xf4, 0x9a, 0x88, 0xa1, 0xff, 0xf6, 0x60, 0x33, 0x20, 0xa0, 0x33, 0x10, 0x60, 0x55, 0x20, 0xa0, 0x55, 0x10, 0x79, 0x11, 0x20, 0xc0, 0xf5, 0x40, 0xd0, 0xf5, 0x30, 0xe0, 0xf5, 0x50, 0xf0, 0xf5, 0xd0, 0xa2, 0xc1, 0x40, 0xbc, 0xc1, 0x0c, 0x09, 0xba, 0xaa, 0xb7, 0xba, 0x01, 0x1b, 0x99, 0x10, 0x40, 0x40, 0xa0, 0x69, 0x81, 0x40, 0xb2, 0xc1, 0x00, 0xaa, 0xa1, 0xba, 0xaa, 0xb7, 0xba, 0x02, 0x62, 0xc6, 0x01, 0x0c, 0x09, 0x50, 0xb2, 0xc1, 0xba, 0x66, 0xb7, 0xb6, 0x01, 0x1b, 0x99, 0xd0, 0xbc, 0xc1, 0xb0, 0x66, 0x80, 0xb7, 0xb6, 0x01, 0x1b, 0x99, 0x40, 0xb3, 0xc1, 0xba, 0x66, 0xb7, 0xb6, 0x01, 0x1b, 0x99, 0x8c, 0x3a, 0x0c, 0x1b, 0xb0, 0x66, 0x20, 0xf0, 0x72, 0xc1, 0x40, 0xbe, 0xc1, 0x0c, 0x0a, 0x7a, 0xbb, 0x77, 0xbb, 0x02, 0xa2, 0xca, 0x01, 0x50, 0x7c, 0xc1, 0x70, 0xbb, 0x80, 0x77, 0xbb, 0x02, 0xa2, 0xca, 0x01, 0xd0, 0x73, 0xc1, 0x70, 0xbb, 0x80, 0x77, 0xbb, 0x02, 0xa2, 0xca, 0x01, 0xb0, 0xaa, 0x81, 0x9a, 0xaa, 0x00, 0xbb, 0xa1, 0xba, 0x66, 0xb7, 0xb6, 0x02, 0xa2, 0xca, 0x01, 0x0c, 0x09, 0xf0, 0x2c, 0xc1, 0xaa, 0x22, 0xa7, 0xb2, 0x01, 0x1b, 0x99, 0x50, 0xa3, 0xc1, 0xa0, 0x22, 0x80, 0xa7, 0xb2, 0x02, 0x92, 0xc9, 0x01, 0xd0, 0xae, 0xc1, 0xaa, 0x22, 0xa7, 0xb2, 0x02, 0x92, 0xc9, 0x01, 0xf0, 0xb3, 0xc1, 0x50, 0x7e, 0xc1, 0x0c, 0x0a, 0x70, 0xbb, 0x80, 0x77, 0xbb, 0x02, 0xa2, 0xca, 0x01, 0xb0, 0xaa, 0x81, 0x9a, 0xaa, 0x00, 0xbb, 0xa1, 0xba, 0x22, 0xb7, 0xb2, 0x01, 0x1b, 0xaa, 0xf0, 0x3e, 0xc1, 0xaa, 0x33, 0x78, 0x11, 0x0c, 0xb4, 0x30, 0x59, 0x41, 0xcc, 0x45, 0x42, 0xc4, 0x01, 0x82, 0xc8, 0xff, 0x00, 0x14, 0x40, 0x20, 0x33, 0x81, 0x60, 0x22, 0x81, 0x00, 0x66, 0xa1, 0x42, 0xa3, 0xff, 0x40, 0x88, 0xc0, 0xf0, 0x44, 0x11, 0x47, 0xb8, 0x37, 0xd6, 0x86, 0x00, 0x1b, 0x22, 0xac, 0x82, 0xf0, 0x66, 0x11, 0x9c, 0xa6, 0xc0, 0x88, 0x01, 0x8a, 0x33, 0x70, 0x7f, 0x05, 0x10, 0x77, 0x01, 0x70, 0x33, 0x20, 0xc8, 0x41, 0xd8, 0x51, 0xe8, 0x61, 0xf8, 0x71, 0x12, 0xc1, 0x20, 0x0d, 0xf0, 0x00, 0x20, 0x21, 0x41, 0xf0, 0x22, 0x11, 0x86, 0xf6, 0xff, 0x1b, 0x33, 0x46, 0xf5, 0xff, 0x00, 0x00, 0x96, 0x98, 0x00, 0x1b, 0x84, 0xc0, 0x38, 0x01, 0x0c, 0x02, 0xc6, 0xf2, 0xff, 0x80, 0x80, 0x60, 0x9d, 0x06, 0x00, 0x08, 0x40, 0xf6, 0xc8, 0x0b, 0x00, 0x62, 0xa1, 0x20, 0x23, 0x81, 0x30, 0x30, 0x91, 0x06, 0x04, 0x00, 0xf6, 0xd8, 0x1c, 0x00, 0xa2, 0xa1, 0x20, 0x63, 0x81, 0x30, 0x20, 0x91, 0x0c, 0x03, 0xa0, 0x99, 0x20, 0x0c, 0x08, 0x16, 0xd9, 0xf8, 0x0c, 0x19, 0x90, 0x66, 0x20, 0x46, 0xe1, 0xff, 0x00, 0x00, 0x70, 0x3f, 0x05, 0x10, 0x33, 0x01, 0x0c, 0x02, 0x86, 0xe4, 0xff, 0x00, 0xf0, 0x55, 0x11, 0x50, 0x51, 0x41, 0x40, 0xa5, 0x20, 0xbc, 0xba, 0x9c, 0x55, 0xa0, 0xf5, 0x40, 0xa2, 0xca, 0xf5, 0x00, 0x1a, 0x40, 0x40, 0x55, 0x81, 0x00, 0x44, 0xa1, 0x0c, 0x19, 0xa0, 0x99, 0xc0, 0x06, 0x36, 0x00, 0xa0, 0xf4, 0x40, 0xa2, 0xca, 0xf5, 0x6c, 0x19, 0xa0, 0x99, 0xc0, 0x00, 0x1a, 0x40, 0x96, 0x7a, 0x00, 0x00, 0x54, 0xa1, 0x0c, 0x04, 0xc6, 0x2f, 0x00, 0x40, 0x50, 0x91, 0x00, 0x44, 0xa1, 0x86, 0x2d, 0x00, 0x00, 0x00, 0xf0, 0x33, 0x11, 0x30, 0x31, 0x41, 0x30, 0x22, 0x20, 0x70, 0x3f, 0x05, 0x10, 0x33, 0x01, 0x60, 0x33, 0x20, 0xcc, 0x42, 0x41, 0x71, 0xd4, 0x40, 0x33, 0x20, 0x0c, 0x02, 0x0d, 0xf0, 0x00, 0x00, 0xf0, 0x33, 0x11, 0x30, 0x31, 0x41, 0x20, 0xa3, 0x20, 0xbc, 0xba, 0x9c, 0x53, 0xa0, 0xf3, 0x40, 0xa2, 0xca, 0xf5, 0x00, 0x1a, 0x40, 0x20, 0x33, 0x81, 0x00, 0x22, 0xa1, 0x0c, 0x18, 0xa0, 0x88, 0xc0, 0xc6, 0x1c, 0x00, 0xa0, 0xf2, 0x40, 0xa2, 0xca, 0xf5, 0x6c, 0x18, 0xa0, 0x88, 0xc0, 0x00, 0x1a, 0x40, 0x96, 0x7a, 0x00, 0x00, 0x32, 0xa1, 0x0c, 0x02, 0x86, 0x16, 0x00, 0x20, 0x30, 0x91, 0x00, 0x22, 0xa1, 0x46, 0x14, 0x00, 0x00, 0x00, 0x70, 0x3f, 0x05, 0x10, 0x33, 0x01, 0x0c, 0x02, 0x0d, 0xf0, 0x00, 0x00, 0x50, 0x7f, 0x05, 0x10, 0x77, 0x01, 0x70, 0x33, 0x30, 0x67, 0xc5, 0x05, 0x41, 0x56, 0xd4, 0x40, 0x33, 0x20, 0x0d, 0xf0, 0x40, 0x85, 0x11, 0x40, 0x88, 0x20, 0x16, 0x68, 0xfd, 0x3d, 0x05, 0x2d, 0x04, 0x0d, 0xf0, 0x00, 0x47, 0x32, 0x37, 0x46, 0x0f, 0x00, 0x00, 0x00, 0x61, 0xd2, 0xfd, 0x50, 0x73, 0x30, 0x67, 0x43, 0xca, 0x67, 0x45, 0xdb, 0x30, 0x84, 0xa5, 0x50, 0x94, 0xa5, 0x16, 0x29, 0xf0, 0x16, 0x78, 0xf6, 0x90, 0x88, 0xc0, 0xa1, 0x59, 0xf6, 0x60, 0x33, 0x20, 0xa0, 0x33, 0x10, 0x60, 0x55, 0x20, 0xa0, 0x55, 0x10, 0x10, 0x4f, 0x40, 0x37, 0x35, 0x0b, 0x37, 0x15, 0xc4, 0x20, 0x33, 0x81, 0x00, 0x22, 0xa1, 0x82, 0xc8, 0xff, 0x50, 0x33, 0xc0, 0x47, 0xb2, 0x02, 0x32, 0xc3, 0xff, 0x40, 0x22, 0xc0, 0x20, 0x33, 0x81, 0x00, 0x22, 0xa1, 0x0c, 0x0a, 0x0c, 0x1b, 0x3c, 0x49, 0xb0, 0xaa, 0x81, 0x00, 0xbb, 0xa1, 0x57, 0x33, 0x0f, 0x57, 0x13, 0x3f, 0x1b, 0xbb, 0x50, 0x33, 0xc0, 0x47, 0xb2, 0x01, 0x0b, 0x33, 0x40, 0x22, 0xc0, 0x20, 0x33, 0x81, 0x00, 0x22, 0xa1, 0x0b, 0x99, 0x56, 0xb9, 0xfd, 0x92, 0xa3, 0xfe, 0x9a, 0x88, 0x92, 0xd9, 0x04, 0x97, 0xb8, 0x38, 0x57, 0x33, 0x07, 0x57, 0x13, 0x1e, 0x1b, 0xbb, 0x16, 0x5b, 0x08, 0x2d, 0x0b, 0xc0, 0x88, 0x01, 0x8a, 0x3a, 0x70, 0x7f, 0x05, 0x10, 0x77, 0x01, 0x70, 0x33, 0x20, 0x0d, 0xf0, 0x47, 0xb2, 0xbc, 0x86, 0xf1, 0xff, 0x00, 0x00, 0x47, 0x32, 0xe2, 0x47, 0x92, 0xda, 0x1b, 0xbb, 0x16, 0x0b, 0x06, 0xb0, 0xb1, 0x41, 0xf0, 0xbb, 0x11, 0x46, 0xf4, 0xff, 0x96, 0x98, 0x00, 0x1b, 0x89, 0xc0, 0x38, 0x01, 0x0c, 0x02, 0xc6, 0xf2, 0xff, 0x80, 0x80, 0x60, 0x00, 0x08, 0x40, 0xf6, 0xc8, 0x0d, 0x00, 0x6b, 0xa1, 0xb0, 0xba, 0x81, 0xa0, 0xa0, 0x91, 0x86, 0x04, 0x00, 0x00, 0x00, 0xf6, 0xd8, 0x35, 0x00, 0x9b, 0xa1, 0xb0, 0x6a, 0x81, 0xa0, 0xb0, 0x91, 0x0c, 0x0a, 0x90, 0x22, 0x20, 0x0c, 0x08, 0x20, 0x33, 0x20, 0x8c, 0x33, 0x0c, 0x19, 0x90, 0x66, 0x20, 0xd6, 0xd6, 0xf8, 0x1b, 0xbb, 0x8c, 0xeb, 0xf0, 0x66, 0x11, 0x56, 0x36, 0xf8, 0xb0, 0xb1, 0x41, 0xf0, 0xbb, 0x11, 0x86, 0xde, 0xff, 0x00, 0x1b, 0xaa, 0x06, 0xdd, 0xff, 0x70, 0x3f, 0x05, 0x10, 0x33, 0x01, 0x0c, 0x02, 0x0d, 0xf0, 0x00, 0x61, 0x89, 0xfd, 0x67, 0x43, 0x25, 0x30, 0x44, 0xa5, 0x60, 0x53, 0x95, 0x50, 0x44, 0xc0, 0xe6, 0xc4, 0x25, 0xa6, 0x14, 0x2e, 0x60, 0x73, 0x20, 0x10, 0x45, 0x40, 0x20, 0x57, 0x81, 0x00, 0x14, 0x40, 0x50, 0x50, 0x91, 0x50, 0x20, 0x60, 0x70, 0x25, 0xb3, 0x0d, 0xf0, 0x40, 0x43, 0x11, 0x20, 0x44, 0x20, 0x16, 0x24, 0x00, 0x32, 0xa0, 0x00, 0x50, 0x46, 0x11, 0x0b, 0x54, 0x30, 0x45, 0xb3, 0x2d, 0x04, 0x0d, 0xf0, 0x0c, 0x02, 0x0d, 0xf0, 0x41, 0x78, 0xfd, 0x40, 0x53, 0xc0, 0x50, 0x63, 0x30, 0x96, 0x36, 0x05, 0x50, 0x64, 0xa5, 0x16, 0xd6, 0x04, 0x42, 0xa0, 0xff, 0x47, 0xa6, 0x27, 0x10, 0x4d, 0x40, 0x20, 0x55, 0x81, 0x00, 0x42, 0xa1, 0x30, 0x6f, 0x05, 0x10, 0x66, 0x01, 0x50, 0x26, 0x20, 0xd6, 0x64, 0x00, 0x1b, 0x22, 0xf0, 0x44, 0x11, 0x8c, 0x24, 0x0d, 0xf0, 0x00, 0x00, 0x20, 0x21, 0x41, 0xf0, 0x22, 0x11, 0x0d, 0xf0, 0x41, 0x67, 0xfd, 0x47, 0xc3, 0x0a, 0x40, 0x53, 0x11, 0x20, 0x55, 0x20, 0x8c, 0x15, 0x40, 0x41, 0x41, 0xc0, 0x44, 0x11, 0x30, 0x6f, 0x05, 0x00, 0x41, 0x40, 0x40, 0x26, 0x81, 0x0d, 0xf0, 0x00, 0x30, 0x64, 0xa5, 0x52, 0xa3, 0x80, 0x60, 0x65, 0xc0, 0x1b, 0x66, 0xf6, 0xc6, 0x29, 0x30, 0x55, 0x11, 0x30, 0x55, 0x20, 0x50, 0x55, 0x11, 0x50, 0x5b, 0x41, 0x10, 0x4d, 0x40, 0x20, 0x55, 0x81, 0x00, 0x42, 0xa1, 0x00, 0x06, 0x40, 0x00, 0x74, 0xa1, 0x40, 0x45, 0x81, 0x50, 0x50, 0x91, 0x16, 0xe7, 0xf8, 0x60, 0x44, 0x20, 0x06, 0xe2, 0xff, 0x30, 0x2f, 0x05, 0x10, 0x22, 0x01, 0x0d, 0xf0, 0x12, 0xc1, 0xd0, 0x22, 0x61, 0x00, 0x52, 0x61, 0x03, 0x42, 0x61, 0x02, 0x09, 0x61, 0x39, 0x11, 0xc9, 0x71, 0xd9, 0x81, 0xcd, 0x02, 0xdd, 0x04, 0x3d, 0x04, 0x05, 0xc8, 0x00, 0x48, 0x31, 0x08, 0x11, 0xc0, 0x44, 0x82, 0xd0, 0x00, 0x82, 0xc8, 0x71, 0xd8, 0x81, 0x4a, 0x00, 0x0a, 0x33, 0x08, 0x61, 0x12, 0xc1, 0x30, 0x0d, 0xf0, 0x00, 0x00, 0x8d, 0x04, 0x7d, 0x05, 0x62, 0xa0, 0xf0, 0x60, 0x11, 0xc0, 0x39, 0x11, 0x29, 0x01, 0x59, 0x31, 0x49, 0x21, 0xd2, 0x61, 0x2b, 0x02, 0x61, 0x29, 0xc2, 0x61, 0x2a, 0x0d, 0x02, 0xcd, 0x03, 0x96, 0x53, 0x19, 0x0c, 0x0d, 0xc9, 0x51, 0x9d, 0x00, 0x28, 0x31, 0x99, 0x41, 0xd6, 0x02, 0x01, 0x40, 0x80, 0x60, 0x72, 0xaf, 0xff, 0x70, 0xdd, 0x30, 0x70, 0x75, 0x30, 0x1b, 0x37, 0x40, 0x73, 0x83, 0x79, 0x71, 0x89, 0x61, 0x5d, 0x00, 0x3d, 0x08, 0x0d, 0x08, 0x16, 0xa7, 0x17, 0x77, 0xbc, 0x27, 0x0c, 0x0c, 0x0c, 0x00, 0x3d, 0x00, 0x16, 0xed, 0x43, 0xd2, 0x21, 0x2b, 0x42, 0xa0, 0xf0, 0xc0, 0x20, 0x60, 0x7c, 0xf9, 0x90, 0x30, 0x30, 0x1b, 0x83, 0xc0, 0x38, 0x83, 0x02, 0x21, 0x29, 0xc2, 0x21, 0x2a, 0x4a, 0x11, 0x0d, 0xf0, 0x00, 0x00, 0x82, 0x61, 0x26, 0xa0, 0xf7, 0x40, 0xa2, 0x61, 0x27, 0xcc, 0xca, 0xc7, 0x37, 0x05, 0x87, 0xb5, 0x02, 0x46, 0x07, 0x01, 0x0c, 0x1c, 0x06, 0xf0, 0xff, 0x52, 0x61, 0x14, 0x32, 0x21, 0x26, 0x52, 0x21, 0x27, 0x2c, 0x06, 0x50, 0x66, 0xc0, 0x00, 0x06, 0x40, 0x62, 0x61, 0x1e, 0xc0, 0x20, 0x91, 0x00, 0x15, 0x40, 0x22, 0x61, 0x1f, 0x30, 0x37, 0x81, 0x32, 0x61, 0x24, 0x30, 0x30, 0xf5, 0x32, 0x61, 0x25, 0xc5, 0xa5, 0x00, 0x02, 0x21, 0x14, 0x32, 0x21, 0x1e, 0x22, 0x61, 0x23, 0x42, 0x21, 0x27, 0x22, 0x61, 0x35, 0x00, 0x14, 0x40, 0x22, 0x21, 0x1f, 0x00, 0xcc, 0xa1, 0x00, 0x03, 0x40, 0x00, 0x00, 0x91, 0x32, 0x21, 0x25, 0x00, 0xcc, 0x20, 0xc2, 0x61, 0x20, 0xc0, 0xc0, 0xf5, 0x05, 0xb4, 0x00, 0x00, 0x42, 0x11, 0x02, 0x21, 0x35, 0x22, 0x21, 0x24, 0x40, 0x4c, 0x20, 0xcd, 0x04, 0x20, 0x20, 0xf4, 0x22, 0x61, 0x21, 0x00, 0x22, 0x82, 0x27, 0xb4, 0x1a, 0x0b, 0x60, 0x52, 0x21, 0x24, 0x62, 0x61, 0x23, 0x4a, 0xc5, 0x57, 0x3c, 0x0d, 0x27, 0xbc, 0x0a, 0x82, 0xc0, 0xfe, 0x72, 0x21, 0x24, 0x82, 0x61, 0x23, 0xca, 0xc7, 0x32, 0x21, 0x25, 0x20, 0xcc, 0xc0, 0x2d, 0x0c, 0x05, 0x9f, 0x00, 0x32, 0x21, 0x25, 0x22, 0x61, 0x37, 0x22, 0x61, 0x36, 0x92, 0x21, 0x20, 0x2d, 0x0c, 0x90, 0x90, 0xf4, 0x92, 0x61, 0x22, 0x85, 0xae, 0x00, 0x02, 0x21, 0x37, 0x52, 0x21, 0x36, 0x00, 0xa2, 0x11, 0x92, 0x21, 0x22, 0x22, 0x21, 0x21, 0xa0, 0x99, 0x20, 0x4d, 0x09, 0x50, 0x22, 0x82, 0x27, 0xb9, 0x13, 0xb2, 0x21, 0x24, 0x0b, 0x05, 0x90, 0x4b, 0x80, 0xb7, 0x34, 0x08, 0x27, 0xb4, 0x05, 0x40, 0x4b, 0x80, 0x02, 0xc5, 0xfe, 0x32, 0x21, 0x26, 0x52, 0x21, 0x27, 0x20, 0x44, 0xc0, 0x42, 0x61, 0x38, 0x22, 0x21, 0x23, 0x00, 0x15, 0x40, 0x00, 0x33, 0xa1, 0x00, 0x22, 0x11, 0x20, 0x20, 0x20, 0x22, 0x61, 0x1b, 0xcd, 0x02, 0x45, 0xad, 0x00, 0x02, 0x21, 0x38, 0x37, 0x30, 0x17, 0x30, 0x40, 0xc0, 0x56, 0x34, 0xeb, 0x62, 0x21, 0x27, 0x52, 0x21, 0x14, 0x00, 0x16, 0x40, 0x00, 0x55, 0xa1, 0x27, 0x35, 0x02, 0x46, 0xa8, 0xff, 0xc2, 0x21, 0x1b, 0x0b, 0xcc, 0x46, 0xa6, 0xff, 0x7c, 0xfd, 0xd0, 0xc3, 0x30, 0x1b, 0x0c, 0x20, 0xc0, 0x83, 0x20, 0x00, 0x60, 0xc6, 0x96, 0xff, 0x92, 0x61, 0x15, 0x87, 0x3c, 0x02, 0x86, 0x39, 0x00, 0xc2, 0x61, 0x28, 0x82, 0x61, 0x1c, 0x40, 0xf8, 0x40, 0x9c, 0x34, 0x00, 0x14, 0x40, 0x00, 0x25, 0xa1, 0x50, 0x6c, 0x81, 0x00, 0x78, 0xa1, 0x72, 0x61, 0x1c, 0x62, 0x61, 0x28, 0x22, 0x61, 0x15, 0xc2, 0x21, 0x15, 0x32, 0x21, 0x1c, 0x22, 0x21, 0x28, 0x30, 0x30, 0xf5, 0x32, 0x61, 0x18, 0x45, 0x91, 0x00, 0x32, 0x21, 0x18, 0x22, 0x61, 0x10, 0x22, 0x61, 0x2f, 0xc0, 0x40, 0xf5, 0x42, 0x61, 0x16, 0x22, 0x21, 0x28, 0x05, 0xa1, 0x00, 0x42, 0x21, 0x2f, 0x00, 0x62, 0x11, 0x02, 0x21, 0x1c, 0x52, 0x21, 0x16, 0x00, 0x00, 0xf4, 0x60, 0x55, 0x20, 0x52, 0x61, 0x19, 0x02, 0x61, 0x1d, 0x40, 0x00, 0x82, 0x07, 0xb5, 0x27, 0x82, 0x21, 0x1c, 0x0b, 0x94, 0x92, 0x61, 0x10, 0x80, 0x75, 0x80, 0x72, 0x61, 0x19, 0x87, 0x37, 0x16, 0xa2, 0x21, 0x19, 0x07, 0xba, 0x10, 0xb2, 0x21, 0x19, 0x32, 0xc4, 0xfe, 0x22, 0x21, 0x1c, 0x32, 0x61, 0x10, 0xba, 0xb2, 0xb2, 0x61, 0x19, 0x22, 0x21, 0x19, 0x32, 0x21, 0x18, 0x00, 0x22, 0xc0, 0x22, 0x61, 0x19, 0xc5, 0x8a, 0x00, 0x32, 0x21, 0x18, 0x22, 0x61, 0x31, 0x22, 0x61, 0x30, 0xc0, 0x40, 0xf4, 0x42, 0x61, 0x17, 0x22, 0x21, 0x19, 0x85, 0x9a, 0x00, 0x02, 0x21, 0x31, 0x42, 0x21, 0x10, 0x32, 0x21, 0x30, 0x00, 0x62, 0x11, 0x52, 0x21, 0x17, 0x82, 0x21, 0x1d, 0x60, 0x55, 0x20, 0x30, 0x88, 0x82, 0x87, 0xb5, 0x0f, 0x72, 0x21, 0x1c, 0x0b, 0x03, 0x7a, 0x55, 0x77, 0x35, 0x05, 0x87, 0xb5, 0x02, 0x02, 0xc3, 0xfe, 0x00, 0xc4, 0x11, 0xc0, 0xc0, 0x20, 0x0c, 0x00, 0xc6, 0x66, 0xff, 0x56, 0xe8, 0x00, 0x52, 0x61, 0x14, 0x22, 0xa0, 0x01, 0x45, 0x85, 0x00, 0x20, 0x02, 0x20, 0x52, 0x21, 0x14, 0x02, 0x61, 0x1c, 0x30, 0xf0, 0x40, 0xec, 0x03, 0x02, 0x61, 0x1c, 0x00, 0x40, 0xf5, 0x0c, 0x12, 0x00, 0x30, 0xf4, 0x00, 0x5c, 0xc0, 0x52, 0x61, 0x28, 0x32, 0x61, 0x1d, 0x22, 0x61, 0x11, 0x42, 0x61, 0x18, 0xc2, 0x21, 0x18, 0x06, 0x3a, 0x00, 0x00, 0x00, 0x00, 0x13, 0x40, 0x2c, 0x0a, 0x30, 0xaa, 0xc0, 0x00, 0x60, 0xa1, 0x62, 0x61, 0x1c, 0x00, 0x0a, 0x40, 0xc0, 0x20, 0x91, 0x00, 0x13, 0x40, 0x29, 0xc1, 0x60, 0x30, 0xf5, 0x00, 0x75, 0xa1, 0x50, 0x8c, 0x81, 0x82, 0x61, 0x28, 0x72, 0x61, 0x15, 0x32, 0x61, 0x18, 0x85, 0x7f, 0x00, 0xb2, 0x21, 0x28, 0x29, 0xf1, 0x22, 0x61, 0x2c, 0xc2, 0x21, 0x18, 0x28, 0xc1, 0x3d, 0x0c, 0xb0, 0xb0, 0xf5, 0xb9, 0xd1, 0x05, 0x8f, 0x00, 0x02, 0x21, 0x2c, 0x00, 0x52, 0x11, 0x32, 0x21, 0x1c, 0x48, 0xd1, 0x30, 0x30, 0xf4, 0x50, 0x44, 0x20, 0x42, 0x61, 0x13, 0x32, 0x61, 0x1d, 0x00, 0x33, 0x82, 0x37, 0xb4, 0x24, 0x72, 0x21, 0x1c, 0x0b, 0x80, 0x89, 0xf1, 0x7a, 0x64, 0x62, 0x61, 0x13, 0x77, 0x36, 0x15, 0x92, 0x21, 0x13, 0x37, 0xb9, 0x0f, 0xa2, 0x21, 0x13, 0x22, 0xc0, 0xfe, 0xb2, 0x21, 0x1c, 0x29, 0xf1, 0xaa, 0xab, 0xa2, 0x61, 0x13, 0x22, 0x21, 0x13, 0x30, 0x22, 0xc0, 0x22, 0x61, 0x13, 0x3d, 0x0c, 0x05, 0x79, 0x00, 0x22, 0x61, 0x2e, 0x32, 0x21, 0x28, 0x22, 0x61, 0x2d, 0x30, 0x30, 0xf4, 0x22, 0x21, 0x13, 0x39, 0xe1, 0x3d, 0x0c, 0x85, 0x88, 0x00, 0x02, 0x21, 0x2e, 0x32, 0x21, 0x2d, 0x52, 0x21, 0x1d, 0x88, 0xe1, 0x00, 0x92, 0x11, 0x90, 0x88, 0x20, 0x4d, 0x08, 0x30, 0x55, 0x82, 0x57, 0xb8, 0x11, 0xa2, 0x21, 0x1c, 0x0b, 0x03, 0xaa, 0x48, 0xa7, 0x34, 0x07, 0x57, 0xb4, 0x04, 0x02, 0xc3, 0xfe, 0x4a, 0x4a, 0x50, 0x34, 0xc0, 0x28, 0xf1, 0x32, 0x61, 0x28, 0x00, 0x22, 0x11, 0x20, 0x20, 0x20, 0x22, 0x61, 0x11, 0x22, 0x21, 0x28, 0x3d, 0x0c, 0x45, 0x73, 0x00, 0xc0, 0x3c, 0x20, 0x22, 0x61, 0x12, 0x22, 0x61, 0x32, 0x42, 0x21, 0x15, 0x22, 0x21, 0x28, 0x40, 0x40, 0xf5, 0x42, 0x61, 0x16, 0xc5, 0x82, 0x00, 0x42, 0x21, 0x32, 0x02, 0x21, 0x1d, 0x52, 0x21, 0x16, 0x00, 0x62, 0x11, 0x60, 0x55, 0x20, 0x52, 0x61, 0x1a, 0x40, 0x00, 0x82, 0x07, 0xb5, 0x27, 0x82, 0x21, 0x1c, 0x0b, 0x94, 0x92, 0x61, 0x12, 0x8a, 0x75, 0x72, 0x61, 0x1a, 0x87, 0x37, 0x17, 0xa2, 0x21, 0x1a, 0x07, 0xba, 0x11, 0xb2, 0x21, 0x1a, 0x32, 0xc4, 0xfe, 0x22, 0x21, 0x1c, 0x32, 0x61, 0x12, 0xb0, 0xb2, 0x80, 0xb2, 0x61, 0x1a, 0x22, 0x21, 0x1a, 0x3d, 0x0c, 0x00, 0x22, 0xc0, 0x22, 0x61, 0x1a, 0x05, 0x6d, 0x00, 0xc0, 0x3c, 0x20, 0x22, 0x61, 0x34, 0x22, 0x61, 0x33, 0x42, 0x21, 0x15, 0x22, 0x21, 0x1a, 0x40, 0x40, 0xf4, 0x42, 0x61, 0x17, 0x85, 0x7c, 0x00, 0x42, 0x21, 0x34, 0x02, 0x21, 0x33, 0x82, 0x21, 0x17, 0x00, 0x92, 0x11, 0x90, 0x88, 0x20, 0x92, 0x21, 0x1d, 0x52, 0x21, 0x12, 0x00, 0x99, 0x82, 0x97, 0xb8, 0x0f, 0xa2, 0x21, 0x1c, 0x0b, 0x40, 0xaa, 0x88, 0xa7, 0x38, 0x05, 0x97, 0xb8, 0x02, 0x42, 0xc0, 0xfe, 0x02, 0x21, 0x11, 0x00, 0xc5, 0x11, 0xc0, 0xc4, 0x20, 0xc6, 0xee, 0xfe, 0x02, 0x21, 0x29, 0xd2, 0x21, 0x2b, 0x2d, 0x0c, 0x42, 0xa0, 0xf0, 0xc2, 0x21, 0x2a, 0x4a, 0x11, 0x0d, 0xf0, 0x0c, 0x0c, 0x86, 0xe8, 0xfe, 0x00, 0x8d, 0x02, 0x62, 0xa0, 0xc0, 0x60, 0x11, 0xc0, 0x89, 0x01, 0x59, 0x31, 0x49, 0x21, 0x39, 0x11, 0x02, 0x61, 0x1e, 0xd2, 0x61, 0x20, 0xe2, 0x61, 0x21, 0xc2, 0x61, 0x1f, 0xed, 0x02, 0xcd, 0x03, 0xdd, 0x03, 0x0d, 0x04, 0x3d, 0x04, 0x16, 0xb5, 0x17, 0x57, 0xbc, 0x17, 0x0c, 0x03, 0x0c, 0x02, 0xe2, 0x21, 0x21, 0xd2, 0x21, 0x20, 0xc2, 0x21, 0x1f, 0x42, 0xa0, 0xc0, 0x02, 0x21, 0x1e, 0x4a, 0x11, 0x0d, 0xf0, 0x00, 0x42, 0x61, 0x2e, 0xd0, 0xf5, 0x40, 0xdc, 0xed, 0xc7, 0x35, 0x05, 0x47, 0xb2, 0x02, 0xc6, 0xfc, 0x00, 0x0c, 0x03, 0x0c, 0x12, 0xe2, 0x21, 0x21, 0xd2, 0x21, 0x20, 0xc2, 0x21, 0x1f, 0x42, 0xa0, 0xc0, 0x02, 0x21, 0x1e, 0x4a, 0x11, 0x0d, 0xf0, 0x82, 0x61, 0x12, 0xe2, 0x21, 0x2e, 0x2c, 0x04, 0xd0, 0x44, 0xc0, 0x00, 0x04, 0x40, 0x42, 0x61, 0x16, 0xc0, 0x20, 0x91, 0x00, 0x1d, 0x40, 0x22, 0x61, 0x17, 0xe0, 0x35, 0x81, 0x32, 0x61, 0x1c, 0x30, 0x30, 0xf5, 0x32, 0x61, 0x1d, 0x45, 0x5d, 0x00, 0x02, 0x21, 0x12, 0x32, 0x21, 0x16, 0x22, 0x61, 0x1b, 0x22, 0x61, 0x2b, 0x00, 0x1d, 0x40, 0x00, 0xcc, 0xa1, 0x22, 0x21, 0x17, 0x00, 0x03, 0x40, 0x00, 0x00, 0x91, 0x32, 0x21, 0x1d, 0x00, 0xcc, 0x20, 0xc2, 0x61, 0x18, 0xc0, 0xc0, 0xf5, 0x85, 0x6b, 0x00, 0x00, 0x42, 0x11, 0x02, 0x21, 0x2b, 0x22, 0x21, 0x1c, 0x40, 0x4c, 0x20, 0xcd, 0x04, 0x20, 0x20, 0xf4, 0x22, 0x61, 0x19, 0x00, 0x22, 0x82, 0x27, 0xb4, 0x1b, 0x0b, 0x60, 0x52, 0x21, 0x1c, 0x62, 0x61, 0x1b, 0x40, 0xc5, 0x80, 0x57, 0x3c, 0x0d, 0x27, 0xbc, 0x0a, 0x82, 0xc0, 0xfe, 0x72, 0x21, 0x1c, 0x82, 0x61, 0x1b, 0xca, 0xc7, 0x32, 0x21, 0x1d, 0x20, 0xcc, 0xc0, 0x2d, 0x0c, 0x85, 0x56, 0x00, 0x32, 0x21, 0x1d, 0x22, 0x61, 0x2d, 0x22, 0x61, 0x2c, 0x92, 0x21, 0x18, 0x2d, 0x0c, 0x90, 0x90, 0xf4, 0x92, 0x61, 0x1a, 0x05, 0x66, 0x00, 0x02, 0x21, 0x2d, 0x32, 0x21, 0x2c, 0x00, 0x52, 0x11, 0x42, 0x21, 0x1a, 0x22, 0x21, 0x19, 0x50, 0x44, 0x20, 0xcd, 0x04, 0x30, 0x22, 0x82, 0x27, 0xb4, 0x11, 0x62, 0x21, 0x1c, 0x0b, 0x03, 0x4a, 0xc6, 0x67, 0x3c, 0x07, 0x27, 0xbc, 0x04, 0xca, 0xc6, 0x02, 0xc3, 0xfe, 0x20, 0xcc, 0xc0, 0x00, 0x1d, 0x40, 0x22, 0x21, 0x1b, 0x00, 0x3e, 0xa1, 0x00, 0x22, 0x11, 0x20, 0x20, 0x20, 0x22, 0x61, 0x15, 0xed, 0x02, 0x85, 0x65, 0x00, 0x37, 0x3c, 0x0e, 0x37, 0x9c, 0x28, 0x32, 0x21, 0x12, 0x00, 0x1d, 0x40, 0x00, 0x33, 0xa1, 0x27, 0xb3, 0x1c, 0x0c, 0x03, 0x02, 0x21, 0x1e, 0xc2, 0x21, 0x1f, 0xd2, 0x21, 0x20, 0xe2, 0x21, 0x15, 0x42, 0xa0, 0xc0, 0x0b, 0xee, 0x2d, 0x0e, 0xe2, 0x21, 0x21, 0x4a, 0x11, 0x0d, 0xf0, 0x00, 0x0c, 0x03, 0x02, 0x21, 0x1e, 0xc2, 0x21, 0x1f, 0xd2, 0x21, 0x20, 0x2d, 0x0e, 0x42, 0xa0, 0xc0, 0xe2, 0x21, 0x21, 0x4a, 0x11, 0x0d, 0xf0, 0x00, 0x00, 0x47, 0x3c, 0x02, 0x86, 0x36, 0x00, 0x09, 0xd1, 0x40, 0xf4, 0x40, 0x16, 0xe4, 0x00, 0x00, 0x14, 0x40, 0x20, 0xdc, 0x81, 0x00, 0xe2, 0xa1, 0x00, 0x03, 0xa1, 0x02, 0x61, 0x0d, 0xc8, 0xd1, 0x2d, 0x0d, 0xc0, 0x30, 0xf5, 0x32, 0x61, 0x13, 0x85, 0x49, 0x00, 0x29, 0xc1, 0x22, 0x61, 0x25, 0xe0, 0x30, 0xf5, 0x32, 0x61, 0x10, 0x2d, 0x0d, 0x32, 0x21, 0x13, 0x85, 0x59, 0x00, 0x42, 0x21, 0x25, 0x00, 0x32, 0x11, 0xc0, 0x00, 0xf4, 0x22, 0x21, 0x10, 0x09, 0xe1, 0x30, 0x22, 0x20, 0xdd, 0x02, 0x40, 0x00, 0x82, 0x07, 0xb2, 0x12, 0xca, 0xd2, 0x0b, 0x54, 0x59, 0xc1, 0xc7, 0x3d, 0x09, 0x07, 0xbd, 0x06, 0xda, 0xdc, 0x62, 0xc4, 0xfe, 0x69, 0xc1, 0x32, 0x21, 0x13, 0x00, 0xdd, 0xc0, 0x2d, 0x0d, 0x05, 0x45, 0x00, 0xe0, 0xe0, 0xf4, 0x22, 0x61, 0x27, 0x22, 0x61, 0x26, 0x32, 0x21, 0x13, 0x2d, 0x0d, 0x05, 0x55, 0x00, 0x02, 0x21, 0x27, 0x32, 0x21, 0x26, 0x00, 0x22, 0x11, 0x48, 0xe1, 0x20, 0x2e, 0x20, 0x30, 0x44, 0x82, 0x47, 0xb2, 0x29, 0x0b, 0x03, 0xca, 0x22, 0xc7, 0x32, 0x22, 0x47, 0xb2, 0x1f, 0xc2, 0x21, 0x1f, 0xd2, 0x21, 0x20, 0xe2, 0x21, 0x21, 0x42, 0xa0, 0xc0, 0x02, 0xc3, 0xfe, 0x28, 0xc1, 0x0c, 0x03, 0x00, 0x22, 0x11, 0x20, 0x20, 0x20, 0x02, 0x21, 0x1e, 0x4a, 0x11, 0x0d, 0xf0, 0x0c, 0x03, 0xc2, 0x21, 0x1f, 0xd2, 0x21, 0x20, 0xe2, 0x21, 0x21, 0x28, 0xc1, 0x42, 0xa0, 0xc0, 0x00, 0x22, 0x11, 0x20, 0x20, 0x20, 0x02, 0x21, 0x1e, 0x4a, 0x11, 0x0d, 0xf0, 0x00, 0xcc, 0xb4, 0x82, 0x61, 0x12, 0x0c, 0x12, 0x85, 0x3d, 0x00, 0x82, 0x21, 0x12, 0x0d, 0x02, 0x09, 0xd1, 0x30, 0xf0, 0x40, 0xdc, 0x33, 0x09, 0xd1, 0x0c, 0x13, 0x00, 0xdc, 0xc0, 0x00, 0x40, 0xf4, 0x00, 0xc0, 0xf5, 0x49, 0xe1, 0x39, 0xb1, 0x86, 0x32, 0x00, 0x00, 0x00, 0x13, 0x40, 0x58, 0xd1, 0x2c, 0x00, 0x30, 0x00, 0xc0, 0x00, 0x55, 0xa1, 0x59, 0xd1, 0x00, 0x00, 0x40, 0xc0, 0x20, 0x91, 0x29, 0x81, 0x00, 0x13, 0x40, 0x80, 0xdc, 0x81, 0x00, 0xe8, 0xa1, 0x50, 0xc0, 0xf5, 0x3d, 0x0c, 0x05, 0x39, 0x00, 0x29, 0xa1, 0x22, 0x61, 0x22, 0xd0, 0x30, 0xf5, 0x39, 0x91, 0x28, 0x81, 0x3d, 0x0c, 0x05, 0x49, 0x00, 0x02, 0x21, 0x22, 0x00, 0x52, 0x11, 0x38, 0xd1, 0x48, 0x91, 0x30, 0x30, 0xf4, 0x50, 0x44, 0x20, 0x42, 0x61, 0x11, 0x39, 0xe1, 0x00, 0x33, 0x82, 0x37, 0xb4, 0x22, 0x78, 0xd1, 0x0b, 0x80, 0x89, 0xa1, 0x7a, 0x64, 0x62, 0x61, 0x11, 0x77, 0x36, 0x14, 0x92, 0x21, 0x11, 0x37, 0xb9, 0x0e, 0xa2, 0x21, 0x11, 0x22, 0xc0, 0xfe, 0xb8, 0xd1, 0x29, 0xa1, 0xaa, 0xab, 0xa2, 0x61, 0x11, 0x22, 0x21, 0x11, 0x30, 0x22, 0xc0, 0x22, 0x61, 0x11, 0x3d, 0x0c, 0x45, 0x33, 0x00, 0xd0, 0xd0, 0xf4, 0x22, 0x61, 0x24, 0x22, 0x61, 0x23, 0x3d, 0x0c, 0x22, 0x21, 0x11, 0x05, 0x43, 0x00, 0x02, 0x21, 0x24, 0x32, 0x21, 0x23, 0x58, 0xe1, 0x00, 0x82, 0x11, 0x80, 0x8d, 0x20, 0x4d, 0x08, 0x30, 0x55, 0x82, 0x57, 0xb8, 0x10, 0x98, 0xd1, 0x0b, 0x03, 0x9a, 0x48, 0x97, 0x34, 0x07, 0x57, 0xb4, 0x04, 0x02, 0xc3, 0xfe, 0x4a, 0x49, 0xb8, 0xa1, 0x50, 0xd4, 0xc0, 0x00, 0xbb, 0x11, 0xb0, 0xb0, 0x20, 0xb9, 0xb1, 0x2d, 0x0d, 0x3d, 0x0c, 0x85, 0x2e, 0x00, 0x3d, 0x0c, 0x29, 0xf1, 0x22, 0x61, 0x28, 0xe0, 0x00, 0xf5, 0x02, 0x61, 0x10, 0x2d, 0x0d, 0x45, 0x3e, 0x00, 0x42, 0x21, 0x28, 0xd8, 0xe1, 0x52, 0x21, 0x10, 0x00, 0x62, 0x11, 0x60, 0x55, 0x20, 0x52, 0x61, 0x14, 0x40, 0x0d, 0x82, 0x07, 0xb5, 0x22, 0x88, 0xd1, 0x0b, 0x94, 0x99, 0xf1, 0x8a, 0x75, 0x72, 0x61, 0x14, 0x87, 0x37, 0x14, 0xa2, 0x21, 0x14, 0x07, 0xba, 0x0e, 0xb2, 0x21, 0x14, 0x32, 0xc4, 0xfe, 0x28, 0xd1, 0x39, 0xf1, 0xba, 0xb2, 0xb2, 0x61, 0x14, 0x22, 0x21, 0x14, 0x3d, 0x0c, 0x00, 0x22, 0xc0, 0x22, 0x61, 0x14, 0xc5, 0x28, 0x00, 0xe0, 0xe0, 0xf4, 0x22, 0x61, 0x2a, 0x22, 0x61, 0x29, 0x3d, 0x0c, 0x22, 0x21, 0x14, 0xc5, 0x38, 0x00, 0x02, 0x21, 0x2a, 0x00, 0x52, 0x11, 0x42, 0x21, 0x29, 0x50, 0x5e, 0x20, 0x40, 0x8d, 0x82, 0x87, 0xb5, 0x2c, 0x68, 0xd1, 0x0b, 0x04, 0x6a, 0x55, 0x67, 0x35, 0x23, 0x87, 0xb5, 0x20, 0x38, 0xb1, 0xc2, 0x21, 0x1f, 0xd2, 0x21, 0x20, 0xe2, 0x21, 0x21, 0x02, 0xc4, 0xfe, 0x28, 0xf1, 0x42, 0xa0, 0xc0, 0x00, 0x22, 0x11, 0x20, 0x20, 0x20, 0x02, 0x21, 0x1e, 0x4a, 0x11, 0x0d, 0xf0, 0x00, 0x38, 0xb1, 0xc2, 0x21, 0x1f, 0xd2, 0x21, 0x20, 0xe2, 0x21, 0x21, 0x28, 0xf1, 0x42, 0xa0, 0xc0, 0x00, 0x22, 0x11, 0x20, 0x20, 0x20, 0x02, 0x21, 0x1e, 0x4a, 0x11, 0x0d, 0xf0, 0x0c, 0x02, 0x0c, 0x03, 0xc2, 0x21, 0x1f, 0xd2, 0x21, 0x20, 0xe2, 0x21, 0x21, 0x42, 0xa0, 0xc0, 0x02, 0x21, 0x1e, 0x4a, 0x11, 0x0d, 0xf0, 0x0d, 0xf0, 0x00, 0x00, 0x0d, 0xf0, 0x00, 0x00, 0x0c, 0x02, 0x0d, 0xf0, 0x00, 0x8c, 0xd4, 0x4a, 0x73, 0x62, 0x03, 0x00, 0x1b, 0x33, 0x62, 0x45, 0x00, 0x1b, 0x55, 0x77, 0x23, 0xf2, 0x0d, 0xf0, 0xb6, 0x74, 0xe9, 0x62, 0x03, 0x00, 0x1b, 0x33, 0x42, 0xc4, 0xff, 0x62, 0x45, 0x00, 0x52, 0xc5, 0x01, 0x17, 0x65, 0x24, 0xb6, 0x64, 0xd5, 0x62, 0x03, 0x00, 0x72, 0x03, 0x01, 0x2b, 0x33, 0x42, 0xc4, 0xfe, 0x62, 0x45, 0x00, 0x72, 0x45, 0x01, 0x2b, 0x55, 0xc6, 0x02, 0x00, 0x00, 0x00, 0x00, 0x20, 0x52, 0x20, 0x07, 0xe2, 0xc9, 0x17, 0xe2, 0xda, 0x40, 0x74, 0x41, 0x0c, 0x38, 0x87, 0x83, 0x62, 0x9c, 0xc7, 0xc0, 0x87, 0x11, 0x3a, 0x88, 0x68, 0x03, 0x78, 0x13, 0x69, 0x05, 0x68, 0x23, 0x79, 0x15, 0x78, 0x33, 0x69, 0x25, 0x32, 0xc3, 0x10, 0x79, 0x35, 0x52, 0xc5, 0x10, 0x87, 0x23, 0xe6, 0x37, 0x64, 0x0b, 0x68, 0x03, 0x78, 0x13, 0x8b, 0x33, 0x69, 0x05, 0x79, 0x15, 0x8b, 0x55, 0x27, 0xe4, 0x08, 0x17, 0xe4, 0x15, 0x07, 0xe4, 0x22, 0x0d, 0xf0, 0x00, 0x68, 0x03, 0x4b, 0x33, 0x69, 0x05, 0x4b, 0x55, 0x17, 0xe4, 0x04, 0x07, 0xe4, 0x11, 0x0d, 0xf0, 0x62, 0x13, 0x00, 0x2b, 0x33, 0x62, 0x55, 0x00, 0x2b, 0x55, 0x07, 0xe4, 0x02, 0x0d, 0xf0, 0x00, 0x62, 0x03, 0x00, 0x62, 0x45, 0x00, 0x0d, 0xf0, 0x16, 0xa4, 0xff, 0x00, 0x23, 0x40, 0x80, 0xb3, 0x10, 0xb0, 0x33, 0xc0, 0x68, 0x03, 0xac, 0xa7, 0xc0, 0xa7, 0x11, 0x30, 0xaa, 0x80, 0x78, 0x13, 0x88, 0x23, 0x60, 0x67, 0x81, 0x69, 0x05, 0x98, 0x33, 0x70, 0x78, 0x81, 0x79, 0x15, 0x68, 0x43, 0x80, 0x89, 0x81, 0x89, 0x25, 0x32, 0xc3, 0x10, 0x90, 0x96, 0x81, 0x92, 0x65, 0x03, 0x52, 0xc5, 0x10, 0xa7, 0x23, 0xd9, 0x37, 0x64, 0x14, 0x78, 0x13, 0x88, 0x23, 0x60, 0x67, 0x81, 0x69, 0x05, 0x8b, 0x33, 0x70, 0x78, 0x81, 0x79, 0x15, 0x8b, 0x55, 0x80, 0x68, 0x20, 0x27, 0x64, 0x0c, 0x78, 0x13, 0x4b, 0x33, 0x60, 0x67, 0x81, 0x69, 0x05, 0x4b, 0x55, 0x6d, 0x07, 0xba, 0x33, 0x17, 0xe4, 0x06, 0x07, 0xe4, 0x18, 0x0d, 0xf0, 0x00, 0x00, 0x62, 0x03, 0x00, 0x72, 0x03, 0x01, 0x2b, 0x33, 0x62, 0x45, 0x00, 0x72, 0x45, 0x01, 0x2b, 0x55, 0x07, 0xe4, 0x01, 0x0d, 0xf0, 0x62, 0x03, 0x00, 0x62, 0x45, 0x00, 0x0d, 0xf0, 0x00, 0x00, 0x00, 0x30, 0x72, 0x30, 0x20, 0x61, 0x60, 0x30, 0x31, 0x60, 0xb6, 0x23, 0x37, 0x60, 0x51, 0x41, 0x37, 0x35, 0x3d, 0x50, 0xf6, 0x40, 0x40, 0xf3, 0x40, 0x50, 0x44, 0xc0, 0x00, 0x14, 0x40, 0x00, 0x33, 0xa1, 0x22, 0xa0, 0x00, 0x37, 0x36, 0x04, 0x30, 0x66, 0xc0, 0x1b, 0x22, 0xf0, 0x22, 0x11, 0x30, 0x31, 0x41, 0x0b, 0x44, 0x56, 0xc4, 0xfe, 0x37, 0x36, 0x01, 0x1b, 0x22, 0x20, 0x50, 0x60, 0x70, 0x25, 0xa3, 0x0d, 0xf0, 0x9c, 0x53, 0x60, 0x20, 0x60, 0x70, 0x26, 0xb3, 0x0d, 0xf0, 0x00, 0x00, 0x37, 0x36, 0x10, 0x0c, 0x12, 0x7c, 0xf4, 0x70, 0x24, 0xa3, 0x0d, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x44, 0x49, 0x56, 0x30, 0x0c, 0x02, 0x0d, 0xf0, 0x7d, 0x02, 0x20, 0x21, 0x60, 0x30, 0x31, 0x60, 0xb6, 0x23, 0x30, 0x50, 0xf2, 0x40, 0x40, 0xf3, 0x40, 0x47, 0xb5, 0x17, 0x50, 0x44, 0xc0, 0x00, 0x14, 0x40, 0x00, 0x33, 0xa1, 0x37, 0x32, 0x02, 0x30, 0x22, 0xc0, 0x30, 0x31, 0x41, 0x42, 0xc4, 0xff, 0x56, 0x04, 0xff, 0x37, 0x32, 0x02, 0x30, 0x22, 0xc0, 0xd6, 0x27, 0x00, 0x20, 0x20, 0x60, 0x0d, 0xf0, 0x00, 0x00, 0xcc, 0x53, 0x00, 0x00, 0x00, 0x44, 0x49, 0x56, 0x30, 0x0c, 0x02, 0x0d, 0xf0, 0x00, 0x00, 0x00, 0xb6, 0x23, 0x30, 0x6d, 0x02, 0x50, 0xf6, 0x40, 0x40, 0xf3, 0x40, 0x47, 0xb5, 0x29, 0x50, 0x44, 0xc0, 0x00, 0x14, 0x40, 0x00, 0x33, 0xa1, 0x0c, 0x02, 0x37, 0x36, 0x04, 0x30, 0x66, 0xc0, 0x1b, 0x22, 0xf0, 0x22, 0x11, 0x30, 0x31, 0x41, 0x0b, 0x44, 0x56, 0xc4, 0xfe, 0x37, 0x36, 0x01, 0x1b, 0x22, 0x0d, 0xf0, 0x00, 0x8c, 0x93, 0x0d, 0xf0, 0x37, 0x36, 0x0c, 0x0c, 0x12, 0x0d, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x44, 0x49, 0x56, 0x30, 0x0c, 0x02, 0x0d, 0xf0, 0x00, 0x14, 0x40, 0xe6, 0xc4, 0x09, 0x20, 0x33, 0x81, 0x00, 0x22, 0xa1, 0x0d, 0xf0, 0x00, 0x00, 0x00, 0x32, 0xa1, 0x0c, 0x02, 0x0d, 0xf0, 0x00, 0x00, 0x04, 0x40, 0xe6, 0xc4, 0x09, 0x20, 0x23, 0x81, 0x30, 0x30, 0xb1, 0x0d, 0xf0, 0x00, 0x00, 0x30, 0x20, 0xb1, 0x30, 0x3f, 0x31, 0x0d, 0xf0, 0x00, 0x04, 0x40, 0xe6, 0xc4, 0x09, 0x20, 0x23, 0x81, 0x30, 0x30, 0x91, 0x0d, 0xf0, 0x00, 0x00, 0x30, 0x20, 0x91, 0x0c, 0x03, 0x0d, 0xf0, 0x00, 0xbc, 0x62, 0x0c, 0x07, 0x06, 0x02, 0x00, 0x00, 0xac, 0xe2, 0x20, 0x7f, 0x05, 0x20, 0x21, 0x60, 0x40, 0xf2, 0x40, 0x00, 0x14, 0x40, 0x00, 0x52, 0xa1, 0x50, 0x28, 0x41, 0x80, 0x65, 0x01, 0x52, 0xa0, 0x9d, 0x40, 0x55, 0xc0, 0x90, 0x55, 0x01, 0x5a, 0x22, 0x10, 0x77, 0x01, 0x70, 0x22, 0x20, 0xd6, 0x66, 0x00, 0x1b, 0x22, 0xf0, 0x66, 0x11, 0x8c, 0x06, 0x0d, 0xf0, 0x20, 0x21, 0x41, 0xf0, 0x22, 0x11, 0x0d, 0xf0, 0xac, 0xe2, 0x0c, 0x07, 0x06, 0x02, 0x00, 0x00, 0xac, 0x62, 0x20, 0x7f, 0x05, 0x20, 0x21, 0x60, 0x40, 0xf2, 0x40, 0x00, 0x14, 0x40, 0x00, 0x52, 0xa1, 0x50, 0x3b, 0x41, 0xb0, 0x25, 0x01, 0x52, 0xa4, 0x1d, 0x40, 0x55, 0xc0, 0xc0, 0x55, 0x01, 0x5a, 0x33, 0x10, 0x77, 0x01, 0x70, 0x33, 0x20, 0x0d, 0xf0, 0x0c, 0x03, 0x0d, 0xf0, 0x00, 0x00, 0xb6, 0x23, 0x28, 0x50, 0xf2, 0x40, 0x40, 0xf3, 0x40, 0x47, 0xb5, 0x17, 0x50, 0x44, 0xc0, 0x00, 0x14, 0x40, 0x00, 0x33, 0xa1, 0x37, 0x32, 0x02, 0x30, 0x22, 0xc0, 0x30, 0x31, 0x41, 0x42, 0xc4, 0xff, 0x56, 0x04, 0xff, 0x37, 0x32, 0x02, 0x30, 0x22, 0xc0, 0x0d, 0xf0, 0xcc, 0x53, 0x00, 0x00, 0x00, 0x44, 0x49, 0x56, 0x30, 0x0c, 0x02, 0x0d, 0xf0, 0x00, 0x00, 0x00, 0x12, 0xc1, 0xe0, 0xc9, 0x41, 0xd9, 0x51, 0xe9, 0x61, 0xf9, 0x71, 0x20, 0x40, 0xf5, 0x30, 0x50, 0xf5, 0x50, 0x62, 0xc1, 0x30, 0xb4, 0xc1, 0x0c, 0x09, 0xba, 0x66, 0xb7, 0xb6, 0x02, 0x92, 0xc9, 0x01, 0x10, 0x40, 0x40, 0x60, 0x99, 0x81, 0x30, 0xb2, 0xc1, 0x00, 0x66, 0xa1, 0xba, 0x66, 0xb7, 0xb6, 0x01, 0x1b, 0x99, 0x50, 0x34, 0xc1, 0x9a, 0x33, 0x2d, 0x06, 0xc8, 0x41, 0xd8, 0x51, 0xe8, 0x61, 0xf8, 0x71, 0x12, 0xc1, 0x20, 0x0d, 0xf0, 0x00, 0x80, 0xfe, 0x3f, 0xf4, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x55, 0x00, 0xf0, 0x0b, 0x08, 0xa6, 0x10, 0x40, 0xf4, 0x12, 0x10, 0x40, 0x28, 0xa5, 0x10, 0x40, 0xc8, 0xbd, 0x10, 0x40, 0xec, 0x60, 0x00, 0x40, 0xd0, 0x60, 0x00, 0x40, 0xac, 0x30, 0x10, 0x40, 0xc0, 0xbd, 0x10, 0x40, 0x01, 0x00, 0x00, 0x00, 0x07, 0x03, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x20, 0x00, 0x24, 0x00, 0x28, 0x00, 0x2c, 0x00, 0x30, 0x00, 0x34, 0x00, 0x40, 0x00, 0x60, 0x00, 0x64, 0x00, 0x68, 0x00, 0x70, 0x00, 0x74, 0x00, 0x78, 0x00, 0x7c, 0xff, 0xf0, 0xe3, 0xd6, 0xca, 0xbf, 0xb4, 0xaa, 0xa1, 0x98, 0x8f, 0x87, 0x80, 0x78, 0x72, 0x6b, 0x65, 0x60, 0x5a, 0x55, 0x51, 0x4c, 0x48, 0x44, 0x40, 0x3c, 0x39, 0x36, 0x33, 0x30, 0x2d, 0x2b, 0x28, 0x26, 0x24, 0x22, 0x20, 0x1e, 0x1d, 0x1b, 0x19, 0x18, 0x17, 0x15, 0x14, 0x13, 0x12, 0x11, 0x10, 0x0f, 0x0e, 0x0e, 0x0d, 0x0c, 0x0b, 0x0b, 0x0a, 0x0a, 0x09, 0x09, 0x08, 0x08, 0x07, 0x07, 0x06, 0x06, 0x06, 0x05, 0x05, 0x05, 0x05, 0x04, 0x04, 0x04, 0x04, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x00, 0x04, 0x0f, 0x04, 0x1e, 0x04, 0x2d, 0x04, 0x3d, 0x04, 0x4c, 0x04, 0x5c, 0x04, 0x6d, 0x04, 0x7d, 0x04, 0x8e, 0x04, 0x9e, 0x04, 0xb0, 0x04, 0xc1, 0x04, 0xd3, 0x04, 0xe5, 0x04, 0xf7, 0x04, 0x09, 0x05, 0x1c, 0x05, 0x2f, 0x05, 0x42, 0x05, 0x56, 0x05, 0x69, 0x05, 0x7d, 0x05, 0x92, 0x05, 0xff, 0xff, 0xff, 0xff, 0x00, 0x81, 0xfe, 0x3f, 0x20, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x41, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x9d, 0xff, 0x9d, 0xff, 0x9d, 0xff, 0x9d, 0xff, 0x9d, 0xff, 0x9d, 0xff, 0x9d, 0xff, 0x9d, 0xff, 0x9d, 0xff, 0x9d, 0xff, 0x9d, 0xff, 0x9d, 0xff, 0x9d, 0xff, 0x9d, 0xff, 0x00, 0x00, 0x00, 0x00, 0x48, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x3a, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x90, 0x00, 0x00, 0x00, 0x94, 0x00, 0x00, 0x00, 0xe4, 0x00, 0x00, 0x00, 0xa9, 0x00, 0x00, 0x00, 0x62, 0x00, 0x00, 0x00, 0x46, 0x00, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x15, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x17, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x19, 0x00, 0x00, 0x00, 0x90, 0x00, 0x00, 0x00, 0x94, 0x00, 0x00, 0x00, 0xe4, 0x00, 0x00, 0x00, 0xa9, 0x00, 0x00, 0x00, 0x62, 0x00, 0x00, 0x00, 0x46, 0x00, 0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x47, 0x00, 0x00, 0x00, 0x31, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x00, 0x00, 0x00, 0x64, 0x00, 0x00, 0x00, 0x6c, 0x00, 0x00, 0x00, 0x69, 0x00, 0x00, 0x00, 0x6e, 0x00, 0x00, 0x00, 0x6b, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x0b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x0b, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x08, 0x0c, 0x10, 0x13, 0x16, 0x19, 0x1c, 0x1f, 0x22, 0x24, 0x27, 0x29, 0x2c, 0x2e, 0x18, 0x24, 0x30, 0x3c, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfb, 0x3a, 0xe8, 0xee, 0x0d, 0x0c, 0xe4, 0x0c, 0x00, 0x00, 0x00, 0xf4, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x60, 0x50, 0x18, 0x44, 0x06, 0x07, 0x2e, 0x00, 0x84, 0x01, 0xa4, 0x01, 0xe4, 0x01, 0xb4, 0x01, 0xa6, 0x01, 0xac, 0x01, 0xae, 0x01, 0xa4, 0x01, 0xa4, 0x01, 0xa4, 0x01, 0xa4, 0x01, 0xa4, 0x01, 0xa4, 0x01, 0xa4, 0x01, 0xa4, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x86, 0x01, 0xa4, 0x01, 0xb6, 0x01, 0xc4, 0x01, 0xe4, 0x01, 0x00, 0x00, 0x00, 0x00, 0x20, 0x42, 0x00, 0x00, 0x80, 0x43, 0x25, 0x73, 0x20, 0x25, 0x64, 0x20, 0x25, 0x64, 0x0a, 0x00, 0x00, 0x00, 0x66, 0x62, 0x34, 0x32, 0x33, 0x31, 0x36, 0x64, 0x33, 0x30, 0x38, 0x38, 0x00, 0x00, 0x00, 0x00, 0x65, 0x74, 0x73, 0x20, 0x25, 0x73, 0x20, 0x25, 0x73, 0x0a, 0x00, 0x00, 0x4a, 0x61, 0x6e, 0x20, 0x31, 0x37, 0x20, 0x32, 0x30, 0x31, 0x35, 0x00, 0x32, 0x30, 0x3a, 0x31, 0x39, 0x3a, 0x30, 0x39, 0x00, 0x00, 0x00, 0x00, 0x63, 0x68, 0x69, 0x70, 0x20, 0x6f, 0x6e, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x6f, 0x6f, 0x62, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x61, 0x70, 0x70, 0x5f, 0x6d, 0x61, 0x69, 0x6e, 0x2e, 0x63, 0x00, 0x00, 0x25, 0x73, 0x20, 0x25, 0x75, 0x0a, 0x00, 0x00, 0x73, 0x65, 0x74, 0x5f, 0x72, 0x78, 0x5f, 0x67, 0x61, 0x69, 0x6e, 0x3a, 0x20, 0x72, 0x66, 0x74, 0x78, 0x3d, 0x25, 0x78, 0x2c, 0x20, 0x72, 0x66, 0x72, 0x78, 0x3d, 0x78, 0x25, 0x78, 0x2c, 0x20, 0x61, 0x74, 0x74, 0x3d, 0x25, 0x64, 0x2c, 0x20, 0x74, 0x78, 0x62, 0x62, 0x3d, 0x30, 0x78, 0x25, 0x78, 0x2c, 0x20, 0x62, 0x62, 0x72, 0x78, 0x31, 0x3d, 0x30, 0x78, 0x25, 0x78, 0x2c, 0x20, 0x62, 0x62, 0x72, 0x78, 0x32, 0x3d, 0x30, 0x78, 0x25, 0x78, 0x2c, 0x20, 0x74, 0x64, 0x63, 0x3a, 0x25, 0x64, 0x2c, 0x25, 0x64, 0x0a, 0x00, 0x00, 0x00, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x70, 0x77, 0x72, 0x3d, 0x25, 0x6c, 0x64, 0x2c, 0x20, 0x6d, 0x61, 0x78, 0x3d, 0x25, 0x6c, 0x64, 0x2c, 0x20, 0x0a, 0x00, 0x00, 0x00, 0x25, 0x64, 0x5f, 0x25, 0x64, 0x5f, 0x25, 0x64, 0x0a, 0x00, 0x00, 0x00, 0x72, 0x78, 0x69, 0x71, 0x5f, 0x72, 0x65, 0x67, 0x3a, 0x20, 0x69, 0x3d, 0x25, 0x64, 0x2c, 0x20, 0x61, 0x5f, 0x6d, 0x69, 0x73, 0x3d, 0x25, 0x64, 0x2c, 0x20, 0x70, 0x5f, 0x6d, 0x69, 0x73, 0x3d, 0x25, 0x64, 0x0a, 0x00, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x3a, 0x20, 0x25, 0x64, 0x20, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x20, 0x30, 0x78, 0x25, 0x78, 0x20, 0x30, 0x78, 0x25, 0x78, 0x20, 0x30, 0x78, 0x25, 0x78, 0x20, 0x30, 0x78, 0x25, 0x78, 0x0a, 0x00, 0x00, 0x00, 0x74, 0x78, 0x64, 0x63, 0x3a, 0x25, 0x64, 0x2c, 0x25, 0x64, 0x3b, 0x20, 0x72, 0x78, 0x64, 0x63, 0x3a, 0x25, 0x64, 0x2c, 0x25, 0x64, 0x2c, 0x25, 0x64, 0x2c, 0x25, 0x64, 0x0a, 0x00, 0x00, 0x00, 0x54, 0x50, 0x31, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x54, 0x50, 0x32, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x74, 0x69, 0x6d, 0x65, 0x3a, 0x25, 0x64, 0x75, 0x73, 0x0a, 0x00, 0x00, 0x30, 0x78, 0x33, 0x38, 0x3a, 0x25, 0x78, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x41, 0x50, 0x53, 0x54, 0x0a, 0x46, 0x54, 0x3a, 0x25, 0x64, 0x2c, 0x25, 0x64, 0x2c, 0x25, 0x64, 0x0a, 0x52, 0x4e, 0x3a, 0x25, 0x64, 0x2c, 0x25, 0x64, 0x3b, 0x25, 0x64, 0x2c, 0x25, 0x64, 0x3b, 0x25, 0x64, 0x2c, 0x25, 0x64, 0x3b, 0x25, 0x64, 0x2c, 0x25, 0x64, 0x3b, 0x25, 0x64, 0x2c, 0x25, 0x64, 0x3b, 0x25, 0x64, 0x2c, 0x25, 0x64, 0x3b, 0x25, 0x64, 0x2c, 0x25, 0x64, 0x3b, 0x25, 0x64, 0x2c, 0x25, 0x64, 0x3b, 0x25, 0x64, 0x2c, 0x25, 0x64, 0x3b, 0x25, 0x64, 0x2c, 0x25, 0x64, 0x3b, 0x00, 0x00, 0x00, 0x00, 0x25, 0x64, 0x2c, 0x25, 0x64, 0x3b, 0x25, 0x64, 0x2c, 0x25, 0x64, 0x3b, 0x25, 0x64, 0x2c, 0x25, 0x64, 0x3b, 0x25, 0x64, 0x2c, 0x25, 0x64, 0x0a, 0x54, 0x42, 0x3a, 0x25, 0x30, 0x32, 0x78, 0x2c, 0x25, 0x30, 0x32, 0x78, 0x2c, 0x25, 0x30, 0x32, 0x78, 0x2c, 0x25, 0x30, 0x32, 0x78, 0x2c, 0x25, 0x30, 0x32, 0x78, 0x2c, 0x25, 0x30, 0x32, 0x78, 0x2c, 0x25, 0x30, 0x32, 0x78, 0x2c, 0x25, 0x30, 0x32, 0x78, 0x2c, 0x25, 0x30, 0x32, 0x78, 0x2c, 0x25, 0x30, 0x32, 0x78, 0x2c, 0x25, 0x30, 0x32, 0x78, 0x2c, 0x25, 0x30, 0x32, 0x78, 0x2c, 0x25, 0x30, 0x32, 0x78, 0x2c, 0x25, 0x30, 0x32, 0x78, 0x0a, 0x41, 0x50, 0x45, 0x44, 0x0a, 0x00, 0x00, 0x0a, 0x74, 0x78, 0x20, 0x20, 0x20, 0x66, 0x72, 0x61, 0x6d, 0x65, 0x73, 0x20, 0x73, 0x74, 0x61, 0x72, 0x74, 0x20, 0x20, 0x0a, 0x20, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x3a, 0x20, 0x25, 0x64, 0x20, 0x20, 0x0a, 0x20, 0x72, 0x61, 0x74, 0x65, 0x20, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x3a, 0x20, 0x25, 0x64, 0x20, 0x0a, 0x00, 0x00, 0x72, 0x65, 0x61, 0x64, 0x20, 0x72, 0x65, 0x67, 0x61, 0x64, 0x64, 0x72, 0x20, 0x3a, 0x20, 0x20, 0x30, 0x78, 0x25, 0x78, 0x20, 0x20, 0x20, 0x20, 0x3b, 0x20, 0x20, 0x20, 0x72, 0x65, 0x73, 0x3a, 0x20, 0x30, 0x78, 0x25, 0x78, 0x0a, 0x00, 0x00, 0x72, 0x65, 0x61, 0x64, 0x20, 0x72, 0x65, 0x67, 0x20, 0x61, 0x64, 0x64, 0x72, 0x20, 0x3d, 0x3d, 0x30, 0x20, 0x0a, 0x20, 0x00, 0x00, 0x00, 0x00, 0x25, 0x33, 0x64, 0x2c, 0x25, 0x33, 0x64, 0x3b, 0x20, 0x00, 0x00, 0x00, 0x74, 0x78, 0x69, 0x71, 0x5f, 0x67, 0x61, 0x69, 0x6e, 0x3d, 0x25, 0x64, 0x2c, 0x20, 0x74, 0x78, 0x69, 0x71, 0x5f, 0x70, 0x68, 0x61, 0x73, 0x65, 0x3d, 0x25, 0x64, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x54, 0x58, 0x50, 0x57, 0x31, 0x2c, 0x20, 0x25, 0x64, 0x2c, 0x20, 0x25, 0x64, 0x2c, 0x20, 0x25, 0x64, 0x2c, 0x20, 0x25, 0x64, 0x2c, 0x20, 0x25, 0x64, 0x2c, 0x20, 0x25, 0x64, 0x0a, 0x00, 0x00, 0x54, 0x58, 0x5f, 0x50, 0x57, 0x43, 0x54, 0x52, 0x4c, 0x2c, 0x20, 0x74, 0x6f, 0x74, 0x5f, 0x70, 0x3d, 0x25, 0x64, 0x2c, 0x20, 0x64, 0x6f, 0x63, 0x61, 0x6c, 0x5f, 0x70, 0x3d, 0x25, 0x64, 0x2c, 0x20, 0x63, 0x6f, 0x61, 0x74, 0x74, 0x3d, 0x25, 0x64, 0x2c, 0x20, 0x61, 0x74, 0x74, 0x3d, 0x25, 0x64, 0x2c, 0x20, 0x72, 0x66, 0x5f, 0x67, 0x3d, 0x25, 0x78, 0x2c, 0x20, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x3d, 0x25, 0x64, 0x2c, 0x20, 0x25, 0x64, 0x2c, 0x20, 0x25, 0x64, 0x2c, 0x20, 0x25, 0x64, 0x2c, 0x20, 0x25, 0x64, 0x2c, 0x20, 0x68, 0x70, 0x63, 0x3d, 0x25, 0x64, 0x2c, 0x20, 0x25, 0x64, 0x0a, 0x00, 0x00, 0x00, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x69, 0x63, 0x5f, 0x63, 0x61, 0x6c, 0x20, 0x6e, 0x75, 0x6d, 0x3a, 0x20, 0x25, 0x64, 0x0a, 0x00, 0x00, 0x00, 0x6e, 0x75, 0x6d, 0x5f, 0x6b, 0x3d, 0x25, 0x64, 0x2c, 0x20, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x5f, 0x6f, 0x75, 0x74, 0x3d, 0x25, 0x64, 0x2c, 0x20, 0x00, 0x00, 0x00, 0x00, 0x72, 0x65, 0x67, 0x5f, 0x69, 0x3d, 0x25, 0x64, 0x2c, 0x20, 0x69, 0x6e, 0x64, 0x61, 0x74, 0x61, 0x3d, 0x25, 0x64, 0x2c, 0x20, 0x00, 0x00, 0x00, 0x70, 0x77, 0x63, 0x74, 0x72, 0x6c, 0x3a, 0x20, 0x72, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x3d, 0x25, 0x64, 0x2c, 0x20, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x3d, 0x25, 0x64, 0x2c, 0x20, 0x64, 0x65, 0x74, 0x65, 0x63, 0x74, 0x5f, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x3d, 0x25, 0x64, 0x2c, 0x20, 0x72, 0x61, 0x74, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x65, 0x6e, 0x3d, 0x25, 0x64, 0x2c, 0x20, 0x00, 0x00, 0x00, 0x00, 0x72, 0x78, 0x69, 0x71, 0x5f, 0x67, 0x65, 0x74, 0x5f, 0x6d, 0x69, 0x73, 0x3a, 0x20, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x70, 0x77, 0x72, 0x3d, 0x25, 0x64, 0x2c, 0x20, 0x25, 0x64, 0x2d, 0x25, 0x64, 0x2c, 0x20, 0x00, 0x25, 0x64, 0x2c, 0x20, 0x25, 0x64, 0x2c, 0x20, 0x25, 0x64, 0x2c, 0x20, 0x25, 0x64, 0x2c, 0x20, 0x00, 0x00, 0x00, 0x00, 0x54, 0x53, 0x2f, 0x6e, 0x00, 0x00, 0x00, 0x00, 0x62, 0x65, 0x66, 0x6f, 0x72, 0x65, 0x20, 0x74, 0x78, 0x20, 0x72, 0x65, 0x61, 0x64, 0x20, 0x72, 0x65, 0x67, 0x61, 0x64, 0x64, 0x72, 0x20, 0x3a, 0x20, 0x20, 0x30, 0x78, 0x25, 0x78, 0x20, 0x20, 0x20, 0x20, 0x3b, 0x20, 0x20, 0x20, 0x72, 0x65, 0x73, 0x3a, 0x20, 0x30, 0x78, 0x25, 0x78, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x62, 0x65, 0x66, 0x6f, 0x72, 0x65, 0x20, 0x74, 0x78, 0x20, 0x72, 0x65, 0x67, 0x20, 0x61, 0x64, 0x64, 0x72, 0x20, 0x3d, 0x3d, 0x30, 0x20, 0x0a, 0x20, 0x00, 0x00, 0x00, 0x61, 0x66, 0x74, 0x65, 0x72, 0x20, 0x74, 0x78, 0x20, 0x72, 0x65, 0x61, 0x64, 0x20, 0x72, 0x65, 0x67, 0x61, 0x64, 0x64, 0x72, 0x20, 0x3a, 0x20, 0x20, 0x30, 0x78, 0x25, 0x78, 0x20, 0x20, 0x20, 0x20, 0x3b, 0x20, 0x20, 0x20, 0x72, 0x65, 0x73, 0x3a, 0x20, 0x30, 0x78, 0x25, 0x78, 0x0a, 0x00, 0x61, 0x66, 0x74, 0x65, 0x72, 0x20, 0x74, 0x78, 0x20, 0x72, 0x65, 0x67, 0x20, 0x61, 0x64, 0x64, 0x72, 0x20, 0x3d, 0x3d, 0x30, 0x20, 0x0a, 0x20, 0x00, 0x00, 0x00, 0x00, 0x69, 0x69, 0x31, 0x3d, 0x25, 0x6c, 0x64, 0x3b, 0x20, 0x69, 0x71, 0x31, 0x3d, 0x25, 0x6c, 0x64, 0x3b, 0x20, 0x71, 0x69, 0x31, 0x3d, 0x25, 0x6c, 0x64, 0x3b, 0x20, 0x71, 0x71, 0x31, 0x3d, 0x25, 0x6c, 0x64, 0x3b, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x69, 0x69, 0x32, 0x3d, 0x25, 0x6c, 0x64, 0x3b, 0x20, 0x69, 0x71, 0x32, 0x3d, 0x25, 0x6c, 0x64, 0x3b, 0x20, 0x71, 0x69, 0x32, 0x3d, 0x25, 0x6c, 0x64, 0x3b, 0x20, 0x71, 0x71, 0x32, 0x3d, 0x25, 0x6c, 0x64, 0x3b, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x64, 0x63, 0x5f, 0x69, 0x3d, 0x25, 0x6c, 0x64, 0x3b, 0x20, 0x64, 0x63, 0x5f, 0x71, 0x3d, 0x25, 0x6c, 0x64, 0x3b, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x70, 0x77, 0x72, 0x3d, 0x25, 0x6c, 0x64, 0x3b, 0x0a, 0x00, 0x00, 0x00, 0x25, 0x6c, 0x6c, 0x64, 0x2c, 0x20, 0x25, 0x6c, 0x6c, 0x64, 0x2c, 0x20, 0x25, 0x6c, 0x6c, 0x64, 0x2c, 0x20, 0x25, 0x6c, 0x6c, 0x64, 0x2c, 0x20, 0x73, 0x69, 0x67, 0x5f, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x3d, 0x25, 0x6c, 0x6c, 0x64, 0x0a, 0x00, 0x25, 0x6c, 0x64, 0x2c, 0x20, 0x25, 0x6c, 0x64, 0x2c, 0x20, 0x25, 0x6c, 0x6c, 0x64, 0x2c, 0x20, 0x25, 0x6c, 0x6c, 0x64, 0x2c, 0x20, 0x64, 0x63, 0x5f, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x3d, 0x25, 0x6c, 0x6c, 0x64, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x25, 0x6c, 0x64, 0x2c, 0x20, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x3d, 0x25, 0x6c, 0x6c, 0x64, 0x2c, 0x20, 0x6e, 0x6f, 0x69, 0x73, 0x65, 0x5f, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x3d, 0x25, 0x6c, 0x6c, 0x64, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x70, 0x77, 0x72, 0x31, 0x3d, 0x25, 0x6c, 0x6c, 0x64, 0x2c, 0x20, 0x70, 0x77, 0x72, 0x32, 0x3d, 0x25, 0x6c, 0x6c, 0x64, 0x2c, 0x20, 0x53, 0x4e, 0x52, 0x31, 0x3d, 0x25, 0x64, 0x2c, 0x20, 0x00, 0x6d, 0x61, 0x78, 0x5f, 0x69, 0x6e, 0x64, 0x3d, 0x25, 0x64, 0x2c, 0x20, 0x6d, 0x61, 0x78, 0x5f, 0x64, 0x69, 0x76, 0x3d, 0x25, 0x64, 0x2c, 0x20, 0x6d, 0x61, 0x78, 0x5f, 0x64, 0x69, 0x76, 0x33, 0x3d, 0x25, 0x64, 0x2c, 0x20, 0x00, 0x00, 0x00, 0x63, 0x61, 0x6c, 0x5f, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x3d, 0x25, 0x64, 0x2c, 0x20, 0x00, 0x70, 0x77, 0x72, 0x31, 0x3d, 0x25, 0x6c, 0x6c, 0x64, 0x2c, 0x20, 0x70, 0x77, 0x72, 0x32, 0x3d, 0x25, 0x6c, 0x6c, 0x64, 0x2c, 0x20, 0x53, 0x4e, 0x52, 0x32, 0x3d, 0x25, 0x64, 0x2c, 0x20, 0x00, 0x46, 0x52, 0x45, 0x51, 0x5f, 0x4f, 0x46, 0x46, 0x53, 0x45, 0x54, 0x3d, 0x25, 0x64, 0x6b, 0x48, 0x7a, 0x2c, 0x20, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x3a, 0x20, 0x70, 0x6c, 0x6c, 0x5f, 0x63, 0x61, 0x6c, 0x20, 0x65, 0x78, 0x63, 0x65, 0x65, 0x64, 0x73, 0x20, 0x32, 0x6d, 0x73, 0x21, 0x21, 0x21, 0x0a, 0x00, 0x00, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x3d, 0x25, 0x64, 0x2c, 0x20, 0x66, 0x72, 0x65, 0x71, 0x5f, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x3d, 0x25, 0x64, 0x2c, 0x20, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x01, 0x7c, 0x00, 0x0c, 0x01, 0x00, 0x08, 0x01, 0x08, 0x0c, 0x08, 0x0d, 0x08, 0x0e, 0x08, 0x0f, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0xb0, 0xb4, 0x10, 0x40, 0xaf, 0x04, 0x00, 0x00, 0x0e, 0xf0, 0x01, 0x80, 0x13, 0x8c, 0x12, 0x8d, 0x11, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x00, 0x60, 0xb9, 0x10, 0x40, 0x60, 0x04, 0x00, 0x00, 0x0e, 0xc0, 0x01, 0x80, 0x12, 0x8c, 0x11, 0x8d, 0x10, 0x8e, 0x0f, 0x00, 0x20, 0x8a, 0xfe, 0x3f, 0xf0, 0xf4, 0xfe, 0x3f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, }; // const static int eagle_fw1_size = 52128;
geekboxzone/mmallow_kernel
drivers/net/wireless/rockchip_wlan/esp8089/esp_driver/eagle_fw1.h
C
gpl-2.0
322,693
<?php /* Generated on 6/26/15 3:23 AM by globalsync * $Id: $ * $Log: $ */ require_once 'EbatNs_ComplexType.php'; require_once 'MismatchTypeCodeType.php'; require_once 'AmountType.php'; /** * This type is no longer used. * **/ class eBayPaymentMismatchDetailsType extends EbatNs_ComplexType { /** * @var MismatchTypeCodeType **/ protected $MismatchType; /** * @var dateTime **/ protected $ActionRequiredBy; /** * @var AmountType **/ protected $MismatchAmount; /** * Class Constructor **/ function __construct() { parent::__construct('eBayPaymentMismatchDetailsType', 'urn:ebay:apis:eBLBaseComponents'); if (!isset(self::$_elements[__CLASS__])) { self::$_elements[__CLASS__] = array_merge(self::$_elements[get_parent_class()], array( 'MismatchType' => array( 'required' => false, 'type' => 'MismatchTypeCodeType', 'nsURI' => 'urn:ebay:apis:eBLBaseComponents', 'array' => false, 'cardinality' => '0..1' ), 'ActionRequiredBy' => array( 'required' => false, 'type' => 'dateTime', 'nsURI' => 'http://www.w3.org/2001/XMLSchema', 'array' => false, 'cardinality' => '0..1' ), 'MismatchAmount' => array( 'required' => false, 'type' => 'AmountType', 'nsURI' => 'urn:ebay:apis:eBLBaseComponents', 'array' => false, 'cardinality' => '0..1' ))); } $this->_attributes = array_merge($this->_attributes, array( )); } /** * @return MismatchTypeCodeType **/ function getMismatchType() { return $this->MismatchType; } /** * @return void **/ function setMismatchType($value) { $this->MismatchType = $value; } /** * @return dateTime **/ function getActionRequiredBy() { return $this->ActionRequiredBy; } /** * @return void **/ function setActionRequiredBy($value) { $this->ActionRequiredBy = $value; } /** * @return AmountType **/ function getMismatchAmount() { return $this->MismatchAmount; } /** * @return void **/ function setMismatchAmount($value) { $this->MismatchAmount = $value; } } ?>
booklein/wpbookle
wp-content/plugins/wp-lister-for-ebay/includes/EbatNs/eBayPaymentMismatchDetailsType.php
PHP
gpl-2.0
2,104
// ********************************************************************** // // Copyright (c) 2003-2011 ZeroC, Inc. All rights reserved. // // This copy of Ice is licensed to you under the terms described in the // ICE_LICENSE file included in this distribution. // // ********************************************************************** #ifndef REQUEST_H #define REQUEST_H #include <IceUtil/Thread.h> #include <IceUtil/Monitor.h> #include <Ice/Ice.h> #include <deque> namespace Glacier2 { class Instance; typedef IceUtil::Handle<Instance> InstancePtr; class Request; typedef IceUtil::Handle<Request> RequestPtr; class RequestQueueThread; typedef IceUtil::Handle<RequestQueueThread> RequestQueueThreadPtr; class Request : public Ice::LocalObject { public: Request(const Ice::ObjectPrx&, const std::pair<const Ice::Byte*, const Ice::Byte*>&, const Ice::Current&, bool, const Ice::Context&, const Ice::AMD_Object_ice_invokePtr&); Ice::AsyncResultPtr invoke(const Ice::Callback_Object_ice_invokePtr& callback); bool override(const RequestPtr&) const; const Ice::ObjectPrx& getProxy() const { return _proxy; } bool hasOverride() const { return !_override.empty(); } private: friend class RequestQueue; void response(bool, const std::pair<const Ice::Byte*, const Ice::Byte*>&); void exception(const Ice::Exception&); void queued(); const Ice::ObjectPrx _proxy; const Ice::ByteSeq _inParams; const Ice::Current _current; const bool _forwardContext; const Ice::Context _sslContext; const std::string _override; const Ice::AMD_Object_ice_invokePtr _amdCB; }; class RequestQueue : public IceUtil::Mutex, public IceUtil::Shared { public: RequestQueue(const RequestQueueThreadPtr&, const InstancePtr&, const Ice::ConnectionPtr&); bool addRequest(const RequestPtr&); void flushRequests(std::set<Ice::ObjectPrx>&); private: void flush(); void flush(std::set<Ice::ObjectPrx>&); void response(bool, const std::pair<const Ice::Byte*, const Ice::Byte*>&, const RequestPtr&); void exception(const Ice::Exception&, const RequestPtr&); void sent(bool, const RequestPtr&); const RequestQueueThreadPtr _requestQueueThread; const InstancePtr _instance; const Ice::ConnectionPtr _connection; const Ice::Callback_Object_ice_invokePtr _callback; const Ice::Callback_Connection_flushBatchRequestsPtr _flushCallback; std::deque<RequestPtr> _requests; bool _pendingSend; RequestPtr _pendingSendRequest; }; typedef IceUtil::Handle<RequestQueue> RequestQueuePtr; class RequestQueueThread : public IceUtil::Thread, public IceUtil::Monitor<IceUtil::Mutex> { public: RequestQueueThread(const IceUtil::Time&); virtual ~RequestQueueThread(); void flushRequestQueue(const RequestQueuePtr&); void destroy(); virtual void run(); private: const IceUtil::Time _sleepTime; bool _destroy; bool _sleep; IceUtil::Time _sleepDuration; std::vector<RequestQueuePtr> _queues; }; } #endif
joshmoore/zeroc-ice
cpp/src/Glacier2/RequestQueue.h
C
gpl-2.0
3,059
<?php /** * @package jCart * @copyright Copyright (C) 2009 - 2012 softPHP,http://www.soft-php.com * @license GNU/GPL http://www.gnu.org/copyleft/gpl.html */ // no direct access defined( '_JEXEC' ) or die( 'Restricted access' ); // Heading $_['heading_title'] = 'Payment Method'; // Text $_['text_account'] = 'Account'; $_['text_payment'] = 'Payment'; $_['text_your_payment'] = 'Payment Information'; $_['text_your_password'] = 'Your Password'; $_['text_cheque'] = 'Cheque'; $_['text_paypal'] = 'PayPal'; $_['text_bank'] = 'Bank Transfer'; $_['text_success'] = 'Success: Your account has been successfully updated.'; // Entry $_['entry_tax'] = 'Tax ID:'; $_['entry_payment'] = 'Payment Method:'; $_['entry_cheque'] = 'Cheque Payee Name:'; $_['entry_paypal'] = 'PayPal Email Account:'; $_['entry_bank_name'] = 'Bank Name:'; $_['entry_bank_branch_number'] = 'ABA/BSB number (Branch Number):'; $_['entry_bank_swift_code'] = 'SWIFT Code:'; $_['entry_bank_account_name'] = 'Account Name:'; $_['entry_bank_account_number'] = 'Account Number:'; ?>
jiangfanglu/grart
components/com_opencart/catalog/language/english/affiliate/payment.php
PHP
gpl-2.0
1,229
(function($) { $.fn.pypi = function(options) { if(typeof(options) == 'undefined') options = {} var package_ = options.package; if(typeof(package_) == 'undefined') package_ = this.attr("data-package"); if(typeof(package_) == 'undefined') throw "A package-name has not been provided."; var package_url = "https://pypi.python.org/pypi/" + package_; var parent = this; function received(data) { var name = data.info.name var counts = data.info.downloads; last_month = counts.last_month * 1; last_week = counts.last_week * 1; last_day = counts.last_day * 1; var html = "<div class=\"pypi-container\">" + "<div class=\"pypi-title\">" + "<em><a href=\"" + package_url + "\" target=\"_blank\">" + name + "</a></em><br />usage" + "</div>" + "<div class=\"pypi-row\">" + "<div class=\"pypi-label\">" + "Last Day:" + "</div>" + "<div class=\"pypi-count\">" + last_day + "</div>" + "<div class=\"pypi-float-stop\"></div>" + "</div>" + "<div class=\"pypi-row\">" + "<div class=\"pypi-label\">" + "Last Week:" + "</div>" + "<div class=\"pypi-count\">" + last_week + "</div>" + "<div class=\"pypi-float-stop\"></div>" + "</div>" + "<div class=\"pypi-row\">" + "<div class=\"pypi-label\">" + "Last Month:" + "</div>" + "<div class=\"pypi-count\">" + last_month + "</div>" + "<div class=\"pypi-float-stop\"></div>" + "</div>" + "</div>"; parent.html(html); } var url = package_url + "/json?callback=?"; $.getJSON(url, received); return this; }; }(jQuery));
dsoprea/PypiStats
pypi/jquery.pypi.js
JavaScript
gpl-2.0
2,506
<?php // $Id: template.php,v 1.1.2.6.4.2 2011/01/11 01:08:49 dvessel Exp $ /** * The default group for NineSixty framework CSS files added to the page. */ define('CSS_NS_FRAMEWORK', -200); /** * Implements hook_preprocess_html */ function my_theme_preprocess_html(&$vars) { $vars['classes_array'][] = 'show-grid'; } /** * Preprocessor for page.tpl.php template file. */ function my_theme_preprocess_page(&$vars, $hook) { // For easy printing of variables. $vars['logo_img'] = ''; if (!empty($vars['logo'])) { $vars['logo_img'] = theme('image', array( 'path' => $vars['logo'], 'alt' => t('Home'), 'title' => t('Home'), )); } $vars['linked_logo_img'] = ''; if (!empty($vars['logo_img'])) { $vars['linked_logo_img'] = l($vars['logo_img'], '<front>', array( 'attributes' => array( 'rel' => 'home', 'title' => t('Home'), ), 'html' => TRUE, )); } $vars['linked_site_name'] = ''; if (!empty($vars['site_name'])) { $vars['linked_site_name'] = l($vars['site_name'], '<front>', array( 'attributes' => array( 'rel' => 'home', 'title' => t('Home'), ), )); } // Site navigation links. $vars['main_menu_links'] = ''; if (isset($vars['main_menu'])) { $vars['main_menu_links'] = theme('links__system_main_menu', array( 'links' => $vars['main_menu'], 'attributes' => array( 'id' => 'main-menu', 'class' => array('inline', 'main-menu'), ), 'heading' => array( 'text' => t('Main menu'), 'level' => 'h2', 'class' => array('element-invisible'), ), )); } $vars['secondary_menu_links'] = ''; if (isset($vars['secondary_menu'])) { $vars['secondary_menu_links'] = theme('links__system_secondary_menu', array( 'links' => $vars['secondary_menu'], 'attributes' => array( 'id' => 'secondary-menu', 'class' => array('inline', 'secondary-menu'), ), 'heading' => array( 'text' => t('Secondary menu'), 'level' => 'h2', 'class' => array('element-invisible'), ), )); } // Rename title of some node if (array_key_exists('node', $vars) && $vars['node'] -> title == 'The Terminator') { $vars['title'] = t('Example template_preprocess_page'); } } /** * Contextually adds 960 Grid System classes. * * The first parameter passed is the *default class*. All other parameters must * be set in pairs like so: "$variable, 3". The variable can be anything available * within a template file and the integer is the width set for the adjacent box * containing that variable. * * class="<?php print ns('grid-16', $var_a, 6); ?>" * * If $var_a contains data, the next parameter (integer) will be subtracted from * the default class. See the README.txt file. */ function ns() { $args = func_get_args(); $default = array_shift($args); // Get the type of class, i.e., 'grid', 'pull', 'push', etc. // Also get the default unit for the type to be procesed and returned. list($type, $return_unit) = explode('-', $default); // Process the conditions. $flip_states = array('var' => 'int', 'int' => 'var'); $state = 'var'; foreach ($args as $arg) { if ($state == 'var') { $var_state = !empty($arg); } elseif ($var_state) { $return_unit = $return_unit - $arg; } $state = $flip_states[$state]; } $output = ''; // Anything below a value of 1 is not needed. if ($return_unit > 0) { $output = $type . '-' . $return_unit; } return $output; } /** * Implements hook_css_alter. * * This rearranges how the style sheets are included so the framework styles * are included first. * * Sub-themes can override the framework styles when it contains css files with * the same name as a framework style. This mirrors the behavior of the 6--1 * release of NineSixty warts and all. Future versions will make this obsolete. */ function my_theme_css_alter(&$css) { global $theme_info, $base_theme_info; // Dig into the framework .info data. $framework = !empty($base_theme_info) ? $base_theme_info[0]->info : $theme_info->info; // Ensure framework CSS is always first. $on_top = CSS_NS_FRAMEWORK; // Pull framework styles from the themes .info file and place them above all stylesheets. if (isset($framework['stylesheets'])) { foreach ($framework['stylesheets'] as $media => $styles_from_960) { foreach ($styles_from_960 as $style_from_960) { // Force framework styles to come first. if (strpos($style_from_960, 'framework') !== FALSE) { $css[$style_from_960]['group'] = $on_top; // Handle styles that may be overridden from sub-themes. foreach (array_keys($css) as $style_from_var) { if ($style_from_960 != $style_from_var && basename($style_from_960) == basename($style_from_var)) { $css[$style_from_var]['group'] = $on_top; } } } } } } }
vereni4/Drupal-tasks
sites/all/themes/my_theme/template.php
PHP
gpl-2.0
5,022
/* * Board support file for OMAP4430 SDP. * * Copyright (C) 2009 Texas Instruments * * Author: Santosh Shilimkar <santosh.shilimkar@ti.com> * * Based on mach-omap2/board-3430sdp.c * * 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. */ #include <linux/kernel.h> #include <linux/init.h> #include <linux/platform_device.h> #include <linux/io.h> #include <linux/gpio.h> #include <linux/usb/otg.h> #include <linux/spi/spi.h> #include <linux/i2c/twl.h> #include <linux/gpio_keys.h> #include <linux/regulator/machine.h> #include <linux/regulator/fixed.h> #include <linux/leds.h> #include <linux/leds_pwm.h> #include <mach/hardware.h> #include <asm/mach-types.h> #include <asm/mach/arch.h> #include <asm/mach/map.h> #include <plat/board.h> #include "common.h" #include <plat/usb.h> #include <plat/mmc.h> #include <plat/omap4-keypad.h> #include <video/omapdss.h> #include <video/omap-panel-nokia-dsi.h> #include <video/omap-panel-picodlp.h> #include <linux/wl12xx.h> #include "mux.h" #include "hsmmc.h" #include "control.h" #include "common-board-devices.h" #define ETH_KS8851_IRQ 34 #define ETH_KS8851_POWER_ON 48 #define ETH_KS8851_QUART 138 #define OMAP4_SFH7741_SENSOR_OUTPUT_GPIO 184 #define OMAP4_SFH7741_ENABLE_GPIO 188 #define HDMI_GPIO_CT_CP_HPD 60 /* HPD mode enable/disable */ #define HDMI_GPIO_LS_OE 41 /* Level shifter for HDMI */ #define HDMI_GPIO_HPD 63 /* Hotplug detect */ #define DISPLAY_SEL_GPIO 59 /* LCD2/PicoDLP switch */ #define DLP_POWER_ON_GPIO 40 #define GPIO_WIFI_PMENA 54 #define GPIO_WIFI_IRQ 53 static const int sdp4430_keymap[] = { KEY(0, 0, KEY_E), KEY(0, 1, KEY_R), KEY(0, 2, KEY_T), KEY(0, 3, KEY_HOME), KEY(0, 4, KEY_F5), KEY(0, 5, KEY_UNKNOWN), KEY(0, 6, KEY_I), KEY(0, 7, KEY_LEFTSHIFT), KEY(1, 0, KEY_D), KEY(1, 1, KEY_F), KEY(1, 2, KEY_G), KEY(1, 3, KEY_SEND), KEY(1, 4, KEY_F6), KEY(1, 5, KEY_UNKNOWN), KEY(1, 6, KEY_K), KEY(1, 7, KEY_ENTER), KEY(2, 0, KEY_X), KEY(2, 1, KEY_C), KEY(2, 2, KEY_V), KEY(2, 3, KEY_END), KEY(2, 4, KEY_F7), KEY(2, 5, KEY_UNKNOWN), KEY(2, 6, KEY_DOT), KEY(2, 7, KEY_CAPSLOCK), KEY(3, 0, KEY_Z), KEY(3, 1, KEY_KPPLUS), KEY(3, 2, KEY_B), KEY(3, 3, KEY_F1), KEY(3, 4, KEY_F8), KEY(3, 5, KEY_UNKNOWN), KEY(3, 6, KEY_O), KEY(3, 7, KEY_SPACE), KEY(4, 0, KEY_W), KEY(4, 1, KEY_Y), KEY(4, 2, KEY_U), KEY(4, 3, KEY_F2), KEY(4, 4, KEY_VOLUMEUP), KEY(4, 5, KEY_UNKNOWN), KEY(4, 6, KEY_L), KEY(4, 7, KEY_LEFT), KEY(5, 0, KEY_S), KEY(5, 1, KEY_H), KEY(5, 2, KEY_J), KEY(5, 3, KEY_F3), KEY(5, 4, KEY_F9), KEY(5, 5, KEY_VOLUMEDOWN), KEY(5, 6, KEY_M), KEY(5, 7, KEY_RIGHT), KEY(6, 0, KEY_Q), KEY(6, 1, KEY_A), KEY(6, 2, KEY_N), KEY(6, 3, KEY_BACK), KEY(6, 4, KEY_BACKSPACE), KEY(6, 5, KEY_UNKNOWN), KEY(6, 6, KEY_P), KEY(6, 7, KEY_UP), KEY(7, 0, KEY_PROG1), KEY(7, 1, KEY_PROG2), KEY(7, 2, KEY_PROG3), KEY(7, 3, KEY_PROG4), KEY(7, 4, KEY_F4), KEY(7, 5, KEY_UNKNOWN), KEY(7, 6, KEY_OK), KEY(7, 7, KEY_DOWN), }; static struct omap_device_pad keypad_pads[] = { { .name = "kpd_col1.kpd_col1", .enable = OMAP_WAKEUP_EN | OMAP_MUX_MODE1, }, { .name = "kpd_col1.kpd_col1", .enable = OMAP_WAKEUP_EN | OMAP_MUX_MODE1, }, { .name = "kpd_col2.kpd_col2", .enable = OMAP_WAKEUP_EN | OMAP_MUX_MODE1, }, { .name = "kpd_col3.kpd_col3", .enable = OMAP_WAKEUP_EN | OMAP_MUX_MODE1, }, { .name = "kpd_col4.kpd_col4", .enable = OMAP_WAKEUP_EN | OMAP_MUX_MODE1, }, { .name = "kpd_col5.kpd_col5", .enable = OMAP_WAKEUP_EN | OMAP_MUX_MODE1, }, { .name = "gpmc_a23.kpd_col7", .enable = OMAP_WAKEUP_EN | OMAP_MUX_MODE1, }, { .name = "gpmc_a22.kpd_col6", .enable = OMAP_WAKEUP_EN | OMAP_MUX_MODE1, }, { .name = "kpd_row0.kpd_row0", .enable = OMAP_PULL_ENA | OMAP_PULL_UP | OMAP_WAKEUP_EN | OMAP_MUX_MODE1 | OMAP_INPUT_EN, }, { .name = "kpd_row1.kpd_row1", .enable = OMAP_PULL_ENA | OMAP_PULL_UP | OMAP_WAKEUP_EN | OMAP_MUX_MODE1 | OMAP_INPUT_EN, }, { .name = "kpd_row2.kpd_row2", .enable = OMAP_PULL_ENA | OMAP_PULL_UP | OMAP_WAKEUP_EN | OMAP_MUX_MODE1 | OMAP_INPUT_EN, }, { .name = "kpd_row3.kpd_row3", .enable = OMAP_PULL_ENA | OMAP_PULL_UP | OMAP_WAKEUP_EN | OMAP_MUX_MODE1 | OMAP_INPUT_EN, }, { .name = "kpd_row4.kpd_row4", .enable = OMAP_PULL_ENA | OMAP_PULL_UP | OMAP_WAKEUP_EN | OMAP_MUX_MODE1 | OMAP_INPUT_EN, }, { .name = "kpd_row5.kpd_row5", .enable = OMAP_PULL_ENA | OMAP_PULL_UP | OMAP_WAKEUP_EN | OMAP_MUX_MODE1 | OMAP_INPUT_EN, }, { .name = "gpmc_a18.kpd_row6", .enable = OMAP_PULL_ENA | OMAP_PULL_UP | OMAP_WAKEUP_EN | OMAP_MUX_MODE1 | OMAP_INPUT_EN, }, { .name = "gpmc_a19.kpd_row7", .enable = OMAP_PULL_ENA | OMAP_PULL_UP | OMAP_WAKEUP_EN | OMAP_MUX_MODE1 | OMAP_INPUT_EN, }, }; static struct matrix_keymap_data sdp4430_keymap_data = { .keymap = sdp4430_keymap, .keymap_size = ARRAY_SIZE(sdp4430_keymap), }; static struct omap4_keypad_platform_data sdp4430_keypad_data = { .keymap_data = &sdp4430_keymap_data, .rows = 8, .cols = 8, }; static struct omap_board_data keypad_data = { .id = 1, .pads = keypad_pads, .pads_cnt = ARRAY_SIZE(keypad_pads), }; static struct gpio_led sdp4430_gpio_leds[] = { { .name = "omap4:green:debug0", .gpio = 61, }, { .name = "omap4:green:debug1", .gpio = 30, }, { .name = "omap4:green:debug2", .gpio = 7, }, { .name = "omap4:green:debug3", .gpio = 8, }, { .name = "omap4:green:debug4", .gpio = 50, }, { .name = "omap4:blue:user", .gpio = 169, }, { .name = "omap4:red:user", .gpio = 170, }, { .name = "omap4:green:user", .gpio = 139, }, }; static struct gpio_keys_button sdp4430_gpio_keys[] = { { .desc = "Proximity Sensor", .type = EV_SW, .code = SW_FRONT_PROXIMITY, .gpio = OMAP4_SFH7741_SENSOR_OUTPUT_GPIO, .active_low = 0, } }; static struct gpio_led_platform_data sdp4430_led_data = { .leds = sdp4430_gpio_leds, .num_leds = ARRAY_SIZE(sdp4430_gpio_leds), }; static struct led_pwm sdp4430_pwm_leds[] = { { .name = "omap4:green:chrg", .pwm_id = 1, .max_brightness = 255, .pwm_period_ns = 7812500, }, }; static struct led_pwm_platform_data sdp4430_pwm_data = { .num_leds = ARRAY_SIZE(sdp4430_pwm_leds), .leds = sdp4430_pwm_leds, }; static struct platform_device sdp4430_leds_pwm = { .name = "leds_pwm", .id = -1, .dev = { .platform_data = &sdp4430_pwm_data, }, }; static int omap_prox_activate(struct device *dev) { gpio_set_value(OMAP4_SFH7741_ENABLE_GPIO , 1); return 0; } static void omap_prox_deactivate(struct device *dev) { gpio_set_value(OMAP4_SFH7741_ENABLE_GPIO , 0); } static struct gpio_keys_platform_data sdp4430_gpio_keys_data = { .buttons = sdp4430_gpio_keys, .nbuttons = ARRAY_SIZE(sdp4430_gpio_keys), .enable = omap_prox_activate, .disable = omap_prox_deactivate, }; static struct platform_device sdp4430_gpio_keys_device = { .name = "gpio-keys", .id = -1, .dev = { .platform_data = &sdp4430_gpio_keys_data, }, }; static struct platform_device sdp4430_leds_gpio = { .name = "leds-gpio", .id = -1, .dev = { .platform_data = &sdp4430_led_data, }, }; static struct spi_board_info sdp4430_spi_board_info[] __initdata = { { .modalias = "ks8851", .bus_num = 1, .chip_select = 0, .max_speed_hz = 24000000, .irq = ETH_KS8851_IRQ, }, }; static struct gpio sdp4430_eth_gpios[] __initdata = { { ETH_KS8851_POWER_ON, GPIOF_OUT_INIT_HIGH, "eth_power" }, { ETH_KS8851_QUART, GPIOF_OUT_INIT_HIGH, "quart" }, { ETH_KS8851_IRQ, GPIOF_IN, "eth_irq" }, }; static int __init omap_ethernet_init(void) { int status; /* Request of GPIO lines */ status = gpio_request_array(sdp4430_eth_gpios, ARRAY_SIZE(sdp4430_eth_gpios)); if (status) pr_err("Cannot request ETH GPIOs\n"); return status; } static struct regulator_consumer_supply sdp4430_vbat_supply[] = { REGULATOR_SUPPLY("vddvibl", "twl6040-vibra"), REGULATOR_SUPPLY("vddvibr", "twl6040-vibra"), }; static struct regulator_init_data sdp4430_vbat_data = { .constraints = { .always_on = 1, }, .num_consumer_supplies = ARRAY_SIZE(sdp4430_vbat_supply), .consumer_supplies = sdp4430_vbat_supply, }; static struct fixed_voltage_config sdp4430_vbat_pdata = { .supply_name = "VBAT", .microvolts = 3750000, .init_data = &sdp4430_vbat_data, .gpio = -EINVAL, }; static struct platform_device sdp4430_vbat = { .name = "reg-fixed-voltage", .id = -1, .dev = { .platform_data = &sdp4430_vbat_pdata, }, }; static struct platform_device *sdp4430_devices[] __initdata = { &sdp4430_gpio_keys_device, &sdp4430_leds_gpio, &sdp4430_leds_pwm, &sdp4430_vbat, }; static struct omap_musb_board_data musb_board_data = { .interface_type = MUSB_INTERFACE_UTMI, .mode = MUSB_OTG, .power = 100, }; static struct omap2_hsmmc_info mmc[] = { { .mmc = 2, .caps = MMC_CAP_4_BIT_DATA | MMC_CAP_8_BIT_DATA, .gpio_cd = -EINVAL, .gpio_wp = -EINVAL, .nonremovable = true, .ocr_mask = MMC_VDD_29_30, .no_off_init = true, }, { .mmc = 1, .caps = MMC_CAP_4_BIT_DATA | MMC_CAP_8_BIT_DATA, .gpio_cd = -EINVAL, .gpio_wp = -EINVAL, }, { .mmc = 5, .caps = MMC_CAP_4_BIT_DATA | MMC_CAP_POWER_OFF_CARD, .gpio_cd = -EINVAL, .gpio_wp = -EINVAL, .ocr_mask = MMC_VDD_165_195, .nonremovable = true, }, {} /* Terminator */ }; static struct regulator_consumer_supply sdp4430_vaux_supply[] = { REGULATOR_SUPPLY("vmmc", "omap_hsmmc.1"), }; static struct regulator_consumer_supply omap4_sdp4430_vmmc5_supply = { .supply = "vmmc", .dev_name = "omap_hsmmc.4", }; static struct regulator_init_data sdp4430_vmmc5 = { .constraints = { .valid_ops_mask = REGULATOR_CHANGE_STATUS, }, .num_consumer_supplies = 1, .consumer_supplies = &omap4_sdp4430_vmmc5_supply, }; static struct fixed_voltage_config sdp4430_vwlan = { .supply_name = "vwl1271", .microvolts = 1800000, /* 1.8V */ .gpio = GPIO_WIFI_PMENA, .startup_delay = 70000, /* 70msec */ .enable_high = 1, .enabled_at_boot = 0, .init_data = &sdp4430_vmmc5, }; static struct platform_device omap_vwlan_device = { .name = "reg-fixed-voltage", .id = 1, .dev = { .platform_data = &sdp4430_vwlan, }, }; static int omap4_twl6030_hsmmc_late_init(struct device *dev) { int ret = 0; struct platform_device *pdev = container_of(dev, struct platform_device, dev); struct omap_mmc_platform_data *pdata = dev->platform_data; /* Setting MMC1 Card detect Irq */ if (pdev->id == 0) { ret = twl6030_mmc_card_detect_config(); if (ret) pr_err("Failed configuring MMC1 card detect\n"); pdata->slots[0].card_detect_irq = TWL6030_IRQ_BASE + MMCDETECT_INTR_OFFSET; pdata->slots[0].card_detect = twl6030_mmc_card_detect; } return ret; } static __init void omap4_twl6030_hsmmc_set_late_init(struct device *dev) { struct omap_mmc_platform_data *pdata; /* dev can be null if CONFIG_MMC_OMAP_HS is not set */ if (!dev) { pr_err("Failed %s\n", __func__); return; } pdata = dev->platform_data; pdata->init = omap4_twl6030_hsmmc_late_init; } static int __init omap4_twl6030_hsmmc_init(struct omap2_hsmmc_info *controllers) { struct omap2_hsmmc_info *c; omap2_hsmmc_init(controllers); for (c = controllers; c->mmc; c++) omap4_twl6030_hsmmc_set_late_init(c->dev); return 0; } static struct regulator_init_data sdp4430_vaux1 = { .constraints = { .min_uV = 1000000, .max_uV = 3000000, .apply_uV = true, .valid_modes_mask = REGULATOR_MODE_NORMAL | REGULATOR_MODE_STANDBY, .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE | REGULATOR_CHANGE_MODE | REGULATOR_CHANGE_STATUS, }, .num_consumer_supplies = ARRAY_SIZE(sdp4430_vaux_supply), .consumer_supplies = sdp4430_vaux_supply, }; static struct regulator_init_data sdp4430_vusim = { .constraints = { .min_uV = 1200000, .max_uV = 2900000, .apply_uV = true, .valid_modes_mask = REGULATOR_MODE_NORMAL | REGULATOR_MODE_STANDBY, .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE | REGULATOR_CHANGE_MODE | REGULATOR_CHANGE_STATUS, }, }; static struct twl4030_codec_data twl6040_codec = { /* single-step ramp for headset and handsfree */ .hs_left_step = 0x0f, .hs_right_step = 0x0f, .hf_left_step = 0x1d, .hf_right_step = 0x1d, }; static struct twl4030_vibra_data twl6040_vibra = { .vibldrv_res = 8, .vibrdrv_res = 3, .viblmotor_res = 10, .vibrmotor_res = 10, .vddvibl_uV = 0, /* fixed volt supply - VBAT */ .vddvibr_uV = 0, /* fixed volt supply - VBAT */ }; static struct twl4030_audio_data twl6040_audio = { .codec = &twl6040_codec, .vibra = &twl6040_vibra, .audpwron_gpio = 127, .naudint_irq = OMAP44XX_IRQ_SYS_2N, .irq_base = TWL6040_CODEC_IRQ_BASE, }; static struct twl4030_platform_data sdp4430_twldata = { .audio = &twl6040_audio, /* Regulators */ .vusim = &sdp4430_vusim, .vaux1 = &sdp4430_vaux1, }; static struct i2c_board_info __initdata sdp4430_i2c_3_boardinfo[] = { { I2C_BOARD_INFO("tmp105", 0x48), }, { I2C_BOARD_INFO("bh1780", 0x29), }, }; static struct i2c_board_info __initdata sdp4430_i2c_4_boardinfo[] = { { I2C_BOARD_INFO("hmc5843", 0x1e), }, }; static int __init omap4_i2c_init(void) { omap4_pmic_get_config(&sdp4430_twldata, TWL_COMMON_PDATA_USB, TWL_COMMON_REGULATOR_VDAC | TWL_COMMON_REGULATOR_VAUX2 | TWL_COMMON_REGULATOR_VAUX3 | TWL_COMMON_REGULATOR_VMMC | TWL_COMMON_REGULATOR_VPP | TWL_COMMON_REGULATOR_VANA | TWL_COMMON_REGULATOR_VCXIO | TWL_COMMON_REGULATOR_VUSB | TWL_COMMON_REGULATOR_CLK32KG); omap4_pmic_init("twl6030", &sdp4430_twldata); omap_register_i2c_bus(2, 400, NULL, 0); omap_register_i2c_bus(3, 400, sdp4430_i2c_3_boardinfo, ARRAY_SIZE(sdp4430_i2c_3_boardinfo)); omap_register_i2c_bus(4, 400, sdp4430_i2c_4_boardinfo, ARRAY_SIZE(sdp4430_i2c_4_boardinfo)); return 0; } static void __init omap_sfh7741prox_init(void) { int error; error = gpio_request_one(OMAP4_SFH7741_ENABLE_GPIO, GPIOF_OUT_INIT_LOW, "sfh7741"); if (error < 0) pr_err("%s:failed to request GPIO %d, error %d\n", __func__, OMAP4_SFH7741_ENABLE_GPIO, error); } static void sdp4430_hdmi_mux_init(void) { omap_mux_init_signal("hdmi_cec", OMAP_PIN_INPUT_PULLUP); omap_mux_init_signal("hdmi_ddc_scl", OMAP_PIN_INPUT_PULLUP); omap_mux_init_signal("hdmi_ddc_sda", OMAP_PIN_INPUT_PULLUP); } static struct gpio sdp4430_hdmi_gpios[] = { { HDMI_GPIO_CT_CP_HPD, GPIOF_OUT_INIT_HIGH, "hdmi_gpio_ct_cp_hpd" }, { HDMI_GPIO_LS_OE, GPIOF_OUT_INIT_HIGH, "hdmi_gpio_ls_oe" }, { HDMI_GPIO_HPD, GPIOF_DIR_IN, "hdmi_gpio_hpd" }, }; static int sdp4430_panel_enable_hdmi(struct omap_dss_device *dssdev) { int status; status = gpio_request_array(sdp4430_hdmi_gpios, ARRAY_SIZE(sdp4430_hdmi_gpios)); if (status) pr_err("%s: Cannot request HDMI GPIOs\n", __func__); return status; } static void sdp4430_panel_disable_hdmi(struct omap_dss_device *dssdev) { gpio_free_array(sdp4430_hdmi_gpios, ARRAY_SIZE(sdp4430_hdmi_gpios)); } static struct nokia_dsi_panel_data dsi1_panel = { .name = "taal", .reset_gpio = 102, .use_ext_te = false, .ext_te_gpio = 101, .esd_interval = 0, }; static struct omap_dss_device sdp4430_lcd_device = { .name = "lcd", .driver_name = "taal", .type = OMAP_DISPLAY_TYPE_DSI, .data = &dsi1_panel, .phy.dsi = { .clk_lane = 1, .clk_pol = 0, .data1_lane = 2, .data1_pol = 0, .data2_lane = 3, .data2_pol = 0, .module = 0, }, .clocks = { .dispc = { .channel = { /* Logic Clock = 172.8 MHz */ .lck_div = 1, /* Pixel Clock = 34.56 MHz */ .pck_div = 5, .lcd_clk_src = OMAP_DSS_CLK_SRC_DSI_PLL_HSDIV_DISPC, }, .dispc_fclk_src = OMAP_DSS_CLK_SRC_FCK, }, .dsi = { .regn = 16, /* Fint = 2.4 MHz */ .regm = 180, /* DDR Clock = 216 MHz */ .regm_dispc = 5, /* PLL1_CLK1 = 172.8 MHz */ .regm_dsi = 5, /* PLL1_CLK2 = 172.8 MHz */ .lp_clk_div = 10, /* LP Clock = 8.64 MHz */ .dsi_fclk_src = OMAP_DSS_CLK_SRC_DSI_PLL_HSDIV_DSI, }, }, .channel = OMAP_DSS_CHANNEL_LCD, }; static struct nokia_dsi_panel_data dsi2_panel = { .name = "taal", .reset_gpio = 104, .use_ext_te = false, .ext_te_gpio = 103, .esd_interval = 0, }; static struct omap_dss_device sdp4430_lcd2_device = { .name = "lcd2", .driver_name = "taal", .type = OMAP_DISPLAY_TYPE_DSI, .data = &dsi2_panel, .phy.dsi = { .clk_lane = 1, .clk_pol = 0, .data1_lane = 2, .data1_pol = 0, .data2_lane = 3, .data2_pol = 0, .module = 1, }, .clocks = { .dispc = { .channel = { /* Logic Clock = 172.8 MHz */ .lck_div = 1, /* Pixel Clock = 34.56 MHz */ .pck_div = 5, .lcd_clk_src = OMAP_DSS_CLK_SRC_DSI2_PLL_HSDIV_DISPC, }, .dispc_fclk_src = OMAP_DSS_CLK_SRC_FCK, }, .dsi = { .regn = 16, /* Fint = 2.4 MHz */ .regm = 180, /* DDR Clock = 216 MHz */ .regm_dispc = 5, /* PLL1_CLK1 = 172.8 MHz */ .regm_dsi = 5, /* PLL1_CLK2 = 172.8 MHz */ .lp_clk_div = 10, /* LP Clock = 8.64 MHz */ .dsi_fclk_src = OMAP_DSS_CLK_SRC_DSI2_PLL_HSDIV_DSI, }, }, .channel = OMAP_DSS_CHANNEL_LCD2, }; static void sdp4430_lcd_init(void) { int r; r = gpio_request_one(dsi1_panel.reset_gpio, GPIOF_DIR_OUT, "lcd1_reset_gpio"); if (r) pr_err("%s: Could not get lcd1_reset_gpio\n", __func__); r = gpio_request_one(dsi2_panel.reset_gpio, GPIOF_DIR_OUT, "lcd2_reset_gpio"); if (r) pr_err("%s: Could not get lcd2_reset_gpio\n", __func__); } static struct omap_dss_hdmi_data sdp4430_hdmi_data = { .hpd_gpio = HDMI_GPIO_HPD, }; static struct omap_dss_device sdp4430_hdmi_device = { .name = "hdmi", .driver_name = "hdmi_panel", .type = OMAP_DISPLAY_TYPE_HDMI, .platform_enable = sdp4430_panel_enable_hdmi, .platform_disable = sdp4430_panel_disable_hdmi, .channel = OMAP_DSS_CHANNEL_DIGIT, .data = &sdp4430_hdmi_data, }; static struct picodlp_panel_data sdp4430_picodlp_pdata = { .picodlp_adapter_id = 2, .emu_done_gpio = 44, .pwrgood_gpio = 45, }; static void sdp4430_picodlp_init(void) { int r; const struct gpio picodlp_gpios[] = { {DLP_POWER_ON_GPIO, GPIOF_OUT_INIT_LOW, "DLP POWER ON"}, {sdp4430_picodlp_pdata.emu_done_gpio, GPIOF_IN, "DLP EMU DONE"}, {sdp4430_picodlp_pdata.pwrgood_gpio, GPIOF_OUT_INIT_LOW, "DLP PWRGOOD"}, }; r = gpio_request_array(picodlp_gpios, ARRAY_SIZE(picodlp_gpios)); if (r) pr_err("Cannot request PicoDLP GPIOs, error %d\n", r); } static int sdp4430_panel_enable_picodlp(struct omap_dss_device *dssdev) { gpio_set_value(DISPLAY_SEL_GPIO, 0); gpio_set_value(DLP_POWER_ON_GPIO, 1); return 0; } static void sdp4430_panel_disable_picodlp(struct omap_dss_device *dssdev) { gpio_set_value(DLP_POWER_ON_GPIO, 0); gpio_set_value(DISPLAY_SEL_GPIO, 1); } static struct omap_dss_device sdp4430_picodlp_device = { .name = "picodlp", .driver_name = "picodlp_panel", .type = OMAP_DISPLAY_TYPE_DPI, .phy.dpi.data_lines = 24, .channel = OMAP_DSS_CHANNEL_LCD2, .platform_enable = sdp4430_panel_enable_picodlp, .platform_disable = sdp4430_panel_disable_picodlp, .data = &sdp4430_picodlp_pdata, }; static struct omap_dss_device *sdp4430_dss_devices[] = { &sdp4430_lcd_device, &sdp4430_lcd2_device, &sdp4430_hdmi_device, &sdp4430_picodlp_device, }; static struct omap_dss_board_info sdp4430_dss_data = { .num_devices = ARRAY_SIZE(sdp4430_dss_devices), .devices = sdp4430_dss_devices, .default_device = &sdp4430_lcd_device, }; static void omap_4430sdp_display_init(void) { int r; /* Enable LCD2 by default (instead of Pico DLP) */ r = gpio_request_one(DISPLAY_SEL_GPIO, GPIOF_OUT_INIT_HIGH, "display_sel"); if (r) pr_err("%s: Could not get display_sel GPIO\n", __func__); sdp4430_lcd_init(); sdp4430_hdmi_mux_init(); sdp4430_picodlp_init(); omap_display_init(&sdp4430_dss_data); omap_mux_init_gpio(HDMI_GPIO_LS_OE, OMAP_PIN_OUTPUT); omap_mux_init_gpio(HDMI_GPIO_CT_CP_HPD, OMAP_PIN_OUTPUT); omap_mux_init_gpio(HDMI_GPIO_HPD, OMAP_PIN_INPUT_PULLDOWN); } #ifdef CONFIG_OMAP_MUX static struct omap_board_mux board_mux[] __initdata = { OMAP4_MUX(USBB2_ULPITLL_CLK, OMAP_MUX_MODE4 | OMAP_PIN_OUTPUT), { .reg_offset = OMAP_MUX_TERMINATOR }, }; static struct omap_device_pad serial2_pads[] __initdata = { OMAP_MUX_STATIC("uart2_cts.uart2_cts", OMAP_PIN_INPUT_PULLUP | OMAP_MUX_MODE0), OMAP_MUX_STATIC("uart2_rts.uart2_rts", OMAP_PIN_OUTPUT | OMAP_MUX_MODE0), OMAP_MUX_STATIC("uart2_rx.uart2_rx", OMAP_PIN_INPUT_PULLUP | OMAP_MUX_MODE0), OMAP_MUX_STATIC("uart2_tx.uart2_tx", OMAP_PIN_OUTPUT | OMAP_MUX_MODE0), }; static struct omap_device_pad serial3_pads[] __initdata = { OMAP_MUX_STATIC("uart3_cts_rctx.uart3_cts_rctx", OMAP_PIN_INPUT_PULLUP | OMAP_MUX_MODE0), OMAP_MUX_STATIC("uart3_rts_sd.uart3_rts_sd", OMAP_PIN_OUTPUT | OMAP_MUX_MODE0), OMAP_MUX_STATIC("uart3_rx_irrx.uart3_rx_irrx", OMAP_PIN_INPUT | OMAP_MUX_MODE0), OMAP_MUX_STATIC("uart3_tx_irtx.uart3_tx_irtx", OMAP_PIN_OUTPUT | OMAP_MUX_MODE0), }; static struct omap_device_pad serial4_pads[] __initdata = { OMAP_MUX_STATIC("uart4_rx.uart4_rx", OMAP_PIN_INPUT | OMAP_MUX_MODE0), OMAP_MUX_STATIC("uart4_tx.uart4_tx", OMAP_PIN_OUTPUT | OMAP_MUX_MODE0), }; static struct omap_board_data serial2_data __initdata = { .id = 1, .pads = serial2_pads, .pads_cnt = ARRAY_SIZE(serial2_pads), }; static struct omap_board_data serial3_data __initdata = { .id = 2, .pads = serial3_pads, .pads_cnt = ARRAY_SIZE(serial3_pads), }; static struct omap_board_data serial4_data __initdata = { .id = 3, .pads = serial4_pads, .pads_cnt = ARRAY_SIZE(serial4_pads), }; static inline void board_serial_init(void) { struct omap_board_data bdata; bdata.flags = 0; bdata.pads = NULL; bdata.pads_cnt = 0; bdata.id = 0; /* pass dummy data for UART1 */ omap_serial_init_port(&bdata); omap_serial_init_port(&serial2_data); omap_serial_init_port(&serial3_data); omap_serial_init_port(&serial4_data); } #else #define board_mux NULL static inline void board_serial_init(void) { omap_serial_init(); } #endif static void omap4_sdp4430_wifi_mux_init(void) { omap_mux_init_gpio(GPIO_WIFI_IRQ, OMAP_PIN_INPUT | OMAP_PIN_OFF_WAKEUPENABLE); omap_mux_init_gpio(GPIO_WIFI_PMENA, OMAP_PIN_OUTPUT); omap_mux_init_signal("sdmmc5_cmd.sdmmc5_cmd", OMAP_MUX_MODE0 | OMAP_PIN_INPUT_PULLUP); omap_mux_init_signal("sdmmc5_clk.sdmmc5_clk", OMAP_MUX_MODE0 | OMAP_PIN_INPUT_PULLUP); omap_mux_init_signal("sdmmc5_dat0.sdmmc5_dat0", OMAP_MUX_MODE0 | OMAP_PIN_INPUT_PULLUP); omap_mux_init_signal("sdmmc5_dat1.sdmmc5_dat1", OMAP_MUX_MODE0 | OMAP_PIN_INPUT_PULLUP); omap_mux_init_signal("sdmmc5_dat2.sdmmc5_dat2", OMAP_MUX_MODE0 | OMAP_PIN_INPUT_PULLUP); omap_mux_init_signal("sdmmc5_dat3.sdmmc5_dat3", OMAP_MUX_MODE0 | OMAP_PIN_INPUT_PULLUP); } static struct wl12xx_platform_data omap4_sdp4430_wlan_data __initdata = { .irq = OMAP_GPIO_IRQ(GPIO_WIFI_IRQ), .board_ref_clock = WL12XX_REFCLOCK_26, .board_tcxo_clock = WL12XX_TCXOCLOCK_26, }; static void omap4_sdp4430_wifi_init(void) { omap4_sdp4430_wifi_mux_init(); if (wl12xx_set_platform_data(&omap4_sdp4430_wlan_data)) pr_err("Error setting wl12xx data\n"); platform_device_register(&omap_vwlan_device); } static void __init omap_4430sdp_init(void) { int status; int package = OMAP_PACKAGE_CBS; if (omap_rev() == OMAP4430_REV_ES1_0) package = OMAP_PACKAGE_CBL; omap4_mux_init(board_mux, NULL, package); omap4_i2c_init(); omap_sfh7741prox_init(); platform_add_devices(sdp4430_devices, ARRAY_SIZE(sdp4430_devices)); board_serial_init(); omap_sdrc_init(NULL, NULL); omap4_sdp4430_wifi_init(); omap4_twl6030_hsmmc_init(mmc); usb_musb_init(&musb_board_data); status = omap_ethernet_init(); if (status) { pr_err("Ethernet initialization failed: %d\n", status); } else { sdp4430_spi_board_info[0].irq = gpio_to_irq(ETH_KS8851_IRQ); spi_register_board_info(sdp4430_spi_board_info, ARRAY_SIZE(sdp4430_spi_board_info)); } status = omap4_keyboard_init(&sdp4430_keypad_data, &keypad_data); if (status) pr_err("Keypad initialization failed: %d\n", status); omap_4430sdp_display_init(); } MACHINE_START(OMAP_4430SDP, "OMAP4430 4430SDP board") /* Maintainer: Santosh Shilimkar - Texas Instruments Inc */ .atag_offset = 0x100, .reserve = omap_reserve, .map_io = omap4_map_io, .init_early = omap4430_init_early, .init_irq = gic_init_irq, .init_machine = omap_4430sdp_init, .timer = &omap4_timer, MACHINE_END
skitlab/kernel-source-dm8168-3.2.y
arch/arm/mach-omap2/board-4430sdp.c
C
gpl-2.0
24,533
/*************************************************************************** * Copyright (C) 2005 by Dominic Rath * * Dominic.Rath@gmx.de * * * * Copyright (C) 2007-2010 Øyvind Harboe * * oyvind.harboe@zylin.com * * * * Copyright (C) 2008 Richard Missenden * * richard.missenden@googlemail.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. * * * * 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. * ***************************************************************************/ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include "openocd.h" #include <jtag/driver.h> #include <jtag/jtag.h> #include <transport/transport.h> #include <helper/ioutil.h> #include <helper/util.h> #include <helper/configuration.h> #include <flash/nor/core.h> #include <flash/nand/core.h> #include <pld/pld.h> #include <flash/mflash.h> #include <server/server.h> #include <server/gdb_server.h> #ifdef HAVE_STRINGS_H #include <strings.h> #endif #define OPENOCD_VERSION \ "Open On-Chip Debugger " VERSION RELSTR " (" PKGBLDDATE ")" /* Give scripts and TELNET a way to find out what version this is */ static int jim_version_command(Jim_Interp *interp, int argc, Jim_Obj * const *argv) { if (argc > 2) { return JIM_ERR; } const char *str = ""; char * version_str; version_str = OPENOCD_VERSION; if (argc == 2) str = Jim_GetString(argv[1], NULL); if (strcmp("git", str) == 0) { version_str = GITVERSION; } Jim_SetResult(interp, Jim_NewStringObj(interp, version_str, -1)); return JIM_OK; } static int log_target_callback_event_handler(struct target *target, enum target_event event, void *priv) { switch (event) { case TARGET_EVENT_GDB_START: target->display = 0; break; case TARGET_EVENT_GDB_END: target->display = 1; break; case TARGET_EVENT_HALTED: if (target->display) { /* do not display information when debugger caused the halt */ target_arch_state(target); } break; default: break; } return ERROR_OK; } static bool init_at_startup = true; COMMAND_HANDLER(handle_noinit_command) { if (CMD_ARGC != 0) return ERROR_COMMAND_SYNTAX_ERROR; init_at_startup = false; return ERROR_OK; } /* OpenOCD can't really handle failure of this command. Patches welcome! :-) */ COMMAND_HANDLER(handle_init_command) { if (CMD_ARGC != 0) return ERROR_COMMAND_SYNTAX_ERROR; int retval; static int initialized = 0; if (initialized) return ERROR_OK; initialized = 1; retval = command_run_line(CMD_CTX, "target init"); if (ERROR_OK != retval) return ERROR_FAIL; if ((retval = adapter_init(CMD_CTX)) != ERROR_OK) { /* we must be able to set up the debug adapter */ return retval; } LOG_DEBUG("Debug Adapter init complete"); /* "transport init" verifies the expected devices are present; * for JTAG, it checks the list of configured TAPs against * what's discoverable, possibly with help from the platform's * JTAG event handlers. (which require COMMAND_EXEC) */ command_context_mode(CMD_CTX, COMMAND_EXEC); retval = command_run_line(CMD_CTX, "transport init"); if (ERROR_OK != retval) return ERROR_FAIL; LOG_DEBUG("Examining targets..."); if (target_examine() != ERROR_OK) LOG_DEBUG("target examination failed"); command_context_mode(CMD_CTX, COMMAND_CONFIG); if (command_run_line(CMD_CTX, "flash init") != ERROR_OK) return ERROR_FAIL; if (command_run_line(CMD_CTX, "mflash init") != ERROR_OK) return ERROR_FAIL; if (command_run_line(CMD_CTX, "nand init") != ERROR_OK) return ERROR_FAIL; if (command_run_line(CMD_CTX, "pld init") != ERROR_OK) return ERROR_FAIL; command_context_mode(CMD_CTX, COMMAND_EXEC); /* initialize telnet subsystem */ gdb_target_add_all(all_targets); target_register_event_callback(log_target_callback_event_handler, CMD_CTX); return ERROR_OK; } COMMAND_HANDLER(handle_add_script_search_dir_command) { if (CMD_ARGC != 1) return ERROR_COMMAND_SYNTAX_ERROR; add_script_search_dir(CMD_ARGV[0]); return ERROR_OK; } static const struct command_registration openocd_command_handlers[] = { { .name = "version", .jim_handler = jim_version_command, .mode = COMMAND_ANY, .help = "show program version", }, { .name = "noinit", .handler = &handle_noinit_command, .mode = COMMAND_CONFIG, .help = "Prevent 'init' from being called at startup.", }, { .name = "init", .handler = &handle_init_command, .mode = COMMAND_ANY, .help = "Initializes configured targets and servers. " "Changes command mode from CONFIG to EXEC. " "Unless 'noinit' is called, this command is " "called automatically at the end of startup.", }, { .name = "add_script_search_dir", .handler = &handle_add_script_search_dir_command, .mode = COMMAND_ANY, .help = "dir to search for config files and scripts", }, COMMAND_REGISTRATION_DONE }; static int openocd_register_commands(struct command_context *cmd_ctx) { return register_commands(cmd_ctx, NULL, openocd_command_handlers); } struct command_context *global_cmd_ctx; /* NB! this fn can be invoked outside this file for non PC hosted builds * NB! do not change to 'static'!!!! */ struct command_context *setup_command_handler(Jim_Interp *interp) { log_init(); LOG_DEBUG("log_init: complete"); const char *startup = openocd_startup_tcl; struct command_context *cmd_ctx = command_init(startup, interp); /* register subsystem commands */ typedef int (*command_registrant_t)(struct command_context *cmd_ctx_value); static const command_registrant_t command_registrants[] = { &openocd_register_commands, &server_register_commands, &gdb_register_commands, &log_register_commands, &transport_register_commands, &interface_register_commands, &target_register_commands, &flash_register_commands, &nand_register_commands, &pld_register_commands, &mflash_register_commands, NULL }; for (unsigned i = 0; NULL != command_registrants[i]; i++) { int retval = (*command_registrants[i])(cmd_ctx); if (ERROR_OK != retval) { command_done(cmd_ctx); return NULL; } } LOG_DEBUG("command registration: complete"); LOG_OUTPUT(OPENOCD_VERSION "\n" "Licensed under GNU GPL v2\n"); global_cmd_ctx = cmd_ctx; return cmd_ctx; } /** OpenOCD runtime meat that can become single-thread in future. It parse * commandline, reads configuration, sets up the target and starts server loop. * Commandline arguments are passed into this function from openocd_main(). */ static int openocd_thread(int argc, char *argv[], struct command_context *cmd_ctx) { int ret; if (parse_cmdline_args(cmd_ctx, argc, argv) != ERROR_OK) return EXIT_FAILURE; if (server_preinit() != ERROR_OK) return EXIT_FAILURE; ret = parse_config_file(cmd_ctx); if (ret != ERROR_OK) return EXIT_FAILURE; ret = server_init(cmd_ctx); if (ERROR_OK != ret) return EXIT_FAILURE; ret = command_run_line(cmd_ctx, "init_targets"); if (ERROR_OK != ret) ret = EXIT_FAILURE; if (init_at_startup) { ret = command_run_line(cmd_ctx, "init"); if (ERROR_OK != ret) return EXIT_FAILURE; } server_loop(cmd_ctx); server_quit(); return ret; } /* normally this is the main() function entry, but if OpenOCD is linked * into application, then this fn will not be invoked, but rather that * application will have it's own implementation of main(). */ int openocd_main(int argc, char *argv[]) { int ret; /* initialize commandline interface */ struct command_context *cmd_ctx; cmd_ctx = setup_command_handler(NULL); if (util_init(cmd_ctx) != ERROR_OK) return EXIT_FAILURE; if (ioutil_init(cmd_ctx) != ERROR_OK) return EXIT_FAILURE; LOG_OUTPUT("For bug reports, read\n\t" "http://openocd.sourceforge.net/doc/doxygen/bugs.html" "\n"); command_context_mode(cmd_ctx, COMMAND_CONFIG); command_set_output_handler(cmd_ctx, configuration_output_handler, NULL); /* Start the executable meat that can evolve into thread in future. */ ret = openocd_thread(argc, argv, cmd_ctx); unregister_all_commands(cmd_ctx, NULL); /* free commandline interface */ command_done(cmd_ctx); adapter_quit(); return ret; }
tthef/openocd
src/openocd.c
C
gpl-2.0
9,515
<?php namespace Drupal\d_migrate\Plugin\migrate\source; trait bbCode { protected function bbCode($body) { $preg_url = [ '#([src|href]=["\'])http://govorit.donetsk.ua#' => '\\1', '#([src|href]=["\'])http://fromdonetsk.net#' => '\\1', '#([src|href]=["\'])http://fromdonetsk.org#' => '\\1', ]; $preg = [ '#\[quote=([^\]]+?)\s*\](.*?)\[/quote(?::\w+)?\]#si'=> "<blockquote><b>\\1</b>:\n \\2</blockquote>", //https://regex101.com/r/wB3nZ1/1 '#\[quote(?::\w+)?\](.*?)\[/(quote)(?::\w+)?\]#si'=> '<blockquote>\\1</blockquote>', '#\[img(?::\w+)?\]([\w:;&,~%+!=@\/\.\-\#\?]+)\[/img(?::\w+)?\]#si' => '<img src="\\1" />', '#\[(b|strong)(?::\w+)?\](.*?)\[/(b|strong)(?::\w+)?\]#si' => '<b>\\2</b>', '#\[(i|em)(?::\w+)?\](.*?)\[/(i|em)(?::\w+)?\]#si' => '<i>\\2</i>', '#\[s(?::\w+)?\](.*?)\[/s(?::\w+)?\]#si' => '<s>\\1</s>', '#\[url(?::\w+)?\]www\.([\w:;&,%+~!=@\/\.\-\#\?]+?)\[/url(?::\w+)?\]#si' => '<a href="http://www.\\1">\\1</a>', '#\[url(?::\w+)?\]([\w:;&,%+~!=@\/\.\-\#\?]+?)\[/url(?::\w+)?\]#si' => '<a href="\\1">\\1</a>', '#\[url=www\.([\w:;&,%+~!=@\/\.\-\#\?]+?)\](.*?)\[/url(?::\w+)?\]#si' => '<a href="http://www.\\1">\\2</a>', '#\[url=([\w:;&,%+~!=@\/\.\-\#\?]+?)\](.*?)\[/url(?::\w+)?\]#si' => '<a href="\\1">\\2</a>', '#\[youtube\](https?://)?(www\.youtube\.com/watch\?v=)?([0-9a-zA-Z_\-]+).*?\[/youtube\]#si' => '<d-media-link><a href="http://youtu.be/\\3" target=_blank>http://youtu.be/\\3</a></d-media-link>', '#\[rutube\]http://rutube\.ru/tracks/(\d+).*\[/rutube\]#si' => '<d-media-link><a href="http://rutube.ru/tracks/\\1.html" target=_blank>http://rutube.ru/tracks/\\1.html</a></d-media-link>', "#<object((?!object>).)*?//www\.youtube\.com/v/([0-9a-zA-Z_\-]+)((?!object>).)*?object>#si" => '<d-media-link><a href="http://youtu.be/\\2" target=_blank>http://youtu.be/\\2</a></d-media-link>', "#<iframe((?!iframe>).)*?//www\.youtube\.com/embed/([0-9a-zA-Z_\-]+)((?!iframe>).)*?iframe>#si" => '<d-media-link><a href="http://youtu.be/\\2" target=_blank>http://youtu.be/\\2</a></d-media-link>', "#<object((?!object>).)*?clip_id\=([0-9]+)((?!object>).)*?object>#si" => '<d-media-link><a href="http://vimeo.com/\\2" target=_blank>http://vimeo.com/\\2</a></d-media-link>', "#<iframe((?!iframe>).)*?//player\.vimeo\.com/video/([0-9]+)((?!iframe>).)*?iframe>#si" => '<d-media-link><a href="http://vimeo.com/\\2" target=_blank>http://vimeo.com/\\2</a></d-media-link>', '#<div style="background-color:\#FFF9D4.*?>(.*?)</div>#si' => '<blockquote>\\1</blockquote>', ]; $body = preg_replace(array_keys($preg), array_values($preg), $body); $body = preg_replace(array_keys($preg_url), array_values($preg_url), $body); $body = str_replace('govorit.donetsk.ua', 'fromdonetsk.net', $body); return $body; } }
d-f-d/donetsk
web/modules/custom/d_migrate/src/Plugin/migrate/source/bbCode.php
PHP
gpl-2.0
2,868
<?php /** * Check if AMP is active * * @package ChristophHerr\Prometheus2\Utilities * @since 2.0.0 * @author Christoph Herr * @link https://www.christophherr.com * @license GNU General Public License 2+ */ namespace ChristophHerr\Prometheus2\Utilities; /** * Determine whether this is an AMP response. * * Note that this must only be called after the parse_query action. * * @link https://github.com/Automattic/amp-wp * * @since 2.0.0 * * @return bool */ function is_amp_response() { return function_exists( 'is_amp_endpoint' ) && is_amp_endpoint(); } /** * Determine whether amp-live-list should be used for the comment list. * * @since 2.0.0 * * @return bool */ function maybe_use_amp_live_list_comments() { if ( ! is_amp_response() ) { return false; } $amp_theme_support = get_theme_support( 'amp' ); return ! empty( $amp_theme_support[0]['comments_live_list'] ); }
christophherr/prometheus
lib/utilities/amp-checks.php
PHP
gpl-2.0
933
/*! * jQuery JavaScript Library v2.0.3 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2013-07-03T13:30Z */ (function( window, undefined ) { // Can't do this because several apps including ASP.NET trace // the stack via arguments.caller.callee and Firefox dies if // you try to trace through "use strict" call chains. (#13335) // Support: Firefox 18+ //"use strict"; var // A central reference to the root jQuery(document) rootjQuery, // The deferred used on DOM ready readyList, // Support: IE9 // For `typeof xmlNode.method` instead of `xmlNode.method !== undefined` core_strundefined = typeof undefined, // Use the correct document accordingly with window argument (sandbox) location = window.location, document = window.document, docElem = document.documentElement, // Map over jQuery in case of overwrite _jQuery = window.jQuery, // Map over the $ in case of overwrite _$ = window.$, // [[Class]] -> type pairs class2type = {}, // List of deleted data cache ids, so we can reuse them core_deletedIds = [], core_version = "2.0.3", // Save a reference to some core methods core_concat = core_deletedIds.concat, core_push = core_deletedIds.push, core_slice = core_deletedIds.slice, core_indexOf = core_deletedIds.indexOf, core_toString = class2type.toString, core_hasOwn = class2type.hasOwnProperty, core_trim = core_version.trim, // Define a local copy of jQuery jQuery = function( selector, context ) { // The jQuery object is actually just the init constructor 'enhanced' return new jQuery.fn.init( selector, context, rootjQuery ); }, // Used for matching numbers core_pnum = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source, // Used for splitting on whitespace core_rnotwhite = /\S+/g, // A simple way to check for HTML strings // Prioritize #id over <tag> to avoid XSS via location.hash (#9521) // Strict HTML recognition (#11290: must start with <) rquickExpr = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/, // Match a standalone tag rsingleTag = /^<(\w+)\s*\/?>(?:<\/\1>|)$/, // Matches dashed string for camelizing rmsPrefix = /^-ms-/, rdashAlpha = /-([\da-z])/gi, // Used by jQuery.camelCase as callback to replace() fcamelCase = function( all, letter ) { return letter.toUpperCase(); }, // The ready event handler and self cleanup method completed = function() { document.removeEventListener( "DOMContentLoaded", completed, false ); window.removeEventListener( "load", completed, false ); jQuery.ready(); }; jQuery.fn = jQuery.prototype = { // The current version of jQuery being used jquery: core_version, constructor: jQuery, init: function( selector, context, rootjQuery ) { var match, elem; // HANDLE: $(""), $(null), $(undefined), $(false) if ( !selector ) { return this; } // Handle HTML strings if ( typeof selector === "string" ) { if ( selector.charAt(0) === "<" && selector.charAt( selector.length - 1 ) === ">" && selector.length >= 3 ) { // Assume that strings that start and end with <> are HTML and skip the regex check match = [ null, selector, null ]; } else { match = rquickExpr.exec( selector ); } // Match html or make sure no context is specified for #id if ( match && (match[1] || !context) ) { // HANDLE: $(html) -> $(array) if ( match[1] ) { context = context instanceof jQuery ? context[0] : context; // scripts is true for back-compat jQuery.merge( this, jQuery.parseHTML( match[1], context && context.nodeType ? context.ownerDocument || context : document, true ) ); // HANDLE: $(html, props) if ( rsingleTag.test( match[1] ) && jQuery.isPlainObject( context ) ) { for ( match in context ) { // Properties of context are called as methods if possible if ( jQuery.isFunction( this[ match ] ) ) { this[ match ]( context[ match ] ); // ...and otherwise set as attributes } else { this.attr( match, context[ match ] ); } } } return this; // HANDLE: $(#id) } else { elem = document.getElementById( match[2] ); // Check parentNode to catch when Blackberry 4.6 returns // nodes that are no longer in the document #6963 if ( elem && elem.parentNode ) { // Inject the element directly into the jQuery object this.length = 1; this[0] = elem; } this.context = document; this.selector = selector; return this; } // HANDLE: $(expr, $(...)) } else if ( !context || context.jquery ) { return ( context || rootjQuery ).find( selector ); // HANDLE: $(expr, context) // (which is just equivalent to: $(context).find(expr) } else { return this.constructor( context ).find( selector ); } // HANDLE: $(DOMElement) } else if ( selector.nodeType ) { this.context = this[0] = selector; this.length = 1; return this; // HANDLE: $(function) // Shortcut for document ready } else if ( jQuery.isFunction( selector ) ) { return rootjQuery.ready( selector ); } if ( selector.selector !== undefined ) { this.selector = selector.selector; this.context = selector.context; } return jQuery.makeArray( selector, this ); }, // Start with an empty selector selector: "", // The default length of a jQuery object is 0 length: 0, toArray: function() { return core_slice.call( this ); }, // Get the Nth element in the matched element set OR // Get the whole matched element set as a clean array get: function( num ) { return num == null ? // Return a 'clean' array this.toArray() : // Return just the object ( num < 0 ? this[ this.length + num ] : this[ num ] ); }, // Take an array of elements and push it onto the stack // (returning the new matched element set) pushStack: function( elems ) { // Build a new jQuery matched element set var ret = jQuery.merge( this.constructor(), elems ); // Add the old object onto the stack (as a reference) ret.prevObject = this; ret.context = this.context; // Return the newly-formed element set return ret; }, // Execute a callback for every element in the matched set. // (You can seed the arguments with an array of args, but this is // only used internally.) each: function( callback, args ) { return jQuery.each( this, callback, args ); }, ready: function( fn ) { // Add the callback jQuery.ready.promise().done( fn ); return this; }, slice: function() { return this.pushStack( core_slice.apply( this, arguments ) ); }, first: function() { return this.eq( 0 ); }, last: function() { return this.eq( -1 ); }, eq: function( i ) { var len = this.length, j = +i + ( i < 0 ? len : 0 ); return this.pushStack( j >= 0 && j < len ? [ this[j] ] : [] ); }, map: function( callback ) { return this.pushStack( jQuery.map(this, function( elem, i ) { return callback.call( elem, i, elem ); })); }, end: function() { return this.prevObject || this.constructor(null); }, // For internal use only. // Behaves like an Array's method, not like a jQuery method. push: core_push, sort: [].sort, splice: [].splice }; // Give the init function the jQuery prototype for later instantiation jQuery.fn.init.prototype = jQuery.fn; jQuery.extend = jQuery.fn.extend = function() { var options, name, src, copy, copyIsArray, clone, target = arguments[0] || {}, i = 1, length = arguments.length, deep = false; // Handle a deep copy situation if ( typeof target === "boolean" ) { deep = target; target = arguments[1] || {}; // skip the boolean and the target i = 2; } // Handle case when target is a string or something (possible in deep copy) if ( typeof target !== "object" && !jQuery.isFunction(target) ) { target = {}; } // extend jQuery itself if only one argument is passed if ( length === i ) { target = this; --i; } for ( ; i < length; i++ ) { // Only deal with non-null/undefined values if ( (options = arguments[ i ]) != null ) { // Extend the base object for ( name in options ) { src = target[ name ]; copy = options[ name ]; // Prevent never-ending loop if ( target === copy ) { continue; } // Recurse if we're merging plain objects or arrays if ( deep && copy && ( jQuery.isPlainObject(copy) || (copyIsArray = jQuery.isArray(copy)) ) ) { if ( copyIsArray ) { copyIsArray = false; clone = src && jQuery.isArray(src) ? src : []; } else { clone = src && jQuery.isPlainObject(src) ? src : {}; } // Never move original objects, clone them target[ name ] = jQuery.extend( deep, clone, copy ); // Don't bring in undefined values } else if ( copy !== undefined ) { target[ name ] = copy; } } } } // Return the modified object return target; }; jQuery.extend({ // Unique for each copy of jQuery on the page expando: "jQuery" + ( core_version + Math.random() ).replace( /\D/g, "" ), noConflict: function( deep ) { if ( window.$ === jQuery ) { window.$ = _$; } if ( deep && window.jQuery === jQuery ) { window.jQuery = _jQuery; } return jQuery; }, // Is the DOM ready to be used? Set to true once it occurs. isReady: false, // A counter to track how many items to wait for before // the ready event fires. See #6781 readyWait: 1, // Hold (or release) the ready event holdReady: function( hold ) { if ( hold ) { jQuery.readyWait++; } else { jQuery.ready( true ); } }, // Handle when the DOM is ready ready: function( wait ) { // Abort if there are pending holds or we're already ready if ( wait === true ? --jQuery.readyWait : jQuery.isReady ) { return; } // Remember that the DOM is ready jQuery.isReady = true; // If a normal DOM Ready event fired, decrement, and wait if need be if ( wait !== true && --jQuery.readyWait > 0 ) { return; } // If there are functions bound, to execute readyList.resolveWith( document, [ jQuery ] ); // Trigger any bound ready events if ( jQuery.fn.trigger ) { jQuery( document ).trigger("ready").off("ready"); } }, // See test/unit/core.js for details concerning isFunction. // Since version 1.3, DOM methods and functions like alert // aren't supported. They return false on IE (#2968). isFunction: function( obj ) { return jQuery.type(obj) === "function"; }, isArray: Array.isArray, isWindow: function( obj ) { return obj != null && obj === obj.window; }, isNumeric: function( obj ) { return !isNaN( parseFloat(obj) ) && isFinite( obj ); }, type: function( obj ) { if ( obj == null ) { return String( obj ); } // Support: Safari <= 5.1 (functionish RegExp) return typeof obj === "object" || typeof obj === "function" ? class2type[ core_toString.call(obj) ] || "object" : typeof obj; }, isPlainObject: function( obj ) { // Not plain objects: // - Any object or value whose internal [[Class]] property is not "[object Object]" // - DOM nodes // - window if ( jQuery.type( obj ) !== "object" || obj.nodeType || jQuery.isWindow( obj ) ) { return false; } // Support: Firefox <20 // The try/catch suppresses exceptions thrown when attempting to access // the "constructor" property of certain host objects, ie. |window.location| // https://bugzilla.mozilla.org/show_bug.cgi?id=814622 try { if ( obj.constructor && !core_hasOwn.call( obj.constructor.prototype, "isPrototypeOf" ) ) { return false; } } catch ( e ) { return false; } // If the function hasn't returned already, we're confident that // |obj| is a plain object, created by {} or constructed with new Object return true; }, isEmptyObject: function( obj ) { var name; for ( name in obj ) { return false; } return true; }, error: function( msg ) { throw new Error( msg ); }, // data: string of html // context (optional): If specified, the fragment will be created in this context, defaults to document // keepScripts (optional): If true, will include scripts passed in the html string parseHTML: function( data, context, keepScripts ) { if ( !data || typeof data !== "string" ) { return null; } if ( typeof context === "boolean" ) { keepScripts = context; context = false; } context = context || document; var parsed = rsingleTag.exec( data ), scripts = !keepScripts && []; // Single tag if ( parsed ) { return [ context.createElement( parsed[1] ) ]; } parsed = jQuery.buildFragment( [ data ], context, scripts ); if ( scripts ) { jQuery( scripts ).remove(); } return jQuery.merge( [], parsed.childNodes ); }, parseJSON: JSON.parse, // Cross-browser xml parsing parseXML: function( data ) { var xml, tmp; if ( !data || typeof data !== "string" ) { return null; } // Support: IE9 try { tmp = new DOMParser(); xml = tmp.parseFromString( data , "text/xml" ); } catch ( e ) { xml = undefined; } if ( !xml || xml.getElementsByTagName( "parsererror" ).length ) { jQuery.error( "Invalid XML: " + data ); } return xml; }, noop: function() {}, // Evaluates a script in a global context globalEval: function( code ) { var script, indirect = eval; code = jQuery.trim( code ); if ( code ) { // If the code includes a valid, prologue position // strict mode pragma, execute code by injecting a // script tag into the document. if ( code.indexOf("use strict") === 1 ) { script = document.createElement("script"); script.text = code; document.head.appendChild( script ).parentNode.removeChild( script ); } else { // Otherwise, avoid the DOM node creation, insertion // and removal by using an indirect global eval indirect( code ); } } }, // Convert dashed to camelCase; used by the css and data modules // Microsoft forgot to hump their vendor prefix (#9572) camelCase: function( string ) { return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase ); }, nodeName: function( elem, name ) { return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase(); }, // args is for internal usage only each: function( obj, callback, args ) { var value, i = 0, length = obj.length, isArray = isArraylike( obj ); if ( args ) { if ( isArray ) { for ( ; i < length; i++ ) { value = callback.apply( obj[ i ], args ); if ( value === false ) { break; } } } else { for ( i in obj ) { value = callback.apply( obj[ i ], args ); if ( value === false ) { break; } } } // A special, fast, case for the most common use of each } else { if ( isArray ) { for ( ; i < length; i++ ) { value = callback.call( obj[ i ], i, obj[ i ] ); if ( value === false ) { break; } } } else { for ( i in obj ) { value = callback.call( obj[ i ], i, obj[ i ] ); if ( value === false ) { break; } } } } return obj; }, trim: function( text ) { return text == null ? "" : core_trim.call( text ); }, // results is for internal usage only makeArray: function( arr, results ) { var ret = results || []; if ( arr != null ) { if ( isArraylike( Object(arr) ) ) { jQuery.merge( ret, typeof arr === "string" ? [ arr ] : arr ); } else { core_push.call( ret, arr ); } } return ret; }, inArray: function( elem, arr, i ) { return arr == null ? -1 : core_indexOf.call( arr, elem, i ); }, merge: function( first, second ) { var l = second.length, i = first.length, j = 0; if ( typeof l === "number" ) { for ( ; j < l; j++ ) { first[ i++ ] = second[ j ]; } } else { while ( second[j] !== undefined ) { first[ i++ ] = second[ j++ ]; } } first.length = i; return first; }, grep: function( elems, callback, inv ) { var retVal, ret = [], i = 0, length = elems.length; inv = !!inv; // Go through the array, only saving the items // that pass the validator function for ( ; i < length; i++ ) { retVal = !!callback( elems[ i ], i ); if ( inv !== retVal ) { ret.push( elems[ i ] ); } } return ret; }, // arg is for internal usage only map: function( elems, callback, arg ) { var value, i = 0, length = elems.length, isArray = isArraylike( elems ), ret = []; // Go through the array, translating each of the items to their if ( isArray ) { for ( ; i < length; i++ ) { value = callback( elems[ i ], i, arg ); if ( value != null ) { ret[ ret.length ] = value; } } // Go through every key on the object, } else { for ( i in elems ) { value = callback( elems[ i ], i, arg ); if ( value != null ) { ret[ ret.length ] = value; } } } // Flatten any nested arrays return core_concat.apply( [], ret ); }, // A global GUID counter for objects guid: 1, // Bind a function to a context, optionally partially applying any // arguments. proxy: function( fn, context ) { var tmp, args, proxy; if ( typeof context === "string" ) { tmp = fn[ context ]; context = fn; fn = tmp; } // Quick check to determine if target is callable, in the spec // this throws a TypeError, but we will just return undefined. if ( !jQuery.isFunction( fn ) ) { return undefined; } // Simulated bind args = core_slice.call( arguments, 2 ); proxy = function() { return fn.apply( context || this, args.concat( core_slice.call( arguments ) ) ); }; // Set the guid of unique handler to the same of original handler, so it can be removed proxy.guid = fn.guid = fn.guid || jQuery.guid++; return proxy; }, // Multifunctional method to get and set values of a collection // The value/s can optionally be executed if it's a function access: function( elems, fn, key, value, chainable, emptyGet, raw ) { var i = 0, length = elems.length, bulk = key == null; // Sets many values if ( jQuery.type( key ) === "object" ) { chainable = true; for ( i in key ) { jQuery.access( elems, fn, i, key[i], true, emptyGet, raw ); } // Sets one value } else if ( value !== undefined ) { chainable = true; if ( !jQuery.isFunction( value ) ) { raw = true; } if ( bulk ) { // Bulk operations run against the entire set if ( raw ) { fn.call( elems, value ); fn = null; // ...except when executing function values } else { bulk = fn; fn = function( elem, key, value ) { return bulk.call( jQuery( elem ), value ); }; } } if ( fn ) { for ( ; i < length; i++ ) { fn( elems[i], key, raw ? value : value.call( elems[i], i, fn( elems[i], key ) ) ); } } } return chainable ? elems : // Gets bulk ? fn.call( elems ) : length ? fn( elems[0], key ) : emptyGet; }, now: Date.now, // A method for quickly swapping in/out CSS properties to get correct calculations. // Note: this method belongs to the css module but it's needed here for the support module. // If support gets modularized, this method should be moved back to the css module. swap: function( elem, options, callback, args ) { var ret, name, old = {}; // Remember the old values, and insert the new ones for ( name in options ) { old[ name ] = elem.style[ name ]; elem.style[ name ] = options[ name ]; } ret = callback.apply( elem, args || [] ); // Revert the old values for ( name in options ) { elem.style[ name ] = old[ name ]; } return ret; } }); jQuery.ready.promise = function( obj ) { if ( !readyList ) { readyList = jQuery.Deferred(); // Catch cases where $(document).ready() is called after the browser event has already occurred. // we once tried to use readyState "interactive" here, but it caused issues like the one // discovered by ChrisS here: http://bugs.jquery.com/ticket/12282#comment:15 if ( document.readyState === "complete" ) { // Handle it asynchronously to allow scripts the opportunity to delay ready setTimeout( jQuery.ready ); } else { // Use the handy event callback document.addEventListener( "DOMContentLoaded", completed, false ); // A fallback to window.onload, that will always work window.addEventListener( "load", completed, false ); } } return readyList.promise( obj ); }; // Populate the class2type map jQuery.each("Boolean Number String Function Array Date RegExp Object Error".split(" "), function(i, name) { class2type[ "[object " + name + "]" ] = name.toLowerCase(); }); function isArraylike( obj ) { var length = obj.length, type = jQuery.type( obj ); if ( jQuery.isWindow( obj ) ) { return false; } if ( obj.nodeType === 1 && length ) { return true; } return type === "array" || type !== "function" && ( length === 0 || typeof length === "number" && length > 0 && ( length - 1 ) in obj ); } // All jQuery objects should point back to these rootjQuery = jQuery(document); /*! * Sizzle CSS Selector Engine v1.9.4-pre * http://sizzlejs.com/ * * Copyright 2013 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2013-06-03 */ (function( window, undefined ) { var i, support, cachedruns, Expr, getText, isXML, compile, outermostContext, sortInput, // Local document vars setDocument, document, docElem, documentIsHTML, rbuggyQSA, rbuggyMatches, matches, contains, // Instance-specific data expando = "sizzle" + -(new Date()), preferredDoc = window.document, dirruns = 0, done = 0, classCache = createCache(), tokenCache = createCache(), compilerCache = createCache(), hasDuplicate = false, sortOrder = function( a, b ) { if ( a === b ) { hasDuplicate = true; return 0; } return 0; }, // General-purpose constants strundefined = typeof undefined, MAX_NEGATIVE = 1 << 31, // Instance methods hasOwn = ({}).hasOwnProperty, arr = [], pop = arr.pop, push_native = arr.push, push = arr.push, slice = arr.slice, // Use a stripped-down indexOf if we can't use a native one indexOf = arr.indexOf || function( elem ) { var i = 0, len = this.length; for ( ; i < len; i++ ) { if ( this[i] === elem ) { return i; } } return -1; }, booleans = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped", // Regular expressions // Whitespace characters http://www.w3.org/TR/css3-selectors/#whitespace whitespace = "[\\x20\\t\\r\\n\\f]", // http://www.w3.org/TR/css3-syntax/#characters characterEncoding = "(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+", // Loosely modeled on CSS identifier characters // An unquoted value should be a CSS identifier http://www.w3.org/TR/css3-selectors/#attribute-selectors // Proper syntax: http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier identifier = characterEncoding.replace( "w", "w#" ), // Acceptable operators http://www.w3.org/TR/selectors/#attribute-selectors attributes = "\\[" + whitespace + "*(" + characterEncoding + ")" + whitespace + "*(?:([*^$|!~]?=)" + whitespace + "*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|(" + identifier + ")|)|)" + whitespace + "*\\]", // Prefer arguments quoted, // then not containing pseudos/brackets, // then attribute selectors/non-parenthetical expressions, // then anything else // These preferences are here to reduce the number of selectors // needing tokenize in the PSEUDO preFilter pseudos = ":(" + characterEncoding + ")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|" + attributes.replace( 3, 8 ) + ")*)|.*)\\)|)", // Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", "g" ), rcomma = new RegExp( "^" + whitespace + "*," + whitespace + "*" ), rcombinators = new RegExp( "^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + "*" ), rsibling = new RegExp( whitespace + "*[+~]" ), rattributeQuotes = new RegExp( "=" + whitespace + "*([^\\]'\"]*)" + whitespace + "*\\]", "g" ), rpseudo = new RegExp( pseudos ), ridentifier = new RegExp( "^" + identifier + "$" ), matchExpr = { "ID": new RegExp( "^#(" + characterEncoding + ")" ), "CLASS": new RegExp( "^\\.(" + characterEncoding + ")" ), "TAG": new RegExp( "^(" + characterEncoding.replace( "w", "w*" ) + ")" ), "ATTR": new RegExp( "^" + attributes ), "PSEUDO": new RegExp( "^" + pseudos ), "CHILD": new RegExp( "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + whitespace + "*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + whitespace + "*(\\d+)|))" + whitespace + "*\\)|)", "i" ), "bool": new RegExp( "^(?:" + booleans + ")$", "i" ), // For use in libraries implementing .is() // We use this for POS matching in `select` "needsContext": new RegExp( "^" + whitespace + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + whitespace + "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i" ) }, rnative = /^[^{]+\{\s*\[native \w/, // Easily-parseable/retrievable ID or TAG or CLASS selectors rquickExpr = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, rinputs = /^(?:input|select|textarea|button)$/i, rheader = /^h\d$/i, rescape = /'|\\/g, // CSS escapes http://www.w3.org/TR/CSS21/syndata.html#escaped-characters runescape = new RegExp( "\\\\([\\da-f]{1,6}" + whitespace + "?|(" + whitespace + ")|.)", "ig" ), funescape = function( _, escaped, escapedWhitespace ) { var high = "0x" + escaped - 0x10000; // NaN means non-codepoint // Support: Firefox // Workaround erroneous numeric interpretation of +"0x" return high !== high || escapedWhitespace ? escaped : // BMP codepoint high < 0 ? String.fromCharCode( high + 0x10000 ) : // Supplemental Plane codepoint (surrogate pair) String.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 ); }; // Optimize for push.apply( _, NodeList ) try { push.apply( (arr = slice.call( preferredDoc.childNodes )), preferredDoc.childNodes ); // Support: Android<4.0 // Detect silently failing push.apply arr[ preferredDoc.childNodes.length ].nodeType; } catch ( e ) { push = { apply: arr.length ? // Leverage slice if possible function( target, els ) { push_native.apply( target, slice.call(els) ); } : // Support: IE<9 // Otherwise append directly function( target, els ) { var j = target.length, i = 0; // Can't trust NodeList.length while ( (target[j++] = els[i++]) ) {} target.length = j - 1; } }; } function Sizzle( selector, context, results, seed ) { var match, elem, m, nodeType, // QSA vars i, groups, old, nid, newContext, newSelector; if ( ( context ? context.ownerDocument || context : preferredDoc ) !== document ) { setDocument( context ); } context = context || document; results = results || []; if ( !selector || typeof selector !== "string" ) { return results; } if ( (nodeType = context.nodeType) !== 1 && nodeType !== 9 ) { return []; } if ( documentIsHTML && !seed ) { // Shortcuts if ( (match = rquickExpr.exec( selector )) ) { // Speed-up: Sizzle("#ID") if ( (m = match[1]) ) { if ( nodeType === 9 ) { elem = context.getElementById( m ); // Check parentNode to catch when Blackberry 4.6 returns // nodes that are no longer in the document #6963 if ( elem && elem.parentNode ) { // Handle the case where IE, Opera, and Webkit return items // by name instead of ID if ( elem.id === m ) { results.push( elem ); return results; } } else { return results; } } else { // Context is not a document if ( context.ownerDocument && (elem = context.ownerDocument.getElementById( m )) && contains( context, elem ) && elem.id === m ) { results.push( elem ); return results; } } // Speed-up: Sizzle("TAG") } else if ( match[2] ) { push.apply( results, context.getElementsByTagName( selector ) ); return results; // Speed-up: Sizzle(".CLASS") } else if ( (m = match[3]) && support.getElementsByClassName && context.getElementsByClassName ) { push.apply( results, context.getElementsByClassName( m ) ); return results; } } // QSA path if ( support.qsa && (!rbuggyQSA || !rbuggyQSA.test( selector )) ) { nid = old = expando; newContext = context; newSelector = nodeType === 9 && selector; // qSA works strangely on Element-rooted queries // We can work around this by specifying an extra ID on the root // and working up from there (Thanks to Andrew Dupont for the technique) // IE 8 doesn't work on object elements if ( nodeType === 1 && context.nodeName.toLowerCase() !== "object" ) { groups = tokenize( selector ); if ( (old = context.getAttribute("id")) ) { nid = old.replace( rescape, "\\$&" ); } else { context.setAttribute( "id", nid ); } nid = "[id='" + nid + "'] "; i = groups.length; while ( i-- ) { groups[i] = nid + toSelector( groups[i] ); } newContext = rsibling.test( selector ) && context.parentNode || context; newSelector = groups.join(","); } if ( newSelector ) { try { push.apply( results, newContext.querySelectorAll( newSelector ) ); return results; } catch(qsaError) { } finally { if ( !old ) { context.removeAttribute("id"); } } } } } // All others return select( selector.replace( rtrim, "$1" ), context, results, seed ); } /** * Create key-value caches of limited size * @returns {Function(string, Object)} Returns the Object data after storing it on itself with * property name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength) * deleting the oldest entry */ function createCache() { var keys = []; function cache( key, value ) { // Use (key + " ") to avoid collision with native prototype properties (see Issue #157) if ( keys.push( key += " " ) > Expr.cacheLength ) { // Only keep the most recent entries delete cache[ keys.shift() ]; } return (cache[ key ] = value); } return cache; } /** * Mark a function for special use by Sizzle * @param {Function} fn The function to mark */ function markFunction( fn ) { fn[ expando ] = true; return fn; } /** * Support testing using an element * @param {Function} fn Passed the created div and expects a boolean result */ function assert( fn ) { var div = document.createElement("div"); try { return !!fn( div ); } catch (e) { return false; } finally { // Remove from its parent by default if ( div.parentNode ) { div.parentNode.removeChild( div ); } // release memory in IE div = null; } } /** * Adds the same handler for all of the specified attrs * @param {String} attrs Pipe-separated list of attributes * @param {Function} handler The method that will be applied */ function addHandle( attrs, handler ) { var arr = attrs.split("|"), i = attrs.length; while ( i-- ) { Expr.attrHandle[ arr[i] ] = handler; } } /** * Checks document order of two siblings * @param {Element} a * @param {Element} b * @returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b */ function siblingCheck( a, b ) { var cur = b && a, diff = cur && a.nodeType === 1 && b.nodeType === 1 && ( ~b.sourceIndex || MAX_NEGATIVE ) - ( ~a.sourceIndex || MAX_NEGATIVE ); // Use IE sourceIndex if available on both nodes if ( diff ) { return diff; } // Check if b follows a if ( cur ) { while ( (cur = cur.nextSibling) ) { if ( cur === b ) { return -1; } } } return a ? 1 : -1; } /** * Returns a function to use in pseudos for input types * @param {String} type */ function createInputPseudo( type ) { return function( elem ) { var name = elem.nodeName.toLowerCase(); return name === "input" && elem.type === type; }; } /** * Returns a function to use in pseudos for buttons * @param {String} type */ function createButtonPseudo( type ) { return function( elem ) { var name = elem.nodeName.toLowerCase(); return (name === "input" || name === "button") && elem.type === type; }; } /** * Returns a function to use in pseudos for positionals * @param {Function} fn */ function createPositionalPseudo( fn ) { return markFunction(function( argument ) { argument = +argument; return markFunction(function( seed, matches ) { var j, matchIndexes = fn( [], seed.length, argument ), i = matchIndexes.length; // Match elements found at the specified indexes while ( i-- ) { if ( seed[ (j = matchIndexes[i]) ] ) { seed[j] = !(matches[j] = seed[j]); } } }); }); } /** * Detect xml * @param {Element|Object} elem An element or a document */ isXML = Sizzle.isXML = function( elem ) { // documentElement is verified for cases where it doesn't yet exist // (such as loading iframes in IE - #4833) var documentElement = elem && (elem.ownerDocument || elem).documentElement; return documentElement ? documentElement.nodeName !== "HTML" : false; }; // Expose support vars for convenience support = Sizzle.support = {}; /** * Sets document-related variables once based on the current document * @param {Element|Object} [doc] An element or document object to use to set the document * @returns {Object} Returns the current document */ setDocument = Sizzle.setDocument = function( node ) { var doc = node ? node.ownerDocument || node : preferredDoc, parent = doc.defaultView; // If no document and documentElement is available, return if ( doc === document || doc.nodeType !== 9 || !doc.documentElement ) { return document; } // Set our document document = doc; docElem = doc.documentElement; // Support tests documentIsHTML = !isXML( doc ); // Support: IE>8 // If iframe document is assigned to "document" variable and if iframe has been reloaded, // IE will throw "permission denied" error when accessing "document" variable, see jQuery #13936 // IE6-8 do not support the defaultView property so parent will be undefined if ( parent && parent.attachEvent && parent !== parent.top ) { parent.attachEvent( "onbeforeunload", function() { setDocument(); }); } /* Attributes ---------------------------------------------------------------------- */ // Support: IE<8 // Verify that getAttribute really returns attributes and not properties (excepting IE8 booleans) support.attributes = assert(function( div ) { div.className = "i"; return !div.getAttribute("className"); }); /* getElement(s)By* ---------------------------------------------------------------------- */ // Check if getElementsByTagName("*") returns only elements support.getElementsByTagName = assert(function( div ) { div.appendChild( doc.createComment("") ); return !div.getElementsByTagName("*").length; }); // Check if getElementsByClassName can be trusted support.getElementsByClassName = assert(function( div ) { div.innerHTML = "<div class='a'></div><div class='a i'></div>"; // Support: Safari<4 // Catch class over-caching div.firstChild.className = "i"; // Support: Opera<10 // Catch gEBCN failure to find non-leading classes return div.getElementsByClassName("i").length === 2; }); // Support: IE<10 // Check if getElementById returns elements by name // The broken getElementById methods don't pick up programatically-set names, // so use a roundabout getElementsByName test support.getById = assert(function( div ) { docElem.appendChild( div ).id = expando; return !doc.getElementsByName || !doc.getElementsByName( expando ).length; }); // ID find and filter if ( support.getById ) { Expr.find["ID"] = function( id, context ) { if ( typeof context.getElementById !== strundefined && documentIsHTML ) { var m = context.getElementById( id ); // Check parentNode to catch when Blackberry 4.6 returns // nodes that are no longer in the document #6963 return m && m.parentNode ? [m] : []; } }; Expr.filter["ID"] = function( id ) { var attrId = id.replace( runescape, funescape ); return function( elem ) { return elem.getAttribute("id") === attrId; }; }; } else { // Support: IE6/7 // getElementById is not reliable as a find shortcut delete Expr.find["ID"]; Expr.filter["ID"] = function( id ) { var attrId = id.replace( runescape, funescape ); return function( elem ) { var node = typeof elem.getAttributeNode !== strundefined && elem.getAttributeNode("id"); return node && node.value === attrId; }; }; } // Tag Expr.find["TAG"] = support.getElementsByTagName ? function( tag, context ) { if ( typeof context.getElementsByTagName !== strundefined ) { return context.getElementsByTagName( tag ); } } : function( tag, context ) { var elem, tmp = [], i = 0, results = context.getElementsByTagName( tag ); // Filter out possible comments if ( tag === "*" ) { while ( (elem = results[i++]) ) { if ( elem.nodeType === 1 ) { tmp.push( elem ); } } return tmp; } return results; }; // Class Expr.find["CLASS"] = support.getElementsByClassName && function( className, context ) { if ( typeof context.getElementsByClassName !== strundefined && documentIsHTML ) { return context.getElementsByClassName( className ); } }; /* QSA/matchesSelector ---------------------------------------------------------------------- */ // QSA and matchesSelector support // matchesSelector(:active) reports false when true (IE9/Opera 11.5) rbuggyMatches = []; // qSa(:focus) reports false when true (Chrome 21) // We allow this because of a bug in IE8/9 that throws an error // whenever `document.activeElement` is accessed on an iframe // So, we allow :focus to pass through QSA all the time to avoid the IE error // See http://bugs.jquery.com/ticket/13378 rbuggyQSA = []; if ( (support.qsa = rnative.test( doc.querySelectorAll )) ) { // Build QSA regex // Regex strategy adopted from Diego Perini assert(function( div ) { // Select is set to empty string on purpose // This is to test IE's treatment of not explicitly // setting a boolean content attribute, // since its presence should be enough // http://bugs.jquery.com/ticket/12359 div.innerHTML = "<select><option selected=''></option></select>"; // Support: IE8 // Boolean attributes and "value" are not treated correctly if ( !div.querySelectorAll("[selected]").length ) { rbuggyQSA.push( "\\[" + whitespace + "*(?:value|" + booleans + ")" ); } // Webkit/Opera - :checked should return selected option elements // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked // IE8 throws error here and will not see later tests if ( !div.querySelectorAll(":checked").length ) { rbuggyQSA.push(":checked"); } }); assert(function( div ) { // Support: Opera 10-12/IE8 // ^= $= *= and empty values // Should not select anything // Support: Windows 8 Native Apps // The type attribute is restricted during .innerHTML assignment var input = doc.createElement("input"); input.setAttribute( "type", "hidden" ); div.appendChild( input ).setAttribute( "t", "" ); if ( div.querySelectorAll("[t^='']").length ) { rbuggyQSA.push( "[*^$]=" + whitespace + "*(?:''|\"\")" ); } // FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled) // IE8 throws error here and will not see later tests if ( !div.querySelectorAll(":enabled").length ) { rbuggyQSA.push( ":enabled", ":disabled" ); } // Opera 10-11 does not throw on post-comma invalid pseudos div.querySelectorAll("*,:x"); rbuggyQSA.push(",.*:"); }); } if ( (support.matchesSelector = rnative.test( (matches = docElem.webkitMatchesSelector || docElem.mozMatchesSelector || docElem.oMatchesSelector || docElem.msMatchesSelector) )) ) { assert(function( div ) { // Check to see if it's possible to do matchesSelector // on a disconnected node (IE 9) support.disconnectedMatch = matches.call( div, "div" ); // This should fail with an exception // Gecko does not error, returns false instead matches.call( div, "[s!='']:x" ); rbuggyMatches.push( "!=", pseudos ); }); } rbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join("|") ); rbuggyMatches = rbuggyMatches.length && new RegExp( rbuggyMatches.join("|") ); /* Contains ---------------------------------------------------------------------- */ // Element contains another // Purposefully does not implement inclusive descendent // As in, an element does not contain itself contains = rnative.test( docElem.contains ) || docElem.compareDocumentPosition ? function( a, b ) { var adown = a.nodeType === 9 ? a.documentElement : a, bup = b && b.parentNode; return a === bup || !!( bup && bup.nodeType === 1 && ( adown.contains ? adown.contains( bup ) : a.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16 )); } : function( a, b ) { if ( b ) { while ( (b = b.parentNode) ) { if ( b === a ) { return true; } } } return false; }; /* Sorting ---------------------------------------------------------------------- */ // Document order sorting sortOrder = docElem.compareDocumentPosition ? function( a, b ) { // Flag for duplicate removal if ( a === b ) { hasDuplicate = true; return 0; } var compare = b.compareDocumentPosition && a.compareDocumentPosition && a.compareDocumentPosition( b ); if ( compare ) { // Disconnected nodes if ( compare & 1 || (!support.sortDetached && b.compareDocumentPosition( a ) === compare) ) { // Choose the first element that is related to our preferred document if ( a === doc || contains(preferredDoc, a) ) { return -1; } if ( b === doc || contains(preferredDoc, b) ) { return 1; } // Maintain original order return sortInput ? ( indexOf.call( sortInput, a ) - indexOf.call( sortInput, b ) ) : 0; } return compare & 4 ? -1 : 1; } // Not directly comparable, sort on existence of method return a.compareDocumentPosition ? -1 : 1; } : function( a, b ) { var cur, i = 0, aup = a.parentNode, bup = b.parentNode, ap = [ a ], bp = [ b ]; // Exit early if the nodes are identical if ( a === b ) { hasDuplicate = true; return 0; // Parentless nodes are either documents or disconnected } else if ( !aup || !bup ) { return a === doc ? -1 : b === doc ? 1 : aup ? -1 : bup ? 1 : sortInput ? ( indexOf.call( sortInput, a ) - indexOf.call( sortInput, b ) ) : 0; // If the nodes are siblings, we can do a quick check } else if ( aup === bup ) { return siblingCheck( a, b ); } // Otherwise we need full lists of their ancestors for comparison cur = a; while ( (cur = cur.parentNode) ) { ap.unshift( cur ); } cur = b; while ( (cur = cur.parentNode) ) { bp.unshift( cur ); } // Walk down the tree looking for a discrepancy while ( ap[i] === bp[i] ) { i++; } return i ? // Do a sibling check if the nodes have a common ancestor siblingCheck( ap[i], bp[i] ) : // Otherwise nodes in our document sort first ap[i] === preferredDoc ? -1 : bp[i] === preferredDoc ? 1 : 0; }; return doc; }; Sizzle.matches = function( expr, elements ) { return Sizzle( expr, null, null, elements ); }; Sizzle.matchesSelector = function( elem, expr ) { // Set document vars if needed if ( ( elem.ownerDocument || elem ) !== document ) { setDocument( elem ); } // Make sure that attribute selectors are quoted expr = expr.replace( rattributeQuotes, "='$1']" ); if ( support.matchesSelector && documentIsHTML && ( !rbuggyMatches || !rbuggyMatches.test( expr ) ) && ( !rbuggyQSA || !rbuggyQSA.test( expr ) ) ) { try { var ret = matches.call( elem, expr ); // IE 9's matchesSelector returns false on disconnected nodes if ( ret || support.disconnectedMatch || // As well, disconnected nodes are said to be in a document // fragment in IE 9 elem.document && elem.document.nodeType !== 11 ) { return ret; } } catch(e) {} } return Sizzle( expr, document, null, [elem] ).length > 0; }; Sizzle.contains = function( context, elem ) { // Set document vars if needed if ( ( context.ownerDocument || context ) !== document ) { setDocument( context ); } return contains( context, elem ); }; Sizzle.attr = function( elem, name ) { // Set document vars if needed if ( ( elem.ownerDocument || elem ) !== document ) { setDocument( elem ); } var fn = Expr.attrHandle[ name.toLowerCase() ], // Don't get fooled by Object.prototype properties (jQuery #13807) val = fn && hasOwn.call( Expr.attrHandle, name.toLowerCase() ) ? fn( elem, name, !documentIsHTML ) : undefined; return val === undefined ? support.attributes || !documentIsHTML ? elem.getAttribute( name ) : (val = elem.getAttributeNode(name)) && val.specified ? val.value : null : val; }; Sizzle.error = function( msg ) { throw new Error( "Syntax error, unrecognized expression: " + msg ); }; /** * Document sorting and removing duplicates * @param {ArrayLike} results */ Sizzle.uniqueSort = function( results ) { var elem, duplicates = [], j = 0, i = 0; // Unless we *know* we can detect duplicates, assume their presence hasDuplicate = !support.detectDuplicates; sortInput = !support.sortStable && results.slice( 0 ); results.sort( sortOrder ); if ( hasDuplicate ) { while ( (elem = results[i++]) ) { if ( elem === results[ i ] ) { j = duplicates.push( i ); } } while ( j-- ) { results.splice( duplicates[ j ], 1 ); } } return results; }; /** * Utility function for retrieving the text value of an array of DOM nodes * @param {Array|Element} elem */ getText = Sizzle.getText = function( elem ) { var node, ret = "", i = 0, nodeType = elem.nodeType; if ( !nodeType ) { // If no nodeType, this is expected to be an array for ( ; (node = elem[i]); i++ ) { // Do not traverse comment nodes ret += getText( node ); } } else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) { // Use textContent for elements // innerText usage removed for consistency of new lines (see #11153) if ( typeof elem.textContent === "string" ) { return elem.textContent; } else { // Traverse its children for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) { ret += getText( elem ); } } } else if ( nodeType === 3 || nodeType === 4 ) { return elem.nodeValue; } // Do not include comment or processing instruction nodes return ret; }; Expr = Sizzle.selectors = { // Can be adjusted by the user cacheLength: 50, createPseudo: markFunction, match: matchExpr, attrHandle: {}, find: {}, relative: { ">": { dir: "parentNode", first: true }, " ": { dir: "parentNode" }, "+": { dir: "previousSibling", first: true }, "~": { dir: "previousSibling" } }, preFilter: { "ATTR": function( match ) { match[1] = match[1].replace( runescape, funescape ); // Move the given value to match[3] whether quoted or unquoted match[3] = ( match[4] || match[5] || "" ).replace( runescape, funescape ); if ( match[2] === "~=" ) { match[3] = " " + match[3] + " "; } return match.slice( 0, 4 ); }, "CHILD": function( match ) { /* matches from matchExpr["CHILD"] 1 type (only|nth|...) 2 what (child|of-type) 3 argument (even|odd|\d*|\d*n([+-]\d+)?|...) 4 xn-component of xn+y argument ([+-]?\d*n|) 5 sign of xn-component 6 x of xn-component 7 sign of y-component 8 y of y-component */ match[1] = match[1].toLowerCase(); if ( match[1].slice( 0, 3 ) === "nth" ) { // nth-* requires argument if ( !match[3] ) { Sizzle.error( match[0] ); } // numeric x and y parameters for Expr.filter.CHILD // remember that false/true cast respectively to 0/1 match[4] = +( match[4] ? match[5] + (match[6] || 1) : 2 * ( match[3] === "even" || match[3] === "odd" ) ); match[5] = +( ( match[7] + match[8] ) || match[3] === "odd" ); // other types prohibit arguments } else if ( match[3] ) { Sizzle.error( match[0] ); } return match; }, "PSEUDO": function( match ) { var excess, unquoted = !match[5] && match[2]; if ( matchExpr["CHILD"].test( match[0] ) ) { return null; } // Accept quoted arguments as-is if ( match[3] && match[4] !== undefined ) { match[2] = match[4]; // Strip excess characters from unquoted arguments } else if ( unquoted && rpseudo.test( unquoted ) && // Get excess from tokenize (recursively) (excess = tokenize( unquoted, true )) && // advance to the next closing parenthesis (excess = unquoted.indexOf( ")", unquoted.length - excess ) - unquoted.length) ) { // excess is a negative index match[0] = match[0].slice( 0, excess ); match[2] = unquoted.slice( 0, excess ); } // Return only captures needed by the pseudo filter method (type and argument) return match.slice( 0, 3 ); } }, filter: { "TAG": function( nodeNameSelector ) { var nodeName = nodeNameSelector.replace( runescape, funescape ).toLowerCase(); return nodeNameSelector === "*" ? function() { return true; } : function( elem ) { return elem.nodeName && elem.nodeName.toLowerCase() === nodeName; }; }, "CLASS": function( className ) { var pattern = classCache[ className + " " ]; return pattern || (pattern = new RegExp( "(^|" + whitespace + ")" + className + "(" + whitespace + "|$)" )) && classCache( className, function( elem ) { return pattern.test( typeof elem.className === "string" && elem.className || typeof elem.getAttribute !== strundefined && elem.getAttribute("class") || "" ); }); }, "ATTR": function( name, operator, check ) { return function( elem ) { var result = Sizzle.attr( elem, name ); if ( result == null ) { return operator === "!="; } if ( !operator ) { return true; } result += ""; return operator === "=" ? result === check : operator === "!=" ? result !== check : operator === "^=" ? check && result.indexOf( check ) === 0 : operator === "*=" ? check && result.indexOf( check ) > -1 : operator === "$=" ? check && result.slice( -check.length ) === check : operator === "~=" ? ( " " + result + " " ).indexOf( check ) > -1 : operator === "|=" ? result === check || result.slice( 0, check.length + 1 ) === check + "-" : false; }; }, "CHILD": function( type, what, argument, first, last ) { var simple = type.slice( 0, 3 ) !== "nth", forward = type.slice( -4 ) !== "last", ofType = what === "of-type"; return first === 1 && last === 0 ? // Shortcut for :nth-*(n) function( elem ) { return !!elem.parentNode; } : function( elem, context, xml ) { var cache, outerCache, node, diff, nodeIndex, start, dir = simple !== forward ? "nextSibling" : "previousSibling", parent = elem.parentNode, name = ofType && elem.nodeName.toLowerCase(), useCache = !xml && !ofType; if ( parent ) { // :(first|last|only)-(child|of-type) if ( simple ) { while ( dir ) { node = elem; while ( (node = node[ dir ]) ) { if ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) { return false; } } // Reverse direction for :only-* (if we haven't yet done so) start = dir = type === "only" && !start && "nextSibling"; } return true; } start = [ forward ? parent.firstChild : parent.lastChild ]; // non-xml :nth-child(...) stores cache data on `parent` if ( forward && useCache ) { // Seek `elem` from a previously-cached index outerCache = parent[ expando ] || (parent[ expando ] = {}); cache = outerCache[ type ] || []; nodeIndex = cache[0] === dirruns && cache[1]; diff = cache[0] === dirruns && cache[2]; node = nodeIndex && parent.childNodes[ nodeIndex ]; while ( (node = ++nodeIndex && node && node[ dir ] || // Fallback to seeking `elem` from the start (diff = nodeIndex = 0) || start.pop()) ) { // When found, cache indexes on `parent` and break if ( node.nodeType === 1 && ++diff && node === elem ) { outerCache[ type ] = [ dirruns, nodeIndex, diff ]; break; } } // Use previously-cached element index if available } else if ( useCache && (cache = (elem[ expando ] || (elem[ expando ] = {}))[ type ]) && cache[0] === dirruns ) { diff = cache[1]; // xml :nth-child(...) or :nth-last-child(...) or :nth(-last)?-of-type(...) } else { // Use the same loop as above to seek `elem` from the start while ( (node = ++nodeIndex && node && node[ dir ] || (diff = nodeIndex = 0) || start.pop()) ) { if ( ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) && ++diff ) { // Cache the index of each encountered element if ( useCache ) { (node[ expando ] || (node[ expando ] = {}))[ type ] = [ dirruns, diff ]; } if ( node === elem ) { break; } } } } // Incorporate the offset, then check against cycle size diff -= last; return diff === first || ( diff % first === 0 && diff / first >= 0 ); } }; }, "PSEUDO": function( pseudo, argument ) { // pseudo-class names are case-insensitive // http://www.w3.org/TR/selectors/#pseudo-classes // Prioritize by case sensitivity in case custom pseudos are added with uppercase letters // Remember that setFilters inherits from pseudos var args, fn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] || Sizzle.error( "unsupported pseudo: " + pseudo ); // The user may use createPseudo to indicate that // arguments are needed to create the filter function // just as Sizzle does if ( fn[ expando ] ) { return fn( argument ); } // But maintain support for old signatures if ( fn.length > 1 ) { args = [ pseudo, pseudo, "", argument ]; return Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ? markFunction(function( seed, matches ) { var idx, matched = fn( seed, argument ), i = matched.length; while ( i-- ) { idx = indexOf.call( seed, matched[i] ); seed[ idx ] = !( matches[ idx ] = matched[i] ); } }) : function( elem ) { return fn( elem, 0, args ); }; } return fn; } }, pseudos: { // Potentially complex pseudos "not": markFunction(function( selector ) { // Trim the selector passed to compile // to avoid treating leading and trailing // spaces as combinators var input = [], results = [], matcher = compile( selector.replace( rtrim, "$1" ) ); return matcher[ expando ] ? markFunction(function( seed, matches, context, xml ) { var elem, unmatched = matcher( seed, null, xml, [] ), i = seed.length; // Match elements unmatched by `matcher` while ( i-- ) { if ( (elem = unmatched[i]) ) { seed[i] = !(matches[i] = elem); } } }) : function( elem, context, xml ) { input[0] = elem; matcher( input, null, xml, results ); return !results.pop(); }; }), "has": markFunction(function( selector ) { return function( elem ) { return Sizzle( selector, elem ).length > 0; }; }), "contains": markFunction(function( text ) { return function( elem ) { return ( elem.textContent || elem.innerText || getText( elem ) ).indexOf( text ) > -1; }; }), // "Whether an element is represented by a :lang() selector // is based solely on the element's language value // being equal to the identifier C, // or beginning with the identifier C immediately followed by "-". // The matching of C against the element's language value is performed case-insensitively. // The identifier C does not have to be a valid language name." // http://www.w3.org/TR/selectors/#lang-pseudo "lang": markFunction( function( lang ) { // lang value must be a valid identifier if ( !ridentifier.test(lang || "") ) { Sizzle.error( "unsupported lang: " + lang ); } lang = lang.replace( runescape, funescape ).toLowerCase(); return function( elem ) { var elemLang; do { if ( (elemLang = documentIsHTML ? elem.lang : elem.getAttribute("xml:lang") || elem.getAttribute("lang")) ) { elemLang = elemLang.toLowerCase(); return elemLang === lang || elemLang.indexOf( lang + "-" ) === 0; } } while ( (elem = elem.parentNode) && elem.nodeType === 1 ); return false; }; }), // Miscellaneous "target": function( elem ) { var hash = window.location && window.location.hash; return hash && hash.slice( 1 ) === elem.id; }, "root": function( elem ) { return elem === docElem; }, "focus": function( elem ) { return elem === document.activeElement && (!document.hasFocus || document.hasFocus()) && !!(elem.type || elem.href || ~elem.tabIndex); }, // Boolean properties "enabled": function( elem ) { return elem.disabled === false; }, "disabled": function( elem ) { return elem.disabled === true; }, "checked": function( elem ) { // In CSS3, :checked should return both checked and selected elements // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked var nodeName = elem.nodeName.toLowerCase(); return (nodeName === "input" && !!elem.checked) || (nodeName === "option" && !!elem.selected); }, "selected": function( elem ) { // Accessing this property makes selected-by-default // options in Safari work properly if ( elem.parentNode ) { elem.parentNode.selectedIndex; } return elem.selected === true; }, // Contents "empty": function( elem ) { // http://www.w3.org/TR/selectors/#empty-pseudo // :empty is only affected by element nodes and content nodes(including text(3), cdata(4)), // not comment, processing instructions, or others // Thanks to Diego Perini for the nodeName shortcut // Greater than "@" means alpha characters (specifically not starting with "#" or "?") for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) { if ( elem.nodeName > "@" || elem.nodeType === 3 || elem.nodeType === 4 ) { return false; } } return true; }, "parent": function( elem ) { return !Expr.pseudos["empty"]( elem ); }, // Element/input types "header": function( elem ) { return rheader.test( elem.nodeName ); }, "input": function( elem ) { return rinputs.test( elem.nodeName ); }, "button": function( elem ) { var name = elem.nodeName.toLowerCase(); return name === "input" && elem.type === "button" || name === "button"; }, "text": function( elem ) { var attr; // IE6 and 7 will map elem.type to 'text' for new HTML5 types (search, etc) // use getAttribute instead to test this case return elem.nodeName.toLowerCase() === "input" && elem.type === "text" && ( (attr = elem.getAttribute("type")) == null || attr.toLowerCase() === elem.type ); }, // Position-in-collection "first": createPositionalPseudo(function() { return [ 0 ]; }), "last": createPositionalPseudo(function( matchIndexes, length ) { return [ length - 1 ]; }), "eq": createPositionalPseudo(function( matchIndexes, length, argument ) { return [ argument < 0 ? argument + length : argument ]; }), "even": createPositionalPseudo(function( matchIndexes, length ) { var i = 0; for ( ; i < length; i += 2 ) { matchIndexes.push( i ); } return matchIndexes; }), "odd": createPositionalPseudo(function( matchIndexes, length ) { var i = 1; for ( ; i < length; i += 2 ) { matchIndexes.push( i ); } return matchIndexes; }), "lt": createPositionalPseudo(function( matchIndexes, length, argument ) { var i = argument < 0 ? argument + length : argument; for ( ; --i >= 0; ) { matchIndexes.push( i ); } return matchIndexes; }), "gt": createPositionalPseudo(function( matchIndexes, length, argument ) { var i = argument < 0 ? argument + length : argument; for ( ; ++i < length; ) { matchIndexes.push( i ); } return matchIndexes; }) } }; Expr.pseudos["nth"] = Expr.pseudos["eq"]; // Add button/input type pseudos for ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) { Expr.pseudos[ i ] = createInputPseudo( i ); } for ( i in { submit: true, reset: true } ) { Expr.pseudos[ i ] = createButtonPseudo( i ); } // Easy API for creating new setFilters function setFilters() {} setFilters.prototype = Expr.filters = Expr.pseudos; Expr.setFilters = new setFilters(); function tokenize( selector, parseOnly ) { var matched, match, tokens, type, soFar, groups, preFilters, cached = tokenCache[ selector + " " ]; if ( cached ) { return parseOnly ? 0 : cached.slice( 0 ); } soFar = selector; groups = []; preFilters = Expr.preFilter; while ( soFar ) { // Comma and first run if ( !matched || (match = rcomma.exec( soFar )) ) { if ( match ) { // Don't consume trailing commas as valid soFar = soFar.slice( match[0].length ) || soFar; } groups.push( tokens = [] ); } matched = false; // Combinators if ( (match = rcombinators.exec( soFar )) ) { matched = match.shift(); tokens.push({ value: matched, // Cast descendant combinators to space type: match[0].replace( rtrim, " " ) }); soFar = soFar.slice( matched.length ); } // Filters for ( type in Expr.filter ) { if ( (match = matchExpr[ type ].exec( soFar )) && (!preFilters[ type ] || (match = preFilters[ type ]( match ))) ) { matched = match.shift(); tokens.push({ value: matched, type: type, matches: match }); soFar = soFar.slice( matched.length ); } } if ( !matched ) { break; } } // Return the length of the invalid excess // if we're just parsing // Otherwise, throw an error or return tokens return parseOnly ? soFar.length : soFar ? Sizzle.error( selector ) : // Cache the tokens tokenCache( selector, groups ).slice( 0 ); } function toSelector( tokens ) { var i = 0, len = tokens.length, selector = ""; for ( ; i < len; i++ ) { selector += tokens[i].value; } return selector; } function addCombinator( matcher, combinator, base ) { var dir = combinator.dir, checkNonElements = base && dir === "parentNode", doneName = done++; return combinator.first ? // Check against closest ancestor/preceding element function( elem, context, xml ) { while ( (elem = elem[ dir ]) ) { if ( elem.nodeType === 1 || checkNonElements ) { return matcher( elem, context, xml ); } } } : // Check against all ancestor/preceding elements function( elem, context, xml ) { var data, cache, outerCache, dirkey = dirruns + " " + doneName; // We can't set arbitrary data on XML nodes, so they don't benefit from dir caching if ( xml ) { while ( (elem = elem[ dir ]) ) { if ( elem.nodeType === 1 || checkNonElements ) { if ( matcher( elem, context, xml ) ) { return true; } } } } else { while ( (elem = elem[ dir ]) ) { if ( elem.nodeType === 1 || checkNonElements ) { outerCache = elem[ expando ] || (elem[ expando ] = {}); if ( (cache = outerCache[ dir ]) && cache[0] === dirkey ) { if ( (data = cache[1]) === true || data === cachedruns ) { return data === true; } } else { cache = outerCache[ dir ] = [ dirkey ]; cache[1] = matcher( elem, context, xml ) || cachedruns; if ( cache[1] === true ) { return true; } } } } } }; } function elementMatcher( matchers ) { return matchers.length > 1 ? function( elem, context, xml ) { var i = matchers.length; while ( i-- ) { if ( !matchers[i]( elem, context, xml ) ) { return false; } } return true; } : matchers[0]; } function condense( unmatched, map, filter, context, xml ) { var elem, newUnmatched = [], i = 0, len = unmatched.length, mapped = map != null; for ( ; i < len; i++ ) { if ( (elem = unmatched[i]) ) { if ( !filter || filter( elem, context, xml ) ) { newUnmatched.push( elem ); if ( mapped ) { map.push( i ); } } } } return newUnmatched; } function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) { if ( postFilter && !postFilter[ expando ] ) { postFilter = setMatcher( postFilter ); } if ( postFinder && !postFinder[ expando ] ) { postFinder = setMatcher( postFinder, postSelector ); } return markFunction(function( seed, results, context, xml ) { var temp, i, elem, preMap = [], postMap = [], preexisting = results.length, // Get initial elements from seed or context elems = seed || multipleContexts( selector || "*", context.nodeType ? [ context ] : context, [] ), // Prefilter to get matcher input, preserving a map for seed-results synchronization matcherIn = preFilter && ( seed || !selector ) ? condense( elems, preMap, preFilter, context, xml ) : elems, matcherOut = matcher ? // If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results, postFinder || ( seed ? preFilter : preexisting || postFilter ) ? // ...intermediate processing is necessary [] : // ...otherwise use results directly results : matcherIn; // Find primary matches if ( matcher ) { matcher( matcherIn, matcherOut, context, xml ); } // Apply postFilter if ( postFilter ) { temp = condense( matcherOut, postMap ); postFilter( temp, [], context, xml ); // Un-match failing elements by moving them back to matcherIn i = temp.length; while ( i-- ) { if ( (elem = temp[i]) ) { matcherOut[ postMap[i] ] = !(matcherIn[ postMap[i] ] = elem); } } } if ( seed ) { if ( postFinder || preFilter ) { if ( postFinder ) { // Get the final matcherOut by condensing this intermediate into postFinder contexts temp = []; i = matcherOut.length; while ( i-- ) { if ( (elem = matcherOut[i]) ) { // Restore matcherIn since elem is not yet a final match temp.push( (matcherIn[i] = elem) ); } } postFinder( null, (matcherOut = []), temp, xml ); } // Move matched elements from seed to results to keep them synchronized i = matcherOut.length; while ( i-- ) { if ( (elem = matcherOut[i]) && (temp = postFinder ? indexOf.call( seed, elem ) : preMap[i]) > -1 ) { seed[temp] = !(results[temp] = elem); } } } // Add elements to results, through postFinder if defined } else { matcherOut = condense( matcherOut === results ? matcherOut.splice( preexisting, matcherOut.length ) : matcherOut ); if ( postFinder ) { postFinder( null, results, matcherOut, xml ); } else { push.apply( results, matcherOut ); } } }); } function matcherFromTokens( tokens ) { var checkContext, matcher, j, len = tokens.length, leadingRelative = Expr.relative[ tokens[0].type ], implicitRelative = leadingRelative || Expr.relative[" "], i = leadingRelative ? 1 : 0, // The foundational matcher ensures that elements are reachable from top-level context(s) matchContext = addCombinator( function( elem ) { return elem === checkContext; }, implicitRelative, true ), matchAnyContext = addCombinator( function( elem ) { return indexOf.call( checkContext, elem ) > -1; }, implicitRelative, true ), matchers = [ function( elem, context, xml ) { return ( !leadingRelative && ( xml || context !== outermostContext ) ) || ( (checkContext = context).nodeType ? matchContext( elem, context, xml ) : matchAnyContext( elem, context, xml ) ); } ]; for ( ; i < len; i++ ) { if ( (matcher = Expr.relative[ tokens[i].type ]) ) { matchers = [ addCombinator(elementMatcher( matchers ), matcher) ]; } else { matcher = Expr.filter[ tokens[i].type ].apply( null, tokens[i].matches ); // Return special upon seeing a positional matcher if ( matcher[ expando ] ) { // Find the next relative operator (if any) for proper handling j = ++i; for ( ; j < len; j++ ) { if ( Expr.relative[ tokens[j].type ] ) { break; } } return setMatcher( i > 1 && elementMatcher( matchers ), i > 1 && toSelector( // If the preceding token was a descendant combinator, insert an implicit any-element `*` tokens.slice( 0, i - 1 ).concat({ value: tokens[ i - 2 ].type === " " ? "*" : "" }) ).replace( rtrim, "$1" ), matcher, i < j && matcherFromTokens( tokens.slice( i, j ) ), j < len && matcherFromTokens( (tokens = tokens.slice( j )) ), j < len && toSelector( tokens ) ); } matchers.push( matcher ); } } return elementMatcher( matchers ); } function matcherFromGroupMatchers( elementMatchers, setMatchers ) { // A counter to specify which element is currently being matched var matcherCachedRuns = 0, bySet = setMatchers.length > 0, byElement = elementMatchers.length > 0, superMatcher = function( seed, context, xml, results, expandContext ) { var elem, j, matcher, setMatched = [], matchedCount = 0, i = "0", unmatched = seed && [], outermost = expandContext != null, contextBackup = outermostContext, // We must always have either seed elements or context elems = seed || byElement && Expr.find["TAG"]( "*", expandContext && context.parentNode || context ), // Use integer dirruns iff this is the outermost matcher dirrunsUnique = (dirruns += contextBackup == null ? 1 : Math.random() || 0.1); if ( outermost ) { outermostContext = context !== document && context; cachedruns = matcherCachedRuns; } // Add elements passing elementMatchers directly to results // Keep `i` a string if there are no elements so `matchedCount` will be "00" below for ( ; (elem = elems[i]) != null; i++ ) { if ( byElement && elem ) { j = 0; while ( (matcher = elementMatchers[j++]) ) { if ( matcher( elem, context, xml ) ) { results.push( elem ); break; } } if ( outermost ) { dirruns = dirrunsUnique; cachedruns = ++matcherCachedRuns; } } // Track unmatched elements for set filters if ( bySet ) { // They will have gone through all possible matchers if ( (elem = !matcher && elem) ) { matchedCount--; } // Lengthen the array for every element, matched or not if ( seed ) { unmatched.push( elem ); } } } // Apply set filters to unmatched elements matchedCount += i; if ( bySet && i !== matchedCount ) { j = 0; while ( (matcher = setMatchers[j++]) ) { matcher( unmatched, setMatched, context, xml ); } if ( seed ) { // Reintegrate element matches to eliminate the need for sorting if ( matchedCount > 0 ) { while ( i-- ) { if ( !(unmatched[i] || setMatched[i]) ) { setMatched[i] = pop.call( results ); } } } // Discard index placeholder values to get only actual matches setMatched = condense( setMatched ); } // Add matches to results push.apply( results, setMatched ); // Seedless set matches succeeding multiple successful matchers stipulate sorting if ( outermost && !seed && setMatched.length > 0 && ( matchedCount + setMatchers.length ) > 1 ) { Sizzle.uniqueSort( results ); } } // Override manipulation of globals by nested matchers if ( outermost ) { dirruns = dirrunsUnique; outermostContext = contextBackup; } return unmatched; }; return bySet ? markFunction( superMatcher ) : superMatcher; } compile = Sizzle.compile = function( selector, group /* Internal Use Only */ ) { var i, setMatchers = [], elementMatchers = [], cached = compilerCache[ selector + " " ]; if ( !cached ) { // Generate a function of recursive functions that can be used to check each element if ( !group ) { group = tokenize( selector ); } i = group.length; while ( i-- ) { cached = matcherFromTokens( group[i] ); if ( cached[ expando ] ) { setMatchers.push( cached ); } else { elementMatchers.push( cached ); } } // Cache the compiled function cached = compilerCache( selector, matcherFromGroupMatchers( elementMatchers, setMatchers ) ); } return cached; }; function multipleContexts( selector, contexts, results ) { var i = 0, len = contexts.length; for ( ; i < len; i++ ) { Sizzle( selector, contexts[i], results ); } return results; } function select( selector, context, results, seed ) { var i, tokens, token, type, find, match = tokenize( selector ); if ( !seed ) { // Try to minimize operations if there is only one group if ( match.length === 1 ) { // Take a shortcut and set the context if the root selector is an ID tokens = match[0] = match[0].slice( 0 ); if ( tokens.length > 2 && (token = tokens[0]).type === "ID" && support.getById && context.nodeType === 9 && documentIsHTML && Expr.relative[ tokens[1].type ] ) { context = ( Expr.find["ID"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0]; if ( !context ) { return results; } selector = selector.slice( tokens.shift().value.length ); } // Fetch a seed set for right-to-left matching i = matchExpr["needsContext"].test( selector ) ? 0 : tokens.length; while ( i-- ) { token = tokens[i]; // Abort if we hit a combinator if ( Expr.relative[ (type = token.type) ] ) { break; } if ( (find = Expr.find[ type ]) ) { // Search, expanding context for leading sibling combinators if ( (seed = find( token.matches[0].replace( runescape, funescape ), rsibling.test( tokens[0].type ) && context.parentNode || context )) ) { // If seed is empty or no tokens remain, we can return early tokens.splice( i, 1 ); selector = seed.length && toSelector( tokens ); if ( !selector ) { push.apply( results, seed ); return results; } break; } } } } } // Compile and execute a filtering function // Provide `match` to avoid retokenization if we modified the selector above compile( selector, match )( seed, context, !documentIsHTML, results, rsibling.test( selector ) ); return results; } // One-time assignments // Sort stability support.sortStable = expando.split("").sort( sortOrder ).join("") === expando; // Support: Chrome<14 // Always assume duplicates if they aren't passed to the comparison function support.detectDuplicates = hasDuplicate; // Initialize against the default document setDocument(); // Support: Webkit<537.32 - Safari 6.0.3/Chrome 25 (fixed in Chrome 27) // Detached nodes confoundingly follow *each other* support.sortDetached = assert(function( div1 ) { // Should return 1, but returns 4 (following) return div1.compareDocumentPosition( document.createElement("div") ) & 1; }); // Support: IE<8 // Prevent attribute/property "interpolation" // http://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx if ( !assert(function( div ) { div.innerHTML = "<a href='#'></a>"; return div.firstChild.getAttribute("href") === "#" ; }) ) { addHandle( "type|href|height|width", function( elem, name, isXML ) { if ( !isXML ) { return elem.getAttribute( name, name.toLowerCase() === "type" ? 1 : 2 ); } }); } // Support: IE<9 // Use defaultValue in place of getAttribute("value") if ( !support.attributes || !assert(function( div ) { div.innerHTML = "<input/>"; div.firstChild.setAttribute( "value", "" ); return div.firstChild.getAttribute( "value" ) === ""; }) ) { addHandle( "value", function( elem, name, isXML ) { if ( !isXML && elem.nodeName.toLowerCase() === "input" ) { return elem.defaultValue; } }); } // Support: IE<9 // Use getAttributeNode to fetch booleans when getAttribute lies if ( !assert(function( div ) { return div.getAttribute("disabled") == null; }) ) { addHandle( booleans, function( elem, name, isXML ) { var val; if ( !isXML ) { return (val = elem.getAttributeNode( name )) && val.specified ? val.value : elem[ name ] === true ? name.toLowerCase() : null; } }); } jQuery.find = Sizzle; jQuery.expr = Sizzle.selectors; jQuery.expr[":"] = jQuery.expr.pseudos; jQuery.unique = Sizzle.uniqueSort; jQuery.text = Sizzle.getText; jQuery.isXMLDoc = Sizzle.isXML; jQuery.contains = Sizzle.contains; })( window ); // String to Object options format cache var optionsCache = {}; // Convert String-formatted options into Object-formatted ones and store in cache function createOptions( options ) { var object = optionsCache[ options ] = {}; jQuery.each( options.match( core_rnotwhite ) || [], function( _, flag ) { object[ flag ] = true; }); return object; } /* * Create a callback list using the following parameters: * * options: an optional list of space-separated options that will change how * the callback list behaves or a more traditional option object * * By default a callback list will act like an event callback list and can be * "fired" multiple times. * * Possible options: * * once: will ensure the callback list can only be fired once (like a Deferred) * * memory: will keep track of previous values and will call any callback added * after the list has been fired right away with the latest "memorized" * values (like a Deferred) * * unique: will ensure a callback can only be added once (no duplicate in the list) * * stopOnFalse: interrupt callings when a callback returns false * */ jQuery.Callbacks = function( options ) { // Convert options from String-formatted to Object-formatted if needed // (we check in cache first) options = typeof options === "string" ? ( optionsCache[ options ] || createOptions( options ) ) : jQuery.extend( {}, options ); var // Last fire value (for non-forgettable lists) memory, // Flag to know if list was already fired fired, // Flag to know if list is currently firing firing, // First callback to fire (used internally by add and fireWith) firingStart, // End of the loop when firing firingLength, // Index of currently firing callback (modified by remove if needed) firingIndex, // Actual callback list list = [], // Stack of fire calls for repeatable lists stack = !options.once && [], // Fire callbacks fire = function( data ) { memory = options.memory && data; fired = true; firingIndex = firingStart || 0; firingStart = 0; firingLength = list.length; firing = true; for ( ; list && firingIndex < firingLength; firingIndex++ ) { if ( list[ firingIndex ].apply( data[ 0 ], data[ 1 ] ) === false && options.stopOnFalse ) { memory = false; // To prevent further calls using add break; } } firing = false; if ( list ) { if ( stack ) { if ( stack.length ) { fire( stack.shift() ); } } else if ( memory ) { list = []; } else { self.disable(); } } }, // Actual Callbacks object self = { // Add a callback or a collection of callbacks to the list add: function() { if ( list ) { // First, we save the current length var start = list.length; (function add( args ) { jQuery.each( args, function( _, arg ) { var type = jQuery.type( arg ); if ( type === "function" ) { if ( !options.unique || !self.has( arg ) ) { list.push( arg ); } } else if ( arg && arg.length && type !== "string" ) { // Inspect recursively add( arg ); } }); })( arguments ); // Do we need to add the callbacks to the // current firing batch? if ( firing ) { firingLength = list.length; // With memory, if we're not firing then // we should call right away } else if ( memory ) { firingStart = start; fire( memory ); } } return this; }, // Remove a callback from the list remove: function() { if ( list ) { jQuery.each( arguments, function( _, arg ) { var index; while( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) { list.splice( index, 1 ); // Handle firing indexes if ( firing ) { if ( index <= firingLength ) { firingLength--; } if ( index <= firingIndex ) { firingIndex--; } } } }); } return this; }, // Check if a given callback is in the list. // If no argument is given, return whether or not list has callbacks attached. has: function( fn ) { return fn ? jQuery.inArray( fn, list ) > -1 : !!( list && list.length ); }, // Remove all callbacks from the list empty: function() { list = []; firingLength = 0; return this; }, // Have the list do nothing anymore disable: function() { list = stack = memory = undefined; return this; }, // Is it disabled? disabled: function() { return !list; }, // Lock the list in its current state lock: function() { stack = undefined; if ( !memory ) { self.disable(); } return this; }, // Is it locked? locked: function() { return !stack; }, // Call all callbacks with the given context and arguments fireWith: function( context, args ) { if ( list && ( !fired || stack ) ) { args = args || []; args = [ context, args.slice ? args.slice() : args ]; if ( firing ) { stack.push( args ); } else { fire( args ); } } return this; }, // Call all the callbacks with the given arguments fire: function() { self.fireWith( this, arguments ); return this; }, // To know if the callbacks have already been called at least once fired: function() { return !!fired; } }; return self; }; jQuery.extend({ Deferred: function( func ) { var tuples = [ // action, add listener, listener list, final state [ "resolve", "done", jQuery.Callbacks("once memory"), "resolved" ], [ "reject", "fail", jQuery.Callbacks("once memory"), "rejected" ], [ "notify", "progress", jQuery.Callbacks("memory") ] ], state = "pending", promise = { state: function() { return state; }, always: function() { deferred.done( arguments ).fail( arguments ); return this; }, then: function( /* fnDone, fnFail, fnProgress */ ) { var fns = arguments; return jQuery.Deferred(function( newDefer ) { jQuery.each( tuples, function( i, tuple ) { var action = tuple[ 0 ], fn = jQuery.isFunction( fns[ i ] ) && fns[ i ]; // deferred[ done | fail | progress ] for forwarding actions to newDefer deferred[ tuple[1] ](function() { var returned = fn && fn.apply( this, arguments ); if ( returned && jQuery.isFunction( returned.promise ) ) { returned.promise() .done( newDefer.resolve ) .fail( newDefer.reject ) .progress( newDefer.notify ); } else { newDefer[ action + "With" ]( this === promise ? newDefer.promise() : this, fn ? [ returned ] : arguments ); } }); }); fns = null; }).promise(); }, // Get a promise for this deferred // If obj is provided, the promise aspect is added to the object promise: function( obj ) { return obj != null ? jQuery.extend( obj, promise ) : promise; } }, deferred = {}; // Keep pipe for back-compat promise.pipe = promise.then; // Add list-specific methods jQuery.each( tuples, function( i, tuple ) { var list = tuple[ 2 ], stateString = tuple[ 3 ]; // promise[ done | fail | progress ] = list.add promise[ tuple[1] ] = list.add; // Handle state if ( stateString ) { list.add(function() { // state = [ resolved | rejected ] state = stateString; // [ reject_list | resolve_list ].disable; progress_list.lock }, tuples[ i ^ 1 ][ 2 ].disable, tuples[ 2 ][ 2 ].lock ); } // deferred[ resolve | reject | notify ] deferred[ tuple[0] ] = function() { deferred[ tuple[0] + "With" ]( this === deferred ? promise : this, arguments ); return this; }; deferred[ tuple[0] + "With" ] = list.fireWith; }); // Make the deferred a promise promise.promise( deferred ); // Call given func if any if ( func ) { func.call( deferred, deferred ); } // All done! return deferred; }, // Deferred helper when: function( subordinate /* , ..., subordinateN */ ) { var i = 0, resolveValues = core_slice.call( arguments ), length = resolveValues.length, // the count of uncompleted subordinates remaining = length !== 1 || ( subordinate && jQuery.isFunction( subordinate.promise ) ) ? length : 0, // the master Deferred. If resolveValues consist of only a single Deferred, just use that. deferred = remaining === 1 ? subordinate : jQuery.Deferred(), // Update function for both resolve and progress values updateFunc = function( i, contexts, values ) { return function( value ) { contexts[ i ] = this; values[ i ] = arguments.length > 1 ? core_slice.call( arguments ) : value; if( values === progressValues ) { deferred.notifyWith( contexts, values ); } else if ( !( --remaining ) ) { deferred.resolveWith( contexts, values ); } }; }, progressValues, progressContexts, resolveContexts; // add listeners to Deferred subordinates; treat others as resolved if ( length > 1 ) { progressValues = new Array( length ); progressContexts = new Array( length ); resolveContexts = new Array( length ); for ( ; i < length; i++ ) { if ( resolveValues[ i ] && jQuery.isFunction( resolveValues[ i ].promise ) ) { resolveValues[ i ].promise() .done( updateFunc( i, resolveContexts, resolveValues ) ) .fail( deferred.reject ) .progress( updateFunc( i, progressContexts, progressValues ) ); } else { --remaining; } } } // if we're not waiting on anything, resolve the master if ( !remaining ) { deferred.resolveWith( resolveContexts, resolveValues ); } return deferred.promise(); } }); jQuery.support = (function( support ) { var input = document.createElement("input"), fragment = document.createDocumentFragment(), div = document.createElement("div"), select = document.createElement("select"), opt = select.appendChild( document.createElement("option") ); // Finish early in limited environments if ( !input.type ) { return support; } input.type = "checkbox"; // Support: Safari 5.1, iOS 5.1, Android 4.x, Android 2.3 // Check the default checkbox/radio value ("" on old WebKit; "on" elsewhere) support.checkOn = input.value !== ""; // Must access the parent to make an option select properly // Support: IE9, IE10 support.optSelected = opt.selected; // Will be defined later support.reliableMarginRight = true; support.boxSizingReliable = true; support.pixelPosition = false; // Make sure checked status is properly cloned // Support: IE9, IE10 input.checked = true; support.noCloneChecked = input.cloneNode( true ).checked; // Make sure that the options inside disabled selects aren't marked as disabled // (WebKit marks them as disabled) select.disabled = true; support.optDisabled = !opt.disabled; // Check if an input maintains its value after becoming a radio // Support: IE9, IE10 input = document.createElement("input"); input.value = "t"; input.type = "radio"; support.radioValue = input.value === "t"; // #11217 - WebKit loses check when the name is after the checked attribute input.setAttribute( "checked", "t" ); input.setAttribute( "name", "t" ); fragment.appendChild( input ); // Support: Safari 5.1, Android 4.x, Android 2.3 // old WebKit doesn't clone checked state correctly in fragments support.checkClone = fragment.cloneNode( true ).cloneNode( true ).lastChild.checked; // Support: Firefox, Chrome, Safari // Beware of CSP restrictions (https://developer.mozilla.org/en/Security/CSP) support.focusinBubbles = "onfocusin" in window; div.style.backgroundClip = "content-box"; div.cloneNode( true ).style.backgroundClip = ""; support.clearCloneStyle = div.style.backgroundClip === "content-box"; // Run tests that need a body at doc ready jQuery(function() { var container, marginDiv, // Support: Firefox, Android 2.3 (Prefixed box-sizing versions). divReset = "padding:0;margin:0;border:0;display:block;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box", body = document.getElementsByTagName("body")[ 0 ]; if ( !body ) { // Return for frameset docs that don't have a body return; } container = document.createElement("div"); container.style.cssText = "border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px"; // Check box-sizing and margin behavior. body.appendChild( container ).appendChild( div ); div.innerHTML = ""; // Support: Firefox, Android 2.3 (Prefixed box-sizing versions). div.style.cssText = "-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%"; // Workaround failing boxSizing test due to offsetWidth returning wrong value // with some non-1 values of body zoom, ticket #13543 jQuery.swap( body, body.style.zoom != null ? { zoom: 1 } : {}, function() { support.boxSizing = div.offsetWidth === 4; }); // Use window.getComputedStyle because jsdom on node.js will break without it. if ( window.getComputedStyle ) { support.pixelPosition = ( window.getComputedStyle( div, null ) || {} ).top !== "1%"; support.boxSizingReliable = ( window.getComputedStyle( div, null ) || { width: "4px" } ).width === "4px"; // Support: Android 2.3 // Check if div with explicit width and no margin-right incorrectly // gets computed margin-right based on width of container. (#3333) // WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right marginDiv = div.appendChild( document.createElement("div") ); marginDiv.style.cssText = div.style.cssText = divReset; marginDiv.style.marginRight = marginDiv.style.width = "0"; div.style.width = "1px"; support.reliableMarginRight = !parseFloat( ( window.getComputedStyle( marginDiv, null ) || {} ).marginRight ); } body.removeChild( container ); }); return support; })( {} ); /* Implementation Summary 1. Enforce API surface and semantic compatibility with 1.9.x branch 2. Improve the module's maintainability by reducing the storage paths to a single mechanism. 3. Use the same single mechanism to support "private" and "user" data. 4. _Never_ expose "private" data to user code (TODO: Drop _data, _removeData) 5. Avoid exposing implementation details on user objects (eg. expando properties) 6. Provide a clear path for implementation upgrade to WeakMap in 2014 */ var data_user, data_priv, rbrace = /(?:\{[\s\S]*\}|\[[\s\S]*\])$/, rmultiDash = /([A-Z])/g; function Data() { // Support: Android < 4, // Old WebKit does not have Object.preventExtensions/freeze method, // return new empty object instead with no [[set]] accessor Object.defineProperty( this.cache = {}, 0, { get: function() { return {}; } }); this.expando = jQuery.expando + Math.random(); } Data.uid = 1; Data.accepts = function( owner ) { // Accepts only: // - Node // - Node.ELEMENT_NODE // - Node.DOCUMENT_NODE // - Object // - Any return owner.nodeType ? owner.nodeType === 1 || owner.nodeType === 9 : true; }; Data.prototype = { key: function( owner ) { // We can accept data for non-element nodes in modern browsers, // but we should not, see #8335. // Always return the key for a frozen object. if ( !Data.accepts( owner ) ) { return 0; } var descriptor = {}, // Check if the owner object already has a cache key unlock = owner[ this.expando ]; // If not, create one if ( !unlock ) { unlock = Data.uid++; // Secure it in a non-enumerable, non-writable property try { descriptor[ this.expando ] = { value: unlock }; Object.defineProperties( owner, descriptor ); // Support: Android < 4 // Fallback to a less secure definition } catch ( e ) { descriptor[ this.expando ] = unlock; jQuery.extend( owner, descriptor ); } } // Ensure the cache object if ( !this.cache[ unlock ] ) { this.cache[ unlock ] = {}; } return unlock; }, set: function( owner, data, value ) { var prop, // There may be an unlock assigned to this node, // if there is no entry for this "owner", create one inline // and set the unlock as though an owner entry had always existed unlock = this.key( owner ), cache = this.cache[ unlock ]; // Handle: [ owner, key, value ] args if ( typeof data === "string" ) { cache[ data ] = value; // Handle: [ owner, { properties } ] args } else { // Fresh assignments by object are shallow copied if ( jQuery.isEmptyObject( cache ) ) { jQuery.extend( this.cache[ unlock ], data ); // Otherwise, copy the properties one-by-one to the cache object } else { for ( prop in data ) { cache[ prop ] = data[ prop ]; } } } return cache; }, get: function( owner, key ) { // Either a valid cache is found, or will be created. // New caches will be created and the unlock returned, // allowing direct access to the newly created // empty data object. A valid owner object must be provided. var cache = this.cache[ this.key( owner ) ]; return key === undefined ? cache : cache[ key ]; }, access: function( owner, key, value ) { var stored; // In cases where either: // // 1. No key was specified // 2. A string key was specified, but no value provided // // Take the "read" path and allow the get method to determine // which value to return, respectively either: // // 1. The entire cache object // 2. The data stored at the key // if ( key === undefined || ((key && typeof key === "string") && value === undefined) ) { stored = this.get( owner, key ); return stored !== undefined ? stored : this.get( owner, jQuery.camelCase(key) ); } // [*]When the key is not a string, or both a key and value // are specified, set or extend (existing objects) with either: // // 1. An object of properties // 2. A key and value // this.set( owner, key, value ); // Since the "set" path can have two possible entry points // return the expected data based on which path was taken[*] return value !== undefined ? value : key; }, remove: function( owner, key ) { var i, name, camel, unlock = this.key( owner ), cache = this.cache[ unlock ]; if ( key === undefined ) { this.cache[ unlock ] = {}; } else { // Support array or space separated string of keys if ( jQuery.isArray( key ) ) { // If "name" is an array of keys... // When data is initially created, via ("key", "val") signature, // keys will be converted to camelCase. // Since there is no way to tell _how_ a key was added, remove // both plain key and camelCase key. #12786 // This will only penalize the array argument path. name = key.concat( key.map( jQuery.camelCase ) ); } else { camel = jQuery.camelCase( key ); // Try the string as a key before any manipulation if ( key in cache ) { name = [ key, camel ]; } else { // If a key with the spaces exists, use it. // Otherwise, create an array by matching non-whitespace name = camel; name = name in cache ? [ name ] : ( name.match( core_rnotwhite ) || [] ); } } i = name.length; while ( i-- ) { delete cache[ name[ i ] ]; } } }, hasData: function( owner ) { return !jQuery.isEmptyObject( this.cache[ owner[ this.expando ] ] || {} ); }, discard: function( owner ) { if ( owner[ this.expando ] ) { delete this.cache[ owner[ this.expando ] ]; } } }; // These may be used throughout the jQuery core codebase data_user = new Data(); data_priv = new Data(); jQuery.extend({ acceptData: Data.accepts, hasData: function( elem ) { return data_user.hasData( elem ) || data_priv.hasData( elem ); }, data: function( elem, name, data ) { return data_user.access( elem, name, data ); }, removeData: function( elem, name ) { data_user.remove( elem, name ); }, // TODO: Now that all calls to _data and _removeData have been replaced // with direct calls to data_priv methods, these can be deprecated. _data: function( elem, name, data ) { return data_priv.access( elem, name, data ); }, _removeData: function( elem, name ) { data_priv.remove( elem, name ); } }); jQuery.fn.extend({ data: function( key, value ) { var attrs, name, elem = this[ 0 ], i = 0, data = null; // Gets all values if ( key === undefined ) { if ( this.length ) { data = data_user.get( elem ); if ( elem.nodeType === 1 && !data_priv.get( elem, "hasDataAttrs" ) ) { attrs = elem.attributes; for ( ; i < attrs.length; i++ ) { name = attrs[ i ].name; if ( name.indexOf( "data-" ) === 0 ) { name = jQuery.camelCase( name.slice(5) ); dataAttr( elem, name, data[ name ] ); } } data_priv.set( elem, "hasDataAttrs", true ); } } return data; } // Sets multiple values if ( typeof key === "object" ) { return this.each(function() { data_user.set( this, key ); }); } return jQuery.access( this, function( value ) { var data, camelKey = jQuery.camelCase( key ); // The calling jQuery object (element matches) is not empty // (and therefore has an element appears at this[ 0 ]) and the // `value` parameter was not undefined. An empty jQuery object // will result in `undefined` for elem = this[ 0 ] which will // throw an exception if an attempt to read a data cache is made. if ( elem && value === undefined ) { // Attempt to get data from the cache // with the key as-is data = data_user.get( elem, key ); if ( data !== undefined ) { return data; } // Attempt to get data from the cache // with the key camelized data = data_user.get( elem, camelKey ); if ( data !== undefined ) { return data; } // Attempt to "discover" the data in // HTML5 custom data-* attrs data = dataAttr( elem, camelKey, undefined ); if ( data !== undefined ) { return data; } // We tried really hard, but the data doesn't exist. return; } // Set the data... this.each(function() { // First, attempt to store a copy or reference of any // data that might've been store with a camelCased key. var data = data_user.get( this, camelKey ); // For HTML5 data-* attribute interop, we have to // store property names with dashes in a camelCase form. // This might not apply to all properties...* data_user.set( this, camelKey, value ); // *... In the case of properties that might _actually_ // have dashes, we need to also store a copy of that // unchanged property. if ( key.indexOf("-") !== -1 && data !== undefined ) { data_user.set( this, key, value ); } }); }, null, value, arguments.length > 1, null, true ); }, removeData: function( key ) { return this.each(function() { data_user.remove( this, key ); }); } }); function dataAttr( elem, key, data ) { var name; // If nothing was found internally, try to fetch any // data from the HTML5 data-* attribute if ( data === undefined && elem.nodeType === 1 ) { name = "data-" + key.replace( rmultiDash, "-$1" ).toLowerCase(); data = elem.getAttribute( name ); if ( typeof data === "string" ) { try { data = data === "true" ? true : data === "false" ? false : data === "null" ? null : // Only convert to a number if it doesn't change the string +data + "" === data ? +data : rbrace.test( data ) ? JSON.parse( data ) : data; } catch( e ) {} // Make sure we set the data so it isn't changed later data_user.set( elem, key, data ); } else { data = undefined; } } return data; } jQuery.extend({ queue: function( elem, type, data ) { var queue; if ( elem ) { type = ( type || "fx" ) + "queue"; queue = data_priv.get( elem, type ); // Speed up dequeue by getting out quickly if this is just a lookup if ( data ) { if ( !queue || jQuery.isArray( data ) ) { queue = data_priv.access( elem, type, jQuery.makeArray(data) ); } else { queue.push( data ); } } return queue || []; } }, dequeue: function( elem, type ) { type = type || "fx"; var queue = jQuery.queue( elem, type ), startLength = queue.length, fn = queue.shift(), hooks = jQuery._queueHooks( elem, type ), next = function() { jQuery.dequeue( elem, type ); }; // If the fx queue is dequeued, always remove the progress sentinel if ( fn === "inprogress" ) { fn = queue.shift(); startLength--; } if ( fn ) { // Add a progress sentinel to prevent the fx queue from being // automatically dequeued if ( type === "fx" ) { queue.unshift( "inprogress" ); } // clear up the last queue stop function delete hooks.stop; fn.call( elem, next, hooks ); } if ( !startLength && hooks ) { hooks.empty.fire(); } }, // not intended for public consumption - generates a queueHooks object, or returns the current one _queueHooks: function( elem, type ) { var key = type + "queueHooks"; return data_priv.get( elem, key ) || data_priv.access( elem, key, { empty: jQuery.Callbacks("once memory").add(function() { data_priv.remove( elem, [ type + "queue", key ] ); }) }); } }); jQuery.fn.extend({ queue: function( type, data ) { var setter = 2; if ( typeof type !== "string" ) { data = type; type = "fx"; setter--; } if ( arguments.length < setter ) { return jQuery.queue( this[0], type ); } return data === undefined ? this : this.each(function() { var queue = jQuery.queue( this, type, data ); // ensure a hooks for this queue jQuery._queueHooks( this, type ); if ( type === "fx" && queue[0] !== "inprogress" ) { jQuery.dequeue( this, type ); } }); }, dequeue: function( type ) { return this.each(function() { jQuery.dequeue( this, type ); }); }, // Based off of the plugin by Clint Helfers, with permission. // http://blindsignals.com/index.php/2009/07/jquery-delay/ delay: function( time, type ) { time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time; type = type || "fx"; return this.queue( type, function( next, hooks ) { var timeout = setTimeout( next, time ); hooks.stop = function() { clearTimeout( timeout ); }; }); }, clearQueue: function( type ) { return this.queue( type || "fx", [] ); }, // Get a promise resolved when queues of a certain type // are emptied (fx is the type by default) promise: function( type, obj ) { var tmp, count = 1, defer = jQuery.Deferred(), elements = this, i = this.length, resolve = function() { if ( !( --count ) ) { defer.resolveWith( elements, [ elements ] ); } }; if ( typeof type !== "string" ) { obj = type; type = undefined; } type = type || "fx"; while( i-- ) { tmp = data_priv.get( elements[ i ], type + "queueHooks" ); if ( tmp && tmp.empty ) { count++; tmp.empty.add( resolve ); } } resolve(); return defer.promise( obj ); } }); var nodeHook, boolHook, rclass = /[\t\r\n\f]/g, rreturn = /\r/g, rfocusable = /^(?:input|select|textarea|button)$/i; jQuery.fn.extend({ attr: function( name, value ) { return jQuery.access( this, jQuery.attr, name, value, arguments.length > 1 ); }, removeAttr: function( name ) { return this.each(function() { jQuery.removeAttr( this, name ); }); }, prop: function( name, value ) { return jQuery.access( this, jQuery.prop, name, value, arguments.length > 1 ); }, removeProp: function( name ) { return this.each(function() { delete this[ jQuery.propFix[ name ] || name ]; }); }, addClass: function( value ) { var classes, elem, cur, clazz, j, i = 0, len = this.length, proceed = typeof value === "string" && value; if ( jQuery.isFunction( value ) ) { return this.each(function( j ) { jQuery( this ).addClass( value.call( this, j, this.className ) ); }); } if ( proceed ) { // The disjunction here is for better compressibility (see removeClass) classes = ( value || "" ).match( core_rnotwhite ) || []; for ( ; i < len; i++ ) { elem = this[ i ]; cur = elem.nodeType === 1 && ( elem.className ? ( " " + elem.className + " " ).replace( rclass, " " ) : " " ); if ( cur ) { j = 0; while ( (clazz = classes[j++]) ) { if ( cur.indexOf( " " + clazz + " " ) < 0 ) { cur += clazz + " "; } } elem.className = jQuery.trim( cur ); } } } return this; }, removeClass: function( value ) { var classes, elem, cur, clazz, j, i = 0, len = this.length, proceed = arguments.length === 0 || typeof value === "string" && value; if ( jQuery.isFunction( value ) ) { return this.each(function( j ) { jQuery( this ).removeClass( value.call( this, j, this.className ) ); }); } if ( proceed ) { classes = ( value || "" ).match( core_rnotwhite ) || []; for ( ; i < len; i++ ) { elem = this[ i ]; // This expression is here for better compressibility (see addClass) cur = elem.nodeType === 1 && ( elem.className ? ( " " + elem.className + " " ).replace( rclass, " " ) : "" ); if ( cur ) { j = 0; while ( (clazz = classes[j++]) ) { // Remove *all* instances while ( cur.indexOf( " " + clazz + " " ) >= 0 ) { cur = cur.replace( " " + clazz + " ", " " ); } } elem.className = value ? jQuery.trim( cur ) : ""; } } } return this; }, toggleClass: function( value, stateVal ) { var type = typeof value; if ( typeof stateVal === "boolean" && type === "string" ) { return stateVal ? this.addClass( value ) : this.removeClass( value ); } if ( jQuery.isFunction( value ) ) { return this.each(function( i ) { jQuery( this ).toggleClass( value.call(this, i, this.className, stateVal), stateVal ); }); } return this.each(function() { if ( type === "string" ) { // toggle individual class names var className, i = 0, self = jQuery( this ), classNames = value.match( core_rnotwhite ) || []; while ( (className = classNames[ i++ ]) ) { // check each className given, space separated list if ( self.hasClass( className ) ) { self.removeClass( className ); } else { self.addClass( className ); } } // Toggle whole class name } else if ( type === core_strundefined || type === "boolean" ) { if ( this.className ) { // store className if set data_priv.set( this, "__className__", this.className ); } // If the element has a class name or if we're passed "false", // then remove the whole classname (if there was one, the above saved it). // Otherwise bring back whatever was previously saved (if anything), // falling back to the empty string if nothing was stored. this.className = this.className || value === false ? "" : data_priv.get( this, "__className__" ) || ""; } }); }, hasClass: function( selector ) { var className = " " + selector + " ", i = 0, l = this.length; for ( ; i < l; i++ ) { if ( this[i].nodeType === 1 && (" " + this[i].className + " ").replace(rclass, " ").indexOf( className ) >= 0 ) { return true; } } return false; }, val: function( value ) { var hooks, ret, isFunction, elem = this[0]; if ( !arguments.length ) { if ( elem ) { hooks = jQuery.valHooks[ elem.type ] || jQuery.valHooks[ elem.nodeName.toLowerCase() ]; if ( hooks && "get" in hooks && (ret = hooks.get( elem, "value" )) !== undefined ) { return ret; } ret = elem.value; return typeof ret === "string" ? // handle most common string cases ret.replace(rreturn, "") : // handle cases where value is null/undef or number ret == null ? "" : ret; } return; } isFunction = jQuery.isFunction( value ); return this.each(function( i ) { var val; if ( this.nodeType !== 1 ) { return; } if ( isFunction ) { val = value.call( this, i, jQuery( this ).val() ); } else { val = value; } // Treat null/undefined as ""; convert numbers to string if ( val == null ) { val = ""; } else if ( typeof val === "number" ) { val += ""; } else if ( jQuery.isArray( val ) ) { val = jQuery.map(val, function ( value ) { return value == null ? "" : value + ""; }); } hooks = jQuery.valHooks[ this.type ] || jQuery.valHooks[ this.nodeName.toLowerCase() ]; // If set returns undefined, fall back to normal setting if ( !hooks || !("set" in hooks) || hooks.set( this, val, "value" ) === undefined ) { this.value = val; } }); } }); jQuery.extend({ valHooks: { option: { get: function( elem ) { // attributes.value is undefined in Blackberry 4.7 but // uses .value. See #6932 var val = elem.attributes.value; return !val || val.specified ? elem.value : elem.text; } }, select: { get: function( elem ) { var value, option, options = elem.options, index = elem.selectedIndex, one = elem.type === "select-one" || index < 0, values = one ? null : [], max = one ? index + 1 : options.length, i = index < 0 ? max : one ? index : 0; // Loop through all the selected options for ( ; i < max; i++ ) { option = options[ i ]; // IE6-9 doesn't update selected after form reset (#2551) if ( ( option.selected || i === index ) && // Don't return options that are disabled or in a disabled optgroup ( jQuery.support.optDisabled ? !option.disabled : option.getAttribute("disabled") === null ) && ( !option.parentNode.disabled || !jQuery.nodeName( option.parentNode, "optgroup" ) ) ) { // Get the specific value for the option value = jQuery( option ).val(); // We don't need an array for one selects if ( one ) { return value; } // Multi-Selects return an array values.push( value ); } } return values; }, set: function( elem, value ) { var optionSet, option, options = elem.options, values = jQuery.makeArray( value ), i = options.length; while ( i-- ) { option = options[ i ]; if ( (option.selected = jQuery.inArray( jQuery(option).val(), values ) >= 0) ) { optionSet = true; } } // force browsers to behave consistently when non-matching value is set if ( !optionSet ) { elem.selectedIndex = -1; } return values; } } }, attr: function( elem, name, value ) { var hooks, ret, nType = elem.nodeType; // don't get/set attributes on text, comment and attribute nodes if ( !elem || nType === 3 || nType === 8 || nType === 2 ) { return; } // Fallback to prop when attributes are not supported if ( typeof elem.getAttribute === core_strundefined ) { return jQuery.prop( elem, name, value ); } // All attributes are lowercase // Grab necessary hook if one is defined if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) { name = name.toLowerCase(); hooks = jQuery.attrHooks[ name ] || ( jQuery.expr.match.bool.test( name ) ? boolHook : nodeHook ); } if ( value !== undefined ) { if ( value === null ) { jQuery.removeAttr( elem, name ); } else if ( hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ) { return ret; } else { elem.setAttribute( name, value + "" ); return value; } } else if ( hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== null ) { return ret; } else { ret = jQuery.find.attr( elem, name ); // Non-existent attributes return null, we normalize to undefined return ret == null ? undefined : ret; } }, removeAttr: function( elem, value ) { var name, propName, i = 0, attrNames = value && value.match( core_rnotwhite ); if ( attrNames && elem.nodeType === 1 ) { while ( (name = attrNames[i++]) ) { propName = jQuery.propFix[ name ] || name; // Boolean attributes get special treatment (#10870) if ( jQuery.expr.match.bool.test( name ) ) { // Set corresponding property to false elem[ propName ] = false; } elem.removeAttribute( name ); } } }, attrHooks: { type: { set: function( elem, value ) { if ( !jQuery.support.radioValue && value === "radio" && jQuery.nodeName(elem, "input") ) { // Setting the type on a radio button after the value resets the value in IE6-9 // Reset value to default in case type is set after value during creation var val = elem.value; elem.setAttribute( "type", value ); if ( val ) { elem.value = val; } return value; } } } }, propFix: { "for": "htmlFor", "class": "className" }, prop: function( elem, name, value ) { var ret, hooks, notxml, nType = elem.nodeType; // don't get/set properties on text, comment and attribute nodes if ( !elem || nType === 3 || nType === 8 || nType === 2 ) { return; } notxml = nType !== 1 || !jQuery.isXMLDoc( elem ); if ( notxml ) { // Fix name and attach hooks name = jQuery.propFix[ name ] || name; hooks = jQuery.propHooks[ name ]; } if ( value !== undefined ) { return hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ? ret : ( elem[ name ] = value ); } else { return hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== null ? ret : elem[ name ]; } }, propHooks: { tabIndex: { get: function( elem ) { return elem.hasAttribute( "tabindex" ) || rfocusable.test( elem.nodeName ) || elem.href ? elem.tabIndex : -1; } } } }); // Hooks for boolean attributes boolHook = { set: function( elem, value, name ) { if ( value === false ) { // Remove boolean attributes when set to false jQuery.removeAttr( elem, name ); } else { elem.setAttribute( name, name ); } return name; } }; jQuery.each( jQuery.expr.match.bool.source.match( /\w+/g ), function( i, name ) { var getter = jQuery.expr.attrHandle[ name ] || jQuery.find.attr; jQuery.expr.attrHandle[ name ] = function( elem, name, isXML ) { var fn = jQuery.expr.attrHandle[ name ], ret = isXML ? undefined : /* jshint eqeqeq: false */ // Temporarily disable this handler to check existence (jQuery.expr.attrHandle[ name ] = undefined) != getter( elem, name, isXML ) ? name.toLowerCase() : null; // Restore handler jQuery.expr.attrHandle[ name ] = fn; return ret; }; }); // Support: IE9+ // Selectedness for an option in an optgroup can be inaccurate if ( !jQuery.support.optSelected ) { jQuery.propHooks.selected = { get: function( elem ) { var parent = elem.parentNode; if ( parent && parent.parentNode ) { parent.parentNode.selectedIndex; } return null; } }; } jQuery.each([ "tabIndex", "readOnly", "maxLength", "cellSpacing", "cellPadding", "rowSpan", "colSpan", "useMap", "frameBorder", "contentEditable" ], function() { jQuery.propFix[ this.toLowerCase() ] = this; }); // Radios and checkboxes getter/setter jQuery.each([ "radio", "checkbox" ], function() { jQuery.valHooks[ this ] = { set: function( elem, value ) { if ( jQuery.isArray( value ) ) { return ( elem.checked = jQuery.inArray( jQuery(elem).val(), value ) >= 0 ); } } }; if ( !jQuery.support.checkOn ) { jQuery.valHooks[ this ].get = function( elem ) { // Support: Webkit // "" is returned instead of "on" if a value isn't specified return elem.getAttribute("value") === null ? "on" : elem.value; }; } }); var rkeyEvent = /^key/, rmouseEvent = /^(?:mouse|contextmenu)|click/, rfocusMorph = /^(?:focusinfocus|focusoutblur)$/, rtypenamespace = /^([^.]*)(?:\.(.+)|)$/; function returnTrue() { return true; } function returnFalse() { return false; } function safeActiveElement() { try { return document.activeElement; } catch ( err ) { } } /* * Helper functions for managing events -- not part of the public interface. * Props to Dean Edwards' addEvent library for many of the ideas. */ jQuery.event = { global: {}, add: function( elem, types, handler, data, selector ) { var handleObjIn, eventHandle, tmp, events, t, handleObj, special, handlers, type, namespaces, origType, elemData = data_priv.get( elem ); // Don't attach events to noData or text/comment nodes (but allow plain objects) if ( !elemData ) { return; } // Caller can pass in an object of custom data in lieu of the handler if ( handler.handler ) { handleObjIn = handler; handler = handleObjIn.handler; selector = handleObjIn.selector; } // Make sure that the handler has a unique ID, used to find/remove it later if ( !handler.guid ) { handler.guid = jQuery.guid++; } // Init the element's event structure and main handler, if this is the first if ( !(events = elemData.events) ) { events = elemData.events = {}; } if ( !(eventHandle = elemData.handle) ) { eventHandle = elemData.handle = function( e ) { // Discard the second event of a jQuery.event.trigger() and // when an event is called after a page has unloaded return typeof jQuery !== core_strundefined && (!e || jQuery.event.triggered !== e.type) ? jQuery.event.dispatch.apply( eventHandle.elem, arguments ) : undefined; }; // Add elem as a property of the handle fn to prevent a memory leak with IE non-native events eventHandle.elem = elem; } // Handle multiple events separated by a space types = ( types || "" ).match( core_rnotwhite ) || [""]; t = types.length; while ( t-- ) { tmp = rtypenamespace.exec( types[t] ) || []; type = origType = tmp[1]; namespaces = ( tmp[2] || "" ).split( "." ).sort(); // There *must* be a type, no attaching namespace-only handlers if ( !type ) { continue; } // If event changes its type, use the special event handlers for the changed type special = jQuery.event.special[ type ] || {}; // If selector defined, determine special event api type, otherwise given type type = ( selector ? special.delegateType : special.bindType ) || type; // Update special based on newly reset type special = jQuery.event.special[ type ] || {}; // handleObj is passed to all event handlers handleObj = jQuery.extend({ type: type, origType: origType, data: data, handler: handler, guid: handler.guid, selector: selector, needsContext: selector && jQuery.expr.match.needsContext.test( selector ), namespace: namespaces.join(".") }, handleObjIn ); // Init the event handler queue if we're the first if ( !(handlers = events[ type ]) ) { handlers = events[ type ] = []; handlers.delegateCount = 0; // Only use addEventListener if the special events handler returns false if ( !special.setup || special.setup.call( elem, data, namespaces, eventHandle ) === false ) { if ( elem.addEventListener ) { elem.addEventListener( type, eventHandle, false ); } } } if ( special.add ) { special.add.call( elem, handleObj ); if ( !handleObj.handler.guid ) { handleObj.handler.guid = handler.guid; } } // Add to the element's handler list, delegates in front if ( selector ) { handlers.splice( handlers.delegateCount++, 0, handleObj ); } else { handlers.push( handleObj ); } // Keep track of which events have ever been used, for event optimization jQuery.event.global[ type ] = true; } // Nullify elem to prevent memory leaks in IE elem = null; }, // Detach an event or set of events from an element remove: function( elem, types, handler, selector, mappedTypes ) { var j, origCount, tmp, events, t, handleObj, special, handlers, type, namespaces, origType, elemData = data_priv.hasData( elem ) && data_priv.get( elem ); if ( !elemData || !(events = elemData.events) ) { return; } // Once for each type.namespace in types; type may be omitted types = ( types || "" ).match( core_rnotwhite ) || [""]; t = types.length; while ( t-- ) { tmp = rtypenamespace.exec( types[t] ) || []; type = origType = tmp[1]; namespaces = ( tmp[2] || "" ).split( "." ).sort(); // Unbind all events (on this namespace, if provided) for the element if ( !type ) { for ( type in events ) { jQuery.event.remove( elem, type + types[ t ], handler, selector, true ); } continue; } special = jQuery.event.special[ type ] || {}; type = ( selector ? special.delegateType : special.bindType ) || type; handlers = events[ type ] || []; tmp = tmp[2] && new RegExp( "(^|\\.)" + namespaces.join("\\.(?:.*\\.|)") + "(\\.|$)" ); // Remove matching events origCount = j = handlers.length; while ( j-- ) { handleObj = handlers[ j ]; if ( ( mappedTypes || origType === handleObj.origType ) && ( !handler || handler.guid === handleObj.guid ) && ( !tmp || tmp.test( handleObj.namespace ) ) && ( !selector || selector === handleObj.selector || selector === "**" && handleObj.selector ) ) { handlers.splice( j, 1 ); if ( handleObj.selector ) { handlers.delegateCount--; } if ( special.remove ) { special.remove.call( elem, handleObj ); } } } // Remove generic event handler if we removed something and no more handlers exist // (avoids potential for endless recursion during removal of special event handlers) if ( origCount && !handlers.length ) { if ( !special.teardown || special.teardown.call( elem, namespaces, elemData.handle ) === false ) { jQuery.removeEvent( elem, type, elemData.handle ); } delete events[ type ]; } } // Remove the expando if it's no longer used if ( jQuery.isEmptyObject( events ) ) { delete elemData.handle; data_priv.remove( elem, "events" ); } }, trigger: function( event, data, elem, onlyHandlers ) { var i, cur, tmp, bubbleType, ontype, handle, special, eventPath = [ elem || document ], type = core_hasOwn.call( event, "type" ) ? event.type : event, namespaces = core_hasOwn.call( event, "namespace" ) ? event.namespace.split(".") : []; cur = tmp = elem = elem || document; // Don't do events on text and comment nodes if ( elem.nodeType === 3 || elem.nodeType === 8 ) { return; } // focus/blur morphs to focusin/out; ensure we're not firing them right now if ( rfocusMorph.test( type + jQuery.event.triggered ) ) { return; } if ( type.indexOf(".") >= 0 ) { // Namespaced trigger; create a regexp to match event type in handle() namespaces = type.split("."); type = namespaces.shift(); namespaces.sort(); } ontype = type.indexOf(":") < 0 && "on" + type; // Caller can pass in a jQuery.Event object, Object, or just an event type string event = event[ jQuery.expando ] ? event : new jQuery.Event( type, typeof event === "object" && event ); // Trigger bitmask: & 1 for native handlers; & 2 for jQuery (always true) event.isTrigger = onlyHandlers ? 2 : 3; event.namespace = namespaces.join("."); event.namespace_re = event.namespace ? new RegExp( "(^|\\.)" + namespaces.join("\\.(?:.*\\.|)") + "(\\.|$)" ) : null; // Clean up the event in case it is being reused event.result = undefined; if ( !event.target ) { event.target = elem; } // Clone any incoming data and prepend the event, creating the handler arg list data = data == null ? [ event ] : jQuery.makeArray( data, [ event ] ); // Allow special events to draw outside the lines special = jQuery.event.special[ type ] || {}; if ( !onlyHandlers && special.trigger && special.trigger.apply( elem, data ) === false ) { return; } // Determine event propagation path in advance, per W3C events spec (#9951) // Bubble up to document, then to window; watch for a global ownerDocument var (#9724) if ( !onlyHandlers && !special.noBubble && !jQuery.isWindow( elem ) ) { bubbleType = special.delegateType || type; if ( !rfocusMorph.test( bubbleType + type ) ) { cur = cur.parentNode; } for ( ; cur; cur = cur.parentNode ) { eventPath.push( cur ); tmp = cur; } // Only add window if we got to document (e.g., not plain obj or detached DOM) if ( tmp === (elem.ownerDocument || document) ) { eventPath.push( tmp.defaultView || tmp.parentWindow || window ); } } // Fire handlers on the event path i = 0; while ( (cur = eventPath[i++]) && !event.isPropagationStopped() ) { event.type = i > 1 ? bubbleType : special.bindType || type; // jQuery handler handle = ( data_priv.get( cur, "events" ) || {} )[ event.type ] && data_priv.get( cur, "handle" ); if ( handle ) { handle.apply( cur, data ); } // Native handler handle = ontype && cur[ ontype ]; if ( handle && jQuery.acceptData( cur ) && handle.apply && handle.apply( cur, data ) === false ) { event.preventDefault(); } } event.type = type; // If nobody prevented the default action, do it now if ( !onlyHandlers && !event.isDefaultPrevented() ) { if ( (!special._default || special._default.apply( eventPath.pop(), data ) === false) && jQuery.acceptData( elem ) ) { // Call a native DOM method on the target with the same name name as the event. // Don't do default actions on window, that's where global variables be (#6170) if ( ontype && jQuery.isFunction( elem[ type ] ) && !jQuery.isWindow( elem ) ) { // Don't re-trigger an onFOO event when we call its FOO() method tmp = elem[ ontype ]; if ( tmp ) { elem[ ontype ] = null; } // Prevent re-triggering of the same event, since we already bubbled it above jQuery.event.triggered = type; elem[ type ](); jQuery.event.triggered = undefined; if ( tmp ) { elem[ ontype ] = tmp; } } } } return event.result; }, dispatch: function( event ) { // Make a writable jQuery.Event from the native event object event = jQuery.event.fix( event ); var i, j, ret, matched, handleObj, handlerQueue = [], args = core_slice.call( arguments ), handlers = ( data_priv.get( this, "events" ) || {} )[ event.type ] || [], special = jQuery.event.special[ event.type ] || {}; // Use the fix-ed jQuery.Event rather than the (read-only) native event args[0] = event; event.delegateTarget = this; // Call the preDispatch hook for the mapped type, and let it bail if desired if ( special.preDispatch && special.preDispatch.call( this, event ) === false ) { return; } // Determine handlers handlerQueue = jQuery.event.handlers.call( this, event, handlers ); // Run delegates first; they may want to stop propagation beneath us i = 0; while ( (matched = handlerQueue[ i++ ]) && !event.isPropagationStopped() ) { event.currentTarget = matched.elem; j = 0; while ( (handleObj = matched.handlers[ j++ ]) && !event.isImmediatePropagationStopped() ) { // Triggered event must either 1) have no namespace, or // 2) have namespace(s) a subset or equal to those in the bound event (both can have no namespace). if ( !event.namespace_re || event.namespace_re.test( handleObj.namespace ) ) { event.handleObj = handleObj; event.data = handleObj.data; ret = ( (jQuery.event.special[ handleObj.origType ] || {}).handle || handleObj.handler ) .apply( matched.elem, args ); if ( ret !== undefined ) { if ( (event.result = ret) === false ) { event.preventDefault(); event.stopPropagation(); } } } } } // Call the postDispatch hook for the mapped type if ( special.postDispatch ) { special.postDispatch.call( this, event ); } return event.result; }, handlers: function( event, handlers ) { var i, matches, sel, handleObj, handlerQueue = [], delegateCount = handlers.delegateCount, cur = event.target; // Find delegate handlers // Black-hole SVG <use> instance trees (#13180) // Avoid non-left-click bubbling in Firefox (#3861) if ( delegateCount && cur.nodeType && (!event.button || event.type !== "click") ) { for ( ; cur !== this; cur = cur.parentNode || this ) { // Don't process clicks on disabled elements (#6911, #8165, #11382, #11764) if ( cur.disabled !== true || event.type !== "click" ) { matches = []; for ( i = 0; i < delegateCount; i++ ) { handleObj = handlers[ i ]; // Don't conflict with Object.prototype properties (#13203) sel = handleObj.selector + " "; if ( matches[ sel ] === undefined ) { matches[ sel ] = handleObj.needsContext ? jQuery( sel, this ).index( cur ) >= 0 : jQuery.find( sel, this, null, [ cur ] ).length; } if ( matches[ sel ] ) { matches.push( handleObj ); } } if ( matches.length ) { handlerQueue.push({ elem: cur, handlers: matches }); } } } } // Add the remaining (directly-bound) handlers if ( delegateCount < handlers.length ) { handlerQueue.push({ elem: this, handlers: handlers.slice( delegateCount ) }); } return handlerQueue; }, // Includes some event props shared by KeyEvent and MouseEvent props: "altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "), fixHooks: {}, keyHooks: { props: "char charCode key keyCode".split(" "), filter: function( event, original ) { // Add which for key events if ( event.which == null ) { event.which = original.charCode != null ? original.charCode : original.keyCode; } return event; } }, mouseHooks: { props: "button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "), filter: function( event, original ) { var eventDoc, doc, body, button = original.button; // Calculate pageX/Y if missing and clientX/Y available if ( event.pageX == null && original.clientX != null ) { eventDoc = event.target.ownerDocument || document; doc = eventDoc.documentElement; body = eventDoc.body; event.pageX = original.clientX + ( doc && doc.scrollLeft || body && body.scrollLeft || 0 ) - ( doc && doc.clientLeft || body && body.clientLeft || 0 ); event.pageY = original.clientY + ( doc && doc.scrollTop || body && body.scrollTop || 0 ) - ( doc && doc.clientTop || body && body.clientTop || 0 ); } // Add which for click: 1 === left; 2 === middle; 3 === right // Note: button is not normalized, so don't use it if ( !event.which && button !== undefined ) { event.which = ( button & 1 ? 1 : ( button & 2 ? 3 : ( button & 4 ? 2 : 0 ) ) ); } return event; } }, fix: function( event ) { if ( event[ jQuery.expando ] ) { return event; } // Create a writable copy of the event object and normalize some properties var i, prop, copy, type = event.type, originalEvent = event, fixHook = this.fixHooks[ type ]; if ( !fixHook ) { this.fixHooks[ type ] = fixHook = rmouseEvent.test( type ) ? this.mouseHooks : rkeyEvent.test( type ) ? this.keyHooks : {}; } copy = fixHook.props ? this.props.concat( fixHook.props ) : this.props; event = new jQuery.Event( originalEvent ); i = copy.length; while ( i-- ) { prop = copy[ i ]; event[ prop ] = originalEvent[ prop ]; } // Support: Cordova 2.5 (WebKit) (#13255) // All events should have a target; Cordova deviceready doesn't if ( !event.target ) { event.target = document; } // Support: Safari 6.0+, Chrome < 28 // Target should not be a text node (#504, #13143) if ( event.target.nodeType === 3 ) { event.target = event.target.parentNode; } return fixHook.filter? fixHook.filter( event, originalEvent ) : event; }, special: { load: { // Prevent triggered image.load events from bubbling to window.load noBubble: true }, focus: { // Fire native event if possible so blur/focus sequence is correct trigger: function() { if ( this !== safeActiveElement() && this.focus ) { this.focus(); return false; } }, delegateType: "focusin" }, blur: { trigger: function() { if ( this === safeActiveElement() && this.blur ) { this.blur(); return false; } }, delegateType: "focusout" }, click: { // For checkbox, fire native event so checked state will be right trigger: function() { if ( this.type === "checkbox" && this.click && jQuery.nodeName( this, "input" ) ) { this.click(); return false; } }, // For cross-browser consistency, don't fire native .click() on links _default: function( event ) { return jQuery.nodeName( event.target, "a" ); } }, beforeunload: { postDispatch: function( event ) { // Support: Firefox 20+ // Firefox doesn't alert if the returnValue field is not set. if ( event.result !== undefined ) { event.originalEvent.returnValue = event.result; } } } }, simulate: function( type, elem, event, bubble ) { // Piggyback on a donor event to simulate a different one. // Fake originalEvent to avoid donor's stopPropagation, but if the // simulated event prevents default then we do the same on the donor. var e = jQuery.extend( new jQuery.Event(), event, { type: type, isSimulated: true, originalEvent: {} } ); if ( bubble ) { jQuery.event.trigger( e, null, elem ); } else { jQuery.event.dispatch.call( elem, e ); } if ( e.isDefaultPrevented() ) { event.preventDefault(); } } }; jQuery.removeEvent = function( elem, type, handle ) { if ( elem.removeEventListener ) { elem.removeEventListener( type, handle, false ); } }; jQuery.Event = function( src, props ) { // Allow instantiation without the 'new' keyword if ( !(this instanceof jQuery.Event) ) { return new jQuery.Event( src, props ); } // Event object if ( src && src.type ) { this.originalEvent = src; this.type = src.type; // Events bubbling up the document may have been marked as prevented // by a handler lower down the tree; reflect the correct value. this.isDefaultPrevented = ( src.defaultPrevented || src.getPreventDefault && src.getPreventDefault() ) ? returnTrue : returnFalse; // Event type } else { this.type = src; } // Put explicitly provided properties onto the event object if ( props ) { jQuery.extend( this, props ); } // Create a timestamp if incoming event doesn't have one this.timeStamp = src && src.timeStamp || jQuery.now(); // Mark it as fixed this[ jQuery.expando ] = true; }; // jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding // http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html jQuery.Event.prototype = { isDefaultPrevented: returnFalse, isPropagationStopped: returnFalse, isImmediatePropagationStopped: returnFalse, preventDefault: function() { var e = this.originalEvent; this.isDefaultPrevented = returnTrue; if ( e && e.preventDefault ) { e.preventDefault(); } }, stopPropagation: function() { var e = this.originalEvent; this.isPropagationStopped = returnTrue; if ( e && e.stopPropagation ) { e.stopPropagation(); } }, stopImmediatePropagation: function() { this.isImmediatePropagationStopped = returnTrue; this.stopPropagation(); } }; // Create mouseenter/leave events using mouseover/out and event-time checks // Support: Chrome 15+ jQuery.each({ mouseenter: "mouseover", mouseleave: "mouseout" }, function( orig, fix ) { jQuery.event.special[ orig ] = { delegateType: fix, bindType: fix, handle: function( event ) { var ret, target = this, related = event.relatedTarget, handleObj = event.handleObj; // For mousenter/leave call the handler if related is outside the target. // NB: No relatedTarget if the mouse left/entered the browser window if ( !related || (related !== target && !jQuery.contains( target, related )) ) { event.type = handleObj.origType; ret = handleObj.handler.apply( this, arguments ); event.type = fix; } return ret; } }; }); // Create "bubbling" focus and blur events // Support: Firefox, Chrome, Safari if ( !jQuery.support.focusinBubbles ) { jQuery.each({ focus: "focusin", blur: "focusout" }, function( orig, fix ) { // Attach a single capturing handler while someone wants focusin/focusout var attaches = 0, handler = function( event ) { jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ), true ); }; jQuery.event.special[ fix ] = { setup: function() { if ( attaches++ === 0 ) { document.addEventListener( orig, handler, true ); } }, teardown: function() { if ( --attaches === 0 ) { document.removeEventListener( orig, handler, true ); } } }; }); } jQuery.fn.extend({ on: function( types, selector, data, fn, /*INTERNAL*/ one ) { var origFn, type; // Types can be a map of types/handlers if ( typeof types === "object" ) { // ( types-Object, selector, data ) if ( typeof selector !== "string" ) { // ( types-Object, data ) data = data || selector; selector = undefined; } for ( type in types ) { this.on( type, selector, data, types[ type ], one ); } return this; } if ( data == null && fn == null ) { // ( types, fn ) fn = selector; data = selector = undefined; } else if ( fn == null ) { if ( typeof selector === "string" ) { // ( types, selector, fn ) fn = data; data = undefined; } else { // ( types, data, fn ) fn = data; data = selector; selector = undefined; } } if ( fn === false ) { fn = returnFalse; } else if ( !fn ) { return this; } if ( one === 1 ) { origFn = fn; fn = function( event ) { // Can use an empty set, since event contains the info jQuery().off( event ); return origFn.apply( this, arguments ); }; // Use same guid so caller can remove using origFn fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ ); } return this.each( function() { jQuery.event.add( this, types, fn, data, selector ); }); }, one: function( types, selector, data, fn ) { return this.on( types, selector, data, fn, 1 ); }, off: function( types, selector, fn ) { var handleObj, type; if ( types && types.preventDefault && types.handleObj ) { // ( event ) dispatched jQuery.Event handleObj = types.handleObj; jQuery( types.delegateTarget ).off( handleObj.namespace ? handleObj.origType + "." + handleObj.namespace : handleObj.origType, handleObj.selector, handleObj.handler ); return this; } if ( typeof types === "object" ) { // ( types-object [, selector] ) for ( type in types ) { this.off( type, selector, types[ type ] ); } return this; } if ( selector === false || typeof selector === "function" ) { // ( types [, fn] ) fn = selector; selector = undefined; } if ( fn === false ) { fn = returnFalse; } return this.each(function() { jQuery.event.remove( this, types, fn, selector ); }); }, trigger: function( type, data ) { return this.each(function() { jQuery.event.trigger( type, data, this ); }); }, triggerHandler: function( type, data ) { var elem = this[0]; if ( elem ) { return jQuery.event.trigger( type, data, elem, true ); } } }); var isSimple = /^.[^:#\[\.,]*$/, rparentsprev = /^(?:parents|prev(?:Until|All))/, rneedsContext = jQuery.expr.match.needsContext, // methods guaranteed to produce a unique set when starting from a unique set guaranteedUnique = { children: true, contents: true, next: true, prev: true }; jQuery.fn.extend({ find: function( selector ) { var i, ret = [], self = this, len = self.length; if ( typeof selector !== "string" ) { return this.pushStack( jQuery( selector ).filter(function() { for ( i = 0; i < len; i++ ) { if ( jQuery.contains( self[ i ], this ) ) { return true; } } }) ); } for ( i = 0; i < len; i++ ) { jQuery.find( selector, self[ i ], ret ); } // Needed because $( selector, context ) becomes $( context ).find( selector ) ret = this.pushStack( len > 1 ? jQuery.unique( ret ) : ret ); ret.selector = this.selector ? this.selector + " " + selector : selector; return ret; }, has: function( target ) { var targets = jQuery( target, this ), l = targets.length; return this.filter(function() { var i = 0; for ( ; i < l; i++ ) { if ( jQuery.contains( this, targets[i] ) ) { return true; } } }); }, not: function( selector ) { return this.pushStack( winnow(this, selector || [], true) ); }, filter: function( selector ) { return this.pushStack( winnow(this, selector || [], false) ); }, is: function( selector ) { return !!winnow( this, // If this is a positional/relative selector, check membership in the returned set // so $("p:first").is("p:last") won't return true for a doc with two "p". typeof selector === "string" && rneedsContext.test( selector ) ? jQuery( selector ) : selector || [], false ).length; }, closest: function( selectors, context ) { var cur, i = 0, l = this.length, matched = [], pos = ( rneedsContext.test( selectors ) || typeof selectors !== "string" ) ? jQuery( selectors, context || this.context ) : 0; for ( ; i < l; i++ ) { for ( cur = this[i]; cur && cur !== context; cur = cur.parentNode ) { // Always skip document fragments if ( cur.nodeType < 11 && (pos ? pos.index(cur) > -1 : // Don't pass non-elements to Sizzle cur.nodeType === 1 && jQuery.find.matchesSelector(cur, selectors)) ) { cur = matched.push( cur ); break; } } } return this.pushStack( matched.length > 1 ? jQuery.unique( matched ) : matched ); }, // Determine the position of an element within // the matched set of elements index: function( elem ) { // No argument, return index in parent if ( !elem ) { return ( this[ 0 ] && this[ 0 ].parentNode ) ? this.first().prevAll().length : -1; } // index in selector if ( typeof elem === "string" ) { return core_indexOf.call( jQuery( elem ), this[ 0 ] ); } // Locate the position of the desired element return core_indexOf.call( this, // If it receives a jQuery object, the first element is used elem.jquery ? elem[ 0 ] : elem ); }, add: function( selector, context ) { var set = typeof selector === "string" ? jQuery( selector, context ) : jQuery.makeArray( selector && selector.nodeType ? [ selector ] : selector ), all = jQuery.merge( this.get(), set ); return this.pushStack( jQuery.unique(all) ); }, addBack: function( selector ) { return this.add( selector == null ? this.prevObject : this.prevObject.filter(selector) ); } }); function sibling( cur, dir ) { while ( (cur = cur[dir]) && cur.nodeType !== 1 ) {} return cur; } jQuery.each({ parent: function( elem ) { var parent = elem.parentNode; return parent && parent.nodeType !== 11 ? parent : null; }, parents: function( elem ) { return jQuery.dir( elem, "parentNode" ); }, parentsUntil: function( elem, i, until ) { return jQuery.dir( elem, "parentNode", until ); }, next: function( elem ) { return sibling( elem, "nextSibling" ); }, prev: function( elem ) { return sibling( elem, "previousSibling" ); }, nextAll: function( elem ) { return jQuery.dir( elem, "nextSibling" ); }, prevAll: function( elem ) { return jQuery.dir( elem, "previousSibling" ); }, nextUntil: function( elem, i, until ) { return jQuery.dir( elem, "nextSibling", until ); }, prevUntil: function( elem, i, until ) { return jQuery.dir( elem, "previousSibling", until ); }, siblings: function( elem ) { return jQuery.sibling( ( elem.parentNode || {} ).firstChild, elem ); }, children: function( elem ) { return jQuery.sibling( elem.firstChild ); }, contents: function( elem ) { return elem.contentDocument || jQuery.merge( [], elem.childNodes ); } }, function( name, fn ) { jQuery.fn[ name ] = function( until, selector ) { var matched = jQuery.map( this, fn, until ); if ( name.slice( -5 ) !== "Until" ) { selector = until; } if ( selector && typeof selector === "string" ) { matched = jQuery.filter( selector, matched ); } if ( this.length > 1 ) { // Remove duplicates if ( !guaranteedUnique[ name ] ) { jQuery.unique( matched ); } // Reverse order for parents* and prev-derivatives if ( rparentsprev.test( name ) ) { matched.reverse(); } } return this.pushStack( matched ); }; }); jQuery.extend({ filter: function( expr, elems, not ) { var elem = elems[ 0 ]; if ( not ) { expr = ":not(" + expr + ")"; } return elems.length === 1 && elem.nodeType === 1 ? jQuery.find.matchesSelector( elem, expr ) ? [ elem ] : [] : jQuery.find.matches( expr, jQuery.grep( elems, function( elem ) { return elem.nodeType === 1; })); }, dir: function( elem, dir, until ) { var matched = [], truncate = until !== undefined; while ( (elem = elem[ dir ]) && elem.nodeType !== 9 ) { if ( elem.nodeType === 1 ) { if ( truncate && jQuery( elem ).is( until ) ) { break; } matched.push( elem ); } } return matched; }, sibling: function( n, elem ) { var matched = []; for ( ; n; n = n.nextSibling ) { if ( n.nodeType === 1 && n !== elem ) { matched.push( n ); } } return matched; } }); // Implement the identical functionality for filter and not function winnow( elements, qualifier, not ) { if ( jQuery.isFunction( qualifier ) ) { return jQuery.grep( elements, function( elem, i ) { /* jshint -W018 */ return !!qualifier.call( elem, i, elem ) !== not; }); } if ( qualifier.nodeType ) { return jQuery.grep( elements, function( elem ) { return ( elem === qualifier ) !== not; }); } if ( typeof qualifier === "string" ) { if ( isSimple.test( qualifier ) ) { return jQuery.filter( qualifier, elements, not ); } qualifier = jQuery.filter( qualifier, elements ); } return jQuery.grep( elements, function( elem ) { return ( core_indexOf.call( qualifier, elem ) >= 0 ) !== not; }); } var rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi, rtagName = /<([\w:]+)/, rhtml = /<|&#?\w+;/, rnoInnerhtml = /<(?:script|style|link)/i, manipulation_rcheckableType = /^(?:checkbox|radio)$/i, // checked="checked" or checked rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i, rscriptType = /^$|\/(?:java|ecma)script/i, rscriptTypeMasked = /^true\/(.*)/, rcleanScript = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g, // We have to close these tags to support XHTML (#13200) wrapMap = { // Support: IE 9 option: [ 1, "<select multiple='multiple'>", "</select>" ], thead: [ 1, "<table>", "</table>" ], col: [ 2, "<table><colgroup>", "</colgroup></table>" ], tr: [ 2, "<table><tbody>", "</tbody></table>" ], td: [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ], _default: [ 0, "", "" ] }; // Support: IE 9 wrapMap.optgroup = wrapMap.option; wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead; wrapMap.th = wrapMap.td; jQuery.fn.extend({ text: function( value ) { return jQuery.access( this, function( value ) { return value === undefined ? jQuery.text( this ) : this.empty().append( ( this[ 0 ] && this[ 0 ].ownerDocument || document ).createTextNode( value ) ); }, null, value, arguments.length ); }, append: function() { return this.domManip( arguments, function( elem ) { if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { var target = manipulationTarget( this, elem ); target.appendChild( elem ); } }); }, prepend: function() { return this.domManip( arguments, function( elem ) { if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { var target = manipulationTarget( this, elem ); target.insertBefore( elem, target.firstChild ); } }); }, before: function() { return this.domManip( arguments, function( elem ) { if ( this.parentNode ) { this.parentNode.insertBefore( elem, this ); } }); }, after: function() { return this.domManip( arguments, function( elem ) { if ( this.parentNode ) { this.parentNode.insertBefore( elem, this.nextSibling ); } }); }, // keepData is for internal use only--do not document remove: function( selector, keepData ) { var elem, elems = selector ? jQuery.filter( selector, this ) : this, i = 0; for ( ; (elem = elems[i]) != null; i++ ) { if ( !keepData && elem.nodeType === 1 ) { jQuery.cleanData( getAll( elem ) ); } if ( elem.parentNode ) { if ( keepData && jQuery.contains( elem.ownerDocument, elem ) ) { setGlobalEval( getAll( elem, "script" ) ); } elem.parentNode.removeChild( elem ); } } return this; }, empty: function() { var elem, i = 0; for ( ; (elem = this[i]) != null; i++ ) { if ( elem.nodeType === 1 ) { // Prevent memory leaks jQuery.cleanData( getAll( elem, false ) ); // Remove any remaining nodes elem.textContent = ""; } } return this; }, clone: function( dataAndEvents, deepDataAndEvents ) { dataAndEvents = dataAndEvents == null ? false : dataAndEvents; deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents; return this.map( function () { return jQuery.clone( this, dataAndEvents, deepDataAndEvents ); }); }, html: function( value ) { return jQuery.access( this, function( value ) { var elem = this[ 0 ] || {}, i = 0, l = this.length; if ( value === undefined && elem.nodeType === 1 ) { return elem.innerHTML; } // See if we can take a shortcut and just use innerHTML if ( typeof value === "string" && !rnoInnerhtml.test( value ) && !wrapMap[ ( rtagName.exec( value ) || [ "", "" ] )[ 1 ].toLowerCase() ] ) { value = value.replace( rxhtmlTag, "<$1></$2>" ); try { for ( ; i < l; i++ ) { elem = this[ i ] || {}; // Remove element nodes and prevent memory leaks if ( elem.nodeType === 1 ) { jQuery.cleanData( getAll( elem, false ) ); elem.innerHTML = value; } } elem = 0; // If using innerHTML throws an exception, use the fallback method } catch( e ) {} } if ( elem ) { this.empty().append( value ); } }, null, value, arguments.length ); }, replaceWith: function() { var // Snapshot the DOM in case .domManip sweeps something relevant into its fragment args = jQuery.map( this, function( elem ) { return [ elem.nextSibling, elem.parentNode ]; }), i = 0; // Make the changes, replacing each context element with the new content this.domManip( arguments, function( elem ) { var next = args[ i++ ], parent = args[ i++ ]; if ( parent ) { // Don't use the snapshot next if it has moved (#13810) if ( next && next.parentNode !== parent ) { next = this.nextSibling; } jQuery( this ).remove(); parent.insertBefore( elem, next ); } // Allow new content to include elements from the context set }, true ); // Force removal if there was no new content (e.g., from empty arguments) return i ? this : this.remove(); }, detach: function( selector ) { return this.remove( selector, true ); }, domManip: function( args, callback, allowIntersection ) { // Flatten any nested arrays args = core_concat.apply( [], args ); var fragment, first, scripts, hasScripts, node, doc, i = 0, l = this.length, set = this, iNoClone = l - 1, value = args[ 0 ], isFunction = jQuery.isFunction( value ); // We can't cloneNode fragments that contain checked, in WebKit if ( isFunction || !( l <= 1 || typeof value !== "string" || jQuery.support.checkClone || !rchecked.test( value ) ) ) { return this.each(function( index ) { var self = set.eq( index ); if ( isFunction ) { args[ 0 ] = value.call( this, index, self.html() ); } self.domManip( args, callback, allowIntersection ); }); } if ( l ) { fragment = jQuery.buildFragment( args, this[ 0 ].ownerDocument, false, !allowIntersection && this ); first = fragment.firstChild; if ( fragment.childNodes.length === 1 ) { fragment = first; } if ( first ) { scripts = jQuery.map( getAll( fragment, "script" ), disableScript ); hasScripts = scripts.length; // Use the original fragment for the last item instead of the first because it can end up // being emptied incorrectly in certain situations (#8070). for ( ; i < l; i++ ) { node = fragment; if ( i !== iNoClone ) { node = jQuery.clone( node, true, true ); // Keep references to cloned scripts for later restoration if ( hasScripts ) { // Support: QtWebKit // jQuery.merge because core_push.apply(_, arraylike) throws jQuery.merge( scripts, getAll( node, "script" ) ); } } callback.call( this[ i ], node, i ); } if ( hasScripts ) { doc = scripts[ scripts.length - 1 ].ownerDocument; // Reenable scripts jQuery.map( scripts, restoreScript ); // Evaluate executable scripts on first document insertion for ( i = 0; i < hasScripts; i++ ) { node = scripts[ i ]; if ( rscriptType.test( node.type || "" ) && !data_priv.access( node, "globalEval" ) && jQuery.contains( doc, node ) ) { if ( node.src ) { // Hope ajax is available... jQuery._evalUrl( node.src ); } else { jQuery.globalEval( node.textContent.replace( rcleanScript, "" ) ); } } } } } } return this; } }); jQuery.each({ appendTo: "append", prependTo: "prepend", insertBefore: "before", insertAfter: "after", replaceAll: "replaceWith" }, function( name, original ) { jQuery.fn[ name ] = function( selector ) { var elems, ret = [], insert = jQuery( selector ), last = insert.length - 1, i = 0; for ( ; i <= last; i++ ) { elems = i === last ? this : this.clone( true ); jQuery( insert[ i ] )[ original ]( elems ); // Support: QtWebKit // .get() because core_push.apply(_, arraylike) throws core_push.apply( ret, elems.get() ); } return this.pushStack( ret ); }; }); jQuery.extend({ clone: function( elem, dataAndEvents, deepDataAndEvents ) { var i, l, srcElements, destElements, clone = elem.cloneNode( true ), inPage = jQuery.contains( elem.ownerDocument, elem ); // Support: IE >= 9 // Fix Cloning issues if ( !jQuery.support.noCloneChecked && ( elem.nodeType === 1 || elem.nodeType === 11 ) && !jQuery.isXMLDoc( elem ) ) { // We eschew Sizzle here for performance reasons: http://jsperf.com/getall-vs-sizzle/2 destElements = getAll( clone ); srcElements = getAll( elem ); for ( i = 0, l = srcElements.length; i < l; i++ ) { fixInput( srcElements[ i ], destElements[ i ] ); } } // Copy the events from the original to the clone if ( dataAndEvents ) { if ( deepDataAndEvents ) { srcElements = srcElements || getAll( elem ); destElements = destElements || getAll( clone ); for ( i = 0, l = srcElements.length; i < l; i++ ) { cloneCopyEvent( srcElements[ i ], destElements[ i ] ); } } else { cloneCopyEvent( elem, clone ); } } // Preserve script evaluation history destElements = getAll( clone, "script" ); if ( destElements.length > 0 ) { setGlobalEval( destElements, !inPage && getAll( elem, "script" ) ); } // Return the cloned set return clone; }, buildFragment: function( elems, context, scripts, selection ) { var elem, tmp, tag, wrap, contains, j, i = 0, l = elems.length, fragment = context.createDocumentFragment(), nodes = []; for ( ; i < l; i++ ) { elem = elems[ i ]; if ( elem || elem === 0 ) { // Add nodes directly if ( jQuery.type( elem ) === "object" ) { // Support: QtWebKit // jQuery.merge because core_push.apply(_, arraylike) throws jQuery.merge( nodes, elem.nodeType ? [ elem ] : elem ); // Convert non-html into a text node } else if ( !rhtml.test( elem ) ) { nodes.push( context.createTextNode( elem ) ); // Convert html into DOM nodes } else { tmp = tmp || fragment.appendChild( context.createElement("div") ); // Deserialize a standard representation tag = ( rtagName.exec( elem ) || ["", ""] )[ 1 ].toLowerCase(); wrap = wrapMap[ tag ] || wrapMap._default; tmp.innerHTML = wrap[ 1 ] + elem.replace( rxhtmlTag, "<$1></$2>" ) + wrap[ 2 ]; // Descend through wrappers to the right content j = wrap[ 0 ]; while ( j-- ) { tmp = tmp.lastChild; } // Support: QtWebKit // jQuery.merge because core_push.apply(_, arraylike) throws jQuery.merge( nodes, tmp.childNodes ); // Remember the top-level container tmp = fragment.firstChild; // Fixes #12346 // Support: Webkit, IE tmp.textContent = ""; } } } // Remove wrapper from fragment fragment.textContent = ""; i = 0; while ( (elem = nodes[ i++ ]) ) { // #4087 - If origin and destination elements are the same, and this is // that element, do not do anything if ( selection && jQuery.inArray( elem, selection ) !== -1 ) { continue; } contains = jQuery.contains( elem.ownerDocument, elem ); // Append to fragment tmp = getAll( fragment.appendChild( elem ), "script" ); // Preserve script evaluation history if ( contains ) { setGlobalEval( tmp ); } // Capture executables if ( scripts ) { j = 0; while ( (elem = tmp[ j++ ]) ) { if ( rscriptType.test( elem.type || "" ) ) { scripts.push( elem ); } } } } return fragment; }, cleanData: function( elems ) { var data, elem, events, type, key, j, special = jQuery.event.special, i = 0; for ( ; (elem = elems[ i ]) !== undefined; i++ ) { if ( Data.accepts( elem ) ) { key = elem[ data_priv.expando ]; if ( key && (data = data_priv.cache[ key ]) ) { events = Object.keys( data.events || {} ); if ( events.length ) { for ( j = 0; (type = events[j]) !== undefined; j++ ) { if ( special[ type ] ) { jQuery.event.remove( elem, type ); // This is a shortcut to avoid jQuery.event.remove's overhead } else { jQuery.removeEvent( elem, type, data.handle ); } } } if ( data_priv.cache[ key ] ) { // Discard any remaining `private` data delete data_priv.cache[ key ]; } } } // Discard any remaining `user` data delete data_user.cache[ elem[ data_user.expando ] ]; } }, _evalUrl: function( url ) { return jQuery.ajax({ url: url, type: "GET", dataType: "script", async: false, global: false, "throws": true }); } }); // Support: 1.x compatibility // Manipulating tables requires a tbody function manipulationTarget( elem, content ) { return jQuery.nodeName( elem, "table" ) && jQuery.nodeName( content.nodeType === 1 ? content : content.firstChild, "tr" ) ? elem.getElementsByTagName("tbody")[0] || elem.appendChild( elem.ownerDocument.createElement("tbody") ) : elem; } // Replace/restore the type attribute of script elements for safe DOM manipulation function disableScript( elem ) { elem.type = (elem.getAttribute("type") !== null) + "/" + elem.type; return elem; } function restoreScript( elem ) { var match = rscriptTypeMasked.exec( elem.type ); if ( match ) { elem.type = match[ 1 ]; } else { elem.removeAttribute("type"); } return elem; } // Mark scripts as having already been evaluated function setGlobalEval( elems, refElements ) { var l = elems.length, i = 0; for ( ; i < l; i++ ) { data_priv.set( elems[ i ], "globalEval", !refElements || data_priv.get( refElements[ i ], "globalEval" ) ); } } function cloneCopyEvent( src, dest ) { var i, l, type, pdataOld, pdataCur, udataOld, udataCur, events; if ( dest.nodeType !== 1 ) { return; } // 1. Copy private data: events, handlers, etc. if ( data_priv.hasData( src ) ) { pdataOld = data_priv.access( src ); pdataCur = data_priv.set( dest, pdataOld ); events = pdataOld.events; if ( events ) { delete pdataCur.handle; pdataCur.events = {}; for ( type in events ) { for ( i = 0, l = events[ type ].length; i < l; i++ ) { jQuery.event.add( dest, type, events[ type ][ i ] ); } } } } // 2. Copy user data if ( data_user.hasData( src ) ) { udataOld = data_user.access( src ); udataCur = jQuery.extend( {}, udataOld ); data_user.set( dest, udataCur ); } } function getAll( context, tag ) { var ret = context.getElementsByTagName ? context.getElementsByTagName( tag || "*" ) : context.querySelectorAll ? context.querySelectorAll( tag || "*" ) : []; return tag === undefined || tag && jQuery.nodeName( context, tag ) ? jQuery.merge( [ context ], ret ) : ret; } // Support: IE >= 9 function fixInput( src, dest ) { var nodeName = dest.nodeName.toLowerCase(); // Fails to persist the checked state of a cloned checkbox or radio button. if ( nodeName === "input" && manipulation_rcheckableType.test( src.type ) ) { dest.checked = src.checked; // Fails to return the selected option to the default selected state when cloning options } else if ( nodeName === "input" || nodeName === "textarea" ) { dest.defaultValue = src.defaultValue; } } jQuery.fn.extend({ wrapAll: function( html ) { var wrap; if ( jQuery.isFunction( html ) ) { return this.each(function( i ) { jQuery( this ).wrapAll( html.call(this, i) ); }); } if ( this[ 0 ] ) { // The elements to wrap the target around wrap = jQuery( html, this[ 0 ].ownerDocument ).eq( 0 ).clone( true ); if ( this[ 0 ].parentNode ) { wrap.insertBefore( this[ 0 ] ); } wrap.map(function() { var elem = this; while ( elem.firstElementChild ) { elem = elem.firstElementChild; } return elem; }).append( this ); } return this; }, wrapInner: function( html ) { if ( jQuery.isFunction( html ) ) { return this.each(function( i ) { jQuery( this ).wrapInner( html.call(this, i) ); }); } return this.each(function() { var self = jQuery( this ), contents = self.contents(); if ( contents.length ) { contents.wrapAll( html ); } else { self.append( html ); } }); }, wrap: function( html ) { var isFunction = jQuery.isFunction( html ); return this.each(function( i ) { jQuery( this ).wrapAll( isFunction ? html.call(this, i) : html ); }); }, unwrap: function() { return this.parent().each(function() { if ( !jQuery.nodeName( this, "body" ) ) { jQuery( this ).replaceWith( this.childNodes ); } }).end(); } }); var curCSS, iframe, // swappable if display is none or starts with table except "table", "table-cell", or "table-caption" // see here for display values: https://developer.mozilla.org/en-US/docs/CSS/display rdisplayswap = /^(none|table(?!-c[ea]).+)/, rmargin = /^margin/, rnumsplit = new RegExp( "^(" + core_pnum + ")(.*)$", "i" ), rnumnonpx = new RegExp( "^(" + core_pnum + ")(?!px)[a-z%]+$", "i" ), rrelNum = new RegExp( "^([+-])=(" + core_pnum + ")", "i" ), elemdisplay = { BODY: "block" }, cssShow = { position: "absolute", visibility: "hidden", display: "block" }, cssNormalTransform = { letterSpacing: 0, fontWeight: 400 }, cssExpand = [ "Top", "Right", "Bottom", "Left" ], cssPrefixes = [ "Webkit", "O", "Moz", "ms" ]; // return a css property mapped to a potentially vendor prefixed property function vendorPropName( style, name ) { // shortcut for names that are not vendor prefixed if ( name in style ) { return name; } // check for vendor prefixed names var capName = name.charAt(0).toUpperCase() + name.slice(1), origName = name, i = cssPrefixes.length; while ( i-- ) { name = cssPrefixes[ i ] + capName; if ( name in style ) { return name; } } return origName; } function isHidden( elem, el ) { // isHidden might be called from jQuery#filter function; // in that case, element will be second argument elem = el || elem; return jQuery.css( elem, "display" ) === "none" || !jQuery.contains( elem.ownerDocument, elem ); } // NOTE: we've included the "window" in window.getComputedStyle // because jsdom on node.js will break without it. function getStyles( elem ) { return window.getComputedStyle( elem, null ); } function showHide( elements, show ) { var display, elem, hidden, values = [], index = 0, length = elements.length; for ( ; index < length; index++ ) { elem = elements[ index ]; if ( !elem.style ) { continue; } values[ index ] = data_priv.get( elem, "olddisplay" ); display = elem.style.display; if ( show ) { // Reset the inline display of this element to learn if it is // being hidden by cascaded rules or not if ( !values[ index ] && display === "none" ) { elem.style.display = ""; } // Set elements which have been overridden with display: none // in a stylesheet to whatever the default browser style is // for such an element if ( elem.style.display === "" && isHidden( elem ) ) { values[ index ] = data_priv.access( elem, "olddisplay", css_defaultDisplay(elem.nodeName) ); } } else { if ( !values[ index ] ) { hidden = isHidden( elem ); if ( display && display !== "none" || !hidden ) { data_priv.set( elem, "olddisplay", hidden ? display : jQuery.css(elem, "display") ); } } } } // Set the display of most of the elements in a second loop // to avoid the constant reflow for ( index = 0; index < length; index++ ) { elem = elements[ index ]; if ( !elem.style ) { continue; } if ( !show || elem.style.display === "none" || elem.style.display === "" ) { elem.style.display = show ? values[ index ] || "" : "none"; } } return elements; } jQuery.fn.extend({ css: function( name, value ) { return jQuery.access( this, function( elem, name, value ) { var styles, len, map = {}, i = 0; if ( jQuery.isArray( name ) ) { styles = getStyles( elem ); len = name.length; for ( ; i < len; i++ ) { map[ name[ i ] ] = jQuery.css( elem, name[ i ], false, styles ); } return map; } return value !== undefined ? jQuery.style( elem, name, value ) : jQuery.css( elem, name ); }, name, value, arguments.length > 1 ); }, show: function() { return showHide( this, true ); }, hide: function() { return showHide( this ); }, toggle: function( state ) { if ( typeof state === "boolean" ) { return state ? this.show() : this.hide(); } return this.each(function() { if ( isHidden( this ) ) { jQuery( this ).show(); } else { jQuery( this ).hide(); } }); } }); jQuery.extend({ // Add in style property hooks for overriding the default // behavior of getting and setting a style property cssHooks: { opacity: { get: function( elem, computed ) { if ( computed ) { // We should always get a number back from opacity var ret = curCSS( elem, "opacity" ); return ret === "" ? "1" : ret; } } } }, // Don't automatically add "px" to these possibly-unitless properties cssNumber: { "columnCount": true, "fillOpacity": true, "fontWeight": true, "lineHeight": true, "opacity": true, "order": true, "orphans": true, "widows": true, "zIndex": true, "zoom": true }, // Add in properties whose names you wish to fix before // setting or getting the value cssProps: { // normalize float css property "float": "cssFloat" }, // Get and set the style property on a DOM Node style: function( elem, name, value, extra ) { // Don't set styles on text and comment nodes if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) { return; } // Make sure that we're working with the right name var ret, type, hooks, origName = jQuery.camelCase( name ), style = elem.style; name = jQuery.cssProps[ origName ] || ( jQuery.cssProps[ origName ] = vendorPropName( style, origName ) ); // gets hook for the prefixed version // followed by the unprefixed version hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ]; // Check if we're setting a value if ( value !== undefined ) { type = typeof value; // convert relative number strings (+= or -=) to relative numbers. #7345 if ( type === "string" && (ret = rrelNum.exec( value )) ) { value = ( ret[1] + 1 ) * ret[2] + parseFloat( jQuery.css( elem, name ) ); // Fixes bug #9237 type = "number"; } // Make sure that NaN and null values aren't set. See: #7116 if ( value == null || type === "number" && isNaN( value ) ) { return; } // If a number was passed in, add 'px' to the (except for certain CSS properties) if ( type === "number" && !jQuery.cssNumber[ origName ] ) { value += "px"; } // Fixes #8908, it can be done more correctly by specifying setters in cssHooks, // but it would mean to define eight (for every problematic property) identical functions if ( !jQuery.support.clearCloneStyle && value === "" && name.indexOf("background") === 0 ) { style[ name ] = "inherit"; } // If a hook was provided, use that value, otherwise just set the specified value if ( !hooks || !("set" in hooks) || (value = hooks.set( elem, value, extra )) !== undefined ) { style[ name ] = value; } } else { // If a hook was provided get the non-computed value from there if ( hooks && "get" in hooks && (ret = hooks.get( elem, false, extra )) !== undefined ) { return ret; } // Otherwise just get the value from the style object return style[ name ]; } }, css: function( elem, name, extra, styles ) { var val, num, hooks, origName = jQuery.camelCase( name ); // Make sure that we're working with the right name name = jQuery.cssProps[ origName ] || ( jQuery.cssProps[ origName ] = vendorPropName( elem.style, origName ) ); // gets hook for the prefixed version // followed by the unprefixed version hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ]; // If a hook was provided get the computed value from there if ( hooks && "get" in hooks ) { val = hooks.get( elem, true, extra ); } // Otherwise, if a way to get the computed value exists, use that if ( val === undefined ) { val = curCSS( elem, name, styles ); } //convert "normal" to computed value if ( val === "normal" && name in cssNormalTransform ) { val = cssNormalTransform[ name ]; } // Return, converting to number if forced or a qualifier was provided and val looks numeric if ( extra === "" || extra ) { num = parseFloat( val ); return extra === true || jQuery.isNumeric( num ) ? num || 0 : val; } return val; } }); curCSS = function( elem, name, _computed ) { var width, minWidth, maxWidth, computed = _computed || getStyles( elem ), // Support: IE9 // getPropertyValue is only needed for .css('filter') in IE9, see #12537 ret = computed ? computed.getPropertyValue( name ) || computed[ name ] : undefined, style = elem.style; if ( computed ) { if ( ret === "" && !jQuery.contains( elem.ownerDocument, elem ) ) { ret = jQuery.style( elem, name ); } // Support: Safari 5.1 // A tribute to the "awesome hack by Dean Edwards" // Safari 5.1.7 (at least) returns percentage for a larger set of values, but width seems to be reliably pixels // this is against the CSSOM draft spec: http://dev.w3.org/csswg/cssom/#resolved-values if ( rnumnonpx.test( ret ) && rmargin.test( name ) ) { // Remember the original values width = style.width; minWidth = style.minWidth; maxWidth = style.maxWidth; // Put in the new values to get a computed value out style.minWidth = style.maxWidth = style.width = ret; ret = computed.width; // Revert the changed values style.width = width; style.minWidth = minWidth; style.maxWidth = maxWidth; } } return ret; }; function setPositiveNumber( elem, value, subtract ) { var matches = rnumsplit.exec( value ); return matches ? // Guard against undefined "subtract", e.g., when used as in cssHooks Math.max( 0, matches[ 1 ] - ( subtract || 0 ) ) + ( matches[ 2 ] || "px" ) : value; } function augmentWidthOrHeight( elem, name, extra, isBorderBox, styles ) { var i = extra === ( isBorderBox ? "border" : "content" ) ? // If we already have the right measurement, avoid augmentation 4 : // Otherwise initialize for horizontal or vertical properties name === "width" ? 1 : 0, val = 0; for ( ; i < 4; i += 2 ) { // both box models exclude margin, so add it if we want it if ( extra === "margin" ) { val += jQuery.css( elem, extra + cssExpand[ i ], true, styles ); } if ( isBorderBox ) { // border-box includes padding, so remove it if we want content if ( extra === "content" ) { val -= jQuery.css( elem, "padding" + cssExpand[ i ], true, styles ); } // at this point, extra isn't border nor margin, so remove border if ( extra !== "margin" ) { val -= jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles ); } } else { // at this point, extra isn't content, so add padding val += jQuery.css( elem, "padding" + cssExpand[ i ], true, styles ); // at this point, extra isn't content nor padding, so add border if ( extra !== "padding" ) { val += jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles ); } } } return val; } function getWidthOrHeight( elem, name, extra ) { // Start with offset property, which is equivalent to the border-box value var valueIsBorderBox = true, val = name === "width" ? elem.offsetWidth : elem.offsetHeight, styles = getStyles( elem ), isBorderBox = jQuery.support.boxSizing && jQuery.css( elem, "boxSizing", false, styles ) === "border-box"; // some non-html elements return undefined for offsetWidth, so check for null/undefined // svg - https://bugzilla.mozilla.org/show_bug.cgi?id=649285 // MathML - https://bugzilla.mozilla.org/show_bug.cgi?id=491668 if ( val <= 0 || val == null ) { // Fall back to computed then uncomputed css if necessary val = curCSS( elem, name, styles ); if ( val < 0 || val == null ) { val = elem.style[ name ]; } // Computed unit is not pixels. Stop here and return. if ( rnumnonpx.test(val) ) { return val; } // we need the check for style in case a browser which returns unreliable values // for getComputedStyle silently falls back to the reliable elem.style valueIsBorderBox = isBorderBox && ( jQuery.support.boxSizingReliable || val === elem.style[ name ] ); // Normalize "", auto, and prepare for extra val = parseFloat( val ) || 0; } // use the active box-sizing model to add/subtract irrelevant styles return ( val + augmentWidthOrHeight( elem, name, extra || ( isBorderBox ? "border" : "content" ), valueIsBorderBox, styles ) ) + "px"; } // Try to determine the default display value of an element function css_defaultDisplay( nodeName ) { var doc = document, display = elemdisplay[ nodeName ]; if ( !display ) { display = actualDisplay( nodeName, doc ); // If the simple way fails, read from inside an iframe if ( display === "none" || !display ) { // Use the already-created iframe if possible iframe = ( iframe || jQuery("<iframe frameborder='0' width='0' height='0'/>") .css( "cssText", "display:block !important" ) ).appendTo( doc.documentElement ); // Always write a new HTML skeleton so Webkit and Firefox don't choke on reuse doc = ( iframe[0].contentWindow || iframe[0].contentDocument ).document; doc.write("<!doctype html><html><body>"); doc.close(); display = actualDisplay( nodeName, doc ); iframe.detach(); } // Store the correct default display elemdisplay[ nodeName ] = display; } return display; } // Called ONLY from within css_defaultDisplay function actualDisplay( name, doc ) { var elem = jQuery( doc.createElement( name ) ).appendTo( doc.body ), display = jQuery.css( elem[0], "display" ); elem.remove(); return display; } jQuery.each([ "height", "width" ], function( i, name ) { jQuery.cssHooks[ name ] = { get: function( elem, computed, extra ) { if ( computed ) { // certain elements can have dimension info if we invisibly show them // however, it must have a current display style that would benefit from this return elem.offsetWidth === 0 && rdisplayswap.test( jQuery.css( elem, "display" ) ) ? jQuery.swap( elem, cssShow, function() { return getWidthOrHeight( elem, name, extra ); }) : getWidthOrHeight( elem, name, extra ); } }, set: function( elem, value, extra ) { var styles = extra && getStyles( elem ); return setPositiveNumber( elem, value, extra ? augmentWidthOrHeight( elem, name, extra, jQuery.support.boxSizing && jQuery.css( elem, "boxSizing", false, styles ) === "border-box", styles ) : 0 ); } }; }); // These hooks cannot be added until DOM ready because the support test // for it is not run until after DOM ready jQuery(function() { // Support: Android 2.3 if ( !jQuery.support.reliableMarginRight ) { jQuery.cssHooks.marginRight = { get: function( elem, computed ) { if ( computed ) { // Support: Android 2.3 // WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right // Work around by temporarily setting element display to inline-block return jQuery.swap( elem, { "display": "inline-block" }, curCSS, [ elem, "marginRight" ] ); } } }; } // Webkit bug: https://bugs.webkit.org/show_bug.cgi?id=29084 // getComputedStyle returns percent when specified for top/left/bottom/right // rather than make the css module depend on the offset module, we just check for it here if ( !jQuery.support.pixelPosition && jQuery.fn.position ) { jQuery.each( [ "top", "left" ], function( i, prop ) { jQuery.cssHooks[ prop ] = { get: function( elem, computed ) { if ( computed ) { computed = curCSS( elem, prop ); // if curCSS returns percentage, fallback to offset return rnumnonpx.test( computed ) ? jQuery( elem ).position()[ prop ] + "px" : computed; } } }; }); } }); if ( jQuery.expr && jQuery.expr.filters ) { jQuery.expr.filters.hidden = function( elem ) { // Support: Opera <= 12.12 // Opera reports offsetWidths and offsetHeights less than zero on some elements return elem.offsetWidth <= 0 && elem.offsetHeight <= 0; }; jQuery.expr.filters.visible = function( elem ) { return !jQuery.expr.filters.hidden( elem ); }; } // These hooks are used by animate to expand properties jQuery.each({ margin: "", padding: "", border: "Width" }, function( prefix, suffix ) { jQuery.cssHooks[ prefix + suffix ] = { expand: function( value ) { var i = 0, expanded = {}, // assumes a single number if not a string parts = typeof value === "string" ? value.split(" ") : [ value ]; for ( ; i < 4; i++ ) { expanded[ prefix + cssExpand[ i ] + suffix ] = parts[ i ] || parts[ i - 2 ] || parts[ 0 ]; } return expanded; } }; if ( !rmargin.test( prefix ) ) { jQuery.cssHooks[ prefix + suffix ].set = setPositiveNumber; } }); var r20 = /%20/g, rbracket = /\[\]$/, rCRLF = /\r?\n/g, rsubmitterTypes = /^(?:submit|button|image|reset|file)$/i, rsubmittable = /^(?:input|select|textarea|keygen)/i; jQuery.fn.extend({ serialize: function() { return jQuery.param( this.serializeArray() ); }, serializeArray: function() { return this.map(function(){ // Can add propHook for "elements" to filter or add form elements var elements = jQuery.prop( this, "elements" ); return elements ? jQuery.makeArray( elements ) : this; }) .filter(function(){ var type = this.type; // Use .is(":disabled") so that fieldset[disabled] works return this.name && !jQuery( this ).is( ":disabled" ) && rsubmittable.test( this.nodeName ) && !rsubmitterTypes.test( type ) && ( this.checked || !manipulation_rcheckableType.test( type ) ); }) .map(function( i, elem ){ var val = jQuery( this ).val(); return val == null ? null : jQuery.isArray( val ) ? jQuery.map( val, function( val ){ return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) }; }) : { name: elem.name, value: val.replace( rCRLF, "\r\n" ) }; }).get(); } }); //Serialize an array of form elements or a set of //key/values into a query string jQuery.param = function( a, traditional ) { var prefix, s = [], add = function( key, value ) { // If value is a function, invoke it and return its value value = jQuery.isFunction( value ) ? value() : ( value == null ? "" : value ); s[ s.length ] = encodeURIComponent( key ) + "=" + encodeURIComponent( value ); }; // Set traditional to true for jQuery <= 1.3.2 behavior. if ( traditional === undefined ) { traditional = jQuery.ajaxSettings && jQuery.ajaxSettings.traditional; } // If an array was passed in, assume that it is an array of form elements. if ( jQuery.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) { // Serialize the form elements jQuery.each( a, function() { add( this.name, this.value ); }); } else { // If traditional, encode the "old" way (the way 1.3.2 or older // did it), otherwise encode params recursively. for ( prefix in a ) { buildParams( prefix, a[ prefix ], traditional, add ); } } // Return the resulting serialization return s.join( "&" ).replace( r20, "+" ); }; function buildParams( prefix, obj, traditional, add ) { var name; if ( jQuery.isArray( obj ) ) { // Serialize array item. jQuery.each( obj, function( i, v ) { if ( traditional || rbracket.test( prefix ) ) { // Treat each array item as a scalar. add( prefix, v ); } else { // Item is non-scalar (array or object), encode its numeric index. buildParams( prefix + "[" + ( typeof v === "object" ? i : "" ) + "]", v, traditional, add ); } }); } else if ( !traditional && jQuery.type( obj ) === "object" ) { // Serialize object item. for ( name in obj ) { buildParams( prefix + "[" + name + "]", obj[ name ], traditional, add ); } } else { // Serialize scalar item. add( prefix, obj ); } } jQuery.each( ("blur focus focusin focusout load resize scroll unload click dblclick " + "mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " + "change select submit keydown keypress keyup error contextmenu").split(" "), function( i, name ) { // Handle event binding jQuery.fn[ name ] = function( data, fn ) { return arguments.length > 0 ? this.on( name, null, data, fn ) : this.trigger( name ); }; }); jQuery.fn.extend({ hover: function( fnOver, fnOut ) { return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver ); }, bind: function( types, data, fn ) { return this.on( types, null, data, fn ); }, unbind: function( types, fn ) { return this.off( types, null, fn ); }, delegate: function( selector, types, data, fn ) { return this.on( types, selector, data, fn ); }, undelegate: function( selector, types, fn ) { // ( namespace ) or ( selector, types [, fn] ) return arguments.length === 1 ? this.off( selector, "**" ) : this.off( types, selector || "**", fn ); } }); var // Document location ajaxLocParts, ajaxLocation, ajax_nonce = jQuery.now(), ajax_rquery = /\?/, rhash = /#.*$/, rts = /([?&])_=[^&]*/, rheaders = /^(.*?):[ \t]*([^\r\n]*)$/mg, // #7653, #8125, #8152: local protocol detection rlocalProtocol = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/, rnoContent = /^(?:GET|HEAD)$/, rprotocol = /^\/\//, rurl = /^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/, // Keep a copy of the old load method _load = jQuery.fn.load, /* Prefilters * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example) * 2) These are called: * - BEFORE asking for a transport * - AFTER param serialization (s.data is a string if s.processData is true) * 3) key is the dataType * 4) the catchall symbol "*" can be used * 5) execution will start with transport dataType and THEN continue down to "*" if needed */ prefilters = {}, /* Transports bindings * 1) key is the dataType * 2) the catchall symbol "*" can be used * 3) selection will start with transport dataType and THEN go to "*" if needed */ transports = {}, // Avoid comment-prolog char sequence (#10098); must appease lint and evade compression allTypes = "*/".concat("*"); // #8138, IE may throw an exception when accessing // a field from window.location if document.domain has been set try { ajaxLocation = location.href; } catch( e ) { // Use the href attribute of an A element // since IE will modify it given document.location ajaxLocation = document.createElement( "a" ); ajaxLocation.href = ""; ajaxLocation = ajaxLocation.href; } // Segment location into parts ajaxLocParts = rurl.exec( ajaxLocation.toLowerCase() ) || []; // Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport function addToPrefiltersOrTransports( structure ) { // dataTypeExpression is optional and defaults to "*" return function( dataTypeExpression, func ) { if ( typeof dataTypeExpression !== "string" ) { func = dataTypeExpression; dataTypeExpression = "*"; } var dataType, i = 0, dataTypes = dataTypeExpression.toLowerCase().match( core_rnotwhite ) || []; if ( jQuery.isFunction( func ) ) { // For each dataType in the dataTypeExpression while ( (dataType = dataTypes[i++]) ) { // Prepend if requested if ( dataType[0] === "+" ) { dataType = dataType.slice( 1 ) || "*"; (structure[ dataType ] = structure[ dataType ] || []).unshift( func ); // Otherwise append } else { (structure[ dataType ] = structure[ dataType ] || []).push( func ); } } } }; } // Base inspection function for prefilters and transports function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR ) { var inspected = {}, seekingTransport = ( structure === transports ); function inspect( dataType ) { var selected; inspected[ dataType ] = true; jQuery.each( structure[ dataType ] || [], function( _, prefilterOrFactory ) { var dataTypeOrTransport = prefilterOrFactory( options, originalOptions, jqXHR ); if( typeof dataTypeOrTransport === "string" && !seekingTransport && !inspected[ dataTypeOrTransport ] ) { options.dataTypes.unshift( dataTypeOrTransport ); inspect( dataTypeOrTransport ); return false; } else if ( seekingTransport ) { return !( selected = dataTypeOrTransport ); } }); return selected; } return inspect( options.dataTypes[ 0 ] ) || !inspected[ "*" ] && inspect( "*" ); } // A special extend for ajax options // that takes "flat" options (not to be deep extended) // Fixes #9887 function ajaxExtend( target, src ) { var key, deep, flatOptions = jQuery.ajaxSettings.flatOptions || {}; for ( key in src ) { if ( src[ key ] !== undefined ) { ( flatOptions[ key ] ? target : ( deep || (deep = {}) ) )[ key ] = src[ key ]; } } if ( deep ) { jQuery.extend( true, target, deep ); } return target; } jQuery.fn.load = function( url, params, callback ) { if ( typeof url !== "string" && _load ) { return _load.apply( this, arguments ); } var selector, type, response, self = this, off = url.indexOf(" "); if ( off >= 0 ) { selector = url.slice( off ); url = url.slice( 0, off ); } // If it's a function if ( jQuery.isFunction( params ) ) { // We assume that it's the callback callback = params; params = undefined; // Otherwise, build a param string } else if ( params && typeof params === "object" ) { type = "POST"; } // If we have elements to modify, make the request if ( self.length > 0 ) { jQuery.ajax({ url: url, // if "type" variable is undefined, then "GET" method will be used type: type, dataType: "html", data: params }).done(function( responseText ) { // Save response for use in complete callback response = arguments; self.html( selector ? // If a selector was specified, locate the right elements in a dummy div // Exclude scripts to avoid IE 'Permission Denied' errors jQuery("<div>").append( jQuery.parseHTML( responseText ) ).find( selector ) : // Otherwise use the full result responseText ); }).complete( callback && function( jqXHR, status ) { self.each( callback, response || [ jqXHR.responseText, status, jqXHR ] ); }); } return this; }; // Attach a bunch of functions for handling common AJAX events jQuery.each( [ "ajaxStart", "ajaxStop", "ajaxComplete", "ajaxError", "ajaxSuccess", "ajaxSend" ], function( i, type ){ jQuery.fn[ type ] = function( fn ){ return this.on( type, fn ); }; }); jQuery.extend({ // Counter for holding the number of active queries active: 0, // Last-Modified header cache for next request lastModified: {}, etag: {}, ajaxSettings: { url: ajaxLocation, type: "GET", isLocal: rlocalProtocol.test( ajaxLocParts[ 1 ] ), global: true, processData: true, async: true, contentType: "application/x-www-form-urlencoded; charset=UTF-8", /* timeout: 0, data: null, dataType: null, username: null, password: null, cache: null, throws: false, traditional: false, headers: {}, */ accepts: { "*": allTypes, text: "text/plain", html: "text/html", xml: "application/xml, text/xml", json: "application/json, text/javascript" }, contents: { xml: /xml/, html: /html/, json: /json/ }, responseFields: { xml: "responseXML", text: "responseText", json: "responseJSON" }, // Data converters // Keys separate source (or catchall "*") and destination types with a single space converters: { // Convert anything to text "* text": String, // Text to html (true = no transformation) "text html": true, // Evaluate text as a json expression "text json": jQuery.parseJSON, // Parse text as xml "text xml": jQuery.parseXML }, // For options that shouldn't be deep extended: // you can add your own custom options here if // and when you create one that shouldn't be // deep extended (see ajaxExtend) flatOptions: { url: true, context: true } }, // Creates a full fledged settings object into target // with both ajaxSettings and settings fields. // If target is omitted, writes into ajaxSettings. ajaxSetup: function( target, settings ) { return settings ? // Building a settings object ajaxExtend( ajaxExtend( target, jQuery.ajaxSettings ), settings ) : // Extending ajaxSettings ajaxExtend( jQuery.ajaxSettings, target ); }, ajaxPrefilter: addToPrefiltersOrTransports( prefilters ), ajaxTransport: addToPrefiltersOrTransports( transports ), // Main method ajax: function( url, options ) { // If url is an object, simulate pre-1.5 signature if ( typeof url === "object" ) { options = url; url = undefined; } // Force options to be an object options = options || {}; var transport, // URL without anti-cache param cacheURL, // Response headers responseHeadersString, responseHeaders, // timeout handle timeoutTimer, // Cross-domain detection vars parts, // To know if global events are to be dispatched fireGlobals, // Loop variable i, // Create the final options object s = jQuery.ajaxSetup( {}, options ), // Callbacks context callbackContext = s.context || s, // Context for global events is callbackContext if it is a DOM node or jQuery collection globalEventContext = s.context && ( callbackContext.nodeType || callbackContext.jquery ) ? jQuery( callbackContext ) : jQuery.event, // Deferreds deferred = jQuery.Deferred(), completeDeferred = jQuery.Callbacks("once memory"), // Status-dependent callbacks statusCode = s.statusCode || {}, // Headers (they are sent all at once) requestHeaders = {}, requestHeadersNames = {}, // The jqXHR state state = 0, // Default abort message strAbort = "canceled", // Fake xhr jqXHR = { readyState: 0, // Builds headers hashtable if needed getResponseHeader: function( key ) { var match; if ( state === 2 ) { if ( !responseHeaders ) { responseHeaders = {}; while ( (match = rheaders.exec( responseHeadersString )) ) { responseHeaders[ match[1].toLowerCase() ] = match[ 2 ]; } } match = responseHeaders[ key.toLowerCase() ]; } return match == null ? null : match; }, // Raw string getAllResponseHeaders: function() { return state === 2 ? responseHeadersString : null; }, // Caches the header setRequestHeader: function( name, value ) { var lname = name.toLowerCase(); if ( !state ) { name = requestHeadersNames[ lname ] = requestHeadersNames[ lname ] || name; requestHeaders[ name ] = value; } return this; }, // Overrides response content-type header overrideMimeType: function( type ) { if ( !state ) { s.mimeType = type; } return this; }, // Status-dependent callbacks statusCode: function( map ) { var code; if ( map ) { if ( state < 2 ) { for ( code in map ) { // Lazy-add the new callback in a way that preserves old ones statusCode[ code ] = [ statusCode[ code ], map[ code ] ]; } } else { // Execute the appropriate callbacks jqXHR.always( map[ jqXHR.status ] ); } } return this; }, // Cancel the request abort: function( statusText ) { var finalText = statusText || strAbort; if ( transport ) { transport.abort( finalText ); } done( 0, finalText ); return this; } }; // Attach deferreds deferred.promise( jqXHR ).complete = completeDeferred.add; jqXHR.success = jqXHR.done; jqXHR.error = jqXHR.fail; // Remove hash character (#7531: and string promotion) // Add protocol if not provided (prefilters might expect it) // Handle falsy url in the settings object (#10093: consistency with old signature) // We also use the url parameter if available s.url = ( ( url || s.url || ajaxLocation ) + "" ).replace( rhash, "" ) .replace( rprotocol, ajaxLocParts[ 1 ] + "//" ); // Alias method option to type as per ticket #12004 s.type = options.method || options.type || s.method || s.type; // Extract dataTypes list s.dataTypes = jQuery.trim( s.dataType || "*" ).toLowerCase().match( core_rnotwhite ) || [""]; // A cross-domain request is in order when we have a protocol:host:port mismatch if ( s.crossDomain == null ) { parts = rurl.exec( s.url.toLowerCase() ); s.crossDomain = !!( parts && ( parts[ 1 ] !== ajaxLocParts[ 1 ] || parts[ 2 ] !== ajaxLocParts[ 2 ] || ( parts[ 3 ] || ( parts[ 1 ] === "http:" ? "80" : "443" ) ) !== ( ajaxLocParts[ 3 ] || ( ajaxLocParts[ 1 ] === "http:" ? "80" : "443" ) ) ) ); } // Convert data if not already a string if ( s.data && s.processData && typeof s.data !== "string" ) { s.data = jQuery.param( s.data, s.traditional ); } // Apply prefilters inspectPrefiltersOrTransports( prefilters, s, options, jqXHR ); // If request was aborted inside a prefilter, stop there if ( state === 2 ) { return jqXHR; } // We can fire global events as of now if asked to fireGlobals = s.global; // Watch for a new set of requests if ( fireGlobals && jQuery.active++ === 0 ) { jQuery.event.trigger("ajaxStart"); } // Uppercase the type s.type = s.type.toUpperCase(); // Determine if request has content s.hasContent = !rnoContent.test( s.type ); // Save the URL in case we're toying with the If-Modified-Since // and/or If-None-Match header later on cacheURL = s.url; // More options handling for requests with no content if ( !s.hasContent ) { // If data is available, append data to url if ( s.data ) { cacheURL = ( s.url += ( ajax_rquery.test( cacheURL ) ? "&" : "?" ) + s.data ); // #9682: remove data so that it's not used in an eventual retry delete s.data; } // Add anti-cache in url if needed if ( s.cache === false ) { s.url = rts.test( cacheURL ) ? // If there is already a '_' parameter, set its value cacheURL.replace( rts, "$1_=" + ajax_nonce++ ) : // Otherwise add one to the end cacheURL + ( ajax_rquery.test( cacheURL ) ? "&" : "?" ) + "_=" + ajax_nonce++; } } // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode. if ( s.ifModified ) { if ( jQuery.lastModified[ cacheURL ] ) { jqXHR.setRequestHeader( "If-Modified-Since", jQuery.lastModified[ cacheURL ] ); } if ( jQuery.etag[ cacheURL ] ) { jqXHR.setRequestHeader( "If-None-Match", jQuery.etag[ cacheURL ] ); } } // Set the correct header, if data is being sent if ( s.data && s.hasContent && s.contentType !== false || options.contentType ) { jqXHR.setRequestHeader( "Content-Type", s.contentType ); } // Set the Accepts header for the server, depending on the dataType jqXHR.setRequestHeader( "Accept", s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[0] ] ? s.accepts[ s.dataTypes[0] ] + ( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) : s.accepts[ "*" ] ); // Check for headers option for ( i in s.headers ) { jqXHR.setRequestHeader( i, s.headers[ i ] ); } // Allow custom headers/mimetypes and early abort if ( s.beforeSend && ( s.beforeSend.call( callbackContext, jqXHR, s ) === false || state === 2 ) ) { // Abort if not done already and return return jqXHR.abort(); } // aborting is no longer a cancellation strAbort = "abort"; // Install callbacks on deferreds for ( i in { success: 1, error: 1, complete: 1 } ) { jqXHR[ i ]( s[ i ] ); } // Get transport transport = inspectPrefiltersOrTransports( transports, s, options, jqXHR ); // If no transport, we auto-abort if ( !transport ) { done( -1, "No Transport" ); } else { jqXHR.readyState = 1; // Send global event if ( fireGlobals ) { globalEventContext.trigger( "ajaxSend", [ jqXHR, s ] ); } // Timeout if ( s.async && s.timeout > 0 ) { timeoutTimer = setTimeout(function() { jqXHR.abort("timeout"); }, s.timeout ); } try { state = 1; transport.send( requestHeaders, done ); } catch ( e ) { // Propagate exception as error if not done if ( state < 2 ) { done( -1, e ); // Simply rethrow otherwise } else { throw e; } } } // Callback for when everything is done function done( status, nativeStatusText, responses, headers ) { var isSuccess, success, error, response, modified, statusText = nativeStatusText; // Called once if ( state === 2 ) { return; } // State is "done" now state = 2; // Clear timeout if it exists if ( timeoutTimer ) { clearTimeout( timeoutTimer ); } // Dereference transport for early garbage collection // (no matter how long the jqXHR object will be used) transport = undefined; // Cache response headers responseHeadersString = headers || ""; // Set readyState jqXHR.readyState = status > 0 ? 4 : 0; // Determine if successful isSuccess = status >= 200 && status < 300 || status === 304; // Get response data if ( responses ) { response = ajaxHandleResponses( s, jqXHR, responses ); } // Convert no matter what (that way responseXXX fields are always set) response = ajaxConvert( s, response, jqXHR, isSuccess ); // If successful, handle type chaining if ( isSuccess ) { // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode. if ( s.ifModified ) { modified = jqXHR.getResponseHeader("Last-Modified"); if ( modified ) { jQuery.lastModified[ cacheURL ] = modified; } modified = jqXHR.getResponseHeader("etag"); if ( modified ) { jQuery.etag[ cacheURL ] = modified; } } // if no content if ( status === 204 || s.type === "HEAD" ) { statusText = "nocontent"; // if not modified } else if ( status === 304 ) { statusText = "notmodified"; // If we have data, let's convert it } else { statusText = response.state; success = response.data; error = response.error; isSuccess = !error; } } else { // We extract error from statusText // then normalize statusText and status for non-aborts error = statusText; if ( status || !statusText ) { statusText = "error"; if ( status < 0 ) { status = 0; } } } // Set data for the fake xhr object jqXHR.status = status; jqXHR.statusText = ( nativeStatusText || statusText ) + ""; // Success/Error if ( isSuccess ) { deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] ); } else { deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] ); } // Status-dependent callbacks jqXHR.statusCode( statusCode ); statusCode = undefined; if ( fireGlobals ) { globalEventContext.trigger( isSuccess ? "ajaxSuccess" : "ajaxError", [ jqXHR, s, isSuccess ? success : error ] ); } // Complete completeDeferred.fireWith( callbackContext, [ jqXHR, statusText ] ); if ( fireGlobals ) { globalEventContext.trigger( "ajaxComplete", [ jqXHR, s ] ); // Handle the global AJAX counter if ( !( --jQuery.active ) ) { jQuery.event.trigger("ajaxStop"); } } } return jqXHR; }, getJSON: function( url, data, callback ) { return jQuery.get( url, data, callback, "json" ); }, getScript: function( url, callback ) { return jQuery.get( url, undefined, callback, "script" ); } }); jQuery.each( [ "get", "post" ], function( i, method ) { jQuery[ method ] = function( url, data, callback, type ) { // shift arguments if data argument was omitted if ( jQuery.isFunction( data ) ) { type = type || callback; callback = data; data = undefined; } return jQuery.ajax({ url: url, type: method, dataType: type, data: data, success: callback }); }; }); /* Handles responses to an ajax request: * - finds the right dataType (mediates between content-type and expected dataType) * - returns the corresponding response */ function ajaxHandleResponses( s, jqXHR, responses ) { var ct, type, finalDataType, firstDataType, contents = s.contents, dataTypes = s.dataTypes; // Remove auto dataType and get content-type in the process while( dataTypes[ 0 ] === "*" ) { dataTypes.shift(); if ( ct === undefined ) { ct = s.mimeType || jqXHR.getResponseHeader("Content-Type"); } } // Check if we're dealing with a known content-type if ( ct ) { for ( type in contents ) { if ( contents[ type ] && contents[ type ].test( ct ) ) { dataTypes.unshift( type ); break; } } } // Check to see if we have a response for the expected dataType if ( dataTypes[ 0 ] in responses ) { finalDataType = dataTypes[ 0 ]; } else { // Try convertible dataTypes for ( type in responses ) { if ( !dataTypes[ 0 ] || s.converters[ type + " " + dataTypes[0] ] ) { finalDataType = type; break; } if ( !firstDataType ) { firstDataType = type; } } // Or just use first one finalDataType = finalDataType || firstDataType; } // If we found a dataType // We add the dataType to the list if needed // and return the corresponding response if ( finalDataType ) { if ( finalDataType !== dataTypes[ 0 ] ) { dataTypes.unshift( finalDataType ); } return responses[ finalDataType ]; } } /* Chain conversions given the request and the original response * Also sets the responseXXX fields on the jqXHR instance */ function ajaxConvert( s, response, jqXHR, isSuccess ) { var conv2, current, conv, tmp, prev, converters = {}, // Work with a copy of dataTypes in case we need to modify it for conversion dataTypes = s.dataTypes.slice(); // Create converters map with lowercased keys if ( dataTypes[ 1 ] ) { for ( conv in s.converters ) { converters[ conv.toLowerCase() ] = s.converters[ conv ]; } } current = dataTypes.shift(); // Convert to each sequential dataType while ( current ) { if ( s.responseFields[ current ] ) { jqXHR[ s.responseFields[ current ] ] = response; } // Apply the dataFilter if provided if ( !prev && isSuccess && s.dataFilter ) { response = s.dataFilter( response, s.dataType ); } prev = current; current = dataTypes.shift(); if ( current ) { // There's only work to do if current dataType is non-auto if ( current === "*" ) { current = prev; // Convert response if prev dataType is non-auto and differs from current } else if ( prev !== "*" && prev !== current ) { // Seek a direct converter conv = converters[ prev + " " + current ] || converters[ "* " + current ]; // If none found, seek a pair if ( !conv ) { for ( conv2 in converters ) { // If conv2 outputs current tmp = conv2.split( " " ); if ( tmp[ 1 ] === current ) { // If prev can be converted to accepted input conv = converters[ prev + " " + tmp[ 0 ] ] || converters[ "* " + tmp[ 0 ] ]; if ( conv ) { // Condense equivalence converters if ( conv === true ) { conv = converters[ conv2 ]; // Otherwise, insert the intermediate dataType } else if ( converters[ conv2 ] !== true ) { current = tmp[ 0 ]; dataTypes.unshift( tmp[ 1 ] ); } break; } } } } // Apply converter (if not an equivalence) if ( conv !== true ) { // Unless errors are allowed to bubble, catch and return them if ( conv && s[ "throws" ] ) { response = conv( response ); } else { try { response = conv( response ); } catch ( e ) { return { state: "parsererror", error: conv ? e : "No conversion from " + prev + " to " + current }; } } } } } } return { state: "success", data: response }; } // Install script dataType jQuery.ajaxSetup({ accepts: { script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript" }, contents: { script: /(?:java|ecma)script/ }, converters: { "text script": function( text ) { jQuery.globalEval( text ); return text; } } }); // Handle cache's special case and crossDomain jQuery.ajaxPrefilter( "script", function( s ) { if ( s.cache === undefined ) { s.cache = false; } if ( s.crossDomain ) { s.type = "GET"; } }); // Bind script tag hack transport jQuery.ajaxTransport( "script", function( s ) { // This transport only deals with cross domain requests if ( s.crossDomain ) { var script, callback; return { send: function( _, complete ) { script = jQuery("<script>").prop({ async: true, charset: s.scriptCharset, src: s.url }).on( "load error", callback = function( evt ) { script.remove(); callback = null; if ( evt ) { complete( evt.type === "error" ? 404 : 200, evt.type ); } } ); document.head.appendChild( script[ 0 ] ); }, abort: function() { if ( callback ) { callback(); } } }; } }); var oldCallbacks = [], rjsonp = /(=)\?(?=&|$)|\?\?/; // Default jsonp settings jQuery.ajaxSetup({ jsonp: "callback", jsonpCallback: function() { var callback = oldCallbacks.pop() || ( jQuery.expando + "_" + ( ajax_nonce++ ) ); this[ callback ] = true; return callback; } }); // Detect, normalize options and install callbacks for jsonp requests jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, jqXHR ) { var callbackName, overwritten, responseContainer, jsonProp = s.jsonp !== false && ( rjsonp.test( s.url ) ? "url" : typeof s.data === "string" && !( s.contentType || "" ).indexOf("application/x-www-form-urlencoded") && rjsonp.test( s.data ) && "data" ); // Handle iff the expected data type is "jsonp" or we have a parameter to set if ( jsonProp || s.dataTypes[ 0 ] === "jsonp" ) { // Get callback name, remembering preexisting value associated with it callbackName = s.jsonpCallback = jQuery.isFunction( s.jsonpCallback ) ? s.jsonpCallback() : s.jsonpCallback; // Insert callback into url or form data if ( jsonProp ) { s[ jsonProp ] = s[ jsonProp ].replace( rjsonp, "$1" + callbackName ); } else if ( s.jsonp !== false ) { s.url += ( ajax_rquery.test( s.url ) ? "&" : "?" ) + s.jsonp + "=" + callbackName; } // Use data converter to retrieve json after script execution s.converters["script json"] = function() { if ( !responseContainer ) { jQuery.error( callbackName + " was not called" ); } return responseContainer[ 0 ]; }; // force json dataType s.dataTypes[ 0 ] = "json"; // Install callback overwritten = window[ callbackName ]; window[ callbackName ] = function() { responseContainer = arguments; }; // Clean-up function (fires after converters) jqXHR.always(function() { // Restore preexisting value window[ callbackName ] = overwritten; // Save back as free if ( s[ callbackName ] ) { // make sure that re-using the options doesn't screw things around s.jsonpCallback = originalSettings.jsonpCallback; // save the callback name for future use oldCallbacks.push( callbackName ); } // Call if it was a function and we have a response if ( responseContainer && jQuery.isFunction( overwritten ) ) { overwritten( responseContainer[ 0 ] ); } responseContainer = overwritten = undefined; }); // Delegate to script return "script"; } }); jQuery.ajaxSettings.xhr = function() { try { return new XMLHttpRequest(); } catch( e ) {} }; var xhrSupported = jQuery.ajaxSettings.xhr(), xhrSuccessStatus = { // file protocol always yields status code 0, assume 200 0: 200, // Support: IE9 // #1450: sometimes IE returns 1223 when it should be 204 1223: 204 }, // Support: IE9 // We need to keep track of outbound xhr and abort them manually // because IE is not smart enough to do it all by itself xhrId = 0, xhrCallbacks = {}; if ( window.ActiveXObject ) { jQuery( window ).on( "unload", function() { for( var key in xhrCallbacks ) { xhrCallbacks[ key ](); } xhrCallbacks = undefined; }); } jQuery.support.cors = !!xhrSupported && ( "withCredentials" in xhrSupported ); jQuery.support.ajax = xhrSupported = !!xhrSupported; jQuery.ajaxTransport(function( options ) { var callback; // Cross domain only allowed if supported through XMLHttpRequest if ( jQuery.support.cors || xhrSupported && !options.crossDomain ) { return { send: function( headers, complete ) { var i, id, xhr = options.xhr(); xhr.open( options.type, options.url, options.async, options.username, options.password ); // Apply custom fields if provided if ( options.xhrFields ) { for ( i in options.xhrFields ) { xhr[ i ] = options.xhrFields[ i ]; } } // Override mime type if needed if ( options.mimeType && xhr.overrideMimeType ) { xhr.overrideMimeType( options.mimeType ); } // X-Requested-With header // For cross-domain requests, seeing as conditions for a preflight are // akin to a jigsaw puzzle, we simply never set it to be sure. // (it can always be set on a per-request basis or even using ajaxSetup) // For same-domain requests, won't change header if already provided. if ( !options.crossDomain && !headers["X-Requested-With"] ) { headers["X-Requested-With"] = "XMLHttpRequest"; } // Set headers for ( i in headers ) { xhr.setRequestHeader( i, headers[ i ] ); } // Callback callback = function( type ) { return function() { if ( callback ) { delete xhrCallbacks[ id ]; callback = xhr.onload = xhr.onerror = null; if ( type === "abort" ) { xhr.abort(); } else if ( type === "error" ) { complete( // file protocol always yields status 0, assume 404 xhr.status || 404, xhr.statusText ); } else { complete( xhrSuccessStatus[ xhr.status ] || xhr.status, xhr.statusText, // Support: IE9 // #11426: When requesting binary data, IE9 will throw an exception // on any attempt to access responseText typeof xhr.responseText === "string" ? { text: xhr.responseText } : undefined, xhr.getAllResponseHeaders() ); } } }; }; // Listen to events xhr.onload = callback(); xhr.onerror = callback("error"); // Create the abort callback callback = xhrCallbacks[( id = xhrId++ )] = callback("abort"); // Do send the request // This may raise an exception which is actually // handled in jQuery.ajax (so no try/catch here) xhr.send( options.hasContent && options.data || null ); }, abort: function() { if ( callback ) { callback(); } } }; } }); var fxNow, timerId, rfxtypes = /^(?:toggle|show|hide)$/, rfxnum = new RegExp( "^(?:([+-])=|)(" + core_pnum + ")([a-z%]*)$", "i" ), rrun = /queueHooks$/, animationPrefilters = [ defaultPrefilter ], tweeners = { "*": [function( prop, value ) { var tween = this.createTween( prop, value ), target = tween.cur(), parts = rfxnum.exec( value ), unit = parts && parts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ), // Starting value computation is required for potential unit mismatches start = ( jQuery.cssNumber[ prop ] || unit !== "px" && +target ) && rfxnum.exec( jQuery.css( tween.elem, prop ) ), scale = 1, maxIterations = 20; if ( start && start[ 3 ] !== unit ) { // Trust units reported by jQuery.css unit = unit || start[ 3 ]; // Make sure we update the tween properties later on parts = parts || []; // Iteratively approximate from a nonzero starting point start = +target || 1; do { // If previous iteration zeroed out, double until we get *something* // Use a string for doubling factor so we don't accidentally see scale as unchanged below scale = scale || ".5"; // Adjust and apply start = start / scale; jQuery.style( tween.elem, prop, start + unit ); // Update scale, tolerating zero or NaN from tween.cur() // And breaking the loop if scale is unchanged or perfect, or if we've just had enough } while ( scale !== (scale = tween.cur() / target) && scale !== 1 && --maxIterations ); } // Update tween properties if ( parts ) { start = tween.start = +start || +target || 0; tween.unit = unit; // If a +=/-= token was provided, we're doing a relative animation tween.end = parts[ 1 ] ? start + ( parts[ 1 ] + 1 ) * parts[ 2 ] : +parts[ 2 ]; } return tween; }] }; // Animations created synchronously will run synchronously function createFxNow() { setTimeout(function() { fxNow = undefined; }); return ( fxNow = jQuery.now() ); } function createTween( value, prop, animation ) { var tween, collection = ( tweeners[ prop ] || [] ).concat( tweeners[ "*" ] ), index = 0, length = collection.length; for ( ; index < length; index++ ) { if ( (tween = collection[ index ].call( animation, prop, value )) ) { // we're done with this property return tween; } } } function Animation( elem, properties, options ) { var result, stopped, index = 0, length = animationPrefilters.length, deferred = jQuery.Deferred().always( function() { // don't match elem in the :animated selector delete tick.elem; }), tick = function() { if ( stopped ) { return false; } var currentTime = fxNow || createFxNow(), remaining = Math.max( 0, animation.startTime + animation.duration - currentTime ), // archaic crash bug won't allow us to use 1 - ( 0.5 || 0 ) (#12497) temp = remaining / animation.duration || 0, percent = 1 - temp, index = 0, length = animation.tweens.length; for ( ; index < length ; index++ ) { animation.tweens[ index ].run( percent ); } deferred.notifyWith( elem, [ animation, percent, remaining ]); if ( percent < 1 && length ) { return remaining; } else { deferred.resolveWith( elem, [ animation ] ); return false; } }, animation = deferred.promise({ elem: elem, props: jQuery.extend( {}, properties ), opts: jQuery.extend( true, { specialEasing: {} }, options ), originalProperties: properties, originalOptions: options, startTime: fxNow || createFxNow(), duration: options.duration, tweens: [], createTween: function( prop, end ) { var tween = jQuery.Tween( elem, animation.opts, prop, end, animation.opts.specialEasing[ prop ] || animation.opts.easing ); animation.tweens.push( tween ); return tween; }, stop: function( gotoEnd ) { var index = 0, // if we are going to the end, we want to run all the tweens // otherwise we skip this part length = gotoEnd ? animation.tweens.length : 0; if ( stopped ) { return this; } stopped = true; for ( ; index < length ; index++ ) { animation.tweens[ index ].run( 1 ); } // resolve when we played the last frame // otherwise, reject if ( gotoEnd ) { deferred.resolveWith( elem, [ animation, gotoEnd ] ); } else { deferred.rejectWith( elem, [ animation, gotoEnd ] ); } return this; } }), props = animation.props; propFilter( props, animation.opts.specialEasing ); for ( ; index < length ; index++ ) { result = animationPrefilters[ index ].call( animation, elem, props, animation.opts ); if ( result ) { return result; } } jQuery.map( props, createTween, animation ); if ( jQuery.isFunction( animation.opts.start ) ) { animation.opts.start.call( elem, animation ); } jQuery.fx.timer( jQuery.extend( tick, { elem: elem, anim: animation, queue: animation.opts.queue }) ); // attach callbacks from options return animation.progress( animation.opts.progress ) .done( animation.opts.done, animation.opts.complete ) .fail( animation.opts.fail ) .always( animation.opts.always ); } function propFilter( props, specialEasing ) { var index, name, easing, value, hooks; // camelCase, specialEasing and expand cssHook pass for ( index in props ) { name = jQuery.camelCase( index ); easing = specialEasing[ name ]; value = props[ index ]; if ( jQuery.isArray( value ) ) { easing = value[ 1 ]; value = props[ index ] = value[ 0 ]; } if ( index !== name ) { props[ name ] = value; delete props[ index ]; } hooks = jQuery.cssHooks[ name ]; if ( hooks && "expand" in hooks ) { value = hooks.expand( value ); delete props[ name ]; // not quite $.extend, this wont overwrite keys already present. // also - reusing 'index' from above because we have the correct "name" for ( index in value ) { if ( !( index in props ) ) { props[ index ] = value[ index ]; specialEasing[ index ] = easing; } } } else { specialEasing[ name ] = easing; } } } jQuery.Animation = jQuery.extend( Animation, { tweener: function( props, callback ) { if ( jQuery.isFunction( props ) ) { callback = props; props = [ "*" ]; } else { props = props.split(" "); } var prop, index = 0, length = props.length; for ( ; index < length ; index++ ) { prop = props[ index ]; tweeners[ prop ] = tweeners[ prop ] || []; tweeners[ prop ].unshift( callback ); } }, prefilter: function( callback, prepend ) { if ( prepend ) { animationPrefilters.unshift( callback ); } else { animationPrefilters.push( callback ); } } }); function defaultPrefilter( elem, props, opts ) { /* jshint validthis: true */ var prop, value, toggle, tween, hooks, oldfire, anim = this, orig = {}, style = elem.style, hidden = elem.nodeType && isHidden( elem ), dataShow = data_priv.get( elem, "fxshow" ); // handle queue: false promises if ( !opts.queue ) { hooks = jQuery._queueHooks( elem, "fx" ); if ( hooks.unqueued == null ) { hooks.unqueued = 0; oldfire = hooks.empty.fire; hooks.empty.fire = function() { if ( !hooks.unqueued ) { oldfire(); } }; } hooks.unqueued++; anim.always(function() { // doing this makes sure that the complete handler will be called // before this completes anim.always(function() { hooks.unqueued--; if ( !jQuery.queue( elem, "fx" ).length ) { hooks.empty.fire(); } }); }); } // height/width overflow pass if ( elem.nodeType === 1 && ( "height" in props || "width" in props ) ) { // Make sure that nothing sneaks out // Record all 3 overflow attributes because IE9-10 do not // change the overflow attribute when overflowX and // overflowY are set to the same value opts.overflow = [ style.overflow, style.overflowX, style.overflowY ]; // Set display property to inline-block for height/width // animations on inline elements that are having width/height animated if ( jQuery.css( elem, "display" ) === "inline" && jQuery.css( elem, "float" ) === "none" ) { style.display = "inline-block"; } } if ( opts.overflow ) { style.overflow = "hidden"; anim.always(function() { style.overflow = opts.overflow[ 0 ]; style.overflowX = opts.overflow[ 1 ]; style.overflowY = opts.overflow[ 2 ]; }); } // show/hide pass for ( prop in props ) { value = props[ prop ]; if ( rfxtypes.exec( value ) ) { delete props[ prop ]; toggle = toggle || value === "toggle"; if ( value === ( hidden ? "hide" : "show" ) ) { // If there is dataShow left over from a stopped hide or show and we are going to proceed with show, we should pretend to be hidden if ( value === "show" && dataShow && dataShow[ prop ] !== undefined ) { hidden = true; } else { continue; } } orig[ prop ] = dataShow && dataShow[ prop ] || jQuery.style( elem, prop ); } } if ( !jQuery.isEmptyObject( orig ) ) { if ( dataShow ) { if ( "hidden" in dataShow ) { hidden = dataShow.hidden; } } else { dataShow = data_priv.access( elem, "fxshow", {} ); } // store state if its toggle - enables .stop().toggle() to "reverse" if ( toggle ) { dataShow.hidden = !hidden; } if ( hidden ) { jQuery( elem ).show(); } else { anim.done(function() { jQuery( elem ).hide(); }); } anim.done(function() { var prop; data_priv.remove( elem, "fxshow" ); for ( prop in orig ) { jQuery.style( elem, prop, orig[ prop ] ); } }); for ( prop in orig ) { tween = createTween( hidden ? dataShow[ prop ] : 0, prop, anim ); if ( !( prop in dataShow ) ) { dataShow[ prop ] = tween.start; if ( hidden ) { tween.end = tween.start; tween.start = prop === "width" || prop === "height" ? 1 : 0; } } } } } function Tween( elem, options, prop, end, easing ) { return new Tween.prototype.init( elem, options, prop, end, easing ); } jQuery.Tween = Tween; Tween.prototype = { constructor: Tween, init: function( elem, options, prop, end, easing, unit ) { this.elem = elem; this.prop = prop; this.easing = easing || "swing"; this.options = options; this.start = this.now = this.cur(); this.end = end; this.unit = unit || ( jQuery.cssNumber[ prop ] ? "" : "px" ); }, cur: function() { var hooks = Tween.propHooks[ this.prop ]; return hooks && hooks.get ? hooks.get( this ) : Tween.propHooks._default.get( this ); }, run: function( percent ) { var eased, hooks = Tween.propHooks[ this.prop ]; if ( this.options.duration ) { this.pos = eased = jQuery.easing[ this.easing ]( percent, this.options.duration * percent, 0, 1, this.options.duration ); } else { this.pos = eased = percent; } this.now = ( this.end - this.start ) * eased + this.start; if ( this.options.step ) { this.options.step.call( this.elem, this.now, this ); } if ( hooks && hooks.set ) { hooks.set( this ); } else { Tween.propHooks._default.set( this ); } return this; } }; Tween.prototype.init.prototype = Tween.prototype; Tween.propHooks = { _default: { get: function( tween ) { var result; if ( tween.elem[ tween.prop ] != null && (!tween.elem.style || tween.elem.style[ tween.prop ] == null) ) { return tween.elem[ tween.prop ]; } // passing an empty string as a 3rd parameter to .css will automatically // attempt a parseFloat and fallback to a string if the parse fails // so, simple values such as "10px" are parsed to Float. // complex values such as "rotate(1rad)" are returned as is. result = jQuery.css( tween.elem, tween.prop, "" ); // Empty strings, null, undefined and "auto" are converted to 0. return !result || result === "auto" ? 0 : result; }, set: function( tween ) { // use step hook for back compat - use cssHook if its there - use .style if its // available and use plain properties where available if ( jQuery.fx.step[ tween.prop ] ) { jQuery.fx.step[ tween.prop ]( tween ); } else if ( tween.elem.style && ( tween.elem.style[ jQuery.cssProps[ tween.prop ] ] != null || jQuery.cssHooks[ tween.prop ] ) ) { jQuery.style( tween.elem, tween.prop, tween.now + tween.unit ); } else { tween.elem[ tween.prop ] = tween.now; } } } }; // Support: IE9 // Panic based approach to setting things on disconnected nodes Tween.propHooks.scrollTop = Tween.propHooks.scrollLeft = { set: function( tween ) { if ( tween.elem.nodeType && tween.elem.parentNode ) { tween.elem[ tween.prop ] = tween.now; } } }; jQuery.each([ "toggle", "show", "hide" ], function( i, name ) { var cssFn = jQuery.fn[ name ]; jQuery.fn[ name ] = function( speed, easing, callback ) { return speed == null || typeof speed === "boolean" ? cssFn.apply( this, arguments ) : this.animate( genFx( name, true ), speed, easing, callback ); }; }); jQuery.fn.extend({ fadeTo: function( speed, to, easing, callback ) { // show any hidden elements after setting opacity to 0 return this.filter( isHidden ).css( "opacity", 0 ).show() // animate to the value specified .end().animate({ opacity: to }, speed, easing, callback ); }, animate: function( prop, speed, easing, callback ) { var empty = jQuery.isEmptyObject( prop ), optall = jQuery.speed( speed, easing, callback ), doAnimation = function() { // Operate on a copy of prop so per-property easing won't be lost var anim = Animation( this, jQuery.extend( {}, prop ), optall ); // Empty animations, or finishing resolves immediately if ( empty || data_priv.get( this, "finish" ) ) { anim.stop( true ); } }; doAnimation.finish = doAnimation; return empty || optall.queue === false ? this.each( doAnimation ) : this.queue( optall.queue, doAnimation ); }, stop: function( type, clearQueue, gotoEnd ) { var stopQueue = function( hooks ) { var stop = hooks.stop; delete hooks.stop; stop( gotoEnd ); }; if ( typeof type !== "string" ) { gotoEnd = clearQueue; clearQueue = type; type = undefined; } if ( clearQueue && type !== false ) { this.queue( type || "fx", [] ); } return this.each(function() { var dequeue = true, index = type != null && type + "queueHooks", timers = jQuery.timers, data = data_priv.get( this ); if ( index ) { if ( data[ index ] && data[ index ].stop ) { stopQueue( data[ index ] ); } } else { for ( index in data ) { if ( data[ index ] && data[ index ].stop && rrun.test( index ) ) { stopQueue( data[ index ] ); } } } for ( index = timers.length; index--; ) { if ( timers[ index ].elem === this && (type == null || timers[ index ].queue === type) ) { timers[ index ].anim.stop( gotoEnd ); dequeue = false; timers.splice( index, 1 ); } } // start the next in the queue if the last step wasn't forced // timers currently will call their complete callbacks, which will dequeue // but only if they were gotoEnd if ( dequeue || !gotoEnd ) { jQuery.dequeue( this, type ); } }); }, finish: function( type ) { if ( type !== false ) { type = type || "fx"; } return this.each(function() { var index, data = data_priv.get( this ), queue = data[ type + "queue" ], hooks = data[ type + "queueHooks" ], timers = jQuery.timers, length = queue ? queue.length : 0; // enable finishing flag on private data data.finish = true; // empty the queue first jQuery.queue( this, type, [] ); if ( hooks && hooks.stop ) { hooks.stop.call( this, true ); } // look for any active animations, and finish them for ( index = timers.length; index--; ) { if ( timers[ index ].elem === this && timers[ index ].queue === type ) { timers[ index ].anim.stop( true ); timers.splice( index, 1 ); } } // look for any animations in the old queue and finish them for ( index = 0; index < length; index++ ) { if ( queue[ index ] && queue[ index ].finish ) { queue[ index ].finish.call( this ); } } // turn off finishing flag delete data.finish; }); } }); // Generate parameters to create a standard animation function genFx( type, includeWidth ) { var which, attrs = { height: type }, i = 0; // if we include width, step value is 1 to do all cssExpand values, // if we don't include width, step value is 2 to skip over Left and Right includeWidth = includeWidth? 1 : 0; for( ; i < 4 ; i += 2 - includeWidth ) { which = cssExpand[ i ]; attrs[ "margin" + which ] = attrs[ "padding" + which ] = type; } if ( includeWidth ) { attrs.opacity = attrs.width = type; } return attrs; } // Generate shortcuts for custom animations jQuery.each({ slideDown: genFx("show"), slideUp: genFx("hide"), slideToggle: genFx("toggle"), fadeIn: { opacity: "show" }, fadeOut: { opacity: "hide" }, fadeToggle: { opacity: "toggle" } }, function( name, props ) { jQuery.fn[ name ] = function( speed, easing, callback ) { return this.animate( props, speed, easing, callback ); }; }); jQuery.speed = function( speed, easing, fn ) { var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : { complete: fn || !fn && easing || jQuery.isFunction( speed ) && speed, duration: speed, easing: fn && easing || easing && !jQuery.isFunction( easing ) && easing }; opt.duration = jQuery.fx.off ? 0 : typeof opt.duration === "number" ? opt.duration : opt.duration in jQuery.fx.speeds ? jQuery.fx.speeds[ opt.duration ] : jQuery.fx.speeds._default; // normalize opt.queue - true/undefined/null -> "fx" if ( opt.queue == null || opt.queue === true ) { opt.queue = "fx"; } // Queueing opt.old = opt.complete; opt.complete = function() { if ( jQuery.isFunction( opt.old ) ) { opt.old.call( this ); } if ( opt.queue ) { jQuery.dequeue( this, opt.queue ); } }; return opt; }; jQuery.easing = { linear: function( p ) { return p; }, swing: function( p ) { return 0.5 - Math.cos( p*Math.PI ) / 2; } }; jQuery.timers = []; jQuery.fx = Tween.prototype.init; jQuery.fx.tick = function() { var timer, timers = jQuery.timers, i = 0; fxNow = jQuery.now(); for ( ; i < timers.length; i++ ) { timer = timers[ i ]; // Checks the timer has not already been removed if ( !timer() && timers[ i ] === timer ) { timers.splice( i--, 1 ); } } if ( !timers.length ) { jQuery.fx.stop(); } fxNow = undefined; }; jQuery.fx.timer = function( timer ) { if ( timer() && jQuery.timers.push( timer ) ) { jQuery.fx.start(); } }; jQuery.fx.interval = 13; jQuery.fx.start = function() { if ( !timerId ) { timerId = setInterval( jQuery.fx.tick, jQuery.fx.interval ); } }; jQuery.fx.stop = function() { clearInterval( timerId ); timerId = null; }; jQuery.fx.speeds = { slow: 600, fast: 200, // Default speed _default: 400 }; // Back Compat <1.8 extension point jQuery.fx.step = {}; if ( jQuery.expr && jQuery.expr.filters ) { jQuery.expr.filters.animated = function( elem ) { return jQuery.grep(jQuery.timers, function( fn ) { return elem === fn.elem; }).length; }; } jQuery.fn.offset = function( options ) { if ( arguments.length ) { return options === undefined ? this : this.each(function( i ) { jQuery.offset.setOffset( this, options, i ); }); } var docElem, win, elem = this[ 0 ], box = { top: 0, left: 0 }, doc = elem && elem.ownerDocument; if ( !doc ) { return; } docElem = doc.documentElement; // Make sure it's not a disconnected DOM node if ( !jQuery.contains( docElem, elem ) ) { return box; } // If we don't have gBCR, just use 0,0 rather than error // BlackBerry 5, iOS 3 (original iPhone) if ( typeof elem.getBoundingClientRect !== core_strundefined ) { box = elem.getBoundingClientRect(); } win = getWindow( doc ); return { top: box.top + win.pageYOffset - docElem.clientTop, left: box.left + win.pageXOffset - docElem.clientLeft }; }; jQuery.offset = { setOffset: function( elem, options, i ) { var curPosition, curLeft, curCSSTop, curTop, curOffset, curCSSLeft, calculatePosition, position = jQuery.css( elem, "position" ), curElem = jQuery( elem ), props = {}; // Set position first, in-case top/left are set even on static elem if ( position === "static" ) { elem.style.position = "relative"; } curOffset = curElem.offset(); curCSSTop = jQuery.css( elem, "top" ); curCSSLeft = jQuery.css( elem, "left" ); calculatePosition = ( position === "absolute" || position === "fixed" ) && ( curCSSTop + curCSSLeft ).indexOf("auto") > -1; // Need to be able to calculate position if either top or left is auto and position is either absolute or fixed if ( calculatePosition ) { curPosition = curElem.position(); curTop = curPosition.top; curLeft = curPosition.left; } else { curTop = parseFloat( curCSSTop ) || 0; curLeft = parseFloat( curCSSLeft ) || 0; } if ( jQuery.isFunction( options ) ) { options = options.call( elem, i, curOffset ); } if ( options.top != null ) { props.top = ( options.top - curOffset.top ) + curTop; } if ( options.left != null ) { props.left = ( options.left - curOffset.left ) + curLeft; } if ( "using" in options ) { options.using.call( elem, props ); } else { curElem.css( props ); } } }; jQuery.fn.extend({ position: function() { if ( !this[ 0 ] ) { return; } var offsetParent, offset, elem = this[ 0 ], parentOffset = { top: 0, left: 0 }; // Fixed elements are offset from window (parentOffset = {top:0, left: 0}, because it is it's only offset parent if ( jQuery.css( elem, "position" ) === "fixed" ) { // We assume that getBoundingClientRect is available when computed position is fixed offset = elem.getBoundingClientRect(); } else { // Get *real* offsetParent offsetParent = this.offsetParent(); // Get correct offsets offset = this.offset(); if ( !jQuery.nodeName( offsetParent[ 0 ], "html" ) ) { parentOffset = offsetParent.offset(); } // Add offsetParent borders parentOffset.top += jQuery.css( offsetParent[ 0 ], "borderTopWidth", true ); parentOffset.left += jQuery.css( offsetParent[ 0 ], "borderLeftWidth", true ); } // Subtract parent offsets and element margins return { top: offset.top - parentOffset.top - jQuery.css( elem, "marginTop", true ), left: offset.left - parentOffset.left - jQuery.css( elem, "marginLeft", true ) }; }, offsetParent: function() { return this.map(function() { var offsetParent = this.offsetParent || docElem; while ( offsetParent && ( !jQuery.nodeName( offsetParent, "html" ) && jQuery.css( offsetParent, "position") === "static" ) ) { offsetParent = offsetParent.offsetParent; } return offsetParent || docElem; }); } }); // Create scrollLeft and scrollTop methods jQuery.each( {scrollLeft: "pageXOffset", scrollTop: "pageYOffset"}, function( method, prop ) { var top = "pageYOffset" === prop; jQuery.fn[ method ] = function( val ) { return jQuery.access( this, function( elem, method, val ) { var win = getWindow( elem ); if ( val === undefined ) { return win ? win[ prop ] : elem[ method ]; } if ( win ) { win.scrollTo( !top ? val : window.pageXOffset, top ? val : window.pageYOffset ); } else { elem[ method ] = val; } }, method, val, arguments.length, null ); }; }); function getWindow( elem ) { return jQuery.isWindow( elem ) ? elem : elem.nodeType === 9 && elem.defaultView; } // Create innerHeight, innerWidth, height, width, outerHeight and outerWidth methods jQuery.each( { Height: "height", Width: "width" }, function( name, type ) { jQuery.each( { padding: "inner" + name, content: type, "": "outer" + name }, function( defaultExtra, funcName ) { // margin is only for outerHeight, outerWidth jQuery.fn[ funcName ] = function( margin, value ) { var chainable = arguments.length && ( defaultExtra || typeof margin !== "boolean" ), extra = defaultExtra || ( margin === true || value === true ? "margin" : "border" ); return jQuery.access( this, function( elem, type, value ) { var doc; if ( jQuery.isWindow( elem ) ) { // As of 5/8/2012 this will yield incorrect results for Mobile Safari, but there // isn't a whole lot we can do. See pull request at this URL for discussion: // https://github.com/jquery/jquery/pull/764 return elem.document.documentElement[ "client" + name ]; } // Get document width or height if ( elem.nodeType === 9 ) { doc = elem.documentElement; // Either scroll[Width/Height] or offset[Width/Height] or client[Width/Height], // whichever is greatest return Math.max( elem.body[ "scroll" + name ], doc[ "scroll" + name ], elem.body[ "offset" + name ], doc[ "offset" + name ], doc[ "client" + name ] ); } return value === undefined ? // Get width or height on the element, requesting but not forcing parseFloat jQuery.css( elem, type, extra ) : // Set width or height on the element jQuery.style( elem, type, value, extra ); }, type, chainable ? margin : undefined, chainable, null ); }; }); }); // Limit scope pollution from any deprecated API // (function() { // The number of elements contained in the matched element set jQuery.fn.size = function() { return this.length; }; jQuery.fn.andSelf = jQuery.fn.addBack; // })(); if ( typeof module === "object" && module && typeof module.exports === "object" ) { // Expose jQuery as module.exports in loaders that implement the Node // module pattern (including browserify). Do not create the global, since // the user will be storing it themselves locally, and globals are frowned // upon in the Node module world. module.exports = jQuery; } else { // Register as a named AMD module, since jQuery can be concatenated with other // files that may use define, but not via a proper concatenation script that // understands anonymous AMD modules. A named AMD is safest and most robust // way to register. Lowercase jquery is used because AMD module names are // derived from file names, and jQuery is normally delivered in a lowercase // file name. Do this after creating the global so that if an AMD module wants // to call noConflict to hide this version of jQuery, it will work. if ( typeof define === "function" && define.amd ) { define( "jquery", [], function () { return jQuery; } ); } } // If there is a window object, that at least has a document property, // define jQuery and $ identifiers if ( typeof window === "object" && typeof window.document === "object" ) { window.jQuery = window.$ = jQuery; } })( window );/** * Created with JetBrains PhpStorm. * User: awissel * Date: 23.08.13 * Time: 02:32 * To change this template use File | Settings | File Templates. */
kaeku/webfolks
public/js/jquery.js
JavaScript
gpl-2.0
337,504
# -*- coding: utf-8 -*- from tg.configuration import AppConfig, config from tg import request from pollandsurvey import model from tgext.pyutilservice import Utility import logging log = logging.getLogger(__name__) from tgext.pylogservice import LogDBHandler class InterfaceWebService(object): def __init__(self): self.modules ='INTERFACESERVICE.WEBSERVICE' dh = LogDBHandler( config=config,request=request) log.addHandler(dh) self.utility = Utility() def mapVoterUser(self, voter): """ Check Voter and User in table sur_member_user is Empty will create again. if not will pass. Keyword arguments: voter -- Object Voter """ self.memberUser = model.MemberUser(); try: if voter: user = model.User.by_email_address(voter.email) if user : self.memberUser = model.MemberUser.getByUserIdandVoter(user.user_id, voter.id_voter) if self.memberUser is None: self.memberUser = model.MemberUser(); self.memberUser.user_id = user.user_id self.memberUser.id_voter = voter.id_voter self.memberUser.save() del user except Exception as e: log.error("mapVoterUser : %s" %e, extra=extraLog(modules=self.modules)); return self.memberUser;
tongpa/PollSurveyWeb
pollandsurvey/service/interfacewebservice.py
Python
gpl-2.0
1,487
/* * Copyright (c) 1998-2011 Caucho Technology -- all rights reserved * * This file is part of Resin(R) Open Source * * Each copy or derived work must preserve the copyright notice and this * notice unmodified. * * Resin Open Source 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. * * Resin Open Source 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, or any warranty * of NON-INFRINGEMENT. See the GNU General Public License for more * details. * * You should have received a copy of the GNU General Public License * along with Resin Open Source; if not, write to the * * Free Software Foundation, Inc. * 59 Temple Place, Suite 330 * Boston, MA 02111-1307 USA * * @author Scott Ferguson */ package com.caucho.jsf.cfg; import java.util.*; import javax.el.*; import javax.faces.*; import javax.faces.application.*; import javax.faces.component.*; import javax.faces.component.html.*; import javax.faces.context.*; import javax.faces.convert.*; import javax.faces.el.*; import javax.faces.event.*; import javax.faces.validator.*; import com.caucho.config.*; import com.caucho.jsf.el.*; import com.caucho.util.*; public class ManagedBeanConfig { private static final L10N L = new L10N(ManagedBeanConfig.class); private String _configLocation; private String _id; private String _name; private String _typeName; private Class _type; private ArrayList<BeanProgram> _program = new ArrayList<BeanProgram>(); private Scope _scope = Scope.REQUEST; public void setId(String id) { } public void setDescription(String description) { } public void setManagedBeanName(String name) { _name = name; } public String getName() { return _name; } public void setConfigLocation(String location) { _configLocation = location; } public void setManagedBeanClass(String cl) { _typeName = cl; } public String getManagedBeanClass() { return _typeName; } public Class getType() { if (_type == null) { try { ClassLoader loader = Thread.currentThread().getContextClassLoader(); _type = Class.forName(_typeName, false, loader); } catch (Exception e) { throw ConfigException.create(e); } } return _type; } public void setManagedBeanScope(String scope) { if ("request".equals(scope)) _scope = Scope.REQUEST; else if ("session".equals(scope)) _scope = Scope.SESSION; else if ("application".equals(scope)) _scope = Scope.APPLICATION; else if ("none".equals(scope)) _scope = Scope.NONE; else throw new ConfigException(L.l("'{0}' is an unknown managed-bean-scope. Expected values are request, session, application, or none.", scope)); } public String getManagedBeanScope() { return _scope.toString(); } public void setManagedProperty(ManagedProperty property) { property.addProgram(_program, getType()); } public ManagedProperty getManagedProperty() { throw new UnsupportedOperationException(); } public void setMapEntries(MappedEntries map) { ArrayList<AbstractValue> keyList = map.getKeyList(); ArrayList<AbstractValue> valueList = map.getValueList(); for (int i = 0; i < keyList.size(); i++) { _program.add(new MapBeanProgram(keyList.get(i), valueList.get(i))); } } public void setListEntries(ListEntries list) { for (AbstractValue value : list.getListValues()) { _program.add(new ListBeanProgram(value)); } } public Object create(FacesContext context, ManagedBeanELResolver.Scope createScope) throws FacesException { try { ELContext elContext = context.getELContext(); boolean isPropertyResolved = elContext.isPropertyResolved(); Object value = getType().newInstance(); if (createScope.getScope() < _scope.ordinal()) throw new FacesException(L.l("Scope '{0}' is long for enclosing bean.", _scope)); else if (_scope.ordinal() < createScope.getScope()) createScope.setScope(_scope.ordinal()); for (int i = 0; i < _program.size(); i++) { _program.get(i).configure(context, value); } ExternalContext extContext = context.getExternalContext(); switch (_scope) { case APPLICATION: extContext.getApplicationMap().put(_name, value); break; case SESSION: extContext.getSessionMap().put(_name, value); break; case REQUEST: extContext.getRequestMap().put(_name, value); break; } elContext.setPropertyResolved(isPropertyResolved); return value; } catch (FacesException e) { throw e; } catch (RuntimeException e) { throw e; } catch (Exception e) { throw new FacesException(e); } } enum Scope { NONE, APPLICATION, SESSION, REQUEST, }; }
dlitz/resin
modules/resin/src/com/caucho/jsf/cfg/ManagedBeanConfig.java
Java
gpl-2.0
5,235
/* * linux/init/main.c * * Copyright (C) 1991, 1992 Linus Torvalds * * GK 2/5/95 - Changed to support mounting root fs via NFS * Added initrd & change_root: Werner Almesberger & Hans Lermen, Feb '96 * Moan early if gcc is old, avoiding bogus kernels - Paul Gortmaker, May '96 * Simplified starting of init: Michael A. Griffith <grif@acm.org> */ #define __KERNEL_SYSCALLS__ #include <linux/config.h> #include <linux/types.h> #include <linux/module.h> #include <linux/proc_fs.h> #include <linux/devfs_fs_kernel.h> #include <linux/kernel.h> #include <linux/syscalls.h> #include <linux/string.h> #include <linux/ctype.h> #include <linux/delay.h> #include <linux/utsname.h> #include <linux/ioport.h> #include <linux/init.h> #include <linux/smp_lock.h> #include <linux/initrd.h> #include <linux/hdreg.h> #include <linux/bootmem.h> #include <linux/tty.h> #include <linux/gfp.h> #include <linux/percpu.h> #include <linux/kmod.h> #include <linux/kernel_stat.h> #include <linux/security.h> #include <linux/workqueue.h> #include <linux/profile.h> #include <linux/rcupdate.h> #include <linux/moduleparam.h> #include <linux/kallsyms.h> #include <linux/writeback.h> #include <linux/cpu.h> #include <linux/cpuset.h> #include <linux/efi.h> #include <linux/unistd.h> #include <linux/rmap.h> #include <linux/mempolicy.h> #include <linux/key.h> #include <asm/io.h> #include <asm/bugs.h> #include <asm/setup.h> #include <asm/sections.h> /* * This is one of the first .c files built. Error out early * if we have compiler trouble.. */ #if __GNUC__ == 2 && __GNUC_MINOR__ == 96 #ifdef CONFIG_FRAME_POINTER #error This compiler cannot compile correctly with frame pointers enabled #endif #endif #ifdef CONFIG_X86_LOCAL_APIC #include <asm/smp.h> #endif /* * Versions of gcc older than that listed below may actually compile * and link okay, but the end product can have subtle run time bugs. * To avoid associated bogus bug reports, we flatly refuse to compile * with a gcc that is known to be too old from the very beginning. */ #if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 95) #error Sorry, your GCC is too old. It builds incorrect kernels. #endif static int init(void *); extern void init_IRQ(void); extern void sock_init(void); extern void fork_init(unsigned long); extern void mca_init(void); extern void sbus_init(void); extern void sysctl_init(void); extern void signals_init(void); extern void buffer_init(void); extern void pidhash_init(void); extern void pidmap_init(void); extern void prio_tree_init(void); extern void radix_tree_init(void); extern void free_initmem(void); extern void populate_rootfs(void); extern void driver_init(void); extern void prepare_namespace(void); #ifdef CONFIG_ACPI extern void acpi_early_init(void); #else static inline void acpi_early_init(void) { } #endif #ifdef CONFIG_TC extern void tc_init(void); #endif enum system_states system_state; EXPORT_SYMBOL(system_state); /* * Boot command-line arguments */ #define MAX_INIT_ARGS CONFIG_INIT_ENV_ARG_LIMIT #define MAX_INIT_ENVS CONFIG_INIT_ENV_ARG_LIMIT extern void time_init(void); /* Default late time init is NULL. archs can override this later. */ void (*late_time_init)(void); extern void softirq_init(void); /* Untouched command line (eg. for /proc) saved by arch-specific code. */ char saved_command_line[COMMAND_LINE_SIZE]; static char *execute_command; /* Setup configured maximum number of CPUs to activate */ static unsigned int max_cpus = NR_CPUS; /* * Setup routine for controlling SMP activation * * Command-line option of "nosmp" or "maxcpus=0" will disable SMP * activation entirely (the MPS table probe still happens, though). * * Command-line option of "maxcpus=<NUM>", where <NUM> is an integer * greater than 0, limits the maximum number of CPUs activated in * SMP mode to <NUM>. */ static int __init nosmp(char *str) { max_cpus = 0; return 1; } __setup("nosmp", nosmp); static int __init maxcpus(char *str) { get_option(&str, &max_cpus); return 1; } __setup("maxcpus=", maxcpus); static char * argv_init[MAX_INIT_ARGS+2] = { "init", NULL, }; char * envp_init[MAX_INIT_ENVS+2] = { "HOME=/", "TERM=linux", NULL, }; static const char *panic_later, *panic_param; extern struct obs_kernel_param __setup_start[], __setup_end[]; static int __init obsolete_checksetup(char *line) { struct obs_kernel_param *p; p = __setup_start; do { int n = strlen(p->str); if (!strncmp(line, p->str, n)) { if (p->early) { /* Already done in parse_early_param? (Needs * exact match on param part) */ if (line[n] == '\0' || line[n] == '=') return 1; } else if (!p->setup_func) { printk(KERN_WARNING "Parameter %s is obsolete," " ignored\n", p->str); return 1; } else if (p->setup_func(line + n)) return 1; } p++; } while (p < __setup_end); return 0; } /* * This should be approx 2 Bo*oMips to start (note initial shift), and will * still work even if initially too large, it will just take slightly longer */ unsigned long loops_per_jiffy = (1<<12); EXPORT_SYMBOL(loops_per_jiffy); static int __init debug_kernel(char *str) { if (*str) return 0; console_loglevel = 10; return 1; } static int __init quiet_kernel(char *str) { if (*str) return 0; console_loglevel = 4; return 1; } __setup("debug", debug_kernel); __setup("quiet", quiet_kernel); static int __init loglevel(char *str) { get_option(&str, &console_loglevel); return 1; } __setup("loglevel=", loglevel); /* * Unknown boot options get handed to init, unless they look like * failed parameters */ static int __init unknown_bootoption(char *param, char *val) { /* Change NUL term back to "=", to make "param" the whole string. */ if (val) { /* param=val or param="val"? */ if (val == param+strlen(param)+1) val[-1] = '='; else if (val == param+strlen(param)+2) { val[-2] = '='; memmove(val-1, val, strlen(val)+1); val--; } else BUG(); } /* Handle obsolete-style parameters */ if (obsolete_checksetup(param)) return 0; /* * Preemptive maintenance for "why didn't my mispelled command * line work?" */ if (strchr(param, '.') && (!val || strchr(param, '.') < val)) { printk(KERN_ERR "Unknown boot option `%s': ignoring\n", param); return 0; } if (panic_later) return 0; if (val) { /* Environment option */ unsigned int i; for (i = 0; envp_init[i]; i++) { if (i == MAX_INIT_ENVS) { panic_later = "Too many boot env vars at `%s'"; panic_param = param; } if (!strncmp(param, envp_init[i], val - param)) break; } envp_init[i] = param; } else { /* Command line option */ unsigned int i; for (i = 0; argv_init[i]; i++) { if (i == MAX_INIT_ARGS) { panic_later = "Too many boot init vars at `%s'"; panic_param = param; } } argv_init[i] = param; } return 0; } static int __init init_setup(char *str) { unsigned int i; execute_command = str; /* * In case LILO is going to boot us with default command line, * it prepends "auto" before the whole cmdline which makes * the shell think it should execute a script with such name. * So we ignore all arguments entered _before_ init=... [MJ] */ for (i = 1; i < MAX_INIT_ARGS; i++) argv_init[i] = NULL; return 1; } __setup("init=", init_setup); extern void setup_arch(char **); #ifndef CONFIG_SMP #ifdef CONFIG_X86_LOCAL_APIC static void __init smp_init(void) { APIC_init_uniprocessor(); } #else #define smp_init() do { } while (0) #endif static inline void setup_per_cpu_areas(void) { } static inline void smp_prepare_cpus(unsigned int maxcpus) { } #else #ifdef __GENERIC_PER_CPU unsigned long __per_cpu_offset[NR_CPUS]; EXPORT_SYMBOL(__per_cpu_offset); static void __init setup_per_cpu_areas(void) { unsigned long size, i; char *ptr; /* Copy section for each CPU (we discard the original) */ size = ALIGN(__per_cpu_end - __per_cpu_start, SMP_CACHE_BYTES); #ifdef CONFIG_MODULES if (size < PERCPU_ENOUGH_ROOM) size = PERCPU_ENOUGH_ROOM; #endif ptr = alloc_bootmem(size * NR_CPUS); for (i = 0; i < NR_CPUS; i++, ptr += size) { __per_cpu_offset[i] = ptr - __per_cpu_start; memcpy(ptr, __per_cpu_start, __per_cpu_end - __per_cpu_start); } } #endif /* !__GENERIC_PER_CPU */ /* Called by boot processor to activate the rest. */ static void __init smp_init(void) { unsigned int i; /* FIXME: This should be done in userspace --RR */ for_each_present_cpu(i) { if (num_online_cpus() >= max_cpus) break; if (!cpu_online(i)) cpu_up(i); } /* Any cleanup work */ printk(KERN_INFO "Brought up %ld CPUs\n", (long)num_online_cpus()); smp_cpus_done(max_cpus); #if 0 /* Get other processors into their bootup holding patterns. */ smp_commence(); #endif } #endif /* * We need to finalize in a non-__init function or else race conditions * between the root thread and the init thread may cause start_kernel to * be reaped by free_initmem before the root thread has proceeded to * cpu_idle. * * gcc-3.4 accidentally inlines this function, so use noinline. */ static void noinline rest_init(void) __releases(kernel_lock) { kernel_thread(init, NULL, CLONE_FS | CLONE_SIGHAND); numa_default_policy(); unlock_kernel(); preempt_enable_no_resched(); /* * The boot idle thread must execute schedule() * at least one to get things moving: */ schedule(); cpu_idle(); } /* Check for early params. */ static int __init do_early_param(char *param, char *val) { struct obs_kernel_param *p; for (p = __setup_start; p < __setup_end; p++) { if (p->early && strcmp(param, p->str) == 0) { if (p->setup_func(val) != 0) printk(KERN_WARNING "Malformed early option '%s'\n", param); } } /* We accept everything at this stage. */ return 0; } /* Arch code calls this early on, or if not, just before other parsing. */ void __init parse_early_param(void) { static __initdata int done = 0; static __initdata char tmp_cmdline[COMMAND_LINE_SIZE]; if (done) return; /* All fall through to do_early_param. */ strlcpy(tmp_cmdline, saved_command_line, COMMAND_LINE_SIZE); parse_args("early options", tmp_cmdline, NULL, 0, do_early_param); done = 1; } /* * Activate the first processor. */ asmlinkage void __init start_kernel(void) { char * command_line; extern struct kernel_param __start___param[], __stop___param[]; /* * Interrupts are still disabled. Do necessary setups, then * enable them */ lock_kernel(); page_address_init(); printk(KERN_NOTICE); printk(linux_banner); setup_arch(&command_line); setup_per_cpu_areas(); /* * Mark the boot cpu "online" so that it can call console drivers in * printk() and can access its per-cpu storage. */ smp_prepare_boot_cpu(); /* * Set up the scheduler prior starting any interrupts (such as the * timer interrupt). Full topology setup happens at smp_init() * time - but meanwhile we still have a functioning scheduler. */ sched_init(); /* * Disable preemption - early bootup scheduling is extremely * fragile until we cpu_idle() for the first time. */ preempt_disable(); build_all_zonelists(); page_alloc_init(); printk(KERN_NOTICE "Kernel command line: %s\n", saved_command_line); parse_early_param(); parse_args("Booting kernel", command_line, __start___param, __stop___param - __start___param, &unknown_bootoption); sort_main_extable(); trap_init(); rcu_init(); init_IRQ(); pidhash_init(); init_timers(); softirq_init(); time_init(); /* * HACK ALERT! This is early. We're enabling the console before * we've done PCI setups etc, and console_init() must be aware of * this. But we do want output early, in case something goes wrong. */ console_init(); if (panic_later) panic(panic_later, panic_param); profile_init(); local_irq_enable(); #ifdef CONFIG_BLK_DEV_INITRD if (initrd_start && !initrd_below_start_ok && initrd_start < min_low_pfn << PAGE_SHIFT) { printk(KERN_CRIT "initrd overwritten (0x%08lx < 0x%08lx) - " "disabling it.\n",initrd_start,min_low_pfn << PAGE_SHIFT); initrd_start = 0; } #endif vfs_caches_init_early(); mem_init(); kmem_cache_init(); setup_per_cpu_pageset(); numa_policy_init(); if (late_time_init) late_time_init(); calibrate_delay(); pidmap_init(); pgtable_cache_init(); prio_tree_init(); anon_vma_init(); #ifdef CONFIG_X86 if (efi_enabled) efi_enter_virtual_mode(); #endif fork_init(num_physpages); proc_caches_init(); buffer_init(); unnamed_dev_init(); key_init(); security_init(); vfs_caches_init(num_physpages); radix_tree_init(); signals_init(); /* rootfs populating might need page-writeback */ page_writeback_init(); #ifdef CONFIG_PROC_FS proc_root_init(); #endif cpuset_init(); check_bugs(); acpi_early_init(); /* before LAPIC and SMP init */ /* Do the rest non-__init'ed, we're now alive */ rest_init(); } static int __initdata initcall_debug; static int __init initcall_debug_setup(char *str) { initcall_debug = 1; return 1; } __setup("initcall_debug", initcall_debug_setup); struct task_struct *child_reaper = &init_task; extern initcall_t __initcall_start[], __initcall_end[]; static void __init do_initcalls(void) { initcall_t *call; int count = preempt_count(); for (call = __initcall_start; call < __initcall_end; call++) { char *msg; if (initcall_debug) { printk(KERN_DEBUG "Calling initcall 0x%p", *call); print_fn_descriptor_symbol(": %s()", (unsigned long) *call); printk("\n"); } (*call)(); msg = NULL; if (preempt_count() != count) { msg = "preemption imbalance"; preempt_count() = count; } if (irqs_disabled()) { msg = "disabled interrupts"; local_irq_enable(); } if (msg) { printk(KERN_WARNING "error in initcall at 0x%p: " "returned with %s\n", *call, msg); } } /* Make sure there is no pending stuff from the initcall sequence */ flush_scheduled_work(); } /* * Ok, the machine is now initialized. None of the devices * have been touched yet, but the CPU subsystem is up and * running, and memory and process management works. * * Now we can finally start doing some real work.. */ static void __init do_basic_setup(void) { /* drivers will send hotplug events */ init_workqueues(); usermodehelper_init(); driver_init(); #ifdef CONFIG_SYSCTL sysctl_init(); #endif /* Networking initialization needs a process context */ sock_init(); do_initcalls(); } static void do_pre_smp_initcalls(void) { extern int spawn_ksoftirqd(void); #ifdef CONFIG_SMP extern int migration_init(void); migration_init(); #endif spawn_ksoftirqd(); } static void run_init_process(char *init_filename) { argv_init[0] = init_filename; execve(init_filename, argv_init, envp_init); } static inline void fixup_cpu_present_map(void) { #ifdef CONFIG_SMP int i; /* * If arch is not hotplug ready and did not populate * cpu_present_map, just make cpu_present_map same as cpu_possible_map * for other cpu bringup code to function as normal. e.g smp_init() etc. */ if (cpus_empty(cpu_present_map)) { for_each_cpu(i) { cpu_set(i, cpu_present_map); } } #endif } static int init(void * unused) { lock_kernel(); /* * init can run on any cpu. */ set_cpus_allowed(current, CPU_MASK_ALL); /* * Tell the world that we're going to be the grim * reaper of innocent orphaned children. * * We don't want people to have to make incorrect * assumptions about where in the task array this * can be found. */ child_reaper = current; /* Sets up cpus_possible() */ smp_prepare_cpus(max_cpus); do_pre_smp_initcalls(); fixup_cpu_present_map(); smp_init(); sched_init_smp(); cpuset_init_smp(); /* * Do this before initcalls, because some drivers want to access * firmware files. */ populate_rootfs(); do_basic_setup(); /* * check if there is an early userspace init. If yes, let it do all * the work */ if (sys_access((const char __user *) "/init", 0) == 0) execute_command = "/init"; else prepare_namespace(); /* * Ok, we have completed the initial bootup, and * we're essentially up and running. Get rid of the * initmem segments and start the user-mode stuff.. */ free_initmem(); unlock_kernel(); system_state = SYSTEM_RUNNING; numa_default_policy(); if (sys_open((const char __user *) "/dev/console", O_RDWR, 0) < 0) printk(KERN_WARNING "Warning: unable to open an initial console.\n"); (void) sys_dup(0); (void) sys_dup(0); /* * We try each of these until one succeeds. * * The Bourne shell can be used instead of init if we are * trying to recover a really broken machine. */ if (execute_command) run_init_process(execute_command); run_init_process("/sbin/init"); run_init_process("/etc/init"); run_init_process("/bin/init"); run_init_process("/bin/sh"); panic("No init found. Try passing init= option to kernel."); }
waterice/Test-Git
init/main.c
C
gpl-2.0
16,829
# =================================================================== # # Copyright (c) 2014, Legrandin <helderijs@gmail.com> # 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 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 HOLDER 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. # =================================================================== import os import re import unittest from binascii import hexlify from Cryptodome.Util.py3compat import b, tobytes, bchr, unhexlify from Cryptodome.Util.strxor import strxor_c from Cryptodome.Util.number import long_to_bytes from Cryptodome.SelfTest.st_common import list_test_cases from Cryptodome.Cipher import AES from Cryptodome.Hash import SHAKE128 def get_tag_random(tag, length): return SHAKE128.new(data=tobytes(tag)).read(length) class OcbTests(unittest.TestCase): key_128 = get_tag_random("key_128", 16) nonce_96 = get_tag_random("nonce_128", 12) data_128 = get_tag_random("data_128", 16) def test_loopback_128(self): cipher = AES.new(self.key_128, AES.MODE_OCB, nonce=self.nonce_96) pt = get_tag_random("plaintext", 16 * 100) ct, mac = cipher.encrypt_and_digest(pt) cipher = AES.new(self.key_128, AES.MODE_OCB, nonce=self.nonce_96) pt2 = cipher.decrypt_and_verify(ct, mac) self.assertEqual(pt, pt2) def test_nonce(self): # Nonce is optional AES.new(self.key_128, AES.MODE_OCB) cipher = AES.new(self.key_128, AES.MODE_OCB, self.nonce_96) ct = cipher.encrypt(self.data_128) cipher = AES.new(self.key_128, AES.MODE_OCB, nonce=self.nonce_96) self.assertEqual(ct, cipher.encrypt(self.data_128)) def test_nonce_must_be_bytes(self): self.assertRaises(TypeError, AES.new, self.key_128, AES.MODE_OCB, nonce='test12345678') def test_nonce_length(self): # nonce cannot be empty self.assertRaises(ValueError, AES.new, self.key_128, AES.MODE_OCB, nonce=b("")) # nonce can be up to 15 bytes long for length in range(1, 16): AES.new(self.key_128, AES.MODE_OCB, nonce=self.data_128[:length]) self.assertRaises(ValueError, AES.new, self.key_128, AES.MODE_OCB, nonce=self.data_128) def test_block_size_128(self): cipher = AES.new(self.key_128, AES.MODE_OCB, nonce=self.nonce_96) self.assertEqual(cipher.block_size, AES.block_size) # By default, a 15 bytes long nonce is randomly generated nonce1 = AES.new(self.key_128, AES.MODE_OCB).nonce nonce2 = AES.new(self.key_128, AES.MODE_OCB).nonce self.assertEqual(len(nonce1), 15) self.assertNotEqual(nonce1, nonce2) def test_nonce_attribute(self): cipher = AES.new(self.key_128, AES.MODE_OCB, nonce=self.nonce_96) self.assertEqual(cipher.nonce, self.nonce_96) # By default, a 15 bytes long nonce is randomly generated nonce1 = AES.new(self.key_128, AES.MODE_OCB).nonce nonce2 = AES.new(self.key_128, AES.MODE_OCB).nonce self.assertEqual(len(nonce1), 15) self.assertNotEqual(nonce1, nonce2) def test_unknown_parameters(self): self.assertRaises(TypeError, AES.new, self.key_128, AES.MODE_OCB, self.nonce_96, 7) self.assertRaises(TypeError, AES.new, self.key_128, AES.MODE_OCB, nonce=self.nonce_96, unknown=7) # But some are only known by the base cipher # (e.g. use_aesni consumed by the AES module) AES.new(self.key_128, AES.MODE_OCB, nonce=self.nonce_96, use_aesni=False) def test_null_encryption_decryption(self): for func in "encrypt", "decrypt": cipher = AES.new(self.key_128, AES.MODE_OCB, nonce=self.nonce_96) result = getattr(cipher, func)(b("")) self.assertEqual(result, b("")) def test_either_encrypt_or_decrypt(self): cipher = AES.new(self.key_128, AES.MODE_OCB, nonce=self.nonce_96) cipher.encrypt(b("xyz")) self.assertRaises(TypeError, cipher.decrypt, b("xyz")) cipher = AES.new(self.key_128, AES.MODE_OCB, nonce=self.nonce_96) cipher.decrypt(b("xyz")) self.assertRaises(TypeError, cipher.encrypt, b("xyz")) def test_data_must_be_bytes(self): cipher = AES.new(self.key_128, AES.MODE_OCB, nonce=self.nonce_96) self.assertRaises(TypeError, cipher.encrypt, 'test1234567890-*') cipher = AES.new(self.key_128, AES.MODE_OCB, nonce=self.nonce_96) self.assertRaises(TypeError, cipher.decrypt, 'test1234567890-*') def test_mac_len(self): # Invalid MAC length self.assertRaises(ValueError, AES.new, self.key_128, AES.MODE_OCB, nonce=self.nonce_96, mac_len=7) self.assertRaises(ValueError, AES.new, self.key_128, AES.MODE_OCB, nonce=self.nonce_96, mac_len=16+1) # Valid MAC length for mac_len in range(8, 16 + 1): cipher = AES.new(self.key_128, AES.MODE_OCB, nonce=self.nonce_96, mac_len=mac_len) _, mac = cipher.encrypt_and_digest(self.data_128) self.assertEqual(len(mac), mac_len) # Default MAC length cipher = AES.new(self.key_128, AES.MODE_OCB, nonce=self.nonce_96) _, mac = cipher.encrypt_and_digest(self.data_128) self.assertEqual(len(mac), 16) def test_invalid_mac(self): from Cryptodome.Util.strxor import strxor_c cipher = AES.new(self.key_128, AES.MODE_OCB, nonce=self.nonce_96) ct, mac = cipher.encrypt_and_digest(self.data_128) invalid_mac = strxor_c(mac, 0x01) cipher = AES.new(self.key_128, AES.MODE_OCB, nonce=self.nonce_96) self.assertRaises(ValueError, cipher.decrypt_and_verify, ct, invalid_mac) def test_hex_mac(self): cipher = AES.new(self.key_128, AES.MODE_OCB, nonce=self.nonce_96) mac_hex = cipher.hexdigest() self.assertEqual(cipher.digest(), unhexlify(mac_hex)) cipher = AES.new(self.key_128, AES.MODE_OCB, nonce=self.nonce_96) cipher.hexverify(mac_hex) def test_message_chunks(self): # Validate that both associated data and plaintext/ciphertext # can be broken up in chunks of arbitrary length auth_data = get_tag_random("authenticated data", 127) plaintext = get_tag_random("plaintext", 127) cipher = AES.new(self.key_128, AES.MODE_OCB, nonce=self.nonce_96) cipher.update(auth_data) ciphertext, ref_mac = cipher.encrypt_and_digest(plaintext) def break_up(data, chunk_length): return [data[i:i+chunk_length] for i in range(0, len(data), chunk_length)] # Encryption for chunk_length in 1, 2, 3, 7, 10, 13, 16, 40, 80, 128: cipher = AES.new(self.key_128, AES.MODE_OCB, nonce=self.nonce_96) for chunk in break_up(auth_data, chunk_length): cipher.update(chunk) pt2 = b("") for chunk in break_up(ciphertext, chunk_length): pt2 += cipher.decrypt(chunk) pt2 += cipher.decrypt() self.assertEqual(plaintext, pt2) cipher.verify(ref_mac) # Decryption for chunk_length in 1, 2, 3, 7, 10, 13, 16, 40, 80, 128: cipher = AES.new(self.key_128, AES.MODE_OCB, nonce=self.nonce_96) for chunk in break_up(auth_data, chunk_length): cipher.update(chunk) ct2 = b("") for chunk in break_up(plaintext, chunk_length): ct2 += cipher.encrypt(chunk) ct2 += cipher.encrypt() self.assertEqual(ciphertext, ct2) self.assertEqual(cipher.digest(), ref_mac) class OcbFSMTests(unittest.TestCase): key_128 = get_tag_random("key_128", 16) nonce_96 = get_tag_random("nonce_128", 12) data_128 = get_tag_random("data_128", 16) def test_valid_init_encrypt_decrypt_digest_verify(self): # No authenticated data, fixed plaintext # Verify path INIT->ENCRYPT->ENCRYPT(NONE)->DIGEST cipher = AES.new(self.key_128, AES.MODE_OCB, nonce=self.nonce_96) ct = cipher.encrypt(self.data_128) ct += cipher.encrypt() mac = cipher.digest() # Verify path INIT->DECRYPT->DECRYPT(NONCE)->VERIFY cipher = AES.new(self.key_128, AES.MODE_OCB, nonce=self.nonce_96) cipher.decrypt(ct) cipher.decrypt() cipher.verify(mac) def test_invalid_init_encrypt_decrypt_digest_verify(self): # No authenticated data, fixed plaintext # Verify path INIT->ENCRYPT->DIGEST cipher = AES.new(self.key_128, AES.MODE_OCB, nonce=self.nonce_96) ct = cipher.encrypt(self.data_128) self.assertRaises(TypeError, cipher.digest) # Verify path INIT->DECRYPT->VERIFY cipher = AES.new(self.key_128, AES.MODE_OCB, nonce=self.nonce_96) cipher.decrypt(ct) self.assertRaises(TypeError, cipher.verify) def test_valid_init_update_digest_verify(self): # No plaintext, fixed authenticated data # Verify path INIT->UPDATE->DIGEST cipher = AES.new(self.key_128, AES.MODE_OCB, nonce=self.nonce_96) cipher.update(self.data_128) mac = cipher.digest() # Verify path INIT->UPDATE->VERIFY cipher = AES.new(self.key_128, AES.MODE_OCB, nonce=self.nonce_96) cipher.update(self.data_128) cipher.verify(mac) def test_valid_full_path(self): # Fixed authenticated data, fixed plaintext # Verify path INIT->UPDATE->ENCRYPT->ENCRYPT(NONE)->DIGEST cipher = AES.new(self.key_128, AES.MODE_OCB, nonce=self.nonce_96) cipher.update(self.data_128) ct = cipher.encrypt(self.data_128) ct += cipher.encrypt() mac = cipher.digest() # Verify path INIT->UPDATE->DECRYPT->DECRYPT(NONE)->VERIFY cipher = AES.new(self.key_128, AES.MODE_OCB, nonce=self.nonce_96) cipher.update(self.data_128) cipher.decrypt(ct) cipher.decrypt() cipher.verify(mac) def test_invalid_encrypt_after_final(self): cipher = AES.new(self.key_128, AES.MODE_OCB, nonce=self.nonce_96) cipher.update(self.data_128) cipher.encrypt(self.data_128) cipher.encrypt() self.assertRaises(TypeError, cipher.encrypt, self.data_128) def test_invalid_decrypt_after_final(self): cipher = AES.new(self.key_128, AES.MODE_OCB, nonce=self.nonce_96) cipher.update(self.data_128) cipher.decrypt(self.data_128) cipher.decrypt() self.assertRaises(TypeError, cipher.decrypt, self.data_128) def test_valid_init_digest(self): # Verify path INIT->DIGEST cipher = AES.new(self.key_128, AES.MODE_OCB, nonce=self.nonce_96) cipher.digest() def test_valid_init_verify(self): # Verify path INIT->VERIFY cipher = AES.new(self.key_128, AES.MODE_OCB, nonce=self.nonce_96) mac = cipher.digest() cipher = AES.new(self.key_128, AES.MODE_OCB, nonce=self.nonce_96) cipher.verify(mac) def test_valid_multiple_encrypt_or_decrypt(self): for method_name in "encrypt", "decrypt": for auth_data in (None, b("333"), self.data_128, self.data_128 + b("3")): if auth_data is None: assoc_len = None else: assoc_len = len(auth_data) cipher = AES.new(self.key_128, AES.MODE_OCB, nonce=self.nonce_96) if auth_data is not None: cipher.update(auth_data) method = getattr(cipher, method_name) method(self.data_128) method(self.data_128) method(self.data_128) method(self.data_128) method() def test_valid_multiple_digest_or_verify(self): # Multiple calls to digest cipher = AES.new(self.key_128, AES.MODE_OCB, nonce=self.nonce_96) cipher.update(self.data_128) first_mac = cipher.digest() for x in range(4): self.assertEqual(first_mac, cipher.digest()) # Multiple calls to verify cipher = AES.new(self.key_128, AES.MODE_OCB, nonce=self.nonce_96) cipher.update(self.data_128) for x in range(5): cipher.verify(first_mac) def test_valid_encrypt_and_digest_decrypt_and_verify(self): # encrypt_and_digest cipher = AES.new(self.key_128, AES.MODE_OCB, nonce=self.nonce_96) cipher.update(self.data_128) ct, mac = cipher.encrypt_and_digest(self.data_128) # decrypt_and_verify cipher = AES.new(self.key_128, AES.MODE_OCB, nonce=self.nonce_96) cipher.update(self.data_128) pt = cipher.decrypt_and_verify(ct, mac) self.assertEqual(self.data_128, pt) def test_invalid_mixing_encrypt_decrypt(self): # Once per method, with or without assoc. data for method1_name, method2_name in (("encrypt", "decrypt"), ("decrypt", "encrypt")): for assoc_data_present in (True, False): cipher = AES.new(self.key_128, AES.MODE_OCB, nonce=self.nonce_96) if assoc_data_present: cipher.update(self.data_128) getattr(cipher, method1_name)(self.data_128) self.assertRaises(TypeError, getattr(cipher, method2_name), self.data_128) def test_invalid_encrypt_or_update_after_digest(self): for method_name in "encrypt", "update": cipher = AES.new(self.key_128, AES.MODE_OCB, nonce=self.nonce_96) cipher.encrypt(self.data_128) cipher.encrypt() cipher.digest() self.assertRaises(TypeError, getattr(cipher, method_name), self.data_128) cipher = AES.new(self.key_128, AES.MODE_OCB, nonce=self.nonce_96) cipher.encrypt_and_digest(self.data_128) def test_invalid_decrypt_or_update_after_verify(self): cipher = AES.new(self.key_128, AES.MODE_OCB, nonce=self.nonce_96) ct = cipher.encrypt(self.data_128) ct += cipher.encrypt() mac = cipher.digest() for method_name in "decrypt", "update": cipher = AES.new(self.key_128, AES.MODE_OCB, nonce=self.nonce_96) cipher.decrypt(ct) cipher.decrypt() cipher.verify(mac) self.assertRaises(TypeError, getattr(cipher, method_name), self.data_128) cipher = AES.new(self.key_128, AES.MODE_OCB, nonce=self.nonce_96) cipher.decrypt_and_verify(ct, mac) self.assertRaises(TypeError, getattr(cipher, method_name), self.data_128) class OcbRfc7253Test(unittest.TestCase): # Tuple with # - nonce # - authenticated data # - plaintext # - ciphertext and 16 byte MAC tag tv1_key = "000102030405060708090A0B0C0D0E0F" tv1 = ( ( "BBAA99887766554433221100", "", "", "785407BFFFC8AD9EDCC5520AC9111EE6" ), ( "BBAA99887766554433221101", "0001020304050607", "0001020304050607", "6820B3657B6F615A5725BDA0D3B4EB3A257C9AF1F8F03009" ), ( "BBAA99887766554433221102", "0001020304050607", "", "81017F8203F081277152FADE694A0A00" ), ( "BBAA99887766554433221103", "", "0001020304050607", "45DD69F8F5AAE72414054CD1F35D82760B2CD00D2F99BFA9" ), ( "BBAA99887766554433221104", "000102030405060708090A0B0C0D0E0F", "000102030405060708090A0B0C0D0E0F", "571D535B60B277188BE5147170A9A22C3AD7A4FF3835B8C5" "701C1CCEC8FC3358" ), ( "BBAA99887766554433221105", "000102030405060708090A0B0C0D0E0F", "", "8CF761B6902EF764462AD86498CA6B97" ), ( "BBAA99887766554433221106", "", "000102030405060708090A0B0C0D0E0F", "5CE88EC2E0692706A915C00AEB8B2396F40E1C743F52436B" "DF06D8FA1ECA343D" ), ( "BBAA99887766554433221107", "000102030405060708090A0B0C0D0E0F1011121314151617", "000102030405060708090A0B0C0D0E0F1011121314151617", "1CA2207308C87C010756104D8840CE1952F09673A448A122" "C92C62241051F57356D7F3C90BB0E07F" ), ( "BBAA99887766554433221108", "000102030405060708090A0B0C0D0E0F1011121314151617", "", "6DC225A071FC1B9F7C69F93B0F1E10DE" ), ( "BBAA99887766554433221109", "", "000102030405060708090A0B0C0D0E0F1011121314151617", "221BD0DE7FA6FE993ECCD769460A0AF2D6CDED0C395B1C3C" "E725F32494B9F914D85C0B1EB38357FF" ), ( "BBAA9988776655443322110A", "000102030405060708090A0B0C0D0E0F1011121314151617" "18191A1B1C1D1E1F", "000102030405060708090A0B0C0D0E0F1011121314151617" "18191A1B1C1D1E1F", "BD6F6C496201C69296C11EFD138A467ABD3C707924B964DE" "AFFC40319AF5A48540FBBA186C5553C68AD9F592A79A4240" ), ( "BBAA9988776655443322110B", "000102030405060708090A0B0C0D0E0F1011121314151617" "18191A1B1C1D1E1F", "", "FE80690BEE8A485D11F32965BC9D2A32" ), ( "BBAA9988776655443322110C", "", "000102030405060708090A0B0C0D0E0F1011121314151617" "18191A1B1C1D1E1F", "2942BFC773BDA23CABC6ACFD9BFD5835BD300F0973792EF4" "6040C53F1432BCDFB5E1DDE3BC18A5F840B52E653444D5DF" ), ( "BBAA9988776655443322110D", "000102030405060708090A0B0C0D0E0F1011121314151617" "18191A1B1C1D1E1F2021222324252627", "000102030405060708090A0B0C0D0E0F1011121314151617" "18191A1B1C1D1E1F2021222324252627", "D5CA91748410C1751FF8A2F618255B68A0A12E093FF45460" "6E59F9C1D0DDC54B65E8628E568BAD7AED07BA06A4A69483" "A7035490C5769E60" ), ( "BBAA9988776655443322110E", "000102030405060708090A0B0C0D0E0F1011121314151617" "18191A1B1C1D1E1F2021222324252627", "", "C5CD9D1850C141E358649994EE701B68" ), ( "BBAA9988776655443322110F", "", "000102030405060708090A0B0C0D0E0F1011121314151617" "18191A1B1C1D1E1F2021222324252627", "4412923493C57D5DE0D700F753CCE0D1D2D95060122E9F15" "A5DDBFC5787E50B5CC55EE507BCB084E479AD363AC366B95" "A98CA5F3000B1479" ) ) # Tuple with # - key # - nonce # - authenticated data # - plaintext # - ciphertext and 12 byte MAC tag tv2 = ( "0F0E0D0C0B0A09080706050403020100", "BBAA9988776655443322110D", "000102030405060708090A0B0C0D0E0F1011121314151617" "18191A1B1C1D1E1F2021222324252627", "000102030405060708090A0B0C0D0E0F1011121314151617" "18191A1B1C1D1E1F2021222324252627", "1792A4E31E0755FB03E31B22116E6C2DDF9EFD6E33D536F1" "A0124B0A55BAE884ED93481529C76B6AD0C515F4D1CDD4FD" "AC4F02AA" ) # Tuple with # - key length # - MAC tag length # - Expected output tv3 = ( (128, 128, "67E944D23256C5E0B6C61FA22FDF1EA2"), (192, 128, "F673F2C3E7174AAE7BAE986CA9F29E17"), (256, 128, "D90EB8E9C977C88B79DD793D7FFA161C"), (128, 96, "77A3D8E73589158D25D01209"), (192, 96, "05D56EAD2752C86BE6932C5E"), (256, 96, "5458359AC23B0CBA9E6330DD"), (128, 64, "192C9B7BD90BA06A"), (192, 64, "0066BC6E0EF34E24"), (256, 64, "7D4EA5D445501CBE"), ) def test1(self): key = unhexlify(b(self.tv1_key)) for tv in self.tv1: nonce, aad, pt, ct = [ unhexlify(b(x)) for x in tv ] ct, mac_tag = ct[:-16], ct[-16:] cipher = AES.new(key, AES.MODE_OCB, nonce=nonce) cipher.update(aad) ct2 = cipher.encrypt(pt) + cipher.encrypt() self.assertEqual(ct, ct2) self.assertEqual(mac_tag, cipher.digest()) cipher = AES.new(key, AES.MODE_OCB, nonce=nonce) cipher.update(aad) pt2 = cipher.decrypt(ct) + cipher.decrypt() self.assertEqual(pt, pt2) cipher.verify(mac_tag) def test2(self): key, nonce, aad, pt, ct = [ unhexlify(b(x)) for x in self.tv2 ] ct, mac_tag = ct[:-12], ct[-12:] cipher = AES.new(key, AES.MODE_OCB, nonce=nonce, mac_len=12) cipher.update(aad) ct2 = cipher.encrypt(pt) + cipher.encrypt() self.assertEqual(ct, ct2) self.assertEqual(mac_tag, cipher.digest()) cipher = AES.new(key, AES.MODE_OCB, nonce=nonce, mac_len=12) cipher.update(aad) pt2 = cipher.decrypt(ct) + cipher.decrypt() self.assertEqual(pt, pt2) cipher.verify(mac_tag) def test3(self): for keylen, taglen, result in self.tv3: key = bchr(0) * (keylen // 8 - 1) + bchr(taglen) C = b("") for i in range(128): S = bchr(0) * i N = long_to_bytes(3 * i + 1, 12) cipher = AES.new(key, AES.MODE_OCB, nonce=N, mac_len=taglen // 8) cipher.update(S) C += cipher.encrypt(S) + cipher.encrypt() + cipher.digest() N = long_to_bytes(3 * i + 2, 12) cipher = AES.new(key, AES.MODE_OCB, nonce=N, mac_len=taglen // 8) C += cipher.encrypt(S) + cipher.encrypt() + cipher.digest() N = long_to_bytes(3 * i + 3, 12) cipher = AES.new(key, AES.MODE_OCB, nonce=N, mac_len=taglen // 8) cipher.update(S) C += cipher.encrypt() + cipher.digest() N = long_to_bytes(385, 12) cipher = AES.new(key, AES.MODE_OCB, nonce=N, mac_len=taglen // 8) cipher.update(C) result2 = cipher.encrypt() + cipher.digest() self.assertEqual(unhexlify(b(result)), result2) def get_tests(config={}): tests = [] tests += list_test_cases(OcbTests) tests += list_test_cases(OcbFSMTests) tests += list_test_cases(OcbRfc7253Test) return tests if __name__ == '__main__': import unittest suite = lambda: unittest.TestSuite(get_tests()) unittest.main(defaultTest='suite')
Haynie-Research-and-Development/jarvis
deps/lib/python3.4/site-packages/Cryptodome/SelfTest/Cipher/test_OCB.py
Python
gpl-2.0
25,029
/* * snfc_uart_collsion_control.c * */ /* * Include header files */ #include "snfc_uart_collision_control.h" /* * Define */ /* * Internal definitions */ /* * Internal variables */ static int isopen_snfcuartcontrol = 0; // 0 : No open 1 : Opend _e_snfc_uart_status g_uartcollisoncontrol = UART_STATUS_KOTO_OFF; static int gpio_init = 0; static int forced_hsel_up_flag=0; static int forced_pon_up_flag=0; static int koto_abnormal=0; static int autopoll_status = 0; /* * Function definitions */ /* * Description : open uart collision control * Input : * Output : */ void __snfc_uart_control_set_uart_status(_e_snfc_uart_status uart_status) { _e_snfc_uart_status current_status = g_uartcollisoncontrol; if(current_status == uart_status) return; g_uartcollisoncontrol = uart_status; SNFC_DEBUG_MSG("[snfc_uart_control] uart status %d -> %d\n", current_status, g_uartcollisoncontrol ); return; } EXPORT_SYMBOL(__snfc_uart_control_set_uart_status); /* * Description : open uart collision control * Input : * Output : */ _e_snfc_uart_status __snfc_uart_control_get_uart_status(void) { return g_uartcollisoncontrol; } EXPORT_SYMBOL(__snfc_uart_control_get_uart_status); /* * Description : open uart collision control * Input : * Output : */ static int snfc_uart_control_open(struct inode *inode, struct file *fp) { int rc = 0; if(isopen_snfcuartcontrol == 1) { #ifdef FEATURE_DEBUG_LOW SNFC_DEBUG_MSG("[snfc_uart_control] snfc_uart_control_open - already open \n"); #endif return 0; } #ifdef FEATURE_DEBUG_LOW SNFC_DEBUG_MSG("[snfc_uart_control] snfc_uart_control_open - start \n"); #endif isopen_snfcuartcontrol = 1; if(gpio_init ==0) { rc = gpio_request(GPIO_SNFC_HSEL, "snfc_hsel"); if (rc) { SNFC_DEBUG_MSG("[snfc_intu_poll] gpio_request snfc_intu fail\n"); } //snfc_gpio_open(GPIO_SNFC_HSEL,GPIO_DIRECTION_OUT,GPIO_LOW_VALUE); //snfc_gpio_open(GPIO_SNFC_PON,GPIO_DIRECTION_OUT,GPIO_LOW_VALUE); SNFC_DEBUG_MSG("[snfc_uart_control] GPIO_SNFC_PON = %d, GPIO_SNFC_HSEL = %d\n", snfc_gpio_read(GPIO_SNFC_PON),snfc_gpio_read(GPIO_SNFC_HSEL) ); gpio_init = 1; } #ifdef FEATURE_DEBUG_LOW SNFC_DEBUG_MSG("[snfc_uart_control] snfc_uart_control_open - end \n"); #endif return rc; } /* * Description : * Input : * Output : */ static int snfc_uart_control_release (struct inode *inode, struct file *fp) { if(isopen_snfcuartcontrol == 0) { #ifdef FEATURE_DEBUG_LOW SNFC_DEBUG_MSG("[snfc_uart_control] snfc_uart_control_release - not open \n"); #endif return -1; } #ifdef FEATURE_DEBUG_LOW SNFC_DEBUG_MSG("[snfc_uart_control] snfc_uart_control_release - start \n"); #endif isopen_snfcuartcontrol = 0; #ifdef FEATURE_DEBUG_LOW SNFC_DEBUG_MSG("[snfc_uart_control] snfc_uart_control_release - end \n"); #endif return 0; } /* * Description : * Input : * Output : */ static long snfc_uart_control_ioctl(struct file *flip, unsigned int cmd, unsigned long arg) { //ioctl_buf *k_buf; //int i,err; int size; _e_snfc_uart_status current_status; int autopoll_wait_cnt; int break_cnt; size = _IOC_SIZE(cmd); SNFC_DEBUG_MSG("[snfc_uart_control] snfc_uart_control_ioctl - start,cmd =%d\n", cmd); current_status = __snfc_uart_control_get_uart_status(); if( current_status == UART_STATUS_FOR_FELICA ) { SNFC_DEBUG_MSG("[snfc_uart_control] snfc_uart_control_ioctl, UART is used to FeliCa\n"); return -1; } __snfc_uart_control_set_uart_status(UART_STATUS_FOR_NFC); switch(cmd) { case IOCTL_SNFC_START_SETTING : SNFC_DEBUG_MSG("[snfc_uart_control] IOCTL_SNFC_START_SETTING - start\n"); if(forced_pon_up_flag == 1 || forced_hsel_up_flag == 1) break; snfc_gpio_write(GPIO_SNFC_HSEL, GPIO_HIGH_VALUE); snfc_gpio_write(GPIO_SNFC_PON, GPIO_HIGH_VALUE); mdelay(10); SNFC_DEBUG_MSG("[snfc_uart_control] IOCTL_SNFC_START_SETTING - end\n"); break; case IOCTL_SNFC_START_AUTOPOLL : SNFC_DEBUG_MSG("[snfc_uart_control] IOCTL_SNFC_START_AUTOPOLL - start\n"); autopoll_wait_cnt = 0; break_cnt = 0; if(forced_pon_up_flag == 1 || forced_hsel_up_flag == 1) break; snfc_gpio_write(GPIO_SNFC_HSEL, GPIO_HIGH_VALUE); snfc_gpio_write(GPIO_SNFC_PON, GPIO_HIGH_VALUE); mdelay(10); autopoll_status = 1; #if 0 while(GPIO_LOW_VALUE == snfc_gpio_read(GPIO_SNFC_RFS)) { autopoll_wait_cnt++; if(autopoll_wait_cnt/50) { break_cnt++; SNFC_DEBUG_MSG("[snfc_uart_control] IOCTL_SNFC_START_AUTOPOLL - rfs high\n"); autopoll_wait_cnt = 0; if(break_cnt >=10) break; } usleep(100); } #endif SNFC_DEBUG_MSG("[snfc_uart_control] IOCTL_SNFC_START_AUTOPOLL - end\n"); break; case IOCTL_SNFC_START_RW : SNFC_DEBUG_MSG("[snfc_uart_control] IOCTL_SNFC_START_RW - start\n"); if(forced_pon_up_flag == 1 || forced_hsel_up_flag == 1) break; snfc_gpio_write(GPIO_SNFC_HSEL, GPIO_HIGH_VALUE); snfc_gpio_write(GPIO_SNFC_PON, GPIO_HIGH_VALUE); mdelay(20); SNFC_DEBUG_MSG("[snfc_uart_control] IOCTL_SNFC_START_RW - end\n"); break; case IOCTL_SNFC_START_TARGET : SNFC_DEBUG_MSG("[snfc_uart_control] IOCTL_SNFC_START_TARGET - start\n"); if(forced_pon_up_flag == 1 || forced_hsel_up_flag == 1) break; snfc_gpio_write(GPIO_SNFC_HSEL, GPIO_HIGH_VALUE); snfc_gpio_write(GPIO_SNFC_PON, GPIO_HIGH_VALUE); mdelay(20); SNFC_DEBUG_MSG("[snfc_uart_control] IOCTL_SNFC_START_TARGET - end\n"); break; case IOCTL_SNFC_START_INTU : SNFC_DEBUG_MSG("[snfc_uart_control] IOCTL_SNFC_START_INTU - start\n"); if(forced_pon_up_flag == 1 || forced_hsel_up_flag == 1) break; snfc_gpio_write(GPIO_SNFC_HSEL, GPIO_HIGH_VALUE); snfc_gpio_write(GPIO_SNFC_PON, GPIO_HIGH_VALUE); mdelay(20); SNFC_DEBUG_MSG("[snfc_uart_control] IOCTL_SNFC_START_INTU - end\n"); break; case IOCTL_SNFC_START_WAITSIMBOOT: SNFC_DEBUG_MSG("[snfc_uart_control] IOCTL_SNFC_START_WAITSIMBOOT - start\n"); if(forced_pon_up_flag == 1 || forced_hsel_up_flag == 1) break; snfc_gpio_write(GPIO_SNFC_HSEL, GPIO_HIGH_VALUE); snfc_gpio_write(GPIO_SNFC_PON, GPIO_HIGH_VALUE); mdelay(10); SNFC_DEBUG_MSG("[snfc_uart_control] IOCTL_SNFC_START_WAITSIMBOOT - end\n"); break; case IOCTL_SNFC_HSEL_UP: forced_hsel_up_flag = 1; SNFC_DEBUG_MSG("[snfc_uart_control] ioctl_snfc_hsel_up\n"); snfc_gpio_write(GPIO_SNFC_HSEL, GPIO_HIGH_VALUE); break; case IOCTL_SNFC_HSEL_DOWN: SNFC_DEBUG_MSG("[snfc_uart_control] ioctl_snfc_hsel_down\n"); snfc_gpio_write(GPIO_SNFC_HSEL, GPIO_LOW_VALUE); forced_hsel_up_flag = 0; if(forced_pon_up_flag == 0 && forced_hsel_up_flag == 0) __snfc_uart_control_set_uart_status(UART_STATUS_READY); break; case IOCTL_SNFC_PON_UP: forced_pon_up_flag = 1; SNFC_DEBUG_MSG("[snfc_uart_control] ioctl_snfc_pon_up\n"); snfc_gpio_write(GPIO_SNFC_PON, GPIO_HIGH_VALUE); mdelay(10); break; case IOCTL_SNFC_PON_DOWN: SNFC_DEBUG_MSG("[snfc_uart_control] ioctl_snfc_pon_down\n"); forced_pon_up_flag = 0; snfc_gpio_write(GPIO_SNFC_PON, GPIO_LOW_VALUE); if(forced_pon_up_flag == 0 && forced_hsel_up_flag == 0) __snfc_uart_control_set_uart_status(UART_STATUS_READY); break; case IOCTL_SNFC_END : SNFC_DEBUG_MSG("[snfc_uart_control] IOCTL_SNFC_END - start\n"); if(forced_pon_up_flag == 1 || forced_hsel_up_flag == 1) { SNFC_DEBUG_MSG("[snfc_uart_control] pon & hsel forced up!! pon and/or sel will keep high\n"); break; } if(current_status != UART_STATUS_FOR_NFC) { SNFC_DEBUG_MSG("[snfc_uart_control] IOCTL_SNFC_END, UART is not used to NFC\n"); //return -2; } snfc_gpio_write(GPIO_SNFC_HSEL, GPIO_LOW_VALUE); snfc_gpio_write(GPIO_SNFC_PON, GPIO_LOW_VALUE); __snfc_uart_control_set_uart_status(UART_STATUS_READY); autopoll_status = 0; SNFC_DEBUG_MSG("[snfc_uart_control] IOCTL_SNFC_END - end (hsel low)(pon low)\n"); break; } SNFC_DEBUG_MSG("[snfc_uart_control] snfc_uart_control_ioctl - end\n"); return 0; } /* * Description : * Input : * Output : */ static int snfc_uart_control_read(struct file *pf, char *pbuf, size_t size, loff_t *pos) { int current_status; int rc; #ifdef FEATURE_DEBUG_LOW SNFC_DEBUG_MSG("[snfc_uart_control] snfc_uart_control_read - start \n"); #endif current_status = koto_abnormal; rc = copy_to_user((void*)pbuf, (void*)&current_status, size); if(rc) { SNFC_DEBUG_MSG("[snfc_uart_control] ERROR - copy_to_user \n"); return rc; } #ifdef FEATURE_DEBUG_LOW SNFC_DEBUG_MSG("[snfc_uart_control] snfc_uart_control_read :koto_abnormal=%d - end \n",koto_abnormal); #endif koto_abnormal = 0; return size; } /* * Description : * Input : * Output : */ static int snfc_uart_control_write(struct file *pf, const char *pbuf, size_t size, loff_t *pos) { int new_status; int rc; #ifdef FEATURE_DEBUG_LOW SNFC_DEBUG_MSG("[snfc_uart_control] snfc_uart_control_write - start \n"); #endif rc = copy_from_user(&new_status, (void*)pbuf, size); if(rc) { SNFC_DEBUG_MSG("[snfc_uart_control] ERROR - copy_to_user \n"); return rc; } if(autopoll_status == 1) koto_abnormal = new_status; #ifdef FEATURE_DEBUG_LOW SNFC_DEBUG_MSG("[snfc_uart_control] snfc_uart_control_write - end:koto_abnormal=%d \n",koto_abnormal); #endif return size; } static struct file_operations snfc_uart_control_fops = { .owner = THIS_MODULE, .open = snfc_uart_control_open, .read = snfc_uart_control_read, .write = snfc_uart_control_write, .unlocked_ioctl = snfc_uart_control_ioctl, .release = snfc_uart_control_release, }; static struct miscdevice snfc_uart_control_device = { .minor = 126, .name = "snfc_uart_control", .fops = &snfc_uart_control_fops, }; /* * Description : * Input : * Output : */ static int snfc_uart_control_init(void) { int rc=0; #ifdef FEATURE_DEBUG_LOW SNFC_DEBUG_MSG("[snfc_uart_control] snfc_uart_control_init - start \n"); #endif /* register the device file */ rc = misc_register(&snfc_uart_control_device); if (rc) { SNFC_DEBUG_MSG("[snfc_uart_control] FAIL!! can not register snfc_uart_control \n"); return rc; } __snfc_uart_control_set_uart_status(UART_STATUS_READY); //snfc_gpio_open(GPIO_SNFC_HSEL,GPIO_DIRECTION_OUT,GPIO_LOW_VALUE); //snfc_gpio_open(GPIO_SNFC_PON,GPIO_DIRECTION_OUT,GPIO_LOW_VALUE); //SNFC_DEBUG_MSG("[snfc_uart_control] GPIO_SNFC_PON = %d, GPIO_SNFC_HSEL = %d\n", // snfc_gpio_read(GPIO_SNFC_PON),snfc_gpio_read(GPIO_SNFC_HSEL) ); #ifdef FEATURE_DEBUG_LOW SNFC_DEBUG_MSG("[snfc_uart_control] snfc_uart_control_init - end \n"); #endif return 0; } /* * Description : * Input : * Output : */ static void snfc_uart_control_exit(void) { #ifdef FEATURE_DEBUG_LOW SNFC_DEBUG_MSG("[snfc_uart_control] snfc_uart_control_exit - start \n"); #endif /* deregister the device file */ misc_deregister(&snfc_uart_control_device); #ifdef FEATURE_DEBUG_LOW SNFC_DEBUG_MSG("[snfc_uart_control] snfc_uart_control_exit - end \n"); #endif } module_init(snfc_uart_control_init); module_exit(snfc_uart_control_exit); MODULE_LICENSE("Dual BSD/GPL");
hiikezoe/android_kernel_lge_lgl21
drivers/nfc/snfc/snfc_uart_collision_control.c
C
gpl-2.0
11,594
/* Copyright (C) 2000-2006 MySQL AB 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; version 2 of the License. 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 */ /** @file @brief classes to use when handling where clause */ #ifdef USE_PRAGMA_INTERFACE #pragma interface /* gcc class implementation */ #endif #include "procedure.h" #include <myisam.h> typedef struct keyuse_t { TABLE *table; Item *val; /**< or value if no field */ table_map used_tables; uint key, keypart, optimize; key_part_map keypart_map; ha_rows ref_table_rows; /** If true, the comparison this value was created from will not be satisfied if val has NULL 'value'. */ bool null_rejecting; /* !NULL - This KEYUSE was created from an equality that was wrapped into an Item_func_trig_cond. This means the equality (and validity of this KEYUSE element) can be turned on and off. The on/off state is indicted by the pointed value: *cond_guard == TRUE <=> equality condition is on *cond_guard == FALSE <=> equality condition is off NULL - Otherwise (the source equality can't be turned off) */ bool *cond_guard; } KEYUSE; class store_key; typedef struct st_table_ref { bool key_err; /** True if something was read into buffer in join_read_key. */ bool has_record; uint key_parts; ///< num of ... uint key_length; ///< length of key_buff int key; ///< key no uchar *key_buff; ///< value to look for with key uchar *key_buff2; ///< key_buff+key_length store_key **key_copy; // Item **items; ///< val()'s for each keypart /* Array of pointers to trigger variables. Some/all of the pointers may be NULL. The ref access can be used iff for each used key part i, (!cond_guards[i] || *cond_guards[i]) This array is used by subquery code. The subquery code may inject triggered conditions, i.e. conditions that can be 'switched off'. A ref access created from such condition is not valid when at least one of the underlying conditions is switched off (see subquery code for more details) */ bool **cond_guards; /** (null_rejecting & (1<<i)) means the condition is '=' and no matching rows will be produced if items[i] IS NULL (see add_not_null_conds()) */ key_part_map null_rejecting; table_map depend_map; ///< Table depends on these tables. /* null byte position in the key_buf. Used for REF_OR_NULL optimization */ uchar *null_ref_key; /* The number of times the record associated with this key was used in the join. */ ha_rows use_count; } TABLE_REF; #define CACHE_BLOB 1 /* blob field */ #define CACHE_STRIPPED 2 /* field stripped of trailing spaces */ /** CACHE_FIELD and JOIN_CACHE is used on full join to cache records in outer table */ typedef struct st_cache_field { uchar *str; uint length, blob_length; Field *field; uint type; /**< category of the of the copied field (CACHE_BLOB et al.) */ } CACHE_FIELD; typedef struct st_join_cache { uchar *buff,*pos,*end; uint records,record_nr,ptr_record,fields,length,blobs; CACHE_FIELD *field,**blob_ptr; SQL_SELECT *select; } JOIN_CACHE; /* The structs which holds the join connections and join states */ enum join_type { JT_UNKNOWN,JT_SYSTEM,JT_CONST,JT_EQ_REF,JT_REF,JT_MAYBE_REF, JT_ALL, JT_RANGE, JT_NEXT, JT_FT, JT_REF_OR_NULL, JT_UNIQUE_SUBQUERY, JT_INDEX_SUBQUERY, JT_INDEX_MERGE}; class JOIN; enum enum_nested_loop_state { NESTED_LOOP_KILLED= -2, NESTED_LOOP_ERROR= -1, NESTED_LOOP_OK= 0, NESTED_LOOP_NO_MORE_ROWS= 1, NESTED_LOOP_QUERY_LIMIT= 3, NESTED_LOOP_CURSOR_LIMIT= 4 }; /* Values for JOIN_TAB::packed_info */ #define TAB_INFO_HAVE_VALUE 1 #define TAB_INFO_USING_INDEX 2 #define TAB_INFO_USING_WHERE 4 #define TAB_INFO_FULL_SCAN_ON_NULL 8 typedef enum_nested_loop_state (*Next_select_func)(JOIN *, struct st_join_table *, bool); typedef int (*Read_record_func)(struct st_join_table *tab); Next_select_func setup_end_select_func(JOIN *join); typedef struct st_join_table { st_join_table() {} /* Remove gcc warning */ TABLE *table; KEYUSE *keyuse; /**< pointer to first used key */ SQL_SELECT *select; COND *select_cond; QUICK_SELECT_I *quick; Item **on_expr_ref; /**< pointer to the associated on expression */ COND_EQUAL *cond_equal; /**< multiple equalities for the on expression */ st_join_table *first_inner; /**< first inner table for including outerjoin */ bool found; /**< true after all matches or null complement */ bool not_null_compl;/**< true before null complement is added */ st_join_table *last_inner; /**< last table table for embedding outer join */ st_join_table *first_upper; /**< first inner table for embedding outer join */ st_join_table *first_unmatched; /**< used for optimization purposes only */ /* Special content for EXPLAIN 'Extra' column or NULL if none */ const char *info; /* Bitmap of TAB_INFO_* bits that encodes special line for EXPLAIN 'Extra' column, or 0 if there is no info. */ uint packed_info; Read_record_func read_first_record; Next_select_func next_select; READ_RECORD read_record; /* Currently the following two fields are used only for a [NOT] IN subquery if it is executed by an alternative full table scan when the left operand of the subquery predicate is evaluated to NULL. */ Read_record_func save_read_first_record;/* to save read_first_record */ int (*save_read_record) (READ_RECORD *);/* to save read_record.read_record */ double worst_seeks; key_map const_keys; /**< Keys with constant part */ key_map checked_keys; /**< Keys checked in find_best */ key_map needed_reg; key_map keys; /**< all keys with can be used */ /* Either #rows in the table or 1 for const table. */ ha_rows records; /* Number of records that will be scanned (yes scanned, not returned) by the best 'independent' access method, i.e. table scan or QUICK_*_SELECT) */ ha_rows found_records; /* Cost of accessing the table using "ALL" or range/index_merge access method (but not 'index' for some reason), i.e. this matches method which E(#records) is in found_records. */ ha_rows read_time; table_map dependent,key_dependent; uint use_quick,index; uint status; ///< Save status for cache uint used_fields,used_fieldlength,used_blobs; enum join_type type; bool cached_eq_ref_table,eq_ref_table,not_used_in_distinct; bool sorted; /* If it's not 0 the number stored this field indicates that the index scan has been chosen to access the table data and we expect to scan this number of rows for the table. */ ha_rows limit; TABLE_REF ref; JOIN_CACHE cache; JOIN *join; /** Bitmap of nested joins this table is part of */ nested_join_map embedding_map; void cleanup(); inline bool is_using_loose_index_scan() { return (select && select->quick && (select->quick->get_type() == QUICK_SELECT_I::QS_TYPE_GROUP_MIN_MAX)); } } JOIN_TAB; enum_nested_loop_state sub_select_cache(JOIN *join, JOIN_TAB *join_tab, bool end_of_records); enum_nested_loop_state sub_select(JOIN *join,JOIN_TAB *join_tab, bool end_of_records); /** Information about a position of table within a join order. Used in join optimization. */ typedef struct st_position { /* The "fanout": number of output rows that will be produced (after pushed down selection condition is applied) per each row combination of previous tables. */ double records_read; /* Cost accessing the table in course of the entire complete join execution, i.e. cost of one access method use (e.g. 'range' or 'ref' scan ) times number the access method will be invoked. */ double read_time; JOIN_TAB *table; /* NULL - 'index' or 'range' or 'index_merge' or 'ALL' access is used. Other - [eq_]ref[_or_null] access is used. Pointer to {t.keypart1 = expr} */ KEYUSE *key; /* If ref-based access is used: bitmap of tables this table depends on */ table_map ref_depend_map; } POSITION; typedef struct st_rollup { enum State { STATE_NONE, STATE_INITED, STATE_READY }; State state; Item_null_result **null_items; Item ***ref_pointer_arrays; List<Item> *fields; } ROLLUP; class JOIN :public Sql_alloc { JOIN(const JOIN &rhs); /**< not implemented */ JOIN& operator=(const JOIN &rhs); /**< not implemented */ public: JOIN_TAB *join_tab,**best_ref; JOIN_TAB **map2table; ///< mapping between table indexes and JOIN_TABs JOIN_TAB *join_tab_save; ///< saved join_tab for subquery reexecution TABLE **table,**all_tables,*sort_by_table; uint tables,const_tables; uint send_group_parts; /** Indicates that grouping will be performed on the result set during query execution. This field belongs to query execution. @see make_group_fields, alloc_group_fields, JOIN::exec */ bool sort_and_group; bool first_record,full_join,group, no_field_update; bool do_send_rows; /** TRUE when we want to resume nested loop iterations when fetching data from a cursor */ bool resume_nested_loop; table_map const_table_map,found_const_table_map; /* Bitmap of all inner tables from outer joins */ table_map outer_join; ha_rows send_records,found_records,examined_rows,row_limit, select_limit; /** Used to fetch no more than given amount of rows per one fetch operation of server side cursor. The value is checked in end_send and end_send_group in fashion, similar to offset_limit_cnt: - fetch_limit= HA_POS_ERROR if there is no cursor. - when we open a cursor, we set fetch_limit to 0, - on each fetch iteration we add num_rows to fetch to fetch_limit */ ha_rows fetch_limit; POSITION positions[MAX_TABLES+1],best_positions[MAX_TABLES+1]; /* * Bitmap of nested joins embedding the position at the end of the current partial join (valid only during join optimizer run). */ nested_join_map cur_embedding_map; double best_read; List<Item> *fields; List<Cached_item> group_fields, group_fields_cache; TABLE *tmp_table; /// used to store 2 possible tmp table of SELECT TABLE *exec_tmp_table1, *exec_tmp_table2; THD *thd; Item_sum **sum_funcs, ***sum_funcs_end; /** second copy of sumfuncs (for queries with 2 temporary tables */ Item_sum **sum_funcs2, ***sum_funcs_end2; Procedure *procedure; Item *having; Item *tmp_having; ///< To store having when processed temporary table Item *having_history; ///< Store having for explain ulonglong select_options; select_result *result; TMP_TABLE_PARAM tmp_table_param; MYSQL_LOCK *lock; /// unit structure (with global parameters) for this select SELECT_LEX_UNIT *unit; /// select that processed SELECT_LEX *select_lex; /** TRUE <=> optimizer must not mark any table as a constant table. This is needed for subqueries in form "a IN (SELECT .. UNION SELECT ..): when we optimize the select that reads the results of the union from a temporary table, we must not mark the temp. table as constant because the number of rows in it may vary from one subquery execution to another. */ bool no_const_tables; /** Copy of this JOIN to be used with temporary tables. tmp_join is used when the JOIN needs to be "reusable" (e.g. in a subquery that gets re-executed several times) and we know will use temporary tables for materialization. The materialization to a temporary table overwrites the JOIN structure to point to the temporary table after the materialization is done. This is where tmp_join is used : it's a copy of the JOIN before the materialization and is used in restoring before re-execution by overwriting the current JOIN structure with the saved copy. Because of this we should pay extra care of not freeing up helper structures that are referenced by the original contents of the JOIN. We can check for this by making sure the "current" join is not the temporary copy, e.g. !tmp_join || tmp_join != join We should free these sub-structures at JOIN::destroy() if the "current" join has a copy is not that copy. */ JOIN *tmp_join; ROLLUP rollup; ///< Used with rollup bool select_distinct; ///< Set if SELECT DISTINCT /** If we have the GROUP BY statement in the query, but the group_list was emptied by optimizer, this flag is TRUE. It happens when fields in the GROUP BY are from constant table */ bool group_optimized_away; /* simple_xxxxx is set if ORDER/GROUP BY doesn't include any references to other tables than the first non-constant table in the JOIN. It's also set if ORDER/GROUP BY is empty. Used for deciding for or against using a temporary table to compute GROUP/ORDER BY. */ bool simple_order, simple_group; /** Is set only in case if we have a GROUP BY clause and no ORDER BY after constant elimination of 'order'. */ bool no_order; /** Is set if we have a GROUP BY and we have ORDER BY on a constant. */ bool skip_sort_order; bool need_tmp, hidden_group_fields; DYNAMIC_ARRAY keyuse; Item::cond_result cond_value, having_value; List<Item> all_fields; ///< to store all fields that used in query ///Above list changed to use temporary table List<Item> tmp_all_fields1, tmp_all_fields2, tmp_all_fields3; ///Part, shared with list above, emulate following list List<Item> tmp_fields_list1, tmp_fields_list2, tmp_fields_list3; List<Item> &fields_list; ///< hold field list passed to mysql_select List<Item> procedure_fields_list; int error; ORDER *order, *group_list, *proc_param; //hold parameters of mysql_select COND *conds; // ---"--- Item *conds_history; // store WHERE for explain TABLE_LIST *tables_list; ///<hold 'tables' parameter of mysql_select List<TABLE_LIST> *join_list; ///< list of joined tables in reverse order COND_EQUAL *cond_equal; SQL_SELECT *select; ///<created in optimisation phase JOIN_TAB *return_tab; ///<used only for outer joins Item **ref_pointer_array; ///<used pointer reference for this select // Copy of above to be used with different lists Item **items0, **items1, **items2, **items3, **current_ref_pointer_array; uint ref_pointer_array_size; ///< size of above in bytes const char *zero_result_cause; ///< not 0 if exec must return zero result bool union_part; ///< this subselect is part of union bool optimized; ///< flag to avoid double optimization in EXPLAIN /* storage for caching buffers allocated during query execution. These buffers allocations need to be cached as the thread memory pool is cleared only at the end of the execution of the whole query and not caching allocations that occur in repetition at execution time will result in excessive memory usage. Note: make_simple_join always creates an execution plan that accesses a single table, thus it is sufficient to have a one-element array for table_reexec. */ SORT_FIELD *sortorder; // make_unireg_sortorder() TABLE *table_reexec[1]; // make_simple_join() JOIN_TAB *join_tab_reexec; // make_simple_join() /* end of allocation caching storage */ JOIN(THD *thd_arg, List<Item> &fields_arg, ulonglong select_options_arg, select_result *result_arg) :fields_list(fields_arg) { init(thd_arg, fields_arg, select_options_arg, result_arg); } void init(THD *thd_arg, List<Item> &fields_arg, ulonglong select_options_arg, select_result *result_arg) { join_tab= join_tab_save= 0; table= 0; tables= 0; const_tables= 0; join_list= 0; implicit_grouping= FALSE; sort_and_group= 0; first_record= 0; do_send_rows= 1; resume_nested_loop= FALSE; send_records= 0; found_records= 0; fetch_limit= HA_POS_ERROR; examined_rows= 0; exec_tmp_table1= 0; exec_tmp_table2= 0; sortorder= 0; table_reexec[0]= 0; join_tab_reexec= 0; thd= thd_arg; sum_funcs= sum_funcs2= 0; procedure= 0; having= tmp_having= having_history= 0; select_options= select_options_arg; result= result_arg; lock= thd_arg->lock; select_lex= 0; //for safety tmp_join= 0; select_distinct= test(select_options & SELECT_DISTINCT); no_order= 0; simple_order= 0; simple_group= 0; skip_sort_order= 0; need_tmp= 0; hidden_group_fields= 0; /*safety*/ error= 0; select= 0; return_tab= 0; ref_pointer_array= items0= items1= items2= items3= 0; ref_pointer_array_size= 0; zero_result_cause= 0; optimized= 0; cond_equal= 0; group_optimized_away= 0; all_fields= fields_arg; if (&fields_list != &fields_arg) /* Avoid valgrind-warning */ fields_list= fields_arg; bzero((char*) &keyuse,sizeof(keyuse)); tmp_table_param.init(); tmp_table_param.end_write_records= HA_POS_ERROR; rollup.state= ROLLUP::STATE_NONE; no_const_tables= FALSE; } int prepare(Item ***rref_pointer_array, TABLE_LIST *tables, uint wind_num, COND *conds, uint og_num, ORDER *order, ORDER *group, Item *having, ORDER *proc_param, SELECT_LEX *select, SELECT_LEX_UNIT *unit); int optimize(); int reinit(); void exec(); int destroy(); void restore_tmp(); bool alloc_func_list(); bool make_sum_func_list(List<Item> &all_fields, List<Item> &send_fields, bool before_group_by, bool recompute= FALSE); inline void set_items_ref_array(Item **ptr) { memcpy((char*) ref_pointer_array, (char*) ptr, ref_pointer_array_size); current_ref_pointer_array= ptr; } inline void init_items_ref_array() { items0= ref_pointer_array + all_fields.elements; memcpy(items0, ref_pointer_array, ref_pointer_array_size); current_ref_pointer_array= items0; } bool rollup_init(); bool rollup_process_const_fields(); bool rollup_make_fields(List<Item> &all_fields, List<Item> &fields, Item_sum ***func); int rollup_send_data(uint idx); int rollup_write_data(uint idx, TABLE *table); void remove_subq_pushed_predicates(Item **where); /** Release memory and, if possible, the open tables held by this execution plan (and nested plans). It's used to release some tables before the end of execution in order to increase concurrency and reduce memory consumption. */ void join_free(); /** Cleanup this JOIN, possibly for reuse */ void cleanup(bool full); void clear(); bool save_join_tab(); bool init_save_join_tab(); bool send_row_on_empty_set() { return (do_send_rows && tmp_table_param.sum_func_count != 0 && !group_list && having_value != Item::COND_FALSE); } bool change_result(select_result *result); bool is_top_level_join() const { return (unit == &thd->lex->unit && (unit->fake_select_lex == 0 || select_lex == unit->fake_select_lex)); } private: /** TRUE if the query contains an aggregate function but has no GROUP BY clause. */ bool implicit_grouping; bool make_simple_join(JOIN *join, TABLE *tmp_table); }; typedef struct st_select_check { uint const_ref,reg_ref; } SELECT_CHECK; extern const char *join_type_str[]; void TEST_join(JOIN *join); /* Extern functions in sql_select.cc */ bool store_val_in_field(Field *field, Item *val, enum_check_fields check_flag); TABLE *create_tmp_table(THD *thd,TMP_TABLE_PARAM *param,List<Item> &fields, ORDER *group, bool distinct, bool save_sum_fields, ulonglong select_options, ha_rows rows_limit, char* alias); void free_tmp_table(THD *thd, TABLE *entry); void count_field_types(SELECT_LEX *select_lex, TMP_TABLE_PARAM *param, List<Item> &fields, bool reset_with_sum_func); bool setup_copy_fields(THD *thd, TMP_TABLE_PARAM *param, Item **ref_pointer_array, List<Item> &new_list1, List<Item> &new_list2, uint elements, List<Item> &fields); void copy_fields(TMP_TABLE_PARAM *param); void copy_funcs(Item **func_ptr); bool create_myisam_from_heap(THD *thd, TABLE *table, TMP_TABLE_PARAM *param, int error, bool ignore_last_dupp_error); uint find_shortest_key(TABLE *table, const key_map *usable_keys); Field* create_tmp_field_from_field(THD *thd, Field* org_field, const char *name, TABLE *table, Item_field *item, uint convert_blob_length); /* functions from opt_sum.cc */ bool simple_pred(Item_func *func_item, Item **args, bool *inv_order); int opt_sum_query(TABLE_LIST *tables, List<Item> &all_fields,COND *conds); /* from sql_delete.cc, used by opt_range.cc */ extern "C" int refpos_order_cmp(void* arg, const void *a,const void *b); /** class to copying an field/item to a key struct */ class store_key :public Sql_alloc { public: bool null_key; /* TRUE <=> the value of the key has a null part */ enum store_key_result { STORE_KEY_OK, STORE_KEY_FATAL, STORE_KEY_CONV }; store_key(THD *thd, Field *field_arg, uchar *ptr, uchar *null, uint length) :null_key(0), null_ptr(null), err(0) { if (field_arg->type() == MYSQL_TYPE_BLOB || field_arg->type() == MYSQL_TYPE_GEOMETRY) { /* Key segments are always packed with a 2 byte length prefix. See mi_rkey for details. */ to_field= new Field_varstring(ptr, length, 2, null, 1, Field::NONE, field_arg->field_name, field_arg->table->s, field_arg->charset()); to_field->init(field_arg->table); } else to_field=field_arg->new_key_field(thd->mem_root, field_arg->table, ptr, null, 1); } virtual ~store_key() {} /** Not actually needed */ virtual const char *name() const=0; /** @brief sets ignore truncation warnings mode and calls the real copy method @details this function makes sure truncation warnings when preparing the key buffers don't end up as errors (because of an enclosing INSERT/UPDATE). */ enum store_key_result copy() { enum store_key_result result; THD *thd= to_field->table->in_use; enum_check_fields saved_count_cuted_fields= thd->count_cuted_fields; ulong sql_mode= thd->variables.sql_mode; thd->variables.sql_mode&= ~(MODE_NO_ZERO_IN_DATE | MODE_NO_ZERO_DATE); thd->count_cuted_fields= CHECK_FIELD_IGNORE; result= copy_inner(); thd->count_cuted_fields= saved_count_cuted_fields; thd->variables.sql_mode= sql_mode; return result; } protected: Field *to_field; // Store data here uchar *null_ptr; uchar err; virtual enum store_key_result copy_inner()=0; }; class store_key_field: public store_key { Copy_field copy_field; const char *field_name; public: store_key_field(THD *thd, Field *to_field_arg, uchar *ptr, uchar *null_ptr_arg, uint length, Field *from_field, const char *name_arg) :store_key(thd, to_field_arg,ptr, null_ptr_arg ? null_ptr_arg : from_field->maybe_null() ? &err : (uchar*) 0, length), field_name(name_arg) { if (to_field) { copy_field.set(to_field,from_field,0); } } const char *name() const { return field_name; } protected: enum store_key_result copy_inner() { TABLE *table= copy_field.to_field->table; my_bitmap_map *old_map= dbug_tmp_use_all_columns(table, table->write_set); copy_field.do_copy(&copy_field); dbug_tmp_restore_column_map(table->write_set, old_map); null_key= to_field->is_null(); return err != 0 ? STORE_KEY_FATAL : STORE_KEY_OK; } }; class store_key_item :public store_key { protected: Item *item; public: store_key_item(THD *thd, Field *to_field_arg, uchar *ptr, uchar *null_ptr_arg, uint length, Item *item_arg) :store_key(thd, to_field_arg, ptr, null_ptr_arg ? null_ptr_arg : item_arg->maybe_null ? &err : (uchar*) 0, length), item(item_arg) {} const char *name() const { return "func"; } protected: enum store_key_result copy_inner() { TABLE *table= to_field->table; my_bitmap_map *old_map= dbug_tmp_use_all_columns(table, table->write_set); int res= item->save_in_field(to_field, 1); /* Item::save_in_field() may call Item::val_xxx(). And if this is a subquery we need to check for errors executing it and react accordingly */ if (!res && table->in_use->is_error()) res= 1; /* STORE_KEY_FATAL */ dbug_tmp_restore_column_map(table->write_set, old_map); null_key= to_field->is_null() || item->null_value; return ((err != 0 || res < 0 || res > 2) ? STORE_KEY_FATAL : (store_key_result) res); } }; class store_key_const_item :public store_key_item { bool inited; public: store_key_const_item(THD *thd, Field *to_field_arg, uchar *ptr, uchar *null_ptr_arg, uint length, Item *item_arg) :store_key_item(thd, to_field_arg,ptr, null_ptr_arg ? null_ptr_arg : item_arg->maybe_null ? &err : (uchar*) 0, length, item_arg), inited(0) { } const char *name() const { return "const"; } protected: enum store_key_result copy_inner() { int res; if (!inited) { inited=1; if ((res= item->save_in_field(to_field, 1))) { if (!err) err= res < 0 ? 1 : res; /* 1=STORE_KEY_FATAL */ } /* Item::save_in_field() may call Item::val_xxx(). And if this is a subquery we need to check for errors executing it and react accordingly */ if (!err && to_field->table->in_use->is_error()) err= 1; /* STORE_KEY_FATAL */ } null_key= to_field->is_null() || item->null_value; return (err > 2 ? STORE_KEY_FATAL : (store_key_result) err); } }; bool cp_buffer_from_ref(THD *thd, TABLE *table, TABLE_REF *ref); bool error_if_full_join(JOIN *join); int report_error(TABLE *table, int error); int safe_index_read(JOIN_TAB *tab); COND *remove_eq_conds(THD *thd, COND *cond, Item::cond_result *cond_value); inline bool optimizer_flag(THD *thd, uint flag) { return (thd->variables.optimizer_switch & flag); }
ystk/debian-mysql-5.1
sql/sql_select.h
C
gpl-2.0
27,667
include ../../../Makefile.inc CLC_ROOT = ../../../inc all: exe_src exe_src_m2s exe_bin amd_compile m2c_compile run_m2s run_native check_result exe_src: @-$(CC) $(CC_FLAG) *src.c -o exe_src $(CC_INC) $(CC_LIB) > relational_greater_than_intint.exe_src.log 2>&1 exe_src_m2s: @-$(CC) $(CC_FLAG) -m32 *src.c -o exe_src_m2s $(CC_INC) $(M2S_LIB) > relational_greater_than_intint.exe_src_m2s.log 2>&1 exe_bin: @-$(CC) $(CC_FLAG) *bin.c -o exe_bin $(CC_INC) $(CC_LIB) > relational_greater_than_intint.exe_bin.log 2>&1 amd_compile: @-$(AMD_CC) --amd --amd-dump-all --amd-device 11 relational_greater_than_intint.cl > relational_greater_than_intint.amdcc.log 2>&1 @-rm -rf /tmp/*.clp && rm -rf /tmp/*_amd_files m2c_compile: @-python compile.py run_m2s: @-M2S_OPENCL_BINARY=./relational_greater_than_intint.opt.bin $(M2S) --si-sim functional ./exe_src_m2s > m2s.log 2>&1 run_native: @-./exe_src > native.log 2>&1 check_result: @-diff exe_src.result exe_src_m2s.result > check.log 2>&1 clean: rm -rf exe_src exe_src_m2s exe_bin *.ll *.log *files *bin *.s *.bc *.result
xianggong/m2c_unit_test
test/operator/relational_greater_than_intint/Makefile
Makefile
gpl-2.0
1,077
/*************************************************************************** * Copyright 2010 by Davide Bettio <davide.bettio@kdemail.net> * * * * 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., * * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . * *************************************************************************** * Name: fluxos.h * ***************************************************************************/ #ifndef _SYS_FLUXOS_H #define _SYS_FLUXOS_H #include <unistd.h> extern int reboot(int magic, int magic2, int cmd, void *arg); #endif
bettio/FluxOS
src/libc/include/sys/fluxos.h
C
gpl-2.0
1,678
<html> <head> <title>RunUO Documentation - Class Overview - GrizzledMare</title> </head> <body bgcolor="white" style="font-family: Courier New" text="#000000" link="#000000" vlink="#000000" alink="#808080"> <h4><a href="../namespaces/Server.Mobiles.html">Back to Server.Mobiles</a></h4> <h2>GrizzledMare : <!-- DBG-1 --><a href="SkeletalMount.html">SkeletalMount</a>, <!-- DBG-2.2 --><a href="IHued.html">IHued</a>, <!-- DBG-2.1 --><font color="blue">IComparable</font>&lt;<a href="Mobile.html">Mobile</a>&gt;, <!-- DBG-2.2 --><a href="ISerializable.html">ISerializable</a>, <!-- DBG-2.2 --><a href="ISpawnable.html">ISpawnable</a>, <!-- DBG-2.2 --><a href="IEntity.html">IEntity</a>, <!-- DBG-2.2 --><a href="IPoint3D.html">IPoint3D</a>, <!-- DBG-2.2 --><a href="IPoint2D.html">IPoint2D</a>, <!-- DBG-2.1 --><font color="blue">IComparable</font>, <!-- DBG-2.1 --><font color="blue">IComparable</font>&lt;<a href="IEntity.html">IEntity</a>&gt;, <!-- DBG-2.2 --><a href="IHonorTarget.html">IHonorTarget</a>, <!-- DBG-2.2 --><a href="IMount.html">IMount</a></h2> (<font color="blue">ctor</font>) GrizzledMare()<br> (<font color="blue">ctor</font>) GrizzledMare( <!-- DBG-0 --><a href="Serial.html">Serial</a> serial )<br> <font color="blue">bool</font> DeleteOnRelease( <font color="blue">get</font>; )<br> <font color="blue">bool</font> IsDispellable( <font color="blue">get</font>; )<br> <font color="blue">virtual</font> <font color="blue">void</font> Deserialize( <!-- DBG-0 --><a href="GenericReader.html">GenericReader</a> reader )<br> <font color="blue">virtual</font> <font color="blue">void</font> GetProperties( <!-- DBG-0 --><a href="ObjectPropertyList.html">ObjectPropertyList</a> list )<br> <font color="blue">virtual</font> <font color="blue">void</font> Serialize( <!-- DBG-0 --><a href="GenericWriter.html">GenericWriter</a> writer )<br> </body> </html>
alucardxlx/matts-uo-server
docs/types/GrizzledMare.html
HTML
gpl-2.0
1,956
#! /usr/bin/env python ''' Arff loader for categorical and numerical attributes, based on scipy.io.arff.arffloader With minor changes for this project (eg. categorical attributes are mapped onto integers and whole dataset is returned as numpy array of floats) If any unsupported data types appear or if arff is malformed, ParseArffError with info about error is raised. @author Miroslav Hlavacek <mira.hlavackuj@gmail.com> ''' from __future__ import division, absolute_import from functools import partial import numpy as np from ..dataio.dataio_const import DataIOError from ..dataio.dataio_const import NUMERIC_ATT from ..dataio.dataio_const import NOMINAL_ATT class ParseArffError(DataIOError): """ Error while parsing arff file - either malformed arff or unsupported arff functionality """ pass def loadarff(f): """Read an arff file. Retrieves name of relation, attribute names and types, possible values of nominal attributes and data. The data is returned as a numpy array of floats.\n It can read files with numeric and nominal attributes. All nominal attribute values are converted to integers (but stored as floats - because of numpy).\n Not implemented functionality:\n * date type attributes\n * string type attributes\n * relational type attributes\n * sparse files reading\n * missing values handling\n @param f : file-like or str - object to read from, or filename to open. @returns Tuple (relation, ls_attributes, d_nominal_values, data) where:\n \b relation is string name of relation in arff\n \b ls_attributes is list with all attribute names\n \b d_nominal_values is dictionary containing lists with all possible values for each nominal attribute. Key to this list is integer - position of attribute in ls_attributes. \b data is numpy array of float type, where shape is (n_samples, n_attributes) @throws ParseArffError This is raised if the given file is not ARFF-formatted or some values are missing or some values are of bad type or if some data type is unsupported. """ if hasattr(f, 'read'): ofile = f else: ofile = open(f, 'rt') try: return _loadarff(ofile) finally: if ofile is not f: # only close what we opened ofile.close() def _loadarff(in_file): # Parse the header file try: relation, ls_atts, d_nom_vals = read_header(in_file) except ValueError as e: raise ParseArffError("Error while parsing header, error was: " + str(e)) #prepare convertors and parse data convertors = [] idx = 0 for name, att_type in ls_atts: if att_type == NUMERIC_ATT: convertors.append(safe_float) elif att_type == NOMINAL_ATT: convertors.append(partial(safe_nominal, ls_values=d_nom_vals[idx])) idx += 1 n_columns = len(convertors) def generator(row_iter): # skip comments and empty lines raw = row_iter.next() while len(raw.strip()) == 0 or raw[0] == '%': raw = row_iter.next() try: # retrieve delimiter of data from first data field delim = get_delim(raw) rows = raw.split(delim) if len(rows) != n_columns: raise ParseArffError('Wrong number of attributes on line: ' + raw.strip()) # 'compiling' the range since it does not change elems = list(range(n_columns)) for i in elems: yield convertors[i](rows[i]) except ValueError as e: raise ParseArffError('Error while parsing data: "%s" on line "%s"' % (str(e), raw.strip())) for raw in row_iter: rows = raw.split(delim) while not rows or rows[0][0] == '%': raw = row_iter.next() rows = raw.split(delim) if len(rows) != n_columns: raise ParseArffError('Wrong number of attributes on line: ' + raw) try: for i in elems: yield convertors[i](rows[i]) except ValueError as e: raise ParseArffError('Type error or missing value while ' 'parsing data: "%s" on line:"%s"' % (str(e), raw)) gen = generator(in_file) data = np.fromiter(gen, complex) # reshape array appropriately data = data.reshape(data.shape[0] / n_columns, n_columns) return relation, ls_atts, d_nom_vals, data def read_header(in_file): """Read the header of the iterable in_file. Parse all attribute names, types and store possible values for any encountered nominal attribute. @param in_file File opened for textual reading @returns Tuple (relation, ls_attributes, d_nominal_values) where:\n \b relation is string name of relation in arff\n \b ls_attributes is list with all attribute names\n \b d_nominal_values is dictionary containing lists with all possible values for each nominal attribute. Key to this list is integer - position of attribute in ls_attributes. """ # Header is everything up to DATA attribute relation = "Unknown relation" ls_attributes = [] d_nominal_vals = {} num_attributes = 0 keyword = '' while keyword != '@data': line = next(in_file) chunks = line.rstrip('\n').split() # ignore blank lines and commments if not chunks or chunks[0][0] != '@': continue try: keyword = chunks[0].lower() if keyword == '@attribute': name = chunks[1] att_type = parse_type(chunks[2]) val_names = None if att_type == NOMINAL_ATT: val_names = chunks[2].strip('{}').split(',') ls_attributes.append((name, att_type)) if not val_names is None: d_nominal_vals[num_attributes] = val_names num_attributes += 1 elif keyword == '@relation': relation = chunks[1] elif keyword != '@data': raise ParseArffError("Error parsing line %s" % line) except KeyError as e: raise ParseArffError('Malformed arff attribute: %s on line %s ' % (str(e), line)) return relation, ls_attributes, d_nominal_vals def parse_type(attrtype): """Given an arff attribute type description returns whether is attribute nominal or numeric, for other data types, ParseArffError is raised. @param String representing value of attribute @return String with either for given type defined in dataio... either NUMERIC_ATT or NOMINAL_ATT @throw ParseArffError If the type is unknown or unsupported """ atype = attrtype.lower().strip() if atype[0] == '{': return NOMINAL_ATT elif atype[:len('real')] == 'real': return NUMERIC_ATT elif atype[:len('integer')] == 'integer': return NUMERIC_ATT elif atype[:len('numeric')] == 'numeric': return NUMERIC_ATT else: raise ParseArffError("Unknown or unsupported attribute %s" % atype) def safe_float(data): """ float convertor """ if data.strip()[0] == '{': raise ValueError("This looks like a sparse ARFF: not supported yet") return np.float(data) def safe_nominal(data, ls_values): """ nominal convertor """ svalue = data.strip() if svalue[0] == '{': raise ValueError("This looks like a sparse ARFF: not supported yet") if svalue in ls_values: return ls_values.index(svalue) else: raise ValueError('Not defined value of nominal attribute') def get_delim(line): """Given a string representing a line of data, check whether the delimiter is ',' or space. """ if ',' in line: return ',' if ' ' in line: return ' ' raise ValueError("delimiter not understood: " + line)
MiraHead/mlmvn
src/dataio/arffio.py
Python
gpl-2.0
8,420
/* * Gadget Driver for Android * * Copyright (C) 2008 Google, Inc. * Author: Mike Lockwood <lockwood@android.com> * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and * may be copied, distributed, and modified under those terms. * * 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. * */ /* #define DEBUG */ /* #define VERBOSE_DEBUG */ #include <linux/init.h> #include <linux/module.h> #include <linux/fs.h> #include <linux/delay.h> #include <linux/kernel.h> #include <linux/utsname.h> #include <linux/platform_device.h> #include <linux/usb/ch9.h> #include <linux/usb/composite.h> #include <linux/usb/gadget.h> #include "gadget_chips.h" /* * Kbuild is not very cooperative with respect to linking separately * compiled library objects into one module. So for now we won't use * separate compilation ... ensuring init/exit sections work to shrink * the runtime footprint, and giving us at least some parts of what * a "gcc --combine ... part1.c part2.c part3.c ... " build would. */ #include "usbstring.c" #include "config.c" #include "epautoconf.c" #include "composite.c" #include "f_audio_source.c" #include "f_mass_storage.c" #include "u_serial.c" #include "f_acm.c" #include "f_adb.c" #include "f_mtp_samsung.c" #include "f_accessory.c" #define USB_ETH_RNDIS y #include "f_rndis.c" #include "rndis.c" #include "f_ncm.c" #include "u_ether.c" MODULE_AUTHOR("Mike Lockwood"); MODULE_DESCRIPTION("Android Composite USB Driver"); MODULE_LICENSE("GPL"); MODULE_VERSION("1.0"); static const char longname[] = "Gadget Android"; /* Default vendor and product IDs, overridden by userspace */ // VID & PID for Samsung USB Driver #define VENDOR_ID 0x04E8 #define PRODUCT_ID 0x685E struct android_usb_function { char *name; void *config; struct device *dev; char *dev_name; struct device_attribute **attributes; /* for android_dev.enabled_functions */ struct list_head enabled_list; /* Optional: initialization during gadget bind */ int (*init)(struct android_usb_function *, struct usb_composite_dev *); /* Optional: cleanup during gadget unbind */ void (*cleanup)(struct android_usb_function *); /* Optional: called when the function is added the list of * enabled functions */ void (*enable)(struct android_usb_function *); /* Optional: called when it is removed */ void (*disable)(struct android_usb_function *); int (*bind_config)(struct android_usb_function *, struct usb_configuration *); /* Optional: called when the configuration is removed */ void (*unbind_config)(struct android_usb_function *, struct usb_configuration *); /* Optional: handle ctrl requests before the device is configured */ int (*ctrlrequest)(struct android_usb_function *, struct usb_composite_dev *, const struct usb_ctrlrequest *); }; struct android_dev { struct android_usb_function **functions; struct list_head enabled_functions; struct usb_composite_dev *cdev; struct device *dev; bool enabled; int disable_depth; struct mutex mutex; bool connected; bool sw_connected; struct work_struct work; }; static struct class *android_class; static struct android_dev *_android_dev; static int android_bind_config(struct usb_configuration *c); static void android_unbind_config(struct usb_configuration *c); /* string IDs are assigned dynamically */ #define STRING_MANUFACTURER_IDX 0 #define STRING_PRODUCT_IDX 1 #define STRING_SERIAL_IDX 2 static char manufacturer_string[256]; static char product_string[256]; static char serial_string[256]; /* String Table */ static struct usb_string strings_dev[] = { [STRING_MANUFACTURER_IDX].s = manufacturer_string, [STRING_PRODUCT_IDX].s = product_string, [STRING_SERIAL_IDX].s = serial_string, { } /* end of list */ }; static struct usb_gadget_strings stringtab_dev = { .language = 0x0409, /* en-us */ .strings = strings_dev, }; static struct usb_gadget_strings *dev_strings[] = { &stringtab_dev, NULL, }; static struct usb_device_descriptor device_desc = { .bLength = sizeof(device_desc), .bDescriptorType = USB_DT_DEVICE, .bcdUSB = __constant_cpu_to_le16(0x0200), .bDeviceClass = USB_CLASS_PER_INTERFACE, .idVendor = __constant_cpu_to_le16(VENDOR_ID), .idProduct = __constant_cpu_to_le16(PRODUCT_ID), .bcdDevice = __constant_cpu_to_le16(0xffff), .bNumConfigurations = 1, }; static struct usb_configuration android_config_driver = { .label = "android", .unbind = android_unbind_config, .bConfigurationValue = 1, .bmAttributes = USB_CONFIG_ATT_ONE | USB_CONFIG_ATT_SELFPOWER, .bMaxPower = CONFIG_USB_GADGET_VBUS_DRAW/2, /* 500ma max */ }; static void android_work(struct work_struct *data) { struct android_dev *dev = container_of(data, struct android_dev, work); struct usb_composite_dev *cdev = dev->cdev; char *disconnected[2] = { "USB_STATE=DISCONNECTED", NULL }; char *connected[2] = { "USB_STATE=CONNECTED", NULL }; char *configured[2] = { "USB_STATE=CONFIGURED", NULL }; char **uevent_envp = NULL; unsigned long flags; spin_lock_irqsave(&cdev->lock, flags); if (cdev->config){ uevent_envp = configured; printk("USBD][%s] Gadget Enumeration Success \n",__func__); } else if (dev->connected != dev->sw_connected) uevent_envp = dev->connected ? connected : disconnected; dev->sw_connected = dev->connected; spin_unlock_irqrestore(&cdev->lock, flags); if (uevent_envp) { kobject_uevent_env(&dev->dev->kobj, KOBJ_CHANGE, uevent_envp); pr_info("%s: sent uevent %s\n", __func__, uevent_envp[0]); } else { pr_info("%s: did not send uevent (%d %d %p)\n", __func__, dev->connected, dev->sw_connected, cdev->config); } } static void android_enable(struct android_dev *dev) { struct usb_composite_dev *cdev = dev->cdev; BUG_ON(!mutex_is_locked(&dev->mutex)); BUG_ON(!dev->disable_depth); if (--dev->disable_depth == 0) { #ifdef CONFIG_USB_PCD_SETTINGS usb_pcd_enable(cdev->gadget); #endif usb_add_config(cdev, &android_config_driver, android_bind_config); usb_gadget_connect(cdev->gadget); } } static void android_disable(struct android_dev *dev) { struct usb_composite_dev *cdev = dev->cdev; BUG_ON(!mutex_is_locked(&dev->mutex)); if (dev->disable_depth++ == 0) { usb_gadget_disconnect(cdev->gadget); /* Cancel pending control requests */ usb_ep_dequeue(cdev->gadget->ep0, cdev->req); usb_remove_config(cdev, &android_config_driver); #ifdef CONFIG_USB_PCD_SETTINGS usb_pcd_disable(cdev->gadget); #endif } } /*-------------------------------------------------------------------------*/ /* Supported functions initialization */ struct adb_data { bool opened; bool enabled; }; static int adb_function_init(struct android_usb_function *f, struct usb_composite_dev *cdev) { f->config = kzalloc(sizeof(struct adb_data), GFP_KERNEL); if (!f->config) return -ENOMEM; return adb_setup(); } static void adb_function_cleanup(struct android_usb_function *f) { adb_cleanup(); kfree(f->config); } static int adb_function_bind_config(struct android_usb_function *f, struct usb_configuration *c) { return adb_bind_config(c); } static void adb_android_function_enable(struct android_usb_function *f) { struct android_dev *dev = _android_dev; struct adb_data *data = f->config; data->enabled = true; /* Disable the gadget until adbd is ready */ if (!data->opened) android_disable(dev); } static void adb_android_function_disable(struct android_usb_function *f) { struct android_dev *dev = _android_dev; struct adb_data *data = f->config; data->enabled = false; /* Balance the disable that was called in closed_callback */ if (!data->opened) android_enable(dev); } static struct android_usb_function adb_function = { .name = "adb", .enable = adb_android_function_enable, .disable = adb_android_function_disable, .init = adb_function_init, .cleanup = adb_function_cleanup, .bind_config = adb_function_bind_config, }; static void adb_ready_callback(void) { struct android_dev *dev = _android_dev; struct adb_data *data = adb_function.config; mutex_lock(&dev->mutex); data->opened = true; if (data->enabled) android_enable(dev); mutex_unlock(&dev->mutex); } static void adb_closed_callback(void) { struct android_dev *dev = _android_dev; struct adb_data *data = adb_function.config; mutex_lock(&dev->mutex); data->opened = false; if (data->enabled) android_disable(dev); mutex_unlock(&dev->mutex); } #define MAX_ACM_INSTANCES 4 struct acm_function_config { int instances; }; static int acm_function_init(struct android_usb_function *f, struct usb_composite_dev *cdev) { f->config = kzalloc(sizeof(struct acm_function_config), GFP_KERNEL); if (!f->config) return -ENOMEM; return gserial_setup(cdev->gadget, MAX_ACM_INSTANCES); } static void acm_function_cleanup(struct android_usb_function *f) { gserial_cleanup(); kfree(f->config); f->config = NULL; } static int acm_function_bind_config(struct android_usb_function *f, struct usb_configuration *c) { int i; int ret = 0; struct acm_function_config *config = f->config; for (i = 0; i < config->instances; i++) { ret = acm_bind_config(c, i); if (ret) { pr_err("Could not bind acm%u config\n", i); break; } } return ret; } static ssize_t acm_instances_show(struct device *dev, struct device_attribute *attr, char *buf) { struct android_usb_function *f = dev_get_drvdata(dev); struct acm_function_config *config = f->config; return sprintf(buf, "%d\n", config->instances); } static ssize_t acm_instances_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t size) { struct android_usb_function *f = dev_get_drvdata(dev); struct acm_function_config *config = f->config; int value; sscanf(buf, "%d", &value); if (value > MAX_ACM_INSTANCES) value = MAX_ACM_INSTANCES; config->instances = value; return size; } static DEVICE_ATTR(instances, S_IRUGO | S_IWUSR, acm_instances_show, acm_instances_store); static struct device_attribute *acm_function_attributes[] = { &dev_attr_instances, NULL }; static struct android_usb_function acm_function = { .name = "acm", .init = acm_function_init, .cleanup = acm_function_cleanup, .bind_config = acm_function_bind_config, .attributes = acm_function_attributes, }; static int mtp_function_init(struct android_usb_function *f, struct usb_composite_dev *cdev) { return mtp_setup(); } static void mtp_function_cleanup(struct android_usb_function *f) { mtp_cleanup(); } static int mtp_function_bind_config(struct android_usb_function *f, struct usb_configuration *c) { return mtp_bind_config(c, false); } static int ptp_function_init(struct android_usb_function *f, struct usb_composite_dev *cdev) { /* nothing to do - initialization is handled by mtp_function_init */ return 0; } static void ptp_function_cleanup(struct android_usb_function *f) { /* nothing to do - cleanup is handled by mtp_function_cleanup */ } static int ptp_function_bind_config(struct android_usb_function *f, struct usb_configuration *c) { return mtp_bind_config(c, true); } static int mtp_function_ctrlrequest(struct android_usb_function *f, struct usb_composite_dev *cdev, const struct usb_ctrlrequest *c) { return mtp_ctrlrequest(cdev, c); } static struct android_usb_function mtp_function = { .name = "mtp", .init = mtp_function_init, .cleanup = mtp_function_cleanup, .bind_config = mtp_function_bind_config, .ctrlrequest = mtp_function_ctrlrequest, }; /* PTP function is same as MTP with slightly different interface descriptor */ static struct android_usb_function ptp_function = { .name = "ptp", .init = ptp_function_init, .cleanup = ptp_function_cleanup, .bind_config = ptp_function_bind_config, }; struct rndis_function_config { u8 ethaddr[ETH_ALEN]; u32 vendorID; char manufacturer[256]; bool wceis; }; static int rndis_function_init(struct android_usb_function *f, struct usb_composite_dev *cdev) { f->config = kzalloc(sizeof(struct rndis_function_config), GFP_KERNEL); if (!f->config) return -ENOMEM; return 0; } static void rndis_function_cleanup(struct android_usb_function *f) { kfree(f->config); f->config = NULL; } static int rndis_function_bind_config(struct android_usb_function *f, struct usb_configuration *c) { int ret = 0; struct rndis_function_config *rndis = f->config; if (!rndis) { pr_err("%s: rndis_pdata\n", __func__); return -1; } pr_info("%s MAC: %02X:%02X:%02X:%02X:%02X:%02X\n", __func__, rndis->ethaddr[0], rndis->ethaddr[1], rndis->ethaddr[2], rndis->ethaddr[3], rndis->ethaddr[4], rndis->ethaddr[5]); ret = gether_setup_name(c->cdev->gadget, rndis->ethaddr, "rndis"); if (ret) { pr_err("%s: gether_setup failed\n", __func__); return ret; } if (rndis->wceis) { /* "Wireless" RNDIS; auto-detected by Windows */ rndis_iad_descriptor.bFunctionClass = USB_CLASS_WIRELESS_CONTROLLER; rndis_iad_descriptor.bFunctionSubClass = 0x01; rndis_iad_descriptor.bFunctionProtocol = 0x03; rndis_control_intf.bInterfaceClass = USB_CLASS_WIRELESS_CONTROLLER; rndis_control_intf.bInterfaceSubClass = 0x01; rndis_control_intf.bInterfaceProtocol = 0x03; } return rndis_bind_config(c, rndis->ethaddr, rndis->vendorID, rndis->manufacturer); } static void rndis_function_unbind_config(struct android_usb_function *f, struct usb_configuration *c) { gether_cleanup(); } static ssize_t rndis_manufacturer_show(struct device *dev, struct device_attribute *attr, char *buf) { struct android_usb_function *f = dev_get_drvdata(dev); struct rndis_function_config *config = f->config; return sprintf(buf, "%s\n", config->manufacturer); } static ssize_t rndis_manufacturer_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t size) { struct android_usb_function *f = dev_get_drvdata(dev); struct rndis_function_config *config = f->config; if (size >= sizeof(config->manufacturer)) return -EINVAL; if (sscanf(buf, "%s", config->manufacturer) == 1) return size; return -1; } static DEVICE_ATTR(manufacturer, S_IRUGO | S_IWUSR, rndis_manufacturer_show, rndis_manufacturer_store); static ssize_t rndis_wceis_show(struct device *dev, struct device_attribute *attr, char *buf) { struct android_usb_function *f = dev_get_drvdata(dev); struct rndis_function_config *config = f->config; return sprintf(buf, "%d\n", config->wceis); } static ssize_t rndis_wceis_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t size) { struct android_usb_function *f = dev_get_drvdata(dev); struct rndis_function_config *config = f->config; int value; if (sscanf(buf, "%d", &value) == 1) { config->wceis = value; return size; } return -EINVAL; } static DEVICE_ATTR(wceis, S_IRUGO | S_IWUSR, rndis_wceis_show, rndis_wceis_store); static ssize_t rndis_ethaddr_show(struct device *dev, struct device_attribute *attr, char *buf) { struct android_usb_function *f = dev_get_drvdata(dev); struct rndis_function_config *rndis = f->config; return sprintf(buf, "%02x:%02x:%02x:%02x:%02x:%02x\n", rndis->ethaddr[0], rndis->ethaddr[1], rndis->ethaddr[2], rndis->ethaddr[3], rndis->ethaddr[4], rndis->ethaddr[5]); } static ssize_t rndis_ethaddr_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t size) { struct android_usb_function *f = dev_get_drvdata(dev); struct rndis_function_config *rndis = f->config; #ifdef CONFIG_USB_G_ANDROID_SAMSUNG_COMPOSITE int i; char *src; for (i = 0; i < ETH_ALEN; i++) rndis->ethaddr[i] = 0; /* This is to create a temporary and unique MAC address * with the first byte is set to 0x02, indicating local * administration */ rndis->ethaddr[0] = 0x02; src = serial_string; for (i = 0; (i < 256) && *src; i++) { /* XOR the USB serial across the remaining bytes */ rndis->ethaddr[i % (ETH_ALEN - 1) + 1] ^= *src++; } return size; #else if (sscanf(buf, "%02x:%02x:%02x:%02x:%02x:%02x\n", (int *)&rndis->ethaddr[0], (int *)&rndis->ethaddr[1], (int *)&rndis->ethaddr[2], (int *)&rndis->ethaddr[3], (int *)&rndis->ethaddr[4], (int *)&rndis->ethaddr[5]) == 6) return size; return -EINVAL; #endif } static DEVICE_ATTR(ethaddr, S_IRUGO | S_IWUSR, rndis_ethaddr_show, rndis_ethaddr_store); static ssize_t rndis_vendorID_show(struct device *dev, struct device_attribute *attr, char *buf) { struct android_usb_function *f = dev_get_drvdata(dev); struct rndis_function_config *config = f->config; return sprintf(buf, "%04x\n", config->vendorID); } static ssize_t rndis_vendorID_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t size) { struct android_usb_function *f = dev_get_drvdata(dev); struct rndis_function_config *config = f->config; int value; if (sscanf(buf, "%04x", &value) == 1) { config->vendorID = value; return size; } return -EINVAL; } static DEVICE_ATTR(vendorID, S_IRUGO | S_IWUSR, rndis_vendorID_show, rndis_vendorID_store); static struct device_attribute *rndis_function_attributes[] = { &dev_attr_manufacturer, &dev_attr_wceis, &dev_attr_ethaddr, &dev_attr_vendorID, NULL }; static struct android_usb_function rndis_function = { .name = "rndis", .init = rndis_function_init, .cleanup = rndis_function_cleanup, .bind_config = rndis_function_bind_config, .unbind_config = rndis_function_unbind_config, .attributes = rndis_function_attributes, }; struct ncm_function_config { u8 ethaddr[ETH_ALEN]; u32 vendorID; char manufacturer[256]; u32 ntb_out_size; }; static int ncm_function_init(struct android_usb_function *f, struct usb_composite_dev *cdev) { f->config = kzalloc(sizeof(struct ncm_function_config), GFP_KERNEL); if (!f->config) return -ENOMEM; return 0; } static void ncm_function_cleanup(struct android_usb_function *f) { kfree(f->config); f->config = NULL; } static int ncm_function_bind_config(struct android_usb_function *f, struct usb_configuration *c) { int ret = 0; struct ncm_function_config *ncm = f->config; if (!ncm) { pr_err("%s: ncm_pdata\n", __func__); return -1; } pr_info("%s MAC: %02X:%02X:%02X:%02X:%02X:%02X\n", __func__, ncm->ethaddr[0], ncm->ethaddr[1], ncm->ethaddr[2], ncm->ethaddr[3], ncm->ethaddr[4], ncm->ethaddr[5]); ret = gether_setup_name(c->cdev->gadget, ncm->ethaddr, "ncm"); if (ret) { pr_err("%s: gether_setup failed\n", __func__); return ret; } return ncm_bind_config(c, ncm->ethaddr); } static void ncm_function_unbind_config(struct android_usb_function *f, struct usb_configuration *c) { gether_cleanup(); } static ssize_t ncm_manufacturer_show(struct device *dev, struct device_attribute *attr, char *buf) { struct android_usb_function *f = dev_get_drvdata(dev); struct ncm_function_config *config = f->config; return sprintf(buf, "%s\n", config->manufacturer); } static ssize_t ncm_manufacturer_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t size) { struct android_usb_function *f = dev_get_drvdata(dev); struct ncm_function_config *config = f->config; if (size >= sizeof(config->manufacturer)) return -EINVAL; if (sscanf(buf, "%s", config->manufacturer) == 1) return size; return -1; } static DEVICE_ATTR(manufacturer_ncm, S_IRUGO | S_IWUSR, ncm_manufacturer_show, ncm_manufacturer_store); static ssize_t ncm_ethaddr_show(struct device *dev, struct device_attribute *attr, char *buf) { struct android_usb_function *f = dev_get_drvdata(dev); struct ncm_function_config *ncm = f->config; return sprintf(buf, "%02x:%02x:%02x:%02x:%02x:%02x\n", ncm->ethaddr[0], ncm->ethaddr[1], ncm->ethaddr[2], ncm->ethaddr[3], ncm->ethaddr[4], ncm->ethaddr[5]); } static ssize_t ncm_ethaddr_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t size) { struct android_usb_function *f = dev_get_drvdata(dev); struct ncm_function_config *ncm = f->config; if (sscanf(buf, "%02x:%02x:%02x:%02x:%02x:%02x\n", (int *)&ncm->ethaddr[0], (int *)&ncm->ethaddr[1], (int *)&ncm->ethaddr[2], (int *)&ncm->ethaddr[3], (int *)&ncm->ethaddr[4], (int *)&ncm->ethaddr[5]) == 6) return size; return -EINVAL; } static DEVICE_ATTR(ethaddr_ncm, S_IRUGO | S_IWUSR, ncm_ethaddr_show, ncm_ethaddr_store); static ssize_t ncm_vendorID_show(struct device *dev, struct device_attribute *attr, char *buf) { struct android_usb_function *f = dev_get_drvdata(dev); struct ncm_function_config *config = f->config; return sprintf(buf, "%04x\n", config->vendorID); } static ssize_t ncm_vendorID_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t size) { struct android_usb_function *f = dev_get_drvdata(dev); struct ncm_function_config *config = f->config; int value; if (sscanf(buf, "%04x", &value) == 1) { config->vendorID = value; return size; } return -EINVAL; } static DEVICE_ATTR(vendorID_ncm, S_IRUGO | S_IWUSR, ncm_vendorID_show, ncm_vendorID_store); static ssize_t ncm_ntb_out_size_show(struct device *dev, struct device_attribute *attr, char *buf) { struct android_usb_function *f = dev_get_drvdata(dev); struct ncm_function_config *config = f->config; return sprintf(buf, "%d\n", config->ntb_out_size); } static ssize_t ncm_ntb_out_size_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t size) { struct android_usb_function *f = dev_get_drvdata(dev); struct ncm_function_config *config = f->config; int value; if (sscanf(buf, "%d", &value) == 1) { config->ntb_out_size = value; pr_info("ntb_out_size = %d bytes", config->ntb_out_size); #ifdef CONFIG_USB_ETH_SKB_ALLOC_OPTIMIZATION ncm_ntb_out_size(config->ntb_out_size); #endif return size; } return -EINVAL; } static DEVICE_ATTR(ntb_out_size_ncm, S_IRUGO | S_IWUSR, ncm_ntb_out_size_show, ncm_ntb_out_size_store); static struct device_attribute *ncm_function_attributes[] = { &dev_attr_manufacturer_ncm, &dev_attr_ethaddr_ncm, &dev_attr_vendorID_ncm, &dev_attr_ntb_out_size_ncm, NULL }; static struct android_usb_function ncm_function = { .name = "ncm", .init = ncm_function_init, .cleanup = ncm_function_cleanup, .bind_config = ncm_function_bind_config, .unbind_config = ncm_function_unbind_config, .attributes = ncm_function_attributes, }; struct mass_storage_function_config { struct fsg_config fsg; struct fsg_common *common; }; static int mass_storage_function_init(struct android_usb_function *f, struct usb_composite_dev *cdev) { struct mass_storage_function_config *config; struct fsg_common *common; int err; config = kzalloc(sizeof(struct mass_storage_function_config), GFP_KERNEL); if (!config) return -ENOMEM; #ifdef CONFIG_USB_DUAL_DISK_SUPPORT config->fsg.nluns = 2; #else config->fsg.nluns = 1; #endif config->fsg.luns[0].removable = 1; if (config->fsg.nluns > 1) config->fsg.luns[1].removable = 1; common = fsg_common_init(NULL, cdev, &config->fsg); if (IS_ERR(common)) { kfree(config); return PTR_ERR(common); } err = sysfs_create_link(&f->dev->kobj, &common->luns[0].dev.kobj, "lun0"); if (err) { fsg_common_release(&common->ref); kfree(config); return err; } if (config->fsg.nluns > 1) { err = sysfs_create_link(&f->dev->kobj, &common->luns[1].dev.kobj, "lun1"); if (err) { sysfs_remove_link(&f->dev->kobj, "lun0"); /* Remove link to "lun0" before freeing config */ fsg_common_release(&common->ref); kfree(config); return err; } } config->common = common; f->config = config; return 0; } static void mass_storage_function_cleanup(struct android_usb_function *f) { struct mass_storage_function_config *config; config = f->config; fsg_common_release(&config->common->ref); kfree(config); f->config = NULL; } static int mass_storage_function_bind_config(struct android_usb_function *f, struct usb_configuration *c) { struct mass_storage_function_config *config = f->config; return fsg_bind_config(c->cdev, c, config->common); } static ssize_t mass_storage_inquiry_show(struct device *dev, struct device_attribute *attr, char *buf) { struct android_usb_function *f = dev_get_drvdata(dev); struct mass_storage_function_config *config = f->config; return sprintf(buf, "%s\n", config->common->inquiry_string); } static ssize_t mass_storage_inquiry_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t size) { struct android_usb_function *f = dev_get_drvdata(dev); struct mass_storage_function_config *config = f->config; if (size >= sizeof(config->common->inquiry_string)) return -EINVAL; if (sscanf(buf, "%s", config->common->inquiry_string) != 1) return -EINVAL; return size; } static DEVICE_ATTR(inquiry_string, S_IRUGO | S_IWUSR, mass_storage_inquiry_show, mass_storage_inquiry_store); static struct device_attribute *mass_storage_function_attributes[] = { &dev_attr_inquiry_string, NULL }; static struct android_usb_function mass_storage_function = { .name = "mass_storage", .init = mass_storage_function_init, .cleanup = mass_storage_function_cleanup, .bind_config = mass_storage_function_bind_config, .attributes = mass_storage_function_attributes, }; static int accessory_function_init(struct android_usb_function *f, struct usb_composite_dev *cdev) { return acc_setup(); } static void accessory_function_cleanup(struct android_usb_function *f) { acc_cleanup(); } static int accessory_function_bind_config(struct android_usb_function *f, struct usb_configuration *c) { return acc_bind_config(c); } static int accessory_function_ctrlrequest(struct android_usb_function *f, struct usb_composite_dev *cdev, const struct usb_ctrlrequest *c) { return acc_ctrlrequest(cdev, c); } static struct android_usb_function accessory_function = { .name = "accessory", .init = accessory_function_init, .cleanup = accessory_function_cleanup, .bind_config = accessory_function_bind_config, .ctrlrequest = accessory_function_ctrlrequest, }; static int audio_source_function_init(struct android_usb_function *f, struct usb_composite_dev *cdev) { struct audio_source_config *config; config = kzalloc(sizeof(struct audio_source_config), GFP_KERNEL); if (!config) return -ENOMEM; config->card = -1; config->device = -1; f->config = config; return 0; } static void audio_source_function_cleanup(struct android_usb_function *f) { kfree(f->config); } static int audio_source_function_bind_config(struct android_usb_function *f, struct usb_configuration *c) { struct audio_source_config *config = f->config; return audio_source_bind_config(c, config); } static void audio_source_function_unbind_config(struct android_usb_function *f, struct usb_configuration *c) { struct audio_source_config *config = f->config; config->card = -1; config->device = -1; } static ssize_t audio_source_pcm_show(struct device *dev, struct device_attribute *attr, char *buf) { struct android_usb_function *f = dev_get_drvdata(dev); struct audio_source_config *config = f->config; /* print PCM card and device numbers */ return sprintf(buf, "%d %d\n", config->card, config->device); } static DEVICE_ATTR(pcm, S_IRUGO | S_IWUSR, audio_source_pcm_show, NULL); static struct device_attribute *audio_source_function_attributes[] = { &dev_attr_pcm, NULL }; static struct android_usb_function audio_source_function = { .name = "audio_source", .init = audio_source_function_init, .cleanup = audio_source_function_cleanup, .bind_config = audio_source_function_bind_config, .unbind_config = audio_source_function_unbind_config, .attributes = audio_source_function_attributes, }; static struct android_usb_function *supported_functions[] = { &adb_function, &acm_function, &mtp_function, &ptp_function, &rndis_function, &mass_storage_function, &accessory_function, &audio_source_function, &ncm_function, NULL }; static int android_init_functions(struct android_usb_function **functions, struct usb_composite_dev *cdev) { struct android_dev *dev = _android_dev; struct android_usb_function *f; struct device_attribute **attrs; struct device_attribute *attr; int err = 0; int index = 0; for (; (f = *functions++); index++) { f->dev_name = kasprintf(GFP_KERNEL, "f_%s", f->name); f->dev = device_create(android_class, dev->dev, MKDEV(0, index), f, f->dev_name); if (IS_ERR(f->dev)) { pr_err("%s: Failed to create dev %s", __func__, f->dev_name); err = PTR_ERR(f->dev); goto err_create; } if (f->init) { err = f->init(f, cdev); if (err) { pr_err("%s: Failed to init %s", __func__, f->name); goto err_out; } } attrs = f->attributes; if (attrs) { while ((attr = *attrs++) && !err) err = device_create_file(f->dev, attr); } if (err) { pr_err("%s: Failed to create function %s attributes", __func__, f->name); goto err_out; } } return 0; err_out: device_destroy(android_class, f->dev->devt); err_create: kfree(f->dev_name); return err; } static void android_cleanup_functions(struct android_usb_function **functions) { struct android_usb_function *f; while (*functions) { f = *functions++; if (f->dev) { device_destroy(android_class, f->dev->devt); kfree(f->dev_name); } if (f->cleanup) f->cleanup(f); } } static int android_bind_enabled_functions(struct android_dev *dev, struct usb_configuration *c) { struct android_usb_function *f; int ret; list_for_each_entry(f, &dev->enabled_functions, enabled_list) { ret = f->bind_config(f, c); if (ret) { pr_err("%s: %s failed", __func__, f->name); return ret; } } return 0; } static void android_unbind_enabled_functions(struct android_dev *dev, struct usb_configuration *c) { struct android_usb_function *f; list_for_each_entry(f, &dev->enabled_functions, enabled_list) { if (f->unbind_config) f->unbind_config(f, c); } } static int android_enable_function(struct android_dev *dev, char *name) { struct android_usb_function **functions = dev->functions; struct android_usb_function *f; while ((f = *functions++)) { if (!strcmp(name, f->name)) { list_add_tail(&f->enabled_list, &dev->enabled_functions); return 0; } } return -EINVAL; } /*-------------------------------------------------------------------------*/ /* /sys/class/android_usb/android%d/ interface */ static ssize_t functions_show(struct device *pdev, struct device_attribute *attr, char *buf) { struct android_dev *dev = dev_get_drvdata(pdev); struct android_usb_function *f; char *buff = buf; mutex_lock(&dev->mutex); list_for_each_entry(f, &dev->enabled_functions, enabled_list) buff += sprintf(buff, "%s,", f->name); mutex_unlock(&dev->mutex); if (buff != buf) *(buff-1) = '\n'; return buff - buf; } static ssize_t functions_store(struct device *pdev, struct device_attribute *attr, const char *buff, size_t size) { struct android_dev *dev = dev_get_drvdata(pdev); char *name; char buf[256]={0,}, *b; int err; mutex_lock(&dev->mutex); if (dev->enabled) { mutex_unlock(&dev->mutex); return -EBUSY; } INIT_LIST_HEAD(&dev->enabled_functions); if(strlen(buff)>255){ printk("[%s] ERROR buff exceed 255\n",__func__); return size; } strncpy(buf, buff, sizeof(buf)); //USB_LOG printk("USBD][%s] new functions : %s\n",__func__, buf); b = strim(buf); while (b) { name = strsep(&b, ","); if (name) { err = android_enable_function(dev, name); if (err) pr_err("android_usb: Cannot enable '%s'", name); } } mutex_unlock(&dev->mutex); return size; } static ssize_t enable_show(struct device *pdev, struct device_attribute *attr, char *buf) { struct android_dev *dev = dev_get_drvdata(pdev); return sprintf(buf, "%d\n", dev->enabled); } static ssize_t enable_store(struct device *pdev, struct device_attribute *attr, const char *buff, size_t size) { struct android_dev *dev = dev_get_drvdata(pdev); struct usb_composite_dev *cdev = dev->cdev; struct android_usb_function *f; int enabled = 0; mutex_lock(&dev->mutex); sscanf(buff, "%d", &enabled); if (enabled && !dev->enabled && cdev) { /* update values in composite driver's copy of device descriptor */ cdev->desc.idVendor = device_desc.idVendor; cdev->desc.idProduct = device_desc.idProduct; #if 0 cdev->desc.bcdDevice = device_desc.bcdDevice; #else /* Samsung KIES needs fixed bcdDevice number */ // BST jean.ding@ 2012.11.28 modify bcdDevice field of // USB Descriptor for all samsung model cdev->desc.bcdDevice = cpu_to_le16(0x0400); #endif cdev->desc.bDeviceClass = device_desc.bDeviceClass; cdev->desc.bDeviceSubClass = device_desc.bDeviceSubClass; cdev->desc.bDeviceProtocol = device_desc.bDeviceProtocol; list_for_each_entry(f, &dev->enabled_functions, enabled_list) { if (f->enable) f->enable(f); } android_enable(dev); dev->enabled = true; } else if (!enabled && dev->enabled && cdev) { android_disable(dev); list_for_each_entry(f, &dev->enabled_functions, enabled_list) { if (f->disable) f->disable(f); } dev->enabled = false; } else if (!cdev) { pr_err("android_usb: composite driver not found"); } else { pr_err("android_usb: already %s\n", dev->enabled ? "enabled" : "disabled"); } mutex_unlock(&dev->mutex); return size; } static ssize_t state_show(struct device *pdev, struct device_attribute *attr, char *buf) { struct android_dev *dev = dev_get_drvdata(pdev); struct usb_composite_dev *cdev = dev->cdev; char *state = "DISCONNECTED"; unsigned long flags; if (!cdev) goto out; spin_lock_irqsave(&cdev->lock, flags); if (cdev->config) state = "CONFIGURED"; else if (dev->connected) state = "CONNECTED"; spin_unlock_irqrestore(&cdev->lock, flags); out: return sprintf(buf, "%s\n", state); } #define DESCRIPTOR_ATTR(field, format_string) \ static ssize_t \ field ## _show(struct device *dev, struct device_attribute *attr, \ char *buf) \ { \ return sprintf(buf, format_string, device_desc.field); \ } \ static ssize_t \ field ## _store(struct device *dev, struct device_attribute *attr, \ const char *buf, size_t size) \ { \ int value; \ if (sscanf(buf, format_string, &value) == 1) { \ device_desc.field = value; \ return size; \ } \ return -1; \ } \ static DEVICE_ATTR(field, S_IRUGO | S_IWUSR, field ## _show, field ## _store); #define DESCRIPTOR_STRING_ATTR(field, buffer) \ static ssize_t \ field ## _show(struct device *dev, struct device_attribute *attr, \ char *buf) \ { \ return sprintf(buf, "%s", buffer); \ } \ static ssize_t \ field ## _store(struct device *dev, struct device_attribute *attr, \ const char *buf, size_t size) \ { \ if (size >= sizeof(buffer)) return -EINVAL; \ return strlcpy(buffer, buf, buf[size - 1] == '\n' ? size : size + 1);\ } \ static DEVICE_ATTR(field, S_IRUGO | S_IWUSR, field ## _show, field ## _store); DESCRIPTOR_ATTR(idVendor, "%04x\n") DESCRIPTOR_ATTR(idProduct, "%04x\n") DESCRIPTOR_ATTR(bcdDevice, "%04x\n") /* coverity [SECURE_CODING] */ DESCRIPTOR_ATTR(bDeviceClass, "%02x\n") /* coverity [SECURE_CODING] */ DESCRIPTOR_ATTR(bDeviceSubClass, "%02x\n") /* coverity [SECURE_CODING] */ DESCRIPTOR_ATTR(bDeviceProtocol, "%02x\n") DESCRIPTOR_STRING_ATTR(iManufacturer, manufacturer_string) DESCRIPTOR_STRING_ATTR(iProduct, product_string) DESCRIPTOR_STRING_ATTR(iSerial, serial_string) static DEVICE_ATTR(functions, S_IRUGO | S_IWUSR, functions_show, functions_store); static DEVICE_ATTR(enable, S_IRUGO | S_IWUSR, enable_show, enable_store); static DEVICE_ATTR(state, S_IRUGO, state_show, NULL); static struct device_attribute *android_usb_attributes[] = { &dev_attr_idVendor, &dev_attr_idProduct, &dev_attr_bcdDevice, &dev_attr_bDeviceClass, &dev_attr_bDeviceSubClass, &dev_attr_bDeviceProtocol, &dev_attr_iManufacturer, &dev_attr_iProduct, &dev_attr_iSerial, &dev_attr_functions, &dev_attr_enable, &dev_attr_state, NULL }; /*-------------------------------------------------------------------------*/ /* Composite driver */ static int android_bind_config(struct usb_configuration *c) { struct android_dev *dev = _android_dev; int ret = 0; ret = android_bind_enabled_functions(dev, c); if (ret) return ret; return 0; } static void android_unbind_config(struct usb_configuration *c) { struct android_dev *dev = _android_dev; android_unbind_enabled_functions(dev, c); } static int android_bind(struct usb_composite_dev *cdev) { struct android_dev *dev = _android_dev; struct usb_gadget *gadget = cdev->gadget; int gcnum, id, ret; usb_gadget_disconnect(gadget); ret = android_init_functions(dev->functions, cdev); if (ret) return ret; /* Allocate string descriptor numbers ... note that string * contents can be overridden by the composite_dev glue. */ id = usb_string_id(cdev); if (id < 0) return id; strings_dev[STRING_MANUFACTURER_IDX].id = id; device_desc.iManufacturer = id; id = usb_string_id(cdev); if (id < 0) return id; strings_dev[STRING_PRODUCT_IDX].id = id; device_desc.iProduct = id; /* Default strings - should be updated by userspace */ strncpy(manufacturer_string, "Android", sizeof(manufacturer_string) - 1); strncpy(product_string, "Android", sizeof(product_string) - 1); /* Get and set ADB ID */ #ifdef CONFIG_USB_G_ANDROID_SAMSUNG_COMPOSITE sprintf(serial_string, "%08X%08X", system_serial_high, system_serial_low); #else strncpy(serial_string, "0123456789ABCDEF", sizeof(serial_string)-1); #endif id = usb_string_id(cdev); if (id < 0) return id; strings_dev[STRING_SERIAL_IDX].id = id; device_desc.iSerialNumber = id; gcnum = usb_gadget_controller_number(gadget); if (gcnum >= 0) device_desc.bcdDevice = cpu_to_le16(0x0200 + gcnum); else { /* gadget zero is so simple (for now, no altsettings) that * it SHOULD NOT have problems with bulk-capable hardware. * so just warn about unrcognized controllers -- don't panic. * * things like configuration and altsetting numbering * can need hardware-specific attention though. */ pr_warning("%s: controller '%s' not recognized\n", longname, gadget->name); device_desc.bcdDevice = __constant_cpu_to_le16(0x9999); } dev->cdev = cdev; return 0; } static int android_usb_unbind(struct usb_composite_dev *cdev) { struct android_dev *dev = _android_dev; cancel_work_sync(&dev->work); android_cleanup_functions(dev->functions); return 0; } static struct usb_composite_driver android_usb_driver = { .name = "android_usb", .dev = &device_desc, .strings = dev_strings, .unbind = android_usb_unbind, }; static int android_setup(struct usb_gadget *gadget, const struct usb_ctrlrequest *c) { struct android_dev *dev = _android_dev; struct usb_composite_dev *cdev = get_gadget_data(gadget); struct usb_request *req = cdev->req; struct android_usb_function *f; int value = -EOPNOTSUPP; unsigned long flags; req->zero = 0; req->complete = composite_setup_complete; req->length = 0; gadget->ep0->driver_data = cdev; list_for_each_entry(f, &dev->enabled_functions, enabled_list) { if (f->ctrlrequest) { value = f->ctrlrequest(f, cdev, c); if (value >= 0) break; } } /* Special case the accessory function. * It needs to handle control requests before it is enabled. */ if (value < 0) value = acc_ctrlrequest(cdev, c); if (value < 0) value = composite_setup(gadget, c); spin_lock_irqsave(&cdev->lock, flags); if (!dev->connected) { dev->connected = 1; schedule_work(&dev->work); } else if (c->bRequest == USB_REQ_SET_CONFIGURATION && cdev->config) { schedule_work(&dev->work); } spin_unlock_irqrestore(&cdev->lock, flags); return value; } static void android_disconnect(struct usb_gadget *gadget) { struct android_dev *dev = _android_dev; struct usb_composite_dev *cdev = get_gadget_data(gadget); unsigned long flags; composite_disconnect(gadget); /* accessory HID support can be active while the accessory function is not actually enabled, so we need to inform it when we are disconnected. */ acc_disconnect(); spin_lock_irqsave(&cdev->lock, flags); dev->connected = 0; schedule_work(&dev->work); spin_unlock_irqrestore(&cdev->lock, flags); } static int android_create_device(struct android_dev *dev) { struct device_attribute **attrs = android_usb_attributes; struct device_attribute *attr; int err; dev->dev = device_create(android_class, NULL, MKDEV(0, 0), NULL, "android0"); if (IS_ERR(dev->dev)) return PTR_ERR(dev->dev); dev_set_drvdata(dev->dev, dev); while ((attr = *attrs++)) { err = device_create_file(dev->dev, attr); if (err) { device_destroy(android_class, dev->dev->devt); return err; } } return 0; } static int __init init(void) { struct android_dev *dev; int err; android_class = class_create(THIS_MODULE, "android_usb"); if (IS_ERR(android_class)) return PTR_ERR(android_class); dev = kzalloc(sizeof(*dev), GFP_KERNEL); if (!dev) return -ENOMEM; dev->disable_depth = 1; dev->functions = supported_functions; INIT_LIST_HEAD(&dev->enabled_functions); INIT_WORK(&dev->work, android_work); mutex_init(&dev->mutex); err = android_create_device(dev); if (err) { class_destroy(android_class); kfree(dev); return err; } _android_dev = dev; /* Override composite driver functions */ composite_driver.setup = android_setup; composite_driver.disconnect = android_disconnect; return usb_composite_probe(&android_usb_driver, android_bind); } module_init(init); static void __exit cleanup(void) { usb_composite_unregister(&android_usb_driver); class_destroy(android_class); kfree(_android_dev); _android_dev = NULL; } module_exit(cleanup);
CoolDevelopment/VSMC-i9105p
drivers/usb/gadget/android.c
C
gpl-2.0
42,191
/***************************************************************************** * flac.c : FLAC demux module for vlc ***************************************************************************** * Copyright (C) 2001-2008 VLC authors and VideoLAN * $Id$ * * Authors: Gildas Bazin <gbazin@netcourrier.com> * Laurent Aimar <fenrir@via.ecp.fr> * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 2.1 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. *****************************************************************************/ /***************************************************************************** * Preamble *****************************************************************************/ #ifdef HAVE_CONFIG_H # include "config.h" #endif #include <vlc_common.h> #include <vlc_plugin.h> #include <vlc_demux.h> #include <vlc_meta.h> /* vlc_meta_* */ #include <vlc_input.h> /* vlc_input_attachment, vlc_seekpoint */ #include <vlc_codec.h> /* decoder_t */ #include <vlc_charset.h> /* EnsureUTF8 */ #include <assert.h> #include "xiph_metadata.h" /* vorbis comments */ /***************************************************************************** * Module descriptor *****************************************************************************/ static int Open ( vlc_object_t * ); static void Close ( vlc_object_t * ); vlc_module_begin () set_description( N_("FLAC demuxer") ) set_capability( "demux", 155 ) set_category( CAT_INPUT ) set_subcategory( SUBCAT_INPUT_DEMUX ) set_callbacks( Open, Close ) add_shortcut( "flac" ) vlc_module_end () /***************************************************************************** * Local prototypes *****************************************************************************/ static int Demux ( demux_t * ); static int Control( demux_t *, int, va_list ); static int ReadMeta( demux_t *, uint8_t **pp_streaminfo, int *pi_streaminfo ); struct demux_sys_t { bool b_start; es_out_id_t *p_es; /* Packetizer */ decoder_t *p_packetizer; vlc_meta_t *p_meta; int64_t i_pts; int64_t i_length; /* Length from stream info */ int64_t i_data_pos; /* */ int i_seekpoint; seekpoint_t **seekpoint; /* */ int i_attachments; input_attachment_t **attachments; int i_cover_idx; int i_cover_score; }; #define STREAMINFO_SIZE 34 #define FLAC_PACKET_SIZE 16384 /***************************************************************************** * Open: initializes ES structures *****************************************************************************/ static int Open( vlc_object_t * p_this ) { demux_t *p_demux = (demux_t*)p_this; demux_sys_t *p_sys; const uint8_t *p_peek; uint8_t *p_streaminfo; int i_streaminfo; es_format_t fmt; /* Have a peep at the show. */ if( stream_Peek( p_demux->s, &p_peek, 4 ) < 4 ) return VLC_EGENERIC; if( p_peek[0]!='f' || p_peek[1]!='L' || p_peek[2]!='a' || p_peek[3]!='C' ) { if( !p_demux->b_force ) return VLC_EGENERIC; /* User forced */ msg_Err( p_demux, "this doesn't look like a flac stream, " "continuing anyway" ); } p_sys = malloc( sizeof( demux_sys_t ) ); if( unlikely(p_sys == NULL) ) return VLC_ENOMEM; p_demux->pf_demux = Demux; p_demux->pf_control = Control; p_demux->p_sys = p_sys; p_sys->b_start = true; p_sys->p_meta = NULL; p_sys->i_length = 0; p_sys->i_pts = 0; p_sys->p_es = NULL; TAB_INIT( p_sys->i_seekpoint, p_sys->seekpoint ); TAB_INIT( p_sys->i_attachments, p_sys->attachments); p_sys->i_cover_idx = 0; p_sys->i_cover_score = 0; /* We need to read and store the STREAMINFO metadata */ if( ReadMeta( p_demux, &p_streaminfo, &i_streaminfo ) ) { free( p_sys ); return VLC_EGENERIC; } /* Load the FLAC packetizer */ /* Store STREAMINFO for the decoder and packetizer */ es_format_Init( &fmt, AUDIO_ES, VLC_CODEC_FLAC ); fmt.i_extra = i_streaminfo; fmt.p_extra = p_streaminfo; p_sys->p_packetizer = demux_PacketizerNew( p_demux, &fmt, "flac" ); if( !p_sys->p_packetizer ) { free( p_sys ); return VLC_EGENERIC; } if( p_sys->i_cover_idx < p_sys->i_attachments ) { char psz_url[128]; if( !p_sys->p_meta ) p_sys->p_meta = vlc_meta_New(); snprintf( psz_url, sizeof(psz_url), "attachment://%s", p_sys->attachments[p_sys->i_cover_idx]->psz_name ); vlc_meta_Set( p_sys->p_meta, vlc_meta_ArtworkURL, psz_url ); } return VLC_SUCCESS; } /***************************************************************************** * Close: frees unused data *****************************************************************************/ static void Close( vlc_object_t * p_this ) { demux_t *p_demux = (demux_t*)p_this; demux_sys_t *p_sys = p_demux->p_sys; for( int i = 0; i < p_sys->i_seekpoint; i++ ) vlc_seekpoint_Delete(p_sys->seekpoint[i]); TAB_CLEAN( p_sys->i_seekpoint, p_sys->seekpoint ); for( int i = 0; i < p_sys->i_attachments; i++ ) vlc_input_attachment_Delete( p_sys->attachments[i] ); TAB_CLEAN( p_sys->i_attachments, p_sys->attachments); /* Delete the decoder */ demux_PacketizerDestroy( p_sys->p_packetizer ); if( p_sys->p_meta ) vlc_meta_Delete( p_sys->p_meta ); free( p_sys ); } /***************************************************************************** * Demux: reads and demuxes data packets ***************************************************************************** * Returns -1 in case of error, 0 in case of EOF, 1 otherwise *****************************************************************************/ static int Demux( demux_t *p_demux ) { demux_sys_t *p_sys = p_demux->p_sys; block_t *p_block_in, *p_block_out; bool b_eof = !( p_block_in = stream_Block( p_demux->s, FLAC_PACKET_SIZE ) ); if ( p_block_in ) { p_block_in->i_pts = p_block_in->i_dts = p_sys->b_start ? VLC_TS_0 : VLC_TS_INVALID; p_sys->b_start = false; } while( (p_block_out = p_sys->p_packetizer->pf_packetize( p_sys->p_packetizer, (p_block_in) ? &p_block_in : NULL )) ) { while( p_block_out ) { block_t *p_next = p_block_out->p_next; p_block_out->p_next = NULL; if( p_sys->p_es == NULL ) { p_sys->p_packetizer->fmt_out.b_packetized = true; p_sys->p_es = es_out_Add( p_demux->out, &p_sys->p_packetizer->fmt_out); } p_sys->i_pts = p_block_out->i_dts; /* set PCR */ es_out_Control( p_demux->out, ES_OUT_SET_PCR, p_block_out->i_dts ); es_out_Send( p_demux->out, p_sys->p_es, p_block_out ); p_block_out = p_next; } } return !b_eof; } /***************************************************************************** * Control: *****************************************************************************/ static int64_t ControlGetLength( demux_t *p_demux ) { demux_sys_t *p_sys = p_demux->p_sys; const int64_t i_size = stream_Size(p_demux->s) - p_sys->i_data_pos; int64_t i_length = p_sys->i_length; int i; /* Try to fix length using seekpoint and current size for truncated file */ for( i = p_sys->i_seekpoint-1; i >= 0; i-- ) { seekpoint_t *s = p_sys->seekpoint[i]; if( s->i_byte_offset <= i_size ) { if( i+1 < p_sys->i_seekpoint ) { /* Broken file */ seekpoint_t *n = p_sys->seekpoint[i+1]; assert( n->i_byte_offset != s->i_byte_offset); /* Should be ensured by ParseSeekTable */ i_length = s->i_time_offset + (n->i_time_offset-s->i_time_offset) * (i_size-s->i_byte_offset) / (n->i_byte_offset-s->i_byte_offset); } break; } } return i_length; } static int64_t ControlGetTime( demux_t *p_demux ) { demux_sys_t *p_sys = p_demux->p_sys; return p_sys->i_pts; } static int ControlSetTime( demux_t *p_demux, int64_t i_time ) { demux_sys_t *p_sys = p_demux->p_sys; int64_t i_delta_time; bool b_seekable; int i; /* */ stream_Control( p_demux->s, STREAM_CAN_SEEK, &b_seekable ); if( !b_seekable ) return VLC_EGENERIC; /* */ assert( p_sys->i_seekpoint > 0 ); /* ReadMeta ensure at least (0,0) */ for( i = p_sys->i_seekpoint-1; i >= 0; i-- ) { if( p_sys->seekpoint[i]->i_time_offset <= i_time ) break; } i_delta_time = i_time - p_sys->seekpoint[i]->i_time_offset; /* XXX We do exact seek if it's not too far away(45s) */ if( i_delta_time < CLOCK_FREQ * 45 ) { if( stream_Seek( p_demux->s, p_sys->seekpoint[i]->i_byte_offset+p_sys->i_data_pos ) ) return VLC_EGENERIC; es_out_Control( p_demux->out, ES_OUT_SET_NEXT_DISPLAY_TIME, i_time ); } else { int64_t i_delta_offset; int64_t i_next_time; int64_t i_next_offset; uint32_t i_time_align = 1; if( i+1 < p_sys->i_seekpoint ) { i_next_time = p_sys->seekpoint[i+1]->i_time_offset; i_next_offset = p_sys->seekpoint[i+1]->i_byte_offset; } else { i_next_time = p_sys->i_length; i_next_offset = stream_Size(p_demux->s)-p_sys->i_data_pos; } i_delta_offset = 0; if ( INT64_MAX / i_delta_time < (i_next_offset - p_sys->seekpoint[i]->i_byte_offset) ) i_time_align = CLOCK_FREQ; if( i_next_time-p_sys->seekpoint[i]->i_time_offset > 0 ) i_delta_offset = (i_next_offset - p_sys->seekpoint[i]->i_byte_offset) * (i_delta_time / i_time_align) / ((i_next_time-p_sys->seekpoint[i]->i_time_offset) / i_time_align); if( stream_Seek( p_demux->s, p_sys->seekpoint[i]->i_byte_offset+p_sys->i_data_pos + i_delta_offset ) ) return VLC_EGENERIC; } return VLC_SUCCESS; } static int Control( demux_t *p_demux, int i_query, va_list args ) { demux_sys_t *p_sys = p_demux->p_sys; if( i_query == DEMUX_GET_META ) { vlc_meta_t *p_meta = (vlc_meta_t *)va_arg( args, vlc_meta_t* ); if( p_demux->p_sys->p_meta ) vlc_meta_Merge( p_meta, p_demux->p_sys->p_meta ); return VLC_SUCCESS; } else if( i_query == DEMUX_HAS_UNSUPPORTED_META ) { bool *pb_bool = (bool*)va_arg( args, bool* ); *pb_bool = true; return VLC_SUCCESS; } else if( i_query == DEMUX_GET_LENGTH ) { int64_t *pi64 = (int64_t*)va_arg( args, int64_t * ); *pi64 = ControlGetLength( p_demux ); return VLC_SUCCESS; } else if( i_query == DEMUX_SET_TIME ) { int64_t i_time = (int64_t)va_arg( args, int64_t ); return ControlSetTime( p_demux, i_time ); } else if( i_query == DEMUX_SET_POSITION ) { const double f = (double)va_arg( args, double ); int64_t i_time = f * ControlGetLength( p_demux ); return ControlSetTime( p_demux, i_time ); } else if( i_query == DEMUX_GET_TIME ) { int64_t *pi64 = (int64_t*)va_arg( args, int64_t * ); *pi64 = ControlGetTime( p_demux ); return VLC_SUCCESS; } else if( i_query == DEMUX_GET_POSITION ) { double *pf = (double*)va_arg( args, double * ); const int64_t i_length = ControlGetLength(p_demux); if( i_length > 0 ) { double current = ControlGetTime(p_demux); *pf = current / (double)i_length; } else *pf= 0.0; return VLC_SUCCESS; } else if( i_query == DEMUX_GET_ATTACHMENTS ) { input_attachment_t ***ppp_attach = (input_attachment_t***)va_arg( args, input_attachment_t*** ); int *pi_int = (int*)va_arg( args, int * ); if( p_sys->i_attachments <= 0 ) return VLC_EGENERIC; *pi_int = p_sys->i_attachments; *ppp_attach = xmalloc( sizeof(input_attachment_t*) * p_sys->i_attachments ); for( int i = 0; i < p_sys->i_attachments; i++ ) (*ppp_attach)[i] = vlc_input_attachment_Duplicate( p_sys->attachments[i] ); return VLC_SUCCESS; } return demux_vaControlHelper( p_demux->s, p_sys->i_data_pos, -1, 8*0, 1, i_query, args ); } enum { META_STREAMINFO = 0, META_SEEKTABLE = 3, META_COMMENT = 4, META_PICTURE = 6, }; static inline int Get24bBE( const uint8_t *p ) { return (p[0] << 16)|(p[1] << 8)|(p[2]); } static void ParseStreamInfo( int *pi_rate, int64_t *pi_count, uint8_t *p_data ); static void ParseSeekTable( demux_t *p_demux, const uint8_t *p_data, int i_data, int i_sample_rate ); static void ParseComment( demux_t *, const uint8_t *p_data, int i_data ); static void ParsePicture( demux_t *, const uint8_t *p_data, int i_data ); static int ReadMeta( demux_t *p_demux, uint8_t **pp_streaminfo, int *pi_streaminfo ) { demux_sys_t *p_sys = p_demux->p_sys; int i_peek; const uint8_t *p_peek; bool b_last; int i_sample_rate = 0; int64_t i_sample_count; *pp_streaminfo = NULL; /* Be sure we have seekpoint 0 */ seekpoint_t *s = vlc_seekpoint_New(); s->i_time_offset = 0; s->i_byte_offset = 0; TAB_APPEND( p_sys->i_seekpoint, p_sys->seekpoint, s ); uint8_t header[4]; if( stream_Read( p_demux->s, header, 4) < 4) return VLC_EGENERIC; if (memcmp(header, "fLaC", 4)) return VLC_EGENERIC; b_last = 0; while( !b_last ) { int i_len; int i_type; i_peek = stream_Peek( p_demux->s, &p_peek, 4 ); if( i_peek < 4 ) break; b_last = p_peek[0]&0x80; i_type = p_peek[0]&0x7f; i_len = Get24bBE( &p_peek[1] ); if( i_type == META_STREAMINFO && !*pp_streaminfo ) { if( i_len != STREAMINFO_SIZE ) { msg_Err( p_demux, "invalid size %d for a STREAMINFO metadata block", i_len ); return VLC_EGENERIC; } *pi_streaminfo = STREAMINFO_SIZE; *pp_streaminfo = malloc( STREAMINFO_SIZE); if( *pp_streaminfo == NULL ) return VLC_EGENERIC; if( stream_Read( p_demux->s, NULL, 4) < 4) { free( *pp_streaminfo ); return VLC_EGENERIC; } if( stream_Read( p_demux->s, *pp_streaminfo, STREAMINFO_SIZE ) != STREAMINFO_SIZE ) { msg_Err( p_demux, "failed to read STREAMINFO metadata block" ); free( *pp_streaminfo ); return VLC_EGENERIC; } /* */ ParseStreamInfo( &i_sample_rate, &i_sample_count, *pp_streaminfo ); if( i_sample_rate > 0 ) p_sys->i_length = i_sample_count * CLOCK_FREQ /i_sample_rate; continue; } else if( i_type == META_SEEKTABLE ) { i_peek = stream_Peek( p_demux->s, &p_peek, 4+i_len ); if( i_peek == 4+i_len ) ParseSeekTable( p_demux, p_peek, i_peek, i_sample_rate ); } else if( i_type == META_COMMENT ) { i_peek = stream_Peek( p_demux->s, &p_peek, 4+i_len ); if( i_peek == 4+i_len ) ParseComment( p_demux, p_peek, i_peek ); } else if( i_type == META_PICTURE ) { i_peek = stream_Peek( p_demux->s, &p_peek, 4+i_len ); if( i_peek == 4+i_len ) ParsePicture( p_demux, p_peek, i_peek ); } if( stream_Read( p_demux->s, NULL, 4+i_len ) < 4+i_len ) break; } /* */ p_sys->i_data_pos = stream_Tell( p_demux->s ); if (!*pp_streaminfo) return VLC_EGENERIC; return VLC_SUCCESS; } static void ParseStreamInfo( int *pi_rate, int64_t *pi_count, uint8_t *p_data ) { *pi_rate = GetDWBE(&p_data[4+6]) >> 12; *pi_count = GetQWBE(&p_data[4+6]) & ((INT64_C(1)<<36)-1); } static void ParseSeekTable( demux_t *p_demux, const uint8_t *p_data, int i_data, int i_sample_rate ) { demux_sys_t *p_sys = p_demux->p_sys; seekpoint_t *s; int i; if( i_sample_rate <= 0 ) return; /* */ for( i = 0; i < (i_data-4)/18; i++ ) { const int64_t i_sample = GetQWBE( &p_data[4+18*i+0] ); int j; if( i_sample < 0 || i_sample >= INT64_MAX ) continue; s = vlc_seekpoint_New(); s->i_time_offset = i_sample * INT64_C(1000000)/i_sample_rate; s->i_byte_offset = GetQWBE( &p_data[4+18*i+8] ); /* Check for duplicate entry */ for( j = 0; j < p_sys->i_seekpoint; j++ ) { if( p_sys->seekpoint[j]->i_time_offset == s->i_time_offset || p_sys->seekpoint[j]->i_byte_offset == s->i_byte_offset ) { vlc_seekpoint_Delete( s ); s = NULL; break; } } if( s ) { TAB_APPEND( p_sys->i_seekpoint, p_sys->seekpoint, s ); } } /* TODO sort it by size and remove wrong seek entry (time not increasing) */ } static void ParseComment( demux_t *p_demux, const uint8_t *p_data, int i_data ) { demux_sys_t *p_sys = p_demux->p_sys; if( i_data < 4 ) return; vorbis_ParseComment( NULL, &p_sys->p_meta, &p_data[4], i_data - 4, &p_sys->i_attachments, &p_sys->attachments, &p_sys->i_cover_score, &p_sys->i_cover_idx, NULL, NULL, NULL, NULL ); } static void ParsePicture( demux_t *p_demux, const uint8_t *p_data, int i_data ) { demux_sys_t *p_sys = p_demux->p_sys; i_data -= 4; p_data += 4; input_attachment_t *p_attachment = ParseFlacPicture( p_data, i_data, p_sys->i_attachments, &p_sys->i_cover_score, &p_sys->i_cover_idx ); if( p_attachment == NULL ) return; TAB_APPEND( p_sys->i_attachments, p_sys->attachments, p_attachment ); }
sjmGithub/csi280LearningExperience
modules/demux/flac.c
C
gpl-2.0
19,084
package casaeditrice; public class Rivista extends Pubblicazione{ private String isbn; public Rivista(String titolo, char tipologia, String volume, int anno, int contributo) { super(titolo, tipologia, volume, anno, contributo); } public String getIsbn() { return isbn; } public void setIsbn(String isbn){ this.isbn=isbn; } }
CoSandu/JavaProjects
esame_20120227_casaeditrice/src/casaeditrice/Rivista.java
Java
gpl-2.0
355
/* ScummVM - Graphic Adventure Engine * * ScummVM is the legal property of its developers, whose names * are too numerous to list here. Please refer to the COPYRIGHT * file distributed with this source distribution. * * 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * */ #include "titanic/support/video_surface.h" #include "titanic/support/image_decoders.h" #include "titanic/support/screen_manager.h" #include "titanic/titanic.h" namespace Titanic { int CVideoSurface::_videoSurfaceCounter = 0; CVideoSurface::CVideoSurface(CScreenManager *screenManager) : _screenManager(screenManager), _rawSurface(nullptr), _movie(nullptr), _pendingLoad(false), _transBlitFlag(false), _fastBlitFlag(false), _movieFrameSurface(nullptr), _transparencyMode(TRANS_DEFAULT), _freeMovieSurface(DisposeAfterUse::NO), _hasFrame(true), _lockCount(0) { _videoSurfaceNum = _videoSurfaceCounter++; } CVideoSurface::~CVideoSurface() { if (_ddSurface) _videoSurfaceCounter -= freeSurface(); --_videoSurfaceCounter; if (_freeMovieSurface == DisposeAfterUse::YES) delete _movieFrameSurface; } void CVideoSurface::setSurface(CScreenManager *screenManager, DirectDrawSurface *surface) { _screenManager = screenManager; _ddSurface = surface; } void CVideoSurface::blitFrom(const Point &destPos, CVideoSurface *src, const Rect *srcRect) { if (loadIfReady() && src->loadIfReady() && _ddSurface && src->_ddSurface) { Rect srcBounds, destBounds; clipBounds(srcBounds, destBounds, src, srcRect, &destPos); if (src->_transBlitFlag) blitRect2(srcBounds, destBounds, src); else blitRect1(srcBounds, destBounds, src); } } void CVideoSurface::blitFrom(const Point &destPos, const Graphics::Surface *src) { lock(); _rawSurface->blitFrom(*src, destPos); unlock(); } void CVideoSurface::clipBounds(Rect &srcRect, Rect &destRect, CVideoSurface *srcSurface, const Rect *subRect, const Point *destPos) { // Figure out initial source rect and dest rect, based on whether // specific subRect and/or destPos have been passed if (destPos) { destRect.left = destPos->x; destRect.top = destPos->y; } else { destRect.left = destRect.top = 0; } if (subRect) { destRect.right = destRect.left + subRect->width(); destRect.bottom = destRect.top + subRect->height(); srcRect = *subRect; } else { srcRect.right = srcRect.left + srcSurface->getWidth(); srcRect.bottom = srcRect.top + srcSurface->getHeight(); srcRect = Rect(0, 0, srcSurface->getWidth(), srcSurface->getHeight()); } // Clip destination rect to be on-screen if (destRect.left < 0) { srcRect.left -= destRect.left; destRect.left = 0; } if (destRect.top < 0) { srcRect.top -= destRect.top; destRect.top = 0; } if (destRect.right > getWidth()) { srcRect.right += getWidth() - destRect.right; destRect.right = getWidth(); } if (destRect.bottom > getHeight()) { srcRect.bottom += getHeight() - destRect.bottom; destRect.bottom = getHeight(); } // Clip source rect to be within the source surface if (srcRect.left < 0) { destRect.left -= srcRect.left; srcRect.left = 0; } if (srcRect.top < 0) { destRect.top -= srcRect.top; srcRect.top = 0; } if (srcRect.right > srcSurface->getWidth()) { destRect.right += srcSurface->getWidth() - srcRect.right; srcRect.right = srcSurface->getWidth(); } if (srcRect.bottom > srcSurface->getHeight()) { destRect.bottom += srcSurface->getHeight() - srcRect.bottom; srcRect.bottom = srcSurface->getHeight(); } // Validate that the resulting rects are valid if (destRect.left >= destRect.right || destRect.top >= destRect.bottom || srcRect.left >= srcRect.right || srcRect.top >= srcRect.bottom) error("Invalid rect"); } void CVideoSurface::blitRect1(const Rect &srcRect, const Rect &destRect, CVideoSurface *src) { src->lock(); lock(); if (src->_fastBlitFlag) { _rawSurface->blitFrom(*src->_rawSurface, srcRect, Point(destRect.left, destRect.top)); } else if (getMovieFrameSurface()) { movieBlitRect(srcRect, destRect, src); } else { _rawSurface->transBlitFrom(*src->_rawSurface, srcRect, destRect, src->getTransparencyColor()); } src->unlock(); unlock(); } void CVideoSurface::blitRect2(const Rect &srcRect, const Rect &destRect, CVideoSurface *src) { if (getMovieFrameSurface()) { movieBlitRect(srcRect, destRect, src); } else { src->lock(); lock(); _rawSurface->blitFrom(*src->_rawSurface, srcRect, Point(destRect.left, destRect.top)); src->unlock(); unlock(); } } void CVideoSurface::movieBlitRect(const Rect &srcRect, const Rect &destRect, CVideoSurface *src) { // TODO } uint CVideoSurface::getTransparencyColor() { uint32 val = -(getPixelDepth() - 2); val &= 0xFFFF8400; val += 0xF81F; return val; } bool CVideoSurface::hasFrame() { if (_hasFrame) { _hasFrame = false; return true; } else if (_movie) { return _movie->hasVideoFrame(); } else { return false; } } /*------------------------------------------------------------------------*/ byte OSVideoSurface::_palette1[32][32]; byte OSVideoSurface::_palette2[32][32]; OSVideoSurface::OSVideoSurface(CScreenManager *screenManager, DirectDrawSurface *surface) : CVideoSurface(screenManager) { _ddSurface = surface; } OSVideoSurface::OSVideoSurface(CScreenManager *screenManager, const CResourceKey &key, bool pendingLoad) : CVideoSurface(screenManager) { _ddSurface = nullptr; _pendingLoad = pendingLoad; if (_pendingLoad) { loadResource(key); } else { _resourceKey = key; load(); } } void OSVideoSurface::setupPalette(byte palette[32][32], byte val) { for (uint idx1 = 0; idx1 < 32; ++idx1) { for (uint idx2 = 0, base = 0; idx2 < 32; ++idx2, base += idx1) { int64 v = 0x84210843; v *= base; uint v2 = (v >> 36); v = ((v2 >> 31) + v2) & 0xff; palette[idx1][idx2] = v << 3; if (val != 0xff && v != idx2) { v = 0x80808081 * v * val; v2 = v >> 39; palette[idx1][idx2] = ((v2 >> 31) + v2) << 3; } } } } void OSVideoSurface::loadResource(const CResourceKey &key) { _resourceKey = key; _pendingLoad = true; if (hasSurface()) load(); } void OSVideoSurface::loadTarga(const CResourceKey &key) { // Decode the image CTargaDecode decoder; decoder.decode(*this, key.getString()); if (getPixelDepth() == 2) shiftColors(); _resourceKey = key; } void OSVideoSurface::loadJPEG(const CResourceKey &key) { // Decode the image CJPEGDecode decoder; decoder.decode(*this, key.getString()); if (getPixelDepth() == 2) shiftColors(); _resourceKey = key; } void OSVideoSurface::loadTarga(const CString &name) { CResourceKey key(name); loadTarga(key); } void OSVideoSurface::loadMovie(const CResourceKey &key, bool destroyFlag) { // Delete any prior movie if (_movie) { delete _movie; _movie = nullptr; } // Create the new movie and load the first frame to the video surface _movie = g_vm->_movieManager.createMovie(key, this); _movie->setFrame(0); // If flagged to destroy, then immediately destroy movie instance if (destroyFlag) { delete _movie; _movie = nullptr; } _resourceKey = key; } bool OSVideoSurface::lock() { if (!loadIfReady()) return false; ++_lockCount; _rawSurface = _ddSurface->lock(nullptr, 0); return true; } void OSVideoSurface::unlock() { if (!--_lockCount) { if (_rawSurface) _ddSurface->unlock(); _rawSurface = nullptr; } } bool OSVideoSurface::hasSurface() { return _ddSurface != nullptr; } int OSVideoSurface::getWidth() { if (!loadIfReady()) error("Could not load resource"); return _ddSurface->getWidth(); } int OSVideoSurface::getHeight() { if (!loadIfReady()) error("Could not load resource"); return _ddSurface->getHeight(); } int OSVideoSurface::getPitch() { if (!loadIfReady()) error("Could not load resource"); return _ddSurface->getPitch(); } int OSVideoSurface::getBpp() { if (!loadIfReady()) error("Could not load resource"); return getPixelDepth(); } void OSVideoSurface::recreate(int width, int height) { freeSurface(); _screenManager->resizeSurface(this, width, height); if (_ddSurface) _videoSurfaceCounter += _ddSurface->getSize(); } void OSVideoSurface::resize(int width, int height) { if (!_ddSurface || _ddSurface->getWidth() != width || _ddSurface->getHeight() != height) recreate(width, height); } void OSVideoSurface::detachSurface() { _ddSurface = nullptr; } int OSVideoSurface::getPixelDepth() { if (!loadIfReady()) error("Could not load resource"); lock(); int result = _rawSurface->format.bytesPerPixel; if (result == 1) // Paletted 8-bit images don't store the color directly in the pixels result = 0; unlock(); return result; } bool OSVideoSurface::load() { if (!_resourceKey.scanForFile()) return false; switch (_resourceKey.fileTypeSuffix()) { case FILETYPE_IMAGE: switch (_resourceKey.imageTypeSuffix()) { case IMAGETYPE_TARGA: loadTarga(_resourceKey); break; case IMAGETYPE_JPEG: loadJPEG(_resourceKey); break; default: break; } return true; case FILETYPE_MOVIE: loadMovie(_resourceKey); return true; default: return false; } } uint16 OSVideoSurface::getPixel(const Common::Point &pt) { if (!loadIfReady()) return 0; if (pt.x >= 0 && pt.y >= 0 && pt.x < getWidth() && pt.y < getHeight()) { lock(); uint16 pixel = *(uint16 *)_rawSurface->getBasePtr(pt.x, pt.y); unlock(); return pixel; } else { return getTransparencyColor(); } } void OSVideoSurface::setPixel(const Point &pt, uint pixel) { assert(getPixelDepth() == 2); uint16 *pixelP = (uint16 *)_rawSurface->getBasePtr(pt.x, pt.y); *pixelP = pixel; } void OSVideoSurface::changePixel(uint16 *pixelP, uint16 *color, byte srcVal, bool remapFlag) { assert(getPixelDepth() == 2); const Graphics::PixelFormat &destFormat = _ddSurface->getFormat(); const Graphics::PixelFormat srcFormat(2, 5, 5, 5, 0, 10, 5, 0, 0); // Get the color byte r, g, b; srcFormat.colorToRGB(*color, r, g, b); if (remapFlag) { r = _palette1[31 - srcVal][r >> 3]; g = _palette1[31 - srcVal][g >> 3]; b = _palette1[31 - srcVal][b >> 3]; } byte r2, g2, b2; destFormat.colorToRGB(*pixelP, r2, g2, b2); r2 = _palette1[srcVal][r2 >> 3]; g2 = _palette1[srcVal][g2 >> 3]; b2 = _palette1[srcVal][b2 >> 3]; *pixelP = destFormat.RGBToColor(r + r2, g + g2, b + b2); } void OSVideoSurface::shiftColors() { if (!loadIfReady()) return; // Currently no further processing is needed, since for ScummVM, // we already convert 16-bit surfaces as soon as they're loaded } void OSVideoSurface::clear() { if (!loadIfReady()) error("Could not load resource"); } void OSVideoSurface::playMovie(uint flags, CGameObject *obj) { if (loadIfReady() && _movie) _movie->play(flags, obj); _ddSurface->fill(nullptr, 0); } void OSVideoSurface::playMovie(uint startFrame, uint endFrame, uint flags, CGameObject *obj) { if (loadIfReady() && _movie) { _movie->play(startFrame, endFrame, flags, obj); } } void OSVideoSurface::playMovie(uint startFrame, uint endFrame, uint initialFrame, uint flags, CGameObject *obj) { if (loadIfReady() && _movie) { _movie->play(startFrame, endFrame, initialFrame, flags, obj); } } void OSVideoSurface::stopMovie() { if (_movie) _movie->stop(); } void OSVideoSurface::setMovieFrame(uint frameNumber) { if (loadIfReady() && _movie) _movie->setFrame(frameNumber); } void OSVideoSurface::addMovieEvent(int frameNumber, CGameObject *obj) { if (_movie) _movie->addEvent(frameNumber, obj); } void OSVideoSurface::setMovieFrameRate(double rate) { if (_movie) _movie->setFrameRate(rate); } const CMovieRangeInfoList *OSVideoSurface::getMovieRangeInfo() const { return _movie ? _movie->getMovieRangeInfo() : nullptr; } void OSVideoSurface::flipVertically(bool needsLock) { if (!loadIfReady() || !_transBlitFlag) return; if (needsLock) lock(); byte lineBuffer[SCREEN_WIDTH * 2]; int pitch = getBpp() * getWidth(); assert(pitch < (SCREEN_WIDTH * 2)); for (int yp = 0; yp < (_rawSurface->h / 2); ++yp) { byte *line1P = (byte *)_rawSurface->getBasePtr(0, yp); byte *line2P = (byte *)_rawSurface->getBasePtr(0, _rawSurface->h - yp - 1); Common::copy(line1P, line1P + pitch, lineBuffer); Common::copy(line2P, line2P + pitch, line1P); Common::copy(lineBuffer, lineBuffer + pitch, line1P); } _transBlitFlag = false; if (needsLock) unlock(); } bool OSVideoSurface::loadIfReady() { _videoSurfaceNum = _videoSurfaceCounter; if (hasSurface()) { return true; } else if (_pendingLoad) { _hasFrame = true; load(); return true; } else { return false; } } void OSVideoSurface::transPixelate() { if (!loadIfReady()) return; lock(); Graphics::ManagedSurface *surface = _rawSurface; uint transColor = getTransparencyColor(); // TODO: Check whether color is correct uint pixelColor = surface->format.RGBToColor(0x50, 0, 0); for (int yp = 0; yp < surface->h; ++yp) { uint16 *pixelsP = (uint16 *)surface->getBasePtr(0, yp); bool bitFlag = (yp % 2) == 0; int replaceCtr = yp & 3; for (int xp = 0; xp < surface->w; ++xp, ++pixelsP) { if (bitFlag && *pixelsP == transColor && replaceCtr == 0) *pixelsP = pixelColor; bitFlag = !bitFlag; replaceCtr = (replaceCtr + 1) & 3; } } surface->markAllDirty(); unlock(); } Graphics::ManagedSurface *OSVideoSurface::dupMovieFrame() const { return _movie ? _movie->duplicateFrame() : nullptr; } int OSVideoSurface::freeSurface() { if (!_ddSurface) return 0; int surfaceSize = _ddSurface->getSize(); delete _movie; _movie = nullptr; delete _ddSurface; _ddSurface = nullptr; return surfaceSize; } uint16 *OSVideoSurface::getBasePtr(int x, int y) { assert(_rawSurface); return (uint16 *)_rawSurface->getBasePtr(x, y); } } // End of namespace Titanic
blorente/scummvm
engines/titanic/support/video_surface.cpp
C++
gpl-2.0
14,392
<?php /** * @package AcyMailing for Joomla! * @version 4.9.3 * @author acyba.com * @copyright (C) 2009-2015 ACYBA S.A.R.L. All rights reserved. * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html */ defined('_JEXEC') or die('Restricted access'); ?><?php class UpdateController extends acymailingController{ function __construct($config = array()){ parent::__construct($config); $this->registerDefaultTask('update'); } function listing(){ return $this->update(); } function install(){ acymailing_increasePerf(); $newConfig = new stdClass(); $newConfig->installcomplete = 1; $config = acymailing_config(); $updateHelper = acymailing_get('helper.update'); if(!$config->save($newConfig)){ $updateHelper->installTables(); return; } $updateHelper->initList(); $updateHelper->installTemplates(); $updateHelper->installNotifications(); $updateHelper->installMenu(); $updateHelper->installExtensions(); $updateHelper->installBounceRules(); $updateHelper->fixDoubleExtension(); $updateHelper->addUpdateSite(); $updateHelper->fixMenu(); acymailing_setTitle('AcyMailing','acymailing','dashboard'); $this->_iframe(ACYMAILING_UPDATEURL.'install&fromversion='.JRequest::getCmd('fromversion')); } function update(){ $config = acymailing_config(); if(!acymailing_isAllowed($config->get('acl_config_manage','all'))){ acymailing_display(JText::_('ACY_NOTALLOWED'),'error'); return false; } acymailing_setTitle(JText::_('UPDATE_ABOUT'),'acyupdate','update'); $bar = JToolBar::getInstance('toolbar'); $bar->appendButton( 'Link', 'cancel', JText::_('ACY_CLOSE'), acymailing_completeLink('dashboard') ); return $this->_iframe(ACYMAILING_UPDATEURL.'update'); } function _iframe($url){ $config = acymailing_config(); $url .= '&version='.$config->get('version').'&level='.$config->get('level').'&component=acymailing'; ?> <div id="acymailing_div"> <iframe allowtransparency="true" scrolling="auto" height="650px" frameborder="0" width="100%" name="acymailing_frame" id="acymailing_frame" src="<?php echo $url; ?>"> </iframe> </div> <?php } }
Roma48/moesto
administrator/components/com_acymailing/controllers/update.php
PHP
gpl-2.0
2,230
/* Copyright (c) 2009 Igor Trindade Oliveira <igor_trindade@yahoo.com.br> based on kdepimlibs/akonadi/tests/benchmarker.cpp wrote by Robert Zwerus <arzie@dds.nl> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #include "maildir.h" #include <akonadi/collectiondeletejob.h> #include <akonadi/collectionfetchjob.h> #include <akonadi/itemdeletejob.h> #include <akonadi/itemfetchjob.h> #include <akonadi/itemfetchscope.h> #include <akonadi/itemmodifyjob.h> #include <kmime/kmime_message.h> #include "kmime/messageparts.h" #include <QDebug> #include <QTest> #include <boost/shared_ptr.hpp> #define WAIT_TIME 100 typedef boost::shared_ptr<KMime::Message> MessagePtr; using namespace Akonadi; MailDir::MailDir(const QString &dir) : MakeTest() { createAgent("akonadi_maildir_resource"); configureDBusIface("Maildir",dir); } MailDir::MailDir() : MakeTest(){}
kolab-groupware/kdepimlibs
akonadi/tests/benchmarker/maildir/maildir.cpp
C++
gpl-2.0
1,607
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html lang="en"> <head> <meta name="generator" content="AWStats 6.95 (build 1.943) from config file awstats.ckbran.ru.conf (http://awstats.sourceforge.net)"> <meta name="robots" content="noindex,nofollow"> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <meta http-equiv="description" content="Awstats - Advanced Web Statistics for ckbran.ru (2013-07) - keywords"> <title>Statistics for ckbran.ru (2013-07) - keywords</title> <style type="text/css"> <!-- body { font: 11px verdana, arial, helvetica, sans-serif; background-color: #FFFFFF; margin-top: 0; margin-bottom: 0; } .aws_bodyl { } .aws_border { border-collapse: collapse; background-color: #CCCCDD; padding: 1px 1px 1px 1px; margin-top: 0px; margin-bottom: 0px; } .aws_title { font: 13px verdana, arial, helvetica, sans-serif; font-weight: bold; background-color: #CCCCDD; text-align: center; margin-top: 0; margin-bottom: 0; padding: 1px 1px 1px 1px; color: #000000; } .aws_blank { font: 13px verdana, arial, helvetica, sans-serif; background-color: #FFFFFF; text-align: center; margin-bottom: 0; padding: 1px 1px 1px 1px; } .aws_data { background-color: #FFFFFF; border-top-width: 1px; border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; } .aws_formfield { font: 13px verdana, arial, helvetica; } .aws_button { font-family: arial,verdana,helvetica, sans-serif; font-size: 12px; border: 1px solid #ccd7e0; background-image : url(/awstatsicons/other/button.gif); } th { border-color: #ECECEC; border-left-width: 0px; border-right-width: 1px; border-top-width: 0px; border-bottom-width: 1px; padding: 1px 2px 1px 1px; font: 11px verdana, arial, helvetica, sans-serif; text-align:center; color: #000000; } th.aws { border-color: #ECECEC; border-left-width: 0px; border-right-width: 1px; border-top-width: 0px; border-bottom-width: 1px; padding: 1px 2px 1px 1px; font-size: 13px; font-weight: bold; } td { border-color: #ECECEC; border-left-width: 0px; border-right-width: 1px; border-top-width: 0px; border-bottom-width: 1px; font: 11px verdana, arial, helvetica, sans-serif; text-align:center; color: #000000; } td.aws { border-color: #ECECEC; border-left-width: 0px; border-right-width: 1px; border-top-width: 0px; border-bottom-width: 1px; font: 11px verdana, arial, helvetica, sans-serif; text-align:left; color: #000000; padding: 0px;} td.awsm { border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; font: 11px verdana, arial, helvetica, sans-serif; text-align:left; color: #000000; padding: 0px; } b { font-weight: bold; } a { font: 11px verdana, arial, helvetica, sans-serif; } a:link { color: #0011BB; text-decoration: none; } a:visited { color: #0011BB; text-decoration: none; } a:hover { color: #605040; text-decoration: underline; } .currentday { font-weight: bold; } //--> </style> </head> <body style="margin-top: 0px"> <a name="top"></a> <a name="menu">&nbsp;</a> <form name="FormDateFilter" action="/cgi-bin/awstats.pl?config=ckbran.ru&amp;output=keywords" style="padding: 0px 0px 0px 0px; margin-top: 0"> <table class="aws_border" border="0" cellpadding="2" cellspacing="0" width="100%"> <tr><td> <table class="aws_data sortable" border="0" cellpadding="1" cellspacing="0" width="100%"> <tr><td class="aws" valign="middle"><b>Statistics for:</b>&nbsp;</td><td class="aws" valign="middle"><span style="font-size: 14px;">ckbran.ru</span></td><td align="right" rowspan="3"><a href="http://awstats.sourceforge.net" target="awstatshome"><img src="/awstatsicons/other/awstats_logo6.png" border="0" alt='Awstats Web Site' title='Awstats Web Site' /></a></td></tr> <tr valign="middle"><td class="aws" valign="middle" width="150"><b>Last Update:</b>&nbsp;</td><td class="aws" valign="middle"><span style="font-size: 12px;">31 Aug 2013 - 00:01</span></td></tr> <tr><td class="aws" valign="middle"><b>Reported period:</b></td><td class="aws" valign="middle"><span style="font-size: 14px;">Month Jul 2013</span></td></tr> </table> </td></tr></table> </form> <table> <tr><td class="aws"><a href="javascript:parent.window.close();">Close window</a></td></tr> </table> <a name="keywords">&nbsp;</a><br /> <table class="aws_border sortable" border="0" cellpadding="2" cellspacing="0" width="100%"> <tr><td class="aws_title" width="70%">Keywords used on search engines </td><td class="aws_blank">&nbsp;</td></tr> <tr><td colspan="2"> <table class="aws_data" border="1" cellpadding="2" cellspacing="0" width="100%"> <tr bgcolor="#ECECEC"><th>15537 different keywords</th><th bgcolor="#8888DD" width="80">Search</th><th bgcolor="#8888DD" width="80">Percent</th></tr> <tr><td class="aws">ран</td><td>7930</td><td>4.8 %</td></tr> <tr><td class="aws">цкб</td><td>7063</td><td>4.3 %</td></tr> <tr><td class="aws">в</td><td>6770</td><td>4.1 %</td></tr> <tr><td class="aws">лечение</td><td>4053</td><td>2.4 %</td></tr> <tr><td class="aws">ясенево</td><td>3735</td><td>2.2 %</td></tr> <tr><td class="aws">москве</td><td>2687</td><td>1.6 %</td></tr> <tr><td class="aws">на</td><td>2402</td><td>1.4 %</td></tr> <tr><td class="aws">мрт</td><td>2103</td><td>1.2 %</td></tr> <tr><td class="aws">больница</td><td>1948</td><td>1.1 %</td></tr> <tr><td class="aws">поликлиника</td><td>1861</td><td>1.1 %</td></tr> <tr><td class="aws">москва</td><td>1727</td><td>1 %</td></tr> <tr><td class="aws">и</td><td>1140</td><td>0.6 %</td></tr> <tr><td class="aws">центр</td><td>1073</td><td>0.6 %</td></tr> <tr><td class="aws">эндометрия</td><td>984</td><td>0.6 %</td></tr> <tr><td class="aws">как</td><td>953</td><td>0.5 %</td></tr> <tr><td class="aws">цена</td><td>927</td><td>0.5 %</td></tr> <tr><td class="aws">3</td><td>915</td><td>0.5 %</td></tr> <tr><td class="aws">клиника</td><td>912</td><td>0.5 %</td></tr> <tr><td class="aws">гиперплазия</td><td>905</td><td>0.5 %</td></tr> <tr><td class="aws">при</td><td>902</td><td>0.5 %</td></tr> <tr><td class="aws">клиническая</td><td>862</td><td>0.5 %</td></tr> <tr><td class="aws">геморроя</td><td>815</td><td>0.4 %</td></tr> <tr><td class="aws">РАН</td><td>807</td><td>0.4 %</td></tr> <tr><td class="aws">сустава</td><td>805</td><td>0.4 %</td></tr> <tr><td class="aws">лечить</td><td>781</td><td>0.4 %</td></tr> <tr><td class="aws">геморрой</td><td>778</td><td>0.4 %</td></tr> <tr><td class="aws">ЦКБ</td><td>773</td><td>0.4 %</td></tr> <tr><td class="aws">фотиевой</td><td>761</td><td>0.4 %</td></tr> <tr><td class="aws">по</td><td>758</td><td>0.4 %</td></tr> <tr><td class="aws">наук</td><td>722</td><td>0.4 %</td></tr> <tr><td class="aws">матки</td><td>710</td><td>0.4 %</td></tr> <tr><td class="aws">грыжа</td><td>680</td><td>0.4 %</td></tr> <tr><td class="aws">клиники</td><td>653</td><td>0.3 %</td></tr> <tr><td class="aws">академии</td><td>627</td><td>0.3 %</td></tr> <tr><td class="aws">центральная</td><td>619</td><td>0.3 %</td></tr> <tr><td class="aws">где</td><td>611</td><td>0.3 %</td></tr> <tr><td class="aws">москвы</td><td>583</td><td>0.3 %</td></tr> <tr><td class="aws">мозга</td><td>568</td><td>0.3 %</td></tr> <tr><td class="aws">литовский</td><td>557</td><td>0.3 %</td></tr> <tr><td class="aws">головного</td><td>527</td><td>0.3 %</td></tr> <tr><td class="aws">бульвар</td><td>510</td><td>0.3 %</td></tr> <tr><td class="aws">позвоночника</td><td>507</td><td>0.3 %</td></tr> <tr><td class="aws">перелом</td><td>485</td><td>0.2 %</td></tr> <tr><td class="aws">коленного</td><td>481</td><td>0.2 %</td></tr> <tr><td class="aws">томография</td><td>473</td><td>0.2 %</td></tr> <tr><td class="aws">цены</td><td>468</td><td>0.2 %</td></tr> <tr><td class="aws">влок</td><td>468</td><td>0.2 %</td></tr> <tr><td class="aws">обследование</td><td>463</td><td>0.2 %</td></tr> <tr><td class="aws">что</td><td>461</td><td>0.2 %</td></tr> <tr><td class="aws">операция</td><td>460</td><td>0.2 %</td></tr> <tr><td class="aws">диагностический</td><td>460</td><td>0.2 %</td></tr> <tr><td class="aws">у</td><td>439</td><td>0.2 %</td></tr> <tr><td class="aws">кости</td><td>428</td><td>0.2 %</td></tr> <tr><td class="aws">с</td><td>424</td><td>0.2 %</td></tr> <tr><td class="aws">крови</td><td>417</td><td>0.2 %</td></tr> <tr><td class="aws">отделение</td><td>415</td><td>0.2 %</td></tr> <tr><td class="aws">для</td><td>401</td><td>0.2 %</td></tr> <tr><td class="aws">после</td><td>399</td><td>0.2 %</td></tr> <tr><td class="aws">стоимость</td><td>397</td><td>0.2 %</td></tr> <tr><td class="aws">стационар</td><td>392</td><td>0.2 %</td></tr> <tr><td class="aws">шейки</td><td>392</td><td>0.2 %</td></tr> <tr><td class="aws">рамн</td><td>390</td><td>0.2 %</td></tr> <tr><td class="aws">лечения</td><td>387</td><td>0.2 %</td></tr> <tr><td class="aws">отдела</td><td>385</td><td>0.2 %</td></tr> <tr><td class="aws">удаление</td><td>376</td><td>0.2 %</td></tr> <tr><td class="aws">сделать</td><td>349</td><td>0.2 %</td></tr> <tr><td class="aws">железы</td><td>339</td><td>0.2 %</td></tr> <tr><td class="aws">узи</td><td>307</td><td>0.1 %</td></tr> <tr><td class="aws">врач</td><td>307</td><td>0.1 %</td></tr> <tr><td class="aws">шейного</td><td>307</td><td>0.1 %</td></tr> <tr><td class="aws">компьютерная</td><td>296</td><td>0.1 %</td></tr> <tr><td class="aws">лазерное</td><td>295</td><td>0.1 %</td></tr> <tr><td class="aws">операции</td><td>295</td><td>0.1 %</td></tr> <tr><td class="aws">здравоохранения</td><td>294</td><td>0.1 %</td></tr> <tr><td class="aws">такое</td><td>285</td><td>0.1 %</td></tr> <tr><td class="aws">помощь</td><td>284</td><td>0.1 %</td></tr> <tr><td class="aws">можно</td><td>277</td><td>0.1 %</td></tr> <tr><td class="aws">облучение</td><td>276</td><td>0.1 %</td></tr> <tr><td class="aws">платная</td><td>270</td><td>0.1 %</td></tr> <tr><td class="aws">грыжи</td><td>265</td><td>0.1 %</td></tr> <tr><td class="aws">центры</td><td>262</td><td>0.1 %</td></tr> <tr><td class="aws">аллергия</td><td>262</td><td>0.1 %</td></tr> <tr><td class="aws">вакансии</td><td>262</td><td>0.1 %</td></tr> <tr><td class="aws">консультация</td><td>247</td><td>0.1 %</td></tr> <tr><td class="aws">симптомы</td><td>243</td><td>0.1 %</td></tr> <tr><td class="aws">дом</td><td>241</td><td>0.1 %</td></tr> <tr><td class="aws">Москве</td><td>240</td><td>0.1 %</td></tr> <tr><td class="aws">хирург</td><td>239</td><td>0.1 %</td></tr> <tr><td class="aws">мскт</td><td>236</td><td>0.1 %</td></tr> <tr><td class="aws">щитовидной</td><td>235</td><td>0.1 %</td></tr> <tr><td class="aws">яичника</td><td>233</td><td>0.1 %</td></tr> <tr><td class="aws">больницы</td><td>232</td><td>0.1 %</td></tr> <tr><td class="aws">скорая</td><td>230</td><td>0.1 %</td></tr> <tr><td class="aws">сосудов</td><td>226</td><td>0.1 %</td></tr> <tr><td class="aws">отек</td><td>225</td><td>0.1 %</td></tr> <tr><td class="aws">это</td><td>223</td><td>0.1 %</td></tr> <tr><td class="aws">лучевой</td><td>222</td><td>0.1 %</td></tr> <tr><td class="aws">отзывы</td><td>221</td><td>0.1 %</td></tr> <tr><td class="aws">эктропион</td><td>220</td><td>0.1 %</td></tr> <tr><td class="aws">внутривенное</td><td>218</td><td>0.1 %</td></tr> <tr><td class="aws">от</td><td>209</td><td>0.1 %</td></tr> <tr><td class="aws">№3</td><td>206</td><td>0.1 %</td></tr> <tr><td class="aws">www.ckbran.ru</td><td>204</td><td>0.1 %</td></tr> <tr><td class="aws">эндопротезирование</td><td>203</td><td>0.1 %</td></tr> <tr><td class="aws">ли</td><td>203</td><td>0.1 %</td></tr> <tr><td class="aws">кт</td><td>203</td><td>0.1 %</td></tr> <tr><td class="aws">невролог</td><td>202</td><td>0.1 %</td></tr> <tr><td class="aws">дому</td><td>200</td><td>0.1 %</td></tr> <tr><td class="aws">чем</td><td>199</td><td>0.1 %</td></tr> <tr><td class="aws">артроз</td><td>199</td><td>0.1 %</td></tr> <tr><td class="aws">тазобедренного</td><td>198</td><td>0.1 %</td></tr> <tr><td class="aws">признаки</td><td>191</td><td>0.1 %</td></tr> <tr><td class="aws">аллергии</td><td>190</td><td>0.1 %</td></tr> <tr><td class="aws">сколько</td><td>184</td><td>0.1 %</td></tr> <tr><td class="aws">российской</td><td>183</td><td>0.1 %</td></tr> <tr><td class="aws">ребенка</td><td>182</td><td>0.1 %</td></tr> <tr><td class="aws">терапия</td><td>182</td><td>0.1 %</td></tr> <tr><td class="aws">уздг</td><td>180</td><td>0.1 %</td></tr> <tr><td class="aws">1</td><td>179</td><td>0.1 %</td></tr> <tr><td class="aws">брюшной</td><td>179</td><td>0.1 %</td></tr> <tr><td class="aws">платные</td><td>179</td><td>0.1 %</td></tr> <tr><td class="aws">травматология</td><td>179</td><td>0.1 %</td></tr> <tr><td class="aws">почек</td><td>178</td><td>0.1 %</td></tr> <tr><td class="aws">паховая</td><td>173</td><td>0.1 %</td></tr> <tr><td class="aws">полости</td><td>172</td><td>0.1 %</td></tr> <tr><td class="aws">лапароскопия</td><td>169</td><td>0.1 %</td></tr> <tr><td class="aws">ишиалгия</td><td>169</td><td>0.1 %</td></tr> <tr><td class="aws">2</td><td>168</td><td>0.1 %</td></tr> <tr><td class="aws">поликлиники</td><td>167</td><td>0.1 %</td></tr> <tr><td class="aws">инсульта</td><td>167</td><td>0.1 %</td></tr> <tr><td class="aws">ангионевротический</td><td>165</td><td>0.1 %</td></tr> <tr><td class="aws">киста</td><td>164</td><td>0.1 %</td></tr> <tr><td class="aws">со</td><td>164</td><td>0.1 %</td></tr> <tr><td class="aws">больных</td><td>164</td><td>0.1 %</td></tr> <tr><td class="aws">опухоль</td><td>164</td><td>0.1 %</td></tr> <tr><td class="aws">ахиллобурсит</td><td>163</td><td>0 %</td></tr> <tr><td class="aws">почках</td><td>163</td><td>0 %</td></tr> <tr><td class="aws">Центральная</td><td>162</td><td>0 %</td></tr> <tr><td class="aws">хирургия</td><td>162</td><td>0 %</td></tr> <tr><td class="aws">болезнь</td><td>161</td><td>0 %</td></tr> <tr><td class="aws">онколог</td><td>159</td><td>0 %</td></tr> <tr><td class="aws">дерматолог</td><td>159</td><td>0 %</td></tr> <tr><td class="aws">полип</td><td>157</td><td>0 %</td></tr> <tr><td class="aws">медицинский</td><td>157</td><td>0 %</td></tr> <tr><td class="aws">организация</td><td>156</td><td>0 %</td></tr> <tr><td class="aws">яичников</td><td>156</td><td>0 %</td></tr> <tr><td class="aws">травы</td><td>154</td><td>0 %</td></tr> <tr><td class="aws">пупочная</td><td>154</td><td>0 %</td></tr> <tr><td class="aws">пястной</td><td>151</td><td>0 %</td></tr> <tr><td class="aws">Москва</td><td>148</td><td>0 %</td></tr> <tr><td class="aws">гастроэнтеролог</td><td>148</td><td>0 %</td></tr> <tr><td class="aws">асит</td><td>148</td><td>0 %</td></tr> <tr><td class="aws">МРТ</td><td>147</td><td>0 %</td></tr> <tr><td class="aws">стоит</td><td>144</td><td>0 %</td></tr> <tr><td class="aws">мужчин</td><td>143</td><td>0 %</td></tr> <tr><td class="aws">условиях</td><td>142</td><td>0 %</td></tr> <tr><td class="aws">камней</td><td>141</td><td>0 %</td></tr> <tr><td class="aws">врача</td><td>140</td><td>0 %</td></tr> <tr><td class="aws">пройти</td><td>140</td><td>0 %</td></tr> <tr><td class="aws">без</td><td>137</td><td>0 %</td></tr> <tr><td class="aws">гематометра</td><td>136</td><td>0 %</td></tr> <tr><td class="aws">эндоскопия</td><td>136</td><td>0 %</td></tr> <tr><td class="aws">здоровье</td><td>135</td><td>0 %</td></tr> <tr><td class="aws">домашних</td><td>134</td><td>0 %</td></tr> <tr><td class="aws">печени</td><td>133</td><td>0 %</td></tr> <tr><td class="aws">услуги</td><td>133</td><td>0 %</td></tr> <tr><td class="aws">литовском</td><td>130</td><td>0 %</td></tr> <tr><td class="aws">общественное</td><td>129</td><td>0 %</td></tr> <tr><td class="aws">смещением</td><td>128</td><td>0 %</td></tr> <tr><td class="aws">сосудистый</td><td>128</td><td>0 %</td></tr> <tr><td class="aws">лечению</td><td>127</td><td>0 %</td></tr> <tr><td class="aws">гигрома</td><td>127</td><td>0 %</td></tr> <tr><td class="aws">сердца</td><td>126</td><td>0 %</td></tr> <tr><td class="aws">диагностика</td><td>124</td><td>0 %</td></tr> <tr><td class="aws">головы</td><td>124</td><td>0 %</td></tr> <tr><td class="aws">миома</td><td>123</td><td>0 %</td></tr> <tr><td class="aws">холецистит</td><td>122</td><td>0 %</td></tr> <tr><td class="aws">гиперплазии</td><td>122</td><td>0 %</td></tr> <tr><td class="aws">удалению</td><td>122</td><td>0 %</td></tr> <tr><td class="aws">хирургии</td><td>121</td><td>0 %</td></tr> <tr><td class="aws">организации</td><td>120</td><td>0 %</td></tr> <tr><td class="aws">стационаре</td><td>119</td><td>0 %</td></tr> <tr><td class="aws">конечностей</td><td>118</td><td>0 %</td></tr> <tr><td class="aws">психоневролог</td><td>118</td><td>0 %</td></tr> <tr><td class="aws">Российской</td><td>117</td><td>0 %</td></tr> <tr><td class="aws">1а</td><td>117</td><td>0 %</td></tr> <tr><td class="aws">хронический</td><td>116</td><td>0 %</td></tr> <tr><td class="aws">андрей</td><td>116</td><td>0 %</td></tr> <tr><td class="aws">медицинские</td><td>115</td><td>0 %</td></tr> <tr><td class="aws">академия</td><td>115</td><td>0 %</td></tr> <tr><td class="aws">к</td><td>114</td><td>0 %</td></tr> <tr><td class="aws">сорные</td><td>114</td><td>0 %</td></tr> <tr><td class="aws">больнице</td><td>112</td><td>0 %</td></tr> <tr><td class="aws">сайт</td><td>112</td><td>0 %</td></tr> <tr><td class="aws">болезни</td><td>111</td><td>0 %</td></tr> <tr><td class="aws">лечебно-диагностический</td><td>110</td><td>0 %</td></tr> <tr><td class="aws">нижних</td><td>110</td><td>0 %</td></tr> <tr><td class="aws">пузыря</td><td>108</td><td>0 %</td></tr> <tr><td class="aws">желудка</td><td>106</td><td>0 %</td></tr> <tr><td class="aws">травматологии</td><td>106</td><td>0 %</td></tr> <tr><td class="aws">прием</td><td>106</td><td>0 %</td></tr> <tr><td class="aws">пол</td><td>105</td><td>0 %</td></tr> <tr><td class="aws">гистерорезектоскопия</td><td>105</td><td>0 %</td></tr> <tr><td class="aws">№</td><td>104</td><td>0 %</td></tr> <tr><td class="aws">кисты</td><td>103</td><td>0 %</td></tr> <tr><td class="aws">детская</td><td>103</td><td>0 %</td></tr> <tr><td class="aws">лучшие</td><td>101</td><td>0 %</td></tr> <tr><td class="aws">организма</td><td>100</td><td>0 %</td></tr> <tr><td class="aws">стоматология</td><td>100</td><td>0 %</td></tr> <tr><td class="aws">перелома</td><td>100</td><td>0 %</td></tr> <tr><td class="aws">из</td><td>98</td><td>0 %</td></tr> <tr><td class="aws">бульваре</td><td>97</td><td>0 %</td></tr> <tr><td class="aws">г.</td><td>97</td><td>0 %</td></tr> <tr><td class="aws">шеи</td><td>97</td><td>0 %</td></tr> <tr><td class="aws">кисти</td><td>97</td><td>0 %</td></tr> <tr><td class="aws">перевозка</td><td>97</td><td>0 %</td></tr> <tr><td class="aws">руки</td><td>97</td><td>0 %</td></tr> <tr><td class="aws">полное</td><td>97</td><td>0 %</td></tr> <tr><td class="aws">перегородки</td><td>95</td><td>0 %</td></tr> <tr><td class="aws">детский</td><td>94</td><td>0 %</td></tr> <tr><td class="aws">железистая</td><td>94</td><td>0 %</td></tr> <tr><td class="aws">маммография</td><td>94</td><td>0 %</td></tr> <tr><td class="aws">лдц</td><td>91</td><td>0 %</td></tr> <tr><td class="aws">делают</td><td>91</td><td>0 %</td></tr> <tr><td class="aws">таза</td><td>91</td><td>0 %</td></tr> <tr><td class="aws">метро</td><td>91</td><td>0 %</td></tr> <tr><td class="aws">восстановительного</td><td>91</td><td>0 %</td></tr> <tr><td class="aws">лазером</td><td>89</td><td>0 %</td></tr> <tr><td class="aws">лучше</td><td>89</td><td>0 %</td></tr> <tr><td class="aws">трещина</td><td>89</td><td>0 %</td></tr> <tr><td class="aws">носовой</td><td>89</td><td>0 %</td></tr> <tr><td class="aws">Поликлиника</td><td>88</td><td>0 %</td></tr> <tr><td class="aws">беременности</td><td>88</td><td>0 %</td></tr> <tr><td class="aws">делать</td><td>88</td><td>0 %</td></tr> <tr><td class="aws">заболевания</td><td>86</td><td>0 %</td></tr> <tr><td class="aws">бородавки</td><td>86</td><td>0 %</td></tr> <tr><td class="aws">эрозия</td><td>86</td><td>0 %</td></tr> <tr><td class="aws">вен</td><td>85</td><td>0 %</td></tr> <tr><td class="aws">б-р</td><td>85</td><td>0 %</td></tr> <tr><td class="aws">ул</td><td>85</td><td>0 %</td></tr> <tr><td class="aws">легких</td><td>84</td><td>0 %</td></tr> <tr><td class="aws">вызов</td><td>84</td><td>0 %</td></tr> <tr><td class="aws">малого</td><td>84</td><td>0 %</td></tr> <tr><td class="aws">желчного</td><td>83</td><td>0 %</td></tr> <tr><td class="aws">почки</td><td>83</td><td>0 %</td></tr> <tr><td class="aws">анальная</td><td>83</td><td>0 %</td></tr> <tr><td class="aws">паховой</td><td>83</td><td>0 %</td></tr> <tr><td class="aws">литотрипсия</td><td>82</td><td>0 %</td></tr> <tr><td class="aws">камни</td><td>82</td><td>0 %</td></tr> <tr><td class="aws">взрослых</td><td>82</td><td>0 %</td></tr> <tr><td class="aws">форум</td><td>82</td><td>0 %</td></tr> <tr><td class="aws">переломе</td><td>81</td><td>0 %</td></tr> <tr><td class="aws">дорсопатия</td><td>80</td><td>0 %</td></tr> <tr><td class="aws">клинике</td><td>80</td><td>0 %</td></tr> <tr><td class="aws">области</td><td>79</td><td>0 %</td></tr> <tr><td class="aws">кардиолог</td><td>79</td><td>0 %</td></tr> <tr><td class="aws">узкое</td><td>79</td><td>0 %</td></tr> <tr><td class="aws">опухоли</td><td>79</td><td>0 %</td></tr> <tr><td class="aws">отделения</td><td>79</td><td>0 %</td></tr> <tr><td class="aws">или</td><td>79</td><td>0 %</td></tr> <tr><td class="aws">артроскопия</td><td>79</td><td>0 %</td></tr> <tr><td class="aws">терапевт</td><td>78</td><td>0 %</td></tr> <tr><td class="aws">дома</td><td>76</td><td>0 %</td></tr> <tr><td class="aws">ангиография</td><td>76</td><td>0 %</td></tr> <tr><td class="aws">операцию</td><td>75</td><td>0 %</td></tr> <tr><td class="aws">адрес</td><td>75</td><td>0 %</td></tr> <tr><td class="aws">магнитно-резонансная</td><td>75</td><td>0 %</td></tr> <tr><td class="aws">бартолиновой</td><td>75</td><td>0 %</td></tr> <tr><td class="aws">клиниках</td><td>74</td><td>0 %</td></tr> <tr><td class="aws">Академии</td><td>73</td><td>0 %</td></tr> <tr><td class="aws">обучение</td><td>73</td><td>0 %</td></tr> <tr><td class="aws">онколога</td><td>73</td><td>0 %</td></tr> <tr><td class="aws">травматолог</td><td>73</td><td>0 %</td></tr> <tr><td class="aws">атерома</td><td>73</td><td>0 %</td></tr> <tr><td class="aws">стационары</td><td>72</td><td>0 %</td></tr> <tr><td class="aws">коронарография</td><td>72</td><td>0 %</td></tr> <tr><td class="aws">официальный</td><td>72</td><td>0 %</td></tr> <tr><td class="aws">г</td><td>72</td><td>0 %</td></tr> <tr><td class="aws">колоноскопия</td><td>70</td><td>0 %</td></tr> <tr><td class="aws">геморой</td><td>70</td><td>0 %</td></tr> <tr><td class="aws">копчика</td><td>70</td><td>0 %</td></tr> <tr><td class="aws">гинеколог</td><td>70</td><td>0 %</td></tr> <tr><td class="aws">артроза</td><td>70</td><td>0 %</td></tr> <tr><td class="aws">лор</td><td>69</td><td>0 %</td></tr> <tr><td class="aws">липома</td><td>69</td><td>0 %</td></tr> <tr><td class="aws">wr</td><td>69</td><td>0 %</td></tr> <tr><td class="aws">трещины</td><td>68</td><td>0 %</td></tr> <tr><td class="aws">институт</td><td>68</td><td>0 %</td></tr> <tr><td class="aws">нии</td><td>68</td><td>0 %</td></tr> <tr><td class="aws">Ясенево</td><td>68</td><td>0 %</td></tr> <tr><td class="aws">причины</td><td>68</td><td>0 %</td></tr> <tr><td class="aws">суставов</td><td>68</td><td>0 %</td></tr> <tr><td class="aws">гемороя</td><td>68</td><td>0 %</td></tr> <tr><td class="aws">ортопед</td><td>68</td><td>0 %</td></tr> <tr><td class="aws">дробление</td><td>67</td><td>0 %</td></tr> <tr><td class="aws">хирурга</td><td>67</td><td>0 %</td></tr> <tr><td class="aws">стопы</td><td>67</td><td>0 %</td></tr> <tr><td class="aws">реабилитация</td><td>66</td><td>0 %</td></tr> <tr><td class="aws">гинекология</td><td>66</td><td>0 %</td></tr> <tr><td class="aws">неотложная</td><td>66</td><td>0 %</td></tr> <tr><td class="aws">поликлинике</td><td>66</td><td>0 %</td></tr> <tr><td class="aws">дневной</td><td>66</td><td>0 %</td></tr> <tr><td class="aws">дюпюитрена</td><td>66</td><td>0 %</td></tr> <tr><td class="aws">беременность</td><td>66</td><td>0 %</td></tr> <tr><td class="aws">костей</td><td>66</td><td>0 %</td></tr> <tr><td class="aws">контрактура</td><td>66</td><td>0 %</td></tr> <tr><td class="aws">гистероскопия</td><td>66</td><td>0 %</td></tr> <tr><td class="aws">пыльцу</td><td>66</td><td>0 %</td></tr> <tr><td class="aws">hfy</td><td>66</td><td>0 %</td></tr> <tr><td class="aws">экг</td><td>65</td><td>0 %</td></tr> <tr><td class="aws">пупочной</td><td>64</td><td>0 %</td></tr> <tr><td class="aws">реанимобиль</td><td>64</td><td>0 %</td></tr> <tr><td class="aws">В</td><td>63</td><td>0 %</td></tr> <tr><td class="aws">пола</td><td>63</td><td>0 %</td></tr> <tr><td class="aws">какие</td><td>63</td><td>0 %</td></tr> <tr><td class="aws">платный</td><td>63</td><td>0 %</td></tr> <tr><td class="aws">гкб</td><td>63</td><td>0 %</td></tr> <tr><td class="aws">проспект</td><td>63</td><td>0 %</td></tr> <tr><td class="aws">проктолог</td><td>62</td><td>0 %</td></tr> <tr><td class="aws">детей</td><td>62</td><td>0 %</td></tr> <tr><td class="aws">цирроз</td><td>62</td><td>0 %</td></tr> <tr><td class="aws">мультиспиральная</td><td>62</td><td>0 %</td></tr> <tr><td class="aws">женщин</td><td>62</td><td>0 %</td></tr> <tr><td class="aws">медицинских</td><td>62</td><td>0 %</td></tr> <tr><td class="aws">о</td><td>62</td><td>0 %</td></tr> <tr><td class="aws">невролога</td><td>61</td><td>0 %</td></tr> <tr><td class="aws">узнать</td><td>61</td><td>0 %</td></tr> <tr><td class="aws">отит</td><td>61</td><td>0 %</td></tr> <tr><td class="aws">ул.</td><td>61</td><td>0 %</td></tr> <tr><td class="aws">носа</td><td>61</td><td>0 %</td></tr> <tr><td class="aws">http</td><td>60</td><td>0 %</td></tr> <tr><td class="aws">типичном</td><td>60</td><td>0 %</td></tr> <tr><td class="aws">медицинское</td><td>60</td><td>0 %</td></tr> <tr><td class="aws">мед</td><td>60</td><td>0 %</td></tr> <tr><td class="aws">евгеньевич</td><td>60</td><td>0 %</td></tr> <tr><td class="aws">телефон</td><td>60</td><td>0 %</td></tr> <tr><td class="aws">Москвы</td><td>60</td><td>0 %</td></tr> <tr><td class="aws">полипы</td><td>60</td><td>0 %</td></tr> <tr><td class="aws">капельница</td><td>59</td><td>0 %</td></tr> <tr><td class="aws">д.1а</td><td>59</td><td>0 %</td></tr> <tr><td class="aws">кишки</td><td>59</td><td>0 %</td></tr> <tr><td class="aws">юрий</td><td>59</td><td>0 %</td></tr> <tr><td class="aws">ударно-волновая</td><td>59</td><td>0 %</td></tr> <tr><td class="aws">разрыв</td><td>58</td><td>0 %</td></tr> <tr><td class="aws">органов</td><td>58</td><td>0 %</td></tr> <tr><td class="aws">бедра</td><td>58</td><td>0 %</td></tr> <tr><td class="aws">грыжу</td><td>58</td><td>0 %</td></tr> <tr><td class="aws">месте</td><td>57</td><td>0 %</td></tr> <tr><td class="aws">ключицы</td><td>57</td><td>0 %</td></tr> <tr><td class="aws">шоссе</td><td>57</td><td>0 %</td></tr> <tr><td class="aws">определение</td><td>57</td><td>0 %</td></tr> <tr><td class="aws">помощи</td><td>57</td><td>0 %</td></tr> <tr><td class="aws">пяточной</td><td>56</td><td>0 %</td></tr> <tr><td class="aws">сертификат</td><td>56</td><td>0 %</td></tr> <tr><td class="aws">осмотр</td><td>56</td><td>0 %</td></tr> <tr><td class="aws">эндоскопическое</td><td>56</td><td>0 %</td></tr> <tr><td class="aws">Лечение</td><td>56</td><td>0 %</td></tr> <tr><td class="aws">мастопатия</td><td>56</td><td>0 %</td></tr> <tr><td class="aws">железе</td><td>55</td><td>0 %</td></tr> <tr><td class="aws">госпитализация</td><td>55</td><td>0 %</td></tr> <tr><td class="aws">вальгус</td><td>55</td><td>0 %</td></tr> <tr><td class="aws">исследование</td><td>55</td><td>0 %</td></tr> <tr><td class="aws">мениска</td><td>55</td><td>0 %</td></tr> <tr><td class="aws">халюс</td><td>55</td><td>0 %</td></tr> <tr><td class="aws">рф</td><td>55</td><td>0 %</td></tr> <tr><td class="aws">пиелонефрит</td><td>54</td><td>0 %</td></tr> <tr><td class="aws">медицинская</td><td>54</td><td>0 %</td></tr> <tr><td class="aws">диагностические</td><td>54</td><td>0 %</td></tr> <tr><td class="aws">Больница</td><td>54</td><td>0 %</td></tr> <tr><td class="aws">ортопедии</td><td>54</td><td>0 %</td></tr> <tr><td class="aws">зоб</td><td>54</td><td>0 %</td></tr> <tr><td class="aws">шпоры</td><td>54</td><td>0 %</td></tr> <tr><td class="aws">платное</td><td>54</td><td>0 %</td></tr> <tr><td class="aws">девис</td><td>54</td><td>0 %</td></tr> <tr><td class="aws">поликистоз</td><td>53</td><td>0 %</td></tr> <tr><td class="aws">трав</td><td>53</td><td>0 %</td></tr> <tr><td class="aws">какой</td><td>53</td><td>0 %</td></tr> <tr><td class="aws">катаракты</td><td>53</td><td>0 %</td></tr> <tr><td class="aws">живота</td><td>52</td><td>0 %</td></tr> <tr><td class="aws">вылечить</td><td>52</td><td>0 %</td></tr> <tr><td class="aws">колена</td><td>52</td><td>0 %</td></tr> <tr><td class="aws">пальца</td><td>52</td><td>0 %</td></tr> <tr><td class="aws">лечат</td><td>52</td><td>0 %</td></tr> <tr><td class="aws">м</td><td>52</td><td>0 %</td></tr> <tr><td class="aws">ногтей</td><td>52</td><td>0 %</td></tr> <tr><td class="aws">врачи</td><td>52</td><td>0 %</td></tr> <tr><td class="aws">если</td><td>51</td><td>0 %</td></tr> <tr><td class="aws">государственные</td><td>51</td><td>0 %</td></tr> <tr><td class="aws">ст.м</td><td>51</td><td>0 %</td></tr> <tr><td class="aws">лечении</td><td>51</td><td>0 %</td></tr> <tr><td class="aws">академическая</td><td>51</td><td>0 %</td></tr> <tr><td class="aws">ленинский</td><td>51</td><td>0 %</td></tr> <tr><td class="aws">артерий</td><td>50</td><td>0 %</td></tr> <tr><td class="aws">анализ</td><td>50</td><td>0 %</td></tr> <tr><td class="aws">обследования</td><td>50</td><td>0 %</td></tr> <tr><td class="aws">квинке</td><td>50</td><td>0 %</td></tr> <tr><td class="aws">Литовский</td><td>50</td><td>0 %</td></tr> <tr><td class="aws">молочной</td><td>50</td><td>0 %</td></tr> <tr><td class="aws">дисплазия</td><td>50</td><td>0 %</td></tr> <tr><td class="aws">стационара</td><td>50</td><td>0 %</td></tr> <tr><td class="aws">гистеросальпингография</td><td>50</td><td>0 %</td></tr> <tr><td class="aws">линии</td><td>50</td><td>0 %</td></tr> <tr><td class="aws">скорой</td><td>49</td><td>0 %</td></tr> <tr><td class="aws">методы</td><td>49</td><td>0 %</td></tr> <tr><td class="aws">белой</td><td>49</td><td>0 %</td></tr> <tr><td class="aws">инсульт</td><td>49</td><td>0 %</td></tr> <tr><td class="aws">наружный</td><td>49</td><td>0 %</td></tr> <tr><td class="aws">недорого</td><td>49</td><td>0 %</td></tr> <tr><td class="aws">шейном</td><td>49</td><td>0 %</td></tr> <tr><td class="aws">12</td><td>48</td><td>0 %</td></tr> <tr><td class="aws">Клиники</td><td>48</td><td>0 %</td></tr> <tr><td class="aws">отделе</td><td>48</td><td>0 %</td></tr> <tr><td class="aws">здоровья</td><td>48</td><td>0 %</td></tr> <tr><td class="aws">флеболог</td><td>48</td><td>0 %</td></tr> <tr><td class="aws">связок</td><td>48</td><td>0 %</td></tr> <tr><td class="aws">гинекологии</td><td>48</td><td>0 %</td></tr> <tr><td class="aws">кардиолога</td><td>48</td><td>0 %</td></tr> <tr><td class="aws">полипа</td><td>48</td><td>0 %</td></tr> <tr><td class="aws">последствия</td><td>48</td><td>0 %</td></tr> <tr><td class="aws">бронхоскопия</td><td>47</td><td>0 %</td></tr> <tr><td class="aws">круглосуточно</td><td>47</td><td>0 %</td></tr> <tr><td class="aws">владимирович</td><td>47</td><td>0 %</td></tr> <tr><td class="aws">боль</td><td>47</td><td>0 %</td></tr> <tr><td class="aws">МСКТ</td><td>46</td><td>0 %</td></tr> <tr><td class="aws">Цкб</td><td>46</td><td>0 %</td></tr> <tr><td class="aws">узловой</td><td>46</td><td>0 %</td></tr> <tr><td class="aws">гастроэнтерологии</td><td>46</td><td>0 %</td></tr> <tr><td class="aws">клинической</td><td>46</td><td>0 %</td></tr> <tr><td class="aws">удалить</td><td>46</td><td>0 %</td></tr> <tr><td class="aws">одинцово</td><td>45</td><td>0 %</td></tr> <tr><td class="aws">первые</td><td>45</td><td>0 %</td></tr> <tr><td class="aws">тест</td><td>45</td><td>0 %</td></tr> <tr><td class="aws">Наук</td><td>45</td><td>0 %</td></tr> <tr><td class="aws">аллерголог</td><td>44</td><td>0 %</td></tr> <tr><td class="aws">пояснично-крестцового</td><td>44</td><td>0 %</td></tr> <tr><td class="aws">микрохирургия</td><td>44</td><td>0 %</td></tr> <tr><td class="aws">работа</td><td>44</td><td>0 %</td></tr> <tr><td class="aws">гончаров</td><td>44</td><td>0 %</td></tr> <tr><td class="aws">кистома</td><td>44</td><td>0 %</td></tr> <tr><td class="aws">курсы</td><td>44</td><td>0 %</td></tr> <tr><td class="aws">медицина</td><td>44</td><td>0 %</td></tr> <tr><td class="aws">есть</td><td>44</td><td>0 %</td></tr> <tr><td class="aws">определить</td><td>44</td><td>0 %</td></tr> <tr><td class="aws">шпора</td><td>44</td><td>0 %</td></tr> <tr><td class="aws">гастроскопия</td><td>44</td><td>0 %</td></tr> <tr><td class="aws">народными</td><td>43</td><td>0 %</td></tr> <tr><td class="aws">сдать</td><td>43</td><td>0 %</td></tr> <tr><td class="aws">адреса</td><td>43</td><td>0 %</td></tr> <tr><td class="aws">-</td><td>43</td><td>0 %</td></tr> <tr><td class="aws">5</td><td>43</td><td>0 %</td></tr> <tr><td class="aws">боли</td><td>43</td><td>0 %</td></tr> <tr><td class="aws">степени</td><td>43</td><td>0 %</td></tr> <tr><td class="aws">проспекте</td><td>43</td><td>0 %</td></tr> <tr><td class="aws">4</td><td>43</td><td>0 %</td></tr> <tr><td class="aws">улица</td><td>42</td><td>0 %</td></tr> <tr><td class="aws">российская</td><td>42</td><td>0 %</td></tr> <tr><td class="aws">ленинском</td><td>42</td><td>0 %</td></tr> <tr><td class="aws">сканирование</td><td>42</td><td>0 %</td></tr> <tr><td class="aws">офтальмолог</td><td>42</td><td>0 %</td></tr> <tr><td class="aws">уролог</td><td>42</td><td>0 %</td></tr> <tr><td class="aws">кость</td><td>42</td><td>0 %</td></tr> <tr><td class="aws">больницу</td><td>42</td><td>0 %</td></tr> <tr><td class="aws">абсцесс</td><td>42</td><td>0 %</td></tr> <tr><td class="aws">опущение</td><td>41</td><td>0 %</td></tr> <tr><td class="aws">удаления</td><td>41</td><td>0 %</td></tr> <tr><td class="aws">криз</td><td>41</td><td>0 %</td></tr> <tr><td class="aws">гигромы</td><td>41</td><td>0 %</td></tr> <tr><td class="aws">за</td><td>41</td><td>0 %</td></tr> <tr><td class="aws">демиелинизирующие</td><td>41</td><td>0 %</td></tr> <tr><td class="aws">кишечника</td><td>41</td><td>0 %</td></tr> <tr><td class="aws">профессор</td><td>41</td><td>0 %</td></tr> <tr><td class="aws">хороший</td><td>41</td><td>0 %</td></tr> <tr><td class="aws">средствами</td><td>41</td><td>0 %</td></tr> <tr><td class="aws">пяточная</td><td>40</td><td>0 %</td></tr> <tr><td class="aws">родионов</td><td>40</td><td>0 %</td></tr> <tr><td class="aws">капсульная</td><td>40</td><td>0 %</td></tr> <tr><td class="aws">кровь</td><td>40</td><td>0 %</td></tr> <tr><td class="aws">гипертонический</td><td>40</td><td>0 %</td></tr> <tr><td class="aws">гиперпластический</td><td>40</td><td>0 %</td></tr> <tr><td class="aws">рентген</td><td>40</td><td>0 %</td></tr> <tr><td class="aws">врт</td><td>40</td><td>0 %</td></tr> <tr><td class="aws">анализы</td><td>40</td><td>0 %</td></tr> <tr><td class="aws">лазерная</td><td>40</td><td>0 %</td></tr> <tr><td class="aws">округ</td><td>39</td><td>0 %</td></tr> <tr><td class="aws">травмотология</td><td>39</td><td>0 %</td></tr> <tr><td class="aws">простаты</td><td>39</td><td>0 %</td></tr> <tr><td class="aws">пожилых</td><td>39</td><td>0 %</td></tr> <tr><td class="aws">глаза</td><td>39</td><td>0 %</td></tr> <tr><td class="aws">напряжения</td><td>39</td><td>0 %</td></tr> <tr><td class="aws">учреждение</td><td>39</td><td>0 %</td></tr> <tr><td class="aws">александрович</td><td>39</td><td>0 %</td></tr> <tr><td class="aws">не</td><td>39</td><td>0 %</td></tr> <tr><td class="aws">эко</td><td>38</td><td>0 %</td></tr> <tr><td class="aws">пункция</td><td>38</td><td>0 %</td></tr> <tr><td class="aws">больницах</td><td>38</td><td>0 %</td></tr> <tr><td class="aws">вертебрология</td><td>38</td><td>0 %</td></tr> <tr><td class="aws">вертебрологии</td><td>38</td><td>0 %</td></tr> <tr><td class="aws">частое</td><td>38</td><td>0 %</td></tr> <tr><td class="aws">эндоузи</td><td>38</td><td>0 %</td></tr> <tr><td class="aws">бородавок</td><td>38</td><td>0 %</td></tr> <tr><td class="aws">сухожилия</td><td>38</td><td>0 %</td></tr> <tr><td class="aws">цкбран</td><td>38</td><td>0 %</td></tr> <tr><td class="aws">мочеиспускание</td><td>37</td><td>0 %</td></tr> <tr><td class="aws">м.</td><td>37</td><td>0 %</td></tr> <tr><td class="aws">Диагностический</td><td>37</td><td>0 %</td></tr> <tr><td class="aws">стентирование</td><td>37</td><td>0 %</td></tr> <tr><td class="aws">клиник</td><td>37</td><td>0 %</td></tr> <tr><td class="aws">отдел</td><td>37</td><td>0 %</td></tr> <tr><td class="aws">голеностопного</td><td>37</td><td>0 %</td></tr> <tr><td class="aws">ээг</td><td>37</td><td>0 %</td></tr> <tr><td class="aws">павел</td><td>37</td><td>0 %</td></tr> <tr><td class="aws">людей</td><td>37</td><td>0 %</td></tr> <tr><td class="aws">хроническая</td><td>37</td><td>0 %</td></tr> <tr><td class="aws">купить</td><td>37</td><td>0 %</td></tr> <tr><td class="aws">фгбуз</td><td>36</td><td>0 %</td></tr> <tr><td class="aws">обследовать</td><td>36</td><td>0 %</td></tr> <tr><td class="aws">воспаление</td><td>36</td><td>0 %</td></tr> <tr><td class="aws">бесплатно</td><td>36</td><td>0 %</td></tr> <tr><td class="aws">ортопедия</td><td>36</td><td>0 %</td></tr> <tr><td class="aws">анальной</td><td>36</td><td>0 %</td></tr> <tr><td class="aws">рак</td><td>36</td><td>0 %</td></tr> <tr><td class="aws">елена</td><td>36</td><td>0 %</td></tr> <tr><td class="aws">глубоких</td><td>36</td><td>0 %</td></tr> <tr><td class="aws">государственная</td><td>36</td><td>0 %</td></tr> <tr><td class="aws">всего</td><td>36</td><td>0 %</td></tr> <tr><td class="aws">Медицинские</td><td>36</td><td>0 %</td></tr> <tr><td class="aws">Фотиевой</td><td>36</td><td>0 %</td></tr> <tr><td class="aws">хасанович</td><td>36</td><td>0 %</td></tr> <tr><td class="aws">лучшая</td><td>36</td><td>0 %</td></tr> <tr><td class="aws">ринит</td><td>35</td><td>0 %</td></tr> <tr><td class="aws">подольске</td><td>35</td><td>0 %</td></tr> <tr><td class="aws">во</td><td>35</td><td>0 %</td></tr> <tr><td class="aws">эндоскопии</td><td>35</td><td>0 %</td></tr> <tr><td class="aws">миомы</td><td>35</td><td>0 %</td></tr> <tr><td class="aws">энцефалопатия</td><td>35</td><td>0 %</td></tr> <tr><td class="aws">коксартроз</td><td>35</td><td>0 %</td></tr> <tr><td class="aws">дуплексное</td><td>35</td><td>0 %</td></tr> <tr><td class="aws">валерьевич</td><td>35</td><td>0 %</td></tr> <tr><td class="aws">почке</td><td>35</td><td>0 %</td></tr> <tr><td class="aws">железа</td><td>35</td><td>0 %</td></tr> <tr><td class="aws">кистомы</td><td>35</td><td>0 %</td></tr> <tr><td class="aws">комплексное</td><td>35</td><td>0 %</td></tr> <tr><td class="aws">острый</td><td>35</td><td>0 %</td></tr> <tr><td class="aws">ðàí</td><td>35</td><td>0 %</td></tr> <tr><td class="aws">сухожилий</td><td>34</td><td>0 %</td></tr> <tr><td class="aws">детские</td><td>34</td><td>0 %</td></tr> <tr><td class="aws">получить</td><td>34</td><td>0 %</td></tr> <tr><td class="aws">лёгких</td><td>34</td><td>0 %</td></tr> <tr><td class="aws">прямой</td><td>34</td><td>0 %</td></tr> <tr><td class="aws">пястных</td><td>34</td><td>0 %</td></tr> <tr><td class="aws">ишемия</td><td>34</td><td>0 %</td></tr> <tr><td class="aws">сорных</td><td>34</td><td>0 %</td></tr> <tr><td class="aws">фотодинамическая</td><td>34</td><td>0 %</td></tr> <tr><td class="aws">свищ</td><td>34</td><td>0 %</td></tr> <tr><td class="aws">ног</td><td>34</td><td>0 %</td></tr> <tr><td class="aws">консультации</td><td>34</td><td>0 %</td></tr> <tr><td class="aws">фото</td><td>34</td><td>0 %</td></tr> <tr><td class="aws">александр</td><td>34</td><td>0 %</td></tr> <tr><td class="aws">лежачих</td><td>34</td><td>0 %</td></tr> <tr><td class="aws">вертебропластика</td><td>34</td><td>0 %</td></tr> <tr><td class="aws">россии</td><td>34</td><td>0 %</td></tr> <tr><td class="aws">моники</td><td>33</td><td>0 %</td></tr> <tr><td class="aws">биопсия</td><td>33</td><td>0 %</td></tr> <tr><td class="aws">состояния</td><td>33</td><td>0 %</td></tr> <tr><td class="aws">грыже</td><td>33</td><td>0 %</td></tr> <tr><td class="aws">психоневролога</td><td>33</td><td>0 %</td></tr> <tr><td class="aws">головокружение</td><td>33</td><td>0 %</td></tr> <tr><td class="aws">плазмаферез</td><td>33</td><td>0 %</td></tr> <tr><td class="aws">платно</td><td>33</td><td>0 %</td></tr> <tr><td class="aws">эндокринолог</td><td>33</td><td>0 %</td></tr> <tr><td class="aws">попасть</td><td>33</td><td>0 %</td></tr> <tr><td class="aws">лечит</td><td>33</td><td>0 %</td></tr> <tr><td class="aws">им</td><td>33</td><td>0 %</td></tr> <tr><td class="aws">№2</td><td>33</td><td>0 %</td></tr> <tr><td class="aws">осмотров</td><td>33</td><td>0 %</td></tr> <tr><td class="aws">фурункул</td><td>33</td><td>0 %</td></tr> <tr><td class="aws">фиброаденома</td><td>32</td><td>0 %</td></tr> <tr><td class="aws">добраться</td><td>32</td><td>0 %</td></tr> <tr><td class="aws">клара</td><td>32</td><td>0 %</td></tr> <tr><td class="aws">искривление</td><td>32</td><td>0 %</td></tr> <tr><td class="aws">стационарное</td><td>32</td><td>0 %</td></tr> <tr><td class="aws">внематочная</td><td>32</td><td>0 %</td></tr> <tr><td class="aws">евгений</td><td>32</td><td>0 %</td></tr> <tr><td class="aws">поликлинника</td><td>32</td><td>0 %</td></tr> <tr><td class="aws">Где</td><td>32</td><td>0 %</td></tr> <tr><td class="aws">канала</td><td>32</td><td>0 %</td></tr> <tr><td class="aws">сетчатки</td><td>32</td><td>0 %</td></tr> <tr><td class="aws">отделении</td><td>32</td><td>0 %</td></tr> <tr><td class="aws">георгиевна</td><td>32</td><td>0 %</td></tr> <tr><td class="aws">синдром</td><td>32</td><td>0 %</td></tr> <tr><td class="aws">глаукомы</td><td>32</td><td>0 %</td></tr> <tr><td class="aws">переподготовка</td><td>32</td><td>0 %</td></tr> <tr><td class="aws">до</td><td>32</td><td>0 %</td></tr> <tr><td class="aws">может</td><td>32</td><td>0 %</td></tr> <tr><td class="aws">стадии</td><td>32</td><td>0 %</td></tr> <tr><td class="aws">тонзиллит</td><td>31</td><td>0 %</td></tr> <tr><td class="aws">лечебно</td><td>31</td><td>0 %</td></tr> <tr><td class="aws">//www.ckbran.ru/</td><td>31</td><td>0 %</td></tr> <tr><td class="aws">найти</td><td>31</td><td>0 %</td></tr> <tr><td class="aws">доктор</td><td>31</td><td>0 %</td></tr> <tr><td class="aws">районе</td><td>31</td><td>0 %</td></tr> <tr><td class="aws">его</td><td>31</td><td>0 %</td></tr> <tr><td class="aws">узлов</td><td>31</td><td>0 %</td></tr> <tr><td class="aws">урология</td><td>31</td><td>0 %</td></tr> <tr><td class="aws">фаланги</td><td>31</td><td>0 %</td></tr> <tr><td class="aws">заболевание</td><td>31</td><td>0 %</td></tr> <tr><td class="aws">бородавка</td><td>31</td><td>0 %</td></tr> <tr><td class="aws">7</td><td>31</td><td>0 %</td></tr> <tr><td class="aws">наружного</td><td>31</td><td>0 %</td></tr> <tr><td class="aws">моче</td><td>31</td><td>0 %</td></tr> <tr><td class="aws">травматологическое</td><td>31</td><td>0 %</td></tr> <tr><td class="aws">лучевая</td><td>31</td><td>0 %</td></tr> <tr><td class="aws">город</td><td>31</td><td>0 %</td></tr> <tr><td class="aws">район</td><td>31</td><td>0 %</td></tr> <tr><td class="aws">народные</td><td>31</td><td>0 %</td></tr> <tr><td class="aws">грибка</td><td>31</td><td>0 %</td></tr> <tr><td class="aws">апоплексия</td><td>31</td><td>0 %</td></tr> <tr><td class="aws">частная</td><td>31</td><td>0 %</td></tr> <tr><td class="aws">травмы</td><td>31</td><td>0 %</td></tr> <tr><td class="aws">црб</td><td>30</td><td>0 %</td></tr> <tr><td class="aws">консультацию</td><td>30</td><td>0 %</td></tr> <tr><td class="aws">жкт</td><td>30</td><td>0 %</td></tr> <tr><td class="aws">d</td><td>30</td><td>0 %</td></tr> <tr><td class="aws">хирургическое</td><td>30</td><td>0 %</td></tr> <tr><td class="aws">пазух</td><td>30</td><td>0 %</td></tr> <tr><td class="aws">носу</td><td>30</td><td>0 %</td></tr> <tr><td class="aws">кто</td><td>30</td><td>0 %</td></tr> <tr><td class="aws">серебренникова</td><td>29</td><td>0 %</td></tr> <tr><td class="aws">предварительный</td><td>29</td><td>0 %</td></tr> <tr><td class="aws">язвенная</td><td>29</td><td>0 %</td></tr> <tr><td class="aws">катаракта</td><td>29</td><td>0 %</td></tr> <tr><td class="aws">ребенку</td><td>29</td><td>0 %</td></tr> <tr><td class="aws">медсестра</td><td>29</td><td>0 %</td></tr> <tr><td class="aws">реабилитационный</td><td>29</td><td>0 %</td></tr> <tr><td class="aws">РАМН</td><td>29</td><td>0 %</td></tr> <tr><td class="aws">микрохирургии</td><td>29</td><td>0 %</td></tr> <tr><td class="aws">подольск</td><td>29</td><td>0 %</td></tr> <tr><td class="aws">упражнения</td><td>29</td><td>0 %</td></tr> <tr><td class="aws">московская</td><td>29</td><td>0 %</td></tr> <tr><td class="aws">сергей</td><td>29</td><td>0 %</td></tr> <tr><td class="aws">южный</td><td>29</td><td>0 %</td></tr> <tr><td class="aws">головки</td><td>29</td><td>0 %</td></tr> <tr><td class="aws">головная</td><td>29</td><td>0 %</td></tr> <tr><td class="aws">каких</td><td>29</td><td>0 %</td></tr> <tr><td class="aws">Ран</td><td>29</td><td>0 %</td></tr> <tr><td class="aws">нарушение</td><td>28</td><td>0 %</td></tr> <tr><td class="aws">Мрт</td><td>28</td><td>0 %</td></tr> <tr><td class="aws">пароксизмальные</td><td>28</td><td>0 %</td></tr> <tr><td class="aws">Лечебно-диагностический</td><td>28</td><td>0 %</td></tr> <tr><td class="aws">нужно</td><td>28</td><td>0 %</td></tr> <tr><td class="aws">родов</td><td>28</td><td>0 %</td></tr> <tr><td class="aws">избавиться</td><td>28</td><td>0 %</td></tr> <tr><td class="aws">ВЛОК</td><td>28</td><td>0 %</td></tr> <tr><td class="aws">цирроза</td><td>28</td><td>0 %</td></tr> <tr><td class="aws">ногах</td><td>28</td><td>0 %</td></tr> <tr><td class="aws">ахиллобурсита</td><td>28</td><td>0 %</td></tr> <tr><td class="aws">платной</td><td>28</td><td>0 %</td></tr> <tr><td class="aws">дисциркуляторная</td><td>28</td><td>0 %</td></tr> <tr><td class="aws">фимоз</td><td>28</td><td>0 %</td></tr> <tr><td class="aws">полипов</td><td>28</td><td>0 %</td></tr> <tr><td class="aws">безболезненное</td><td>28</td><td>0 %</td></tr> <tr><td class="aws">лейомиома</td><td>28</td><td>0 %</td></tr> <tr><td class="aws">ночью</td><td>28</td><td>0 %</td></tr> <tr><td class="aws">шейная</td><td>28</td><td>0 %</td></tr> <tr><td class="aws">ðô</td><td>28</td><td>0 %</td></tr> <tr><td class="aws">анальные</td><td>28</td><td>0 %</td></tr> <tr><td class="aws">эндометрии</td><td>28</td><td>0 %</td></tr> <tr><td class="aws">увт</td><td>28</td><td>0 %</td></tr> <tr><td class="aws">центре</td><td>28</td><td>0 %</td></tr> <tr><td class="aws">мар</td><td>28</td><td>0 %</td></tr> <tr><td class="aws">вертебролог</td><td>28</td><td>0 %</td></tr> <tr><td class="aws">заболеваний</td><td>27</td><td>0 %</td></tr> <tr><td class="aws">городская</td><td>27</td><td>0 %</td></tr> <tr><td class="aws">постнов</td><td>27</td><td>0 %</td></tr> <tr><td class="aws">позвоночнике</td><td>27</td><td>0 %</td></tr> <tr><td class="aws">плечевого</td><td>27</td><td>0 %</td></tr> <tr><td class="aws">КТ</td><td>27</td><td>0 %</td></tr> <tr><td class="aws">лапароскопическая</td><td>27</td><td>0 %</td></tr> <tr><td class="aws">бутово</td><td>27</td><td>0 %</td></tr> <tr><td class="aws">лечь</td><td>27</td><td>0 %</td></tr> <tr><td class="aws">невралгия</td><td>27</td><td>0 %</td></tr> <tr><td class="aws">государственное</td><td>27</td><td>0 %</td></tr> <tr><td class="aws">алексей</td><td>27</td><td>0 %</td></tr> <tr><td class="aws">процесс</td><td>27</td><td>0 %</td></tr> <tr><td class="aws">ишемическая</td><td>27</td><td>0 %</td></tr> <tr><td class="aws">клетки</td><td>27</td><td>0 %</td></tr> <tr><td class="aws">стенокардия</td><td>27</td><td>0 %</td></tr> <tr><td class="aws">олегович</td><td>27</td><td>0 %</td></tr> <tr><td class="aws">частные</td><td>27</td><td>0 %</td></tr> <tr><td class="aws">терапии</td><td>27</td><td>0 %</td></tr> <tr><td class="aws">мочекаменной</td><td>27</td><td>0 %</td></tr> <tr><td class="aws">копчике</td><td>27</td><td>0 %</td></tr> <tr><td class="aws">УЗДГ</td><td>27</td><td>0 %</td></tr> <tr><td class="aws">хронического</td><td>27</td><td>0 %</td></tr> <tr><td class="aws">когда</td><td>27</td><td>0 %</td></tr> <tr><td class="aws">средства</td><td>26</td><td>0 %</td></tr> <tr><td class="aws">восстановление</td><td>26</td><td>0 %</td></tr> <tr><td class="aws">николаевич</td><td>26</td><td>0 %</td></tr> <tr><td class="aws">инсеминация</td><td>26</td><td>0 %</td></tr> <tr><td class="aws">лучший</td><td>26</td><td>0 %</td></tr> <tr><td class="aws">сустав</td><td>26</td><td>0 %</td></tr> <tr><td class="aws">диета</td><td>26</td><td>0 %</td></tr> <tr><td class="aws">грудной</td><td>26</td><td>0 %</td></tr> <tr><td class="aws">диабета</td><td>26</td><td>0 %</td></tr> <tr><td class="aws">узлы</td><td>26</td><td>0 %</td></tr> <tr><td class="aws">томографию</td><td>26</td><td>0 %</td></tr> <tr><td class="aws">руках</td><td>26</td><td>0 %</td></tr> <tr><td class="aws">армен</td><td>26</td><td>0 %</td></tr> <tr><td class="aws">общественного</td><td>26</td><td>0 %</td></tr> <tr><td class="aws">кардиомиопатия</td><td>26</td><td>0 %</td></tr> <tr><td class="aws">беременных</td><td>26</td><td>0 %</td></tr> <tr><td class="aws">д</td><td>26</td><td>0 %</td></tr> <tr><td class="aws">домодедово</td><td>26</td><td>0 %</td></tr> <tr><td class="aws">через</td><td>26</td><td>0 %</td></tr> <tr><td class="aws">31</td><td>25</td><td>0 %</td></tr> <tr><td class="aws">ортопедическое</td><td>25</td><td>0 %</td></tr> <tr><td class="aws">поясничного</td><td>25</td><td>0 %</td></tr> <tr><td class="aws">мытищи</td><td>25</td><td>0 %</td></tr> <tr><td class="aws">проведение</td><td>25</td><td>0 %</td></tr> <tr><td class="aws">панкреатит</td><td>25</td><td>0 %</td></tr> <tr><td class="aws">железисто-кистозная</td><td>25</td><td>0 %</td></tr> <tr><td class="aws">сосудистой</td><td>25</td><td>0 %</td></tr> <tr><td class="aws">спб</td><td>25</td><td>0 %</td></tr> <tr><td class="aws">тесла</td><td>25</td><td>0 %</td></tr> <tr><td class="aws">педиатрия</td><td>25</td><td>0 %</td></tr> <tr><td class="aws">транспортировка</td><td>25</td><td>0 %</td></tr> <tr><td class="aws">мониторирование</td><td>25</td><td>0 %</td></tr> <tr><td class="aws">химках</td><td>25</td><td>0 %</td></tr> <tr><td class="aws">московской</td><td>25</td><td>0 %</td></tr> <tr><td class="aws">стоматологическая</td><td>25</td><td>0 %</td></tr> <tr><td class="aws">рауф</td><td>25</td><td>0 %</td></tr> <tr><td class="aws">смещения</td><td>25</td><td>0 %</td></tr> <tr><td class="aws">макиров</td><td>25</td><td>0 %</td></tr> <tr><td class="aws">аритмии</td><td>25</td><td>0 %</td></tr> <tr><td class="aws">терапевтическое</td><td>25</td><td>0 %</td></tr> <tr><td class="aws">работников</td><td>25</td><td>0 %</td></tr> <tr><td class="aws">онлайн</td><td>25</td><td>0 %</td></tr> <tr><td class="aws">период</td><td>24</td><td>0 %</td></tr> <tr><td class="aws">мочевого</td><td>24</td><td>0 %</td></tr> <tr><td class="aws">мидхатович</td><td>24</td><td>0 %</td></tr> <tr><td class="aws">злаковые</td><td>24</td><td>0 %</td></tr> <tr><td class="aws">работу</td><td>24</td><td>0 %</td></tr> <tr><td class="aws">сердце</td><td>24</td><td>0 %</td></tr> <tr><td class="aws">уздс</td><td>24</td><td>0 %</td></tr> <tr><td class="aws">гидросальпинкс</td><td>24</td><td>0 %</td></tr> <tr><td class="aws">им.</td><td>24</td><td>0 %</td></tr> <tr><td class="aws">остеохондроза</td><td>24</td><td>0 %</td></tr> <tr><td class="aws">контрастированием</td><td>24</td><td>0 %</td></tr> <tr><td class="aws">варикоза</td><td>24</td><td>0 %</td></tr> <tr><td class="aws">реабилитации</td><td>24</td><td>0 %</td></tr> <tr><td class="aws">нейродермит</td><td>24</td><td>0 %</td></tr> <tr><td class="aws">РјСЂС‚</td><td>24</td><td>0 %</td></tr> <tr><td class="aws">коронарных</td><td>24</td><td>0 %</td></tr> <tr><td class="aws">артрозе</td><td>24</td><td>0 %</td></tr> <tr><td class="aws">владимир</td><td>24</td><td>0 %</td></tr> <tr><td class="aws">цервикального</td><td>24</td><td>0 %</td></tr> <tr><td class="aws">дневного</td><td>24</td><td>0 %</td></tr> <tr><td class="aws">дэвис</td><td>24</td><td>0 %</td></tr> <tr><td class="aws">паркинсона</td><td>24</td><td>0 %</td></tr> <tr><td class="aws">дмитриевич</td><td>24</td><td>0 %</td></tr> <tr><td class="aws">холтеровское</td><td>24</td><td>0 %</td></tr> <tr><td class="aws">БОЛЬНИЦА</td><td>24</td><td>0 %</td></tr> <tr><td class="aws">типа</td><td>24</td><td>0 %</td></tr> <tr><td class="aws">лет</td><td>24</td><td>0 %</td></tr> <tr><td class="aws">пальцев</td><td>24</td><td>0 %</td></tr> <tr><td class="aws">отделением</td><td>24</td><td>0 %</td></tr> <tr><td class="aws">врачей</td><td>24</td><td>0 %</td></tr> <tr><td class="aws">геннадьевич</td><td>23</td><td>0 %</td></tr> <tr><td class="aws">капельницы</td><td>23</td><td>0 %</td></tr> <tr><td class="aws">цистит</td><td>23</td><td>0 %</td></tr> <tr><td class="aws">щитовидная</td><td>23</td><td>0 %</td></tr> <tr><td class="aws">диска</td><td>23</td><td>0 %</td></tr> <tr><td class="aws">АСИТ</td><td>23</td><td>0 %</td></tr> <tr><td class="aws">2013</td><td>23</td><td>0 %</td></tr> <tr><td class="aws">системы</td><td>23</td><td>0 %</td></tr> <tr><td class="aws">Клиническая</td><td>23</td><td>0 %</td></tr> <tr><td class="aws">время</td><td>23</td><td>0 %</td></tr> <tr><td class="aws">КЛИНИЧЕСКАЯ</td><td>23</td><td>0 %</td></tr> <tr><td class="aws">сеченова</td><td>23</td><td>0 %</td></tr> <tr><td class="aws">контрастом</td><td>23</td><td>0 %</td></tr> <tr><td class="aws">ортопедические</td><td>23</td><td>0 %</td></tr> <tr><td class="aws">глаз</td><td>23</td><td>0 %</td></tr> <tr><td class="aws">кафедра</td><td>23</td><td>0 %</td></tr> <tr><td class="aws">викторович</td><td>22</td><td>0 %</td></tr> <tr><td class="aws">подготовка</td><td>22</td><td>0 %</td></tr> <tr><td class="aws">неврологии</td><td>22</td><td>0 %</td></tr> <tr><td class="aws">лазерной</td><td>22</td><td>0 %</td></tr> <tr><td class="aws">тромбоз</td><td>22</td><td>0 %</td></tr> <tr><td class="aws">квоте</td><td>22</td><td>0 %</td></tr> <tr><td class="aws">мениск</td><td>22</td><td>0 %</td></tr> <tr><td class="aws">хорошего</td><td>22</td><td>0 %</td></tr> <tr><td class="aws">камень</td><td>22</td><td>0 %</td></tr> <tr><td class="aws">а</td><td>22</td><td>0 %</td></tr> <tr><td class="aws">диагноз</td><td>22</td><td>0 %</td></tr> <tr><td class="aws">трубы</td><td>22</td><td>0 %</td></tr> <tr><td class="aws">valgus</td><td>22</td><td>0 %</td></tr> <tr><td class="aws">ЦЕНТРАЛЬНАЯ</td><td>22</td><td>0 %</td></tr> <tr><td class="aws">стационарах</td><td>22</td><td>0 %</td></tr> <tr><td class="aws">медсестры</td><td>22</td><td>0 %</td></tr> <tr><td class="aws">клинику</td><td>22</td><td>0 %</td></tr> <tr><td class="aws">бурденко</td><td>22</td><td>0 %</td></tr> <tr><td class="aws">плетнер</td><td>22</td><td>0 %</td></tr> <tr><td class="aws">Клиника</td><td>22</td><td>0 %</td></tr> <tr><td class="aws">аденомы</td><td>22</td><td>0 %</td></tr> <tr><td class="aws">екатеринбург</td><td>22</td><td>0 %</td></tr> <tr><td class="aws">ул.фотиевой</td><td>22</td><td>0 %</td></tr> <tr><td class="aws">уколы</td><td>22</td><td>0 %</td></tr> <tr><td class="aws">какое</td><td>22</td><td>0 %</td></tr> <tr><td class="aws">тромбофлебит</td><td>21</td><td>0 %</td></tr> <tr><td class="aws">заказать</td><td>21</td><td>0 %</td></tr> <tr><td class="aws">иммунотерапия</td><td>21</td><td>0 %</td></tr> <tr><td class="aws">химки</td><td>21</td><td>0 %</td></tr> <tr><td class="aws">специалиста</td><td>21</td><td>0 %</td></tr> <tr><td class="aws">маммографию</td><td>21</td><td>0 %</td></tr> <tr><td class="aws">королев</td><td>21</td><td>0 %</td></tr> <tr><td class="aws">противопоказания</td><td>21</td><td>0 %</td></tr> <tr><td class="aws">гайнуллин</td><td>21</td><td>0 %</td></tr> <tr><td class="aws">состояние</td><td>21</td><td>0 %</td></tr> <tr><td class="aws">специальности</td><td>21</td><td>0 %</td></tr> <tr><td class="aws">НА</td><td>21</td><td>0 %</td></tr> <tr><td class="aws">гемангиома</td><td>21</td><td>0 %</td></tr> <tr><td class="aws">пищевая</td><td>21</td><td>0 %</td></tr> <tr><td class="aws">медцентр</td><td>21</td><td>0 %</td></tr> <tr><td class="aws">правой</td><td>21</td><td>0 %</td></tr> <tr><td class="aws">вызвать</td><td>21</td><td>0 %</td></tr> <tr><td class="aws">осмотры</td><td>21</td><td>0 %</td></tr> <tr><td class="aws">центральной</td><td>21</td><td>0 %</td></tr> <tr><td class="aws">ишиалгии</td><td>21</td><td>0 %</td></tr> <tr><td class="aws">ахиллова</td><td>21</td><td>0 %</td></tr> <tr><td class="aws">медицинского</td><td>21</td><td>0 %</td></tr> <tr><td class="aws">поликлиниках</td><td>21</td><td>0 %</td></tr> <tr><td class="aws">медицинской</td><td>21</td><td>0 %</td></tr> <tr><td class="aws">внематочной</td><td>21</td><td>0 %</td></tr> <tr><td class="aws">область</td><td>21</td><td>0 %</td></tr> <tr><td class="aws">часы</td><td>21</td><td>0 %</td></tr> <tr><td class="aws">варикоцеле</td><td>21</td><td>0 %</td></tr> <tr><td class="aws">ведение</td><td>21</td><td>0 %</td></tr> <tr><td class="aws">труб</td><td>21</td><td>0 %</td></tr> <tr><td class="aws">ишалгия</td><td>21</td><td>0 %</td></tr> <tr><td class="aws">юзао</td><td>21</td><td>0 %</td></tr> <tr><td class="aws">работы</td><td>21</td><td>0 %</td></tr> <tr><td class="aws">желчекаменная</td><td>21</td><td>0 %</td></tr> <tr><td class="aws">гастроэнтеролога</td><td>21</td><td>0 %</td></tr> <tr><td class="aws">центра</td><td>21</td><td>0 %</td></tr> <tr><td class="aws">игорь</td><td>21</td><td>0 %</td></tr> <tr><td class="aws">пищевода</td><td>21</td><td>0 %</td></tr> <tr><td class="aws">Гиперплазия</td><td>21</td><td>0 %</td></tr> <tr><td class="aws">неправильно</td><td>21</td><td>0 %</td></tr> <tr><td class="aws">д.12</td><td>20</td><td>0 %</td></tr> <tr><td class="aws">способы</td><td>20</td><td>0 %</td></tr> <tr><td class="aws">липомы</td><td>20</td><td>0 %</td></tr> <tr><td class="aws">татьяна</td><td>20</td><td>0 %</td></tr> <tr><td class="aws">Центральной</td><td>20</td><td>0 %</td></tr> <tr><td class="aws">медцентры</td><td>20</td><td>0 %</td></tr> <tr><td class="aws">подмосковье</td><td>20</td><td>0 %</td></tr> <tr><td class="aws">анальных</td><td>20</td><td>0 %</td></tr> <tr><td class="aws">ноги</td><td>20</td><td>0 %</td></tr> <tr><td class="aws">гастроэнтерология</td><td>20</td><td>0 %</td></tr> <tr><td class="aws">мышц</td><td>20</td><td>0 %</td></tr> <tr><td class="aws">педиатрии</td><td>20</td><td>0 %</td></tr> <tr><td class="aws">цикла</td><td>20</td><td>0 %</td></tr> <tr><td class="aws">гортани</td><td>20</td><td>0 %</td></tr> <tr><td class="aws">глаукома</td><td>20</td><td>0 %</td></tr> <tr><td class="aws">пузыре</td><td>20</td><td>0 %</td></tr> <tr><td class="aws">люберцы</td><td>20</td><td>0 %</td></tr> <tr><td class="aws">балашиха</td><td>20</td><td>0 %</td></tr> <tr><td class="aws">улице</td><td>20</td><td>0 %</td></tr> <tr><td class="aws">юлов</td><td>20</td><td>0 %</td></tr> <tr><td class="aws">направление</td><td>20</td><td>0 %</td></tr> <tr><td class="aws">83</td><td>20</td><td>0 %</td></tr> <tr><td class="aws">духин</td><td>20</td><td>0 %</td></tr> <tr><td class="aws">паховую</td><td>20</td><td>0 %</td></tr> <tr><td class="aws">чего</td><td>20</td><td>0 %</td></tr> <tr><td class="aws">трещин</td><td>20</td><td>0 %</td></tr> <tr><td class="aws">псориаз</td><td>20</td><td>0 %</td></tr> <tr><td class="aws">hallux</td><td>20</td><td>0 %</td></tr> <tr><td class="aws">пушкино</td><td>20</td><td>0 %</td></tr> <tr><td class="aws">gemorroj</td><td>19</td><td>0 %</td></tr> <tr><td class="aws">медицины</td><td>19</td><td>0 %</td></tr> <tr><td class="aws">резекция</td><td>19</td><td>0 %</td></tr> <tr><td class="aws">какая</td><td>19</td><td>0 %</td></tr> <tr><td class="aws">пупочную</td><td>19</td><td>0 %</td></tr> <tr><td class="aws">переломы</td><td>19</td><td>0 %</td></tr> <tr><td class="aws">атеромы</td><td>19</td><td>0 %</td></tr> <tr><td class="aws">маточных</td><td>19</td><td>0 %</td></tr> <tr><td class="aws">гимнастика</td><td>19</td><td>0 %</td></tr> <tr><td class="aws">лечебная</td><td>19</td><td>0 %</td></tr> <tr><td class="aws">№1</td><td>19</td><td>0 %</td></tr> <tr><td class="aws">мочи</td><td>19</td><td>0 %</td></tr> <tr><td class="aws">головной</td><td>19</td><td>0 %</td></tr> <tr><td class="aws">городе</td><td>19</td><td>0 %</td></tr> <tr><td class="aws">грибок</td><td>19</td><td>0 %</td></tr> <tr><td class="aws">одышка</td><td>19</td><td>0 %</td></tr> <tr><td class="aws">все</td><td>19</td><td>0 %</td></tr> <tr><td class="aws">Как</td><td>19</td><td>0 %</td></tr> <tr><td class="aws">локтевого</td><td>19</td><td>0 %</td></tr> <tr><td class="aws">лаборатория</td><td>19</td><td>0 %</td></tr> <tr><td class="aws">под</td><td>19</td><td>0 %</td></tr> <tr><td class="aws">клинико-диагностический</td><td>19</td><td>0 %</td></tr> <tr><td class="aws">gjkbrkbybrf</td><td>19</td><td>0 %</td></tr> <tr><td class="aws">рустам</td><td>19</td><td>0 %</td></tr> <tr><td class="aws">тендинит</td><td>19</td><td>0 %</td></tr> <tr><td class="aws">профессиональная</td><td>19</td><td>0 %</td></tr> <tr><td class="aws">груди</td><td>19</td><td>0 %</td></tr> <tr><td class="aws">дадаев</td><td>19</td><td>0 %</td></tr> <tr><td class="aws">остеохондроз</td><td>19</td><td>0 %</td></tr> <tr><td class="aws">больного</td><td>19</td><td>0 %</td></tr> <tr><td class="aws">аденоматозный</td><td>19</td><td>0 %</td></tr> <tr><td class="aws">гинекологическое</td><td>19</td><td>0 %</td></tr> <tr><td class="aws">дерматолога</td><td>19</td><td>0 %</td></tr> <tr><td class="aws">лице</td><td>19</td><td>0 %</td></tr> <tr><td class="aws">суставе</td><td>19</td><td>0 %</td></tr> <tr><td class="aws">экспертное</td><td>19</td><td>0 %</td></tr> <tr><td class="aws">сколиоза</td><td>19</td><td>0 %</td></tr> <tr><td class="aws">неврология</td><td>19</td><td>0 %</td></tr> <tr><td class="aws">анального</td><td>19</td><td>0 %</td></tr> <tr><td class="aws">исправление</td><td>19</td><td>0 %</td></tr> <tr><td class="aws">проведения</td><td>19</td><td>0 %</td></tr> <tr><td class="aws">сроки</td><td>19</td><td>0 %</td></tr> <tr><td class="aws">владимировна</td><td>19</td><td>0 %</td></tr> <tr><td class="aws">кератоконус</td><td>19</td><td>0 %</td></tr> <tr><td class="aws">мария</td><td>19</td><td>0 %</td></tr> <tr><td class="aws">эндометриоз</td><td>19</td><td>0 %</td></tr> <tr><td class="aws">пластической</td><td>19</td><td>0 %</td></tr> <tr><td class="aws">мастопатии</td><td>19</td><td>0 %</td></tr> <tr><td class="aws">пароксизмальное</td><td>19</td><td>0 %</td></tr> <tr><td class="aws">рака</td><td>19</td><td>0 %</td></tr> <tr><td class="aws">лодыжки</td><td>18</td><td>0 %</td></tr> <tr><td class="aws">аппарат</td><td>18</td><td>0 %</td></tr> <tr><td class="aws">15</td><td>18</td><td>0 %</td></tr> <tr><td class="aws">гемморой</td><td>18</td><td>0 %</td></tr> <tr><td class="aws">диагностики</td><td>18</td><td>0 %</td></tr> <tr><td class="aws">узас</td><td>18</td><td>0 %</td></tr> <tr><td class="aws">васильевна</td><td>18</td><td>0 %</td></tr> <tr><td class="aws">вакансия</td><td>18</td><td>0 %</td></tr> <tr><td class="aws">пластика</td><td>18</td><td>0 %</td></tr> <tr><td class="aws">пневмонии</td><td>18</td><td>0 %</td></tr> <tr><td class="aws">галина</td><td>18</td><td>0 %</td></tr> <tr><td class="aws">внутрисосудистое</td><td>18</td><td>0 %</td></tr> <tr><td class="aws">пятой</td><td>18</td><td>0 %</td></tr> <tr><td class="aws">лекарства</td><td>18</td><td>0 %</td></tr> <tr><td class="aws">главный</td><td>18</td><td>0 %</td></tr> <tr><td class="aws">калькулезный</td><td>18</td><td>0 %</td></tr> <tr><td class="aws">онкология</td><td>18</td><td>0 %</td></tr> <tr><td class="aws">раменском</td><td>18</td><td>0 %</td></tr> <tr><td class="aws">артерии</td><td>18</td><td>0 %</td></tr> <tr><td class="aws">мурат</td><td>18</td><td>0 %</td></tr> <tr><td class="aws">аденомиоз</td><td>18</td><td>0 %</td></tr> <tr><td class="aws">серик</td><td>18</td><td>0 %</td></tr> <tr><td class="aws">злаковых</td><td>18</td><td>0 %</td></tr> <tr><td class="aws">водителей</td><td>18</td><td>0 %</td></tr> <tr><td class="aws">шейке</td><td>18</td><td>0 %</td></tr> <tr><td class="aws">фимоза</td><td>18</td><td>0 %</td></tr> <tr><td class="aws">контакты</td><td>18</td><td>0 %</td></tr> <tr><td class="aws">лучезапястного</td><td>18</td><td>0 %</td></tr> <tr><td class="aws">фотиева</td><td>18</td><td>0 %</td></tr> <tr><td class="aws">тела</td><td>18</td><td>0 %</td></tr> <tr><td class="aws">выпадение</td><td>18</td><td>0 %</td></tr> <tr><td class="aws">связки</td><td>18</td><td>0 %</td></tr> <tr><td class="aws">рэг</td><td>18</td><td>0 %</td></tr> <tr><td class="aws">хирурги</td><td>18</td><td>0 %</td></tr> <tr><td class="aws">голубев</td><td>18</td><td>0 %</td></tr> <tr><td class="aws">МОСКВЕ</td><td>18</td><td>0 %</td></tr> <tr><td class="aws">восстановительное</td><td>18</td><td>0 %</td></tr> <tr><td class="aws">холецистита</td><td>17</td><td>0 %</td></tr> <tr><td class="aws">постгерпетическая</td><td>17</td><td>0 %</td></tr> <tr><td class="aws">управления</td><td>17</td><td>0 %</td></tr> <tr><td class="aws">ударно</td><td>17</td><td>0 %</td></tr> <tr><td class="aws">менструального</td><td>17</td><td>0 %</td></tr> <tr><td class="aws">валерий</td><td>17</td><td>0 %</td></tr> <tr><td class="aws">ktxtybt</td><td>17</td><td>0 %</td></tr> <tr><td class="aws">бесплатная</td><td>17</td><td>0 %</td></tr> <tr><td class="aws">эндометриоза</td><td>17</td><td>0 %</td></tr> <tr><td class="aws">новосибирск</td><td>17</td><td>0 %</td></tr> <tr><td class="aws">бюджетное</td><td>17</td><td>0 %</td></tr> <tr><td class="aws">какую</td><td>17</td><td>0 %</td></tr> <tr><td class="aws">записаться</td><td>17</td><td>0 %</td></tr> <tr><td class="aws">лфк</td><td>17</td><td>0 %</td></tr> <tr><td class="aws">фиброаденомы</td><td>17</td><td>0 %</td></tr> <tr><td class="aws">перикардит</td><td>17</td><td>0 %</td></tr> <tr><td class="aws">артроскопии</td><td>17</td><td>0 %</td></tr> <tr><td class="aws">коленных</td><td>17</td><td>0 %</td></tr> <tr><td class="aws">нерва</td><td>17</td><td>0 %</td></tr> <tr><td class="aws">неврозов</td><td>17</td><td>0 %</td></tr> <tr><td class="aws">бца</td><td>17</td><td>0 %</td></tr> <tr><td class="aws">пластины</td><td>17</td><td>0 %</td></tr> <tr><td class="aws">очищение</td><td>17</td><td>0 %</td></tr> <tr><td class="aws">города</td><td>17</td><td>0 %</td></tr> <tr><td class="aws">тохоплазма</td><td>17</td><td>0 %</td></tr> <tr><td class="aws">учеба</td><td>17</td><td>0 %</td></tr> <tr><td class="aws">неврологическое</td><td>17</td><td>0 %</td></tr> <tr><td class="aws">ход</td><td>17</td><td>0 %</td></tr> <tr><td class="aws">гиперплазию</td><td>17</td><td>0 %</td></tr> <tr><td class="aws">милославский</td><td>17</td><td>0 %</td></tr> <tr><td class="aws">позвонка</td><td>17</td><td>0 %</td></tr> <tr><td class="aws">учреждения</td><td>17</td><td>0 %</td></tr> <tr><td class="aws">азимов</td><td>17</td><td>0 %</td></tr> <tr><td class="aws">отверстия</td><td>17</td><td>0 %</td></tr> <tr><td class="aws">светлана</td><td>17</td><td>0 %</td></tr> <tr><td class="aws">жуковском</td><td>17</td><td>0 %</td></tr> <tr><td class="aws"><span style="color: #666688">Other words</span></td><td>32467</td><td>19.8 %</td></tr> </table></td></tr></table><br /> <br /><br /> <span dir="ltr" style="font: 11px verdana, arial, helvetica; color: #000000;"><b>Advanced Web Statistics 6.95 (build 1.943)</b> - <a href="http://awstats.sourceforge.net" target="awstatshome">Created by awstats</a></span><br /> <br /> </body> </html>
AxelFG/ckbran-inf
old/webstat/awstats.ckbran.ru.keywords.072013.html
HTML
gpl-2.0
75,019
<?php /** * AvantFAX - "Web 2.0" HylaFAX management * * PHP 5 only * * @author David Mimms <david@avantfax.com> * @copyright 2005 - 2007 MENTALBARCODE Software, LLC * @copyright 2007 - 2008 iFAX Solutions, Inc. * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL */ $LANGUAGE = "zh"; $LANGUAGE_NAME = "简体中文"; $LANG = array(); $LANG['ISO'] = "charset=utf-8"; $LANG['DIRECTION'] = "ltr"; $LANG['YES'] = "是"; $LANG['NO'] = "否"; $LANG['DATE'] = "日期"; $LANG['FROM'] = "发件人"; $LANG['TO'] = "收件人"; $LANG['DATE_START'] = "开始日期"; $LANG['DATE_END'] = "结束日期"; $LANG['TO_PERSON'] = "收件人"; $LANG['TO_COMPANY'] = "收件人公司"; $LANG['TO_LOCATION'] = "收件人地点"; $LANG['TO_VOICENUMBER'] = "收件人电话号码"; $LANG['MY_COMPANY'] = "公司"; $LANG['MY_LOCATION'] = "地点"; $LANG['MY_VOICENUMBER'] = "电话号码"; $LANG['MY_FAXNUMBER'] = "传真号码"; $LANG['VIEW_FAX'] = "查看传真"; $LANG['ROTATE_FAX'] = "旋转传真"; $LANG['DOWNLOAD_PDF'] = "下载PDF文件"; $LANG['DOWNLOAD_TIFF'] = "下载TIFF文件"; $LANG['EMAIL_PDF'] = "邮件发送PDF文件"; $LANG['ADD_NOTE_FAX'] = "添加注释"; $LANG['ARCHIVE_FAX'] = "归档"; $LANG['DELETE_FAX'] = "永久删除"; $LANG['DELETE_CONFIRM'] = "请确认你想删除该传真"; $LANG['ASSIGN_CNAME'] = "指定公司名称"; $LANG['ASSIGN_MISSING'] = "必须输入公司名称"; $LANG['ASSIGN_NOTE'] = "修改该传真的注释/描述"; $LANG['ASSIGN_NOTE_SAVED'] = "注释/描述已保存"; $LANG['ASSIGN_OK'] = "已成功指定公司名称。"; $LANG['FAXES'] = "份传真"; $LANG['NAME'] = "姓名"; $LANG['DESCRIPTION'] = "描述"; $LANG['SAVE'] = "保存"; $LANG['DELETE'] = "删除"; $LANG['CANCEL'] = "取消"; $LANG['CREATE'] = "创建"; $LANG['EMAIL'] = "E-mail"; $LANG['SELECT'] = "选择"; $LANG['CONTACT_SAVED'] = "联系人信息已保存"; $LANG['CONTACT_DELETED'] = "已删除联系人"; $LANG['RUBRICA_SAVED'] = "公司信息已保存"; $LANG['RUBRICA_DELETED'] = "已删除公司"; $LANG['FAX_FILES'] = "请选择要传真的文件"; $LANG['FAX_DEST'] = "收件人传真号码"; $LANG['FAX_CPAGE'] = "使用传真封面"; $LANG['FAX_REGARDING'] = "关于"; $LANG['FAX_COMMENTS'] = "注释"; $LANG['FAX_FILETYPES'] = "只能附加".SENDFAXFILETYPES."格式的文件."; $LANG['FAX_FILE_MISSING'] = "必须选择一个要发送的文件"; $LANG['FAX_DEST_MISSING'] = "必须输入收件人传真号码"; $LANG['FAX_SUBMITTED'] = "您的传真已成功提交到发送队列.<br />传真发送后您会收到一封确认邮件."; $LANG['FAX_FILESIZE'] = "文件大小超出限制."; $LANG['FAX_MAXSIZE'] = "文件最大允许的大小是$SF_MAXSIZE"; $LANG['NOTIFY_REQUEUE'] = "Notify on requeue"; // <----- NEW $LANG['FUPLOAD_NO_FILE'] = "No file uploaded"; // <----- NEW $LANG['FUPLOAD_NOT_ALLOWED'] = "File type is unauthorized"; // <----- NEW $LANG['FUPLOAD_OVER_LIMIT'] = "File size is over the limit"; // <----- NEW $LANG['FUPLOAD_OVER_LIMIT_INI'] = "File size is over the limit (INI)"; // <----- NEW $LANG['FUPLOAD_OVER_LIMIT_FORM'] = "File size is over the limit (FORM)"; // <----- NEW $LANG['FUPLOAD_NOT_COMPLETE'] = "File not completely uploaded"; // <----- NEW $LANG['FUPLOAD_NO_TEMPDIR'] = "No temporary directory"; // <----- NEW $LANG['FUPLOAD_CANT_WRITE'] = "Can't write uploaded file"; // <----- NEW $LANG['YOUR_NAME'] = "您的姓名"; $LANG['UPDATE'] = "更新"; $LANG['USER_DETAILS_SAVED'] = "用户设置已保存."; $LANG['LANGUAGE'] = "语言"; $LANG['EMAIL_SIG'] = "E-mail签名"; $LANG['NEXT_FAX'] = "下一份传真"; $LANG['PREV_FAX'] = "前一份传真"; $LANG['LOGIN_TEXT'] = "请输入用户名和密码登录传真系统."; $LANG['LOGIN_DISABLED'] = "你的帐户已被禁用,请联系管理员。"; $LANG['LOGIN_INCORRECT'] = "用户名或密码不正确,请重试."; $LANG['LOGIN_ALT_FAILED'] = "Login failed for %s. Ask your admin to verify that the account exists in AvantFAX."; // <--- NEW $LANG['ACCESS_DENIED'] = "Access denied"; // <----- NEW $LANG['USERNAME'] = "用户名"; $LANG['PASSWORD'] = "密码"; $LANG['USER'] = "用户"; $LANG['BUTTON_LOGIN'] = "登录"; $LANG['BUTTON_LOGOUT'] = "退出"; $LANG['BUTTON_SETTINGS'] = "设置"; $LANG['MENU_MENU'] = "Menu"; // <----- NEW $LANG['MENU_INBOX'] = "收件箱"; $LANG['MENU_OUTBOX'] = "发件箱"; $LANG['MENU_SENDFAX'] = "发传真"; $LANG['MENU_ARCHIVE'] = "档案柜"; $LANG['MENU_CONTACTS'] = "联系人"; $LANG['SELECT_ALL_FAXES'] = "Select All Faxes"; // <--- NEW $LANG['FAXES_PER_PAGE'] = "faxes per page"; // <--- NEW $LANG['INBOX_SHOW'] = "Inbox - show"; // <--- NEW $LANG['ARCHIVE_SHOW'] = "Archive - show"; // <--- NEW $LANG['CONTACT_HEADER_EMAIL'] = "Email"; $LANG['CONTACT_HEADER_FAX'] = "传真"; $LANG['CONTACT_HEADER_COMPANY'] = "公司"; $LANG['CONTACT_HEADER_NEWFAX'] = "新传真号码"; $LANG['CONTACT_HEADER_FAXNUM'] = "传真号码"; $LANG['NEW_ENTRY'] = "新项目"; $LANG['UPLOAD_CONTACTS'] = "Upload contacts file ".CONTACTFILETYPES; // <----- NEW $LANG['CONTACTS_UPLOADED'] = "Successfully uploaded %d contacts"; // <----- NEW $LANG['UPLOAD_BUTTON'] = "Upload"; // <----- NEW $LANG['SEND_EMAIL_HEADER'] = "通过邮件转发传真"; $LANG['EMAIL_RECIPIENTS'] = "邮件收件人"; $LANG['MESSAGE_PROMPT'] = "Email message"; $LANG['BUTTON_SEND'] = "发送"; $LANG['SUBJECT'] = "主题"; $LANG['PDF_FILENAME'] = "PDF文件名"; $LANG['EMAIL_SUCCESS'] = "邮件成功发送"; $LANG['EMAIL_FAILURE'] = "邮件发送错误"; $LANG['PN_PAGE'] = "页码"; $LANG['PN_PAGE_UP'] = "上一页"; $LANG['PN_PAGE_DN'] = "下一页"; $LANG['PN_PAGES'] = "页数"; $LANG['PN_OF'] = "/"; $LANG['NUM_DIALS'] = "拨号次数"; $LANG['KILL_JOB'] = "删除任务"; $LANG['PROMPT_CLOSEWINDOW'] = "关闭窗口"; $LANG['LAST_UPDATED'] = "最后修改日期"; $LANG['BACK'] = "[ 返回 ]"; $LANG['EDIT'] = "编辑"; $LANG['ADD'] = "添加"; $LANG['WARNCAT'] = "请选择分类"; $LANG['TITLE'] = "标题"; $LANG['CATEGORY'] = "分类"; $LANG['CATEGORY_NAME'] = "分类名称"; $LANG['LAST_MOD'] = "最后修改人"; $LANG['MONTHS'][] = array(""); $LANG['MONTHS'][] = "一月"; $LANG['MONTHS'][] = "二月"; $LANG['MONTHS'][] = "三月"; $LANG['MONTHS'][] = "四月"; $LANG['MONTHS'][] = "五月"; $LANG['MONTHS'][] = "六月"; $LANG['MONTHS'][] = "七月"; $LANG['MONTHS'][] = "八月"; $LANG['MONTHS'][] = "九月"; $LANG['MONTHS'][] = "十月"; $LANG['MONTHS'][] = "十一月"; $LANG['MONTHS'][] = "十二月"; $LANG['ERROR_PASS'] = "对不起,没有找到对应的用户。"; $LANG['NEWPASS_MSG'] = "用户帐号%s对应您的邮件地址。%s上的web用户刚要求重发新密码。 您的新密码是: %s 如果这是一个错误,请用新密码登录后更改密码。"; $LANG['ADMIN_NEWPASS_MSG'] = "管理员帐户密码重设为:\n\t%s\n,发起请求的用户来自%s"; $LANG['REGWARN_MAIL'] = "请输入有效的电子邮件地址。"; $LANG['REGWARN_PASS'] = "请输入有效的密码,不含空格,长度至少".MIN_PASSWD_SIZE."个字符,包含0-9, a-z, A-Z。"; $LANG['REGWARN_VPASS2'] = "新密码与重复密码不一致,请重试。"; $LANG['REGWARN_USERNAME_INUSE'] = "该用户名已在使用,请选择其他用户名。"; $LANG['USER_UPDATE_ERROR'] = "帐户更新错误"; $LANG['PASS_TOO_LONG'] = "密码太长"; $LANG['PASS_TOO_SHORT'] = "密码太短"; $LANG['PASS_ALREADY_USED'] = "该密码已在使用,请输入新的密码。"; $LANG['PASS_ERROR_CHANGING'] = "密码更改失败,用户:"; $LANG['PASS_ERROR_RESETTING'] = "密码重设失败,用户:"; $LANG['ERROR_SENDING_EMAIL'] = "邮件发送失败"; $LANG['REGWARN_USERNAME'] = "用户名不允许含有字母数字以外的字符。"; $LANG['REGWARN_NOUSERNAME'] = "You must enter a username"; $LANG['REGWARN_MAIL_EXISTS'] = "Email已在使用中."; $LANG['LOST_PASSWORD'] = "忘记密码?"; $LANG['PROMPT_UNAME'] = "用户名"; $LANG['PROMPT_PASSWORD'] = "密码"; $LANG['PROMPT_CAN_REUSE_PWD'] = "允许用户重复使用旧密码"; $LANG['REPLY_TO_FAX'] = "回复传真"; $LANG['REPLY_TO_FAX_TIP'] = "原件将会在封面后首先发送"; $LANG['TITLE_DISTROLIST'] = "分发列表"; $LANG['DISTROLIST_NAME'] = "列表名"; $LANG['DISTROLIST_DELETE'] = "删除列表"; $LANG['DISTROLIST_CONFIRM_DELETE'] = "删除该分发列表?"; $LANG['DISTROLIST_SAVENAME'] = "保存列表名"; $LANG['CHANGES_SAVED'] = "更改已保存"; $LANG['DISTROLIST_DELETED'] = "列表已删除"; $LANG['DISTROLIST_NOT_CREATED'] = "列表未创建"; $LANG['DISTROLIST_EXISTS'] = "列表已存在"; $LANG['DISTROLIST_ENTER_LISTNAME'] = "请输入列表名"; $LANG['DISTROLIST_ADD'] = "添加项目"; $LANG['DISTROLIST_REMOVE'] = "删除项目"; $LANG['DISTROLIST_REFRESH_LIST'] = "刷新列表"; $LANG['PROMPT_EMAIL'] = "E-mail地址"; $LANG['BUTTON_SEND_PASS'] = "发送密码"; $LANG['REGISTER_VPASS'] = "验证密码"; $LANG['FIELDS_REQUIRED'] = "带有星号(*)的字段是必须填写的."; $LANG['NEW_PASS_DESC'] = "请输入您的电子邮件地址,然后按发送密码按钮。<br /><br />您很快就会收到新的密码,请用新密码访问。<br /><br />"; $LANG['NEW_ADMIN_PASS_DESC'] = "输入您的用户名以及电子邮件地址,然后按发送密码按钮。<br /><br />您很快就会收到新的密码。<br /><br />"; $LANG['RESETTING_PASSWORD'] = "您的新密码会发到指定的邮件地址。<br /><br />收到新密码后您可以登录并可根据需要修改密码。<br /><br />"; $LANG['SEARCH_TITLE'] = "搜索"; $LANG['KEYWORDS'] = "关键词"; $LANG['COMPANY_SEARCH'] = "搜索公司"; $LANG['COMPANY_LIST'] = "公司列表"; $LANG['SENT_RECVD'] = "发送/接收"; $LANG['BOTH_SENT_RECVD'] = "发出以及收到的传真"; $LANG['ONLY_MY_SENT'] = "仅我发出的传真"; $LANG['ONLY_RECVD'] = "仅收到的传真"; $LANG['CONCLUSION'] = "共找到%d条结果"; $LANG['NOKEYWORD'] = "没有找到结果"; $LANG['SEARCH_WHITEPAGES'] = "搜索白页"; $LANG['PWD_NEEDS_RESET'] = "继续使用前必须更改密码."; $LANG['PWD_REQUIREMENTS'] = "密码长度至少为".MIN_PASSWD_SIZE."个字符."; $LANG['OPASS'] = "旧密码"; $LANG['NPASS'] = "新密码"; $LANG['VPASS'] = "重复密码"; $LANG['OPASS_WRONG'] = "旧密码错误"; $LANG['NAME_MISSING'] = "必须输入名字"; $LANG['MODIFY_FAXNUMS'] = "修改公司传真号码"; $LANG['MODIFY_EMAILS'] = "修改邮件地址簿"; $LANG['TITLE_FAXNUMS'] = "传真号码"; $LANG['TITLE_EMAILS'] = "Email地址"; $LANG['NEW_USER_MESSAGE_SUBJECT'] = "新用户详细资料"; $LANG['NEW_USER_MESSAGE'] = "%s您好, 该邮件含有您登录邮件管理系统 AvantFAX (http://%s)的用户名以及密码 用户名 - %s 密码 - %s 该邮件由系统自动生成,请勿回复。"; $LANG['DIDROUTE_EXISTS'] = "Route already exists"; // <------ NEW $LANG['DIDROUTE_NOT_CREATED'] = "Route was not created"; // <------ NEW $LANG['DIDROUTE_NO_ROUTES'] = "No DID/DTMF Routes configured"; // <------ NEW $LANG['DIDROUTE_DOESNT_EXIST'] = "Route %s does not exist"; // <------ NEW $LANG['ADMIN_PRINTER'] = "Printer"; // <----- NEW $LANG['PRINT'] = "Print"; // <----- NEW $LANG['ADMIN_DIDROUTE_CREATED'] = "The route was created"; // <------ NEW $LANG['ADMIN_DIDROUTE_DELETED'] = "The route was deleted"; // <------ NEW $LANG['ADMIN_DIDROUTE_UPDATED'] = "The route was updated"; // <------ NEW $LANG['ADMIN_DIDROUTES'] = "DID/DTMF Route groups"; $LANG['DIDROUTE_ROUTECODE'] = "DID/DTMF digits"; // <------ NEW $LANG['DIDROUTE_CATCHALL'] = "Catch All"; // <------ NEW $LANG['ADMIN_CONFDIDROUTING'] = "Configure DID/DTMF"; // <------ NEW $LANG['GROUP'] = "Group"; // <------ NEW $LANG['USER_ANYMODEM'] = "User can fax from any modem"; // <----- NEW $LANG['BARCODEROUTE_BARCODE'] = "Barcode"; // <----- NEW $LANG['MISSING_BARCODE'] = "Missing barcode"; // <----- NEW $LANG['ADMIN_BARCODEROUTE_DELETED'] = "Barcode route deleted"; // <----- NEW $LANG['ADMIN_BARCODEROUTE_UPDATED'] = "Barcode route updated"; // <----- NEW $LANG['ADMIN_BARCODEROUTE_CREATED'] = "Barcode route created"; // <----- NEW $LANG['BARCODEROUTE_NOT_CREATED'] = "Barcode route not created"; // <----- NEW $LANG['BARCODEROUTE_EXISTS'] = "Barcode route exists"; // <----- NEW $LANG['BARCODEROUTE_NO_ROUTES'] = "No barcode routes"; // <----- NEW $LANG['BARCODEROUTE_DOESNT_EXIST'] = "Barcode route %s doesn't exist"; // <----- NEW $LANG['FAXCAT_NOT_CREATED'] = "没有创建传真分类'%s'"; $LANG['FAXCAT_ALREADY_EXISTS'] = "传真分类'%s'已存在"; $LANG['FAX_FAILED'] = "传真发送有问题"; $LANG['FAX_WHY']["done"] = "完成"; $LANG['FAX_WHY']["format_failed"] = "格式错误"; $LANG['FAX_WHY']["no_formatter"] = "没有格式转换器"; $LANG['FAX_WHY']["poll_no_document"] = "poll no document"; $LANG['FAX_WHY']["killed"] = "终止"; $LANG['FAX_WHY']["rejected"] = "拒绝"; $LANG['FAX_WHY']["blocked"] = "阻止"; $LANG['FAX_WHY']["removed"] = "移除"; $LANG['FAX_WHY']["timedout"] = "超时"; $LANG['FAX_WHY']["poll_rejected"] = "poll被拒绝"; $LANG['FAX_WHY']["poll_failed"] = "poll失败"; $LANG['FAX_WHY']["requeued"] = "重新排队"; $LANG['COMPANY_EXISTS'] = "公司名称已存在"; $LANG['FAXNUMID_NOT_CREATED'] = "无法生成faxnumid"; $LANG['NO_COMPANY_FOR_FAXNUM'] = "没有对应该传真号的公司"; $LANG['CANT_CHANGE_FAXNUM'] = "不能更改已经存在的传真号码"; $LANG['MODEM_EXISTS'] = "Modem设备已存在"; $LANG['MODEM_NOT_CREATED'] = "Modem设备未创建"; $LANG['NO_MODEMS_CONFIGURED'] = "未配置modem"; $LANG['MODEM_DOESNT_EXIST'] = "Modem %s不存在"; $LANG['COVER_EXISTS'] = "Cover page already exists"; // <--- NEW $LANG['COVER_NOT_CREATED'] = "Cover page was not created"; // <--- NEW $LANG['NO_COVERS_CONFIGURED'] = "No cover pages configured"; // <--- NEW $LANG['COVER_DOESNT_EXIST'] = "Cover page %s does not exist"; // <--- NEW $LANG['ADMIN_FAXCAT_DELETED'] = "分类已删除"; $LANG['ADMIN_FAXCAT_CREATED'] = "分类已创建"; $LANG['ADMIN_FAXCAT_UPDATED'] = "分类已更新"; $LANG['ADMIN_MODEM_CREATED'] = "Modem已创建"; $LANG['ADMIN_MODEM_DELETED'] = "Modem已删除"; $LANG['ADMIN_MODEM_UPDATED'] = "Modem已更新"; $LANG['ADMIN_COVER_CREATED'] = "The cover page was created"; // <--- NEW $LANG['ADMIN_COVER_DELETED'] = "The cover page was deleted"; // <--- NEW $LANG['ADMIN_COVER_UPDATED'] = "The cover page was updated"; // <--- NEW $LANG['FAXFREE'] = "空闲"; $LANG['FAXSEND'] = "正在发送传真"; $LANG['FAXRECV'] = "正在接收传真"; $LANG['FAXRECVFROM'] = "正在接收传真:"; $LANG['MODEM_DEVICE'] = "设备"; $LANG['MODEM_CONTACT'] = "联系人"; $LANG['MODEM_ALIAS'] = "别名"; $LANG['COVER_FILE'] = "File name"; // <--- NEW $LANG['COVER_TITLE'] = "Coverpage Title"; // <--- NEW $LANG['SELECT_COVERPAGE'] = "Select cover page"; // <--- NEW $LANG['MISSING_CATEGORY_NAME'] = "You must enter a category name"; // <----- NEW $LANG['MISSING_DEVICE_NAME'] = "You must enter a device name"; // <----- NEW $LANG['MISSING_ALIAS_NAME'] = "You must enter an alias"; // <----- NEW $LANG['MISSING_CONTACT_NAME'] = "You must enter a contact name"; // <----- NEW $LANG['MISSING_ROUTE'] = "You must enter the DID/DTMF digits"; // <----- NEW $LANG['MISSING_FILE_NAME'] = "You must enter a file name"; // <----- NEW $LANG['MISSING_TITLE_NAME'] = "You must enter a title"; // <----- NEW $LANG['ADMIN_CONFIGURE'] = "Configure..."; // <----- NEW $LANG['ADMIN_USERS'] = "用户"; $LANG['ADMIN_NEW_USER'] = "新用户"; $LANG['ADMIN_EDIT_USER'] = "更改用户"; $LANG['ADMIN_DEL_USER'] = "删除用户"; $LANG['ADMIN_LAST_LOGIN'] = "最近一次登录"; $LANG['ADMIN_LAST_IP'] = "最近登录IP"; $LANG['ADMIN_USER_LIST'] = "用户清单"; $LANG['ADMIN_FAXCATS'] = "传真分类"; $LANG['ADMIN_CONFMODEMS'] = "配置modem"; $LANG['ADMIN_CONFCOVERS'] = "Cover Pages"; // <--- NEW $LANG['ADMIN_ROUTING_BY'] = "Configure routing by..."; // <----- NEW $LANG['ADMIN_ROUTEBY_SENDER'] = "Routing by Sender"; // <----- NEW $LANG['ADMIN_ROUTEBY_SENDER_SHORT'] = "Sender"; // <----- NEW $LANG['ADMIN_ROUTEBY_BARCODE'] = "Routing by Barcode"; // <----- NEW $LANG['ADMIN_ROUTEBY_BARCODE_SHORT'] = "Barcode"; // <----- NEW $LANG['ADMIN_ROUTEBY_KEYWORD'] = "Routing by Keyword"; // <----- NEW $LANG['ADMIN_ROUTEBY_KEYWORD_SHORT'] = "Keyword"; // <----- NEW $LANG['ADMIN_DASHBOARD'] = "Dashboard"; // <----- NEW $LANG['ADMIN_STATS'] = "统计"; $LANG['ADMIN_SYSLOGS'] = "系统日志"; $LANG['ADMIN_SYSFUNC'] = "系统功能"; $LANG['ADMIN_NOUSERS'] = "没有创建用户"; $LANG['ADMIN_ACC_ENABLED'] = "帐户有效"; $LANG['ADMIN_PWDCYCLE'][] = "密码失效周期"; $LANG['ADMIN_PWDCYCLE'][] = "从不"; $LANG['ADMIN_PWDCYCLE'][] = "每3个月"; $LANG['ADMIN_PWDCYCLE'][] = "每6个月"; $LANG['ADMIN_PWDEXP'] = "密码失效日期"; $LANG['SUPERUSER'] = "超级用户"; $LANG['IS_ADMIN'] = "Administrator"; // <----- NEW $LANG['USER_CANDEL'] = "用户允许删除传真"; $LANG['ADMIN_FAXLINES'] = "允许查看的传真线"; $LANG['ADMIN_CATEGORIES'] = "允许查看的传真类别"; $LANG['REBOOT'] = "重启服务器"; $LANG['SHUTDOWN'] = "关闭服务器"; $LANG['DOWNLOADARCHIVE'] = "Download Archive"; $LANG['DOWNLOADDB'] = "Download Database"; $LANG['PLSWAIT'] = "请等待"; $LANG['LOGTEXT'] = "日志信息"; $LANG['QUESTION_DELUSER'] = "确定要删除吗?"; $LANG['TSI_ID'] = "TSI ID"; // <----- NEW $LANG['PRIORITY'] = "Priority"; // <----- NEW $LANG['BLACKLIST'] = "Blacklist"; // <----- NEW $LANG['MODIFY_FAXJOB'] = "Modify Job"; // <----- NEW $LANG['NEW_DESTINATION'] = "New Destination"; // <----- NEW $LANG['SCHEDULE_FAX'] = "Schedule delivery"; // <----- NEW $LANG['FAX_NUMTRIES'] = "Number of tries"; // <----- NEW $LANG['FAX_KILLTIME'] = "Kill time"; // <----- NEW $LANG['NOW'] = "Now"; // <----- NEW $LANG['MINUTES'] = "Minutes"; // <----- NEW $LANG['HOURS'] = "Hours"; // <----- NEW $LANG['DAYS'] = "Days"; // <----- NEW $LANG['ADMIN_CONFDYNCONF'] = "Configure DynamicConfig"; // <----- NEW $LANG['DYNCONF_MISSING_CALLID'] = "You must enter the CallID"; // <----- NEW $LANG['DYNCONF_NOT_CREATED'] = "Rule not created"; // <----- NEW $LANG['DYNCONF_EXISTS'] = "Rule exists"; // <----- NEW $LANG['DYNCONF_CALLID'] = "Caller ID"; // <----- NEW $LANG['DYNCONF_CREATED'] = "Rule created"; // <----- NEW $LANG['DYNCONF_DELETED'] = "Rule deleted"; // <----- NEW $LANG['DYNCONF_UPDATED'] = "Rule updated"; // <----- NEW $LANG['OPTIONS'] = "Options"; // <----- NEW $LANG['MUST_CREATE_ROUTES'] = "<a href=\"conf_didroute.php\">You must first create a DID/DTMF group</a>"; // <----- NEW $LANG['MUST_CREATE_MODEMS'] = "<a href=\"conf_modems.php\">You must first create a modem</a>"; // <----- NEW $LANG['MUST_CREATE_CATEGORIES'] = "<a href=\"fax_categories.php\">You must first create a category</a>"; // <----- NEW $LANG['EXPLAIN_CATEGORIES'] = "Categories are useful for organizing faxes in the AvantFAX Archive. Normal users are limited to viewing the categories assigned to them."; // <----- NEW $LANG['EXPLAIN_DYNCONF'] = "HylaFAX's DynamicConfig and RejectCall features are used to reject fax transmissions from known offenders. Enter the Caller ID of the sender you would like to block. Optionally, you may select a device if you only want to block this sender on that device."; // <----- NEW $LANG['EXPLAIN_DIDROUTE'] = "DID/DTMF routing is used to route faxes sent to a hunt group. HylaFAX must be properly configured for this to work. A separate entry must be created for each hunt group you intend to use with AvantFAX. The DID/DTMF digits field is for hunt group information as received by HylaFAX -- typically the last 3 or 4 digits or even 10 digits of the fax number. The Alias field is used to describe the location or purpose for the hunt group. For example, Sales or Support for a fax line dedicated for those departments. The Contact field is for an email address, and every fax that arrives for this group will be emailed to the Contact. The Printer field specifies which CUPS/lpr printer to print the fax on. Normal users can only view faxes from the hunt groups assigned to them."; // <----- NEW $LANG['EXPLAIN_MODEMS'] = "A Modem entry must be created for each modem device you intend to use with AvantFAX. The Device field is for the name of the device as it is configured in HylaFAX (ie: ttyS0, ttyds01 or boston00). The Alias field is used to describe the location or purpose for the modem. For example, Sales or Support for a fax line dedicated for those departments. The Contact field is for an email address, and every fax that arrives on this modem will be emailed to the Contact. The Printer field specifies which CUPS/lpr printer to print the fax on. Normal users can only view faxes from the modems assigned to them."; // <----- NEW $LANG['EXPLAIN_COVERS'] = "A Cover Page entry must be created for each cover page you intend to use with AvantFAX. The File field is for the name of the template file found in the images/ folder (ie: cover.ps, custom.ps, or mycover.html). The Title field is used to describe the cover page. For example: Generic, Sales Dept, Accounting Dept. Anyone can choose any of the cover pages defined here."; $LANG['EXPLAIN_FAX2EMAIL'] = "Fax2Email is for routing individual fax numbers to a specific email address. If you want the faxes sent from 18002125555 to be emailed to sales@yourcompany.com, you must select the company in the list on the left and enter the email address into the Email field. The Company field allows you to modify the company name as displayed in the Address Book. The Printer field specifies which CUPS/lpr printer to print the fax on. Also, you may select a category to automatically categorizing the fax."; // <----- NEW $LANG['EXPLAIN_BARCODEROUTE'] = "Barcode based routing is used to route faxes based on the barcode contained in the fax. Enter the barcode that you want matched to this rule in the Barcode field. The Alias field is used to describe the purpose for this rule. For example for a specific service or product. The Contact field is for an email address, and every fax that arrives for this group will be emailed to the Contact. The Printer field specifies which CUPS/lpr printer to print the fax on. Also, you may select a category to automatically categorizing the fax."; // <----- NEW
YetOpen/avantfax
avantfax/includes/langs/zh.php
PHP
gpl-2.0
22,237
/* Copyright (c) 2008-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. * */ #ifndef MDP_H #define MDP_H #include <linux/kernel.h> #include <linux/sched.h> #include <linux/time.h> #include <linux/init.h> #include <linux/interrupt.h> #include <linux/fb.h> #include <linux/hrtimer.h> #include <linux/msm_mdp.h> #include <linux/memory_alloc.h> #include <mach/hardware.h> #include <linux/ion.h> #ifdef CONFIG_MSM_BUS_SCALING #include <mach/msm_bus.h> #include <mach/msm_bus_board.h> #endif #include <linux/io.h> #include <asm/system.h> #include <asm/mach-types.h> #include "msm_fb_panel.h" extern uint32 mdp_hw_revision; extern ulong mdp4_display_intf; extern spinlock_t mdp_spin_lock; extern int mdp_rev; extern int mdp_iommu_split_domain; extern struct mdp_csc_cfg mdp_csc_convert[4]; extern struct workqueue_struct *mdp_hist_wq; extern uint32 mdp_intr_mask; #define MDP4_REVISION_V1 0 #define MDP4_REVISION_V2 1 #define MDP4_REVISION_V2_1 2 #define MDP4_REVISION_NONE 0xffffffff #ifdef BIT #undef BIT #endif #define BIT(x) (1<<(x)) #define MDPOP_NOP 0 #define MDPOP_LR BIT(0) /* left to right flip */ #define MDPOP_UD BIT(1) /* up and down flip */ #define MDPOP_ROT90 BIT(2) /* rotate image to 90 degree */ #define MDPOP_ROT180 (MDPOP_UD|MDPOP_LR) #define MDPOP_ROT270 (MDPOP_ROT90|MDPOP_UD|MDPOP_LR) #define MDPOP_ASCALE BIT(7) #define MDPOP_ALPHAB BIT(8) /* enable alpha blending */ #define MDPOP_TRANSP BIT(9) /* enable transparency */ #define MDPOP_DITHER BIT(10) /* enable dither */ #define MDPOP_SHARPENING BIT(11) /* enable sharpening */ #define MDPOP_BLUR BIT(12) /* enable blur */ #define MDPOP_FG_PM_ALPHA BIT(13) #define MDP_ALLOC(x) kmalloc(x, GFP_KERNEL) struct mdp_buf_type { struct ion_handle *ihdl; u32 write_addr; u32 read_addr; u32 size; }; struct mdp_table_entry { uint32_t reg; uint32_t val; }; extern struct mdp_ccs mdp_ccs_yuv2rgb ; extern struct mdp_ccs mdp_ccs_rgb2yuv ; extern unsigned char hdmi_prim_display; extern unsigned char hdmi_prim_resolution; struct vsync { ktime_t vsync_time; struct completion vsync_comp; struct device *dev; struct work_struct vsync_work; int vsync_irq_enabled; int vsync_dma_enabled; int disabled_clocks; struct completion vsync_wait; atomic_t suspend; atomic_t vsync_resume; int sysfs_created; }; extern struct vsync vsync_cntrl; /* * MDP Image Structure */ typedef struct mdpImg_ { uint32 imgType; /* Image type */ uint32 *bmy_addr; /* bitmap or y addr */ uint32 *cbcr_addr; /* cbcr addr */ uint32 width; /* image width */ uint32 mdpOp; /* image opertion (rotation,flip up/down, alpha/tp) */ uint32 tpVal; /* transparency color */ uint32 alpha; /* alpha percentage 0%(0x0) ~ 100%(0x100) */ int sp_value; /* sharpening strength */ } MDPIMG; #define MDP_OUTP(addr, data) outpdw((addr), (data)) #define MDP_BASE msm_mdp_base typedef enum { MDP_BC_SCALE_POINT2_POINT4, MDP_BC_SCALE_POINT4_POINT6, MDP_BC_SCALE_POINT6_POINT8, MDP_BC_SCALE_POINT8_1, MDP_BC_SCALE_UP, MDP_PR_SCALE_POINT2_POINT4, MDP_PR_SCALE_POINT4_POINT6, MDP_PR_SCALE_POINT6_POINT8, MDP_PR_SCALE_POINT8_1, MDP_PR_SCALE_UP, MDP_SCALE_BLUR, MDP_INIT_SCALE } MDP_SCALE_MODE; typedef enum { MDP_BLOCK_POWER_OFF, MDP_BLOCK_POWER_ON } MDP_BLOCK_POWER_STATE; typedef enum { MDP_CMD_BLOCK, MDP_OVERLAY0_BLOCK, MDP_MASTER_BLOCK, MDP_PPP_BLOCK, MDP_DMA2_BLOCK, MDP_DMA3_BLOCK, MDP_DMA_S_BLOCK, MDP_DMA_E_BLOCK, MDP_OVERLAY1_BLOCK, MDP_OVERLAY2_BLOCK, MDP_MAX_BLOCK } MDP_BLOCK_TYPE; /* Let's keep Q Factor power of 2 for optimization */ #define MDP_SCALE_Q_FACTOR 512 #ifdef CONFIG_FB_MSM_MDP31 #define MDP_MAX_X_SCALE_FACTOR (MDP_SCALE_Q_FACTOR*8) #define MDP_MIN_X_SCALE_FACTOR (MDP_SCALE_Q_FACTOR/8) #define MDP_MAX_Y_SCALE_FACTOR (MDP_SCALE_Q_FACTOR*8) #define MDP_MIN_Y_SCALE_FACTOR (MDP_SCALE_Q_FACTOR/8) #else #define MDP_MAX_X_SCALE_FACTOR (MDP_SCALE_Q_FACTOR*4) #define MDP_MIN_X_SCALE_FACTOR (MDP_SCALE_Q_FACTOR/4) #define MDP_MAX_Y_SCALE_FACTOR (MDP_SCALE_Q_FACTOR*4) #define MDP_MIN_Y_SCALE_FACTOR (MDP_SCALE_Q_FACTOR/4) #endif /* SHIM Q Factor */ #define PHI_Q_FACTOR 29 #define PQF_PLUS_5 (PHI_Q_FACTOR + 5) /* due to 32 phases */ #define PQF_PLUS_4 (PHI_Q_FACTOR + 4) #define PQF_PLUS_2 (PHI_Q_FACTOR + 2) /* to get 4.0 */ #define PQF_MINUS_2 (PHI_Q_FACTOR - 2) /* to get 0.25 */ #define PQF_PLUS_5_PLUS_2 (PQF_PLUS_5 + 2) #define PQF_PLUS_5_MINUS_2 (PQF_PLUS_5 - 2) #define MDP_CONVTP(tpVal) (((tpVal&0xF800)<<8)|((tpVal&0x7E0)<<5)|((tpVal&0x1F)<<3)) #define MDPOP_ROTATION (MDPOP_ROT90|MDPOP_LR|MDPOP_UD) #define MDP_CHKBIT(val, bit) ((bit) == ((val) & (bit))) /* overlay interface API defines */ typedef enum { MORE_IBUF, FINAL_IBUF, COMPLETE_IBUF } MDP_IBUF_STATE; struct mdp_dirty_region { __u32 xoffset; /* source origin in the x-axis */ __u32 yoffset; /* source origin in the y-axis */ __u32 width; /* number of pixels in the x-axis */ __u32 height; /* number of pixels in the y-axis */ }; /* * MDP extended data types */ typedef struct mdp_roi_s { uint32 x; uint32 y; uint32 width; uint32 height; int32 lcd_x; int32 lcd_y; uint32 dst_width; uint32 dst_height; } MDP_ROI; typedef struct mdp_ibuf_s { uint8 *buf; uint32 bpp; uint32 ibuf_type; uint32 ibuf_width; uint32 ibuf_height; MDP_ROI roi; MDPIMG mdpImg; int32 dma_x; int32 dma_y; uint32 dma_w; uint32 dma_h; uint32 vsync_enable; } MDPIBUF; struct mdp_dma_data { boolean busy; boolean dmap_busy; boolean waiting; struct mutex ov_mutex; struct semaphore mutex; struct completion comp; struct completion dmap_comp; }; extern struct list_head mdp_hist_lut_list; extern struct mutex mdp_hist_lut_list_mutex; struct mdp_hist_lut_mgmt { uint32_t block; struct mutex lock; struct list_head list; }; struct mdp_hist_lut_info { uint32_t block; boolean is_enabled, has_sel_update; int bank_sel; }; struct mdp_hist_mgmt { uint32_t block; uint32_t irq_term; uint32_t base; struct completion mdp_hist_comp; struct mutex mdp_hist_mutex; struct mutex mdp_do_hist_mutex; boolean mdp_is_hist_start, mdp_is_hist_data; boolean mdp_is_hist_valid, mdp_is_hist_init; uint8_t frame_cnt, bit_mask, num_bins; struct work_struct mdp_histogram_worker; struct mdp_histogram_data *hist; uint32_t *c0, *c1, *c2; uint32_t *extra_info; }; enum { MDP_HIST_MGMT_DMA_P = 0, MDP_HIST_MGMT_DMA_S, MDP_HIST_MGMT_VG_1, MDP_HIST_MGMT_VG_2, MDP_HIST_MGMT_MAX, }; extern struct mdp_hist_mgmt *mdp_hist_mgmt_array[]; #define MDP_CMD_DEBUG_ACCESS_BASE (MDP_BASE+0x10000) #define MDP_DMA2_TERM 0x1 #define MDP_DMA3_TERM 0x2 #define MDP_PPP_TERM 0x4 #define MDP_DMA_S_TERM 0x8 #define MDP_DMA_E_TERM 0x10 #ifdef CONFIG_FB_MSM_MDP40 #define MDP_OVERLAY0_TERM 0x20 #define MDP_OVERLAY1_TERM 0x40 #define MDP_DMAP_TERM MDP_DMA2_TERM /* dmap == dma2 */ #define MDP_PRIM_VSYNC_TERM 0x100 #define MDP_EXTER_VSYNC_TERM 0x200 #define MDP_PRIM_RDPTR_TERM 0x400 #endif #define MDP_OVERLAY2_TERM 0x80 #define MDP_HISTOGRAM_TERM_DMA_P 0x10000 #define MDP_HISTOGRAM_TERM_DMA_S 0x20000 #define MDP_HISTOGRAM_TERM_VG_1 0x40000 #define MDP_HISTOGRAM_TERM_VG_2 0x80000 #define MDP_VSYNC_TERM 0x1000 #define ACTIVE_START_X_EN BIT(31) #define ACTIVE_START_Y_EN BIT(31) #define ACTIVE_HIGH 0 #define ACTIVE_LOW 1 #define MDP_DMA_S_DONE BIT(2) #define MDP_DMA_E_DONE BIT(3) #define LCDC_FRAME_START BIT(15) #define LCDC_UNDERFLOW BIT(16) #ifdef CONFIG_FB_MSM_MDP22 #define MDP_DMA_P_DONE BIT(2) #else #define MDP_DMA_P_DONE BIT(14) #endif #define MDP_PPP_DONE BIT(0) #define TV_OUT_DMA3_DONE BIT(6) #define TV_ENC_UNDERRUN BIT(7) #define MDP_PRIM_RDPTR BIT(8) #define TV_OUT_DMA3_START BIT(13) #define MDP_HIST_DONE BIT(20) /* histogram interrupts */ #define INTR_HIST_DONE BIT(1) #define INTR_HIST_RESET_SEQ_DONE BIT(0) #ifdef CONFIG_FB_MSM_MDP22 #define MDP_ANY_INTR_MASK (MDP_PPP_DONE| \ MDP_DMA_P_DONE| \ TV_ENC_UNDERRUN) #else #define MDP_ANY_INTR_MASK (MDP_PPP_DONE| \ MDP_DMA_P_DONE| \ MDP_DMA_S_DONE| \ MDP_DMA_E_DONE| \ LCDC_UNDERFLOW| \ MDP_HIST_DONE| \ TV_ENC_UNDERRUN) #endif #define MDP_TOP_LUMA 16 #define MDP_TOP_CHROMA 0 #define MDP_BOTTOM_LUMA 19 #define MDP_BOTTOM_CHROMA 3 #define MDP_LEFT_LUMA 22 #define MDP_LEFT_CHROMA 6 #define MDP_RIGHT_LUMA 25 #define MDP_RIGHT_CHROMA 9 #define CLR_G 0x0 #define CLR_B 0x1 #define CLR_R 0x2 #define CLR_ALPHA 0x3 #define CLR_Y CLR_G #define CLR_CB CLR_B #define CLR_CR CLR_R /* from lsb to msb */ #define MDP_GET_PACK_PATTERN(a,x,y,z,bit) (((a)<<(bit*3))|((x)<<(bit*2))|((y)<<bit)|(z)) /* * 0x0000 0x0004 0x0008 MDP sync config */ #ifdef CONFIG_FB_MSM_MDP22 #define MDP_SYNCFG_HGT_LOC 22 #define MDP_SYNCFG_VSYNC_EXT_EN BIT(21) #define MDP_SYNCFG_VSYNC_INT_EN BIT(20) #else #define MDP_SYNCFG_HGT_LOC 21 #define MDP_SYNCFG_VSYNC_EXT_EN BIT(20) #define MDP_SYNCFG_VSYNC_INT_EN BIT(19) #define MDP_HW_VSYNC #endif /* * 0x0018 MDP VSYNC THREASH */ #define MDP_PRIM_BELOW_LOC 0 #define MDP_PRIM_ABOVE_LOC 8 /* * MDP_PRIMARY_VSYNC_OUT_CTRL * 0x0080,84,88 internal vsync pulse config */ #define VSYNC_PULSE_EN BIT(31) #define VSYNC_PULSE_INV BIT(30) /* * 0x008c MDP VSYNC CONTROL */ #define DISP0_VSYNC_MAP_VSYNC0 0 #define DISP0_VSYNC_MAP_VSYNC1 BIT(0) #define DISP0_VSYNC_MAP_VSYNC2 BIT(0)|BIT(1) #define DISP1_VSYNC_MAP_VSYNC0 0 #define DISP1_VSYNC_MAP_VSYNC1 BIT(2) #define DISP1_VSYNC_MAP_VSYNC2 BIT(2)|BIT(3) #define PRIMARY_LCD_SYNC_EN BIT(4) #define PRIMARY_LCD_SYNC_DISABLE 0 #define SECONDARY_LCD_SYNC_EN BIT(5) #define SECONDARY_LCD_SYNC_DISABLE 0 #define EXTERNAL_LCD_SYNC_EN BIT(6) #define EXTERNAL_LCD_SYNC_DISABLE 0 /* * 0x101f0 MDP VSYNC Threshold */ #define VSYNC_THRESHOLD_ABOVE_LOC 0 #define VSYNC_THRESHOLD_BELOW_LOC 16 #define VSYNC_ANTI_TEAR_EN BIT(31) /* * 0x10004 command config */ #define MDP_CMD_DBGBUS_EN BIT(0) /* * 0x10124 or 0x101d4PPP source config */ #define PPP_SRC_C0G_8BITS (BIT(1)|BIT(0)) #define PPP_SRC_C1B_8BITS (BIT(3)|BIT(2)) #define PPP_SRC_C2R_8BITS (BIT(5)|BIT(4)) #define PPP_SRC_C3A_8BITS (BIT(7)|BIT(6)) #define PPP_SRC_C0G_6BITS BIT(1) #define PPP_SRC_C1B_6BITS BIT(3) #define PPP_SRC_C2R_6BITS BIT(5) #define PPP_SRC_C0G_5BITS BIT(0) #define PPP_SRC_C1B_5BITS BIT(2) #define PPP_SRC_C2R_5BITS BIT(4) #define PPP_SRC_C3_ALPHA_EN BIT(8) #define PPP_SRC_BPP_INTERLVD_1BYTES 0 #define PPP_SRC_BPP_INTERLVD_2BYTES BIT(9) #define PPP_SRC_BPP_INTERLVD_3BYTES BIT(10) #define PPP_SRC_BPP_INTERLVD_4BYTES (BIT(10)|BIT(9)) #define PPP_SRC_BPP_ROI_ODD_X BIT(11) #define PPP_SRC_BPP_ROI_ODD_Y BIT(12) #define PPP_SRC_INTERLVD_2COMPONENTS BIT(13) #define PPP_SRC_INTERLVD_3COMPONENTS BIT(14) #define PPP_SRC_INTERLVD_4COMPONENTS (BIT(14)|BIT(13)) /* * RGB666 unpack format * TIGHT means R6+G6+B6 together * LOOSE means R6+2 +G6+2+ B6+2 (with MSB) * or 2+R6 +2+G6 +2+B6 (with LSB) */ #define PPP_SRC_UNPACK_TIGHT BIT(17) #define PPP_SRC_UNPACK_LOOSE 0 #define PPP_SRC_UNPACK_ALIGN_LSB 0 #define PPP_SRC_UNPACK_ALIGN_MSB BIT(18) #define PPP_SRC_FETCH_PLANES_INTERLVD 0 #define PPP_SRC_FETCH_PLANES_PSEUDOPLNR BIT(20) #define PPP_SRC_WMV9_MODE BIT(21) /* window media version 9 */ /* * 0x10138 PPP operation config */ #define PPP_OP_SCALE_X_ON BIT(0) #define PPP_OP_SCALE_Y_ON BIT(1) #define PPP_OP_CONVERT_RGB2YCBCR 0 #define PPP_OP_CONVERT_YCBCR2RGB BIT(2) #define PPP_OP_CONVERT_ON BIT(3) #define PPP_OP_CONVERT_MATRIX_PRIMARY 0 #define PPP_OP_CONVERT_MATRIX_SECONDARY BIT(4) #define PPP_OP_LUT_C0_ON BIT(5) #define PPP_OP_LUT_C1_ON BIT(6) #define PPP_OP_LUT_C2_ON BIT(7) /* rotate or blend enable */ #define PPP_OP_ROT_ON BIT(8) #define PPP_OP_ROT_90 BIT(9) #define PPP_OP_FLIP_LR BIT(10) #define PPP_OP_FLIP_UD BIT(11) #define PPP_OP_BLEND_ON BIT(12) #define PPP_OP_BLEND_SRCPIXEL_ALPHA 0 #define PPP_OP_BLEND_DSTPIXEL_ALPHA BIT(13) #define PPP_OP_BLEND_CONSTANT_ALPHA BIT(14) #define PPP_OP_BLEND_SRCPIXEL_TRANSP (BIT(13)|BIT(14)) #define PPP_OP_BLEND_ALPHA_BLEND_NORMAL 0 #define PPP_OP_BLEND_ALPHA_BLEND_REVERSE BIT(15) #define PPP_OP_DITHER_EN BIT(16) #define PPP_OP_COLOR_SPACE_RGB 0 #define PPP_OP_COLOR_SPACE_YCBCR BIT(17) #define PPP_OP_SRC_CHROMA_RGB 0 #define PPP_OP_SRC_CHROMA_H2V1 BIT(18) #define PPP_OP_SRC_CHROMA_H1V2 BIT(19) #define PPP_OP_SRC_CHROMA_420 (BIT(18)|BIT(19)) #define PPP_OP_SRC_CHROMA_COSITE 0 #define PPP_OP_SRC_CHROMA_OFFSITE BIT(20) #define PPP_OP_DST_CHROMA_RGB 0 #define PPP_OP_DST_CHROMA_H2V1 BIT(21) #define PPP_OP_DST_CHROMA_H1V2 BIT(22) #define PPP_OP_DST_CHROMA_420 (BIT(21)|BIT(22)) #define PPP_OP_DST_CHROMA_COSITE 0 #define PPP_OP_DST_CHROMA_OFFSITE BIT(23) #define PPP_BLEND_CALPHA_TRNASP BIT(24) #define PPP_OP_BG_CHROMA_RGB 0 #define PPP_OP_BG_CHROMA_H2V1 BIT(25) #define PPP_OP_BG_CHROMA_H1V2 BIT(26) #define PPP_OP_BG_CHROMA_420 BIT(25)|BIT(26) #define PPP_OP_BG_CHROMA_SITE_COSITE 0 #define PPP_OP_BG_CHROMA_SITE_OFFSITE BIT(27) #define PPP_OP_DEINT_EN BIT(28) #define PPP_BLEND_BG_USE_ALPHA_SEL (1 << 0) #define PPP_BLEND_BG_ALPHA_REVERSE (1 << 3) #define PPP_BLEND_BG_SRCPIXEL_ALPHA (0 << 1) #define PPP_BLEND_BG_DSTPIXEL_ALPHA (1 << 1) #define PPP_BLEND_BG_CONSTANT_ALPHA (2 << 1) #define PPP_BLEND_BG_CONST_ALPHA_VAL(x) ((x) << 24) #define PPP_OP_DST_RGB 0 #define PPP_OP_DST_YCBCR BIT(30) /* * 0x10150 PPP destination config */ #define PPP_DST_C0G_8BIT (BIT(0)|BIT(1)) #define PPP_DST_C1B_8BIT (BIT(3)|BIT(2)) #define PPP_DST_C2R_8BIT (BIT(5)|BIT(4)) #define PPP_DST_C3A_8BIT (BIT(7)|BIT(6)) #define PPP_DST_C0G_6BIT BIT(1) #define PPP_DST_C1B_6BIT BIT(3) #define PPP_DST_C2R_6BIT BIT(5) #define PPP_DST_C0G_5BIT BIT(0) #define PPP_DST_C1B_5BIT BIT(2) #define PPP_DST_C2R_5BIT BIT(4) #define PPP_DST_C3A_8BIT (BIT(7)|BIT(6)) #define PPP_DST_C3ALPHA_EN BIT(8) #define PPP_DST_PACKET_CNT_INTERLVD_2ELEM BIT(9) #define PPP_DST_PACKET_CNT_INTERLVD_3ELEM BIT(10) #define PPP_DST_PACKET_CNT_INTERLVD_4ELEM (BIT(10)|BIT(9)) #define PPP_DST_PACKET_CNT_INTERLVD_6ELEM (BIT(11)|BIT(9)) #define PPP_DST_PACK_LOOSE 0 #define PPP_DST_PACK_TIGHT BIT(13) #define PPP_DST_PACK_ALIGN_LSB 0 #define PPP_DST_PACK_ALIGN_MSB BIT(14) #define PPP_DST_OUT_SEL_AXI 0 #define PPP_DST_OUT_SEL_MDDI BIT(15) #define PPP_DST_BPP_2BYTES BIT(16) #define PPP_DST_BPP_3BYTES BIT(17) #define PPP_DST_BPP_4BYTES (BIT(17)|BIT(16)) #define PPP_DST_PLANE_INTERLVD 0 #define PPP_DST_PLANE_PLANAR BIT(18) #define PPP_DST_PLANE_PSEUDOPLN BIT(19) #define PPP_DST_TO_TV BIT(20) #define PPP_DST_MDDI_PRIMARY 0 #define PPP_DST_MDDI_SECONDARY BIT(21) #define PPP_DST_MDDI_EXTERNAL BIT(22) /* * 0x10180 DMA config */ #define DMA_DSTC0G_8BITS (BIT(1)|BIT(0)) #define DMA_DSTC1B_8BITS (BIT(3)|BIT(2)) #define DMA_DSTC2R_8BITS (BIT(5)|BIT(4)) #define DMA_DSTC0G_6BITS BIT(1) #define DMA_DSTC1B_6BITS BIT(3) #define DMA_DSTC2R_6BITS BIT(5) #define DMA_DSTC0G_5BITS BIT(0) #define DMA_DSTC1B_5BITS BIT(2) #define DMA_DSTC2R_5BITS BIT(4) #define DMA_PACK_TIGHT BIT(6) #define DMA_PACK_LOOSE 0 #define DMA_PACK_ALIGN_LSB 0 /* * use DMA_PACK_ALIGN_MSB if the upper 6 bits from 8 bits output * from LCDC block maps into 6 pins out to the panel */ #define DMA_PACK_ALIGN_MSB BIT(7) #define DMA_PACK_PATTERN_RGB \ (MDP_GET_PACK_PATTERN(0, CLR_R, CLR_G, CLR_B, 2)<<8) #define DMA_PACK_PATTERN_BGR \ (MDP_GET_PACK_PATTERN(0, CLR_B, CLR_G, CLR_R, 2)<<8) #define DMA_OUT_SEL_AHB 0 #define DMA_OUT_SEL_LCDC BIT(20) #define DMA_IBUF_FORMAT_RGB888 0 #define DMA_IBUF_FORMAT_xRGB8888_OR_ARGB8888 BIT(26) #ifdef CONFIG_FB_MSM_MDP303 #define DMA_OUT_SEL_DSI_CMD BIT(19) #define DMA_OUT_SEL_DSI_VIDEO (3 << 19) #endif #ifdef CONFIG_FB_MSM_MDP22 #define DMA_OUT_SEL_MDDI BIT(14) #define DMA_AHBM_LCD_SEL_PRIMARY 0 #define DMA_AHBM_LCD_SEL_SECONDARY BIT(15) #define DMA_IBUF_C3ALPHA_EN BIT(16) #define DMA_DITHER_EN BIT(17) #define DMA_MDDI_DMAOUT_LCD_SEL_PRIMARY 0 #define DMA_MDDI_DMAOUT_LCD_SEL_SECONDARY BIT(18) #define DMA_MDDI_DMAOUT_LCD_SEL_EXTERNAL BIT(19) #define DMA_IBUF_FORMAT_RGB565 BIT(20) #define DMA_IBUF_FORMAT_RGB888_OR_ARGB8888 0 #define DMA_IBUF_NONCONTIGUOUS BIT(21) #else #define DMA_OUT_SEL_MDDI BIT(19) #define DMA_AHBM_LCD_SEL_PRIMARY 0 #define DMA_AHBM_LCD_SEL_SECONDARY 0 #define DMA_IBUF_C3ALPHA_EN 0 #define DMA_BUF_FORMAT_RGB565 BIT(25) #define DMA_DITHER_EN BIT(24) /* dma_p */ #define DMA_DEFLKR_EN BIT(24) /* dma_e */ #define DMA_MDDI_DMAOUT_LCD_SEL_PRIMARY 0 #define DMA_MDDI_DMAOUT_LCD_SEL_SECONDARY 0 #define DMA_MDDI_DMAOUT_LCD_SEL_EXTERNAL 0 #define DMA_IBUF_FORMAT_RGB565 BIT(25) #define DMA_IBUF_NONCONTIGUOUS 0 #endif /* * MDDI Register */ #define MDDI_VDO_PACKET_DESC_16 0x5565 #define MDDI_VDO_PACKET_DESC 0x5666 /* 18 bits */ #define MDDI_VDO_PACKET_DESC_24 0x5888 #define MDP_HIST_INTR_STATUS_OFF (0x0014) #define MDP_HIST_INTR_CLEAR_OFF (0x0018) #define MDP_HIST_INTR_ENABLE_OFF (0x001C) #ifdef CONFIG_FB_MSM_MDP40 #define MDP_INTR_ENABLE (msm_mdp_base + 0x0050) #define MDP_INTR_STATUS (msm_mdp_base + 0x0054) #define MDP_INTR_CLEAR (msm_mdp_base + 0x0058) #define MDP_EBI2_LCD0 (msm_mdp_base + 0x0060) #define MDP_EBI2_LCD1 (msm_mdp_base + 0x0064) #define MDP_EBI2_PORTMAP_MODE (msm_mdp_base + 0x0070) #define MDP_DMA_P_HIST_INTR_STATUS (msm_mdp_base + 0x95014) #define MDP_DMA_P_HIST_INTR_CLEAR (msm_mdp_base + 0x95018) #define MDP_DMA_P_HIST_INTR_ENABLE (msm_mdp_base + 0x9501C) #else #define MDP_INTR_ENABLE (msm_mdp_base + 0x0020) #define MDP_INTR_STATUS (msm_mdp_base + 0x0024) #define MDP_INTR_CLEAR (msm_mdp_base + 0x0028) #define MDP_EBI2_LCD0 (msm_mdp_base + 0x003c) #define MDP_EBI2_LCD1 (msm_mdp_base + 0x0040) #define MDP_EBI2_PORTMAP_MODE (msm_mdp_base + 0x005c) #define MDP_DMA_P_HIST_INTR_STATUS (msm_mdp_base + 0x94014) #define MDP_DMA_P_HIST_INTR_CLEAR (msm_mdp_base + 0x94018) #define MDP_DMA_P_HIST_INTR_ENABLE (msm_mdp_base + 0x9401C) #endif #define MDP_FULL_BYPASS_WORD43 (msm_mdp_base + 0x101ac) #define MDP_CSC_PFMVn(n) (msm_mdp_base + 0x40400 + 4 * (n)) #define MDP_CSC_PRMVn(n) (msm_mdp_base + 0x40440 + 4 * (n)) #define MDP_CSC_PRE_BV1n(n) (msm_mdp_base + 0x40500 + 4 * (n)) #define MDP_CSC_PRE_BV2n(n) (msm_mdp_base + 0x40540 + 4 * (n)) #define MDP_CSC_POST_BV1n(n) (msm_mdp_base + 0x40580 + 4 * (n)) #define MDP_CSC_POST_BV2n(n) (msm_mdp_base + 0x405c0 + 4 * (n)) #ifdef CONFIG_FB_MSM_MDP31 #define MDP_CSC_PRE_LV1n(n) (msm_mdp_base + 0x40600 + 4 * (n)) #define MDP_CSC_PRE_LV2n(n) (msm_mdp_base + 0x40640 + 4 * (n)) #define MDP_CSC_POST_LV1n(n) (msm_mdp_base + 0x40680 + 4 * (n)) #define MDP_CSC_POST_LV2n(n) (msm_mdp_base + 0x406c0 + 4 * (n)) #define MDP_PPP_SCALE_COEFF_LSBn(n) (msm_mdp_base + 0x50400 + 8 * (n)) #define MDP_PPP_SCALE_COEFF_MSBn(n) (msm_mdp_base + 0x50404 + 8 * (n)) #define SCALE_D0_SET 0 #define SCALE_D1_SET BIT(0) #define SCALE_D2_SET BIT(1) #define SCALE_U1_SET (BIT(0)|BIT(1)) #else #define MDP_CSC_PRE_LV1n(n) (msm_mdp_base + 0x40580 + 4 * (n)) #endif #define MDP_CURSOR_WIDTH 64 #define MDP_CURSOR_HEIGHT 64 #define MDP_CURSOR_SIZE (MDP_CURSOR_WIDTH*MDP_CURSOR_WIDTH*4) #define MDP_DMA_P_LUT_C0_EN BIT(0) #define MDP_DMA_P_LUT_C1_EN BIT(1) #define MDP_DMA_P_LUT_C2_EN BIT(2) #define MDP_DMA_P_LUT_POST BIT(4) void mdp_hw_init(void); int mdp_ppp_pipe_wait(void); void mdp_pipe_kickoff(uint32 term, struct msm_fb_data_type *mfd); void mdp_clk_ctrl(int on); void mdp_pipe_ctrl(MDP_BLOCK_TYPE block, MDP_BLOCK_POWER_STATE state, boolean isr); void mdp_set_dma_pan_info(struct fb_info *info, struct mdp_dirty_region *dirty, boolean sync); void mdp_dma_pan_update(struct fb_info *info); void mdp_refresh_screen(unsigned long data); int mdp_ppp_blit(struct fb_info *info, struct mdp_blit_req *req); void mdp_lcd_update_workqueue_handler(struct work_struct *work); void mdp_vsync_resync_workqueue_handler(struct work_struct *work); void mdp_dma2_update(struct msm_fb_data_type *mfd); void mdp_vsync_cfg_regs(struct msm_fb_data_type *mfd, boolean first_time); void mdp_config_vsync(struct platform_device *pdev, struct msm_fb_data_type *mfd); uint32 mdp_get_lcd_line_counter(struct msm_fb_data_type *mfd); enum hrtimer_restart mdp_dma2_vsync_hrtimer_handler(struct hrtimer *ht); void mdp_set_scale(MDPIBUF *iBuf, uint32 dst_roi_width, uint32 dst_roi_height, boolean inputRGB, boolean outputRGB, uint32 *pppop_reg_ptr); void mdp_init_scale_table(void); void mdp_adjust_start_addr(uint8 **src0, uint8 **src1, int v_slice, int h_slice, int x, int y, uint32 width, uint32 height, int bpp, MDPIBUF *iBuf, int layer); void mdp_set_blend_attr(MDPIBUF *iBuf, uint32 *alpha, uint32 *tpVal, uint32 perPixelAlpha, uint32 *pppop_reg_ptr); int mdp_dma3_on(struct platform_device *pdev); int mdp_dma3_off(struct platform_device *pdev); void mdp_dma3_update(struct msm_fb_data_type *mfd); int mdp_lcdc_on(struct platform_device *pdev); int mdp_lcdc_off(struct platform_device *pdev); void mdp_lcdc_update(struct msm_fb_data_type *mfd); #ifdef CONFIG_FB_MSM_MDP303 int mdp_dsi_video_on(struct platform_device *pdev); int mdp_dsi_video_off(struct platform_device *pdev); void mdp_dsi_video_update(struct msm_fb_data_type *mfd); void mdp3_dsi_cmd_dma_busy_wait(struct msm_fb_data_type *mfd); static inline int mdp4_dsi_cmd_off(struct platform_device *pdev) { return 0; } static inline int mdp4_dsi_video_off(struct platform_device *pdev) { return 0; } static inline int mdp4_lcdc_off(struct platform_device *pdev) { return 0; } static inline int mdp4_dsi_cmd_on(struct platform_device *pdev) { return 0; } static inline int mdp4_dsi_video_on(struct platform_device *pdev) { return 0; } static inline int mdp4_lcdc_on(struct platform_device *pdev) { return 0; } #endif void set_cont_splashScreen_status(int); int mdp_hw_cursor_update(struct fb_info *info, struct fb_cursor *cursor); #if defined(CONFIG_FB_MSM_OVERLAY) && defined(CONFIG_FB_MSM_MDP40) int mdp_hw_cursor_sync_update(struct fb_info *info, struct fb_cursor *cursor); #else static inline int mdp_hw_cursor_sync_update(struct fb_info *info, struct fb_cursor *cursor) { return 0; } #endif void mdp_enable_irq(uint32 term); void mdp_disable_irq(uint32 term); void mdp_disable_irq_nosync(uint32 term); int mdp_get_bytes_per_pixel(uint32_t format, struct msm_fb_data_type *mfd); int mdp_set_core_clk(u32 rate); int mdp_clk_round_rate(u32 rate); unsigned long mdp_get_core_clk(void); unsigned long mdp_perf_level2clk_rate(uint32 perf_level); #ifdef CONFIG_MSM_BUS_SCALING int mdp_bus_scale_update_request(uint32_t index); #else static inline int mdp_bus_scale_update_request(uint32_t index) { return 0; } #endif void mdp_dma_vsync_ctrl(int enable); void mdp_dma_video_vsync_ctrl(int enable); void mdp_dma_lcdc_vsync_ctrl(int enable); ssize_t mdp_dma_show_event(struct device *dev, struct device_attribute *attr, char *buf); ssize_t mdp_dma_video_show_event(struct device *dev, struct device_attribute *attr, char *buf); ssize_t mdp_dma_lcdc_show_event(struct device *dev, struct device_attribute *attr, char *buf); #ifdef MDP_HW_VSYNC void vsync_clk_prepare_enable(void); void vsync_clk_disable_unprepare(void); void mdp_hw_vsync_clk_enable(struct msm_fb_data_type *mfd); void mdp_hw_vsync_clk_disable(struct msm_fb_data_type *mfd); void mdp_vsync_clk_disable(void); void mdp_vsync_clk_enable(void); #endif #ifdef CONFIG_DEBUG_FS int mdp_debugfs_init(void); #endif void mdp_dma_s_update(struct msm_fb_data_type *mfd); int mdp_histogram_start(struct mdp_histogram_start_req *req); int mdp_histogram_stop(struct fb_info *info, uint32_t block); int mdp_histogram_ctrl(boolean en, uint32_t block); int mdp_histogram_ctrl_all(boolean en); int mdp_histogram_block2mgmt(uint32_t block, struct mdp_hist_mgmt **mgmt); void mdp_histogram_handle_isr(struct mdp_hist_mgmt *mgmt); void __mdp_histogram_kickoff(struct mdp_hist_mgmt *mgmt); void __mdp_histogram_reset(struct mdp_hist_mgmt *mgmt); void mdp_footswitch_ctrl(boolean on); #ifdef CONFIG_FB_MSM_MDP303 static inline void mdp4_dsi_cmd_dma_busy_wait(struct msm_fb_data_type *mfd) { /* empty */ } static inline void mdp4_dsi_blt_dmap_busy_wait(struct msm_fb_data_type *mfd) { /* empty */ } static inline void mdp4_overlay_dsi_state_set(int state) { /* empty */ } static inline int mdp4_overlay_dsi_state_get(void) { return 0; } #endif #ifndef CONFIG_FB_MSM_MDP40 static inline void mdp_dsi_cmd_overlay_suspend(struct msm_fb_data_type *mfd) { /* empty */ } static inline int msmfb_overlay_vsync_ctrl(struct fb_info *info, void __user *argp) { return 0; } #endif int mdp_ppp_v4l2_overlay_set(struct fb_info *info, struct mdp_overlay *req); int mdp_ppp_v4l2_overlay_clear(void); int mdp_ppp_v4l2_overlay_play(struct fb_info *info, unsigned long srcp0_addr, unsigned long srcp0_size, unsigned long srcp1_addr, unsigned long srcp1_size); #ifdef CONFIG_FB_MSM_DTV void mdp_vid_quant_set(void); #else static inline void mdp_vid_quant_set(void) { /* empty */ } #endif #endif /* MDP_H */
TeamRegular/android_kernel_lge_iproj
drivers/video/msm/mdp.h
C
gpl-2.0
25,743
<script type="text/javascript"> google.setOnLoadCallback(drawSalesMonthlyChart); function drawSalesMonthlyChart() { var data = new google.visualization.DataTable(); data.addColumn('string', 'Month'); data.addColumn('number', 'Sales (Amount)'); data.addRows(<?php print count($data); ?>); <?php $c = 0; foreach ($data as $m => $d){ print "data.setValue(".$c.", 0, '".$m."');\n"; print "data.setValue(".$c.", 1, ".number_format($d,2).");\n"; $c++; } ?> var chart = new google.visualization.ColumnChart(document.getElementById('salesmonthlychart_div')); var options = { 'title':Drupal.t('Product Sales'), 'width':880, 'height':300, 'chartArea':{left:100,top:10,width:600}, 'legend' : 'right' }; chart.draw(data, options); } </script> <section class="commerce-reports-accordion"> <header> <h2><?php print t('Product Sales');?><a>+</a></h2> </header> <div id="salesmonthlychart_div"></div> </section>
front/commerce
sites/all/modules/custom/commerce_reports/theme/commerce-reports-products-sales-monthly-bar.tpl.php
PHP
gpl-2.0
1,211
/*- * See the file LICENSE for redistribution information. * * Copyright (c) 2000,2007 Oracle. All rights reserved. * * $Id: SortedFloatBinding.java,v 1.3.2.1 2007/02/01 14:49:39 cwl Exp $ */ package com.sleepycat.bind.tuple; import com.sleepycat.je.DatabaseEntry; /** * A concrete <code>TupleBinding</code> for a <code>Float</code> primitive * wrapper or a <code>float</code> primitive. * * <p>This class produces byte array values that by default (without a custom * comparator) sort correctly, including sorting of negative values. * Therefore, this class should normally be used instead of {@link * FloatBinding} which does not by default support sorting of negative values. * Please note that:</p> * <ul> * <li>The byte array (stored) formats used by {@link FloatBinding} and * {@link SortedFloatBinding} are different and incompatible. They are not * interchangable once data has been stored.</li> * <li>An instance of {@link FloatBinding}, not {@link SortedFloatBinding}, is * returned by {@link TupleBinding#getPrimitiveBinding} method. Therefore, to * use {@link SortedFloatBinding}, {@link TupleBinding#getPrimitiveBinding} * should not be called.</li> * </ul> * * <p>There are two ways to use this class:</p> * <ol> * <li>When using the {@link com.sleepycat.je} package directly, the static * methods in this class can be used to convert between primitive values and * {@link DatabaseEntry} objects.</li> * <li>When using the {@link com.sleepycat.collections} package, an instance of * this class can be used with any stored collection.</li> * </ol> */ public class SortedFloatBinding extends TupleBinding { /* javadoc is inherited */ public Object entryToObject(TupleInput input) { return new Float(input.readSortedFloat()); } /* javadoc is inherited */ public void objectToEntry(Object object, TupleOutput output) { output.writeSortedFloat(((Number) object).floatValue()); } /* javadoc is inherited */ protected TupleOutput getTupleOutput(Object object) { return FloatBinding.sizedOutput(); } /** * Converts an entry buffer into a simple <code>float</code> value. * * @param entry is the source entry buffer. * * @return the resulting value. */ public static float entryToFloat(DatabaseEntry entry) { return entryToInput(entry).readSortedFloat(); } /** * Converts a simple <code>float</code> value into an entry buffer. * * @param val is the source value. * * @param entry is the destination entry buffer. */ public static void floatToEntry(float val, DatabaseEntry entry) { outputToEntry(FloatBinding.sizedOutput().writeSortedFloat(val), entry); } }
nologic/nabs
client/trunk/shared/libraries/je-3.2.44/src/com/sleepycat/bind/tuple/SortedFloatBinding.java
Java
gpl-2.0
2,773
#ifndef _LINUX_CISREG_H #define _LINUX_CISREG_H #define CISREG_COR 0x00 #define CISREG_CCSR 0x02 #define CISREG_PRR 0x04 #define CISREG_SCR 0x06 #define CISREG_ESR 0x08 #define CISREG_IOBASE_0 0x0a #define CISREG_IOBASE_1 0x0c #define CISREG_IOBASE_2 0x0e #define CISREG_IOBASE_3 0x10 #define CISREG_IOSIZE 0x12 #define COR_CONFIG_MASK 0x3f #define COR_MFC_CONFIG_MASK 0x38 #define COR_FUNC_ENA 0x01 #define COR_ADDR_DECODE 0x02 #define COR_IREQ_ENA 0x04 #define COR_LEVEL_REQ 0x40 #define COR_SOFT_RESET 0x80 #define CCSR_INTR_ACK 0x01 #define CCSR_INTR_PENDING 0x02 #define CCSR_POWER_DOWN 0x04 #define CCSR_AUDIO_ENA 0x08 #define CCSR_IOIS8 0x20 #define CCSR_SIGCHG_ENA 0x40 #define CCSR_CHANGED 0x80 #define PRR_WP_STATUS 0x01 #define PRR_READY_STATUS 0x02 #define PRR_BVD2_STATUS 0x04 #define PRR_BVD1_STATUS 0x08 #define PRR_WP_EVENT 0x10 #define PRR_READY_EVENT 0x20 #define PRR_BVD2_EVENT 0x40 #define PRR_BVD1_EVENT 0x80 #define SCR_SOCKET_NUM 0x0f #define SCR_COPY_NUM 0x70 #define ESR_REQ_ATTN_ENA 0x01 #define ESR_REQ_ATTN 0x10 #define CBFN_EVENT 0x00 #define CBFN_MASK 0x04 #define CBFN_STATE 0x08 #define CBFN_FORCE 0x0c #define CBFN_WP 0x0001 #define CBFN_READY 0x0002 #define CBFN_BVD2 0x0004 #define CBFN_BVD1 0x0008 #define CBFN_GWAKE 0x0010 #define CBFN_INTR 0x8000 #define FEMR_BAM_ENA 0x0020 #define FEMR_PWM_ENA 0x0040 #define FEMR_WKUP_MASK 0x4000 #define CISREG_ICTRL0 0x02 /* control registers */ #define CISREG_ICTRL1 0x03 #define CISREG_IADDR0 0x04 /* address registers */ #define CISREG_IADDR1 0x05 #define CISREG_IADDR2 0x06 #define CISREG_IADDR3 0x07 #define CISREG_IDATA0 0x08 /* data registers */ #define CISREG_IDATA1 0x09 #define ICTRL0_COMMON 0x01 #define ICTRL0_AUTOINC 0x02 #define ICTRL0_BYTEGRAN 0x04 #endif /* _LINUX_CISREG_H */
luckasfb/OT_903D-kernel-2.6.35.7
kernel/include/pcmcia/cisreg.h
C
gpl-2.0
1,840
/** * @file raytrace.cpp * @brief Functions called by box object scripts. * * $LicenseInfo:firstyear=2001&license=viewergpl$ * * Copyright (c) 2001-2009, Linden Research, Inc. * * Second Life Viewer Source Code * The source code in this file ("Source Code") is provided by Linden Lab * to you under the terms of the GNU General Public License, version 2.0 * ("GPL"), unless you have obtained a separate licensing agreement * ("Other License"), formally executed by you and Linden Lab. Terms of * the GPL can be found in doc/GPL-license.txt in this distribution, or * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2 * * There are special exceptions to the terms and conditions of the GPL as * it is applied to this Source Code. View the full text of the exception * in the file doc/FLOSS-exception.txt in this software distribution, or * online at * http://secondlifegrid.net/programs/open_source/licensing/flossexception * * By copying, modifying or distributing this software, you acknowledge * that you have read and understood your obligations described above, * and agree to abide by those obligations. * * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, * COMPLETENESS OR PERFORMANCE. * $/LicenseInfo$ */ #include "linden_common.h" #include "math.h" //#include "vmath.h" #include "v3math.h" #include "llquaternion.h" #include "m3math.h" #include "raytrace.h" BOOL line_plane(const LLVector3 &line_point, const LLVector3 &line_direction, const LLVector3 &plane_point, const LLVector3 plane_normal, LLVector3 &intersection) { F32 N = line_direction * plane_normal; if (0.0f == N) { // line is perpendicular to plane normal // so it is either entirely on plane, or not on plane at all return FALSE; } // Ax + By, + Cz + D = 0 // D = - (plane_point * plane_normal) // N = line_direction * plane_normal // intersection = line_point - ((D + plane_normal * line_point) / N) * line_direction intersection = line_point - ((plane_normal * line_point - plane_point * plane_normal) / N) * line_direction; return TRUE; } BOOL ray_plane(const LLVector3 &ray_point, const LLVector3 &ray_direction, const LLVector3 &plane_point, const LLVector3 plane_normal, LLVector3 &intersection) { F32 N = ray_direction * plane_normal; if (0.0f == N) { // ray is perpendicular to plane normal // so it is either entirely on plane, or not on plane at all return FALSE; } // Ax + By, + Cz + D = 0 // D = - (plane_point * plane_normal) // N = ray_direction * plane_normal // intersection = ray_point - ((D + plane_normal * ray_point) / N) * ray_direction F32 alpha = -(plane_normal * ray_point - plane_point * plane_normal) / N; if (alpha < 0.0f) { // ray points away from plane return FALSE; } intersection = ray_point + alpha * ray_direction; return TRUE; } BOOL ray_circle(const LLVector3 &ray_point, const LLVector3 &ray_direction, const LLVector3 &circle_center, const LLVector3 plane_normal, F32 circle_radius, LLVector3 &intersection) { if (ray_plane(ray_point, ray_direction, circle_center, plane_normal, intersection)) { if (circle_radius >= (intersection - circle_center).magVec()) { return TRUE; } } return FALSE; } BOOL ray_triangle(const LLVector3 &ray_point, const LLVector3 &ray_direction, const LLVector3 &point_0, const LLVector3 &point_1, const LLVector3 &point_2, LLVector3 &intersection, LLVector3 &intersection_normal) { LLVector3 side_01 = point_1 - point_0; LLVector3 side_12 = point_2 - point_1; intersection_normal = side_01 % side_12; intersection_normal.normVec(); if (ray_plane(ray_point, ray_direction, point_0, intersection_normal, intersection)) { LLVector3 side_20 = point_0 - point_2; if (intersection_normal * (side_01 % (intersection - point_0)) >= 0.0f && intersection_normal * (side_12 % (intersection - point_1)) >= 0.0f && intersection_normal * (side_20 % (intersection - point_2)) >= 0.0f) { return TRUE; } } return FALSE; } // assumes a parallelogram BOOL ray_quadrangle(const LLVector3 &ray_point, const LLVector3 &ray_direction, const LLVector3 &point_0, const LLVector3 &point_1, const LLVector3 &point_2, LLVector3 &intersection, LLVector3 &intersection_normal) { LLVector3 side_01 = point_1 - point_0; LLVector3 side_12 = point_2 - point_1; intersection_normal = side_01 % side_12; intersection_normal.normVec(); if (ray_plane(ray_point, ray_direction, point_0, intersection_normal, intersection)) { LLVector3 point_3 = point_0 + (side_12); LLVector3 side_23 = point_3 - point_2; LLVector3 side_30 = point_0 - point_3; if (intersection_normal * (side_01 % (intersection - point_0)) >= 0.0f && intersection_normal * (side_12 % (intersection - point_1)) >= 0.0f && intersection_normal * (side_23 % (intersection - point_2)) >= 0.0f && intersection_normal * (side_30 % (intersection - point_3)) >= 0.0f) { return TRUE; } } return FALSE; } BOOL ray_sphere(const LLVector3 &ray_point, const LLVector3 &ray_direction, const LLVector3 &sphere_center, F32 sphere_radius, LLVector3 &intersection, LLVector3 &intersection_normal) { LLVector3 ray_to_sphere = sphere_center - ray_point; F32 dot = ray_to_sphere * ray_direction; LLVector3 closest_approach = dot * ray_direction - ray_to_sphere; F32 shortest_distance = closest_approach.magVecSquared(); F32 radius_squared = sphere_radius * sphere_radius; if (shortest_distance > radius_squared) { return FALSE; } F32 half_chord = (F32) sqrt(radius_squared - shortest_distance); closest_approach = sphere_center + closest_approach; // closest_approach now in absolute coordinates intersection = closest_approach + half_chord * ray_direction; dot = ray_direction * (intersection - ray_point); if (dot < 0.0f) { // ray shoots away from sphere and is not inside it return FALSE; } shortest_distance = ray_direction * ((closest_approach - half_chord * ray_direction) - ray_point); if (shortest_distance > 0.0f) { // ray enters sphere intersection = intersection - (2.0f * half_chord) * ray_direction; } else { // do nothing // ray starts inside sphere and intersects as it leaves the sphere } intersection_normal = intersection - sphere_center; if (sphere_radius > 0.0f) { intersection_normal *= 1.0f / sphere_radius; } else { intersection_normal.setVec(0.0f, 0.0f, 0.0f); } return TRUE; } BOOL ray_cylinder(const LLVector3 &ray_point, const LLVector3 &ray_direction, const LLVector3 &cyl_center, const LLVector3 &cyl_scale, const LLQuaternion &cyl_rotation, LLVector3 &intersection, LLVector3 &intersection_normal) { // calculate the centers of the cylinder caps in the absolute frame LLVector3 cyl_top(0.0f, 0.0f, 0.5f * cyl_scale.mV[VZ]); LLVector3 cyl_bottom(0.0f, 0.0f, -cyl_top.mV[VZ]); cyl_top = (cyl_top * cyl_rotation) + cyl_center; cyl_bottom = (cyl_bottom * cyl_rotation) + cyl_center; // we only handle cylinders with circular cross-sections at the moment F32 cyl_radius = 0.5f * llmax(cyl_scale.mV[VX], cyl_scale.mV[VY]); // HACK until scaled cylinders are supported // This implementation is based on the intcyl() function from Graphics_Gems_IV, page 361 LLVector3 cyl_axis; // axis direction (bottom toward top) LLVector3 ray_to_cyl; // ray_point to cyl_top F32 shortest_distance; // shortest distance from ray to axis F32 cyl_length; LLVector3 shortest_direction; LLVector3 temp_vector; cyl_axis = cyl_bottom - cyl_top; cyl_length = cyl_axis.normVec(); ray_to_cyl = ray_point - cyl_bottom; shortest_direction = ray_direction % cyl_axis; shortest_distance = shortest_direction.normVec(); // recycle shortest_distance // check for ray parallel to cylinder axis if (0.0f == shortest_distance) { // ray is parallel to cylinder axis temp_vector = ray_to_cyl - (ray_to_cyl * cyl_axis) * cyl_axis; shortest_distance = temp_vector.magVec(); if (shortest_distance <= cyl_radius) { shortest_distance = ray_to_cyl * cyl_axis; F32 dot = ray_direction * cyl_axis; if (shortest_distance > 0.0) { if (dot > 0.0f) { // ray points away from cylinder bottom return FALSE; } // ray hit bottom of cylinder from outside intersection = ray_point - shortest_distance * cyl_axis; intersection_normal = cyl_axis; } else if (shortest_distance > -cyl_length) { // ray starts inside cylinder if (dot < 0.0f) { // ray hit top from inside intersection = ray_point - (cyl_length + shortest_distance) * cyl_axis; intersection_normal = -cyl_axis; } else { // ray hit bottom from inside intersection = ray_point - shortest_distance * cyl_axis; intersection_normal = cyl_axis; } } else { if (dot < 0.0f) { // ray points away from cylinder bottom return FALSE; } // ray hit top from outside intersection = ray_point - (shortest_distance + cyl_length) * cyl_axis; intersection_normal = -cyl_axis; } return TRUE; } return FALSE; } // check for intersection with infinite cylinder shortest_distance = (F32) fabs(ray_to_cyl * shortest_direction); if (shortest_distance <= cyl_radius) { F32 dist_to_closest_point; // dist from ray_point to closest_point F32 half_chord_length; // half length of intersection chord F32 in, out; // distances to entering/exiting points temp_vector = ray_to_cyl % cyl_axis; dist_to_closest_point = - (temp_vector * shortest_direction); temp_vector = shortest_direction % cyl_axis; temp_vector.normVec(); half_chord_length = (F32) fabs( sqrt(cyl_radius*cyl_radius - shortest_distance * shortest_distance) / (ray_direction * temp_vector) ); out = dist_to_closest_point + half_chord_length; // dist to exiting point if (out < 0.0f) { // cylinder is behind the ray, so we return FALSE return FALSE; } in = dist_to_closest_point - half_chord_length; // dist to entering point if (in < 0.0f) { // ray_point is inside the cylinder // so we store the exiting intersection intersection = ray_point + out * ray_direction; shortest_distance = out; } else { // ray hit cylinder from outside // so we store the entering intersection intersection = ray_point + in * ray_direction; shortest_distance = in; } // calculate the normal at intersection if (0.0f == cyl_radius) { intersection_normal.setVec(0.0f, 0.0f, 0.0f); } else { temp_vector = intersection - cyl_bottom; intersection_normal = temp_vector - (temp_vector * cyl_axis) * cyl_axis; intersection_normal.normVec(); } // check for intersection with end caps // calculate intersection of ray and top plane if (line_plane(ray_point, ray_direction, cyl_top, -cyl_axis, temp_vector)) // NOTE side-effect: changing temp_vector { shortest_distance = (temp_vector - ray_point).magVec(); if ( (ray_direction * cyl_axis) > 0.0f) { // ray potentially enters the cylinder at top if (shortest_distance > out) { // ray missed the finite cylinder return FALSE; } if (shortest_distance > in) { // ray intersects cylinder at top plane intersection = temp_vector; intersection_normal = -cyl_axis; return TRUE; } } else { // ray potentially exits the cylinder at top if (shortest_distance < in) { // missed the finite cylinder return FALSE; } } // calculate intersection of ray and bottom plane line_plane(ray_point, ray_direction, cyl_bottom, cyl_axis, temp_vector); // NOTE side-effect: changing temp_vector shortest_distance = (temp_vector - ray_point).magVec(); if ( (ray_direction * cyl_axis) < 0.0) { // ray potentially enters the cylinder at bottom if (shortest_distance > out) { // ray missed the finite cylinder return FALSE; } if (shortest_distance > in) { // ray intersects cylinder at bottom plane intersection = temp_vector; intersection_normal = cyl_axis; return TRUE; } } else { // ray potentially exits the cylinder at bottom if (shortest_distance < in) { // ray missed the finite cylinder return FALSE; } } } else { // ray is parallel to end cap planes temp_vector = cyl_bottom - ray_point; shortest_distance = temp_vector * cyl_axis; if (shortest_distance < 0.0f || shortest_distance > cyl_length) { // ray missed finite cylinder return FALSE; } } return TRUE; } return FALSE; } U32 ray_box(const LLVector3 &ray_point, const LLVector3 &ray_direction, const LLVector3 &box_center, const LLVector3 &box_scale, const LLQuaternion &box_rotation, LLVector3 &intersection, LLVector3 &intersection_normal) { // Need to rotate into box frame LLQuaternion into_box_frame(box_rotation); // rotates things from box frame to absolute into_box_frame.conjQuat(); // now rotates things into box frame LLVector3 line_point = (ray_point - box_center) * into_box_frame; LLVector3 line_direction = ray_direction * into_box_frame; // Suppose we have a plane: Ax + By + Cz + D = 0 // then, assuming [A, B, C] is a unit vector: // // plane_normal = [A, B, C] // D = - (plane_normal * plane_point) // // Suppose we have a line: X = line_point + alpha * line_direction // // the intersection of the plane and line determines alpha // // alpha = - (D + plane_normal * line_point) / (plane_normal * line_direction) LLVector3 line_plane_intersection; F32 pointX = line_point.mV[VX]; F32 pointY = line_point.mV[VY]; F32 pointZ = line_point.mV[VZ]; F32 dirX = line_direction.mV[VX]; F32 dirY = line_direction.mV[VY]; F32 dirZ = line_direction.mV[VZ]; // we'll be using the half-scales of the box F32 boxX = 0.5f * box_scale.mV[VX]; F32 boxY = 0.5f * box_scale.mV[VY]; F32 boxZ = 0.5f * box_scale.mV[VZ]; // check to see if line_point is OUTSIDE the box if (pointX < -boxX || pointX > boxX || pointY < -boxY || pointY > boxY || pointZ < -boxZ || pointZ > boxZ) { // -------------- point is OUTSIDE the box ---------------- // front if (pointX > 0.0f && dirX < 0.0f) { // plane_normal = [ 1, 0, 0] // plane_normal*line_point = pointX // plane_normal*line_direction = dirX // D = -boxX // alpha = - (-boxX + pointX) / dirX line_plane_intersection = line_point - ((pointX - boxX) / dirX) * line_direction; if (line_plane_intersection.mV[VY] < boxY && line_plane_intersection.mV[VY] > -boxY && line_plane_intersection.mV[VZ] < boxZ && line_plane_intersection.mV[VZ] > -boxZ ) { intersection = (line_plane_intersection * box_rotation) + box_center; intersection_normal = LLVector3(1.0f, 0.0f, 0.0f) * box_rotation; return FRONT_SIDE; } } // back if (pointX < 0.0f && dirX > 0.0f) { // plane_normal = [ -1, 0, 0] // plane_normal*line_point = -pX // plane_normal*line_direction = -direction.mV[VX] // D = -bX // alpha = - (-bX - pX) / (-dirX) line_plane_intersection = line_point - ((boxX + pointX)/ dirX) * line_direction; if (line_plane_intersection.mV[VY] < boxY && line_plane_intersection.mV[VY] > -boxY && line_plane_intersection.mV[VZ] < boxZ && line_plane_intersection.mV[VZ] > -boxZ ) { intersection = (line_plane_intersection * box_rotation) + box_center; intersection_normal = LLVector3(-1.0f, 0.0f, 0.0f) * box_rotation; return BACK_SIDE; } } // left if (pointY > 0.0f && dirY < 0.0f) { // plane_normal = [0, 1, 0] // plane_normal*line_point = pointY // plane_normal*line_direction = dirY // D = -boxY // alpha = - (-boxY + pointY) / dirY line_plane_intersection = line_point + ((boxY - pointY)/dirY) * line_direction; if (line_plane_intersection.mV[VX] < boxX && line_plane_intersection.mV[VX] > -boxX && line_plane_intersection.mV[VZ] < boxZ && line_plane_intersection.mV[VZ] > -boxZ ) { intersection = (line_plane_intersection * box_rotation) + box_center; intersection_normal = LLVector3(0.0f, 1.0f, 0.0f) * box_rotation; return LEFT_SIDE; } } // right if (pointY < 0.0f && dirY > 0.0f) { // plane_normal = [0, -1, 0] // plane_normal*line_point = -pointY // plane_normal*line_direction = -dirY // D = -boxY // alpha = - (-boxY - pointY) / (-dirY) line_plane_intersection = line_point - ((boxY + pointY)/dirY) * line_direction; if (line_plane_intersection.mV[VX] < boxX && line_plane_intersection.mV[VX] > -boxX && line_plane_intersection.mV[VZ] < boxZ && line_plane_intersection.mV[VZ] > -boxZ ) { intersection = (line_plane_intersection * box_rotation) + box_center; intersection_normal = LLVector3(0.0f, -1.0f, 0.0f) * box_rotation; return RIGHT_SIDE; } } // top if (pointZ > 0.0f && dirZ < 0.0f) { // plane_normal = [0, 0, 1] // plane_normal*line_point = pointZ // plane_normal*line_direction = dirZ // D = -boxZ // alpha = - (-boxZ + pointZ) / dirZ line_plane_intersection = line_point - ((pointZ - boxZ)/dirZ) * line_direction; if (line_plane_intersection.mV[VX] < boxX && line_plane_intersection.mV[VX] > -boxX && line_plane_intersection.mV[VY] < boxY && line_plane_intersection.mV[VY] > -boxY ) { intersection = (line_plane_intersection * box_rotation) + box_center; intersection_normal = LLVector3(0.0f, 0.0f, 1.0f) * box_rotation; return TOP_SIDE; } } // bottom if (pointZ < 0.0f && dirZ > 0.0f) { // plane_normal = [0, 0, -1] // plane_normal*line_point = -pointZ // plane_normal*line_direction = -dirZ // D = -boxZ // alpha = - (-boxZ - pointZ) / (-dirZ) line_plane_intersection = line_point - ((boxZ + pointZ)/dirZ) * line_direction; if (line_plane_intersection.mV[VX] < boxX && line_plane_intersection.mV[VX] > -boxX && line_plane_intersection.mV[VY] < boxY && line_plane_intersection.mV[VY] > -boxY ) { intersection = (line_plane_intersection * box_rotation) + box_center; intersection_normal = LLVector3(0.0f, 0.0f, -1.0f) * box_rotation; return BOTTOM_SIDE; } } return NO_SIDE; } // -------------- point is INSIDE the box ---------------- // front if (dirX > 0.0f) { // plane_normal = [ 1, 0, 0] // plane_normal*line_point = pointX // plane_normal*line_direction = dirX // D = -boxX // alpha = - (-boxX + pointX) / dirX line_plane_intersection = line_point - ((pointX - boxX) / dirX) * line_direction; if (line_plane_intersection.mV[VY] < boxY && line_plane_intersection.mV[VY] > -boxY && line_plane_intersection.mV[VZ] < boxZ && line_plane_intersection.mV[VZ] > -boxZ ) { intersection = (line_plane_intersection * box_rotation) + box_center; intersection_normal = LLVector3(1.0f, 0.0f, 0.0f) * box_rotation; return FRONT_SIDE; } } // back if (dirX < 0.0f) { // plane_normal = [ -1, 0, 0] // plane_normal*line_point = -pX // plane_normal*line_direction = -direction.mV[VX] // D = -bX // alpha = - (-bX - pX) / (-dirX) line_plane_intersection = line_point - ((boxX + pointX)/ dirX) * line_direction; if (line_plane_intersection.mV[VY] < boxY && line_plane_intersection.mV[VY] > -boxY && line_plane_intersection.mV[VZ] < boxZ && line_plane_intersection.mV[VZ] > -boxZ ) { intersection = (line_plane_intersection * box_rotation) + box_center; intersection_normal = LLVector3(-1.0f, 0.0f, 0.0f) * box_rotation; return BACK_SIDE; } } // left if (dirY > 0.0f) { // plane_normal = [0, 1, 0] // plane_normal*line_point = pointY // plane_normal*line_direction = dirY // D = -boxY // alpha = - (-boxY + pointY) / dirY line_plane_intersection = line_point + ((boxY - pointY)/dirY) * line_direction; if (line_plane_intersection.mV[VX] < boxX && line_plane_intersection.mV[VX] > -boxX && line_plane_intersection.mV[VZ] < boxZ && line_plane_intersection.mV[VZ] > -boxZ ) { intersection = (line_plane_intersection * box_rotation) + box_center; intersection_normal = LLVector3(0.0f, 1.0f, 0.0f) * box_rotation; return LEFT_SIDE; } } // right if (dirY < 0.0f) { // plane_normal = [0, -1, 0] // plane_normal*line_point = -pointY // plane_normal*line_direction = -dirY // D = -boxY // alpha = - (-boxY - pointY) / (-dirY) line_plane_intersection = line_point - ((boxY + pointY)/dirY) * line_direction; if (line_plane_intersection.mV[VX] < boxX && line_plane_intersection.mV[VX] > -boxX && line_plane_intersection.mV[VZ] < boxZ && line_plane_intersection.mV[VZ] > -boxZ ) { intersection = (line_plane_intersection * box_rotation) + box_center; intersection_normal = LLVector3(0.0f, -1.0f, 0.0f) * box_rotation; return RIGHT_SIDE; } } // top if (dirZ > 0.0f) { // plane_normal = [0, 0, 1] // plane_normal*line_point = pointZ // plane_normal*line_direction = dirZ // D = -boxZ // alpha = - (-boxZ + pointZ) / dirZ line_plane_intersection = line_point - ((pointZ - boxZ)/dirZ) * line_direction; if (line_plane_intersection.mV[VX] < boxX && line_plane_intersection.mV[VX] > -boxX && line_plane_intersection.mV[VY] < boxY && line_plane_intersection.mV[VY] > -boxY ) { intersection = (line_plane_intersection * box_rotation) + box_center; intersection_normal = LLVector3(0.0f, 0.0f, 1.0f) * box_rotation; return TOP_SIDE; } } // bottom if (dirZ < 0.0f) { // plane_normal = [0, 0, -1] // plane_normal*line_point = -pointZ // plane_normal*line_direction = -dirZ // D = -boxZ // alpha = - (-boxZ - pointZ) / (-dirZ) line_plane_intersection = line_point - ((boxZ + pointZ)/dirZ) * line_direction; if (line_plane_intersection.mV[VX] < boxX && line_plane_intersection.mV[VX] > -boxX && line_plane_intersection.mV[VY] < boxY && line_plane_intersection.mV[VY] > -boxY ) { intersection = (line_plane_intersection * box_rotation) + box_center; intersection_normal = LLVector3(0.0f, 0.0f, -1.0f) * box_rotation; return BOTTOM_SIDE; } } // should never get here unless line instersects at tangent point on edge or corner // however such cases will be EXTREMELY rare return NO_SIDE; } BOOL ray_prism(const LLVector3 &ray_point, const LLVector3 &ray_direction, const LLVector3 &prism_center, const LLVector3 &prism_scale, const LLQuaternion &prism_rotation, LLVector3 &intersection, LLVector3 &intersection_normal) { // (0) Z // /| \ . // (1)| \ /|\ _.Y // | \ \ | /| // | |\ \ | / // | | \(0)\ | / // | | \ \ |/ // | | \ \ (*)----> X // |(3)---\---(2) // |/ \ / // (4)-------(5) // need to calculate the points of the prism so we can run ray tests with each face F32 x = prism_scale.mV[VX]; F32 y = prism_scale.mV[VY]; F32 z = prism_scale.mV[VZ]; F32 tx = x * 2.0f / 3.0f; F32 ty = y * 0.5f; F32 tz = z * 2.0f / 3.0f; LLVector3 point0(tx-x, ty, tz); LLVector3 point1(tx-x, -ty, tz); LLVector3 point2(tx, ty, tz-z); LLVector3 point3(tx-x, ty, tz-z); LLVector3 point4(tx-x, -ty, tz-z); LLVector3 point5(tx, -ty, tz-z); // transform these points into absolute frame point0 = (point0 * prism_rotation) + prism_center; point1 = (point1 * prism_rotation) + prism_center; point2 = (point2 * prism_rotation) + prism_center; point3 = (point3 * prism_rotation) + prism_center; point4 = (point4 * prism_rotation) + prism_center; point5 = (point5 * prism_rotation) + prism_center; // test ray intersection for each face BOOL b_hit = FALSE; LLVector3 face_intersection, face_normal; F32 distance_squared = 0.0f; F32 temp; // face 0 if (ray_direction * ( (point0 - point2) % (point5 - point2)) < 0.0f && ray_quadrangle(ray_point, ray_direction, point5, point2, point0, intersection, intersection_normal)) { distance_squared = (ray_point - intersection).magVecSquared(); b_hit = TRUE; } // face 1 if (ray_direction * ( (point0 - point3) % (point2 - point3)) < 0.0f && ray_triangle(ray_point, ray_direction, point2, point3, point0, face_intersection, face_normal)) { if (TRUE == b_hit) { temp = (ray_point - face_intersection).magVecSquared(); if (temp < distance_squared) { distance_squared = temp; intersection = face_intersection; intersection_normal = face_normal; } } else { distance_squared = (ray_point - face_intersection).magVecSquared(); intersection = face_intersection; intersection_normal = face_normal; b_hit = TRUE; } } // face 2 if (ray_direction * ( (point1 - point4) % (point3 - point4)) < 0.0f && ray_quadrangle(ray_point, ray_direction, point3, point4, point1, face_intersection, face_normal)) { if (TRUE == b_hit) { temp = (ray_point - face_intersection).magVecSquared(); if (temp < distance_squared) { distance_squared = temp; intersection = face_intersection; intersection_normal = face_normal; } } else { distance_squared = (ray_point - face_intersection).magVecSquared(); intersection = face_intersection; intersection_normal = face_normal; b_hit = TRUE; } } // face 3 if (ray_direction * ( (point5 - point4) % (point1 - point4)) < 0.0f && ray_triangle(ray_point, ray_direction, point1, point4, point5, face_intersection, face_normal)) { if (TRUE == b_hit) { temp = (ray_point - face_intersection).magVecSquared(); if (temp < distance_squared) { distance_squared = temp; intersection = face_intersection; intersection_normal = face_normal; } } else { distance_squared = (ray_point - face_intersection).magVecSquared(); intersection = face_intersection; intersection_normal = face_normal; b_hit = TRUE; } } // face 4 if (ray_direction * ( (point4 - point5) % (point2 - point5)) < 0.0f && ray_quadrangle(ray_point, ray_direction, point2, point5, point4, face_intersection, face_normal)) { if (TRUE == b_hit) { temp = (ray_point - face_intersection).magVecSquared(); if (temp < distance_squared) { distance_squared = temp; intersection = face_intersection; intersection_normal = face_normal; } } else { distance_squared = (ray_point - face_intersection).magVecSquared(); intersection = face_intersection; intersection_normal = face_normal; b_hit = TRUE; } } return b_hit; } BOOL ray_tetrahedron(const LLVector3 &ray_point, const LLVector3 &ray_direction, const LLVector3 &t_center, const LLVector3 &t_scale, const LLQuaternion &t_rotation, LLVector3 &intersection, LLVector3 &intersection_normal) { F32 a = 0.5f * F_SQRT3; // height of unit triangle F32 b = 1.0f / F_SQRT3; // distance of center of unit triangle to each point F32 c = F_SQRT2 / F_SQRT3; // height of unit tetrahedron F32 d = 0.5f * F_SQRT3 / F_SQRT2; // distance of center of tetrahedron to each point // if we want the tetrahedron to have unit height (c = 1.0) then we need to divide // each constant by hieght of a unit tetrahedron F32 oo_c = 1.0f / c; a = a * oo_c; b = b * oo_c; c = 1.0f; d = d * oo_c; F32 e = 0.5f * oo_c; LLVector3 point0( 0.0f, 0.0f, t_scale.mV[VZ] * d); LLVector3 point1(t_scale.mV[VX] * b, 0.0f, t_scale.mV[VZ] * (d-c)); LLVector3 point2(t_scale.mV[VX] * (b-a), e * t_scale.mV[VY], t_scale.mV[VZ] * (d-c)); LLVector3 point3(t_scale.mV[VX] * (b-a), -e * t_scale.mV[VY], t_scale.mV[VZ] * (d-c)); // transform these points into absolute frame point0 = (point0 * t_rotation) + t_center; point1 = (point1 * t_rotation) + t_center; point2 = (point2 * t_rotation) + t_center; point3 = (point3 * t_rotation) + t_center; // test ray intersection for each face BOOL b_hit = FALSE; LLVector3 face_intersection, face_normal; F32 distance_squared = 1.0e12f; F32 temp; // face 0 if (ray_direction * ( (point2 - point1) % (point0 - point1)) < 0.0f && ray_triangle(ray_point, ray_direction, point1, point2, point0, intersection, intersection_normal)) { distance_squared = (ray_point - intersection).magVecSquared(); b_hit = TRUE; } // face 1 if (ray_direction * ( (point3 - point2) % (point0 - point2)) < 0.0f && ray_triangle(ray_point, ray_direction, point2, point3, point0, face_intersection, face_normal)) { if (TRUE == b_hit) { temp = (ray_point - face_intersection).magVecSquared(); if (temp < distance_squared) { distance_squared = temp; intersection = face_intersection; intersection_normal = face_normal; } } else { distance_squared = (ray_point - face_intersection).magVecSquared(); intersection = face_intersection; intersection_normal = face_normal; b_hit = TRUE; } } // face 2 if (ray_direction * ( (point1 - point3) % (point0 - point3)) < 0.0f && ray_triangle(ray_point, ray_direction, point3, point1, point0, face_intersection, face_normal)) { if (TRUE == b_hit) { temp = (ray_point - face_intersection).magVecSquared(); if (temp < distance_squared) { distance_squared = temp; intersection = face_intersection; intersection_normal = face_normal; } } else { distance_squared = (ray_point - face_intersection).magVecSquared(); intersection = face_intersection; intersection_normal = face_normal; b_hit = TRUE; } } // face 3 if (ray_direction * ( (point2 - point3) % (point1 - point3)) < 0.0f && ray_triangle(ray_point, ray_direction, point3, point2, point1, face_intersection, face_normal)) { if (TRUE == b_hit) { temp = (ray_point - face_intersection).magVecSquared(); if (temp < distance_squared) { intersection = face_intersection; intersection_normal = face_normal; } } else { intersection = face_intersection; intersection_normal = face_normal; b_hit = TRUE; } } return b_hit; } BOOL ray_pyramid(const LLVector3 &ray_point, const LLVector3 &ray_direction, const LLVector3 &p_center, const LLVector3 &p_scale, const LLQuaternion &p_rotation, LLVector3 &intersection, LLVector3 &intersection_normal) { // center of mass of pyramid is located 1/4 its height from the base F32 x = 0.5f * p_scale.mV[VX]; F32 y = 0.5f * p_scale.mV[VY]; F32 z = 0.25f * p_scale.mV[VZ]; LLVector3 point0(0.0f, 0.0f, p_scale.mV[VZ] - z); LLVector3 point1( x, y, -z); LLVector3 point2(-x, y, -z); LLVector3 point3(-x, -y, -z); LLVector3 point4( x, -y, -z); // transform these points into absolute frame point0 = (point0 * p_rotation) + p_center; point1 = (point1 * p_rotation) + p_center; point2 = (point2 * p_rotation) + p_center; point3 = (point3 * p_rotation) + p_center; point4 = (point4 * p_rotation) + p_center; // test ray intersection for each face BOOL b_hit = FALSE; LLVector3 face_intersection, face_normal; F32 distance_squared = 1.0e12f; F32 temp; // face 0 if (ray_direction * ( (point1 - point4) % (point0 - point4)) < 0.0f && ray_triangle(ray_point, ray_direction, point4, point1, point0, intersection, intersection_normal)) { distance_squared = (ray_point - intersection).magVecSquared(); b_hit = TRUE; } // face 1 if (ray_direction * ( (point2 - point1) % (point0 - point1)) < 0.0f && ray_triangle(ray_point, ray_direction, point1, point2, point0, face_intersection, face_normal)) { if (TRUE == b_hit) { temp = (ray_point - face_intersection).magVecSquared(); if (temp < distance_squared) { distance_squared = temp; intersection = face_intersection; intersection_normal = face_normal; } } else { distance_squared = (ray_point - face_intersection).magVecSquared(); intersection = face_intersection; intersection_normal = face_normal; b_hit = TRUE; } } // face 2 if (ray_direction * ( (point3 - point2) % (point0 - point2)) < 0.0f && ray_triangle(ray_point, ray_direction, point2, point3, point0, face_intersection, face_normal)) { if (TRUE == b_hit) { temp = (ray_point - face_intersection).magVecSquared(); if (temp < distance_squared) { distance_squared = temp; intersection = face_intersection; intersection_normal = face_normal; } } else { distance_squared = (ray_point - face_intersection).magVecSquared(); intersection = face_intersection; intersection_normal = face_normal; b_hit = TRUE; } } // face 3 if (ray_direction * ( (point4 - point3) % (point0 - point3)) < 0.0f && ray_triangle(ray_point, ray_direction, point3, point4, point0, face_intersection, face_normal)) { if (TRUE == b_hit) { temp = (ray_point - face_intersection).magVecSquared(); if (temp < distance_squared) { distance_squared = temp; intersection = face_intersection; intersection_normal = face_normal; } } else { distance_squared = (ray_point - face_intersection).magVecSquared(); intersection = face_intersection; intersection_normal = face_normal; b_hit = TRUE; } } // face 4 if (ray_direction * ( (point3 - point4) % (point2 - point4)) < 0.0f && ray_quadrangle(ray_point, ray_direction, point4, point3, point2, face_intersection, face_normal)) { if (TRUE == b_hit) { temp = (ray_point - face_intersection).magVecSquared(); if (temp < distance_squared) { intersection = face_intersection; intersection_normal = face_normal; } } else { intersection = face_intersection; intersection_normal = face_normal; b_hit = TRUE; } } return b_hit; } BOOL linesegment_circle(const LLVector3 &point_a, const LLVector3 &point_b, const LLVector3 &circle_center, const LLVector3 plane_normal, F32 circle_radius, LLVector3 &intersection) { LLVector3 ray_direction = point_b - point_a; F32 segment_length = ray_direction.normVec(); if (ray_circle(point_a, ray_direction, circle_center, plane_normal, circle_radius, intersection)) { if (segment_length >= (point_a - intersection).magVec()) { return TRUE; } } return FALSE; } BOOL linesegment_triangle(const LLVector3 &point_a, const LLVector3 &point_b, const LLVector3 &point_0, const LLVector3 &point_1, const LLVector3 &point_2, LLVector3 &intersection, LLVector3 &intersection_normal) { LLVector3 ray_direction = point_b - point_a; F32 segment_length = ray_direction.normVec(); if (ray_triangle(point_a, ray_direction, point_0, point_1, point_2, intersection, intersection_normal)) { if (segment_length >= (point_a - intersection).magVec()) { return TRUE; } } return FALSE; } BOOL linesegment_quadrangle(const LLVector3 &point_a, const LLVector3 &point_b, const LLVector3 &point_0, const LLVector3 &point_1, const LLVector3 &point_2, LLVector3 &intersection, LLVector3 &intersection_normal) { LLVector3 ray_direction = point_b - point_a; F32 segment_length = ray_direction.normVec(); if (ray_quadrangle(point_a, ray_direction, point_0, point_1, point_2, intersection, intersection_normal)) { if (segment_length >= (point_a - intersection).magVec()) { return TRUE; } } return FALSE; } BOOL linesegment_sphere(const LLVector3 &point_a, const LLVector3 &point_b, const LLVector3 &sphere_center, F32 sphere_radius, LLVector3 &intersection, LLVector3 &intersection_normal) { LLVector3 ray_direction = point_b - point_a; F32 segment_length = ray_direction.normVec(); if (ray_sphere(point_a, ray_direction, sphere_center, sphere_radius, intersection, intersection_normal)) { if (segment_length >= (point_a - intersection).magVec()) { return TRUE; } } return FALSE; } BOOL linesegment_cylinder(const LLVector3 &point_a, const LLVector3 &point_b, const LLVector3 &cyl_center, const LLVector3 &cyl_scale, const LLQuaternion &cyl_rotation, LLVector3 &intersection, LLVector3 &intersection_normal) { LLVector3 ray_direction = point_b - point_a; F32 segment_length = ray_direction.normVec(); if (ray_cylinder(point_a, ray_direction, cyl_center, cyl_scale, cyl_rotation, intersection, intersection_normal)) { if (segment_length >= (point_a - intersection).magVec()) { return TRUE; } } return FALSE; } U32 linesegment_box(const LLVector3 &point_a, const LLVector3 &point_b, const LLVector3 &box_center, const LLVector3 &box_scale, const LLQuaternion &box_rotation, LLVector3 &intersection, LLVector3 &intersection_normal) { LLVector3 direction = point_b - point_a; if (direction.isNull()) { return NO_SIDE; } F32 segment_length = direction.normVec(); U32 box_side = ray_box(point_a, direction, box_center, box_scale, box_rotation, intersection, intersection_normal); if (NO_SIDE == box_side || segment_length < (intersection - point_a).magVec()) { return NO_SIDE; } return box_side; } BOOL linesegment_prism(const LLVector3 &point_a, const LLVector3 &point_b, const LLVector3 &prism_center, const LLVector3 &prism_scale, const LLQuaternion &prism_rotation, LLVector3 &intersection, LLVector3 &intersection_normal) { LLVector3 ray_direction = point_b - point_a; F32 segment_length = ray_direction.normVec(); if (ray_prism(point_a, ray_direction, prism_center, prism_scale, prism_rotation, intersection, intersection_normal)) { if (segment_length >= (point_a - intersection).magVec()) { return TRUE; } } return FALSE; } BOOL linesegment_tetrahedron(const LLVector3 &point_a, const LLVector3 &point_b, const LLVector3 &t_center, const LLVector3 &t_scale, const LLQuaternion &t_rotation, LLVector3 &intersection, LLVector3 &intersection_normal) { LLVector3 ray_direction = point_b - point_a; F32 segment_length = ray_direction.normVec(); if (ray_tetrahedron(point_a, ray_direction, t_center, t_scale, t_rotation, intersection, intersection_normal)) { if (segment_length >= (point_a - intersection).magVec()) { return TRUE; } } return FALSE; } BOOL linesegment_pyramid(const LLVector3 &point_a, const LLVector3 &point_b, const LLVector3 &p_center, const LLVector3 &p_scale, const LLQuaternion &p_rotation, LLVector3 &intersection, LLVector3 &intersection_normal) { LLVector3 ray_direction = point_b - point_a; F32 segment_length = ray_direction.normVec(); if (ray_pyramid(point_a, ray_direction, p_center, p_scale, p_rotation, intersection, intersection_normal)) { if (segment_length >= (point_a - intersection).magVec()) { return TRUE; } } return FALSE; }
dooglio/slitechat
LLChatLib/llmath/raytrace.cpp
C++
gpl-2.0
40,770
<?php header("Content-type: text/css;"); if( file_exists('../../../../wp-load.php') ) : include '../../../../wp-load.php'; else: include '../../../../../wp-load.php'; endif; ?> /*-------------------------------------------------------------------------------------------*/ /* Custom Styles */ /*-------------------------------------------------------------------------------------------*/ <?php // Styles $primary = of_get_option('w2f_primary_color','#769A38'); $link = of_get_option('w2f_link_color',''); $hover = of_get_option('w2f_hover_color',''); ?> .main-navigation,.main-navigation ul ul, #ctimer span, .footer-widget-section, ol.comment-list li .reply { background: <?php echo $primary ?>; } h2.section-title { color: <?php echo $primary ?>; } /* Links */ a { color: <?php echo $link ?>; } a:visited { color: <?php echo $link ?>; } a:hover, a:focus, a:active { color:<?php echo $hover ?>; text-decoration: none; }
rodr7go/ecocaremx.com
wp-content/themes/Zenith/css/custom.php
PHP
gpl-2.0
956
/* Copyright (c) 2013-2014 Dmitry Fedorov Distributed under the GNU GPL v2. For full terms see the file COPYING.txt */ using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace Portal.Models { public class Gallery { public int Id { get; set; } public string Slug { get; set; } public string Author { get; set; } public string Name { get; set; } public string Code { get; set; } public DateTime PublicationTime { get; set; } public bool IsPublic { get; set; } public virtual List<File> Files { get; set; } public virtual Tag Tag { get; set; } } }
rallysportphoto/Portal
Models/Gallery.cs
C#
gpl-2.0
701
/* * Copyright (C) 2007 The MATE Foundation * Written by Thomas Wood <thos@gnome.org> * 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 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., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ void style_init (AppearanceData *data); void style_shutdown (AppearanceData *data);
feiying/mate-control-center
capplets/appearance/appearance-style.h
C
gpl-2.0
920
/* * Copyright 2009 The WebRTC Project Authors. All rights reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing project authors may * be found in the AUTHORS file in the root of the source tree. */ #include "webrtc/p2p/base/basicpacketsocketfactory.h" #include "webrtc/p2p/base/constants.h" #include "webrtc/p2p/base/p2ptransportchannel.h" #include "webrtc/p2p/base/testrelayserver.h" #include "webrtc/p2p/base/teststunserver.h" #include "webrtc/p2p/base/testturnserver.h" #include "webrtc/p2p/client/basicportallocator.h" #include "webrtc/p2p/client/httpportallocator.h" #include "webrtc/base/fakenetwork.h" #include "webrtc/base/firewallsocketserver.h" #include "webrtc/base/gunit.h" #include "webrtc/base/helpers.h" #include "webrtc/base/logging.h" #include "webrtc/base/natserver.h" #include "webrtc/base/natsocketfactory.h" #include "webrtc/base/network.h" #include "webrtc/base/physicalsocketserver.h" #include "webrtc/base/socketaddress.h" #include "webrtc/base/ssladapter.h" #include "webrtc/base/thread.h" #include "webrtc/base/virtualsocketserver.h" using cricket::ServerAddresses; using rtc::SocketAddress; using rtc::Thread; static const SocketAddress kClientAddr("11.11.11.11", 0); static const SocketAddress kPrivateAddr("192.168.1.11", 0); static const SocketAddress kPrivateAddr2("192.168.1.12", 0); static const SocketAddress kClientIPv6Addr( "2401:fa00:4:1000:be30:5bff:fee5:c3", 0); static const SocketAddress kClientAddr2("22.22.22.22", 0); static const SocketAddress kNatAddr("77.77.77.77", rtc::NAT_SERVER_PORT); static const SocketAddress kRemoteClientAddr("22.22.22.22", 0); static const SocketAddress kStunAddr("99.99.99.1", cricket::STUN_SERVER_PORT); static const SocketAddress kRelayUdpIntAddr("99.99.99.2", 5000); static const SocketAddress kRelayUdpExtAddr("99.99.99.3", 5001); static const SocketAddress kRelayTcpIntAddr("99.99.99.2", 5002); static const SocketAddress kRelayTcpExtAddr("99.99.99.3", 5003); static const SocketAddress kRelaySslTcpIntAddr("99.99.99.2", 5004); static const SocketAddress kRelaySslTcpExtAddr("99.99.99.3", 5005); static const SocketAddress kTurnUdpIntAddr("99.99.99.4", 3478); static const SocketAddress kTurnTcpIntAddr("99.99.99.5", 3478); static const SocketAddress kTurnUdpExtAddr("99.99.99.6", 0); // Minimum and maximum port for port range tests. static const int kMinPort = 10000; static const int kMaxPort = 10099; // Based on ICE_UFRAG_LENGTH static const char kIceUfrag0[] = "TESTICEUFRAG0000"; // Based on ICE_PWD_LENGTH static const char kIcePwd0[] = "TESTICEPWD00000000000000"; static const char kContentName[] = "test content"; static const int kDefaultAllocationTimeout = 1000; static const char kTurnUsername[] = "test"; static const char kTurnPassword[] = "test"; namespace cricket { // Helper for dumping candidates std::ostream& operator<<(std::ostream& os, const cricket::Candidate& c) { os << c.ToString(); return os; } } // namespace cricket class PortAllocatorTest : public testing::Test, public sigslot::has_slots<> { public: PortAllocatorTest() : pss_(new rtc::PhysicalSocketServer), vss_(new rtc::VirtualSocketServer(pss_.get())), fss_(new rtc::FirewallSocketServer(vss_.get())), ss_scope_(fss_.get()), nat_factory_(vss_.get(), kNatAddr), nat_socket_factory_(&nat_factory_), stun_server_(cricket::TestStunServer::Create(Thread::Current(), kStunAddr)), relay_server_(Thread::Current(), kRelayUdpIntAddr, kRelayUdpExtAddr, kRelayTcpIntAddr, kRelayTcpExtAddr, kRelaySslTcpIntAddr, kRelaySslTcpExtAddr), turn_server_(Thread::Current(), kTurnUdpIntAddr, kTurnUdpExtAddr), candidate_allocation_done_(false) { cricket::ServerAddresses stun_servers; stun_servers.insert(kStunAddr); // Passing the addresses of GTURN servers will enable GTURN in // Basicportallocator. allocator_.reset(new cricket::BasicPortAllocator( &network_manager_, stun_servers, kRelayUdpIntAddr, kRelayTcpIntAddr, kRelaySslTcpIntAddr)); allocator_->set_step_delay(cricket::kMinimumStepDelay); } void AddInterface(const SocketAddress& addr) { network_manager_.AddInterface(addr); } bool SetPortRange(int min_port, int max_port) { return allocator_->SetPortRange(min_port, max_port); } void ResetWithNatServer(const rtc::SocketAddress& stun_server) { nat_server_.reset(new rtc::NATServer( rtc::NAT_OPEN_CONE, vss_.get(), kNatAddr, vss_.get(), kNatAddr)); ServerAddresses stun_servers; if (!stun_server.IsNil()) { stun_servers.insert(stun_server); } allocator_.reset(new cricket::BasicPortAllocator( &network_manager_, &nat_socket_factory_, stun_servers)); allocator().set_step_delay(cricket::kMinimumStepDelay); } // Create a BasicPortAllocator without GTURN and add the TURN servers. void ResetWithTurnServers(const rtc::SocketAddress& udp_turn, const rtc::SocketAddress& tcp_turn) { allocator_.reset(new cricket::BasicPortAllocator(&network_manager_)); allocator().set_step_delay(cricket::kMinimumStepDelay); AddTurnServers(udp_turn, tcp_turn); } void AddTurnServers(const rtc::SocketAddress& udp_turn, const rtc::SocketAddress& tcp_turn) { cricket::RelayServerConfig relay_server(cricket::RELAY_TURN); cricket::RelayCredentials credentials(kTurnUsername, kTurnPassword); relay_server.credentials = credentials; if (!udp_turn.IsNil()) { relay_server.ports.push_back(cricket::ProtocolAddress( kTurnUdpIntAddr, cricket::PROTO_UDP, false)); } if (!tcp_turn.IsNil()) { relay_server.ports.push_back(cricket::ProtocolAddress( kTurnTcpIntAddr, cricket::PROTO_TCP, false)); } allocator_->AddRelay(relay_server); } bool CreateSession(int component) { session_.reset(CreateSession("session", component)); if (!session_) return false; return true; } bool CreateSession(int component, const std::string& content_name) { session_.reset(CreateSession("session", content_name, component)); if (!session_) return false; return true; } cricket::PortAllocatorSession* CreateSession( const std::string& sid, int component) { return CreateSession(sid, kContentName, component); } cricket::PortAllocatorSession* CreateSession( const std::string& sid, const std::string& content_name, int component) { return CreateSession(sid, content_name, component, kIceUfrag0, kIcePwd0); } cricket::PortAllocatorSession* CreateSession( const std::string& sid, const std::string& content_name, int component, const std::string& ice_ufrag, const std::string& ice_pwd) { cricket::PortAllocatorSession* session = allocator_->CreateSession( sid, content_name, component, ice_ufrag, ice_pwd); session->SignalPortReady.connect(this, &PortAllocatorTest::OnPortReady); session->SignalCandidatesReady.connect(this, &PortAllocatorTest::OnCandidatesReady); session->SignalCandidatesAllocationDone.connect(this, &PortAllocatorTest::OnCandidatesAllocationDone); return session; } static bool CheckCandidate(const cricket::Candidate& c, int component, const std::string& type, const std::string& proto, const SocketAddress& addr) { return (c.component() == component && c.type() == type && c.protocol() == proto && c.address().ipaddr() == addr.ipaddr() && ((addr.port() == 0 && (c.address().port() != 0)) || (c.address().port() == addr.port()))); } static bool CheckPort(const rtc::SocketAddress& addr, int min_port, int max_port) { return (addr.port() >= min_port && addr.port() <= max_port); } void OnCandidatesAllocationDone(cricket::PortAllocatorSession* session) { // We should only get this callback once, except in the mux test where // we have multiple port allocation sessions. if (session == session_.get()) { ASSERT_FALSE(candidate_allocation_done_); candidate_allocation_done_ = true; } } // Check if all ports allocated have send-buffer size |expected|. If // |expected| == -1, check if GetOptions returns SOCKET_ERROR. void CheckSendBufferSizesOfAllPorts(int expected) { std::vector<cricket::PortInterface*>::iterator it; for (it = ports_.begin(); it < ports_.end(); ++it) { int send_buffer_size; if (expected == -1) { EXPECT_EQ(SOCKET_ERROR, (*it)->GetOption(rtc::Socket::OPT_SNDBUF, &send_buffer_size)); } else { EXPECT_EQ(0, (*it)->GetOption(rtc::Socket::OPT_SNDBUF, &send_buffer_size)); ASSERT_EQ(expected, send_buffer_size); } } } void CheckDisableAdapterEnumeration() { EXPECT_TRUE(CreateSession(cricket::ICE_CANDIDATE_COMPONENT_RTP)); session_->set_flags(cricket::PORTALLOCATOR_DISABLE_ADAPTER_ENUMERATION); session_->StartGettingPorts(); EXPECT_TRUE_WAIT(candidate_allocation_done_, kDefaultAllocationTimeout); // Only 2 candidates as local UDP/TCP are all 0s and get trimmed out. EXPECT_EQ(2U, candidates_.size()); EXPECT_EQ(2U, ports_.size()); // One stunport and one turnport. EXPECT_PRED5(CheckCandidate, candidates_[0], cricket::ICE_CANDIDATE_COMPONENT_RTP, "stun", "udp", rtc::SocketAddress(kNatAddr.ipaddr(), 0)); EXPECT_EQ( rtc::EmptySocketAddressWithFamily(candidates_[0].address().family()), candidates_[0].related_address()); EXPECT_PRED5(CheckCandidate, candidates_[1], cricket::ICE_CANDIDATE_COMPONENT_RTP, "relay", "udp", rtc::SocketAddress(kTurnUdpExtAddr.ipaddr(), 0)); EXPECT_EQ(kNatAddr.ipaddr(), candidates_[1].related_address().ipaddr()); } protected: cricket::BasicPortAllocator& allocator() { return *allocator_; } void OnPortReady(cricket::PortAllocatorSession* ses, cricket::PortInterface* port) { LOG(LS_INFO) << "OnPortReady: " << port->ToString(); ports_.push_back(port); } void OnCandidatesReady(cricket::PortAllocatorSession* ses, const std::vector<cricket::Candidate>& candidates) { for (size_t i = 0; i < candidates.size(); ++i) { LOG(LS_INFO) << "OnCandidatesReady: " << candidates[i].ToString(); candidates_.push_back(candidates[i]); } } bool HasRelayAddress(const cricket::ProtocolAddress& proto_addr) { for (size_t i = 0; i < allocator_->relays().size(); ++i) { cricket::RelayServerConfig server_config = allocator_->relays()[i]; cricket::PortList::const_iterator relay_port; for (relay_port = server_config.ports.begin(); relay_port != server_config.ports.end(); ++relay_port) { if (proto_addr.address == relay_port->address && proto_addr.proto == relay_port->proto) return true; } } return false; } rtc::scoped_ptr<rtc::PhysicalSocketServer> pss_; rtc::scoped_ptr<rtc::VirtualSocketServer> vss_; rtc::scoped_ptr<rtc::FirewallSocketServer> fss_; rtc::SocketServerScope ss_scope_; rtc::scoped_ptr<rtc::NATServer> nat_server_; rtc::NATSocketFactory nat_factory_; rtc::BasicPacketSocketFactory nat_socket_factory_; rtc::scoped_ptr<cricket::TestStunServer> stun_server_; cricket::TestRelayServer relay_server_; cricket::TestTurnServer turn_server_; rtc::FakeNetworkManager network_manager_; rtc::scoped_ptr<cricket::BasicPortAllocator> allocator_; rtc::scoped_ptr<cricket::PortAllocatorSession> session_; std::vector<cricket::PortInterface*> ports_; std::vector<cricket::Candidate> candidates_; bool candidate_allocation_done_; }; // Tests that we can init the port allocator and create a session. TEST_F(PortAllocatorTest, TestBasic) { EXPECT_EQ(&network_manager_, allocator().network_manager()); EXPECT_EQ(kStunAddr, *allocator().stun_servers().begin()); ASSERT_EQ(1u, allocator().relays().size()); EXPECT_EQ(cricket::RELAY_GTURN, allocator().relays()[0].type); // Empty relay credentials are used for GTURN. EXPECT_TRUE(allocator().relays()[0].credentials.username.empty()); EXPECT_TRUE(allocator().relays()[0].credentials.password.empty()); EXPECT_TRUE(HasRelayAddress(cricket::ProtocolAddress( kRelayUdpIntAddr, cricket::PROTO_UDP))); EXPECT_TRUE(HasRelayAddress(cricket::ProtocolAddress( kRelayTcpIntAddr, cricket::PROTO_TCP))); EXPECT_TRUE(HasRelayAddress(cricket::ProtocolAddress( kRelaySslTcpIntAddr, cricket::PROTO_SSLTCP))); EXPECT_TRUE(CreateSession(cricket::ICE_CANDIDATE_COMPONENT_RTP)); } // Tests that we allocator session not trying to allocate ports for every 250ms. TEST_F(PortAllocatorTest, TestNoNetworkInterface) { EXPECT_TRUE(CreateSession(cricket::ICE_CANDIDATE_COMPONENT_RTP)); session_->StartGettingPorts(); // Waiting for one second to make sure BasicPortAllocatorSession has not // called OnAllocate multiple times. In old behavior it's called every 250ms. // When there are no network interfaces, each execution of OnAllocate will // result in SignalCandidatesAllocationDone signal. rtc::Thread::Current()->ProcessMessages(1000); EXPECT_TRUE(candidate_allocation_done_); EXPECT_EQ(0U, candidates_.size()); } // Tests that we can get all the desired addresses successfully. TEST_F(PortAllocatorTest, TestGetAllPortsWithMinimumStepDelay) { AddInterface(kClientAddr); EXPECT_TRUE(CreateSession(cricket::ICE_CANDIDATE_COMPONENT_RTP)); session_->StartGettingPorts(); ASSERT_EQ_WAIT(7U, candidates_.size(), kDefaultAllocationTimeout); EXPECT_EQ(4U, ports_.size()); EXPECT_PRED5(CheckCandidate, candidates_[0], cricket::ICE_CANDIDATE_COMPONENT_RTP, "local", "udp", kClientAddr); EXPECT_PRED5(CheckCandidate, candidates_[1], cricket::ICE_CANDIDATE_COMPONENT_RTP, "stun", "udp", kClientAddr); EXPECT_PRED5(CheckCandidate, candidates_[2], cricket::ICE_CANDIDATE_COMPONENT_RTP, "relay", "udp", kRelayUdpIntAddr); EXPECT_PRED5(CheckCandidate, candidates_[3], cricket::ICE_CANDIDATE_COMPONENT_RTP, "relay", "udp", kRelayUdpExtAddr); EXPECT_PRED5(CheckCandidate, candidates_[4], cricket::ICE_CANDIDATE_COMPONENT_RTP, "relay", "tcp", kRelayTcpIntAddr); EXPECT_PRED5(CheckCandidate, candidates_[5], cricket::ICE_CANDIDATE_COMPONENT_RTP, "local", "tcp", kClientAddr); EXPECT_PRED5(CheckCandidate, candidates_[6], cricket::ICE_CANDIDATE_COMPONENT_RTP, "relay", "ssltcp", kRelaySslTcpIntAddr); EXPECT_TRUE(candidate_allocation_done_); } // Verify candidates with default step delay of 1sec. TEST_F(PortAllocatorTest, TestGetAllPortsWithOneSecondStepDelay) { AddInterface(kClientAddr); allocator_->set_step_delay(cricket::kDefaultStepDelay); EXPECT_TRUE(CreateSession(cricket::ICE_CANDIDATE_COMPONENT_RTP)); session_->StartGettingPorts(); ASSERT_EQ_WAIT(2U, candidates_.size(), 1000); EXPECT_EQ(2U, ports_.size()); ASSERT_EQ_WAIT(4U, candidates_.size(), 2000); EXPECT_EQ(3U, ports_.size()); EXPECT_PRED5(CheckCandidate, candidates_[2], cricket::ICE_CANDIDATE_COMPONENT_RTP, "relay", "udp", kRelayUdpIntAddr); EXPECT_PRED5(CheckCandidate, candidates_[3], cricket::ICE_CANDIDATE_COMPONENT_RTP, "relay", "udp", kRelayUdpExtAddr); ASSERT_EQ_WAIT(6U, candidates_.size(), 1500); EXPECT_PRED5(CheckCandidate, candidates_[4], cricket::ICE_CANDIDATE_COMPONENT_RTP, "relay", "tcp", kRelayTcpIntAddr); EXPECT_PRED5(CheckCandidate, candidates_[5], cricket::ICE_CANDIDATE_COMPONENT_RTP, "local", "tcp", kClientAddr); EXPECT_EQ(4U, ports_.size()); ASSERT_EQ_WAIT(7U, candidates_.size(), 2000); EXPECT_PRED5(CheckCandidate, candidates_[6], cricket::ICE_CANDIDATE_COMPONENT_RTP, "relay", "ssltcp", kRelaySslTcpIntAddr); EXPECT_EQ(4U, ports_.size()); EXPECT_TRUE(candidate_allocation_done_); // If we Stop gathering now, we shouldn't get a second "done" callback. session_->StopGettingPorts(); } TEST_F(PortAllocatorTest, TestSetupVideoRtpPortsWithNormalSendBuffers) { AddInterface(kClientAddr); EXPECT_TRUE(CreateSession(cricket::ICE_CANDIDATE_COMPONENT_RTP, cricket::CN_VIDEO)); session_->StartGettingPorts(); ASSERT_EQ_WAIT(7U, candidates_.size(), kDefaultAllocationTimeout); EXPECT_TRUE(candidate_allocation_done_); // If we Stop gathering now, we shouldn't get a second "done" callback. session_->StopGettingPorts(); // All ports should have unset send-buffer sizes. CheckSendBufferSizesOfAllPorts(-1); } // Tests that we can get callback after StopGetAllPorts. TEST_F(PortAllocatorTest, TestStopGetAllPorts) { AddInterface(kClientAddr); EXPECT_TRUE(CreateSession(cricket::ICE_CANDIDATE_COMPONENT_RTP)); session_->StartGettingPorts(); ASSERT_EQ_WAIT(2U, candidates_.size(), kDefaultAllocationTimeout); EXPECT_EQ(2U, ports_.size()); session_->StopGettingPorts(); EXPECT_TRUE_WAIT(candidate_allocation_done_, kDefaultAllocationTimeout); } // Test that we restrict client ports appropriately when a port range is set. // We check the candidates for udp/stun/tcp ports, and the from address // for relay ports. TEST_F(PortAllocatorTest, TestGetAllPortsPortRange) { AddInterface(kClientAddr); // Check that an invalid port range fails. EXPECT_FALSE(SetPortRange(kMaxPort, kMinPort)); // Check that a null port range succeeds. EXPECT_TRUE(SetPortRange(0, 0)); // Check that a valid port range succeeds. EXPECT_TRUE(SetPortRange(kMinPort, kMaxPort)); EXPECT_TRUE(CreateSession(cricket::ICE_CANDIDATE_COMPONENT_RTP)); session_->StartGettingPorts(); ASSERT_EQ_WAIT(7U, candidates_.size(), kDefaultAllocationTimeout); EXPECT_EQ(4U, ports_.size()); // Check the port number for the UDP port object. EXPECT_PRED3(CheckPort, candidates_[0].address(), kMinPort, kMaxPort); // Check the port number for the STUN port object. EXPECT_PRED3(CheckPort, candidates_[1].address(), kMinPort, kMaxPort); // Check the port number used to connect to the relay server. EXPECT_PRED3(CheckPort, relay_server_.GetConnection(0).source(), kMinPort, kMaxPort); // Check the port number for the TCP port object. EXPECT_PRED3(CheckPort, candidates_[5].address(), kMinPort, kMaxPort); EXPECT_TRUE(candidate_allocation_done_); } // Test that we don't crash or malfunction if we have no network adapters. TEST_F(PortAllocatorTest, TestGetAllPortsNoAdapters) { EXPECT_TRUE(CreateSession(cricket::ICE_CANDIDATE_COMPONENT_RTP)); session_->StartGettingPorts(); rtc::Thread::Current()->ProcessMessages(100); // Without network adapter, we should not get any candidate. EXPECT_EQ(0U, candidates_.size()); EXPECT_TRUE(candidate_allocation_done_); } // Test that we should only get STUN and TURN candidates when adapter // enumeration is disabled. TEST_F(PortAllocatorTest, TestDisableAdapterEnumeration) { AddInterface(kClientAddr); // GTURN is not configured here. ResetWithNatServer(kStunAddr); AddTurnServers(kTurnUdpIntAddr, rtc::SocketAddress()); CheckDisableAdapterEnumeration(); } // Test that even with multiple interfaces, the result should be only 1 Stun // candidate since we bind to any address (i.e. all 0s). TEST_F(PortAllocatorTest, TestDisableAdapterEnumerationMultipleInterfaces) { AddInterface(kPrivateAddr); AddInterface(kPrivateAddr2); ResetWithNatServer(kStunAddr); AddTurnServers(kTurnUdpIntAddr, rtc::SocketAddress()); CheckDisableAdapterEnumeration(); } // Disable for asan, see // https://code.google.com/p/webrtc/issues/detail?id=4743 for details. #if !defined(ADDRESS_SANITIZER) // Test that we can get OnCandidatesAllocationDone callback when all the ports // are disabled. TEST_F(PortAllocatorTest, TestDisableAllPorts) { AddInterface(kClientAddr); EXPECT_TRUE(CreateSession(cricket::ICE_CANDIDATE_COMPONENT_RTP)); session_->set_flags(cricket::PORTALLOCATOR_DISABLE_UDP | cricket::PORTALLOCATOR_DISABLE_STUN | cricket::PORTALLOCATOR_DISABLE_RELAY | cricket::PORTALLOCATOR_DISABLE_TCP); session_->StartGettingPorts(); rtc::Thread::Current()->ProcessMessages(100); EXPECT_EQ(0U, candidates_.size()); EXPECT_TRUE(candidate_allocation_done_); } // Test that we don't crash or malfunction if we can't create UDP sockets. TEST_F(PortAllocatorTest, TestGetAllPortsNoUdpSockets) { AddInterface(kClientAddr); fss_->set_udp_sockets_enabled(false); EXPECT_TRUE(CreateSession(1)); session_->StartGettingPorts(); ASSERT_EQ_WAIT(5U, candidates_.size(), kDefaultAllocationTimeout); EXPECT_EQ(2U, ports_.size()); EXPECT_PRED5(CheckCandidate, candidates_[0], cricket::ICE_CANDIDATE_COMPONENT_RTP, "relay", "udp", kRelayUdpIntAddr); EXPECT_PRED5(CheckCandidate, candidates_[1], cricket::ICE_CANDIDATE_COMPONENT_RTP, "relay", "udp", kRelayUdpExtAddr); EXPECT_PRED5(CheckCandidate, candidates_[2], cricket::ICE_CANDIDATE_COMPONENT_RTP, "relay", "tcp", kRelayTcpIntAddr); EXPECT_PRED5(CheckCandidate, candidates_[3], cricket::ICE_CANDIDATE_COMPONENT_RTP, "local", "tcp", kClientAddr); EXPECT_PRED5(CheckCandidate, candidates_[4], cricket::ICE_CANDIDATE_COMPONENT_RTP, "relay", "ssltcp", kRelaySslTcpIntAddr); EXPECT_TRUE(candidate_allocation_done_); } #endif // if !defined(ADDRESS_SANITIZER) // Test that we don't crash or malfunction if we can't create UDP sockets or // listen on TCP sockets. We still give out a local TCP address, since // apparently this is needed for the remote side to accept our connection. TEST_F(PortAllocatorTest, TestGetAllPortsNoUdpSocketsNoTcpListen) { AddInterface(kClientAddr); fss_->set_udp_sockets_enabled(false); fss_->set_tcp_listen_enabled(false); EXPECT_TRUE(CreateSession(1)); session_->StartGettingPorts(); ASSERT_EQ_WAIT(5U, candidates_.size(), kDefaultAllocationTimeout); EXPECT_EQ(2U, ports_.size()); EXPECT_PRED5(CheckCandidate, candidates_[0], 1, "relay", "udp", kRelayUdpIntAddr); EXPECT_PRED5(CheckCandidate, candidates_[1], 1, "relay", "udp", kRelayUdpExtAddr); EXPECT_PRED5(CheckCandidate, candidates_[2], 1, "relay", "tcp", kRelayTcpIntAddr); EXPECT_PRED5(CheckCandidate, candidates_[3], 1, "local", "tcp", kClientAddr); EXPECT_PRED5(CheckCandidate, candidates_[4], 1, "relay", "ssltcp", kRelaySslTcpIntAddr); EXPECT_TRUE(candidate_allocation_done_); } // Test that we don't crash or malfunction if we can't create any sockets. // TODO: Find a way to exit early here. TEST_F(PortAllocatorTest, TestGetAllPortsNoSockets) { AddInterface(kClientAddr); fss_->set_tcp_sockets_enabled(false); fss_->set_udp_sockets_enabled(false); EXPECT_TRUE(CreateSession(cricket::ICE_CANDIDATE_COMPONENT_RTP)); session_->StartGettingPorts(); WAIT(candidates_.size() > 0, 2000); // TODO - Check candidate_allocation_done signal. // In case of Relay, ports creation will succeed but sockets will fail. // There is no error reporting from RelayEntry to handle this failure. } // Testing STUN timeout. TEST_F(PortAllocatorTest, TestGetAllPortsNoUdpAllowed) { fss_->AddRule(false, rtc::FP_UDP, rtc::FD_ANY, kClientAddr); AddInterface(kClientAddr); EXPECT_TRUE(CreateSession(cricket::ICE_CANDIDATE_COMPONENT_RTP)); session_->StartGettingPorts(); EXPECT_EQ_WAIT(2U, candidates_.size(), kDefaultAllocationTimeout); EXPECT_EQ(2U, ports_.size()); EXPECT_PRED5(CheckCandidate, candidates_[0], cricket::ICE_CANDIDATE_COMPONENT_RTP, "local", "udp", kClientAddr); EXPECT_PRED5(CheckCandidate, candidates_[1], cricket::ICE_CANDIDATE_COMPONENT_RTP, "local", "tcp", kClientAddr); // RelayPort connection timeout is 3sec. TCP connection with RelayServer // will be tried after 3 seconds. EXPECT_EQ_WAIT(6U, candidates_.size(), 4000); EXPECT_EQ(3U, ports_.size()); EXPECT_PRED5(CheckCandidate, candidates_[2], cricket::ICE_CANDIDATE_COMPONENT_RTP, "relay", "udp", kRelayUdpIntAddr); EXPECT_PRED5(CheckCandidate, candidates_[3], cricket::ICE_CANDIDATE_COMPONENT_RTP, "relay", "tcp", kRelayTcpIntAddr); EXPECT_PRED5(CheckCandidate, candidates_[4], cricket::ICE_CANDIDATE_COMPONENT_RTP, "relay", "ssltcp", kRelaySslTcpIntAddr); EXPECT_PRED5(CheckCandidate, candidates_[5], cricket::ICE_CANDIDATE_COMPONENT_RTP, "relay", "udp", kRelayUdpExtAddr); // Stun Timeout is 9sec. EXPECT_TRUE_WAIT(candidate_allocation_done_, 9000); } TEST_F(PortAllocatorTest, TestCandidatePriorityOfMultipleInterfaces) { AddInterface(kClientAddr); AddInterface(kClientAddr2); // Allocating only host UDP ports. This is done purely for testing // convenience. allocator().set_flags(cricket::PORTALLOCATOR_DISABLE_TCP | cricket::PORTALLOCATOR_DISABLE_STUN | cricket::PORTALLOCATOR_DISABLE_RELAY); EXPECT_TRUE(CreateSession(cricket::ICE_CANDIDATE_COMPONENT_RTP)); session_->StartGettingPorts(); EXPECT_TRUE_WAIT(candidate_allocation_done_, kDefaultAllocationTimeout); ASSERT_EQ(2U, candidates_.size()); EXPECT_EQ(2U, ports_.size()); // Candidates priorities should be different. EXPECT_NE(candidates_[0].priority(), candidates_[1].priority()); } // Test to verify ICE restart process. TEST_F(PortAllocatorTest, TestGetAllPortsRestarts) { AddInterface(kClientAddr); EXPECT_TRUE(CreateSession(cricket::ICE_CANDIDATE_COMPONENT_RTP)); session_->StartGettingPorts(); EXPECT_EQ_WAIT(7U, candidates_.size(), kDefaultAllocationTimeout); EXPECT_EQ(4U, ports_.size()); EXPECT_TRUE(candidate_allocation_done_); // TODO - Extend this to verify ICE restart. } // Test ICE candidate filter mechanism with options Relay/Host/Reflexive. // This test also verifies that when the allocator is only allowed to use // relay (i.e. IceTransportsType is relay), the raddr is an empty // address with the correct family. This is to prevent any local // reflective address leakage in the sdp line. TEST_F(PortAllocatorTest, TestCandidateFilterWithRelayOnly) { AddInterface(kClientAddr); // GTURN is not configured here. ResetWithTurnServers(kTurnUdpIntAddr, rtc::SocketAddress()); allocator().set_candidate_filter(cricket::CF_RELAY); EXPECT_TRUE(CreateSession(cricket::ICE_CANDIDATE_COMPONENT_RTP)); session_->StartGettingPorts(); EXPECT_TRUE_WAIT(candidate_allocation_done_, kDefaultAllocationTimeout); EXPECT_PRED5(CheckCandidate, candidates_[0], cricket::ICE_CANDIDATE_COMPONENT_RTP, "relay", "udp", rtc::SocketAddress(kTurnUdpExtAddr.ipaddr(), 0)); EXPECT_EQ(1U, candidates_.size()); EXPECT_EQ(1U, ports_.size()); // Only Relay port will be in ready state. for (size_t i = 0; i < candidates_.size(); ++i) { EXPECT_EQ(std::string(cricket::RELAY_PORT_TYPE), candidates_[i].type()); EXPECT_EQ( candidates_[0].related_address(), rtc::EmptySocketAddressWithFamily(candidates_[0].address().family())); } } TEST_F(PortAllocatorTest, TestCandidateFilterWithHostOnly) { AddInterface(kClientAddr); allocator().set_flags(cricket::PORTALLOCATOR_ENABLE_SHARED_UFRAG | cricket::PORTALLOCATOR_ENABLE_SHARED_SOCKET); allocator().set_candidate_filter(cricket::CF_HOST); EXPECT_TRUE(CreateSession(cricket::ICE_CANDIDATE_COMPONENT_RTP)); session_->StartGettingPorts(); EXPECT_TRUE_WAIT(candidate_allocation_done_, kDefaultAllocationTimeout); EXPECT_EQ(2U, candidates_.size()); // Host UDP/TCP candidates only. EXPECT_EQ(2U, ports_.size()); // UDP/TCP ports only. for (size_t i = 0; i < candidates_.size(); ++i) { EXPECT_EQ(std::string(cricket::LOCAL_PORT_TYPE), candidates_[i].type()); } } // Host is behind the NAT. TEST_F(PortAllocatorTest, TestCandidateFilterWithReflexiveOnly) { AddInterface(kPrivateAddr); ResetWithNatServer(kStunAddr); allocator().set_flags(cricket::PORTALLOCATOR_ENABLE_SHARED_UFRAG | cricket::PORTALLOCATOR_ENABLE_SHARED_SOCKET); allocator().set_candidate_filter(cricket::CF_REFLEXIVE); EXPECT_TRUE(CreateSession(cricket::ICE_CANDIDATE_COMPONENT_RTP)); session_->StartGettingPorts(); EXPECT_TRUE_WAIT(candidate_allocation_done_, kDefaultAllocationTimeout); // Host is behind NAT, no private address will be exposed. Hence only UDP // port with STUN candidate will be sent outside. EXPECT_EQ(1U, candidates_.size()); // Only STUN candidate. EXPECT_EQ(1U, ports_.size()); // Only UDP port will be in ready state. for (size_t i = 0; i < candidates_.size(); ++i) { EXPECT_EQ(std::string(cricket::STUN_PORT_TYPE), candidates_[i].type()); EXPECT_EQ( candidates_[0].related_address(), rtc::EmptySocketAddressWithFamily(candidates_[0].address().family())); } } // Host is not behind the NAT. TEST_F(PortAllocatorTest, TestCandidateFilterWithReflexiveOnlyAndNoNAT) { AddInterface(kClientAddr); allocator().set_flags(cricket::PORTALLOCATOR_ENABLE_SHARED_UFRAG | cricket::PORTALLOCATOR_ENABLE_SHARED_SOCKET); allocator().set_candidate_filter(cricket::CF_REFLEXIVE); EXPECT_TRUE(CreateSession(cricket::ICE_CANDIDATE_COMPONENT_RTP)); session_->StartGettingPorts(); EXPECT_TRUE_WAIT(candidate_allocation_done_, kDefaultAllocationTimeout); // Host has a public address, both UDP and TCP candidates will be exposed. EXPECT_EQ(2U, candidates_.size()); // Local UDP + TCP candidate. EXPECT_EQ(2U, ports_.size()); // UDP and TCP ports will be in ready state. for (size_t i = 0; i < candidates_.size(); ++i) { EXPECT_EQ(std::string(cricket::LOCAL_PORT_TYPE), candidates_[i].type()); } } // Test that when the PORTALLOCATOR_ENABLE_SHARED_UFRAG is enabled we got same // ufrag and pwd for the collected candidates. TEST_F(PortAllocatorTest, TestEnableSharedUfrag) { allocator().set_flags(allocator().flags() | cricket::PORTALLOCATOR_ENABLE_SHARED_UFRAG); AddInterface(kClientAddr); EXPECT_TRUE(CreateSession(cricket::ICE_CANDIDATE_COMPONENT_RTP)); session_->StartGettingPorts(); ASSERT_EQ_WAIT(7U, candidates_.size(), kDefaultAllocationTimeout); EXPECT_PRED5(CheckCandidate, candidates_[0], cricket::ICE_CANDIDATE_COMPONENT_RTP, "local", "udp", kClientAddr); EXPECT_PRED5(CheckCandidate, candidates_[1], cricket::ICE_CANDIDATE_COMPONENT_RTP, "stun", "udp", kClientAddr); EXPECT_PRED5(CheckCandidate, candidates_[5], cricket::ICE_CANDIDATE_COMPONENT_RTP, "local", "tcp", kClientAddr); EXPECT_EQ(4U, ports_.size()); EXPECT_EQ(kIceUfrag0, candidates_[0].username()); EXPECT_EQ(kIceUfrag0, candidates_[1].username()); EXPECT_EQ(kIceUfrag0, candidates_[2].username()); EXPECT_EQ(kIcePwd0, candidates_[0].password()); EXPECT_EQ(kIcePwd0, candidates_[1].password()); EXPECT_TRUE(candidate_allocation_done_); } // Test that when the PORTALLOCATOR_ENABLE_SHARED_UFRAG isn't enabled we got // different ufrag and pwd for the collected candidates. TEST_F(PortAllocatorTest, TestDisableSharedUfrag) { allocator().set_flags(allocator().flags() & ~cricket::PORTALLOCATOR_ENABLE_SHARED_UFRAG); AddInterface(kClientAddr); EXPECT_TRUE(CreateSession(cricket::ICE_CANDIDATE_COMPONENT_RTP)); session_->StartGettingPorts(); ASSERT_EQ_WAIT(7U, candidates_.size(), kDefaultAllocationTimeout); EXPECT_PRED5(CheckCandidate, candidates_[0], cricket::ICE_CANDIDATE_COMPONENT_RTP, "local", "udp", kClientAddr); EXPECT_PRED5(CheckCandidate, candidates_[1], cricket::ICE_CANDIDATE_COMPONENT_RTP, "stun", "udp", kClientAddr); EXPECT_EQ(4U, ports_.size()); // Port should generate random ufrag and pwd. EXPECT_NE(kIceUfrag0, candidates_[0].username()); EXPECT_NE(kIceUfrag0, candidates_[1].username()); EXPECT_NE(candidates_[0].username(), candidates_[1].username()); EXPECT_NE(kIcePwd0, candidates_[0].password()); EXPECT_NE(kIcePwd0, candidates_[1].password()); EXPECT_NE(candidates_[0].password(), candidates_[1].password()); EXPECT_TRUE(candidate_allocation_done_); } // Test that when PORTALLOCATOR_ENABLE_SHARED_SOCKET is enabled only one port // is allocated for udp and stun. Also verify there is only one candidate // (local) if stun candidate is same as local candidate, which will be the case // in a public network like the below test. TEST_F(PortAllocatorTest, TestSharedSocketWithoutNat) { AddInterface(kClientAddr); allocator_->set_flags(allocator().flags() | cricket::PORTALLOCATOR_ENABLE_SHARED_UFRAG | cricket::PORTALLOCATOR_ENABLE_SHARED_SOCKET); EXPECT_TRUE(CreateSession(cricket::ICE_CANDIDATE_COMPONENT_RTP)); session_->StartGettingPorts(); ASSERT_EQ_WAIT(6U, candidates_.size(), kDefaultAllocationTimeout); EXPECT_EQ(3U, ports_.size()); EXPECT_PRED5(CheckCandidate, candidates_[0], cricket::ICE_CANDIDATE_COMPONENT_RTP, "local", "udp", kClientAddr); EXPECT_TRUE_WAIT(candidate_allocation_done_, kDefaultAllocationTimeout); } // Test that when PORTALLOCATOR_ENABLE_SHARED_SOCKET is enabled only one port // is allocated for udp and stun. In this test we should expect both stun and // local candidates as client behind a nat. TEST_F(PortAllocatorTest, TestSharedSocketWithNat) { AddInterface(kClientAddr); ResetWithNatServer(kStunAddr); allocator_->set_flags(allocator().flags() | cricket::PORTALLOCATOR_ENABLE_SHARED_UFRAG | cricket::PORTALLOCATOR_ENABLE_SHARED_SOCKET); EXPECT_TRUE(CreateSession(cricket::ICE_CANDIDATE_COMPONENT_RTP)); session_->StartGettingPorts(); ASSERT_EQ_WAIT(3U, candidates_.size(), kDefaultAllocationTimeout); ASSERT_EQ(2U, ports_.size()); EXPECT_PRED5(CheckCandidate, candidates_[0], cricket::ICE_CANDIDATE_COMPONENT_RTP, "local", "udp", kClientAddr); EXPECT_PRED5(CheckCandidate, candidates_[1], cricket::ICE_CANDIDATE_COMPONENT_RTP, "stun", "udp", rtc::SocketAddress(kNatAddr.ipaddr(), 0)); EXPECT_TRUE_WAIT(candidate_allocation_done_, kDefaultAllocationTimeout); EXPECT_EQ(3U, candidates_.size()); } // Test TURN port in shared socket mode with UDP and TCP TURN server adderesses. TEST_F(PortAllocatorTest, TestSharedSocketWithoutNatUsingTurn) { turn_server_.AddInternalSocket(kTurnTcpIntAddr, cricket::PROTO_TCP); AddInterface(kClientAddr); allocator_.reset(new cricket::BasicPortAllocator(&network_manager_)); AddTurnServers(kTurnUdpIntAddr, kTurnTcpIntAddr); allocator_->set_step_delay(cricket::kMinimumStepDelay); allocator_->set_flags(allocator().flags() | cricket::PORTALLOCATOR_ENABLE_SHARED_UFRAG | cricket::PORTALLOCATOR_ENABLE_SHARED_SOCKET | cricket::PORTALLOCATOR_DISABLE_TCP); EXPECT_TRUE(CreateSession(cricket::ICE_CANDIDATE_COMPONENT_RTP)); session_->StartGettingPorts(); ASSERT_EQ_WAIT(3U, candidates_.size(), kDefaultAllocationTimeout); ASSERT_EQ(3U, ports_.size()); EXPECT_PRED5(CheckCandidate, candidates_[0], cricket::ICE_CANDIDATE_COMPONENT_RTP, "local", "udp", kClientAddr); EXPECT_PRED5(CheckCandidate, candidates_[1], cricket::ICE_CANDIDATE_COMPONENT_RTP, "relay", "udp", rtc::SocketAddress(kTurnUdpExtAddr.ipaddr(), 0)); EXPECT_PRED5(CheckCandidate, candidates_[2], cricket::ICE_CANDIDATE_COMPONENT_RTP, "relay", "udp", rtc::SocketAddress(kTurnUdpExtAddr.ipaddr(), 0)); EXPECT_TRUE_WAIT(candidate_allocation_done_, kDefaultAllocationTimeout); EXPECT_EQ(3U, candidates_.size()); } // Testing DNS resolve for the TURN server, this will test AllocationSequence // handling the unresolved address signal from TurnPort. TEST_F(PortAllocatorTest, TestSharedSocketWithServerAddressResolve) { turn_server_.AddInternalSocket(rtc::SocketAddress("127.0.0.1", 3478), cricket::PROTO_UDP); AddInterface(kClientAddr); allocator_.reset(new cricket::BasicPortAllocator(&network_manager_)); cricket::RelayServerConfig relay_server(cricket::RELAY_TURN); cricket::RelayCredentials credentials(kTurnUsername, kTurnPassword); relay_server.credentials = credentials; relay_server.ports.push_back(cricket::ProtocolAddress( rtc::SocketAddress("localhost", 3478), cricket::PROTO_UDP, false)); allocator_->AddRelay(relay_server); allocator_->set_step_delay(cricket::kMinimumStepDelay); allocator_->set_flags(allocator().flags() | cricket::PORTALLOCATOR_ENABLE_SHARED_UFRAG | cricket::PORTALLOCATOR_ENABLE_SHARED_SOCKET | cricket::PORTALLOCATOR_DISABLE_TCP); EXPECT_TRUE(CreateSession(cricket::ICE_CANDIDATE_COMPONENT_RTP)); session_->StartGettingPorts(); EXPECT_EQ_WAIT(2U, ports_.size(), kDefaultAllocationTimeout); } // Test that when PORTALLOCATOR_ENABLE_SHARED_SOCKET is enabled only one port // is allocated for udp/stun/turn. In this test we should expect all local, // stun and turn candidates. TEST_F(PortAllocatorTest, TestSharedSocketWithNatUsingTurn) { AddInterface(kClientAddr); ResetWithNatServer(kStunAddr); AddTurnServers(kTurnUdpIntAddr, rtc::SocketAddress()); allocator_->set_flags(allocator().flags() | cricket::PORTALLOCATOR_ENABLE_SHARED_UFRAG | cricket::PORTALLOCATOR_ENABLE_SHARED_SOCKET | cricket::PORTALLOCATOR_DISABLE_TCP); EXPECT_TRUE(CreateSession(cricket::ICE_CANDIDATE_COMPONENT_RTP)); session_->StartGettingPorts(); ASSERT_EQ_WAIT(3U, candidates_.size(), kDefaultAllocationTimeout); ASSERT_EQ(2U, ports_.size()); EXPECT_PRED5(CheckCandidate, candidates_[0], cricket::ICE_CANDIDATE_COMPONENT_RTP, "local", "udp", kClientAddr); EXPECT_PRED5(CheckCandidate, candidates_[1], cricket::ICE_CANDIDATE_COMPONENT_RTP, "stun", "udp", rtc::SocketAddress(kNatAddr.ipaddr(), 0)); EXPECT_PRED5(CheckCandidate, candidates_[2], cricket::ICE_CANDIDATE_COMPONENT_RTP, "relay", "udp", rtc::SocketAddress(kTurnUdpExtAddr.ipaddr(), 0)); EXPECT_TRUE_WAIT(candidate_allocation_done_, kDefaultAllocationTimeout); EXPECT_EQ(3U, candidates_.size()); // Local port will be created first and then TURN port. EXPECT_EQ(2U, ports_[0]->Candidates().size()); EXPECT_EQ(1U, ports_[1]->Candidates().size()); } // Test that when PORTALLOCATOR_ENABLE_SHARED_SOCKET is enabled and the TURN // server is also used as the STUN server, we should get 'local', 'stun', and // 'relay' candidates. TEST_F(PortAllocatorTest, TestSharedSocketWithNatUsingTurnAsStun) { AddInterface(kClientAddr); // Use an empty SocketAddress to add a NAT without STUN server. ResetWithNatServer(SocketAddress()); AddTurnServers(kTurnUdpIntAddr, rtc::SocketAddress()); // Must set the step delay to 0 to make sure the relay allocation phase is // started before the STUN candidates are obtained, so that the STUN binding // response is processed when both StunPort and TurnPort exist to reproduce // webrtc issue 3537. allocator_->set_step_delay(0); allocator_->set_flags(allocator().flags() | cricket::PORTALLOCATOR_ENABLE_SHARED_UFRAG | cricket::PORTALLOCATOR_ENABLE_SHARED_SOCKET | cricket::PORTALLOCATOR_DISABLE_TCP); EXPECT_TRUE(CreateSession(cricket::ICE_CANDIDATE_COMPONENT_RTP)); session_->StartGettingPorts(); ASSERT_EQ_WAIT(3U, candidates_.size(), kDefaultAllocationTimeout); EXPECT_PRED5(CheckCandidate, candidates_[0], cricket::ICE_CANDIDATE_COMPONENT_RTP, "local", "udp", kClientAddr); EXPECT_PRED5(CheckCandidate, candidates_[1], cricket::ICE_CANDIDATE_COMPONENT_RTP, "stun", "udp", rtc::SocketAddress(kNatAddr.ipaddr(), 0)); EXPECT_PRED5(CheckCandidate, candidates_[2], cricket::ICE_CANDIDATE_COMPONENT_RTP, "relay", "udp", rtc::SocketAddress(kTurnUdpExtAddr.ipaddr(), 0)); EXPECT_EQ(candidates_[2].related_address(), candidates_[1].address()); EXPECT_TRUE_WAIT(candidate_allocation_done_, kDefaultAllocationTimeout); EXPECT_EQ(3U, candidates_.size()); // Local port will be created first and then TURN port. EXPECT_EQ(2U, ports_[0]->Candidates().size()); EXPECT_EQ(1U, ports_[1]->Candidates().size()); } // This test verifies when PORTALLOCATOR_ENABLE_SHARED_SOCKET flag is enabled // and fail to generate STUN candidate, local UDP candidate is generated // properly. TEST_F(PortAllocatorTest, TestSharedSocketNoUdpAllowed) { allocator().set_flags(allocator().flags() | cricket::PORTALLOCATOR_DISABLE_RELAY | cricket::PORTALLOCATOR_DISABLE_TCP | cricket::PORTALLOCATOR_ENABLE_SHARED_UFRAG | cricket::PORTALLOCATOR_ENABLE_SHARED_SOCKET); fss_->AddRule(false, rtc::FP_UDP, rtc::FD_ANY, kClientAddr); AddInterface(kClientAddr); EXPECT_TRUE(CreateSession(cricket::ICE_CANDIDATE_COMPONENT_RTP)); session_->StartGettingPorts(); ASSERT_EQ_WAIT(1U, ports_.size(), kDefaultAllocationTimeout); EXPECT_EQ(1U, candidates_.size()); EXPECT_PRED5(CheckCandidate, candidates_[0], cricket::ICE_CANDIDATE_COMPONENT_RTP, "local", "udp", kClientAddr); // STUN timeout is 9sec. We need to wait to get candidate done signal. EXPECT_TRUE_WAIT(candidate_allocation_done_, 10000); EXPECT_EQ(1U, candidates_.size()); } // This test verifies allocator can use IPv6 addresses along with IPv4. TEST_F(PortAllocatorTest, TestEnableIPv6Addresses) { allocator().set_flags(allocator().flags() | cricket::PORTALLOCATOR_DISABLE_RELAY | cricket::PORTALLOCATOR_ENABLE_IPV6 | cricket::PORTALLOCATOR_ENABLE_SHARED_UFRAG | cricket::PORTALLOCATOR_ENABLE_SHARED_SOCKET); AddInterface(kClientIPv6Addr); AddInterface(kClientAddr); allocator_->set_step_delay(cricket::kMinimumStepDelay); EXPECT_TRUE(CreateSession(cricket::ICE_CANDIDATE_COMPONENT_RTP)); session_->StartGettingPorts(); ASSERT_EQ_WAIT(4U, ports_.size(), kDefaultAllocationTimeout); EXPECT_EQ(4U, candidates_.size()); EXPECT_TRUE_WAIT(candidate_allocation_done_, kDefaultAllocationTimeout); EXPECT_PRED5(CheckCandidate, candidates_[0], cricket::ICE_CANDIDATE_COMPONENT_RTP, "local", "udp", kClientIPv6Addr); EXPECT_PRED5(CheckCandidate, candidates_[1], cricket::ICE_CANDIDATE_COMPONENT_RTP, "local", "udp", kClientAddr); EXPECT_PRED5(CheckCandidate, candidates_[2], cricket::ICE_CANDIDATE_COMPONENT_RTP, "local", "tcp", kClientIPv6Addr); EXPECT_PRED5(CheckCandidate, candidates_[3], cricket::ICE_CANDIDATE_COMPONENT_RTP, "local", "tcp", kClientAddr); EXPECT_EQ(4U, candidates_.size()); } // Test that the httpportallocator correctly maintains its lists of stun and // relay servers, by never allowing an empty list. TEST(HttpPortAllocatorTest, TestHttpPortAllocatorHostLists) { rtc::FakeNetworkManager network_manager; cricket::HttpPortAllocator alloc(&network_manager, "unit test agent"); EXPECT_EQ(1U, alloc.relay_hosts().size()); EXPECT_EQ(1U, alloc.stun_hosts().size()); std::vector<std::string> relay_servers; std::vector<rtc::SocketAddress> stun_servers; alloc.SetRelayHosts(relay_servers); alloc.SetStunHosts(stun_servers); EXPECT_EQ(1U, alloc.relay_hosts().size()); EXPECT_EQ(1U, alloc.stun_hosts().size()); relay_servers.push_back("1.unittest.corp.google.com"); relay_servers.push_back("2.unittest.corp.google.com"); stun_servers.push_back( rtc::SocketAddress("1.unittest.corp.google.com", 0)); stun_servers.push_back( rtc::SocketAddress("2.unittest.corp.google.com", 0)); alloc.SetRelayHosts(relay_servers); alloc.SetStunHosts(stun_servers); EXPECT_EQ(2U, alloc.relay_hosts().size()); EXPECT_EQ(2U, alloc.stun_hosts().size()); } // Test that the HttpPortAllocator uses correct URL to create sessions. TEST(HttpPortAllocatorTest, TestSessionRequestUrl) { rtc::FakeNetworkManager network_manager; cricket::HttpPortAllocator alloc(&network_manager, "unit test agent"); // Disable PORTALLOCATOR_ENABLE_SHARED_UFRAG. alloc.set_flags(alloc.flags() & ~cricket::PORTALLOCATOR_ENABLE_SHARED_UFRAG); rtc::scoped_ptr<cricket::HttpPortAllocatorSessionBase> session( static_cast<cricket::HttpPortAllocatorSession*>( alloc.CreateSessionInternal( "test content", 0, kIceUfrag0, kIcePwd0))); std::string url = session->GetSessionRequestUrl(); LOG(LS_INFO) << "url: " << url; EXPECT_EQ(std::string(cricket::HttpPortAllocator::kCreateSessionURL), url); // Enable PORTALLOCATOR_ENABLE_SHARED_UFRAG. alloc.set_flags(alloc.flags() | cricket::PORTALLOCATOR_ENABLE_SHARED_UFRAG); session.reset(static_cast<cricket::HttpPortAllocatorSession*>( alloc.CreateSessionInternal("test content", 0, kIceUfrag0, kIcePwd0))); url = session->GetSessionRequestUrl(); LOG(LS_INFO) << "url: " << url; std::vector<std::string> parts; rtc::split(url, '?', &parts); ASSERT_EQ(2U, parts.size()); std::vector<std::string> args_parts; rtc::split(parts[1], '&', &args_parts); std::map<std::string, std::string> args; for (std::vector<std::string>::iterator it = args_parts.begin(); it != args_parts.end(); ++it) { std::vector<std::string> parts; rtc::split(*it, '=', &parts); ASSERT_EQ(2U, parts.size()); args[rtc::s_url_decode(parts[0])] = rtc::s_url_decode(parts[1]); } EXPECT_EQ(kIceUfrag0, args["username"]); EXPECT_EQ(kIcePwd0, args["password"]); } // Tests that destroying ports with non-shared sockets does not crash. // b/19074679. TEST_F(PortAllocatorTest, TestDestroyPortsNonSharedSockets) { AddInterface(kClientAddr); EXPECT_TRUE(CreateSession(cricket::ICE_CANDIDATE_COMPONENT_RTP)); session_->StartGettingPorts(); ASSERT_EQ_WAIT(7U, candidates_.size(), kDefaultAllocationTimeout); EXPECT_EQ(4U, ports_.size()); auto it = ports_.begin(); for (; it != ports_.end(); ++it) { (reinterpret_cast<cricket::Port*>(*it))->Destroy(); } }
dengxiayehu/orps
contrib/webrtc/src/webrtc/p2p/client/portallocator_unittest.cc
C++
gpl-2.0
46,529
<?php /** * Infinity Theme: top menu template * * @author Bowe Frankema <bowe@presscrew.com> * @link http://infinity.presscrew.com/ * @copyright Copyright (C) 2010-2011 Bowe Frankema * @license http://www.gnu.org/licenses/gpl.html GPLv2 or later * @package Infinity * @subpackage templates * @since 1.0 */ // is footer menu supported and is there one set? if ( current_theme_supports( 'infinity:footer-menu', 'setup' ) && has_nav_menu( 'footer-menu' ) ): // show footer nav ?> <nav id="footer-menu" role="navigation"> <?php do_action('open_footer_menu'); wp_nav_menu( array( 'theme_location' => 'footer-menu' ) ); do_action('close_footer_menu'); ?> </nav> <?php endif;
PressCrew/infinity-cbox
src/templates/parts/menu-footer.php
PHP
gpl-2.0
698
<?php /** * AWARD index data access class * * * PHP version 5 * * 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. * * @category Chisimba * @package award * @author Nic Appleby <nappleby@uwc.ac.za> * @copyright 2008 Nic Appleby * @license http://www.gnu.org/licenses/gpl-2.0.txt The GNU General Public License * @version $Id$ * @link http://avoir.uwc.ac.za * @see core,api */ // security check - must be included in all scripts if (! /** * Description for $GLOBALS * @global entry point $GLOBALS['kewl_entry_point_run'] * @name $kewl_entry_point_run */ $GLOBALS['kewl_entry_point_run']) { die("You cannot view this page directly"); } // end security check /** * AWARD XML_RPC & data access class * * Class to provide AWARD SIC Major Div information from the database * * @category Chisimba * @package award * @author Nic Appleby <nappleby@uwc.ac.za> * @copyright 2008 AVOIR * @license http://www.gnu.org/licenses/gpl-2.0.txt The GNU General Public License * @version $Id$ * @link http://avoir.uwc.ac.za */ class dbdwcategories extends dbTable { /** * Class Constructor * * @access public * @return void */ public function init() { try { $this->objDWValues = $this->getObject('dbdwvalues'); parent::init('tbl_award_decent_work_category'); } catch (Exception $e){ throw customException($e->getMessage()); exit(); } } public function deleteCategory($id) { $this->objDWValues->delete('categoryid',$id); $this->delete('id',$id); } } ?>
chisimba/modules
awardapi/classes/dbdwcategories_class_inc.php
PHP
gpl-2.0
2,394
<!-- INCLUDE overall_header.html --> <script language="javaScript" type="text/javascript"> var onload_functions = new Array(); </script> <script type="text/javascript"> // <![CDATA[ var form_name = 'acp_rules'; var text_name = 'content'; // Define the bbCode tags var bbcode = new Array(); var bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','[/code]','[list]','[/list]','[list=]','[/list]','[img]','[/img]','[url]','[/url]','[flash=]', '[/flash]','[size=]','[/size]'<!-- BEGIN custom_tags -->, {custom_tags.BBCODE_NAME}<!-- END custom_tags -->); var imageTag = false; // Helpline messages var help_line = { b: '{LA_BBCODE_B_HELP}', i: '{LA_BBCODE_I_HELP}', u: '{LA_BBCODE_U_HELP}', q: '{LA_BBCODE_Q_HELP}', c: '{LA_BBCODE_C_HELP}', l: '{LA_BBCODE_L_HELP}', o: '{LA_BBCODE_O_HELP}', p: '{LA_BBCODE_P_HELP}', w: '{LA_BBCODE_W_HELP}', a: '{LA_BBCODE_A_HELP}', s: '{LA_BBCODE_S_HELP}', f: '{LA_BBCODE_F_HELP}', e: '{LA_BBCODE_E_HELP}', d: '{LA_BBCODE_D_HELP}' <!-- BEGIN custom_tags --> ,cb_{custom_tags.BBCODE_ID}: '{custom_tags.A_BBCODE_HELPLINE}' <!-- END custom_tags --> } // ]]> </script> <script type="text/javascript" src="{T_TEMPLATE_PATH}/editor.js"></script> <h1>{L_ACP_RULES_OVERVIEW}</h1> <p>{L_ACP_RULES_OVERVIEW_EXPLAIN}</p> <table cellspacing="1"> <thead> <tr> <th>{L_ACP_RULE_ID}</th> <th>{L_ACTION}</th> </tr> </thead> <tbody> <!-- BEGIN rules --> <!-- IF rules.S_ROW_COUNT is even --><tr class="row1"><!-- ELSE --><tr class="row2"><!-- ENDIF --> <td>{rules.TITLE}</td> <td>&nbsp;<a href="{rules.U_EDIT}">{ICON_EDIT}</a> <a href="{rules.U_DEL}">{ICON_DELETE}</a>&nbsp;</td> </tr> <!-- END rules --> </tbody> </table> <form id="acp_rules" method="post" action="{U_ACTION}"> <input type="hidden" name="id" value="{ID}" /> <fieldset> <legend>{L_ACP_RULE_ADD}</legend> <dl> <dt><label for="title">{L_ACP_RULE_TITLE}:</label><br /><span>{L_ACP_RULE_TITLE_EXPLAIN}</span></dt> <dd><input type="text" id="title" name="title" size="41" value="{TITLE}"/></dd> </dl> <dl> <div id="format-buttons"> <input type="button" class="button2" accesskey="b" name="addbbcode0" value=" B " style="font-weight:bold; width: 30px" onclick="bbstyle(0)" title="{L_BBCODE_B_HELP}" /> <input type="button" class="button2" accesskey="i" name="addbbcode2" value=" i " style="font-style:italic; width: 30px" onclick="bbstyle(2)" title="{L_BBCODE_I_HELP}" /> <input type="button" class="button2" accesskey="u" name="addbbcode4" value=" u " style="text-decoration: underline; width: 30px" onclick="bbstyle(4)" title="{L_BBCODE_U_HELP}" /> <input type="button" class="button2" accesskey="q" name="addbbcode6" value="Quote" style="width: 50px" onclick="bbstyle(6)" title="{L_BBCODE_Q_HELP}" /> <input type="button" class="button2" accesskey="c" name="addbbcode8" value="Code" style="width: 40px" onclick="bbstyle(8)" title="{L_BBCODE_C_HELP}" /> <input type="button" class="button2" accesskey="l" name="addbbcode10" value="List" style="width: 40px" onclick="bbstyle(10)" title="{L_BBCODE_L_HELP}" /> <input type="button" class="button2" accesskey="o" name="addbbcode12" value="List=" style="width: 40px" onclick="bbstyle(12)" title="{L_BBCODE_O_HELP}" /> <input type="button" class="button2" accesskey="t" name="addlitsitem" value="[*]" style="width: 40px" onclick="bbstyle(-1)" title="{L_BBCODE_LISTITEM_HELP}" /> <input type="button" class="button2" accesskey="p" name="addbbcode14" value="Img" style="width: 40px" onclick="bbstyle(14)" title="{L_BBCODE_P_HELP}" /> <input type="button" class="button2" accesskey="w" name="addbbcode16" value="URL" style="text-decoration: underline; width: 40px" onclick="bbstyle(16)" title="{L_BBCODE_W_HELP}" /> <input type="button" class="button2" accesskey="d" name="addbbcode18" value="Flash" onclick="bbstyle(18)" title="{L_BBCODE_D_HELP}" /> <select name="addbbcode20" onchange="bbfontstyle('[size=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/size]');this.form.addbbcode20.selectedIndex = 2;" title="{L_BBCODE_F_HELP}"> <option value="50">{L_FONT_TINY}</option> <option value="85">{L_FONT_SMALL}</option> <option value="100" selected="selected">{L_FONT_NORMAL}</option> <option value="150">{L_FONT_LARGE}</option> <option value="200">{L_FONT_HUGE}</option> </select> <!-- BEGIN custom_tags --> <input type="button" class="button2" name="addbbcode{custom_tags.BBCODE_ID}" value="{custom_tags.BBCODE_TAG}" onclick="bbstyle({custom_tags.BBCODE_ID})" title="{custom_tags.BBCODE_HELPLINE}" /> <!-- END custom_tags --> </div> <div id="colour_palette" style="float: right;"> <dl style="clear: left;"> <script type="text/javascript"> // <![CDATA[ function change_palette() { dE('colour_palette'); e = document.getElementById('colour_palette'); if (e.style.display == 'block') { document.getElementById('bbpalette').value = '{LA_FONT_COLOR_HIDE}'; } else { document.getElementById('bbpalette').value = '{LA_FONT_COLOR}'; } } colorPalette('v', 15, 10); // ]]> </script> </dl> </div> <br /> <p style="font-size: 11px; font-weight: bold;">{L_ACP_RULE_DESC}:</p> {L_ACP_RULE_DESC_EXPLAIN} <textarea rows="20" name="content" cols="52" rows="40" cols="75" style="margin-top: 10px; overflow: scroll; width: 85%;" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" >{CONTENT}</textarea><br /> </dl> </fieldset> <p class="submit-buttons"> <input class="button1" type="submit" id="submit" name="submit" value="{L_SUBMIT}" />&nbsp; <input class="button2" type="reset" id="reset" name="reset" value="{L_RESET}" /> </p> {S_FORM_TOKEN} </form> <br /> <!-- INCLUDE overall_footer.html -->
vinny/phpBB-Rules-MOD
root/adm/style/acp_rules.html
HTML
gpl-2.0
5,806
<?php /* * This is the centered list template * June 8th, 2015 * @author bilal hassan <bilal@smartcat.ca> * */ $args = $this->sc_get_args( $group, $limit ); $members = new WP_Query( $args ); ?> <div id="smartcat-testimonials" class="smartcat_<?php echo $template == '' ? $this->options[ 'template' ] : $template; ?>_template"> <?php if ( $members->have_posts() ) { while ( $members->have_posts() ) { $members->the_post(); ?> <div class="smartcat-testimonial center"> <?php if( $images == 'yes' || ( empty( $images ) && $this->options['use_images'] == 'yes' ) ) : ?> <div class="smartcat-testimonial-image <?php echo $this->options['image_style'] . ' ' . $this->options['image_size'] . ' ' . $this->options['image_greysacle'];?>" > <?php if ( has_post_thumbnail() ) : ?> <?php echo the_post_thumbnail( 'medium' ); ?> <?php endif ?> </div> <?php endif; ?> <div class="<?php echo !empty( $font ) ? $font : '' ?> smartcat_testimonials_content <?php echo $this->options['italic_content']; ?>"> <span class="icon-quote-left"></span><?php echo wp_trim_words( get_the_content(), $this->options['word_count'] ); ?><span class="icon-quote-right"></span> </div> <?php if( $date == 'yes' || ( empty( $date ) && $this->options['show_date'] == 'yes' ) ) : ?> <div class="smartat_testimonial_date"> <?php echo the_date(); ?> </div> <?php endif; ?> <div itemprop="name" class="smartcat_testimonial_title"> <?php the_title() ?> </div> <div itemprop="title" class="smartcat_testimonial_subtitle"> <?php $subtitle = get_post_meta(get_the_ID(), 'testimonial_subtitle', TRUE ); ?> <?php $subtitle_url = get_post_meta( get_the_ID(), 'testimonial_subtitle_url', TRUE ); ?> <?php if( !empty( $subtitle_url ) ) : ?> <?php $this->smartcat_testimonials_href_this( $subtitle, $subtitle_url, get_post_meta(get_the_ID(), 'testimonial_subtitle_target', TRUE ) ); ?> <?php else : ?> <?php echo $subtitle; ?> <?php endif; ?> </div> <?php $this->get_ratings( $ratings, get_the_ID() ); ?> </div> <?php } } else { echo 'There are no reviews to display'; } wp_reset_postdata(); ?> </div> <div class="clear"></div>
DavidOltra/htdocs
wp-content/plugins/testimonials-reviews-showcase/inc/template/centered_list.php
PHP
gpl-2.0
3,007
/******************************************************************************* File: tmwxOptimizerDialog_cmn.cpp Project: TreeMaker 5.x Purpose: Source file for class tmwxOptimizerDialog, common routines Author: Robert J. Lang Modified by: Created: 2004-04-22 Copyright: ©2004 Robert J. Lang. All Rights Reserved. *******************************************************************************/ #include "tmwxOptimizerDialog.h" #include "tmwxStr.h" #include "tmwxStaticText.h" #include "tmwxDoc.h" #include "tmwxApp.h" /* Notes. This class, tmwxOptimizerDialog, puts up a small dialog during a calculation that both tells the user that the calculation is going on and allows the user to cancel the calculation. Cancellation can take place by (1) clicking the cancel button, (2) typing the platform-standard key combination for cancellation (ctrl-C or cmd-period). This file contains the platform-independent routines. */ /********** class tmwxOptimizerDialog Dialog for long, cancellable calculations **********/ /***** Constructor. Create the dialog, add a description string and a cancel button. *****/ tmwxOptimizerDialog::tmwxOptimizerDialog(tmwxDoc* aDoc, tmOptimizer* aOptimizer, const wxString& descr) : wxDialog(NULL, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, TMWX_MODAL_DIALOG_STYLE | wxSTAY_ON_TOP), mDoc(aDoc), mOptimizer(aOptimizer), mStatus(IN_LOOP), mReason(0) #ifdef __WXMSW__ ,mWindowDisabler(NULL) #endif { wxBoxSizer* colsizer = new wxBoxSizer(wxVERTICAL); colsizer->Add(new tmwxStaticText(this, 12, descr), 0, wxALIGN_CENTER | wxTOP|wxLEFT|wxRIGHT, 10); colsizer->Add(mProgress = new tmwxStaticText(this, 9, wxT(".")), 0, wxALIGN_CENTER | wxTOP|wxLEFT|wxRIGHT, 10); colsizer->Add(CreateStdDialogButtonSizer(wxCANCEL), 0, wxALIGN_CENTER | wxALL, 10); // We need to receive keystrokes to check for cancellation. SetFocus(); SetSizerAndFit(colsizer); Center(); } /***** Put up the dialog and run the dialog loop until a user has cancelled *****/ int tmwxOptimizerDialog::ShowModal() { DoStartModal(); DoEventLoopModal(); DoFinishModal(); return mStatus; } /***** OVERRIDE This gets called if the dialog has received a cancel event (either from hitting the button or a key combination). *****/ void tmwxOptimizerDialog::EndModal(int) { SetStatus(USER_CANCELLED); } /***** This replaces the event loop of the dialog with our own event loop that launches the calculation routine. For this to work, we rely on the fact that the Optimize() call will periodically call back to this dialog's UpdateUI() method, which will periodically make calls to DoEventLoopOnce(). *****/ void tmwxOptimizerDialog::DoEventLoopModal() { try { // Process some events to get the modal dialog up and fully displayed before // we do anything. size_t NUM_EVENTS = 5; for (size_t i = 0; i < NUM_EVENTS; ++i) DoEventLoopOnce(); // Initialize both watches, start the Math watch. mGUIWatch.Start(); mGUIWatch.Pause(); mMathWatch.Start(); mOptimizer->Optimize(); // this calls UpdateUI() repeatedly SetStatus(NORMAL_TERMINATION); } catch(EX_USER_CANCELLED) { SetStatus(USER_CANCELLED); } catch(tmNLCO::EX_BAD_CONVERGENCE ebc) { // an EX-BAD_CONVERGENCE may provide an implementation-dependent reason for // failure to converge (e.g., the "inform" variable in CFSQP). We'll store // this in mReason so that clients can query it to give more detailed // information about failure to converge. SetStatus(OTHER_TERMINATION); SetReason(ebc.mReason); } catch(...) { // Any other exceptions, we'll still catch them. mReason will be left at // its initial value, which is 0. SetStatus(OTHER_TERMINATION); } } /***** Signals if the dialog should finish. *****/ void tmwxOptimizerDialog::SetStatus(int aStatus) { mStatus = aStatus; } /***** Provide additional information about early termination. *****/ void tmwxOptimizerDialog::SetReason(int aReason) { mReason = aReason; } /***** Overrides the tmNLCOUpdater::UpdateUI() method to do screen image updating and check for user calculation (using the tmwxOptimizerDialog class). We also compare the time on our two timers; if the math timer has gotten more time than the GUI timer, we let the GUI process an event; otherwise, we continue do some more math. *****/ void tmwxOptimizerDialog::UpdateUI() { const tmFloat GUI_TIME_RATIO = 2.0; // split between GUI time and math time mMathWatch.Pause(); // Now both watches are paused. Compare the times to see who's gotten more // time since the calculation started. If math has gotten more time, then it's // time to do some GUI processing. long mathTime = mMathWatch.Time(); long guiTime = mGUIWatch.Time(); if (guiTime < GUI_TIME_RATIO * mathTime) { mGUIWatch.Resume(); mOptimizer->DataToTree(); mDoc->UpdateDocViews(); mProgress->SetLabel(mProgress->GetLabel() + wxT(".")); SetFocus(); // Do a burst of events; enough to get the screen fully updated each time size_t NUM_EVENTS = 5; for (size_t i = 0; i < NUM_EVENTS; ++i) DoEventLoopOnce(); if (GetStatus() == USER_CANCELLED) throw EX_USER_CANCELLED(); mGUIWatch.Pause(); } mMathWatch.Resume(); } /***** Respond to keys while we're the focus *****/ void tmwxOptimizerDialog::OnKeyDown(wxKeyEvent& event) { switch (event.GetKeyCode()) { case WXK_ESCAPE: case WXK_CANCEL: EndModal(USER_CANCELLED); break; case '.': case 'c': if (event.MetaDown()) EndModal(USER_CANCELLED); else event.Skip(); break; default: event.Skip(); } } /***** Event table *****/ BEGIN_EVENT_TABLE(tmwxOptimizerDialog, wxDialog) EVT_KEY_DOWN(tmwxOptimizerDialog::OnKeyDown) END_EVENT_TABLE()
wesen/TreeMaker
Source/tmwxGUI/tmwxOptimizerDialog/tmwxOptimizerDialog_cmn.cpp
C++
gpl-2.0
5,882
/* * Wireless utility functions * * Copyright 2007-2009 Johannes Berg <johannes@sipsolutions.net> */ #include <linux/bitops.h> #include <linux/etherdevice.h> #include <linux/slab.h> #include <net/cfg80211.h> #include <net/ip.h> #include "core.h" struct ieee80211_rate * ieee80211_get_response_rate(struct ieee80211_supported_band *sband, u32 basic_rates, int bitrate) { struct ieee80211_rate *result = &sband->bitrates[0]; int i; for (i = 0; i < sband->n_bitrates; i++) { if (!(basic_rates & BIT(i))) continue; if (sband->bitrates[i].bitrate > bitrate) continue; result = &sband->bitrates[i]; } return result; } EXPORT_SYMBOL(ieee80211_get_response_rate); int ieee80211_channel_to_frequency(int chan, enum ieee80211_band band) { /* see 802.11 17.3.8.3.2 and Annex J * there are overlapping channel numbers in 5GHz and 2GHz bands */ if (band == IEEE80211_BAND_5GHZ) { if (chan >= 182 && chan <= 196) return 4000 + chan * 5; else return 5000 + chan * 5; } else { /* IEEE80211_BAND_2GHZ */ if (chan == 14) return 2484; else if (chan < 14) return 2407 + chan * 5; else return 0; /* not supported */ } } EXPORT_SYMBOL(ieee80211_channel_to_frequency); int ieee80211_frequency_to_channel(int freq) { /* see 802.11 17.3.8.3.2 and Annex J */ if (freq == 2484) return 14; else if (freq < 2484) return (freq - 2407) / 5; else if (freq >= 4910 && freq <= 4980) return (freq - 4000) / 5; else return (freq - 5000) / 5; } EXPORT_SYMBOL(ieee80211_frequency_to_channel); struct ieee80211_channel *__ieee80211_get_channel(struct wiphy *wiphy, int freq) { enum ieee80211_band band; struct ieee80211_supported_band *sband; int i; for (band = 0; band < IEEE80211_NUM_BANDS; band++) { sband = wiphy->bands[band]; if (!sband) continue; for (i = 0; i < sband->n_channels; i++) { if (sband->channels[i].center_freq == freq) return &sband->channels[i]; } } return NULL; } EXPORT_SYMBOL(__ieee80211_get_channel); static void set_mandatory_flags_band(struct ieee80211_supported_band *sband, enum ieee80211_band band) { int i, want; switch (band) { case IEEE80211_BAND_5GHZ: want = 3; for (i = 0; i < sband->n_bitrates; i++) { if (sband->bitrates[i].bitrate == 60 || sband->bitrates[i].bitrate == 120 || sband->bitrates[i].bitrate == 240) { sband->bitrates[i].flags |= IEEE80211_RATE_MANDATORY_A; want--; } } WARN_ON(want); break; case IEEE80211_BAND_2GHZ: want = 7; for (i = 0; i < sband->n_bitrates; i++) { if (sband->bitrates[i].bitrate == 10) { sband->bitrates[i].flags |= IEEE80211_RATE_MANDATORY_B | IEEE80211_RATE_MANDATORY_G; want--; } if (sband->bitrates[i].bitrate == 20 || sband->bitrates[i].bitrate == 55 || sband->bitrates[i].bitrate == 110 || sband->bitrates[i].bitrate == 60 || sband->bitrates[i].bitrate == 120 || sband->bitrates[i].bitrate == 240) { sband->bitrates[i].flags |= IEEE80211_RATE_MANDATORY_G; want--; } if (sband->bitrates[i].bitrate != 10 && sband->bitrates[i].bitrate != 20 && sband->bitrates[i].bitrate != 55 && sband->bitrates[i].bitrate != 110) sband->bitrates[i].flags |= IEEE80211_RATE_ERP_G; } WARN_ON(want != 0 && want != 3 && want != 6); break; case IEEE80211_NUM_BANDS: WARN_ON(1); break; } } void ieee80211_set_bitrate_flags(struct wiphy *wiphy) { enum ieee80211_band band; for (band = 0; band < IEEE80211_NUM_BANDS; band++) if (wiphy->bands[band]) set_mandatory_flags_band(wiphy->bands[band], band); } bool cfg80211_supported_cipher_suite(struct wiphy *wiphy, u32 cipher) { int i; for (i = 0; i < wiphy->n_cipher_suites; i++) if (cipher == wiphy->cipher_suites[i]) return true; return false; } int cfg80211_validate_key_settings(struct cfg80211_registered_device *rdev, struct key_params *params, int key_idx, bool pairwise, const u8 *mac_addr) { if (key_idx > 5) return -EINVAL; if (!pairwise && mac_addr && !(rdev->wiphy.flags & WIPHY_FLAG_IBSS_RSN)) return -EINVAL; if (pairwise && !mac_addr) return -EINVAL; /* * Disallow pairwise keys with non-zero index unless it's WEP * or a vendor specific cipher (because current deployments use * pairwise WEP keys with non-zero indices and for vendor specific * ciphers this should be validated in the driver or hardware level * - but 802.11i clearly specifies to use zero) */ if (pairwise && key_idx && ((params->cipher == WLAN_CIPHER_SUITE_TKIP) || (params->cipher == WLAN_CIPHER_SUITE_CCMP) || (params->cipher == WLAN_CIPHER_SUITE_AES_CMAC))) return -EINVAL; switch (params->cipher) { case WLAN_CIPHER_SUITE_WEP40: if (params->key_len != WLAN_KEY_LEN_WEP40) return -EINVAL; break; case WLAN_CIPHER_SUITE_TKIP: if (params->key_len != WLAN_KEY_LEN_TKIP) return -EINVAL; break; case WLAN_CIPHER_SUITE_CCMP: if (params->key_len != WLAN_KEY_LEN_CCMP) return -EINVAL; break; case WLAN_CIPHER_SUITE_WEP104: if (params->key_len != WLAN_KEY_LEN_WEP104) return -EINVAL; break; case WLAN_CIPHER_SUITE_AES_CMAC: if (params->key_len != WLAN_KEY_LEN_AES_CMAC) return -EINVAL; break; case WLAN_CIPHER_SUITE_SMS4: if (params->key_len != WLAN_KEY_LEN_WAPI_SMS4) return -EINVAL; break; default: /* * We don't know anything about this algorithm, * allow using it -- but the driver must check * all parameters! We still check below whether * or not the driver supports this algorithm, * of course. */ break; } if (params->seq) { switch (params->cipher) { case WLAN_CIPHER_SUITE_WEP40: case WLAN_CIPHER_SUITE_WEP104: /* These ciphers do not use key sequence */ return -EINVAL; case WLAN_CIPHER_SUITE_TKIP: case WLAN_CIPHER_SUITE_CCMP: case WLAN_CIPHER_SUITE_AES_CMAC: if (params->seq_len != 6) return -EINVAL; break; } } if (!cfg80211_supported_cipher_suite(&rdev->wiphy, params->cipher)) return -EINVAL; return 0; } /* See IEEE 802.1H for LLC/SNAP encapsulation/decapsulation */ /* Ethernet-II snap header (RFC1042 for most EtherTypes) */ const unsigned char rfc1042_header[] __aligned(2) = { 0xaa, 0xaa, 0x03, 0x00, 0x00, 0x00 }; EXPORT_SYMBOL(rfc1042_header); /* Bridge-Tunnel header (for EtherTypes ETH_P_AARP and ETH_P_IPX) */ const unsigned char bridge_tunnel_header[] __aligned(2) = { 0xaa, 0xaa, 0x03, 0x00, 0x00, 0xf8 }; EXPORT_SYMBOL(bridge_tunnel_header); unsigned int __attribute_const__ ieee80211_hdrlen(__le16 fc) { unsigned int hdrlen = 24; if (ieee80211_is_data(fc)) { if (ieee80211_has_a4(fc)) hdrlen = 30; if (ieee80211_is_data_qos(fc)) { hdrlen += IEEE80211_QOS_CTL_LEN; if (ieee80211_has_order(fc)) hdrlen += IEEE80211_HT_CTL_LEN; } goto out; } if (ieee80211_is_ctl(fc)) { /* * ACK and CTS are 10 bytes, all others 16. To see how * to get this condition consider * subtype mask: 0b0000000011110000 (0x00F0) * ACK subtype: 0b0000000011010000 (0x00D0) * CTS subtype: 0b0000000011000000 (0x00C0) * bits that matter: ^^^ (0x00E0) * value of those: 0b0000000011000000 (0x00C0) */ if ((fc & cpu_to_le16(0x00E0)) == cpu_to_le16(0x00C0)) hdrlen = 10; else hdrlen = 16; } out: return hdrlen; } EXPORT_SYMBOL(ieee80211_hdrlen); unsigned int ieee80211_get_hdrlen_from_skb(const struct sk_buff *skb) { const struct ieee80211_hdr *hdr = (const struct ieee80211_hdr *)skb->data; unsigned int hdrlen; if (unlikely(skb->len < 10)) return 0; hdrlen = ieee80211_hdrlen(hdr->frame_control); if (unlikely(hdrlen > skb->len)) return 0; return hdrlen; } EXPORT_SYMBOL(ieee80211_get_hdrlen_from_skb); static int ieee80211_get_mesh_hdrlen(struct ieee80211s_hdr *meshhdr) { int ae = meshhdr->flags & MESH_FLAGS_AE; /* 7.1.3.5a.2 */ switch (ae) { case 0: return 6; case MESH_FLAGS_AE_A4: return 12; case MESH_FLAGS_AE_A5_A6: return 18; case (MESH_FLAGS_AE_A4 | MESH_FLAGS_AE_A5_A6): return 24; default: return 6; } } int ieee80211_data_to_8023(struct sk_buff *skb, const u8 *addr, enum nl80211_iftype iftype) { struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) skb->data; u16 hdrlen, ethertype; u8 *payload; u8 dst[ETH_ALEN]; u8 src[ETH_ALEN] __aligned(2); if (unlikely(!ieee80211_is_data_present(hdr->frame_control))) return -1; hdrlen = ieee80211_hdrlen(hdr->frame_control); /* convert IEEE 802.11 header + possible LLC headers into Ethernet * header * IEEE 802.11 address fields: * ToDS FromDS Addr1 Addr2 Addr3 Addr4 * 0 0 DA SA BSSID n/a * 0 1 DA BSSID SA n/a * 1 0 BSSID SA DA n/a * 1 1 RA TA DA SA */ memcpy(dst, ieee80211_get_DA(hdr), ETH_ALEN); memcpy(src, ieee80211_get_SA(hdr), ETH_ALEN); switch (hdr->frame_control & cpu_to_le16(IEEE80211_FCTL_TODS | IEEE80211_FCTL_FROMDS)) { case cpu_to_le16(IEEE80211_FCTL_TODS): if (unlikely(iftype != NL80211_IFTYPE_AP && iftype != NL80211_IFTYPE_AP_VLAN && iftype != NL80211_IFTYPE_P2P_GO)) return -1; break; case cpu_to_le16(IEEE80211_FCTL_TODS | IEEE80211_FCTL_FROMDS): if (unlikely(iftype != NL80211_IFTYPE_WDS && iftype != NL80211_IFTYPE_MESH_POINT && iftype != NL80211_IFTYPE_AP_VLAN && iftype != NL80211_IFTYPE_STATION)) return -1; if (iftype == NL80211_IFTYPE_MESH_POINT) { struct ieee80211s_hdr *meshdr = (struct ieee80211s_hdr *) (skb->data + hdrlen); /* make sure meshdr->flags is on the linear part */ if (!pskb_may_pull(skb, hdrlen + 1)) return -1; if (meshdr->flags & MESH_FLAGS_AE_A5_A6) { skb_copy_bits(skb, hdrlen + offsetof(struct ieee80211s_hdr, eaddr1), dst, ETH_ALEN); skb_copy_bits(skb, hdrlen + offsetof(struct ieee80211s_hdr, eaddr2), src, ETH_ALEN); } hdrlen += ieee80211_get_mesh_hdrlen(meshdr); } break; case cpu_to_le16(IEEE80211_FCTL_FROMDS): if ((iftype != NL80211_IFTYPE_STATION && iftype != NL80211_IFTYPE_P2P_CLIENT && iftype != NL80211_IFTYPE_MESH_POINT) || (is_multicast_ether_addr(dst) && !compare_ether_addr(src, addr))) return -1; if (iftype == NL80211_IFTYPE_MESH_POINT) { struct ieee80211s_hdr *meshdr = (struct ieee80211s_hdr *) (skb->data + hdrlen); /* make sure meshdr->flags is on the linear part */ if (!pskb_may_pull(skb, hdrlen + 1)) return -1; if (meshdr->flags & MESH_FLAGS_AE_A4) skb_copy_bits(skb, hdrlen + offsetof(struct ieee80211s_hdr, eaddr1), src, ETH_ALEN); hdrlen += ieee80211_get_mesh_hdrlen(meshdr); } break; case cpu_to_le16(0): if (iftype != NL80211_IFTYPE_ADHOC) return -1; break; } if (!pskb_may_pull(skb, hdrlen + 8)) return -1; payload = skb->data + hdrlen; ethertype = (payload[6] << 8) | payload[7]; if (likely((compare_ether_addr(payload, rfc1042_header) == 0 && ethertype != ETH_P_AARP && ethertype != ETH_P_IPX) || compare_ether_addr(payload, bridge_tunnel_header) == 0)) { /* remove RFC1042 or Bridge-Tunnel encapsulation and * replace EtherType */ skb_pull(skb, hdrlen + 6); memcpy(skb_push(skb, ETH_ALEN), src, ETH_ALEN); memcpy(skb_push(skb, ETH_ALEN), dst, ETH_ALEN); } else { struct ethhdr *ehdr; __be16 len; skb_pull(skb, hdrlen); len = htons(skb->len); ehdr = (struct ethhdr *) skb_push(skb, sizeof(struct ethhdr)); memcpy(ehdr->h_dest, dst, ETH_ALEN); memcpy(ehdr->h_source, src, ETH_ALEN); ehdr->h_proto = len; } return 0; } EXPORT_SYMBOL(ieee80211_data_to_8023); int ieee80211_data_from_8023(struct sk_buff *skb, const u8 *addr, enum nl80211_iftype iftype, u8 *bssid, bool qos) { struct ieee80211_hdr hdr; u16 hdrlen, ethertype; __le16 fc; const u8 *encaps_data; int encaps_len, skip_header_bytes; int nh_pos, h_pos; int head_need; if (unlikely(skb->len < ETH_HLEN)) return -EINVAL; nh_pos = skb_network_header(skb) - skb->data; h_pos = skb_transport_header(skb) - skb->data; /* convert Ethernet header to proper 802.11 header (based on * operation mode) */ ethertype = (skb->data[12] << 8) | skb->data[13]; fc = cpu_to_le16(IEEE80211_FTYPE_DATA | IEEE80211_STYPE_DATA); switch (iftype) { case NL80211_IFTYPE_AP: case NL80211_IFTYPE_AP_VLAN: case NL80211_IFTYPE_P2P_GO: fc |= cpu_to_le16(IEEE80211_FCTL_FROMDS); /* DA BSSID SA */ memcpy(hdr.addr1, skb->data, ETH_ALEN); memcpy(hdr.addr2, addr, ETH_ALEN); memcpy(hdr.addr3, skb->data + ETH_ALEN, ETH_ALEN); hdrlen = 24; break; case NL80211_IFTYPE_STATION: case NL80211_IFTYPE_P2P_CLIENT: fc |= cpu_to_le16(IEEE80211_FCTL_TODS); /* BSSID SA DA */ memcpy(hdr.addr1, bssid, ETH_ALEN); memcpy(hdr.addr2, skb->data + ETH_ALEN, ETH_ALEN); memcpy(hdr.addr3, skb->data, ETH_ALEN); hdrlen = 24; break; case NL80211_IFTYPE_ADHOC: /* DA SA BSSID */ memcpy(hdr.addr1, skb->data, ETH_ALEN); memcpy(hdr.addr2, skb->data + ETH_ALEN, ETH_ALEN); memcpy(hdr.addr3, bssid, ETH_ALEN); hdrlen = 24; break; default: return -EOPNOTSUPP; } if (qos) { fc |= cpu_to_le16(IEEE80211_STYPE_QOS_DATA); hdrlen += 2; } hdr.frame_control = fc; hdr.duration_id = 0; hdr.seq_ctrl = 0; skip_header_bytes = ETH_HLEN; if (ethertype == ETH_P_AARP || ethertype == ETH_P_IPX) { encaps_data = bridge_tunnel_header; encaps_len = sizeof(bridge_tunnel_header); skip_header_bytes -= 2; } else if (ethertype > 0x600) { encaps_data = rfc1042_header; encaps_len = sizeof(rfc1042_header); skip_header_bytes -= 2; } else { encaps_data = NULL; encaps_len = 0; } skb_pull(skb, skip_header_bytes); nh_pos -= skip_header_bytes; h_pos -= skip_header_bytes; head_need = hdrlen + encaps_len - skb_headroom(skb); if (head_need > 0 || skb_cloned(skb)) { head_need = max(head_need, 0); if (head_need) skb_orphan(skb); if (pskb_expand_head(skb, head_need, 0, GFP_ATOMIC)) { pr_err("failed to reallocate Tx buffer\n"); return -ENOMEM; } skb->truesize += head_need; } if (encaps_data) { memcpy(skb_push(skb, encaps_len), encaps_data, encaps_len); nh_pos += encaps_len; h_pos += encaps_len; } memcpy(skb_push(skb, hdrlen), &hdr, hdrlen); nh_pos += hdrlen; h_pos += hdrlen; /* Update skb pointers to various headers since this modified frame * is going to go through Linux networking code that may potentially * need things like pointer to IP header. */ skb_set_mac_header(skb, 0); skb_set_network_header(skb, nh_pos); skb_set_transport_header(skb, h_pos); return 0; } EXPORT_SYMBOL(ieee80211_data_from_8023); void ieee80211_amsdu_to_8023s(struct sk_buff *skb, struct sk_buff_head *list, const u8 *addr, enum nl80211_iftype iftype, const unsigned int extra_headroom, bool has_80211_header) { struct sk_buff *frame = NULL; u16 ethertype; u8 *payload; const struct ethhdr *eth; int remaining, err; u8 dst[ETH_ALEN], src[ETH_ALEN]; if (has_80211_header) { err = ieee80211_data_to_8023(skb, addr, iftype); if (err) goto out; /* skip the wrapping header */ eth = (struct ethhdr *) skb_pull(skb, sizeof(struct ethhdr)); if (!eth) goto out; } else { eth = (struct ethhdr *) skb->data; } while (skb != frame) { u8 padding; __be16 len = eth->h_proto; unsigned int subframe_len = sizeof(struct ethhdr) + ntohs(len); remaining = skb->len; memcpy(dst, eth->h_dest, ETH_ALEN); memcpy(src, eth->h_source, ETH_ALEN); padding = (4 - subframe_len) & 0x3; /* the last MSDU has no padding */ if (subframe_len > remaining) goto purge; skb_pull(skb, sizeof(struct ethhdr)); /* reuse skb for the last subframe */ if (remaining <= subframe_len + padding) frame = skb; else { unsigned int hlen = ALIGN(extra_headroom, 4); /* * Allocate and reserve two bytes more for payload * alignment since sizeof(struct ethhdr) is 14. */ frame = dev_alloc_skb(hlen + subframe_len + 2); if (!frame) goto purge; skb_reserve(frame, hlen + sizeof(struct ethhdr) + 2); memcpy(skb_put(frame, ntohs(len)), skb->data, ntohs(len)); eth = (struct ethhdr *)skb_pull(skb, ntohs(len) + padding); if (!eth) { dev_kfree_skb(frame); goto purge; } } skb_reset_network_header(frame); frame->dev = skb->dev; frame->priority = skb->priority; payload = frame->data; ethertype = (payload[6] << 8) | payload[7]; if (likely((compare_ether_addr(payload, rfc1042_header) == 0 && ethertype != ETH_P_AARP && ethertype != ETH_P_IPX) || compare_ether_addr(payload, bridge_tunnel_header) == 0)) { /* remove RFC1042 or Bridge-Tunnel * encapsulation and replace EtherType */ skb_pull(frame, 6); memcpy(skb_push(frame, ETH_ALEN), src, ETH_ALEN); memcpy(skb_push(frame, ETH_ALEN), dst, ETH_ALEN); } else { memcpy(skb_push(frame, sizeof(__be16)), &len, sizeof(__be16)); memcpy(skb_push(frame, ETH_ALEN), src, ETH_ALEN); memcpy(skb_push(frame, ETH_ALEN), dst, ETH_ALEN); } __skb_queue_tail(list, frame); } return; purge: __skb_queue_purge(list); out: dev_kfree_skb(skb); } EXPORT_SYMBOL(ieee80211_amsdu_to_8023s); /* Given a data frame determine the 802.1p/1d tag to use. */ unsigned int cfg80211_classify8021d(struct sk_buff *skb) { unsigned int dscp; /* skb->priority values from 256->263 are magic values to * directly indicate a specific 802.1d priority. This is used * to allow 802.1d priority to be passed directly in from VLAN * tags, etc. */ if (skb->priority >= 256 && skb->priority <= 263) return skb->priority - 256; switch (skb->protocol) { case htons(ETH_P_IP): dscp = ip_hdr(skb)->tos & 0xfc; break; default: return 0; } return dscp >> 5; } EXPORT_SYMBOL(cfg80211_classify8021d); const u8 *ieee80211_bss_get_ie(struct cfg80211_bss *bss, u8 ie) { u8 *end, *pos; pos = bss->information_elements; if (pos == NULL) return NULL; end = pos + bss->len_information_elements; while (pos + 1 < end) { if (pos + 2 + pos[1] > end) break; if (pos[0] == ie) return pos; pos += 2 + pos[1]; } return NULL; } EXPORT_SYMBOL(ieee80211_bss_get_ie); void cfg80211_upload_connect_keys(struct wireless_dev *wdev) { struct cfg80211_registered_device *rdev = wiphy_to_dev(wdev->wiphy); struct net_device *dev = wdev->netdev; int i; if (!wdev->connect_keys) return; for (i = 0; i < 6; i++) { if (!wdev->connect_keys->params[i].cipher) continue; if (rdev->ops->add_key(wdev->wiphy, dev, i, false, NULL, &wdev->connect_keys->params[i])) { netdev_err(dev, "failed to set key %d\n", i); continue; } if (wdev->connect_keys->def == i) if (rdev->ops->set_default_key(wdev->wiphy, dev, i, true, true)) { netdev_err(dev, "failed to set defkey %d\n", i); continue; } if (wdev->connect_keys->defmgmt == i) if (rdev->ops->set_default_mgmt_key(wdev->wiphy, dev, i)) netdev_err(dev, "failed to set mgtdef %d\n", i); } kfree(wdev->connect_keys); wdev->connect_keys = NULL; } static void cfg80211_process_wdev_events(struct wireless_dev *wdev) { struct cfg80211_event *ev; unsigned long flags; const u8 *bssid = NULL; spin_lock_irqsave(&wdev->event_lock, flags); while (!list_empty(&wdev->event_list)) { ev = list_first_entry(&wdev->event_list, struct cfg80211_event, list); list_del(&ev->list); spin_unlock_irqrestore(&wdev->event_lock, flags); wdev_lock(wdev); switch (ev->type) { case EVENT_CONNECT_RESULT: if (!is_zero_ether_addr(ev->cr.bssid)) bssid = ev->cr.bssid; __cfg80211_connect_result( wdev->netdev, bssid, ev->cr.req_ie, ev->cr.req_ie_len, ev->cr.resp_ie, ev->cr.resp_ie_len, ev->cr.status, ev->cr.status == WLAN_STATUS_SUCCESS, NULL); break; case EVENT_ROAMED: __cfg80211_roamed(wdev, ev->rm.channel, ev->rm.bssid, ev->rm.req_ie, ev->rm.req_ie_len, ev->rm.resp_ie, ev->rm.resp_ie_len); break; case EVENT_DISCONNECTED: __cfg80211_disconnected(wdev->netdev, ev->dc.ie, ev->dc.ie_len, ev->dc.reason, true); break; case EVENT_IBSS_JOINED: __cfg80211_ibss_joined(wdev->netdev, ev->ij.bssid); break; } wdev_unlock(wdev); kfree(ev); spin_lock_irqsave(&wdev->event_lock, flags); } spin_unlock_irqrestore(&wdev->event_lock, flags); } void cfg80211_process_rdev_events(struct cfg80211_registered_device *rdev) { struct wireless_dev *wdev; ASSERT_RTNL(); ASSERT_RDEV_LOCK(rdev); mutex_lock(&rdev->devlist_mtx); list_for_each_entry(wdev, &rdev->netdev_list, list) cfg80211_process_wdev_events(wdev); mutex_unlock(&rdev->devlist_mtx); } int cfg80211_change_iface(struct cfg80211_registered_device *rdev, struct net_device *dev, enum nl80211_iftype ntype, u32 *flags, struct vif_params *params) { int err; enum nl80211_iftype otype = dev->ieee80211_ptr->iftype; ASSERT_RDEV_LOCK(rdev); /* don't support changing VLANs, you just re-create them */ if (otype == NL80211_IFTYPE_AP_VLAN) return -EOPNOTSUPP; if (!rdev->ops->change_virtual_intf || !(rdev->wiphy.interface_modes & (1 << ntype))) return -EOPNOTSUPP; /* if it's part of a bridge, reject changing type to station/ibss */ if ((dev->priv_flags & IFF_BRIDGE_PORT) && (ntype == NL80211_IFTYPE_ADHOC || ntype == NL80211_IFTYPE_STATION || ntype == NL80211_IFTYPE_P2P_CLIENT)) return -EBUSY; if (ntype != otype) { err = cfg80211_can_change_interface(rdev, dev->ieee80211_ptr, ntype); if (err) return err; dev->ieee80211_ptr->use_4addr = false; dev->ieee80211_ptr->mesh_id_up_len = 0; switch (otype) { case NL80211_IFTYPE_ADHOC: cfg80211_leave_ibss(rdev, dev, false); break; case NL80211_IFTYPE_STATION: case NL80211_IFTYPE_P2P_CLIENT: cfg80211_disconnect(rdev, dev, WLAN_REASON_DEAUTH_LEAVING, true); break; case NL80211_IFTYPE_MESH_POINT: /* mesh should be handled? */ break; default: break; } cfg80211_process_rdev_events(rdev); } err = rdev->ops->change_virtual_intf(&rdev->wiphy, dev, ntype, flags, params); WARN_ON(!err && dev->ieee80211_ptr->iftype != ntype); if (!err && params && params->use_4addr != -1) dev->ieee80211_ptr->use_4addr = params->use_4addr; if (!err) { dev->priv_flags &= ~IFF_DONT_BRIDGE; switch (ntype) { case NL80211_IFTYPE_STATION: if (dev->ieee80211_ptr->use_4addr) break; /* fall through */ case NL80211_IFTYPE_P2P_CLIENT: case NL80211_IFTYPE_ADHOC: dev->priv_flags |= IFF_DONT_BRIDGE; break; case NL80211_IFTYPE_P2P_GO: case NL80211_IFTYPE_AP: case NL80211_IFTYPE_AP_VLAN: case NL80211_IFTYPE_WDS: case NL80211_IFTYPE_MESH_POINT: /* bridging OK */ break; case NL80211_IFTYPE_MONITOR: /* monitor can't bridge anyway */ break; case NL80211_IFTYPE_UNSPECIFIED: case NUM_NL80211_IFTYPES: /* not happening */ break; } } return err; } u16 cfg80211_calculate_bitrate(struct rate_info *rate) { int modulation, streams, bitrate; if (!(rate->flags & RATE_INFO_FLAGS_MCS)) return rate->legacy; /* the formula below does only work for MCS values smaller than 32 */ if (rate->mcs >= 32) return 0; modulation = rate->mcs & 7; streams = (rate->mcs >> 3) + 1; bitrate = (rate->flags & RATE_INFO_FLAGS_40_MHZ_WIDTH) ? 13500000 : 6500000; if (modulation < 4) bitrate *= (modulation + 1); else if (modulation == 4) bitrate *= (modulation + 2); else bitrate *= (modulation + 3); bitrate *= streams; if (rate->flags & RATE_INFO_FLAGS_SHORT_GI) bitrate = (bitrate / 9) * 10; /* do NOT round down here */ return (bitrate + 50000) / 100000; } int cfg80211_validate_beacon_int(struct cfg80211_registered_device *rdev, u32 beacon_int) { struct wireless_dev *wdev; int res = 0; if (!beacon_int) return -EINVAL; mutex_lock(&rdev->devlist_mtx); list_for_each_entry(wdev, &rdev->netdev_list, list) { if (!wdev->beacon_interval) continue; if (wdev->beacon_interval != beacon_int) { res = -EINVAL; break; } } mutex_unlock(&rdev->devlist_mtx); return res; } int cfg80211_can_change_interface(struct cfg80211_registered_device *rdev, struct wireless_dev *wdev, enum nl80211_iftype iftype) { struct wireless_dev *wdev_iter; u32 used_iftypes = BIT(iftype); int num[NUM_NL80211_IFTYPES]; int total = 1; int i, j; ASSERT_RTNL(); /* Always allow software iftypes */ if (rdev->wiphy.software_iftypes & BIT(iftype)) return 0; /* * Drivers will gradually all set this flag, until all * have it we only enforce for those that set it. */ if (!(rdev->wiphy.flags & WIPHY_FLAG_ENFORCE_COMBINATIONS)) return 0; memset(num, 0, sizeof(num)); num[iftype] = 1; mutex_lock(&rdev->devlist_mtx); list_for_each_entry(wdev_iter, &rdev->netdev_list, list) { if (wdev_iter == wdev) continue; if (!netif_running(wdev_iter->netdev)) continue; if (rdev->wiphy.software_iftypes & BIT(wdev_iter->iftype)) continue; num[wdev_iter->iftype]++; total++; used_iftypes |= BIT(wdev_iter->iftype); } mutex_unlock(&rdev->devlist_mtx); for (i = 0; i < rdev->wiphy.n_iface_combinations; i++) { const struct ieee80211_iface_combination *c; struct ieee80211_iface_limit *limits; u32 all_iftypes = 0; c = &rdev->wiphy.iface_combinations[i]; limits = kmemdup(c->limits, sizeof(limits[0]) * c->n_limits, GFP_KERNEL); if (!limits) return -ENOMEM; if (total > c->max_interfaces) goto cont; for (iftype = 0; iftype < NUM_NL80211_IFTYPES; iftype++) { if (rdev->wiphy.software_iftypes & BIT(iftype)) continue; for (j = 0; j < c->n_limits; j++) { if (!(limits[j].types & iftype)) all_iftypes |= limits[j].types; if (!(limits[j].types & BIT(iftype))) continue; if (limits[j].max < num[iftype]) goto cont; limits[j].max -= num[iftype]; } } /* * Finally check that all iftypes that we're currently * using are actually part of this combination. If they * aren't then we can't use this combination and have * to continue to the next. */ if ((all_iftypes & used_iftypes) != used_iftypes) goto cont; /* * This combination covered all interface types and * supported the requested numbers, so we're good. */ kfree(limits); return 0; cont: kfree(limits); } return -EBUSY; } int ieee80211_get_ratemask(struct ieee80211_supported_band *sband, const u8 *rates, unsigned int n_rates, u32 *mask) { int i, j; if (n_rates == 0 || n_rates > NL80211_MAX_SUPP_RATES) return -EINVAL; *mask = 0; for (i = 0; i < n_rates; i++) { int rate = (rates[i] & 0x7f) * 5; bool found = false; for (j = 0; j < sband->n_bitrates; j++) { if (sband->bitrates[j].bitrate == rate) { found = true; *mask |= BIT(j); break; } } if (!found) return -EINVAL; } /* * mask must have at least one bit set here since we * didn't accept a 0-length rates array nor allowed * entries in the array that didn't exist */ return 0; }
NoelMacwan/SXDMesona
net/wireless/util.c
C
gpl-2.0
27,069
@import "bootstrap.min.css"; body { margin-top: 60px; margin-bottom: 60px; } .tab-content { height: 60vh; # padding: 0px; overflow: scroll; } .container-log { height: 500px; font-size: 10px; } textarea.logtext { background-image: url("../images/bg-grain.png"); font-size: 10px; height: 100%; overflow: scroll; font-style: font-family:monospace; resize: none; } .window-start { text-align: center; padding: 0px; font-size: 12px; } .window-name { background-color: lightblue; text-align: center; padding: 0px; border: 1px solid #000; font-size: 20px; } .window-name > p { margin: 0; }
issue/SATPI
web/assets/css/stylesheet.css
CSS
gpl-2.0
612
/////////////////////////////////////////////////////////////////////////////// // // TauLFV_UL_plot_comb_norecomp.cc // // make tau LFV upper limits plot // // - published limits // - combination of upper limits // // execute as follows: // > root -l -b -q TauLFV_UL_plot_comb_norecomp.cc+ // // Last update 2013/07/25 /////////////////////////////////////////////////////////////////////////////// #include <iostream> #include <iomanip> #include <fstream> #include <assert.h> #include <math.h> #include <stddef.h> #include "TROOT.h" #include "TString.h" #include "TFile.h" #include "TStyle.h" #include "TCanvas.h" #include "TH1F.h" #include "TMath.h" #include "TPostScript.h" #include "TLine.h" #include "TBox.h" #include "TGraph.h" #include "TGraphErrors.h" #include "TGraphAsymmErrors.h" #include "TLatex.h" #include "TColor.h" #include "TLegend.h" #include "TPaveText.h" #include "../plots/HFAGTauLabel.cc" enum DECAY { EGAMMA = 0, MUGAMMA = 1, /* EPI0 = 2, MUPI0 = 3, EETA = 4, MUETA = 5, EETAP = 6, MUETAP = 7, */ EKS0 = 2, MUKS0 = 3, /* EF0 = 10, MUF0 = 11, */ ERHO = 4, MURHO = 5, EKSTAR = 6, MUKSTAR = 7, EAKSTAR = 8, MUAKSTAR = 9, EPHI = 10, MUPHI = 11, EOMEGA = 12, MUOMEGA = 13, EEE = 14, //order of charge -+- MEE = 15, EMM = 16, MMM = 17, EME = 18, MEM = 19, /* EPIPI = 28, MUPIPI = 29, EPIK = 30, MUPIK = 31, EKPI = 32, MUKPI = 33, EKK = 34, MUKK = 35, EKS0KS0 = 36, MUKS0KS0 = 37, PIEPI = 38, PIMUPI = 39, PIEK = 40, PIMUK = 41, KEK = 42, KMUK = 43, */ PILAM = 20, PILAMBAR = 21, KLAM = 22, KLAMBAR = 23, /* PMUMUOS = 48, PMUMUSS = 49, */ NDECAY = 24 }; void fillBelle(double * array) { array[EGAMMA] = 12; array[MUGAMMA] = 4.5 + .3; // added .3 for clarity in display array[EKS0] = 2.6; array[MUKS0] = 2.3; // Belle 854 fb-1 //previous 543 fb-1 array[ERHO] = 1.8; // 6.3; array[MURHO] = 1.2; // 6.8; array[EKSTAR] = 3.2; // 7.8; array[MUKSTAR] = 7.2; // 5.9; array[EAKSTAR] = 3.4; // 7.7; array[MUAKSTAR]= 7.0 - 0.2; // 10; // substracted .2 for clarity in display array[EPHI] = 3.1 - 0.2; // 7.3; // substracted .2 for clarity in display array[MUPHI] = 8.4; // 13; array[EOMEGA] = 4.8; // 18; array[MUOMEGA] = 4.7; // 8.9; array[EEE] = 2.7; array[MEE] = 1.8; array[EMM] = 2.7; array[MMM] = 2.1; array[EME] = 1.5; array[MEM] = 1.7; // 906 fb-1 //Previous 154 fb-1 array[PILAM] = 3.0; //7.2; array[PILAMBAR]= 2.8; //14; array[KLAM] = 4.2; array[KLAMBAR] = 3.1; } void fillBaBar(double * array) { // at 10^-8 array[EGAMMA] = 3.3; array[MUGAMMA] = 4.4 - 0.3; array[EKS0] = 3.3; array[MUKS0] = 4.0; array[ERHO] = 4.6; array[MURHO] = 2.6; array[EKSTAR] = 5.9; array[MUKSTAR] = 17; array[EAKSTAR] = 4.6; array[MUAKSTAR]= 7.3 + 0.2; array[EPHI] = 3.1 + 0.2; array[MUPHI] = 19; array[EOMEGA] = 11; array[MUOMEGA] = 10; array[EEE] = 2.9; array[MEE] = 2.2; array[EMM] = 3.2; array[MMM] = 3.3; array[EME] = 1.8; array[MEM] = 2.6; array[PILAM] = 5.8; array[PILAMBAR]= 5.9; array[KLAM] = 15; array[KLAMBAR] = 7.2; } void fillLHCb(double * array) { // at 10^-8 array[MMM] = 4.6; // array[PMUMUOS] = 33.; // array[PMUMUSS] = 44.; } void fillHFAG_CLs(double * array) { array[EGAMMA] = 5.4; array[MUGAMMA] = 5.0; array[EKS0] = 1.4; array[MUKS0] = 1.5; array[ERHO] = 1.5; array[MURHO] = 1.5; array[EKSTAR]= 2.3; array[MUKSTAR]=6.0; array[EAKSTAR]=2.2; array[MUAKSTAR]= 4.2; array[EPHI]=2.0; array[MUPHI]=6.8; array[EOMEGA] = 3.3; array[MUOMEGA] = 4.0; array[EEE] = 1.4; array[MEE]= 1.1; array[EMM]= 1.6; array[MMM] = 1.2; array[EME] = 0.84; array[MEM] = 0.98; array[PILAM]= 1.9; array[PILAMBAR]= 1.8; array[KLAM] = 3.7; array[KLAMBAR] =2.0; } void setLabels(TH1* hist) { const Int_t label_offs(2); TAxis * axis = hist->GetXaxis(); axis->SetBinLabel(label_offs - 1 ," "); axis->SetBinLabel(label_offs + EGAMMA ,"e^{-} #gamma"); axis->SetBinLabel(label_offs + MUGAMMA ,"#mu^{-} #gamma"); // axis->SetBinLabel(label_offs + EPI0 ,"e^{-} #pi^{0}"); // axis->SetBinLabel(label_offs + MUPI0 ,"#mu^{-} #pi^{0}"); // axis->SetBinLabel(label_offs + EETA ,"e^{-} #eta"); // axis->SetBinLabel(label_offs + MUETA ,"#mu^{-} #eta"); // axis->SetBinLabel(label_offs + EETAP ,"e^{-} #eta'"); // axis->SetBinLabel(label_offs + MUETAP ,"#mu^{-} #eta'"); axis->SetBinLabel(label_offs + EKS0 ,"e^{-} K_{S}^{0}"); axis->SetBinLabel(label_offs + MUKS0 ,"#mu^{-} K_{S}^{0}"); // axis->SetBinLabel(label_offs + EF0 ,"e^{-} f_{0}"); // axis->SetBinLabel(label_offs + MUF0 ,"#mu^{-} f_{0}"); axis->SetBinLabel(label_offs + ERHO ,"e^{-} #rho_{0}"); axis->SetBinLabel(label_offs + MURHO ,"#mu^{-} #rho_{0}"); axis->SetBinLabel(label_offs + EKSTAR ,"e^{-} K*"); axis->SetBinLabel(label_offs + MUKSTAR ,"#mu^{-} K*"); axis->SetBinLabel(label_offs + EAKSTAR ,"e^{-} #bar{K*}"); axis->SetBinLabel(label_offs + MUAKSTAR,"#mu^{-} #bar{K*}"); axis->SetBinLabel(label_offs + EPHI ,"e^{-} #phi"); axis->SetBinLabel(label_offs + MUPHI ,"#mu^{-} #phi"); axis->SetBinLabel(label_offs + EOMEGA ,"e^{-} #omega"); axis->SetBinLabel(label_offs + MUOMEGA ,"#mu^{-} #omega"); axis->SetBinLabel(label_offs + EEE, "e^{-} e^{+} e^{-}"); axis->SetBinLabel(label_offs + MEE, "#mu^{-} e^{+} e^{-}"); axis->SetBinLabel(label_offs + EMM, "e^{-} #mu^{+} #mu^{-}"); axis->SetBinLabel(label_offs + MMM, "#mu^{-} #mu^{+} #mu^{-}"); axis->SetBinLabel(label_offs + EME, "e^{-} #mu^{+} e^{-}"); axis->SetBinLabel(label_offs + MEM, "#mu^{-} e^{+} #mu^{-}"); /* axis->SetBinLabel(label_offs + EPIPI ,"e^{-} #pi^{+} #pi^{-}"); axis->SetBinLabel(label_offs + MUPIPI ,"#mu^{-} #pi^{+} #pi^{-}"); axis->SetBinLabel(label_offs + EPIK ,"e^{-} #pi^{+} K^{-}"); axis->SetBinLabel(label_offs + MUPIK ,"#mu^{-} #pi^{+} K^{-}"); axis->SetBinLabel(label_offs + EKPI ,"e^{-} K^{+} #pi^{-}"); axis->SetBinLabel(label_offs + MUKPI ,"#mu^{-} K^{+} #pi^{-}"); axis->SetBinLabel(label_offs + EKK ,"e^{-} K^{+} K^{-}"); axis->SetBinLabel(label_offs + MUKK ,"#mu^{-} K^{+} K^{-}"); axis->SetBinLabel(label_offs + EKS0KS0 ,"e^{-} K_{S}^{0} K_{S}^{0}"); axis->SetBinLabel(label_offs + MUKS0KS0,"#mu^{-} K_{S}^{0} K_{S}^{0}"); axis->SetBinLabel(label_offs + PIEPI ,"#pi^{-} e^{+} #pi^{-}"); axis->SetBinLabel(label_offs + PIMUPI ,"#pi^{-} #mu^{+} #pi^{-}"); axis->SetBinLabel(label_offs + PIEK ,"#pi^{-} e^{+} K^{-}"); axis->SetBinLabel(label_offs + PIMUK ,"#pi^{-} #mu^{+} K^{-}"); axis->SetBinLabel(label_offs + KEK ,"K^{-} e^{+} K^{-}"); axis->SetBinLabel(label_offs + KMUK ,"K^{-} #mu^{+} K^{-}"); */ axis->SetBinLabel(label_offs + PILAM ,"#pi^{-} #Lambda"); axis->SetBinLabel(label_offs + PILAMBAR,"#pi^{-} #bar{#Lambda}"); axis->SetBinLabel(label_offs + KLAM , "K^{-} #Lambda"); axis->SetBinLabel(label_offs + KLAMBAR, "K^{-} #bar{#Lambda}"); // axis->SetBinLabel(label_offs + PMUMUOS, "#bar{p} #mu^{-} #mu^{+}"); // axis->SetBinLabel(label_offs + PMUMUSS, "p #mu^{-} #mu^{-}"); } void SetUp() { // gROOT->SetBatch(kTRUE); gROOT->SetStyle("Plain"); gROOT->ForceStyle(); gStyle->SetStatStyle(0); gStyle->SetOptStat(00000000); const int plotFont(44); gStyle->SetLabelFont(plotFont, "xyz"); gStyle->SetTitleFont(plotFont, "xyz"); gStyle->SetTextFont(42); gStyle->SetStatFont(42); gStyle->SetTitleSize(42,"xyz"); gStyle->SetLabelSize(42,"xyz"); gStyle->SetTitleOffset(0.5, "x"); gStyle->SetTitleOffset(0.8, "y"); gStyle->SetLabelOffset(0.006, "x"); gStyle->SetLabelOffset(0.001, "y"); gStyle->SetTickLength(0.03, "x"); gStyle->SetTickLength(0.02, "y"); gStyle->SetNdivisions(5, "y"); // put tick marks on top and RHS of plots gStyle->SetPadTickX(0); //not for x-axis gStyle->SetPadTickY(1); gStyle->SetErrorX(0.001); gStyle->SetGridColor(kGray); gStyle->SetGridStyle(1); } void TauLFV_UL_plot_comb_norecomp(Int_t when=2014001) { SetUp(); unsigned int ibin; double Belle[NDECAY]; for (ibin = 0; ibin < NDECAY; ++ibin) Belle[ibin] = 0; double BaBar[NDECAY]; for (ibin = 0; ibin < NDECAY; ++ibin) BaBar[ibin] = 0; double CLEO[NDECAY]; for (ibin = 0; ibin < NDECAY; ++ibin) CLEO[ibin] = 0; double LHCb[NDECAY]; for (ibin = 0; ibin < NDECAY; ++ibin) LHCb[ibin] = 0; double HFAG_CLs[NDECAY]; for (ibin = 0; ibin < NDECAY; ++ibin) HFAG_CLs[ibin] = 0; double histbins[NDECAY]; for (ibin = 0; ibin < NDECAY; ++ibin) histbins[ibin] = ibin; fillBelle(Belle); fillBaBar(BaBar); fillLHCb(LHCb); fillHFAG_CLs(HFAG_CLs); // fillCLEO(CLEO); TH1F * hBelle = new TH1F("hBelle", "", NDECAY+2, -1.5, float(NDECAY)+0.5); TH1F * hBaBar = new TH1F("hBaBar", "", NDECAY+2, -1.5, float(NDECAY)+0.5); // TH1F * hCLEO = new TH1F("hCLEO", "", NDECAY+2, -1.5, float(NDECAY)+0.5); TH1F * hLHCb = new TH1F("hLHCb", "", NDECAY+2, -1.5, float(NDECAY)+0.5); TH1F * hHFAG_CLs = new TH1F("hFAG_CLs", "", NDECAY+2, -1.5, float(NDECAY)+0.5); hBelle->FillN(NDECAY, histbins, Belle); hBaBar->FillN(NDECAY, histbins, BaBar); //hCLEO-> FillN(NDECAY, histbins, CLEO); hLHCb-> FillN(NDECAY, histbins, LHCb); hHFAG_CLs-> FillN(NDECAY, histbins, HFAG_CLs); hBelle->Scale(1.e-8); hBaBar->Scale(1.e-8); // hCLEO->Scale(1.e-6); hLHCb->Scale(1.e-8); hHFAG_CLs->Scale(1.e-8); setLabels(hBelle); hBelle->GetYaxis()->SetTitle("90% C.L. upper limits for LFV #tau decays"); hBelle->LabelsOption("v"); hBelle->GetYaxis()->SetLabelSize(36); hBelle->SetMarkerStyle(kFullTriangleUp); hBelle->SetMarkerColor(kRed); hBelle->SetMarkerSize(1.5); hBaBar->SetMarkerStyle(kFullTriangleDown); hBaBar->SetMarkerColor(kBlue); hBaBar->SetMarkerSize(1.5); // hCLEO->SetMarkerStyle(kOpenSquare); hCLEO->SetMarkerColor(kGreen); hCLEO->SetMarkerSize(0.8); // hBelle->SetMarkerStyle(kFullTriangleUp); hBelle->SetMarkerColor(kMagenta); hBelle->SetMarkerSize(1.5); // hBaBar->SetMarkerStyle(kFullTriangleDown); hBaBar->SetMarkerColor(kCyan); hBaBar->SetMarkerSize(1.5); // hCLEO->SetMarkerStyle(kFullCircle); hCLEO->SetMarkerColor(kMagenta); hCLEO->SetMarkerSize(1.5); hLHCb->SetMarkerStyle(kFullSquare); hLHCb->SetMarkerColor(kBlack); hLHCb->SetMarkerSize(1.2); hHFAG_CLs->SetMarkerStyle(34); hHFAG_CLs->SetMarkerColor(kGreen); hHFAG_CLs-> SetMarkerSize(1.5); TCanvas *c1 = new TCanvas("c1","",1700,800); c1->SetBottomMargin(0.17); c1->SetTopMargin(0.02); c1->SetLeftMargin(0.10); c1->SetRightMargin(0.15); c1->SetLogy(1) ; double ul_min=1.e-6; hBelle->SetMaximum(ul_min); double ul_max=4.e-9; hBelle->SetMinimum(ul_max); hBelle->Draw("p"); c1->SetGridy(); hBaBar->Draw("p,same"); // hCLEO->Draw("p,same"); hLHCb->Draw("p,same"); hHFAG_CLs->Draw("p,same"); c1->Update(); double y_latex=6.e-7; TLine l0(EGAMMA-0.5, ul_min, EGAMMA-0.5, ul_max); l0.SetLineColor(kGray); l0.Draw(); TLine l1(MUGAMMA+0.5,ul_min,MUGAMMA+0.5,ul_max); l1.SetLineColor(kGray); l1.Draw(); TLatex t1(((MUGAMMA-EGAMMA)*1.0/2.0)+EGAMMA*1.0,y_latex,"l#gamma"); t1.SetTextAlign(21); t1.SetTextFont(42); t1.Draw(); TLine l4(MUOMEGA+0.5,ul_min,MUOMEGA+0.5,ul_max); l4.SetLineColor(kGray); l4.Draw(); TLatex t4(((MUOMEGA-EKS0 )*1.0/2.0)+EKS0*1.0,y_latex,"lh"); t4.SetTextAlign(21); t4.SetTextFont(42); t4.Draw(); TLine l5(MEM+0.5,ul_min,MEM+0.5,ul_max); l5.SetLineColor(kGray); l5.Draw(); TLatex t5(((MEM-EEE)*1.0/2.0)+EEE*1.0,y_latex,"lll"); t5.SetTextAlign(21); t5.SetTextFont(42); t5.Draw(); TLine l7(KLAMBAR+0.5,ul_min,KLAMBAR+0.5,ul_max); l7.SetLineColor(kGray); l7.Draw(); TLatex t7(((PILAM-KLAMBAR)*1.0/2.0)+KLAMBAR*1.0,y_latex,"h #Lambda"); t7.SetTextAlign(21); t7.SetTextFont(42); t7.Draw(); TLegend *leg = new TLegend(0.87,0.3,0.95,0.5); leg->SetBorderSize(0); leg->SetFillStyle(4000); leg->SetFillColor(0); leg->SetTextSize(0.05); leg->SetMargin(0.5); // leg->AddEntry(hCLEO,"CLEO","p"); leg->AddEntry(hBaBar,"BaBar","p"); leg->AddEntry(hBelle,"Belle","p"); leg->AddEntry(hLHCb,"LHCb","p"); leg->AddEntry(hHFAG_CLs, "HFAG", "p"); leg->Draw(); c1->Update(); // // // HFAGTauLabel("Winter 2012", -0.01, -0.02, 1.3); // HFAGTauLabel("Summer 2013", -0.01, -0.02, 1.3); HFAGTauLabel("Summer 2014", -0.01, -0.02, 1.7); c1->Update(); c1->SaveAs(Form("TauLFV_UL_comb_norecomp_%d.pdf",when)); c1->SaveAs(Form("TauLFV_UL_comb_norecomp_%d.eps",when)); c1->SaveAs(Form("TauLFV_UL_comb_norecomp_%d.png",when)); }
hfagtau/averages
tau/2013/TauLFV/TauLFV_UL_plot_comb_norecomp.cc
C++
gpl-2.0
13,241
''' Modulo Movimiento Nanometros @author: P1R0 import ObjSerial, sys; ObjSer = ObjSerial.ObjSerial(0,9600) ObjSer.cts = True ObjSer.dtr = True ObjSer.bytesize = 8 ''' SxN = 59.71 #Constante de Calibracion del Motor #Funcion para inicializar Monocromador def init(ObjSer,A): ObjSer.flushOutput() ObjSer.write(unicode("A\r\n")) echo(ObjSer) ObjSer.write(unicode("0A\r\n")) echo(ObjSer) ObjSer.write(unicode("A\r\n")) echo(ObjSer) ObjSer.write(unicode("0A\r\n")) echo(ObjSer) ObjSer.write(unicode("0R\r\n")) echo(ObjSer) ObjSer.write(unicode("0U1\r\n")) echo(ObjSer) ObjSer.write(unicode("0V1\r\n")) echo(ObjSer) ObjSer.write(unicode("0T400\r\n")) echo(ObjSer) ObjSer.write(unicode("0K1\r\n")) echo(ObjSer) ObjSer.write(unicode("0Y1\r\n")) echo(ObjSer) ObjSer.write(unicode("0Y0\r\n")) echo(ObjSer) ObjSer.write(unicode("0K0\r\n")) echo(ObjSer) ObjSer.write(unicode("0V1\r\n")) echo(ObjSer) ObjSer.write(unicode("0T1000\r\n")) echo(ObjSer) ObjSer.write(unicode("0F-\r\n")) echo(ObjSer) ObjSer.write(unicode("0V1\r\n")) echo(ObjSer) ObjSer.write(unicode("0T400\r\n")) echo(ObjSer) ObjSer.write(unicode("0K1\r\n")) echo(ObjSer) ObjSer.write(unicode("0V1\r\n")) echo(ObjSer) ObjSer.write(unicode("0T4000\r\n")) echo(ObjSer) ObjSer.write(unicode("0K0\r\n")) echo(ObjSer) ObjSer.write(unicode("0M99999\r\n")) echo(ObjSer) ObjSer.write(unicode("0K1\r\n")) echo(ObjSer) ObjSer.write(unicode("0V1\r\n")) echo(ObjSer) ObjSer.write(unicode("0T400\r\n")) echo(ObjSer) #en la posicion cero ObjSer.write(unicode("0M-3925\r\n")) echo(ObjSer) #En de estar fuera de rango mandamos como parametro 1 if A == 1: ObjSer.write(unicode("0M3925\r\n")) echo(ObjSer) return 0 #funcion para aproximar errores metodo de interpolacion def Error(x): Y = [0, 0.010373807, -0.05124284, -0.227092782, -0.572418858, -1.150211522, -2.019461229, -3.247663205, -4.904050745, -7.062119076, -9.803353877, -13.21724083, -17.39877039, -22.45717585, -28.51818573, -35.71928571, -44.22644716, -54.22539859, -65.94810183, -79.66102345, 95.70661095, -114.4980595, -136.5895354, -162.693691, -193.8151306, -231.3914014, -277.6754313, -336.5191712, -415.6610186, -536.5034235, -763.8268297, -804.7677106]; X = [0, 50.002, 99.999, 149.999, 199.997, 249.997, 300.007, 349.993, 400.003, 449.997, 499.994, 550.005, 600.002, 649.993, 700.003, 749.995, 800.004, 849.995, 900.004, 949.999, 1000.006, 1049.997, 1100.004, 1150.001, 1200.005, 1250.002, 1300, 1349.999, 1399.998, 449.998, 1490, 1492]; i = 0; while x > X[i]: x0=X[i]; y0=Y[i]; x1=X[i+1]; y1=Y[i+1]; i=i+1; r=y1-y0; d=r/(x1-x0); y=y0+(d*(x-x0)); return y #funcion para calcular y mover el motor def Calcula(ObjSer,Nm,LastPos): Er=Error(Nm); NmyEr = Nm - Er; uS = NmyEr * SxN; dif = uS - int(uS); if dif > 0.5: uS = int(uS) + 1; else: uS = int(uS); Mover = uS - LastPos; print "La diferencia a mover es: %d" % Mover; Mueve(ObjSer,Mover); LastPos = uS; return LastPos #Funcion para llamar al eco del ObjSerial def echo(ObjSer): line = ObjSer.readline() print line #Funcion para mover el motor def Mueve(ObjSer, Mover): #mover Full Step cuando recibe como parametros microSteps MoverFS = ((Mover-3) / 5); ObjSer.flushOutput(); ObjSer.write(unicode("0U0\r\n")); echo(ObjSer); ObjSer.write(unicode("0V1\r\n")); echo(ObjSer); ObjSer.write(unicode("0T1000\r\n")); echo(ObjSer); ObjSer.write(unicode("0M%d\r\n" % MoverFS)); echo(ObjSer); ObjSer.write(unicode("0U1\r\n")); echo(ObjSer); ObjSer.write(unicode("0V1\r\n")); echo(ObjSer); ObjSer.write(unicode("0T400\r\n")); echo(ObjSer); #ultimos 3 microsteps para una aproximacion mas suave. ObjSer.write(unicode("0M3\r\n")); echo(ObjSer); ''' if __name__ == "__main__": N = 0; LastPos = 0; init(0); while 1: while type(N)!= float: try: N = raw_input("Ingresa Nanometros o quit para cerrar:"); if N == "quit": ObjSer.close(); sys.exit(0); N = float(N); except (ValueError, TypeError): print "error, el valor debe ObjSer entero o flotante"; LastPos = Calcula(N,LastPos); print "los microspasos totales son: %d" % LastPos; N=0 '''
P1R/freeMonoCrom
MM.py
Python
gpl-2.0
5,424
package data.financedata; import java.rmi.Naming; import java.rmi.RemoteException; import java.rmi.registry.LocateRegistry; import java.rmi.server.UnicastRemoteObject; import java.util.ArrayList; import po.CostIncomeReceiptPO; import dataservice.financedataservice.CostIncomeReceiptDataService; import file.JXCFile; public class CostIncomeReceiptData extends UnicastRemoteObject implements CostIncomeReceiptDataService{ /** * */ private static final long serialVersionUID = 1L; JXCFile file; int num=0; public CostIncomeReceiptData() throws RemoteException{ super(); file=new JXCFile("costincome.ser"); } public int creatCostIncomeList(CostIncomeReceiptPO po) throws RemoteException { // TODO Auto-generated method stub file=new JXCFile("costincome.ser"); file.write(po); num++; return 0; } public ArrayList<CostIncomeReceiptPO> getAllCostIncomeList() throws RemoteException { // TODO Auto-generated method stub file=new JXCFile("costincome.ser"); ArrayList<Object> os=file.read(); ArrayList<CostIncomeReceiptPO> costIncomeReceiptPOs=new ArrayList<CostIncomeReceiptPO>(); for(Object o:os){ CostIncomeReceiptPO costIncomeReceiptPO=(CostIncomeReceiptPO) o; costIncomeReceiptPOs.add(costIncomeReceiptPO); } return costIncomeReceiptPOs; } /* public ArrayList<CollectionReceiptPO> getCollection() throws RemoteException { // TODO Auto-generated method stub return null; } public ArrayList<PaymentReceiptPO> getPayment() throws RemoteException { // TODO Auto-generated method stub return null; } */ public int getNum() throws RemoteException { // TODO Auto-generated method stub file=new JXCFile("costincome.ser"); return num; } public CostIncomeReceiptPO findByID(String ID) throws RemoteException { // TODO Auto-generated method stub file=new JXCFile("costincome.ser");file=new JXCFile("costincome.ser"); ArrayList<Object> os=file.read(); if(os==null){ System.out.println("读取经营情况表失败"); return null; } for(Object o:os){ CostIncomeReceiptPO po=(CostIncomeReceiptPO) o; if(po.getID().equals(ID)){ return po; } } return null; } /** * 一直怀疑这些单据到底需不需要修改=。= * */ public CostIncomeReceiptPO modify(CostIncomeReceiptPO po) throws RemoteException { // TODO Auto-generated method stub return null; } /** * 总经理根据这个来查询 * */ public CostIncomeReceiptPO getCostIncomeReceipt(String time) throws RemoteException { // TODO Auto-generated method stub file=new JXCFile("costincome.ser"); ArrayList<Object> os=file.read(); if(os==null){ System.out.println("读取经营情况表失败"); return null; } for(Object o:os){ CostIncomeReceiptPO po=(CostIncomeReceiptPO) o; if(po.getDate().equals(time)){ return po; } } return null; } public static void main(String[] args){ try{ System.setProperty("java.rmi.server.hostname", "172.26.209.182"); CostIncomeReceiptDataService data=new CostIncomeReceiptData(); LocateRegistry.createRegistry(8888); // //绑定RMI名称进行发布 Naming.rebind("rmi://172.26.209.182:8888/CostIncomeReceiptDataService", data); System.out.println("Service start!"); }catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } /* CostIncomeReceiptData data=new CostIncomeReceiptData(); CostIncomeReceiptPO po1=new CostIncomeReceiptPO("CBSYB-20151126-00001", "本宝宝", ReceiptType.COSTINCOMERECEPTION, ReceiptState.DRAFT, 200, 1222, 1022); try { data.creatCostIncomeList(po1); ArrayList<CostIncomeReceiptPO> pos=data.getAllCostIncomeList(); for(CostIncomeReceiptPO p:pos){ System.out.println("ID: "+p.getID()); } } catch (RemoteException e) { // TODO Auto-generated catch block e.printStackTrace(); } } */ } }
Disguiser-w/SE2
12.09DDL/ELS_SERVICE/src/main/java/data/financedata/CostIncomeReceiptData.java
Java
gpl-2.0
3,866
app.controller("PositionMaintainController", function ($rootScope, $scope, PowerLine, NowPosition) { $rootScope.activeLeftMenu = $rootScope.leftMenus[2]; $rootScope.showLoading(); initBMap("bmap1", $scope, function () { $rootScope.closeLoading(); NowPosition.startListener(function () { $scope.map.removeOverlay($scope.mapArrow); $scope.map.removeOverlay($scope.mapAccuracy); if ($scope.mapPolyline != null) { $scope.mapPolyline.forEach(function (polyline) { $scope.map.removeOverlay(polyline); $scope.map.addOverlay(polyline); }); } var _point = new BMap.Point(NowPosition.getPosition().longitude, NowPosition.getPosition().latitude); if (NowPosition.getPosition().compassHead != null) { $scope.mapArrow = new BMap.Marker(_point, { icon: new BMap.Symbol(BMap_Symbol_SHAPE_FORWARD_CLOSED_ARROW, { scale: 2, anchor: new BMap.Size(0, 8), strokeWeight: 0, strokeColor: "green", rotation: NowPosition.getPosition().compassHead, fillColor: "green", fillOpacity: 1 }) }); } else { $scope.mapArrow = new BMap.Marker(_point, { icon: new BMap.Symbol(BMap_Symbol_SHAPE_CIRCLE, { scale: 4, strokeWeight: 0, strokeColor: "red", fillColor: "red", fillOpacity: 1 }) }); } $scope.mapAccuracy = new BMap.Circle(_point, NowPosition.getPosition().accuracy, { strokeColor: "blue", strokeWeight: 1, fillOpacity: 0.3 }); $scope.map.addOverlay($scope.mapAccuracy); $scope.map.addOverlay($scope.mapArrow); }); $scope.showPowerline(); }); $scope.showPowerline = function () { $rootScope.showLoading(); $scope.powerline = PowerLine.getPowerline(); $scope.mapPolyline = []; if ($scope.powerline != null) { var beginPoint = new BMap.Point( $scope.powerline.location.startLongitude, $scope.powerline.location.startLatitude); var endPoint = new BMap.Point( $scope.powerline.location.endLongitude, $scope.powerline.location.endLatitude); $scope.map.centerAndZoom(beginPoint, 25); $scope.map.addOverlay(new BMap.Marker(beginPoint)); $scope.map.addOverlay(new BMap.Marker(endPoint)); var polyline = new BMap.Polyline([beginPoint, endPoint], { strokeColor: "red", strokeWeight: 5, strokeOpacity: 0.5 }); $scope.map.addOverlay(polyline); var routePolicy = [ BMAP_DRIVING_POLICY_LEAST_TIME, BMAP_DRIVING_POLICY_LEAST_DISTANCE, BMAP_DRIVING_POLICY_AVOID_HIGHWAYS ]; var driving = new BMap.DrivingRoute( $scope.map, { renderOptions: { map: $scope.map, autoViewport: true }, policy: routePolicy[0] }); navigator.geolocation.getCurrentPosition(function (position) { BMap.Convertor.translate(new BMap.Point( position.coords.longitude, position.coords.latitude), 0, function (point) { driving.search(new BMap.Point(point.lng, point.lat), beginPoint); driving.setPolylinesSetCallback(function () { $scope.map.getOverlays().forEach(function (overlay) { if (overlay.toString() == "[object Polyline]") { $scope.mapPolyline.push(overlay); } }); }); $rootScope.closeLoading(); }); }, function (error) { $rootScope.closeLoading(); $rootScope.showError("无法定位,请重试"); }); } else { $rootScope.closeLoading(); } }; $scope.$on("$stateChangeSuccess", function (event, toState, toParams, fromState, fromParams) { if (toState.name == "app.maintain.position" && fromState.name == "app.maintain.powerline") { if ($scope.map != null) { $scope.map.clearOverlays(); $scope.showPowerline(); } } }); $scope.$on("$destroy", function () { NowPosition.stopListener(); }); });
tudows/PLIM
public/js/controller/maintain/PositionMaintainController.js
JavaScript
gpl-2.0
5,025
/* $Id: hfc_2bs0.c,v 1.1.1.1 2004/09/28 06:06:09 sure Exp $ * * specific routines for CCD's HFC 2BS0 * * Author Karsten Keil * Copyright by Karsten Keil <keil@isdn4linux.de> * * This software may be used and distributed according to the terms * of the GNU General Public License, incorporated herein by reference. * */ #define __NO_VERSION__ #include <linux/init.h> #include "hisax.h" #include "hfc_2bs0.h" #include "isac.h" #include "isdnl1.h" #include <linux/interrupt.h> static inline int WaitForBusy(struct IsdnCardState *cs) { int to = 130; long flags; u_char val; save_flags(flags); cli(); while (!(cs->BC_Read_Reg(cs, HFC_STATUS, 0) & HFC_BUSY) && to) { val = cs->BC_Read_Reg(cs, HFC_DATA, HFC_CIP | HFC_F2 | (cs->hw.hfc.cip & 3)); udelay(1); to--; } restore_flags(flags); if (!to) { printk(KERN_WARNING "HiSax: waitforBusy timeout\n"); return (0); } else return (to); } static inline int WaitNoBusy(struct IsdnCardState *cs) { int to = 125; while ((cs->BC_Read_Reg(cs, HFC_STATUS, 0) & HFC_BUSY) && to) { udelay(1); to--; } if (!to) { printk(KERN_WARNING "HiSax: waitforBusy timeout\n"); return (0); } else return (to); } int GetFreeFifoBytes(struct BCState *bcs) { int s; if (bcs->hw.hfc.f1 == bcs->hw.hfc.f2) return (bcs->cs->hw.hfc.fifosize); s = bcs->hw.hfc.send[bcs->hw.hfc.f1] - bcs->hw.hfc.send[bcs->hw.hfc.f2]; if (s <= 0) s += bcs->cs->hw.hfc.fifosize; s = bcs->cs->hw.hfc.fifosize - s; return (s); } int ReadZReg(struct BCState *bcs, u_char reg) { int val; WaitNoBusy(bcs->cs); val = 256 * bcs->cs->BC_Read_Reg(bcs->cs, HFC_DATA, reg | HFC_CIP | HFC_Z_HIGH); WaitNoBusy(bcs->cs); val += bcs->cs->BC_Read_Reg(bcs->cs, HFC_DATA, reg | HFC_CIP | HFC_Z_LOW); return (val); } void hfc_sched_event(struct BCState *bcs, int event) { bcs->event |= 1 << event; queue_task(&bcs->tqueue, &tq_immediate); mark_bh(IMMEDIATE_BH); } static void hfc_clear_fifo(struct BCState *bcs) { struct IsdnCardState *cs = bcs->cs; long flags; int idx, cnt; int rcnt, z1, z2; u_char cip, f1, f2; if ((cs->debug & L1_DEB_HSCX) && !(cs->debug & L1_DEB_HSCX_FIFO)) debugl1(cs, "hfc_clear_fifo"); save_flags(flags); cli(); cip = HFC_CIP | HFC_F1 | HFC_REC | HFC_CHANNEL(bcs->channel); if ((cip & 0xc3) != (cs->hw.hfc.cip & 0xc3)) { cs->BC_Write_Reg(cs, HFC_STATUS, cip, cip); WaitForBusy(cs); } WaitNoBusy(cs); f1 = cs->BC_Read_Reg(cs, HFC_DATA, cip); cip = HFC_CIP | HFC_F2 | HFC_REC | HFC_CHANNEL(bcs->channel); WaitNoBusy(cs); f2 = cs->BC_Read_Reg(cs, HFC_DATA, cip); z1 = ReadZReg(bcs, HFC_Z1 | HFC_REC | HFC_CHANNEL(bcs->channel)); z2 = ReadZReg(bcs, HFC_Z2 | HFC_REC | HFC_CHANNEL(bcs->channel)); cnt = 32; while (((f1 != f2) || (z1 != z2)) && cnt--) { if (cs->debug & L1_DEB_HSCX) debugl1(cs, "hfc clear %d f1(%d) f2(%d)", bcs->channel, f1, f2); rcnt = z1 - z2; if (rcnt < 0) rcnt += cs->hw.hfc.fifosize; if (rcnt) rcnt++; if (cs->debug & L1_DEB_HSCX) debugl1(cs, "hfc clear %d z1(%x) z2(%x) cnt(%d)", bcs->channel, z1, z2, rcnt); cip = HFC_CIP | HFC_FIFO_OUT | HFC_REC | HFC_CHANNEL(bcs->channel); idx = 0; while ((idx < rcnt) && WaitNoBusy(cs)) { cs->BC_Read_Reg(cs, HFC_DATA_NODEB, cip); idx++; } if (f1 != f2) { WaitNoBusy(cs); cs->BC_Read_Reg(cs, HFC_DATA, HFC_CIP | HFC_F2_INC | HFC_REC | HFC_CHANNEL(bcs->channel)); WaitForBusy(cs); } cip = HFC_CIP | HFC_F1 | HFC_REC | HFC_CHANNEL(bcs->channel); WaitNoBusy(cs); f1 = cs->BC_Read_Reg(cs, HFC_DATA, cip); cip = HFC_CIP | HFC_F2 | HFC_REC | HFC_CHANNEL(bcs->channel); WaitNoBusy(cs); f2 = cs->BC_Read_Reg(cs, HFC_DATA, cip); z1 = ReadZReg(bcs, HFC_Z1 | HFC_REC | HFC_CHANNEL(bcs->channel)); z2 = ReadZReg(bcs, HFC_Z2 | HFC_REC | HFC_CHANNEL(bcs->channel)); } restore_flags(flags); return; } static struct sk_buff * hfc_empty_fifo(struct BCState *bcs, int count) { u_char *ptr; struct sk_buff *skb; struct IsdnCardState *cs = bcs->cs; int idx; int chksum; u_char stat, cip; if ((cs->debug & L1_DEB_HSCX) && !(cs->debug & L1_DEB_HSCX_FIFO)) debugl1(cs, "hfc_empty_fifo"); idx = 0; if (count > HSCX_BUFMAX + 3) { if (cs->debug & L1_DEB_WARN) debugl1(cs, "hfc_empty_fifo: incoming packet too large"); cip = HFC_CIP | HFC_FIFO_OUT | HFC_REC | HFC_CHANNEL(bcs->channel); while ((idx++ < count) && WaitNoBusy(cs)) cs->BC_Read_Reg(cs, HFC_DATA_NODEB, cip); WaitNoBusy(cs); stat = cs->BC_Read_Reg(cs, HFC_DATA, HFC_CIP | HFC_F2_INC | HFC_REC | HFC_CHANNEL(bcs->channel)); WaitForBusy(cs); return (NULL); } if ((count < 4) && (bcs->mode != L1_MODE_TRANS)) { if (cs->debug & L1_DEB_WARN) debugl1(cs, "hfc_empty_fifo: incoming packet too small"); cip = HFC_CIP | HFC_FIFO_OUT | HFC_REC | HFC_CHANNEL(bcs->channel); while ((idx++ < count) && WaitNoBusy(cs)) cs->BC_Read_Reg(cs, HFC_DATA_NODEB, cip); WaitNoBusy(cs); stat = cs->BC_Read_Reg(cs, HFC_DATA, HFC_CIP | HFC_F2_INC | HFC_REC | HFC_CHANNEL(bcs->channel)); WaitForBusy(cs); #ifdef ERROR_STATISTIC bcs->err_inv++; #endif return (NULL); } if (bcs->mode == L1_MODE_TRANS) count -= 1; else count -= 3; if (!(skb = dev_alloc_skb(count))) printk(KERN_WARNING "HFC: receive out of memory\n"); else { ptr = skb_put(skb, count); idx = 0; cip = HFC_CIP | HFC_FIFO_OUT | HFC_REC | HFC_CHANNEL(bcs->channel); while ((idx < count) && WaitNoBusy(cs)) { *ptr++ = cs->BC_Read_Reg(cs, HFC_DATA_NODEB, cip); idx++; } if (idx != count) { debugl1(cs, "RFIFO BUSY error"); printk(KERN_WARNING "HFC FIFO channel %d BUSY Error\n", bcs->channel); dev_kfree_skb_any(skb); if (bcs->mode != L1_MODE_TRANS) { WaitNoBusy(cs); stat = cs->BC_Read_Reg(cs, HFC_DATA, HFC_CIP | HFC_F2_INC | HFC_REC | HFC_CHANNEL(bcs->channel)); WaitForBusy(cs); } return (NULL); } if (bcs->mode != L1_MODE_TRANS) { WaitNoBusy(cs); chksum = (cs->BC_Read_Reg(cs, HFC_DATA, cip) << 8); WaitNoBusy(cs); chksum += cs->BC_Read_Reg(cs, HFC_DATA, cip); WaitNoBusy(cs); stat = cs->BC_Read_Reg(cs, HFC_DATA, cip); if (cs->debug & L1_DEB_HSCX) debugl1(cs, "hfc_empty_fifo %d chksum %x stat %x", bcs->channel, chksum, stat); if (stat) { debugl1(cs, "FIFO CRC error"); dev_kfree_skb_any(skb); skb = NULL; #ifdef ERROR_STATISTIC bcs->err_crc++; #endif } WaitNoBusy(cs); stat = cs->BC_Read_Reg(cs, HFC_DATA, HFC_CIP | HFC_F2_INC | HFC_REC | HFC_CHANNEL(bcs->channel)); WaitForBusy(cs); } } return (skb); } static void hfc_fill_fifo(struct BCState *bcs) { struct IsdnCardState *cs = bcs->cs; long flags; int idx, fcnt; int count; int z1, z2; u_char cip; if (!bcs->tx_skb) return; if (bcs->tx_skb->len <= 0) return; save_flags(flags); cli(); cip = HFC_CIP | HFC_F1 | HFC_SEND | HFC_CHANNEL(bcs->channel); if ((cip & 0xc3) != (cs->hw.hfc.cip & 0xc3)) { cs->BC_Write_Reg(cs, HFC_STATUS, cip, cip); WaitForBusy(cs); } WaitNoBusy(cs); if (bcs->mode != L1_MODE_TRANS) { bcs->hw.hfc.f1 = cs->BC_Read_Reg(cs, HFC_DATA, cip); cip = HFC_CIP | HFC_F2 | HFC_SEND | HFC_CHANNEL(bcs->channel); WaitNoBusy(cs); bcs->hw.hfc.f2 = cs->BC_Read_Reg(cs, HFC_DATA, cip); bcs->hw.hfc.send[bcs->hw.hfc.f1] = ReadZReg(bcs, HFC_Z1 | HFC_SEND | HFC_CHANNEL(bcs->channel)); if (cs->debug & L1_DEB_HSCX) debugl1(cs, "hfc_fill_fifo %d f1(%d) f2(%d) z1(%x)", bcs->channel, bcs->hw.hfc.f1, bcs->hw.hfc.f2, bcs->hw.hfc.send[bcs->hw.hfc.f1]); fcnt = bcs->hw.hfc.f1 - bcs->hw.hfc.f2; if (fcnt < 0) fcnt += 32; if (fcnt > 30) { if (cs->debug & L1_DEB_HSCX) debugl1(cs, "hfc_fill_fifo more as 30 frames"); restore_flags(flags); return; } count = GetFreeFifoBytes(bcs); } else { WaitForBusy(cs); z1 = ReadZReg(bcs, HFC_Z1 | HFC_REC | HFC_CHANNEL(bcs->channel)); z2 = ReadZReg(bcs, HFC_Z2 | HFC_REC | HFC_CHANNEL(bcs->channel)); count = z1 - z2; if (count < 0) count += cs->hw.hfc.fifosize; } /* L1_MODE_TRANS */ if (cs->debug & L1_DEB_HSCX) debugl1(cs, "hfc_fill_fifo %d count(%ld/%d)", bcs->channel, bcs->tx_skb->len, count); if (count < bcs->tx_skb->len) { if (cs->debug & L1_DEB_HSCX) debugl1(cs, "hfc_fill_fifo no fifo mem"); restore_flags(flags); return; } cip = HFC_CIP | HFC_FIFO_IN | HFC_SEND | HFC_CHANNEL(bcs->channel); idx = 0; while ((idx < bcs->tx_skb->len) && WaitNoBusy(cs)) cs->BC_Write_Reg(cs, HFC_DATA_NODEB, cip, bcs->tx_skb->data[idx++]); if (idx != bcs->tx_skb->len) { debugl1(cs, "FIFO Send BUSY error"); printk(KERN_WARNING "HFC S FIFO channel %d BUSY Error\n", bcs->channel); } else { count = bcs->tx_skb->len; bcs->tx_cnt -= count; if (PACKET_NOACK == bcs->tx_skb->pkt_type) count = -1; dev_kfree_skb_any(bcs->tx_skb); bcs->tx_skb = NULL; if (bcs->mode != L1_MODE_TRANS) { WaitForBusy(cs); WaitNoBusy(cs); cs->BC_Read_Reg(cs, HFC_DATA, HFC_CIP | HFC_F1_INC | HFC_SEND | HFC_CHANNEL(bcs->channel)); } if (bcs->st->lli.l1writewakeup && (count >= 0)) bcs->st->lli.l1writewakeup(bcs->st, count); test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); } restore_flags(flags); return; } void main_irq_hfc(struct BCState *bcs) { long flags; struct IsdnCardState *cs = bcs->cs; int z1, z2, rcnt; u_char f1, f2, cip; int receive, transmit, count = 5; struct sk_buff *skb; save_flags(flags); Begin: cli(); count--; cip = HFC_CIP | HFC_F1 | HFC_REC | HFC_CHANNEL(bcs->channel); if ((cip & 0xc3) != (cs->hw.hfc.cip & 0xc3)) { cs->BC_Write_Reg(cs, HFC_STATUS, cip, cip); WaitForBusy(cs); } WaitNoBusy(cs); receive = 0; if (bcs->mode == L1_MODE_HDLC) { f1 = cs->BC_Read_Reg(cs, HFC_DATA, cip); cip = HFC_CIP | HFC_F2 | HFC_REC | HFC_CHANNEL(bcs->channel); WaitNoBusy(cs); f2 = cs->BC_Read_Reg(cs, HFC_DATA, cip); if (f1 != f2) { if (cs->debug & L1_DEB_HSCX) debugl1(cs, "hfc rec %d f1(%d) f2(%d)", bcs->channel, f1, f2); receive = 1; } } if (receive || (bcs->mode == L1_MODE_TRANS)) { WaitForBusy(cs); z1 = ReadZReg(bcs, HFC_Z1 | HFC_REC | HFC_CHANNEL(bcs->channel)); z2 = ReadZReg(bcs, HFC_Z2 | HFC_REC | HFC_CHANNEL(bcs->channel)); rcnt = z1 - z2; if (rcnt < 0) rcnt += cs->hw.hfc.fifosize; if ((bcs->mode == L1_MODE_HDLC) || (rcnt)) { rcnt++; if (cs->debug & L1_DEB_HSCX) debugl1(cs, "hfc rec %d z1(%x) z2(%x) cnt(%d)", bcs->channel, z1, z2, rcnt); /* sti(); */ if ((skb = hfc_empty_fifo(bcs, rcnt))) { skb_queue_tail(&bcs->rqueue, skb); hfc_sched_event(bcs, B_RCVBUFREADY); } } receive = 1; } restore_flags(flags); udelay(1); cli(); if (bcs->tx_skb) { transmit = 1; test_and_set_bit(BC_FLG_BUSY, &bcs->Flag); hfc_fill_fifo(bcs); if (test_bit(BC_FLG_BUSY, &bcs->Flag)) transmit = 0; } else { if ((bcs->tx_skb = skb_dequeue(&bcs->squeue))) { transmit = 1; test_and_set_bit(BC_FLG_BUSY, &bcs->Flag); hfc_fill_fifo(bcs); if (test_bit(BC_FLG_BUSY, &bcs->Flag)) transmit = 0; } else { transmit = 0; hfc_sched_event(bcs, B_XMTBUFREADY); } } restore_flags(flags); if ((receive || transmit) && count) goto Begin; return; } void mode_hfc(struct BCState *bcs, int mode, int bc) { struct IsdnCardState *cs = bcs->cs; if (cs->debug & L1_DEB_HSCX) debugl1(cs, "HFC 2BS0 mode %d bchan %d/%d", mode, bc, bcs->channel); bcs->mode = mode; bcs->channel = bc; switch (mode) { case (L1_MODE_NULL): if (bc) { cs->hw.hfc.ctmt &= ~1; cs->hw.hfc.isac_spcr &= ~0x03; } else { cs->hw.hfc.ctmt &= ~2; cs->hw.hfc.isac_spcr &= ~0x0c; } break; case (L1_MODE_TRANS): cs->hw.hfc.ctmt &= ~(1 << bc); /* set HDLC mode */ cs->BC_Write_Reg(cs, HFC_STATUS, cs->hw.hfc.ctmt, cs->hw.hfc.ctmt); hfc_clear_fifo(bcs); /* complete fifo clear */ if (bc) { cs->hw.hfc.ctmt |= 1; cs->hw.hfc.isac_spcr &= ~0x03; cs->hw.hfc.isac_spcr |= 0x02; } else { cs->hw.hfc.ctmt |= 2; cs->hw.hfc.isac_spcr &= ~0x0c; cs->hw.hfc.isac_spcr |= 0x08; } break; case (L1_MODE_HDLC): if (bc) { cs->hw.hfc.ctmt &= ~1; cs->hw.hfc.isac_spcr &= ~0x03; cs->hw.hfc.isac_spcr |= 0x02; } else { cs->hw.hfc.ctmt &= ~2; cs->hw.hfc.isac_spcr &= ~0x0c; cs->hw.hfc.isac_spcr |= 0x08; } break; } cs->BC_Write_Reg(cs, HFC_STATUS, cs->hw.hfc.ctmt, cs->hw.hfc.ctmt); cs->writeisac(cs, ISAC_SPCR, cs->hw.hfc.isac_spcr); if (mode == L1_MODE_HDLC) hfc_clear_fifo(bcs); } static void hfc_l2l1(struct PStack *st, int pr, void *arg) { struct sk_buff *skb = arg; long flags; switch (pr) { case (PH_DATA | REQUEST): save_flags(flags); cli(); if (st->l1.bcs->tx_skb) { skb_queue_tail(&st->l1.bcs->squeue, skb); restore_flags(flags); } else { st->l1.bcs->tx_skb = skb; test_and_set_bit(BC_FLG_BUSY, &st->l1.bcs->Flag); st->l1.bcs->cs->BC_Send_Data(st->l1.bcs); restore_flags(flags); } break; case (PH_PULL | INDICATION): if (st->l1.bcs->tx_skb) { printk(KERN_WARNING "hfc_l2l1: this shouldn't happen\n"); break; } save_flags(flags); cli(); test_and_set_bit(BC_FLG_BUSY, &st->l1.bcs->Flag); st->l1.bcs->tx_skb = skb; st->l1.bcs->cs->BC_Send_Data(st->l1.bcs); restore_flags(flags); break; case (PH_PULL | REQUEST): if (!st->l1.bcs->tx_skb) { test_and_clear_bit(FLG_L1_PULL_REQ, &st->l1.Flags); st->l1.l1l2(st, PH_PULL | CONFIRM, NULL); } else test_and_set_bit(FLG_L1_PULL_REQ, &st->l1.Flags); break; case (PH_ACTIVATE | REQUEST): test_and_set_bit(BC_FLG_ACTIV, &st->l1.bcs->Flag); mode_hfc(st->l1.bcs, st->l1.mode, st->l1.bc); l1_msg_b(st, pr, arg); break; case (PH_DEACTIVATE | REQUEST): l1_msg_b(st, pr, arg); break; case (PH_DEACTIVATE | CONFIRM): test_and_clear_bit(BC_FLG_ACTIV, &st->l1.bcs->Flag); test_and_clear_bit(BC_FLG_BUSY, &st->l1.bcs->Flag); mode_hfc(st->l1.bcs, 0, st->l1.bc); st->l1.l1l2(st, PH_DEACTIVATE | CONFIRM, NULL); break; } } void close_hfcstate(struct BCState *bcs) { mode_hfc(bcs, 0, bcs->channel); if (test_bit(BC_FLG_INIT, &bcs->Flag)) { skb_queue_purge(&bcs->rqueue); skb_queue_purge(&bcs->squeue); if (bcs->tx_skb) { dev_kfree_skb_any(bcs->tx_skb); bcs->tx_skb = NULL; test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); } } test_and_clear_bit(BC_FLG_INIT, &bcs->Flag); } static int open_hfcstate(struct IsdnCardState *cs, struct BCState *bcs) { if (!test_and_set_bit(BC_FLG_INIT, &bcs->Flag)) { skb_queue_head_init(&bcs->rqueue); skb_queue_head_init(&bcs->squeue); } bcs->tx_skb = NULL; test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag); bcs->event = 0; bcs->tx_cnt = 0; return (0); } int setstack_hfc(struct PStack *st, struct BCState *bcs) { bcs->channel = st->l1.bc; if (open_hfcstate(st->l1.hardware, bcs)) return (-1); st->l1.bcs = bcs; st->l2.l2l1 = hfc_l2l1; setstack_manager(st); bcs->st = st; setstack_l1_B(st); return (0); } void __init init_send(struct BCState *bcs) { int i; if (!(bcs->hw.hfc.send = kmalloc(32 * sizeof(unsigned int), GFP_ATOMIC))) { printk(KERN_WARNING "HiSax: No memory for hfc.send\n"); return; } for (i = 0; i < 32; i++) bcs->hw.hfc.send[i] = 0x1fff; } void __init inithfc(struct IsdnCardState *cs) { init_send(&cs->bcs[0]); init_send(&cs->bcs[1]); cs->BC_Send_Data = &hfc_fill_fifo; cs->bcs[0].BC_SetStack = setstack_hfc; cs->bcs[1].BC_SetStack = setstack_hfc; cs->bcs[0].BC_Close = close_hfcstate; cs->bcs[1].BC_Close = close_hfcstate; mode_hfc(cs->bcs, 0, 0); mode_hfc(cs->bcs + 1, 0, 0); } void releasehfc(struct IsdnCardState *cs) { if (cs->bcs[0].hw.hfc.send) { kfree(cs->bcs[0].hw.hfc.send); cs->bcs[0].hw.hfc.send = NULL; } if (cs->bcs[1].hw.hfc.send) { kfree(cs->bcs[1].hw.hfc.send); cs->bcs[1].hw.hfc.send = NULL; } }
nslu2/linux-2.4.x
drivers/isdn/hisax/hfc_2bs0.c
C
gpl-2.0
15,901
/* * Copyright (c) 2000-2004 by David Brownell * * 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. */ #ifndef CONFIG_FSL_USB20 #include <linux/config.h> #ifdef CONFIG_USB_DEBUG #define DEBUG #else #undef DEBUG #endif #include <linux/module.h> #ifdef CONFIG_USB_BRCM #define EHCI_BRCM #if defined(CONFIG_PCI) && defined(CONFIG_SWAP_IO_SPACE_L) #undef CONFIG_SWAP_IO_SPACE_L #endif #else #include <linux/pci.h> #endif #include <linux/dmapool.h> #include <linux/kernel.h> #include <linux/delay.h> #include <linux/ioport.h> #include <linux/sched.h> #include <linux/slab.h> #include <linux/smp_lock.h> #include <linux/errno.h> #include <linux/init.h> #include <linux/timer.h> #include <linux/list.h> #include <linux/interrupt.h> #include <linux/reboot.h> #include <linux/usb.h> #include <linux/moduleparam.h> #include <linux/dma-mapping.h> #include "../core/hcd.h" #include <asm/byteorder.h> #include <asm/io.h> #include <asm/irq.h> #include <asm/system.h> #include <asm/unaligned.h> #endif /* FSL_USB20 */ /*-------------------------------------------------------------------------*/ /* * EHCI hc_driver implementation ... experimental, incomplete. * Based on the final 1.0 register interface specification. * * USB 2.0 shows up in upcoming www.pcmcia.org technology. * First was PCMCIA, like ISA; then CardBus, which is PCI. * Next comes "CardBay", using USB 2.0 signals. * * Contains additional contributions by Brad Hards, Rory Bolt, and others. * Special thanks to Intel and VIA for providing host controllers to * test this driver on, and Cypress (including In-System Design) for * providing early devices for those host controllers to talk to! * * HISTORY: * * 2004-05-10 Root hub and PCI suspend/resume support; remote wakeup. (db) * 2004-02-24 Replace pci_* with generic dma_* API calls (dsaxena@plexity.net) * 2003-12-29 Rewritten high speed iso transfer support (by Michal Sojka, * <sojkam@centrum.cz>, updates by DB). * * 2002-11-29 Correct handling for hw async_next register. * 2002-08-06 Handling for bulk and interrupt transfers is mostly shared; * only scheduling is different, no arbitrary limitations. * 2002-07-25 Sanity check PCI reads, mostly for better cardbus support, * clean up HC run state handshaking. * 2002-05-24 Preliminary FS/LS interrupts, using scheduling shortcuts * 2002-05-11 Clear TT errors for FS/LS ctrl/bulk. Fill in some other * missing pieces: enabling 64bit dma, handoff from BIOS/SMM. * 2002-05-07 Some error path cleanups to report better errors; wmb(); * use non-CVS version id; better iso bandwidth claim. * 2002-04-19 Control/bulk/interrupt submit no longer uses giveback() on * errors in submit path. Bugfixes to interrupt scheduling/processing. * 2002-03-05 Initial high-speed ISO support; reduce ITD memory; shift * more checking to generic hcd framework (db). Make it work with * Philips EHCI; reduce PCI traffic; shorten IRQ path (Rory Bolt). * 2002-01-14 Minor cleanup; version synch. * 2002-01-08 Fix roothub handoff of FS/LS to companion controllers. * 2002-01-04 Control/Bulk queuing behaves. * * 2001-12-12 Initial patch version for Linux 2.5.1 kernel. * 2001-June Works with usb-storage and NEC EHCI on 2.4 */ #ifdef CONFIG_FSL_USB20 #if defined (CONFIG_MPH_USB_SUPPORT) static const char hcd_name [] = "fsl-usb2-mph"; #elif defined (CONFIG_DR_USB_SUPPORT) static const char hcd_name [] = "fsl-usb2-dr"; #else #error Unknown USB mode of operation #endif #else /* ! FSL_USB20 */ #define DRIVER_VERSION "10 Dec 2004" #define DRIVER_AUTHOR "David Brownell" #define DRIVER_DESC "USB 2.0 'Enhanced' Host Controller (EHCI) Driver" static const char hcd_name [] = "ehci_hcd"; #endif /* FSL_USB20 */ #undef EHCI_VERBOSE_DEBUG #undef EHCI_URB_TRACE #ifdef DEBUG #define EHCI_STATS #endif /* magic numbers that can affect system performance */ #define EHCI_TUNE_CERR 3 /* 0-3 qtd retries; 0 == don't stop */ #define EHCI_TUNE_RL_HS 4 /* nak throttle; see 4.9 */ #define EHCI_TUNE_RL_TT 0 #define EHCI_TUNE_MULT_HS 1 /* 1-3 transactions/uframe; 4.10.3 */ #define EHCI_TUNE_MULT_TT 1 #define EHCI_TUNE_FLS 2 /* (small) 256 frame schedule */ #define EHCI_IAA_JIFFIES (HZ/100) /* arbitrary; ~10 msec */ #define EHCI_IO_JIFFIES (HZ/10) /* io watchdog > irq_thresh */ #define EHCI_ASYNC_JIFFIES (HZ/20) /* async idle timeout */ #define EHCI_SHRINK_JIFFIES (HZ/200) /* async qh unlink delay */ /* Initial IRQ latency: faster than hw default */ static int log2_irq_thresh = 0; // 0 to 6 #ifndef CONFIG_FSL_USB20 module_param (log2_irq_thresh, int, S_IRUGO); MODULE_PARM_DESC (log2_irq_thresh, "log2 IRQ latency, 1-64 microframes"); #endif /* initial park setting: slower than hw default */ static unsigned park = 0; #ifndef CONFIG_FSL_USB20 module_param (park, uint, S_IRUGO); MODULE_PARM_DESC (park, "park setting; 1-3 back-to-back async packets"); #endif #define INTR_MASK (STS_IAA | STS_FATAL | STS_PCD | STS_ERR | STS_INT) /*-------------------------------------------------------------------------*/ #ifdef CONFIG_USB_BRCM #include "brcmusb.h" #endif #include "ehci.h" #include "ehci-dbg.c" /*-------------------------------------------------------------------------*/ /* * handshake - spin reading hc until handshake completes or fails * @ptr: address of hc register to be read * @mask: bits to look at in result of read * @done: value of those bits when handshake succeeds * @usec: timeout in microseconds * * Returns negative errno, or zero on success * * Success happens when the "mask" bits have the specified value (hardware * handshake done). There are two failure modes: "usec" have passed (major * hardware flakeout), or the register reads as all-ones (hardware removed). * * That last failure should_only happen in cases like physical cardbus eject * before driver shutdown. But it also seems to be caused by bugs in cardbus * bridge shutdown: shutting down the bridge before the devices using it. */ static int handshake (void __iomem *ptr, u32 mask, u32 done, int usec) { u32 result; do { result = readl (ptr); if (result == ~(u32)0) /* card removed */ return -ENODEV; result &= mask; if (result == done) return 0; udelay (1); usec--; } while (usec > 0); return -ETIMEDOUT; } /* force HC to halt state from unknown (EHCI spec section 2.3) */ static int ehci_halt (struct ehci_hcd *ehci) { u32 temp = readl (&ehci->regs->status); if ((temp & STS_HALT) != 0) return 0; temp = readl (&ehci->regs->command); temp &= ~CMD_RUN; writel (temp, &ehci->regs->command); return handshake (&ehci->regs->status, STS_HALT, STS_HALT, 16 * 125); } /* put TDI/ARC silicon into EHCI mode */ static void tdi_reset (struct ehci_hcd *ehci) { u32 __iomem *reg_ptr; u32 tmp; reg_ptr = (u32 __iomem *)(((u8 __iomem *)ehci->regs) + 0x68); tmp = readl (reg_ptr); tmp |= 0x3; writel (tmp, reg_ptr); } /* reset a non-running (STS_HALT == 1) controller */ static int ehci_reset (struct ehci_hcd *ehci) { int retval; u32 command = readl (&ehci->regs->command); command |= CMD_RESET; dbg_cmd (ehci, "reset", command); writel (command, &ehci->regs->command); ehci_to_hcd(ehci)->state = HC_STATE_HALT; ehci->next_statechange = jiffies; retval = handshake (&ehci->regs->command, CMD_RESET, 0, 250 * 1000); if (retval) return retval; if (ehci_is_TDI(ehci)) tdi_reset (ehci); #ifdef CONFIG_FSL_USB20 mpc8349_usb_reset(); #endif return retval; } /* idle the controller (from running) */ static void ehci_quiesce (struct ehci_hcd *ehci) { u32 temp; #ifdef DEBUG if (!HC_IS_RUNNING (ehci_to_hcd(ehci)->state)) BUG (); #endif /* wait for any schedule enables/disables to take effect */ temp = readl (&ehci->regs->command) << 10; temp &= STS_ASS | STS_PSS; if (handshake (&ehci->regs->status, STS_ASS | STS_PSS, temp, 16 * 125) != 0) { ehci_to_hcd(ehci)->state = HC_STATE_HALT; return; } /* then disable anything that's still active */ temp = readl (&ehci->regs->command); temp &= ~(CMD_ASE | CMD_IAAD | CMD_PSE); writel (temp, &ehci->regs->command); /* hardware can take 16 microframes to turn off ... */ if (handshake (&ehci->regs->status, STS_ASS | STS_PSS, 0, 16 * 125) != 0) { ehci_to_hcd(ehci)->state = HC_STATE_HALT; return; } } /*-------------------------------------------------------------------------*/ static void ehci_work(struct ehci_hcd *ehci, struct pt_regs *regs); #include "ehci-hub.c" #include "ehci-mem.c" #include "ehci-q.c" #include "ehci-sched.c" /*-------------------------------------------------------------------------*/ static void ehci_watchdog (unsigned long param) { struct ehci_hcd *ehci = (struct ehci_hcd *) param; unsigned long flags; spin_lock_irqsave (&ehci->lock, flags); /* lost IAA irqs wedge things badly; seen with a vt8235 */ if (ehci->reclaim) { u32 status = readl (&ehci->regs->status); if (status & STS_IAA) { ehci_vdbg (ehci, "lost IAA\n"); COUNT (ehci->stats.lost_iaa); writel (STS_IAA, &ehci->regs->status); ehci->reclaim_ready = 1; } } /* stop async processing after it's idled a bit */ if (test_bit (TIMER_ASYNC_OFF, &ehci->actions)) start_unlink_async (ehci, ehci->async); /* ehci could run by timer, without IRQs ... */ ehci_work (ehci, NULL); spin_unlock_irqrestore (&ehci->lock, flags); } #if defined(CONFIG_PCI) && !defined(CONFIG_FSL_USB20) /* EHCI 0.96 (and later) section 5.1 says how to kick BIOS/SMM/... * off the controller (maybe it can boot from highspeed USB disks). */ static int bios_handoff (struct ehci_hcd *ehci, int where, u32 cap) { struct pci_dev *pdev = to_pci_dev(ehci_to_hcd(ehci)->self.controller); /* always say Linux will own the hardware */ pci_write_config_byte(pdev, where + 3, 1); /* maybe wait a while for BIOS to respond */ if (cap & (1 << 16)) { int msec = 5000; do { msleep(10); msec -= 10; pci_read_config_dword(pdev, where, &cap); } while ((cap & (1 << 16)) && msec); if (cap & (1 << 16)) { ehci_err(ehci, "BIOS handoff failed (%d, %08x)\n", where, cap); // some BIOS versions seem buggy... // return 1; ehci_warn (ehci, "continuing after BIOS bug...\n"); /* disable all SMIs, and clear "BIOS owns" flag */ pci_write_config_dword(pdev, where + 4, 0); pci_write_config_byte(pdev, where + 2, 0); } else ehci_dbg(ehci, "BIOS handoff succeeded\n"); } return 0; } #endif static int ehci_reboot (struct notifier_block *self, unsigned long code, void *null) { struct ehci_hcd *ehci; ehci = container_of (self, struct ehci_hcd, reboot_notifier); /* make BIOS/etc use companion controller during reboot */ writel (0, &ehci->regs->configured_flag); return 0; } static void ehci_port_power (struct ehci_hcd *ehci, int is_on) { unsigned port; if (!HCS_PPC (ehci->hcs_params)) return; ehci_dbg (ehci, "...power%s ports...\n", is_on ? "up" : "down"); for (port = HCS_N_PORTS (ehci->hcs_params); port > 0; ) (void) ehci_hub_control(ehci_to_hcd(ehci), is_on ? SetPortFeature : ClearPortFeature, USB_PORT_FEAT_POWER, port--, NULL, 0); msleep(20); } /* called by khubd or root hub init threads */ static int ehci_hc_reset (struct usb_hcd *hcd) { struct ehci_hcd *ehci = hcd_to_ehci (hcd); u32 temp; #ifndef CONFIG_FSL_USB20 unsigned count = 256/4; #endif spin_lock_init (&ehci->lock); ehci->caps = hcd->regs; ehci->regs = hcd->regs + HC_LENGTH (readl (&ehci->caps->hc_capbase)); dbg_hcs_params (ehci, "reset"); dbg_hcc_params (ehci, "reset"); #ifdef CONFIG_FSL_USB20 mpc8349_usb_reset (); ehci->is_tdi_rh_tt = 1; #endif /* cache this readonly data; minimize chip reads */ ehci->hcs_params = readl (&ehci->caps->hcs_params); #if defined(CONFIG_PCI) && !defined(CONFIG_FSL_USB20) if (hcd->self.controller->bus == &pci_bus_type) { struct pci_dev *pdev = to_pci_dev(hcd->self.controller); switch (pdev->vendor) { case PCI_VENDOR_ID_TDI: if (pdev->device == PCI_DEVICE_ID_TDI_EHCI) { ehci->is_tdi_rh_tt = 1; tdi_reset (ehci); } break; case PCI_VENDOR_ID_AMD: /* AMD8111 EHCI doesn't work, according to AMD errata */ if (pdev->device == 0x7463) { ehci_info (ehci, "ignoring AMD8111 (errata)\n"); return -EIO; } break; case PCI_VENDOR_ID_NVIDIA: /* NVidia reports that certain chips don't handle * QH, ITD, or SITD addresses above 2GB. (But TD, * data buffer, and periodic schedule are normal.) */ switch (pdev->device) { case 0x003c: /* MCP04 */ case 0x005b: /* CK804 */ case 0x00d8: /* CK8 */ case 0x00e8: /* CK8S */ if (pci_set_consistent_dma_mask(pdev, DMA_31BIT_MASK) < 0) ehci_warn (ehci, "can't enable NVidia " "workaround for >2GB RAM\n"); break; } break; } /* optional debug port, normally in the first BAR */ temp = pci_find_capability (pdev, 0x0a); if (temp) { pci_read_config_dword(pdev, temp, &temp); temp >>= 16; if ((temp & (3 << 13)) == (1 << 13)) { temp &= 0x1fff; ehci->debug = hcd->regs + temp; temp = readl (&ehci->debug->control); ehci_info (ehci, "debug port %d%s\n", HCS_DEBUG_PORT(ehci->hcs_params), (temp & DBGP_ENABLED) ? " IN USE" : ""); if (!(temp & DBGP_ENABLED)) ehci->debug = NULL; } } temp = HCC_EXT_CAPS (readl (&ehci->caps->hcc_params)); } else temp = 0; /* EHCI 0.96 and later may have "extended capabilities" */ while (temp && count--) { u32 cap; pci_read_config_dword (to_pci_dev(hcd->self.controller), temp, &cap); ehci_dbg (ehci, "capability %04x at %02x\n", cap, temp); switch (cap & 0xff) { case 1: /* BIOS/SMM/... handoff */ if (bios_handoff (ehci, temp, cap) != 0) return -EOPNOTSUPP; break; case 0: /* illegal reserved capability */ ehci_warn (ehci, "illegal capability!\n"); cap = 0; /* FALLTHROUGH */ default: /* unknown */ break; } temp = (cap >> 8) & 0xff; } if (!count) { ehci_err (ehci, "bogus capabilities ... PCI problems!\n"); return -EIO; } if (ehci_is_TDI(ehci)) ehci_reset (ehci); #endif ehci_port_power (ehci, 0); /* at least the Genesys GL880S needs fixup here */ temp = HCS_N_CC(ehci->hcs_params) * HCS_N_PCC(ehci->hcs_params); temp &= 0x0f; if (temp && HCS_N_PORTS(ehci->hcs_params) > temp) { ehci_dbg (ehci, "bogus port configuration: " "cc=%d x pcc=%d < ports=%d\n", HCS_N_CC(ehci->hcs_params), HCS_N_PCC(ehci->hcs_params), HCS_N_PORTS(ehci->hcs_params)); #if defined(CONFIG_PCI) && !defined(CONFIG_FSL_USB20) if (hcd->self.controller->bus == &pci_bus_type) { struct pci_dev *pdev; pdev = to_pci_dev(hcd->self.controller); switch (pdev->vendor) { case 0x17a0: /* GENESYS */ /* GL880S: should be PORTS=2 */ temp |= (ehci->hcs_params & ~0xf); ehci->hcs_params = temp; break; case PCI_VENDOR_ID_NVIDIA: /* NF4: should be PCC=10 */ break; } } #endif } /* force HC to halt state */ return ehci_halt (ehci); } static int ehci_start (struct usb_hcd *hcd) { struct ehci_hcd *ehci = hcd_to_ehci (hcd); u32 temp; int retval; u32 hcc_params; u8 sbrn = 0; int first; /* skip some things on restart paths */ first = (ehci->watchdog.data == 0); if (first) { init_timer (&ehci->watchdog); ehci->watchdog.function = ehci_watchdog; ehci->watchdog.data = (unsigned long) ehci; } /* * hw default: 1K periodic list heads, one per frame. * periodic_size can shrink by USBCMD update if hcc_params allows. */ ehci->periodic_size = DEFAULT_I_TDPS; if (first && (retval = ehci_mem_init (ehci, GFP_KERNEL)) < 0) return retval; /* controllers may cache some of the periodic schedule ... */ hcc_params = readl (&ehci->caps->hcc_params); if (HCC_ISOC_CACHE (hcc_params)) // full frame cache ehci->i_thresh = 8; else // N microframes cached ehci->i_thresh = 2 + HCC_ISOC_THRES (hcc_params); ehci->reclaim = NULL; ehci->reclaim_ready = 0; ehci->next_uframe = -1; /* controller state: unknown --> reset */ /* EHCI spec section 4.1 */ if ((retval = ehci_reset (ehci)) != 0) { ehci_mem_cleanup (ehci); return retval; } writel (ehci->periodic_dma, &ehci->regs->frame_list); #if defined(CONFIG_PCI) && !defined(CONFIG_FSL_USB20) if (hcd->self.controller->bus == &pci_bus_type) { struct pci_dev *pdev; u16 port_wake; pdev = to_pci_dev(hcd->self.controller); /* Serial Bus Release Number is at PCI 0x60 offset */ pci_read_config_byte(pdev, 0x60, &sbrn); /* port wake capability, reported by boot firmware */ pci_read_config_word(pdev, 0x62, &port_wake); hcd->can_wakeup = (port_wake & 1) != 0; /* help hc dma work well with cachelines */ retval = pci_set_mwi(pdev); if (retval) ehci_dbg(ehci, "unable to enable MWI - not fatal.\n"); } #endif /* * dedicate a qh for the async ring head, since we couldn't unlink * a 'real' qh without stopping the async schedule [4.8]. use it * as the 'reclamation list head' too. * its dummy is used in hw_alt_next of many tds, to prevent the qh * from automatically advancing to the next td after short reads. */ if (first) { ehci->async->qh_next.qh = NULL; ehci->async->hw_next = QH_NEXT (ehci->async->qh_dma); ehci->async->hw_info1 = cpu_to_le32 (QH_HEAD); ehci->async->hw_token = cpu_to_le32 (QTD_STS_HALT); ehci->async->hw_qtd_next = EHCI_LIST_END; ehci->async->qh_state = QH_STATE_LINKED; ehci->async->hw_alt_next = QTD_NEXT (ehci->async->dummy->qtd_dma); } writel ((u32)ehci->async->qh_dma, &ehci->regs->async_next); /* * hcc_params controls whether ehci->regs->segment must (!!!) * be used; it constrains QH/ITD/SITD and QTD locations. * pci_pool consistent memory always uses segment zero. * streaming mappings for I/O buffers, like pci_map_single(), * can return segments above 4GB, if the device allows. * * NOTE: the dma mask is visible through dma_supported(), so * drivers can pass this info along ... like NETIF_F_HIGHDMA, * Scsi_Host.highmem_io, and so forth. It's readonly to all * host side drivers though. */ if (HCC_64BIT_ADDR (hcc_params)) { writel (0, &ehci->regs->segment); #if 0 // this is deeply broken on almost all architectures if (!dma_set_mask (hcd->self.controller, DMA_64BIT_MASK)) ehci_info (ehci, "enabled 64bit DMA\n"); #endif } /* clear interrupt enables, set irq latency */ if (log2_irq_thresh < 0 || log2_irq_thresh > 6) log2_irq_thresh = 0; temp = 1 << (16 + log2_irq_thresh); if (HCC_CANPARK(hcc_params)) { /* HW default park == 3, on hardware that supports it (like * NVidia and ALI silicon), maximizes throughput on the async * schedule by avoiding QH fetches between transfers. * * With fast usb storage devices and NForce2, "park" seems to * make problems: throughput reduction (!), data errors... */ if (park) { park = min (park, (unsigned) 3); temp |= CMD_PARK; temp |= park << 8; } ehci_info (ehci, "park %d\n", park); } if (HCC_PGM_FRAMELISTLEN (hcc_params)) { /* periodic schedule size can be smaller than default */ temp &= ~(3 << 2); temp |= (EHCI_TUNE_FLS << 2); switch (EHCI_TUNE_FLS) { case 0: ehci->periodic_size = 1024; break; case 1: ehci->periodic_size = 512; break; case 2: ehci->periodic_size = 256; break; default: BUG (); } } // Philips, Intel, and maybe others need CMD_RUN before the // root hub will detect new devices (why?); NEC doesn't temp |= CMD_RUN; writel (temp, &ehci->regs->command); dbg_cmd (ehci, "init", temp); /* set async sleep time = 10 us ... ? */ /* * Start, enabling full USB 2.0 functionality ... usb 1.1 devices * are explicitly handed to companion controller(s), so no TT is * involved with the root hub. (Except where one is integrated, * and there's no companion controller unless maybe for USB OTG.) */ if (first) { ehci->reboot_notifier.notifier_call = ehci_reboot; register_reboot_notifier (&ehci->reboot_notifier); } hcd->state = HC_STATE_RUNNING; writel (FLAG_CF, &ehci->regs->configured_flag); readl (&ehci->regs->command); /* unblock posted write */ temp = HC_VERSION(readl (&ehci->caps->hc_capbase)); ehci_info (ehci, "USB %x.%x %s, EHCI %x.%02x, driver %s\n", ((sbrn & 0xf0)>>4), (sbrn & 0x0f), first ? "initialized" : "restarted", temp >> 8, temp & 0xff, DRIVER_VERSION); writel (INTR_MASK, &ehci->regs->intr_enable); /* Turn On Interrupts */ if (first) create_debug_files (ehci); return 0; } /* always called by thread; normally rmmod */ static void ehci_stop (struct usb_hcd *hcd) { struct ehci_hcd *ehci = hcd_to_ehci (hcd); ehci_dbg (ehci, "stop\n"); /* Turn off port power on all root hub ports. */ ehci_port_power (ehci, 0); /* no more interrupts ... */ del_timer_sync (&ehci->watchdog); spin_lock_irq(&ehci->lock); if (HC_IS_RUNNING (hcd->state)) ehci_quiesce (ehci); ehci_reset (ehci); writel (0, &ehci->regs->intr_enable); spin_unlock_irq(&ehci->lock); /* let companion controllers work when we aren't */ writel (0, &ehci->regs->configured_flag); unregister_reboot_notifier (&ehci->reboot_notifier); remove_debug_files (ehci); /* root hub is shut down separately (first, when possible) */ spin_lock_irq (&ehci->lock); if (ehci->async) ehci_work (ehci, NULL); spin_unlock_irq (&ehci->lock); ehci_mem_cleanup (ehci); #ifdef EHCI_STATS ehci_dbg (ehci, "irq normal %ld err %ld reclaim %ld (lost %ld)\n", ehci->stats.normal, ehci->stats.error, ehci->stats.reclaim, ehci->stats.lost_iaa); ehci_dbg (ehci, "complete %ld unlink %ld\n", ehci->stats.complete, ehci->stats.unlink); #endif dbg_status (ehci, "ehci_stop completed", readl (&ehci->regs->status)); } static int ehci_get_frame (struct usb_hcd *hcd) { struct ehci_hcd *ehci = hcd_to_ehci (hcd); return (readl (&ehci->regs->frame_index) >> 3) % ehci->periodic_size; } /*-------------------------------------------------------------------------*/ #ifdef CONFIG_PM /* suspend/resume, section 4.3 */ /* These routines rely on the bus (pci, platform, etc) * to handle powerdown and wakeup, and currently also on * transceivers that don't need any software attention to set up * the right sort of wakeup. */ static int ehci_suspend (struct usb_hcd *hcd, pm_message_t message) { struct ehci_hcd *ehci = hcd_to_ehci (hcd); if (time_before (jiffies, ehci->next_statechange)) msleep (100); #ifdef CONFIG_USB_SUSPEND (void) usb_suspend_device (hcd->self.root_hub, message); #else usb_lock_device (hcd->self.root_hub); (void) ehci_hub_suspend (hcd); usb_unlock_device (hcd->self.root_hub); #endif // save (PCI) FLADJ in case of Vaux power loss // ... we'd only use it to handle clock skew return 0; } static int ehci_resume (struct usb_hcd *hcd) { struct ehci_hcd *ehci = hcd_to_ehci (hcd); unsigned port; struct usb_device *root = hcd->self.root_hub; int retval = -EINVAL; // maybe restore (PCI) FLADJ if (time_before (jiffies, ehci->next_statechange)) msleep (100); /* If any port is suspended (or owned by the companion), * we know we can/must resume the HC (and mustn't reset it). */ for (port = HCS_N_PORTS (ehci->hcs_params); port > 0; ) { u32 status; port--; status = readl (&ehci->regs->port_status [port]); if (!(status & PORT_POWER)) continue; if (status & (PORT_SUSPEND | PORT_OWNER)) { down (&hcd->self.root_hub->serialize); retval = ehci_hub_resume (hcd); up (&hcd->self.root_hub->serialize); break; } if (!root->children [port]) continue; dbg_port (ehci, __FUNCTION__, port + 1, status); usb_set_device_state (root->children[port], USB_STATE_NOTATTACHED); } /* Else reset, to cope with power loss or flush-to-storage * style "resume" having activated BIOS during reboot. */ if (port == 0) { (void) ehci_halt (ehci); (void) ehci_reset (ehci); (void) ehci_hc_reset (hcd); /* emptying the schedule aborts any urbs */ spin_lock_irq (&ehci->lock); if (ehci->reclaim) ehci->reclaim_ready = 1; ehci_work (ehci, NULL); spin_unlock_irq (&ehci->lock); /* restart; khubd will disconnect devices */ retval = ehci_start (hcd); /* here we "know" root ports should always stay powered; * but some controllers may lose all power. */ ehci_port_power (ehci, 1); } return retval; } #endif /*-------------------------------------------------------------------------*/ /* * ehci_work is called from some interrupts, timers, and so on. * it calls driver completion functions, after dropping ehci->lock. */ static void ehci_work (struct ehci_hcd *ehci, struct pt_regs *regs) { timer_action_done (ehci, TIMER_IO_WATCHDOG); if (ehci->reclaim_ready) end_unlink_async (ehci, regs); /* another CPU may drop ehci->lock during a schedule scan while * it reports urb completions. this flag guards against bogus * attempts at re-entrant schedule scanning. */ if (ehci->scanning) return; ehci->scanning = 1; scan_async (ehci, regs); if (ehci->next_uframe != -1) scan_periodic (ehci, regs); ehci->scanning = 0; /* the IO watchdog guards against hardware or driver bugs that * misplace IRQs, and should let us run completely without IRQs. * such lossage has been observed on both VT6202 and VT8235. */ if (HC_IS_RUNNING (ehci_to_hcd(ehci)->state) && (ehci->async->qh_next.ptr != NULL || ehci->periodic_sched != 0)) timer_action (ehci, TIMER_IO_WATCHDOG); } /*-------------------------------------------------------------------------*/ static irqreturn_t ehci_irq (struct usb_hcd *hcd, struct pt_regs *regs) { struct ehci_hcd *ehci = hcd_to_ehci (hcd); u32 status; int bh; spin_lock (&ehci->lock); status = readl (&ehci->regs->status); /* e.g. cardbus physical eject */ if (status == ~(u32) 0) { ehci_dbg (ehci, "device removed\n"); goto dead; } status &= INTR_MASK; if (!status) { /* irq sharing? */ spin_unlock(&ehci->lock); return IRQ_NONE; } /* clear (just) interrupts */ writel (status, &ehci->regs->status); readl (&ehci->regs->command); /* unblock posted write */ bh = 0; #ifdef EHCI_VERBOSE_DEBUG /* unrequested/ignored: Frame List Rollover */ dbg_status (ehci, "irq", status); #endif /* INT, ERR, and IAA interrupt rates can be throttled */ /* normal [4.15.1.2] or error [4.15.1.1] completion */ if (likely ((status & (STS_INT|STS_ERR)) != 0)) { if (likely ((status & STS_ERR) == 0)) COUNT (ehci->stats.normal); else COUNT (ehci->stats.error); bh = 1; } /* complete the unlinking of some qh [4.15.2.3] */ if (status & STS_IAA) { COUNT (ehci->stats.reclaim); ehci->reclaim_ready = 1; bh = 1; } /* remote wakeup [4.3.1] */ if ((status & STS_PCD) && hcd->remote_wakeup) { unsigned i = HCS_N_PORTS (ehci->hcs_params); /* resume root hub? */ status = readl (&ehci->regs->command); if (!(status & CMD_RUN)) writel (status | CMD_RUN, &ehci->regs->command); while (i--) { status = readl (&ehci->regs->port_status [i]); if (status & PORT_OWNER) continue; if (!(status & PORT_RESUME) || ehci->reset_done [i] != 0) continue; /* start 20 msec resume signaling from this port, * and make khubd collect PORT_STAT_C_SUSPEND to * stop that signaling. */ ehci->reset_done [i] = jiffies + msecs_to_jiffies (20); mod_timer (&hcd->rh_timer, ehci->reset_done [i] + 1); ehci_dbg (ehci, "port %d remote wakeup\n", i + 1); } } /* PCI errors [4.15.2.4] */ if (unlikely ((status & STS_FATAL) != 0)) { /* bogus "fatal" IRQs appear on some chips... why? */ status = readl (&ehci->regs->status); dbg_cmd (ehci, "fatal", readl (&ehci->regs->command)); dbg_status (ehci, "fatal", status); if (status & STS_HALT) { ehci_err (ehci, "fatal error\n"); dead: ehci_reset (ehci); writel (0, &ehci->regs->configured_flag); /* generic layer kills/unlinks all urbs, then * uses ehci_stop to clean up the rest */ bh = 1; } } if (bh) ehci_work (ehci, regs); spin_unlock (&ehci->lock); return IRQ_HANDLED; } /*-------------------------------------------------------------------------*/ /* * non-error returns are a promise to giveback() the urb later * we drop ownership so next owner (or urb unlink) can get it * * urb + dev is in hcd.self.controller.urb_list * we're queueing TDs onto software and hardware lists * * hcd-specific init for hcpriv hasn't been done yet * * NOTE: control, bulk, and interrupt share the same code to append TDs * to a (possibly active) QH, and the same QH scanning code. */ static int ehci_urb_enqueue ( struct usb_hcd *hcd, struct usb_host_endpoint *ep, struct urb *urb, unsigned mem_flags ) { struct ehci_hcd *ehci = hcd_to_ehci (hcd); struct list_head qtd_list; INIT_LIST_HEAD (&qtd_list); switch (usb_pipetype (urb->pipe)) { // case PIPE_CONTROL: // case PIPE_BULK: default: if (!qh_urb_transaction (ehci, urb, &qtd_list, mem_flags)) return -ENOMEM; return submit_async (ehci, ep, urb, &qtd_list, mem_flags); case PIPE_INTERRUPT: if (!qh_urb_transaction (ehci, urb, &qtd_list, mem_flags)) return -ENOMEM; return intr_submit (ehci, ep, urb, &qtd_list, mem_flags); case PIPE_ISOCHRONOUS: if (urb->dev->speed == USB_SPEED_HIGH) return itd_submit (ehci, urb, mem_flags); else return sitd_submit (ehci, urb, mem_flags); } } static void unlink_async (struct ehci_hcd *ehci, struct ehci_qh *qh) { /* if we need to use IAA and it's busy, defer */ if (qh->qh_state == QH_STATE_LINKED && ehci->reclaim && HC_IS_RUNNING (ehci_to_hcd(ehci)->state)) { struct ehci_qh *last; for (last = ehci->reclaim; last->reclaim; last = last->reclaim) continue; qh->qh_state = QH_STATE_UNLINK_WAIT; last->reclaim = qh; /* bypass IAA if the hc can't care */ } else if (!HC_IS_RUNNING (ehci_to_hcd(ehci)->state) && ehci->reclaim) end_unlink_async (ehci, NULL); /* something else might have unlinked the qh by now */ if (qh->qh_state == QH_STATE_LINKED) start_unlink_async (ehci, qh); } /* remove from hardware lists * completions normally happen asynchronously */ static int ehci_urb_dequeue (struct usb_hcd *hcd, struct urb *urb) { struct ehci_hcd *ehci = hcd_to_ehci (hcd); struct ehci_qh *qh; unsigned long flags; spin_lock_irqsave (&ehci->lock, flags); switch (usb_pipetype (urb->pipe)) { // case PIPE_CONTROL: // case PIPE_BULK: default: qh = (struct ehci_qh *) urb->hcpriv; if (!qh) break; unlink_async (ehci, qh); break; case PIPE_INTERRUPT: qh = (struct ehci_qh *) urb->hcpriv; if (!qh) break; switch (qh->qh_state) { case QH_STATE_LINKED: intr_deschedule (ehci, qh); /* FALL THROUGH */ case QH_STATE_IDLE: qh_completions (ehci, qh, NULL); break; default: ehci_dbg (ehci, "bogus qh %p state %d\n", qh, qh->qh_state); goto done; } /* reschedule QH iff another request is queued */ if (!list_empty (&qh->qtd_list) && HC_IS_RUNNING (hcd->state)) { int status; status = qh_schedule (ehci, qh); spin_unlock_irqrestore (&ehci->lock, flags); if (status != 0) { // shouldn't happen often, but ... // FIXME kill those tds' urbs err ("can't reschedule qh %p, err %d", qh, status); } return status; } break; case PIPE_ISOCHRONOUS: // itd or sitd ... // wait till next completion, do it then. // completion irqs can wait up to 1024 msec, break; } done: spin_unlock_irqrestore (&ehci->lock, flags); return 0; } /*-------------------------------------------------------------------------*/ // bulk qh holds the data toggle static void ehci_endpoint_disable (struct usb_hcd *hcd, struct usb_host_endpoint *ep) { struct ehci_hcd *ehci = hcd_to_ehci (hcd); unsigned long flags; struct ehci_qh *qh, *tmp; /* ASSERT: any requests/urbs are being unlinked */ /* ASSERT: nobody can be submitting urbs for this any more */ rescan: spin_lock_irqsave (&ehci->lock, flags); qh = ep->hcpriv; if (!qh) goto done; /* endpoints can be iso streams. for now, we don't * accelerate iso completions ... so spin a while. */ if (qh->hw_info1 == 0) { ehci_vdbg (ehci, "iso delay\n"); goto idle_timeout; } if (!HC_IS_RUNNING (hcd->state)) qh->qh_state = QH_STATE_IDLE; switch (qh->qh_state) { case QH_STATE_LINKED: for (tmp = ehci->async->qh_next.qh; tmp && tmp != qh; tmp = tmp->qh_next.qh) continue; /* periodic qh self-unlinks on empty */ if (!tmp) goto nogood; unlink_async (ehci, qh); /* FALL THROUGH */ case QH_STATE_UNLINK: /* wait for hw to finish? */ idle_timeout: spin_unlock_irqrestore (&ehci->lock, flags); schedule_timeout_uninterruptible(1); goto rescan; case QH_STATE_IDLE: /* fully unlinked */ if (list_empty (&qh->qtd_list)) { qh_put (qh); break; } /* else FALL THROUGH */ default: nogood: /* caller was supposed to have unlinked any requests; * that's not our job. just leak this memory. */ ehci_err (ehci, "qh %p (#%02x) state %d%s\n", qh, ep->desc.bEndpointAddress, qh->qh_state, list_empty (&qh->qtd_list) ? "" : "(has tds)"); break; } ep->hcpriv = NULL; done: spin_unlock_irqrestore (&ehci->lock, flags); return; } /*-------------------------------------------------------------------------*/ static const struct hc_driver ehci_driver = { .description = hcd_name, .product_desc = "EHCI Host Controller", .hcd_priv_size = sizeof(struct ehci_hcd), /* * generic hardware linkage */ .irq = ehci_irq, .flags = HCD_MEMORY | HCD_USB2, /* * basic lifecycle operations */ .reset = ehci_hc_reset, .start = ehci_start, #ifdef CONFIG_PM .suspend = ehci_suspend, .resume = ehci_resume, #endif .stop = ehci_stop, /* * managing i/o requests and associated device resources */ .urb_enqueue = ehci_urb_enqueue, .urb_dequeue = ehci_urb_dequeue, .endpoint_disable = ehci_endpoint_disable, /* * scheduling support */ .get_frame_number = ehci_get_frame, /* * root hub support */ .hub_status_data = ehci_hub_status_data, .hub_control = ehci_hub_control, .hub_suspend = ehci_hub_suspend, .hub_resume = ehci_hub_resume, }; /*-------------------------------------------------------------------------*/ /* EHCI 1.0 doesn't require PCI */ #ifndef CONFIG_FSL_USB20 #ifdef CONFIG_USB_BRCM #include "ehci-brcm.c" #else #ifdef CONFIG_PCI /* PCI driver selection metadata; PCI hotplugging uses this */ static const struct pci_device_id pci_ids [] = { { /* handle any USB 2.0 EHCI controller */ PCI_DEVICE_CLASS(((PCI_CLASS_SERIAL_USB << 8) | 0x20), ~0), .driver_data = (unsigned long) &ehci_driver, }, { /* end: all zeroes */ } }; MODULE_DEVICE_TABLE (pci, pci_ids); /* pci driver glue; this is a "new style" PCI driver module */ static struct pci_driver ehci_pci_driver = { .name = (char *) hcd_name, .id_table = pci_ids, .probe = usb_hcd_pci_probe, .remove = usb_hcd_pci_remove, #ifdef CONFIG_PM .suspend = usb_hcd_pci_suspend, .resume = usb_hcd_pci_resume, #endif }; #endif /* PCI */ #define DRIVER_INFO DRIVER_VERSION " " DRIVER_DESC MODULE_DESCRIPTION (DRIVER_INFO); MODULE_AUTHOR (DRIVER_AUTHOR); MODULE_LICENSE ("GPL"); static int __init init (void) { if (usb_disabled()) return -ENODEV; pr_debug ("%s: block sizes: qh %Zd qtd %Zd itd %Zd sitd %Zd\n", hcd_name, sizeof (struct ehci_qh), sizeof (struct ehci_qtd), sizeof (struct ehci_itd), sizeof (struct ehci_sitd)); return pci_register_driver (&ehci_pci_driver); } module_init (init); static void __exit cleanup (void) { pci_unregister_driver (&ehci_pci_driver); } module_exit (cleanup); #endif /* if CONFIG_USB_BRCM else */ #endif /* FSL_USB20 */
camelguo/linux-2.6-trimedia
drivers/usb/host/ehci-hcd.c
C
gpl-2.0
36,228
## powerlevel9k Theme for ZSH Powerlevel9k is a theme for ZSH which uses [Powerline Fonts](https://github.com/Lokaltog/powerline-fonts). It can be used with vanilla ZSH, [Oh-My-Zsh](https://github.com/robbyrussell/oh-my-zsh), or [Prezto](https://github.com/sorin-ionescu/prezto), and can also be installed using [antigen](https://github.com/zsh-users/antigen). Look like a bad-ass. Impress everyone in 'Screenshot Your Desktop' threads. Use powerlevel9k. ![](http://bhilburn.org/content/images/2015/01/pl9k-improved.png) There are a number of Powerline ZSH themes available, now. The developers of this theme focus on four primary goals: 1. Give users a great out-of-the-box configuration with no additional configuration required. 2. Make customization easy for users who do want to tweak their prompt. 3. Provide useful segments that you can enable to make your prompt even more effective and helpful. We have prompt segments for everything from unit test coverage to your AWS instance. 4. Optimize the code for execution speed as much as possible. A snappy terminal is a happy terminal. <!-- START doctoc generated TOC please keep comment here to allow auto update --> <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --> **Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)* - [Features](#features) - [Installation](#installation) - [Step 1: Install Powerlevel9k](#step-1-install-powerlevel9k) - [Option 1: Install for Vanilla ZSH](#option-1-install-for-vanilla-zsh) - [Option 2: Install for Oh-My-ZSH](#option-2-install-for-oh-my-zsh) - [Option 3: Install for Prezto](#option-3-install-for-prezto) - [Option 4: Install for antigen](#option-4-install-for-antigen) - [Step 2: Install Powerline Fonts](#step-2-install-powerline-fonts) - [Option 1: Install Powerline Fonts](#option-1-install-powerline-fonts) - [Option 2: Install Awesome Powerline Fonts](#option-2-install-awesome-powerline-fonts) - [Option 3: Compatible Mode](#option-3-compatible-mode) - [Segment Customization](#segment-customization) - [The AWS Profile Segment](#the-aws-profile-segment) - [The 'context' Segment](#the-context-segment) - [The 'dir' segment](#the-dir-segment) - [The 'time' segment](#the-time-segment) - [Unit Test Ratios](#unit-test-ratios) - [The 'vcs' Segment](#the-vcs-segment) - [Symbols](#symbols) - [Styling](#styling) - [Double-Lined Prompt](#double-lined-prompt) - [Disable Right Prompt](#disable-right-prompt) - [Light Color Theme](#light-color-theme) - [Segment Color Customization](#segment-color-customization) - [Special Segment Colors](#special-segment-colors) - [Troubleshooting](#troubleshooting) - [Gaps Between Segments](#gaps-between-segments) - [Segment Colors are Wrong](#segment-colors-are-wrong) - [Meta](#meta) - [Kudos](#kudos) - [Developing](#developing) - [Contributions / Bugs / Contact](#contributions--bugs--contact) <!-- END doctoc generated TOC please keep comment here to allow auto update --> ### Features * Supports `git` and `mercurial` repo information through ZSH's `VCS_INFO`: * branch / tag name * current action status (rebasing, merging, etc.,) * being behind / ahead of your remote by some number of commits * number of stashes (git only) * conditionally shows remote tracking branch if the name differs from local * current active bookmark (mercurial only) * various working tree statuses (e.g., unstaged, staged, etc.,) * Shows return-code of the last command if it is an error code * Indicates background jobs with a gear icon * Can conditionally display the `user@host` string when needed (e.g., SSH) * Provides segment for command history (so you can `$ !<num>` to re-run) * Plenty of additional segments to choose from (e.g., AWS, ruby) * Can be used as a single or double-lined prompt (see screenshots below) * Several built-in color configurations to choose from **If you would like an OMZ theme that provides some of the same features but doesn't require Powerline fonts, check out the sister font, [hackersaurus](https://github.com/bhilburn/hackersaurus).** Here is a detailed screenshot showing `powerlevel9k` with default settings and varying terminal status indicators: ![](http://bhilburn.org/content/images/2014/12/powerlevel9k.png) ### Installation There are two steps to start using this theme: 1. Install the Powerlevel9k theme. 2. Install Powerline-patched fonts. 3. [Optional] Configuration To get the most out of Powerlevel9k, you need to install both the theme as well as Powerline-patched fonts, if you don't have them installed already. If you cannot install Powerline-patched fonts for some reason, follow the instructions below for a `compatible` install. No configuration is necessary post-installation if you like the default settings, but there is plenty of segment configuration available if you are interested. #### Step 1: Install Powerlevel9k There are four ways to install and use the Powerlevel9k theme: vanilla ZSH, Oh-My-Zsh, Prezto, and antigen. Do one of the following: ##### Option 1: Install for Vanilla ZSH If you use just a vanilla ZSH install, simply clone this repository and reference it in your `~/.zshrc`: $ git clone https://github.com/bhilburn/powerlevel9k.git $ echo 'source powerlevel9k/powerlevel9k.zsh-theme' >> ~/.zshrc ##### Option 2: Install for Oh-My-ZSH To install this theme for [Oh-My-Zsh](https://github.com/robbyrussell/oh-my-zsh), clone this repository into your OMZ `custom/themes` directory. $ cd ~/.oh-my-zsh/custom $ git clone https://github.com/bhilburn/powerlevel9k.git themes/powerlevel9k You then need to select this theme in your `~/.zshrc`: ZSH_THEME="powerlevel9k/powerlevel9k" ##### Option 3: Install for Prezto To install this theme for use in Prezto, clone this repository into your [Prezto](https://github.com/sorin-ionescu/prezto) `prompt/external` directory. $ cd ~.zprezto/modules/prompt/external $ git clone https://github.com/bhilburn/powerlevel9k.git $ ln -s powerlevel9k/powerlevel9k.zsh-theme ../functions/prompt_powerlevel9k_setup You then need to select this theme in your `~/.zpreztorc`: zstyle ':prezto:module:prompt' theme 'powerlevel9k' ##### Option 4: Install for antigen If you prefer [antigen](https://github.com/zsh-users/antigen), just add this theme to the antigen config in your `~/.zshrc`: $ echo 'antigen theme bhilburn/powerlevel9k powerlevel9k' >> ~/.zshrc $ echo 'antigen apply' >> ~/.zshrc Note that you should define any customizations before calling `antigen theme` (i.e. setting the `POWERLEVEL9K_*` variables) in your `.zshrc`. #### Step 2: Install Powerline Fonts Technically, you don't *have* to install Powerline fonts. If you are using a font that has some of the basic glyphs we need, you can use the theme in `compatible` mode - see the third option, below. To get the most out of theme, though, you'll want Powerline-patched fonts. There are two varieties of these: 'Powerline Fonts' and 'Awesome Powerline Fonts'. The latter includes additional glyphs that aren't required for a normal install. Do one of the following: ##### Option 1: Install Powerline Fonts You can find the [installation instructions for Powerline Fonts here] (https://powerline.readthedocs.org/en/latest/installation/linux.html#fonts-installation). You can also find the raw font files [in this Github repository](https://github.com/powerline/fonts) if you want to manually install them for your OS. After you have installed Powerline fonts, make the default font in your terminal emulator the Powerline font you want to use. This is the default mode for `Powerlevel9k`, and no further configuration is necessary. **N.B.:** If Powerlevel9k is not working properly, it is almost always the case that the fonts were not properly installed, or you have not configured your terminal to use a Powerline-patched font! ##### Option 2: Install Awesome Powerline Fonts Alternatively, you can install [Awesome Powerline Fonts](https://github.com/gabrielelana/awesome-terminal-fonts), which provide a number of additional glyphs. You then need to indicate that you wish to use the additional glyphs by defining the following in your `~/.zshrc`: POWERLEVEL9K_MODE='awesome-patched' If you choose to make use of this, your prompt will look something like this: ![](https://cloud.githubusercontent.com/assets/1544760/7959660/67612918-09fb-11e5-9ef2-2308363c3c51.png) Note that if you prefer flat segment transitions, you can use the following with `Awesome Powerline Fonts` installed: POWERLEVEL9K_MODE='flat' Which looks like this: ![](https://cloud.githubusercontent.com/assets/1544760/7981324/76d0eb5a-0aae-11e5-9608-d662123d0b0a.png) ##### Option 3: Compatible Mode This option is best if you prefer not to install additional fonts. This option will work out-of-the-box if your your terminal font supports the segment separator characters `\uE0B0` (left segment separator) and `\uE0B2` (right segment separator). All you need to do to in this case is install the `Powerlevel9k` theme itself, as explained above, and then define the following in your `~/.zshrc`: POWERLEVEL9K_MODE='compatible' Note that depending on your terminal font, this may still not render appropriately. This configuration should be used as a back-up. ### Segment Customization Customizing your prompt is easy! Select the segments you want to have displayed, and then assign them to either the left or right prompt. The segments that are currently available are: * **aws** - The current AWS profile, if active (more info below) * **context** - Your username and host (more info below) * **dir** - Your current working directory. * **history** - The command number for the current line. * **node_version** - Show the version number of the installed Node.js. * **rbenv** - Ruby environment information (if one is active). * **rspec_stats** - Show a ratio of test classes vs code classes for RSpec. * **status** - The return code of the previous command, and status of background jobs. * **longstatus** - Same as previous, except this creates a status segment for the *right* prompt. * **symfony2_tests** - Show a ratio of test classes vs code classes for Symfony2. * **symfony2_version** - Show the current Symfony2 version, if you are in a Symfony2-Project dir. * **time** - System time. * **virtualenv** - Your Python [VirtualEnv](https://virtualenv.pypa.io/en/latest/). * **vcs** - Information about this `git` or `hg` repository (if you are in one). To specify which segments you want, just add the following variables to your `~/.zshrc`. If you don't customize this, the below configuration is the default: POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(context dir rbenv vcs) POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(longstatus history time) #### The AWS Profile Segment If you would like to display the [current AWS profile](http://docs.aws.amazon.com/cli/latest/userguide/installing.html), add the `aws` segment to one of the prompts, and define `AWS_DEFAULT_PROFILE` in your `~/.zshrc`: export AWS_DEFAULT_PROFILE=<profile_name> #### The 'context' Segment The `context` segment (user@host string) is conditional. This lets you enable it, but only display it if you are not your normal user or on a remote host (basically, only print it when it's likely you need it). To use this feature, make sure the `context` segment is enabled in your prompt elements (it is by default), and define a `DEFAULT_USER` in your `~/.zshrc`: export DEFAULT_USER=<your username> #### The 'dir' segment The `dir` segment shows the current working directory. You can limit the output to a certain length: # Limit to the last two folders POWERLEVEL9K_SHORTEN_DIR_LENGTH=2 #### The 'time' segment By default the time is show in 'H:M:S' format. If you want to change it, just set another format in your `~/.zshrc`. As an example, this is a reversed time format: # Reversed time format POWERLEVEL9K_TIME_FORMAT='%D{%S:%M:%H}' If you are using an "Awesome Powerline Font", you can add a time symbol to this segment, as well: # Output time, date, and a symbol from the "Awesome Powerline Font" set POWERLEVEL9K_TIME_FORMAT="%D{%H:%M:%S \uE868 %d.%m.%y}" #### Unit Test Ratios The `symfony2_tests` and `rspec_tests` segments both show a ratio of "real" classes vs test classes in your source code. This is just a very simple ratio, and does not show your code coverage or any sophisticated stats. All this does is count your source files and test files, and calculate the ratio between them. Just enough to give you a quick overview about the test situation of the project you are dealing with. #### The 'vcs' Segment By default, the `vcs` segment will provide quite a bit of information. If you would also like for it to display the current hash / changeset, simply define `POWERLEVEL9K_SHOW_CHANGESET` in your `~/.zshrc`. If activated, it will show the first 12 characters of the changeset id. To change the amount of characters, set `POWERLEVEL9K_CHANGESET_HASH_LENGTH` to any value you want. # enable the vcs segment in general POWERLEVEL9K_SHOW_CHANGESET=true # just show the 6 first characters of changeset POWERLEVEL9K_CHANGESET_HASH_LENGTH=6 You can also disable the branch icon in your prompt by setting `POWERLEVEL9K_HIDE_BRANCH_ICON` to `true`: # Hide the branch icon POWERLEVEL9K_HIDE_BRANCH_ICON=true ##### Symbols The `vcs` segment uses various symbols to tell you the state of your repository. These symbols depend on your installed font and selected `POWERLEVEL9K_MODE` from the [Installation](#Installation) section above. | `Compatible` | `Powerline` | `Awesome Powerline` | Explanation |--------------|---------------------|-------------------|-------------------------- | `↑4` | `↑4` | ![icon_outgoing](https://cloud.githubusercontent.com/assets/1544760/7976089/b5904d6e-0a76-11e5-8147-5e873ac52d79.gif)4 | Number of commits your repository is ahead of your remote branch | `↓5` | `↓5` | ![icon_incoming](https://cloud.githubusercontent.com/assets/1544760/7976091/b5909c9c-0a76-11e5-9cad-9bf0a28a897c.gif)5 | Number of commits your repository is behind of your remote branch | `⍟3` | `⍟3` | ![icon_stash](https://cloud.githubusercontent.com/assets/1544760/7976094/b5ae9346-0a76-11e5-8cc7-e98b81824118.gif)3 | Number of stashes, here 3. | `●` | `●` | ![icon_unstaged](https://cloud.githubusercontent.com/assets/1544760/7976096/b5aefa98-0a76-11e5-9408-985440471215.gif) | There are unstaged changes in your working copy | `✚` | `✚` | ![icon_staged](https://cloud.githubusercontent.com/assets/1544760/7976095/b5aecc8a-0a76-11e5-8988-221afc6e8982.gif) | There are staged changes in your working copy | `?` | `?` | ![icon_untracked](https://cloud.githubusercontent.com/assets/1544760/7976098/b5c7a2e6-0a76-11e5-8c5b-315b595b2bc4.gif) | There are files in your working copy, that are unknown to your repository | `→` | `→` | ![icon_remote_tracking_branch](https://cloud.githubusercontent.com/assets/1544760/7976093/b5ad2c0e-0a76-11e5-9cd3-62a077b1b0c7.gif) | The name of your branch differs from its tracking branch. | `☿` | `☿` | ![icon_bookmark](https://cloud.githubusercontent.com/assets/1544760/7976197/546cfac6-0a78-11e5-88a6-ce3a1e0a174e.gif) | A mercurial bookmark is active. | `@` | ![icon_branch_powerline](https://cloud.githubusercontent.com/assets/1544760/8000852/e7e8d8a0-0b5f-11e5-9834-de9b25c92284.gif) | ![](https://cloud.githubusercontent.com/assets/1544760/7976087/b58bbe3e-0a76-11e5-8d0d-7a5c1bc7f730.gif) | Branch Icon | None | None | ![icon_commit](https://cloud.githubusercontent.com/assets/1544760/7976088/b58f4e50-0a76-11e5-9e70-86450d937030.gif)2c3705 | The current commit hash. Here "2c3705" | None | None | ![icon_git](https://cloud.githubusercontent.com/assets/1544760/7976092/b5909f80-0a76-11e5-9950-1438b9d72465.gif) | Repository is a git repository | None | None | ![icon_mercurial](https://cloud.githubusercontent.com/assets/1544760/7976090/b5908da6-0a76-11e5-8c91-452b6e73f631.gif) | Repository is a Mercurial repository ### Styling You can configure the look and feel of your prompt easily with some built-in options. #### Double-Lined Prompt By default, `powerlevel9k` is a single-lined prompt. If you would like to have the segments display on one line, and print the command prompt below it, simply define `POWERLEVEL9K_PROMPT_ON_NEWLINE` in your `~/.zshrc`: POWERLEVEL9K_PROMPT_ON_NEWLINE=true Here is what it looks like: ![](http://bhilburn.org/content/images/2015/03/double-line.png) You can customize the icons used to draw the multiline prompt by setting the following variables in your `~/.zshrc`: POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX="↱" POWERLEVEL9K_MULTILINE_SECOND_PROMPT_PREFIX="↳ " #### Disable Right Prompt If you do not want a right prompt, you can disable it by setting: POWERLEVEL9K_DISABLE_RPROMPT=true #### Light Color Theme If you prefer to use "light" colors, simply set `POWERLEVEL9K_COLOR_SCHEME` to `light` in your `~/.zshrc`, and you're all set! POWERLEVEL9K_COLOR_SCHEME='light' The 'light' color scheme works well for ['Solarized Light'](https://github.com/altercation/solarized) users. Check it out: ![](http://bhilburn.org/content/images/2015/03/solarized-light.png) #### Segment Color Customization For each segment in your prompt, you can specify a foreground and background color by setting them in your `~/.zshrc`. Use the segment names from the above section `Segment Customization`. For example, to change the appearance of the `time` segment, you would use: POWERLEVEL9K_TIME_FOREGROUND='red' POWERLEVEL9K_TIME_BACKGROUND='blue' Note that you can also use a colorcode value. Example: POWERLEVEL9K_VCS_FOREGROUND='021' # Dark blue For a full list of supported colors, run the `spectrum_ls` program in your terminal. #### Special Segment Colors Some segments have additional color options if you want to customize the look of your prompt even further. These Segments are `context`, `vcs`, `rspec_stats`, `symfony2_tests`: # Customizing `context` colors for root and non-root users POWERLEVEL9K_CONTEXT_DEFAULT_BACKGROUND="green" POWERLEVEL9K_CONTEXT_DEFAULT_FOREGROUND="cyan" POWERLEVEL9K_CONTEXT_ROOT_BACKGROUND="red" POWERLEVEL9K_CONTEXT_ROOT_FOREGROUND="blue" # Advanced `vcs` color customization POWERLEVEL9K_VCS_FOREGROUND='blue' POWERLEVEL9K_VCS_DARK_FOREGROUND='black' POWERLEVEL9K_VCS_BACKGROUND='green' # If VCS changes are detected: POWERLEVEL9K_VCS_MODIFIED_FOREGROUND='red' POWERLEVEL9K_VCS_MODIFIED_BACKGROUND='cyan' # rspec_stats for good test coverage POWERLEVEL9K_RSPEC_STATS_GOOD_FOREGROUND='blue' POWERLEVEL9K_RSPEC_STATS_GOOD_BACKGROUND='green' # rspec_stats for average test coverage POWERLEVEL9K_RSPEC_STATS_AVG_FOREGROUND='black' POWERLEVEL9K_RSPEC_STATS_AVG_BACKGROUND='cyan' # rspec_stats for poor test coverage POWERLEVEL9K_RSPEC_STATS_BAD_FOREGROUND='red' POWERLEVEL9K_RSPEC_STATS_BAD_BACKGROUND='white' # symfony2_tests for good test coverage POWERLEVEL9K_SYMFONY2_TESTS_GOOD_FOREGROUND='blue' POWERLEVEL9K_SYMFONY2_TESTS_GOOD_BACKGROUND='green' # symfony2_tests for average test coverage POWERLEVEL9K_SYMFONY2_TESTS_AVG_FOREGROUND='black' POWERLEVEL9K_SYMFONY2_TESTS_AVG_BACKGROUND='cyan' # symfony2_tests for poor test coverage POWERLEVEL9K_SYMFONY2_TESTS_BAD_FOREGROUND='red' POWERLEVEL9K_SYMFONY2_TESTS_BAD_BACKGROUND='white' ### Troubleshooting Here are some fixes to some common problems. #### Gaps Between Segments You can see this issue in the screenshot, below: ![](http://bhilburn.org/content/images/2014/12/font_issue.png) Thankfully, this is easy to fix. This happens if you have successfully installed Powerline fonts, but did not make a Powerline font the default font in your terminal emulator (e.g., 'terminator', 'gnome-terminal', 'konsole', etc.,). #### Segment Colors are Wrong If the color display within your terminal seems off, it's possible you are using a reduced color set. You can check this by invoking `echotc Co` in your terminal, which should yield `256`. If you see something different, try setting `xterm-256color` in your `~/.zshrc`: TERM=xterm-256color ### Meta #### Kudos This theme wouldn't have happened without inspiration from the original [agnoster](https://gist.github.com/agnoster/3712874) Oh-My-ZSH theme. Before creating this theme, I also tried [jeremyFreeAgent's theme](https://github.com/jeremyFreeAgent/oh-my-zsh-powerline-theme) and [maverick2000's theme, ZSH2000](https://github.com/maverick2000/zsh2000). #### Developing Documentation for developers is kept on the [Powerlevel9k Github wiki](https://github.com/bhilburn/powerlevel9k/wiki/Developer's-Guide). #### Contributions / Bugs / Contact If you have any requests or bug reports, please use the tracker in this Github repository. I'm happy to accept code contributions from anyone who has a bug fix, new feature, or just a general improvement! Please submit your contribution as a Github pull-request. If you would like to contact me directly, you can find my e-mail address on my [Github profile page](https://github.com/bhilburn).
jancarloviray/vm
backup/oh-my-zsh/custom/themes/powerlevel9k/README.md
Markdown
gpl-2.0
21,672
/* savefile.c - Part of IMSKPE Copyright (C) 2004 Andreas Madsack 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 */ /** * @file savefile.c * @author Andreas Madsack * * @brief wrapper for save/export of files * * */ #ifdef HAVE_CONFIG_H # include <config.h> #endif #include <gtk/gtk.h> #include <stdio.h> #include <string.h> #include <malloc.h> #include "loadpar.h" #include "graphics.h" #include "support.h" #include "loadfile.h" #include "savefile.h" /** * Wrapper for saving files. * At this moment it only saves PAR-Files * * @param filename */ void FileSave(char *filename) { char *tmp; FILE *outfp; int i,j; typValueList *pnt[PARAMETERS]; typValueList *p_pnt[PARAMETERS]; GList *vl[PARAMETERS]; int y; if(!FileIsDefined()) { // no file opened ?? // no file created? // houston we have a ... printf("filedatapointer is NULL! why?\n"); } if(strlen(filename)>1) { tmp=g_malloc (sizeof (char)*(strlen(filename))); strcpy(tmp,filename); } else { tmp=g_malloc (sizeof (char)*(strlen(FileGetFilename()))); strcpy(tmp,FileGetFilename()); } FileSetFilename(tmp); outfp = fopen(tmp,"w"); if(outfp==NULL) { DialogErrorOK (_("Can't open output parameter file.")); free(tmp); return; } /* write "header" */ fprintf(outfp,"/* Produced by imskpe */\n"); fprintf(outfp,"/* DU : %d */\n",FileGetDuration()); fprintf(outfp,"/* UI : %d */\n",FileGetUpdateInterval()); fprintf(outfp,"/* SR : %d */\n",FileGetSamplingRate()); fprintf(outfp,"/* NF : %d */\n",FileGetNumberFormants()); fprintf(outfp,"/* SS : %d */\n",FileGetVoiceSource()); fprintf(outfp,"/* CP : %d */\n",FileGetBranches()); /* write values */ for(j=0;j<PARAMETERS;j++) { vl[j]=(GList *) g_list_first (CurveSearchByNr(FileGetCurvesPointer(),j)->points); p_pnt[j]=(typValueList *)vl[j]->data; pnt[j]=(typValueList *)vl[j]->data; } for(i=0;i<FileGetDuration();i+=FileGetUpdateInterval()) { fprintf(outfp,"%5d: ",i); for(j=0;j<PARAMETERS;j++) { if(pnt[j]->time<i) { p_pnt[j]=pnt[j]; if(vl[j]->next != NULL) { vl[j]=vl[j]->next; pnt[j]=(typValueList *)vl[j]->data; } } if((pnt[j]->time-p_pnt[j]->time)==0) { /* to prevent from div by 0 */ y=pnt[j]->value; } else { y=p_pnt[j]->value + (int)((float)(pnt[j]->value-p_pnt[j]->value)/(float)(pnt[j]->time-p_pnt[j]->time)*(float)(i-p_pnt[j]->time)); } fprintf(outfp,"%d ",y); } fprintf(outfp,"\n"); } fclose(outfp); }
imskpe/imskpe
imskpe/src/savefile.c
C
gpl-2.0
3,290
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="223.512px" height="104.913px" viewBox="0 0 223.512 104.913" enable-background="new 0 0 223.512 104.913" xml:space="preserve"> <g id="BLOCK" display="none"> <g display="inline"> <polygon fill="#FFFFFF" stroke="#231F20" stroke-miterlimit="10" points="62.315,1.262 183.315,1.262 119.315,82.262 1.315,82.262 "/> <polygon fill="#DDDBDA" stroke="#231F20" stroke-miterlimit="10" points="183.315,1.262 183.315,31.262 123.315,104.262 1.315,104.262 1.315,82.262 119.315,80.262 "/> </g> <rect x="8.909" y="87.665" display="inline" fill="none" width="33.333" height="37.9"/> <text id="Q" transform="matrix(1 0 0 1 8.9092 97.5649)" display="inline" font-family="'Futura-Medium'" font-size="12">Q</text> </g> <g id="POSTERS"> <g> <polygon fill="#DDDBDA" stroke="#231F20" stroke-miterlimit="10" points="182.5,1.412 182.5,31.412 122.5,104.412 0.5,104.412 0.5,82.412 118.5,80.412 "/> <polygon fill="#DDDBDA" stroke="#231F20" stroke-miterlimit="10" points="182.5,1.412 182.5,31.412 122.5,104.412 0.5,104.412 0.5,82.412 118.5,80.412 "/> <g> <polygon fill="#FFFFFF" stroke="#231F20" stroke-miterlimit="10" points="62.512,1.413 183.512,1.413 119.512,82.413 1.512,82.413 "/> <polygon fill="#DDDBDA" stroke="#231F20" stroke-miterlimit="10" points="183.512,1.413 183.512,31.413 123.512,104.413 1.512,104.413 1.512,82.413 119.512,80.413 "/> <line fill="none" x1="218.512" y1="59.913" x2="223.512" y2="61.913"/> </g> <line fill="none" stroke="#231F20" stroke-miterlimit="10" x1="0.512" y1="85.663" x2="120.012" y2="83.413"/> <line fill="none" stroke="#231F20" stroke-miterlimit="10" x1="120.012" y1="83.413" x2="182.512" y2="5.686"/> <line fill="none" stroke="#231F20" stroke-miterlimit="10" x1="0.512" y1="87.913" x2="120.012" y2="85.663"/> <line fill="none" stroke="#231F20" stroke-miterlimit="10" x1="120.012" y1="85.663" x2="182.512" y2="8.913"/> <line fill="none" stroke="#231F20" stroke-miterlimit="10" x1="0.586" y1="90.413" x2="120.012" y2="87.913"/> <line fill="none" stroke="#231F20" stroke-miterlimit="10" x1="120.012" y1="87.913" x2="182.512" y2="12.913"/> <line fill="none" stroke="#231F20" stroke-miterlimit="10" x1="0.512" y1="92.663" x2="120.012" y2="90.413"/> <line fill="none" stroke="#231F20" stroke-miterlimit="10" x1="120.012" y1="90.413" x2="182.512" y2="15.913"/> <line fill="none" stroke="#231F20" stroke-miterlimit="10" x1="0.512" y1="95.663" x2="122.012" y2="92.663"/> <line fill="none" stroke="#231F20" stroke-miterlimit="10" x1="122.012" y1="92.663" x2="182.512" y2="20.413"/> <line fill="none" stroke="#231F20" stroke-miterlimit="10" x1="0.512" y1="98.163" x2="122.012" y2="95.663"/> <line fill="none" stroke="#231F20" stroke-miterlimit="10" x1="122.012" y1="95.663" x2="182.512" y2="25.163"/> <line fill="none" stroke="#231F20" stroke-miterlimit="10" x1="0.586" y1="100.163" x2="122.012" y2="98.163"/> <line fill="none" stroke="#231F20" stroke-miterlimit="10" x1="122.012" y1="98.163" x2="182.512" y2="28.413"/> <line fill="none" stroke="#231F20" stroke-miterlimit="10" x1="0.512" y1="102.663" x2="122.012" y2="101.913"/> <line fill="none" stroke="#231F20" stroke-miterlimit="10" x1="122.012" y1="101.913" x2="182.512" y2="32.413"/> <polygon fill="#E5DF0E" points="24.262,65.413 59.512,18.538 160.512,20.1 126.512,65.413 "/> <polygon fill="#2EB737" points="59.254,42.78 61.262,29.62 89.262,43.6 84.637,52.913 80.262,60.413 "/> <polygon fill="#182ED3" points="116.262,65.413 96.262,45.95 97.387,35.803 122.262,65.413 "/> <path fill="#F7B0EE" stroke="#F7B0EE" stroke-miterlimit="10" d="M60.262,63.425c0,0-25.5-14.513-18.5-18.513s13.75-4.5,20.75,0 s19.75,11.5,16.75,15.5S60.262,63.425,60.262,63.425z"/> <g> <g> <path d="M77.613,4.841c-2.653,0.975-5.137,4.082-4.455,7.023c0.66,2.846,4.341,2.966,6.602,2.564 c2.576-0.458,4.951-2.518,4.467-5.322c-0.459-2.662-2.984-4.137-5.465-4.444c-1.917-0.237-1.894,2.766,0,3 c1.033,0.128,2.13,0.767,2.476,1.79c0.413,1.22-1.094,1.797-2.006,2.026c-0.75,0.188-2.578,0.462-3.125-0.307 c-0.73-1.027,1.473-3.132,2.305-3.438C80.21,7.072,79.433,4.172,77.613,4.841L77.613,4.841z"/> </g> </g> <g> <g> <path d="M85.932,16.044c1.841-2.624,3.365-5.448,5.125-8.125c1.066-1.622-1.532-3.123-2.59-1.514 c-1.759,2.677-3.283,5.5-5.125,8.125C82.228,16.118,84.83,17.615,85.932,16.044L85.932,16.044z"/> </g> </g> <g> <g> <path d="M90.262,8.038c0.628-0.05,1.271-0.058,1.892,0.061c0.275,0.052,0.528,0.129,0.771,0.266 C92.832,8.312,92.979,8.17,92.9,8.51c-0.076,0.327-1.285,0.444-1.609,0.478c-0.718,0.076-1.692,0.079-2.256-0.021 c-1.891-0.339-2.699,2.552-0.797,2.893c2.563,0.459,6.878,0.351,7.611-2.79c0.771-3.306-3.126-4.228-5.587-4.031 C88.347,5.191,88.332,8.192,90.262,8.038L90.262,8.038z"/> </g> </g> <g> <g> <path d="M97.583,14.687c0.264-1.801,0.682-3.621,1.594-5.211c1.06-1.846,4.397-0.809,6.085-0.688c1.932,0.139,1.918-2.862,0-3 c-2.425-0.174-5.544-1.002-7.569,0.854c-1.944,1.782-2.634,4.735-3.002,7.248C94.413,15.78,97.304,16.595,97.583,14.687 L97.583,14.687z"/> </g> </g> <g> <g> <path d="M96.512,13.288c1.665-0.128,3.329-0.242,5-0.25c1.934-0.01,1.935-3.01,0-3c-1.671,0.008-3.335,0.122-5,0.25 C94.596,10.435,94.581,13.436,96.512,13.288L96.512,13.288z"/> </g> </g> <g> <g> <path d="M96.262,16.413c1.749,0.125,3.496,0.241,5.25,0.25c1.936,0.01,1.934-2.99,0-3c-1.754-0.009-3.501-0.125-5.25-0.25 C94.33,13.275,94.344,16.276,96.262,16.413L96.262,16.413z"/> </g> </g> <g> <g> <path d="M108.208,15.562c0.725-2.591,1.819-5.38,3.864-7.213c-0.785-0.101-1.57-0.202-2.355-0.304 c1.331,2.249,1.87,4.84,3.375,7c0.599,0.859,1.559,0.929,2.355,0.304c2.678-2.101,2.531-5.913,4.109-8.679 c0.961-1.683-1.632-3.193-2.59-1.514c-1.397,2.448-1.35,6.273-3.641,8.071c0.785,0.101,1.57,0.202,2.355,0.304 c-1.5-2.154-2.044-4.753-3.375-7c-0.513-0.866-1.638-0.947-2.355-0.304c-2.417,2.166-3.778,5.47-4.636,8.537 C104.793,16.63,107.688,17.422,108.208,15.562L108.208,15.562z"/> </g> </g> <g> <g> <path d="M120.307,15.794c1.724-2.759,4.521-4.425,5.651-7.608c0.649-1.828-2.25-2.607-2.893-0.798 c-0.983,2.766-3.817,4.44-5.349,6.892C116.688,15.927,119.285,17.431,120.307,15.794L120.307,15.794z"/> </g> </g> <g> <g> <path d="M126.932,15.669c1.107-2.471,1.498-5.225,2.75-7.625c-0.914-0.119-1.827-0.239-2.741-0.358 c1.146,2.793,1.367,6.417,4.189,8.146c0.85,0.521,1.922,0.01,2.203-0.896c0.652-2.103,0.844-4.363,1.724-6.392 c0.762-1.755-1.822-3.285-2.59-1.514c-0.995,2.293-1.29,4.736-2.026,7.108c0.734-0.299,1.469-0.598,2.203-0.896 c-1.872-1.147-2.04-4.478-2.811-6.354c-0.449-1.095-2.075-1.634-2.741-0.358c-1.265,2.424-1.641,5.147-2.75,7.625 C123.558,15.905,126.143,17.433,126.932,15.669L126.932,15.669z"/> </g> </g> <g> <g> <path d="M141.387,13.788c0.827,0.005,1.674-0.007,2.483,0.181c0.192,0.064,0.207,0.061,0.045-0.01 c0.695,0.305-0.684-1.25-0.177-1.771c0.335-0.345-0.32,0.112-0.11,0.03c-1.029,0.401-2.294,0.551-3.381,0.368 c-1.168-0.197-1.802-0.959-0.894-2.11c0.997-1.263,3.225-2.476,4.885-2.241c1.891,0.268,2.706-2.622,0.797-2.893 c-3.182-0.451-6.886,1.245-8.533,4.037c-1.616,2.737,0.279,5.65,3.152,6.134c1.981,0.334,4.601,0.135,6.205-1.204 c1.016-0.847,0.58-2.213-0.337-2.888c-1.041-0.766-2.937-0.625-4.136-0.633C139.451,10.775,139.453,13.775,141.387,13.788 L141.387,13.788z"/> </g> </g> <g> <g> <path d="M41.911,70.859c0.311-0.11,0.638-0.246,0.97-0.272c-0.169,0.013-0.373-0.642-0.269-0.223 c0.1,0.403-0.273,1.373-0.439,1.87c-0.453,1.357-1.133,2.615-1.706,3.922c-0.769,1.754,1.815,3.282,2.591,1.514 c0.902-2.058,2.083-4.083,2.444-6.328c0.474-2.95-1.688-4.335-4.389-3.375C39.304,68.609,40.083,71.508,41.911,70.859 L41.911,70.859z"/> </g> </g> <g> <g> <path d="M50.262,75.913c1.935,0,1.935-3,0-3S48.327,75.913,50.262,75.913L50.262,75.913z"/> </g> </g> <g> <g> <path d="M56.512,71.413c0.417,0,0.833,0,1.25,0c-0.5-0.5-1-1-1.5-1.5c0.151,2.16-0.856,4.111-1.795,5.993 c-0.861,1.726,1.727,3.245,2.591,1.514c1.167-2.339,2.393-4.821,2.205-7.507c-0.057-0.815-0.639-1.5-1.5-1.5 c-0.417,0-0.833,0-1.25,0C54.577,68.413,54.577,71.413,56.512,71.413L56.512,71.413z"/> </g> </g> <g> <g> <path d="M64.701,68.602c-1.921,1.65-2.787,4.733-1.675,7.071c1.141,2.398,4.363,2.932,6.449,1.43 c3.932-2.83,2.594-10.747-3.112-9.137c-1.859,0.524-1.068,3.419,0.798,2.893c2.348-0.663,1.774,2.693,0.667,3.747 c-0.736,0.699-1.937,0.384-2.215-0.543c-0.362-1.21,0.31-2.567,1.209-3.34C68.292,69.46,66.16,67.348,64.701,68.602 L64.701,68.602z"/> </g> </g> <g> <g> <path d="M76.012,75.663c1.935,0,1.935-3,0-3S74.077,75.663,76.012,75.663L76.012,75.663z"/> </g> </g> <g> <g> <path d="M82.411,70.609c0.605-0.119,1.138,0.077,1.702,0.25c-0.367-0.482-0.734-0.964-1.101-1.446 c-0.094,2.665-1.403,5.113-1.75,7.75c-0.252,1.914,2.751,1.89,3,0c0.35-2.657,1.654-5.025,1.75-7.75 c0.024-0.678-0.478-1.255-1.101-1.446c-1.123-0.345-2.143-0.479-3.298-0.25C79.716,68.09,80.521,70.982,82.411,70.609 L82.411,70.609z"/> </g> </g> <g> <g> <path d="M93.012,77.163c-0.172-2.462,0.548-4.593,1.446-6.852c0.497-1.249-1.161-2.35-2.203-1.693 c-1.8,1.132-2.84,2.979-4.5,4.25c-1.217,0.931-0.783,2.619,0.757,2.795c1.995,0.229,4.005,0.271,6,0.5 c1.92,0.22,1.899-2.783,0-3c-1.995-0.229-4.005-0.271-6-0.5c0.252,0.932,0.505,1.863,0.757,2.795 c1.641-1.255,2.759-3.154,4.5-4.25c-0.734-0.564-1.469-1.129-2.203-1.693c-0.993,2.495-1.743,4.932-1.554,7.648 C90.146,79.082,93.146,79.094,93.012,77.163L93.012,77.163z"/> </g> </g> </g> </g> </svg>
lukephills/KollektivGallery
wp-content/themes/KollektivGallery/assets/images/manual-blocks/V-block.svg.php
PHP
gpl-2.0
10,094
/* Copyright_License { XCSoar Glide Computer - http://www.xcsoar.org/ Copyright (C) 2000-2012 The XCSoar Project A detailed list of copyright holders can be found in the file "AUTHORS". 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 "Dialogs/Dialogs.h" #include "Dialogs/Internal.hpp" #include "Dialogs/CallBackTable.hpp" #include "UIGlobals.hpp" #include "Look/IconLook.hpp" #include "StatusPanels/FlightStatusPanel.hpp" #include "StatusPanels/TaskStatusPanel.hpp" #include "StatusPanels/RulesStatusPanel.hpp" #include "StatusPanels/SystemStatusPanel.hpp" #include "StatusPanels/TimesStatusPanel.hpp" #include "Screen/Key.h" #include "Protection.hpp" #include "Hardware/Battery.hpp" #include "Formatter/Units.hpp" #include "Logger/Logger.hpp" #include "Math/FastMath.h" #include "LocalTime.hpp" #include "Components.hpp" #include "Task/ProtectedTaskManager.hpp" #include "Compiler.h" #include "Form/TabBar.hpp" #include "Screen/Layout.hpp" #include <assert.h> #include <stdio.h> #include <algorithm> static WndForm *wf = NULL; static TabBarControl *wTabBar; static int status_page = 0; static void SetTitle() { StaticString<128> title; title.Format(_T("%s: %s"), _("Status"), wTabBar->GetButtonCaption((wTabBar->GetCurrentPage()))); wf->SetCaption(title); } static void OnCloseClicked(gcc_unused WndButton &button) { wf->SetModalResult(mrOK); } static gcc_constexpr_data CallBackTableEntry CallBackTable[] = { DeclareCallBackEntry(OnCloseClicked), DeclareCallBackEntry(NULL) }; void dlgStatusShowModal(int start_page) { wf = LoadDialog(CallBackTable, UIGlobals::GetMainWindow(), Layout::landscape ? _T("IDR_XML_STATUS_L") : _T("IDR_XML_STATUS")); assert(wf); wTabBar = ((TabBarControl *)wf->FindByName(_T("TabBar"))); assert(wTabBar != NULL); wTabBar->SetPageFlippedCallback(SetTitle); const NMEAInfo &basic = CommonInterface::Basic(); const Waypoint *nearest_waypoint = basic.location_available ? way_points.GetNearest(CommonInterface::Basic().location, fixed(100000)) : NULL; /* setup tabs */ const bool enable_icons = CommonInterface::GetUISettings().dialog.tab_style == DialogSettings::TabStyle::Icon; const DialogLook &look = UIGlobals::GetDialogLook(); const IconLook &icons = UIGlobals::GetIconLook(); const Bitmap *FlightIcon = enable_icons ? &icons.hBmpTabFlight : NULL; const Bitmap *SystemIcon = enable_icons ? &icons.hBmpTabSystem : NULL; const Bitmap *TaskIcon = enable_icons ? &icons.hBmpTabTask : NULL; const Bitmap *RulesIcon = enable_icons ? &icons.hBmpTabRules : NULL; const Bitmap *TimesIcon = enable_icons ? &icons.hBmpTabTimes : NULL; Widget *flight_panel = new FlightStatusPanel(look, nearest_waypoint); wTabBar->AddTab(flight_panel, _T("Flight"), false, FlightIcon); Widget *system_panel = new SystemStatusPanel(look); wTabBar->AddTab(system_panel, _T("System"), false, SystemIcon); Widget *task_panel = new TaskStatusPanel(look); wTabBar->AddTab(task_panel, _T("Task"), false, TaskIcon); Widget *rules_panel = new RulesStatusPanel(look); wTabBar->AddTab(rules_panel, _T("Rules"), false, RulesIcon); Widget *times_panel = new TimesStatusPanel(look); wTabBar->AddTab(times_panel, _T("Times"), false, TimesIcon); /* restore previous page */ if (start_page != -1) { status_page = start_page; } wTabBar->SetCurrentPage(status_page); SetTitle(); wf->ShowModal(); /* save page number for next time this dialog is opened */ status_page = wTabBar->GetCurrentPage(); delete wf; }
damianob/xcsoar_mess
src/Dialogs/dlgStatus.cpp
C++
gpl-2.0
4,249
#include "PasswordEntry.h" LoggerPtr PasswordEntryLogger = Logger::getLogger("PasswordEntry"); PasswordEntry::PasswordEntry() { //ctor } PasswordEntry::~PasswordEntry() { //dtor } unsigned int PasswordEntry::get_id() { return m_ID; } void PasswordEntry::set_id(unsigned int val) { m_ID = val; } string PasswordEntry::get_name() { return m_name; } void PasswordEntry::set_name(string val) { m_name = val; } string PasswordEntry::get_description() { return m_description; } void PasswordEntry::set_description(string val) { m_description = val; } string PasswordEntry::get_login_url() { return m_login_url; } void PasswordEntry::set_login_url(string val) { m_login_url = val; } string PasswordEntry::get_email() { return m_email; } void PasswordEntry::set_email(string val) { m_email = val; } string PasswordEntry::get_username() { return m_username; } void PasswordEntry::set_username(string val) { m_username = val; } string PasswordEntry::get_password() { return m_password; } void PasswordEntry::set_password(string val) { m_password = val; } string PasswordEntry::get_password_hint() { return m_password_hint; } void PasswordEntry::set_password_hint(string val) { m_password_hint = val; }
leonard-man/password_storage
password_server/password_storage/src/PasswordEntry.cpp
C++
gpl-2.0
1,283
/* * Copyright (c) 2004 Szombathelyi György <gyurco@freemail.hu> * * 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 library 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 * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public License * along with this library; see the file COPYING.LIB. If not, write to * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301, USA. **/ #ifndef _SID_H_ #define _SID_H_ #include <qstring.h> class SID { public: SID(); SID( const QString &sid ); SID( const SID &sid ); ~SID(); bool operator== ( const SID &sid ) const; bool operator!= ( const SID &sid ) const; bool isEmpty() const; void setSID( const QString &sid ); void setRID( const QString &rid ); void setRID( uint rid ); void setDOM( const QString &dom ); const QString &getSID() const; uint getRID() const ; const QString &getDOM() const; static uint uid2rid( uint uid ); static uint gid2rid( uint gid ); static void setAlgRidBase( uint base ) { mAlgRidBase = base; }; static uint getAlgRidBase() { return mAlgRidBase; }; private: void updateSID(); QString mSid, mDom; uint mRid; static uint mAlgRidBase; }; #endif //_SID_H_
iegor/kdeadmin
kuser/sid.h
C
gpl-2.0
1,585
/* * linux/arch/arm/kernel/smp.c * * Copyright (C) 2002 ARM Limited, 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 as * published by the Free Software Foundation. */ #include <linux/module.h> #include <linux/delay.h> #include <linux/init.h> #include <linux/spinlock.h> #include <linux/sched.h> #include <linux/interrupt.h> #include <linux/cache.h> #include <linux/profile.h> #include <linux/errno.h> #include <linux/ftrace.h> #include <linux/mm.h> #include <linux/err.h> #include <linux/cpu.h> #include <linux/smp.h> #include <linux/seq_file.h> #include <linux/irq.h> #include <linux/percpu.h> #include <linux/clockchips.h> #include <linux/completion.h> #include <asm/atomic.h> #include <asm/cacheflush.h> #include <asm/cpu.h> #include <asm/cputype.h> #include <asm/mmu_context.h> #include <asm/pgtable.h> #include <asm/pgalloc.h> #include <asm/processor.h> #include <asm/sections.h> #include <asm/tlbflush.h> #include <asm/ptrace.h> #include <asm/localtimer.h> #include <mach/sec_debug.h> /* * as from 2.5, kernels no longer have an init_tasks structure * so we need some other way of telling a new secondary core * where to place its SVC stack */ struct secondary_data secondary_data; enum ipi_msg_type { IPI_TIMER = 2, IPI_RESCHEDULE, IPI_CALL_FUNC, IPI_CALL_FUNC_SINGLE, IPI_CPU_STOP, IPI_CPU_BACKTRACE, }; int __cpuinit __cpu_up(unsigned int cpu) { struct cpuinfo_arm *ci = &per_cpu(cpu_data, cpu); struct task_struct *idle = ci->idle; pgd_t *pgd; int ret; /* * Spawn a new process manually, if not already done. * Grab a pointer to its task struct so we can mess with it */ if (!idle) { idle = fork_idle(cpu); if (IS_ERR(idle)) { printk(KERN_ERR "CPU%u: fork() failed\n", cpu); return PTR_ERR(idle); } ci->idle = idle; } else { /* * Since this idle thread is being re-used, call * init_idle() to reinitialize the thread structure. */ init_idle(idle, cpu); } /* * Allocate initial page tables to allow the new CPU to * enable the MMU safely. This essentially means a set * of our "standard" page tables, with the addition of * a 1:1 mapping for the physical address of the kernel. */ pgd = pgd_alloc(&init_mm); if (!pgd) return -ENOMEM; if (PHYS_OFFSET != PAGE_OFFSET) { #ifndef CONFIG_HOTPLUG_CPU identity_mapping_add(pgd, __pa(__init_begin), __pa(__init_end)); #endif identity_mapping_add(pgd, __pa(_stext), __pa(_etext)); identity_mapping_add(pgd, __pa(_sdata), __pa(_edata)); } /* * We need to tell the secondary core where to find * its stack and the page tables. */ secondary_data.stack = task_stack_page(idle) + THREAD_START_SP; secondary_data.pgdir = virt_to_phys(pgd); secondary_data.swapper_pg_dir = virt_to_phys(swapper_pg_dir); __cpuc_flush_dcache_area(&secondary_data, sizeof(secondary_data)); outer_clean_range(__pa(&secondary_data), __pa(&secondary_data + 1)); /* * Now bring the CPU into our world. */ ret = boot_secondary(cpu, idle); if (ret == 0) { unsigned long timeout; /* * CPU was successfully started, wait for it * to come online or time out. */ timeout = jiffies + HZ; while (time_before(jiffies, timeout)) { if (cpu_online(cpu)) break; udelay(10); barrier(); } if (!cpu_online(cpu)) { pr_crit("CPU%u: failed to come online\n", cpu); ret = -EIO; } } else { pr_err("CPU%u: failed to boot: %d\n", cpu, ret); } secondary_data.stack = NULL; secondary_data.pgdir = 0; if (PHYS_OFFSET != PAGE_OFFSET) { #ifndef CONFIG_HOTPLUG_CPU identity_mapping_del(pgd, __pa(__init_begin), __pa(__init_end)); #endif identity_mapping_del(pgd, __pa(_stext), __pa(_etext)); identity_mapping_del(pgd, __pa(_sdata), __pa(_edata)); } pgd_free(&init_mm, pgd); return ret; } #ifdef CONFIG_HOTPLUG_CPU static void percpu_timer_stop(void); /* * __cpu_disable runs on the processor to be shutdown. */ int __cpu_disable(void) { unsigned int cpu = smp_processor_id(); struct task_struct *p; int ret; ret = platform_cpu_disable(cpu); if (ret) return ret; /* * Take this CPU offline. Once we clear this, we can't return, * and we must not schedule until we're ready to give up the cpu. */ set_cpu_online(cpu, false); /* * OK - migrate IRQs away from this CPU */ migrate_irqs(); /* * Stop the local timer for this CPU. */ percpu_timer_stop(); /* * Flush user cache and TLB mappings, and then remove this CPU * from the vm mask set of all processes. */ flush_cache_all(); local_flush_tlb_all(); read_lock(&tasklist_lock); for_each_process(p) { if (p->mm) cpumask_clear_cpu(cpu, mm_cpumask(p->mm)); } read_unlock(&tasklist_lock); return 0; } static DECLARE_COMPLETION(cpu_died); /* * called on the thread which is asking for a CPU to be shutdown - * waits until shutdown has completed, or it is timed out. */ void __cpu_die(unsigned int cpu) { if (!wait_for_completion_timeout(&cpu_died, msecs_to_jiffies(5000))) { pr_err("CPU%u: cpu didn't die\n", cpu); return; } printk(KERN_NOTICE "CPU%u: shutdown\n", cpu); if (!platform_cpu_kill(cpu)) printk("CPU%u: unable to kill\n", cpu); } /* * Called from the idle thread for the CPU which has been shutdown. * * Note that we disable IRQs here, but do not re-enable them * before returning to the caller. This is also the behaviour * of the other hotplug-cpu capable cores, so presumably coming * out of idle fixes this. */ void __ref cpu_die(void) { unsigned int cpu = smp_processor_id(); idle_task_exit(); local_irq_disable(); mb(); /* Tell __cpu_die() that this CPU is now safe to dispose of */ complete(&cpu_died); /* * actual CPU shutdown procedure is at least platform (if not * CPU) specific. */ platform_cpu_die(cpu); /* * Do not return to the idle loop - jump back to the secondary * cpu initialisation. There's some initialisation which needs * to be repeated to undo the effects of taking the CPU offline. */ __asm__("mov sp, %0\n" " mov fp, #0\n" " b secondary_start_kernel" : : "r" (task_stack_page(current) + THREAD_SIZE - 8)); } #endif /* CONFIG_HOTPLUG_CPU */ /* * Called by both boot and secondaries to move global data into * per-processor storage. */ static void __cpuinit smp_store_cpu_info(unsigned int cpuid) { struct cpuinfo_arm *cpu_info = &per_cpu(cpu_data, cpuid); cpu_info->loops_per_jiffy = loops_per_jiffy; } /* * Skip the secondary calibration on architectures sharing clock * with primary cpu. Archs can use ARCH_SKIP_SECONDARY_CALIBRATE * for this. */ static inline int skip_secondary_calibrate(void) { #ifdef CONFIG_ARCH_SKIP_SECONDARY_CALIBRATE return 0; #else return -ENXIO; #endif } /* * This is the secondary CPU boot entry. We're using this CPUs * idle thread stack, but a set of temporary page tables. */ asmlinkage void __cpuinit secondary_start_kernel(void) { struct mm_struct *mm = &init_mm; unsigned int cpu = smp_processor_id(); /* * All kernel threads share the same mm context; grab a * reference and switch to it. */ atomic_inc(&mm->mm_count); current->active_mm = mm; cpumask_set_cpu(cpu, mm_cpumask(mm)); cpu_switch_mm(mm->pgd, mm); enter_lazy_tlb(mm, current); local_flush_tlb_all(); printk("CPU%u: Booted secondary processor\n", cpu); cpu_init(); preempt_disable(); trace_hardirqs_off(); /* * Give the platform a chance to do its own initialisation. */ platform_secondary_init(cpu); notify_cpu_starting(cpu); if (skip_secondary_calibrate()) calibrate_delay(); smp_store_cpu_info(cpu); /* * OK, now it's safe to let the boot CPU continue. Wait for * the CPU migration code to notice that the CPU is online * before we continue. */ set_cpu_online(cpu, true); /* * Setup the percpu timer for this CPU. */ percpu_timer_setup(); local_irq_enable(); local_fiq_enable(); /* * OK, it's off to the idle thread for us */ cpu_idle(); } void __init smp_cpus_done(unsigned int max_cpus) { int cpu; unsigned long bogosum = 0; for_each_online_cpu(cpu) bogosum += per_cpu(cpu_data, cpu).loops_per_jiffy; printk(KERN_INFO "SMP: Total of %d processors activated " "(%lu.%02lu BogoMIPS).\n", num_online_cpus(), bogosum / (500000/HZ), (bogosum / (5000/HZ)) % 100); } void __init smp_prepare_boot_cpu(void) { unsigned int cpu = smp_processor_id(); per_cpu(cpu_data, cpu).idle = current; } void __init smp_prepare_cpus(unsigned int max_cpus) { unsigned int ncores = num_possible_cpus(); smp_store_cpu_info(smp_processor_id()); /* * are we trying to boot more cores than exist? */ if (max_cpus > ncores) max_cpus = ncores; if (max_cpus > 1) { /* * Enable the local timer or broadcast device for the * boot CPU, but only if we have more than one CPU. */ percpu_timer_setup(); /* * Initialise the SCU if there are more than one CPU * and let them know where to start. */ platform_smp_prepare_cpus(max_cpus); } } static void (*smp_cross_call)(const struct cpumask *, unsigned int); void __init set_smp_cross_call(void (*fn)(const struct cpumask *, unsigned int)) { smp_cross_call = fn; } void arch_send_call_function_ipi_mask(const struct cpumask *mask) { smp_cross_call(mask, IPI_CALL_FUNC); } void arch_send_call_function_single_ipi(int cpu) { smp_cross_call(cpumask_of(cpu), IPI_CALL_FUNC_SINGLE); } static const char *ipi_types[NR_IPI] = { #define S(x,s) [x - IPI_TIMER] = s S(IPI_TIMER, "Timer broadcast interrupts"), S(IPI_RESCHEDULE, "Rescheduling interrupts"), S(IPI_CALL_FUNC, "Function call interrupts"), S(IPI_CALL_FUNC_SINGLE, "Single function call interrupts"), S(IPI_CPU_STOP, "CPU stop interrupts"), S(IPI_CPU_BACKTRACE, "CPU backtrace"), }; void show_ipi_list(struct seq_file *p, int prec) { unsigned int cpu, i; for (i = 0; i < NR_IPI; i++) { seq_printf(p, "%*s%u: ", prec - 1, "IPI", i); for_each_present_cpu(cpu) seq_printf(p, "%10u ", __get_irq_stat(cpu, ipi_irqs[i])); seq_printf(p, " %s\n", ipi_types[i]); } } u64 smp_irq_stat_cpu(unsigned int cpu) { u64 sum = 0; int i; for (i = 0; i < NR_IPI; i++) sum += __get_irq_stat(cpu, ipi_irqs[i]); #ifdef CONFIG_LOCAL_TIMERS sum += __get_irq_stat(cpu, local_timer_irqs); #endif return sum; } /* * Timer (local or broadcast) support */ static DEFINE_PER_CPU(struct clock_event_device, percpu_clockevent); static void ipi_timer(void) { struct clock_event_device *evt = &__get_cpu_var(percpu_clockevent); evt->event_handler(evt); } #ifdef CONFIG_LOCAL_TIMERS asmlinkage void __exception_irq_entry do_local_timer(struct pt_regs *regs) { struct pt_regs *old_regs = set_irq_regs(regs); int cpu = smp_processor_id(); if (local_timer_ack()) { __inc_irq_stat(cpu, local_timer_irqs); irq_enter(); ipi_timer(); irq_exit(); } set_irq_regs(old_regs); } void show_local_irqs(struct seq_file *p, int prec) { unsigned int cpu; seq_printf(p, "%*s: ", prec, "LOC"); for_each_present_cpu(cpu) seq_printf(p, "%10u ", __get_irq_stat(cpu, local_timer_irqs)); seq_printf(p, " Local timer interrupts\n"); } #endif #ifdef CONFIG_GENERIC_CLOCKEVENTS_BROADCAST static void smp_timer_broadcast(const struct cpumask *mask) { smp_cross_call(mask, IPI_TIMER); } #else #define smp_timer_broadcast NULL #endif static void broadcast_timer_set_mode(enum clock_event_mode mode, struct clock_event_device *evt) { } static void __cpuinit broadcast_timer_setup(struct clock_event_device *evt) { evt->name = "dummy_timer"; evt->features = CLOCK_EVT_FEAT_ONESHOT | CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_DUMMY; evt->rating = 400; evt->mult = 1; evt->set_mode = broadcast_timer_set_mode; clockevents_register_device(evt); } void __cpuinit percpu_timer_setup(void) { unsigned int cpu = smp_processor_id(); struct clock_event_device *evt = &per_cpu(percpu_clockevent, cpu); evt->cpumask = cpumask_of(cpu); evt->broadcast = smp_timer_broadcast; if (local_timer_setup(evt)) broadcast_timer_setup(evt); } #ifdef CONFIG_HOTPLUG_CPU /* * The generic clock events code purposely does not stop the local timer * on CPU_DEAD/CPU_DEAD_FROZEN hotplug events, so we have to do it * manually here. */ static void percpu_timer_stop(void) { unsigned int cpu = smp_processor_id(); struct clock_event_device *evt = &per_cpu(percpu_clockevent, cpu); evt->set_mode(CLOCK_EVT_MODE_UNUSED, evt); } #endif static DEFINE_SPINLOCK(stop_lock); /* * ipi_cpu_stop - handle IPI from smp_send_stop() */ static void ipi_cpu_stop(unsigned int cpu) { if (system_state == SYSTEM_BOOTING || system_state == SYSTEM_RUNNING) { spin_lock(&stop_lock); printk(KERN_CRIT "CPU%u: stopping\n", cpu); dump_stack(); spin_unlock(&stop_lock); } set_cpu_online(cpu, false); local_fiq_disable(); local_irq_disable(); flush_cache_all(); local_flush_tlb_all(); while (1) cpu_relax(); } static cpumask_t backtrace_mask; static DEFINE_RAW_SPINLOCK(backtrace_lock); /* "in progress" flag of arch_trigger_all_cpu_backtrace */ static unsigned long backtrace_flag; void smp_send_all_cpu_backtrace(void) { unsigned int this_cpu = smp_processor_id(); int i; if (test_and_set_bit(0, &backtrace_flag)) /* * If there is already a trigger_all_cpu_backtrace() in progress * (backtrace_flag == 1), don't output double cpu dump infos. */ return; cpumask_copy(&backtrace_mask, cpu_online_mask); cpu_clear(this_cpu, backtrace_mask); pr_info("Backtrace for cpu %d (current):\n", this_cpu); dump_stack(); pr_info("\nsending IPI to all other CPUs:\n"); smp_cross_call(&backtrace_mask, IPI_CPU_BACKTRACE); /* Wait for up to 10 seconds for all other CPUs to do the backtrace */ for (i = 0; i < 10 * 1000; i++) { if (cpumask_empty(&backtrace_mask)) break; mdelay(1); } clear_bit(0, &backtrace_flag); smp_mb__after_clear_bit(); } /* * ipi_cpu_backtrace - handle IPI from smp_send_all_cpu_backtrace() */ static void ipi_cpu_backtrace(unsigned int cpu, struct pt_regs *regs) { if (cpu_isset(cpu, backtrace_mask)) { raw_spin_lock(&backtrace_lock); pr_warning("IPI backtrace for cpu %d\n", cpu); show_regs(regs); raw_spin_unlock(&backtrace_lock); cpu_clear(cpu, backtrace_mask); } } /* * Main handler for inter-processor interrupts */ asmlinkage void __exception_irq_entry do_IPI(int ipinr, struct pt_regs *regs) { unsigned int cpu = smp_processor_id(); struct pt_regs *old_regs = set_irq_regs(regs); if (ipinr >= IPI_TIMER && ipinr < IPI_TIMER + NR_IPI) __inc_irq_stat(cpu, ipi_irqs[ipinr - IPI_TIMER]); sec_debug_irq_log(ipinr, do_IPI, 1); switch (ipinr) { case IPI_TIMER: irq_enter(); ipi_timer(); irq_exit(); break; case IPI_RESCHEDULE: scheduler_ipi(); break; case IPI_CALL_FUNC: irq_enter(); generic_smp_call_function_interrupt(); irq_exit(); break; case IPI_CALL_FUNC_SINGLE: irq_enter(); generic_smp_call_function_single_interrupt(); irq_exit(); break; case IPI_CPU_STOP: irq_enter(); ipi_cpu_stop(cpu); irq_exit(); break; default: printk(KERN_CRIT "CPU%u: Unknown IPI message 0x%x\n", cpu, ipinr); break; } sec_debug_irq_log(ipinr, do_IPI, 2); set_irq_regs(old_regs); } void smp_send_reschedule(int cpu) { smp_cross_call(cpumask_of(cpu), IPI_RESCHEDULE); } void smp_send_stop(void) { unsigned long timeout; if (num_online_cpus() > 1) { cpumask_t mask = cpu_online_map; cpu_clear(smp_processor_id(), mask); smp_cross_call(&mask, IPI_CPU_STOP); } /* Wait up to one second for other CPUs to stop */ timeout = USEC_PER_SEC; while (num_online_cpus() > 1 && timeout--) udelay(1); if (num_online_cpus() > 1) pr_warning("SMP: failed to stop secondary CPUs\n"); } /* * not supported here */ int setup_profiling_timer(unsigned int multiplier) { return -EINVAL; } static void flush_all_cpu_cache(void *info) { flush_cache_all(); } void flush_all_cpu_caches(void) { on_each_cpu(flush_all_cpu_cache, NULL, 1); }
bgn9000/Dragon-Shiryu
arch/arm/kernel/smp.c
C
gpl-2.0
16,017
#!/usr/bin/python # -*- coding: utf-8 -*- # def add(x, y): a=1 while a>0: a = x & y b = x ^ y x = b y = a << 1 return b def vowel_count(word): vowels_counter = 0 for letter in word: if letter.isalpha(): if letter.upper() in 'AEIOUY': vowels_counter += 1 return vowels_counter if __name__ == '__main__': # Assignment N 1 text="Proin eget tortor risus. Cras ultricies ligula sed magna dictum porta. Proin eget tortor risus. Curabitur non nulla sit amet nisl tempus convallis quis ac lectus. Donec rutrum congue leo eget malesuada." list=text.split() max_vowel_number=0 for i in range(0,len(list)-1): print "word=",list[i]," number of vowels",vowel_count(list[i]) if vowel_count(list[i])>max_vowel_number: max_vowel_number=vowel_count(list[i]) print "Maximum number of vowels is",max_vowel_number # Assignment N 2 text="Proin eget tortor risus. Cras ultricies ligula sed magna dictum porta. Proin eget tortor risus. Curabitur non nulla sit amet nisl tempus convallis quis ac lectus. Donec rutrum congue leo eget malesuada." list=text.split() length=len(list[0]) words=[] words.append(list[0]) for i in range(1,len(list)-1): if length<len(list[i]): length=len(list[i]) words[:] = [] words.append(list[i]) elif length==len(list[i]): words.append(list[i]) print "maximum length=",length,"words are",words # Assignment N 3 text="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla quis lorem ut libero malesuada feugiat. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec rutrum congue leo eget malesuada. Cras ultricies ligula sed magna dictum porta." list=text.split() i=len(text)-1 mirrored_text='' while i>=0: mirrored_text=mirrored_text+(text[i]) i-=1 print mirrored_text # Assignment N 4 import os content=dir(os) content_len=len(content) for k in range(0,content_len-1): s="os"+"."+content[k]+".__doc__" print(eval(s)) import sys content=dir(sys) content_len=len(content) for k in range(0,content_len-1): s="sys"+"."+content[k]+".__doc__" print(eval(s)) # Assignment N 5 input=12345 a=str(input) str_len=len(a) i=0 total=int(a[i]) while i<str_len-1: total=add(total,int(a[add(i,1)])) i=add(i,1) print total
pybursa/homeworks
a_lusher/hw3/Lusher_Alexander_home_work_3_.py
Python
gpl-2.0
2,380
<?php // $Id: create.php 12986 2011-03-18 11:15:50Z abourguignon $ /** * CLAROLINE * * This script manages the creation of a course. * It contains 3 panels: * - Form * - Wait * - Done * * @version $Revision: 12986 $ * @copyright (c) 2001-2011, Universite catholique de Louvain (UCL) * @license http://www.gnu.org/copyleft/gpl.html (GPL) GENERAL PUBLIC LICENSE * @see http://www.claroline.net/wiki/CLCRS/ * @package COURSE * old version : http://cvs.claroline.net/cgi-bin/viewcvs.cgi/claroline/claroline/create_course/add_course.php * @author Claro Team <cvs@claroline.net> * @since 1.9 */ require '../inc/claro_init_global.inc.php'; //================================= // Security check //================================= if ( ! claro_is_user_authenticated() ) claro_disp_auth_form(); if ( ! claro_is_allowed_to_create_course() ) claro_die(get_lang('Not allowed')); //================================= // Main section //================================= include claro_get_conf_repository() . 'course_main.conf.php'; require_once get_path('incRepositorySys') . '/lib/add_course.lib.inc.php'; require_once get_path('incRepositorySys') . '/lib/course.lib.inc.php'; require_once get_path('incRepositorySys') . '/lib/course_user.lib.php'; require_once get_path('incRepositorySys') . '/lib/user.lib.php'; // for claro_get_uid_of_platform_admin() require_once get_path('incRepositorySys') . '/lib/fileManage.lib.php'; require_once get_path('incRepositorySys') . '/lib/form.lib.php'; require_once get_path('incRepositorySys') . '/lib/sendmail.lib.php'; require_once get_path('incRepositorySys') . '/lib/claroCourse.class.php'; define('DISP_COURSE_CREATION_FORM' ,__LINE__); define('DISP_COURSE_CREATION_SUCCEED' ,__LINE__); define('DISP_COURSE_CREATION_FAILED' ,__LINE__); define('DISP_COURSE_CREATION_PROGRESS' ,__LINE__); $display = DISP_COURSE_CREATION_FORM; // default display $dialogBox = new DialogBox(); $cmd = isset($_REQUEST['cmd']) ? $_REQUEST['cmd'] : null; $adminContext = isset($_REQUEST['adminContext']) ? (bool) $_REQUEST['adminContext'] : null; // $sourceCourseId has a value only if we're about to create a session course; it's null otherwise $sourceCourseId = isset($_REQUEST['course_sourceCourseId']) ? (int) $_REQUEST['course_sourceCourseId'] : null; // New course object $thisUser = claro_get_current_user_data(); $course = new ClaroCourse($thisUser['firstName'], $thisUser['lastName'], $thisUser['mail']); if (!is_null($sourceCourseId)) { $course->sourceCourseId = $sourceCourseId; } if ( $adminContext && claro_is_platform_admin() ) { // From admin, add param to form $course->addHtmlParam('adminContext','1'); } if ( claro_is_platform_admin() || get_conf('courseCreationAllowed', true) ) { if ( $cmd == 'exEdit' ) { $course->handleForm(); if( $course->validate() ) { if( $course->save() ) { /* require_once ZEND_LIB_PATH . 'Zend/Http/Client.php'; $client = new Zend_Http_Client('http://skill.teamrocketscience.ru/api/create/type/treeNode/parentId/1'); $client->setParameterPost('name', $course->title); $client->request('POST'); //*/ // include the platform language file with all language variables language::load_translation(); language::load_locale_settings(); $course->mailAdministratorOnCourseCreation($thisUser['firstName'], $thisUser['lastName'], $thisUser['mail']); $dialogBox->success( get_lang('You have just created the course website') . ' : ' . '<strong>' . $course->officialCode . '</strong>'); $display = DISP_COURSE_CREATION_SUCCEED; } else { $dialogBox->error( $course->backlog->output() ); $display = DISP_COURSE_CREATION_FAILED; } } else { $dialogBox->error( $course->backlog->output() ); $display = DISP_COURSE_CREATION_FAILED; } } if( $cmd == 'rqProgress' ) { $course->handleForm(); if( $course->validate() ) { // Trig a waiting screen as course creation may take a while... $progressUrl = $course->buildProgressUrl(); $htmlHeadXtra[] = '<meta http-equiv="REFRESH" content="0; URL=' . $progressUrl . '">'; // Display "progression" page $dialogBox->info( get_lang('Creating course (it may take a while) ...') . '<br />' . "\n" . '<p align="center">' . '<img src="' . get_icon_url('processing') . '" alt="" />' . '</p>' . "\n" . '<p>' . get_lang('If after while no message appears confirming the course creation, please click <a href="%url">here</a>',array('%url' => $progressUrl)) . '</p>' ); $display = DISP_COURSE_CREATION_PROGRESS; } else { $dialogBox->error( $course->backlog->output() ); $display = DISP_COURSE_CREATION_FAILED; } } } // Set navigation url if ( $adminContext && claro_is_platform_admin() ) { ClaroBreadCrumbs::getInstance()->prepend( get_lang('Create course'), get_path('clarolineRepositoryWeb') . 'course/create.php?adminContext=1' ); ClaroBreadCrumbs::getInstance()->prepend( get_lang('Administration'), get_path('rootAdminWeb') ); $backUrl = get_path('rootAdminWeb') ; } else { $backUrl = get_path('url') . '/index.php' . claro_url_relay_context('?'); } if ( ! get_conf('courseCreationAllowed', true) ) { $dialogBox->warning(get_lang('Course creation is disabled on the platform')); } //================================= // Display section //================================= $out = ''; $out .= claro_html_tool_title(get_lang('Create a course website')); $out .= $dialogBox->render(); if ( claro_is_platform_admin() || get_conf('courseCreationAllowed', true) ) { if( $display == DISP_COURSE_CREATION_FORM || $display == DISP_COURSE_CREATION_FAILED ) { // display form $out .= $course->displayForm($backUrl); } elseif ( $display == DISP_COURSE_CREATION_PROGRESS ) { // do nothing except displaying dialogBox content } elseif ( $display == DISP_COURSE_CREATION_SUCCEED ) { // display back link $out .= '<p>' . claro_html_cmd_link( htmlspecialchars( $backUrl ), get_lang('Continue') ) . '</p>' . "\n" ; } } $claroline->display->body->appendContent($out); echo $claroline->display->render(); ?>
TeamRocketScience/Claroline-TRS-Edition
claroline/course/create.php
PHP
gpl-2.0
6,957