repo_name
stringlengths
4
116
path
stringlengths
3
942
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
bhumikagoyal/d3_visualization
_platform_ios.html
621
<!DOCTYPE html> <head> <meta charset="utf-8" /> <style> .chart rect.sad-rect { fill: #7777ff; } .chart rect.happy-rect { fill: #f2f233; } .chart { padding: 5px; } .chart text { fill: black; font: 10px sans-serif; } </style> <script src="http://d3js.org/d3.v3.min.js"></script> <script src="locale.js"></script> <body> <p> <h3>Happy/Sad breakdown by locale for Firefox For Android</h3> </p> <p class="extents"></p> <div class="chart-container"></div> <script> call("https://input.mozilla.org/api/v1/feedback/?&product=Firefox%20for%20Android&date_delta=7d"); </script> </body> </html>
gpl-2.0
fasterthanlime/tup-fuseless
test/t5005-hard-link.sh
1110
#! /bin/sh -e # tup - A file-based build system # # Copyright (C) 2008-2017 Mike Shal <[email protected]> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as # published by the Free Software Foundation. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License along # with this program; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. echo "Skip t5005 - not needed?" exit 0 . ./tup.sh echo 'this is a file' > file1 ln file1 file2 cat > Makefile << HERE all: new-file1 new-file2 new-%: % tup link "cp \$< \$@" -i\$< -o\$@ HERE tup touch file1 file2 Makefile update check_exist new-file1 new-file2 rm new-file1 new-file2 tup touch file1 update check_exist new-file1 new-file2 eotup
gpl-2.0
pizcogirl/TrinityCore
src/server/shared/GitRevision.cpp
1344
#include "GitRevision.h" #include "CompilerDefs.h" #include "revision_data.h" char const* GitRevision::GetHash() { return _HASH; } char const* GitRevision::GetDate() { return _DATE; } char const* GitRevision::GetBranch() { return _BRANCH; } char const* GitRevision::GetSourceDirectory() { return _SOURCE_DIRECTORY; } char const* GitRevision::GetMySQLExecutable() { return _MYSQL_EXECUTABLE; } char const* GitRevision::GetFullDatabase() { return _FULL_DATABASE; } char const* GitRevision::GetHotfixesDatabase() { return _HOTFIXES_DATABASE; } #define _PACKAGENAME "TrinityCore" char const* GitRevision::GetFullVersion() { #if PLATFORM == PLATFORM_WINDOWS # ifdef _WIN64 return _PACKAGENAME " rev. " VER_PRODUCTVERSION_STR " (Win64, " _BUILD_DIRECTIVE ")"; # else return _PACKAGENAME " rev. " VER_PRODUCTVERSION_STR " (Win32, " _BUILD_DIRECTIVE ")"; # endif #else return _PACKAGENAME " rev. " VER_PRODUCTVERSION_STR " (Unix, " _BUILD_DIRECTIVE ")"; #endif } char const* GitRevision::GetCompanyNameStr() { return VER_COMPANYNAME_STR; } char const* GitRevision::GetLegalCopyrightStr() { return VER_LEGALCOPYRIGHT_STR; } char const* GitRevision::GetFileVersionStr() { return VER_FILEVERSION_STR; } char const* GitRevision::GetProductVersionStr() { return VER_PRODUCTVERSION_STR; }
gpl-2.0
demonege/sutogo
typo3/sysext/core/Classes/Resource/Driver/AbstractHierarchicalFilesystemDriver.php
3140
<?php namespace TYPO3\CMS\Core\Resource\Driver; /** * This file is part of the TYPO3 CMS project. * * It is free software; you can redistribute it and/or modify it under * the terms of the GNU General Public License, either version 2 * of the License, or any later version. * * For the full copyright and license information, please read the * LICENSE.txt file that was distributed with this source code. * * The TYPO3 project - inspiring people to share! */ /** * Class AbstractHierarchicalFilesystemDriver */ abstract class AbstractHierarchicalFilesystemDriver extends AbstractDriver { /** * Wrapper for \TYPO3\CMS\Core\Utility\GeneralUtility::validPathStr() * * @param string $theFile Filepath to evaluate * @return boolean TRUE if no '/', '..' or '\' is in the $theFile * @see \TYPO3\CMS\Core\Utility\GeneralUtility::validPathStr() */ protected function isPathValid($theFile) { return \TYPO3\CMS\Core\Utility\GeneralUtility::validPathStr($theFile); } /** * Makes sure the Path given as parameter is valid * * @param string $filePath The file path (including the file name!) * @return string * @throws \TYPO3\CMS\Core\Resource\Exception\InvalidPathException */ protected function canonicalizeAndCheckFilePath($filePath) { $filePath = \TYPO3\CMS\Core\Utility\PathUtility::getCanonicalPath($filePath); // filePath must be valid // Special case is required by vfsStream in Unit Test context if (!$this->isPathValid($filePath) && substr($filePath, 0, 6) !== 'vfs://') { throw new \TYPO3\CMS\Core\Resource\Exception\InvalidPathException('File ' . $filePath . ' is not valid (".." and "//" is not allowed in path).', 1320286857); } return $filePath; } /** * Makes sure the Path given as parameter is valid * * @param string $fileIdentifier The file path (including the file name!) * @return string * @throws \TYPO3\CMS\Core\Resource\Exception\InvalidPathException */ protected function canonicalizeAndCheckFileIdentifier($fileIdentifier) { if ($fileIdentifier !== '') { $fileIdentifier = $this->canonicalizeAndCheckFilePath($fileIdentifier); $fileIdentifier = '/' . ltrim($fileIdentifier, '/'); if (!$this->isCaseSensitiveFileSystem()) { $fileIdentifier = strtolower($fileIdentifier); } } return $fileIdentifier; } /** * Makes sure the Path given as parameter is valid * * @param string $folderPath The file path (including the file name!) * @return string */ protected function canonicalizeAndCheckFolderIdentifier($folderPath) { if ($folderPath === '/') { $canonicalizedIdentifier = $folderPath; } else { $canonicalizedIdentifier = rtrim($this->canonicalizeAndCheckFileIdentifier($folderPath), '/') . '/'; } return $canonicalizedIdentifier; } /** * Returns the identifier of the folder the file resides in * * @param string $fileIdentifier * @return mixed */ public function getParentFolderIdentifierOfIdentifier($fileIdentifier) { $fileIdentifier = $this->canonicalizeAndCheckFileIdentifier($fileIdentifier); return \TYPO3\CMS\Core\Utility\PathUtility::dirname($fileIdentifier) . '/'; } }
gpl-2.0
tempbottle/hypertable
src/cc/Tools/rsclient/RangeServerCommandInterpreter.cc
11721
/** -*- c++ -*- * Copyright (C) 2008 Doug Judd (Zvents, Inc.) * * This file is part of Hypertable. * * Hypertable 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, or any later version. * * Hypertable 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 "Common/Compat.h" #include <cassert> #include <cstdio> #include <cstring> #include <boost/progress.hpp> #include <boost/timer.hpp> #include <boost/thread/xtime.hpp> extern "C" { #include <time.h> } #include "AsyncComm/DispatchHandlerSynchronizer.h" #include "Common/Error.h" #include "Common/FileUtils.h" #include "Hypertable/Lib/HqlHelpText.h" #include "Hypertable/Lib/HqlParser.h" #include "Hypertable/Lib/Key.h" #include "Hypertable/Lib/LoadDataSource.h" #include "Hypertable/Lib/RangeState.h" #include "Hypertable/Lib/ScanBlock.h" #include "Hypertable/Lib/ScanSpec.h" #include "Hypertable/Lib/TestSource.h" #include "RangeServerCommandInterpreter.h" #define BUFFER_SIZE 65536 using namespace std; using namespace Hypertable; using namespace Hql; using namespace Serialization; namespace { void process_event(EventPtr &event_ptr) { int32_t error; const uint8_t *decode_ptr = event_ptr->payload + 4; size_t decode_remain = event_ptr->payload_len - 4; uint32_t offset, len; if (decode_remain == 0) cout << "success" << endl; else { while (decode_remain) { try { error = decode_i32(&decode_ptr, &decode_remain); offset = decode_i32(&decode_ptr, &decode_remain); len = decode_i32(&decode_ptr, &decode_remain); } catch (Exception &e) { HT_ERROR_OUT << e << HT_END; break; } cout << "rejected: offset=" << offset << " span=" << len << " " << Error::get_text(error) << endl; } } } } RangeServerCommandInterpreter::RangeServerCommandInterpreter(Comm *comm, Hyperspace::SessionPtr &hyperspace_ptr, const sockaddr_in addr, RangeServerClientPtr &range_server_ptr) : m_comm(comm), m_hyperspace_ptr(hyperspace_ptr), m_addr(addr), m_range_server_ptr(range_server_ptr), m_cur_scanner_id(-1) { HqlHelpText::install_range_server_client_text(); return; } void RangeServerCommandInterpreter::execute_line(const String &line) { TableIdentifier *table = 0; RangeSpec range; TableInfo *table_info; String schema_str; String out_str; SchemaPtr schema_ptr; Hql::ParserState state; Hql::Parser parser(state); parse_info<> info; DispatchHandlerSynchronizer sync_handler; ScanBlock scanblock; int32_t scanner_id; EventPtr event_ptr; info = parse(line.c_str(), parser, space_p); if (info.full) { // if table name specified, get associated objects if (state.table_name != "") { table_info = m_table_map[state.table_name]; if (table_info == 0) { table_info = new TableInfo(state.table_name); table_info->load(m_hyperspace_ptr); m_table_map[state.table_name] = table_info; } table = table_info->get_table_identifier(); table_info->get_schema_ptr(schema_ptr); } // if end row is "??", transform it to 0xff 0xff if (state.range_end_row == "??") state.range_end_row = Key::END_ROW_MARKER; if (state.command == COMMAND_LOAD_RANGE) { RangeState range_state; cout << "TableName = " << state.table_name << endl; cout << "StartRow = " << state.range_start_row << endl; cout << "EndRow = " << state.range_end_row << endl; range.start_row = state.range_start_row.c_str(); range.end_row = state.range_end_row.c_str(); range_state.soft_limit = 200000000LL; m_range_server_ptr->load_range(m_addr, *table, range, 0, range_state, 0); } else if (state.command == COMMAND_UPDATE) { TestSource *tsource = 0; if (!FileUtils::exists(state.input_file.c_str())) HT_THROW(Error::FILE_NOT_FOUND, String("Input file '") + state.input_file + "' does not exist"); tsource = new TestSource(state.input_file, schema_ptr.get()); uint8_t *send_buf = 0; size_t send_buf_len = 0; DynamicBuffer buf(BUFFER_SIZE); SerializedKey key; ByteString value; size_t key_len, value_len; uint32_t send_count = 0; bool outstanding = false; while (true) { while (tsource->next(key, value)) { key_len = key.length(); value_len = value.length(); buf.ensure(key_len + value_len); buf.add_unchecked(key.ptr, key_len); buf.add_unchecked(value.ptr, value_len); if (buf.fill() > BUFFER_SIZE) break; } /** * Sort the keys */ if (buf.fill()) { std::vector<SerializedKey> keys; const uint8_t *ptr; size_t len; key.ptr = ptr = buf.base; while (ptr < buf.ptr) { keys.push_back(key); key.next(); key.next(); ptr = key.ptr; } std::sort(keys.begin(), keys.end()); send_buf = new uint8_t [buf.fill()]; uint8_t *sendp = send_buf; for (size_t i=0; i<keys.size(); i++) { key = keys[i]; key.next(); key.next(); len = key.ptr - keys[i].ptr; memcpy(sendp, keys[i].ptr, len); sendp += len; } send_buf_len = sendp - send_buf; buf.clear(); send_count = keys.size(); } else { send_buf_len = 0; send_count = 0; } if (outstanding) { if (!sync_handler.wait_for_reply(event_ptr)) HT_THROW(Protocol::response_code(event_ptr), (Protocol::string_format_message(event_ptr))); process_event(event_ptr); } outstanding = false; if (send_buf_len > 0) { StaticBuffer mybuf(send_buf, send_buf_len); m_range_server_ptr->update(m_addr, *table, send_count, mybuf, 0, &sync_handler); outstanding = true; } else break; } if (outstanding) { if (!sync_handler.wait_for_reply(event_ptr)) HT_THROW(Protocol::response_code(event_ptr), (Protocol::string_format_message(event_ptr))); process_event(event_ptr); } } else if (state.command == COMMAND_CREATE_SCANNER) { range.start_row = state.range_start_row.c_str(); range.end_row = state.range_end_row.c_str(); m_range_server_ptr->create_scanner(m_addr, *table, range, state.scan.builder.get(), scanblock); m_cur_scanner_id = scanblock.get_scanner_id(); SerializedKey key; ByteString value; while (scanblock.next(key, value)) display_scan_data(key, value, schema_ptr); if (scanblock.eos()) m_cur_scanner_id = -1; } else if (state.command == COMMAND_FETCH_SCANBLOCK) { if (state.scanner_id == -1) { if (m_cur_scanner_id == -1) HT_THROW(Error::RANGESERVER_INVALID_SCANNER_ID, "No currently open scanner"); scanner_id = m_cur_scanner_id; m_cur_scanner_id = -1; } else scanner_id = state.scanner_id; /** */ m_range_server_ptr->fetch_scanblock(m_addr, scanner_id, scanblock); SerializedKey key; ByteString value; while (scanblock.next(key, value)) display_scan_data(key, value, schema_ptr); if (scanblock.eos()) m_cur_scanner_id = -1; } else if (state.command == COMMAND_DESTROY_SCANNER) { if (state.scanner_id == -1) { if (m_cur_scanner_id == -1) return; scanner_id = m_cur_scanner_id; m_cur_scanner_id = -1; } else scanner_id = state.scanner_id; m_range_server_ptr->destroy_scanner(m_addr, scanner_id); } else if (state.command == COMMAND_DROP_RANGE) { range.start_row = state.range_start_row.c_str(); range.end_row = state.range_end_row.c_str(); m_range_server_ptr->drop_range(m_addr, *table, range, &sync_handler); if (!sync_handler.wait_for_reply(event_ptr)) HT_THROW(Protocol::response_code(event_ptr), (Protocol::string_format_message(event_ptr))); } else if (state.command == COMMAND_REPLAY_BEGIN) { // fix me!! added metadata boolean m_range_server_ptr->replay_begin(m_addr, false, &sync_handler); if (!sync_handler.wait_for_reply(event_ptr)) HT_THROW(Protocol::response_code(event_ptr), (Protocol::string_format_message(event_ptr))); } else if (state.command == COMMAND_REPLAY_LOG) { cout << "Not implemented." << endl; } else if (state.command == COMMAND_DUMP) { m_range_server_ptr->dump(m_addr, state.output_file, state.nokeys); cout << "success" << endl; } else if (state.command == COMMAND_REPLAY_COMMIT) { m_range_server_ptr->replay_commit(m_addr, &sync_handler); if (!sync_handler.wait_for_reply(event_ptr)) HT_THROW(Protocol::response_code(event_ptr), (Protocol::string_format_message(event_ptr))); } else if (state.command == COMMAND_HELP) { const char **text = HqlHelpText::get(state.str); if (text) { for (size_t i=0; text[i]; i++) cout << text[i] << endl; } else cout << endl << "no help for '" << state.str << "'" << endl << endl; } else if (state.command == COMMAND_CLOSE) { m_range_server_ptr->close(m_addr); } else if (state.command == COMMAND_SHUTDOWN) { m_range_server_ptr->close(m_addr); m_range_server_ptr->shutdown(m_addr); } else HT_THROW(Error::HQL_PARSE_ERROR, "unsupported command"); } else HT_THROW(Error::HQL_PARSE_ERROR, String("parse error at: ") + info.stop); } /** * */ void RangeServerCommandInterpreter::display_scan_data(const SerializedKey &serkey, const ByteString &value, SchemaPtr &schema_ptr) { Key key(serkey); Schema::ColumnFamily *cf; if (key.flag == FLAG_DELETE_ROW) { cout << key.timestamp << " " << key.row << " DELETE" << endl; } else if (key.flag == FLAG_DELETE_COLUMN_FAMILY) { cf = schema_ptr->get_column_family(key.column_family_code); cout << key.timestamp << " " << key.row << " " << cf->name << " DELETE" << endl; } else { if (key.column_family_code > 0) { cf = schema_ptr->get_column_family(key.column_family_code); if (key.flag == FLAG_DELETE_CELL) cout << key.timestamp << " " << key.row << " " << cf->name << ":" << key.column_qualifier << " DELETE" << endl; else { cout << key.timestamp << " " << key.row << " " << cf->name << ":" << key.column_qualifier; cout << endl; } } else { cerr << "Bad column family (" << (int)key.column_family_code << ") for row key " << key.row; cerr << endl; } } }
gpl-2.0
acsid/stendhal
src/games/stendhal/client/gui/j2d/entity/StateEntity2DView.java
3163
/* $Id$ */ /*************************************************************************** * (C) Copyright 2003-2010 - Stendhal * *************************************************************************** *************************************************************************** * * * 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. * * * ***************************************************************************/ package games.stendhal.client.gui.j2d.entity; // // import games.stendhal.client.entity.IEntity; import games.stendhal.client.sprite.Sprite; import games.stendhal.client.sprite.SpriteStore; import java.util.HashMap; import java.util.Map; import org.apache.log4j.Logger; /** * The 2D view of an animated entity. * * @param <T> entity type */ abstract class StateEntity2DView<T extends IEntity> extends Entity2DView<T> { /** * Log4J. */ private static final Logger logger = Logger .getLogger(StateEntity2DView.class); /** * Map of named sprites. */ protected Map<Object, Sprite> sprites = new HashMap<Object, Sprite>(); // // StateEntity2DView // /** * Build animations. * * @param entity the entity to build animations for */ private void buildAnimations(T entity) { buildSprites(entity, sprites); } /** * Populate named state sprites. * * @param entity The entity to build sprites for * @param map * The map to populate. */ protected abstract void buildSprites(T entity, final Map<Object, Sprite> map); /** * Get a keyed state sprite. * * @param state * The state. * * @return The appropriate sprite for the given state. */ protected Sprite getSprite(final Object state) { return sprites.get(state); } /** * Get the current model state. * * @param entity * @return The model state. */ protected abstract Object getState(T entity); /** * Get the current animated sprite. * * @param entity * @return The appropriate sprite for the current state. */ private Sprite getStateSprite(T entity) { final Object state = getState(entity); final Sprite sprite = getSprite(state); if (sprite == null) { logger.debug("No sprite found for: " + state); return SpriteStore.get().getFailsafe(); } return sprite; } // // Entity2DView // /** * Build the visual representation of this entity. This builds all the * animation sprites and sets the default frame. */ @Override protected void buildRepresentation(T entity) { buildAnimations(entity); setSprite(getStateSprite(entity)); } /** * Update sprite state of the entity. * * @param entity */ protected void proceedChangedState(T entity) { setSprite(getStateSprite(entity)); } }
gpl-2.0
CFDEMproject/OpenFOAM-1.6-ext
src/triSurface/meshTriangulation/meshTriangulation.C
14053
/*---------------------------------------------------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright held by original author \\/ M anipulation | ------------------------------------------------------------------------------- License This file is part of OpenFOAM. OpenFOAM 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. OpenFOAM 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 OpenFOAM; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA \*---------------------------------------------------------------------------*/ #include "meshTriangulation.H" #include "polyMesh.H" #include "faceTriangulation.H" // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // bool Foam::meshTriangulation::isInternalFace ( const primitiveMesh& mesh, const boolList& includedCell, const label faceI ) { if (mesh.isInternalFace(faceI)) { label own = mesh.faceOwner()[faceI]; label nei = mesh.faceNeighbour()[faceI]; if (includedCell[own] && includedCell[nei]) { // Neighbouring cell will get included in subset // as well so face is internal. return true; } else { return false; } } else { return false; } } void Foam::meshTriangulation::getFaces ( const primitiveMesh& mesh, const boolList& includedCell, boolList& faceIsCut, label& nFaces, label& nInternalFaces ) { // All faces to be triangulated. faceIsCut.setSize(mesh.nFaces()); faceIsCut = false; nFaces = 0; nInternalFaces = 0; forAll(includedCell, cellI) { // Include faces of cut cells only. if (includedCell[cellI]) { const labelList& cFaces = mesh.cells()[cellI]; forAll(cFaces, i) { label faceI = cFaces[i]; if (!faceIsCut[faceI]) { // First visit of face. nFaces++; faceIsCut[faceI] = true; // See if would become internal or external face if (isInternalFace(mesh, includedCell, faceI)) { nInternalFaces++; } } } } } Pout<< "Subset consists of " << nFaces << " faces out of " << mesh.nFaces() << " of which " << nInternalFaces << " are internal" << endl; } void Foam::meshTriangulation::insertTriangles ( const triFaceList& faceTris, const label faceI, const label regionI, const bool reverse, List<labelledTri>& triangles, label& triI ) { // Copy triangles. Optionally reverse them forAll(faceTris, i) { const triFace& f = faceTris[i]; labelledTri& tri = triangles[triI]; if (reverse) { tri[0] = f[0]; tri[2] = f[1]; tri[1] = f[2]; } else { tri[0] = f[0]; tri[1] = f[1]; tri[2] = f[2]; } tri.region() = regionI; faceMap_[triI] = faceI; triI++; } } // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // Null constructor Foam::meshTriangulation::meshTriangulation() : triSurface(), nInternalFaces_(0), faceMap_() {} // Construct from faces of cells Foam::meshTriangulation::meshTriangulation ( const polyMesh& mesh, const label internalFacesPatch, const boolList& includedCell, const bool faceCentreDecomposition ) : triSurface(), nInternalFaces_(0), faceMap_() { const faceList& faces = mesh.faces(); const pointField& points = mesh.points(); const polyBoundaryMesh& patches = mesh.boundaryMesh(); // All faces to be triangulated. boolList faceIsCut; label nFaces, nInternalFaces; getFaces ( mesh, includedCell, faceIsCut, nFaces, nInternalFaces ); // Find upper limit for number of triangles // (can be less if triangulation fails) label nTotTri = 0; if (faceCentreDecomposition) { forAll(faceIsCut, faceI) { if (faceIsCut[faceI]) { nTotTri += faces[faceI].size(); } } } else { forAll(faceIsCut, faceI) { if (faceIsCut[faceI]) { nTotTri += faces[faceI].nTriangles(points); } } } Pout<< "nTotTri : " << nTotTri << endl; // Storage for new and old points (only for faceCentre decomposition; // for triangulation uses only existing points) pointField newPoints; if (faceCentreDecomposition) { newPoints.setSize(mesh.nPoints() + faces.size()); forAll(mesh.points(), pointI) { newPoints[pointI] = mesh.points()[pointI]; } // Face centres forAll(faces, faceI) { newPoints[mesh.nPoints() + faceI] = mesh.faceCentres()[faceI]; } } // Storage for all triangles List<labelledTri> triangles(nTotTri); faceMap_.setSize(nTotTri); label triI = 0; if (faceCentreDecomposition) { // Decomposition around face centre // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // Triangulate internal faces forAll(faceIsCut, faceI) { if (faceIsCut[faceI] && isInternalFace(mesh, includedCell, faceI)) { // Face was internal to the mesh and will be 'internal' to // the surface. // Triangulate face const face& f = faces[faceI]; forAll(f, fp) { faceMap_[triI] = faceI; triangles[triI++] = labelledTri ( f[fp], f.nextLabel(fp), mesh.nPoints() + faceI, // face centre internalFacesPatch ); } } } nInternalFaces_ = triI; // Triangulate external faces forAll(faceIsCut, faceI) { if (faceIsCut[faceI] && !isInternalFace(mesh, includedCell, faceI)) { // Face will become outside of the surface. label patchI = -1; bool reverse = false; if (mesh.isInternalFace(faceI)) { patchI = internalFacesPatch; // Check orientation. Check which side of the face gets // included (note: only one side is). if (includedCell[mesh.faceOwner()[faceI]]) { reverse = false; } else { reverse = true; } } else { // Face was already outside so orientation ok. patchI = patches.whichPatch(faceI); reverse = false; } // Triangulate face const face& f = faces[faceI]; if (reverse) { forAll(f, fp) { faceMap_[triI] = faceI; triangles[triI++] = labelledTri ( f.nextLabel(fp), f[fp], mesh.nPoints() + faceI, // face centre patchI ); } } else { forAll(f, fp) { faceMap_[triI] = faceI; triangles[triI++] = labelledTri ( f[fp], f.nextLabel(fp), mesh.nPoints() + faceI, // face centre patchI ); } } } } } else { // Triangulation using existing vertices // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // Triangulate internal faces forAll(faceIsCut, faceI) { if (faceIsCut[faceI] && isInternalFace(mesh, includedCell, faceI)) { // Face was internal to the mesh and will be 'internal' to // the surface. // Triangulate face. Fall back to naive triangulation if failed. faceTriangulation faceTris(points, faces[faceI], true); if (faceTris.empty()) { WarningIn("meshTriangulation::meshTriangulation") << "Could not find triangulation for face " << faceI << " vertices " << faces[faceI] << " coords " << IndirectList<point>(points, faces[faceI])() << endl; } else { // Copy triangles. Make them internalFacesPatch insertTriangles ( faceTris, faceI, internalFacesPatch, false, // no reverse triangles, triI ); } } } nInternalFaces_ = triI; // Triangulate external faces forAll(faceIsCut, faceI) { if (faceIsCut[faceI] && !isInternalFace(mesh, includedCell, faceI)) { // Face will become outside of the surface. label patchI = -1; bool reverse = false; if (mesh.isInternalFace(faceI)) { patchI = internalFacesPatch; // Check orientation. Check which side of the face gets // included (note: only one side is). if (includedCell[mesh.faceOwner()[faceI]]) { reverse = false; } else { reverse = true; } } else { // Face was already outside so orientation ok. patchI = patches.whichPatch(faceI); reverse = false; } // Triangulate face faceTriangulation faceTris(points, faces[faceI], true); if (faceTris.empty()) { WarningIn("meshTriangulation::meshTriangulation") << "Could not find triangulation for face " << faceI << " vertices " << faces[faceI] << " coords " << IndirectList<point>(points, faces[faceI])() << endl; } else { // Copy triangles. Optionally reverse them insertTriangles ( faceTris, faceI, patchI, reverse, // whether to reverse triangles, triI ); } } } } // Shrink if nessecary (because of invalid triangulations) triangles.setSize(triI); faceMap_.setSize(triI); Pout<< "nInternalFaces_:" << nInternalFaces_ << endl; Pout<< "triangles:" << triangles.size() << endl; geometricSurfacePatchList surfPatches(patches.size()); forAll(patches, patchI) { surfPatches[patchI] = geometricSurfacePatch ( patches[patchI].physicalType(), patches[patchI].name(), patchI ); } // Create globally numbered tri surface if (faceCentreDecomposition) { // Use newPoints (mesh points + face centres) triSurface globalSurf(triangles, surfPatches, newPoints); // Create locally numbered tri surface triSurface::operator= ( triSurface ( globalSurf.localFaces(), surfPatches, globalSurf.localPoints() ) ); } else { // Use mesh points triSurface globalSurf(triangles, surfPatches, mesh.points()); // Create locally numbered tri surface triSurface::operator= ( triSurface ( globalSurf.localFaces(), surfPatches, globalSurf.localPoints() ) ); } } // ************************************************************************* //
gpl-2.0
openjdk/jdk7u
jdk/src/share/classes/com/sun/beans/decoder/IntElementHandler.java
2393
/* * Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this * particular file as subject to the "Classpath" exception as provided * by Oracle in the LICENSE file that accompanied this code. * * This code 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 * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ package com.sun.beans.decoder; /** * This class is intended to handle &lt;int&gt; element. * This element specifies {@code int} values. * The class {@link Integer} is used as wrapper for these values. * The result value is created from text of the body of this element. * The body parsing is described in the class {@link StringElementHandler}. * For example:<pre> * &lt;int&gt;-1&lt;/int&gt;</pre> * is shortcut to<pre> * &lt;method name="decode" class="java.lang.Integer"&gt; * &lt;string&gt;-1&lt;/string&gt; * &lt;/method&gt;</pre> * which is equivalent to {@code Integer.decode("-1")} in Java code. * <p>The following attribute is supported: * <dl> * <dt>id * <dd>the identifier of the variable that is intended to store the result * </dl> * * @since 1.7 * * @author Sergey A. Malenkov */ final class IntElementHandler extends StringElementHandler { /** * Creates {@code int} value from * the text of the body of this element. * * @param argument the text of the body * @return evaluated {@code int} value */ @Override public Object getValue(String argument) { return Integer.decode(argument); } }
gpl-2.0
qayshp/TestDisk
src/tdelete.c
2346
/* File: tdelete.c Copyright (C) 2008 Christophe GRENIER <[email protected]> This software 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 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #ifdef HAVE_CONFIG_H #include <config.h> #endif #include <stdio.h> #include "types.h" #include "common.h" #include "lang.h" #include "intrf.h" #ifdef HAVE_NCURSES #include "intrfn.h" #endif #include "log.h" #include "tdelete.h" #ifdef HAVE_NCURSES #define INTER_DISK_X 0 #define INTER_DISK_Y 7 int write_clean_table(disk_t *disk_car) { aff_copy(stdscr); wmove(stdscr,5,0); wprintw(stdscr,"%s\n",disk_car->description(disk_car)); wmove(stdscr,INTER_DISK_Y,INTER_DISK_X); if(disk_car->arch->erase_list_part==NULL) { display_message("Clear partition table not implemented for this partition type.\n"); return 1; } wprintw(stdscr,msg_WRITE_CLEAN_TABLE); if(ask_YN(stdscr)!=0 && ask_confirmation("Clear partition table, confirm ? (Y/N)")!=0) { if(disk_car->arch->erase_list_part(disk_car)) { display_message("Write error: Can't clear partition table.\n"); return 2; } else display_message("Partition table has been cleared.\nYou have to reboot for the change to take effect.\n"); } return 0; } #else int write_clean_table(disk_t *disk_car) { if(disk_car->arch->erase_list_part==NULL) { log_error("Clear partition table not implemented for this partition type.\n"); return 1; } if(disk_car->arch->erase_list_part(disk_car)) { log_error("Write error: Can't clear partition table.\n"); return 2; } else log_info("Partition table has been cleared.\nYou have to reboot for the change to take effect.\n"); return 0; } #endif
gpl-2.0
kenshinakh/trinity
src/game/UnitEvents.h
5005
/* * Copyright (C) 2005-2009 MaNGOS <http://getmangos.com/> * * Copyright (C) 2008-2009 Trinity <http://www.trinitycore.org/> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #ifndef _UNITEVENTS #define _UNITEVENTS #include "Common.h" class ThreatContainer; class ThreatManager; class HostilReference; //============================================================== //============================================================== enum UNIT_EVENT_TYPE { // Player/Pet changed on/offline status UEV_THREAT_REF_ONLINE_STATUS = 1<<0, // Threat for Player/Pet changed UEV_THREAT_REF_THREAT_CHANGE = 1<<1, // Player/Pet will be removed from list (dead) [for internal use] UEV_THREAT_REF_REMOVE_FROM_LIST = 1<<2, // Player/Pet entered/left water or some other place where it is/was not accessible for the creature UEV_THREAT_REF_ASSECCIBLE_STATUS = 1<<3, // Threat list is going to be sorted (if dirty flag is set) UEV_THREAT_SORT_LIST = 1<<4, // New target should be fetched, could tbe the current target as well UEV_THREAT_SET_NEXT_TARGET = 1<<5, // A new victim (target) was set. Could be NULL UEV_THREAT_VICTIM_CHANGED = 1<<6, // Future use //UEV_UNIT_KILLED = 1<<7, //Future use //UEV_UNIT_HEALTH_CHANGE = 1<<8, }; #define UEV_THREAT_REF_EVENT_MASK ( UEV_THREAT_REF_ONLINE_STATUS | UEV_THREAT_REF_THREAT_CHANGE | UEV_THREAT_REF_REMOVE_FROM_LIST | UEV_THREAT_REF_ASSECCIBLE_STATUS) #define UEV_THREAT_MANAGER_EVENT_MASK (UEV_THREAT_SORT_LIST | UEV_THREAT_SET_NEXT_TARGET | UEV_THREAT_VICTIM_CHANGED) #define UEV_ALL_EVENT_MASK (0xffffffff) // Future use //#define UEV_UNIT_EVENT_MASK (UEV_UNIT_KILLED | UEV_UNIT_HEALTH_CHANGE) //============================================================== class TRINITY_DLL_SPEC UnitBaseEvent { private: uint32 iType; public: UnitBaseEvent(uint32 pType) { iType = pType; } uint32 getType() const { return iType; } bool matchesTypeMask(uint32 pMask) const { return iType & pMask; } void setType(uint32 pType) { iType = pType; } }; //============================================================== class TRINITY_DLL_SPEC ThreatRefStatusChangeEvent : public UnitBaseEvent { private: HostilReference* iHostilReference; union { float iFValue; int32 iIValue; bool iBValue; }; ThreatManager* iThreatManager; public: ThreatRefStatusChangeEvent(uint32 pType) : UnitBaseEvent(pType) { iHostilReference = NULL; } ThreatRefStatusChangeEvent(uint32 pType, HostilReference* pHostilReference) : UnitBaseEvent(pType) { iHostilReference = pHostilReference; } ThreatRefStatusChangeEvent(uint32 pType, HostilReference* pHostilReference, float pValue) : UnitBaseEvent(pType) { iHostilReference = pHostilReference; iFValue = pValue; } ThreatRefStatusChangeEvent(uint32 pType, HostilReference* pHostilReference, bool pValue) : UnitBaseEvent(pType) { iHostilReference = pHostilReference; iBValue = pValue; } int32 getIValue() const { return iIValue; } float getFValue() const { return iFValue; } bool getBValue() const { return iBValue; } void setBValue(bool pValue) { iBValue = pValue; } HostilReference* getReference() const { return iHostilReference; } void setThreatManager(ThreatManager* pThreatManager) { iThreatManager = pThreatManager; } ThreatManager* getThreatManager() const { return iThreatManager; } }; //============================================================== class TRINITY_DLL_SPEC ThreatManagerEvent : public ThreatRefStatusChangeEvent { private: ThreatContainer* iThreatContainer; public: ThreatManagerEvent(uint32 pType) : ThreatRefStatusChangeEvent(pType) {} ThreatManagerEvent(uint32 pType, HostilReference* pHostilReference) : ThreatRefStatusChangeEvent(pType, pHostilReference) {} void setThreatContainer(ThreatContainer* pThreatContainer) { iThreatContainer = pThreatContainer; } ThreatContainer* getThreatContainer() const { return iThreatContainer; } }; //============================================================== #endif
gpl-2.0
mstratman/cocoadialog
Source/NSPanel+CDPanel.h
1260
// NSPanel+CDPanel.h // cocoadialog // // Copyright (c) 2004-2017 Mark A. Stratman <[email protected]>, Mark Carver <[email protected]>. // All rights reserved. // Licensed under GPL-2. #import <objc/runtime.h> @interface NSPanel (CDPanel) @property (strong) NSView *effectView; @property BOOL vibrancy; - (NSArray <NSLayoutConstraint *> *) getConstraintsForView:(NSView *)view; - (NSArray <NSLayoutConstraint *> *) getConstraintsForView:(NSView *)view withAttribute:(NSLayoutAttribute)attribute; - (NSArray <NSTextField *> *) getLabels; - (NSArray *) getObjects:(Class)objectClass; - (NSArray *) getObjects:(Class)objectClass fromView:(NSView *)view; - (void) makeLabelsSelectable:(BOOL)selectable; - (void) moveContraintAttribute:(NSLayoutAttribute)attribute from:(NSView *)firstView to:(NSView *)secondView; - (void) moveContraintAttribute:(NSLayoutAttribute)attribute toVisibleView:(NSArray <NSView *> *)views; - (void) removeConstraintsFrom:(NSView *)view; - (void) removeConstraintsFrom:(NSView *)view withAttribute:(NSLayoutAttribute)attribute; - (void) removeSubview:(NSView *)view; - (void) removeSubview:(NSView *)from movingAttribute:(NSLayoutAttribute)attribute to:(NSView *)to; @end
gpl-2.0
mur47x111/GraalVM
graal/com.oracle.graal.phases/src/com/oracle/graal/phases/util/MethodDebugValueName.java
1635
/* * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code 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 * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ package com.oracle.graal.phases.util; import jdk.internal.jvmci.meta.*; import com.oracle.graal.phases.*; /** * Lazily computed debug value name composed of a prefix and a {@linkplain JavaMethod#getName() * method name}. */ public class MethodDebugValueName extends LazyName { final String prefix; final JavaMethod method; public MethodDebugValueName(String prefix, JavaMethod method) { this.prefix = prefix; this.method = method; } @Override public String createString() { return prefix + "[" + method.getName() + "]"; } }
gpl-2.0
kozmikkick/tripndroid-endeavoru-3.4
drivers/pci/quirks.c
110109
/* * This file contains work-arounds for many known PCI hardware * bugs. Devices present only on certain architectures (host * bridges et cetera) should be handled in arch-specific code. * * Note: any quirks for hotpluggable devices must _NOT_ be declared __init. * * Copyright (c) 1999 Martin Mares <[email protected]> * * Init/reset quirks for USB host controllers should be in the * USB quirks file, where their drivers can access reuse it. * * The bridge optimization stuff has been removed. If you really * have a silly BIOS which is unable to set your host bridge right, * use the PowerTweak utility (see http://powertweak.sourceforge.net). */ #include <linux/types.h> #include <linux/kernel.h> #include <linux/module.h> #include <linux/pci.h> #include <linux/init.h> #include <linux/delay.h> #include <linux/acpi.h> #include <linux/kallsyms.h> #include <linux/dmi.h> #include <linux/pci-aspm.h> #include <linux/ioport.h> #include <linux/sched.h> #include <linux/ktime.h> #include <asm/dma.h> /* isa_dma_bridge_buggy */ #include "pci.h" /* * Decoding should be disabled for a PCI device during BAR sizing to avoid * conflict. But doing so may cause problems on host bridge and perhaps other * key system devices. For devices that need to have mmio decoding always-on, * we need to set the dev->mmio_always_on bit. */ static void __devinit quirk_mmio_always_on(struct pci_dev *dev) { dev->mmio_always_on = 1; } DECLARE_PCI_FIXUP_CLASS_EARLY(PCI_ANY_ID, PCI_ANY_ID, PCI_CLASS_BRIDGE_HOST, 8, quirk_mmio_always_on); /* The Mellanox Tavor device gives false positive parity errors * Mark this device with a broken_parity_status, to allow * PCI scanning code to "skip" this now blacklisted device. */ static void __devinit quirk_mellanox_tavor(struct pci_dev *dev) { dev->broken_parity_status = 1; /* This device gives false positives */ } DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_MELLANOX,PCI_DEVICE_ID_MELLANOX_TAVOR,quirk_mellanox_tavor); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_MELLANOX,PCI_DEVICE_ID_MELLANOX_TAVOR_BRIDGE,quirk_mellanox_tavor); /* Deal with broken BIOS'es that neglect to enable passive release, which can cause problems in combination with the 82441FX/PPro MTRRs */ static void quirk_passive_release(struct pci_dev *dev) { struct pci_dev *d = NULL; unsigned char dlc; /* We have to make sure a particular bit is set in the PIIX3 ISA bridge, so we have to go out and find it. */ while ((d = pci_get_device(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82371SB_0, d))) { pci_read_config_byte(d, 0x82, &dlc); if (!(dlc & 1<<1)) { dev_info(&d->dev, "PIIX3: Enabling Passive Release\n"); dlc |= 1<<1; pci_write_config_byte(d, 0x82, dlc); } } } DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82441, quirk_passive_release); DECLARE_PCI_FIXUP_RESUME(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82441, quirk_passive_release); /* The VIA VP2/VP3/MVP3 seem to have some 'features'. There may be a workaround but VIA don't answer queries. If you happen to have good contacts at VIA ask them for me please -- Alan This appears to be BIOS not version dependent. So presumably there is a chipset level fix */ static void __devinit quirk_isa_dma_hangs(struct pci_dev *dev) { if (!isa_dma_bridge_buggy) { isa_dma_bridge_buggy=1; dev_info(&dev->dev, "Activating ISA DMA hang workarounds\n"); } } /* * Its not totally clear which chipsets are the problematic ones * We know 82C586 and 82C596 variants are affected. */ DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_82C586_0, quirk_isa_dma_hangs); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_82C596, quirk_isa_dma_hangs); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82371SB_0, quirk_isa_dma_hangs); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_AL, PCI_DEVICE_ID_AL_M1533, quirk_isa_dma_hangs); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_NEC, PCI_DEVICE_ID_NEC_CBUS_1, quirk_isa_dma_hangs); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_NEC, PCI_DEVICE_ID_NEC_CBUS_2, quirk_isa_dma_hangs); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_NEC, PCI_DEVICE_ID_NEC_CBUS_3, quirk_isa_dma_hangs); /* * Intel NM10 "TigerPoint" LPC PM1a_STS.BM_STS must be clear * for some HT machines to use C4 w/o hanging. */ static void __devinit quirk_tigerpoint_bm_sts(struct pci_dev *dev) { u32 pmbase; u16 pm1a; pci_read_config_dword(dev, 0x40, &pmbase); pmbase = pmbase & 0xff80; pm1a = inw(pmbase); if (pm1a & 0x10) { dev_info(&dev->dev, FW_BUG "TigerPoint LPC.BM_STS cleared\n"); outw(0x10, pmbase); } } DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_TGP_LPC, quirk_tigerpoint_bm_sts); /* * Chipsets where PCI->PCI transfers vanish or hang */ static void __devinit quirk_nopcipci(struct pci_dev *dev) { if ((pci_pci_problems & PCIPCI_FAIL)==0) { dev_info(&dev->dev, "Disabling direct PCI/PCI transfers\n"); pci_pci_problems |= PCIPCI_FAIL; } } DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_SI, PCI_DEVICE_ID_SI_5597, quirk_nopcipci); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_SI, PCI_DEVICE_ID_SI_496, quirk_nopcipci); static void __devinit quirk_nopciamd(struct pci_dev *dev) { u8 rev; pci_read_config_byte(dev, 0x08, &rev); if (rev == 0x13) { /* Erratum 24 */ dev_info(&dev->dev, "Chipset erratum: Disabling direct PCI/AGP transfers\n"); pci_pci_problems |= PCIAGP_FAIL; } } DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_8151_0, quirk_nopciamd); /* * Triton requires workarounds to be used by the drivers */ static void __devinit quirk_triton(struct pci_dev *dev) { if ((pci_pci_problems&PCIPCI_TRITON)==0) { dev_info(&dev->dev, "Limiting direct PCI/PCI transfers\n"); pci_pci_problems |= PCIPCI_TRITON; } } DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82437, quirk_triton); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82437VX, quirk_triton); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82439, quirk_triton); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82439TX, quirk_triton); /* * VIA Apollo KT133 needs PCI latency patch * Made according to a windows driver based patch by George E. Breese * see PCI Latency Adjust on http://www.viahardware.com/download/viatweak.shtm * and http://www.georgebreese.com/net/software/#PCI * Also see http://www.au-ja.org/review-kt133a-1-en.phtml for * the info on which Mr Breese based his work. * * Updated based on further information from the site and also on * information provided by VIA */ static void quirk_vialatency(struct pci_dev *dev) { struct pci_dev *p; u8 busarb; /* Ok we have a potential problem chipset here. Now see if we have a buggy southbridge */ p = pci_get_device(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_82C686, NULL); if (p!=NULL) { /* 0x40 - 0x4f == 686B, 0x10 - 0x2f == 686A; thanks Dan Hollis */ /* Check for buggy part revisions */ if (p->revision < 0x40 || p->revision > 0x42) goto exit; } else { p = pci_get_device(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8231, NULL); if (p==NULL) /* No problem parts */ goto exit; /* Check for buggy part revisions */ if (p->revision < 0x10 || p->revision > 0x12) goto exit; } /* * Ok we have the problem. Now set the PCI master grant to * occur every master grant. The apparent bug is that under high * PCI load (quite common in Linux of course) you can get data * loss when the CPU is held off the bus for 3 bus master requests * This happens to include the IDE controllers.... * * VIA only apply this fix when an SB Live! is present but under * both Linux and Windows this isn't enough, and we have seen * corruption without SB Live! but with things like 3 UDMA IDE * controllers. So we ignore that bit of the VIA recommendation.. */ pci_read_config_byte(dev, 0x76, &busarb); /* Set bit 4 and bi 5 of byte 76 to 0x01 "Master priority rotation on every PCI master grant */ busarb &= ~(1<<5); busarb |= (1<<4); pci_write_config_byte(dev, 0x76, busarb); dev_info(&dev->dev, "Applying VIA southbridge workaround\n"); exit: pci_dev_put(p); } DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8363_0, quirk_vialatency); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8371_1, quirk_vialatency); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8361, quirk_vialatency); /* Must restore this on a resume from RAM */ DECLARE_PCI_FIXUP_RESUME(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8363_0, quirk_vialatency); DECLARE_PCI_FIXUP_RESUME(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8371_1, quirk_vialatency); DECLARE_PCI_FIXUP_RESUME(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8361, quirk_vialatency); /* * VIA Apollo VP3 needs ETBF on BT848/878 */ static void __devinit quirk_viaetbf(struct pci_dev *dev) { if ((pci_pci_problems&PCIPCI_VIAETBF)==0) { dev_info(&dev->dev, "Limiting direct PCI/PCI transfers\n"); pci_pci_problems |= PCIPCI_VIAETBF; } } DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_82C597_0, quirk_viaetbf); static void __devinit quirk_vsfx(struct pci_dev *dev) { if ((pci_pci_problems&PCIPCI_VSFX)==0) { dev_info(&dev->dev, "Limiting direct PCI/PCI transfers\n"); pci_pci_problems |= PCIPCI_VSFX; } } DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_82C576, quirk_vsfx); /* * Ali Magik requires workarounds to be used by the drivers * that DMA to AGP space. Latency must be set to 0xA and triton * workaround applied too * [Info kindly provided by ALi] */ static void __init quirk_alimagik(struct pci_dev *dev) { if ((pci_pci_problems&PCIPCI_ALIMAGIK)==0) { dev_info(&dev->dev, "Limiting direct PCI/PCI transfers\n"); pci_pci_problems |= PCIPCI_ALIMAGIK|PCIPCI_TRITON; } } DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_AL, PCI_DEVICE_ID_AL_M1647, quirk_alimagik); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_AL, PCI_DEVICE_ID_AL_M1651, quirk_alimagik); /* * Natoma has some interesting boundary conditions with Zoran stuff * at least */ static void __devinit quirk_natoma(struct pci_dev *dev) { if ((pci_pci_problems&PCIPCI_NATOMA)==0) { dev_info(&dev->dev, "Limiting direct PCI/PCI transfers\n"); pci_pci_problems |= PCIPCI_NATOMA; } } DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82441, quirk_natoma); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82443LX_0, quirk_natoma); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82443LX_1, quirk_natoma); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82443BX_0, quirk_natoma); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82443BX_1, quirk_natoma); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82443BX_2, quirk_natoma); /* * This chip can cause PCI parity errors if config register 0xA0 is read * while DMAs are occurring. */ static void __devinit quirk_citrine(struct pci_dev *dev) { dev->cfg_size = 0xA0; } DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_IBM, PCI_DEVICE_ID_IBM_CITRINE, quirk_citrine); /* * S3 868 and 968 chips report region size equal to 32M, but they decode 64M. * If it's needed, re-allocate the region. */ static void __devinit quirk_s3_64M(struct pci_dev *dev) { struct resource *r = &dev->resource[0]; if ((r->start & 0x3ffffff) || r->end != r->start + 0x3ffffff) { r->start = 0; r->end = 0x3ffffff; } } DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_S3, PCI_DEVICE_ID_S3_868, quirk_s3_64M); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_S3, PCI_DEVICE_ID_S3_968, quirk_s3_64M); /* * Some CS5536 BIOSes (for example, the Soekris NET5501 board w/ comBIOS * ver. 1.33 20070103) don't set the correct ISA PCI region header info. * BAR0 should be 8 bytes; instead, it may be set to something like 8k * (which conflicts w/ BAR1's memory range). */ static void __devinit quirk_cs5536_vsa(struct pci_dev *dev) { if (pci_resource_len(dev, 0) != 8) { struct resource *res = &dev->resource[0]; res->end = res->start + 8 - 1; dev_info(&dev->dev, "CS5536 ISA bridge bug detected " "(incorrect header); workaround applied.\n"); } } DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_CS5536_ISA, quirk_cs5536_vsa); static void __devinit quirk_io_region(struct pci_dev *dev, unsigned region, unsigned size, int nr, const char *name) { region &= ~(size-1); if (region) { struct pci_bus_region bus_region; struct resource *res = dev->resource + nr; res->name = pci_name(dev); res->start = region; res->end = region + size - 1; res->flags = IORESOURCE_IO; /* Convert from PCI bus to resource space. */ bus_region.start = res->start; bus_region.end = res->end; pcibios_bus_to_resource(dev, res, &bus_region); if (pci_claim_resource(dev, nr) == 0) dev_info(&dev->dev, "quirk: %pR claimed by %s\n", res, name); } } /* * ATI Northbridge setups MCE the processor if you even * read somewhere between 0x3b0->0x3bb or read 0x3d3 */ static void __devinit quirk_ati_exploding_mce(struct pci_dev *dev) { dev_info(&dev->dev, "ATI Northbridge, reserving I/O ports 0x3b0 to 0x3bb\n"); /* Mae rhaid i ni beidio ag edrych ar y lleoliadiau I/O hyn */ request_region(0x3b0, 0x0C, "RadeonIGP"); request_region(0x3d3, 0x01, "RadeonIGP"); } DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_ATI_RS100, quirk_ati_exploding_mce); /* * Let's make the southbridge information explicit instead * of having to worry about people probing the ACPI areas, * for example.. (Yes, it happens, and if you read the wrong * ACPI register it will put the machine to sleep with no * way of waking it up again. Bummer). * * ALI M7101: Two IO regions pointed to by words at * 0xE0 (64 bytes of ACPI registers) * 0xE2 (32 bytes of SMB registers) */ static void __devinit quirk_ali7101_acpi(struct pci_dev *dev) { u16 region; pci_read_config_word(dev, 0xE0, &region); quirk_io_region(dev, region, 64, PCI_BRIDGE_RESOURCES, "ali7101 ACPI"); pci_read_config_word(dev, 0xE2, &region); quirk_io_region(dev, region, 32, PCI_BRIDGE_RESOURCES+1, "ali7101 SMB"); } DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_AL, PCI_DEVICE_ID_AL_M7101, quirk_ali7101_acpi); static void piix4_io_quirk(struct pci_dev *dev, const char *name, unsigned int port, unsigned int enable) { u32 devres; u32 mask, size, base; pci_read_config_dword(dev, port, &devres); if ((devres & enable) != enable) return; mask = (devres >> 16) & 15; base = devres & 0xffff; size = 16; for (;;) { unsigned bit = size >> 1; if ((bit & mask) == bit) break; size = bit; } /* * For now we only print it out. Eventually we'll want to * reserve it (at least if it's in the 0x1000+ range), but * let's get enough confirmation reports first. */ base &= -size; dev_info(&dev->dev, "%s PIO at %04x-%04x\n", name, base, base + size - 1); } static void piix4_mem_quirk(struct pci_dev *dev, const char *name, unsigned int port, unsigned int enable) { u32 devres; u32 mask, size, base; pci_read_config_dword(dev, port, &devres); if ((devres & enable) != enable) return; base = devres & 0xffff0000; mask = (devres & 0x3f) << 16; size = 128 << 16; for (;;) { unsigned bit = size >> 1; if ((bit & mask) == bit) break; size = bit; } /* * For now we only print it out. Eventually we'll want to * reserve it, but let's get enough confirmation reports first. */ base &= -size; dev_info(&dev->dev, "%s MMIO at %04x-%04x\n", name, base, base + size - 1); } /* * PIIX4 ACPI: Two IO regions pointed to by longwords at * 0x40 (64 bytes of ACPI registers) * 0x90 (16 bytes of SMB registers) * and a few strange programmable PIIX4 device resources. */ static void __devinit quirk_piix4_acpi(struct pci_dev *dev) { u32 region, res_a; pci_read_config_dword(dev, 0x40, &region); quirk_io_region(dev, region, 64, PCI_BRIDGE_RESOURCES, "PIIX4 ACPI"); pci_read_config_dword(dev, 0x90, &region); quirk_io_region(dev, region, 16, PCI_BRIDGE_RESOURCES+1, "PIIX4 SMB"); /* Device resource A has enables for some of the other ones */ pci_read_config_dword(dev, 0x5c, &res_a); piix4_io_quirk(dev, "PIIX4 devres B", 0x60, 3 << 21); piix4_io_quirk(dev, "PIIX4 devres C", 0x64, 3 << 21); /* Device resource D is just bitfields for static resources */ /* Device 12 enabled? */ if (res_a & (1 << 29)) { piix4_io_quirk(dev, "PIIX4 devres E", 0x68, 1 << 20); piix4_mem_quirk(dev, "PIIX4 devres F", 0x6c, 1 << 7); } /* Device 13 enabled? */ if (res_a & (1 << 30)) { piix4_io_quirk(dev, "PIIX4 devres G", 0x70, 1 << 20); piix4_mem_quirk(dev, "PIIX4 devres H", 0x74, 1 << 7); } piix4_io_quirk(dev, "PIIX4 devres I", 0x78, 1 << 20); piix4_io_quirk(dev, "PIIX4 devres J", 0x7c, 1 << 20); } DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82371AB_3, quirk_piix4_acpi); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82443MX_3, quirk_piix4_acpi); #define ICH_PMBASE 0x40 #define ICH_ACPI_CNTL 0x44 #define ICH4_ACPI_EN 0x10 #define ICH6_ACPI_EN 0x80 #define ICH4_GPIOBASE 0x58 #define ICH4_GPIO_CNTL 0x5c #define ICH4_GPIO_EN 0x10 #define ICH6_GPIOBASE 0x48 #define ICH6_GPIO_CNTL 0x4c #define ICH6_GPIO_EN 0x10 /* * ICH4, ICH4-M, ICH5, ICH5-M ACPI: Three IO regions pointed to by longwords at * 0x40 (128 bytes of ACPI, GPIO & TCO registers) * 0x58 (64 bytes of GPIO I/O space) */ static void __devinit quirk_ich4_lpc_acpi(struct pci_dev *dev) { u32 region; u8 enable; /* * The check for PCIBIOS_MIN_IO is to ensure we won't create a conflict * with low legacy (and fixed) ports. We don't know the decoding * priority and can't tell whether the legacy device or the one created * here is really at that address. This happens on boards with broken * BIOSes. */ pci_read_config_byte(dev, ICH_ACPI_CNTL, &enable); if (enable & ICH4_ACPI_EN) { pci_read_config_dword(dev, ICH_PMBASE, &region); region &= PCI_BASE_ADDRESS_IO_MASK; if (region >= PCIBIOS_MIN_IO) quirk_io_region(dev, region, 128, PCI_BRIDGE_RESOURCES, "ICH4 ACPI/GPIO/TCO"); } pci_read_config_byte(dev, ICH4_GPIO_CNTL, &enable); if (enable & ICH4_GPIO_EN) { pci_read_config_dword(dev, ICH4_GPIOBASE, &region); region &= PCI_BASE_ADDRESS_IO_MASK; if (region >= PCIBIOS_MIN_IO) quirk_io_region(dev, region, 64, PCI_BRIDGE_RESOURCES + 1, "ICH4 GPIO"); } } DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82801AA_0, quirk_ich4_lpc_acpi); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82801AB_0, quirk_ich4_lpc_acpi); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82801BA_0, quirk_ich4_lpc_acpi); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82801BA_10, quirk_ich4_lpc_acpi); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82801CA_0, quirk_ich4_lpc_acpi); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82801CA_12, quirk_ich4_lpc_acpi); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82801DB_0, quirk_ich4_lpc_acpi); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82801DB_12, quirk_ich4_lpc_acpi); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82801EB_0, quirk_ich4_lpc_acpi); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ESB_1, quirk_ich4_lpc_acpi); static void __devinit ich6_lpc_acpi_gpio(struct pci_dev *dev) { u32 region; u8 enable; pci_read_config_byte(dev, ICH_ACPI_CNTL, &enable); if (enable & ICH6_ACPI_EN) { pci_read_config_dword(dev, ICH_PMBASE, &region); region &= PCI_BASE_ADDRESS_IO_MASK; if (region >= PCIBIOS_MIN_IO) quirk_io_region(dev, region, 128, PCI_BRIDGE_RESOURCES, "ICH6 ACPI/GPIO/TCO"); } pci_read_config_byte(dev, ICH6_GPIO_CNTL, &enable); if (enable & ICH6_GPIO_EN) { pci_read_config_dword(dev, ICH6_GPIOBASE, &region); region &= PCI_BASE_ADDRESS_IO_MASK; if (region >= PCIBIOS_MIN_IO) quirk_io_region(dev, region, 64, PCI_BRIDGE_RESOURCES + 1, "ICH6 GPIO"); } } static void __devinit ich6_lpc_generic_decode(struct pci_dev *dev, unsigned reg, const char *name, int dynsize) { u32 val; u32 size, base; pci_read_config_dword(dev, reg, &val); /* Enabled? */ if (!(val & 1)) return; base = val & 0xfffc; if (dynsize) { /* * This is not correct. It is 16, 32 or 64 bytes depending on * register D31:F0:ADh bits 5:4. * * But this gets us at least _part_ of it. */ size = 16; } else { size = 128; } base &= ~(size-1); /* Just print it out for now. We should reserve it after more debugging */ dev_info(&dev->dev, "%s PIO at %04x-%04x\n", name, base, base+size-1); } static void __devinit quirk_ich6_lpc(struct pci_dev *dev) { /* Shared ACPI/GPIO decode with all ICH6+ */ ich6_lpc_acpi_gpio(dev); /* ICH6-specific generic IO decode */ ich6_lpc_generic_decode(dev, 0x84, "LPC Generic IO decode 1", 0); ich6_lpc_generic_decode(dev, 0x88, "LPC Generic IO decode 2", 1); } DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH6_0, quirk_ich6_lpc); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH6_1, quirk_ich6_lpc); static void __devinit ich7_lpc_generic_decode(struct pci_dev *dev, unsigned reg, const char *name) { u32 val; u32 mask, base; pci_read_config_dword(dev, reg, &val); /* Enabled? */ if (!(val & 1)) return; /* * IO base in bits 15:2, mask in bits 23:18, both * are dword-based */ base = val & 0xfffc; mask = (val >> 16) & 0xfc; mask |= 3; /* Just print it out for now. We should reserve it after more debugging */ dev_info(&dev->dev, "%s PIO at %04x (mask %04x)\n", name, base, mask); } /* ICH7-10 has the same common LPC generic IO decode registers */ static void __devinit quirk_ich7_lpc(struct pci_dev *dev) { /* We share the common ACPI/GPIO decode with ICH6 */ ich6_lpc_acpi_gpio(dev); /* And have 4 ICH7+ generic decodes */ ich7_lpc_generic_decode(dev, 0x84, "ICH7 LPC Generic IO decode 1"); ich7_lpc_generic_decode(dev, 0x88, "ICH7 LPC Generic IO decode 2"); ich7_lpc_generic_decode(dev, 0x8c, "ICH7 LPC Generic IO decode 3"); ich7_lpc_generic_decode(dev, 0x90, "ICH7 LPC Generic IO decode 4"); } DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH7_0, quirk_ich7_lpc); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH7_1, quirk_ich7_lpc); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH7_31, quirk_ich7_lpc); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH8_0, quirk_ich7_lpc); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH8_2, quirk_ich7_lpc); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH8_3, quirk_ich7_lpc); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH8_1, quirk_ich7_lpc); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH8_4, quirk_ich7_lpc); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH9_2, quirk_ich7_lpc); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH9_4, quirk_ich7_lpc); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH9_7, quirk_ich7_lpc); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH9_8, quirk_ich7_lpc); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH10_1, quirk_ich7_lpc); /* * VIA ACPI: One IO region pointed to by longword at * 0x48 or 0x20 (256 bytes of ACPI registers) */ static void __devinit quirk_vt82c586_acpi(struct pci_dev *dev) { u32 region; if (dev->revision & 0x10) { pci_read_config_dword(dev, 0x48, &region); region &= PCI_BASE_ADDRESS_IO_MASK; quirk_io_region(dev, region, 256, PCI_BRIDGE_RESOURCES, "vt82c586 ACPI"); } } DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_82C586_3, quirk_vt82c586_acpi); /* * VIA VT82C686 ACPI: Three IO region pointed to by (long)words at * 0x48 (256 bytes of ACPI registers) * 0x70 (128 bytes of hardware monitoring register) * 0x90 (16 bytes of SMB registers) */ static void __devinit quirk_vt82c686_acpi(struct pci_dev *dev) { u16 hm; u32 smb; quirk_vt82c586_acpi(dev); pci_read_config_word(dev, 0x70, &hm); hm &= PCI_BASE_ADDRESS_IO_MASK; quirk_io_region(dev, hm, 128, PCI_BRIDGE_RESOURCES + 1, "vt82c686 HW-mon"); pci_read_config_dword(dev, 0x90, &smb); smb &= PCI_BASE_ADDRESS_IO_MASK; quirk_io_region(dev, smb, 16, PCI_BRIDGE_RESOURCES + 2, "vt82c686 SMB"); } DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_82C686_4, quirk_vt82c686_acpi); /* * VIA VT8235 ISA Bridge: Two IO regions pointed to by words at * 0x88 (128 bytes of power management registers) * 0xd0 (16 bytes of SMB registers) */ static void __devinit quirk_vt8235_acpi(struct pci_dev *dev) { u16 pm, smb; pci_read_config_word(dev, 0x88, &pm); pm &= PCI_BASE_ADDRESS_IO_MASK; quirk_io_region(dev, pm, 128, PCI_BRIDGE_RESOURCES, "vt8235 PM"); pci_read_config_word(dev, 0xd0, &smb); smb &= PCI_BASE_ADDRESS_IO_MASK; quirk_io_region(dev, smb, 16, PCI_BRIDGE_RESOURCES + 1, "vt8235 SMB"); } DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8235, quirk_vt8235_acpi); /* * TI XIO2000a PCIe-PCI Bridge erroneously reports it supports fast back-to-back: * Disable fast back-to-back on the secondary bus segment */ static void __devinit quirk_xio2000a(struct pci_dev *dev) { struct pci_dev *pdev; u16 command; dev_warn(&dev->dev, "TI XIO2000a quirk detected; " "secondary bus fast back-to-back transfers disabled\n"); list_for_each_entry(pdev, &dev->subordinate->devices, bus_list) { pci_read_config_word(pdev, PCI_COMMAND, &command); if (command & PCI_COMMAND_FAST_BACK) pci_write_config_word(pdev, PCI_COMMAND, command & ~PCI_COMMAND_FAST_BACK); } } DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_TI, PCI_DEVICE_ID_TI_XIO2000A, quirk_xio2000a); #ifdef CONFIG_X86_IO_APIC #include <asm/io_apic.h> /* * VIA 686A/B: If an IO-APIC is active, we need to route all on-chip * devices to the external APIC. * * TODO: When we have device-specific interrupt routers, * this code will go away from quirks. */ static void quirk_via_ioapic(struct pci_dev *dev) { u8 tmp; if (nr_ioapics < 1) tmp = 0; /* nothing routed to external APIC */ else tmp = 0x1f; /* all known bits (4-0) routed to external APIC */ dev_info(&dev->dev, "%sbling VIA external APIC routing\n", tmp == 0 ? "Disa" : "Ena"); /* Offset 0x58: External APIC IRQ output control */ pci_write_config_byte (dev, 0x58, tmp); } DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_82C686, quirk_via_ioapic); DECLARE_PCI_FIXUP_RESUME_EARLY(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_82C686, quirk_via_ioapic); /* * VIA 8237: Some BIOSs don't set the 'Bypass APIC De-Assert Message' Bit. * This leads to doubled level interrupt rates. * Set this bit to get rid of cycle wastage. * Otherwise uncritical. */ static void quirk_via_vt8237_bypass_apic_deassert(struct pci_dev *dev) { u8 misc_control2; #define BYPASS_APIC_DEASSERT 8 pci_read_config_byte(dev, 0x5B, &misc_control2); if (!(misc_control2 & BYPASS_APIC_DEASSERT)) { dev_info(&dev->dev, "Bypassing VIA 8237 APIC De-Assert Message\n"); pci_write_config_byte(dev, 0x5B, misc_control2|BYPASS_APIC_DEASSERT); } } DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8237, quirk_via_vt8237_bypass_apic_deassert); DECLARE_PCI_FIXUP_RESUME_EARLY(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8237, quirk_via_vt8237_bypass_apic_deassert); /* * The AMD io apic can hang the box when an apic irq is masked. * We check all revs >= B0 (yet not in the pre production!) as the bug * is currently marked NoFix * * We have multiple reports of hangs with this chipset that went away with * noapic specified. For the moment we assume it's the erratum. We may be wrong * of course. However the advice is demonstrably good even if so.. */ static void __devinit quirk_amd_ioapic(struct pci_dev *dev) { if (dev->revision >= 0x02) { dev_warn(&dev->dev, "I/O APIC: AMD Erratum #22 may be present. In the event of instability try\n"); dev_warn(&dev->dev, " : booting with the \"noapic\" option\n"); } } DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_VIPER_7410, quirk_amd_ioapic); static void __init quirk_ioapic_rmw(struct pci_dev *dev) { if (dev->devfn == 0 && dev->bus->number == 0) sis_apic_bug = 1; } DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_SI, PCI_ANY_ID, quirk_ioapic_rmw); #endif /* CONFIG_X86_IO_APIC */ /* * Some settings of MMRBC can lead to data corruption so block changes. * See AMD 8131 HyperTransport PCI-X Tunnel Revision Guide */ static void __init quirk_amd_8131_mmrbc(struct pci_dev *dev) { if (dev->subordinate && dev->revision <= 0x12) { dev_info(&dev->dev, "AMD8131 rev %x detected; " "disabling PCI-X MMRBC\n", dev->revision); dev->subordinate->bus_flags |= PCI_BUS_FLAGS_NO_MMRBC; } } DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_8131_BRIDGE, quirk_amd_8131_mmrbc); /* * FIXME: it is questionable that quirk_via_acpi * is needed. It shows up as an ISA bridge, and does not * support the PCI_INTERRUPT_LINE register at all. Therefore * it seems like setting the pci_dev's 'irq' to the * value of the ACPI SCI interrupt is only done for convenience. * -jgarzik */ static void __devinit quirk_via_acpi(struct pci_dev *d) { /* * VIA ACPI device: SCI IRQ line in PCI config byte 0x42 */ u8 irq; pci_read_config_byte(d, 0x42, &irq); irq &= 0xf; if (irq && (irq != 2)) d->irq = irq; } DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_82C586_3, quirk_via_acpi); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_82C686_4, quirk_via_acpi); /* * VIA bridges which have VLink */ static int via_vlink_dev_lo = -1, via_vlink_dev_hi = 18; static void quirk_via_bridge(struct pci_dev *dev) { /* See what bridge we have and find the device ranges */ switch (dev->device) { case PCI_DEVICE_ID_VIA_82C686: /* The VT82C686 is special, it attaches to PCI and can have any device number. All its subdevices are functions of that single device. */ via_vlink_dev_lo = PCI_SLOT(dev->devfn); via_vlink_dev_hi = PCI_SLOT(dev->devfn); break; case PCI_DEVICE_ID_VIA_8237: case PCI_DEVICE_ID_VIA_8237A: via_vlink_dev_lo = 15; break; case PCI_DEVICE_ID_VIA_8235: via_vlink_dev_lo = 16; break; case PCI_DEVICE_ID_VIA_8231: case PCI_DEVICE_ID_VIA_8233_0: case PCI_DEVICE_ID_VIA_8233A: case PCI_DEVICE_ID_VIA_8233C_0: via_vlink_dev_lo = 17; break; } } DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_82C686, quirk_via_bridge); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8231, quirk_via_bridge); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8233_0, quirk_via_bridge); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8233A, quirk_via_bridge); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8233C_0, quirk_via_bridge); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8235, quirk_via_bridge); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8237, quirk_via_bridge); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8237A, quirk_via_bridge); /** * quirk_via_vlink - VIA VLink IRQ number update * @dev: PCI device * * If the device we are dealing with is on a PIC IRQ we need to * ensure that the IRQ line register which usually is not relevant * for PCI cards, is actually written so that interrupts get sent * to the right place. * We only do this on systems where a VIA south bridge was detected, * and only for VIA devices on the motherboard (see quirk_via_bridge * above). */ static void quirk_via_vlink(struct pci_dev *dev) { u8 irq, new_irq; /* Check if we have VLink at all */ if (via_vlink_dev_lo == -1) return; new_irq = dev->irq; /* Don't quirk interrupts outside the legacy IRQ range */ if (!new_irq || new_irq > 15) return; /* Internal device ? */ if (dev->bus->number != 0 || PCI_SLOT(dev->devfn) > via_vlink_dev_hi || PCI_SLOT(dev->devfn) < via_vlink_dev_lo) return; /* This is an internal VLink device on a PIC interrupt. The BIOS ought to have set this but may not have, so we redo it */ pci_read_config_byte(dev, PCI_INTERRUPT_LINE, &irq); if (new_irq != irq) { dev_info(&dev->dev, "VIA VLink IRQ fixup, from %d to %d\n", irq, new_irq); udelay(15); /* unknown if delay really needed */ pci_write_config_byte(dev, PCI_INTERRUPT_LINE, new_irq); } } DECLARE_PCI_FIXUP_ENABLE(PCI_VENDOR_ID_VIA, PCI_ANY_ID, quirk_via_vlink); /* * VIA VT82C598 has its device ID settable and many BIOSes * set it to the ID of VT82C597 for backward compatibility. * We need to switch it off to be able to recognize the real * type of the chip. */ static void __devinit quirk_vt82c598_id(struct pci_dev *dev) { pci_write_config_byte(dev, 0xfc, 0); pci_read_config_word(dev, PCI_DEVICE_ID, &dev->device); } DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_82C597_0, quirk_vt82c598_id); /* * CardBus controllers have a legacy base address that enables them * to respond as i82365 pcmcia controllers. We don't want them to * do this even if the Linux CardBus driver is not loaded, because * the Linux i82365 driver does not (and should not) handle CardBus. */ static void quirk_cardbus_legacy(struct pci_dev *dev) { pci_write_config_dword(dev, PCI_CB_LEGACY_MODE_BASE, 0); } DECLARE_PCI_FIXUP_CLASS_FINAL(PCI_ANY_ID, PCI_ANY_ID, PCI_CLASS_BRIDGE_CARDBUS, 8, quirk_cardbus_legacy); DECLARE_PCI_FIXUP_CLASS_RESUME_EARLY(PCI_ANY_ID, PCI_ANY_ID, PCI_CLASS_BRIDGE_CARDBUS, 8, quirk_cardbus_legacy); /* * Following the PCI ordering rules is optional on the AMD762. I'm not * sure what the designers were smoking but let's not inhale... * * To be fair to AMD, it follows the spec by default, its BIOS people * who turn it off! */ static void quirk_amd_ordering(struct pci_dev *dev) { u32 pcic; pci_read_config_dword(dev, 0x4C, &pcic); if ((pcic&6)!=6) { pcic |= 6; dev_warn(&dev->dev, "BIOS failed to enable PCI standards compliance; fixing this error\n"); pci_write_config_dword(dev, 0x4C, pcic); pci_read_config_dword(dev, 0x84, &pcic); pcic |= (1<<23); /* Required in this mode */ pci_write_config_dword(dev, 0x84, pcic); } } DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_FE_GATE_700C, quirk_amd_ordering); DECLARE_PCI_FIXUP_RESUME_EARLY(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_FE_GATE_700C, quirk_amd_ordering); /* * DreamWorks provided workaround for Dunord I-3000 problem * * This card decodes and responds to addresses not apparently * assigned to it. We force a larger allocation to ensure that * nothing gets put too close to it. */ static void __devinit quirk_dunord ( struct pci_dev * dev ) { struct resource *r = &dev->resource [1]; r->start = 0; r->end = 0xffffff; } DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_DUNORD, PCI_DEVICE_ID_DUNORD_I3000, quirk_dunord); /* * i82380FB mobile docking controller: its PCI-to-PCI bridge * is subtractive decoding (transparent), and does indicate this * in the ProgIf. Unfortunately, the ProgIf value is wrong - 0x80 * instead of 0x01. */ static void __devinit quirk_transparent_bridge(struct pci_dev *dev) { dev->transparent = 1; } DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82380FB, quirk_transparent_bridge); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_TOSHIBA, 0x605, quirk_transparent_bridge); /* * Common misconfiguration of the MediaGX/Geode PCI master that will * reduce PCI bandwidth from 70MB/s to 25MB/s. See the GXM/GXLV/GX1 * datasheets found at http://www.national.com/analog for info on what * these bits do. <[email protected]> */ static void quirk_mediagx_master(struct pci_dev *dev) { u8 reg; pci_read_config_byte(dev, 0x41, &reg); if (reg & 2) { reg &= ~2; dev_info(&dev->dev, "Fixup for MediaGX/Geode Slave Disconnect Boundary (0x41=0x%02x)\n", reg); pci_write_config_byte(dev, 0x41, reg); } } DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_CYRIX, PCI_DEVICE_ID_CYRIX_PCI_MASTER, quirk_mediagx_master); DECLARE_PCI_FIXUP_RESUME(PCI_VENDOR_ID_CYRIX, PCI_DEVICE_ID_CYRIX_PCI_MASTER, quirk_mediagx_master); /* * Ensure C0 rev restreaming is off. This is normally done by * the BIOS but in the odd case it is not the results are corruption * hence the presence of a Linux check */ static void quirk_disable_pxb(struct pci_dev *pdev) { u16 config; if (pdev->revision != 0x04) /* Only C0 requires this */ return; pci_read_config_word(pdev, 0x40, &config); if (config & (1<<6)) { config &= ~(1<<6); pci_write_config_word(pdev, 0x40, config); dev_info(&pdev->dev, "C0 revision 450NX. Disabling PCI restreaming\n"); } } DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82454NX, quirk_disable_pxb); DECLARE_PCI_FIXUP_RESUME_EARLY(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82454NX, quirk_disable_pxb); static void __devinit quirk_amd_ide_mode(struct pci_dev *pdev) { /* set SBX00/Hudson-2 SATA in IDE mode to AHCI mode */ u8 tmp; pci_read_config_byte(pdev, PCI_CLASS_DEVICE, &tmp); if (tmp == 0x01) { pci_read_config_byte(pdev, 0x40, &tmp); pci_write_config_byte(pdev, 0x40, tmp|1); pci_write_config_byte(pdev, 0x9, 1); pci_write_config_byte(pdev, 0xa, 6); pci_write_config_byte(pdev, 0x40, tmp); pdev->class = PCI_CLASS_STORAGE_SATA_AHCI; dev_info(&pdev->dev, "set SATA to AHCI mode\n"); } } DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_ATI_IXP600_SATA, quirk_amd_ide_mode); DECLARE_PCI_FIXUP_RESUME_EARLY(PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_ATI_IXP600_SATA, quirk_amd_ide_mode); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_ATI_IXP700_SATA, quirk_amd_ide_mode); DECLARE_PCI_FIXUP_RESUME_EARLY(PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_ATI_IXP700_SATA, quirk_amd_ide_mode); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_HUDSON2_SATA_IDE, quirk_amd_ide_mode); DECLARE_PCI_FIXUP_RESUME_EARLY(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_HUDSON2_SATA_IDE, quirk_amd_ide_mode); /* * Serverworks CSB5 IDE does not fully support native mode */ static void __devinit quirk_svwks_csb5ide(struct pci_dev *pdev) { u8 prog; pci_read_config_byte(pdev, PCI_CLASS_PROG, &prog); if (prog & 5) { prog &= ~5; pdev->class &= ~5; pci_write_config_byte(pdev, PCI_CLASS_PROG, prog); /* PCI layer will sort out resources */ } } DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_SERVERWORKS, PCI_DEVICE_ID_SERVERWORKS_CSB5IDE, quirk_svwks_csb5ide); /* * Intel 82801CAM ICH3-M datasheet says IDE modes must be the same */ static void __init quirk_ide_samemode(struct pci_dev *pdev) { u8 prog; pci_read_config_byte(pdev, PCI_CLASS_PROG, &prog); if (((prog & 1) && !(prog & 4)) || ((prog & 4) && !(prog & 1))) { dev_info(&pdev->dev, "IDE mode mismatch; forcing legacy mode\n"); prog &= ~5; pdev->class &= ~5; pci_write_config_byte(pdev, PCI_CLASS_PROG, prog); } } DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82801CA_10, quirk_ide_samemode); /* * Some ATA devices break if put into D3 */ static void __devinit quirk_no_ata_d3(struct pci_dev *pdev) { pdev->dev_flags |= PCI_DEV_FLAGS_NO_D3; } /* Quirk the legacy ATA devices only. The AHCI ones are ok */ DECLARE_PCI_FIXUP_CLASS_EARLY(PCI_VENDOR_ID_SERVERWORKS, PCI_ANY_ID, PCI_CLASS_STORAGE_IDE, 8, quirk_no_ata_d3); DECLARE_PCI_FIXUP_CLASS_EARLY(PCI_VENDOR_ID_ATI, PCI_ANY_ID, PCI_CLASS_STORAGE_IDE, 8, quirk_no_ata_d3); /* ALi loses some register settings that we cannot then restore */ DECLARE_PCI_FIXUP_CLASS_EARLY(PCI_VENDOR_ID_AL, PCI_ANY_ID, PCI_CLASS_STORAGE_IDE, 8, quirk_no_ata_d3); /* VIA comes back fine but we need to keep it alive or ACPI GTM failures occur when mode detecting */ DECLARE_PCI_FIXUP_CLASS_EARLY(PCI_VENDOR_ID_VIA, PCI_ANY_ID, PCI_CLASS_STORAGE_IDE, 8, quirk_no_ata_d3); /* This was originally an Alpha specific thing, but it really fits here. * The i82375 PCI/EISA bridge appears as non-classified. Fix that. */ static void __init quirk_eisa_bridge(struct pci_dev *dev) { dev->class = PCI_CLASS_BRIDGE_EISA << 8; } DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82375, quirk_eisa_bridge); /* * On ASUS P4B boards, the SMBus PCI Device within the ICH2/4 southbridge * is not activated. The myth is that Asus said that they do not want the * users to be irritated by just another PCI Device in the Win98 device * manager. (see the file prog/hotplug/README.p4b in the lm_sensors * package 2.7.0 for details) * * The SMBus PCI Device can be activated by setting a bit in the ICH LPC * bridge. Unfortunately, this device has no subvendor/subdevice ID. So it * becomes necessary to do this tweak in two steps -- the chosen trigger * is either the Host bridge (preferred) or on-board VGA controller. * * Note that we used to unhide the SMBus that way on Toshiba laptops * (Satellite A40 and Tecra M2) but then found that the thermal management * was done by SMM code, which could cause unsynchronized concurrent * accesses to the SMBus registers, with potentially bad effects. Thus you * should be very careful when adding new entries: if SMM is accessing the * Intel SMBus, this is a very good reason to leave it hidden. * * Likewise, many recent laptops use ACPI for thermal management. If the * ACPI DSDT code accesses the SMBus, then Linux should not access it * natively, and keeping the SMBus hidden is the right thing to do. If you * are about to add an entry in the table below, please first disassemble * the DSDT and double-check that there is no code accessing the SMBus. */ static int asus_hides_smbus; static void __init asus_hides_smbus_hostbridge(struct pci_dev *dev) { if (unlikely(dev->subsystem_vendor == PCI_VENDOR_ID_ASUSTEK)) { if (dev->device == PCI_DEVICE_ID_INTEL_82845_HB) switch(dev->subsystem_device) { case 0x8025: /* P4B-LX */ case 0x8070: /* P4B */ case 0x8088: /* P4B533 */ case 0x1626: /* L3C notebook */ asus_hides_smbus = 1; } else if (dev->device == PCI_DEVICE_ID_INTEL_82845G_HB) switch(dev->subsystem_device) { case 0x80b1: /* P4GE-V */ case 0x80b2: /* P4PE */ case 0x8093: /* P4B533-V */ asus_hides_smbus = 1; } else if (dev->device == PCI_DEVICE_ID_INTEL_82850_HB) switch(dev->subsystem_device) { case 0x8030: /* P4T533 */ asus_hides_smbus = 1; } else if (dev->device == PCI_DEVICE_ID_INTEL_7205_0) switch (dev->subsystem_device) { case 0x8070: /* P4G8X Deluxe */ asus_hides_smbus = 1; } else if (dev->device == PCI_DEVICE_ID_INTEL_E7501_MCH) switch (dev->subsystem_device) { case 0x80c9: /* PU-DLS */ asus_hides_smbus = 1; } else if (dev->device == PCI_DEVICE_ID_INTEL_82855GM_HB) switch (dev->subsystem_device) { case 0x1751: /* M2N notebook */ case 0x1821: /* M5N notebook */ case 0x1897: /* A6L notebook */ asus_hides_smbus = 1; } else if (dev->device == PCI_DEVICE_ID_INTEL_82855PM_HB) switch (dev->subsystem_device) { case 0x184b: /* W1N notebook */ case 0x186a: /* M6Ne notebook */ asus_hides_smbus = 1; } else if (dev->device == PCI_DEVICE_ID_INTEL_82865_HB) switch (dev->subsystem_device) { case 0x80f2: /* P4P800-X */ asus_hides_smbus = 1; } else if (dev->device == PCI_DEVICE_ID_INTEL_82915GM_HB) switch (dev->subsystem_device) { case 0x1882: /* M6V notebook */ case 0x1977: /* A6VA notebook */ asus_hides_smbus = 1; } } else if (unlikely(dev->subsystem_vendor == PCI_VENDOR_ID_HP)) { if (dev->device == PCI_DEVICE_ID_INTEL_82855PM_HB) switch(dev->subsystem_device) { case 0x088C: /* HP Compaq nc8000 */ case 0x0890: /* HP Compaq nc6000 */ asus_hides_smbus = 1; } else if (dev->device == PCI_DEVICE_ID_INTEL_82865_HB) switch (dev->subsystem_device) { case 0x12bc: /* HP D330L */ case 0x12bd: /* HP D530 */ case 0x006a: /* HP Compaq nx9500 */ asus_hides_smbus = 1; } else if (dev->device == PCI_DEVICE_ID_INTEL_82875_HB) switch (dev->subsystem_device) { case 0x12bf: /* HP xw4100 */ asus_hides_smbus = 1; } } else if (unlikely(dev->subsystem_vendor == PCI_VENDOR_ID_SAMSUNG)) { if (dev->device == PCI_DEVICE_ID_INTEL_82855PM_HB) switch(dev->subsystem_device) { case 0xC00C: /* Samsung P35 notebook */ asus_hides_smbus = 1; } } else if (unlikely(dev->subsystem_vendor == PCI_VENDOR_ID_COMPAQ)) { if (dev->device == PCI_DEVICE_ID_INTEL_82855PM_HB) switch(dev->subsystem_device) { case 0x0058: /* Compaq Evo N620c */ asus_hides_smbus = 1; } else if (dev->device == PCI_DEVICE_ID_INTEL_82810_IG3) switch(dev->subsystem_device) { case 0xB16C: /* Compaq Deskpro EP 401963-001 (PCA# 010174) */ /* Motherboard doesn't have Host bridge * subvendor/subdevice IDs, therefore checking * its on-board VGA controller */ asus_hides_smbus = 1; } else if (dev->device == PCI_DEVICE_ID_INTEL_82801DB_2) switch(dev->subsystem_device) { case 0x00b8: /* Compaq Evo D510 CMT */ case 0x00b9: /* Compaq Evo D510 SFF */ case 0x00ba: /* Compaq Evo D510 USDT */ /* Motherboard doesn't have Host bridge * subvendor/subdevice IDs and on-board VGA * controller is disabled if an AGP card is * inserted, therefore checking USB UHCI * Controller #1 */ asus_hides_smbus = 1; } else if (dev->device == PCI_DEVICE_ID_INTEL_82815_CGC) switch (dev->subsystem_device) { case 0x001A: /* Compaq Deskpro EN SSF P667 815E */ /* Motherboard doesn't have host bridge * subvendor/subdevice IDs, therefore checking * its on-board VGA controller */ asus_hides_smbus = 1; } } } DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82845_HB, asus_hides_smbus_hostbridge); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82845G_HB, asus_hides_smbus_hostbridge); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82850_HB, asus_hides_smbus_hostbridge); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82865_HB, asus_hides_smbus_hostbridge); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82875_HB, asus_hides_smbus_hostbridge); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_7205_0, asus_hides_smbus_hostbridge); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_E7501_MCH, asus_hides_smbus_hostbridge); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82855PM_HB, asus_hides_smbus_hostbridge); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82855GM_HB, asus_hides_smbus_hostbridge); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82915GM_HB, asus_hides_smbus_hostbridge); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82810_IG3, asus_hides_smbus_hostbridge); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82801DB_2, asus_hides_smbus_hostbridge); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82815_CGC, asus_hides_smbus_hostbridge); static void asus_hides_smbus_lpc(struct pci_dev *dev) { u16 val; if (likely(!asus_hides_smbus)) return; pci_read_config_word(dev, 0xF2, &val); if (val & 0x8) { pci_write_config_word(dev, 0xF2, val & (~0x8)); pci_read_config_word(dev, 0xF2, &val); if (val & 0x8) dev_info(&dev->dev, "i801 SMBus device continues to play 'hide and seek'! 0x%x\n", val); else dev_info(&dev->dev, "Enabled i801 SMBus device\n"); } } DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82801AA_0, asus_hides_smbus_lpc); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82801DB_0, asus_hides_smbus_lpc); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82801BA_0, asus_hides_smbus_lpc); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82801CA_0, asus_hides_smbus_lpc); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82801CA_12, asus_hides_smbus_lpc); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82801DB_12, asus_hides_smbus_lpc); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82801EB_0, asus_hides_smbus_lpc); DECLARE_PCI_FIXUP_RESUME_EARLY(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82801AA_0, asus_hides_smbus_lpc); DECLARE_PCI_FIXUP_RESUME_EARLY(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82801DB_0, asus_hides_smbus_lpc); DECLARE_PCI_FIXUP_RESUME_EARLY(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82801BA_0, asus_hides_smbus_lpc); DECLARE_PCI_FIXUP_RESUME_EARLY(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82801CA_0, asus_hides_smbus_lpc); DECLARE_PCI_FIXUP_RESUME_EARLY(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82801CA_12, asus_hides_smbus_lpc); DECLARE_PCI_FIXUP_RESUME_EARLY(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82801DB_12, asus_hides_smbus_lpc); DECLARE_PCI_FIXUP_RESUME_EARLY(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82801EB_0, asus_hides_smbus_lpc); /* It appears we just have one such device. If not, we have a warning */ static void __iomem *asus_rcba_base; static void asus_hides_smbus_lpc_ich6_suspend(struct pci_dev *dev) { u32 rcba; if (likely(!asus_hides_smbus)) return; WARN_ON(asus_rcba_base); pci_read_config_dword(dev, 0xF0, &rcba); /* use bits 31:14, 16 kB aligned */ asus_rcba_base = ioremap_nocache(rcba & 0xFFFFC000, 0x4000); if (asus_rcba_base == NULL) return; } static void asus_hides_smbus_lpc_ich6_resume_early(struct pci_dev *dev) { u32 val; if (likely(!asus_hides_smbus || !asus_rcba_base)) return; /* read the Function Disable register, dword mode only */ val = readl(asus_rcba_base + 0x3418); writel(val & 0xFFFFFFF7, asus_rcba_base + 0x3418); /* enable the SMBus device */ } static void asus_hides_smbus_lpc_ich6_resume(struct pci_dev *dev) { if (likely(!asus_hides_smbus || !asus_rcba_base)) return; iounmap(asus_rcba_base); asus_rcba_base = NULL; dev_info(&dev->dev, "Enabled ICH6/i801 SMBus device\n"); } static void asus_hides_smbus_lpc_ich6(struct pci_dev *dev) { asus_hides_smbus_lpc_ich6_suspend(dev); asus_hides_smbus_lpc_ich6_resume_early(dev); asus_hides_smbus_lpc_ich6_resume(dev); } DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH6_1, asus_hides_smbus_lpc_ich6); DECLARE_PCI_FIXUP_SUSPEND(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH6_1, asus_hides_smbus_lpc_ich6_suspend); DECLARE_PCI_FIXUP_RESUME(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH6_1, asus_hides_smbus_lpc_ich6_resume); DECLARE_PCI_FIXUP_RESUME_EARLY(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ICH6_1, asus_hides_smbus_lpc_ich6_resume_early); /* * SiS 96x south bridge: BIOS typically hides SMBus device... */ static void quirk_sis_96x_smbus(struct pci_dev *dev) { u8 val = 0; pci_read_config_byte(dev, 0x77, &val); if (val & 0x10) { dev_info(&dev->dev, "Enabling SiS 96x SMBus\n"); pci_write_config_byte(dev, 0x77, val & ~0x10); } } DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_SI, PCI_DEVICE_ID_SI_961, quirk_sis_96x_smbus); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_SI, PCI_DEVICE_ID_SI_962, quirk_sis_96x_smbus); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_SI, PCI_DEVICE_ID_SI_963, quirk_sis_96x_smbus); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_SI, PCI_DEVICE_ID_SI_LPC, quirk_sis_96x_smbus); DECLARE_PCI_FIXUP_RESUME_EARLY(PCI_VENDOR_ID_SI, PCI_DEVICE_ID_SI_961, quirk_sis_96x_smbus); DECLARE_PCI_FIXUP_RESUME_EARLY(PCI_VENDOR_ID_SI, PCI_DEVICE_ID_SI_962, quirk_sis_96x_smbus); DECLARE_PCI_FIXUP_RESUME_EARLY(PCI_VENDOR_ID_SI, PCI_DEVICE_ID_SI_963, quirk_sis_96x_smbus); DECLARE_PCI_FIXUP_RESUME_EARLY(PCI_VENDOR_ID_SI, PCI_DEVICE_ID_SI_LPC, quirk_sis_96x_smbus); /* * ... This is further complicated by the fact that some SiS96x south * bridges pretend to be 85C503/5513 instead. In that case see if we * spotted a compatible north bridge to make sure. * (pci_find_device doesn't work yet) * * We can also enable the sis96x bit in the discovery register.. */ #define SIS_DETECT_REGISTER 0x40 static void quirk_sis_503(struct pci_dev *dev) { u8 reg; u16 devid; pci_read_config_byte(dev, SIS_DETECT_REGISTER, &reg); pci_write_config_byte(dev, SIS_DETECT_REGISTER, reg | (1 << 6)); pci_read_config_word(dev, PCI_DEVICE_ID, &devid); if (((devid & 0xfff0) != 0x0960) && (devid != 0x0018)) { pci_write_config_byte(dev, SIS_DETECT_REGISTER, reg); return; } /* * Ok, it now shows up as a 96x.. run the 96x quirk by * hand in case it has already been processed. * (depends on link order, which is apparently not guaranteed) */ dev->device = devid; quirk_sis_96x_smbus(dev); } DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_SI, PCI_DEVICE_ID_SI_503, quirk_sis_503); DECLARE_PCI_FIXUP_RESUME_EARLY(PCI_VENDOR_ID_SI, PCI_DEVICE_ID_SI_503, quirk_sis_503); /* * On ASUS A8V and A8V Deluxe boards, the onboard AC97 audio controller * and MC97 modem controller are disabled when a second PCI soundcard is * present. This patch, tweaking the VT8237 ISA bridge, enables them. * -- bjd */ static void asus_hides_ac97_lpc(struct pci_dev *dev) { u8 val; int asus_hides_ac97 = 0; if (likely(dev->subsystem_vendor == PCI_VENDOR_ID_ASUSTEK)) { if (dev->device == PCI_DEVICE_ID_VIA_8237) asus_hides_ac97 = 1; } if (!asus_hides_ac97) return; pci_read_config_byte(dev, 0x50, &val); if (val & 0xc0) { pci_write_config_byte(dev, 0x50, val & (~0xc0)); pci_read_config_byte(dev, 0x50, &val); if (val & 0xc0) dev_info(&dev->dev, "Onboard AC97/MC97 devices continue to play 'hide and seek'! 0x%x\n", val); else dev_info(&dev->dev, "Enabled onboard AC97/MC97 devices\n"); } } DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8237, asus_hides_ac97_lpc); DECLARE_PCI_FIXUP_RESUME_EARLY(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8237, asus_hides_ac97_lpc); #if defined(CONFIG_ATA) || defined(CONFIG_ATA_MODULE) /* * If we are using libata we can drive this chip properly but must * do this early on to make the additional device appear during * the PCI scanning. */ static void quirk_jmicron_ata(struct pci_dev *pdev) { u32 conf1, conf5, class; u8 hdr; /* Only poke fn 0 */ if (PCI_FUNC(pdev->devfn)) return; pci_read_config_dword(pdev, 0x40, &conf1); pci_read_config_dword(pdev, 0x80, &conf5); conf1 &= ~0x00CFF302; /* Clear bit 1, 8, 9, 12-19, 22, 23 */ conf5 &= ~(1 << 24); /* Clear bit 24 */ switch (pdev->device) { case PCI_DEVICE_ID_JMICRON_JMB360: /* SATA single port */ case PCI_DEVICE_ID_JMICRON_JMB362: /* SATA dual ports */ case PCI_DEVICE_ID_JMICRON_JMB364: /* SATA dual ports */ /* The controller should be in single function ahci mode */ conf1 |= 0x0002A100; /* Set 8, 13, 15, 17 */ break; case PCI_DEVICE_ID_JMICRON_JMB365: case PCI_DEVICE_ID_JMICRON_JMB366: /* Redirect IDE second PATA port to the right spot */ conf5 |= (1 << 24); /* Fall through */ case PCI_DEVICE_ID_JMICRON_JMB361: case PCI_DEVICE_ID_JMICRON_JMB363: case PCI_DEVICE_ID_JMICRON_JMB369: /* Enable dual function mode, AHCI on fn 0, IDE fn1 */ /* Set the class codes correctly and then direct IDE 0 */ conf1 |= 0x00C2A1B3; /* Set 0, 1, 4, 5, 7, 8, 13, 15, 17, 22, 23 */ break; case PCI_DEVICE_ID_JMICRON_JMB368: /* The controller should be in single function IDE mode */ conf1 |= 0x00C00000; /* Set 22, 23 */ break; } pci_write_config_dword(pdev, 0x40, conf1); pci_write_config_dword(pdev, 0x80, conf5); /* Update pdev accordingly */ pci_read_config_byte(pdev, PCI_HEADER_TYPE, &hdr); pdev->hdr_type = hdr & 0x7f; pdev->multifunction = !!(hdr & 0x80); pci_read_config_dword(pdev, PCI_CLASS_REVISION, &class); pdev->class = class >> 8; } DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_JMB360, quirk_jmicron_ata); DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_JMB361, quirk_jmicron_ata); DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_JMB362, quirk_jmicron_ata); DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_JMB363, quirk_jmicron_ata); DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_JMB364, quirk_jmicron_ata); DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_JMB365, quirk_jmicron_ata); DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_JMB366, quirk_jmicron_ata); DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_JMB368, quirk_jmicron_ata); DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_JMB369, quirk_jmicron_ata); DECLARE_PCI_FIXUP_RESUME_EARLY(PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_JMB360, quirk_jmicron_ata); DECLARE_PCI_FIXUP_RESUME_EARLY(PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_JMB361, quirk_jmicron_ata); DECLARE_PCI_FIXUP_RESUME_EARLY(PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_JMB362, quirk_jmicron_ata); DECLARE_PCI_FIXUP_RESUME_EARLY(PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_JMB363, quirk_jmicron_ata); DECLARE_PCI_FIXUP_RESUME_EARLY(PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_JMB364, quirk_jmicron_ata); DECLARE_PCI_FIXUP_RESUME_EARLY(PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_JMB365, quirk_jmicron_ata); DECLARE_PCI_FIXUP_RESUME_EARLY(PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_JMB366, quirk_jmicron_ata); DECLARE_PCI_FIXUP_RESUME_EARLY(PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_JMB368, quirk_jmicron_ata); DECLARE_PCI_FIXUP_RESUME_EARLY(PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_JMB369, quirk_jmicron_ata); #endif #ifdef CONFIG_X86_IO_APIC static void __init quirk_alder_ioapic(struct pci_dev *pdev) { int i; if ((pdev->class >> 8) != 0xff00) return; /* the first BAR is the location of the IO APIC...we must * not touch this (and it's already covered by the fixmap), so * forcibly insert it into the resource tree */ if (pci_resource_start(pdev, 0) && pci_resource_len(pdev, 0)) insert_resource(&iomem_resource, &pdev->resource[0]); /* The next five BARs all seem to be rubbish, so just clean * them out */ for (i=1; i < 6; i++) { memset(&pdev->resource[i], 0, sizeof(pdev->resource[i])); } } DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_EESSC, quirk_alder_ioapic); #endif static void __devinit quirk_pcie_mch(struct pci_dev *pdev) { pci_msi_off(pdev); pdev->no_msi = 1; } DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_E7520_MCH, quirk_pcie_mch); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_E7320_MCH, quirk_pcie_mch); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_E7525_MCH, quirk_pcie_mch); /* * It's possible for the MSI to get corrupted if shpc and acpi * are used together on certain PXH-based systems. */ static void __devinit quirk_pcie_pxh(struct pci_dev *dev) { pci_msi_off(dev); dev->no_msi = 1; dev_warn(&dev->dev, "PXH quirk detected; SHPC device MSI disabled\n"); } DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_PXHD_0, quirk_pcie_pxh); DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_PXHD_1, quirk_pcie_pxh); DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_PXH_0, quirk_pcie_pxh); DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_PXH_1, quirk_pcie_pxh); DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_PXHV, quirk_pcie_pxh); /* * Some Intel PCI Express chipsets have trouble with downstream * device power management. */ static void quirk_intel_pcie_pm(struct pci_dev * dev) { pci_pm_d3_delay = 120; dev->no_d1d2 = 1; } DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, 0x25e2, quirk_intel_pcie_pm); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, 0x25e3, quirk_intel_pcie_pm); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, 0x25e4, quirk_intel_pcie_pm); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, 0x25e5, quirk_intel_pcie_pm); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, 0x25e6, quirk_intel_pcie_pm); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, 0x25e7, quirk_intel_pcie_pm); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, 0x25f7, quirk_intel_pcie_pm); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, 0x25f8, quirk_intel_pcie_pm); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, 0x25f9, quirk_intel_pcie_pm); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, 0x25fa, quirk_intel_pcie_pm); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, 0x2601, quirk_intel_pcie_pm); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, 0x2602, quirk_intel_pcie_pm); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, 0x2603, quirk_intel_pcie_pm); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, 0x2604, quirk_intel_pcie_pm); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, 0x2605, quirk_intel_pcie_pm); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, 0x2606, quirk_intel_pcie_pm); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, 0x2607, quirk_intel_pcie_pm); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, 0x2608, quirk_intel_pcie_pm); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, 0x2609, quirk_intel_pcie_pm); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, 0x260a, quirk_intel_pcie_pm); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, 0x260b, quirk_intel_pcie_pm); #ifdef CONFIG_X86_IO_APIC /* * Boot interrupts on some chipsets cannot be turned off. For these chipsets, * remap the original interrupt in the linux kernel to the boot interrupt, so * that a PCI device's interrupt handler is installed on the boot interrupt * line instead. */ static void quirk_reroute_to_boot_interrupts_intel(struct pci_dev *dev) { if (noioapicquirk || noioapicreroute) return; dev->irq_reroute_variant = INTEL_IRQ_REROUTE_VARIANT; dev_info(&dev->dev, "rerouting interrupts for [%04x:%04x]\n", dev->vendor, dev->device); } DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_80333_0, quirk_reroute_to_boot_interrupts_intel); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_80333_1, quirk_reroute_to_boot_interrupts_intel); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ESB2_0, quirk_reroute_to_boot_interrupts_intel); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_PXH_0, quirk_reroute_to_boot_interrupts_intel); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_PXH_1, quirk_reroute_to_boot_interrupts_intel); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_PXHV, quirk_reroute_to_boot_interrupts_intel); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_80332_0, quirk_reroute_to_boot_interrupts_intel); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_80332_1, quirk_reroute_to_boot_interrupts_intel); DECLARE_PCI_FIXUP_RESUME(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_80333_0, quirk_reroute_to_boot_interrupts_intel); DECLARE_PCI_FIXUP_RESUME(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_80333_1, quirk_reroute_to_boot_interrupts_intel); DECLARE_PCI_FIXUP_RESUME(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ESB2_0, quirk_reroute_to_boot_interrupts_intel); DECLARE_PCI_FIXUP_RESUME(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_PXH_0, quirk_reroute_to_boot_interrupts_intel); DECLARE_PCI_FIXUP_RESUME(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_PXH_1, quirk_reroute_to_boot_interrupts_intel); DECLARE_PCI_FIXUP_RESUME(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_PXHV, quirk_reroute_to_boot_interrupts_intel); DECLARE_PCI_FIXUP_RESUME(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_80332_0, quirk_reroute_to_boot_interrupts_intel); DECLARE_PCI_FIXUP_RESUME(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_80332_1, quirk_reroute_to_boot_interrupts_intel); /* * On some chipsets we can disable the generation of legacy INTx boot * interrupts. */ /* * IO-APIC1 on 6300ESB generates boot interrupts, see intel order no * 300641-004US, section 5.7.3. */ #define INTEL_6300_IOAPIC_ABAR 0x40 #define INTEL_6300_DISABLE_BOOT_IRQ (1<<14) static void quirk_disable_intel_boot_interrupt(struct pci_dev *dev) { u16 pci_config_word; if (noioapicquirk) return; pci_read_config_word(dev, INTEL_6300_IOAPIC_ABAR, &pci_config_word); pci_config_word |= INTEL_6300_DISABLE_BOOT_IRQ; pci_write_config_word(dev, INTEL_6300_IOAPIC_ABAR, pci_config_word); dev_info(&dev->dev, "disabled boot interrupts on device [%04x:%04x]\n", dev->vendor, dev->device); } DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ESB_10, quirk_disable_intel_boot_interrupt); DECLARE_PCI_FIXUP_RESUME(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ESB_10, quirk_disable_intel_boot_interrupt); /* * disable boot interrupts on HT-1000 */ #define BC_HT1000_FEATURE_REG 0x64 #define BC_HT1000_PIC_REGS_ENABLE (1<<0) #define BC_HT1000_MAP_IDX 0xC00 #define BC_HT1000_MAP_DATA 0xC01 static void quirk_disable_broadcom_boot_interrupt(struct pci_dev *dev) { u32 pci_config_dword; u8 irq; if (noioapicquirk) return; pci_read_config_dword(dev, BC_HT1000_FEATURE_REG, &pci_config_dword); pci_write_config_dword(dev, BC_HT1000_FEATURE_REG, pci_config_dword | BC_HT1000_PIC_REGS_ENABLE); for (irq = 0x10; irq < 0x10 + 32; irq++) { outb(irq, BC_HT1000_MAP_IDX); outb(0x00, BC_HT1000_MAP_DATA); } pci_write_config_dword(dev, BC_HT1000_FEATURE_REG, pci_config_dword); dev_info(&dev->dev, "disabled boot interrupts on device [%04x:%04x]\n", dev->vendor, dev->device); } DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_SERVERWORKS, PCI_DEVICE_ID_SERVERWORKS_HT1000SB, quirk_disable_broadcom_boot_interrupt); DECLARE_PCI_FIXUP_RESUME(PCI_VENDOR_ID_SERVERWORKS, PCI_DEVICE_ID_SERVERWORKS_HT1000SB, quirk_disable_broadcom_boot_interrupt); /* * disable boot interrupts on AMD and ATI chipsets */ /* * NOIOAMODE needs to be disabled to disable "boot interrupts". For AMD 8131 * rev. A0 and B0, NOIOAMODE needs to be disabled anyway to fix IO-APIC mode * (due to an erratum). */ #define AMD_813X_MISC 0x40 #define AMD_813X_NOIOAMODE (1<<0) #define AMD_813X_REV_B1 0x12 #define AMD_813X_REV_B2 0x13 static void quirk_disable_amd_813x_boot_interrupt(struct pci_dev *dev) { u32 pci_config_dword; if (noioapicquirk) return; if ((dev->revision == AMD_813X_REV_B1) || (dev->revision == AMD_813X_REV_B2)) return; pci_read_config_dword(dev, AMD_813X_MISC, &pci_config_dword); pci_config_dword &= ~AMD_813X_NOIOAMODE; pci_write_config_dword(dev, AMD_813X_MISC, pci_config_dword); dev_info(&dev->dev, "disabled boot interrupts on device [%04x:%04x]\n", dev->vendor, dev->device); } DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_8131_BRIDGE, quirk_disable_amd_813x_boot_interrupt); DECLARE_PCI_FIXUP_RESUME(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_8131_BRIDGE, quirk_disable_amd_813x_boot_interrupt); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_8132_BRIDGE, quirk_disable_amd_813x_boot_interrupt); DECLARE_PCI_FIXUP_RESUME(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_8132_BRIDGE, quirk_disable_amd_813x_boot_interrupt); #define AMD_8111_PCI_IRQ_ROUTING 0x56 static void quirk_disable_amd_8111_boot_interrupt(struct pci_dev *dev) { u16 pci_config_word; if (noioapicquirk) return; pci_read_config_word(dev, AMD_8111_PCI_IRQ_ROUTING, &pci_config_word); if (!pci_config_word) { dev_info(&dev->dev, "boot interrupts on device [%04x:%04x] " "already disabled\n", dev->vendor, dev->device); return; } pci_write_config_word(dev, AMD_8111_PCI_IRQ_ROUTING, 0); dev_info(&dev->dev, "disabled boot interrupts on device [%04x:%04x]\n", dev->vendor, dev->device); } DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_8111_SMBUS, quirk_disable_amd_8111_boot_interrupt); DECLARE_PCI_FIXUP_RESUME(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_8111_SMBUS, quirk_disable_amd_8111_boot_interrupt); #endif /* CONFIG_X86_IO_APIC */ /* * Toshiba TC86C001 IDE controller reports the standard 8-byte BAR0 size * but the PIO transfers won't work if BAR0 falls at the odd 8 bytes. * Re-allocate the region if needed... */ static void __init quirk_tc86c001_ide(struct pci_dev *dev) { struct resource *r = &dev->resource[0]; if (r->start & 0x8) { r->start = 0; r->end = 0xf; } } DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_TOSHIBA_2, PCI_DEVICE_ID_TOSHIBA_TC86C001_IDE, quirk_tc86c001_ide); static void __devinit quirk_netmos(struct pci_dev *dev) { unsigned int num_parallel = (dev->subsystem_device & 0xf0) >> 4; unsigned int num_serial = dev->subsystem_device & 0xf; /* * These Netmos parts are multiport serial devices with optional * parallel ports. Even when parallel ports are present, they * are identified as class SERIAL, which means the serial driver * will claim them. To prevent this, mark them as class OTHER. * These combo devices should be claimed by parport_serial. * * The subdevice ID is of the form 0x00PS, where <P> is the number * of parallel ports and <S> is the number of serial ports. */ switch (dev->device) { case PCI_DEVICE_ID_NETMOS_9835: /* Well, this rule doesn't hold for the following 9835 device */ if (dev->subsystem_vendor == PCI_VENDOR_ID_IBM && dev->subsystem_device == 0x0299) return; case PCI_DEVICE_ID_NETMOS_9735: case PCI_DEVICE_ID_NETMOS_9745: case PCI_DEVICE_ID_NETMOS_9845: case PCI_DEVICE_ID_NETMOS_9855: if (num_parallel) { dev_info(&dev->dev, "Netmos %04x (%u parallel, " "%u serial); changing class SERIAL to OTHER " "(use parport_serial)\n", dev->device, num_parallel, num_serial); dev->class = (PCI_CLASS_COMMUNICATION_OTHER << 8) | (dev->class & 0xff); } } } DECLARE_PCI_FIXUP_CLASS_HEADER(PCI_VENDOR_ID_NETMOS, PCI_ANY_ID, PCI_CLASS_COMMUNICATION_SERIAL, 8, quirk_netmos); static void __devinit quirk_e100_interrupt(struct pci_dev *dev) { u16 command, pmcsr; u8 __iomem *csr; u8 cmd_hi; int pm; switch (dev->device) { /* PCI IDs taken from drivers/net/e100.c */ case 0x1029: case 0x1030 ... 0x1034: case 0x1038 ... 0x103E: case 0x1050 ... 0x1057: case 0x1059: case 0x1064 ... 0x106B: case 0x1091 ... 0x1095: case 0x1209: case 0x1229: case 0x2449: case 0x2459: case 0x245D: case 0x27DC: break; default: return; } /* * Some firmware hands off the e100 with interrupts enabled, * which can cause a flood of interrupts if packets are * received before the driver attaches to the device. So * disable all e100 interrupts here. The driver will * re-enable them when it's ready. */ pci_read_config_word(dev, PCI_COMMAND, &command); if (!(command & PCI_COMMAND_MEMORY) || !pci_resource_start(dev, 0)) return; /* * Check that the device is in the D0 power state. If it's not, * there is no point to look any further. */ pm = pci_find_capability(dev, PCI_CAP_ID_PM); if (pm) { pci_read_config_word(dev, pm + PCI_PM_CTRL, &pmcsr); if ((pmcsr & PCI_PM_CTRL_STATE_MASK) != PCI_D0) return; } /* Convert from PCI bus to resource space. */ csr = ioremap(pci_resource_start(dev, 0), 8); if (!csr) { dev_warn(&dev->dev, "Can't map e100 registers\n"); return; } cmd_hi = readb(csr + 3); if (cmd_hi == 0) { dev_warn(&dev->dev, "Firmware left e100 interrupts enabled; " "disabling\n"); writeb(1, csr + 3); } iounmap(csr); } DECLARE_PCI_FIXUP_CLASS_FINAL(PCI_VENDOR_ID_INTEL, PCI_ANY_ID, PCI_CLASS_NETWORK_ETHERNET, 8, quirk_e100_interrupt); /* * The 82575 and 82598 may experience data corruption issues when transitioning * out of L0S. To prevent this we need to disable L0S on the pci-e link */ static void __devinit quirk_disable_aspm_l0s(struct pci_dev *dev) { dev_info(&dev->dev, "Disabling L0s\n"); pci_disable_link_state(dev, PCIE_LINK_STATE_L0S); } DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, 0x10a7, quirk_disable_aspm_l0s); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, 0x10a9, quirk_disable_aspm_l0s); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, 0x10b6, quirk_disable_aspm_l0s); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, 0x10c6, quirk_disable_aspm_l0s); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, 0x10c7, quirk_disable_aspm_l0s); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, 0x10c8, quirk_disable_aspm_l0s); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, 0x10d6, quirk_disable_aspm_l0s); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, 0x10db, quirk_disable_aspm_l0s); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, 0x10dd, quirk_disable_aspm_l0s); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, 0x10e1, quirk_disable_aspm_l0s); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, 0x10ec, quirk_disable_aspm_l0s); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, 0x10f1, quirk_disable_aspm_l0s); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, 0x10f4, quirk_disable_aspm_l0s); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, 0x1508, quirk_disable_aspm_l0s); static void __devinit fixup_rev1_53c810(struct pci_dev* dev) { /* rev 1 ncr53c810 chips don't set the class at all which means * they don't get their resources remapped. Fix that here. */ if (dev->class == PCI_CLASS_NOT_DEFINED) { dev_info(&dev->dev, "NCR 53c810 rev 1 detected; setting PCI class\n"); dev->class = PCI_CLASS_STORAGE_SCSI; } } DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_NCR, PCI_DEVICE_ID_NCR_53C810, fixup_rev1_53c810); /* Enable 1k I/O space granularity on the Intel P64H2 */ static void __devinit quirk_p64h2_1k_io(struct pci_dev *dev) { u16 en1k; u8 io_base_lo, io_limit_lo; unsigned long base, limit; struct resource *res = dev->resource + PCI_BRIDGE_RESOURCES; pci_read_config_word(dev, 0x40, &en1k); if (en1k & 0x200) { dev_info(&dev->dev, "Enable I/O Space to 1KB granularity\n"); pci_read_config_byte(dev, PCI_IO_BASE, &io_base_lo); pci_read_config_byte(dev, PCI_IO_LIMIT, &io_limit_lo); base = (io_base_lo & (PCI_IO_RANGE_MASK | 0x0c)) << 8; limit = (io_limit_lo & (PCI_IO_RANGE_MASK | 0x0c)) << 8; if (base <= limit) { res->start = base; res->end = limit + 0x3ff; } } } DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, 0x1460, quirk_p64h2_1k_io); /* Fix the IOBL_ADR for 1k I/O space granularity on the Intel P64H2 * The IOBL_ADR gets re-written to 4k boundaries in pci_setup_bridge() * in drivers/pci/setup-bus.c */ static void __devinit quirk_p64h2_1k_io_fix_iobl(struct pci_dev *dev) { u16 en1k, iobl_adr, iobl_adr_1k; struct resource *res = dev->resource + PCI_BRIDGE_RESOURCES; pci_read_config_word(dev, 0x40, &en1k); if (en1k & 0x200) { pci_read_config_word(dev, PCI_IO_BASE, &iobl_adr); iobl_adr_1k = iobl_adr | (res->start >> 8) | (res->end & 0xfc00); if (iobl_adr != iobl_adr_1k) { dev_info(&dev->dev, "Fixing P64H2 IOBL_ADR from 0x%x to 0x%x for 1KB granularity\n", iobl_adr,iobl_adr_1k); pci_write_config_word(dev, PCI_IO_BASE, iobl_adr_1k); } } } DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, 0x1460, quirk_p64h2_1k_io_fix_iobl); /* Under some circumstances, AER is not linked with extended capabilities. * Force it to be linked by setting the corresponding control bit in the * config space. */ static void quirk_nvidia_ck804_pcie_aer_ext_cap(struct pci_dev *dev) { uint8_t b; if (pci_read_config_byte(dev, 0xf41, &b) == 0) { if (!(b & 0x20)) { pci_write_config_byte(dev, 0xf41, b | 0x20); dev_info(&dev->dev, "Linking AER extended capability\n"); } } } DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_NVIDIA, PCI_DEVICE_ID_NVIDIA_CK804_PCIE, quirk_nvidia_ck804_pcie_aer_ext_cap); DECLARE_PCI_FIXUP_RESUME_EARLY(PCI_VENDOR_ID_NVIDIA, PCI_DEVICE_ID_NVIDIA_CK804_PCIE, quirk_nvidia_ck804_pcie_aer_ext_cap); static void __devinit quirk_via_cx700_pci_parking_caching(struct pci_dev *dev) { /* * Disable PCI Bus Parking and PCI Master read caching on CX700 * which causes unspecified timing errors with a VT6212L on the PCI * bus leading to USB2.0 packet loss. * * This quirk is only enabled if a second (on the external PCI bus) * VT6212L is found -- the CX700 core itself also contains a USB * host controller with the same PCI ID as the VT6212L. */ /* Count VT6212L instances */ struct pci_dev *p = pci_get_device(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8235_USB_2, NULL); uint8_t b; /* p should contain the first (internal) VT6212L -- see if we have an external one by searching again */ p = pci_get_device(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8235_USB_2, p); if (!p) return; pci_dev_put(p); if (pci_read_config_byte(dev, 0x76, &b) == 0) { if (b & 0x40) { /* Turn off PCI Bus Parking */ pci_write_config_byte(dev, 0x76, b ^ 0x40); dev_info(&dev->dev, "Disabling VIA CX700 PCI parking\n"); } } if (pci_read_config_byte(dev, 0x72, &b) == 0) { if (b != 0) { /* Turn off PCI Master read caching */ pci_write_config_byte(dev, 0x72, 0x0); /* Set PCI Master Bus time-out to "1x16 PCLK" */ pci_write_config_byte(dev, 0x75, 0x1); /* Disable "Read FIFO Timer" */ pci_write_config_byte(dev, 0x77, 0x0); dev_info(&dev->dev, "Disabling VIA CX700 PCI caching\n"); } } } DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_VIA, 0x324e, quirk_via_cx700_pci_parking_caching); /* * For Broadcom 5706, 5708, 5709 rev. A nics, any read beyond the * VPD end tag will hang the device. This problem was initially * observed when a vpd entry was created in sysfs * ('/sys/bus/pci/devices/<id>/vpd'). A read to this sysfs entry * will dump 32k of data. Reading a full 32k will cause an access * beyond the VPD end tag causing the device to hang. Once the device * is hung, the bnx2 driver will not be able to reset the device. * We believe that it is legal to read beyond the end tag and * therefore the solution is to limit the read/write length. */ static void __devinit quirk_brcm_570x_limit_vpd(struct pci_dev *dev) { /* * Only disable the VPD capability for 5706, 5706S, 5708, * 5708S and 5709 rev. A */ if ((dev->device == PCI_DEVICE_ID_NX2_5706) || (dev->device == PCI_DEVICE_ID_NX2_5706S) || (dev->device == PCI_DEVICE_ID_NX2_5708) || (dev->device == PCI_DEVICE_ID_NX2_5708S) || ((dev->device == PCI_DEVICE_ID_NX2_5709) && (dev->revision & 0xf0) == 0x0)) { if (dev->vpd) dev->vpd->len = 0x80; } } DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_BROADCOM, PCI_DEVICE_ID_NX2_5706, quirk_brcm_570x_limit_vpd); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_BROADCOM, PCI_DEVICE_ID_NX2_5706S, quirk_brcm_570x_limit_vpd); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_BROADCOM, PCI_DEVICE_ID_NX2_5708, quirk_brcm_570x_limit_vpd); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_BROADCOM, PCI_DEVICE_ID_NX2_5708S, quirk_brcm_570x_limit_vpd); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_BROADCOM, PCI_DEVICE_ID_NX2_5709, quirk_brcm_570x_limit_vpd); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_BROADCOM, PCI_DEVICE_ID_NX2_5709S, quirk_brcm_570x_limit_vpd); static void __devinit quirk_brcm_5719_limit_mrrs(struct pci_dev *dev) { u32 rev; pci_read_config_dword(dev, 0xf4, &rev); /* Only CAP the MRRS if the device is a 5719 A0 */ if (rev == 0x05719000) { int readrq = pcie_get_readrq(dev); if (readrq > 2048) pcie_set_readrq(dev, 2048); } } DECLARE_PCI_FIXUP_ENABLE(PCI_VENDOR_ID_BROADCOM, PCI_DEVICE_ID_TIGON3_5719, quirk_brcm_5719_limit_mrrs); /* Originally in EDAC sources for i82875P: * Intel tells BIOS developers to hide device 6 which * configures the overflow device access containing * the DRBs - this is where we expose device 6. * http://www.x86-secret.com/articles/tweak/pat/patsecrets-2.htm */ static void __devinit quirk_unhide_mch_dev6(struct pci_dev *dev) { u8 reg; if (pci_read_config_byte(dev, 0xF4, &reg) == 0 && !(reg & 0x02)) { dev_info(&dev->dev, "Enabling MCH 'Overflow' Device\n"); pci_write_config_byte(dev, 0xF4, reg | 0x02); } } DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82865_HB, quirk_unhide_mch_dev6); DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82875_HB, quirk_unhide_mch_dev6); #ifdef CONFIG_TILE /* * The Tilera TILEmpower platform needs to set the link speed * to 2.5GT(Giga-Transfers)/s (Gen 1). The default link speed * setting is 5GT/s (Gen 2). 0x98 is the Link Control2 PCIe * capability register of the PEX8624 PCIe switch. The switch * supports link speed auto negotiation, but falsely sets * the link speed to 5GT/s. */ static void __devinit quirk_tile_plx_gen1(struct pci_dev *dev) { if (tile_plx_gen1) { pci_write_config_dword(dev, 0x98, 0x1); mdelay(50); } } DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_PLX, 0x8624, quirk_tile_plx_gen1); #endif /* CONFIG_TILE */ #ifdef CONFIG_PCI_MSI /* Some chipsets do not support MSI. We cannot easily rely on setting * PCI_BUS_FLAGS_NO_MSI in its bus flags because there are actually * some other busses controlled by the chipset even if Linux is not * aware of it. Instead of setting the flag on all busses in the * machine, simply disable MSI globally. */ static void __init quirk_disable_all_msi(struct pci_dev *dev) { pci_no_msi(); dev_warn(&dev->dev, "MSI quirk detected; MSI disabled\n"); } DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_SERVERWORKS, PCI_DEVICE_ID_SERVERWORKS_GCNB_LE, quirk_disable_all_msi); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_ATI_RS400_200, quirk_disable_all_msi); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_ATI_RS480, quirk_disable_all_msi); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_VT3336, quirk_disable_all_msi); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_VT3351, quirk_disable_all_msi); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_VT3364, quirk_disable_all_msi); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8380_0, quirk_disable_all_msi); /* Disable MSI on chipsets that are known to not support it */ static void __devinit quirk_disable_msi(struct pci_dev *dev) { if (dev->subordinate) { dev_warn(&dev->dev, "MSI quirk detected; " "subordinate MSI disabled\n"); dev->subordinate->bus_flags |= PCI_BUS_FLAGS_NO_MSI; } } DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_8131_BRIDGE, quirk_disable_msi); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_VIA, 0xa238, quirk_disable_msi); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_ATI, 0x5a3f, quirk_disable_msi); /* * The APC bridge device in AMD 780 family northbridges has some random * OEM subsystem ID in its vendor ID register (erratum 18), so instead * we use the possible vendor/device IDs of the host bridge for the * declared quirk, and search for the APC bridge by slot number. */ static void __devinit quirk_amd_780_apc_msi(struct pci_dev *host_bridge) { struct pci_dev *apc_bridge; apc_bridge = pci_get_slot(host_bridge->bus, PCI_DEVFN(1, 0)); if (apc_bridge) { if (apc_bridge->device == 0x9602) quirk_disable_msi(apc_bridge); pci_dev_put(apc_bridge); } } DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_AMD, 0x9600, quirk_amd_780_apc_msi); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_AMD, 0x9601, quirk_amd_780_apc_msi); /* Go through the list of Hypertransport capabilities and * return 1 if a HT MSI capability is found and enabled */ static int __devinit msi_ht_cap_enabled(struct pci_dev *dev) { int pos, ttl = 48; pos = pci_find_ht_capability(dev, HT_CAPTYPE_MSI_MAPPING); while (pos && ttl--) { u8 flags; if (pci_read_config_byte(dev, pos + HT_MSI_FLAGS, &flags) == 0) { dev_info(&dev->dev, "Found %s HT MSI Mapping\n", flags & HT_MSI_FLAGS_ENABLE ? "enabled" : "disabled"); return (flags & HT_MSI_FLAGS_ENABLE) != 0; } pos = pci_find_next_ht_capability(dev, pos, HT_CAPTYPE_MSI_MAPPING); } return 0; } /* Check the hypertransport MSI mapping to know whether MSI is enabled or not */ static void __devinit quirk_msi_ht_cap(struct pci_dev *dev) { if (dev->subordinate && !msi_ht_cap_enabled(dev)) { dev_warn(&dev->dev, "MSI quirk detected; " "subordinate MSI disabled\n"); dev->subordinate->bus_flags |= PCI_BUS_FLAGS_NO_MSI; } } DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_SERVERWORKS, PCI_DEVICE_ID_SERVERWORKS_HT2000_PCIE, quirk_msi_ht_cap); /* The nVidia CK804 chipset may have 2 HT MSI mappings. * MSI are supported if the MSI capability set in any of these mappings. */ static void __devinit quirk_nvidia_ck804_msi_ht_cap(struct pci_dev *dev) { struct pci_dev *pdev; if (!dev->subordinate) return; /* check HT MSI cap on this chipset and the root one. * a single one having MSI is enough to be sure that MSI are supported. */ pdev = pci_get_slot(dev->bus, 0); if (!pdev) return; if (!msi_ht_cap_enabled(dev) && !msi_ht_cap_enabled(pdev)) { dev_warn(&dev->dev, "MSI quirk detected; " "subordinate MSI disabled\n"); dev->subordinate->bus_flags |= PCI_BUS_FLAGS_NO_MSI; } pci_dev_put(pdev); } DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_NVIDIA, PCI_DEVICE_ID_NVIDIA_CK804_PCIE, quirk_nvidia_ck804_msi_ht_cap); /* Force enable MSI mapping capability on HT bridges */ static void __devinit ht_enable_msi_mapping(struct pci_dev *dev) { int pos, ttl = 48; pos = pci_find_ht_capability(dev, HT_CAPTYPE_MSI_MAPPING); while (pos && ttl--) { u8 flags; if (pci_read_config_byte(dev, pos + HT_MSI_FLAGS, &flags) == 0) { dev_info(&dev->dev, "Enabling HT MSI Mapping\n"); pci_write_config_byte(dev, pos + HT_MSI_FLAGS, flags | HT_MSI_FLAGS_ENABLE); } pos = pci_find_next_ht_capability(dev, pos, HT_CAPTYPE_MSI_MAPPING); } } DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_SERVERWORKS, PCI_DEVICE_ID_SERVERWORKS_HT1000_PXB, ht_enable_msi_mapping); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_8132_BRIDGE, ht_enable_msi_mapping); /* The P5N32-SLI motherboards from Asus have a problem with msi * for the MCP55 NIC. It is not yet determined whether the msi problem * also affects other devices. As for now, turn off msi for this device. */ static void __devinit nvenet_msi_disable(struct pci_dev *dev) { const char *board_name = dmi_get_system_info(DMI_BOARD_NAME); if (board_name && (strstr(board_name, "P5N32-SLI PREMIUM") || strstr(board_name, "P5N32-E SLI"))) { dev_info(&dev->dev, "Disabling msi for MCP55 NIC on P5N32-SLI\n"); dev->no_msi = 1; } } DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_NVIDIA, PCI_DEVICE_ID_NVIDIA_NVENET_15, nvenet_msi_disable); /* * Some versions of the MCP55 bridge from nvidia have a legacy irq routing * config register. This register controls the routing of legacy interrupts * from devices that route through the MCP55. If this register is misprogramed * interrupts are only sent to the bsp, unlike conventional systems where the * irq is broadxast to all online cpus. Not having this register set * properly prevents kdump from booting up properly, so lets make sure that * we have it set correctly. * Note this is an undocumented register. */ static void __devinit nvbridge_check_legacy_irq_routing(struct pci_dev *dev) { u32 cfg; if (!pci_find_capability(dev, PCI_CAP_ID_HT)) return; pci_read_config_dword(dev, 0x74, &cfg); if (cfg & ((1 << 2) | (1 << 15))) { printk(KERN_INFO "Rewriting irq routing register on MCP55\n"); cfg &= ~((1 << 2) | (1 << 15)); pci_write_config_dword(dev, 0x74, cfg); } } DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_NVIDIA, PCI_DEVICE_ID_NVIDIA_MCP55_BRIDGE_V0, nvbridge_check_legacy_irq_routing); DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_NVIDIA, PCI_DEVICE_ID_NVIDIA_MCP55_BRIDGE_V4, nvbridge_check_legacy_irq_routing); static int __devinit ht_check_msi_mapping(struct pci_dev *dev) { int pos, ttl = 48; int found = 0; /* check if there is HT MSI cap or enabled on this device */ pos = pci_find_ht_capability(dev, HT_CAPTYPE_MSI_MAPPING); while (pos && ttl--) { u8 flags; if (found < 1) found = 1; if (pci_read_config_byte(dev, pos + HT_MSI_FLAGS, &flags) == 0) { if (flags & HT_MSI_FLAGS_ENABLE) { if (found < 2) { found = 2; break; } } } pos = pci_find_next_ht_capability(dev, pos, HT_CAPTYPE_MSI_MAPPING); } return found; } static int __devinit host_bridge_with_leaf(struct pci_dev *host_bridge) { struct pci_dev *dev; int pos; int i, dev_no; int found = 0; dev_no = host_bridge->devfn >> 3; for (i = dev_no + 1; i < 0x20; i++) { dev = pci_get_slot(host_bridge->bus, PCI_DEVFN(i, 0)); if (!dev) continue; /* found next host bridge ?*/ pos = pci_find_ht_capability(dev, HT_CAPTYPE_SLAVE); if (pos != 0) { pci_dev_put(dev); break; } if (ht_check_msi_mapping(dev)) { found = 1; pci_dev_put(dev); break; } pci_dev_put(dev); } return found; } #define PCI_HT_CAP_SLAVE_CTRL0 4 /* link control */ #define PCI_HT_CAP_SLAVE_CTRL1 8 /* link control to */ static int __devinit is_end_of_ht_chain(struct pci_dev *dev) { int pos, ctrl_off; int end = 0; u16 flags, ctrl; pos = pci_find_ht_capability(dev, HT_CAPTYPE_SLAVE); if (!pos) goto out; pci_read_config_word(dev, pos + PCI_CAP_FLAGS, &flags); ctrl_off = ((flags >> 10) & 1) ? PCI_HT_CAP_SLAVE_CTRL0 : PCI_HT_CAP_SLAVE_CTRL1; pci_read_config_word(dev, pos + ctrl_off, &ctrl); if (ctrl & (1 << 6)) end = 1; out: return end; } static void __devinit nv_ht_enable_msi_mapping(struct pci_dev *dev) { struct pci_dev *host_bridge; int pos; int i, dev_no; int found = 0; dev_no = dev->devfn >> 3; for (i = dev_no; i >= 0; i--) { host_bridge = pci_get_slot(dev->bus, PCI_DEVFN(i, 0)); if (!host_bridge) continue; pos = pci_find_ht_capability(host_bridge, HT_CAPTYPE_SLAVE); if (pos != 0) { found = 1; break; } pci_dev_put(host_bridge); } if (!found) return; /* don't enable end_device/host_bridge with leaf directly here */ if (host_bridge == dev && is_end_of_ht_chain(host_bridge) && host_bridge_with_leaf(host_bridge)) goto out; /* root did that ! */ if (msi_ht_cap_enabled(host_bridge)) goto out; ht_enable_msi_mapping(dev); out: pci_dev_put(host_bridge); } static void __devinit ht_disable_msi_mapping(struct pci_dev *dev) { int pos, ttl = 48; pos = pci_find_ht_capability(dev, HT_CAPTYPE_MSI_MAPPING); while (pos && ttl--) { u8 flags; if (pci_read_config_byte(dev, pos + HT_MSI_FLAGS, &flags) == 0) { dev_info(&dev->dev, "Disabling HT MSI Mapping\n"); pci_write_config_byte(dev, pos + HT_MSI_FLAGS, flags & ~HT_MSI_FLAGS_ENABLE); } pos = pci_find_next_ht_capability(dev, pos, HT_CAPTYPE_MSI_MAPPING); } } static void __devinit __nv_msi_ht_cap_quirk(struct pci_dev *dev, int all) { struct pci_dev *host_bridge; int pos; int found; if (!pci_msi_enabled()) return; /* check if there is HT MSI cap or enabled on this device */ found = ht_check_msi_mapping(dev); /* no HT MSI CAP */ if (found == 0) return; /* * HT MSI mapping should be disabled on devices that are below * a non-Hypertransport host bridge. Locate the host bridge... */ host_bridge = pci_get_bus_and_slot(0, PCI_DEVFN(0, 0)); if (host_bridge == NULL) { dev_warn(&dev->dev, "nv_msi_ht_cap_quirk didn't locate host bridge\n"); return; } pos = pci_find_ht_capability(host_bridge, HT_CAPTYPE_SLAVE); if (pos != 0) { /* Host bridge is to HT */ if (found == 1) { /* it is not enabled, try to enable it */ if (all) ht_enable_msi_mapping(dev); else nv_ht_enable_msi_mapping(dev); } return; } /* HT MSI is not enabled */ if (found == 1) return; /* Host bridge is not to HT, disable HT MSI mapping on this device */ ht_disable_msi_mapping(dev); } static void __devinit nv_msi_ht_cap_quirk_all(struct pci_dev *dev) { return __nv_msi_ht_cap_quirk(dev, 1); } static void __devinit nv_msi_ht_cap_quirk_leaf(struct pci_dev *dev) { return __nv_msi_ht_cap_quirk(dev, 0); } DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_NVIDIA, PCI_ANY_ID, nv_msi_ht_cap_quirk_leaf); DECLARE_PCI_FIXUP_RESUME_EARLY(PCI_VENDOR_ID_NVIDIA, PCI_ANY_ID, nv_msi_ht_cap_quirk_leaf); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_AL, PCI_ANY_ID, nv_msi_ht_cap_quirk_all); DECLARE_PCI_FIXUP_RESUME_EARLY(PCI_VENDOR_ID_AL, PCI_ANY_ID, nv_msi_ht_cap_quirk_all); static void __devinit quirk_msi_intx_disable_bug(struct pci_dev *dev) { dev->dev_flags |= PCI_DEV_FLAGS_MSI_INTX_DISABLE_BUG; } static void __devinit quirk_msi_intx_disable_ati_bug(struct pci_dev *dev) { struct pci_dev *p; /* SB700 MSI issue will be fixed at HW level from revision A21, * we need check PCI REVISION ID of SMBus controller to get SB700 * revision. */ p = pci_get_device(PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_ATI_SBX00_SMBUS, NULL); if (!p) return; if ((p->revision < 0x3B) && (p->revision >= 0x30)) dev->dev_flags |= PCI_DEV_FLAGS_MSI_INTX_DISABLE_BUG; pci_dev_put(p); } DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_BROADCOM, PCI_DEVICE_ID_TIGON3_5780, quirk_msi_intx_disable_bug); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_BROADCOM, PCI_DEVICE_ID_TIGON3_5780S, quirk_msi_intx_disable_bug); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_BROADCOM, PCI_DEVICE_ID_TIGON3_5714, quirk_msi_intx_disable_bug); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_BROADCOM, PCI_DEVICE_ID_TIGON3_5714S, quirk_msi_intx_disable_bug); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_BROADCOM, PCI_DEVICE_ID_TIGON3_5715, quirk_msi_intx_disable_bug); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_BROADCOM, PCI_DEVICE_ID_TIGON3_5715S, quirk_msi_intx_disable_bug); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_ATI, 0x4390, quirk_msi_intx_disable_ati_bug); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_ATI, 0x4391, quirk_msi_intx_disable_ati_bug); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_ATI, 0x4392, quirk_msi_intx_disable_ati_bug); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_ATI, 0x4393, quirk_msi_intx_disable_ati_bug); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_ATI, 0x4394, quirk_msi_intx_disable_ati_bug); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_ATI, 0x4373, quirk_msi_intx_disable_bug); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_ATI, 0x4374, quirk_msi_intx_disable_bug); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_ATI, 0x4375, quirk_msi_intx_disable_bug); #endif /* CONFIG_PCI_MSI */ /* Allow manual resource allocation for PCI hotplug bridges * via pci=hpmemsize=nnM and pci=hpiosize=nnM parameters. For * some PCI-PCI hotplug bridges, like PLX 6254 (former HINT HB6), * kernel fails to allocate resources when hotplug device is * inserted and PCI bus is rescanned. */ static void __devinit quirk_hotplug_bridge(struct pci_dev *dev) { dev->is_hotplug_bridge = 1; } DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_HINT, 0x0020, quirk_hotplug_bridge); /* * This is a quirk for the Ricoh MMC controller found as a part of * some mulifunction chips. * This is very similar and based on the ricoh_mmc driver written by * Philip Langdale. Thank you for these magic sequences. * * These chips implement the four main memory card controllers (SD, MMC, MS, xD) * and one or both of cardbus or firewire. * * It happens that they implement SD and MMC * support as separate controllers (and PCI functions). The linux SDHCI * driver supports MMC cards but the chip detects MMC cards in hardware * and directs them to the MMC controller - so the SDHCI driver never sees * them. * * To get around this, we must disable the useless MMC controller. * At that point, the SDHCI controller will start seeing them * It seems to be the case that the relevant PCI registers to deactivate the * MMC controller live on PCI function 0, which might be the cardbus controller * or the firewire controller, depending on the particular chip in question * * This has to be done early, because as soon as we disable the MMC controller * other pci functions shift up one level, e.g. function #2 becomes function * #1, and this will confuse the pci core. */ #ifdef CONFIG_MMC_RICOH_MMC static void ricoh_mmc_fixup_rl5c476(struct pci_dev *dev) { /* disable via cardbus interface */ u8 write_enable; u8 write_target; u8 disable; /* disable must be done via function #0 */ if (PCI_FUNC(dev->devfn)) return; pci_read_config_byte(dev, 0xB7, &disable); if (disable & 0x02) return; pci_read_config_byte(dev, 0x8E, &write_enable); pci_write_config_byte(dev, 0x8E, 0xAA); pci_read_config_byte(dev, 0x8D, &write_target); pci_write_config_byte(dev, 0x8D, 0xB7); pci_write_config_byte(dev, 0xB7, disable | 0x02); pci_write_config_byte(dev, 0x8E, write_enable); pci_write_config_byte(dev, 0x8D, write_target); dev_notice(&dev->dev, "proprietary Ricoh MMC controller disabled (via cardbus function)\n"); dev_notice(&dev->dev, "MMC cards are now supported by standard SDHCI controller\n"); } DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_RICOH, PCI_DEVICE_ID_RICOH_RL5C476, ricoh_mmc_fixup_rl5c476); DECLARE_PCI_FIXUP_RESUME_EARLY(PCI_VENDOR_ID_RICOH, PCI_DEVICE_ID_RICOH_RL5C476, ricoh_mmc_fixup_rl5c476); static void ricoh_mmc_fixup_r5c832(struct pci_dev *dev) { /* disable via firewire interface */ u8 write_enable; u8 disable; /* disable must be done via function #0 */ if (PCI_FUNC(dev->devfn)) return; /* * RICOH 0xe823 SD/MMC card reader fails to recognize * certain types of SD/MMC cards. Lowering the SD base * clock frequency from 200Mhz to 50Mhz fixes this issue. * * 0x150 - SD2.0 mode enable for changing base clock * frequency to 50Mhz * 0xe1 - Base clock frequency * 0x32 - 50Mhz new clock frequency * 0xf9 - Key register for 0x150 * 0xfc - key register for 0xe1 */ if (dev->device == PCI_DEVICE_ID_RICOH_R5CE823) { pci_write_config_byte(dev, 0xf9, 0xfc); pci_write_config_byte(dev, 0x150, 0x10); pci_write_config_byte(dev, 0xf9, 0x00); pci_write_config_byte(dev, 0xfc, 0x01); pci_write_config_byte(dev, 0xe1, 0x32); pci_write_config_byte(dev, 0xfc, 0x00); dev_notice(&dev->dev, "MMC controller base frequency changed to 50Mhz.\n"); } pci_read_config_byte(dev, 0xCB, &disable); if (disable & 0x02) return; pci_read_config_byte(dev, 0xCA, &write_enable); pci_write_config_byte(dev, 0xCA, 0x57); pci_write_config_byte(dev, 0xCB, disable | 0x02); pci_write_config_byte(dev, 0xCA, write_enable); dev_notice(&dev->dev, "proprietary Ricoh MMC controller disabled (via firewire function)\n"); dev_notice(&dev->dev, "MMC cards are now supported by standard SDHCI controller\n"); } DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_RICOH, PCI_DEVICE_ID_RICOH_R5C832, ricoh_mmc_fixup_r5c832); DECLARE_PCI_FIXUP_RESUME_EARLY(PCI_VENDOR_ID_RICOH, PCI_DEVICE_ID_RICOH_R5C832, ricoh_mmc_fixup_r5c832); DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_RICOH, PCI_DEVICE_ID_RICOH_R5CE823, ricoh_mmc_fixup_r5c832); DECLARE_PCI_FIXUP_RESUME_EARLY(PCI_VENDOR_ID_RICOH, PCI_DEVICE_ID_RICOH_R5CE823, ricoh_mmc_fixup_r5c832); #endif /*CONFIG_MMC_RICOH_MMC*/ #ifdef CONFIG_DMAR_TABLE #define VTUNCERRMSK_REG 0x1ac #define VTD_MSK_SPEC_ERRORS (1 << 31) /* * This is a quirk for masking vt-d spec defined errors to platform error * handling logic. With out this, platforms using Intel 7500, 5500 chipsets * (and the derivative chipsets like X58 etc) seem to generate NMI/SMI (based * on the RAS config settings of the platform) when a vt-d fault happens. * The resulting SMI caused the system to hang. * * VT-d spec related errors are already handled by the VT-d OS code, so no * need to report the same error through other channels. */ static void vtd_mask_spec_errors(struct pci_dev *dev) { u32 word; pci_read_config_dword(dev, VTUNCERRMSK_REG, &word); pci_write_config_dword(dev, VTUNCERRMSK_REG, word | VTD_MSK_SPEC_ERRORS); } DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_INTEL, 0x342e, vtd_mask_spec_errors); DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_INTEL, 0x3c28, vtd_mask_spec_errors); #endif static void __devinit fixup_ti816x_class(struct pci_dev* dev) { /* TI 816x devices do not have class code set when in PCIe boot mode */ dev_info(&dev->dev, "Setting PCI class for 816x PCIe device\n"); dev->class = PCI_CLASS_MULTIMEDIA_VIDEO; } DECLARE_PCI_FIXUP_CLASS_EARLY(PCI_VENDOR_ID_TI, 0xb800, PCI_CLASS_NOT_DEFINED, 0, fixup_ti816x_class); /* Some PCIe devices do not work reliably with the claimed maximum * payload size supported. */ static void __devinit fixup_mpss_256(struct pci_dev *dev) { dev->pcie_mpss = 1; /* 256 bytes */ } DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_SOLARFLARE, PCI_DEVICE_ID_SOLARFLARE_SFC4000A_0, fixup_mpss_256); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_SOLARFLARE, PCI_DEVICE_ID_SOLARFLARE_SFC4000A_1, fixup_mpss_256); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_SOLARFLARE, PCI_DEVICE_ID_SOLARFLARE_SFC4000B, fixup_mpss_256); /* Intel 5000 and 5100 Memory controllers have an errata with read completion * coalescing (which is enabled by default on some BIOSes) and MPS of 256B. * Since there is no way of knowing what the PCIE MPS on each fabric will be * until all of the devices are discovered and buses walked, read completion * coalescing must be disabled. Unfortunately, it cannot be re-enabled because * it is possible to hotplug a device with MPS of 256B. */ static void __devinit quirk_intel_mc_errata(struct pci_dev *dev) { int err; u16 rcc; if (pcie_bus_config == PCIE_BUS_TUNE_OFF) return; /* Intel errata specifies bits to change but does not say what they are. * Keeping them magical until such time as the registers and values can * be explained. */ err = pci_read_config_word(dev, 0x48, &rcc); if (err) { dev_err(&dev->dev, "Error attempting to read the read " "completion coalescing register.\n"); return; } if (!(rcc & (1 << 10))) return; rcc &= ~(1 << 10); err = pci_write_config_word(dev, 0x48, rcc); if (err) { dev_err(&dev->dev, "Error attempting to write the read " "completion coalescing register.\n"); return; } pr_info_once("Read completion coalescing disabled due to hardware " "errata relating to 256B MPS.\n"); } /* Intel 5000 series memory controllers and ports 2-7 */ DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, 0x25c0, quirk_intel_mc_errata); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, 0x25d0, quirk_intel_mc_errata); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, 0x25d4, quirk_intel_mc_errata); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, 0x25d8, quirk_intel_mc_errata); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, 0x25e2, quirk_intel_mc_errata); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, 0x25e3, quirk_intel_mc_errata); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, 0x25e4, quirk_intel_mc_errata); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, 0x25e5, quirk_intel_mc_errata); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, 0x25e6, quirk_intel_mc_errata); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, 0x25e7, quirk_intel_mc_errata); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, 0x25f7, quirk_intel_mc_errata); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, 0x25f8, quirk_intel_mc_errata); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, 0x25f9, quirk_intel_mc_errata); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, 0x25fa, quirk_intel_mc_errata); /* Intel 5100 series memory controllers and ports 2-7 */ DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, 0x65c0, quirk_intel_mc_errata); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, 0x65e2, quirk_intel_mc_errata); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, 0x65e3, quirk_intel_mc_errata); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, 0x65e4, quirk_intel_mc_errata); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, 0x65e5, quirk_intel_mc_errata); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, 0x65e6, quirk_intel_mc_errata); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, 0x65e7, quirk_intel_mc_errata); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, 0x65f7, quirk_intel_mc_errata); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, 0x65f8, quirk_intel_mc_errata); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, 0x65f9, quirk_intel_mc_errata); DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, 0x65fa, quirk_intel_mc_errata); static void do_one_fixup_debug(void (*fn)(struct pci_dev *dev), struct pci_dev *dev) { ktime_t calltime, delta, rettime; unsigned long long duration; printk(KERN_DEBUG "calling %pF @ %i for %s\n", fn, task_pid_nr(current), dev_name(&dev->dev)); calltime = ktime_get(); fn(dev); rettime = ktime_get(); delta = ktime_sub(rettime, calltime); duration = (unsigned long long) ktime_to_ns(delta) >> 10; printk(KERN_DEBUG "pci fixup %pF returned after %lld usecs for %s\n", fn, duration, dev_name(&dev->dev)); } /* * Some BIOS implementations leave the Intel GPU interrupts enabled, * even though no one is handling them (f.e. i915 driver is never loaded). * Additionally the interrupt destination is not set up properly * and the interrupt ends up -somewhere-. * * These spurious interrupts are "sticky" and the kernel disables * the (shared) interrupt line after 100.000+ generated interrupts. * * Fix it by disabling the still enabled interrupts. * This resolves crashes often seen on monitor unplug. */ #define I915_DEIER_REG 0x4400c static void __devinit disable_igfx_irq(struct pci_dev *dev) { void __iomem *regs = pci_iomap(dev, 0, 0); if (regs == NULL) { dev_warn(&dev->dev, "igfx quirk: Can't iomap PCI device\n"); return; } /* Check if any interrupt line is still enabled */ if (readl(regs + I915_DEIER_REG) != 0) { dev_warn(&dev->dev, "BIOS left Intel GPU interrupts enabled; " "disabling\n"); writel(0, regs + I915_DEIER_REG); } pci_iounmap(dev, regs); } DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, 0x0102, disable_igfx_irq); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, 0x010a, disable_igfx_irq); static void pci_do_fixups(struct pci_dev *dev, struct pci_fixup *f, struct pci_fixup *end) { for (; f < end; f++) if ((f->class == (u32) (dev->class >> f->class_shift) || f->class == (u32) PCI_ANY_ID) && (f->vendor == dev->vendor || f->vendor == (u16) PCI_ANY_ID) && (f->device == dev->device || f->device == (u16) PCI_ANY_ID)) { dev_dbg(&dev->dev, "calling %pF\n", f->hook); if (initcall_debug) do_one_fixup_debug(f->hook, dev); else f->hook(dev); } } extern struct pci_fixup __start_pci_fixups_early[]; extern struct pci_fixup __end_pci_fixups_early[]; extern struct pci_fixup __start_pci_fixups_header[]; extern struct pci_fixup __end_pci_fixups_header[]; extern struct pci_fixup __start_pci_fixups_final[]; extern struct pci_fixup __end_pci_fixups_final[]; extern struct pci_fixup __start_pci_fixups_enable[]; extern struct pci_fixup __end_pci_fixups_enable[]; extern struct pci_fixup __start_pci_fixups_resume[]; extern struct pci_fixup __end_pci_fixups_resume[]; extern struct pci_fixup __start_pci_fixups_resume_early[]; extern struct pci_fixup __end_pci_fixups_resume_early[]; extern struct pci_fixup __start_pci_fixups_suspend[]; extern struct pci_fixup __end_pci_fixups_suspend[]; void pci_fixup_device(enum pci_fixup_pass pass, struct pci_dev *dev) { struct pci_fixup *start, *end; switch(pass) { case pci_fixup_early: start = __start_pci_fixups_early; end = __end_pci_fixups_early; break; case pci_fixup_header: start = __start_pci_fixups_header; end = __end_pci_fixups_header; break; case pci_fixup_final: start = __start_pci_fixups_final; end = __end_pci_fixups_final; break; case pci_fixup_enable: start = __start_pci_fixups_enable; end = __end_pci_fixups_enable; break; case pci_fixup_resume: start = __start_pci_fixups_resume; end = __end_pci_fixups_resume; break; case pci_fixup_resume_early: start = __start_pci_fixups_resume_early; end = __end_pci_fixups_resume_early; break; case pci_fixup_suspend: start = __start_pci_fixups_suspend; end = __end_pci_fixups_suspend; break; default: /* stupid compiler warning, you would think with an enum... */ return; } pci_do_fixups(dev, start, end); } EXPORT_SYMBOL(pci_fixup_device); static int __init pci_apply_final_quirks(void) { struct pci_dev *dev = NULL; u8 cls = 0; u8 tmp; if (pci_cache_line_size) printk(KERN_DEBUG "PCI: CLS %u bytes\n", pci_cache_line_size << 2); for_each_pci_dev(dev) { pci_fixup_device(pci_fixup_final, dev); /* * If arch hasn't set it explicitly yet, use the CLS * value shared by all PCI devices. If there's a * mismatch, fall back to the default value. */ if (!pci_cache_line_size) { pci_read_config_byte(dev, PCI_CACHE_LINE_SIZE, &tmp); if (!cls) cls = tmp; if (!tmp || cls == tmp) continue; printk(KERN_DEBUG "PCI: CLS mismatch (%u != %u), " "using %u bytes\n", cls << 2, tmp << 2, pci_dfl_cache_line_size << 2); pci_cache_line_size = pci_dfl_cache_line_size; } } if (!pci_cache_line_size) { printk(KERN_DEBUG "PCI: CLS %u bytes, default %u\n", cls << 2, pci_dfl_cache_line_size << 2); pci_cache_line_size = cls ? cls : pci_dfl_cache_line_size; } return 0; } fs_initcall_sync(pci_apply_final_quirks); /* * Followings are device-specific reset methods which can be used to * reset a single function if other methods (e.g. FLR, PM D0->D3) are * not available. */ static int reset_intel_generic_dev(struct pci_dev *dev, int probe) { int pos; /* only implement PCI_CLASS_SERIAL_USB at present */ if (dev->class == PCI_CLASS_SERIAL_USB) { pos = pci_find_capability(dev, PCI_CAP_ID_VNDR); if (!pos) return -ENOTTY; if (probe) return 0; pci_write_config_byte(dev, pos + 0x4, 1); msleep(100); return 0; } else { return -ENOTTY; } } static int reset_intel_82599_sfp_virtfn(struct pci_dev *dev, int probe) { int pos; pos = pci_find_capability(dev, PCI_CAP_ID_EXP); if (!pos) return -ENOTTY; if (probe) return 0; pci_write_config_word(dev, pos + PCI_EXP_DEVCTL, PCI_EXP_DEVCTL_BCR_FLR); msleep(100); return 0; } #define PCI_DEVICE_ID_INTEL_82599_SFP_VF 0x10ed static const struct pci_dev_reset_methods pci_dev_reset_methods[] = { { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82599_SFP_VF, reset_intel_82599_sfp_virtfn }, { PCI_VENDOR_ID_INTEL, PCI_ANY_ID, reset_intel_generic_dev }, { 0 } }; int pci_dev_specific_reset(struct pci_dev *dev, int probe) { const struct pci_dev_reset_methods *i; for (i = pci_dev_reset_methods; i->reset; i++) { if ((i->vendor == dev->vendor || i->vendor == (u16)PCI_ANY_ID) && (i->device == dev->device || i->device == (u16)PCI_ANY_ID)) return i->reset(dev, probe); } return -ENOTTY; }
gpl-2.0
seyko2/openvz_rhel6_kernel_mirror
drivers/net/wireless/iwlwifi/mvm/time-event.c
27283
/****************************************************************************** * * This file is provided under a dual BSD/GPLv2 license. When using or * redistributing this file, you may do so under either license. * * GPL LICENSE SUMMARY * * Copyright(c) 2012 - 2014 Intel Corporation. All rights reserved. * Copyright(c) 2013 - 2014 Intel Mobile Communications GmbH * * This program is free software; you can redistribute it and/or modify * it under the terms of version 2 of the GNU General Public License as * published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, * USA * * The full GNU General Public License is included in this distribution * in the file called COPYING. * * Contact Information: * Intel Linux Wireless <[email protected]> * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497 * * BSD LICENSE * * Copyright(c) 2012 - 2014 Intel Corporation. All rights reserved. * Copyright(c) 2013 - 2014 Intel Mobile Communications GmbH * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * Neither the name Intel Corporation nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * *****************************************************************************/ #include <linux/jiffies.h> #include <net/mac80211.h> #include "iwl-notif-wait.h" #include "iwl-trans.h" #include "fw-api.h" #include "time-event.h" #include "mvm.h" #include "iwl-io.h" #include "iwl-prph.h" /* * For the high priority TE use a time event type that has similar priority to * the FW's action scan priority. */ #define IWL_MVM_ROC_TE_TYPE_NORMAL TE_P2P_DEVICE_DISCOVERABLE #define IWL_MVM_ROC_TE_TYPE_MGMT_TX TE_P2P_CLIENT_ASSOC void iwl_mvm_te_clear_data(struct iwl_mvm *mvm, struct iwl_mvm_time_event_data *te_data) { lockdep_assert_held(&mvm->time_event_lock); if (te_data->id == TE_MAX) return; list_del(&te_data->list); te_data->running = false; te_data->uid = 0; te_data->id = TE_MAX; te_data->vif = NULL; } void iwl_mvm_roc_done_wk(struct work_struct *wk) { struct iwl_mvm *mvm = container_of(wk, struct iwl_mvm, roc_done_wk); u32 queues = 0; /* * Clear the ROC_RUNNING /ROC_AUX_RUNNING status bit. * This will cause the TX path to drop offchannel transmissions. * That would also be done by mac80211, but it is racy, in particular * in the case that the time event actually completed in the firmware * (which is handled in iwl_mvm_te_handle_notif). */ if (test_and_clear_bit(IWL_MVM_STATUS_ROC_RUNNING, &mvm->status)) queues |= BIT(IWL_MVM_OFFCHANNEL_QUEUE); if (test_and_clear_bit(IWL_MVM_STATUS_ROC_AUX_RUNNING, &mvm->status)) queues |= BIT(mvm->aux_queue); iwl_mvm_unref(mvm, IWL_MVM_REF_ROC); synchronize_net(); /* * Flush the offchannel queue -- this is called when the time * event finishes or is canceled, so that frames queued for it * won't get stuck on the queue and be transmitted in the next * time event. * We have to send the command asynchronously since this cannot * be under the mutex for locking reasons, but that's not an * issue as it will have to complete before the next command is * executed, and a new time event means a new command. */ iwl_mvm_flush_tx_path(mvm, queues, false); } static void iwl_mvm_roc_finished(struct iwl_mvm *mvm) { /* * Of course, our status bit is just as racy as mac80211, so in * addition, fire off the work struct which will drop all frames * from the hardware queues that made it through the race. First * it will of course synchronize the TX path to make sure that * any *new* TX will be rejected. */ queue_work(mvm->workqueue, &mvm->roc_done_wk); } static void iwl_mvm_csa_noa_start(struct iwl_mvm *mvm) { struct ieee80211_vif *csa_vif; rcu_read_lock(); csa_vif = rcu_dereference(mvm->csa_vif); if (!csa_vif || !csa_vif->csa_active) goto out_unlock; IWL_DEBUG_TE(mvm, "CSA NOA started\n"); /* * CSA NoA is started but we still have beacons to * transmit on the current channel. * So we just do nothing here and the switch * will be performed on the last TBTT. */ if (!ieee80211_csa_is_complete(csa_vif)) { IWL_WARN(mvm, "CSA NOA started too early\n"); goto out_unlock; } ieee80211_csa_finish(csa_vif); rcu_read_unlock(); RCU_INIT_POINTER(mvm->csa_vif, NULL); return; out_unlock: rcu_read_unlock(); } static bool iwl_mvm_te_check_disconnect(struct iwl_mvm *mvm, struct ieee80211_vif *vif, const char *errmsg) { if (vif->type != NL80211_IFTYPE_STATION) return false; if (vif->bss_conf.assoc && vif->bss_conf.dtim_period) return false; if (errmsg) IWL_ERR(mvm, "%s\n", errmsg); iwl_mvm_connection_loss(mvm, vif, errmsg); return true; } static void iwl_mvm_te_handle_notify_csa(struct iwl_mvm *mvm, struct iwl_mvm_time_event_data *te_data, struct iwl_time_event_notif *notif) { struct ieee80211_vif *vif = te_data->vif; struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); if (!notif->status) IWL_DEBUG_TE(mvm, "CSA time event failed to start\n"); switch (te_data->vif->type) { case NL80211_IFTYPE_AP: if (!notif->status) mvmvif->csa_failed = true; iwl_mvm_csa_noa_start(mvm); break; case NL80211_IFTYPE_STATION: if (!notif->status) { iwl_mvm_connection_loss(mvm, vif, "CSA TE failed to start"); break; } iwl_mvm_csa_client_absent(mvm, te_data->vif); ieee80211_chswitch_done(te_data->vif, true); break; default: /* should never happen */ WARN_ON_ONCE(1); break; } /* we don't need it anymore */ iwl_mvm_te_clear_data(mvm, te_data); } static void iwl_mvm_te_check_trigger(struct iwl_mvm *mvm, struct iwl_time_event_notif *notif, struct iwl_mvm_time_event_data *te_data) { struct iwl_fw_dbg_trigger_tlv *trig; struct iwl_fw_dbg_trigger_time_event *te_trig; int i; if (!iwl_fw_dbg_trigger_enabled(mvm->fw, FW_DBG_TRIGGER_TIME_EVENT)) return; trig = iwl_fw_dbg_get_trigger(mvm->fw, FW_DBG_TRIGGER_TIME_EVENT); te_trig = (void *)trig->data; if (!iwl_fw_dbg_trigger_check_stop(mvm, te_data->vif, trig)) return; for (i = 0; i < ARRAY_SIZE(te_trig->time_events); i++) { u32 trig_te_id = le32_to_cpu(te_trig->time_events[i].id); u32 trig_action_bitmap = le32_to_cpu(te_trig->time_events[i].action_bitmap); u32 trig_status_bitmap = le32_to_cpu(te_trig->time_events[i].status_bitmap); if (trig_te_id != te_data->id || !(trig_action_bitmap & le32_to_cpu(notif->action)) || !(trig_status_bitmap & BIT(le32_to_cpu(notif->status)))) continue; iwl_mvm_fw_dbg_collect_trig(mvm, trig, "Time event %d Action 0x%x received status: %d", te_data->id, le32_to_cpu(notif->action), le32_to_cpu(notif->status)); break; } } /* * Handles a FW notification for an event that is known to the driver. * * @mvm: the mvm component * @te_data: the time event data * @notif: the notification data corresponding the time event data. */ static void iwl_mvm_te_handle_notif(struct iwl_mvm *mvm, struct iwl_mvm_time_event_data *te_data, struct iwl_time_event_notif *notif) { lockdep_assert_held(&mvm->time_event_lock); IWL_DEBUG_TE(mvm, "Handle time event notif - UID = 0x%x action %d\n", le32_to_cpu(notif->unique_id), le32_to_cpu(notif->action)); iwl_mvm_te_check_trigger(mvm, notif, te_data); /* * The FW sends the start/end time event notifications even for events * that it fails to schedule. This is indicated in the status field of * the notification. This happens in cases that the scheduler cannot * find a schedule that can handle the event (for example requesting a * P2P Device discoveribility, while there are other higher priority * events in the system). */ if (!le32_to_cpu(notif->status)) { const char *msg; if (notif->action & cpu_to_le32(TE_V2_NOTIF_HOST_EVENT_START)) msg = "Time Event start notification failure"; else msg = "Time Event end notification failure"; IWL_DEBUG_TE(mvm, "%s\n", msg); if (iwl_mvm_te_check_disconnect(mvm, te_data->vif, msg)) { iwl_mvm_te_clear_data(mvm, te_data); return; } } if (le32_to_cpu(notif->action) & TE_V2_NOTIF_HOST_EVENT_END) { IWL_DEBUG_TE(mvm, "TE ended - current time %lu, estimated end %lu\n", jiffies, te_data->end_jiffies); switch (te_data->vif->type) { case NL80211_IFTYPE_P2P_DEVICE: ieee80211_remain_on_channel_expired(mvm->hw); iwl_mvm_roc_finished(mvm); break; case NL80211_IFTYPE_STATION: /* * By now, we should have finished association * and know the dtim period. */ iwl_mvm_te_check_disconnect(mvm, te_data->vif, "No association and the time event is over already..."); break; default: break; } iwl_mvm_te_clear_data(mvm, te_data); } else if (le32_to_cpu(notif->action) & TE_V2_NOTIF_HOST_EVENT_START) { te_data->running = true; te_data->end_jiffies = TU_TO_EXP_TIME(te_data->duration); if (te_data->vif->type == NL80211_IFTYPE_P2P_DEVICE) { set_bit(IWL_MVM_STATUS_ROC_RUNNING, &mvm->status); iwl_mvm_ref(mvm, IWL_MVM_REF_ROC); ieee80211_ready_on_channel(mvm->hw); } else if (te_data->id == TE_CHANNEL_SWITCH_PERIOD) { iwl_mvm_te_handle_notify_csa(mvm, te_data, notif); } } else { IWL_WARN(mvm, "Got TE with unknown action\n"); } } /* * Handle A Aux ROC time event */ static int iwl_mvm_aux_roc_te_handle_notif(struct iwl_mvm *mvm, struct iwl_time_event_notif *notif) { struct iwl_mvm_time_event_data *te_data, *tmp; bool aux_roc_te = false; list_for_each_entry_safe(te_data, tmp, &mvm->aux_roc_te_list, list) { if (le32_to_cpu(notif->unique_id) == te_data->uid) { aux_roc_te = true; break; } } if (!aux_roc_te) /* Not a Aux ROC time event */ return -EINVAL; iwl_mvm_te_check_trigger(mvm, notif, te_data); if (!le32_to_cpu(notif->status)) { IWL_DEBUG_TE(mvm, "ERROR: Aux ROC Time Event %s notification failure\n", (le32_to_cpu(notif->action) & TE_V2_NOTIF_HOST_EVENT_START) ? "start" : "end"); return -EINVAL; } IWL_DEBUG_TE(mvm, "Aux ROC time event notification - UID = 0x%x action %d\n", le32_to_cpu(notif->unique_id), le32_to_cpu(notif->action)); if (le32_to_cpu(notif->action) == TE_V2_NOTIF_HOST_EVENT_END) { /* End TE, notify mac80211 */ ieee80211_remain_on_channel_expired(mvm->hw); iwl_mvm_roc_finished(mvm); /* flush aux queue */ list_del(&te_data->list); /* remove from list */ te_data->running = false; te_data->vif = NULL; te_data->uid = 0; te_data->id = TE_MAX; } else if (le32_to_cpu(notif->action) == TE_V2_NOTIF_HOST_EVENT_START) { set_bit(IWL_MVM_STATUS_ROC_AUX_RUNNING, &mvm->status); te_data->running = true; ieee80211_ready_on_channel(mvm->hw); /* Start TE */ } else { IWL_DEBUG_TE(mvm, "ERROR: Unknown Aux ROC Time Event (action = %d)\n", le32_to_cpu(notif->action)); return -EINVAL; } return 0; } /* * The Rx handler for time event notifications */ int iwl_mvm_rx_time_event_notif(struct iwl_mvm *mvm, struct iwl_rx_cmd_buffer *rxb, struct iwl_device_cmd *cmd) { struct iwl_rx_packet *pkt = rxb_addr(rxb); struct iwl_time_event_notif *notif = (void *)pkt->data; struct iwl_mvm_time_event_data *te_data, *tmp; IWL_DEBUG_TE(mvm, "Time event notification - UID = 0x%x action %d\n", le32_to_cpu(notif->unique_id), le32_to_cpu(notif->action)); spin_lock_bh(&mvm->time_event_lock); /* This time event is triggered for Aux ROC request */ if (!iwl_mvm_aux_roc_te_handle_notif(mvm, notif)) goto unlock; list_for_each_entry_safe(te_data, tmp, &mvm->time_event_list, list) { if (le32_to_cpu(notif->unique_id) == te_data->uid) iwl_mvm_te_handle_notif(mvm, te_data, notif); } unlock: spin_unlock_bh(&mvm->time_event_lock); return 0; } static bool iwl_mvm_te_notif(struct iwl_notif_wait_data *notif_wait, struct iwl_rx_packet *pkt, void *data) { struct iwl_mvm *mvm = container_of(notif_wait, struct iwl_mvm, notif_wait); struct iwl_mvm_time_event_data *te_data = data; struct iwl_time_event_notif *resp; int resp_len = iwl_rx_packet_payload_len(pkt); if (WARN_ON(pkt->hdr.cmd != TIME_EVENT_NOTIFICATION)) return true; if (WARN_ON_ONCE(resp_len != sizeof(*resp))) { IWL_ERR(mvm, "Invalid TIME_EVENT_NOTIFICATION response\n"); return true; } resp = (void *)pkt->data; /* te_data->uid is already set in the TIME_EVENT_CMD response */ if (le32_to_cpu(resp->unique_id) != te_data->uid) return false; IWL_DEBUG_TE(mvm, "TIME_EVENT_NOTIFICATION response - UID = 0x%x\n", te_data->uid); if (!resp->status) IWL_ERR(mvm, "TIME_EVENT_NOTIFICATION received but not executed\n"); return true; } static bool iwl_mvm_time_event_response(struct iwl_notif_wait_data *notif_wait, struct iwl_rx_packet *pkt, void *data) { struct iwl_mvm *mvm = container_of(notif_wait, struct iwl_mvm, notif_wait); struct iwl_mvm_time_event_data *te_data = data; struct iwl_time_event_resp *resp; int resp_len = iwl_rx_packet_payload_len(pkt); if (WARN_ON(pkt->hdr.cmd != TIME_EVENT_CMD)) return true; if (WARN_ON_ONCE(resp_len != sizeof(*resp))) { IWL_ERR(mvm, "Invalid TIME_EVENT_CMD response\n"); return true; } resp = (void *)pkt->data; /* we should never get a response to another TIME_EVENT_CMD here */ if (WARN_ON_ONCE(le32_to_cpu(resp->id) != te_data->id)) return false; te_data->uid = le32_to_cpu(resp->unique_id); IWL_DEBUG_TE(mvm, "TIME_EVENT_CMD response - UID = 0x%x\n", te_data->uid); return true; } static int iwl_mvm_time_event_send_add(struct iwl_mvm *mvm, struct ieee80211_vif *vif, struct iwl_mvm_time_event_data *te_data, struct iwl_time_event_cmd *te_cmd) { static const u8 time_event_response[] = { TIME_EVENT_CMD }; struct iwl_notification_wait wait_time_event; int ret; lockdep_assert_held(&mvm->mutex); IWL_DEBUG_TE(mvm, "Add new TE, duration %d TU\n", le32_to_cpu(te_cmd->duration)); spin_lock_bh(&mvm->time_event_lock); if (WARN_ON(te_data->id != TE_MAX)) { spin_unlock_bh(&mvm->time_event_lock); return -EIO; } te_data->vif = vif; te_data->duration = le32_to_cpu(te_cmd->duration); te_data->id = le32_to_cpu(te_cmd->id); list_add_tail(&te_data->list, &mvm->time_event_list); spin_unlock_bh(&mvm->time_event_lock); /* * Use a notification wait, which really just processes the * command response and doesn't wait for anything, in order * to be able to process the response and get the UID inside * the RX path. Using CMD_WANT_SKB doesn't work because it * stores the buffer and then wakes up this thread, by which * time another notification (that the time event started) * might already be processed unsuccessfully. */ iwl_init_notification_wait(&mvm->notif_wait, &wait_time_event, time_event_response, ARRAY_SIZE(time_event_response), iwl_mvm_time_event_response, te_data); ret = iwl_mvm_send_cmd_pdu(mvm, TIME_EVENT_CMD, 0, sizeof(*te_cmd), te_cmd); if (ret) { IWL_ERR(mvm, "Couldn't send TIME_EVENT_CMD: %d\n", ret); iwl_remove_notification(&mvm->notif_wait, &wait_time_event); goto out_clear_te; } /* No need to wait for anything, so just pass 1 (0 isn't valid) */ ret = iwl_wait_notification(&mvm->notif_wait, &wait_time_event, 1); /* should never fail */ WARN_ON_ONCE(ret); if (ret) { out_clear_te: spin_lock_bh(&mvm->time_event_lock); iwl_mvm_te_clear_data(mvm, te_data); spin_unlock_bh(&mvm->time_event_lock); } return ret; } void iwl_mvm_protect_session(struct iwl_mvm *mvm, struct ieee80211_vif *vif, u32 duration, u32 min_duration, u32 max_delay, bool wait_for_notif) { struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); struct iwl_mvm_time_event_data *te_data = &mvmvif->time_event_data; const u8 te_notif_response[] = { TIME_EVENT_NOTIFICATION }; struct iwl_notification_wait wait_te_notif; struct iwl_time_event_cmd time_cmd = {}; lockdep_assert_held(&mvm->mutex); if (te_data->running && time_after(te_data->end_jiffies, TU_TO_EXP_TIME(min_duration))) { IWL_DEBUG_TE(mvm, "We have enough time in the current TE: %u\n", jiffies_to_msecs(te_data->end_jiffies - jiffies)); return; } if (te_data->running) { IWL_DEBUG_TE(mvm, "extend 0x%x: only %u ms left\n", te_data->uid, jiffies_to_msecs(te_data->end_jiffies - jiffies)); /* * we don't have enough time * cancel the current TE and issue a new one * Of course it would be better to remove the old one only * when the new one is added, but we don't care if we are off * channel for a bit. All we need to do, is not to return * before we actually begin to be on the channel. */ iwl_mvm_stop_session_protection(mvm, vif); } time_cmd.action = cpu_to_le32(FW_CTXT_ACTION_ADD); time_cmd.id_and_color = cpu_to_le32(FW_CMD_ID_AND_COLOR(mvmvif->id, mvmvif->color)); time_cmd.id = cpu_to_le32(TE_BSS_STA_AGGRESSIVE_ASSOC); time_cmd.apply_time = cpu_to_le32(iwl_read_prph(mvm->trans, DEVICE_SYSTEM_TIME_REG)); time_cmd.max_frags = TE_V2_FRAG_NONE; time_cmd.max_delay = cpu_to_le32(max_delay); /* TODO: why do we need to interval = bi if it is not periodic? */ time_cmd.interval = cpu_to_le32(1); time_cmd.duration = cpu_to_le32(duration); time_cmd.repeat = 1; time_cmd.policy = cpu_to_le16(TE_V2_NOTIF_HOST_EVENT_START | TE_V2_NOTIF_HOST_EVENT_END | T2_V2_START_IMMEDIATELY); if (!wait_for_notif) { iwl_mvm_time_event_send_add(mvm, vif, te_data, &time_cmd); return; } /* * Create notification_wait for the TIME_EVENT_NOTIFICATION to use * right after we send the time event */ iwl_init_notification_wait(&mvm->notif_wait, &wait_te_notif, te_notif_response, ARRAY_SIZE(te_notif_response), iwl_mvm_te_notif, te_data); /* If TE was sent OK - wait for the notification that started */ if (iwl_mvm_time_event_send_add(mvm, vif, te_data, &time_cmd)) { IWL_ERR(mvm, "Failed to add TE to protect session\n"); iwl_remove_notification(&mvm->notif_wait, &wait_te_notif); } else if (iwl_wait_notification(&mvm->notif_wait, &wait_te_notif, TU_TO_JIFFIES(max_delay))) { IWL_ERR(mvm, "Failed to protect session until TE\n"); } } static bool __iwl_mvm_remove_time_event(struct iwl_mvm *mvm, struct iwl_mvm_time_event_data *te_data, u32 *uid) { u32 id; /* * It is possible that by the time we got to this point the time * event was already removed. */ spin_lock_bh(&mvm->time_event_lock); /* Save time event uid before clearing its data */ *uid = te_data->uid; id = te_data->id; /* * The clear_data function handles time events that were already removed */ iwl_mvm_te_clear_data(mvm, te_data); spin_unlock_bh(&mvm->time_event_lock); /* * It is possible that by the time we try to remove it, the time event * has already ended and removed. In such a case there is no need to * send a removal command. */ if (id == TE_MAX) { IWL_DEBUG_TE(mvm, "TE 0x%x has already ended\n", *uid); return false; } return true; } /* * Explicit request to remove a aux roc time event. The removal of a time * event needs to be synchronized with the flow of a time event's end * notification, which also removes the time event from the op mode * data structures. */ static void iwl_mvm_remove_aux_roc_te(struct iwl_mvm *mvm, struct iwl_mvm_vif *mvmvif, struct iwl_mvm_time_event_data *te_data) { struct iwl_hs20_roc_req aux_cmd = {}; u32 uid; int ret; if (!__iwl_mvm_remove_time_event(mvm, te_data, &uid)) return; aux_cmd.event_unique_id = cpu_to_le32(uid); aux_cmd.action = cpu_to_le32(FW_CTXT_ACTION_REMOVE); aux_cmd.id_and_color = cpu_to_le32(FW_CMD_ID_AND_COLOR(mvmvif->id, mvmvif->color)); IWL_DEBUG_TE(mvm, "Removing BSS AUX ROC TE 0x%x\n", le32_to_cpu(aux_cmd.event_unique_id)); ret = iwl_mvm_send_cmd_pdu(mvm, HOT_SPOT_CMD, 0, sizeof(aux_cmd), &aux_cmd); if (WARN_ON(ret)) return; } /* * Explicit request to remove a time event. The removal of a time event needs to * be synchronized with the flow of a time event's end notification, which also * removes the time event from the op mode data structures. */ void iwl_mvm_remove_time_event(struct iwl_mvm *mvm, struct iwl_mvm_vif *mvmvif, struct iwl_mvm_time_event_data *te_data) { struct iwl_time_event_cmd time_cmd = {}; u32 uid; int ret; if (!__iwl_mvm_remove_time_event(mvm, te_data, &uid)) return; /* When we remove a TE, the UID is to be set in the id field */ time_cmd.id = cpu_to_le32(uid); time_cmd.action = cpu_to_le32(FW_CTXT_ACTION_REMOVE); time_cmd.id_and_color = cpu_to_le32(FW_CMD_ID_AND_COLOR(mvmvif->id, mvmvif->color)); IWL_DEBUG_TE(mvm, "Removing TE 0x%x\n", le32_to_cpu(time_cmd.id)); ret = iwl_mvm_send_cmd_pdu(mvm, TIME_EVENT_CMD, 0, sizeof(time_cmd), &time_cmd); if (WARN_ON(ret)) return; } void iwl_mvm_stop_session_protection(struct iwl_mvm *mvm, struct ieee80211_vif *vif) { struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); struct iwl_mvm_time_event_data *te_data = &mvmvif->time_event_data; lockdep_assert_held(&mvm->mutex); iwl_mvm_remove_time_event(mvm, mvmvif, te_data); } int iwl_mvm_start_p2p_roc(struct iwl_mvm *mvm, struct ieee80211_vif *vif, int duration, enum ieee80211_roc_type type) { struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); struct iwl_mvm_time_event_data *te_data = &mvmvif->time_event_data; struct iwl_time_event_cmd time_cmd = {}; lockdep_assert_held(&mvm->mutex); if (te_data->running) { IWL_WARN(mvm, "P2P_DEVICE remain on channel already running\n"); return -EBUSY; } /* * Flush the done work, just in case it's still pending, so that * the work it does can complete and we can accept new frames. */ flush_work(&mvm->roc_done_wk); time_cmd.action = cpu_to_le32(FW_CTXT_ACTION_ADD); time_cmd.id_and_color = cpu_to_le32(FW_CMD_ID_AND_COLOR(mvmvif->id, mvmvif->color)); switch (type) { case IEEE80211_ROC_TYPE_NORMAL: time_cmd.id = cpu_to_le32(IWL_MVM_ROC_TE_TYPE_NORMAL); break; case IEEE80211_ROC_TYPE_MGMT_TX: time_cmd.id = cpu_to_le32(IWL_MVM_ROC_TE_TYPE_MGMT_TX); break; default: WARN_ONCE(1, "Got an invalid ROC type\n"); return -EINVAL; } time_cmd.apply_time = cpu_to_le32(0); time_cmd.interval = cpu_to_le32(1); /* * The P2P Device TEs can have lower priority than other events * that are being scheduled by the driver/fw, and thus it might not be * scheduled. To improve the chances of it being scheduled, allow them * to be fragmented, and in addition allow them to be delayed. */ time_cmd.max_frags = min(MSEC_TO_TU(duration)/50, TE_V2_FRAG_ENDLESS); time_cmd.max_delay = cpu_to_le32(MSEC_TO_TU(duration/2)); time_cmd.duration = cpu_to_le32(MSEC_TO_TU(duration)); time_cmd.repeat = 1; time_cmd.policy = cpu_to_le16(TE_V2_NOTIF_HOST_EVENT_START | TE_V2_NOTIF_HOST_EVENT_END | T2_V2_START_IMMEDIATELY); return iwl_mvm_time_event_send_add(mvm, vif, te_data, &time_cmd); } void iwl_mvm_stop_roc(struct iwl_mvm *mvm) { struct iwl_mvm_vif *mvmvif; struct iwl_mvm_time_event_data *te_data; bool is_p2p = false; lockdep_assert_held(&mvm->mutex); mvmvif = NULL; spin_lock_bh(&mvm->time_event_lock); /* * Iterate over the list of time events and find the time event that is * associated with a P2P_DEVICE interface. * This assumes that a P2P_DEVICE interface can have only a single time * event at any given time and this time event coresponds to a ROC * request */ list_for_each_entry(te_data, &mvm->time_event_list, list) { if (te_data->vif->type == NL80211_IFTYPE_P2P_DEVICE) { mvmvif = iwl_mvm_vif_from_mac80211(te_data->vif); is_p2p = true; goto remove_te; } } /* * Iterate over the list of aux roc time events and find the time * event that is associated with a BSS interface. * This assumes that a BSS interface can have only a single time * event at any given time and this time event corresponds to a ROC * request */ list_for_each_entry(te_data, &mvm->aux_roc_te_list, list) { mvmvif = iwl_mvm_vif_from_mac80211(te_data->vif); goto remove_te; } remove_te: spin_unlock_bh(&mvm->time_event_lock); if (!mvmvif) { IWL_WARN(mvm, "No remain on channel event\n"); return; } if (is_p2p) iwl_mvm_remove_time_event(mvm, mvmvif, te_data); else iwl_mvm_remove_aux_roc_te(mvm, mvmvif, te_data); iwl_mvm_roc_finished(mvm); } int iwl_mvm_schedule_csa_period(struct iwl_mvm *mvm, struct ieee80211_vif *vif, u32 duration, u32 apply_time) { struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); struct iwl_mvm_time_event_data *te_data = &mvmvif->time_event_data; struct iwl_time_event_cmd time_cmd = {}; lockdep_assert_held(&mvm->mutex); if (te_data->running) { IWL_DEBUG_TE(mvm, "CS period is already scheduled\n"); return -EBUSY; } time_cmd.action = cpu_to_le32(FW_CTXT_ACTION_ADD); time_cmd.id_and_color = cpu_to_le32(FW_CMD_ID_AND_COLOR(mvmvif->id, mvmvif->color)); time_cmd.id = cpu_to_le32(TE_CHANNEL_SWITCH_PERIOD); time_cmd.apply_time = cpu_to_le32(apply_time); time_cmd.max_frags = TE_V2_FRAG_NONE; time_cmd.duration = cpu_to_le32(duration); time_cmd.repeat = 1; time_cmd.interval = cpu_to_le32(1); time_cmd.policy = cpu_to_le16(TE_V2_NOTIF_HOST_EVENT_START | TE_V2_ABSENCE); return iwl_mvm_time_event_send_add(mvm, vif, te_data, &time_cmd); }
gpl-2.0
engine-go/pizida
admin/write-page.php
10482
<?php include 'common.php'; include 'header.php'; include 'menu.php'; Typecho_Widget::widget('Widget_Contents_Page_Edit')->to($page); ?> <div class="main"> <div class="body container"> <?php include 'page-title.php'; ?> <div class="row typecho-page-main typecho-post-area" role="form"> <form action="<?php $security->index('/action/contents-page-edit'); ?>" method="post" name="write_page"> <div class="col-mb-12 col-tb-9" role="main"> <?php if ($page->draft): ?> <?php if ($page->draft['cid'] != $page->cid): ?> <?php $pageModifyDate = new Typecho_Date($page->draft['modified']); ?> <cite class="edit-draft-notice"><?php _e('当前正在编辑的是保存于%s的草稿, 你可以<a href="%s">删除它</a>', $pageModifyDate->word(), $security->getIndex('/action/contents-page-edit?do=deleteDraft&cid=' . $page->cid)); ?></cite> <?php else: ?> <cite class="edit-draft-notice"><?php _e('当前正在编辑的是未发布的草稿'); ?></cite> <?php endif; ?> <input name="draft" type="hidden" value="<?php echo $page->draft['cid'] ?>" /> <?php endif; ?> <p class="title"> <label for="title" class="sr-only"><?php _e('标题'); ?></label> <input type="text" id="title" name="title" autocomplete="off" value="<?php $page->title(); ?>" placeholder="<?php _e('标题'); ?>" class="w-100 text title" /> </p> <?php $permalink = Typecho_Common::url($options->routingTable['page']['url'], $options->index); list ($scheme, $permalink) = explode(':', $permalink, 2); $permalink = ltrim($permalink, '/'); $permalink = preg_replace("/\[([_a-z0-9-]+)[^\]]*\]/i", "{\\1}", $permalink); if ($page->have()) { $permalink = str_replace('{cid}', $page->cid, $permalink); } $input = '<input type="text" id="slug" name="slug" autocomplete="off" value="' . htmlspecialchars($page->slug) . '" class="mono" />'; ?> <p class="mono url-slug"> <label for="slug" class="sr-only"><?php _e('网址缩略名'); ?></label> <?php echo preg_replace("/\{slug\}/i", $input, $permalink); ?> </p> <p> <label for="text" class="sr-only"><?php _e('页面内容'); ?></label> <textarea style="height: <?php $options->editorSize(); ?>px" autocomplete="off" id="text" name="text" class="w-100 mono"><?php echo htmlspecialchars($page->text); ?></textarea> </p> <?php include 'custom-fields.php'; ?> <p class="submit clearfix"> <span class="left"> <button type="button" id="btn-cancel-preview" class="btn"><i class="i-caret-left"></i> <?php _e('取消预览'); ?></button> </span> <span class="right"> <input type="hidden" name="cid" value="<?php $page->cid(); ?>" /> <button type="button" id="btn-preview" class="btn"><i class="i-exlink"></i> <?php _e('预览页面'); ?></button> <button type="submit" name="do" value="save" id="btn-save" class="btn"><?php _e('保存草稿'); ?></button> <button type="submit" name="do" value="publish" class="btn primary" id="btn-submit"><?php _e('发布页面'); ?></button> <?php if ($options->markdown && (!$page->have() || $page->isMarkdown)): ?> <input type="hidden" name="markdown" value="1" /> <?php endif; ?> </span> </p> <?php Typecho_Plugin::factory('admin/write-page.php')->content($page); ?> </div> <div id="edit-secondary" class="col-mb-12 col-tb-3" role="complementary"> <ul class="typecho-option-tabs clearfix"> <li class="active w-50"><a href="#tab-advance"><?php _e('选项'); ?></a></li> <li class="w-50"><a href="#tab-files" id="tab-files-btn"><?php _e('附件'); ?></a></li> </ul> <div id="tab-advance" class="tab-content"> <section class="typecho-post-option" role="application"> <label for="date" class="typecho-label"><?php _e('发布日期'); ?></label> <p><input class="typecho-date w-100" type="text" name="date" id="date" value="<?php $page->have() ? $page->date('Y-m-d H:i') : ''; ?>" /></p> </section> <section class="typecho-post-option"> <label for="order" class="typecho-label"><?php _e('页面顺序'); ?></label> <p><input type="text" id="order" name="order" value="<?php $page->order(); ?>" class="w-100" /></p> <p class="description"><?php _e('为你的自定义页面设定一个序列值以后, 能够使得它们按此值从小到大排列'); ?></p> </section> <section class="typecho-post-option"> <label for="template" class="typecho-label"><?php _e('自定义模板'); ?></label> <p> <select name="template" id="template"> <option value=""><?php _e('不选择'); ?></option> <?php $templates = $page->getTemplates(); foreach ($templates as $template => $name): ?> <option value="<?php echo $template; ?>"<?php if($template == $page->template): ?> selected="true"<?php endif; ?>><?php echo $name; ?></option> <?php endforeach; ?> </select> </p> <p class="description"><?php _e('如果你为此页面选择了一个自定义模板, 系统将按照你选择的模板文件展现它'); ?></p> </section> <?php Typecho_Plugin::factory('admin/write-page.php')->option($page); ?> <button type="button" id="advance-panel-btn" class="btn btn-xs"><?php _e('高级选项'); ?> <i class="i-caret-down"></i></button> <div id="advance-panel"> <section class="typecho-post-option visibility-option"> <label for="visibility" class="typecho-label"><?php _e('公开度'); ?></label> <p> <select id="visibility" name="visibility"> <option value="publish"<?php if ($page->status == 'publish' || !$page->status): ?> selected<?php endif; ?>><?php _e('公开'); ?></option> <option value="hidden"<?php if ($page->status == 'hidden'): ?> selected<?php endif; ?>><?php _e('隐藏'); ?></option> </select> </p> </section> <section class="typecho-post-option allow-option"> <label class="typecho-label"><?php _e('权限控制'); ?></label> <ul> <li><input id="allowComment" name="allowComment" type="checkbox" value="1" <?php if($page->allow('comment')): ?>checked="true"<?php endif; ?> /> <label for="allowComment"><?php _e('允许评论'); ?></label></li> <li><input id="allowPing" name="allowPing" type="checkbox" value="1" <?php if($page->allow('ping')): ?>checked="true"<?php endif; ?> /> <label for="allowPing"><?php _e('允许被引用'); ?></label></li> <li><input id="allowFeed" name="allowFeed" type="checkbox" value="1" <?php if($page->allow('feed')): ?>checked="true"<?php endif; ?> /> <label for="allowFeed"><?php _e('允许在聚合中出现'); ?></label></li> </ul> </section> <?php Typecho_Plugin::factory('admin/write-page.php')->advanceOption($page); ?> </div> <?php if($page->have()): ?> <?php $modified = new Typecho_Date($page->modified); ?> <section class="typecho-post-option"> <p class="description"> <br>&mdash;<br> <?php _e('本页面由 <a href="%s">%s</a> 创建', Typecho_Common::url('manage-pages.php?uid=' . $page->author->uid, $options->adminUrl), $page->author->screenName); ?><br> <?php _e('最后更新于 %s', $modified->word()); ?> </p> </section> <?php endif; ?> </div><!-- end #tab-advance --> <div id="tab-files" class="tab-content hidden"> <?php include 'file-upload.php'; ?> </div><!-- end #tab-files --> </div> </form> </div> </div> </div> <?php include 'copyright.php'; include 'common-js.php'; include 'form-js.php'; include 'write-js.php'; Typecho_Plugin::factory('admin/write-page.php')->trigger($plugged)->richEditor($page); if (!$plugged) { include 'editor-js.php'; } include 'file-upload-js.php'; include 'custom-fields-js.php'; Typecho_Plugin::factory('admin/write-page.php')->bottom($page); include 'footer.php'; ?>
gpl-2.0
166MMX/openjdk.java.net-openjfx-8u40-rt
modules/web/src/main/native/Source/WebCore/html/canvas/OESVertexArrayObject.h
2317
/* * Copyright (C) 2011 Google Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``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 APPLE COMPUTER, INC. OR * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #ifndef OESVertexArrayObject_h #define OESVertexArrayObject_h #include "GraphicsTypes3D.h" #include "WebGLExtension.h" #include "WebGLVertexArrayObjectOES.h" #include <wtf/PassOwnPtr.h> namespace WebCore { class WebGLRenderingContext; class WebGLVertexArrayObjectOES; typedef int ExceptionCode; class OESVertexArrayObject : public WebGLExtension { public: static PassOwnPtr<OESVertexArrayObject> create(WebGLRenderingContext*); virtual ~OESVertexArrayObject(); virtual ExtensionName getName() const; PassRefPtr<WebGLVertexArrayObjectOES> createVertexArrayOES(); void deleteVertexArrayOES(WebGLVertexArrayObjectOES*); GC3Dboolean isVertexArrayOES(WebGLVertexArrayObjectOES*); void bindVertexArrayOES(WebGLVertexArrayObjectOES*, ExceptionCode&); private: OESVertexArrayObject(WebGLRenderingContext*); }; } // namespace WebCore #endif // OESVertexArrayObject_h
gpl-2.0
aiglesFoudroyants/SERVIDER
Servider/portfolio-four.html
49201
<!DOCTYPE html> <!--[if IE 8]> <html class="ie ie8"> <![endif]--> <!--[if IE 9]> <html class="ie ie9"> <![endif]--> <!--[if gt IE 9]><!--> <html> <!--<![endif]--> <head> <meta charset="utf-8"> <title>4 Column Portfolio | Gallaxy Responsive HTML5/CSS3 Template | FIFO THEMES</title> <meta name="description" content="Gallaxy Responsive HTML5/CSS3 Template from FIFOTHEMES.COM"> <meta name="author" content="FIFOTHEMES.COM"> <!-- Mobile Metas --> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- Google Fonts --> <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700,800' rel='stylesheet' type='text/css'> <link href='http://fonts.googleapis.com/css?family=Raleway:100,200,300,700,800,900' rel='stylesheet' type='text/css'> <!-- Library CSS --> <link rel="stylesheet" href="css/bootstrap.css"> <link rel="stylesheet" href="css/bootstrap-theme.css"> <link rel="stylesheet" href="css/fonts/font-awesome/css/font-awesome.css"> <link rel="stylesheet" href="css/animations.css" media="screen"> <link rel="stylesheet" href="css/superfish.css" media="screen"> <link rel="stylesheet" href="css/revolution-slider/css/settings.css" media="screen"> <link rel="stylesheet" href="css/revolution-slider/css/extralayers.css" media="screen"> <link rel="stylesheet" href="css/prettyPhoto.css" media="screen"> <!-- Theme CSS --> <link rel="stylesheet" href="css/style.css"> <!-- Skin --> <link rel="stylesheet" href="css/colors/green.css" class="colors"> <!-- Responsive CSS --> <link rel="stylesheet" href="css/theme-responsive.css"> <!-- Switcher CSS --> <link href="css/switcher.css" rel="stylesheet"> <link href="css/spectrum.css" rel="stylesheet"> <!-- Switcher CSS --> <link href="css/switcher.css" rel="stylesheet"> <link href="css/spectrum.css" rel="stylesheet"> <!-- Favicons --> <link rel="shortcut icon" href="img/ico/favicon.ico"> <link rel="apple-touch-icon" href="img/ico/apple-touch-icon.png"> <link rel="apple-touch-icon" sizes="72x72" href="img/ico/apple-touch-icon-72.png"> <link rel="apple-touch-icon" sizes="114x114" href="img/ico/apple-touch-icon-114.png"> <link rel="apple-touch-icon" sizes="144x144" href="img/ico/apple-touch-icon-144.png"> <!-- The HTML5 shim, for IE6-8 support of HTML5 elements --> <!--[if lt IE 9]> <script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script> <script src="js/respond.min.js"></script> <![endif]--> <!--[if IE]> <link rel="stylesheet" href="css/ie.css"> <![endif]--> </head> <body class="page"> <div class="page-mask"> <div class="page-loader"> <div class="spinner"></div> Loading... </div> </div> <!-- Wrap --> <div class="wrap"> <!-- Header --> <header id="header"> <!-- Header Top Bar --> <div class="top-bar"> <div class="slidedown collapse"> <div class="container"> <div class="pull-left"> <ul class="social pull-left"> <li class="facebook"><a href="#"><i class="fa fa-facebook"></i></a></li> <li class="twitter"><a href="#"><i class="fa fa-twitter"></i></a></li> <li class="dribbble"><a href="#"><i class="fa fa-dribbble"></i></a></li> <li class="linkedin"><a href="#"><i class="fa fa-linkedin"></i></a></li> <li class="rss"><a href="#"><i class="fa fa-rss"></i></a></li> </ul> </div> <div class="phone-login pull-right"> <a><i class="fa fa-phone"></i> Call Us : +880 111-111-111</a> <a href="#" data-toggle="modal" data-target="#loginModal"><i class="fa fa-sign-in"></i> Login</a> <a href="#" data-toggle="modal" data-target="#registrationModal"><i class="fa fa-edit"></i> Registration</a> </div> </div> </div> </div> <!-- /Header Top Bar --> <!-- Main Header --> <div class="main-header"> <div class="container"> <!-- TopNav --> <div class="topnav navbar-header"> <a class="navbar-toggle down-button" data-toggle="collapse" data-target=".slidedown"> <i class="fa fa-angle-down icon-current"></i> </a> </div> <!-- /TopNav--> <!-- Logo --> <div class="logo pull-left"> <h1> <a href="index.html"> <img class="logo-color" src="img/logos/logo_green.png" alt="gallaxy" width="160" height="60"> </a> </h1> </div> <!-- /Logo --> <!-- Mobile Menu --> <div class="mobile navbar-header"> <a class="navbar-toggle" data-toggle="collapse" href=".navbar-collapse"> <i class="fa fa-bars fa-2x"></i> </a> </div> <!-- /Mobile Menu --> <!-- Menu Start --> <nav class="collapse navbar-collapse menu"> <ul class="nav navbar-nav sf-menu"> <li> <a href="#"> Home <span class="sf-sub-indicator"> <i class="fa fa-angle-down "></i> </span> </a> <ul> <li><a href="index.html" class="sf-with-ul">Home </a></li> <li><a href="index-2.html" class="sf-with-ul">Home 2</a></li> <li><a href="index-shop.html" class="sf-with-ul">Home Shop</a></li> </ul> </li> <li> <a href="#" class="sf-with-ul"> Features <span class="sf-sub-indicator"> <i class="fa fa-angle-down "></i> </span> </a> <ul> <li><a href="shortcodes.html" class="sf-with-ul">Shortcodes</a></li> <li><a href="components.html" class="sf-with-ul">Components</a></li> <li><a href="icons.html" class="sf-with-ul">Icons</a></li> <li><a href="columns.html" class="sf-with-ul">Columns</a></li> <li><a href="pricing-table.html" class="sf-with-ul">Pricing Tables</a></li> <li> <a href="#" class="sf-with-ul"> Third Level Menu <span class="sf-sub-indicator pull-right"> <i class="fa fa-angle-right "></i> </span> </a> <ul> <li><a href="#" class="sf-with-ul">Menu Item</a></li> <li><a href="#" class="sf-with-ul">Menu Item</a></li> <li><a href="#" class="sf-with-ul">Menu Item</a></li> </ul> </li> </ul> </li> <li> <a href="#" class="sf-with-ul"> Shop <span class="sf-sub-indicator"> <i class="fa fa-angle-down "></i> </span> </a> <ul> <li> <a href="#" class="sf-with-ul"> Products <span class="sf-sub-indicator pull-right"> <i class="fa fa-angle-right "></i> </span> </a> <ul> <li><a href="shop.html" class="sf-with-ul">Products</a></li> <li><a href="shop-left-sidebar.html" class="sf-with-ul">Left Sidebar Products</a></li> <li><a href="shop-right-sidebar.html" class="sf-with-ul">Right Sidebar Products</a></li> </ul> </li> <li><a href="product-view.html" class="sf-with-ul">Product View</a></li> <li><a href="shoping-cart.html" class="sf-with-ul">Shoping Cart</a></li> <li><a href="checkout.html" class="sf-with-ul">Proceed to Checkout</a></li> <li> <a href="#" class="sf-with-ul"> My Account <span class="sf-sub-indicator pull-right"> <i class="fa fa-angle-right "></i> </span> </a> <ul> <li><a href="my-account.html" class="sf-with-ul">My Account</a></li> <li><a href="my-account-information.html" class="sf-with-ul">My Account Information</a></li> <li><a href="my-address.html" class="sf-with-ul">My Address</a></li> <li><a href="my-orders.html" class="sf-with-ul">My Orders</a></li> </ul> </li> <li><a href="confirmation.html" class="sf-with-ul">Confirmation Page</a></li> <li><a href="password-recovery.html" class="sf-with-ul">Password Recovery</a></li> </ul> </li> <li> <a href="#" class="sf-with-ul"> Pages <span class="sf-sub-indicator"> <i class="fa fa-angle-down "></i> </span> </a> <ul> <li> <a href="#" class="sf-with-ul"> About <span class="sf-sub-indicator pull-right"> <i class="fa fa-angle-right"></i> </span> </a> <ul> <li><a href="about-me.html" class="sf-with-ul">About Me</a></li> <li><a href="about.html" class="sf-with-ul">About Us</a></li> <li><a href="about-2.html" class="sf-with-ul">About Us Option</a></li> </ul> </li> <li> <a href="#" class="sf-with-ul"> Services <span class="sf-sub-indicator pull-right"> <i class="fa fa-angle-right"></i> </span> </a> <ul> <li><a href="services.html" class="sf-with-ul">Services</a></li> <li><a href="services-2.html" class="sf-with-ul">Services Option</a></li> </ul> </li> <li><a href="testimonials.html" class="sf-with-ul">Testimonials</a></li> <li><a href="full-width.html" class="sf-with-ul">Full Width Page</a></li> <li><a href="page-left-sidebar.html" class="sf-with-ul">Left Sidebar</a></li> <li><a href="page-right-sidebar.html" class="sf-with-ul">Right Sidebar</a></li> <li><a href="page-left-navigation.html" class="sf-with-ul">Left Navigation</a></li> <li><a href="page-right-navigation.html" class="sf-with-ul">Right Navigation</a></li> <li><a href="page-login.html" class="sf-with-ul">Login / Register</a></li> <li><a href="page-coming-soon.html" class="sf-with-ul">Coming Soon</a></li> <li> <a href="#" class="sf-with-ul"> FAQ <span class="sf-sub-indicator pull-right"> <i class="fa fa-angle-right "></i> </span> </a> <ul> <li><a href="faq.html" class="sf-with-ul">FAQ</a></li> <li><a href="faq-2.html" class="sf-with-ul">FAQ Option</a></li> </ul> </li> <li><a href="page-404.html" class="sf-with-ul">404 Page</a></li> <li><a href="sitemap.html" class="sf-with-ul">Sitemap</a></li> </ul> </li> <li> <a id="current" href="#" class="sf-with-ul"> Portfolio <span class="sf-sub-indicator"> <i class="fa fa-angle-down "></i> </span> </a> <ul> <li><a href="portfolio-two.html" class="sf-with-ul">2 Column</a></li> <li><a href="portfolio-three.html" class="sf-with-ul">3 Column</a></li> <li><a href="portfolio-four.html" class="sf-with-ul">4 Column</a></li> <li><a href="portfolio-full-width.html" class="sf-with-ul">Full Width</a></li> <li><a href="portfolio-single.html" class="sf-with-ul">Single Item Page</a></li> <li><a href="portfolio-single-big.html" class="sf-with-ul">Single Large Item Page</a></li> </ul> </li> <li> <a href="#" class="sf-with-ul"> Blog <span class="sf-sub-indicator"> <i class="fa fa-angle-down "></i> </span> </a> <ul> <li><a href="blog-left-sidebar.html" class="sf-with-ul">Left Sidebar Blog</a></li> <li><a href="blog-right-sidebar.html" class="sf-with-ul">Right Sidebar Blog</a></li> <li><a href="blog-full-width.html" class="sf-with-ul">Blog Full Width</a></li> <li><a href="single-post.html" class="sf-with-ul">Single Post</a></li> </ul> </li> <li> <a href="#"> Contact <span class="sf-sub-indicator"> <i class="fa fa-angle-down"></i> </span> </a> <ul> <li><a href="contact.html" class="sf-with-ul">Contact</a></li> <li><a href="contact-2.html" class="sf-with-ul">Contact Option</a></li> <li><a href="contact-3.html" class="sf-with-ul">Contact Option 2</a></li> </ul> </li> </ul> </nav> <!-- /Menu --> </div> </div> <!-- /Main Header --> </header> <!-- /Header --> <!-- Main Section --> <section id="main"> <!-- Title, Breadcrumb --> <div class="breadcrumb-wrapper"> <div class="pattern-overlay"> <div class="container"> <div class="row"> <div class="col-lg-6 col-md-6 col-xs-12 col-sm-6"> <h2 class="title">4 Column Portfolio</h2> </div> <div class="col-lg-6 col-md-6 col-xs-12 col-sm-6"> <div class="breadcrumbs pull-right"> <ul> <li>You are here:</li> <li><a href="index.html">Home</a></li> <li><a href="#">Portfolio</a></li> <li>4 Column Portfolio</li> </ul> </div> </div> </div> </div> </div> </div> <!-- /Title, Breadcrumb --> <!-- Main Content --> <div class="content margin-top60 margin-bottom60"> <div class="container"> <!-- Portfolio Content--> <div class="row"> <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12"> <div id="options"> <ul id="filters" class="option-set clearfix" data-option-key="filter"> <li><a href="#filter" data-option-value="*" class="selected">All</a></li> <li><a href="#filter" data-option-value=".web">HTML</a></li> <li><a href="#filter" data-option-value=".wp">Wordpress</a></li> <li><a href="#filter" data-option-value=".css">CSS</a></li> <li><a href="#filter" data-option-value=".jquery">jQuery</a></li> <li><a href="#filter" data-option-value=".php">PHP</a></li> </ul> </div> </div> <div class="clearfix"></div> <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 portfolio-four-column portfolio-wrap"> <!-- Portfolio --> <div class="portfolio"> <div class="grid"> <!-- Item 1 --> <figure class="effect-zoe portfolio-border web jquery item"> <a href="img/portfolio/01.jpg" class="portfolio-item-link" data-rel="prettyPhoto" ><img src="img/portfolio/01.jpg" alt="img1"/></a> <figcaption> <h2>Creative <span>Zoe</span></h2> <span><a href="portfolio-single.html"><i class="fa fa-share"></i></a></span> <span><a href="img/portfolio/01.jpg" class="portfolio-item-link" data-rel="prettyPhoto"><i class="fa fa-paperclip"></i></a></span> <span><a href="#"><i class="fa fa-heart"></i></a></span> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</p> </figcaption> </figure> <!-- /Item 1 --> <!-- Item 2 --> <figure class="effect-zoe portfolio-border wp css item"> <a href="img/portfolio/02.jpg" class="portfolio-item-link" data-rel="prettyPhoto" ><img src="img/portfolio/02.jpg" alt="img2"/></a> <figcaption> <h2>Marchant <span>Mogul</span></h2> <span><a href="portfolio-single.html"><i class="fa fa-share"></i></a></span> <span><a href="img/portfolio/02.jpg" class="portfolio-item-link" data-rel="prettyPhoto"><i class="fa fa-paperclip"></i></a></span> <span><a href="#"><i class="fa fa-heart"></i></a></span> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</p> </figcaption> </figure> <!-- /Item 2 --> <!-- Item 3 --> <figure class="effect-zoe portfolio-border php jquery wp item"> <a href="img/portfolio/03.jpg" class="portfolio-item-link" data-rel="prettyPhoto" ><img src="img/portfolio/03.jpg" alt="img3"/></a> <figcaption> <h2>Pedaling <span>Tavern</span></h2> <span><a href="portfolio-single.html"><i class="fa fa-share"></i></a></span> <span><a href="img/portfolio/03.jpg" class="portfolio-item-link" data-rel="prettyPhoto"><i class="fa fa-paperclip"></i></a></span> <span><a href="#"><i class="fa fa-heart"></i></a></span> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</p> </figcaption> </figure> <!-- /Item 3 --> <!-- Item 4 --> <figure class="effect-zoe portfolio-border wp jquery css item"> <a href="img/portfolio/04.jpg" class="portfolio-item-link" data-rel="prettyPhoto" ><img src="img/portfolio/04.jpg" alt="img4"/></a> <figcaption> <h2>Create <span>Smart</span></h2> <span><a href="portfolio-single.html"><i class="fa fa-share"></i></a></span> <span><a href="img/portfolio/04.jpg" class="portfolio-item-link" data-rel="prettyPhoto"><i class="fa fa-paperclip"></i></a></span> <span><a href="#"><i class="fa fa-heart"></i></a></span> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</p> </figcaption> </figure> <!-- /Item 4 --> <!-- Item 5 --> <figure class="effect-zoe portfolio-border web css wp item"> <a href="img/portfolio/05.jpg" class="portfolio-item-link" data-rel="prettyPhoto" ><img src="img/portfolio/05.jpg" alt="img5"/></a> <figcaption> <h2>Back to <span>Zen</span></h2> <span><a href="portfolio-single.html"><i class="fa fa-share"></i></a></span> <span><a href="img/portfolio/05.jpg" class="portfolio-item-link" data-rel="prettyPhoto"><i class="fa fa-paperclip"></i></a></span> <span><a href="#"><i class="fa fa-heart"></i></a></span> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</p> </figcaption> </figure> <!-- /Item 5 --> <!-- Item 6 --> <figure class="effect-zoe portfolio-border web php item"> <a href="img/portfolio/06.jpg" class="portfolio-item-link" data-rel="prettyPhoto" ><img src="img/portfolio/06.jpg" alt="img6"/></a> <figcaption> <h2>Dynamic <span>Wins</span></h2> <span><a href="portfolio-single.html"><i class="fa fa-share"></i></a></span> <span><a href="img/portfolio/06.jpg" class="portfolio-item-link" data-rel="prettyPhoto"><i class="fa fa-paperclip"></i></a></span> <span><a href="#"><i class="fa fa-heart"></i></a></span> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</p> </figcaption> </figure> <!-- /Item 6 --> <!-- Item 7 --> <figure class="effect-zoe portfolio-border wp css item"> <a href="img/portfolio/07.jpg" class="portfolio-item-link" data-rel="prettyPhoto" ><img src="img/portfolio/07.jpg" alt="img14"/></a> <figcaption> <h2>Risk <span>Release</span></h2> <span><a href="portfolio-single.html"><i class="fa fa-share"></i></a></span> <span><a href="img/portfolio/07.jpg" class="portfolio-item-link" data-rel="prettyPhoto"><i class="fa fa-paperclip"></i></a></span> <span><a href="#"><i class="fa fa-heart"></i></a></span> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</p> </figcaption> </figure> <!-- /Item 7 --> <!-- Item 8 --> <figure class="effect-zoe portfolio-border web jquery item"> <a href="img/portfolio/08.jpg" class="portfolio-item-link" data-rel="prettyPhoto" > <img src="img/portfolio/08.jpg" alt="img14"/></a> <figcaption> <h2>Blend <span>Solve</span></h2> <span><a href="portfolio-single.html"><i class="fa fa-share"></i></a></span> <span><a href="img/portfolio/08.jpg" class="portfolio-item-link" data-rel="prettyPhoto"><i class="fa fa-paperclip"></i></a></span> <span><a href="#"><i class="fa fa-heart"></i></a></span> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</p> </figcaption> </figure> <!-- /Item 8 --> <!-- Item 9 --> <figure class="effect-zoe portfolio-border css php wp item"> <a href="img/portfolio/09.jpg" class="portfolio-item-link" data-rel="prettyPhoto" > <img src="img/portfolio/09.jpg" alt="img14"/></a> <figcaption> <h2>Clunker <span>Pros</span></h2> <span><a href="portfolio-single.html"><i class="fa fa-share"></i></a></span> <span><a href="img/portfolio/09.jpg" class="portfolio-item-link" data-rel="prettyPhoto"><i class="fa fa-paperclip"></i></a></span> <span><a href="#"><i class="fa fa-heart"></i></a></span> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</p> </figcaption> </figure> <!-- /Item 9 --> <!-- Item 10 --> <figure class="effect-zoe portfolio-border css php wp item"> <a href="img/portfolio/10.jpg" class="portfolio-item-link" data-rel="prettyPhoto" ><img src="img/portfolio/10.jpg" alt="img14"/></a> <figcaption> <h2>Socialable <span>Click</span></h2> <span><a href="portfolio-single.html"><i class="fa fa-share"></i></a></span> <span><a href="img/portfolio/10.jpg" class="portfolio-item-link" data-rel="prettyPhoto"><i class="fa fa-paperclip"></i></a></span> <span><a href="#"><i class="fa fa-heart"></i></a></span> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</p> </figcaption> </figure> <!-- /Item 10 --> <!-- Item 11 --> <figure class="effect-zoe portfolio-border web php wp item"> <a href="img/portfolio/11.jpg" class="portfolio-item-link" data-rel="prettyPhoto" > <img src="img/portfolio/11.jpg" alt="img14"/></a> <figcaption> <h2>Slogan <span>Shogun</span></h2> <span><a href="portfolio-single.html"><i class="fa fa-share"></i></a></span> <span><a href="img/portfolio/11.jpg" class="portfolio-item-link" data-rel="prettyPhoto"><i class="fa fa-paperclip"></i></a></span> <span><a href="#"><i class="fa fa-heart"></i></a></span> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</p> </figcaption> </figure> <!-- /Item 11 --> <!-- Item 12 --> <figure class="effect-zoe portfolio-border css jquery wp item"> <a href="img/portfolio/12.jpg" class="portfolio-item-link" data-rel="prettyPhoto" > <img src="img/portfolio/12.jpg" alt="img14"/></a> <figcaption> <h2>Witty<span>Digital</span></h2> <span><a href="portfolio-single.html"><i class="fa fa-share"></i></a></span> <span><a href="img/portfolio/12.jpg" class="portfolio-item-link" data-rel="prettyPhoto"><i class="fa fa-paperclip"></i></a></span> <span><a href="#"><i class="fa fa-heart"></i></a></span> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</p> </figcaption> </figure> <!-- /Item 12 --> </div> <!-- /grid --> </div> <!-- /Portfolio --> </div> </div> <!-- /Portfolio Content--> </div> </div> <!-- /Main Content --> </section> <!-- /Main Section --> <!-- Footer --> <footer id="footer"> <div class="pattern-overlay"> <!-- Footer Top --> <div class="footer-top"> <div class="container"> <div class="row"> <section class="col-lg-3 col-md-3 col-xs-12 col-sm-3 footer-one"> <h3 class="light">About</h3> <p> Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s. </p> </section> <section class="col-lg-3 col-md-3 col-xs-12 col-sm-3 footer-two"> <h3 class="light">Twitter Stream</h3> <ul id="tweets"> </ul> </section> <section class="col-lg-3 col-md-3 col-xs-12 col-sm-3 footer-three"> <h3 class="light">Contact Us</h3> <ul class="contact-us"> <li> <i class="fa fa-map-marker"></i> <p> <strong class="contact-pad">Address:</strong> House: 325, Road: 2,<br> Mirpur DOHS <br> Dhaka, Bangladesh </p> </li> <li> <i class="fa fa-phone"></i> <p><strong>Phone:</strong> +880 111-111-111</p> </li> <li> <i class="fa fa-envelope"></i> <p><strong>Email:</strong><a href="mailto:[email protected]">[email protected]</a></p> </li> </ul> </section> <section class="col-lg-3 col-md-3 col-xs-12 col-sm-3 footer-four"> <h3 class="light">Subscribe</h3> <p> Subscribe to our email newsletter to receive our news, updates and awesome free files. </p> <form method="get" action="#"> <div class="input-group"> <input type="text" value="[email protected]" onfocus="if(this.value=='[email protected]')this.value='';" onblur="if(this.value=='')this.value='[email protected]';" class="subscribe form-control"> <span class="input-group-btn"> <button class="btn subscribe-btn" type="button">Join</button> </span> </div> <!-- /input-group --> </form> </section> </div> </div> </div> <!-- /Footer Top --> <!-- Footer Bottom --> <div class="footer-bottom"> <div class="container"> <div class="row"> <div class="col-lg-6 col-md-6 col-xs-12 col-sm-6 "> <p class="credits">&copy; Copyright 2014 by <a href="#">FIFOLAB</a>. All Rights Reserved. </p> </div> <div class="col-lg-6 col-md-6 col-xs-12 col-sm-6 "> <ul class="social social-icons-footer-bottom"> <li class="facebook"><a href="#" data-toggle="tooltip" title="Facebook"><i class="fa fa-facebook"></i></a></li> <li class="twitter"><a href="#" data-toggle="tooltip" title="Twitter"><i class="fa fa-twitter"></i></a></li> <li class="dribbble"><a href="#" data-toggle="tooltip" title="Dribble"><i class="fa fa-dribbble"></i></a></li> <li class="linkedin"><a href="#" data-toggle="tooltip" title="LinkedIn"><i class="fa fa-linkedin"></i></a></li> <li class="rss"><a href="#" data-toggle="tooltip" title="Rss"><i class="fa fa-rss"></i></a></li> </ul> </div> </div> </div> </div> <!-- /Footer Bottom --> </div> </footer> <!-- /Footer --> <!-- Modal --> <section id="modals"> <!-- Login Modal --> <div class="modal login fade" id="loginModal" tabindex="-1" role="dialog" aria-labelledby="loginModal" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <h2 class="form-signin-heading modal-title" id="myModalLabel">Login</h2> </div> <form method="post" id="login"> <div class="modal-body"> <fieldset> <div class="row"> <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12"> <input class="form-control" id="username" name="username" type="text" placeholder="Username" value="" required> </div> </div> <div class="row"> <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12"> <input class="form-control" type="email" id="email" name="email" placeholder="Email" value="" required> </div> </div> </fieldset> </div> <div class="modal-footer"> <a href="password-recovery.html" class="pull-left">(Lost Password?)</a> <button type="button" class="btn btn-default" data-dismiss="modal">Close</button> <button type="button" class="btn btn-color">Login</button> </div> </form> </div> </div> </div> <!-- /Login Modal --> <!-- Registration Modal --> <div class="modal register fade" id="registrationModal" tabindex="-1" role="dialog" aria-labelledby="registrationModal" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <h2 class="form-signin-heading modal-title" id="registrationModalLabel">Create a new account</h2> </div> <form method="post" id="registration"> <div class="modal-body"> <div class="row"> <div class="form-group"> <div class="col-md-6"> <input type="text" value="" class="form-control" placeholder="First Name"> </div> <div class="col-md-6"> <input type="text" value="" class="form-control" placeholder="Last Name"> </div> </div> </div> <div class="row"> <div class="form-group"> <div class="col-md-12"> <input type="text" value="" class="form-control" placeholder="E-mail Address"> </div> </div> </div> <div class="row"> <div class="form-group"> <div class="col-md-6"> <input type="password" value="" class="form-control" placeholder="Password"> </div> <div class="col-md-6"> <input type="password" value="" class="form-control" placeholder="Re-enter Password"> </div> </div> </div> </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal">Close</button> <button type="button" class="btn btn-color">Register</button> </div> </form> </div> </div> </div> <!-- /Registration Modal --> </section> <!-- /Modal --> <!-- Scroll To Top --> <a href="#" class="scrollup"><i class="fa fa-angle-up"></i></a> </div> <!-- /Wrap --> <!-- Style Switcher --> <section id="style-switcher"> <h2>Style Switcher <a href="#"><i class="fa fa-cogs"></i></a></h2> <div> <h3>Predefined Colors</h3> <ul class="colors"> <li><a title="Green" class="green" href="#"></a></li> <li><a title="Blue" class="blue" href="#"></a></li> <li><a title="Orange" class="orange" href="#"></a></li> <li><a title="Purple" class="purple" href="#"></a></li> <li><a title="Red" class="red" href="#"></a></li> <li><a title="Magenta" class="magenta" href="#"></a></li> <li><a title="Brown" class="brown" href="#"></a></li> <li><a title="Gray" class="gray" href="#"></a></li> <li><a title="Golden" class="golden" href="#"></a></li> <li><a title="Teal" class="teal" href="#"></a></li> </ul> <h3>Layout Style</h3> <div class="layout-style"> <select id="layout-style"> <option value="1">Wide</option> <option value="2">Boxed</option> </select> </div> <h3>Header Color</h3> <div class="header-color"> <input type='text' class="header-bg" /> </div> <h3>Footer Top Color</h3> <div class="header-color"> <input type='text' class="footer-bg" /> </div> <h3>Footer Bottom Color</h3> <div class="header-color"> <input type='text' class="footer-bottom" /> </div> <h3>Background Image</h3> <ul id="bg" class="colors bg"> <li><a class="bg1" href="#"></a></li> <li><a class="bg2" href="#"></a></li> <li><a class="bg3" href="#"></a></li> <li><a class="bg4" href="#"></a></li> <li><a class="bg5" href="#"></a></li> <li><a class="bg6" href="#"></a></li> <li><a class="bg7" href="#"></a></li> <li><a class="bg8" href="#"></a></li> <li><a class="bg9" href="#"></a></li> <li><a class="bg10" href="#"></a></li> </ul> </div> </section> <!-- Style Switcher --> <!-- The Scripts --> <script src="js/jquery.min.js"></script> <script src="js/jquery-migrate-1.0.0.js"></script> <script src="js/jquery-ui.js"></script> <script src="js/bootstrap.js"></script> <script src="js/revolution-slider/js/jquery.themepunch.plugins.min.js"></script> <script src="js/revolution-slider/js/jquery.themepunch.revolution.min.js"></script> <script src="js/jquery.parallax.js"></script> <script src="js/jquery.wait.js"></script> <script src="js/fappear.js"></script> <script src="js/modernizr-2.6.2.min.js"></script> <script src="js/jquery.bxslider.min.js"></script> <script src="js/jquery.prettyPhoto.js"></script> <script src="js/superfish.js"></script> <script src="js/tweetMachine.js"></script> <script src="js/tytabs.js"></script> <script src="js/jquery.gmap.min.js"></script> <script src="js/jquery.sticky.js"></script> <script src="js/jquery.countTo.js"></script> <script src="js/jflickrfeed.js"></script> <script src="js/jquery.knob.js"></script> <script src="js/imagesloaded.pkgd.min.js"></script> <script src="js/waypoints.min.js"></script> <script src="js/wow.js"></script> <script src="js/jquery.fitvids.js"></script> <script src="js/spectrum.js"></script> <script src="js/switcher.js"></script> <script src="js/jquery.isotope.js"></script> <script src="js/portfolio.js"></script> <script src="js/custom.js"></script> </body> </html>
gpl-2.0
ENG-SYSTEMS/Kob-Eye
Modules/Parc/Device/getVersion.md
46
[OBJ Parc|Device|D][!D::getVersion([!uuid!])!]
gpl-2.0
junsuwhy/tungfilm
vendor/drush/drush/tests/siteSshTest.php
2659
<?php /** * @file * Tests for ssh.drush.inc * * @group commands */ class siteSshCase extends Drush_CommandTestCase { /** * Test drush ssh --simulate. No additional bash passed. */ public function testInteractive() { if ($this->is_windows()) { $this->markTestSkipped('ssh command not currently available on Windows.'); } $options = array( 'simulate' => NULL, ); $this->drush('ssh', array(), $options, 'user@server/path/to/drupal#sitename', NULL, self::EXIT_SUCCESS, '2>&1'); $output = $this->getOutput(); $expected = sprintf('Calling proc_open(ssh -o PasswordAuthentication=no -t %s@%s %s);', self::escapeshellarg('user'), self::escapeshellarg('server'), "'cd /path/to/drupal && bash -l'"); $this->assertEquals($expected, $output); } /** * Test drush ssh --simulate 'date'. * @todo Run over a site list. drush_sitealias_get_record() currently cannot * handle a site list comprised of longhand site specifications. */ public function testNonInteractive() { $options = array( 'cd' => '0', 'simulate' => NULL, ); $this->drush('ssh', array('date'), $options, 'user@server/path/to/drupal#sitename', NULL, self::EXIT_SUCCESS, '2>&1'); $output = $this->getOutput(); $expected = sprintf('Calling proc_open(ssh -o PasswordAuthentication=no %s@%s %s);', self::escapeshellarg('user'), self::escapeshellarg('server'), self::escapeshellarg('date')); $this->assertEquals($expected, $output); } /** * Test drush ssh with multiple arguments (preferred form). */ public function testSshMultipleArgs() { $options = array( 'cd' => '0', 'simulate' => NULL, ); $this->drush('ssh', array('ls', '/path1', '/path2'), $options, 'user@server/path/to/drupal#sitename', NULL, self::EXIT_SUCCESS, '2>&1'); $output = $this->getOutput(); $expected = sprintf('Calling proc_open(ssh -o PasswordAuthentication=no %s@%s \'ls /path1 /path2\');', self::escapeshellarg('user'), self::escapeshellarg('server')); $this->assertEquals($expected, $output); } /** * Test drush ssh with multiple arguments (legacy form). */ public function testSshMultipleArgsLegacy() { $options = array( 'cd' => '0', 'simulate' => NULL, ); $this->drush('ssh', array('ls /path1 /path2'), $options, 'user@server/path/to/drupal#sitename', NULL, self::EXIT_SUCCESS, '2>&1'); $output = $this->getOutput(); $expected = sprintf('Calling proc_open(ssh -o PasswordAuthentication=no %s@%s \'ls /path1 /path2\');', self::escapeshellarg('user'), self::escapeshellarg('server')); $this->assertEquals($expected, $output); } }
gpl-2.0
Z-Shang/onscripter-gbk
svn/onscripter-read-only/src/org/bouncycastle/asn1/ASN1SequenceParser.java
207
package org.bouncycastle.asn1; import java.io.IOException; public interface ASN1SequenceParser extends DEREncodable, InMemoryRepresentable { DEREncodable readObject() throws IOException; }
gpl-2.0
Jasonudoo/platform
administrator/components/com_virtuemart_allinone/plugins/vmpayment/klarna/klarna/elements/klarnalabel.php
800
<?php /** * @version $Id$ * * @author Valérie Isaksen * @package VirtueMart * @copyright Copyright (C) iStraxx - All rights reserved. * @license istraxx_license.txt Proprietary License. This code belongs to istraxx UG (haftungsbeschränkt) * You are not allowed to distribute or sell this code. * You are not allowed to modify this code */ defined('JPATH_BASE') or die(); /** * Renders a label element */ class JElementKlarnaLabel extends JElement { /** * Element name * * @access protected * @var string */ var $_name = 'KlarnaLabel'; function fetchElement($name, $value, &$node, $control_name) { $class = ( $node->attributes('class') ? 'class="'.$node->attributes('class').'"' : 'class="text_area"' ); return '<label for="'.$name.'"'.$class.'>'.$value.'</label>'; } }
gpl-2.0
Dozorov/TrinityCore
src/server/game/Server/Packets/GuildPackets.cpp
21360
/* * Copyright (C) 2008-2018 TrinityCore <https://www.trinitycore.org/> * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2 of the License, or (at your * option) any later version. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for * more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see <http://www.gnu.org/licenses/>. */ #include "GuildPackets.h" void WorldPackets::Guild::QueryGuildInfo::Read() { _worldPacket >> GuildGuid; _worldPacket >> PlayerGuid; } WorldPackets::Guild::QueryGuildInfoResponse::QueryGuildInfoResponse() : ServerPacket(SMSG_QUERY_GUILD_INFO_RESPONSE) { } WorldPacket const* WorldPackets::Guild::QueryGuildInfoResponse::Write() { _worldPacket << GuildGuid; _worldPacket.WriteBit(Info.is_initialized()); _worldPacket.FlushBits(); if (Info) { _worldPacket << Info->GuildGUID; _worldPacket << uint32(Info->VirtualRealmAddress); _worldPacket << uint32(Info->Ranks.size()); _worldPacket << uint32(Info->EmblemStyle); _worldPacket << uint32(Info->EmblemColor); _worldPacket << uint32(Info->BorderStyle); _worldPacket << uint32(Info->BorderColor); _worldPacket << uint32(Info->BackgroundColor); _worldPacket.WriteBits(Info->GuildName.size(), 7); _worldPacket.FlushBits(); for (GuildInfo::GuildInfoRank const& rank : Info->Ranks) { _worldPacket << uint32(rank.RankID); _worldPacket << uint32(rank.RankOrder); _worldPacket.WriteBits(rank.RankName.size(), 7); _worldPacket.FlushBits(); _worldPacket.WriteString(rank.RankName); } _worldPacket.WriteString(Info->GuildName); } return &_worldPacket; } WorldPacket const* WorldPackets::Guild::GuildRoster::Write() { _worldPacket << NumAccounts; _worldPacket.AppendPackedTime(CreateDate); _worldPacket << GuildFlags; _worldPacket << uint32(MemberData.size()); _worldPacket.WriteBits(WelcomeText.length(), 10); _worldPacket.WriteBits(InfoText.length(), 11); _worldPacket.FlushBits(); for (GuildRosterMemberData const& member : MemberData) _worldPacket << member; _worldPacket.WriteString(WelcomeText); _worldPacket.WriteString(InfoText); return &_worldPacket; } WorldPacket const* WorldPackets::Guild::GuildRosterUpdate::Write() { _worldPacket << uint32(MemberData.size()); for (GuildRosterMemberData const& member : MemberData) _worldPacket << member; return &_worldPacket; } void WorldPackets::Guild::GuildUpdateMotdText::Read() { uint32 textLen = _worldPacket.ReadBits(10); MotdText = _worldPacket.ReadString(textLen); } WorldPacket const* WorldPackets::Guild::GuildCommandResult::Write() { _worldPacket << Result; _worldPacket << Command; _worldPacket.WriteBits(Name.length(), 8); _worldPacket.FlushBits(); _worldPacket.WriteString(Name); return &_worldPacket; } void WorldPackets::Guild::DeclineGuildInvites::Read() { Allow = _worldPacket.ReadBit(); } void WorldPackets::Guild::GuildInviteByName::Read() { uint32 nameLen = _worldPacket.ReadBits(9); Name = _worldPacket.ReadString(nameLen); } WorldPacket const* WorldPackets::Guild::GuildInvite::Write() { _worldPacket.WriteBits(InviterName.length(), 6); _worldPacket.WriteBits(GuildName.length(), 7); _worldPacket.WriteBits(OldGuildName.length(), 7); _worldPacket.FlushBits(); _worldPacket << InviterVirtualRealmAddress; _worldPacket << GuildVirtualRealmAddress; _worldPacket << GuildGUID; _worldPacket << OldGuildVirtualRealmAddress; _worldPacket << OldGuildGUID; _worldPacket << EmblemStyle; _worldPacket << EmblemColor; _worldPacket << BorderStyle; _worldPacket << BorderColor; _worldPacket << Background; _worldPacket << AchievementPoints; _worldPacket.WriteString(InviterName); _worldPacket.WriteString(GuildName); _worldPacket.WriteString(OldGuildName); return &_worldPacket; } ByteBuffer& operator<<(ByteBuffer& data, WorldPackets::Guild::GuildRosterProfessionData const& rosterProfessionData) { data << rosterProfessionData.DbID; data << rosterProfessionData.Rank; data << rosterProfessionData.Step; return data; } ByteBuffer& operator<<(ByteBuffer& data, WorldPackets::Guild::GuildRosterMemberData const& rosterMemberData) { data << rosterMemberData.Guid; data << rosterMemberData.RankID; data << rosterMemberData.AreaID; data << rosterMemberData.PersonalAchievementPoints; data << rosterMemberData.GuildReputation; data << rosterMemberData.LastSave; for (uint8 i = 0; i < 2; i++) data << rosterMemberData.Profession[i]; data << rosterMemberData.VirtualRealmAddress; data << rosterMemberData.Status; data << rosterMemberData.Level; data << rosterMemberData.ClassID; data << rosterMemberData.Gender; data.WriteBits(rosterMemberData.Name.length(), 6); data.WriteBits(rosterMemberData.Note.length(), 8); data.WriteBits(rosterMemberData.OfficerNote.length(), 8); data.WriteBit(rosterMemberData.Authenticated); data.WriteBit(rosterMemberData.SorEligible); data.FlushBits(); data.WriteString(rosterMemberData.Name); data.WriteString(rosterMemberData.Note); data.WriteString(rosterMemberData.OfficerNote); return data; } WorldPacket const* WorldPackets::Guild::GuildEventPresenceChange::Write() { _worldPacket << Guid; _worldPacket << VirtualRealmAddress; _worldPacket.WriteBits(Name.length(), 6); _worldPacket.WriteBit(LoggedOn); _worldPacket.WriteBit(Mobile); _worldPacket.FlushBits(); _worldPacket.WriteString(Name); return &_worldPacket; } WorldPacket const* WorldPackets::Guild::GuildEventMotd::Write() { _worldPacket.WriteBits(MotdText.length(), 10); _worldPacket.FlushBits(); _worldPacket.WriteString(MotdText); return &_worldPacket; } WorldPacket const* WorldPackets::Guild::GuildEventPlayerJoined::Write() { _worldPacket << Guid; _worldPacket << VirtualRealmAddress; _worldPacket.WriteBits(Name.length(), 6); _worldPacket.FlushBits(); _worldPacket.WriteString(Name); return &_worldPacket; } WorldPacket const* WorldPackets::Guild::GuildEventRankChanged::Write() { _worldPacket << RankID; return &_worldPacket; } WorldPacket const* WorldPackets::Guild::GuildEventBankMoneyChanged::Write() { _worldPacket << Money; return &_worldPacket; } WorldPacket const* WorldPackets::Guild::GuildEventLogQueryResults::Write() { _worldPacket.reserve(4 + Entry.size() * 38); _worldPacket << uint32(Entry.size()); for (GuildEventEntry const& entry : Entry) { _worldPacket << entry.PlayerGUID; _worldPacket << entry.OtherGUID; _worldPacket << entry.TransactionType; _worldPacket << entry.RankID; _worldPacket << entry.TransactionDate; } return &_worldPacket; } WorldPacket const* WorldPackets::Guild::GuildEventPlayerLeft::Write() { _worldPacket.WriteBit(Removed); _worldPacket.WriteBits(LeaverName.length(), 6); _worldPacket.FlushBits(); if (Removed) { _worldPacket.WriteBits(RemoverName.length(), 6); _worldPacket.FlushBits(); _worldPacket << RemoverGUID; _worldPacket << RemoverVirtualRealmAddress; _worldPacket.WriteString(RemoverName); } _worldPacket << LeaverGUID; _worldPacket << LeaverVirtualRealmAddress; _worldPacket.WriteString(LeaverName); return &_worldPacket; } WorldPacket const* WorldPackets::Guild::GuildPermissionsQueryResults::Write() { _worldPacket << RankID; _worldPacket << WithdrawGoldLimit; _worldPacket << Flags; _worldPacket << NumTabs; _worldPacket << uint32(Tab.size()); for (GuildRankTabPermissions const& tab : Tab) { _worldPacket << tab.Flags; _worldPacket << tab.WithdrawItemLimit; } return &_worldPacket; } void WorldPackets::Guild::GuildSetRankPermissions::Read() { _worldPacket >> RankID; _worldPacket >> RankOrder; _worldPacket >> Flags; _worldPacket >> OldFlags; _worldPacket >> WithdrawGoldLimit; for (uint8 i = 0; i < GUILD_BANK_MAX_TABS; i++) { _worldPacket >> TabFlags[i]; _worldPacket >> TabWithdrawItemLimit[i]; } _worldPacket.ResetBitPos(); uint32 rankNameLen = _worldPacket.ReadBits(7); RankName = _worldPacket.ReadString(rankNameLen); } WorldPacket const* WorldPackets::Guild::GuildEventNewLeader::Write() { _worldPacket.WriteBit(SelfPromoted); _worldPacket.WriteBits(NewLeaderName.length(), 6); _worldPacket.WriteBits(OldLeaderName.length(), 6); _worldPacket.FlushBits(); _worldPacket << OldLeaderGUID; _worldPacket << OldLeaderVirtualRealmAddress; _worldPacket << NewLeaderGUID; _worldPacket << NewLeaderVirtualRealmAddress; _worldPacket.WriteString(NewLeaderName); _worldPacket.WriteString(OldLeaderName); return &_worldPacket; } WorldPacket const* WorldPackets::Guild::GuildEventTabModified::Write() { _worldPacket << Tab; _worldPacket.WriteBits(Name.length(), 7); _worldPacket.WriteBits(Icon.length(), 9); _worldPacket.FlushBits(); _worldPacket.WriteString(Name); _worldPacket.WriteString(Icon); return &_worldPacket; } WorldPacket const* WorldPackets::Guild::GuildEventTabTextChanged::Write() { _worldPacket << Tab; return &_worldPacket; } ByteBuffer& operator<<(ByteBuffer& data, WorldPackets::Guild::GuildRankData const& rankData) { data << rankData.RankID; data << rankData.RankOrder; data << rankData.Flags; data << rankData.WithdrawGoldLimit; for (uint8 i = 0; i < GUILD_BANK_MAX_TABS; i++) { data << rankData.TabFlags[i]; data << rankData.TabWithdrawItemLimit[i]; } data.WriteBits(rankData.RankName.length(), 7); data.FlushBits(); data.WriteString(rankData.RankName); return data; } void WorldPackets::Guild::GuildAddRank::Read() { uint32 nameLen = _worldPacket.ReadBits(7); _worldPacket.ResetBitPos(); _worldPacket >> RankOrder; Name = _worldPacket.ReadString(nameLen); } void WorldPackets::Guild::GuildAssignMemberRank::Read() { _worldPacket >> Member; _worldPacket >> RankOrder; } void WorldPackets::Guild::GuildDeleteRank::Read() { _worldPacket >> RankOrder; } void WorldPackets::Guild::GuildGetRanks::Read() { _worldPacket >> GuildGUID; } WorldPacket const* WorldPackets::Guild::GuildRanks::Write() { _worldPacket << uint32(Ranks.size()); for (GuildRankData const& rank : Ranks) _worldPacket << rank; return &_worldPacket; } WorldPacket const* WorldPackets::Guild::GuildSendRankChange::Write() { _worldPacket << Officer; _worldPacket << Other; _worldPacket << RankID; _worldPacket.WriteBit(Promote); _worldPacket.FlushBits(); return &_worldPacket; } void WorldPackets::Guild::GuildShiftRank::Read() { _worldPacket >> RankOrder; ShiftUp = _worldPacket.ReadBit(); } void WorldPackets::Guild::GuildUpdateInfoText::Read() { uint32 textLen = _worldPacket.ReadBits(11); InfoText = _worldPacket.ReadString(textLen); } void WorldPackets::Guild::GuildSetMemberNote::Read() { _worldPacket >> NoteeGUID; uint32 noteLen = _worldPacket.ReadBits(8); IsPublic = _worldPacket.ReadBit(); Note = _worldPacket.ReadString(noteLen); } WorldPacket const* WorldPackets::Guild::GuildMemberUpdateNote::Write() { _worldPacket.reserve(16 + 2 + Note.size()); _worldPacket << Member; _worldPacket.WriteBits(Note.length(), 8); _worldPacket.WriteBit(IsPublic); _worldPacket.FlushBits(); _worldPacket.WriteString(Note); return &_worldPacket; } void WorldPackets::Guild::GuildDemoteMember::Read() { _worldPacket >> Demotee; } void WorldPackets::Guild::GuildPromoteMember::Read() { _worldPacket >> Promotee; } void WorldPackets::Guild::GuildOfficerRemoveMember::Read() { _worldPacket >> Removee; } void WorldPackets::Guild::GuildChangeNameRequest::Read() { uint32 nameLen = _worldPacket.ReadBits(7); NewName = _worldPacket.ReadString(nameLen); } WorldPacket const* WorldPackets::Guild::GuildFlaggedForRename::Write() { _worldPacket.WriteBit(FlagSet); return &_worldPacket; } void WorldPackets::Guild::RequestGuildPartyState::Read() { _worldPacket >> GuildGUID; } WorldPacket const* WorldPackets::Guild::GuildPartyState::Write() { _worldPacket.WriteBit(InGuildParty); _worldPacket.FlushBits(); _worldPacket << NumMembers; _worldPacket << NumRequired; _worldPacket << GuildXPEarnedMult; return &_worldPacket; } ByteBuffer& operator<<(ByteBuffer& data, WorldPackets::Guild::GuildRewardItem const& rewardItem) { data << rewardItem.ItemID; data << rewardItem.Unk4; data << uint32(rewardItem.AchievementsRequired.size()); data << rewardItem.RaceMask; data << rewardItem.MinGuildLevel; data << rewardItem.MinGuildRep; data << rewardItem.Cost; for (uint8 i = 0; i < rewardItem.AchievementsRequired.size(); i++) data << rewardItem.AchievementsRequired[i]; return data; } void WorldPackets::Guild::RequestGuildRewardsList::Read() { _worldPacket >> CurrentVersion; } WorldPacket const* WorldPackets::Guild::GuildRewardList::Write() { _worldPacket << Version; _worldPacket << uint32(RewardItems.size()); for (GuildRewardItem const& item : RewardItems) _worldPacket << item; return &_worldPacket; } void WorldPackets::Guild::GuildBankActivate::Read() { _worldPacket >> Banker; FullUpdate = _worldPacket.ReadBit(); } void WorldPackets::Guild::GuildBankBuyTab::Read() { _worldPacket >> Banker; _worldPacket >> BankTab; } void WorldPackets::Guild::GuildBankUpdateTab::Read() { _worldPacket >> Banker; _worldPacket >> BankTab; _worldPacket.ResetBitPos(); uint32 nameLen = _worldPacket.ReadBits(7); uint32 iconLen = _worldPacket.ReadBits(9); Name = _worldPacket.ReadString(nameLen); Icon = _worldPacket.ReadString(iconLen); } void WorldPackets::Guild::GuildBankDepositMoney::Read() { _worldPacket >> Banker; _worldPacket >> Money; } void WorldPackets::Guild::GuildBankQueryTab::Read() { _worldPacket >> Banker; _worldPacket >> Tab; FullUpdate = _worldPacket.ReadBit(); } WorldPacket const* WorldPackets::Guild::GuildBankRemainingWithdrawMoney::Write() { _worldPacket << RemainingWithdrawMoney; return &_worldPacket; } void WorldPackets::Guild::GuildBankWithdrawMoney::Read() { _worldPacket >> Banker; _worldPacket >> Money; } WorldPacket const* WorldPackets::Guild::GuildBankQueryResults::Write() { _worldPacket << Money; _worldPacket << Tab; _worldPacket << WithdrawalsRemaining; _worldPacket << uint32(TabInfo.size()); _worldPacket << uint32(ItemInfo.size()); _worldPacket.WriteBit(FullUpdate); _worldPacket.FlushBits(); for (GuildBankTabInfo const& tab : TabInfo) { _worldPacket << tab.TabIndex; _worldPacket.WriteBits(tab.Name.length(), 7); _worldPacket.WriteBits(tab.Icon.length(), 9); _worldPacket.FlushBits(); _worldPacket.WriteString(tab.Name); _worldPacket.WriteString(tab.Icon); } for (GuildBankItemInfo const& item : ItemInfo) { _worldPacket << item.Slot; _worldPacket << item.Count; _worldPacket << item.EnchantmentID; _worldPacket << item.Charges; _worldPacket << item.OnUseEnchantmentID; _worldPacket << item.Flags; _worldPacket << item.Item; _worldPacket.WriteBits(item.SocketEnchant.size(), 2); _worldPacket.WriteBit(item.Locked); _worldPacket.FlushBits(); for (Item::ItemGemData const& socketEnchant : item.SocketEnchant) _worldPacket << socketEnchant; } return &_worldPacket; } void WorldPackets::Guild::GuildBankSwapItems::Read() { _worldPacket >> Banker; _worldPacket >> BankTab; _worldPacket >> BankSlot; _worldPacket >> ItemID; _worldPacket >> BankTab1; _worldPacket >> BankSlot1; _worldPacket >> ItemID1; _worldPacket >> BankItemCount; _worldPacket >> ContainerSlot; _worldPacket >> ContainerItemSlot; _worldPacket >> ToSlot; _worldPacket >> StackCount; _worldPacket.ResetBitPos(); BankOnly = _worldPacket.ReadBit(); AutoStore = _worldPacket.ReadBit(); } void WorldPackets::Guild::GuildBankLogQuery::Read() { _worldPacket >> Tab; } WorldPacket const* WorldPackets::Guild::GuildBankLogQueryResults::Write() { _worldPacket << Tab; _worldPacket << uint32(Entry.size()); _worldPacket.WriteBit(WeeklyBonusMoney.is_initialized()); _worldPacket.FlushBits(); for (GuildBankLogEntry const& logEntry : Entry) { _worldPacket << logEntry.PlayerGUID; _worldPacket << logEntry.TimeOffset; _worldPacket << logEntry.EntryType; _worldPacket.WriteBit(logEntry.Money.is_initialized()); _worldPacket.WriteBit(logEntry.ItemID.is_initialized()); _worldPacket.WriteBit(logEntry.Count.is_initialized()); _worldPacket.WriteBit(logEntry.OtherTab.is_initialized()); _worldPacket.FlushBits(); if (logEntry.Money.is_initialized()) _worldPacket << *logEntry.Money; if (logEntry.ItemID.is_initialized()) _worldPacket << *logEntry.ItemID; if (logEntry.Count.is_initialized()) _worldPacket << *logEntry.Count; if (logEntry.OtherTab.is_initialized()) _worldPacket << *logEntry.OtherTab; } if (WeeklyBonusMoney) _worldPacket << *WeeklyBonusMoney; return &_worldPacket; } void WorldPackets::Guild::GuildBankTextQuery::Read() { _worldPacket >> Tab; } WorldPacket const* WorldPackets::Guild::GuildBankTextQueryResult::Write() { _worldPacket << Tab; _worldPacket.WriteBits(Text.length(), 14); _worldPacket.FlushBits(); _worldPacket.WriteString(Text); return &_worldPacket; } void WorldPackets::Guild::GuildBankSetTabText::Read() { _worldPacket >> Tab; TabText = _worldPacket.ReadString(_worldPacket.ReadBits(14)); } void WorldPackets::Guild::GuildQueryNews::Read() { _worldPacket >> GuildGUID; } ByteBuffer& operator<<(ByteBuffer& data, WorldPackets::Guild::GuildNewsEvent const& newsEvent) { data << newsEvent.Id; data.AppendPackedTime(newsEvent.CompletedDate); data << newsEvent.Type; data << newsEvent.Flags; for (uint8 i = 0; i < 2; i++) data << newsEvent.Data[i]; data << newsEvent.MemberGuid; data << uint32(newsEvent.MemberList.size()); for (ObjectGuid memberGuid : newsEvent.MemberList) data << memberGuid; data.WriteBit(newsEvent.Item.is_initialized()); data.FlushBits(); if (newsEvent.Item) data << *newsEvent.Item; // WorldPackets::Item::ItemInstance return data; } WorldPacket const* WorldPackets::Guild::GuildNews::Write() { _worldPacket << uint32(NewsEvents.size()); for (GuildNewsEvent const& newsEvent : NewsEvents) _worldPacket << newsEvent; return &_worldPacket; } void WorldPackets::Guild::GuildNewsUpdateSticky::Read() { _worldPacket >> GuildGUID; _worldPacket >> NewsID; NewsID = _worldPacket.ReadBit(); } void WorldPackets::Guild::GuildSetGuildMaster::Read() { uint32 nameLen = _worldPacket.ReadBits(9); NewMasterName = _worldPacket.ReadString(nameLen); } WorldPacket const* WorldPackets::Guild::GuildChallengeUpdate::Write() { for (int32 i = 0; i < GUILD_CHALLENGES_TYPES; ++i) _worldPacket << int32(CurrentCount[i]); for (int32 i = 0; i < GUILD_CHALLENGES_TYPES; ++i) _worldPacket << int32(MaxCount[i]); for (int32 i = 0; i < GUILD_CHALLENGES_TYPES; ++i) _worldPacket << int32(MaxLevelGold[i]); for (int32 i = 0; i < GUILD_CHALLENGES_TYPES; ++i) _worldPacket << int32(Gold[i]); return &_worldPacket; } void WorldPackets::Guild::SaveGuildEmblem::Read() { _worldPacket >> Vendor; _worldPacket >> EStyle; _worldPacket >> EColor; _worldPacket >> BStyle; _worldPacket >> BColor; _worldPacket >> Bg; } WorldPacket const* WorldPackets::Guild::PlayerSaveGuildEmblem::Write() { _worldPacket << int32(Error); return &_worldPacket; } void WorldPackets::Guild::GuildSetAchievementTracking::Read() { uint32 count; _worldPacket >> count; for (uint32 i = 0; i < count; ++i) { uint32 value; _worldPacket >> value; AchievementIDs.insert(value); } } WorldPacket const* WorldPackets::Guild::GuildNameChanged::Write() { _worldPacket << GuildGUID; _worldPacket.WriteBits(GuildName.length(), 7); _worldPacket.FlushBits(); _worldPacket.WriteString(GuildName); return &_worldPacket; }
gpl-2.0
SLAC-OCIO/slac-www
sites/all/themes/slac_www/plugins/layouts/two_col/two-col.tpl.php
1034
<?php /** * @file * Template for the 1 column panel layout. * * This template provides a three column 25%-50%-25% panel display layout. * * Variables: * - $id: An optional CSS id to use for the layout. * - $content: An array of content, each item in the array is keyed to one * panel of the layout. This layout supports the following sections: * - $content['left']: Content in the left column. * - $content['middle']: Content in the middle column. * - $content['right']: Content in the right column. */ ?> <div class="panel-display general-two-col clearfix" <?php if (!empty($css_id)) { print "id=\"$css_id\""; } ?>> <div class="panel-panel general-left"> <?php if ($content['left']): ?> <div class="inside"><?php print $content['left']; ?></div> <?php endif ?> </div> <div class="panel-panel general-right"> <?php if ($content['right']): ?> <div class="inside"><?php print $content['right']; ?></div> <?php endif ?> </div> <div class="vertical-line"></div> </div>
gpl-2.0
airtimemedia/satyr
include/strbuf.h
4211
/* strbuf.h - a string buffer Copyright (C) 2010 Red Hat, 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; 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 SATYR_STRBUF_H #define SATYR_STRBUF_H /** * @file * @brief A string buffer structure and related algorithms. */ #ifdef __cplusplus extern "C" { #endif #include <stdarg.h> #include "utils.h" /** * @brief A resizable string buffer. */ struct sr_strbuf { /** * Size of the allocated buffer. Always > 0. */ size_t alloc; /** * Length of the string, without the ending \0. */ size_t len; char *buf; }; /** * Creates and initializes a new string buffer. * @returns * It never returns NULL. The returned pointer must be released by * calling the function sr_strbuf_free(). */ struct sr_strbuf * sr_strbuf_new(); /** * Initializes all members of the strbuf structure to their default * values. No memory is released, members are simply overritten. This * is useful for initializing a strbuf structure placed on the stack. */ void sr_strbuf_init(struct sr_strbuf *strbuf); /** * Releases the memory held by the string buffer. * @param strbuf * If the strbuf is NULL, no operation is performed. */ void sr_strbuf_free(struct sr_strbuf *strbuf); /** * Releases the strbuf, but not the internal buffer. The internal * string buffer is returned. Caller is responsible to release the * returned memory using free(). */ char * sr_strbuf_free_nobuf(struct sr_strbuf *strbuf); /** * The string content is set to an empty string, erasing any previous * content and leaving its length at 0 characters. */ void sr_strbuf_clear(struct sr_strbuf *strbuf); /** * Ensures that the buffer can be extended by num characters * without dealing with malloc/realloc. */ void sr_strbuf_grow(struct sr_strbuf *strbuf, size_t num); /** * The current content of the string buffer is extended by adding a * character c at its end. */ struct sr_strbuf * sr_strbuf_append_char(struct sr_strbuf *strbuf, char c); /** * The current content of the string buffer is extended by adding a * string str at its end. */ struct sr_strbuf * sr_strbuf_append_str(struct sr_strbuf *strbuf, const char *str); /** * The current content of the string buffer is extended by inserting a * string str at its beginning. */ struct sr_strbuf * sr_strbuf_prepend_str(struct sr_strbuf *strbuf, const char *str); /** * The current content of the string buffer is extended by adding a * sequence of data formatted as the format argument specifies. */ struct sr_strbuf * sr_strbuf_append_strf(struct sr_strbuf *strbuf, const char *format, ...) __sr_printf(2, 3); /** * Same as sr_strbuf_append_strf except that va_list is used instead of * variable number of arguments. */ struct sr_strbuf * sr_strbuf_append_strfv(struct sr_strbuf *strbuf, const char *format, va_list p); /** * The current content of the string buffer is extended by inserting a * sequence of data formatted as the format argument specifies at the * buffer beginning. */ struct sr_strbuf * sr_strbuf_prepend_strf(struct sr_strbuf *strbuf, const char *format, ...) __sr_printf(2, 3); /** * Same as sr_strbuf_prepend_strf except that va_list is used instead of * variable number of arguments. */ struct sr_strbuf * sr_strbuf_prepend_strfv(struct sr_strbuf *strbuf, const char *format, va_list p); #ifdef __cplusplus } #endif #endif
gpl-2.0
pecha7x/bizon_samp
wp-content/plugins/biz-samp-tasks/modal-windows/css/header.css
741
header { background-color:#212121; top:0; box-shadow: 0 -1px 2px #111111; display:block; height:auto; left:0; position:fixed; width:100%; z-index:100; } header p { font-size:20px !important; position:relative; display:block; margin:20px 0 20px 0; font-family:tahoma; font-weight:normal; text-align:center; color:#fff; } header a.stuts,a.stuts:visited{ border:none; text-decoration:none; font-family:tahoma; color:#4280af; font-size:14px; line-height:31px; } header a.stuts:hover { color:#fffb89; } header .stuts span { font-size:22px; font-weight:bold; margin-left:5px; }
gpl-2.0
arto70/NDL-VuFind2
module/VuFind/src/VuFind/AjaxHandler/PluginManager.php
5361
<?php /** * AJAX handler plugin manager * * PHP version 7 * * Copyright (C) Villanova University 2018. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * @category VuFind * @package AJAX * @author Demian Katz <[email protected]> * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License * @link https://vufind.org/wiki/development Wiki */ namespace VuFind\AjaxHandler; /** * AJAX handler plugin manager * * @category VuFind * @package AJAX * @author Demian Katz <[email protected]> * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License * @link https://vufind.org/wiki/development Wiki */ class PluginManager extends \VuFind\ServiceManager\AbstractPluginManager { /** * Default plugin aliases. * * @var array */ protected $aliases = [ 'checkRequestIsValid' => CheckRequestIsValid::class, 'commentRecord' => CommentRecord::class, 'deleteRecordComment' => DeleteRecordComment::class, 'doiLookup' => DoiLookup::class, 'getACSuggestions' => GetACSuggestions::class, 'getFacetData' => GetFacetData::class, 'getIlsStatus' => GetIlsStatus::class, 'getItemStatuses' => GetItemStatuses::class, 'getLibraryPickupLocations' => GetLibraryPickupLocations::class, 'getRecordCommentsAsHTML' => GetRecordCommentsAsHTML::class, 'getRecordDetails' => GetRecordDetails::class, 'getRecordTags' => GetRecordTags::class, 'getRequestGroupPickupLocations' => GetRequestGroupPickupLocations::class, 'getResolverLinks' => GetResolverLinks::class, 'getSaveStatuses' => GetSaveStatuses::class, 'getSideFacets' => GetSideFacets::class, 'getUserFines' => GetUserFines::class, 'getUserHolds' => GetUserHolds::class, 'getUserILLRequests' => GetUserILLRequests::class, 'getUserStorageRetrievalRequests' => GetUserStorageRetrievalRequests::class, 'getUserTransactions' => GetUserTransactions::class, 'getVisData' => GetVisData::class, 'keepAlive' => KeepAlive::class, 'recommend' => Recommend::class, 'relaisAvailability' => RelaisAvailability::class, 'relaisInfo' => RelaisInfo::class, 'relaisOrder' => RelaisOrder::class, 'systemStatus' => SystemStatus::class, 'tagRecord' => TagRecord::class, ]; /** * Default plugin factories. * * @var array */ protected $factories = [ CheckRequestIsValid::class => AbstractIlsAndUserActionFactory::class, CommentRecord::class => CommentRecordFactory::class, DeleteRecordComment::class => DeleteRecordCommentFactory::class, DoiLookup::class => DoiLookupFactory::class, GetACSuggestions::class => GetACSuggestionsFactory::class, GetFacetData::class => GetFacetDataFactory::class, GetIlsStatus::class => GetIlsStatusFactory::class, GetItemStatuses::class => GetItemStatusesFactory::class, GetLibraryPickupLocations::class => AbstractIlsAndUserActionFactory::class, GetRecordCommentsAsHTML::class => GetRecordCommentsAsHTMLFactory::class, GetRecordDetails::class => GetRecordDetailsFactory::class, GetRecordTags::class => GetRecordTagsFactory::class, GetRequestGroupPickupLocations::class => AbstractIlsAndUserActionFactory::class, GetResolverLinks::class => GetResolverLinksFactory::class, GetSaveStatuses::class => GetSaveStatusesFactory::class, GetSideFacets::class => GetSideFacetsFactory::class, GetUserFines::class => GetUserFinesFactory::class, GetUserHolds::class => AbstractIlsAndUserActionFactory::class, GetUserILLRequests::class => AbstractIlsAndUserActionFactory::class, GetUserStorageRetrievalRequests::class => AbstractIlsAndUserActionFactory::class, GetUserTransactions::class => AbstractIlsAndUserActionFactory::class, GetVisData::class => GetVisDataFactory::class, KeepAlive::class => KeepAliveFactory::class, Recommend::class => RecommendFactory::class, RelaisAvailability::class => AbstractRelaisActionFactory::class, RelaisInfo::class => AbstractRelaisActionFactory::class, RelaisOrder::class => AbstractRelaisActionFactory::class, SystemStatus::class => SystemStatusFactory::class, TagRecord::class => TagRecordFactory::class, ]; /** * Return the name of the base class or interface that plug-ins must conform * to. * * @return string */ protected function getExpectedInterface() { return AjaxHandlerInterface::class; } }
gpl-2.0
ubuntu-zuiwanyuan/ubuntu-trusty
drivers/acpi/video.c
53622
/* * video.c - ACPI Video Driver * * Copyright (C) 2004 Luming Yu <[email protected]> * Copyright (C) 2004 Bruno Ducrot <[email protected]> * Copyright (C) 2006 Thomas Tuttle <[email protected]> * * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or (at * your option) any later version. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program; if not, write to the Free Software Foundation, Inc., * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ #include <linux/kernel.h> #include <linux/module.h> #include <linux/init.h> #include <linux/types.h> #include <linux/list.h> #include <linux/mutex.h> #include <linux/input.h> #include <linux/backlight.h> #include <linux/thermal.h> #include <linux/sort.h> #include <linux/pci.h> #include <linux/pci_ids.h> #include <linux/slab.h> #include <asm/uaccess.h> #include <linux/dmi.h> #include <acpi/acpi_bus.h> #include <acpi/acpi_drivers.h> #include <linux/suspend.h> #include <acpi/video.h> #include "internal.h" #define PREFIX "ACPI: " #define ACPI_VIDEO_BUS_NAME "Video Bus" #define ACPI_VIDEO_DEVICE_NAME "Video Device" #define ACPI_VIDEO_NOTIFY_SWITCH 0x80 #define ACPI_VIDEO_NOTIFY_PROBE 0x81 #define ACPI_VIDEO_NOTIFY_CYCLE 0x82 #define ACPI_VIDEO_NOTIFY_NEXT_OUTPUT 0x83 #define ACPI_VIDEO_NOTIFY_PREV_OUTPUT 0x84 #define ACPI_VIDEO_NOTIFY_CYCLE_BRIGHTNESS 0x85 #define ACPI_VIDEO_NOTIFY_INC_BRIGHTNESS 0x86 #define ACPI_VIDEO_NOTIFY_DEC_BRIGHTNESS 0x87 #define ACPI_VIDEO_NOTIFY_ZERO_BRIGHTNESS 0x88 #define ACPI_VIDEO_NOTIFY_DISPLAY_OFF 0x89 #define MAX_NAME_LEN 20 #define _COMPONENT ACPI_VIDEO_COMPONENT ACPI_MODULE_NAME("video"); MODULE_AUTHOR("Bruno Ducrot"); MODULE_DESCRIPTION("ACPI Video Driver"); MODULE_LICENSE("GPL"); static bool brightness_switch_enabled = 1; module_param(brightness_switch_enabled, bool, 0644); /* * By default, we don't allow duplicate ACPI video bus devices * under the same VGA controller */ static bool allow_duplicates; module_param(allow_duplicates, bool, 0644); /* * For Windows 8 systems: used to decide if video module * should skip registering backlight interface of its own. */ static int use_native_backlight_param = -1; module_param_named(use_native_backlight, use_native_backlight_param, int, 0444); static bool use_native_backlight_dmi = false; static int register_count; static struct mutex video_list_lock; static struct list_head video_bus_head; static int acpi_video_bus_add(struct acpi_device *device); static int acpi_video_bus_remove(struct acpi_device *device); static void acpi_video_bus_notify(struct acpi_device *device, u32 event); static const struct acpi_device_id video_device_ids[] = { {ACPI_VIDEO_HID, 0}, {"", 0}, }; MODULE_DEVICE_TABLE(acpi, video_device_ids); static struct acpi_driver acpi_video_bus = { .name = "video", .class = ACPI_VIDEO_CLASS, .ids = video_device_ids, .ops = { .add = acpi_video_bus_add, .remove = acpi_video_bus_remove, .notify = acpi_video_bus_notify, }, }; struct acpi_video_bus_flags { u8 multihead:1; /* can switch video heads */ u8 rom:1; /* can retrieve a video rom */ u8 post:1; /* can configure the head to */ u8 reserved:5; }; struct acpi_video_bus_cap { u8 _DOS:1; /* Enable/Disable output switching */ u8 _DOD:1; /* Enumerate all devices attached to display adapter */ u8 _ROM:1; /* Get ROM Data */ u8 _GPD:1; /* Get POST Device */ u8 _SPD:1; /* Set POST Device */ u8 _VPO:1; /* Video POST Options */ u8 reserved:2; }; struct acpi_video_device_attrib { u32 display_index:4; /* A zero-based instance of the Display */ u32 display_port_attachment:4; /* This field differentiates the display type */ u32 display_type:4; /* Describe the specific type in use */ u32 vendor_specific:4; /* Chipset Vendor Specific */ u32 bios_can_detect:1; /* BIOS can detect the device */ u32 depend_on_vga:1; /* Non-VGA output device whose power is related to the VGA device. */ u32 pipe_id:3; /* For VGA multiple-head devices. */ u32 reserved:10; /* Must be 0 */ u32 device_id_scheme:1; /* Device ID Scheme */ }; struct acpi_video_enumerated_device { union { u32 int_val; struct acpi_video_device_attrib attrib; } value; struct acpi_video_device *bind_info; }; struct acpi_video_bus { struct acpi_device *device; u8 dos_setting; struct acpi_video_enumerated_device *attached_array; u8 attached_count; struct acpi_video_bus_cap cap; struct acpi_video_bus_flags flags; struct list_head video_device_list; struct mutex device_list_lock; /* protects video_device_list */ struct list_head entry; struct input_dev *input; char phys[32]; /* for input device */ struct notifier_block pm_nb; }; struct acpi_video_device_flags { u8 crt:1; u8 lcd:1; u8 tvout:1; u8 dvi:1; u8 bios:1; u8 unknown:1; u8 notify:1; u8 reserved:1; }; struct acpi_video_device_cap { u8 _ADR:1; /* Return the unique ID */ u8 _BCL:1; /* Query list of brightness control levels supported */ u8 _BCM:1; /* Set the brightness level */ u8 _BQC:1; /* Get current brightness level */ u8 _BCQ:1; /* Some buggy BIOS uses _BCQ instead of _BQC */ u8 _DDC:1; /* Return the EDID for this device */ }; struct acpi_video_brightness_flags { u8 _BCL_no_ac_battery_levels:1; /* no AC/Battery levels in _BCL */ u8 _BCL_reversed:1; /* _BCL package is in a reversed order */ u8 _BQC_use_index:1; /* _BQC returns an index value */ }; struct acpi_video_device_brightness { int curr; int count; int *levels; struct acpi_video_brightness_flags flags; }; struct acpi_video_device { unsigned long device_id; struct acpi_video_device_flags flags; struct acpi_video_device_cap cap; struct list_head entry; struct acpi_video_bus *video; struct acpi_device *dev; struct acpi_video_device_brightness *brightness; struct backlight_device *backlight; struct thermal_cooling_device *cooling_dev; }; static const char device_decode[][30] = { "motherboard VGA device", "PCI VGA device", "AGP VGA device", "UNKNOWN", }; static void acpi_video_device_notify(acpi_handle handle, u32 event, void *data); static void acpi_video_device_rebind(struct acpi_video_bus *video); static void acpi_video_device_bind(struct acpi_video_bus *video, struct acpi_video_device *device); static int acpi_video_device_enumerate(struct acpi_video_bus *video); static int acpi_video_device_lcd_set_level(struct acpi_video_device *device, int level); static int acpi_video_device_lcd_get_level_current( struct acpi_video_device *device, unsigned long long *level, bool raw); static int acpi_video_get_next_level(struct acpi_video_device *device, u32 level_current, u32 event); static int acpi_video_switch_brightness(struct acpi_video_device *device, int event); static bool acpi_video_use_native_backlight(void) { if (use_native_backlight_param != -1) return use_native_backlight_param; else return use_native_backlight_dmi; } static bool acpi_video_verify_backlight_support(void) { if (acpi_osi_is_win8() && acpi_video_use_native_backlight() && backlight_device_registered(BACKLIGHT_RAW)) return false; return acpi_video_backlight_support(); } /* backlight device sysfs support */ static int acpi_video_get_brightness(struct backlight_device *bd) { unsigned long long cur_level; int i; struct acpi_video_device *vd = bl_get_data(bd); if (acpi_video_device_lcd_get_level_current(vd, &cur_level, false)) return -EINVAL; for (i = 2; i < vd->brightness->count; i++) { if (vd->brightness->levels[i] == cur_level) /* * The first two entries are special - see page 575 * of the ACPI spec 3.0 */ return i - 2; } return 0; } static int acpi_video_set_brightness(struct backlight_device *bd) { int request_level = bd->props.brightness + 2; struct acpi_video_device *vd = bl_get_data(bd); return acpi_video_device_lcd_set_level(vd, vd->brightness->levels[request_level]); } static const struct backlight_ops acpi_backlight_ops = { .get_brightness = acpi_video_get_brightness, .update_status = acpi_video_set_brightness, }; /* thermal cooling device callbacks */ static int video_get_max_state(struct thermal_cooling_device *cooling_dev, unsigned long *state) { struct acpi_device *device = cooling_dev->devdata; struct acpi_video_device *video = acpi_driver_data(device); *state = video->brightness->count - 3; return 0; } static int video_get_cur_state(struct thermal_cooling_device *cooling_dev, unsigned long *state) { struct acpi_device *device = cooling_dev->devdata; struct acpi_video_device *video = acpi_driver_data(device); unsigned long long level; int offset; if (acpi_video_device_lcd_get_level_current(video, &level, false)) return -EINVAL; for (offset = 2; offset < video->brightness->count; offset++) if (level == video->brightness->levels[offset]) { *state = video->brightness->count - offset - 1; return 0; } return -EINVAL; } static int video_set_cur_state(struct thermal_cooling_device *cooling_dev, unsigned long state) { struct acpi_device *device = cooling_dev->devdata; struct acpi_video_device *video = acpi_driver_data(device); int level; if (state >= video->brightness->count - 2) return -EINVAL; state = video->brightness->count - state; level = video->brightness->levels[state - 1]; return acpi_video_device_lcd_set_level(video, level); } static const struct thermal_cooling_device_ops video_cooling_ops = { .get_max_state = video_get_max_state, .get_cur_state = video_get_cur_state, .set_cur_state = video_set_cur_state, }; /* * -------------------------------------------------------------------------- * Video Management * -------------------------------------------------------------------------- */ static int acpi_video_device_lcd_query_levels(struct acpi_video_device *device, union acpi_object **levels) { int status; struct acpi_buffer buffer = { ACPI_ALLOCATE_BUFFER, NULL }; union acpi_object *obj; *levels = NULL; status = acpi_evaluate_object(device->dev->handle, "_BCL", NULL, &buffer); if (!ACPI_SUCCESS(status)) return status; obj = (union acpi_object *)buffer.pointer; if (!obj || (obj->type != ACPI_TYPE_PACKAGE)) { printk(KERN_ERR PREFIX "Invalid _BCL data\n"); status = -EFAULT; goto err; } *levels = obj; return 0; err: kfree(buffer.pointer); return status; } static int acpi_video_device_lcd_set_level(struct acpi_video_device *device, int level) { int status; int state; status = acpi_execute_simple_method(device->dev->handle, "_BCM", level); if (ACPI_FAILURE(status)) { ACPI_ERROR((AE_INFO, "Evaluating _BCM failed")); return -EIO; } device->brightness->curr = level; for (state = 2; state < device->brightness->count; state++) if (level == device->brightness->levels[state]) { if (device->backlight) device->backlight->props.brightness = state - 2; return 0; } ACPI_ERROR((AE_INFO, "Current brightness invalid")); return -EINVAL; } /* * For some buggy _BQC methods, we need to add a constant value to * the _BQC return value to get the actual current brightness level */ static int bqc_offset_aml_bug_workaround; static int __init video_set_bqc_offset(const struct dmi_system_id *d) { bqc_offset_aml_bug_workaround = 9; return 0; } static int __init video_set_use_native_backlight(const struct dmi_system_id *d) { use_native_backlight_dmi = true; return 0; } static struct dmi_system_id video_dmi_table[] __initdata = { /* * Broken _BQC workaround http://bugzilla.kernel.org/show_bug.cgi?id=13121 */ { .callback = video_set_bqc_offset, .ident = "Acer Aspire 5720", .matches = { DMI_MATCH(DMI_BOARD_VENDOR, "Acer"), DMI_MATCH(DMI_PRODUCT_NAME, "Aspire 5720"), }, }, { .callback = video_set_bqc_offset, .ident = "Acer Aspire 5710Z", .matches = { DMI_MATCH(DMI_BOARD_VENDOR, "Acer"), DMI_MATCH(DMI_PRODUCT_NAME, "Aspire 5710Z"), }, }, { .callback = video_set_bqc_offset, .ident = "eMachines E510", .matches = { DMI_MATCH(DMI_BOARD_VENDOR, "EMACHINES"), DMI_MATCH(DMI_PRODUCT_NAME, "eMachines E510"), }, }, { .callback = video_set_bqc_offset, .ident = "Acer Aspire 5315", .matches = { DMI_MATCH(DMI_BOARD_VENDOR, "Acer"), DMI_MATCH(DMI_PRODUCT_NAME, "Aspire 5315"), }, }, { .callback = video_set_bqc_offset, .ident = "Acer Aspire 7720", .matches = { DMI_MATCH(DMI_BOARD_VENDOR, "Acer"), DMI_MATCH(DMI_PRODUCT_NAME, "Aspire 7720"), }, }, { .callback = video_set_use_native_backlight, .ident = "ThinkPad T430s", .matches = { DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"), DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad T430s"), }, }, { .callback = video_set_use_native_backlight, .ident = "ThinkPad X230", .matches = { DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"), DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad X230"), }, }, { .callback = video_set_use_native_backlight, .ident = "ThinkPad X1 Carbon", .matches = { DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"), DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad X1 Carbon"), }, }, { .callback = video_set_use_native_backlight, .ident = "Lenovo Yoga 13", .matches = { DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"), DMI_MATCH(DMI_PRODUCT_VERSION, "Lenovo IdeaPad Yoga 13"), }, }, { .callback = video_set_use_native_backlight, .ident = "Dell Inspiron 7520", .matches = { DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."), DMI_MATCH(DMI_PRODUCT_VERSION, "Inspiron 7520"), }, }, { .callback = video_set_use_native_backlight, .ident = "Dell Inspiron 5547", .matches = { DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."), DMI_MATCH(DMI_PRODUCT_NAME, "Inspiron 5547"), }, }, { .callback = video_set_use_native_backlight, .ident = "Dell Inspiron 5447", .matches = { DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."), DMI_MATCH(DMI_PRODUCT_NAME, "Inspiron 5447"), }, }, { .callback = video_set_use_native_backlight, .ident = "Dell Inspiron 5721", .matches = { DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."), DMI_MATCH(DMI_PRODUCT_NAME, "Inspiron 5721"), }, }, { .callback = video_set_use_native_backlight, .ident = "Dell Inspiron 3521", .matches = { DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."), DMI_MATCH(DMI_PRODUCT_NAME, "Inspiron 3521"), }, }, { .callback = video_set_use_native_backlight, .ident = "Acer Aspire 5733Z", .matches = { DMI_MATCH(DMI_SYS_VENDOR, "Acer"), DMI_MATCH(DMI_PRODUCT_NAME, "Aspire 5733Z"), }, }, { .callback = video_set_use_native_backlight, .ident = "Acer Aspire V5-431", .matches = { DMI_MATCH(DMI_SYS_VENDOR, "Acer"), DMI_MATCH(DMI_PRODUCT_NAME, "Aspire V5-431"), }, }, { .callback = video_set_use_native_backlight, .ident = "HP ProBook 4340s", .matches = { DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"), DMI_MATCH(DMI_PRODUCT_VERSION, "HP ProBook 4340s"), }, }, { .callback = video_set_use_native_backlight, .ident = "HP ProBook 2013 models", .matches = { DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"), DMI_MATCH(DMI_PRODUCT_NAME, "HP ProBook "), DMI_MATCH(DMI_PRODUCT_NAME, " G1"), }, }, { .callback = video_set_use_native_backlight, .ident = "HP EliteBook 2013 models", .matches = { DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"), DMI_MATCH(DMI_PRODUCT_NAME, "HP EliteBook "), DMI_MATCH(DMI_PRODUCT_NAME, " G1"), }, }, { .callback = video_set_use_native_backlight, .ident = "HP ZBook 14", .matches = { DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"), DMI_MATCH(DMI_PRODUCT_NAME, "HP ZBook 14"), }, }, { .callback = video_set_use_native_backlight, .ident = "HP ZBook 15", .matches = { DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"), DMI_MATCH(DMI_PRODUCT_NAME, "HP ZBook 15"), }, }, { .callback = video_set_use_native_backlight, .ident = "HP ZBook 17", .matches = { DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"), DMI_MATCH(DMI_PRODUCT_NAME, "HP ZBook 17"), }, }, { .callback = video_set_use_native_backlight, .ident = "HP EliteBook 8780w", .matches = { DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"), DMI_MATCH(DMI_PRODUCT_NAME, "HP EliteBook 8780w"), }, }, {} }; static unsigned long long acpi_video_bqc_value_to_level(struct acpi_video_device *device, unsigned long long bqc_value) { unsigned long long level; if (device->brightness->flags._BQC_use_index) { /* * _BQC returns an index that doesn't account for * the first 2 items with special meaning, so we need * to compensate for that by offsetting ourselves */ if (device->brightness->flags._BCL_reversed) bqc_value = device->brightness->count - 3 - bqc_value; level = device->brightness->levels[bqc_value + 2]; } else { level = bqc_value; } level += bqc_offset_aml_bug_workaround; return level; } static int acpi_video_device_lcd_get_level_current(struct acpi_video_device *device, unsigned long long *level, bool raw) { acpi_status status = AE_OK; int i; if (device->cap._BQC || device->cap._BCQ) { char *buf = device->cap._BQC ? "_BQC" : "_BCQ"; status = acpi_evaluate_integer(device->dev->handle, buf, NULL, level); if (ACPI_SUCCESS(status)) { if (raw) { /* * Caller has indicated he wants the raw * value returned by _BQC, so don't furtherly * mess with the value. */ return 0; } *level = acpi_video_bqc_value_to_level(device, *level); for (i = 2; i < device->brightness->count; i++) if (device->brightness->levels[i] == *level) { device->brightness->curr = *level; return 0; } /* * BQC returned an invalid level. * Stop using it. */ ACPI_WARNING((AE_INFO, "%s returned an invalid level", buf)); device->cap._BQC = device->cap._BCQ = 0; } else { /* * Fixme: * should we return an error or ignore this failure? * dev->brightness->curr is a cached value which stores * the correct current backlight level in most cases. * ACPI video backlight still works w/ buggy _BQC. * http://bugzilla.kernel.org/show_bug.cgi?id=12233 */ ACPI_WARNING((AE_INFO, "Evaluating %s failed", buf)); device->cap._BQC = device->cap._BCQ = 0; } } *level = device->brightness->curr; return 0; } static int acpi_video_device_EDID(struct acpi_video_device *device, union acpi_object **edid, ssize_t length) { int status; struct acpi_buffer buffer = { ACPI_ALLOCATE_BUFFER, NULL }; union acpi_object *obj; union acpi_object arg0 = { ACPI_TYPE_INTEGER }; struct acpi_object_list args = { 1, &arg0 }; *edid = NULL; if (!device) return -ENODEV; if (length == 128) arg0.integer.value = 1; else if (length == 256) arg0.integer.value = 2; else return -EINVAL; status = acpi_evaluate_object(device->dev->handle, "_DDC", &args, &buffer); if (ACPI_FAILURE(status)) return -ENODEV; obj = buffer.pointer; if (obj && obj->type == ACPI_TYPE_BUFFER) *edid = obj; else { printk(KERN_ERR PREFIX "Invalid _DDC data\n"); status = -EFAULT; kfree(obj); } return status; } /* bus */ /* * Arg: * video : video bus device pointer * bios_flag : * 0. The system BIOS should NOT automatically switch(toggle) * the active display output. * 1. The system BIOS should automatically switch (toggle) the * active display output. No switch event. * 2. The _DGS value should be locked. * 3. The system BIOS should not automatically switch (toggle) the * active display output, but instead generate the display switch * event notify code. * lcd_flag : * 0. The system BIOS should automatically control the brightness level * of the LCD when the power changes from AC to DC * 1. The system BIOS should NOT automatically control the brightness * level of the LCD when the power changes from AC to DC. * Return Value: * -EINVAL wrong arg. */ static int acpi_video_bus_DOS(struct acpi_video_bus *video, int bios_flag, int lcd_flag) { acpi_status status; if (!video->cap._DOS) return 0; if (bios_flag < 0 || bios_flag > 3 || lcd_flag < 0 || lcd_flag > 1) return -EINVAL; video->dos_setting = (lcd_flag << 2) | bios_flag; status = acpi_execute_simple_method(video->device->handle, "_DOS", (lcd_flag << 2) | bios_flag); if (ACPI_FAILURE(status)) return -EIO; return 0; } /* * Simple comparison function used to sort backlight levels. */ static int acpi_video_cmp_level(const void *a, const void *b) { return *(int *)a - *(int *)b; } /* * Decides if _BQC/_BCQ for this system is usable * * We do this by changing the level first and then read out the current * brightness level, if the value does not match, find out if it is using * index. If not, clear the _BQC/_BCQ capability. */ static int acpi_video_bqc_quirk(struct acpi_video_device *device, int max_level, int current_level) { struct acpi_video_device_brightness *br = device->brightness; int result; unsigned long long level; int test_level; /* don't mess with existing known broken systems */ if (bqc_offset_aml_bug_workaround) return 0; /* * Some systems always report current brightness level as maximum * through _BQC, we need to test another value for them. */ test_level = current_level == max_level ? br->levels[3] : max_level; result = acpi_video_device_lcd_set_level(device, test_level); if (result) return result; result = acpi_video_device_lcd_get_level_current(device, &level, true); if (result) return result; if (level != test_level) { /* buggy _BQC found, need to find out if it uses index */ if (level < br->count) { if (br->flags._BCL_reversed) level = br->count - 3 - level; if (br->levels[level + 2] == test_level) br->flags._BQC_use_index = 1; } if (!br->flags._BQC_use_index) device->cap._BQC = device->cap._BCQ = 0; } return 0; } /* * Arg: * device : video output device (LCD, CRT, ..) * * Return Value: * Maximum brightness level * * Allocate and initialize device->brightness. */ static int acpi_video_init_brightness(struct acpi_video_device *device) { union acpi_object *obj = NULL; int i, max_level = 0, count = 0, level_ac_battery = 0; unsigned long long level, level_old; union acpi_object *o; struct acpi_video_device_brightness *br = NULL; int result = -EINVAL; u32 value; if (!ACPI_SUCCESS(acpi_video_device_lcd_query_levels(device, &obj))) { ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Could not query available " "LCD brightness level\n")); goto out; } if (obj->package.count < 2) goto out; br = kzalloc(sizeof(*br), GFP_KERNEL); if (!br) { printk(KERN_ERR "can't allocate memory\n"); result = -ENOMEM; goto out; } br->levels = kmalloc((obj->package.count + 2) * sizeof *(br->levels), GFP_KERNEL); if (!br->levels) { result = -ENOMEM; goto out_free; } for (i = 0; i < obj->package.count; i++) { o = (union acpi_object *)&obj->package.elements[i]; if (o->type != ACPI_TYPE_INTEGER) { printk(KERN_ERR PREFIX "Invalid data\n"); continue; } value = (u32) o->integer.value; /* Skip duplicate entries */ if (count > 2 && br->levels[count - 1] == value) continue; br->levels[count] = value; if (br->levels[count] > max_level) max_level = br->levels[count]; count++; } /* * some buggy BIOS don't export the levels * when machine is on AC/Battery in _BCL package. * In this case, the first two elements in _BCL packages * are also supported brightness levels that OS should take care of. */ for (i = 2; i < count; i++) { if (br->levels[i] == br->levels[0]) level_ac_battery++; if (br->levels[i] == br->levels[1]) level_ac_battery++; } if (level_ac_battery < 2) { level_ac_battery = 2 - level_ac_battery; br->flags._BCL_no_ac_battery_levels = 1; for (i = (count - 1 + level_ac_battery); i >= 2; i--) br->levels[i] = br->levels[i - level_ac_battery]; count += level_ac_battery; } else if (level_ac_battery > 2) ACPI_ERROR((AE_INFO, "Too many duplicates in _BCL package")); /* Check if the _BCL package is in a reversed order */ if (max_level == br->levels[2]) { br->flags._BCL_reversed = 1; sort(&br->levels[2], count - 2, sizeof(br->levels[2]), acpi_video_cmp_level, NULL); } else if (max_level != br->levels[count - 1]) ACPI_ERROR((AE_INFO, "Found unordered _BCL package")); br->count = count; device->brightness = br; /* _BQC uses INDEX while _BCL uses VALUE in some laptops */ br->curr = level = max_level; if (!device->cap._BQC) goto set_level; result = acpi_video_device_lcd_get_level_current(device, &level_old, true); if (result) goto out_free_levels; result = acpi_video_bqc_quirk(device, max_level, level_old); if (result) goto out_free_levels; /* * cap._BQC may get cleared due to _BQC is found to be broken * in acpi_video_bqc_quirk, so check again here. */ if (!device->cap._BQC) goto set_level; level = acpi_video_bqc_value_to_level(device, level_old); /* * On some buggy laptops, _BQC returns an uninitialized * value when invoked for the first time, i.e. * level_old is invalid (no matter whether it's a level * or an index). Set the backlight to max_level in this case. */ for (i = 2; i < br->count; i++) if (level == br->levels[i]) break; if (i == br->count || !level) level = max_level; set_level: result = acpi_video_device_lcd_set_level(device, level); if (result) goto out_free_levels; ACPI_DEBUG_PRINT((ACPI_DB_INFO, "found %d brightness levels\n", count - 2)); kfree(obj); return result; out_free_levels: kfree(br->levels); out_free: kfree(br); out: device->brightness = NULL; kfree(obj); return result; } /* * Arg: * device : video output device (LCD, CRT, ..) * * Return Value: * None * * Find out all required AML methods defined under the output * device. */ static void acpi_video_device_find_cap(struct acpi_video_device *device) { if (acpi_has_method(device->dev->handle, "_ADR")) device->cap._ADR = 1; if (acpi_has_method(device->dev->handle, "_BCL")) device->cap._BCL = 1; if (acpi_has_method(device->dev->handle, "_BCM")) device->cap._BCM = 1; if (acpi_has_method(device->dev->handle, "_BQC")) { device->cap._BQC = 1; } else if (acpi_has_method(device->dev->handle, "_BCQ")) { printk(KERN_WARNING FW_BUG "_BCQ is used instead of _BQC\n"); device->cap._BCQ = 1; } if (acpi_has_method(device->dev->handle, "_DDC")) device->cap._DDC = 1; } /* * Arg: * device : video output device (VGA) * * Return Value: * None * * Find out all required AML methods defined under the video bus device. */ static void acpi_video_bus_find_cap(struct acpi_video_bus *video) { if (acpi_has_method(video->device->handle, "_DOS")) video->cap._DOS = 1; if (acpi_has_method(video->device->handle, "_DOD")) video->cap._DOD = 1; if (acpi_has_method(video->device->handle, "_ROM")) video->cap._ROM = 1; if (acpi_has_method(video->device->handle, "_GPD")) video->cap._GPD = 1; if (acpi_has_method(video->device->handle, "_SPD")) video->cap._SPD = 1; if (acpi_has_method(video->device->handle, "_VPO")) video->cap._VPO = 1; } /* * Check whether the video bus device has required AML method to * support the desired features */ static int acpi_video_bus_check(struct acpi_video_bus *video) { acpi_status status = -ENOENT; struct pci_dev *dev; if (!video) return -EINVAL; dev = acpi_get_pci_dev(video->device->handle); if (!dev) return -ENODEV; pci_dev_put(dev); /* * Since there is no HID, CID and so on for VGA driver, we have * to check well known required nodes. */ /* Does this device support video switching? */ if (video->cap._DOS || video->cap._DOD) { if (!video->cap._DOS) { printk(KERN_WARNING FW_BUG "ACPI(%s) defines _DOD but not _DOS\n", acpi_device_bid(video->device)); } video->flags.multihead = 1; status = 0; } /* Does this device support retrieving a video ROM? */ if (video->cap._ROM) { video->flags.rom = 1; status = 0; } /* Does this device support configuring which video device to POST? */ if (video->cap._GPD && video->cap._SPD && video->cap._VPO) { video->flags.post = 1; status = 0; } return status; } /* * -------------------------------------------------------------------------- * Driver Interface * -------------------------------------------------------------------------- */ /* device interface */ static struct acpi_video_device_attrib * acpi_video_get_device_attr(struct acpi_video_bus *video, unsigned long device_id) { struct acpi_video_enumerated_device *ids; int i; for (i = 0; i < video->attached_count; i++) { ids = &video->attached_array[i]; if ((ids->value.int_val & 0xffff) == device_id) return &ids->value.attrib; } return NULL; } static int acpi_video_get_device_type(struct acpi_video_bus *video, unsigned long device_id) { struct acpi_video_enumerated_device *ids; int i; for (i = 0; i < video->attached_count; i++) { ids = &video->attached_array[i]; if ((ids->value.int_val & 0xffff) == device_id) return ids->value.int_val; } return 0; } static int acpi_video_bus_get_one_device(struct acpi_device *device, struct acpi_video_bus *video) { unsigned long long device_id; int status, device_type; struct acpi_video_device *data; struct acpi_video_device_attrib *attribute; status = acpi_evaluate_integer(device->handle, "_ADR", NULL, &device_id); /* Some device omits _ADR, we skip them instead of fail */ if (ACPI_FAILURE(status)) return 0; data = kzalloc(sizeof(struct acpi_video_device), GFP_KERNEL); if (!data) return -ENOMEM; strcpy(acpi_device_name(device), ACPI_VIDEO_DEVICE_NAME); strcpy(acpi_device_class(device), ACPI_VIDEO_CLASS); device->driver_data = data; data->device_id = device_id; data->video = video; data->dev = device; attribute = acpi_video_get_device_attr(video, device_id); if (attribute && attribute->device_id_scheme) { switch (attribute->display_type) { case ACPI_VIDEO_DISPLAY_CRT: data->flags.crt = 1; break; case ACPI_VIDEO_DISPLAY_TV: data->flags.tvout = 1; break; case ACPI_VIDEO_DISPLAY_DVI: data->flags.dvi = 1; break; case ACPI_VIDEO_DISPLAY_LCD: data->flags.lcd = 1; break; default: data->flags.unknown = 1; break; } if (attribute->bios_can_detect) data->flags.bios = 1; } else { /* Check for legacy IDs */ device_type = acpi_video_get_device_type(video, device_id); /* Ignore bits 16 and 18-20 */ switch (device_type & 0xffe2ffff) { case ACPI_VIDEO_DISPLAY_LEGACY_MONITOR: data->flags.crt = 1; break; case ACPI_VIDEO_DISPLAY_LEGACY_PANEL: data->flags.lcd = 1; break; case ACPI_VIDEO_DISPLAY_LEGACY_TV: data->flags.tvout = 1; break; default: data->flags.unknown = 1; } } acpi_video_device_bind(video, data); acpi_video_device_find_cap(data); mutex_lock(&video->device_list_lock); list_add_tail(&data->entry, &video->video_device_list); mutex_unlock(&video->device_list_lock); return status; } /* * Arg: * video : video bus device * * Return: * none * * Enumerate the video device list of the video bus, * bind the ids with the corresponding video devices * under the video bus. */ static void acpi_video_device_rebind(struct acpi_video_bus *video) { struct acpi_video_device *dev; mutex_lock(&video->device_list_lock); list_for_each_entry(dev, &video->video_device_list, entry) acpi_video_device_bind(video, dev); mutex_unlock(&video->device_list_lock); } /* * Arg: * video : video bus device * device : video output device under the video * bus * * Return: * none * * Bind the ids with the corresponding video devices * under the video bus. */ static void acpi_video_device_bind(struct acpi_video_bus *video, struct acpi_video_device *device) { struct acpi_video_enumerated_device *ids; int i; for (i = 0; i < video->attached_count; i++) { ids = &video->attached_array[i]; if (device->device_id == (ids->value.int_val & 0xffff)) { ids->bind_info = device; ACPI_DEBUG_PRINT((ACPI_DB_INFO, "device_bind %d\n", i)); } } } /* * Arg: * video : video bus device * * Return: * < 0 : error * * Call _DOD to enumerate all devices attached to display adapter * */ static int acpi_video_device_enumerate(struct acpi_video_bus *video) { int status; int count; int i; struct acpi_video_enumerated_device *active_list; struct acpi_buffer buffer = { ACPI_ALLOCATE_BUFFER, NULL }; union acpi_object *dod = NULL; union acpi_object *obj; status = acpi_evaluate_object(video->device->handle, "_DOD", NULL, &buffer); if (!ACPI_SUCCESS(status)) { ACPI_EXCEPTION((AE_INFO, status, "Evaluating _DOD")); return status; } dod = buffer.pointer; if (!dod || (dod->type != ACPI_TYPE_PACKAGE)) { ACPI_EXCEPTION((AE_INFO, status, "Invalid _DOD data")); status = -EFAULT; goto out; } ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Found %d video heads in _DOD\n", dod->package.count)); active_list = kcalloc(1 + dod->package.count, sizeof(struct acpi_video_enumerated_device), GFP_KERNEL); if (!active_list) { status = -ENOMEM; goto out; } count = 0; for (i = 0; i < dod->package.count; i++) { obj = &dod->package.elements[i]; if (obj->type != ACPI_TYPE_INTEGER) { printk(KERN_ERR PREFIX "Invalid _DOD data in element %d\n", i); continue; } active_list[count].value.int_val = obj->integer.value; active_list[count].bind_info = NULL; ACPI_DEBUG_PRINT((ACPI_DB_INFO, "dod element[%d] = %d\n", i, (int)obj->integer.value)); count++; } kfree(video->attached_array); video->attached_array = active_list; video->attached_count = count; out: kfree(buffer.pointer); return status; } static int acpi_video_get_next_level(struct acpi_video_device *device, u32 level_current, u32 event) { int min, max, min_above, max_below, i, l, delta = 255; max = max_below = 0; min = min_above = 255; /* Find closest level to level_current */ for (i = 2; i < device->brightness->count; i++) { l = device->brightness->levels[i]; if (abs(l - level_current) < abs(delta)) { delta = l - level_current; if (!delta) break; } } /* Ajust level_current to closest available level */ level_current += delta; for (i = 2; i < device->brightness->count; i++) { l = device->brightness->levels[i]; if (l < min) min = l; if (l > max) max = l; if (l < min_above && l > level_current) min_above = l; if (l > max_below && l < level_current) max_below = l; } switch (event) { case ACPI_VIDEO_NOTIFY_CYCLE_BRIGHTNESS: return (level_current < max) ? min_above : min; case ACPI_VIDEO_NOTIFY_INC_BRIGHTNESS: return (level_current < max) ? min_above : max; case ACPI_VIDEO_NOTIFY_DEC_BRIGHTNESS: return (level_current > min) ? max_below : min; case ACPI_VIDEO_NOTIFY_ZERO_BRIGHTNESS: case ACPI_VIDEO_NOTIFY_DISPLAY_OFF: return 0; default: return level_current; } } static int acpi_video_switch_brightness(struct acpi_video_device *device, int event) { unsigned long long level_current, level_next; int result = -EINVAL; /* no warning message if acpi_backlight=vendor or a quirk is used */ if (!acpi_video_verify_backlight_support()) return 0; if (!device->brightness) goto out; result = acpi_video_device_lcd_get_level_current(device, &level_current, false); if (result) goto out; level_next = acpi_video_get_next_level(device, level_current, event); result = acpi_video_device_lcd_set_level(device, level_next); if (!result) backlight_force_update(device->backlight, BACKLIGHT_UPDATE_HOTKEY); out: if (result) printk(KERN_ERR PREFIX "Failed to switch the brightness\n"); return result; } int acpi_video_get_edid(struct acpi_device *device, int type, int device_id, void **edid) { struct acpi_video_bus *video; struct acpi_video_device *video_device; union acpi_object *buffer = NULL; acpi_status status; int i, length; if (!device || !acpi_driver_data(device)) return -EINVAL; video = acpi_driver_data(device); for (i = 0; i < video->attached_count; i++) { video_device = video->attached_array[i].bind_info; length = 256; if (!video_device) continue; if (!video_device->cap._DDC) continue; if (type) { switch (type) { case ACPI_VIDEO_DISPLAY_CRT: if (!video_device->flags.crt) continue; break; case ACPI_VIDEO_DISPLAY_TV: if (!video_device->flags.tvout) continue; break; case ACPI_VIDEO_DISPLAY_DVI: if (!video_device->flags.dvi) continue; break; case ACPI_VIDEO_DISPLAY_LCD: if (!video_device->flags.lcd) continue; break; } } else if (video_device->device_id != device_id) { continue; } status = acpi_video_device_EDID(video_device, &buffer, length); if (ACPI_FAILURE(status) || !buffer || buffer->type != ACPI_TYPE_BUFFER) { length = 128; status = acpi_video_device_EDID(video_device, &buffer, length); if (ACPI_FAILURE(status) || !buffer || buffer->type != ACPI_TYPE_BUFFER) { continue; } } *edid = buffer->buffer.pointer; return length; } return -ENODEV; } EXPORT_SYMBOL(acpi_video_get_edid); static int acpi_video_bus_get_devices(struct acpi_video_bus *video, struct acpi_device *device) { int status = 0; struct acpi_device *dev; /* * There are systems where video module known to work fine regardless * of broken _DOD and ignoring returned value here doesn't cause * any issues later. */ acpi_video_device_enumerate(video); list_for_each_entry(dev, &device->children, node) { status = acpi_video_bus_get_one_device(dev, video); if (status) { dev_err(&dev->dev, "Can't attach device\n"); break; } } return status; } /* acpi_video interface */ /* * Win8 requires setting bit2 of _DOS to let firmware know it shouldn't * preform any automatic brightness change on receiving a notification. */ static int acpi_video_bus_start_devices(struct acpi_video_bus *video) { return acpi_video_bus_DOS(video, 0, acpi_osi_is_win8() ? 1 : 0); } static int acpi_video_bus_stop_devices(struct acpi_video_bus *video) { return acpi_video_bus_DOS(video, 0, acpi_osi_is_win8() ? 0 : 1); } static void acpi_video_bus_notify(struct acpi_device *device, u32 event) { struct acpi_video_bus *video = acpi_driver_data(device); struct input_dev *input; int keycode = 0; if (!video || !video->input) return; input = video->input; switch (event) { case ACPI_VIDEO_NOTIFY_SWITCH: /* User requested a switch, * most likely via hotkey. */ keycode = KEY_SWITCHVIDEOMODE; break; case ACPI_VIDEO_NOTIFY_PROBE: /* User plugged in or removed a video * connector. */ acpi_video_device_enumerate(video); acpi_video_device_rebind(video); keycode = KEY_SWITCHVIDEOMODE; break; case ACPI_VIDEO_NOTIFY_CYCLE: /* Cycle Display output hotkey pressed. */ keycode = KEY_SWITCHVIDEOMODE; break; case ACPI_VIDEO_NOTIFY_NEXT_OUTPUT: /* Next Display output hotkey pressed. */ keycode = KEY_VIDEO_NEXT; break; case ACPI_VIDEO_NOTIFY_PREV_OUTPUT: /* previous Display output hotkey pressed. */ keycode = KEY_VIDEO_PREV; break; default: ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Unsupported event [0x%x]\n", event)); break; } if (acpi_notifier_call_chain(device, event, 0)) /* Something vetoed the keypress. */ keycode = 0; if (keycode) { input_report_key(input, keycode, 1); input_sync(input); input_report_key(input, keycode, 0); input_sync(input); } return; } static void acpi_video_device_notify(acpi_handle handle, u32 event, void *data) { struct acpi_video_device *video_device = data; struct acpi_device *device = NULL; struct acpi_video_bus *bus; struct input_dev *input; int keycode = 0; if (!video_device) return; device = video_device->dev; bus = video_device->video; input = bus->input; switch (event) { case ACPI_VIDEO_NOTIFY_CYCLE_BRIGHTNESS: /* Cycle brightness */ if (brightness_switch_enabled) acpi_video_switch_brightness(video_device, event); keycode = KEY_BRIGHTNESS_CYCLE; break; case ACPI_VIDEO_NOTIFY_INC_BRIGHTNESS: /* Increase brightness */ if (brightness_switch_enabled) acpi_video_switch_brightness(video_device, event); keycode = KEY_BRIGHTNESSUP; break; case ACPI_VIDEO_NOTIFY_DEC_BRIGHTNESS: /* Decrease brightness */ if (brightness_switch_enabled) acpi_video_switch_brightness(video_device, event); keycode = KEY_BRIGHTNESSDOWN; break; case ACPI_VIDEO_NOTIFY_ZERO_BRIGHTNESS: /* zero brightness */ if (brightness_switch_enabled) acpi_video_switch_brightness(video_device, event); keycode = KEY_BRIGHTNESS_ZERO; break; case ACPI_VIDEO_NOTIFY_DISPLAY_OFF: /* display device off */ if (brightness_switch_enabled) acpi_video_switch_brightness(video_device, event); keycode = KEY_DISPLAY_OFF; break; default: ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Unsupported event [0x%x]\n", event)); break; } acpi_notifier_call_chain(device, event, 0); if (keycode) { input_report_key(input, keycode, 1); input_sync(input); input_report_key(input, keycode, 0); input_sync(input); } return; } static int acpi_video_resume(struct notifier_block *nb, unsigned long val, void *ign) { struct acpi_video_bus *video; struct acpi_video_device *video_device; int i; switch (val) { case PM_HIBERNATION_PREPARE: case PM_SUSPEND_PREPARE: case PM_RESTORE_PREPARE: return NOTIFY_DONE; } video = container_of(nb, struct acpi_video_bus, pm_nb); dev_info(&video->device->dev, "Restoring backlight state\n"); for (i = 0; i < video->attached_count; i++) { video_device = video->attached_array[i].bind_info; if (video_device && video_device->backlight) acpi_video_set_brightness(video_device->backlight); } return NOTIFY_OK; } static acpi_status acpi_video_bus_match(acpi_handle handle, u32 level, void *context, void **return_value) { struct acpi_device *device = context; struct acpi_device *sibling; int result; if (handle == device->handle) return AE_CTRL_TERMINATE; result = acpi_bus_get_device(handle, &sibling); if (result) return AE_OK; if (!strcmp(acpi_device_name(sibling), ACPI_VIDEO_BUS_NAME)) return AE_ALREADY_EXISTS; return AE_OK; } static void acpi_video_dev_register_backlight(struct acpi_video_device *device) { if (acpi_video_verify_backlight_support()) { struct backlight_properties props; struct pci_dev *pdev; acpi_handle acpi_parent; struct device *parent = NULL; int result; static int count; char *name; result = acpi_video_init_brightness(device); if (result) return; name = kasprintf(GFP_KERNEL, "acpi_video%d", count); if (!name) return; count++; acpi_get_parent(device->dev->handle, &acpi_parent); pdev = acpi_get_pci_dev(acpi_parent); if (pdev) { parent = &pdev->dev; pci_dev_put(pdev); } memset(&props, 0, sizeof(struct backlight_properties)); props.type = BACKLIGHT_FIRMWARE; props.max_brightness = device->brightness->count - 3; device->backlight = backlight_device_register(name, parent, device, &acpi_backlight_ops, &props); kfree(name); if (IS_ERR(device->backlight)) return; /* * Save current brightness level in case we have to restore it * before acpi_video_device_lcd_set_level() is called next time. */ device->backlight->props.brightness = acpi_video_get_brightness(device->backlight); device->cooling_dev = thermal_cooling_device_register("LCD", device->dev, &video_cooling_ops); if (IS_ERR(device->cooling_dev)) { /* * Set cooling_dev to NULL so we don't crash trying to * free it. * Also, why the hell we are returning early and * not attempt to register video output if cooling * device registration failed? * -- dtor */ device->cooling_dev = NULL; return; } dev_info(&device->dev->dev, "registered as cooling_device%d\n", device->cooling_dev->id); result = sysfs_create_link(&device->dev->dev.kobj, &device->cooling_dev->device.kobj, "thermal_cooling"); if (result) printk(KERN_ERR PREFIX "Create sysfs link\n"); result = sysfs_create_link(&device->cooling_dev->device.kobj, &device->dev->dev.kobj, "device"); if (result) printk(KERN_ERR PREFIX "Create sysfs link\n"); } } static int acpi_video_bus_register_backlight(struct acpi_video_bus *video) { struct acpi_video_device *dev; mutex_lock(&video->device_list_lock); list_for_each_entry(dev, &video->video_device_list, entry) acpi_video_dev_register_backlight(dev); mutex_unlock(&video->device_list_lock); video->pm_nb.notifier_call = acpi_video_resume; video->pm_nb.priority = 0; return register_pm_notifier(&video->pm_nb); } static void acpi_video_dev_unregister_backlight(struct acpi_video_device *device) { if (device->backlight) { backlight_device_unregister(device->backlight); device->backlight = NULL; } if (device->brightness) { kfree(device->brightness->levels); kfree(device->brightness); device->brightness = NULL; } if (device->cooling_dev) { sysfs_remove_link(&device->dev->dev.kobj, "thermal_cooling"); sysfs_remove_link(&device->cooling_dev->device.kobj, "device"); thermal_cooling_device_unregister(device->cooling_dev); device->cooling_dev = NULL; } } static int acpi_video_bus_unregister_backlight(struct acpi_video_bus *video) { struct acpi_video_device *dev; int error = unregister_pm_notifier(&video->pm_nb); mutex_lock(&video->device_list_lock); list_for_each_entry(dev, &video->video_device_list, entry) acpi_video_dev_unregister_backlight(dev); mutex_unlock(&video->device_list_lock); return error; } static void acpi_video_dev_add_notify_handler(struct acpi_video_device *device) { acpi_status status; struct acpi_device *adev = device->dev; status = acpi_install_notify_handler(adev->handle, ACPI_DEVICE_NOTIFY, acpi_video_device_notify, device); if (ACPI_FAILURE(status)) dev_err(&adev->dev, "Error installing notify handler\n"); else device->flags.notify = 1; } static int acpi_video_bus_add_notify_handler(struct acpi_video_bus *video) { struct input_dev *input; struct acpi_video_device *dev; int error; video->input = input = input_allocate_device(); if (!input) { error = -ENOMEM; goto out; } error = acpi_video_bus_start_devices(video); if (error) goto err_free_input; snprintf(video->phys, sizeof(video->phys), "%s/video/input0", acpi_device_hid(video->device)); input->name = acpi_device_name(video->device); input->phys = video->phys; input->id.bustype = BUS_HOST; input->id.product = 0x06; input->dev.parent = &video->device->dev; input->evbit[0] = BIT(EV_KEY); set_bit(KEY_SWITCHVIDEOMODE, input->keybit); set_bit(KEY_VIDEO_NEXT, input->keybit); set_bit(KEY_VIDEO_PREV, input->keybit); set_bit(KEY_BRIGHTNESS_CYCLE, input->keybit); set_bit(KEY_BRIGHTNESSUP, input->keybit); set_bit(KEY_BRIGHTNESSDOWN, input->keybit); set_bit(KEY_BRIGHTNESS_ZERO, input->keybit); set_bit(KEY_DISPLAY_OFF, input->keybit); error = input_register_device(input); if (error) goto err_stop_dev; mutex_lock(&video->device_list_lock); list_for_each_entry(dev, &video->video_device_list, entry) acpi_video_dev_add_notify_handler(dev); mutex_unlock(&video->device_list_lock); return 0; err_stop_dev: acpi_video_bus_stop_devices(video); err_free_input: input_free_device(input); video->input = NULL; out: return error; } static void acpi_video_dev_remove_notify_handler(struct acpi_video_device *dev) { if (dev->flags.notify) { acpi_remove_notify_handler(dev->dev->handle, ACPI_DEVICE_NOTIFY, acpi_video_device_notify); dev->flags.notify = 0; } } static void acpi_video_bus_remove_notify_handler(struct acpi_video_bus *video) { struct acpi_video_device *dev; mutex_lock(&video->device_list_lock); list_for_each_entry(dev, &video->video_device_list, entry) acpi_video_dev_remove_notify_handler(dev); mutex_unlock(&video->device_list_lock); acpi_video_bus_stop_devices(video); input_unregister_device(video->input); video->input = NULL; } static int acpi_video_bus_put_devices(struct acpi_video_bus *video) { struct acpi_video_device *dev, *next; mutex_lock(&video->device_list_lock); list_for_each_entry_safe(dev, next, &video->video_device_list, entry) { list_del(&dev->entry); kfree(dev); } mutex_unlock(&video->device_list_lock); return 0; } static int instance; static int acpi_video_bus_add(struct acpi_device *device) { struct acpi_video_bus *video; int error; acpi_status status; status = acpi_walk_namespace(ACPI_TYPE_DEVICE, device->parent->handle, 1, acpi_video_bus_match, NULL, device, NULL); if (status == AE_ALREADY_EXISTS) { printk(KERN_WARNING FW_BUG "Duplicate ACPI video bus devices for the" " same VGA controller, please try module " "parameter \"video.allow_duplicates=1\"" "if the current driver doesn't work.\n"); if (!allow_duplicates) return -ENODEV; } video = kzalloc(sizeof(struct acpi_video_bus), GFP_KERNEL); if (!video) return -ENOMEM; /* a hack to fix the duplicate name "VID" problem on T61 */ if (!strcmp(device->pnp.bus_id, "VID")) { if (instance) device->pnp.bus_id[3] = '0' + instance; instance++; } /* a hack to fix the duplicate name "VGA" problem on Pa 3553 */ if (!strcmp(device->pnp.bus_id, "VGA")) { if (instance) device->pnp.bus_id[3] = '0' + instance; instance++; } video->device = device; strcpy(acpi_device_name(device), ACPI_VIDEO_BUS_NAME); strcpy(acpi_device_class(device), ACPI_VIDEO_CLASS); device->driver_data = video; acpi_video_bus_find_cap(video); error = acpi_video_bus_check(video); if (error) goto err_free_video; mutex_init(&video->device_list_lock); INIT_LIST_HEAD(&video->video_device_list); error = acpi_video_bus_get_devices(video, device); if (error) goto err_put_video; printk(KERN_INFO PREFIX "%s [%s] (multi-head: %s rom: %s post: %s)\n", ACPI_VIDEO_DEVICE_NAME, acpi_device_bid(device), video->flags.multihead ? "yes" : "no", video->flags.rom ? "yes" : "no", video->flags.post ? "yes" : "no"); mutex_lock(&video_list_lock); list_add_tail(&video->entry, &video_bus_head); mutex_unlock(&video_list_lock); acpi_video_bus_register_backlight(video); acpi_video_bus_add_notify_handler(video); return 0; err_put_video: acpi_video_bus_put_devices(video); kfree(video->attached_array); err_free_video: kfree(video); device->driver_data = NULL; return error; } static int acpi_video_bus_remove(struct acpi_device *device) { struct acpi_video_bus *video = NULL; if (!device || !acpi_driver_data(device)) return -EINVAL; video = acpi_driver_data(device); acpi_video_bus_remove_notify_handler(video); acpi_video_bus_unregister_backlight(video); acpi_video_bus_put_devices(video); mutex_lock(&video_list_lock); list_del(&video->entry); mutex_unlock(&video_list_lock); kfree(video->attached_array); kfree(video); return 0; } static int __init is_i740(struct pci_dev *dev) { if (dev->device == 0x00D1) return 1; if (dev->device == 0x7000) return 1; return 0; } static int __init intel_opregion_present(void) { int opregion = 0; struct pci_dev *dev = NULL; u32 address; for_each_pci_dev(dev) { if ((dev->class >> 8) != PCI_CLASS_DISPLAY_VGA) continue; if (dev->vendor != PCI_VENDOR_ID_INTEL) continue; /* We don't want to poke around undefined i740 registers */ if (is_i740(dev)) continue; pci_read_config_dword(dev, 0xfc, &address); if (!address) continue; opregion = 1; } return opregion; } int acpi_video_register(void) { int result = 0; if (register_count) { /* * if the function of acpi_video_register is already called, * don't register the acpi_vide_bus again and return no error. */ return 0; } mutex_init(&video_list_lock); INIT_LIST_HEAD(&video_bus_head); result = acpi_bus_register_driver(&acpi_video_bus); if (result < 0) return -ENODEV; /* * When the acpi_video_bus is loaded successfully, increase * the counter reference. */ register_count = 1; return 0; } EXPORT_SYMBOL(acpi_video_register); void acpi_video_unregister(void) { if (!register_count) { /* * If the acpi video bus is already unloaded, don't * unload it again and return directly. */ return; } acpi_bus_unregister_driver(&acpi_video_bus); register_count = 0; return; } EXPORT_SYMBOL(acpi_video_unregister); /* * This is kind of nasty. Hardware using Intel chipsets may require * the video opregion code to be run first in order to initialise * state before any ACPI video calls are made. To handle this we defer * registration of the video class until the opregion code has run. */ static int __init acpi_video_init(void) { dmi_check_system(video_dmi_table); if (intel_opregion_present()) return 0; return acpi_video_register(); } static void __exit acpi_video_exit(void) { acpi_video_unregister(); return; } module_init(acpi_video_init); module_exit(acpi_video_exit);
gpl-2.0
rampageX/Pcap_DNSProxy
Source/Pcap_DNSProxy/Platform.h
24671
// This code is part of Pcap_DNSProxy // Pcap_DNSProxy, a local DNS server based on WinPcap and LibPcap // Copyright (C) 2012-2019 Chengr28 // // 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 PCAP_DNSPROXY_PLATFORM_H #define PCAP_DNSPROXY_PLATFORM_H ////////////////////////////////////////////////// // Operating system selection // /* This code is from Qt source, which in /src/corelib/global/qsystemdetection.h header file, please visit https://www.qt.io/developers. The operating system, must be one of: (PLATFORM_x) DARWIN - Any Darwin system (macOS, iOS, watchOS, tvOS) MACOS - macOS IOS - iOS WATCHOS - watchOS TVOS - tvOS MSDOS - MS-DOS and Windows OS2 - OS/2 OS2EMX - XFree86 on OS/2 (not PM) WIN32 - Win32 (Windows 2000/XP/Vista/7 and Windows Server 2003/2008) WINRT - WinRT (Windows 8 Runtime) CYGWIN - Cygwin SOLARIS - Sun Solaris HPUX - HP-UX ULTRIX - DEC Ultrix LINUX - Linux [has variants] FREEBSD - FreeBSD [has variants] NETBSD - NetBSD OPENBSD - OpenBSD BSDI - BSD/OS INTERIX - Interix IRIX - SGI Irix OSF - HP Tru64 UNIX SCO - SCO OpenServer 5 UNIXWARE - UnixWare 7, Open UNIX 8 AIX - AIX HURD - GNU Hurd DGUX - DG/UX RELIANT - Reliant UNIX DYNIX - DYNIX/ptx QNX - QNX [has variants] QNX6 - QNX RTP 6.1 LYNX - LynxOS BSD4 - Any BSD 4.4 system UNIX - Any UNIX BSD/SYSV system ANDROID - Android platform HAIKU - Haiku The following operating systems have variants: LINUX - both PLATFORM_LINUX and PLATFORM_ANDROID are defined when building for Android - only PLATFORM_LINUX is defined if building for other Linux systems FREEBSD - PLATFORM_FREEBSD is defined only when building for FreeBSD with a BSD userland - PLATFORM_FREEBSD_KERNEL is always defined on FreeBSD, even if the userland is from GNU */ #if defined(__APPLE__) && (defined(__GNUC__) || defined(__xlC__) || defined(__xlc__)) # include <TargetConditionals.h> # if defined(TARGET_OS_MAC) && TARGET_OS_MAC # define PLATFORM_DARWIN # define PLATFORM_BSD4 # ifdef __LP64__ # define PLATFORM_DARWIN64 # else # define PLATFORM_DARWIN32 # endif # if defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE # if defined(TARGET_OS_WATCH) && TARGET_OS_WATCH # define PLATFORM_WATCHOS # else # define QT_PLATFORM_UIKIT # if defined(TARGET_OS_TV) && TARGET_OS_TV # define PLATFORM_TVOS # else # // TARGET_OS_IOS is only available in newer SDKs, # // so assume any other iOS-based platform is iOS for now # define PLATFORM_IOS # endif # endif # else # // TARGET_OS_OSX is only available in newer SDKs, # // so assume any non iOS-based platform is macOS for now # define PLATFORM_MACOS # endif # else # error "Qt has not been ported to this Apple platform - see https://www.qt.io/developers" # endif #elif defined(__ANDROID__) || defined(ANDROID) # define PLATFORM_ANDROID # define PLATFORM_LINUX #elif defined(__CYGWIN__) # define PLATFORM_CYGWIN #elif !defined(SAG_COM) && (!defined(WINAPI_FAMILY) || WINAPI_FAMILY==WINAPI_FAMILY_DESKTOP_APP) && (defined(WIN64) || defined(_WIN64) || defined(__WIN64__)) # define PLATFORM_WIN32 # define PLATFORM_WIN64 #elif !defined(SAG_COM) && (defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__)) # if defined(WINAPI_FAMILY) # ifndef WINAPI_FAMILY_PC_APP # define WINAPI_FAMILY_PC_APP WINAPI_FAMILY_APP # endif # if defined(WINAPI_FAMILY_PHONE_APP) && WINAPI_FAMILY==WINAPI_FAMILY_PHONE_APP # define PLATFORM_WINPHONE # define PLATFORM_WINRT # elif WINAPI_FAMILY==WINAPI_FAMILY_PC_APP # define PLATFORM_WINRT # else # define PLATFORM_WIN32 # endif # else # define PLATFORM_WIN32 # endif #elif defined(__sun) || defined(sun) # define PLATFORM_SOLARIS #elif defined(hpux) || defined(__hpux) # define PLATFORM_HPUX #elif defined(__ultrix) || defined(ultrix) # define PLATFORM_ULTRIX #elif defined(sinix) # define PLATFORM_RELIANT #elif defined(__native_client__) # define PLATFORM_NACL #elif defined(__linux__) || defined(__linux) # define PLATFORM_LINUX #elif defined(__FreeBSD__) || defined(__DragonFly__) || defined(__FreeBSD_kernel__) # ifndef __FreeBSD_kernel__ # define PLATFORM_FREEBSD # endif # define PLATFORM_FREEBSD_KERNEL # define PLATFORM_BSD4 #elif defined(__NetBSD__) # define PLATFORM_NETBSD # define PLATFORM_BSD4 #elif defined(__OpenBSD__) # define PLATFORM_OPENBSD # define PLATFORM_BSD4 #elif defined(__bsdi__) # define PLATFORM_BSDI # define PLATFORM_BSD4 #elif defined(__INTERIX) # define PLATFORM_INTERIX # define PLATFORM_BSD4 #elif defined(__sgi) # define PLATFORM_IRIX #elif defined(__osf__) # define PLATFORM_OSF #elif defined(_AIX) # define PLATFORM_AIX #elif defined(__Lynx__) # define PLATFORM_LYNX #elif defined(__GNU__) # define PLATFORM_HURD #elif defined(__DGUX__) # define PLATFORM_DGUX #elif defined(__QNXNTO__) # define PLATFORM_QNX #elif defined(_SEQUENT_) # define PLATFORM_DYNIX #elif defined(_SCO_DS) /* SCO OpenServer 5 + GCC */ # define PLATFORM_SCO #elif defined(__USLC__) /* all SCO platforms + UDK or OUDK */ # define PLATFORM_UNIXWARE #elif defined(__svr4__) && defined(i386) /* Open UNIX 8 + GCC */ # define PLATFORM_UNIXWARE #elif defined(__INTEGRITY) # define PLATFORM_INTEGRITY #elif defined(VXWORKS) /* there is no "real" VxWorks define - this has to be set in the mkspec! */ # define PLATFORM_VXWORKS #elif defined(__HAIKU__) # define PLATFORM_HAIKU #elif defined(__MAKEDEPEND__) #else # error "Qt has not been ported to this OS - see https://www.qt-project.org/" #endif #if defined(PLATFORM_WIN32) || defined(PLATFORM_WIN64) || defined(PLATFORM_WINRT) # define PLATFORM_WIN #endif #if defined(PLATFORM_WIN) # undef PLATFORM_UNIX #elif !defined(PLATFORM_UNIX) # define PLATFORM_UNIX #endif //Compatibility synonyms #ifdef PLATFORM_DARWIN #define PLATFORM_MAC #endif #ifdef PLATFORM_DARWIN32 #define PLATFORM_MAC32 #endif #ifdef PLATFORM_DARWIN64 #define PLATFORM_MAC64 #endif #ifdef PLATFORM_MACOS #define PLATFORM_MACX #define PLATFORM_OSX #endif #ifdef PLATFORM_DARWIN # include <Availability.h> # include <AvailabilityMacros.h> # # ifdef PLATFORM_MACOS # if !defined(__MAC_OS_X_VERSION_MIN_REQUIRED) || __MAC_OS_X_VERSION_MIN_REQUIRED < __MAC_10_6 # undef __MAC_OS_X_VERSION_MIN_REQUIRED # define __MAC_OS_X_VERSION_MIN_REQUIRED __MAC_10_6 # endif # if !defined(MAC_OS_X_VERSION_MIN_REQUIRED) || MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_6 # undef MAC_OS_X_VERSION_MIN_REQUIRED # define MAC_OS_X_VERSION_MIN_REQUIRED MAC_OS_X_VERSION_10_6 # endif # endif # # // Numerical checks are preferred to named checks, but to be safe # // we define the missing version names in case Qt uses them. # # if !defined(__MAC_10_7) # define __MAC_10_7 1070 # endif # if !defined(__MAC_10_8) # define __MAC_10_8 1080 # endif # if !defined(__MAC_10_9) # define __MAC_10_9 1090 # endif # if !defined(__MAC_10_10) # define __MAC_10_10 101000 # endif # if !defined(__MAC_10_11) # define __MAC_10_11 101100 # endif # if !defined(__MAC_10_12) # define __MAC_10_12 101200 # endif # if !defined(MAC_OS_X_VERSION_10_7) # define MAC_OS_X_VERSION_10_7 1070 # endif # if !defined(MAC_OS_X_VERSION_10_8) # define MAC_OS_X_VERSION_10_8 1080 # endif # if !defined(MAC_OS_X_VERSION_10_9) # define MAC_OS_X_VERSION_10_9 1090 # endif # if !defined(MAC_OS_X_VERSION_10_10) # define MAC_OS_X_VERSION_10_10 101000 # endif # if !defined(MAC_OS_X_VERSION_10_11) # define MAC_OS_X_VERSION_10_11 101100 # endif # if !defined(MAC_OS_X_VERSION_10_12) # define MAC_OS_X_VERSION_10_12 101200 # endif # # if !defined(__IPHONE_4_3) # define __IPHONE_4_3 40300 # endif # if !defined(__IPHONE_5_0) # define __IPHONE_5_0 50000 # endif # if !defined(__IPHONE_5_1) # define __IPHONE_5_1 50100 # endif # if !defined(__IPHONE_6_0) # define __IPHONE_6_0 60000 # endif # if !defined(__IPHONE_6_1) # define __IPHONE_6_1 60100 # endif # if !defined(__IPHONE_7_0) # define __IPHONE_7_0 70000 # endif # if !defined(__IPHONE_7_1) # define __IPHONE_7_1 70100 # endif # if !defined(__IPHONE_8_0) # define __IPHONE_8_0 80000 # endif # if !defined(__IPHONE_8_1) # define __IPHONE_8_1 80100 # endif # if !defined(__IPHONE_8_2) # define __IPHONE_8_2 80200 # endif # if !defined(__IPHONE_8_3) # define __IPHONE_8_3 80300 # endif # if !defined(__IPHONE_8_4) # define __IPHONE_8_4 80400 # endif # if !defined(__IPHONE_9_0) # define __IPHONE_9_0 90000 # endif # if !defined(__IPHONE_9_1) # define __IPHONE_9_1 90100 # endif # if !defined(__IPHONE_9_2) # define __IPHONE_9_2 90200 # endif # if !defined(__IPHONE_9_3) # define __IPHONE_9_3 90300 # endif # if !defined(__IPHONE_10_0) # define __IPHONE_10_0 100000 # endif #endif #ifdef __LSB_VERSION__ # if __LSB_VERSION__ < 40 # error "This version of the Linux Standard Base is unsupported" # endif #ifndef QT_LINUXBASE # define QT_LINUXBASE #endif #endif ////////////////////////////////////////////////// // Platform check // //Pcap_DNSProxy now support FreeBSD, Linux, macOS, and Windows. #if !(defined(PLATFORM_FREEBSD) || defined(PLATFORM_LINUX) || defined(PLATFORM_MACOS) || defined(PLATFORM_WIN)) #error "This platform is unsupported." #endif ////////////////////////////////////////////////// // Base headers // //Compatible definitions(Part 1) #if (defined(PLATFORM_FREEBSD) || defined(PLATFORM_LINUX) || defined(PLATFORM_MACOS)) #define _FILE_OFFSET_BITS 64 //File offset data type size(64 bits). #endif //C Standard Library and C++ Standard Template Library/STL headers #include <algorithm> //Collection of functions especially designed to be used on ranges of elements algorithm support #include <array> //Container that encapsulates fixed size arrays support #include <atomic> //Atomic type support #include <condition_variable> //Condition variable support #include <deque> //Double-ended queue support #include <functional> //Function objects are objects specifically designed to be used with a syntax similar to that of functions support #include <list> //List container support #include <memory> //General utilities to manage dynamic memory support #include <mutex> //Facilities that allow mutual exclusion (mutex) of concurrent execution of critical sections of code, allowing to explicitly avoid data races support #include <queue> //Queue and priority_queue container adaptor support #include <random> //Random number generation facilities support #include <regex> //Regular expressions are a standardized way to express patterns to be matched against sequences of characters support #include <thread> //Thread support #include <unordered_map> //Unordered_map and unordered_multimap container support #include <unordered_set> //Unordered_set and unordered_multiset container support #if defined(PLATFORM_WIN) //LibEvent header, always enabled #include "..\\Dependency\\LibEvent\\Include_Windows\\event2\\event.h" #include "..\\Dependency\\LibEvent\\Include_Windows\\event2\\buffer.h" #include "..\\Dependency\\LibEvent\\Include_Windows\\event2\\bufferevent.h" //LibSodium header, always enabled #ifndef ENABLE_LIBSODIUM #define ENABLE_LIBSODIUM #endif #ifndef SODIUM_STATIC #define SODIUM_STATIC #endif #if defined(ENABLE_LIBSODIUM) #include "..\\Dependency\\LibSodium\\Include_Windows\\sodium.h" #endif //WinPcap header, always enabled #ifndef ENABLE_PCAP #define ENABLE_PCAP #endif #ifndef WPCAP #define WPCAP //WinPcap preprocessor definitions #endif #ifndef HAVE_REMOTE #define HAVE_REMOTE //WinPcap preprocessor definitions #endif #if defined(ENABLE_PCAP) #include "..\\Dependency\\WinPcap\\Include\\pcap.h" #endif //Windows API headers //Part 1 including files #include <direct.h> //Functions for directory handling and creation #include <winsock2.h> //WinSock 2.0+ support //Part 2 including files(MUST be including after Part 1) #include <mstcpip.h> //Microsoft-specific extensions to the core Winsock definitions. #include <mswsock.h> //Microsoft-specific extensions to the Windows Sockets API. #include <windns.h> //Windows DNS definitions and DNS API #include <ws2tcpip.h> //WinSock 2.0+ Extension for TCP/IP protocols //Part 3 including files(MUST be including after Part 2) // #include <windows.h> //Windows master header file //Part 4 including files(MUST be including after Part 3) #include <iphlpapi.h> //IP Stack for MIB-II and related functionality #include <sddl.h> //Support and conversions routines necessary for SDDL //Part 5 including files(MUST be including after Part 4) #ifndef ENABLE_TLS #define ENABLE_TLS //SSPI, always enabled #endif #if defined(ENABLE_TLS) #define SECURITY_WIN32 #include <schannel.h> //Public Definitions for SCHANNEL Security Provider #include <sspi.h> //Security Support Provider Interface #endif //Libraries linking #pragma comment(lib, "iphlpapi.lib") //Windows IP Helper, IP Stack for MIB-II and related functionality support #pragma comment(lib, "ws2_32.lib") //Windows WinSock 2.0+ support #if defined(ENABLE_TLS) #pragma comment(lib, "secur32.lib") //Security Support Provider Interface support #endif #if defined(PLATFORM_WIN64) #pragma comment(lib, "..\\Dependency\\LibEvent\\LibEvent_Core_x64.lib") #if defined(ENABLE_LIBSODIUM) #pragma comment(lib, "..\\Dependency\\LibSodium\\LibSodium_x64.lib") #endif #if defined(ENABLE_PCAP) #pragma comment(lib, "..\\Dependency\\WinPcap\\WPCAP_x64.lib") #pragma comment(lib, "..\\Dependency\\WinPcap\\Packet_x64.lib") #endif #elif defined(PLATFORM_WIN32) #pragma comment(lib, "..\\Dependency\\LibEvent\\LibEvent_Core_x86.lib") #if defined(ENABLE_LIBSODIUM) #pragma comment(lib, "..\\Dependency\\LibSodium\\LibSodium_x86.lib") #endif #if defined(ENABLE_PCAP) #pragma comment(lib, "..\\Dependency\\WinPcap\\WPCAP_x86.lib") #pragma comment(lib, "..\\Dependency\\WinPcap\\Packet_x86.lib") #endif #endif //Endian definitions #define __LITTLE_ENDIAN 1234 //Little Endian #define __BIG_ENDIAN 4321 //Big Endian #define __BYTE_ORDER __LITTLE_ENDIAN //x86 and x86-64/x64 is Little Endian. #define LITTLE_ENDIAN __LITTLE_ENDIAN #define BIG_ENDIAN __BIG_ENDIAN #define BYTE_ORDER __BYTE_ORDER //Winsock definitions #define WINSOCK_VERSION_LOW_BYTE 2 //Low byte of Winsock version #define WINSOCK_VERSION_HIGH_BYTE 2 //High byte of Winsock version //Windows compatible definitions typedef SSIZE_T ssize_t; #elif (defined(PLATFORM_FREEBSD) || defined(PLATFORM_LINUX) || defined(PLATFORM_MACOS)) #include <cerrno> //Error report support #include <climits> //Data limits support #include <csignal> //Signals support #include <cstdarg> //Variable arguments handling support #include <cstddef> //Definitions support #include <cstdint> //Integer types support #include <cstring> //Strings support #include <cwchar> //Wide characters support //Portable Operating System Interface/POSIX and Unix system header #include <fcntl.h> //Manipulate file descriptor support #include <ifaddrs.h> //Getting network interface addresses support #include <netdb.h> //Network database operations support #include <pthread.h> //Threads support #include <unistd.h> //Standard library API support #include <arpa/inet.h> //Internet operations support #include <netinet/tcp.h> //TCP protocol support #include <sys/file.h> //File descriptor support #include <sys/socket.h> //Socket support #include <sys/stat.h> //Getting information about files attributes support #include <sys/time.h> //Date and time support #include <sys/types.h> //Types support #if defined(PLATFORM_FREEBSD) #include <netinet/in.h> //Internet Protocol family support #include <sys/endian.h> //Endian support #include <sys/socket.h> //Main sockets header support #elif defined(PLATFORM_LINUX) #include <endian.h> //Endian support #elif defined(PLATFORM_MACOS) #define __LITTLE_ENDIAN 1234 //Little Endian #define __BIG_ENDIAN 4321 //Big Endian #define __BYTE_ORDER __LITTLE_ENDIAN //x86 and x86-64/x64 is Little Endian. #endif //Dependency header #if (defined(PLATFORM_FREEBSD) || defined(PLATFORM_LINUX)) //LibEvent part #include <event2/event.h> #include <event2/buffer.h> #include <event2/bufferevent.h> //LibSodium part #if defined(ENABLE_LIBSODIUM) #include <sodium.h> #endif //LibPcap part #if defined(ENABLE_PCAP) #include <pcap/pcap.h> #endif //OpenSSL part #if defined(ENABLE_TLS) #include <openssl/bio.h> #include <openssl/conf.h> #include <openssl/err.h> #include <openssl/ssl.h> #include <openssl/x509v3.h> #endif #elif defined(PLATFORM_MACOS) //LibEvent part #if defined(PLATFORM_MACOS_XCODE) #include "../Dependency/LibEvent/Include_macOS/event2/event.h" #include "../Dependency/LibEvent/Include_macOS/event2/buffer.h" #include "../Dependency/LibEvent/Include_macOS/event2/bufferevent.h" #pragma comment(lib, "../Dependency/LibEvent/LibEvent_Core_macOS.a") #else #include <event2/event.h> #include <event2/buffer.h> #include <event2/bufferevent.h> #endif //LibSodium part #if defined(PLATFORM_MACOS_XCODE) #ifndef ENABLE_LIBSODIUM #define ENABLE_LIBSODIUM #endif #ifndef SODIUM_STATIC #define SODIUM_STATIC #endif #include "../Dependency/LibSodium/Include_macOS/sodium.h" #pragma comment(lib, "../Dependency/LibSodium/LibSodium_macOS.a") #else #if defined(ENABLE_LIBSODIUM) #ifndef SODIUM_STATIC #define SODIUM_STATIC #endif #include <sodium.h> #endif #endif //LibPcap part #if defined(PLATFORM_MACOS_XCODE) #ifndef ENABLE_PCAP #define ENABLE_PCAP #endif #endif #if defined(ENABLE_PCAP) #include <pcap/pcap.h> #endif //OpenSSL part #if defined(PLATFORM_MACOS_XCODE) #ifndef ENABLE_TLS #define ENABLE_TLS #endif #include "../Dependency/OpenSSL/openssl/bio.h" #include "../Dependency/OpenSSL/openssl/conf.h" #include "../Dependency/OpenSSL/openssl/err.h" #include "../Dependency/OpenSSL/openssl/ssl.h" #include "../Dependency/OpenSSL/openssl/x509v3.h" #pragma comment(lib, "../Dependency/OpenSSL/LibCrypto_macOS.a") #pragma comment(lib, "../Dependency/OpenSSL/LibSSL_macOS.a") #else #if defined(ENABLE_TLS) #include <openssl/bio.h> #include <openssl/conf.h> #include <openssl/err.h> #include <openssl/ssl.h> #include <openssl/x509v3.h> #endif #endif #endif //Conditional define for TCP Fast Open #if defined(PLATFORM_FREEBSD) #ifndef TCP_FASTOPEN #define TCP_FASTOPEN 1025 #endif #elif defined(PLATFORM_LINUX) #ifndef _KERNEL_FASTOPEN #define _KERNEL_FASTOPEN #ifndef TCP_FASTOPEN #define TCP_FASTOPEN 23 #endif #ifndef TCP_FASTOPEN_CONNECT #define TCP_FASTOPEN_CONNECT 30 #endif #ifndef MSG_FASTOPEN #define MSG_FASTOPEN 0x20000000 #endif #endif #endif //Compatible definitions(Part 2) #ifndef INVALID_SOCKET #define INVALID_SOCKET (-1) #endif #define SOCKET_ERROR (-1) #define SD_BOTH SHUT_RDWR #define SD_RECV SHUT_RD #define SD_SEND SHUT_WR #define WSAEAFNOSUPPORT EAFNOSUPPORT #define WSAEHOSTUNREACH EHOSTUNREACH #define WSAENETUNREACH ENETUNREACH #define WSAENOTSOCK ENOTSOCK #define WSAETIMEDOUT ETIMEDOUT //Function definitions(Part 1) #define closesocket close #define fwprintf_s fwprintf #define strnlen_s strnlen #define vfwprintf_s vfwprintf #define wcsnlen_s wcsnlen #define WSAGetLastError() errno #define _set_errno(Value) errno = (Value) #define fread_s(Destination, DestinationSize, ElementSize, Count, File) fread((Destination), (ElementSize), (Count), (File)) #define memcpy_s(Destination, DestinationSize, Source, Size) memcpy((Destination), (Source), (Size)) #define memmove_s(Destination, DestinationSize, Source, Size) memmove((Destination), (Source), (Size)) #define strncpy_s(Destination, DestinationSize, Source, Size) strncpy((Destination), (Source), (Size)) #define wcsncpy_s(Destination, DestinationSize, Source, Size) wcsncpy((Destination), (Source), (Size)) #endif ////////////////////////////////////////////////// // Library version check // //LibEvent, require 2.1.8-stable and above. #define VERSION_REQUIRE_LIBEVENT 0x02010800 #if LIBEVENT_VERSION_NUMBER < VERSION_REQUIRE_LIBEVENT #error "The version of LibEvent is too old." #endif //LibSodium, require level 10 + 1 and above. #if defined(ENABLE_LIBSODIUM) #define VERSION_REQUIRE_LIBSODIUM_MAJOR 10 #define VERSION_REQUIRE_LIBSODIUM_MINOR 1 #if !(SODIUM_LIBRARY_VERSION_MAJOR >= VERSION_REQUIRE_LIBSODIUM_MAJOR && SODIUM_LIBRARY_VERSION_MINOR >= VERSION_REQUIRE_LIBSODIUM_MINOR) #error "The version of LibSodium is too old." #endif #endif //WinPcap or LibPcap #if defined(ENABLE_PCAP) #if defined(PLATFORM_WIN) //Windows: Require level 2 + 4 and above. #define VERSION_REQUIRE_PCAP_MAJOR 2 #define VERSION_REQUIRE_PCAP_MINOR 4 #if !(PCAP_VERSION_MAJOR >= VERSION_REQUIRE_PCAP_MAJOR && PCAP_VERSION_MINOR >= VERSION_REQUIRE_PCAP_MINOR) #error "The version of WinPcap is too old." #endif #elif (defined(PLATFORM_FREEBSD) || defined(PLATFORM_LINUX) || defined(PLATFORM_MACOS)) //FreeBSD, Linux and macOS: Require level 2 + 4 and above. #define VERSION_REQUIRE_PCAP_MAJOR 2 #define VERSION_REQUIRE_PCAP_MINOR 4 #if !(PCAP_VERSION_MAJOR >= VERSION_REQUIRE_PCAP_MAJOR && PCAP_VERSION_MINOR >= VERSION_REQUIRE_PCAP_MINOR) #error "The version of LibPcap is too old." #endif #endif #endif //OpenSSL, require 1.0.2 and above. #if defined(ENABLE_TLS) #if (defined(PLATFORM_FREEBSD) || defined(PLATFORM_LINUX) || defined(PLATFORM_MACOS)) #define OPENSSL_VERSION_1_0_2 0x10002000L #define OPENSSL_VERSION_1_1_0 0x10100000L #define OPENSSL_VERSION_1_1_1 0x10101000L #define VERSION_REQUIRE_OPENSSL OPENSSL_VERSION_1_0_2 #if OPENSSL_VERSION_NUMBER < VERSION_REQUIRE_OPENSSL #error "The version of OpenSSL is too old." #endif #endif #endif #endif
gpl-2.0
napalm255/makeachangewithmarie.com
wp-content/themes/goodday/framework/admin/options/cmsms-theme-options-post.php
12758
<?php /** * @package WordPress * @subpackage GoodDay * @version 1.0.0 * * Post Options Functions * Created by CMSMasters * */ $cmsms_option = cmsms_get_global_options(); $cmsms_global_blog_post_layout = (isset($cmsms_option[CMSMS_SHORTNAME . '_blog_post_layout']) && $cmsms_option[CMSMS_SHORTNAME . '_blog_post_layout'] !== '') ? $cmsms_option[CMSMS_SHORTNAME . '_blog_post_layout'] : 'r_sidebar'; $cmsms_global_bottom_sidebar = (isset($cmsms_option[CMSMS_SHORTNAME . '_bottom_sidebar']) && $cmsms_option[CMSMS_SHORTNAME . '_bottom_sidebar'] !== '') ? (($cmsms_option[CMSMS_SHORTNAME . '_bottom_sidebar'] == 1) ? 'true' : 'false') : 'true'; $cmsms_global_bottom_sidebar_layout = (isset($cmsms_option[CMSMS_SHORTNAME . '_bottom_sidebar_layout'])) ? $cmsms_option[CMSMS_SHORTNAME . '_bottom_sidebar_layout'] : '14141414'; $cmsms_global_blog_post_title = (isset($cmsms_option[CMSMS_SHORTNAME . '_blog_post_title']) && $cmsms_option[CMSMS_SHORTNAME . '_blog_post_title'] !== '') ? (($cmsms_option[CMSMS_SHORTNAME . '_blog_post_title'] == 1) ? 'true' : 'false') : 'true'; $cmsms_global_blog_post_share_box = (isset($cmsms_option[CMSMS_SHORTNAME . '_blog_post_share_box']) && $cmsms_option[CMSMS_SHORTNAME . '_blog_post_share_box'] !== '') ? (($cmsms_option[CMSMS_SHORTNAME . '_blog_post_share_box'] == 1) ? 'true' : 'false') : 'true'; $cmsms_global_blog_post_author_box = (isset($cmsms_option[CMSMS_SHORTNAME . '_blog_post_author_box']) && $cmsms_option[CMSMS_SHORTNAME . '_blog_post_author_box'] !== '') ? (($cmsms_option[CMSMS_SHORTNAME . '_blog_post_author_box'] == 1) ? 'true' : 'false') : 'true'; $cmsms_global_bg = (isset($cmsms_option[CMSMS_SHORTNAME . '_theme_layout']) && $cmsms_option[CMSMS_SHORTNAME . '_theme_layout'] === 'boxed') ? true : false; if (isset($cmsms_option[CMSMS_SHORTNAME . '_blog_more_posts_box']) && $cmsms_option[CMSMS_SHORTNAME . '_blog_more_posts_box'] !== '') { $cmsms_global_blog_more_posts_box = array(); foreach($cmsms_option[CMSMS_SHORTNAME . '_blog_more_posts_box'] as $key => $val) { if ($val == 'true') { $cmsms_global_blog_more_posts_box[] = $key; } } } else { $cmsms_global_blog_more_posts_box = array( 'related', 'popular', 'recent' ); } $cmsms_option_name = 'cmsms_post_'; $tabs_array = array(); $tabs_array['cmsms_post'] = array( 'label' => __('Post', 'cmsmasters'), 'value' => 'cmsms_post' ); $tabs_array['cmsms_layout'] = array( 'label' => __('Layout', 'cmsmasters'), 'value' => 'cmsms_layout' ); if ($cmsms_global_bg) { $tabs_array['cmsms_bg'] = array( 'label' => __('Background', 'cmsmasters'), 'value' => 'cmsms_bg' ); } $tabs_array['cmsms_heading'] = array( 'label' => __('Heading', 'cmsmasters'), 'value' => 'cmsms_heading' ); $custom_post_meta_fields = array( array( 'id' => 'cmsms_post_aside', 'type' => 'content_start', 'box' => 'true', 'hide' => 'true' ), array( 'label' => __('Aside Text', 'cmsmasters'), 'desc' => '', 'id' => $cmsms_option_name . 'aside_text', 'type' => 'textarea', 'hide' => '', 'std' => '' ), array( 'id' => 'cmsms_post_aside', 'type' => 'content_finish' ), array( 'id' => 'cmsms_post_status', 'type' => 'content_start', 'box' => 'true', 'hide' => 'true' ), array( 'label' => __('Status Text', 'cmsmasters'), 'desc' => '', 'id' => $cmsms_option_name . 'status_text', 'type' => 'textarea', 'hide' => '', 'std' => '' ), array( 'id' => 'cmsms_post_status', 'type' => 'content_finish' ), array( 'id' => 'cmsms_post_chat', 'type' => 'content_start', 'box' => 'true', 'hide' => 'true' ), array( 'label' => __('Chat Text', 'cmsmasters'), 'desc' => '', 'id' => $cmsms_option_name . 'chat_text', 'type' => 'textarea', 'hide' => '', 'std' => '' ), array( 'id' => 'cmsms_post_chat', 'type' => 'content_finish' ), array( 'id' => 'cmsms_post_quote', 'type' => 'content_start', 'box' => 'true', 'hide' => 'true' ), array( 'label' => __('Quote Text', 'cmsmasters'), 'desc' => '', 'id' => $cmsms_option_name . 'quote_text', 'type' => 'textarea', 'hide' => '', 'std' => '' ), array( 'label' => __('Quote Author', 'cmsmasters'), 'desc' => '', 'id' => $cmsms_option_name . 'quote_author', 'type' => 'text', 'hide' => '', 'std' => '' ), array( 'id' => 'cmsms_post_quote', 'type' => 'content_finish' ), array( 'id' => 'cmsms_post_link', 'type' => 'content_start', 'box' => 'true', 'hide' => 'true' ), array( 'label' => __('Link Text', 'cmsmasters'), 'desc' => '', 'id' => $cmsms_option_name . 'link_text', 'type' => 'text', 'hide' => '', 'std' => '' ), array( 'label' => __('Link Address', 'cmsmasters'), 'desc' => '', 'id' => $cmsms_option_name . 'link_address', 'type' => 'text_long', 'hide' => '', 'std' => '' ), array( 'id' => 'cmsms_post_link', 'type' => 'content_finish' ), array( 'id' => 'cmsms_post_image', 'type' => 'content_start', 'box' => 'true', 'hide' => 'true' ), array( 'label' => __('Post Image', 'cmsmasters'), 'desc' => '', 'id' => $cmsms_option_name . 'image_link', 'type' => 'image', 'hide' => '', 'cancel' => 'true', 'std' => '', 'frame' => 'select', 'multiple' => false ), array( 'id' => 'cmsms_post_image', 'type' => 'content_finish' ), array( 'id' => 'cmsms_post_gallery', 'type' => 'content_start', 'box' => 'true', 'hide' => 'true' ), array( 'label' => __('Post Gallery', 'cmsmasters'), 'desc' => '', 'id' => $cmsms_option_name . 'images', 'type' => 'images_list', 'hide' => '', 'std' => '', 'frame' => 'post', 'multiple' => true ), array( 'id' => 'cmsms_post_gallery', 'type' => 'content_finish' ), array( 'id' => 'cmsms_post_video', 'type' => 'content_start', 'box' => 'true', 'hide' => 'true' ), array( 'label' => __('Video Type', 'cmsmasters'), 'desc' => '', 'id' => $cmsms_option_name . 'video_type', 'type' => 'radio', 'hide' => '', 'std' => 'embedded', 'options' => array( 'embedded' => array( 'label' => __('Embedded (YouTube, Vimeo)', 'cmsmasters'), 'value' => 'embedded' ), 'selfhosted' => array( 'label' => __('Self-Hosted', 'cmsmasters'), 'value' => 'selfhosted' ) ) ), array( 'label' => __('Embedded Video Link', 'cmsmasters'), 'desc' => '', 'id' => $cmsms_option_name . 'video_link', 'type' => 'text_long', 'hide' => 'true', 'std' => '' ), array( 'label' => __('Self-Hosted Video Links', 'cmsmasters'), 'desc' => '', 'id' => $cmsms_option_name . 'video_links', 'type' => 'repeatable', 'hide' => 'true', 'std' => '' ), array( 'id' => 'cmsms_post_video', 'type' => 'content_finish' ), array( 'id' => 'cmsms_post_audio', 'type' => 'content_start', 'box' => 'true', 'hide' => 'true' ), array( 'label' => __('Audio Links', 'cmsmasters'), 'desc' => '', 'id' => $cmsms_option_name . 'audio_links', 'type' => 'repeatable', 'hide' => '', 'std' => '' ), array( 'id' => 'cmsms_post_audio', 'type' => 'content_finish' ), array( 'id' => 'cmsms_post_format', 'type' => 'content_start', 'box' => '' ), array( 'id' => 'cmsms_post_format', 'type' => 'content_finish' ), array( 'id' => $cmsms_option_name . 'tabs', 'type' => 'tabs', 'std' => 'cmsms_post', 'options' => $tabs_array ), array( 'id' => 'cmsms_post', 'type' => 'tab_start', 'std' => 'true' ), array( 'label' => __('Post Title', 'cmsmasters'), 'desc' => __('Show', 'cmsmasters'), 'id' => $cmsms_option_name . 'title', 'type' => 'checkbox', 'hide' => '', 'std' => $cmsms_global_blog_post_title ), array( 'label' => __('Sharing Box', 'cmsmasters'), 'desc' => __('Show', 'cmsmasters'), 'id' => $cmsms_option_name . 'sharing_box', 'type' => 'checkbox', 'hide' => '', 'std' => $cmsms_global_blog_post_share_box ), array( 'label' => __('About Author Box', 'cmsmasters'), 'desc' => __('Show', 'cmsmasters'), 'id' => $cmsms_option_name . 'author_box', 'type' => 'checkbox', 'hide' => '', 'std' => $cmsms_global_blog_post_author_box ), array( 'label' => __('More Posts Box', 'cmsmasters'), 'desc' => '', 'id' => $cmsms_option_name . 'more_posts', 'type' => 'checkbox_group', 'hide' => '', 'std' => ((isset($_GET['post']) && get_post_meta($_GET['post'], 'cmsms_heading', true)) ? '' : $cmsms_global_blog_more_posts_box), 'options' => array( 'related' => array( 'label' => 'Show Related Tab', 'value' => 'related' ), 'popular' => array( 'label' => 'Show Popular Tab', 'value' => 'popular' ), 'recent' => array( 'label' => 'Show Recent Tab', 'value' => 'recent' ) ) ), array( 'label' => __("'Read More' Buttons Text", 'cmsmasters'), 'desc' => __("Enter the 'Read More' button text that should be used in you blog shortcode", 'cmsmasters'), 'id' => $cmsms_option_name . 'read_more', 'type' => 'text', 'hide' => '', 'std' => __('Read More', 'cmsmasters') ), array( 'id' => 'cmsms_post', 'type' => 'tab_finish' ), array( 'id' => 'cmsms_layout', 'type' => 'tab_start', 'std' => '' ), array( 'label' => __('Page Color Scheme', 'cmsmasters'), 'desc' => '', 'id' => 'cmsms_page_scheme', 'type' => 'select_scheme', 'hide' => 'false', 'std' => 'default' ), array( 'label' => __('Page Layout', 'cmsmasters'), 'desc' => '', 'id' => 'cmsms_layout', 'type' => 'radio_img', 'hide' => '', 'std' => $cmsms_global_blog_post_layout, 'options' => array( 'r_sidebar' => array( 'img' => get_template_directory_uri() . '/framework/admin/inc/img/sidebar_r.jpg', 'label' => __('Right Sidebar', 'cmsmasters'), 'value' => 'r_sidebar' ), 'l_sidebar' => array( 'img' => get_template_directory_uri() . '/framework/admin/inc/img/sidebar_l.jpg', 'label' => __('Left Sidebar', 'cmsmasters'), 'value' => 'l_sidebar' ), 'fullwidth' => array( 'img' => get_template_directory_uri() . '/framework/admin/inc/img/fullwidth.jpg', 'label' => __('Full Width', 'cmsmasters'), 'value' => 'fullwidth' ) ) ), array( 'label' => __('Choose Right\Left Sidebar', 'cmsmasters'), 'desc' => '', 'id' => 'cmsms_sidebar_id', 'type' => 'select_sidebar', 'hide' => 'true', 'std' => '' ), array( 'label' => __('Bottom Sidebar', 'cmsmasters'), 'desc' => __('Show', 'cmsmasters'), 'id' => 'cmsms_bottom_sidebar', 'type' => 'checkbox', 'hide' => '', 'std' => $cmsms_global_bottom_sidebar ), array( 'label' => __('Choose Bottom Sidebar', 'cmsmasters'), 'desc' => '', 'id' => 'cmsms_bottom_sidebar_id', 'type' => 'select_sidebar', 'hide' => 'true', 'std' => '' ), array( 'label' => __('Choose Bottom Sidebar Layout', 'cmsmasters'), 'desc' => '', 'id' => 'cmsms_bottom_sidebar_layout', 'type' => 'select', 'hide' => 'true', 'std' => $cmsms_global_bottom_sidebar_layout, 'options' => array( '11' => array( 'label' => '1/1', 'value' => '11' ), '1212' => array( 'label' => '1/2 + 1/2', 'value' => '1212' ), '1323' => array( 'label' => '1/3 + 2/3', 'value' => '1323' ), '2313' => array( 'label' => '2/3 + 1/3', 'value' => '2313' ), '1434' => array( 'label' => '1/4 + 3/4', 'value' => '1434' ), '3414' => array( 'label' => '3/4 + 1/4', 'value' => '3414' ), '131313' => array( 'label' => '1/3 + 1/3 + 1/3', 'value' => '131313' ), '121414' => array( 'label' => '1/2 + 1/4 + 1/4', 'value' => '121414' ), '141214' => array( 'label' => '1/4 + 1/2 + 1/4', 'value' => '141214' ), '141412' => array( 'label' => '1/4 + 1/4 + 1/2', 'value' => '141412' ), '14141414' => array( 'label' => '1/4 + 1/4 + 1/4 + 1/4', 'value' => '14141414' ) ) ), array( 'id' => 'cmsms_layout', 'type' => 'tab_finish' ) );
gpl-2.0
claudehohl/dokuwiki-kickstart
lib/plugins/folded/lang/th/lang.php
450
<?php /** * thai language file * * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) * @author Matthias Schulte <[email protected]> */ // custom language strings for the plugin $lang['reveal'] = 'แสดง'; $lang['reveallong'] = 'แสดงเนื้อหาที่ซ่อนไว้'; $lang['hide'] = 'ซ่อน'; $lang['hidelong'] = 'ซ่อนเนื้อหา'; //Setup VIM: ex: et ts=2 :
gpl-2.0
icommstudios/localsharingtree
wp-content/plugins/easy-media-gallery/includes/dynamic-style.php
5036
<?php error_reporting(0);ini_set('display_errors', 0);header("Content-type: text/css; charset: UTF-8"); ?> <?php $parse_uri = explode( 'wp-content', $_SERVER['SCRIPT_FILENAME'] ); require_once( $parse_uri[0] . 'wp-load.php' ); //Get Plugin settings $frmcol = easy_get_option( 'easymedia_frm_col' ); $shdcol = easy_get_option( 'easymedia_shdw_col' ); $mrgnbox = easy_get_option( 'easymedia_margin_box' ); $imgborder = easy_get_option( 'easymedia_frm_border' ); $curstyle = strtolower( easy_get_option( 'easymedia_cur_style' ) ); $imgbbrdrradius = easy_get_option( 'easymedia_brdr_rds' ); $disenbor = easy_get_option( 'easymedia_disen_bor' ); $disenshadow = easy_get_option( 'easymedia_disen_sdw' ); $brdrbtm = $mrgnbox * 2; $marginhlf = $mrgnbox / 2; $theoptstl = easy_get_option( 'easymedia_frm_size' ); $globalwidth = stripslashes( $theoptstl[ 'width' ] ); $pattover = easy_get_option( 'easymedia_style_pattern' ); $overcol = easy_get_option( 'easymedia_overlay_col' ); $ttlcol = easy_get_option( 'easymedia_ttl_col' ); $thumbhov = ucfirst( easy_get_option( 'easymedia_hover_style' ) ) . '.png'; $thumbhov = plugins_url( 'css/images/' . $thumbhov . '', dirname(__FILE__) ); $thumbhovcol = easymedia_hex2rgb( easy_get_option( 'easymedia_thumb_col' ) ); $thumbhovcolopcty = easy_get_option( 'easymedia_hover_opcty' ) / 100; $thumbiconcol = easy_get_option( 'easymedia_icon_col' ); $disenico = easy_get_option( 'easymedia_disen_ticon' ); $borderrgba = easymedia_hex2rgb( easy_get_option( 'easymedia_frm_col' ) ); $borderrgbaopcty = easy_get_option( 'easymedia_thumb_border_opcty' ) / 100; // IMAGES echo '.view {margin-bottom:'.$mrgnbox.'px; margin-right:'.$marginhlf.'px; margin-left:'.$marginhlf.'px;}'; echo '.da-thumbs article.da-animate p{color:'.$ttlcol.' !important;}'; if ( easy_get_option( 'easymedia_disen_icocol' ) == '1' ) { echo 'span.link_post, span.zoom, span.zooma {background-color:'.$thumbiconcol.';}'; } if ( easy_get_option( 'easymedia_disen_hovstyle' ) == '1' ) { echo '.da-thumbs article.da-animate {cursor: '.$curstyle.';}'; } else { echo '.da-thumbs img {cursor: '.$curstyle.';}'; } ( $imgbbrdrradius != '' ) ? $addborradius = '.view,.view img,.da-thumbs,.da-thumbs article.da-animate {border-radius:'.$imgbbrdrradius.'px;}' : $addborradius = ''; echo $addborradius; ( $disenbor == 1 ) ? $addborder = '.view {border: '.$imgborder.'px solid rgba('.$borderrgba.','.$borderrgbaopcty.');}' : $addborder = ''; echo $addborder; ( $disenico == 1 ) ? $showicon = '' : $showicon = '.forspan {display: none !important;}' ; echo $showicon; ( $disenshadow == 1 ) ? $addshadow = '.view {-webkit-box-shadow: 1px 1px 3px '.$shdcol.'; -moz-box-shadow: 1px 1px 3px '.$shdcol.'; box-shadow: 1px 1px 3px '.$shdcol.';}' : $addshadow = '.view { box-shadow: none !important; -moz-box-shadow: none !important; -webkit-box-shadow: none !important;}'; echo $addshadow; // MEDIA BOX Patterns if ( $pattover != '' || $pattover != 'no_pattern' ) { echo '#mbOverlay {background: url(../css/images/patterns/'.$pattover.'); background-repeat: repeat;}'; } // Thumbnails Title Background color @since 1.2.61 echo '.da-thumbs article.da-animate p { background: rgba('.easymedia_hex2rgb( easy_get_option( 'easymedia_ttl_back_col' ) ).',0.5) !important;}'; // IE <8 Handle preg_match( '/MSIE (.*?);/', $_SERVER['HTTP_USER_AGENT'], $matches ); if ( isset($matches) ) { if ( count( $matches )>1 && $disenbor == 1 ){ $version = explode(".", $matches[1]); switch(true){ case ( $version[0] <= '8' ): echo '.view {border: 1px solid '.$shdcol.';}'; echo '.iehand {border: '.$imgborder.'px solid '.$frmcol.';}'; echo '.da-thumbs article{position: absolute; background-image:url('.$thumbhov.'); background-repeat:repeat; width: 100%; height: 100%;}'; break; case ( $version[0] > '8' ): ( $disenbor == 1 ) ? $addborder = '.view {border: '.$imgborder.'px solid rgba('.$borderrgba.','.$borderrgbaopcty.');}' : $addborder = ''; echo $addborder; echo '.da-thumbs article{position: absolute; background: rgba('.$thumbhovcol.','.$thumbhovcolopcty.'); background-repeat:repeat; width: 100%; height: 100%;}'; break; default: break; } } else if ( count( $matches )>1 && $disenbor != '1' ) { echo '.da-thumbs article{position: absolute; background-image:url('.$thumbhov.'); background-repeat:repeat; width: 100%; height: 100%;}'; } else { echo '.da-thumbs article{position: absolute; background: rgba('.$thumbhovcol.','.$thumbhovcolopcty.'); background-repeat:repeat; width: 100%; height: 100%;}'; } } // Magnify Icon if ( easy_get_option( 'easymedia_mag_icon' ) != '' && $disenico == 1 ) { echo ' span.zoom{ background-image:url(../css/images/magnify/'.easy_get_option( 'easymedia_mag_icon' ).'.png); background-repeat:no-repeat; background-position:center; }'; } ?>
gpl-2.0
ibrahimcesar/blumpa-wp
wp-content/plugins/ninja-forms/includes/admin/output-tab-metabox.php
11378
<?php function ninja_forms_output_tab_metabox($form_id = '', $slug, $metabox){ $plugin_settings = get_option( 'ninja_forms_settings' ); if($form_id != ''){ $form_row = ninja_forms_get_form_by_id($form_id); $current_settings = $form_row['data']; }else{ $form_id = ''; $current_settings = get_option("ninja_forms_settings"); } $page = $metabox['page']; $tab = $metabox['tab']; $title = $metabox['title']; if(isset($metabox['settings'])){ $settings = $metabox['settings']; }else{ $settings = ''; } if(isset($metabox['display_function'])){ $display_function = $metabox['display_function']; }else{ $display_function = ''; } if($metabox['state'] == 'closed'){ $state = 'display:none;'; }else{ $state = ''; } if( isset( $plugin_settings['metabox_state'][$page][$tab][$slug] ) ){ $state = $plugin_settings['metabox_state'][$page][$tab][$slug]; } if( isset( $metabox['display_container'] ) ){ $display_container = $metabox['display_container']; }else{ $display_container = true; } if( $display_container ){ ?> <div id="ninja_forms_metabox_<?php echo $slug;?>" class="postbox "> <span class="item-controls"> <a class="item-edit metabox-item-edit" id="edit_id" title="Edit Menu Item" href="#">Edit Menu Item</a> </span> <h3 class="hndle"><span><?php _e($title, 'ninja-forms');?></span></h3> <div class="inside" style="<?php echo $state;?>"> <table class="form-table"> <tbody> <?php } if( is_array( $settings ) AND !empty( $settings ) ){ foreach( $settings as $s ){ $value = ''; if(isset($s['name'])){ $name = $s['name']; }else{ $name = ''; } $name_array = ''; if( strpos( $name, '[') !== false ){ $name_array = str_replace( ']', '', $name ); $name_array = explode( '[', $name_array ); } if(isset($s['type'])){ $type = $s['type']; }else{ $type = ''; } if(isset($s['desc'])){ $desc = $s['desc']; }else{ $desc = ''; } if(isset($s['help_text'])){ $help_text = $s['help_text']; }else{ $help_text = ''; } if(isset($s['label'])){ $label = $s['label']; }else{ $label = ''; } if(isset($s['class'])){ $class = $s['class']; }else{ $class = ''; } if(isset($s['tr_class'])){ $tr_class = $s['tr_class']; }else{ $tr_class = ''; } if(isset($s['max_file_size'])){ $max_file_size = $s['max_file_size']; }else{ $max_file_size = ''; } if(isset($s['select_all'])){ $select_all = $s['select_all']; }else{ $select_all = false; } if(isset($s['default_value'])){ $default_value = $s['default_value']; }else{ $default_value = ''; } if( isset( $s['style'] ) ){ $style = $s['style']; }else{ $style = ''; } if(isset($s['size'])){ $size = $s['size']; }else{ $size = ''; } if( is_array( $name_array ) ){ $tmp = ''; foreach( $name_array as $n ){ if( $tmp == '' ){ if( isset( $current_settings[$n] ) ){ $tmp = $current_settings[$n]; } }else{ if( isset( $tmp[$n] ) ){ $tmp = $tmp[$n]; } } } $value = $tmp; }else{ if(isset($current_settings[$name])){ if(is_array($current_settings[$name])){ $value = ninja_forms_stripslashes_deep($current_settings[$name]); }else{ $value = stripslashes($current_settings[$name]); } }else{ $value = ''; } } if( $value == '' ){ $value = $default_value; } ?> <tr <?php if( $tr_class != '' ){ ?>class="<?php echo $tr_class;?>"<?php } ?> <?php if( $style != '' ){ ?> style="<?php echo $style;?>"<?php }?>> <?php if ( $s['type'] == 'desc' AND ! $label ) { ?> <td colspan="2"> <?php } else { ?> <th scope="row"> <label for="<?php echo $name;?>"><?php echo $label;?></label> </th> <td> <?php } ?> <?php switch( $s['type'] ){ case 'text': $value = ninja_forms_esc_html_deep( $value ); ?> <input type="text" class="code widefat <?php echo $class;?>" name="<?php echo $name;?>" id="<?php echo $name;?>" value="<?php echo $value;?>" /> <?php if( $help_text != ''){ ?> <a href="#" class="tooltip"> <img id="" class='ninja-forms-help-text' src="<?php echo NINJA_FORMS_URL;?>/images/question-ico.gif" title=""> <span> <img class="callout" src="<?php echo NINJA_FORMS_URL;?>/images/callout.gif" /> <?php echo $help_text;?> </span> </a> <?php } break; case 'select': ?> <select name="<?php echo $name;?>" id="<?php echo $name;?>" class="<?php echo $class;?>"> <?php if( is_array( $s['options']) AND !empty( $s['options'] ) ){ foreach( $s['options'] as $option ){ ?> <option value="<?php echo $option['value'];?>" <?php selected($value, $option['value']); ?>><?php echo $option['name'];?></option> <?php } } ?> </select> <?php if( $help_text != ''){ ?> <a href="#" class="tooltip"> <img id="" class='ninja-forms-help-text' src="<?php echo NINJA_FORMS_URL;?>/images/question-ico.gif" title=""> <span> <img class="callout" src="<?php echo NINJA_FORMS_URL;?>/images/callout.gif" /> <?php echo $help_text;?> </span> </a> <?php } break; case 'multi_select': if( $value == '' ){ $value = array(); } ?> <input type="hidden" name="<?php echo $name;?>" value=""> <select name="<?php echo $name;?>[]" id="<?php echo $name;?>" class="<?php echo $class;?>" multiple="multiple" size="<?php echo $size;?>"> <?php if( is_array( $s['options']) AND !empty( $s['options'] ) ){ foreach( $s['options'] as $option ){ ?> <option value="<?php echo $option['value'];?>" <?php selected( in_array( $option['value'], $value ) ); ?>><?php echo $option['name'];?></option> <?php } } ?> </select> <?php if( $help_text != ''){ ?> <a href="#" class="tooltip"> <img id="" class='ninja-forms-help-text' src="<?php echo NINJA_FORMS_URL;?>/images/question-ico.gif" title=""> <span> <img class="callout" src="<?php echo NINJA_FORMS_URL;?>/images/callout.gif" /> <?php echo $help_text;?> </span> </a> <?php } break; case 'checkbox': ?> <input type="hidden" name="<?php echo $name;?>" value="0"> <input type="checkbox" name="<?php echo $name;?>" value="1" <?php checked($value, 1);?> id="<?php echo $name;?>" class="<?php echo $class;?>"> <?php if( $help_text != ''){ ?> <a href="#" class="tooltip"> <img id="" class='ninja-forms-help-text' src="<?php echo NINJA_FORMS_URL;?>/images/question-ico.gif" title=""> <span> <img class="callout" src="<?php echo NINJA_FORMS_URL;?>/images/callout.gif" /> <?php echo $help_text;?> </span> </a> <?php } break; case 'checkbox_list': if( $value == '' ){ $value = array(); } ?> <input type="hidden" name="<?php echo $name;?>" value=""> <?php if( $select_all ){ ?> <label> <input type="checkbox" name="" value="" id="<?php echo $name;?>_select_all" class="ninja-forms-select-all" title="ninja-forms-<?php echo $name;?>"> - <?php _e( 'Select All', 'ninja-forms' );?> </label> <?php }else{ if( is_array( $s['options'] ) AND isset( $s['options'][0] ) ){ $option_name = $s['options'][0]['name']; $option_value = $s['options'][0]['value']; ?> <label> <input type="checkbox" class="ninja-forms-<?php echo $name;?> <?php echo $class;?>" name="<?php echo $name;?>[]" value="<?php echo $option_value;?>" <?php checked( in_array( $option_value, $value ) );?> id="<?php echo $option_name;?>"> <?php echo $option_name;?> </label> <?php } } ?> <?php if( is_array( $s['options'] ) AND !empty( $s['options'] ) ){ $x = 0; foreach( $s['options'] as $option ){ if( ( !$select_all AND $x > 0 ) OR $select_all ){ $option_name = $option['name']; $option_value = $option['value']; ?> <label> <input type="checkbox" class="ninja-forms-<?php echo $name;?> <?php echo $class;?>" name="<?php echo $name;?>[]" value="<?php echo $option_value;?>" <?php checked( in_array( $option_value, $value ) );?> id="<?php echo $option_name;?>"> <?php echo $option_name;?> </label> <?php } $x++; } } break; case 'radio': if( is_array( $s['options'] ) AND !empty( $s['options'] ) ){ $x = 0; ?> <?php foreach($s['options'] as $option){ ?> <input type="radio" name="<?php echo $name;?>" value="<?php echo $option['value'];?>" id="<?php echo $name."_".$x;?>" <?php checked($value, $option['value']);?> class="<?php echo $class;?>"> <label for="<?php echo $name."_".$x;?>"><?php echo $option['name'];?></label> <?php if( $help_text != ''){ ?> <a href="#" class="tooltip"> <img id="" class='ninja-forms-help-text' src="<?php echo NINJA_FORMS_URL;?>/images/question-ico.gif" title=""> <span> <img class="callout" src="<?php echo NINJA_FORMS_URL;?>/images/callout.gif" /> <?php echo $help_text;?> </span> </a> <?php } ?> <br /> <?php $x++; } } break; case 'textarea': $value = ninja_forms_esc_html_deep( $value ); ?> <textarea name="<?php echo $name;?>" id="<?php echo $name;?>" class="<?php echo $class;?>"><?php echo $value;?></textarea> <?php break; case 'rte': $args = apply_filters( 'ninja_forms_admin_metabox_rte', array() ); wp_editor( $value, $name, $args ); break; case 'file': ?> <input type="hidden" name="MAX_FILE_SIZE" value="<?php echo $max_file_size;?>" /> <input type="file" name="<?php echo $name;?>" id="<?php echo $name;?>" class="<?php echo $class;?>"> <?php break; case 'desc': echo $desc; break; case 'hidden': ?> <input type="hidden" name="<?php echo $name;?>" id="<?php echo $name;?>" value="<?php echo $value;?>"> <?php break; case 'submit': ?> <input type="submit" name="<?php echo $name;?>" class="<?php echo $class; ?>" value="<?php echo $label;?>"> <?php break; default: if( isset( $s['display_function'] ) ){ $s_display_function = $s['display_function']; if( $s_display_function != '' ){ $arguments['form_id'] = $form_id; $arguments['data'] = $current_settings; call_user_func_array( $s_display_function, $arguments ); } } break; } if( $desc != '' AND $s['type'] != 'desc' ){ ?> <p class="description"> <?php echo $desc;?> </p> <?php } echo '</td></tr>'; } } if( $display_function != '' ){ if( $form_id != '' ){ $arguments['form_id'] = $form_id; } $arguments['metabox'] = $metabox; call_user_func_array( $display_function, $arguments ); } if( $display_container ){ ?> </tbody> </table> </div> </div> <?php } }
gpl-2.0
tennc/WhatWeb
plugins/SegPub.rb
1182
## # This file is part of WhatWeb and may be subject to # redistribution and commercial restrictions. Please see the WhatWeb # web site for more information on licensing and terms of use. # http://www.morningstarsecurity.com/research/whatweb ## # Version 0.2 # 2011-03-06 # # Updated OS detection ## Plugin.define "SegPub" do author "Brendan Coles <[email protected]>" # 2011-02-19 version "0.2" description "SegPub, a hosting solutions provider based in Sydney, Australia - Homepage: http://segpub.net/" # ShodanHQ resuls as at 2011-02-19 # # 458 for Server SegPache # 299 for X-Powered-By SegPub # 273 for X-Powered-By SegPub Server SegPache # 4 for X-Powered-By SegPod # Examples # examples %w| 65.61.176.66 65.61.176.118 66.216.83.164 66.216.83.170 66.216.93.163 66.216.83.165 66.216.103.206 66.216.93.188 66.216.93.186 66.216.103.216 | # Passive # def passive m=[] # Server: SegPache m << { :os=>"FreeBSD7" } if @headers['server'] =~ /SegPache/ # X-Powered-By: SegPub m << { :os=>"FreeBSD7" } if @headers['x-powered-by'] =~ /SegPub/ # X-Powered-By: SegPod m << { :os=>"FreeBSD7" } if @headers['x-powered-by'] =~ /SegPod/ # Return passive matches m end end
gpl-2.0
gaudenz/pentabarf-dc13
sql/tables/event_role_state_localized.sql
652
CREATE TABLE base.event_role_state_localized ( event_role TEXT NOT NULL, event_role_state TEXT NOT NULL, translated TEXT NOT NULL, name TEXT NOT NULL ); CREATE TABLE event_role_state_localized ( FOREIGN KEY (event_role,event_role_state) REFERENCES event_role_state (event_role,event_role_state) ON UPDATE CASCADE ON DELETE CASCADE, FOREIGN KEY (translated) REFERENCES language (language) ON UPDATE CASCADE ON DELETE CASCADE, PRIMARY KEY (event_role, event_role_state, translated) ) INHERITS( base.event_role_state_localized ); CREATE TABLE log.event_role_state_localized ( ) INHERITS( base.logging, base.event_role_state_localized );
gpl-2.0
bramalingam/bioformats
components/ome-jxr/src/ome/jxr/image/package.html
1076
<!-- #%L OME JPEG XR: OME library for reading the JPEG XR file format. %% Copyright (C) 2013 - 2016 Open Microscopy Environment: - Board of Regents of the University of Wisconsin-Madison - Glencoe Software, Inc. - University of Dundee %% 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, see <http://www.gnu.org/licenses/gpl-2.0.html>. #L% --> <html><body> Enums and classes used to model the image elements that are located in the codestream (e.g. image plane, plane component). </body></html>
gpl-2.0
alhitary/ajax-shoutbox-ext
language/fr/info_acp_ajaxshoutbox.php
1648
<?php /** * * Ajax Shoutbox extension for the phpBB Forum Software package. * @translated into French by Psykofloyd & Galixte (http://www.galixte.com) * * @copyright (c) 2014 Paul Sohier <http://www.ajax-shoutbox.com> * @license GNU General Public License, version 2 (GPL-2.0) * */ /** * DO NOT CHANGE */ if (!defined('IN_PHPBB')) { exit; } if (empty($lang) || !is_array($lang)) { $lang = array(); } // DEVELOPERS PLEASE NOTE // // All language files should use UTF-8 as their encoding and the files must not contain a BOM. // // Placeholders can now contain order information, e.g. instead of // 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows // translators to re-order the output of data while ensuring it remains correct // // You do not need this where single placeholders are used, e.g. 'Message %d' is fine // equally where a string contains only two placeholders which are used to wrap text // in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine // // Some characters you may want to copy&paste: // ’ « » “ ” … // $lang = array_merge( $lang, array( 'LOG_AJAX_SHOUTBOX_ERROR' => '<strong>Une erreur s’est produite durant l’envoi de votre message au serveur.</strong>', 'LOG_AJAX_SHOUTBOX_PRUNED' => '<strong>La shoutbox a été nettoyée et %d de ses messages ont été supprimés.</strong>', 'LOG_AJAX_SHOUTBOX_CONFIG_SETTINGS' => '<strong>Les paramètres de la shoutbox Ajax ont été mis à jour.</strong>', 'ACP_AJAX_SHOUTBOX' => 'Shoutbox Ajax', 'ACP_AJAX_SHOUTBOX_SETTINGS' => 'Paramètres de la shoutbox', ) );
gpl-2.0
zy73122/table2form
tools/fckeditor/editor/plugins/Media/js/fck_media_inc.js
7657
/* * Media Plugin for FCKeditor 2.5 SVN * Copyright (C) 2007 Riceball LEE ([email protected]) * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * http://www.gnu.org/licenses/gpl.html * * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") * http://www.gnu.org/licenses/lgpl.html * * - Mozilla Public License Version 1.1 or later (the "MPL") * http://www.mozilla.org/MPL/MPL-1.1.html * * == END LICENSE == * * Scripts related to the Media dialog window (see fck_media.html). */ var cWindowMediaPlayer = 0 , cRealMediaPlayer = 1 , cQuickTimePlayer = 2 , cFlashPlayer = 3 , cShockwavePlayer = 4 , cDefaultMediaPlayer = cWindowMediaPlayer ; var cFckMediaElementName = 'fckmedia'; //embed | object | fckmedia var cMediaTypeAttrName = 'mediatype'; //lowerCase only!! var cWMp6Compatible = false; //const cDefaultMediaPlayer = 0; //!!!DO NOT Use the constant! the IE do not support const! var cMediaPlayerTypes = ['application/x-mplayer2', 'audio/x-pn-realaudio-plugin', 'video/quicktime', 'application/x-shockwave-flash', 'application/x-director'] , cMediaPlayerClassId = [cWMp6Compatible? 'clsid:05589FA1-C356-11CE-BF01-00AA0055595A' : 'clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6', 'clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA' , 'clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B', 'clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' , 'clsid:166B1BCA-3F9C-11CF-8075-444553540000' ] , cMediaPlayerCodebase = ['http://microsoft.com/windows/mediaplayer/en/download/', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab' , 'http://www.apple.com/quicktime/download/', 'http://www.macromedia.com/go/getflashplayer', 'http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab' ] ; var cFCKMediaObjectAttrs = {width:1, height:1, align:1, id:1, name:1, 'class':1, className:1, style:1, title:1}; //the 'class' is keyword in IE!! //there are not object params in it. cFCKMediaSkipParams = {pluginspage:1, type:1}; cFCKMediaParamPrefix = 'MediaParam_'; var oWindowMediaPlayer = {id: cWindowMediaPlayer, type: cMediaPlayerTypes[cWindowMediaPlayer], ClsId: cMediaPlayerClassId[cWindowMediaPlayer], Codebase: cMediaPlayerCodebase[cWindowMediaPlayer] , Params: {autostart:true, enabled:true, enablecontextmenu:true, fullscreen:false, invokeurls:true, mute:false , stretchtofit:false, windowlessvideo:false, balance:'', baseurl:'', captioningid:'', currentmarker:'' , currentposition:'', defaultframe:'', playcount:'', rate:'', uimode:'', volume:'' } }; oRealMediaPlayer = {id: cRealMediaPlayer, type: cMediaPlayerTypes[cRealMediaPlayer], ClsId: cMediaPlayerClassId[cRealMediaPlayer], Codebase: cMediaPlayerCodebase[cRealMediaPlayer] , Params: {autostart:true, loop:false, autogotourl:true, center:false, imagestatus:true, maintainaspect:false , nojava:false, prefetch:true, shuffle:false, console:'', controls:'', numloop:'', scriptcallbacks:'' } }; oQuickTimePlayer = {id: cQuickTimePlayer, type: cMediaPlayerTypes[cQuickTimePlayer], ClsId: cMediaPlayerClassId[cQuickTimePlayer], Codebase: cMediaPlayerCodebase[cQuickTimePlayer] , Params: {autoplay:true, loop:false, cache:false, controller:true, correction:['none', 'full'], enablejavascript:false , kioskmode:false, autohref:false, playeveryframe:false, targetcache:false, scale:'', starttime:'', endtime:'', target:'', qtsrcchokespeed:'' , volume:'', qtsrc:'' } }; oFlashPlayer = {id: cFlashPlayer, type: cMediaPlayerTypes[cFlashPlayer], ClsId: cMediaPlayerClassId[cFlashPlayer], Codebase: cMediaPlayerCodebase[cFlashPlayer] , Params: {play:true, loop:false, menu:true, swliveconnect:true, quality:'', scale:['showall','noborder','exactfit'], salign:'', wmode:'', base:'' , flashvars:'' } }; oShockwavePlayer = {id: cShockwavePlayer, type: cMediaPlayerTypes[cShockwavePlayer], ClsId: cMediaPlayerClassId[cShockwavePlayer], Codebase: cMediaPlayerCodebase[cShockwavePlayer] , Params: {autostart:true, sound:true, progress:false, swliveconnect:false, swvolume:'', swstretchstyle:'', swstretchhalign:'', swstretchvalign:'' } }; var oFCKMediaPlayers = [oWindowMediaPlayer, oRealMediaPlayer, oQuickTimePlayer, oFlashPlayer, oShockwavePlayer]; String.prototype.trim = function() { return this.replace(/^\s+|\s+$/g,""); } String.prototype.ltrim = function() { return this.replace(/^\s+/,""); } String.prototype.rtrim = function() { return this.replace(/\s+$/,""); } function debugListMember(o) { var s = '\n'; if (typeof(o) == 'object') s +=o.toSource(); else s+= o; return s; } function GetMediaPlayerObject(aMediaType) { for (i = 0; i < cMediaPlayerTypes.length; i++ ) if (aMediaType.toLowerCase() == cMediaPlayerTypes[i]) return oFCKMediaPlayers[i]; return oFCKMediaPlayers[cDefaultMediaPlayer]; } function GetMediaPlayerTypeId(aMediaType) { for (i = 0; i < cMediaPlayerTypes.length; i++ ) if (aMediaType.toLowerCase() == cMediaPlayerTypes[i]) return i; return cDefaultMediaPlayer; } function isInt(aStr) { var i = parseInt(aStr); if (isNaN(i)) return false; i = i.toString(); return (i == aStr); } function DequotedStr(aStr) { aStr = aStr.trim(); //aStr.replace(/^(['"])(.*?)(\1)$/g, '$2'); if (aStr.length > 2) { if (aStr.charAt(0) == '"' && aStr.charAt(aStr.length-1) == '"' ) aStr = aStr.substring(1,aStr.length-1); else if (aStrcharAt(0) == '\'' && aStr.charAt(aStr.length-1) == '\'' ) aStr = aStr.substring(1,aStr.length-1); } //alert(aStr+ ': dd:'+aStr.charAt(0)+ aStr.charAt(aStr.length-1)); return aStr; } function WrapObjectToMedia(html, aMediaElementName) { //check media first function _ConvertMedia( m, params ) { //split params to array m = params; var params = params.match(/[\s]*(.+?)=['"](.*?)['"][\s]*/gi); var vObjectAttrs = ''; var Result = ''; var vParamName, vParamValue; var vIsMedia = false; for (var i = 0; i < params.length; i++) { vPos = params[i].indexOf('='); vParamName = params[i].substring(0, vPos).trim(); vParamName = vParamName.toLowerCase(); vParamValue = params[i].substring(vPos+1); vParamValue = DequotedStr(vParamValue); if (vParamName == cMediaTypeAttrName) { //alert(vParamName+':'+vParamValue); if (isInt(vParamValue)) { vIsMedia = true; vObjectAttrs += ' '+ cMediaTypeAttrName + '="' + vParamValue + '"'; vObjectAttrs += ' classid="' + oFCKMediaPlayers[vParamValue].ClsId + '"'; vObjectAttrs += ' codebase="' + oFCKMediaPlayers[vParamValue].Codebase + '"'; }else { break; } } else if (cFCKMediaObjectAttrs[vParamName]) { vObjectAttrs += ' ' + vParamName + '="' + vParamValue + '"'; } else if (!cFCKMediaSkipParams[vParamName]) { Result += '<param name="' + vParamName + '" value="' + vParamValue + '"/>'; } } //for //wrap the <object> tag to <embed> if (vIsMedia) { Result = '<object' + vObjectAttrs + '>' + Result + '<embed' + m + '></embed></object>'; //alert(Result); return Result; } } if (aMediaElementName == '') aMediaElementName = cFckMediaElementName; var regexMedia = new RegExp( '<'+aMediaElementName+'(.+?)><\/'+aMediaElementName+'>', 'gi' ); //var regexMedia = /<fckMedia\s+(.+?)><\/fckMedia>/gi; //alert('b:'+html); return html.replace( regexMedia, _ConvertMedia ) ; }
gpl-2.0
bbelos/rk3188-kernel
sound/soc/rk29/rk29_wm8904.c
9643
/* * rk29_WM8904.c -- SoC audio for rockchip * * Driver for rockchip WM8904 audio * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2 of the License, or (at your * option) any later version. * * */ #include <linux/module.h> #include <linux/device.h> #include <sound/core.h> #include <sound/pcm.h> #include <sound/soc.h> #include <sound/soc-dapm.h> #include <asm/io.h> #include <mach/hardware.h> #include <mach/gpio.h> #include "../codecs/wm8904.h" #include "rk29_pcm.h" #include "rk29_i2s.h" #include <linux/clk.h> #if 0 #define DBG(x...) printk(KERN_INFO x) #else #define DBG(x...) #endif static int rk29_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params) { struct snd_soc_pcm_runtime *rtd = substream->private_data; #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 37)) struct snd_soc_dai *codec_dai = rtd->codec_dai; struct snd_soc_dai *cpu_dai = rtd->cpu_dai; #else struct snd_soc_dai *codec_dai = rtd->dai->codec_dai; struct snd_soc_dai *cpu_dai = rtd->dai->cpu_dai; #endif unsigned int pll_out = 0; int div_bclk,div_mclk; int ret; struct clk *general_pll; DBG("Enter::%s----%d\n",__FUNCTION__,__LINE__); /*by Vincent Hsiung for EQ Vol Change*/ #define HW_PARAMS_FLAG_EQVOL_ON 0x21 #define HW_PARAMS_FLAG_EQVOL_OFF 0x22 if ((params->flags == HW_PARAMS_FLAG_EQVOL_ON)||(params->flags == HW_PARAMS_FLAG_EQVOL_OFF)) { #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 37)) ret = codec_dai->driver->ops->hw_params(substream, params, codec_dai); //by Vincent #else ret = codec_dai->ops->hw_params(substream, params, codec_dai); //by Vincent #endif DBG("Enter::%s----%d\n",__FUNCTION__,__LINE__); } else { /* set codec DAI configuration */ #if defined (CONFIG_SND_RK29_CODEC_SOC_SLAVE) ret = snd_soc_dai_set_fmt(codec_dai, SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_CBS_CFS); #endif #if defined (CONFIG_SND_RK29_CODEC_SOC_MASTER) ret = snd_soc_dai_set_fmt(codec_dai, SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_CBM_CFM ); #endif if (ret < 0) return ret; /* set cpu DAI configuration */ #if defined (CONFIG_SND_RK29_CODEC_SOC_SLAVE) ret = snd_soc_dai_set_fmt(cpu_dai, SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_CBM_CFM); #endif #if defined (CONFIG_SND_RK29_CODEC_SOC_MASTER) ret = snd_soc_dai_set_fmt(cpu_dai, SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_CBS_CFS); #endif if (ret < 0) return ret; } switch(params_rate(params)) { case 8000: case 16000: case 24000: case 32000: case 48000: pll_out = 12288000; break; case 11025: case 22050: case 44100: pll_out = 11289600; break; default: DBG("Enter:%s, %d, Error rate=%d\n",__FUNCTION__,__LINE__,params_rate(params)); return -EINVAL; break; } DBG("Enter:%s, %d, rate=%d\n",__FUNCTION__,__LINE__,params_rate(params)); //pll_out = 12000000; //snd_soc_dai_set_pll(codec_dai, NULL, 12000000, pll_out); // snd_soc_dai_set_clkdiv(codec_dai, WM8904_LRCLK_MODE, 0x000); #if defined (CONFIG_SND_RK29_CODEC_SOC_MASTER) snd_soc_dai_set_clkdiv(codec_dai, WM8904_BCLK_DIV, WM8904_BCLK_DIV_4); snd_soc_dai_set_clkdiv(codec_dai, WM8904_DAC_LRCLK,(pll_out/4)/params_rate(params)); snd_soc_dai_set_clkdiv(codec_dai, WM8904_ADC_LRCLK,(pll_out/4)/params_rate(params)); #endif #if defined (CONFIG_SND_RK29_CODEC_SOC_SLAVE) general_pll=clk_get(NULL, "general_pll"); if(clk_get_rate(general_pll)>260000000) { div_bclk=(pll_out/4)/params_rate(params)-1; div_mclk=3; } else if(clk_get_rate(general_pll)>130000000) { div_bclk=(pll_out/2)/params_rate(params)-1; div_mclk=1; } else { pll_out=pll_out/4; div_bclk=(pll_out)/params_rate(params)-1; div_mclk=0; } DBG("func is%s,gpll=%ld,pll_out=%u,div_mclk=%d\n", __FUNCTION__,clk_get_rate(general_pll),pll_out,div_mclk); snd_soc_dai_set_sysclk(cpu_dai, 0, pll_out, 0); snd_soc_dai_set_clkdiv(cpu_dai, ROCKCHIP_DIV_BCLK,div_bclk); snd_soc_dai_set_clkdiv(cpu_dai, ROCKCHIP_DIV_MCLK, div_mclk); #endif //snd_soc_dai_set_sysclk(cpu_dai, 0, 11289600, 0); ret = snd_soc_dai_set_sysclk(codec_dai, WM8904_CLK_MCLK, 11289600, SND_SOC_CLOCK_IN); if (ret < 0) return ret; DBG("Enter:%s, %d, LRCK=%d\n",__FUNCTION__,__LINE__,(pll_out/4)/params_rate(params)); return 0; } static const struct snd_soc_dapm_widget WM8904_dapm_widgets[] = { SND_SOC_DAPM_LINE("Audio Out", NULL), SND_SOC_DAPM_LINE("Line in", NULL), SND_SOC_DAPM_MIC("Micn", NULL), SND_SOC_DAPM_MIC("Micp", NULL), }; static const struct snd_soc_dapm_route audio_map[]= { {"Audio Out", NULL, "HP_L"}, {"Audio Out", NULL, "HP_R"}, {"Line in", NULL, "RINPUT1"}, {"Line in", NULL, "LINPUT1"}, {"Micn", NULL, "RINPUT2"}, {"Micp", NULL, "LINPUT2"}, }; /* * Logic for a WM8904 as connected on a rockchip board. */ #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 37)) static int rk29_WM8904_init(struct snd_soc_pcm_runtime *rtd) { struct snd_soc_codec *codec = rtd->codec; struct snd_soc_dapm_context *dapm = &codec->dapm; DBG("Enter::%s----%d\n",__FUNCTION__,__LINE__); /* Add specific widgets */ snd_soc_dapm_new_controls(dapm, WM8904_dapm_widgets, ARRAY_SIZE(WM8904_dapm_widgets)); DBG("Enter::%s----%d\n",__FUNCTION__,__LINE__); /* Set up specific audio path audio_mapnects */ snd_soc_dapm_add_routes(dapm, audio_map, ARRAY_SIZE(audio_map)); DBG("Enter::%s----%d\n",__FUNCTION__,__LINE__); snd_soc_dapm_nc_pin(dapm, "HP_L"); DBG("Enter::%s----%d\n",__FUNCTION__,__LINE__); snd_soc_dapm_nc_pin(dapm, "HP_R"); DBG("Enter::%s----%d\n",__FUNCTION__,__LINE__); snd_soc_dapm_sync(dapm); DBG("Enter::%s----%d\n",__FUNCTION__,__LINE__); return 0; } #else static int rk29_WM8904_init(struct snd_soc_codec *codec) { DBG("Enter::%s----%d\n",__FUNCTION__,__LINE__); /* Add specific widgets */ snd_soc_dapm_new_controls(codec, WM8904_dapm_widgets, ARRAY_SIZE(WM8904_dapm_widgets)); DBG("Enter::%s----%d\n",__FUNCTION__,__LINE__); /* Set up specific audio path audio_mapnects */ snd_soc_dapm_add_routes(codec, audio_map, ARRAY_SIZE(audio_map)); DBG("Enter::%s----%d\n",__FUNCTION__,__LINE__); snd_soc_dapm_nc_pin(codec, "HP_L"); DBG("Enter::%s----%d\n",__FUNCTION__,__LINE__); snd_soc_dapm_nc_pin(codec, "HP_R"); DBG("Enter::%s----%d\n",__FUNCTION__,__LINE__); snd_soc_dapm_sync(codec); DBG("Enter::%s----%d\n",__FUNCTION__,__LINE__); return 0; } #endif static struct snd_soc_ops rk29_ops = { .hw_params = rk29_hw_params, //.shutdown = }; #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 37)) static struct snd_soc_dai_link rk29_dai = { .name = "WM8904", .stream_name = "WM8904 PCM", .codec_name = "wm8904-codec.4-001a", .platform_name = "rockchip-audio", .cpu_dai_name = "rk29_i2s.1", .codec_dai_name = "wm8904-hifi", .init = rk29_WM8904_init, .ops = &rk29_ops, }; #else static struct snd_soc_dai_link rk29_dai = { .name = "WM8904", .stream_name = "WM8904 PCM", .cpu_dai = &rk29_i2s_dai[0], .codec_dai = &WM8904_dai, .init = rk29_WM8904_init, .ops = &rk29_ops, }; #endif #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 37)) static struct snd_soc_card snd_soc_card_rk29 = { .name = "RK29_WM8904", .dai_link = &rk29_dai, .num_links = 1, }; #else static struct snd_soc_card snd_soc_card_rk29 = { .name = "RK29_WM8904", .platform = &rk29_soc_platform, .dai_link = &rk29_dai, .num_links = 1, }; static struct snd_soc_card rk29_snd_devdata = { .card = &snd_soc_card_rk29, .codec_dev = &soc_codec_dev_WM8904, }; #endif static struct platform_device *rk29_snd_device; static int __init audio_card_init(void) { int ret =0; DBG("Enter::%s----%d\n",__FUNCTION__,__LINE__); rk29_snd_device = platform_device_alloc("soc-audio", -1); if (!rk29_snd_device) { DBG("platform device allocation failed\n"); ret = -ENOMEM; return ret; } #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 37)) platform_set_drvdata(rk29_snd_device, &snd_soc_card_rk29); #else platform_set_drvdata(rk29_snd_device, &rk29_snd_devdata); rk29_snd_devdata.dev = &rk29_snd_device->dev; #endif ret = platform_device_add(rk29_snd_device); if (ret) { DBG("platform device add failed\n"); platform_device_put(rk29_snd_device); } return ret; } static void __exit audio_card_exit(void) { platform_device_unregister(rk29_snd_device); } module_init(audio_card_init); module_exit(audio_card_exit); /* Module information */ MODULE_AUTHOR("rockchip"); MODULE_DESCRIPTION("ROCKCHIP i2s ASoC Interface"); MODULE_LICENSE("GPL");
gpl-2.0
diedsmiling/busenika
lib/html2pdf/features/toc.php
6787
<?php class FeatureToc { var $_anchor_locator; var $_document_updater; function FeatureToc() { $this->set_anchor_locator(new FeatureTocAnchorLocatorHeaders()); $this->set_document_updater(new FeatureTocDocumentUpdaterPrependPage()); } function handle_after_parse($params) { $pipeline =& $params['pipeline']; $document =& $params['document']; $media =& $params['media']; $toc =& $this->find_toc_anchors($pipeline, $media, $document); $this->update_document($toc, $pipeline, $media, $document); } function handle_before_document($params) { $pipeline =& $params['pipeline']; $document =& $params['document']; $media =& $params['media']; $page_heights =& $params['page-heights']; $toc =& $this->find_toc_anchors($pipeline, $media, $document); $this->update_page_numbers($toc, $pipeline, $document, $page_heights, $media); } function &find_toc_anchors(&$pipeline, &$media, &$document) { $locator =& $this->get_anchor_locator(); $toc =& $locator->run($pipeline, $media, $document); return $toc; } function &get_anchor_locator() { return $this->_anchor_locator; } function &get_document_updater() { return $this->_document_updater; } function guess_page(&$element, $page_heights, &$media) { $page_index = 0; $bottom = mm2pt($media->height() - $media->margins['top']); do { $bottom -= $page_heights[$page_index]; $page_index ++; } while ($element->get_top() < $bottom); return $page_index; } function install(&$pipeline, $params) { $dispatcher =& $pipeline->get_dispatcher(); $dispatcher->add_observer('after-parse', array(&$this, 'handle_after_parse')); $dispatcher->add_observer('before-document', array(&$this, 'handle_before_document')); if (isset($params['location'])) { switch ($params['location']) { case 'placeholder': $this->set_document_updater(new FeatureTocDocumentUpdaterPlaceholder()); break; case 'before': $this->set_document_updater(new FeatureTocDocumentUpdaterPrependPage()); break; case 'after': default: $this->set_document_updater(new FeatureTocDocumentUpdaterAppendPage()); break; }; }; } function set_anchor_locator(&$locator) { $this->_anchor_locator =& $locator; } function set_document_updater(&$updater) { $this->_document_updater =& $updater; } function make_toc_name_element_id($index) { return sprintf('html2ps-toc-name-%d', $index); } function make_toc_page_element_id($index) { return sprintf('html2ps-toc-page-%d', $index); } function update_document(&$toc, &$pipeline, &$media, &$document) { $code = ''; $index = 1; foreach ($toc as $toc_element) { $code .= sprintf(' <div id="html2ps-toc-%s" class="html2ps-toc-wrapper html2ps-toc-%d-wrapper"> <div id="%s" class="html2ps-toc-name html2ps-toc-%d-name"><a href="#%s">%s</a></div> <div id="%s" class="html2ps-toc-page html2ps-toc-%d-page">0000</div> </div>%s', $index, $toc_element['level'], $this->make_toc_name_element_id($index), $toc_element['level'], $toc_element['anchor'], $toc_element['name'], $this->make_toc_page_element_id($index), $toc_element['level'], "\n"); $index++; }; $toc_box_document =& $pipeline->parser->process('<body><div>'.$code.'</div></body>', $pipeline, $media); $context =& new FlowContext(); $pipeline->layout_engine->process($toc_box_document, $media, $pipeline->get_output_driver(), $context); $toc_box =& $toc_box_document->content[0]; $document_updater =& $this->get_document_updater(); $document_updater->run($toc_box, $media, $document); } function update_page_numbers(&$toc, &$pipeline, &$document, &$page_heights, &$media) { for ($i = 0, $size = count($toc); $i < $size; $i++) { $toc_element =& $document->get_element_by_id($this->make_toc_page_element_id($i+1)); $element =& $toc[$i]['element']; $toc_element->content[0]->content[0]->words[0] = $this->guess_page($element, $page_heights, $media); }; } } class FeatureTocAnchorLocatorHeaders { var $_locations; var $_last_generated_anchor_id; function FeatureTocAnchorLocatorHeaders() { $this->set_locations(array()); $this->_last_generated_anchor_id = 0; } function generate_toc_anchor_id() { $this->_last_generated_anchor_id++; $id = $this->_last_generated_anchor_id; return sprintf('html2ps-toc-element-%d', $id); } function get_locations() { return $this->_locations; } function process_node($params) { $node =& $params['node']; if (preg_match('/^h(\d)$/i', $node->get_tagname(), $matches)) { if (!$node->get_id()) { $id = $this->generate_toc_anchor_id(); $node->set_id($id); }; $this->_locations[] = array('name' => $node->get_content(), 'level' => (int)$matches[1], 'anchor' => $node->get_id(), 'element' => &$node); }; } function &run(&$pipeline, &$media, &$document) { $this->set_locations(array()); $walker =& new TreeWalkerDepthFirst(array(&$this, 'process_node')); $walker->run($document); $locations = $this->get_locations(); foreach ($locations as $location) { $location['element']->setCSSProperty(CSS_HTML2PS_LINK_DESTINATION, $location['element']->get_id()); // $Id: toc.php 5805 2008-08-24 20:31:37Z zeke $ // $pipeline->output_driver->anchors[$id] =& $location['element']->make_anchor($media, $id); }; return $locations; } function set_locations($locations) { $this->_locations = $locations; } } class FeatureTocDocumentUpdaterAppendPage { function FeatureTocDocumentUpdaterAppendPage() { } function run(&$toc_box, &$media, &$document) { $toc_box->setCSSProperty(CSS_PAGE_BREAK_BEFORE, PAGE_BREAK_ALWAYS); $document->append_child($toc_box); } } class FeatureTocDocumentUpdaterPrependPage { function FeatureTocDocumentUpdaterPrependPage() { } function run(&$toc_box, &$media, &$document) { $toc_box->setCSSProperty(CSS_PAGE_BREAK_AFTER, PAGE_BREAK_ALWAYS); $document->insert_before($toc_box, $document->content[0]); } } class FeatureTocDocumentUpdaterPlaceholder { function FeatureTocDocumentUpdaterPlaceholder() { } function run(&$toc_box, &$media, &$document) { $placeholder =& $document->get_element_by_id('html2ps-toc'); $placeholder->append_child($toc_box); } } ?>
gpl-2.0
empeg/empeg-hijack
drivers/block/falconide.c
1674
/* * linux/drivers/block/falconide.c -- Atari Falcon IDE Driver * * Created 12 Jul 1997 by Geert Uytterhoeven * * This file is subject to the terms and conditions of the GNU General Public * License. See the file COPYING in the main directory of this archive for * more details. */ #include <linux/types.h> #include <linux/mm.h> #include <linux/interrupt.h> #include <linux/blkdev.h> #include <linux/hdreg.h> #include "ide.h" #include <asm/atarihw.h> #include <asm/atariints.h> #include <asm/atari_stdma.h> /* * Base of the IDE interface */ #define ATA_HD_BASE 0xfff00000 /* * Offsets from the above base */ #define ATA_HD_DATA 0x00 #define ATA_HD_ERROR 0x05 /* see err-bits */ #define ATA_HD_NSECTOR 0x09 /* nr of sectors to read/write */ #define ATA_HD_SECTOR 0x0d /* starting sector */ #define ATA_HD_LCYL 0x11 /* starting cylinder */ #define ATA_HD_HCYL 0x15 /* high byte of starting cyl */ #define ATA_HD_SELECT 0x19 /* 101dhhhh , d=drive, hhhh=head */ #define ATA_HD_STATUS 0x1d /* see status-bits */ #define ATA_HD_CONTROL 0x39 static ide_ioreg_t falconide_offsets[IDE_NR_PORTS] = { ATA_HD_DATA, ATA_HD_ERROR, ATA_HD_NSECTOR, ATA_HD_SECTOR, ATA_HD_LCYL, ATA_HD_HCYL, ATA_HD_SELECT, ATA_HD_STATUS, ATA_HD_CONTROL, -1 }; /* * Probe for a Falcon IDE interface */ void falconide_init(void) { if (MACH_IS_ATARI && ATARIHW_PRESENT(IDE)) { hw_regs_t hw; int index; ide_setup_ports(&hw, (ide_ioreg_t)ATA_HD_BASE, falconide_offsets, 0, 0, NULL, IRQ_MFP_IDE); index = ide_register_hw(&hw, NULL); if (index != -1) printk("ide%d: Falcon IDE interface\n", index); } }
gpl-2.0
Split-Screen/android_kernel_oneplus_msm8996
drivers/video/msm/mdss/mdss_mdp_ctl.c
151325
/* Copyright (c) 2012-2016, The Linux Foundation. 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. * */ #define pr_fmt(fmt) "%s: " fmt, __func__ #include <linux/errno.h> #include <linux/mutex.h> #include <linux/platform_device.h> #include <linux/dma-mapping.h> #include <linux/delay.h> #include <linux/sort.h> #include <linux/clk.h> #include <linux/bitmap.h> #include <soc/qcom/event_timer.h> #include "mdss_fb.h" #include "mdss_mdp.h" #include "mdss_mdp_trace.h" #include "mdss_debug.h" #define MDSS_MDP_WB_OUTPUT_BPP 3 static inline u64 fudge_factor(u64 val, u32 numer, u32 denom) { u64 result = (val * (u64)numer); do_div(result, denom); return result; } static inline u64 apply_fudge_factor(u64 val, struct mult_factor *factor) { return fudge_factor(val, factor->numer, factor->denom); } static inline u64 apply_inverse_fudge_factor(u64 val, struct mult_factor *factor) { return fudge_factor(val, factor->denom, factor->numer); } static DEFINE_MUTEX(mdss_mdp_ctl_lock); static u32 mdss_mdp_get_vbp_factor_max(struct mdss_mdp_ctl *ctl); void mdss_mdp_reset_mixercfg(struct mdss_mdp_ctl *ctl) { u32 off; int i, nmixers; struct mdss_data_type *mdata = mdss_mdp_get_mdata(); if (!ctl || !mdata) return; nmixers = mdata->nmixers_intf + mdata->nmixers_wb; for (i = 0; i < nmixers; i++) { off = MDSS_MDP_REG_CTL_LAYER(i); mdss_mdp_ctl_write(ctl, off, 0); off += MDSS_MDP_REG_CTL_LAYER_EXTN(i); mdss_mdp_ctl_write(ctl, off, 0); } } static inline int __mdss_mdp_ctl_get_mixer_off(struct mdss_mdp_mixer *mixer) { if (mixer->type == MDSS_MDP_MIXER_TYPE_INTF) { if (mixer->num == MDSS_MDP_INTF_LAYERMIXER3) return MDSS_MDP_CTL_X_LAYER_5; else return MDSS_MDP_REG_CTL_LAYER(mixer->num); } else { return MDSS_MDP_REG_CTL_LAYER(mixer->num + MDSS_MDP_INTF_LAYERMIXER3); } } static inline int __mdss_mdp_ctl_get_mixer_extn_off( struct mdss_mdp_mixer *mixer) { if (mixer->type == MDSS_MDP_MIXER_TYPE_INTF) { if (mixer->num == MDSS_MDP_INTF_LAYERMIXER3) return MDSS_MDP_REG_CTL_LAYER_EXTN(5); else return MDSS_MDP_REG_CTL_LAYER_EXTN(mixer->num); } else { return MDSS_MDP_REG_CTL_LAYER_EXTN(mixer->num + MDSS_MDP_INTF_LAYERMIXER3); } } u32 mdss_mdp_get_mixercfg(struct mdss_mdp_mixer *mixer, bool extn) { u32 mixer_off; if (!mixer || !mixer->ctl) return 0; if (extn) mixer_off = __mdss_mdp_ctl_get_mixer_extn_off(mixer); else mixer_off = __mdss_mdp_ctl_get_mixer_off(mixer); return mdss_mdp_ctl_read(mixer->ctl, mixer_off); } static inline u64 mdss_mdp_get_pclk_rate(struct mdss_mdp_ctl *ctl) { struct mdss_panel_info *pinfo = &ctl->panel_data->panel_info; return (ctl->intf_type == MDSS_INTF_DSI) ? pinfo->mipi.dsi_pclk_rate : pinfo->clk_rate; } static inline u32 mdss_mdp_clk_fudge_factor(struct mdss_mdp_mixer *mixer, u32 rate) { struct mdss_panel_info *pinfo = &mixer->ctl->panel_data->panel_info; rate = apply_fudge_factor(rate, &mdss_res->clk_factor); /* * If the panel is video mode and its back porch period is * small, the workaround of increasing mdp clk is needed to * avoid underrun. */ if (mixer->ctl->is_video_mode && pinfo && (pinfo->lcdc.v_back_porch < MDP_MIN_VBP)) rate = apply_fudge_factor(rate, &mdss_res->clk_factor); return rate; } struct mdss_mdp_prefill_params { u32 smp_bytes; u32 xres; u32 src_w; u32 dst_w; u32 src_h; u32 dst_h; u32 dst_y; u32 bpp; u32 pnum; bool is_yuv; bool is_caf; bool is_fbc; bool is_bwc; bool is_tile; bool is_hflip; bool is_cmd; bool is_ubwc; bool is_nv12; }; static inline bool mdss_mdp_perf_is_caf(struct mdss_mdp_pipe *pipe) { struct mdss_data_type *mdata = mdss_mdp_get_mdata(); /* * CAF mode filter is enabled when format is yuv and * upscaling. Post processing had the decision to use CAF * under these conditions. */ return ((mdata->mdp_rev >= MDSS_MDP_HW_REV_102) && pipe->src_fmt->is_yuv && ((pipe->src.h >> pipe->vert_deci) <= pipe->dst.h)); } static inline u32 mdss_mdp_calc_y_scaler_bytes(struct mdss_mdp_prefill_params *params, struct mdss_prefill_data *prefill) { u32 y_scaler_bytes = 0, y_scaler_lines = 0; if (params->is_yuv) { if (params->src_h != params->dst_h) { y_scaler_lines = (params->is_caf) ? prefill->y_scaler_lines_caf : prefill->y_scaler_lines_bilinear; /* * y is src_width, u is src_width/2 and v is * src_width/2, so the total is scaler_lines * * src_w * 2 */ y_scaler_bytes = y_scaler_lines * params->src_w * 2; } } else { if (params->src_h != params->dst_h) { y_scaler_lines = prefill->y_scaler_lines_bilinear; y_scaler_bytes = y_scaler_lines * params->src_w * params->bpp; } } return y_scaler_bytes; } static inline u32 mdss_mdp_align_latency_buf_bytes( u32 latency_buf_bytes, u32 percentage, u32 smp_bytes) { u32 aligned_bytes; aligned_bytes = ((smp_bytes - latency_buf_bytes) * percentage) / 100; pr_debug("percentage=%d, extra_bytes(per)=%d smp_bytes=%d latency=%d\n", percentage, aligned_bytes, smp_bytes, latency_buf_bytes); return latency_buf_bytes + aligned_bytes; } /** * @ mdss_mdp_calc_latency_buf_bytes() - * Get the number of bytes for the * latency lines. * @is_yuv - true if format is yuv * @is_bwc - true if BWC is enabled * @is_tile - true if it is Tile format * @src_w - source rectangle width * @bpp - Bytes per pixel of source rectangle * @use_latency_buf_percentage - use an extra percentage for * the latency bytes calculation. * @smp_bytes - size of the smp for alignment * @is_ubwc - true if UBWC is enabled * @is_nv12 - true if NV12 format is used * @is_hflip - true if HFLIP is enabled * * Return: * The amount of bytes to consider for the latency lines, where: * If use_latency_buf_percentate is TRUE: * Function will return the amount of bytes for the * latency lines plus a percentage of the * additional bytes allocated to align with the * SMP size. Percentage is determined by * "latency_buff_per", which can be modified * through debugfs. * If use_latency_buf_percentage is FALSE: * Function will return only the the amount of bytes * for the latency lines without any * extra bytes. */ u32 mdss_mdp_calc_latency_buf_bytes(bool is_yuv, bool is_bwc, bool is_tile, u32 src_w, u32 bpp, bool use_latency_buf_percentage, u32 smp_bytes, bool is_ubwc, bool is_nv12, bool is_hflip) { u32 latency_lines = 0, latency_buf_bytes; struct mdss_data_type *mdata = mdss_mdp_get_mdata(); if (is_hflip && !mdata->hflip_buffer_reused) latency_lines = 1; if (is_yuv) { if (is_ubwc) { if (is_nv12) latency_lines += 8; else latency_lines += 4; latency_buf_bytes = src_w * bpp * latency_lines; } else if (is_bwc) { latency_lines += 4; latency_buf_bytes = src_w * bpp * latency_lines; } else { if (!mdata->hflip_buffer_reused) latency_lines += 1; else latency_lines = 2; /* multiply * 2 for the two YUV planes */ latency_buf_bytes = mdss_mdp_align_latency_buf_bytes( src_w * bpp * latency_lines, use_latency_buf_percentage ? mdata->latency_buff_per : 0, smp_bytes) * 2; } } else { if (is_ubwc) { latency_lines += 4; latency_buf_bytes = src_w * bpp * latency_lines; } else if (is_tile) { latency_lines += 8; latency_buf_bytes = src_w * bpp * latency_lines; } else if (is_bwc) { latency_lines += 4; latency_buf_bytes = src_w * bpp * latency_lines; } else { if (!mdata->hflip_buffer_reused) latency_lines += 1; else latency_lines = 2; latency_buf_bytes = mdss_mdp_align_latency_buf_bytes( src_w * bpp * latency_lines, use_latency_buf_percentage ? mdata->latency_buff_per : 0, smp_bytes); } } return latency_buf_bytes; } static inline u32 mdss_mdp_calc_scaling_w_h(u32 val, u32 src_h, u32 dst_h, u32 src_w, u32 dst_w) { if (dst_h) val = mult_frac(val, src_h, dst_h); if (dst_w) val = mult_frac(val, src_w, dst_w); return val; } static u32 mdss_mdp_perf_calc_pipe_prefill_video(struct mdss_mdp_prefill_params *params) { struct mdss_data_type *mdata = mdss_mdp_get_mdata(); struct mdss_prefill_data *prefill = &mdata->prefill_data; u32 prefill_bytes; u32 latency_buf_bytes; u32 y_buf_bytes = 0; u32 y_scaler_bytes = 0; u32 pp_bytes = 0, pp_lines = 0; u32 post_scaler_bytes; u32 fbc_bytes = 0; prefill_bytes = prefill->ot_bytes; latency_buf_bytes = mdss_mdp_calc_latency_buf_bytes(params->is_yuv, params->is_bwc, params->is_tile, params->src_w, params->bpp, true, params->smp_bytes, params->is_ubwc, params->is_nv12, params->is_hflip); prefill_bytes += latency_buf_bytes; pr_debug("latency_buf_bytes bw_calc=%d actual=%d\n", latency_buf_bytes, params->smp_bytes); if (params->is_yuv) y_buf_bytes = prefill->y_buf_bytes; y_scaler_bytes = mdss_mdp_calc_y_scaler_bytes(params, prefill); prefill_bytes += y_buf_bytes + y_scaler_bytes; if (mdata->apply_post_scale_bytes || (params->src_h != params->dst_h) || (params->src_w != params->dst_w)) { post_scaler_bytes = prefill->post_scaler_pixels * params->bpp; post_scaler_bytes = mdss_mdp_calc_scaling_w_h(post_scaler_bytes, params->src_h, params->dst_h, params->src_w, params->dst_w); prefill_bytes += post_scaler_bytes; } if (params->xres) pp_lines = DIV_ROUND_UP(prefill->pp_pixels, params->xres); if (params->xres && params->dst_h && (params->dst_y <= pp_lines)) pp_bytes = ((params->src_w * params->bpp * prefill->pp_pixels / params->xres) * params->src_h) / params->dst_h; prefill_bytes += pp_bytes; if (params->is_fbc) { fbc_bytes = prefill->fbc_lines * params->bpp; fbc_bytes = mdss_mdp_calc_scaling_w_h(fbc_bytes, params->src_h, params->dst_h, params->src_w, params->dst_w); } prefill_bytes += fbc_bytes; trace_mdp_perf_prefill_calc(params->pnum, latency_buf_bytes, prefill->ot_bytes, y_buf_bytes, y_scaler_bytes, pp_lines, pp_bytes, post_scaler_bytes, fbc_bytes, prefill_bytes); pr_debug("ot=%d y_buf=%d pp_lines=%d pp=%d post_sc=%d fbc_bytes=%d\n", prefill->ot_bytes, y_buf_bytes, pp_lines, pp_bytes, post_scaler_bytes, fbc_bytes); return prefill_bytes; } static u32 mdss_mdp_perf_calc_pipe_prefill_cmd(struct mdss_mdp_prefill_params *params) { struct mdss_data_type *mdata = mdss_mdp_get_mdata(); struct mdss_prefill_data *prefill = &mdata->prefill_data; u32 prefill_bytes; u32 ot_bytes = 0; u32 latency_lines, latency_buf_bytes; u32 y_buf_bytes = 0; u32 y_scaler_bytes; u32 fbc_cmd_lines = 0, fbc_cmd_bytes = 0; u32 post_scaler_bytes = 0; /* y_scaler_bytes are same for the first or non first line */ y_scaler_bytes = mdss_mdp_calc_y_scaler_bytes(params, prefill); prefill_bytes = y_scaler_bytes; /* 1st line if fbc is not enabled and 2nd line if fbc is enabled */ if (((params->dst_y == 0) && !params->is_fbc) || ((params->dst_y <= 1) && params->is_fbc)) { if (params->is_ubwc) { if (params->is_nv12) latency_lines = 8; else latency_lines = 4; } else if (params->is_bwc || params->is_tile) { latency_lines = 4; } else if (params->is_hflip) { latency_lines = 1; } else { latency_lines = 0; } latency_buf_bytes = params->src_w * params->bpp * latency_lines; prefill_bytes += latency_buf_bytes; fbc_cmd_lines++; if (params->is_fbc) fbc_cmd_lines++; fbc_cmd_bytes = params->bpp * params->dst_w * fbc_cmd_lines; fbc_cmd_bytes = mdss_mdp_calc_scaling_w_h(fbc_cmd_bytes, params->src_h, params->dst_h, params->src_w, params->dst_w); prefill_bytes += fbc_cmd_bytes; } else { ot_bytes = prefill->ot_bytes; prefill_bytes += ot_bytes; latency_buf_bytes = mdss_mdp_calc_latency_buf_bytes( params->is_yuv, params->is_bwc, params->is_tile, params->src_w, params->bpp, true, params->smp_bytes, params->is_ubwc, params->is_nv12, params->is_hflip); prefill_bytes += latency_buf_bytes; if (params->is_yuv) y_buf_bytes = prefill->y_buf_bytes; prefill_bytes += y_buf_bytes; if (mdata->apply_post_scale_bytes || (params->src_h != params->dst_h) || (params->src_w != params->dst_w)) { post_scaler_bytes = prefill->post_scaler_pixels * params->bpp; post_scaler_bytes = mdss_mdp_calc_scaling_w_h( post_scaler_bytes, params->src_h, params->dst_h, params->src_w, params->dst_w); prefill_bytes += post_scaler_bytes; } } pr_debug("ot=%d bwc=%d smp=%d y_buf=%d fbc=%d\n", ot_bytes, params->is_bwc, latency_buf_bytes, y_buf_bytes, fbc_cmd_bytes); return prefill_bytes; } u32 mdss_mdp_perf_calc_pipe_prefill_single(struct mdss_mdp_prefill_params *params) { struct mdss_data_type *mdata = mdss_mdp_get_mdata(); struct mdss_prefill_data *prefill = &mdata->prefill_data; u32 prefill_bytes; u32 latency_lines, latency_buf_bytes; u32 y_scaler_bytes; u32 fbc_cmd_lines = 0, fbc_cmd_bytes = 0; if (params->is_ubwc) { if (params->is_nv12) latency_lines = 8; else latency_lines = 4; } else if (params->is_bwc || params->is_tile) /* can start processing after receiving 4 lines */ latency_lines = 4; else if (params->is_hflip) /* need oneline before reading backwards */ latency_lines = 1; else latency_lines = 0; latency_buf_bytes = params->src_w * params->bpp * latency_lines; prefill_bytes = latency_buf_bytes; y_scaler_bytes = mdss_mdp_calc_y_scaler_bytes(params, prefill); prefill_bytes += y_scaler_bytes; if (params->is_cmd) fbc_cmd_lines++; if (params->is_fbc) fbc_cmd_lines++; if (fbc_cmd_lines) { fbc_cmd_bytes = params->bpp * params->dst_w * fbc_cmd_lines; fbc_cmd_bytes = mdss_mdp_calc_scaling_w_h(fbc_cmd_bytes, params->src_h, params->dst_h, params->src_w, params->dst_w); prefill_bytes += fbc_cmd_bytes; } return prefill_bytes; } u32 mdss_mdp_perf_calc_smp_size(struct mdss_mdp_pipe *pipe, bool calc_smp_size) { struct mdss_data_type *mdata = mdss_mdp_get_mdata(); u32 smp_bytes; if (pipe->type == PIPE_TYPE_CURSOR) return 0; /* Get allocated or fixed smp bytes */ smp_bytes = mdss_mdp_smp_get_size(pipe); /* * We need to calculate the SMP size for scenarios where * allocation have not happened yet (i.e. during prepare IOCTL). */ if (calc_smp_size && !mdata->has_pixel_ram) { u32 calc_smp_total; calc_smp_total = mdss_mdp_smp_calc_num_blocks(pipe); calc_smp_total *= mdata->smp_mb_size; /* * If the pipe has fixed SMPs, then we must consider * the max smp size. */ if (calc_smp_total > smp_bytes) smp_bytes = calc_smp_total; } pr_debug("SMP size (bytes) %d for pnum=%d calc=%d\n", smp_bytes, pipe->num, calc_smp_size); BUG_ON(smp_bytes == 0); return smp_bytes; } static void mdss_mdp_get_bw_vote_mode(void *data, u32 mdp_rev, struct mdss_mdp_perf_params *perf, enum perf_calc_vote_mode calc_mode, u32 flags) { if (!data) goto exit; switch (mdp_rev) { case MDSS_MDP_HW_REV_105: case MDSS_MDP_HW_REV_109: if (calc_mode == PERF_CALC_VOTE_MODE_PER_PIPE) { struct mdss_mdp_mixer *mixer = (struct mdss_mdp_mixer *)data; if ((flags & PERF_CALC_PIPE_SINGLE_LAYER) && !mixer->rotator_mode && (mixer->type == MDSS_MDP_MIXER_TYPE_INTF)) set_bit(MDSS_MDP_BW_MODE_SINGLE_LAYER, perf->bw_vote_mode); } else if (calc_mode == PERF_CALC_VOTE_MODE_CTL) { struct mdss_mdp_ctl *ctl = (struct mdss_mdp_ctl *)data; if (ctl->is_video_mode && (ctl->mfd->split_mode == MDP_SPLIT_MODE_NONE)) set_bit(MDSS_MDP_BW_MODE_SINGLE_IF, perf->bw_vote_mode); } break; default: break; }; pr_debug("mode=0x%lx\n", *(perf->bw_vote_mode)); exit: return; } static u32 get_pipe_mdp_clk_rate(struct mdss_mdp_pipe *pipe, struct mdss_rect src, struct mdss_rect dst, u32 fps, u32 v_total, u32 flags) { struct mdss_mdp_mixer *mixer; u32 rate, src_h; mixer = pipe->mixer_left; src_h = src.h >> pipe->vert_deci; if (mixer->rotator_mode) { rate = pipe->src.w * pipe->src.h * fps; rate /= 4; /* block mode fetch at 4 pix/clk */ } else { rate = dst.w; if (src_h > dst.h) rate = (rate * src_h) / dst.h; rate *= v_total * fps; /* pipes decoding BWC content have different clk requirement */ if (pipe->bwc_mode && !pipe->src_fmt->is_yuv && pipe->src_fmt->bpp == 4) { u32 bwc_rate = mult_frac((src.w * src_h * fps), v_total, dst.h << 1); pr_debug("src: w:%d h:%d fps:%d vtotal:%d dst h:%d\n", src.w, src_h, fps, v_total, dst.h); pr_debug("pipe%d: bwc_rate=%d normal_rate=%d\n", pipe->num, bwc_rate, rate); rate = max(bwc_rate, rate); } } if (flags & PERF_CALC_PIPE_APPLY_CLK_FUDGE) rate = mdss_mdp_clk_fudge_factor(mixer, rate); return rate; } static inline bool validate_comp_ratio(struct mult_factor *factor) { return factor->numer && factor->denom; } u32 apply_comp_ratio_factor(u32 quota, struct mdss_mdp_format_params *fmt, struct mult_factor *factor) { struct mdss_data_type *mdata = mdss_mdp_get_mdata(); if (!mdata || !test_bit(MDSS_QOS_OVERHEAD_FACTOR, mdata->mdss_qos_map)) return quota; /* apply compression ratio, only for compressed formats */ if (mdss_mdp_is_ubwc_format(fmt) && validate_comp_ratio(factor)) quota = apply_inverse_fudge_factor(quota , factor); return quota; } static u32 mdss_mdp_get_rotator_fps(struct mdss_mdp_pipe *pipe) { struct mdss_data_type *mdata = mdss_mdp_get_mdata(); u32 fps = DEFAULT_FRAME_RATE; if (pipe->frame_rate) fps = pipe->frame_rate; if (mdata->traffic_shaper_en) fps = DEFAULT_ROTATOR_FRAME_RATE; if (pipe->src.w >= 3840 || pipe->src.h >= 3840) fps = ROTATOR_LOW_FRAME_RATE; pr_debug("rotator fps:%d\n", fps); return fps; } u64 mdss_mdp_perf_calc_simplified_prefill(struct mdss_mdp_pipe *pipe, u32 v_total, u32 fps, struct mdss_mdp_ctl *ctl) { struct mdss_data_type *mdata = mdss_mdp_get_mdata(); struct simplified_prefill_factors *pfactors = &mdata->prefill_data.prefill_factors; u64 prefill_per_pipe = 0; u32 prefill_lines = pfactors->xtra_ff_factor; /* do not calculate prefill for command mode */ if (!ctl->is_video_mode) goto exit; prefill_per_pipe = pipe->src.w * pipe->src_fmt->bpp; /* format factors */ if (mdss_mdp_is_tile_format(pipe->src_fmt)) { if (mdss_mdp_is_nv12_format(pipe->src_fmt)) prefill_lines += pfactors->fmt_mt_nv12_factor; else prefill_lines += pfactors->fmt_mt_factor; } else { prefill_lines += pfactors->fmt_linear_factor; } /* scaling factors */ if (pipe->src.h > pipe->dst.h) { prefill_lines += pfactors->scale_factor; prefill_per_pipe = fudge_factor(prefill_per_pipe, DECIMATED_DIMENSION(pipe->src.h, pipe->vert_deci), pipe->dst.h); } prefill_per_pipe *= prefill_lines * mdss_mdp_get_vbp_factor_max(ctl); pr_debug("pipe src: %dx%d bpp:%d\n", pipe->src.w, pipe->src.h, pipe->src_fmt->bpp); pr_debug("ff_factor:%d mt_nv12:%d mt:%d\n", pfactors->xtra_ff_factor, (mdss_mdp_is_tile_format(pipe->src_fmt) && mdss_mdp_is_nv12_format(pipe->src_fmt)) ? pfactors->fmt_mt_nv12_factor : 0, mdss_mdp_is_tile_format(pipe->src_fmt) ? pfactors->fmt_mt_factor : 0); pr_debug("pipe prefill:%llu lines:%d\n", prefill_per_pipe, prefill_lines); exit: return prefill_per_pipe; } /** * mdss_mdp_perf_calc_pipe() - calculate performance numbers required by pipe * @pipe: Source pipe struct containing updated pipe params * @perf: Structure containing values that should be updated for * performance tuning * @flags: flags to determine how to perform some of the * calculations, supported flags: * * PERF_CALC_PIPE_APPLY_CLK_FUDGE: * Determine if mdp clock fudge is applicable. * PERF_CALC_PIPE_SINGLE_LAYER: * Indicate if the calculation is for a single pipe staged * in the layer mixer * PERF_CALC_PIPE_CALC_SMP_SIZE: * Indicate if the smp size needs to be calculated, this is * for the cases where SMP haven't been allocated yet, so we need * to estimate here the smp size (i.e. PREPARE IOCTL). * * Function calculates the minimum required performance calculations in order * to avoid MDP underflow. The calculations are based on the way MDP * fetches (bandwidth requirement) and processes data through MDP pipeline * (MDP clock requirement) based on frame size and scaling requirements. */ int mdss_mdp_perf_calc_pipe(struct mdss_mdp_pipe *pipe, struct mdss_mdp_perf_params *perf, struct mdss_rect *roi, u32 flags) { struct mdss_mdp_mixer *mixer; int fps = DEFAULT_FRAME_RATE; u32 quota, v_total = 0, src_h, xres = 0, h_total = 0; struct mdss_rect src, dst; bool is_fbc = false; struct mdss_mdp_prefill_params prefill_params; struct mdss_data_type *mdata = mdss_mdp_get_mdata(); bool calc_smp_size = false; if (!pipe || !perf || !pipe->mixer_left) return -EINVAL; mixer = pipe->mixer_left; dst = pipe->dst; src = pipe->src; if (mixer->rotator_mode) { fps = mdss_mdp_get_rotator_fps(pipe); } else if (mixer->type == MDSS_MDP_MIXER_TYPE_INTF) { struct mdss_panel_info *pinfo; if (!mixer->ctl) return -EINVAL; pinfo = &mixer->ctl->panel_data->panel_info; if (pinfo->type == MIPI_VIDEO_PANEL) { fps = pinfo->panel_max_fps; v_total = pinfo->panel_max_vtotal; } else { fps = mdss_panel_get_framerate(pinfo, FPS_RESOLUTION_HZ); v_total = mdss_panel_get_vtotal(pinfo); } xres = get_panel_width(mixer->ctl); is_fbc = pinfo->fbc.enabled; h_total = mdss_panel_get_htotal(pinfo, false); if (is_pingpong_split(mixer->ctl->mfd)) h_total += mdss_panel_get_htotal( &mixer->ctl->panel_data->next->panel_info, false); } else { v_total = mixer->height; xres = mixer->width; h_total = mixer->width; } mixer->ctl->frame_rate = fps; if (roi && !mixer->ctl->is_video_mode && !pipe->src_split_req) mdss_mdp_crop_rect(&src, &dst, roi); pr_debug("v_total=%d, xres=%d fps=%d\n", v_total, xres, fps); /* * when doing vertical decimation lines will be skipped, hence there is * no need to account for these lines in MDP clock or request bus * bandwidth to fetch them. */ src_h = DECIMATED_DIMENSION(src.h, pipe->vert_deci); quota = fps * src.w * src_h; pr_debug("src(w,h)(%d,%d) dst(w,h)(%d,%d) dst_y=%d bpp=%d yuv=%d\n", pipe->src.w, src_h, pipe->dst.w, pipe->dst.h, pipe->dst.y, pipe->src_fmt->bpp, pipe->src_fmt->is_yuv); if (pipe->src_fmt->chroma_sample == MDSS_MDP_CHROMA_420) /* * with decimation, chroma is not downsampled, this means we * need to allocate bw for extra lines that will be fetched */ if (pipe->vert_deci) quota *= 2; else quota = (quota * 3) / 2; else quota *= pipe->src_fmt->bpp; if (mixer->rotator_mode) { if (test_bit(MDSS_QOS_OVERHEAD_FACTOR, mdata->mdss_qos_map)) { /* rotator read */ quota = apply_comp_ratio_factor(quota, pipe->src_fmt, &pipe->comp_ratio); /* * rotator write: here we are using src_fmt since * current implementation only supports calculate * bandwidth based in the source parameters. * The correct fine-tuned calculation should use * destination format and destination rectangles to * calculate the bandwidth, but leaving this * calculation as per current support. */ quota += apply_comp_ratio_factor(quota, pipe->src_fmt, &pipe->comp_ratio); } else { quota *= 2; /* bus read + write */ } } else { quota = mult_frac(quota, v_total, dst.h); if (!mixer->ctl->is_video_mode) quota = mult_frac(quota, h_total, xres); if (test_bit(MDSS_QOS_OVERHEAD_FACTOR, mdata->mdss_qos_map)) quota = apply_comp_ratio_factor(quota, pipe->src_fmt, &pipe->comp_ratio); } perf->bw_overlap = quota; perf->mdp_clk_rate = get_pipe_mdp_clk_rate(pipe, src, dst, fps, v_total, flags); if (pipe->flags & MDP_SOLID_FILL) { perf->bw_overlap = 0; } if (mixer->ctl->intf_num == MDSS_MDP_NO_INTF || mdata->disable_prefill || mixer->ctl->disable_prefill || (pipe->flags & MDP_SOLID_FILL)) { perf->prefill_bytes = 0; perf->bw_prefill = 0; goto exit; } if (test_bit(MDSS_QOS_SIMPLIFIED_PREFILL, mdata->mdss_qos_map)) { perf->bw_prefill = mdss_mdp_perf_calc_simplified_prefill(pipe, v_total, fps, mixer->ctl); goto exit; } calc_smp_size = (flags & PERF_CALC_PIPE_CALC_SMP_SIZE) ? true : false; prefill_params.smp_bytes = mdss_mdp_perf_calc_smp_size(pipe, calc_smp_size); prefill_params.xres = xres; prefill_params.src_w = src.w; prefill_params.src_h = src_h; prefill_params.dst_w = dst.w; prefill_params.dst_h = dst.h; prefill_params.dst_y = dst.y; prefill_params.bpp = pipe->src_fmt->bpp; prefill_params.is_yuv = pipe->src_fmt->is_yuv; prefill_params.is_caf = mdss_mdp_perf_is_caf(pipe); prefill_params.is_fbc = is_fbc; prefill_params.is_bwc = pipe->bwc_mode; prefill_params.is_tile = mdss_mdp_is_tile_format(pipe->src_fmt); prefill_params.is_hflip = pipe->flags & MDP_FLIP_LR; prefill_params.is_cmd = !mixer->ctl->is_video_mode; prefill_params.pnum = pipe->num; prefill_params.is_ubwc = mdss_mdp_is_ubwc_format(pipe->src_fmt); prefill_params.is_nv12 = mdss_mdp_is_nv12_format(pipe->src_fmt); mdss_mdp_get_bw_vote_mode(mixer, mdata->mdp_rev, perf, PERF_CALC_VOTE_MODE_PER_PIPE, flags); if (flags & PERF_CALC_PIPE_SINGLE_LAYER) perf->prefill_bytes = mdss_mdp_perf_calc_pipe_prefill_single(&prefill_params); else if (!prefill_params.is_cmd) perf->prefill_bytes = mdss_mdp_perf_calc_pipe_prefill_video(&prefill_params); else perf->prefill_bytes = mdss_mdp_perf_calc_pipe_prefill_cmd(&prefill_params); exit: pr_debug("mixer=%d pnum=%d clk_rate=%u bw_overlap=%llu bw_prefill=%llu (%d) %s\n", mixer->num, pipe->num, perf->mdp_clk_rate, perf->bw_overlap, perf->bw_prefill, perf->prefill_bytes, mdata->disable_prefill ? "prefill is disabled" : ""); return 0; } static inline int mdss_mdp_perf_is_overlap(u32 y00, u32 y01, u32 y10, u32 y11) { return (y10 < y00 && y11 >= y01) || (y10 >= y00 && y10 < y01); } static inline int cmpu32(const void *a, const void *b) { return (*(u32 *)a < *(u32 *)b) ? -1 : 0; } static void mdss_mdp_perf_calc_mixer(struct mdss_mdp_mixer *mixer, struct mdss_mdp_perf_params *perf, struct mdss_mdp_pipe **pipe_list, int num_pipes, u32 flags) { struct mdss_mdp_pipe *pipe; struct mdss_panel_info *pinfo = NULL; int fps = DEFAULT_FRAME_RATE; u32 v_total = 0, bpp = MDSS_MDP_WB_OUTPUT_BPP; int i; u32 max_clk_rate = 0; u64 bw_overlap_max = 0; u64 bw_overlap[MAX_PIPES_PER_LM] = { 0 }; u64 bw_overlap_async = 0; u32 v_region[MAX_PIPES_PER_LM * 2] = { 0 }; u32 prefill_val = 0; struct mdss_data_type *mdata = mdss_mdp_get_mdata(); bool apply_fudge = true; struct mdss_mdp_format_params *fmt; BUG_ON(num_pipes > MAX_PIPES_PER_LM); memset(perf, 0, sizeof(*perf)); if (!mixer->rotator_mode) { if (mixer->type == MDSS_MDP_MIXER_TYPE_INTF) { pinfo = &mixer->ctl->panel_data->panel_info; if (pinfo->type == MIPI_VIDEO_PANEL) { fps = pinfo->panel_max_fps; v_total = pinfo->panel_max_vtotal; } else { fps = mdss_panel_get_framerate(pinfo, FPS_RESOLUTION_HZ); v_total = mdss_panel_get_vtotal(pinfo); } if (pinfo->type == WRITEBACK_PANEL) { fmt = mdss_mdp_get_format_params( mixer->ctl->dst_format); if (fmt) bpp = fmt->bpp; pinfo = NULL; } } else { v_total = mixer->height; } perf->mdp_clk_rate = mixer->width * v_total * fps; perf->mdp_clk_rate = mdss_mdp_clk_fudge_factor(mixer, perf->mdp_clk_rate); if (!pinfo) { /* perf for bus writeback */ perf->bw_writeback = fps * mixer->width * mixer->height * bpp; if (test_bit(MDSS_QOS_OVERHEAD_FACTOR, mdata->mdss_qos_map)) perf->bw_writeback = apply_comp_ratio_factor( perf->bw_writeback, fmt, &mixer->ctl->dst_comp_ratio); } else if (pinfo->type == MIPI_CMD_PANEL) { u32 dsi_transfer_rate = mixer->width * v_total; /* adjust transfer time from micro seconds */ dsi_transfer_rate = mult_frac(dsi_transfer_rate, 1000000, pinfo->mdp_transfer_time_us); if (dsi_transfer_rate > perf->mdp_clk_rate) perf->mdp_clk_rate = dsi_transfer_rate; } if (is_dsc_compression(pinfo) && mixer->ctl->opmode & MDSS_MDP_CTL_OP_PACK_3D_ENABLE) perf->mdp_clk_rate *= 2; } /* * In case of border color, we still need enough mdp clock * to avoid under-run. Clock requirement for border color is * based on mixer width. */ if (num_pipes == 0) goto exit; memset(bw_overlap, 0, sizeof(u64) * MAX_PIPES_PER_LM); memset(v_region, 0, sizeof(u32) * MAX_PIPES_PER_LM * 2); /* * Apply this logic only for 8x26 to reduce clock rate * for single video playback use case */ if (IS_MDSS_MAJOR_MINOR_SAME(mdata->mdp_rev, MDSS_MDP_HW_REV_101) && mixer->type == MDSS_MDP_MIXER_TYPE_INTF) { u32 npipes = 0; for (i = 0; i < num_pipes; i++) { pipe = pipe_list[i]; if (pipe) { if (npipes) { apply_fudge = true; break; } npipes++; apply_fudge = !(pipe->src_fmt->is_yuv) || !(pipe->flags & MDP_SOURCE_ROTATED_90); } } } if (apply_fudge) flags |= PERF_CALC_PIPE_APPLY_CLK_FUDGE; if (num_pipes == 1) flags |= PERF_CALC_PIPE_SINGLE_LAYER; for (i = 0; i < num_pipes; i++) { struct mdss_mdp_perf_params tmp; memset(&tmp, 0, sizeof(tmp)); pipe = pipe_list[i]; if (pipe == NULL) continue; /* * if is pipe used across two LMs in source split configuration * then it is staged on both LMs. In such cases skip BW calc * for such pipe on right LM to prevent adding BW twice. */ if (pipe->src_split_req && mixer->is_right_mixer) continue; if (mdss_mdp_perf_calc_pipe(pipe, &tmp, &mixer->roi, flags)) continue; if (!mdss_mdp_is_nrt_ctl_path(mixer->ctl)) perf->max_per_pipe_ib = max(perf->max_per_pipe_ib, tmp.bw_overlap); bitmap_or(perf->bw_vote_mode, perf->bw_vote_mode, tmp.bw_vote_mode, MDSS_MDP_BW_MODE_MAX); /* * for async layers, the overlap calculation is skipped * and the bandwidth is added at the end, accounting for * worst case, that async layer might overlap with * all the other layers. */ if (pipe->async_update) { bw_overlap[i] = 0; v_region[2*i] = 0; v_region[2*i + 1] = 0; bw_overlap_async += tmp.bw_overlap; } else { bw_overlap[i] = tmp.bw_overlap; v_region[2*i] = pipe->dst.y; v_region[2*i + 1] = pipe->dst.y + pipe->dst.h; } if (tmp.mdp_clk_rate > max_clk_rate) max_clk_rate = tmp.mdp_clk_rate; if (test_bit(MDSS_QOS_SIMPLIFIED_PREFILL, mdata->mdss_qos_map)) prefill_val += tmp.bw_prefill; else prefill_val += tmp.prefill_bytes; } /* * Sort the v_region array so the total display area can be * divided into individual regions. Check how many pipes fetch * data for each region and sum them up, then the worst case * of all regions is ib request. */ sort(v_region, num_pipes * 2, sizeof(u32), cmpu32, NULL); for (i = 1; i < num_pipes * 2; i++) { int j; u64 bw_max_region = 0; u32 y0, y1; pr_debug("v_region[%d]%d\n", i, v_region[i]); if (v_region[i] == v_region[i-1]) continue; y0 = v_region[i-1]; y1 = v_region[i]; for (j = 0; j < num_pipes; j++) { if (!bw_overlap[j]) continue; pipe = pipe_list[j]; if (mdss_mdp_perf_is_overlap(y0, y1, pipe->dst.y, (pipe->dst.y + pipe->dst.h))) bw_max_region += bw_overlap[j]; pr_debug("v[%d](%d,%d)pipe[%d](%d,%d)bw(%llu %llu)\n", i, y0, y1, j, pipe->dst.y, pipe->dst.y + pipe->dst.h, bw_overlap[j], bw_max_region); } bw_overlap_max = max(bw_overlap_max, bw_max_region); } perf->bw_overlap += bw_overlap_max + bw_overlap_async; if (test_bit(MDSS_QOS_SIMPLIFIED_PREFILL, mdata->mdss_qos_map)) perf->bw_prefill += prefill_val; else perf->prefill_bytes += prefill_val; if (max_clk_rate > perf->mdp_clk_rate) perf->mdp_clk_rate = max_clk_rate; exit: pr_debug("final mixer=%d video=%d clk_rate=%u bw=%llu prefill=%d mode=0x%lx\n", mixer->num, mixer->ctl->is_video_mode, perf->mdp_clk_rate, perf->bw_overlap, prefill_val, *(perf->bw_vote_mode)); } static bool is_mdp_prefetch_needed(struct mdss_panel_info *pinfo) { struct mdss_data_type *mdata = mdss_mdp_get_mdata(); bool enable_prefetch = false; if (mdata->mdp_rev >= MDSS_MDP_HW_REV_105) { if ((pinfo->lcdc.v_back_porch + pinfo->lcdc.v_pulse_width + pinfo->lcdc.v_front_porch) < mdata->min_prefill_lines) pr_warn_once("low vbp+vfp may lead to perf issues in some cases\n"); enable_prefetch = true; if ((pinfo->lcdc.v_back_porch + pinfo->lcdc.v_pulse_width) >= MDSS_MDP_MAX_PREFILL_FETCH) enable_prefetch = false; } else { if ((pinfo->lcdc.v_back_porch + pinfo->lcdc.v_pulse_width) < mdata->min_prefill_lines) pr_warn_once("low vbp may lead to display performance issues"); } return enable_prefetch; } /** * mdss_mdp_get_prefetch_lines: - Number of fetch lines in vertical front porch * @pinfo: Pointer to the panel information. * * Returns the number of fetch lines in vertical front porch at which mdp * can start fetching the next frame. * * In some cases, vertical front porch is too high. In such cases limit * the mdp fetch lines as the last (25 - vbp - vpw) lines of vertical * front porch. */ int mdss_mdp_get_prefetch_lines(struct mdss_panel_info *pinfo) { int prefetch_avail = 0; int v_total, vfp_start; u32 prefetch_needed; if (!is_mdp_prefetch_needed(pinfo)) return 0; v_total = mdss_panel_get_vtotal(pinfo); vfp_start = (pinfo->lcdc.v_back_porch + pinfo->lcdc.v_pulse_width + pinfo->yres); prefetch_avail = v_total - vfp_start; prefetch_needed = MDSS_MDP_MAX_PREFILL_FETCH - pinfo->lcdc.v_back_porch - pinfo->lcdc.v_pulse_width; if (prefetch_avail > prefetch_needed) prefetch_avail = prefetch_needed; return prefetch_avail; } static u32 mdss_mdp_get_vbp_factor(struct mdss_mdp_ctl *ctl) { u32 fps, v_total, vbp, vbp_fac; struct mdss_panel_info *pinfo; if (!ctl || !ctl->panel_data) return 0; pinfo = &ctl->panel_data->panel_info; fps = mdss_panel_get_framerate(pinfo, FPS_RESOLUTION_HZ); v_total = mdss_panel_get_vtotal(pinfo); vbp = pinfo->lcdc.v_back_porch + pinfo->lcdc.v_pulse_width; vbp += pinfo->prg_fet; vbp_fac = (vbp) ? fps * v_total / vbp : 0; pr_debug("vbp_fac=%d vbp=%d v_total=%d\n", vbp_fac, vbp, v_total); return vbp_fac; } static u32 mdss_mdp_get_vbp_factor_max(struct mdss_mdp_ctl *ctl) { u32 vbp_max = 0; int i; struct mdss_data_type *mdata; if (!ctl || !ctl->mdata) return 0; mdata = ctl->mdata; for (i = 0; i < mdata->nctl; i++) { struct mdss_mdp_ctl *ctl = mdata->ctl_off + i; u32 vbp_fac; /* skip command mode interfaces */ if (test_bit(MDSS_QOS_SIMPLIFIED_PREFILL, mdata->mdss_qos_map) && !ctl->is_video_mode) continue; if (mdss_mdp_ctl_is_power_on(ctl)) { vbp_fac = mdss_mdp_get_vbp_factor(ctl); vbp_max = max(vbp_max, vbp_fac); } } return vbp_max; } static bool mdss_mdp_video_mode_intf_connected(struct mdss_mdp_ctl *ctl) { int i; struct mdss_data_type *mdata; if (!ctl || !ctl->mdata) return 0; mdata = ctl->mdata; for (i = 0; i < mdata->nctl; i++) { struct mdss_mdp_ctl *ctl = mdata->ctl_off + i; if (ctl->is_video_mode && mdss_mdp_ctl_is_power_on(ctl)) { pr_debug("video interface connected ctl:%d\n", ctl->num); return true; } } return false; } static void __mdss_mdp_perf_calc_ctl_helper(struct mdss_mdp_ctl *ctl, struct mdss_mdp_perf_params *perf, struct mdss_mdp_pipe **left_plist, int left_cnt, struct mdss_mdp_pipe **right_plist, int right_cnt, u32 flags) { struct mdss_mdp_perf_params tmp; struct mdss_data_type *mdata = ctl->mdata; memset(perf, 0, sizeof(*perf)); if (ctl->mixer_left) { mdss_mdp_perf_calc_mixer(ctl->mixer_left, &tmp, left_plist, left_cnt, flags); bitmap_or(perf->bw_vote_mode, perf->bw_vote_mode, tmp.bw_vote_mode, MDSS_MDP_BW_MODE_MAX); perf->max_per_pipe_ib = tmp.max_per_pipe_ib; perf->bw_overlap += tmp.bw_overlap; perf->mdp_clk_rate = tmp.mdp_clk_rate; perf->bw_writeback += tmp.bw_writeback; if (test_bit(MDSS_QOS_SIMPLIFIED_PREFILL, mdata->mdss_qos_map)) perf->bw_prefill += tmp.bw_prefill; else perf->prefill_bytes += tmp.prefill_bytes; } if (ctl->mixer_right) { mdss_mdp_perf_calc_mixer(ctl->mixer_right, &tmp, right_plist, right_cnt, flags); bitmap_or(perf->bw_vote_mode, perf->bw_vote_mode, tmp.bw_vote_mode, MDSS_MDP_BW_MODE_MAX); perf->max_per_pipe_ib = max(perf->max_per_pipe_ib, tmp.max_per_pipe_ib); perf->bw_overlap += tmp.bw_overlap; perf->bw_writeback += tmp.bw_writeback; if (tmp.mdp_clk_rate > perf->mdp_clk_rate) perf->mdp_clk_rate = tmp.mdp_clk_rate; if (test_bit(MDSS_QOS_SIMPLIFIED_PREFILL, mdata->mdss_qos_map)) perf->bw_prefill += tmp.bw_prefill; else perf->prefill_bytes += tmp.prefill_bytes; if (ctl->intf_type) { u64 clk_rate = mdss_mdp_get_pclk_rate(ctl); /* minimum clock rate due to inefficiency in 3dmux */ clk_rate = DIV_ROUND_UP_ULL((clk_rate >> 1) * 9, 8); if (clk_rate > perf->mdp_clk_rate) perf->mdp_clk_rate = clk_rate; } } /* request minimum bandwidth to have bus clock on when display is on */ if (perf->bw_overlap == 0) perf->bw_overlap = SZ_16M; if (!test_bit(MDSS_QOS_SIMPLIFIED_PREFILL, mdata->mdss_qos_map) && (ctl->intf_type != MDSS_MDP_NO_INTF)) { u32 vbp_fac = mdss_mdp_get_vbp_factor_max(ctl); perf->bw_prefill = perf->prefill_bytes; /* * Prefill bandwidth equals the amount of data (number * of prefill_bytes) divided by the the amount time * available (blanking period). It is equivalent that * prefill bytes times a factor in unit Hz, which is * the reciprocal of time. */ perf->bw_prefill *= vbp_fac; } perf->bw_ctl = max(perf->bw_prefill, perf->bw_overlap); pr_debug("ctl=%d prefill bw=%llu overlap bw=%llu mode=0x%lx writeback:%llu\n", ctl->num, perf->bw_prefill, perf->bw_overlap, *(perf->bw_vote_mode), perf->bw_writeback); } static u32 mdss_check_for_flip(struct mdss_mdp_ctl *ctl) { u32 i, panel_orientation; struct mdss_mdp_pipe *pipe; u32 flags = 0; panel_orientation = ctl->mfd->panel_orientation; if (panel_orientation & MDP_FLIP_LR) flags |= MDSS_MAX_BW_LIMIT_HFLIP; if (panel_orientation & MDP_FLIP_UD) flags |= MDSS_MAX_BW_LIMIT_VFLIP; for (i = 0; i < MAX_PIPES_PER_LM; i++) { if ((flags & MDSS_MAX_BW_LIMIT_HFLIP) && (flags & MDSS_MAX_BW_LIMIT_VFLIP)) return flags; if (ctl->mixer_left && ctl->mixer_left->stage_pipe[i]) { pipe = ctl->mixer_left->stage_pipe[i]; if (pipe->flags & MDP_FLIP_LR) flags |= MDSS_MAX_BW_LIMIT_HFLIP; if (pipe->flags & MDP_FLIP_UD) flags |= MDSS_MAX_BW_LIMIT_VFLIP; } if (ctl->mixer_right && ctl->mixer_right->stage_pipe[i]) { pipe = ctl->mixer_right->stage_pipe[i]; if (pipe->flags & MDP_FLIP_LR) flags |= MDSS_MAX_BW_LIMIT_HFLIP; if (pipe->flags & MDP_FLIP_UD) flags |= MDSS_MAX_BW_LIMIT_VFLIP; } } return flags; } static int mdss_mdp_set_threshold_max_bandwidth(struct mdss_mdp_ctl *ctl) { u32 mode, threshold = 0, max = INT_MAX; u32 i = 0; struct mdss_max_bw_settings *max_bw_settings = ctl->mdata->max_bw_settings; if (!ctl->mdata->max_bw_settings_cnt && !ctl->mdata->max_bw_settings) return 0; mode = ctl->mdata->bw_mode_bitmap; if (!((mode & MDSS_MAX_BW_LIMIT_HFLIP) && (mode & MDSS_MAX_BW_LIMIT_VFLIP))) mode |= mdss_check_for_flip(ctl); pr_debug("final mode = %d, bw_mode_bitmap = %d\n", mode, ctl->mdata->bw_mode_bitmap); /* Return minimum bandwidth limit */ for (i = 0; i < ctl->mdata->max_bw_settings_cnt; i++) { if (max_bw_settings[i].mdss_max_bw_mode & mode) { threshold = max_bw_settings[i].mdss_max_bw_val; if (threshold < max) max = threshold; } } return max; } int mdss_mdp_perf_bw_check(struct mdss_mdp_ctl *ctl, struct mdss_mdp_pipe **left_plist, int left_cnt, struct mdss_mdp_pipe **right_plist, int right_cnt) { struct mdss_data_type *mdata = ctl->mdata; struct mdss_mdp_perf_params perf; u32 bw, threshold, i, mode_switch, max_bw; u64 bw_sum_of_intfs = 0; bool is_video_mode; /* we only need bandwidth check on real-time clients (interfaces) */ if (ctl->intf_type == MDSS_MDP_NO_INTF) return 0; __mdss_mdp_perf_calc_ctl_helper(ctl, &perf, left_plist, left_cnt, right_plist, right_cnt, PERF_CALC_PIPE_CALC_SMP_SIZE); ctl->bw_pending = perf.bw_ctl; for (i = 0; i < mdata->nctl; i++) { struct mdss_mdp_ctl *temp = mdata->ctl_off + i; if (temp->power_state == MDSS_PANEL_POWER_ON && (temp->intf_type != MDSS_MDP_NO_INTF)) bw_sum_of_intfs += temp->bw_pending; } /* convert bandwidth to kb */ bw = DIV_ROUND_UP_ULL(bw_sum_of_intfs, 1000); pr_debug("calculated bandwidth=%uk\n", bw); /* mfd validation happens in func */ mode_switch = mdss_fb_get_mode_switch(ctl->mfd); if (mode_switch) is_video_mode = (mode_switch == MIPI_VIDEO_PANEL); else is_video_mode = ctl->is_video_mode; threshold = (is_video_mode || mdss_mdp_video_mode_intf_connected(ctl)) ? mdata->max_bw_low : mdata->max_bw_high; max_bw = mdss_mdp_set_threshold_max_bandwidth(ctl); if (max_bw && (max_bw < threshold)) threshold = max_bw; pr_debug("final threshold bw limit = %d\n", threshold); if (bw > threshold) { ctl->bw_pending = 0; pr_debug("exceeds bandwidth: %ukb > %ukb\n", bw, threshold); return -E2BIG; } return 0; } static u32 mdss_mdp_get_max_pipe_bw(struct mdss_mdp_pipe *pipe) { struct mdss_mdp_ctl *ctl = pipe->mixer_left->ctl; struct mdss_max_bw_settings *max_per_pipe_bw_settings; u32 flags = 0, threshold = 0, panel_orientation; u32 i, max = INT_MAX; if (!ctl->mdata->mdss_per_pipe_bw_cnt && !ctl->mdata->max_per_pipe_bw_settings) return 0; panel_orientation = ctl->mfd->panel_orientation; max_per_pipe_bw_settings = ctl->mdata->max_per_pipe_bw_settings; /* Check for panel orienatation */ panel_orientation = ctl->mfd->panel_orientation; if (panel_orientation & MDP_FLIP_LR) flags |= MDSS_MAX_BW_LIMIT_HFLIP; if (panel_orientation & MDP_FLIP_UD) flags |= MDSS_MAX_BW_LIMIT_VFLIP; /* check for Hflip/Vflip in pipe */ if (pipe->flags & MDP_FLIP_LR) flags |= MDSS_MAX_BW_LIMIT_HFLIP; if (pipe->flags & MDP_FLIP_UD) flags |= MDSS_MAX_BW_LIMIT_VFLIP; flags |= ctl->mdata->bw_mode_bitmap; for (i = 0; i < ctl->mdata->mdss_per_pipe_bw_cnt; i++) { if (max_per_pipe_bw_settings[i].mdss_max_bw_mode & flags) { threshold = max_per_pipe_bw_settings[i].mdss_max_bw_val; if (threshold < max) max = threshold; } } return max; } int mdss_mdp_perf_bw_check_pipe(struct mdss_mdp_perf_params *perf, struct mdss_mdp_pipe *pipe) { struct mdss_data_type *mdata = pipe->mixer_left->ctl->mdata; struct mdss_mdp_ctl *ctl = pipe->mixer_left->ctl; u32 vbp_fac, threshold; u64 prefill_bw, pipe_bw, max_pipe_bw; /* we only need bandwidth check on real-time clients (interfaces) */ if (ctl->intf_type == MDSS_MDP_NO_INTF) return 0; if (test_bit(MDSS_QOS_SIMPLIFIED_PREFILL, mdata->mdss_qos_map)) { prefill_bw = perf->bw_prefill; } else { vbp_fac = mdss_mdp_get_vbp_factor_max(ctl); prefill_bw = perf->prefill_bytes * vbp_fac; } pipe_bw = max(prefill_bw, perf->bw_overlap); pr_debug("prefill=%llu, vbp_fac=%u, overlap=%llu\n", prefill_bw, vbp_fac, perf->bw_overlap); /* convert bandwidth to kb */ pipe_bw = DIV_ROUND_UP_ULL(pipe_bw, 1000); threshold = mdata->max_bw_per_pipe; max_pipe_bw = mdss_mdp_get_max_pipe_bw(pipe); if (max_pipe_bw && (max_pipe_bw < threshold)) threshold = max_pipe_bw; pr_debug("bw=%llu threshold=%u\n", pipe_bw, threshold); if (threshold && pipe_bw > threshold) { pr_debug("pipe exceeds bandwidth: %llukb > %ukb\n", pipe_bw, threshold); return -E2BIG; } return 0; } static void mdss_mdp_perf_calc_ctl(struct mdss_mdp_ctl *ctl, struct mdss_mdp_perf_params *perf) { struct mdss_mdp_pipe *left_plist[MAX_PIPES_PER_LM]; struct mdss_mdp_pipe *right_plist[MAX_PIPES_PER_LM]; int i, left_cnt = 0, right_cnt = 0; for (i = 0; i < MAX_PIPES_PER_LM; i++) { if (ctl->mixer_left && ctl->mixer_left->stage_pipe[i]) { left_plist[left_cnt] = ctl->mixer_left->stage_pipe[i]; left_cnt++; } if (ctl->mixer_right && ctl->mixer_right->stage_pipe[i]) { right_plist[right_cnt] = ctl->mixer_right->stage_pipe[i]; right_cnt++; } } __mdss_mdp_perf_calc_ctl_helper(ctl, perf, left_plist, left_cnt, right_plist, right_cnt, 0); if (ctl->is_video_mode || ((ctl->intf_type != MDSS_MDP_NO_INTF) && mdss_mdp_video_mode_intf_connected(ctl))) { perf->bw_ctl = max(apply_fudge_factor(perf->bw_overlap, &mdss_res->ib_factor_overlap), apply_fudge_factor(perf->bw_prefill, &mdss_res->ib_factor)); perf->bw_writeback = apply_fudge_factor(perf->bw_writeback, &mdss_res->ib_factor); } pr_debug("ctl=%d clk_rate=%u\n", ctl->num, perf->mdp_clk_rate); pr_debug("bw_overlap=%llu bw_prefill=%llu prefill_bytes=%d\n", perf->bw_overlap, perf->bw_prefill, perf->prefill_bytes); } static void set_status(u32 *value, bool status, u32 bit_num) { if (status) *value |= BIT(bit_num); else *value &= ~BIT(bit_num); } /** * @ mdss_mdp_ctl_perf_set_transaction_status() - * Set the status of the on-going operations * for the command mode panels. * @ctl - pointer to a ctl * * This function is called to set the status bit in the perf_transaction_status * according to the operation that it is on-going for the command mode * panels, where: * * PERF_SW_COMMIT_STATE: * 1 - If SW operation has been commited and bw * has been requested (HW transaction have not started yet). * 0 - If there is no SW operation pending * PERF_HW_MDP_STATE: * 1 - If HW transaction is on-going * 0 - If there is no HW transaction on going (ping-pong interrupt * has finished) * Only if both states are zero there are no pending operations and * BW could be released. * State can be queried calling "mdss_mdp_ctl_perf_get_transaction_status" */ void mdss_mdp_ctl_perf_set_transaction_status(struct mdss_mdp_ctl *ctl, enum mdss_mdp_perf_state_type component, bool new_status) { u32 previous_transaction; bool previous_status; unsigned long flags; if (!ctl || !ctl->panel_data || (ctl->panel_data->panel_info.type != MIPI_CMD_PANEL)) return; spin_lock_irqsave(&ctl->spin_lock, flags); previous_transaction = ctl->perf_transaction_status; previous_status = previous_transaction & BIT(component) ? PERF_STATUS_BUSY : PERF_STATUS_DONE; /* * If we set "done" state when previous state was not "busy", * we want to print a warning since maybe there is a state * that we are not considering */ WARN((PERF_STATUS_DONE == new_status) && (PERF_STATUS_BUSY != previous_status), "unexpected previous state for component: %d\n", component); set_status(&ctl->perf_transaction_status, new_status, (u32)component); pr_debug("ctl:%d component:%d previous:%d status:%d\n", ctl->num, component, previous_transaction, ctl->perf_transaction_status); pr_debug("ctl:%d new_status:%d prev_status:%d\n", ctl->num, new_status, previous_status); spin_unlock_irqrestore(&ctl->spin_lock, flags); } /** * @ mdss_mdp_ctl_perf_get_transaction_status() - * Get the status of the on-going operations * for the command mode panels. * @ctl - pointer to a ctl * * Return: * The status of the transactions for the command mode panels, * note that the bandwidth can be released only if all transaction * status bits are zero. */ u32 mdss_mdp_ctl_perf_get_transaction_status(struct mdss_mdp_ctl *ctl) { unsigned long flags; u32 transaction_status; if (!ctl) return PERF_STATUS_BUSY; /* * If Rotator mode and bandwidth has been released; return STATUS_DONE * so the bandwidth is re-calculated. */ if (ctl->mixer_left && ctl->mixer_left->rotator_mode && !ctl->perf_release_ctl_bw) return PERF_STATUS_DONE; /* * If Video Mode or not valid data to determine the status, return busy * status, so the bandwidth cannot be freed by the caller */ if (!ctl || !ctl->panel_data || (ctl->panel_data->panel_info.type != MIPI_CMD_PANEL)) { return PERF_STATUS_BUSY; } spin_lock_irqsave(&ctl->spin_lock, flags); transaction_status = ctl->perf_transaction_status; spin_unlock_irqrestore(&ctl->spin_lock, flags); pr_debug("ctl:%d status:%d\n", ctl->num, transaction_status); return transaction_status; } /** * @ mdss_mdp_ctl_perf_update_traffic_shaper_bw - * Apply BW fudge factor to rotator * if mdp clock increased during * rotation session. * @ctl - pointer to the controller * @mdp_clk - new mdp clock * * If mdp clock increased and traffic shaper is enabled, we need to * account for the additional bandwidth that will be requested by * the rotator when running at a higher clock, so we apply a fudge * factor proportional to the mdp clock increment. */ static void mdss_mdp_ctl_perf_update_traffic_shaper_bw(struct mdss_mdp_ctl *ctl, u32 mdp_clk) { if ((mdp_clk > 0) && (mdp_clk > ctl->traffic_shaper_mdp_clk)) { ctl->cur_perf.bw_ctl = fudge_factor(ctl->cur_perf.bw_ctl, mdp_clk, ctl->traffic_shaper_mdp_clk); pr_debug("traffic shaper bw:%llu, clk: %d, mdp_clk:%d\n", ctl->cur_perf.bw_ctl, ctl->traffic_shaper_mdp_clk, mdp_clk); } } static u64 mdss_mdp_ctl_calc_client_vote(struct mdss_data_type *mdata, struct mdss_mdp_perf_params *perf, bool nrt_client, u32 mdp_clk) { u64 bw_sum_of_intfs = 0; int i; struct mdss_mdp_ctl *ctl; struct mdss_mdp_mixer *mixer; struct mdss_mdp_perf_params perf_temp; bitmap_zero(perf_temp.bw_vote_mode, MDSS_MDP_BW_MODE_MAX); for (i = 0; i < mdata->nctl; i++) { ctl = mdata->ctl_off + i; mixer = ctl->mixer_left; if (mdss_mdp_ctl_is_power_on(ctl) && /* RealTime clients */ ((!nrt_client && ctl->mixer_left && !ctl->mixer_left->rotator_mode) || /* Non-RealTime clients */ (nrt_client && mdss_mdp_is_nrt_ctl_path(ctl)))) { /* Skip rotation layers as bw calc by rot driver */ if (ctl->mixer_left && ctl->mixer_left->rotator_mode) continue; /* * If traffic shaper is enabled we must check * if additional bandwidth is required. */ if (ctl->traffic_shaper_enabled) mdss_mdp_ctl_perf_update_traffic_shaper_bw (ctl, mdp_clk); mdss_mdp_get_bw_vote_mode(ctl, mdata->mdp_rev, &perf_temp, PERF_CALC_VOTE_MODE_CTL, 0); bitmap_or(perf_temp.bw_vote_mode, perf_temp.bw_vote_mode, ctl->cur_perf.bw_vote_mode, MDSS_MDP_BW_MODE_MAX); if (nrt_client && ctl->mixer_left && !ctl->mixer_left->rotator_mode) { bw_sum_of_intfs += ctl->cur_perf.bw_writeback; continue; } perf->max_per_pipe_ib = max(perf->max_per_pipe_ib, ctl->cur_perf.max_per_pipe_ib); bw_sum_of_intfs += ctl->cur_perf.bw_ctl; pr_debug("ctl_num=%d bw=%llu mode=0x%lx\n", ctl->num, ctl->cur_perf.bw_ctl, *(ctl->cur_perf.bw_vote_mode)); } } return bw_sum_of_intfs; } static void mdss_mdp_ctl_update_client_vote(struct mdss_data_type *mdata, struct mdss_mdp_perf_params *perf, bool nrt_client, u64 bw_vote) { u64 bus_ab_quota, bus_ib_quota; bus_ab_quota = max(bw_vote, mdata->perf_tune.min_bus_vote); if (test_bit(MDSS_QOS_PER_PIPE_IB, mdata->mdss_qos_map)) { if (!nrt_client) bus_ib_quota = perf->max_per_pipe_ib; else bus_ib_quota = 0; } else { bus_ib_quota = bw_vote; } if (test_bit(MDSS_MDP_BW_MODE_SINGLE_LAYER, perf->bw_vote_mode) && (bus_ib_quota >= PERF_SINGLE_PIPE_BW_FLOOR)) { struct mult_factor ib_factor_vscaling; ib_factor_vscaling.numer = 2; ib_factor_vscaling.denom = 1; bus_ib_quota = apply_fudge_factor(bus_ib_quota, &ib_factor_vscaling); } if (test_bit(MDSS_QOS_PER_PIPE_IB, mdata->mdss_qos_map) && !nrt_client) bus_ib_quota = apply_fudge_factor(bus_ib_quota, &mdata->per_pipe_ib_factor); bus_ab_quota = apply_fudge_factor(bus_ab_quota, &mdss_res->ab_factor); ATRACE_INT("bus_quota", bus_ib_quota); mdss_bus_scale_set_quota(nrt_client ? MDSS_MDP_NRT : MDSS_MDP_RT, bus_ab_quota, bus_ib_quota); pr_debug("client:%s ab=%llu ib=%llu\n", nrt_client ? "nrt" : "rt", bus_ab_quota, bus_ib_quota); } static void mdss_mdp_ctl_perf_update_bus(struct mdss_data_type *mdata, struct mdss_mdp_ctl *ctl, u32 mdp_clk) { u64 bw_sum_of_rt_intfs = 0, bw_sum_of_nrt_intfs = 0; struct mdss_mdp_perf_params perf = {0}; ATRACE_BEGIN(__func__); /* * non-real time client * 1. rotator path * 2. writeback output path */ if (mdss_mdp_is_nrt_ctl_path(ctl)) { bitmap_zero(perf.bw_vote_mode, MDSS_MDP_BW_MODE_MAX); bw_sum_of_nrt_intfs = mdss_mdp_ctl_calc_client_vote(mdata, &perf, true, mdp_clk); mdss_mdp_ctl_update_client_vote(mdata, &perf, true, bw_sum_of_nrt_intfs); } /* * real time client * 1. any realtime interface - primary or secondary interface * 2. writeback input path */ if (!mdss_mdp_is_nrt_ctl_path(ctl) || (ctl->intf_num == MDSS_MDP_NO_INTF)) { bitmap_zero(perf.bw_vote_mode, MDSS_MDP_BW_MODE_MAX); bw_sum_of_rt_intfs = mdss_mdp_ctl_calc_client_vote(mdata, &perf, false, mdp_clk); mdss_mdp_ctl_update_client_vote(mdata, &perf, false, bw_sum_of_rt_intfs); } ATRACE_END(__func__); } /** * @mdss_mdp_ctl_perf_release_bw() - request zero bandwidth * @ctl - pointer to a ctl * * Function checks a state variable for the ctl, if all pending commit * requests are done, meaning no more bandwidth is needed, release * bandwidth request. */ void mdss_mdp_ctl_perf_release_bw(struct mdss_mdp_ctl *ctl) { int transaction_status; struct mdss_data_type *mdata; int i; /* only do this for command panel */ if (!ctl || !ctl->mdata || !ctl->panel_data || (ctl->panel_data->panel_info.type != MIPI_CMD_PANEL)) return; mutex_lock(&mdss_mdp_ctl_lock); mdata = ctl->mdata; /* * If video interface present, cmd panel bandwidth cannot be * released. */ for (i = 0; i < mdata->nctl; i++) { struct mdss_mdp_ctl *ctl_local = mdata->ctl_off + i; if (mdss_mdp_ctl_is_power_on(ctl_local) && ctl_local->is_video_mode) goto exit; } transaction_status = mdss_mdp_ctl_perf_get_transaction_status(ctl); pr_debug("transaction_status=0x%x\n", transaction_status); /*Release the bandwidth only if there are no transactions pending*/ if (!transaction_status && mdata->enable_bw_release) { /* * for splitdisplay if release_bw is called using secondary * then find the main ctl and release BW for main ctl because * BW is always calculated/stored using main ctl. */ struct mdss_mdp_ctl *ctl_local = mdss_mdp_get_main_ctl(ctl) ? : ctl; trace_mdp_cmd_release_bw(ctl_local->num); ctl_local->cur_perf.bw_ctl = 0; ctl_local->new_perf.bw_ctl = 0; pr_debug("Release BW ctl=%d\n", ctl_local->num); mdss_mdp_ctl_perf_update_bus(mdata, ctl, 0); } exit: mutex_unlock(&mdss_mdp_ctl_lock); } static int mdss_mdp_select_clk_lvl(struct mdss_data_type *mdata, u32 clk_rate) { int i; for (i = 0; i < mdata->nclk_lvl; i++) { if (clk_rate > mdata->clock_levels[i]) { continue; } else { clk_rate = mdata->clock_levels[i]; break; } } return clk_rate; } static void mdss_mdp_perf_release_ctl_bw(struct mdss_mdp_ctl *ctl, struct mdss_mdp_perf_params *perf) { /* Set to zero controller bandwidth. */ memset(perf, 0, sizeof(*perf)); ctl->perf_release_ctl_bw = false; } u32 mdss_mdp_get_mdp_clk_rate(struct mdss_data_type *mdata) { u32 clk_rate = 0; uint i; struct clk *clk = mdss_mdp_get_clk(MDSS_CLK_MDP_CORE); for (i = 0; i < mdata->nctl; i++) { struct mdss_mdp_ctl *ctl; ctl = mdata->ctl_off + i; if (mdss_mdp_ctl_is_power_on(ctl)) { clk_rate = max(ctl->cur_perf.mdp_clk_rate, clk_rate); clk_rate = clk_round_rate(clk, clk_rate); } } clk_rate = mdss_mdp_select_clk_lvl(mdata, clk_rate); pr_debug("clk:%u nctl:%d\n", clk_rate, mdata->nctl); return clk_rate; } static bool is_traffic_shaper_enabled(struct mdss_data_type *mdata) { uint i; for (i = 0; i < mdata->nctl; i++) { struct mdss_mdp_ctl *ctl; ctl = mdata->ctl_off + i; if (mdss_mdp_ctl_is_power_on(ctl)) if (ctl->traffic_shaper_enabled) return true; } return false; } static void mdss_mdp_ctl_perf_update(struct mdss_mdp_ctl *ctl, int params_changed, bool stop_req) { struct mdss_mdp_perf_params *new, *old; int update_bus = 0, update_clk = 0; struct mdss_data_type *mdata; bool is_bw_released; u32 clk_rate = 0; if (!ctl || !ctl->mdata) return; ATRACE_BEGIN(__func__); mutex_lock(&mdss_mdp_ctl_lock); mdata = ctl->mdata; old = &ctl->cur_perf; new = &ctl->new_perf; /* * We could have released the bandwidth if there were no transactions * pending, so we want to re-calculate the bandwidth in this situation. */ is_bw_released = !mdss_mdp_ctl_perf_get_transaction_status(ctl); if (mdss_mdp_ctl_is_power_on(ctl)) { /* Skip perf update if ctl is used for rotation */ if (ctl->mixer_left && ctl->mixer_left->rotator_mode) goto end; if (ctl->perf_release_ctl_bw && mdata->enable_rotator_bw_release) mdss_mdp_perf_release_ctl_bw(ctl, new); else if (is_bw_released || params_changed) mdss_mdp_perf_calc_ctl(ctl, new); /* * three cases for bus bandwidth update. * 1. new bandwidth vote or writeback output vote * are higher than current vote for update request. * 2. new bandwidth vote or writeback output vote are * lower than current vote at end of commit or stop. * 3. end of writeback/rotator session - last chance to * non-realtime remove vote. */ if ((params_changed && ((new->bw_ctl > old->bw_ctl) || (new->bw_writeback > old->bw_writeback))) || (!params_changed && ((new->bw_ctl < old->bw_ctl) || (new->bw_writeback < old->bw_writeback))) || (stop_req && mdss_mdp_is_nrt_ctl_path(ctl))) { pr_debug("c=%d p=%d new_bw=%llu,old_bw=%llu\n", ctl->num, params_changed, new->bw_ctl, old->bw_ctl); if (stop_req) { old->bw_writeback = 0; old->bw_ctl = 0; old->max_per_pipe_ib = 0; } else { old->bw_ctl = new->bw_ctl; old->max_per_pipe_ib = new->max_per_pipe_ib; old->bw_writeback = new->bw_writeback; } bitmap_copy(old->bw_vote_mode, new->bw_vote_mode, MDSS_MDP_BW_MODE_MAX); update_bus = 1; } /* * If traffic shaper is enabled, we do not decrease the clock, * otherwise we would increase traffic shaper latency. Clock * would be decreased after traffic shaper is done. */ if ((params_changed && (new->mdp_clk_rate > old->mdp_clk_rate)) || (!params_changed && (new->mdp_clk_rate < old->mdp_clk_rate) && (false == is_traffic_shaper_enabled(mdata)))) { old->mdp_clk_rate = new->mdp_clk_rate; update_clk = 1; } } else { memset(old, 0, sizeof(*old)); memset(new, 0, sizeof(*new)); update_bus = 1; update_clk = 1; } /* * Calculate mdp clock before bandwidth calculation. If traffic shaper * is enabled and clock increased, the bandwidth calculation can * use the new clock for the rotator bw calculation. */ if (update_clk) clk_rate = mdss_mdp_get_mdp_clk_rate(mdata); if (update_bus) mdss_mdp_ctl_perf_update_bus(mdata, ctl, clk_rate); /* * Update the clock after bandwidth vote to ensure * bandwidth is available before clock rate is increased. */ if (update_clk) { ATRACE_INT("mdp_clk", clk_rate); mdss_mdp_set_clk_rate(clk_rate); pr_debug("update clk rate = %d HZ\n", clk_rate); } end: mutex_unlock(&mdss_mdp_ctl_lock); ATRACE_END(__func__); } struct mdss_mdp_ctl *mdss_mdp_ctl_alloc(struct mdss_data_type *mdata, u32 off) { struct mdss_mdp_ctl *ctl = NULL; u32 cnum; u32 nctl = mdata->nctl; mutex_lock(&mdss_mdp_ctl_lock); if (mdata->wfd_mode == MDSS_MDP_WFD_SHARED) nctl++; for (cnum = off; cnum < nctl; cnum++) { ctl = mdata->ctl_off + cnum; if (ctl->ref_cnt == 0) { ctl->ref_cnt++; ctl->mdata = mdata; mutex_init(&ctl->lock); mutex_init(&ctl->offlock); mutex_init(&ctl->flush_lock); mutex_init(&ctl->rsrc_lock); spin_lock_init(&ctl->spin_lock); BLOCKING_INIT_NOTIFIER_HEAD(&ctl->notifier_head); pr_debug("alloc ctl_num=%d\n", ctl->num); break; } ctl = NULL; } mutex_unlock(&mdss_mdp_ctl_lock); return ctl; } int mdss_mdp_ctl_free(struct mdss_mdp_ctl *ctl) { if (!ctl) return -ENODEV; pr_debug("free ctl_num=%d ref_cnt=%d\n", ctl->num, ctl->ref_cnt); if (!ctl->ref_cnt) { pr_err("called with ref_cnt=0\n"); return -EINVAL; } if (ctl->mixer_left && ctl->mixer_left->ref_cnt) mdss_mdp_mixer_free(ctl->mixer_left); if (ctl->mixer_right && ctl->mixer_right->ref_cnt) mdss_mdp_mixer_free(ctl->mixer_right); if (ctl->wb) mdss_mdp_wb_free(ctl->wb); mutex_lock(&mdss_mdp_ctl_lock); ctl->ref_cnt--; ctl->intf_num = MDSS_MDP_NO_INTF; ctl->intf_type = MDSS_MDP_NO_INTF; ctl->is_secure = false; ctl->power_state = MDSS_PANEL_POWER_OFF; ctl->mixer_left = NULL; ctl->mixer_right = NULL; ctl->wb = NULL; ctl->cdm = NULL; memset(&ctl->ops, 0, sizeof(ctl->ops)); mutex_unlock(&mdss_mdp_ctl_lock); return 0; } /** * mdss_mdp_mixer_alloc() - allocate mdp mixer. * @ctl: mdp controller. * @type: specifying type of mixer requested. interface or writeback. * @mux: specifies if mixer allocation is for split_fb cases. * @rotator: specifies if the mixer requested for rotator operations. * * This function is called to request allocation of mdp mixer * during mdp controller path setup. * * Return: mdp mixer structure that is allocated. * NULL if mixer allocation fails. */ struct mdss_mdp_mixer *mdss_mdp_mixer_alloc( struct mdss_mdp_ctl *ctl, u32 type, int mux, int rotator) { struct mdss_mdp_mixer *mixer = NULL, *alt_mixer = NULL; u32 nmixers_intf; u32 nmixers_wb; u32 i; u32 nmixers; struct mdss_mdp_mixer *mixer_pool = NULL; if (!ctl || !ctl->mdata) return NULL; mutex_lock(&mdss_mdp_ctl_lock); nmixers_intf = ctl->mdata->nmixers_intf; nmixers_wb = ctl->mdata->nmixers_wb; switch (type) { case MDSS_MDP_MIXER_TYPE_INTF: mixer_pool = ctl->mdata->mixer_intf; nmixers = nmixers_intf; /* * try to reserve first layer mixer for write back if * assertive display needs to be supported through wfd */ if (ctl->mdata->has_wb_ad && ctl->intf_num && ((ctl->panel_data->panel_info.type != MIPI_CMD_PANEL) || !mux)) { alt_mixer = mixer_pool; mixer_pool++; nmixers--; } else if ((ctl->panel_data->panel_info.type == WRITEBACK_PANEL) && (ctl->mdata->ndspp < nmixers)) { mixer_pool += ctl->mdata->ndspp; nmixers -= ctl->mdata->ndspp; } break; case MDSS_MDP_MIXER_TYPE_WRITEBACK: mixer_pool = ctl->mdata->mixer_wb; nmixers = nmixers_wb; break; default: nmixers = 0; pr_err("invalid pipe type %d\n", type); break; } /*Allocate virtual wb mixer if no dedicated wfd wb blk is present*/ if ((ctl->mdata->wfd_mode == MDSS_MDP_WFD_SHARED) && (type == MDSS_MDP_MIXER_TYPE_WRITEBACK)) nmixers += 1; for (i = 0; i < nmixers; i++) { mixer = mixer_pool + i; if (mixer->ref_cnt == 0) break; mixer = NULL; } if (!mixer && alt_mixer && (alt_mixer->ref_cnt == 0)) mixer = alt_mixer; if (mixer) { mixer->ref_cnt++; mixer->params_changed++; mixer->ctl = ctl; mixer->next_pipe_map = 0; mixer->pipe_mapped = 0; pr_debug("alloc mixer num %d for ctl=%d\n", mixer->num, ctl->num); } mutex_unlock(&mdss_mdp_ctl_lock); return mixer; } struct mdss_mdp_mixer *mdss_mdp_mixer_assign(u32 id, bool wb) { struct mdss_mdp_mixer *mixer = NULL; struct mdss_data_type *mdata = mdss_mdp_get_mdata(); mutex_lock(&mdss_mdp_ctl_lock); if (wb && id < mdata->nmixers_wb) mixer = mdata->mixer_wb + id; else if (!wb && id < mdata->nmixers_intf) mixer = mdata->mixer_intf + id; if (mixer && mixer->ref_cnt == 0) { mixer->ref_cnt++; mixer->params_changed++; } else { pr_err("mixer is in use already = %d\n", id); mixer = NULL; } mutex_unlock(&mdss_mdp_ctl_lock); return mixer; } int mdss_mdp_mixer_free(struct mdss_mdp_mixer *mixer) { if (!mixer) return -ENODEV; pr_debug("free mixer_num=%d ref_cnt=%d\n", mixer->num, mixer->ref_cnt); if (!mixer->ref_cnt) { pr_err("called with ref_cnt=0\n"); return -EINVAL; } mutex_lock(&mdss_mdp_ctl_lock); mixer->ref_cnt--; mixer->is_right_mixer = false; mutex_unlock(&mdss_mdp_ctl_lock); return 0; } struct mdss_mdp_mixer *mdss_mdp_block_mixer_alloc(void) { struct mdss_mdp_ctl *ctl = NULL; struct mdss_mdp_mixer *mixer = NULL; struct mdss_mdp_writeback *wb = NULL; struct mdss_data_type *mdata = mdss_mdp_get_mdata(); u32 offset = mdss_mdp_get_wb_ctl_support(mdata, true); int ret = 0; ctl = mdss_mdp_ctl_alloc(mdss_res, offset); if (!ctl) { pr_debug("unable to allocate wb ctl\n"); return NULL; } mixer = mdss_mdp_mixer_alloc(ctl, MDSS_MDP_MIXER_TYPE_WRITEBACK, false, true); if (!mixer) { pr_debug("unable to allocate wb mixer\n"); goto error; } mixer->rotator_mode = 1; switch (mixer->num) { case MDSS_MDP_WB_LAYERMIXER0: ctl->opmode = MDSS_MDP_CTL_OP_ROT0_MODE; break; case MDSS_MDP_WB_LAYERMIXER1: ctl->opmode = MDSS_MDP_CTL_OP_ROT1_MODE; break; default: pr_err("invalid layer mixer=%d\n", mixer->num); goto error; } wb = mdss_mdp_wb_alloc(MDSS_MDP_WB_ROTATOR, ctl->num); if (!wb) { pr_err("Unable to allocate writeback block\n"); goto error; } ctl->mixer_left = mixer; ctl->ops.start_fnc = mdss_mdp_writeback_start; ctl->power_state = MDSS_PANEL_POWER_ON; ctl->wb_type = MDSS_MDP_WB_CTL_TYPE_BLOCK; mixer->ctl = ctl; ctl->wb = wb; if (ctl->ops.start_fnc) ret = ctl->ops.start_fnc(ctl); if (!ret) return mixer; error: if (wb) mdss_mdp_wb_free(wb); if (mixer) mdss_mdp_mixer_free(mixer); if (ctl) mdss_mdp_ctl_free(ctl); return NULL; } int mdss_mdp_block_mixer_destroy(struct mdss_mdp_mixer *mixer) { struct mdss_mdp_ctl *ctl; if (!mixer || !mixer->ctl) { pr_err("invalid ctl handle\n"); return -ENODEV; } ctl = mixer->ctl; mixer->rotator_mode = 0; pr_debug("destroy ctl=%d mixer=%d\n", ctl->num, mixer->num); if (ctl->ops.stop_fnc) ctl->ops.stop_fnc(ctl, MDSS_PANEL_POWER_OFF); mdss_mdp_ctl_free(ctl); mdss_mdp_ctl_perf_update(ctl, 0, true); return 0; } int mdss_mdp_display_wakeup_time(struct mdss_mdp_ctl *ctl, ktime_t *wakeup_time) { struct mdss_panel_info *pinfo; u32 clk_rate, clk_period; u32 current_line, total_line; u32 time_of_line, time_to_vsync, adjust_line_ns; ktime_t current_time = ktime_get(); if (!ctl->ops.read_line_cnt_fnc) return -ENOSYS; pinfo = &ctl->panel_data->panel_info; if (!pinfo) return -ENODEV; clk_rate = mdss_mdp_get_pclk_rate(ctl); clk_rate /= 1000; /* in kHz */ if (!clk_rate) return -EINVAL; /* * calculate clk_period as pico second to maintain good * accuracy with high pclk rate and this number is in 17 bit * range. */ clk_period = 1000000000 / clk_rate; if (!clk_period) return -EINVAL; time_of_line = (pinfo->lcdc.h_back_porch + pinfo->lcdc.h_front_porch + pinfo->lcdc.h_pulse_width + pinfo->xres) * clk_period; time_of_line /= 1000; /* in nano second */ if (!time_of_line) return -EINVAL; current_line = ctl->ops.read_line_cnt_fnc(ctl); total_line = pinfo->lcdc.v_back_porch + pinfo->lcdc.v_front_porch + pinfo->lcdc.v_pulse_width + pinfo->yres; if (current_line >= total_line) time_to_vsync = time_of_line * total_line; else time_to_vsync = time_of_line * (total_line - current_line); if (pinfo->adjust_timer_delay_ms) { adjust_line_ns = pinfo->adjust_timer_delay_ms * 1000000; /* convert to ns */ /* Ignore large values of adjust_line_ns\ */ if (time_to_vsync > adjust_line_ns) time_to_vsync -= adjust_line_ns; } if (!time_to_vsync) return -EINVAL; *wakeup_time = ktime_add_ns(current_time, time_to_vsync); pr_debug("clk_rate=%dkHz clk_period=%d cur_line=%d tot_line=%d\n", clk_rate, clk_period, current_line, total_line); pr_debug("time_to_vsync=%d current_time=%d wakeup_time=%d\n", time_to_vsync, (int)ktime_to_ms(current_time), (int)ktime_to_ms(*wakeup_time)); return 0; } static void __cpu_pm_work_handler(struct work_struct *work) { struct mdss_mdp_ctl *ctl = container_of(work, typeof(*ctl), cpu_pm_work); ktime_t wakeup_time; struct mdss_overlay_private *mdp5_data; if (!ctl) return; if (mdss_mdp_display_wakeup_time(ctl, &wakeup_time)) return; mdp5_data = mfd_to_mdp5_data(ctl->mfd); activate_event_timer(mdp5_data->cpu_pm_hdl, wakeup_time); } void mdss_mdp_ctl_event_timer(void *data) { struct mdss_overlay_private *mdp5_data = (struct mdss_overlay_private *)data; struct mdss_mdp_ctl *ctl = mdp5_data->ctl; if (mdp5_data->cpu_pm_hdl && ctl && ctl->autorefresh_frame_cnt) schedule_work(&ctl->cpu_pm_work); } int mdss_mdp_ctl_cmd_set_autorefresh(struct mdss_mdp_ctl *ctl, int frame_cnt) { int ret = 0; struct mdss_overlay_private *mdp5_data = mfd_to_mdp5_data(ctl->mfd); if (ctl->panel_data->panel_info.type == MIPI_CMD_PANEL) { ret = mdss_mdp_cmd_set_autorefresh_mode(ctl, frame_cnt); if (!ret) { ctl->autorefresh_frame_cnt = frame_cnt; if (frame_cnt) mdss_mdp_ctl_event_timer(mdp5_data); } } else { pr_err("Mode not supported for this panel\n"); ret = -EINVAL; } return ret; } int mdss_mdp_ctl_cmd_get_autorefresh(struct mdss_mdp_ctl *ctl) { if (ctl->panel_data->panel_info.type == MIPI_CMD_PANEL) return mdss_mdp_cmd_get_autorefresh_mode(ctl); else return 0; } int mdss_mdp_ctl_splash_finish(struct mdss_mdp_ctl *ctl, bool handoff) { switch (ctl->panel_data->panel_info.type) { case MIPI_VIDEO_PANEL: case EDP_PANEL: case DTV_PANEL: return mdss_mdp_video_reconfigure_splash_done(ctl, handoff); case MIPI_CMD_PANEL: return mdss_mdp_cmd_reconfigure_splash_done(ctl, handoff); default: return 0; } } static inline int mdss_mdp_set_split_ctl(struct mdss_mdp_ctl *ctl, struct mdss_mdp_ctl *split_ctl) { struct mdss_data_type *mdata = mdss_mdp_get_mdata(); struct mdss_panel_info *pinfo; if (!ctl || !split_ctl || !mdata) return -ENODEV; /* setup split ctl mixer as right mixer of original ctl so that * original ctl can work the same way as dual pipe solution */ ctl->mixer_right = split_ctl->mixer_left; pinfo = &ctl->panel_data->panel_info; /* add x offset from left ctl's border */ split_ctl->border_x_off += (pinfo->lcdc.border_left + pinfo->lcdc.border_right); return 0; } static inline void __dsc_enable(struct mdss_mdp_mixer *mixer) { mdss_mdp_pingpong_write(mixer->pingpong_base, MDSS_MDP_REG_PP_DSC_MODE, 1); } static inline void __dsc_disable(struct mdss_mdp_mixer *mixer) { struct mdss_data_type *mdata = mdss_mdp_get_mdata(); char __iomem *offset = mdata->mdp_base; mdss_mdp_pingpong_write(mixer->pingpong_base, MDSS_MDP_REG_PP_DSC_MODE, 0); if (mixer->num == MDSS_MDP_INTF_LAYERMIXER0) { offset += MDSS_MDP_DSC_0_OFFSET; } else if (mixer->num == MDSS_MDP_INTF_LAYERMIXER1) { offset += MDSS_MDP_DSC_1_OFFSET; } else { pr_err("invalid mixer numer=%d\n", mixer->num); return; } writel_relaxed(0, offset + MDSS_MDP_REG_DSC_COMMON_MODE); } static void __dsc_config(struct mdss_mdp_mixer *mixer, struct dsc_desc *dsc, u32 mode, bool ich_reset_override) { u32 data; int bpp, lsb; struct mdss_data_type *mdata = mdss_mdp_get_mdata(); char __iomem *offset = mdata->mdp_base; u32 initial_lines = dsc->initial_lines; bool is_cmd_mode = !(mode & BIT(2)); data = mdss_mdp_pingpong_read(mixer->pingpong_base, MDSS_MDP_REG_PP_DCE_DATA_OUT_SWAP); data |= BIT(18); /* endian flip */ mdss_mdp_pingpong_write(mixer->pingpong_base, MDSS_MDP_REG_PP_DCE_DATA_OUT_SWAP, data); if (mixer->num == MDSS_MDP_INTF_LAYERMIXER0) { offset += MDSS_MDP_DSC_0_OFFSET; } else if (mixer->num == MDSS_MDP_INTF_LAYERMIXER1) { offset += MDSS_MDP_DSC_1_OFFSET; } else { pr_err("invalid mixer numer=%d\n", mixer->num); return; } writel_relaxed(mode, offset + MDSS_MDP_REG_DSC_COMMON_MODE); data = 0; if (ich_reset_override) data = 3 << 28; if (is_cmd_mode) initial_lines += 1; data |= (initial_lines << 20); data |= ((dsc->slice_last_group_size - 1) << 18); /* bpp is 6.4 format, 4 LSBs bits are for fractional part */ lsb = dsc->bpp % 4; bpp = dsc->bpp / 4; bpp *= 4; /* either 8 or 12 */ bpp <<= 4; bpp |= lsb; data |= (bpp << 8); data |= (dsc->block_pred_enable << 7); data |= (dsc->line_buf_depth << 3); data |= (dsc->enable_422 << 2); data |= (dsc->convert_rgb << 1); data |= dsc->input_10_bits; pr_debug("%d %d %d %d %d %d %d %d %d, data=%x\n", ich_reset_override, initial_lines , dsc->slice_last_group_size, dsc->bpp, dsc->block_pred_enable, dsc->line_buf_depth, dsc->enable_422, dsc->convert_rgb, dsc->input_10_bits, data); writel_relaxed(data, offset + MDSS_MDP_REG_DSC_ENC); data = dsc->pic_width << 16; data |= dsc->pic_height; writel_relaxed(data, offset + MDSS_MDP_REG_DSC_PICTURE); data = dsc->slice_width << 16; data |= dsc->slice_height; writel_relaxed(data, offset + MDSS_MDP_REG_DSC_SLICE); data = dsc->chunk_size << 16; writel_relaxed(data, offset + MDSS_MDP_REG_DSC_CHUNK_SIZE); pr_debug("mix%d pic_w=%d pic_h=%d, slice_w=%d slice_h=%d, chunk=%d\n", mixer->num, dsc->pic_width, dsc->pic_height, dsc->slice_width, dsc->slice_height, dsc->chunk_size); MDSS_XLOG(mixer->num, dsc->pic_width, dsc->pic_height, dsc->slice_width, dsc->slice_height, dsc->chunk_size); data = dsc->initial_dec_delay << 16; data |= dsc->initial_xmit_delay; writel_relaxed(data, offset + MDSS_MDP_REG_DSC_DELAY); data = dsc->initial_scale_value; writel_relaxed(data, offset + MDSS_MDP_REG_DSC_SCALE_INITIAL); data = dsc->scale_decrement_interval; writel_relaxed(data, offset + MDSS_MDP_REG_DSC_SCALE_DEC_INTERVAL); data = dsc->scale_increment_interval; writel_relaxed(data, offset + MDSS_MDP_REG_DSC_SCALE_INC_INTERVAL); data = dsc->first_line_bpg_offset; writel_relaxed(data, offset + MDSS_MDP_REG_DSC_FIRST_LINE_BPG_OFFSET); data = dsc->nfl_bpg_offset << 16; data |= dsc->slice_bpg_offset; writel_relaxed(data, offset + MDSS_MDP_REG_DSC_BPG_OFFSET); data = dsc->initial_offset << 16; data |= dsc->final_offset; writel_relaxed(data, offset + MDSS_MDP_REG_DSC_DSC_OFFSET); data = dsc->det_thresh_flatness << 10; data |= dsc->max_qp_flatness << 5; data |= dsc->min_qp_flatness; writel_relaxed(data, offset + MDSS_MDP_REG_DSC_FLATNESS); writel_relaxed(0x983, offset + MDSS_MDP_REG_DSC_FLATNESS); data = dsc->rc_model_size; /* rate_buffer_size */ writel_relaxed(data, offset + MDSS_MDP_REG_DSC_RC_MODEL_SIZE); data = dsc->tgt_offset_lo << 18; data |= dsc->tgt_offset_hi << 14; data |= dsc->quant_incr_limit1 << 9; data |= dsc->quant_incr_limit0 << 4; data |= dsc->edge_factor; writel_relaxed(data, offset + MDSS_MDP_REG_DSC_RC); } static void __dsc_config_thresh(struct mdss_mdp_mixer *mixer, struct dsc_desc *dsc) { struct mdss_data_type *mdata = mdss_mdp_get_mdata(); char __iomem *offset, *off; u32 *lp; char *cp; int i; offset = mdata->mdp_base; if (mixer->num == MDSS_MDP_INTF_LAYERMIXER0) { offset += MDSS_MDP_DSC_0_OFFSET; } else if (mixer->num == MDSS_MDP_INTF_LAYERMIXER1) { offset += MDSS_MDP_DSC_1_OFFSET; } else { pr_err("invalid mixer numer=%d\n", mixer->num); return; } lp = dsc->buf_thresh; off = offset + MDSS_MDP_REG_DSC_RC_BUF_THRESH; for (i = 0; i < 14; i++) { writel_relaxed(*lp++, off); off += 4; } cp = dsc->range_min_qp; off = offset + MDSS_MDP_REG_DSC_RANGE_MIN_QP; for (i = 0; i < 15; i++) { writel_relaxed(*cp++, off); off += 4; } cp = dsc->range_max_qp; off = offset + MDSS_MDP_REG_DSC_RANGE_MAX_QP; for (i = 0; i < 15; i++) { writel_relaxed(*cp++, off); off += 4; } cp = dsc->range_bpg_offset; off = offset + MDSS_MDP_REG_DSC_RANGE_BPG_OFFSET; for (i = 0; i < 15; i++) { writel_relaxed(*cp++, off); off += 4; } } static bool __is_dsc_merge_enabled(u32 common_mode) { return common_mode & BIT(1); } static bool __dsc_is_3d_mux_enabled(struct mdss_mdp_ctl *ctl, struct mdss_panel_info *pinfo) { return ctl && is_dual_lm_single_display(ctl->mfd) && pinfo && (pinfo->dsc_enc_total == 1); } /* must be called from master ctl */ static u32 __dsc_get_common_mode(struct mdss_mdp_ctl *ctl, bool mux_3d) { u32 common_mode = 0; if (ctl->is_video_mode) common_mode = BIT(2); if (mdss_mdp_is_both_lm_valid(ctl)) common_mode |= BIT(0); if (is_dual_lm_single_display(ctl->mfd)) { if (mux_3d) common_mode &= ~BIT(0); else if (mdss_mdp_is_both_lm_valid(ctl)) /* dsc_merge */ common_mode |= BIT(1); } return common_mode; } static void __dsc_get_pic_dim(struct mdss_mdp_mixer *mixer_l, struct mdss_mdp_mixer *mixer_r, u32 *pic_w, u32 *pic_h) { bool valid_l = mixer_l && mixer_l->valid_roi; bool valid_r = mixer_r && mixer_r->valid_roi; *pic_w = 0; *pic_h = 0; if (valid_l) { *pic_w = mixer_l->roi.w; *pic_h = mixer_l->roi.h; } if (valid_r) { *pic_w += mixer_r->roi.w; *pic_h = mixer_r->roi.h; } } static bool __is_ich_reset_override_needed(bool pu_en, struct dsc_desc *dsc) { /* * As per the DSC spec, ICH_RESET can be either end of the slice line * or at the end of the slice. HW internally generates ich_reset at * end of the slice line if DSC_MERGE is used or encoder has two * soft slices. However, if encoder has only 1 soft slice and DSC_MERGE * is not used then it will generate ich_reset at the end of slice. * * Now as per the spec, during one PPS session, position where * ich_reset is generated should not change. Now if full-screen frame * has more than 1 soft slice then HW will automatically generate * ich_reset at the end of slice_line. But for the same panel, if * partial frame is enabled and only 1 encoder is used with 1 slice, * then HW will generate ich_reset at end of the slice. This is a * mismatch. Prevent this by overriding HW's decision. */ return pu_en && dsc && (dsc->full_frame_slices > 1) && (dsc->slice_width == dsc->pic_width); } static void __dsc_setup_dual_lm_single_display(struct mdss_mdp_ctl *ctl, struct mdss_panel_info *pinfo) { u32 pic_width = 0, pic_height = 0; u32 intf_ip_w, enc_ip_w, common_mode, this_frame_slices; bool valid_l, valid_r; bool enable_right_dsc; bool mux_3d, ich_reset_override; struct dsc_desc *dsc; struct mdss_mdp_mixer *mixer_l, *mixer_r; struct mdss_data_type *mdata = mdss_mdp_get_mdata(); if (!pinfo || !ctl || !ctl->is_master || !is_dual_lm_single_display(ctl->mfd)) return; dsc = &pinfo->dsc; mixer_l = ctl->mixer_left; mixer_r = ctl->mixer_right; mux_3d = __dsc_is_3d_mux_enabled(ctl, pinfo); common_mode = __dsc_get_common_mode(ctl, mux_3d); __dsc_get_pic_dim(mixer_l, mixer_r, &pic_width, &pic_height); valid_l = mixer_l->valid_roi; valid_r = mixer_r->valid_roi; if (mdss_mdp_is_lm_swap_needed(mdata, ctl)) { valid_l = true; valid_r = false; } this_frame_slices = pic_width / dsc->slice_width; /* enable or disable pp_split + DSC_Merge based on partial update */ if ((pinfo->partial_update_enabled) && !mux_3d && (dsc->full_frame_slices == 4) && (mdss_has_quirk(mdata, MDSS_QUIRK_DSC_2SLICE_PU_THRPUT))) { if (valid_l && valid_r) { /* left + right */ pr_debug("full line (4 slices) or middle 2 slice partial update\n"); writel_relaxed(0x0, mdata->mdp_base + mdata->ppb[0].ctl_off); writel_relaxed(0x0, mdata->mdp_base + MDSS_MDP_REG_DCE_SEL); } else if (valid_l || valid_r) { /* left-only or right-only */ if (this_frame_slices == 2) { pr_debug("2 slice parital update, use merge\n"); /* tandem + merge */ common_mode = BIT(1) | BIT(0); valid_r = true; valid_l = true; writel_relaxed(0x2 << 4, mdata->mdp_base + mdata->ppb[0].ctl_off); writel_relaxed(BIT(0), mdata->mdp_base + MDSS_MDP_REG_DCE_SEL); } else { pr_debug("only one slice partial update\n"); writel_relaxed(0x0, mdata->mdp_base + mdata->ppb[0].ctl_off); writel_relaxed(0x0, mdata->mdp_base + MDSS_MDP_REG_DCE_SEL); } } } else { writel_relaxed(0x0, mdata->mdp_base + MDSS_MDP_REG_DCE_SEL); } mdss_panel_dsc_update_pic_dim(dsc, pic_width, pic_height); intf_ip_w = this_frame_slices * dsc->slice_width; mdss_panel_dsc_pclk_param_calc(dsc, intf_ip_w); enc_ip_w = intf_ip_w; /* if dsc_merge, both encoders work on same number of slices */ if (__is_dsc_merge_enabled(common_mode)) enc_ip_w /= 2; mdss_panel_dsc_initial_line_calc(dsc, enc_ip_w); /* * __is_ich_reset_override_needed should be called only after * updating pic dimension, mdss_panel_dsc_update_pic_dim. */ ich_reset_override = __is_ich_reset_override_needed( pinfo->partial_update_enabled, dsc); if (valid_l) { __dsc_config(mixer_l, dsc, common_mode, ich_reset_override); __dsc_config_thresh(mixer_l, dsc); __dsc_enable(mixer_l); } else { __dsc_disable(mixer_l); } enable_right_dsc = valid_r; if (mux_3d && valid_l) enable_right_dsc = false; if (enable_right_dsc) { __dsc_config(mixer_r, dsc, common_mode, ich_reset_override); __dsc_config_thresh(mixer_r, dsc); __dsc_enable(mixer_r); } else { __dsc_disable(mixer_r); } pr_debug("mix%d: valid_l=%d mix%d: valid_r=%d mode=%d, pic_dim:%dx%d mux_3d=%d intf_ip_w=%d enc_ip_w=%d ich_ovrd=%d\n", mixer_l->num, valid_l, mixer_r->num, valid_r, common_mode, pic_width, pic_height, mux_3d, intf_ip_w, enc_ip_w, ich_reset_override); MDSS_XLOG(mixer_l->num, valid_l, mixer_r->num, valid_r, common_mode, pic_width, pic_height, mux_3d, intf_ip_w, enc_ip_w, ich_reset_override); } static void __dsc_setup_dual_lm_dual_display( struct mdss_mdp_ctl *ctl, struct mdss_panel_info *pinfo, struct mdss_mdp_ctl *sctl, struct mdss_panel_info *spinfo) { u32 pic_width = 0, pic_height = 0; u32 intf_ip_w, enc_ip_w, common_mode, this_frame_slices; bool valid_l, valid_r; bool ich_reset_override; struct dsc_desc *dsc_l, *dsc_r; struct mdss_mdp_mixer *mixer_l, *mixer_r; struct mdss_data_type *mdata = mdss_mdp_get_mdata(); if (!pinfo || !ctl || !sctl || !spinfo || !ctl->is_master || !ctl->mfd || (ctl->mfd->split_mode != MDP_DUAL_LM_DUAL_DISPLAY)) return; dsc_l = &pinfo->dsc; dsc_r = &spinfo->dsc; mixer_l = ctl->mixer_left; mixer_r = ctl->mixer_right; common_mode = __dsc_get_common_mode(ctl, false); /* * In this topology, both DSC use same pic dimension. So no need to * maintain two separate local copies. */ __dsc_get_pic_dim(mixer_l, mixer_r, &pic_width, &pic_height); valid_l = mixer_l->valid_roi; valid_r = mixer_r->valid_roi; if (mdss_mdp_is_lm_swap_needed(mdata, ctl)) { valid_l = true; valid_r = false; } /* * Since both DSC use same pic dimension, set same pic dimension * to both DSC structures. */ mdss_panel_dsc_update_pic_dim(dsc_l, pic_width, pic_height); mdss_panel_dsc_update_pic_dim(dsc_r, pic_width, pic_height); this_frame_slices = pic_width / dsc_l->slice_width; intf_ip_w = this_frame_slices * dsc_l->slice_width; if (valid_l && valid_r) intf_ip_w /= 2; /* * In this topology when both interfaces are active, they have same * load so intf_ip_w will be same. */ mdss_panel_dsc_pclk_param_calc(dsc_l, intf_ip_w); mdss_panel_dsc_pclk_param_calc(dsc_r, intf_ip_w); /* * In this topology, since there is no dsc_merge, uncompressed input * to encoder and interface is same. */ enc_ip_w = intf_ip_w; mdss_panel_dsc_initial_line_calc(dsc_l, enc_ip_w); mdss_panel_dsc_initial_line_calc(dsc_r, enc_ip_w); /* * __is_ich_reset_override_needed should be called only after * updating pic dimension, mdss_panel_dsc_update_pic_dim. */ ich_reset_override = __is_ich_reset_override_needed( pinfo->partial_update_enabled, dsc_l); if (valid_l) { __dsc_config(mixer_l, dsc_l, common_mode, ich_reset_override); __dsc_config_thresh(mixer_l, dsc_l); __dsc_enable(mixer_l); } else { __dsc_disable(mixer_l); } if (valid_r) { __dsc_config(mixer_r, dsc_r, common_mode, ich_reset_override); __dsc_config_thresh(mixer_r, dsc_r); __dsc_enable(mixer_r); } else { __dsc_disable(mixer_r); } pr_debug("mix%d: valid_l=%d mix%d: valid_r=%d mode=%d, pic_dim:%dx%d intf_ip_w=%d enc_ip_w=%d ich_ovrd=%d\n", mixer_l->num, valid_l, mixer_r->num, valid_r, common_mode, pic_width, pic_height, intf_ip_w, enc_ip_w, ich_reset_override); MDSS_XLOG(mixer_l->num, valid_l, mixer_r->num, valid_r, common_mode, pic_width, pic_height, intf_ip_w, enc_ip_w, ich_reset_override); } static void __dsc_setup_single_lm_single_display(struct mdss_mdp_ctl *ctl, struct mdss_panel_info *pinfo) { u32 pic_width = 0, pic_height = 0; u32 intf_ip_w, enc_ip_w, common_mode, this_frame_slices; bool valid; bool ich_reset_override; struct dsc_desc *dsc; struct mdss_mdp_mixer *mixer; if (!pinfo || !ctl || !ctl->is_master) return; dsc = &pinfo->dsc; mixer = ctl->mixer_left; valid = mixer->valid_roi; common_mode = __dsc_get_common_mode(ctl, false); __dsc_get_pic_dim(mixer, NULL, &pic_width, &pic_height); mdss_panel_dsc_update_pic_dim(dsc, pic_width, pic_height); this_frame_slices = pic_width / dsc->slice_width; intf_ip_w = this_frame_slices * dsc->slice_width; mdss_panel_dsc_pclk_param_calc(dsc, intf_ip_w); enc_ip_w = intf_ip_w; mdss_panel_dsc_initial_line_calc(dsc, enc_ip_w); /* * __is_ich_reset_override_needed should be called only after * updating pic dimension, mdss_panel_dsc_update_pic_dim. */ ich_reset_override = __is_ich_reset_override_needed( pinfo->partial_update_enabled, dsc); if (valid) { __dsc_config(mixer, dsc, common_mode, ich_reset_override); __dsc_config_thresh(mixer, dsc); __dsc_enable(mixer); } else { __dsc_disable(mixer); } pr_debug("mix%d: valid=%d mode=%d, pic_dim:%dx%d intf_ip_w=%d enc_ip_w=%d ich_ovrd=%d\n", mixer->num, valid, common_mode, pic_width, pic_height, intf_ip_w, enc_ip_w, ich_reset_override); MDSS_XLOG(mixer->num, valid, common_mode, pic_width, pic_height, intf_ip_w, enc_ip_w, ich_reset_override); } void mdss_mdp_ctl_dsc_setup(struct mdss_mdp_ctl *ctl, struct mdss_panel_info *pinfo) { struct mdss_mdp_ctl *sctl; struct mdss_panel_info *spinfo; if (!is_dsc_compression(pinfo)) return; if (!ctl->is_master) { pr_debug("skip slave ctl because master will program for both\n"); return; } switch (ctl->mfd->split_mode) { case MDP_DUAL_LM_SINGLE_DISPLAY: __dsc_setup_dual_lm_single_display(ctl, pinfo); break; case MDP_DUAL_LM_DUAL_DISPLAY: sctl = mdss_mdp_get_split_ctl(ctl); if (sctl) { spinfo = &sctl->panel_data->panel_info; __dsc_setup_dual_lm_dual_display(ctl, pinfo, sctl, spinfo); } break; default: /* pp_split is not supported yet */ __dsc_setup_single_lm_single_display(ctl, pinfo); break; } } static int mdss_mdp_ctl_fbc_enable(int enable, struct mdss_mdp_mixer *mixer, struct mdss_panel_info *pdata) { struct fbc_panel_info *fbc; u32 mode = 0, budget_ctl = 0, lossy_mode = 0, width; if (!pdata) { pr_err("Invalid pdata\n"); return -EINVAL; } fbc = &pdata->fbc; if (mixer->num == MDSS_MDP_INTF_LAYERMIXER0 || mixer->num == MDSS_MDP_INTF_LAYERMIXER1) { pr_debug("Mixer supports FBC.\n"); } else { pr_debug("Mixer doesn't support FBC.\n"); return -EINVAL; } if (enable) { if (fbc->enc_mode && pdata->bpp) { /* width is the compressed width */ width = mult_frac(pdata->xres, fbc->target_bpp, pdata->bpp); } else { /* width is the source width */ width = pdata->xres; } mode = ((width) << 16) | ((fbc->slice_height) << 11) | ((fbc->pred_mode) << 10) | ((fbc->enc_mode) << 9) | ((fbc->comp_mode) << 8) | ((fbc->qerr_enable) << 7) | ((fbc->cd_bias) << 4) | ((fbc->pat_enable) << 3) | ((fbc->vlc_enable) << 2) | ((fbc->bflc_enable) << 1) | enable; budget_ctl = ((fbc->line_x_budget) << 12) | ((fbc->block_x_budget) << 8) | fbc->block_budget; lossy_mode = ((fbc->max_pred_err) << 28) | ((fbc->lossless_mode_thd) << 16) | ((fbc->lossy_mode_thd) << 8) | ((fbc->lossy_rgb_thd) << 4) | fbc->lossy_mode_idx; } mdss_mdp_pingpong_write(mixer->pingpong_base, MDSS_MDP_REG_PP_FBC_MODE, mode); mdss_mdp_pingpong_write(mixer->pingpong_base, MDSS_MDP_REG_PP_FBC_BUDGET_CTL, budget_ctl); mdss_mdp_pingpong_write(mixer->pingpong_base, MDSS_MDP_REG_PP_FBC_LOSSY_MODE, lossy_mode); return 0; } int mdss_mdp_ctl_setup(struct mdss_mdp_ctl *ctl) { struct mdss_mdp_ctl *split_ctl; u32 width, height; int split_fb; u32 max_mixer_width; struct mdss_panel_info *pinfo; if (!ctl || !ctl->panel_data) { pr_err("invalid ctl handle\n"); return -ENODEV; } pinfo = &ctl->panel_data->panel_info; if (pinfo->type == WRITEBACK_PANEL) { pr_err("writeback panel, ignore\n"); return 0; } split_ctl = mdss_mdp_get_split_ctl(ctl); width = get_panel_width(ctl); height = get_panel_yres(pinfo); max_mixer_width = ctl->mdata->max_mixer_width; split_fb = ((is_dual_lm_single_display(ctl->mfd)) && (ctl->mfd->split_fb_left <= max_mixer_width) && (ctl->mfd->split_fb_right <= max_mixer_width)) ? 1 : 0; pr_debug("max=%d xres=%d left=%d right=%d\n", max_mixer_width, width, ctl->mfd->split_fb_left, ctl->mfd->split_fb_right); if ((split_ctl && (width > max_mixer_width)) || (width > (2 * max_mixer_width))) { pr_err("Unsupported panel resolution: %dx%d\n", width, height); return -ENOTSUPP; } ctl->width = width; ctl->height = height; ctl->roi = (struct mdss_rect) {0, 0, width, height}; if (!ctl->mixer_left) { ctl->mixer_left = mdss_mdp_mixer_alloc(ctl, MDSS_MDP_MIXER_TYPE_INTF, ((width > max_mixer_width) || split_fb), 0); if (!ctl->mixer_left) { pr_err("unable to allocate layer mixer\n"); return -ENOMEM; } else if (split_fb && ctl->mixer_left->num >= 1 && (ctl->panel_data->panel_info.type == MIPI_CMD_PANEL)) { pr_err("use only DSPP0 and DSPP1 with cmd split\n"); return -EPERM; } } if (split_fb) { width = ctl->mfd->split_fb_left; width += (pinfo->lcdc.border_left + pinfo->lcdc.border_right); } else if (width > max_mixer_width) { width /= 2; } ctl->mixer_left->width = width; ctl->mixer_left->height = height; ctl->mixer_left->roi = (struct mdss_rect) {0, 0, width, height}; ctl->mixer_left->valid_roi = true; ctl->mixer_left->roi_changed = true; if (ctl->mfd->split_mode == MDP_DUAL_LM_DUAL_DISPLAY) { pr_debug("dual display detected\n"); return 0; } if (split_fb) width = ctl->mfd->split_fb_right; if (width < ctl->width) { if (ctl->mixer_right == NULL) { ctl->mixer_right = mdss_mdp_mixer_alloc(ctl, MDSS_MDP_MIXER_TYPE_INTF, true, 0); if (!ctl->mixer_right) { pr_err("unable to allocate right mixer\n"); if (ctl->mixer_left) mdss_mdp_mixer_free(ctl->mixer_left); return -ENOMEM; } } ctl->mixer_right->is_right_mixer = true; ctl->mixer_right->width = width; ctl->mixer_right->height = height; ctl->mixer_right->roi = (struct mdss_rect) {0, 0, width, height}; ctl->mixer_right->valid_roi = true; ctl->mixer_right->roi_changed = true; } else if (ctl->mixer_right) { ctl->mixer_right->valid_roi = false; ctl->mixer_right->roi_changed = false; mdss_mdp_mixer_free(ctl->mixer_right); ctl->mixer_right = NULL; } if (ctl->mixer_right) { if (!is_dsc_compression(pinfo) || (pinfo->dsc_enc_total == 1)) ctl->opmode |= MDSS_MDP_CTL_OP_PACK_3D_ENABLE | MDSS_MDP_CTL_OP_PACK_3D_H_ROW_INT; } else { ctl->opmode &= ~(MDSS_MDP_CTL_OP_PACK_3D_ENABLE | MDSS_MDP_CTL_OP_PACK_3D_H_ROW_INT); } return 0; } /** * mdss_mdp_ctl_reconfig() - re-configure ctl for new mode * @ctl: mdp controller. * @pdata: panel data * * This function is called when we are trying to dynamically change * the DSI mode. We need to change various mdp_ctl properties to * the new mode of operation. */ int mdss_mdp_ctl_reconfig(struct mdss_mdp_ctl *ctl, struct mdss_panel_data *pdata) { void *tmp; int ret = 0; /* * Switch first to prevent deleting important data in the case * where panel type is not supported in reconfig */ if ((pdata->panel_info.type != MIPI_VIDEO_PANEL) && (pdata->panel_info.type != MIPI_CMD_PANEL)) { pr_err("unsupported panel type (%d)\n", pdata->panel_info.type); return -EINVAL; } /* if only changing resolution there is no need for intf reconfig */ if (!ctl->is_video_mode == (pdata->panel_info.type == MIPI_CMD_PANEL)) goto skip_intf_reconfig; /* * Intentionally not clearing stop function, as stop will * be called after panel is instructed mode switch is happening */ tmp = ctl->ops.stop_fnc; memset(&ctl->ops, 0, sizeof(ctl->ops)); ctl->ops.stop_fnc = tmp; switch (pdata->panel_info.type) { case MIPI_VIDEO_PANEL: ctl->is_video_mode = true; ctl->intf_type = MDSS_INTF_DSI; ctl->opmode = MDSS_MDP_CTL_OP_VIDEO_MODE; ctl->ops.start_fnc = mdss_mdp_video_start; break; case MIPI_CMD_PANEL: ctl->is_video_mode = false; ctl->intf_type = MDSS_INTF_DSI; ctl->opmode = MDSS_MDP_CTL_OP_CMD_MODE; ctl->ops.start_fnc = mdss_mdp_cmd_start; break; } ctl->is_secure = false; ctl->split_flush_en = false; ctl->perf_release_ctl_bw = false; ctl->play_cnt = 0; ctl->opmode |= (ctl->intf_num << 4); skip_intf_reconfig: ctl->width = get_panel_xres(&pdata->panel_info); ctl->height = get_panel_yres(&pdata->panel_info); if (ctl->mixer_left) { ctl->mixer_left->width = ctl->width; ctl->mixer_left->height = ctl->height; } ctl->border_x_off = pdata->panel_info.lcdc.border_left; ctl->border_y_off = pdata->panel_info.lcdc.border_top; return ret; } struct mdss_mdp_ctl *mdss_mdp_ctl_init(struct mdss_panel_data *pdata, struct msm_fb_data_type *mfd) { int ret = 0, offset; struct mdss_mdp_ctl *ctl; struct mdss_data_type *mdata = mfd_to_mdata(mfd); struct mdss_overlay_private *mdp5_data = mfd_to_mdp5_data(mfd); struct mdss_panel_info *pinfo; if (pdata->panel_info.type == WRITEBACK_PANEL) offset = mdss_mdp_get_wb_ctl_support(mdata, false); else offset = MDSS_MDP_CTL0; if (is_pingpong_split(mfd) && !mdata->has_pingpong_split) { pr_err("Error: pp_split cannot be enabled on fb%d if HW doesn't support it\n", mfd->index); return ERR_PTR(-EINVAL); } ctl = mdss_mdp_ctl_alloc(mdata, offset); if (!ctl) { pr_err("unable to allocate ctl\n"); return ERR_PTR(-ENOMEM); } pinfo = &pdata->panel_info; ctl->mfd = mfd; ctl->panel_data = pdata; ctl->is_video_mode = false; ctl->perf_release_ctl_bw = false; ctl->border_x_off = pinfo->lcdc.border_left; ctl->border_y_off = pinfo->lcdc.border_top; ctl->disable_prefill = false; switch (pdata->panel_info.type) { case EDP_PANEL: ctl->is_video_mode = true; ctl->intf_num = MDSS_MDP_INTF0; ctl->intf_type = MDSS_INTF_EDP; ctl->opmode = MDSS_MDP_CTL_OP_VIDEO_MODE; ctl->ops.start_fnc = mdss_mdp_video_start; break; case MIPI_VIDEO_PANEL: ctl->is_video_mode = true; if (pdata->panel_info.pdest == DISPLAY_1) ctl->intf_num = mdp5_data->mixer_swap ? MDSS_MDP_INTF2 : MDSS_MDP_INTF1; else ctl->intf_num = mdp5_data->mixer_swap ? MDSS_MDP_INTF1 : MDSS_MDP_INTF2; ctl->intf_type = MDSS_INTF_DSI; ctl->opmode = MDSS_MDP_CTL_OP_VIDEO_MODE; ctl->ops.start_fnc = mdss_mdp_video_start; break; case MIPI_CMD_PANEL: if (pdata->panel_info.pdest == DISPLAY_1) ctl->intf_num = mdp5_data->mixer_swap ? MDSS_MDP_INTF2 : MDSS_MDP_INTF1; else ctl->intf_num = mdp5_data->mixer_swap ? MDSS_MDP_INTF1 : MDSS_MDP_INTF2; ctl->intf_type = MDSS_INTF_DSI; ctl->opmode = MDSS_MDP_CTL_OP_CMD_MODE; ctl->ops.start_fnc = mdss_mdp_cmd_start; INIT_WORK(&ctl->cpu_pm_work, __cpu_pm_work_handler); break; case DTV_PANEL: ctl->is_video_mode = true; ctl->intf_num = MDSS_MDP_INTF3; ctl->intf_type = MDSS_INTF_HDMI; ctl->opmode = MDSS_MDP_CTL_OP_VIDEO_MODE; ctl->ops.start_fnc = mdss_mdp_video_start; break; case WRITEBACK_PANEL: ctl->intf_num = MDSS_MDP_NO_INTF; ctl->ops.start_fnc = mdss_mdp_writeback_start; break; default: pr_err("unsupported panel type (%d)\n", pdata->panel_info.type); ret = -EINVAL; goto ctl_init_fail; } ctl->opmode |= (ctl->intf_num << 4); if (ctl->intf_num == MDSS_MDP_NO_INTF) { ctl->dst_format = pdata->panel_info.out_format; } else { switch (pdata->panel_info.bpp) { case 18: if (ctl->intf_type == MDSS_INTF_DSI) ctl->dst_format = MDSS_MDP_PANEL_FORMAT_RGB666 | MDSS_MDP_PANEL_FORMAT_PACK_ALIGN_MSB; else ctl->dst_format = MDSS_MDP_PANEL_FORMAT_RGB666; break; case 24: default: ctl->dst_format = MDSS_MDP_PANEL_FORMAT_RGB888; break; } } return ctl; ctl_init_fail: mdss_mdp_ctl_free(ctl); return ERR_PTR(ret); } int mdss_mdp_ctl_split_display_setup(struct mdss_mdp_ctl *ctl, struct mdss_panel_data *pdata) { struct mdss_mdp_ctl *sctl; struct mdss_mdp_mixer *mixer; if (!ctl || !pdata) return -ENODEV; if (pdata->panel_info.xres > ctl->mdata->max_mixer_width) { pr_err("Unsupported second panel resolution: %dx%d\n", pdata->panel_info.xres, pdata->panel_info.yres); return -ENOTSUPP; } if (ctl->mixer_right) { pr_err("right mixer already setup for ctl=%d\n", ctl->num); return -EPERM; } sctl = mdss_mdp_ctl_init(pdata, ctl->mfd); if (!sctl) { pr_err("unable to setup split display\n"); return -ENODEV; } sctl->width = get_panel_xres(&pdata->panel_info); sctl->height = get_panel_yres(&pdata->panel_info); sctl->roi = (struct mdss_rect){0, 0, sctl->width, sctl->height}; if (!ctl->mixer_left) { ctl->mixer_left = mdss_mdp_mixer_alloc(ctl, MDSS_MDP_MIXER_TYPE_INTF, false, 0); if (!ctl->mixer_left) { pr_err("unable to allocate layer mixer\n"); mdss_mdp_ctl_destroy(sctl); return -ENOMEM; } } mixer = mdss_mdp_mixer_alloc(sctl, MDSS_MDP_MIXER_TYPE_INTF, false, 0); if (!mixer) { pr_err("unable to allocate layer mixer\n"); mdss_mdp_ctl_destroy(sctl); return -ENOMEM; } mixer->is_right_mixer = true; mixer->width = sctl->width; mixer->height = sctl->height; mixer->roi = (struct mdss_rect) {0, 0, mixer->width, mixer->height}; mixer->valid_roi = true; mixer->roi_changed = true; sctl->mixer_left = mixer; return mdss_mdp_set_split_ctl(ctl, sctl); } static void mdss_mdp_ctl_split_display_enable(int enable, struct mdss_mdp_ctl *main_ctl, struct mdss_mdp_ctl *slave_ctl) { u32 upper = 0, lower = 0; pr_debug("split main ctl=%d intf=%d\n", main_ctl->num, main_ctl->intf_num); if (slave_ctl) pr_debug("split slave ctl=%d intf=%d\n", slave_ctl->num, slave_ctl->intf_num); if (enable) { if (main_ctl->opmode & MDSS_MDP_CTL_OP_CMD_MODE) { /* interface controlling sw trigger (cmd mode) */ lower |= BIT(1); if (main_ctl->intf_num == MDSS_MDP_INTF2) lower |= BIT(4); else lower |= BIT(8); /* * Enable SMART_PANEL_FREE_RUN if ping pong split * is enabled. */ if (is_pingpong_split(main_ctl->mfd)) lower |= BIT(2); upper = lower; } else { /* interface controlling sw trigger (video mode) */ if (main_ctl->intf_num == MDSS_MDP_INTF2) { lower |= BIT(4); upper |= BIT(8); } else { lower |= BIT(8); upper |= BIT(4); } } } writel_relaxed(upper, main_ctl->mdata->mdp_base + MDSS_MDP_REG_SPLIT_DISPLAY_UPPER_PIPE_CTRL); writel_relaxed(lower, main_ctl->mdata->mdp_base + MDSS_MDP_REG_SPLIT_DISPLAY_LOWER_PIPE_CTRL); writel_relaxed(enable, main_ctl->mdata->mdp_base + MDSS_MDP_REG_SPLIT_DISPLAY_EN); if ((main_ctl->mdata->mdp_rev >= MDSS_MDP_HW_REV_103) && main_ctl->is_video_mode) { struct mdss_overlay_private *mdp5_data; bool mixer_swap = false; if (main_ctl->mfd) { mdp5_data = mfd_to_mdp5_data(main_ctl->mfd); mixer_swap = mdp5_data->mixer_swap; } main_ctl->split_flush_en = !mixer_swap; if (main_ctl->split_flush_en) writel_relaxed(enable ? 0x1 : 0x0, main_ctl->mdata->mdp_base + MMSS_MDP_MDP_SSPP_SPARE_0); } } static void mdss_mdp_ctl_pp_split_display_enable(bool enable, struct mdss_mdp_ctl *ctl) { u32 cfg = 0, cntl = 0; if (ctl->mdata->nppb == 0) { pr_err("No PPB to enable PP split\n"); BUG(); } mdss_mdp_ctl_split_display_enable(enable, ctl, NULL); if (enable) { cfg = ctl->slave_intf_num << 20; /* Set slave intf */ cfg |= BIT(16); /* Set horizontal split */ cntl = BIT(5); /* enable dst split */ } writel_relaxed(cfg, ctl->mdata->mdp_base + ctl->mdata->ppb[0].cfg_off); writel_relaxed(cntl, ctl->mdata->mdp_base + ctl->mdata->ppb[0].ctl_off); } int mdss_mdp_ctl_destroy(struct mdss_mdp_ctl *ctl) { struct mdss_mdp_ctl *sctl; int rc; rc = mdss_mdp_ctl_intf_event(ctl, MDSS_EVENT_CLOSE, NULL, CTL_INTF_EVENT_FLAG_DEFAULT); WARN(rc, "unable to close panel for intf=%d\n", ctl->intf_num); sctl = mdss_mdp_get_split_ctl(ctl); if (sctl) { pr_debug("destroying split display ctl=%d\n", sctl->num); mdss_mdp_ctl_free(sctl); } mdss_mdp_ctl_free(ctl); return 0; } int mdss_mdp_ctl_intf_event(struct mdss_mdp_ctl *ctl, int event, void *arg, u32 flags) { struct mdss_panel_data *pdata; int rc = 0; if (!ctl || !ctl->panel_data) return -ENODEV; pdata = ctl->panel_data; if (flags & CTL_INTF_EVENT_FLAG_SLAVE_INTF) { pdata = pdata->next; if (!pdata) { pr_err("Error: event=%d flags=0x%x, ctl%d slave intf is not present\n", event, flags, ctl->num); return -EINVAL; } } pr_debug("sending ctl=%d event=%d flag=0x%x\n", ctl->num, event, flags); do { if (pdata->event_handler) rc = pdata->event_handler(pdata, event, arg); pdata = pdata->next; } while (rc == 0 && pdata && pdata->active && !(flags & CTL_INTF_EVENT_FLAG_SKIP_BROADCAST)); return rc; } static void mdss_mdp_ctl_restore_sub(struct mdss_mdp_ctl *ctl) { u32 temp; int ret = 0; temp = readl_relaxed(ctl->mdata->mdp_base + MDSS_MDP_REG_DISP_INTF_SEL); temp |= (ctl->intf_type << ((ctl->intf_num - MDSS_MDP_INTF0) * 8)); writel_relaxed(temp, ctl->mdata->mdp_base + MDSS_MDP_REG_DISP_INTF_SEL); if (ctl->mfd && ctl->panel_data) { ctl->mfd->ipc_resume = true; mdss_mdp_pp_resume(ctl->mfd); if (is_dsc_compression(&ctl->panel_data->panel_info)) { mdss_mdp_ctl_dsc_setup(ctl, &ctl->panel_data->panel_info); } else if (ctl->panel_data->panel_info.compression_mode == COMPRESSION_FBC) { ret = mdss_mdp_ctl_fbc_enable(1, ctl->mixer_left, &ctl->panel_data->panel_info); if (ret) pr_err("Failed to restore FBC mode\n"); } } } /* * mdss_mdp_ctl_restore() - restore mdp ctl path * @locked - boolean to signal that clock lock is already acquired * * This function is called whenever MDP comes out of a power collapse as * a result of a screen update. It restores the MDP controller's software * state to the hardware registers. * Function does not enable the clocks, so caller must make sure * clocks are enabled before calling. * The locked boolean in the parametrs signals that synchronization * with mdp clocks access is not required downstream. * Only call this function setting this value to true if the clocks access * synchronization is guaranteed by the caller. */ void mdss_mdp_ctl_restore(bool locked) { struct mdss_mdp_ctl *ctl = NULL; struct mdss_mdp_ctl *sctl; struct mdss_data_type *mdata = mdss_mdp_get_mdata(); u32 cnum; for (cnum = MDSS_MDP_CTL0; cnum < mdata->nctl; cnum++) { ctl = mdata->ctl_off + cnum; if (!mdss_mdp_ctl_is_power_on(ctl)) continue; pr_debug("restoring ctl%d, intf_type=%d\n", cnum, ctl->intf_type); ctl->play_cnt = 0; sctl = mdss_mdp_get_split_ctl(ctl); mdss_mdp_ctl_restore_sub(ctl); if (sctl) { mdss_mdp_ctl_restore_sub(sctl); mdss_mdp_ctl_split_display_enable(1, ctl, sctl); } else if (is_pingpong_split(ctl->mfd)) { mdss_mdp_ctl_pp_split_display_enable(1, ctl); } if (ctl->ops.restore_fnc) ctl->ops.restore_fnc(ctl, locked); } } static int mdss_mdp_ctl_start_sub(struct mdss_mdp_ctl *ctl, bool handoff) { struct mdss_mdp_mixer *mixer; u32 outsize, temp; int ret = 0; int i, nmixers; pr_debug("ctl_num=%d\n", ctl->num); /* * Need start_fnc in 2 cases: * (1) handoff * (2) continuous splash finished. */ if (handoff || !ctl->panel_data->panel_info.cont_splash_enabled) { if (ctl->ops.start_fnc) ret = ctl->ops.start_fnc(ctl); else pr_warn("no start function for ctl=%d type=%d\n", ctl->num, ctl->panel_data->panel_info.type); if (ret) { pr_err("unable to start intf\n"); return ret; } } if (!ctl->panel_data->panel_info.cont_splash_enabled) { nmixers = MDSS_MDP_INTF_MAX_LAYERMIXER + MDSS_MDP_WB_MAX_LAYERMIXER; for (i = 0; i < nmixers; i++) mdss_mdp_ctl_write(ctl, MDSS_MDP_REG_CTL_LAYER(i), 0); } temp = readl_relaxed(ctl->mdata->mdp_base + MDSS_MDP_REG_DISP_INTF_SEL); temp |= (ctl->intf_type << ((ctl->intf_num - MDSS_MDP_INTF0) * 8)); if (is_pingpong_split(ctl->mfd)) temp |= (ctl->intf_type << (ctl->intf_num * 8)); writel_relaxed(temp, ctl->mdata->mdp_base + MDSS_MDP_REG_DISP_INTF_SEL); mixer = ctl->mixer_left; if (mixer) { struct mdss_panel_info *pinfo = &ctl->panel_data->panel_info; mixer->params_changed++; outsize = (mixer->height << 16) | mixer->width; mdp_mixer_write(mixer, MDSS_MDP_REG_LM_OUT_SIZE, outsize); if (is_dsc_compression(pinfo)) { mdss_mdp_ctl_dsc_setup(ctl, pinfo); } else if (pinfo->compression_mode == COMPRESSION_FBC) { ret = mdss_mdp_ctl_fbc_enable(1, ctl->mixer_left, pinfo); } } return ret; } int mdss_mdp_ctl_start(struct mdss_mdp_ctl *ctl, bool handoff) { struct mdss_mdp_ctl *sctl; struct mdss_data_type *mdata = mdss_mdp_get_mdata(); int ret = 0; pr_debug("ctl_num=%d, power_state=%d\n", ctl->num, ctl->power_state); if (mdss_mdp_ctl_is_power_on_interactive(ctl) && !(ctl->pending_mode_switch)) { pr_debug("%d: panel already on!\n", __LINE__); return 0; } ret = mdss_mdp_ctl_setup(ctl); if (ret) return ret; sctl = mdss_mdp_get_split_ctl(ctl); mutex_lock(&ctl->lock); if (mdss_mdp_ctl_is_power_off(ctl)) memset(&ctl->cur_perf, 0, sizeof(ctl->cur_perf)); /* * keep power_on false during handoff to avoid unexpected * operations to overlay. */ if (!handoff || ctl->pending_mode_switch) ctl->power_state = MDSS_PANEL_POWER_ON; mdss_mdp_clk_ctrl(MDP_BLOCK_POWER_ON); ret = mdss_mdp_ctl_start_sub(ctl, handoff); if (ret == 0) { if (sctl && ctl->mfd && ctl->mfd->split_mode == MDP_DUAL_LM_DUAL_DISPLAY) { /*split display available */ ret = mdss_mdp_ctl_start_sub(sctl, handoff); if (!ret) mdss_mdp_ctl_split_display_enable(1, ctl, sctl); } else if (ctl->mixer_right) { struct mdss_mdp_mixer *mixer = ctl->mixer_right; u32 out; mixer->params_changed++; out = (mixer->height << 16) | mixer->width; mdp_mixer_write(mixer, MDSS_MDP_REG_LM_OUT_SIZE, out); mdss_mdp_ctl_write(ctl, MDSS_MDP_REG_CTL_PACK_3D, 0); } else if (is_pingpong_split(ctl->mfd)) { ctl->slave_intf_num = (ctl->intf_num + 1); mdss_mdp_ctl_pp_split_display_enable(true, ctl); } } mdss_mdp_hist_intr_setup(&mdata->hist_intr, MDSS_IRQ_RESUME); mdss_mdp_clk_ctrl(MDP_BLOCK_POWER_OFF); mutex_unlock(&ctl->lock); return ret; } int mdss_mdp_ctl_stop(struct mdss_mdp_ctl *ctl, int power_state) { struct mdss_mdp_ctl *sctl; int ret = 0; struct mdss_data_type *mdata = mdss_mdp_get_mdata(); pr_debug("ctl_num=%d, power_state=%d\n", ctl->num, ctl->power_state); if (!ctl->mfd->panel_reconfig && !mdss_mdp_ctl_is_power_on(ctl)) { pr_debug("%s %d already off!\n", __func__, __LINE__); return 0; } sctl = mdss_mdp_get_split_ctl(ctl); mutex_lock(&ctl->lock); mdss_mdp_clk_ctrl(MDP_BLOCK_POWER_ON); mdss_mdp_hist_intr_setup(&mdata->hist_intr, MDSS_IRQ_SUSPEND); if (ctl->ops.stop_fnc) { ret = ctl->ops.stop_fnc(ctl, power_state); mdss_mdp_ctl_fbc_enable(0, ctl->mixer_left, &ctl->panel_data->panel_info); } else { pr_warn("no stop func for ctl=%d\n", ctl->num); } if (sctl && sctl->ops.stop_fnc) { ret = sctl->ops.stop_fnc(sctl, power_state); mdss_mdp_ctl_fbc_enable(0, sctl->mixer_left, &sctl->panel_data->panel_info); } if (ret) { pr_warn("error powering off intf ctl=%d\n", ctl->num); goto end; } if (mdss_panel_is_power_on(power_state)) { pr_debug("panel is not off, leaving ctl power on\n"); goto end; } if (sctl) mdss_mdp_ctl_split_display_enable(0, ctl, sctl); mdss_mdp_ctl_write(ctl, MDSS_MDP_REG_CTL_TOP, 0); if (sctl) { mdss_mdp_ctl_write(sctl, MDSS_MDP_REG_CTL_TOP, 0); mdss_mdp_reset_mixercfg(sctl); } mdss_mdp_reset_mixercfg(ctl); ctl->play_cnt = 0; end: if (!ret) { ctl->power_state = power_state; if (!ctl->pending_mode_switch) mdss_mdp_ctl_perf_update(ctl, 0, true); } mdss_mdp_clk_ctrl(MDP_BLOCK_POWER_OFF); mutex_unlock(&ctl->lock); return ret; } /* * mdss_mdp_pipe_reset() - Halts all the pipes during ctl reset. * @mixer: Mixer from which to reset all pipes. * This function called during control path reset and will halt * all the pipes staged on the mixer. */ static void mdss_mdp_pipe_reset(struct mdss_mdp_mixer *mixer, bool is_recovery) { unsigned long pipe_map = mixer->pipe_mapped; u32 bit = 0; struct mdss_data_type *mdata = mdss_mdp_get_mdata(); bool sw_rst_avail = mdss_mdp_pipe_is_sw_reset_available(mdata); pr_debug("pipe_map=0x%lx\n", pipe_map); for_each_set_bit_from(bit, &pipe_map, MAX_PIPES_PER_LM) { struct mdss_mdp_pipe *pipe; pipe = mdss_mdp_pipe_search(mdata, 1 << bit); if (pipe) { mdss_mdp_pipe_fetch_halt(pipe, is_recovery); if (sw_rst_avail) mdss_mdp_pipe_clk_force_off(pipe); } } } static u32 mdss_mdp_poll_ctl_reset_status(struct mdss_mdp_ctl *ctl, u32 cnt) { u32 status; /* * it takes around 30us to have mdp finish resetting its ctl path * poll every 50us so that reset should be completed at 1st poll */ do { udelay(50); status = mdss_mdp_ctl_read(ctl, MDSS_MDP_REG_CTL_SW_RESET); status &= 0x01; pr_debug("status=%x, count=%d\n", status, cnt); cnt--; } while (cnt > 0 && status); return status; } /* * mdss_mdp_check_ctl_reset_status() - checks ctl reset status * @ctl: mdp controller * * This function checks the ctl reset status before every frame update. * If the reset bit is set, it keeps polling the status till the hw * reset is complete. And does a panic if hw fails to complet the reset * with in the max poll interval. */ void mdss_mdp_check_ctl_reset_status(struct mdss_mdp_ctl *ctl) { u32 status; if (!ctl) return; status = mdss_mdp_ctl_read(ctl, MDSS_MDP_REG_CTL_SW_RESET); status &= 0x01; if (!status) return; pr_debug("hw ctl reset is set for ctl:%d\n", ctl->num); status = mdss_mdp_poll_ctl_reset_status(ctl, 5); if (status) { pr_err("hw recovery is not complete for ctl:%d\n", ctl->num); MDSS_XLOG_TOUT_HANDLER("mdp", "vbif", "vbif_nrt", "dbg_bus", "vbif_dbg_bus", "panic"); } } /* * mdss_mdp_ctl_reset() - reset mdp ctl path. * @ctl: mdp controller. * this function called when underflow happen, * it will reset mdp ctl path and poll for its completion * * Note: called within atomic context. */ int mdss_mdp_ctl_reset(struct mdss_mdp_ctl *ctl, bool is_recovery) { u32 status; struct mdss_mdp_mixer *mixer; if (!ctl) { pr_err("ctl not initialized\n"); return -EINVAL; } mixer = ctl->mixer_left; mdss_mdp_ctl_write(ctl, MDSS_MDP_REG_CTL_SW_RESET, 1); status = mdss_mdp_poll_ctl_reset_status(ctl, 20); if (status) pr_err("sw ctl:%d reset timedout\n", ctl->num); if (mixer) { mdss_mdp_pipe_reset(mixer, is_recovery); if (is_dual_lm_single_display(ctl->mfd)) mdss_mdp_pipe_reset(ctl->mixer_right, is_recovery); } return (status) ? -EAGAIN : 0; } /* * mdss_mdp_mixer_update_pipe_map() - keep track of pipe configuration in mixer * @master_ctl: mdp controller. * * This function keeps track of the current mixer configuration in the hardware. * It's callers responsibility to call with master control. */ void mdss_mdp_mixer_update_pipe_map(struct mdss_mdp_ctl *master_ctl, int mixer_mux) { struct mdss_mdp_mixer *mixer = mdss_mdp_mixer_get(master_ctl, mixer_mux); if (!mixer) return; pr_debug("mixer%d pipe_mapped=0x%x next_pipes=0x%x\n", mixer->num, mixer->pipe_mapped, mixer->next_pipe_map); mixer->pipe_mapped = mixer->next_pipe_map; } static void mdss_mdp_set_mixer_roi(struct mdss_mdp_mixer *mixer, struct mdss_rect *roi) { mixer->valid_roi = (roi->w && roi->h); mixer->roi_changed = false; if (!mdss_rect_cmp(roi, &mixer->roi)) { mixer->roi = *roi; mixer->params_changed++; mixer->roi_changed = true; } pr_debug("mixer%d ROI %s: [%d, %d, %d, %d]\n", mixer->num, mixer->roi_changed ? "changed" : "not changed", mixer->roi.x, mixer->roi.y, mixer->roi.w, mixer->roi.h); MDSS_XLOG(mixer->num, mixer->roi_changed, mixer->valid_roi, mixer->roi.x, mixer->roi.y, mixer->roi.w, mixer->roi.h); } /* only call from master ctl */ void mdss_mdp_set_roi(struct mdss_mdp_ctl *ctl, struct mdss_rect *l_roi, struct mdss_rect *r_roi) { struct mdss_data_type *mdata = mdss_mdp_get_mdata(); enum mdss_mdp_pu_type previous_frame_pu_type, current_frame_pu_type; /* Reset ROI when we have (1) invalid ROI (2) feature disabled */ if ((!l_roi->w && l_roi->h) || (l_roi->w && !l_roi->h) || (!r_roi->w && r_roi->h) || (r_roi->w && !r_roi->h) || (!l_roi->w && !l_roi->h && !r_roi->w && !r_roi->h) || !ctl->panel_data->panel_info.partial_update_enabled) { if (ctl->mixer_left) *l_roi = (struct mdss_rect) {0, 0, ctl->mixer_left->width, ctl->mixer_left->height}; if (ctl->mixer_right) *r_roi = (struct mdss_rect) {0, 0, ctl->mixer_right->width, ctl->mixer_right->height}; } previous_frame_pu_type = mdss_mdp_get_pu_type(ctl); if (ctl->mixer_left) { mdss_mdp_set_mixer_roi(ctl->mixer_left, l_roi); ctl->roi = ctl->mixer_left->roi; } if (ctl->mfd->split_mode == MDP_DUAL_LM_DUAL_DISPLAY) { struct mdss_mdp_ctl *sctl = mdss_mdp_get_split_ctl(ctl); if (sctl && sctl->mixer_left) { mdss_mdp_set_mixer_roi(sctl->mixer_left, r_roi); sctl->roi = sctl->mixer_left->roi; } } else if (is_dual_lm_single_display(ctl->mfd) && ctl->mixer_right) { mdss_mdp_set_mixer_roi(ctl->mixer_right, r_roi); /* in this case, CTL_ROI is a union of left+right ROIs. */ ctl->roi.w += ctl->mixer_right->roi.w; /* right_only, update roi.x as per CTL ROI guidelines */ if (ctl->mixer_left && !ctl->mixer_left->valid_roi) { ctl->roi = ctl->mixer_right->roi; ctl->roi.x = left_lm_w_from_mfd(ctl->mfd) + ctl->mixer_right->roi.x; } } current_frame_pu_type = mdss_mdp_get_pu_type(ctl); /* * Force HW programming whenever partial update type changes * between two consecutive frames to avoid incorrect HW programming. */ if (is_split_lm(ctl->mfd) && mdata->has_src_split && (previous_frame_pu_type != current_frame_pu_type)) { if (ctl->mixer_left) ctl->mixer_left->roi_changed = true; if (ctl->mixer_right) ctl->mixer_right->roi_changed = true; } } u32 mdss_mdp_get_mixer_mask(u32 pipe_num, u32 stage) { u32 mask = 0; if ((pipe_num == MDSS_MDP_SSPP_VIG3 || pipe_num == MDSS_MDP_SSPP_RGB3)) { /* Add 2 to account for Cursor & Border bits */ mask = stage << ((3 * pipe_num) + 2); } else { mask = stage << (3 * pipe_num); } return mask; } u32 mdss_mdp_get_mixer_extn_mask(u32 pipe_num, u32 stage) { u32 mask = 0; /* * The ctl layer extension bits are ordered * VIG0-3, RGB0-3, DMA0-1 */ if (pipe_num < MDSS_MDP_SSPP_RGB0) { mask = BIT(pipe_num << 1); } else if (pipe_num >= MDSS_MDP_SSPP_RGB0 && pipe_num < MDSS_MDP_SSPP_DMA0) { mask = BIT((pipe_num + 1) << 1); } else if (pipe_num >= MDSS_MDP_SSPP_DMA0 && pipe_num < MDSS_MDP_SSPP_VIG3) { mask = BIT((pipe_num + 2) << 1); } else if (pipe_num >= MDSS_MDP_SSPP_CURSOR0 && pipe_num <= MDSS_MDP_SSPP_CURSOR1) { mask = stage << (20 + (6 * (pipe_num - MDSS_MDP_SSPP_CURSOR0))); } else if (pipe_num == MDSS_MDP_SSPP_VIG3) { mask = BIT(6); } else if (pipe_num == MDSS_MDP_SSPP_RGB3) { mask = BIT(14); } return mask; } static void mdss_mdp_mixer_setup(struct mdss_mdp_ctl *master_ctl, int mixer_mux, bool lm_swap) { int i; int stage, screen_state, outsize; u32 off, blend_op, blend_stage; u32 mixercfg = 0, mixer_op_mode = 0, bg_alpha_enable = 0, mixercfg_extn = 0; u32 fg_alpha = 0, bg_alpha = 0; struct mdss_mdp_pipe *pipe; struct mdss_mdp_ctl *ctl, *ctl_hw; struct mdss_data_type *mdata = mdss_mdp_get_mdata(); struct mdss_mdp_mixer *mixer_hw = mdss_mdp_mixer_get(master_ctl, mixer_mux); struct mdss_mdp_mixer *mixer; if (!mixer_hw) return; ctl = mixer_hw->ctl; if (!ctl) return; ctl_hw = ctl; mixer_hw->params_changed = 0; /* check if mixer setup for rotator is needed */ if (mixer_hw->rotator_mode) { mdss_mdp_reset_mixercfg(ctl_hw); return; } if (lm_swap) { if (mixer_mux == MDSS_MDP_MIXER_MUX_RIGHT) mixer = mdss_mdp_mixer_get(master_ctl, MDSS_MDP_MIXER_MUX_LEFT); else mixer = mdss_mdp_mixer_get(master_ctl, MDSS_MDP_MIXER_MUX_RIGHT); ctl_hw = mixer->ctl; } else { mixer = mixer_hw; } /* * if lm_swap was used on MDP_DUAL_LM_DUAL_DISPLAY then we need to * reset mixercfg every frame because there might be a stale value * in mixerfcfg register. */ if ((ctl->mfd->split_mode == MDP_DUAL_LM_DUAL_DISPLAY) && is_dsc_compression(&ctl->panel_data->panel_info) && ctl->panel_data->panel_info.partial_update_enabled && mdss_has_quirk(mdata, MDSS_QUIRK_DSC_RIGHT_ONLY_PU)) mdss_mdp_reset_mixercfg(ctl_hw); if (!mixer->valid_roi) { /* * resetting mixer config is specifically needed when split * mode is MDP_DUAL_LM_SINGLE_DISPLAY but update is only on * one side. */ off = __mdss_mdp_ctl_get_mixer_off(mixer_hw); mdss_mdp_ctl_write(ctl_hw, off, 0); /* Program ctl layer extension bits */ off = __mdss_mdp_ctl_get_mixer_extn_off(mixer_hw); mdss_mdp_ctl_write(ctl_hw, off, 0); MDSS_XLOG(mixer->num, mixer_hw->num, XLOG_FUNC_EXIT); return; } trace_mdp_mixer_update(mixer_hw->num); pr_debug("setup mixer=%d hw=%d\n", mixer->num, mixer_hw->num); screen_state = ctl->force_screen_state; outsize = (mixer->roi.h << 16) | mixer->roi.w; mdp_mixer_write(mixer_hw, MDSS_MDP_REG_LM_OUT_SIZE, outsize); if (screen_state == MDSS_SCREEN_FORCE_BLANK) { mixercfg = MDSS_MDP_LM_BORDER_COLOR; goto update_mixer; } pipe = mixer->stage_pipe[MDSS_MDP_STAGE_BASE * MAX_PIPES_PER_STAGE]; if (pipe == NULL) { mixercfg = MDSS_MDP_LM_BORDER_COLOR; } else { if (pipe->type == MDSS_MDP_PIPE_TYPE_CURSOR) mixercfg_extn |= mdss_mdp_get_mixer_extn_mask( pipe->num, 1); else mixercfg |= mdss_mdp_get_mixer_mask(pipe->num, 1); if (pipe->src_fmt->alpha_enable) bg_alpha_enable = 1; } i = MDSS_MDP_STAGE_0 * MAX_PIPES_PER_STAGE; for (; i < MAX_PIPES_PER_LM; i++) { pipe = mixer->stage_pipe[i]; if (pipe == NULL) continue; stage = i / MAX_PIPES_PER_STAGE; if (stage != pipe->mixer_stage) { pr_err("pipe%d mixer:%d mixer:%d stage mismatch. pipe->mixer_stage=%d, mixer->stage_pipe=%d. skip staging it\n", pipe->num, mixer->num, mixer->num, pipe->mixer_stage, stage); mixer->stage_pipe[i] = NULL; continue; } /* * pipe which is staged on both LMs will be tracked through * left mixer only. */ if (!pipe->src_split_req || !mixer->is_right_mixer) mixer->next_pipe_map |= pipe->ndx; blend_stage = stage - MDSS_MDP_STAGE_0; off = MDSS_MDP_REG_LM_BLEND_OFFSET(blend_stage); /* * Account for additional blending stages * from MDP v1.5 onwards */ if (blend_stage > 3) off += MDSS_MDP_REG_LM_BLEND_STAGE4; blend_op = (MDSS_MDP_BLEND_FG_ALPHA_FG_CONST | MDSS_MDP_BLEND_BG_ALPHA_BG_CONST); fg_alpha = pipe->alpha; bg_alpha = 0xFF - pipe->alpha; /* keep fg alpha */ mixer_op_mode |= 1 << (blend_stage + 1); switch (pipe->blend_op) { case BLEND_OP_OPAQUE: blend_op = (MDSS_MDP_BLEND_FG_ALPHA_FG_CONST | MDSS_MDP_BLEND_BG_ALPHA_BG_CONST); pr_debug("pnum=%d stg=%d op=OPAQUE\n", pipe->num, stage); break; case BLEND_OP_PREMULTIPLIED: if (pipe->src_fmt->alpha_enable) { blend_op = (MDSS_MDP_BLEND_FG_ALPHA_FG_CONST | MDSS_MDP_BLEND_BG_ALPHA_FG_PIXEL); if (fg_alpha != 0xff) { bg_alpha = fg_alpha; blend_op |= MDSS_MDP_BLEND_BG_MOD_ALPHA | MDSS_MDP_BLEND_BG_INV_MOD_ALPHA; } else { blend_op |= MDSS_MDP_BLEND_BG_INV_ALPHA; } } pr_debug("pnum=%d stg=%d op=PREMULTIPLIED\n", pipe->num, stage); break; case BLEND_OP_COVERAGE: if (pipe->src_fmt->alpha_enable) { blend_op = (MDSS_MDP_BLEND_FG_ALPHA_FG_PIXEL | MDSS_MDP_BLEND_BG_ALPHA_FG_PIXEL); if (fg_alpha != 0xff) { bg_alpha = fg_alpha; blend_op |= MDSS_MDP_BLEND_FG_MOD_ALPHA | MDSS_MDP_BLEND_FG_INV_MOD_ALPHA | MDSS_MDP_BLEND_BG_MOD_ALPHA | MDSS_MDP_BLEND_BG_INV_MOD_ALPHA; } else { blend_op |= MDSS_MDP_BLEND_BG_INV_ALPHA; } } pr_debug("pnum=%d stg=%d op=COVERAGE\n", pipe->num, stage); break; default: blend_op = (MDSS_MDP_BLEND_FG_ALPHA_FG_CONST | MDSS_MDP_BLEND_BG_ALPHA_BG_CONST); pr_debug("pnum=%d stg=%d op=NONE\n", pipe->num, stage); break; } if (!pipe->src_fmt->alpha_enable && bg_alpha_enable) mixer_op_mode = 0; if ((stage < MDSS_MDP_STAGE_6) && (pipe->type != MDSS_MDP_PIPE_TYPE_CURSOR)) mixercfg |= mdss_mdp_get_mixer_mask(pipe->num, stage); else mixercfg_extn |= mdss_mdp_get_mixer_extn_mask( pipe->num, stage); trace_mdp_sspp_change(pipe); pr_debug("stg=%d op=%x fg_alpha=%x bg_alpha=%x\n", stage, blend_op, fg_alpha, bg_alpha); mdp_mixer_write(mixer_hw, off + MDSS_MDP_REG_LM_OP_MODE, blend_op); mdp_mixer_write(mixer_hw, off + MDSS_MDP_REG_LM_BLEND_FG_ALPHA, fg_alpha); mdp_mixer_write(mixer_hw, off + MDSS_MDP_REG_LM_BLEND_BG_ALPHA, bg_alpha); } if (mixer->cursor_enabled) mixercfg |= MDSS_MDP_LM_CURSOR_OUT; update_mixer: if (mixer_hw->num == MDSS_MDP_INTF_LAYERMIXER3) ctl_hw->flush_bits |= BIT(20); else if (mixer_hw->type == MDSS_MDP_MIXER_TYPE_WRITEBACK) ctl_hw->flush_bits |= BIT(9) << mixer_hw->num; else ctl_hw->flush_bits |= BIT(6) << mixer_hw->num; /* Read GC enable/disable status on LM */ mixer_op_mode |= (mdp_mixer_read(mixer_hw, MDSS_MDP_REG_LM_OP_MODE) & BIT(0)); if (mixer->src_split_req && mixer_mux == MDSS_MDP_MIXER_MUX_RIGHT) mixer_op_mode |= BIT(31); mdp_mixer_write(mixer_hw, MDSS_MDP_REG_LM_OP_MODE, mixer_op_mode); mdp_mixer_write(mixer_hw, MDSS_MDP_REG_LM_BORDER_COLOR_0, (mdata->bcolor0 & 0xFFF) | ((mdata->bcolor1 & 0xFFF) << 16)); mdp_mixer_write(mixer_hw, MDSS_MDP_REG_LM_BORDER_COLOR_1, mdata->bcolor2 & 0xFFF); off = __mdss_mdp_ctl_get_mixer_off(mixer_hw); mdss_mdp_ctl_write(ctl_hw, off, mixercfg); /* Program ctl layer extension bits */ off = __mdss_mdp_ctl_get_mixer_extn_off(mixer_hw); mdss_mdp_ctl_write(ctl_hw, off, mixercfg_extn); pr_debug("mixer=%d hw=%d cfg=0%08x cfg_extn=0x%08x op_mode=0x%08x w=%d h=%d bc0=0x%x bc1=0x%x\n", mixer->num, mixer_hw->num, mixercfg, mixercfg_extn, mixer_op_mode, mixer->roi.w, mixer->roi.h, (mdata->bcolor0 & 0xFFF) | ((mdata->bcolor1 & 0xFFF) << 16), mdata->bcolor2 & 0xFFF); MDSS_XLOG(mixer->num, mixer_hw->num, mixercfg, mixercfg_extn, mixer_op_mode, mixer->roi.h, mixer->roi.w); } int mdss_mdp_mixer_addr_setup(struct mdss_data_type *mdata, u32 *mixer_offsets, u32 *dspp_offsets, u32 *pingpong_offsets, u32 type, u32 len) { struct mdss_mdp_mixer *head; u32 i; int rc = 0; u32 size = len; if ((type == MDSS_MDP_MIXER_TYPE_WRITEBACK) && (mdata->wfd_mode == MDSS_MDP_WFD_SHARED)) size++; head = devm_kzalloc(&mdata->pdev->dev, sizeof(struct mdss_mdp_mixer) * size, GFP_KERNEL); if (!head) { pr_err("unable to setup mixer type=%d :kzalloc fail\n", type); return -ENOMEM; } for (i = 0; i < len; i++) { head[i].type = type; head[i].base = mdata->mdss_io.base + mixer_offsets[i]; head[i].ref_cnt = 0; head[i].num = i; if (type == MDSS_MDP_MIXER_TYPE_INTF && dspp_offsets && pingpong_offsets) { if (mdata->ndspp > i) head[i].dspp_base = mdata->mdss_io.base + dspp_offsets[i]; head[i].pingpong_base = mdata->mdss_io.base + pingpong_offsets[i]; } } /* * Duplicate the last writeback mixer for concurrent line and block mode * operations */ if ((type == MDSS_MDP_MIXER_TYPE_WRITEBACK) && (mdata->wfd_mode == MDSS_MDP_WFD_SHARED)) head[len] = head[len - 1]; switch (type) { case MDSS_MDP_MIXER_TYPE_INTF: mdata->mixer_intf = head; break; case MDSS_MDP_MIXER_TYPE_WRITEBACK: mdata->mixer_wb = head; break; default: pr_err("Invalid mixer type=%d\n", type); rc = -EINVAL; break; } return rc; } int mdss_mdp_ctl_addr_setup(struct mdss_data_type *mdata, u32 *ctl_offsets, u32 len) { struct mdss_mdp_ctl *head; struct mutex *shared_lock = NULL; u32 i; u32 size = len; if (mdata->wfd_mode == MDSS_MDP_WFD_SHARED) { size++; shared_lock = devm_kzalloc(&mdata->pdev->dev, sizeof(struct mutex), GFP_KERNEL); if (!shared_lock) { pr_err("unable to allocate mem for mutex\n"); return -ENOMEM; } mutex_init(shared_lock); } head = devm_kzalloc(&mdata->pdev->dev, sizeof(struct mdss_mdp_ctl) * size, GFP_KERNEL); if (!head) { pr_err("unable to setup ctl and wb: kzalloc fail\n"); return -ENOMEM; } for (i = 0; i < len; i++) { head[i].num = i; head[i].base = (mdata->mdss_io.base) + ctl_offsets[i]; head[i].ref_cnt = 0; } if (mdata->wfd_mode == MDSS_MDP_WFD_SHARED) { head[len - 1].shared_lock = shared_lock; /* * Allocate a virtual ctl to be able to perform simultaneous * line mode and block mode operations on the same * writeback block */ head[len] = head[len - 1]; head[len].num = head[len - 1].num; } mdata->ctl_off = head; return 0; } int mdss_mdp_wb_addr_setup(struct mdss_data_type *mdata, u32 num_block_wb, u32 num_intf_wb) { struct mdss_mdp_writeback *wb; u32 total, i; total = num_block_wb + num_intf_wb; wb = devm_kzalloc(&mdata->pdev->dev, sizeof(struct mdss_mdp_writeback) * total, GFP_KERNEL); if (!wb) { pr_err("unable to setup wb: kzalloc fail\n"); return -ENOMEM; } for (i = 0; i < total; i++) { wb[i].num = i; if (i < num_block_wb) { wb[i].caps = MDSS_MDP_WB_ROTATOR | MDSS_MDP_WB_WFD; if (mdss_mdp_is_ubwc_supported(mdata)) wb[i].caps |= MDSS_MDP_WB_UBWC; } else { wb[i].caps = MDSS_MDP_WB_WFD | MDSS_MDP_WB_INTF; } } mdata->wb = wb; mdata->nwb = total; mutex_init(&mdata->wb_lock); return 0; } struct mdss_mdp_mixer *mdss_mdp_mixer_get(struct mdss_mdp_ctl *ctl, int mux) { struct mdss_mdp_mixer *mixer = NULL; if (!ctl) { pr_err("ctl not initialized\n"); return NULL; } switch (mux) { case MDSS_MDP_MIXER_MUX_DEFAULT: case MDSS_MDP_MIXER_MUX_LEFT: mixer = ctl->mixer_left; break; case MDSS_MDP_MIXER_MUX_RIGHT: mixer = ctl->mixer_right; break; } return mixer; } struct mdss_mdp_pipe *mdss_mdp_get_staged_pipe(struct mdss_mdp_ctl *ctl, int mux, int stage, bool is_right_blend) { struct mdss_mdp_pipe *pipe = NULL; struct mdss_mdp_mixer *mixer; int index = (stage * MAX_PIPES_PER_STAGE) + (int)is_right_blend; if (!ctl) return NULL; BUG_ON(index > MAX_PIPES_PER_LM); mixer = mdss_mdp_mixer_get(ctl, mux); if (mixer && (index < MAX_PIPES_PER_LM)) pipe = mixer->stage_pipe[index]; pr_debug("%pS index=%d pipe%d\n", __builtin_return_address(0), index, pipe ? pipe->num : -1); return pipe; } int mdss_mdp_get_pipe_flush_bits(struct mdss_mdp_pipe *pipe) { u32 flush_bits; if (pipe->type == MDSS_MDP_PIPE_TYPE_DMA) flush_bits |= BIT(pipe->num) << 5; else if (pipe->num == MDSS_MDP_SSPP_VIG3 || pipe->num == MDSS_MDP_SSPP_RGB3) flush_bits |= BIT(pipe->num) << 10; else if (pipe->type == MDSS_MDP_PIPE_TYPE_CURSOR) flush_bits |= BIT(22 + pipe->num - MDSS_MDP_SSPP_CURSOR0); else /* RGB/VIG 0-2 pipes */ flush_bits |= BIT(pipe->num); return flush_bits; } int mdss_mdp_async_ctl_flush(struct msm_fb_data_type *mfd, u32 flush_bits) { struct mdss_overlay_private *mdp5_data = mfd_to_mdp5_data(mfd); struct mdss_mdp_ctl *ctl = mdp5_data->ctl; struct mdss_mdp_ctl *sctl = mdss_mdp_get_split_ctl(ctl); int ret = 0; mutex_lock(&ctl->flush_lock); mdss_mdp_ctl_write(ctl, MDSS_MDP_REG_CTL_FLUSH, flush_bits); if ((!ctl->split_flush_en) && sctl) mdss_mdp_ctl_write(sctl, MDSS_MDP_REG_CTL_FLUSH, flush_bits); mutex_unlock(&ctl->flush_lock); return ret; } int mdss_mdp_mixer_pipe_update(struct mdss_mdp_pipe *pipe, struct mdss_mdp_mixer *mixer, int params_changed) { struct mdss_mdp_ctl *ctl; int i, j, k; if (!pipe) return -EINVAL; if (!mixer) return -EINVAL; ctl = mixer->ctl; if (!ctl) return -EINVAL; if (pipe->mixer_stage >= MDSS_MDP_MAX_STAGE) { pr_err("invalid mixer stage\n"); return -EINVAL; } pr_debug("pnum=%x mixer=%d stage=%d\n", pipe->num, mixer->num, pipe->mixer_stage); mutex_lock(&ctl->flush_lock); if (params_changed) { mixer->params_changed++; for (i = MDSS_MDP_STAGE_UNUSED; i < MDSS_MDP_MAX_STAGE; i++) { j = i * MAX_PIPES_PER_STAGE; /* * 1. If pipe is on the right side of the blending * stage, on either left LM or right LM but it is not * crossing LM boundry then right_blend ndx is used. * 2. If pipe is on the right side of the blending * stage on left LM and it is crossing LM boundry * then for left LM it is placed into right_blend * index but for right LM it still placed into * left_blend index. */ if (pipe->is_right_blend && (!pipe->src_split_req || (pipe->src_split_req && !mixer->is_right_mixer))) j++; /* First clear all blend containers for current stage */ for (k = 0; k < MAX_PIPES_PER_STAGE; k++) { u32 ndx = (i * MAX_PIPES_PER_STAGE) + k; if (mixer->stage_pipe[ndx] == pipe) mixer->stage_pipe[ndx] = NULL; } /* then stage actual pipe on specific blend container */ if (i == pipe->mixer_stage) mixer->stage_pipe[j] = pipe; } } ctl->flush_bits |= mdss_mdp_get_pipe_flush_bits(pipe); mutex_unlock(&ctl->flush_lock); return 0; } /** * mdss_mdp_mixer_unstage_all() - Unstage all pipes from mixer * @mixer: Mixer from which to unstage all pipes * * Unstage any pipes that are currently attached to mixer. * * NOTE: this will not update the pipe structure, and thus a full * deinitialization or reconfiguration of all pipes is expected after this call. */ void mdss_mdp_mixer_unstage_all(struct mdss_mdp_mixer *mixer) { struct mdss_mdp_pipe *tmp; int i; if (!mixer) return; for (i = 0; i < MAX_PIPES_PER_LM; i++) { tmp = mixer->stage_pipe[i]; if (tmp) { mixer->stage_pipe[i] = NULL; mixer->params_changed++; tmp->params_changed++; } } } int mdss_mdp_mixer_pipe_unstage(struct mdss_mdp_pipe *pipe, struct mdss_mdp_mixer *mixer) { int index; u8 right_blend_index; if (!pipe) return -EINVAL; if (!mixer) return -EINVAL; right_blend_index = pipe->is_right_blend && !(pipe->src_split_req && mixer->is_right_mixer); index = (pipe->mixer_stage * MAX_PIPES_PER_STAGE) + right_blend_index; if (index < MAX_PIPES_PER_LM && pipe == mixer->stage_pipe[index]) { pr_debug("unstage p%d from %s side of stage=%d lm=%d ndx=%d\n", pipe->num, pipe->is_right_blend ? "right" : "left", pipe->mixer_stage, mixer->num, index); mixer->params_changed++; mixer->stage_pipe[index] = NULL; } return 0; } int mdss_mdp_ctl_update_fps(struct mdss_mdp_ctl *ctl) { struct mdss_panel_info *pinfo; struct mdss_overlay_private *mdp5_data; int ret = 0; int new_fps; if (!ctl->panel_data || !ctl->mfd) return -ENODEV; pinfo = &ctl->panel_data->panel_info; if (!pinfo->dynamic_fps || !ctl->ops.config_fps_fnc) return 0; if (!pinfo->default_fps) { /* we haven't got any call to update the fps */ return 0; } mdp5_data = mfd_to_mdp5_data(ctl->mfd); if (!mdp5_data) return -ENODEV; /* * Panel info is already updated with the new fps info, * so we need to lock the data to make sure the panel info * is not updated while we reconfigure the HW. */ mutex_lock(&mdp5_data->dfps_lock); if ((pinfo->dfps_update == DFPS_IMMEDIATE_PORCH_UPDATE_MODE_VFP) || (pinfo->dfps_update == DFPS_IMMEDIATE_PORCH_UPDATE_MODE_HFP) || (pinfo->dfps_update == DFPS_IMMEDIATE_MULTI_UPDATE_MODE_CLK_HFP) || (pinfo->dfps_update == DFPS_IMMEDIATE_MULTI_MODE_HFP_CALC_CLK) || pinfo->dfps_update == DFPS_IMMEDIATE_CLK_UPDATE_MODE) { new_fps = mdss_panel_get_framerate(pinfo, FPS_RESOLUTION_DEFAULT); } else { new_fps = pinfo->new_fps; } pr_debug("fps new:%d old:%d\n", new_fps, pinfo->current_fps); if (new_fps == pinfo->current_fps) { pr_debug("FPS is already %d\n", new_fps); ret = 0; goto exit; } ret = ctl->ops.config_fps_fnc(ctl, new_fps); if (!ret) pr_debug("fps set to %d\n", new_fps); else pr_err("Failed to configure %d fps rc=%d\n", new_fps, ret); exit: mutex_unlock(&mdp5_data->dfps_lock); return ret; } int mdss_mdp_display_wait4comp(struct mdss_mdp_ctl *ctl) { int ret; u32 reg_data, flush_data; struct mdss_data_type *mdata = mdss_mdp_get_mdata(); if (!ctl) { pr_err("invalid ctl\n"); return -ENODEV; } ret = mutex_lock_interruptible(&ctl->lock); if (ret) return ret; if (!mdss_mdp_ctl_is_power_on(ctl)) { mutex_unlock(&ctl->lock); return 0; } ATRACE_BEGIN("wait_fnc"); if (ctl->ops.wait_fnc) ret = ctl->ops.wait_fnc(ctl, NULL); ATRACE_END("wait_fnc"); trace_mdp_commit(ctl); mdss_mdp_ctl_perf_update(ctl, 0, false); mdata->bw_limit_pending = false; if (IS_MDSS_MAJOR_MINOR_SAME(mdata->mdp_rev, MDSS_MDP_HW_REV_103)) { mdss_mdp_clk_ctrl(MDP_BLOCK_POWER_ON); reg_data = mdss_mdp_ctl_read(ctl, MDSS_MDP_REG_CTL_FLUSH); flush_data = readl_relaxed(mdata->mdp_base + AHB_CLK_OFFSET); if ((flush_data & BIT(28)) && !(ctl->flush_reg_data & reg_data)) { flush_data &= ~(BIT(28)); writel_relaxed(flush_data, mdata->mdp_base + AHB_CLK_OFFSET); ctl->flush_reg_data = 0; } mdss_mdp_clk_ctrl(MDP_BLOCK_POWER_OFF); } mutex_unlock(&ctl->lock); return ret; } int mdss_mdp_display_wait4pingpong(struct mdss_mdp_ctl *ctl, bool use_lock) { struct mdss_mdp_ctl *sctl = NULL; int ret; bool recovery_needed = false; if (use_lock) { ret = mutex_lock_interruptible(&ctl->lock); if (ret) return ret; } if (!mdss_mdp_ctl_is_power_on(ctl) || !ctl->ops.wait_pingpong) { if (use_lock) mutex_unlock(&ctl->lock); return 0; } ATRACE_BEGIN("wait_pingpong"); ret = ctl->ops.wait_pingpong(ctl, NULL); ATRACE_END("wait_pingpong"); if (ret) recovery_needed = true; sctl = mdss_mdp_get_split_ctl(ctl); if (sctl && sctl->ops.wait_pingpong) { ATRACE_BEGIN("wait_pingpong sctl"); ret = sctl->ops.wait_pingpong(sctl, NULL); ATRACE_END("wait_pingpong sctl"); if (ret) recovery_needed = true; } ctl->mdata->bw_limit_pending = false; if (recovery_needed) { mdss_mdp_ctl_reset(ctl, true); if (sctl) mdss_mdp_ctl_reset(sctl, true); mdss_mdp_ctl_intf_event(ctl, MDSS_EVENT_DSI_RESET_WRITE_PTR, NULL, CTL_INTF_EVENT_FLAG_DEFAULT); pr_debug("pingpong timeout recovery finished\n"); } if (use_lock) mutex_unlock(&ctl->lock); return ret; } static void mdss_mdp_force_border_color(struct mdss_mdp_ctl *ctl) { struct mdss_mdp_ctl *sctl = mdss_mdp_get_split_ctl(ctl); struct mdss_data_type *mdata = mdss_mdp_get_mdata(); bool lm_swap = mdss_mdp_is_lm_swap_needed(mdata, ctl); ctl->force_screen_state = MDSS_SCREEN_FORCE_BLANK; if (sctl) sctl->force_screen_state = MDSS_SCREEN_FORCE_BLANK; mdss_mdp_mixer_setup(ctl, MDSS_MDP_MIXER_MUX_LEFT, lm_swap); mdss_mdp_mixer_setup(ctl, MDSS_MDP_MIXER_MUX_RIGHT, lm_swap); ctl->force_screen_state = MDSS_SCREEN_DEFAULT; if (sctl) sctl->force_screen_state = MDSS_SCREEN_DEFAULT; /* * Update the params changed for mixer for the next frame to * configure the mixer setup properly. */ if (ctl->mixer_left) ctl->mixer_left->params_changed++; if (ctl->mixer_right) ctl->mixer_right->params_changed++; } int mdss_mdp_display_commit(struct mdss_mdp_ctl *ctl, void *arg, struct mdss_mdp_commit_cb *commit_cb) { struct mdss_mdp_ctl *sctl = NULL; int ret = 0; bool is_bw_released, split_lm_valid; struct mdss_data_type *mdata = mdss_mdp_get_mdata(); u32 ctl_flush_bits = 0, sctl_flush_bits = 0; if (!ctl) { pr_err("display function not set\n"); return -ENODEV; } mutex_lock(&ctl->lock); pr_debug("commit ctl=%d play_cnt=%d\n", ctl->num, ctl->play_cnt); if (!mdss_mdp_ctl_is_power_on(ctl)) { mutex_unlock(&ctl->lock); return 0; } split_lm_valid = mdss_mdp_is_both_lm_valid(ctl); sctl = mdss_mdp_get_split_ctl(ctl); mdss_mdp_clk_ctrl(MDP_BLOCK_POWER_ON); mutex_lock(&ctl->flush_lock); /* * We could have released the bandwidth if there were no transactions * pending, so we want to re-calculate the bandwidth in this situation */ is_bw_released = !mdss_mdp_ctl_perf_get_transaction_status(ctl); if (is_bw_released) { if (sctl) is_bw_released = !mdss_mdp_ctl_perf_get_transaction_status(sctl); } /* * left update on any topology or * any update on MDP_DUAL_LM_SINGLE_DISPLAY topology. */ if (ctl->mixer_left->valid_roi || (is_dual_lm_single_display(ctl->mfd) && ctl->mixer_right->valid_roi)) mdss_mdp_ctl_perf_set_transaction_status(ctl, PERF_SW_COMMIT_STATE, PERF_STATUS_BUSY); /* right update on MDP_DUAL_LM_DUAL_DISPLAY */ if (sctl && sctl->mixer_left->valid_roi) mdss_mdp_ctl_perf_set_transaction_status(sctl, PERF_SW_COMMIT_STATE, PERF_STATUS_BUSY); if (ctl->mixer_right) ctl->mixer_right->src_split_req = mdata->has_src_split && split_lm_valid; if (is_bw_released || ctl->force_screen_state || (ctl->mixer_left->params_changed) || (ctl->mixer_right && ctl->mixer_right->params_changed)) { bool lm_swap = mdss_mdp_is_lm_swap_needed(mdata, ctl); ATRACE_BEGIN("prepare_fnc"); if (ctl->ops.prepare_fnc) ret = ctl->ops.prepare_fnc(ctl, arg); ATRACE_END("prepare_fnc"); if (ret) { pr_err("error preparing display\n"); mutex_unlock(&ctl->flush_lock); goto done; } ATRACE_BEGIN("mixer_programming"); mdss_mdp_ctl_perf_update(ctl, 1, false); mdss_mdp_mixer_setup(ctl, MDSS_MDP_MIXER_MUX_LEFT, lm_swap); mdss_mdp_mixer_setup(ctl, MDSS_MDP_MIXER_MUX_RIGHT, lm_swap); mdss_mdp_ctl_write(ctl, MDSS_MDP_REG_CTL_TOP, ctl->opmode); ctl->flush_bits |= BIT(17); /* CTL */ if (sctl) { mdss_mdp_ctl_write(sctl, MDSS_MDP_REG_CTL_TOP, sctl->opmode); sctl->flush_bits |= BIT(17); sctl_flush_bits = sctl->flush_bits; } ATRACE_END("mixer_programming"); } /* * With partial frame update, enable split display bit only * when validity of ROI's on both the DSI's are identical. */ if (sctl) mdss_mdp_ctl_split_display_enable(split_lm_valid, ctl, sctl); ATRACE_BEGIN("postproc_programming"); if (ctl->is_video_mode && ctl->mfd && ctl->mfd->dcm_state != DTM_ENTER) /* postprocessing setup, including dspp */ mdss_mdp_pp_setup_locked(ctl); if (sctl) { if (ctl->split_flush_en) { ctl->flush_bits |= sctl->flush_bits; sctl->flush_bits = 0; sctl_flush_bits = 0; } else { sctl_flush_bits = sctl->flush_bits; } } ctl_flush_bits = ctl->flush_bits; ATRACE_END("postproc_programming"); mutex_unlock(&ctl->flush_lock); ATRACE_BEGIN("frame_ready"); mdss_mdp_ctl_notify(ctl, MDP_NOTIFY_FRAME_CFG_DONE); if (commit_cb) commit_cb->commit_cb_fnc( MDP_COMMIT_STAGE_SETUP_DONE, commit_cb->data); ret = mdss_mdp_ctl_notify(ctl, MDP_NOTIFY_FRAME_READY); /* * When wait for fence timed out, driver ignores the fences * for signalling. Hardware needs to access only on the buffers * that are valid and driver needs to ensure it. This function * would set the mixer state to border when there is timeout. */ if (ret == NOTIFY_BAD) { mdss_mdp_force_border_color(ctl); ctl_flush_bits |= (ctl->flush_bits | BIT(17)); if (sctl && (!ctl->split_flush_en)) sctl_flush_bits |= (sctl->flush_bits | BIT(17)); ret = 0; } ATRACE_END("frame_ready"); if (ctl->ops.wait_pingpong && !mdata->serialize_wait4pp) mdss_mdp_display_wait4pingpong(ctl, false); /* Moved pp programming to post ping pong */ if (!ctl->is_video_mode && ctl->mfd && ctl->mfd->dcm_state != DTM_ENTER) { /* postprocessing setup, including dspp */ mutex_lock(&ctl->flush_lock); mdss_mdp_pp_setup_locked(ctl); if (sctl) { if (ctl->split_flush_en) { ctl->flush_bits |= sctl->flush_bits; sctl->flush_bits = 0; sctl_flush_bits = 0; } else { sctl_flush_bits = sctl->flush_bits; } } ctl_flush_bits = ctl->flush_bits; mutex_unlock(&ctl->flush_lock); } /* * if serialize_wait4pp is false then roi_bkup used in wait4pingpong * will be of previous frame as expected. */ ctl->roi_bkup.w = ctl->roi.w; ctl->roi_bkup.h = ctl->roi.h; /* * update roi of panel_info which will be * used by dsi to set col_page addr of panel. */ if (ctl->panel_data && ctl->panel_data->panel_info.partial_update_enabled) { if (is_pingpong_split(ctl->mfd)) { bool pp_split = false; struct mdss_rect l_roi, r_roi, temp = {0}; u32 opmode = mdss_mdp_ctl_read(ctl, MDSS_MDP_REG_CTL_TOP) & ~0xF0; /* clear OUT_SEL */ /* * with pp split enabled, it is a requirement that both * panels share equal load, so split-point is center. */ u32 left_panel_w = left_lm_w_from_mfd(ctl->mfd) / 2; mdss_rect_split(&ctl->roi, &l_roi, &r_roi, left_panel_w); /* * If update is only on left panel then we still send * zeroed out right panel ROIs to DSI driver. Based on * zeroed ROI, DSI driver identifies which panel is not * transmitting. */ ctl->panel_data->panel_info.roi = l_roi; ctl->panel_data->next->panel_info.roi = r_roi; /* based on the roi, update ctl topology */ if (!mdss_rect_cmp(&temp, &l_roi) && !mdss_rect_cmp(&temp, &r_roi)) { /* left + right */ opmode |= (ctl->intf_num << 4); pp_split = true; } else if (mdss_rect_cmp(&temp, &l_roi)) { /* right only */ opmode |= (ctl->slave_intf_num << 4); pp_split = false; } else { /* left only */ opmode |= (ctl->intf_num << 4); pp_split = false; } mdss_mdp_ctl_write(ctl, MDSS_MDP_REG_CTL_TOP, opmode); mdss_mdp_ctl_pp_split_display_enable(pp_split, ctl); } else { /* * if single lm update on 3D mux topology, clear it. */ if ((is_dual_lm_single_display(ctl->mfd)) && (ctl->opmode & MDSS_MDP_CTL_OP_PACK_3D_ENABLE) && (!mdss_mdp_is_both_lm_valid(ctl))) { u32 opmode = mdss_mdp_ctl_read(ctl, MDSS_MDP_REG_CTL_TOP); opmode &= ~(0xF << 19); /* clear 3D Mux */ mdss_mdp_ctl_write(ctl, MDSS_MDP_REG_CTL_TOP, opmode); } ctl->panel_data->panel_info.roi = ctl->roi; if (sctl && sctl->panel_data) sctl->panel_data->panel_info.roi = sctl->roi; } } if (commit_cb) commit_cb->commit_cb_fnc(MDP_COMMIT_STAGE_READY_FOR_KICKOFF, commit_cb->data); if (mdss_has_quirk(mdata, MDSS_QUIRK_BWCPANIC) && !bitmap_empty(mdata->bwc_enable_map, MAX_DRV_SUP_PIPES)) mdss_mdp_bwcpanic_ctrl(mdata, true); ATRACE_BEGIN("flush_kickoff"); mdss_mdp_ctl_write(ctl, MDSS_MDP_REG_CTL_FLUSH, ctl_flush_bits); if (sctl && sctl_flush_bits) { mdss_mdp_ctl_write(sctl, MDSS_MDP_REG_CTL_FLUSH, sctl_flush_bits); sctl->flush_bits = 0; } MDSS_XLOG(ctl->intf_num, ctl_flush_bits, sctl_flush_bits, split_lm_valid); wmb(); ctl->flush_reg_data = ctl_flush_bits; ctl->flush_bits = 0; mdss_mdp_mixer_update_pipe_map(ctl, MDSS_MDP_MIXER_MUX_LEFT); mdss_mdp_mixer_update_pipe_map(ctl, MDSS_MDP_MIXER_MUX_RIGHT); /* right-only kickoff */ if (!ctl->mixer_left->valid_roi && sctl && sctl->mixer_left->valid_roi) { /* * Seperate kickoff on DSI1 is needed only when we have * ONLY right half updating on a dual DSI panel */ if (sctl->ops.display_fnc) ret = sctl->ops.display_fnc(sctl, arg); } else { if (ctl->ops.display_fnc) ret = ctl->ops.display_fnc(ctl, arg); /* DSI0 kickoff */ } if (ret) pr_warn("ctl %d error displaying frame\n", ctl->num); ctl->play_cnt++; ATRACE_END("flush_kickoff"); done: mdss_mdp_clk_ctrl(MDP_BLOCK_POWER_OFF); mutex_unlock(&ctl->lock); return ret; } void mdss_mdp_ctl_notifier_register(struct mdss_mdp_ctl *ctl, struct notifier_block *notifier) { struct mdss_mdp_ctl *sctl; blocking_notifier_chain_register(&ctl->notifier_head, notifier); sctl = mdss_mdp_get_split_ctl(ctl); if (sctl) blocking_notifier_chain_register(&sctl->notifier_head, notifier); } void mdss_mdp_ctl_notifier_unregister(struct mdss_mdp_ctl *ctl, struct notifier_block *notifier) { struct mdss_mdp_ctl *sctl; blocking_notifier_chain_unregister(&ctl->notifier_head, notifier); sctl = mdss_mdp_get_split_ctl(ctl); if (sctl) blocking_notifier_chain_unregister(&sctl->notifier_head, notifier); } int mdss_mdp_ctl_notify(struct mdss_mdp_ctl *ctl, int event) { return blocking_notifier_call_chain(&ctl->notifier_head, event, ctl); } int mdss_mdp_get_ctl_mixers(u32 fb_num, u32 *mixer_id) { int i; struct mdss_mdp_ctl *ctl; struct mdss_data_type *mdata; u32 mixer_cnt = 0; mutex_lock(&mdss_mdp_ctl_lock); mdata = mdss_mdp_get_mdata(); for (i = 0; i < mdata->nctl; i++) { ctl = mdata->ctl_off + i; if ((mdss_mdp_ctl_is_power_on(ctl)) && (ctl->mfd) && (ctl->mfd->index == fb_num)) { if (ctl->mixer_left) { mixer_id[mixer_cnt] = ctl->mixer_left->num; mixer_cnt++; } if (mixer_cnt && ctl->mixer_right) { mixer_id[mixer_cnt] = ctl->mixer_right->num; mixer_cnt++; } if (mixer_cnt) break; } } mutex_unlock(&mdss_mdp_ctl_lock); return mixer_cnt; } /** * @mdss_mdp_ctl_mixer_switch() - return ctl mixer of @return_type * @ctl: Pointer to ctl structure to be switched. * @return_type: wb_type of the ctl to be switched to. * * Virtual mixer switch should be performed only when there is no * dedicated wfd block and writeback block is shared. */ struct mdss_mdp_ctl *mdss_mdp_ctl_mixer_switch(struct mdss_mdp_ctl *ctl, u32 return_type) { int i; struct mdss_data_type *mdata = ctl->mdata; if (ctl->wb_type == return_type) { mdata->mixer_switched = false; return ctl; } for (i = 0; i <= mdata->nctl; i++) { if (mdata->ctl_off[i].wb_type == return_type) { pr_debug("switching mixer from ctl=%d to ctl=%d\n", ctl->num, mdata->ctl_off[i].num); mdata->mixer_switched = true; return mdata->ctl_off + i; } } pr_err("unable to switch mixer to type=%d\n", return_type); return NULL; } static int __mdss_mdp_mixer_handoff_helper(struct mdss_mdp_mixer *mixer, struct mdss_mdp_pipe *pipe) { int rc = 0; struct mdss_data_type *mdata = mdss_mdp_get_mdata(); u32 right_blend = 0; if (!mixer) { rc = -EINVAL; goto error; } /* * It is possible to have more the one pipe staged on a single * layer mixer at same staging level. */ if (mixer->stage_pipe[MDSS_MDP_STAGE_UNUSED] != NULL) { if (mdata->mdp_rev < MDSS_MDP_HW_REV_103) { pr_err("More than one pipe staged on mixer num %d\n", mixer->num); rc = -EINVAL; goto error; } else if (mixer->stage_pipe[MDSS_MDP_STAGE_UNUSED + 1] != NULL) { pr_err("More than two pipe staged on mixer num %d\n", mixer->num); rc = -EINVAL; goto error; } else { right_blend = 1; } } pr_debug("Staging pipe num %d on mixer num %d\n", pipe->num, mixer->num); mixer->stage_pipe[MDSS_MDP_STAGE_UNUSED + right_blend] = pipe; pipe->mixer_left = mixer; pipe->mixer_stage = MDSS_MDP_STAGE_UNUSED; error: return rc; } /** * mdss_mdp_mixer_handoff() - Stages a given pipe on the appropriate mixer * @ctl: pointer to the control structure associated with the overlay device. * @num: the mixer number on which the pipe needs to be staged. * @pipe: pointer to the pipe to be staged. * * Function stages a given pipe on either the left mixer or the right mixer * for the control structre based on the mixer number. If the input mixer * number does not match either of the mixers then an error is returned. * This function is called during overlay handoff when certain pipes are * already staged by the bootloader. */ int mdss_mdp_mixer_handoff(struct mdss_mdp_ctl *ctl, u32 num, struct mdss_mdp_pipe *pipe) { int rc = 0; struct mdss_mdp_mixer *mx_left = ctl->mixer_left; struct mdss_mdp_mixer *mx_right = ctl->mixer_right; /* * For performance calculations, stage the handed off pipe * as MDSS_MDP_STAGE_UNUSED */ if (mx_left && (mx_left->num == num)) { rc = __mdss_mdp_mixer_handoff_helper(mx_left, pipe); } else if (mx_right && (mx_right->num == num)) { rc = __mdss_mdp_mixer_handoff_helper(mx_right, pipe); } else { pr_err("pipe num %d staged on unallocated mixer num %d\n", pipe->num, num); rc = -EINVAL; } return rc; } struct mdss_mdp_writeback *mdss_mdp_wb_alloc(u32 caps, u32 reg_index) { struct mdss_data_type *mdata = mdss_mdp_get_mdata(); struct mdss_mdp_writeback *wb = NULL; int i; bool wb_virtual_on; wb_virtual_on = (mdata->nctl == mdata->nwb_offsets); if (wb_virtual_on && reg_index >= mdata->nwb_offsets) return NULL; mutex_lock(&mdata->wb_lock); for (i = 0; i < mdata->nwb; i++) { wb = mdata->wb + i; if ((wb->caps & caps) && (atomic_read(&wb->kref.refcount) == 0)) { kref_init(&wb->kref); break; } wb = NULL; } mutex_unlock(&mdata->wb_lock); if (wb) { wb->base = mdata->mdss_io.base; if (wb_virtual_on) wb->base += mdata->wb_offsets[reg_index]; else wb->base += mdata->wb_offsets[i]; } return wb; } bool mdss_mdp_is_wb_mdp_intf(u32 num, u32 reg_index) { struct mdss_data_type *mdata = mdss_mdp_get_mdata(); struct mdss_mdp_writeback *wb = NULL; bool wb_virtual_on; wb_virtual_on = (mdata->nctl == mdata->nwb_offsets); if (num >= mdata->nwb || (wb_virtual_on && reg_index >= mdata->nwb_offsets)) return false; wb = mdata->wb + num; if (!wb) return false; return (wb->caps & MDSS_MDP_WB_INTF) ? true : false; } struct mdss_mdp_writeback *mdss_mdp_wb_assign(u32 num, u32 reg_index) { struct mdss_data_type *mdata = mdss_mdp_get_mdata(); struct mdss_mdp_writeback *wb = NULL; bool wb_virtual_on; wb_virtual_on = (mdata->nctl == mdata->nwb_offsets); if (num >= mdata->nwb) return NULL; if (wb_virtual_on && reg_index >= mdata->nwb_offsets) return NULL; mutex_lock(&mdata->wb_lock); wb = mdata->wb + num; if (atomic_read(&wb->kref.refcount) == 0) kref_init(&wb->kref); else wb = NULL; mutex_unlock(&mdata->wb_lock); if (!wb) return NULL; wb->base = mdata->mdss_io.base; if (wb_virtual_on) wb->base += mdata->wb_offsets[reg_index]; else wb->base += mdata->wb_offsets[num]; return wb; } static void mdss_mdp_wb_release(struct kref *kref) { struct mdss_mdp_writeback *wb = container_of(kref, struct mdss_mdp_writeback, kref); if (!wb) return; wb->base = NULL; } void mdss_mdp_wb_free(struct mdss_mdp_writeback *wb) { struct mdss_data_type *mdata = mdss_mdp_get_mdata(); if (kref_put_mutex(&wb->kref, mdss_mdp_wb_release, &mdata->wb_lock)) mutex_unlock(&mdata->wb_lock); }
gpl-2.0
cyberchimps/ifeaturepro4
core/library/js/menu.js
744
jQuery(document).ready(function($){ jQuery('.ifeature-tabbed-wrap').tabs(); }); jQuery(document).ready(function($){ $("ul").parent("li").addClass("parent"); }); jQuery(document).ready(function($){ $("#gallery ul a:hover img").css("opacity", 1); $("#portfolio_wrap .portfolio_caption").css("opacity", 0); $("#portfolio_wrap a").hover(function(){ $(this).children("img").fadeTo("fast", 0.6); $(this).children(".portfolio_caption").fadeTo("fast", 1.0); },function(){ $(this).children("img").fadeTo("fast", 1.0); $(this).children(".portfolio_caption").fadeTo("fast", 0); }); $(".featured-image img").hover(function(){ $(this).fadeTo("fast", 0.75); },function(){ $(this).fadeTo("fast", 1.0); }); });
gpl-2.0
m-godefroid76/devrestofactory
wp-content/themes/berg-wp/admin/includes/js/grid.js
2636
var Models = window.Models || {}; jQuery.noConflict(); Models.Grid = function(w, h, el) { this.width = w; this.height = h; this.blocks = []; this.field = new Models.Block(w, h, 0, 0); this.element = el; this.place = function(block, x, y, html, creationIndex) { block.setPosition(x, y); return this._induct(block); }; this.add = function(block) { var grid = this; var opening = _(this.field.units()).detect(function(unit) { return grid.canFit(block, unit.x, unit.y); }); return this._induct(block); }; this._induct = function(block) { if(this.canFit(block)) { this.blocks.push(block); this.renderChild(block); if(this.isComplete()) { this.element.trigger('complete'); } return this; } return false; }; this.removeBlockWithIndex = function(blockIndex) { if (this.blocks.length == 1) { _(this.blocks).each(function(block) { block.destroy(); }); this.blocks = []; return this; } var indexToRemove = false; var cIndex = 0; _(this.blocks).each(function(block) { if (block.creationIndex == blockIndex) { indexToRemove = cIndex; block.destroy(); } cIndex++; }); if (indexToRemove !== false) { this.blocks.splice(indexToRemove, 1); } return this; }; this.clear = function() { _(this.blocks).each(function(block) { block.destroy(); }); this.blocks = []; return this; }; this.canFit = function(block, blockX, blockY) { block.setPosition(blockX, blockY); for (var i = 0; i < this.blocks.length; i++) { if(this.blocks[i].overlapsAny(block)) { return false; } } return block.overlappedFullyBy(this.field); }; this.blockAtPosition = function(unit) { var testBlock = new Models.Block(1, 1, unit.x, unit.y); return _(this.blocks).detect(function(block){ return block.overlapsAny(testBlock); }); }; this.blocksOverlappedByBlock = function(overlapper) { var grid = this; return _(this.blocks).select(function(block) { return block.overlapsAny(overlapper); }); }; this.isComplete = function() { var gridUnitCount = this.field.units().length; var blockUnitCount = _.reduce(this.blocks, function(memo, block) { return memo + block.units().length; }, 0); return gridUnitCount == blockUnitCount; }; this.render = function() { if (_(this.element).isUndefined()) { this.element = jQuery(document.createElement('div')).addClass('grid'); _.each(this.blocks, function(block) { this.renderChild(block); }, this); } return this.element; }; this.renderChild = function(block) { this.render(); this.element.append(block.render()); }; };
gpl-2.0
arisst/kip
app/views/emails/response.blade.php
499
@extends('emails.layout') @section('header') {{HTML::linkRoute('user-request-list', 'My Request')}} | {{HTML::linkRoute('user-profile-form', 'Profile')}} @stop @section('title') Respon dari admin @stop @section('description') Halo {{{$name}}}, <br> Permohonan informasi anda direspon oleh admin,<br> <br> Untuk melihat detail respon silahkan klik link berikut:<br> <h3>{{HTML::link($link, 'Detail respon')}}</h3> <br><br> Hormat kami,<br><br> {{{Config::get('setting.site_name')}}} @stop
gpl-2.0
pcengines/coreboot
src/mainboard/google/parrot/mainboard.c
1766
/* SPDX-License-Identifier: GPL-2.0-only */ #include <types.h> #include <cpu/x86/smm.h> #include <device/device.h> #include <drivers/intel/gma/int15.h> #include <acpi/acpi.h> #include "onboard.h" #include "ec.h" #include <southbridge/intel/bd82x6x/pch.h> #include <smbios.h> #include <ec/compal/ene932/ec.h> void mainboard_suspend_resume(void) { /* Enable ACPI mode before OS resume */ apm_control(APM_CNT_ACPI_ENABLE); } static void mainboard_init(struct device *dev) { /* Initialize the Embedded Controller */ parrot_ec_init(); } static int parrot_onboard_smbios_data(struct device *dev, int *handle, unsigned long *current) { int len = 0; u8 hardware_version = parrot_rev(); if (hardware_version < 0x2) { /* DVT vs PVT */ len += smbios_write_type41( current, handle, BOARD_TRACKPAD_NAME, /* name */ BOARD_TRACKPAD_IRQ_DVT, /* instance */ 0, /* segment */ BOARD_TRACKPAD_I2C_ADDR, /* bus */ 0, /* device */ 0, /* function */ SMBIOS_DEVICE_TYPE_OTHER); /* device type */ } else { len += smbios_write_type41( current, handle, BOARD_TRACKPAD_NAME, /* name */ BOARD_TRACKPAD_IRQ_PVT, /* instance */ 0, /* segment */ BOARD_TRACKPAD_I2C_ADDR, /* bus */ 0, /* device */ 0, /* function */ SMBIOS_DEVICE_TYPE_OTHER); /* device type */ } return len; } // mainboard_enable is executed as first thing after // enumerate_buses(). static void mainboard_enable(struct device *dev) { dev->ops->init = mainboard_init; dev->ops->get_smbios_data = parrot_onboard_smbios_data; install_intel_vga_int15_handler(GMA_INT15_ACTIVE_LFP_EDP, GMA_INT15_PANEL_FIT_DEFAULT, GMA_INT15_BOOT_DISPLAY_DEFAULT, 0); } struct chip_operations mainboard_ops = { .enable_dev = mainboard_enable, };
gpl-2.0
naoyawada/Concurrent
wp-content/themes/Total/framework/widgets/widget-modern-menu.php
3821
<?php /** * Modern Menu Widget * * Learn more: http://codex.wordpress.org/Widgets_API * * @package Total * @author Alexander Clarke * @copyright Copyright (c) 2014, Symple Workz LLC * @link http://www.wpexplorer.com * @since Total 1.6.0 */ if ( ! class_exists( 'WPEX_Modern_Menu' ) ) { class WPEX_Modern_Menu extends WP_Widget { /** * Register widget with WordPress. * * @since 1.0.0 */ function __construct() { parent::__construct( 'wpex_modern_menu', WPEX_THEME_BRANDING . ' - '. __( 'Modern Sidebar Menu', 'wpex' ), array( 'description' => __( 'A modern looking custom menu widget.', 'wpex' ) ) ); } /** * Front-end display of widget. * * @see WP_Widget::widget() * @since 1.0.0 * * @param array $args Widget arguments. * @param array $instance Saved values from database. */ function widget( $args, $instance ) { // Set vars $title = isset( $instance['title'] ) ? apply_filters( 'widget_title', $instance['title'] ) : __( 'Recent Posts', 'wpex' ); $nav_menu = ! empty( $instance['nav_menu'] ) ? wp_get_nav_menu_object( $instance['nav_menu'] ) : false; // Important hook echo $args['before_widget']; // Display title if ( $title ) { echo $args['before_title'] . $title . $args['after_title']; } if ( $nav_menu ) { echo wp_nav_menu( array( 'menu_class' => 'modern-menu-widget', 'fallback_cb' => '', 'menu' => $nav_menu, ) ); } // Important hook echo $args['after_widget']; } /** * Sanitize widget form values as they are saved. * * @see WP_Widget::update() * @since 1.0.0 * * @param array $new_instance Values just sent to be saved. * @param array $old_instance Previously saved values from database. * * @return array Updated safe values to be saved. */ function update( $new_instance, $old_instance ) { $instance = array(); $instance['title'] = ( ! empty( $new_instance['title'] ) ) ? strip_tags( $new_instance['title'] ) : ''; $instance['nav_menu'] = ( ! empty( $new_instance['nav_menu'] ) ) ? strip_tags( $new_instance['nav_menu'] ) : ''; return $instance; } /** * Back-end widget form. * * @see WP_Widget::form() * @since 1.0.0 * * @param array $instance Previously saved values from database. */ public function form( $instance ) { // Vars $title = isset( $instance['title'] ) ? $instance['title'] : __( 'Browse', 'wpex' ); $nav_menu = isset( $instance['nav_menu'] ) ? $instance['nav_menu'] : ''; ?> <p> <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e('Title:', 'wpex'); ?></label> <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title','wpex'); ?>" type="text" value="<?php echo $title; ?>" /> </p> <p> <label for="<?php echo $this->get_field_id( 'nav_menu' ); ?>"><?php _e( 'Select Menu:', 'wpex' ); ?></label> <select id="<?php echo $this->get_field_id( 'nav_menu' ); ?>" name="<?php echo $this->get_field_name( 'nav_menu' ); ?>"> <?php // Get all menus $menus = get_terms( 'nav_menu', array( 'hide_empty' => true ) ); // Loop through menus to add options if ( ! empty( $menus ) ) { $nav_menu = $nav_menu ? $nav_menu : ''; foreach ( $menus as $menu ) { echo '<option value="' . $menu->term_id . '"' . selected( $nav_menu, $menu->term_id, false ) . '>'. $menu->name . '</option>'; } } ?> </select> </p> <?php } } } // Register the WPEX_Tabs_Widget custom widget if ( ! function_exists( 'register_wpex_modern_menu' ) ) { function register_wpex_modern_menu() { register_widget( 'WPEX_Modern_Menu' ); } } add_action( 'widgets_init', 'register_wpex_modern_menu' );
gpl-2.0
TREX-ROM/android_kernel_asus_grouper
kernel/power/Makefile
713
ccflags-$(CONFIG_PM_DEBUG) := -DDEBUG obj-$(CONFIG_PM) += main.o obj-$(CONFIG_PM_SLEEP) += console.o obj-$(CONFIG_FREEZER) += process.o obj-$(CONFIG_SUSPEND) += suspend.o obj-$(CONFIG_PM_TEST_SUSPEND) += suspend_test.o obj-$(CONFIG_HIBERNATION) += hibernate.o snapshot.o swap.o user.o \ block_io.o obj-$(CONFIG_WAKELOCK) += wakelock.o obj-$(CONFIG_USER_WAKELOCK) += userwakelock.o obj-$(CONFIG_EARLYSUSPEND) += earlysuspend.o obj-$(CONFIG_CONSOLE_EARLYSUSPEND) += consoleearlysuspend.o obj-$(CONFIG_FB_EARLYSUSPEND) += fbearlysuspend.o obj-$(CONFIG_SUSPEND_TIME) += suspend_time.o obj-$(CONFIG_MAGIC_SYSRQ) += poweroff.o obj-$(CONFIG_SUSPEND) += wakeup_reason.o CFLAGS_KERNEL += -fstrict-aliasing
gpl-2.0
serghei/kde3-kdenetwork
kopete/protocols/jabber/jingle/libjingle/talk/base/asyncudpsocket.cc
2770
/* * libjingle * Copyright 2004--2005, Google Inc. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * 3. The name of the author may not be used to endorse or promote products * derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO * EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #if defined(_MSC_VER) && _MSC_VER < 1300 #pragma warning(disable:4786) #endif #include "talk/base/asyncudpsocket.h" #include "talk/base/logging.h" #include <cassert> #include <cstring> #include <iostream> #if defined(_MSC_VER) && _MSC_VER < 1300 namespace std { using ::strerror; } #endif #ifdef POSIX extern "C" { #include <errno.h> } #endif // POSIX namespace cricket { const int BUF_SIZE = 64 * 1024; AsyncUDPSocket::AsyncUDPSocket(AsyncSocket* socket) : AsyncPacketSocket(socket) { size_ = BUF_SIZE; buf_ = new char[size_]; assert(socket_); // The socket should start out readable but not writable. socket_->SignalReadEvent.connect(this, &AsyncUDPSocket::OnReadEvent); } AsyncUDPSocket::~AsyncUDPSocket() { delete [] buf_; } void AsyncUDPSocket::OnReadEvent(AsyncSocket* socket) { assert(socket == socket_); SocketAddress remote_addr; int len = socket_->RecvFrom(buf_, size_, &remote_addr); if (len < 0) { // TODO: Do something better like forwarding the error to the user. PLOG(LS_ERROR, socket_->GetError()) << "recvfrom"; return; } // TODO: Make sure that we got all of the packet. If we did not, then we // should resize our buffer to be large enough. SignalReadPacket(buf_, (size_t)len, remote_addr, this); } } // namespace cricket
gpl-2.0
qingu/WRF-Libraries
src/hdf5-1.8.12/test/dtypes.c
232614
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Copyright by The HDF Group. * * Copyright by the Board of Trustees of the University of Illinois. * * All rights reserved. * * * * This file is part of HDF5. The full HDF5 copyright notice, including * * terms governing use, modification, and redistribution, is contained in * * the files COPYING and Copyright.html. COPYING can be found at the root * * of the source code distribution tree; Copyright.html can be found at the * * root level of an installed copy of the electronic HDF5 document set and * * is linked from the top-level documents page. It can also be found at * * http://hdfgroup.org/HDF5/doc/Copyright.html. If you do not have * * access to either file, you may request a copy from [email protected]. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* * Programmer: Robb Matzke <[email protected]> * Tuesday, December 9, 1997 * * Purpose: Tests the datatype interface (H5T) */ #include <math.h> #include <time.h> #include "h5test.h" #include "H5srcdir.h" #include "H5Iprivate.h" /* For checking that datatype id's don't leak */ /* Number of elements in each test */ #define NTESTELEM 100000 /* For test_compound_8 and test_compound_10 */ #define ARRAY_DIM 4 /* * Offset from alinged memory returned by malloc(). This can be used to test * that type conversions handle non-aligned buffers correctly. */ #define ALIGNMENT 1 /* * Define if you want to test alignment code on a machine that doesn't * normally require alignment. When set, all native datatypes must be aligned * on a byte boundary equal to the data size. */ #define TEST_ALIGNMENT /* Alignment test stuff */ #ifdef TEST_ALIGNMENT #define H5T_PACKAGE #include "H5Tpkg.h" #endif #define SET_ALIGNMENT(TYPE,VAL) \ H5T_NATIVE_##TYPE##_ALIGN_g=MAX(H5T_NATIVE_##TYPE##_ALIGN_g, VAL) /* * Macro for checking that the correct number of datatype ids are present. Be * careful as the call to H5Tunregister removes *ALL* compound conversions from * the soft conversion list. One must call reset_hdf5() after this. */ #define CHECK_NMEMBS(NMEMBS,SRC_ID,DST_ID) \ if(H5Tunregister(H5T_PERS_SOFT, NULL, SRC_ID, DST_ID, NULL) < 0) \ FAIL_STACK_ERROR \ if(H5Tclose(SRC_ID) < 0 || ((SRC_ID) != (DST_ID) && H5Tclose(DST_ID) < 0)) \ FAIL_STACK_ERROR \ if((NMEMBS) != H5I_nmembers(H5I_DATATYPE)) { \ H5_FAILED(); \ printf(" #dtype ids expected: %d; found: %d\n", NMEMBS, \ H5I_nmembers(H5I_DATATYPE)); \ goto error; \ } const char *FILENAME[] = { "dtypes0", "dtypes1", "dtypes2", "dtypes3", "dtypes4", "dtypes5", "dtypes6", "dtypes7", "dtypes8", "dtypes9", "dtypes10", NULL }; #define TESTFILE "bad_compound.h5" typedef struct complex_t { double re; double im; } complex_t; typedef enum dtype_t { INT_SCHAR, INT_UCHAR, INT_SHORT, INT_USHORT, INT_INT, INT_UINT, INT_LONG, INT_ULONG, INT_LLONG, INT_ULLONG, FLT_FLOAT, FLT_DOUBLE, FLT_LDOUBLE, OTHER } dtype_t; /* Constant for size of conversion buffer for int <-> float exception test */ #define CONVERT_SIZE 4 /* Constants for compound_13 test */ #define COMPOUND13_ARRAY_SIZE 256 #define COMPOUND13_ATTR_NAME "attr" /* Constants for delete_obj_named test */ #define DEL_OBJ_NAMED_DATASET "/Dataset" #define DEL_OBJ_NAMED_NAMED_DTYPE "/Dtype" #define DEL_OBJ_NAMED_ATTRIBUTE "Attr" /* Constant for testing conversion of UTF-8 characters */ #define UTF8_DATASET "utf8" #define UTF8_DATASET2 "2nd_utf8" #define ASCII_DATASET "ascii" #define ASCII_DATASET2 "2nd_ascii" /* Count opaque conversions */ static int num_opaque_conversions_g = 0; static int opaque_check(int tag_it); static herr_t convert_opaque(hid_t st, hid_t dt, H5T_cdata_t *cdata, size_t nelmts, size_t buf_stride, size_t bkg_stride, void *_buf, void *bkg, hid_t dset_xfer_plid); static int opaque_long(void); static int opaque_funcs(void); /*------------------------------------------------------------------------- * Function: reset_hdf5 * * Purpose: Reset the hdf5 library. This causes statistics to be printed * and counters to be reset. * * Return: void * * Programmer: Robb Matzke * Monday, November 16, 1998 * * Modifications: * *------------------------------------------------------------------------- */ static void reset_hdf5(void) { h5_reset(); #ifdef TEST_ALIGNMENT SET_ALIGNMENT(SCHAR, H5_SIZEOF_CHAR); SET_ALIGNMENT(UCHAR, H5_SIZEOF_CHAR); SET_ALIGNMENT(SHORT, H5_SIZEOF_SHORT); SET_ALIGNMENT(USHORT, H5_SIZEOF_SHORT); SET_ALIGNMENT(INT, H5_SIZEOF_INT); SET_ALIGNMENT(UINT, H5_SIZEOF_INT); SET_ALIGNMENT(LONG, H5_SIZEOF_LONG); SET_ALIGNMENT(ULONG, H5_SIZEOF_LONG); SET_ALIGNMENT(LLONG, H5_SIZEOF_LONG_LONG); SET_ALIGNMENT(ULLONG, H5_SIZEOF_LONG_LONG); SET_ALIGNMENT(FLOAT, H5_SIZEOF_FLOAT); SET_ALIGNMENT(DOUBLE, H5_SIZEOF_DOUBLE); #if H5_SIZEOF_LONG_DOUBLE !=0 SET_ALIGNMENT(LDOUBLE, H5_SIZEOF_LONG_DOUBLE); #endif #endif } /*------------------------------------------------------------------------- * Function: test_classes * * Purpose: Test type classes * * Return: Success: 0 * * Failure: number of errors * * Programmer: Robb Matzke * Tuesday, December 9, 1997 * * Modifications: * *------------------------------------------------------------------------- */ static int test_classes(void) { struct complex { /* Struct with complex fields */ hvl_t vl_c; hvl_t vl_s; }; hid_t cmpd_id; /* Compound datatype */ hid_t vlc_id; /* VL type of char */ hid_t vls_id; /* VL string */ hid_t memb_id; /* Compound member datatype */ H5T_class_t memb_cls; H5T_class_t tcls; int nmembs; unsigned u; TESTING("H5Tget_class()"); /*------------------------------------------------------------- * Check class of some atomic types. *-----------------------------------------------------------*/ if((tcls = H5Tget_class(H5T_NATIVE_INT)) < 0) TEST_ERROR if(H5T_INTEGER != tcls) TEST_ERROR if((tcls = H5Tget_class(H5T_NATIVE_DOUBLE)) < 0) TEST_ERROR if(H5T_FLOAT != tcls) TEST_ERROR /* Create a VL datatype of char. It should be a VL, not a string class. */ if((vlc_id = H5Tvlen_create(H5T_NATIVE_CHAR)) < 0) TEST_ERROR /* Make certain that the correct classes can be detected */ if((tcls = H5Tget_class(vlc_id)) < 0) TEST_ERROR if(H5T_VLEN != tcls) TEST_ERROR /* Make certain that an incorrect class is not detected */ if(H5T_STRING == tcls) TEST_ERROR /* Create a VL string. It should be a string, not a VL class. */ if((vls_id = H5Tcopy(H5T_C_S1)) < 0) TEST_ERROR if(H5Tset_size(vls_id, H5T_VARIABLE) < 0) TEST_ERROR; /* Make certain that the correct classes can be detected */ if((tcls = H5Tget_class(vls_id)) < 0) TEST_ERROR if(H5T_STRING != tcls) TEST_ERROR /* Make certain that an incorrect class is not detected */ if(H5T_VLEN == tcls) TEST_ERROR /*------------------------------------------------------------- * Check class for member types of compound type. *-----------------------------------------------------------*/ /* Create a compound datatype and insert some complex types */ if((cmpd_id = H5Tcreate(H5T_COMPOUND, sizeof(struct complex))) < 0) TEST_ERROR if(H5Tinsert(cmpd_id, "vl_c", HOFFSET(struct complex, vl_c), vlc_id) < 0) TEST_ERROR if(H5Tinsert(cmpd_id, "vl_s", HOFFSET(struct complex, vl_s), vls_id) < 0) TEST_ERROR if((nmembs = H5Tget_nmembers(cmpd_id)) < 0) TEST_ERROR for(u = 0; u < (unsigned)nmembs; u++) { /* Get member type ID */ if((memb_id = H5Tget_member_type(cmpd_id, u)) < 0) TEST_ERROR /* Get member type class */ if((memb_cls = H5Tget_member_class (cmpd_id, u)) < 0) TEST_ERROR /* Verify member class */ if(H5Tdetect_class(memb_id, memb_cls) < 0) TEST_ERROR /* Close member type ID */ if(H5Tclose(memb_id) < 0) TEST_ERROR } /* end for */ /* Close datatypes */ if(H5Tclose(cmpd_id) < 0) TEST_ERROR if(H5Tclose(vlc_id) < 0) TEST_ERROR if(H5Tclose(vls_id) < 0) TEST_ERROR PASSED(); return 0; error: return 1; } /*------------------------------------------------------------------------- * Function: test_copy * * Purpose: Are we able to copy a datatype? * * Return: Success: 0 * * Failure: number of errors * * Programmer: Robb Matzke * Tuesday, December 9, 1997 * * Modifications: * *------------------------------------------------------------------------- */ static int test_copy(void) { hid_t a_copy; herr_t status; TESTING("H5Tcopy()"); if ((a_copy = H5Tcopy(H5T_NATIVE_SHORT)) < 0) goto error; if (H5Tclose(a_copy) < 0) goto error; /* We should not be able to close a built-in byte */ H5E_BEGIN_TRY { status = H5Tclose (H5T_NATIVE_SCHAR); } H5E_END_TRY; if (status>=0) { H5_FAILED(); HDputs (" Should not be able to close a predefined type!"); goto error; } PASSED(); return 0; error: return 1; } /*------------------------------------------------------------------------- * Function: test_detect * * Purpose: Are we able to detect datatype classes correctly? (Especially * in nested types) * * Return: Success: 0 * * Failure: number of errors * * Programmer: Quincey Koziol * Saturday, August 30, 2003 * * Modifications: * Raymond Lu * 8 December 2009 * I added a field of VL string in the compound type to test * H5Tdetect_class correctly detect it as string type. *------------------------------------------------------------------------- */ static int test_detect(void) { struct atomic { /* Struct with atomic fields */ int i; float f; char c; double d; short s; }; struct complex { /* Struct with complex fields */ hobj_ref_t arr_r[3][3]; int i; hvl_t vl_f; hvl_t vl_s; char c; short s; }; hid_t atom_cmpd_id; /* Atomic Compound datatype */ hid_t atom_arr_id; /* Atomic Array datatype */ hid_t atom_vlf_id; /* Atomic VL datatype of float */ hid_t atom_vlc_id; /* Atomic VL datatype of char */ hid_t atom_vls_id; /* Atomic VL string datatype */ hid_t cplx_cmpd_id; /* Complex Compound datatype */ unsigned rank = 2; /* Rank for array datatype */ hsize_t dims[2] = {3,3}; /* Dimensions for array datatype */ TESTING("H5Tdetect_class()"); /*-------------------------------------------------------------------------------- * Test class of some atomic types. *------------------------------------------------------------------------------*/ /* Native integers should be in the integer class */ if(H5Tdetect_class(H5T_NATIVE_INT,H5T_INTEGER)!=TRUE) TEST_ERROR /* Native integers should _not_ be in other classes */ if(H5Tdetect_class(H5T_NATIVE_INT,H5T_FLOAT)!=FALSE) TEST_ERROR if(H5Tdetect_class(H5T_NATIVE_INT,H5T_ARRAY)!=FALSE) TEST_ERROR if(H5Tdetect_class(H5T_NATIVE_INT,H5T_ENUM)!=FALSE) TEST_ERROR /*-------------------------------------------------------------------------------- * Test class of a compound type with some atomic types as fields. *------------------------------------------------------------------------------*/ /* Create a compound datatype and insert some atomic types */ if ((atom_cmpd_id = H5Tcreate(H5T_COMPOUND, sizeof(struct atomic))) < 0) TEST_ERROR if (H5Tinsert(atom_cmpd_id, "i", HOFFSET(struct atomic, i), H5T_NATIVE_INT) < 0) TEST_ERROR if (H5Tinsert(atom_cmpd_id, "f", HOFFSET(struct atomic, f), H5T_NATIVE_FLOAT) < 0) TEST_ERROR if (H5Tinsert(atom_cmpd_id, "c", HOFFSET(struct atomic, c), H5T_NATIVE_CHAR) < 0) TEST_ERROR if (H5Tinsert(atom_cmpd_id, "d", HOFFSET(struct atomic, d), H5T_NATIVE_DOUBLE) < 0) TEST_ERROR if (H5Tinsert(atom_cmpd_id, "s", HOFFSET(struct atomic, s), H5T_NATIVE_SHORT) < 0) TEST_ERROR /* Make certain that the correct classes can be detected */ if(H5Tdetect_class(atom_cmpd_id,H5T_COMPOUND)!=TRUE) TEST_ERROR if(H5Tdetect_class(atom_cmpd_id,H5T_INTEGER)!=TRUE) TEST_ERROR if(H5Tdetect_class(atom_cmpd_id,H5T_FLOAT)!=TRUE) TEST_ERROR /* Make certain that an incorrect class is not detected */ if(H5Tdetect_class(atom_cmpd_id,H5T_VLEN)!=FALSE) TEST_ERROR /*-------------------------------------------------------------------------------- * Test class of some complex types. *------------------------------------------------------------------------------*/ /* Create an array datatype with an atomic base type */ if((atom_arr_id = H5Tarray_create2(H5T_STD_REF_OBJ, rank, dims)) < 0) TEST_ERROR /* Make certain that the correct classes can be detected */ if(H5Tdetect_class(atom_arr_id,H5T_ARRAY)!=TRUE) TEST_ERROR if(H5Tdetect_class(atom_arr_id,H5T_REFERENCE)!=TRUE) TEST_ERROR /* Make certain that an incorrect class is not detected */ if(H5Tdetect_class(atom_arr_id,H5T_VLEN)!=FALSE) TEST_ERROR if(H5Tdetect_class(atom_arr_id,H5T_FLOAT)!=FALSE) TEST_ERROR if(H5Tdetect_class(atom_arr_id,H5T_INTEGER)!=FALSE) TEST_ERROR /* Create a VL datatype with an atomic base type of float*/ if((atom_vlf_id=H5Tvlen_create(H5T_NATIVE_FLOAT)) < 0) TEST_ERROR /* Make certain that the correct classes can be detected */ if(H5Tdetect_class(atom_vlf_id,H5T_VLEN)!=TRUE) TEST_ERROR if(H5Tdetect_class(atom_vlf_id,H5T_FLOAT)!=TRUE) TEST_ERROR /* Make certain that an incorrect class is not detected */ if(H5Tdetect_class(atom_vlf_id,H5T_COMPOUND)!=FALSE) TEST_ERROR if(H5Tdetect_class(atom_vlf_id,H5T_INTEGER)!=FALSE) TEST_ERROR /* Create a VL datatype with an atomic base type of char. It should be a VL * but not a string class. */ if((atom_vlc_id=H5Tvlen_create(H5T_NATIVE_CHAR)) < 0) TEST_ERROR /* Make certain that the correct classes can be detected */ if(H5Tdetect_class(atom_vlc_id,H5T_VLEN)!=TRUE) TEST_ERROR if(H5Tdetect_class(atom_vlc_id,H5T_INTEGER)!=TRUE) TEST_ERROR /* Make certain that an incorrect class is not detected */ if(H5Tdetect_class(atom_vlc_id,H5T_STRING)!=FALSE) TEST_ERROR /* Create a VL string. It should be a string, not a VL class. */ if((atom_vls_id=H5Tcopy(H5T_C_S1)) < 0) TEST_ERROR if(H5Tset_size(atom_vls_id, H5T_VARIABLE) < 0) TEST_ERROR; /* Make certain that the correct classes can be detected */ if(H5Tdetect_class(atom_vls_id,H5T_STRING)!=TRUE) TEST_ERROR /* Make certain that an incorrect class is not detected */ if(H5Tdetect_class(atom_vls_id,H5T_VLEN)!=FALSE) TEST_ERROR /*-------------------------------------------------------------------------------- * Test class of a compound type with some complex types as fields. *------------------------------------------------------------------------------*/ /* Create a compound datatype and insert some complex types */ if ((cplx_cmpd_id = H5Tcreate(H5T_COMPOUND, sizeof(struct complex))) < 0) TEST_ERROR if (H5Tinsert(cplx_cmpd_id, "arr_r", HOFFSET(struct complex, arr_r), atom_arr_id) < 0) TEST_ERROR if (H5Tinsert(cplx_cmpd_id, "i", HOFFSET(struct complex, i), H5T_NATIVE_INT) < 0) TEST_ERROR if (H5Tinsert(cplx_cmpd_id, "vl_f", HOFFSET(struct complex, vl_f), atom_vlf_id) < 0) TEST_ERROR if (H5Tinsert(cplx_cmpd_id, "vl_s", HOFFSET(struct complex, vl_s), atom_vls_id) < 0) TEST_ERROR if (H5Tinsert(cplx_cmpd_id, "c", HOFFSET(struct complex, c), H5T_NATIVE_CHAR) < 0) TEST_ERROR if (H5Tinsert(cplx_cmpd_id, "s", HOFFSET(struct complex, s), H5T_NATIVE_SHORT) < 0) TEST_ERROR /* Make certain that the correct classes can be detected */ if(H5Tdetect_class(cplx_cmpd_id,H5T_COMPOUND)!=TRUE) TEST_ERROR if(H5Tdetect_class(cplx_cmpd_id,H5T_ARRAY)!=TRUE) TEST_ERROR if(H5Tdetect_class(cplx_cmpd_id,H5T_REFERENCE)!=TRUE) TEST_ERROR if(H5Tdetect_class(cplx_cmpd_id,H5T_INTEGER)!=TRUE) TEST_ERROR if(H5Tdetect_class(cplx_cmpd_id,H5T_FLOAT)!=TRUE) TEST_ERROR if(H5Tdetect_class(cplx_cmpd_id,H5T_STRING)!=TRUE) TEST_ERROR if(H5Tdetect_class(cplx_cmpd_id,H5T_VLEN)!=TRUE) TEST_ERROR /* Make certain that an incorrect class is not detected */ if(H5Tdetect_class(cplx_cmpd_id,H5T_TIME)!=FALSE) TEST_ERROR if(H5Tdetect_class(cplx_cmpd_id,H5T_ENUM)!=FALSE) TEST_ERROR /* Close complex compound datatype */ if(H5Tclose(cplx_cmpd_id) < 0) TEST_ERROR /* Close atomic VL datatype of float */ if(H5Tclose(atom_vlf_id) < 0) TEST_ERROR /* Close atomic VL datatype of char */ if(H5Tclose(atom_vlc_id) < 0) TEST_ERROR /* Close atomic VL string datatype */ if(H5Tclose(atom_vls_id) < 0) TEST_ERROR /* Close atomic array datatype */ if(H5Tclose(atom_arr_id) < 0) TEST_ERROR /* Close atomic compound datatype */ if(H5Tclose(atom_cmpd_id) < 0) TEST_ERROR PASSED(); return 0; error: return 1; } /*------------------------------------------------------------------------- * Function: test_compound_1 * * Purpose: Tests various things about compound datatypes. * * Return: Success: 0 * * Failure: number of errors * * Programmer: Robb Matzke * Wednesday, January 7, 1998 * * Modifications: * *------------------------------------------------------------------------- */ static int test_compound_1(void) { hid_t complex_id; hid_t super; size_t size; H5T_pad_t lsb, msb; H5T_cset_t cset; H5T_str_t strpad; H5T_order_t order; H5T_sign_t sign; char *tag = NULL; int offset; herr_t ret; int retval = 1; TESTING("compound datatypes"); /* Create the empty type */ if ((complex_id = H5Tcreate(H5T_COMPOUND, sizeof(complex_t))) < 0) goto error; /* Try to shrink and expand the size */ if(H5Tset_size(complex_id, sizeof(double)) < 0) goto error; if(H5Tset_size(complex_id, sizeof(complex_t)) < 0) goto error; /* Attempt to add the new compound datatype as a field within itself */ H5E_BEGIN_TRY { ret=H5Tinsert(complex_id, "compound", (size_t)0, complex_id); } H5E_END_TRY; if (ret>=0) { FAIL_PUTS_ERROR("Inserted compound datatype into itself?"); } /* end if */ /* Add a couple fields */ if(H5Tinsert(complex_id, "real", HOFFSET(complex_t, re), H5T_NATIVE_DOUBLE) < 0) goto error; if(H5Tinsert(complex_id, "imaginary", HOFFSET(complex_t, im), H5T_NATIVE_DOUBLE) < 0) goto error; /* Test some functions that aren't supposed to work for compound type */ /* Tries to shrink the size and trail the last member */ H5E_BEGIN_TRY { ret=H5Tset_size(complex_id, sizeof(double)); } H5E_END_TRY; if (ret>=0) { FAIL_PUTS_ERROR("Operation not allowed for this type."); } /* end if */ H5E_BEGIN_TRY { size=H5Tget_precision(complex_id); } H5E_END_TRY; if (size>0) { FAIL_PUTS_ERROR("Operation not allowed for this type."); } /* end if */ size = 128; H5E_BEGIN_TRY { ret = H5Tset_precision(complex_id, size); } H5E_END_TRY; if (ret>=0) { FAIL_PUTS_ERROR("Operation not allowed for this type."); } /* end if */ H5E_BEGIN_TRY { ret = H5Tget_pad(complex_id, &lsb, &msb); } H5E_END_TRY; if (ret>=0) { FAIL_PUTS_ERROR("Operation not allowed for this type."); } /* end if */ H5E_BEGIN_TRY { size = H5Tget_ebias(complex_id); } H5E_END_TRY; if (size>0) { FAIL_PUTS_ERROR("Operation not allowed for this type."); } /* end if */ H5E_BEGIN_TRY { lsb = H5Tget_inpad(complex_id); } H5E_END_TRY; if (lsb>=0) { FAIL_PUTS_ERROR("Operation not allowed for this type."); } /* end if */ H5E_BEGIN_TRY { cset = H5Tget_cset(complex_id); } H5E_END_TRY; if (cset>-1) { FAIL_PUTS_ERROR("Operation not allowed for this type."); } /* end if */ H5E_BEGIN_TRY { strpad = H5Tget_strpad(complex_id); } H5E_END_TRY; if (strpad>-1) { FAIL_PUTS_ERROR("Operation not allowed for this type."); } /* end if */ H5E_BEGIN_TRY { offset = H5Tget_offset(complex_id); } H5E_END_TRY; if (offset>=0) { FAIL_PUTS_ERROR("Operation not allowed for this type."); } /* end if */ /* We started to support this function for compound type in 1.8.6 release. */ if((order = H5Tget_order(complex_id)) == H5T_ORDER_ERROR) FAIL_PUTS_ERROR("Can't get order for compound type."); if(order != H5T_ORDER_LE && order != H5T_ORDER_BE) FAIL_PUTS_ERROR("Wrong order for this type."); H5E_BEGIN_TRY { sign = H5Tget_sign(complex_id); } H5E_END_TRY; if (sign>-1) { FAIL_PUTS_ERROR("Operation not allowed for this type."); } /* end if */ H5E_BEGIN_TRY { tag = H5Tget_tag(complex_id); } H5E_END_TRY; if (tag) { FAIL_PUTS_ERROR("Operation not allowed for this type."); } /* end if */ H5E_BEGIN_TRY { super = H5Tget_super(complex_id); } H5E_END_TRY; if (super>=0) { FAIL_PUTS_ERROR("Operation not allowed for this type."); } /* end if */ if (H5Tclose (complex_id) < 0) goto error; PASSED(); retval = 0; error: if(tag) HDfree(tag); return retval; } /*------------------------------------------------------------------------- * Function: test_compound_2 * * Purpose: Tests a compound type conversion where the source and * destination are the same except for the order of the * elements. * * Return: Success: 0 * * Failure: number of errors * * Programmer: Robb Matzke * Thursday, June 17, 1999 * * Modifications: * *------------------------------------------------------------------------- */ static int test_compound_2(void) { struct st { int a, b, c[4], d, e; } *s_ptr; struct dt { int e, d, c[4], b, a; } *d_ptr; const size_t nelmts = NTESTELEM; const hsize_t four = 4; unsigned char *buf=NULL, *orig=NULL, *bkg=NULL; hid_t st=-1, dt=-1; hid_t array_dt; int i, nmembs; TESTING("compound element reordering"); if ((nmembs = H5I_nmembers(H5I_DATATYPE)) < 0) FAIL_STACK_ERROR /* Sizes should be the same, but be careful just in case */ buf = (unsigned char*)malloc(nelmts * MAX(sizeof(struct st), sizeof(struct dt))); bkg = (unsigned char*)malloc(nelmts * sizeof(struct dt)); orig = (unsigned char*)malloc(nelmts * sizeof(struct st)); for (i=0; i<(int)nelmts; i++) { s_ptr = ((struct st*)orig) + i; s_ptr->a = i*8+0; s_ptr->b = i*8+1; s_ptr->c[0] = i*8+2; s_ptr->c[1] = i*8+3; s_ptr->c[2] = i*8+4; s_ptr->c[3] = i*8+5; s_ptr->d = i*8+6; s_ptr->e = i*8+7; } HDmemcpy(buf, orig, nelmts*sizeof(struct st)); /* Build hdf5 datatypes */ array_dt = H5Tarray_create2(H5T_NATIVE_INT,1, &four); if((st = H5Tcreate(H5T_COMPOUND, sizeof(struct st))) < 0 || H5Tinsert(st, "a", HOFFSET(struct st, a), H5T_NATIVE_INT) < 0 || H5Tinsert(st, "b", HOFFSET(struct st, b), H5T_NATIVE_INT) < 0 || H5Tinsert(st, "c", HOFFSET(struct st, c), array_dt) < 0 || H5Tinsert(st, "d", HOFFSET(struct st, d), H5T_NATIVE_INT) < 0 || H5Tinsert(st, "e", HOFFSET(struct st, e), H5T_NATIVE_INT) < 0) goto error; H5Tclose(array_dt); array_dt = H5Tarray_create2(H5T_NATIVE_INT, 1, &four); if((dt = H5Tcreate(H5T_COMPOUND, sizeof(struct dt))) < 0 || H5Tinsert(dt, "a", HOFFSET(struct dt, a), H5T_NATIVE_INT) < 0 || H5Tinsert(dt, "b", HOFFSET(struct dt, b), H5T_NATIVE_INT) < 0 || H5Tinsert(dt, "c", HOFFSET(struct dt, c), array_dt) < 0 || H5Tinsert(dt, "d", HOFFSET(struct dt, d), H5T_NATIVE_INT) < 0 || H5Tinsert(dt, "e", HOFFSET(struct dt, e), H5T_NATIVE_INT) < 0) goto error; H5Tclose(array_dt); /* Perform the conversion */ if (H5Tconvert(st, dt, nelmts, buf, bkg, H5P_DEFAULT) < 0) goto error; /* Compare results */ for (i=0; i<(int)nelmts; i++) { s_ptr = ((struct st*)orig) + i; d_ptr = ((struct dt*)buf) + i; if (s_ptr->a != d_ptr->a || s_ptr->b != d_ptr->b || s_ptr->c[0] != d_ptr->c[0] || s_ptr->c[1] != d_ptr->c[1] || s_ptr->c[2] != d_ptr->c[2] || s_ptr->c[3] != d_ptr->c[3] || s_ptr->d != d_ptr->d || s_ptr->e != d_ptr->e) { H5_FAILED(); printf(" i=%d\n", i); printf(" src={a=%d, b=%d, c=[%d,%d,%d,%d], d=%d, e=%d\n", s_ptr->a, s_ptr->b, s_ptr->c[0], s_ptr->c[1], s_ptr->c[2], s_ptr->c[3], s_ptr->d, s_ptr->e); printf(" dst={a=%d, b=%d, c=[%d,%d,%d,%d], d=%d, e=%d\n", d_ptr->a, d_ptr->b, d_ptr->c[0], d_ptr->c[1], d_ptr->c[2], d_ptr->c[3], d_ptr->d, d_ptr->e); goto error; } } /* Release resources */ free(buf); free(bkg); free(orig); CHECK_NMEMBS(nmembs , st, dt) PASSED(); reset_hdf5(); return 0; error: reset_hdf5(); return 1; } /*------------------------------------------------------------------------- * Function: test_compound_3 * * Purpose: Tests compound conversions where the source and destination * are the same except the destination is missing a couple * members which appear in the source. * * Return: Success: 0 * * Failure: number of errors * * Programmer: Robb Matzke * Thursday, June 17, 1999 * * Modifications: * *------------------------------------------------------------------------- */ static int test_compound_3(void) { struct st { int a, b, c[4], d, e; } *s_ptr; struct dt { int a, c[4], e; } *d_ptr; const size_t nelmts = NTESTELEM; const hsize_t four = 4; unsigned char *buf=NULL, *orig=NULL, *bkg=NULL; hid_t st=-1, dt=-1; hid_t array_dt; int i, nmembs; TESTING("compound subset conversions"); if ((nmembs = H5I_nmembers(H5I_DATATYPE)) < 0) FAIL_STACK_ERROR /* Initialize */ buf = (unsigned char*)malloc(nelmts * MAX(sizeof(struct st), sizeof(struct dt))); bkg = (unsigned char*)malloc(nelmts * sizeof(struct dt)); orig = (unsigned char*)malloc(nelmts * sizeof(struct st)); for (i=0; i<(int)nelmts; i++) { s_ptr = ((struct st*)orig) + i; s_ptr->a = i*8+0; s_ptr->b = i*8+1; s_ptr->c[0] = i*8+2; s_ptr->c[1] = i*8+3; s_ptr->c[2] = i*8+4; s_ptr->c[3] = i*8+5; s_ptr->d = i*8+6; s_ptr->e = i*8+7; } HDmemcpy(buf, orig, nelmts*sizeof(struct st)); /* Build hdf5 datatypes */ array_dt = H5Tarray_create2(H5T_NATIVE_INT, 1, &four); if((st = H5Tcreate(H5T_COMPOUND, sizeof(struct st))) < 0 || H5Tinsert(st, "a", HOFFSET(struct st, a), H5T_NATIVE_INT) < 0 || H5Tinsert(st, "b", HOFFSET(struct st, b), H5T_NATIVE_INT) < 0 || H5Tinsert(st, "c", HOFFSET(struct st, c), array_dt) < 0 || H5Tinsert(st, "d", HOFFSET(struct st, d), H5T_NATIVE_INT) < 0 || H5Tinsert(st, "e", HOFFSET(struct st, e), H5T_NATIVE_INT) < 0) goto error; H5Tclose(array_dt); array_dt = H5Tarray_create2(H5T_NATIVE_INT, 1, &four); if((dt = H5Tcreate(H5T_COMPOUND, sizeof(struct dt))) < 0 || H5Tinsert(dt, "a", HOFFSET(struct dt, a), H5T_NATIVE_INT) < 0 || H5Tinsert(dt, "c", HOFFSET(struct dt, c), array_dt) < 0 || H5Tinsert(dt, "e", HOFFSET(struct dt, e), H5T_NATIVE_INT) < 0) goto error; H5Tclose(array_dt); /* Perform the conversion */ if (H5Tconvert(st, dt, nelmts, buf, bkg, H5P_DEFAULT) < 0) goto error; /* Compare results */ for (i=0; i<(int)nelmts; i++) { s_ptr = ((struct st*)orig) + i; d_ptr = ((struct dt*)buf) + i; if (s_ptr->a != d_ptr->a || s_ptr->c[0] != d_ptr->c[0] || s_ptr->c[1] != d_ptr->c[1] || s_ptr->c[2] != d_ptr->c[2] || s_ptr->c[3] != d_ptr->c[3] || s_ptr->e != d_ptr->e) { H5_FAILED(); printf(" i=%d\n", i); printf(" src={a=%d, b=%d, c=[%d,%d,%d,%d], d=%d, e=%d\n", s_ptr->a, s_ptr->b, s_ptr->c[0], s_ptr->c[1], s_ptr->c[2], s_ptr->c[3], s_ptr->d, s_ptr->e); printf(" dst={a=%d, c=[%d,%d,%d,%d], e=%d\n", d_ptr->a, d_ptr->c[0], d_ptr->c[1], d_ptr->c[2], d_ptr->c[3], d_ptr->e); goto error; } } /* Release resources */ free(buf); free(bkg); free(orig); CHECK_NMEMBS(nmembs, st, dt) PASSED(); reset_hdf5(); return 0; error: reset_hdf5(); return 1; } /*------------------------------------------------------------------------- * Function: test_compound_4 * * Purpose: Tests compound conversions when the destination has the same * fields as the source but one or more of the fields are * smaller. * * Return: Success: 0 * * Failure: number of errors * * Programmer: Robb Matzke * Thursday, June 17, 1999 * * Modifications: * *------------------------------------------------------------------------- */ static int test_compound_4(void) { struct st { int a, b, c[4], d, e; } *s_ptr; struct dt { short b; int a, c[4]; short d; int e; } *d_ptr; const size_t nelmts = NTESTELEM; const hsize_t four = 4; unsigned char *buf=NULL, *orig=NULL, *bkg=NULL; hid_t st=-1, dt=-1; hid_t array_dt; int i, nmembs; TESTING("compound element shrinking & reordering"); if ((nmembs = H5I_nmembers(H5I_DATATYPE)) < 0) FAIL_STACK_ERROR /* Sizes should be the same, but be careful just in case */ buf = (unsigned char*)malloc(nelmts * MAX(sizeof(struct st), sizeof(struct dt))); bkg = (unsigned char*)malloc(nelmts * sizeof(struct dt)); orig = (unsigned char*)malloc(nelmts * sizeof(struct st)); for (i=0; i<(int)nelmts; i++) { s_ptr = ((struct st*)orig) + i; s_ptr->a = i*8+0; s_ptr->b = (i*8+1) & 0x7fff; s_ptr->c[0] = i*8+2; s_ptr->c[1] = i*8+3; s_ptr->c[2] = i*8+4; s_ptr->c[3] = i*8+5; s_ptr->d = (i*8+6) & 0x7fff; s_ptr->e = i*8+7; } HDmemcpy(buf, orig, nelmts*sizeof(struct st)); /* Build hdf5 datatypes */ array_dt = H5Tarray_create2(H5T_NATIVE_INT, 1, &four); if((st = H5Tcreate(H5T_COMPOUND, sizeof(struct st))) < 0 || H5Tinsert(st, "a", HOFFSET(struct st, a), H5T_NATIVE_INT) < 0 || H5Tinsert(st, "b", HOFFSET(struct st, b), H5T_NATIVE_INT) < 0 || H5Tinsert(st, "c", HOFFSET(struct st, c), array_dt) < 0 || H5Tinsert(st, "d", HOFFSET(struct st, d), H5T_NATIVE_INT) < 0 || H5Tinsert(st, "e", HOFFSET(struct st, e), H5T_NATIVE_INT) < 0) goto error; H5Tclose(array_dt); array_dt = H5Tarray_create2(H5T_NATIVE_INT, 1, &four); if((dt = H5Tcreate(H5T_COMPOUND, sizeof(struct dt))) < 0 || H5Tinsert(dt, "a", HOFFSET(struct dt, a), H5T_NATIVE_INT) < 0 || H5Tinsert(dt, "b", HOFFSET(struct dt, b), H5T_NATIVE_SHORT) < 0 || H5Tinsert(dt, "c", HOFFSET(struct dt, c), array_dt) < 0 || H5Tinsert(dt, "d", HOFFSET(struct dt, d), H5T_NATIVE_SHORT) < 0 || H5Tinsert(dt, "e", HOFFSET(struct dt, e), H5T_NATIVE_INT) < 0) goto error; H5Tclose(array_dt); /* Perform the conversion */ if (H5Tconvert(st, dt, nelmts, buf, bkg, H5P_DEFAULT) < 0) goto error; /* Compare results */ for (i=0; i<(int)nelmts; i++) { s_ptr = ((struct st*)orig) + i; d_ptr = ((struct dt*)buf) + i; if (s_ptr->a != d_ptr->a || s_ptr->b != d_ptr->b || s_ptr->c[0] != d_ptr->c[0] || s_ptr->c[1] != d_ptr->c[1] || s_ptr->c[2] != d_ptr->c[2] || s_ptr->c[3] != d_ptr->c[3] || s_ptr->d != d_ptr->d || s_ptr->e != d_ptr->e) { H5_FAILED(); printf(" i=%d\n", i); printf(" src={a=%d, b=%d, c=[%d,%d,%d,%d], d=%d, e=%d\n", s_ptr->a, s_ptr->b, s_ptr->c[0], s_ptr->c[1], s_ptr->c[2], s_ptr->c[3], s_ptr->d, s_ptr->e); printf(" dst={a=%d, b=%d, c=[%d,%d,%d,%d], d=%d, e=%d\n", d_ptr->a, d_ptr->b, d_ptr->c[0], d_ptr->c[1], d_ptr->c[2], d_ptr->c[3], d_ptr->d, d_ptr->e); goto error; } } /* Release resources */ free(buf); free(bkg); free(orig); CHECK_NMEMBS(nmembs, st, dt) PASSED(); reset_hdf5(); return 0; error: reset_hdf5(); return 1; } /*------------------------------------------------------------------------- * Function: test_compound_5 * * Purpose: Many versions of HDF5 have a bug in the optimized compound * datatype conversion function, H5T_conv_struct_opt(), which * is triggered when the top-level type contains a struct * which must undergo a conversion. * * Return: Success: 0 * * Failure: number of errors * * Programmer: Robb Matzke * Thursday, June 17, 1999 * * Modifications: * *------------------------------------------------------------------------- */ static int test_compound_5(void) { typedef struct { char name[16]; short tdim; short coll_ids[4]; } src_type_t; typedef struct { char name[16]; short tdim; int coll_ids[4]; } dst_type_t; hsize_t dims[1] = {4}; hid_t src_type, dst_type, short_array, int_array, string; hid_t array_dt; src_type_t src[2] = {{"one", 102, {104, 105, 106, 107}}, {"two", 202, {204, 205, 206, 207}}}; dst_type_t *dst; void *buf = HDcalloc((size_t)2, sizeof(dst_type_t)); void *bkg = HDcalloc((size_t)2, sizeof(dst_type_t)); int retval = 1; #if 1 TESTING("optimized struct converter"); #else /* Turn off optimized compound conversion function to work around * the problem. */ TESTING("optimized struct converter bug workaround"); H5Tunregister(H5T_PERS_DONTCARE, "struct(opt)", -1, -1, NULL); #endif /* Build datatypes */ short_array = H5Tcreate(H5T_COMPOUND, 4*sizeof(short)); array_dt = H5Tarray_create2(H5T_NATIVE_SHORT, 1, dims); H5Tinsert(short_array, "_", (size_t)0, array_dt); H5Tclose(array_dt); int_array = H5Tcreate(H5T_COMPOUND, 4*sizeof(int)); array_dt = H5Tarray_create2(H5T_NATIVE_INT, 1, dims); H5Tinsert(int_array, "_", (size_t)0, array_dt); H5Tclose(array_dt); string = H5Tcopy(H5T_C_S1); H5Tset_size(string, (size_t)16); src_type = H5Tcreate(H5T_COMPOUND, sizeof(src_type_t)); H5Tinsert(src_type, "name", HOFFSET(src_type_t, name), string ); H5Tinsert(src_type, "tdim", HOFFSET(src_type_t, tdim), H5T_NATIVE_SHORT); H5Tinsert(src_type, "coll_ids", HOFFSET(src_type_t, coll_ids), short_array ); dst_type = H5Tcreate(H5T_COMPOUND, sizeof(dst_type_t)); H5Tinsert(dst_type, "name", HOFFSET(dst_type_t, name), string ); H5Tinsert(dst_type, "tdim", HOFFSET(dst_type_t, tdim), H5T_NATIVE_SHORT); H5Tinsert(dst_type, "coll_ids", HOFFSET(dst_type_t, coll_ids), int_array ); /* Convert data */ HDmemcpy(buf, src, sizeof(src)); H5Tconvert(src_type, dst_type, (size_t)2, buf, bkg, H5P_DEFAULT); dst = (dst_type_t*)buf; /* Cleanup */ H5Tclose(src_type); H5Tclose(dst_type); H5Tclose(string); H5Tclose(short_array); H5Tclose(int_array); /* Check results */ if (HDmemcmp(src[1].name, dst[1].name, sizeof(src[1].name)) || src[1].tdim!=dst[1].tdim || src[1].coll_ids[0]!=dst[1].coll_ids[0] || src[1].coll_ids[1]!=dst[1].coll_ids[1] || src[1].coll_ids[2]!=dst[1].coll_ids[2] || src[1].coll_ids[3]!=dst[1].coll_ids[3]) { H5_FAILED(); } else { PASSED(); retval = 0; } /* Free memory buffers */ HDfree(buf); HDfree(bkg); return retval; } /*------------------------------------------------------------------------- * Function: test_compound_6 * * Purpose: Tests compound conversions when the destination has the same * fields as the source but one or more of the fields are * larger. * * Return: Success: 0 * * Failure: number of errors * * Programmer: Quincey Koziol * Wednesday, December 13, 2000 * * Modifications: * *------------------------------------------------------------------------- */ static int test_compound_6(void) { struct st { short b; short d; } *s_ptr; struct dt { long b; long d; } *d_ptr; const size_t nelmts = NTESTELEM; unsigned char *buf=NULL, *orig=NULL, *bkg=NULL; hid_t st=-1, dt=-1; int i, nmembs; TESTING("compound element growing"); if ((nmembs = H5I_nmembers(H5I_DATATYPE)) < 0) FAIL_STACK_ERROR /* Sizes should be the same, but be careful just in case */ buf = (unsigned char*)malloc(nelmts * MAX(sizeof(struct st), sizeof(struct dt))); bkg = (unsigned char*)malloc(nelmts * sizeof(struct dt)); orig = (unsigned char*)malloc(nelmts * sizeof(struct st)); for (i=0; i<(int)nelmts; i++) { s_ptr = ((struct st*)orig) + i; s_ptr->b = (i*8+1) & 0x7fff; s_ptr->d = (i*8+6) & 0x7fff; } HDmemcpy(buf, orig, nelmts*sizeof(struct st)); /* Build hdf5 datatypes */ if ((st=H5Tcreate(H5T_COMPOUND, sizeof(struct st))) < 0 || H5Tinsert(st, "b", HOFFSET(struct st, b), H5T_NATIVE_SHORT) < 0 || H5Tinsert(st, "d", HOFFSET(struct st, d), H5T_NATIVE_SHORT) < 0) { H5_FAILED(); goto error; } if ((dt=H5Tcreate(H5T_COMPOUND, sizeof(struct dt))) < 0 || H5Tinsert(dt, "b", HOFFSET(struct dt, b), H5T_NATIVE_LONG) < 0 || H5Tinsert(dt, "d", HOFFSET(struct dt, d), H5T_NATIVE_LONG) < 0) { H5_FAILED(); goto error; } /* Perform the conversion */ if (H5Tconvert(st, dt, nelmts, buf, bkg, H5P_DEFAULT) < 0) { H5_FAILED(); goto error; } /* Compare results */ for (i=0; i<(int)nelmts; i++) { s_ptr = ((struct st*)orig) + i; d_ptr = ((struct dt*)buf) + i; if (s_ptr->b != d_ptr->b || s_ptr->d != d_ptr->d) { H5_FAILED(); printf(" i=%d\n", i); printf(" src={b=%d, d=%d\n", (int)s_ptr->b, (int)s_ptr->d); printf(" dst={b=%ld, d=%ld\n", d_ptr->b, d_ptr->d); goto error; } } /* Release resources */ free(buf); free(bkg); free(orig); CHECK_NMEMBS(nmembs, st, dt) PASSED(); reset_hdf5(); return 0; error: reset_hdf5(); return 1; } /*------------------------------------------------------------------------- * Function: test_compound_7 * * Purpose: Tests inserting fields into compound datatypes when the field * overlaps the end of the compound datatype. Also, tests * increasing compound type size. * * Return: Success: 0 * * Failure: number of errors * * Programmer: Quincey Koziol * Tuesday, December 18, 2001 * * Modifications: * The size of compound datatype can be expanded now. * Raymond Lu * Wednesday, September 10, 2003 * *------------------------------------------------------------------------- */ static int test_compound_7(void) { struct s1 { int a; float b; long c; }; struct s2 { int a; float b; long c; double d; }; hid_t tid1,tid2; herr_t ret; TESTING("compound element insertion"); if((tid1= H5Tcreate( H5T_COMPOUND, sizeof(struct s1))) < 0) { H5_FAILED(); printf("Can't create datatype!\n"); goto error; } /* end if */ if(H5Tinsert(tid1,"a",HOFFSET(struct s1,a),H5T_NATIVE_INT) < 0) { H5_FAILED(); printf("Can't insert field 'a'\n"); goto error; } /* end if */ if(H5Tinsert(tid1,"b",HOFFSET(struct s1,b),H5T_NATIVE_FLOAT) < 0) { H5_FAILED(); printf("Can't insert field 'b'\n"); goto error; } /* end if */ if(H5Tinsert(tid1,"c",HOFFSET(struct s1,c),H5T_NATIVE_LONG) < 0) { H5_FAILED(); printf("Can't insert field 'c'\n"); goto error; } /* end if */ if(H5Tget_size(tid1)!=sizeof(struct s1)) { H5_FAILED(); printf("Incorrect size for struct 1\n"); goto error; } /* end if */ if((tid2= H5Tcopy(tid1)) < 0) { H5_FAILED(); printf("Can't copy datatype\n"); goto error; } /* end if */ if(H5Tget_size(tid2)==sizeof(struct s2)) { H5_FAILED(); printf("Incorrect size for struct 2\n"); goto error; } /* end if */ /* Should not be able to insert field past end of compound datatype */ H5E_BEGIN_TRY { ret=H5Tinsert(tid2,"d",HOFFSET(struct s2,d),H5T_NATIVE_DOUBLE); } H5E_END_TRY; if(ret>=0) { H5_FAILED(); printf("Inserted field 'd'?\n"); goto error; } /* end if */ /* Should not be able to shrink size of compound datatype */ H5E_BEGIN_TRY { ret=H5Tset_size(tid2, sizeof(struct s1)/2); } H5E_END_TRY; if(ret>=0) { H5_FAILED(); printf("Shrunk compound type?\n"); goto error; } /* end if */ /* Increase compound type size and try inserting field again */ if(H5Tset_size(tid2, sizeof(struct s2)) < 0) { H5_FAILED(); printf("Can't increase size for compound type\n"); goto error; } /* end if */ if( H5Tinsert(tid2,"d",HOFFSET(struct s2,d),H5T_NATIVE_DOUBLE) < 0) { H5_FAILED(); printf("Can't expand compound datatype\n"); goto error; } /* end if */ if(H5Tget_size(tid2)!=sizeof(struct s2)) { H5_FAILED(); printf("Incorrect size for struct 2\n"); goto error; } /* end if */ /* Release resources */ if (H5Tclose(tid1) < 0 || H5Tclose(tid2) < 0) { H5_FAILED(); printf("Can't close datatypes\n"); goto error; } /* end if */ PASSED(); reset_hdf5(); return 0; error: reset_hdf5(); return 1; } /*------------------------------------------------------------------------- * Function: test_compound_8 * * Purpose: Tests H5Tpack for compound datatypes. * * Return: Success: 0 * * Failure: number of errors * * Programmer: Robb Matzke * Wednesday, January 7, 1998 * * Modifications: * Raymond Lu * 27 June 2008 * Added verification of compound type size for H5Tpack and * test for array of nested compound type. *------------------------------------------------------------------------- */ static int test_compound_8(void) { typedef struct s1 { char a; int b; } s1; typedef struct s2 { char c; s1 d; } s2; hid_t tid1, tid1_copy, tid2, tid2_copy, tid3, arr_tid; size_t tsize; hsize_t dims[1] = {ARRAY_DIM}; herr_t ret; TESTING("packing compound datatypes"); /*------------------------------------------------------------ * Test H5Tpack for compound type */ /* Create first compound datatype */ if((tid1 = H5Tcreate( H5T_COMPOUND, sizeof(struct s1))) < 0) { H5_FAILED(); AT(); printf("Can't create datatype!\n"); goto error; } /* end if */ if(H5Tinsert(tid1,"a",HOFFSET(struct s1,a),H5T_NATIVE_CHAR) < 0) { H5_FAILED(); AT(); printf("Can't insert field 'a'\n"); goto error; } /* end if */ if(H5Tinsert(tid1,"b",HOFFSET(struct s1,b),H5T_NATIVE_INT) < 0) { H5_FAILED(); AT(); printf("Can't insert field 'b'\n"); goto error; } /* end if */ /* Make a copy of the type for later use */ if((tid1_copy = H5Tcopy(tid1)) < 0) { H5_FAILED(); AT(); printf("Can't copy type #1\n"); goto error; } /* end if */ /* Test H5Tpack for the first compound type */ if(H5Tpack(tid1) < 0) { H5_FAILED(); AT(); printf("Can't pack the compound datatype\n"); goto error; } /* end if */ if(H5Tlock(tid1) < 0) { H5_FAILED(); AT(); printf("Can't lock the compound datatype\n"); goto error; } /* end if */ /* If the type is already packed, packing a locked type is OK */ if(H5Tpack(tid1) < 0) { H5_FAILED(); AT(); printf("Can't pack the compound datatype for second time\n"); goto error; } /* end if */ /* Verify the size of packed compound type */ if((tsize = H5Tget_size(tid1)) == 0) { H5_FAILED(); AT(); printf("Can't get size of the compound datatype\n"); goto error; } /* end if */ if(tsize != (sizeof(char) + sizeof(int))) { H5_FAILED(); AT(); printf("The size of the packed compound datatype is incorrect\n"); goto error; } /* end if */ /*------------------------------------------------------------ * Test H5Tpack for nested compound type */ /* Create second compound datatype */ if((tid2 = H5Tcreate( H5T_COMPOUND, sizeof(struct s2))) < 0) { H5_FAILED(); AT(); printf("Can't create datatype!\n"); goto error; } /* end if */ if(H5Tinsert(tid2,"c",HOFFSET(struct s2,c),H5T_NATIVE_CHAR) < 0) { H5_FAILED(); AT(); printf("Can't insert field 'c'\n"); goto error; } /* end if */ /* Insert the member of unpacked compound type */ if(H5Tinsert(tid2,"d",HOFFSET(struct s2,d),tid1_copy) < 0) { H5_FAILED(); AT(); printf("Can't insert field 'd'\n"); goto error; } /* end if */ /* Make a copy of the type for later */ if((tid3=H5Tcopy(tid2)) < 0) { H5_FAILED(); AT(); printf("Can't copy type #2\n"); goto error; } /* end if */ /* Make a copy of the type for later */ if((tid2_copy = H5Tcopy(tid2)) < 0) { H5_FAILED(); AT(); printf("Can't copy type #2\n"); goto error; } /* end if */ /* Test H5Tpack for the second compound type */ if(H5Tpack(tid2) < 0) { H5_FAILED(); AT(); printf("Can't pack the compound datatype\n"); goto error; } /* end if */ if(H5Tlock(tid2) < 0) { H5_FAILED(); AT(); printf("Can't lock the compound datatype\n"); goto error; } /* end if */ /* If the type is already packed, packing a locked type is OK */ if(H5Tpack(tid2) < 0) { H5_FAILED(); AT(); printf("Can't pack the compound datatype for second time\n"); goto error; } /* end if */ /* Lock unpacked type */ if(H5Tlock(tid3) < 0) { H5_FAILED(); AT(); printf("Can't lock the compound datatype\n"); goto error; } /* end if */ /* If the type is not packed, packing a locked type shouldn't work */ H5E_BEGIN_TRY { ret=H5Tpack(tid3); } H5E_END_TRY; if(ret>=0) { H5_FAILED(); AT(); printf("Packing locked datatype worked?\n"); goto error; } /* end if */ /* Verify the size of packed compound type */ if((tsize = H5Tget_size(tid2)) == 0) { H5_FAILED(); AT(); printf("Can't get size of the compound datatype\n"); goto error; } /* end if */ if(tsize != (sizeof(char) + sizeof(char) + sizeof(int))) { H5_FAILED(); AT(); printf("The size of the packed compound datatype is incorrect: tsize=%d\n", tsize); goto error; } /* end if */ /*------------------------------------------------------------ * Test H5Tpack for array type of nested compound type */ /* Create an array type of compound type */ if((arr_tid = H5Tarray_create2(tid2_copy, 1, dims)) < 0) { H5_FAILED(); AT(); printf("Can't create an array datatype\n"); goto error; } /* end if */ /* Test H5Tpack for the array type */ if(H5Tpack(arr_tid) < 0) { H5_FAILED(); AT(); printf("Can't pack the array datatype\n"); goto error; } /* end if */ /* Verify the size of packed compound type */ if((tsize = H5Tget_size(arr_tid)) == 0) { H5_FAILED(); AT(); printf("Can't get size of the array datatype\n"); goto error; } /* end if */ if(tsize != ARRAY_DIM * (sizeof(char) + sizeof(char) + sizeof(int))) { H5_FAILED(); AT(); printf("The size of the packed array datatype is incorrect\n"); goto error; } /* end if */ if(H5Tclose(tid1_copy) < 0) { H5_FAILED(); AT(); printf("Can't close the compound datatype\n"); goto error; } /* end if */ if(H5Tclose(tid2_copy) < 0) { H5_FAILED(); AT(); printf("Can't close the compound datatype\n"); goto error; } /* end if */ if(H5Tclose(arr_tid) < 0) { H5_FAILED(); AT(); printf("Can't close the array datatype\n"); goto error; } /* end if */ /* Can't release resources - they are locked */ PASSED(); return 0; error: return 1; } /*------------------------------------------------------------------------- * Function: test_compound_9 * * Purpose: Tests compound datatype with VL string as field. * * Return: Success: 0 * * Failure: number of errors * * Programmer: Raymond Lu * Wednesday, June 9, 2004 * * Modifications: * *------------------------------------------------------------------------- */ static int test_compound_9(void) { typedef struct cmpd_struct { int i1; char* str; int i2; } cmpd_struct; cmpd_struct wdata = {11, "variable-length string", 22}; cmpd_struct rdata; hid_t file; hid_t cmpd_tid, str_id, dup_tid; hid_t space_id; hid_t dset_id; hsize_t dim1[1]; char filename[1024]; TESTING("compound datatype with VL string"); /* Create File */ h5_fixname(FILENAME[3], H5P_DEFAULT, filename, sizeof filename); if((file=H5Fcreate(filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); AT(); printf("Can't create file!\n"); goto error; } /* end if */ /* Create first compound datatype */ if((cmpd_tid = H5Tcreate( H5T_COMPOUND, sizeof(struct cmpd_struct))) < 0) { H5_FAILED(); AT(); printf("Can't create datatype!\n"); goto error; } /* end if */ if(H5Tinsert(cmpd_tid,"i1",HOFFSET(struct cmpd_struct,i1),H5T_NATIVE_INT) < 0) { H5_FAILED(); AT(); printf("Can't insert field 'i1'\n"); goto error; } /* end if */ str_id = H5Tcopy(H5T_C_S1); if(H5Tset_size(str_id,H5T_VARIABLE) < 0) { H5_FAILED(); AT(); printf("Can't set size for VL string\n"); goto error; } /* end if */ if(H5Tinsert(cmpd_tid, "vl_string", HOFFSET(cmpd_struct, str), str_id) < 0) { H5_FAILED(); AT(); printf("Can't insert field 'i1'\n"); goto error; } /* end if */ if(H5Tinsert(cmpd_tid, "i2", HOFFSET(struct cmpd_struct, i2), H5T_NATIVE_INT) < 0) { H5_FAILED(); AT(); printf("Can't insert field 'i2'\n"); goto error; } /* end if */ if(H5Tcommit2(file, "compound", cmpd_tid, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); AT(); printf("Can't commit datatype\n"); goto error; } /* end if */ if(H5Tclose(cmpd_tid) < 0) { H5_FAILED(); AT(); printf("Can't close datatype\n"); goto error; } /* end if */ if((cmpd_tid = H5Topen2(file, "compound", H5P_DEFAULT)) < 0) FAIL_STACK_ERROR if((dup_tid = H5Tcopy(cmpd_tid)) < 0) { H5_FAILED(); AT(); printf("Can't copy datatype\n"); goto error; } /* end if */ dim1[0] = 1; if((space_id = H5Screate_simple(1, dim1, NULL)) < 0) { H5_FAILED(); AT(); printf("Can't create space\n"); goto error; } /* end if */ if((dset_id = H5Dcreate2(file, "Dataset", dup_tid, space_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); AT(); printf("Can't create dataset\n"); goto error; } /* end if */ if(H5Dwrite(dset_id, dup_tid, H5S_ALL, H5S_ALL, H5P_DEFAULT, &wdata) < 0) { H5_FAILED(); AT(); printf("Can't write data\n"); goto error; } /* end if */ if(H5Dread(dset_id, dup_tid, H5S_ALL, H5S_ALL, H5P_DEFAULT, &rdata) < 0) { H5_FAILED(); AT(); printf("Can't read data\n"); goto error; } /* end if */ if(rdata.i1 != wdata.i1 || rdata.i2 != wdata.i2 || HDstrcmp(rdata.str, wdata.str)) { H5_FAILED(); AT(); printf("incorrect read data\n"); goto error; } /* end if */ if(H5Dclose(dset_id) < 0) goto error; if(H5Tclose(cmpd_tid) < 0) goto error; if(H5Tclose(dup_tid) < 0) goto error; if(H5Tclose(str_id) < 0) goto error; if(H5Sclose(space_id) < 0) goto error; if(H5Fclose(file) < 0) goto error; if((file = H5Fopen(filename, H5F_ACC_RDONLY, H5P_DEFAULT)) < 0) { H5_FAILED(); AT(); printf("cannot open file\n"); goto error; } /* end if */ if((dset_id = H5Dopen2(file, "Dataset", H5P_DEFAULT)) < 0) { H5_FAILED(); AT(); printf("cannot open dataset\n"); goto error; } /* end if */ if((cmpd_tid = H5Dget_type(dset_id)) < 0) { H5_FAILED(); AT(); printf("cannot open dataset\n"); goto error; } /* end if */ if((dup_tid = H5Tcopy(cmpd_tid)) < 0) { H5_FAILED(); AT(); printf("Can't copy datatype\n"); goto error; } /* end if */ rdata.i1 = rdata.i2 = 0; if(rdata.str) free(rdata.str); if(H5Dread(dset_id, dup_tid, H5S_ALL, H5S_ALL, H5P_DEFAULT, &rdata) < 0) { H5_FAILED(); AT(); printf("Can't read data\n"); goto error; } /* end if */ if(rdata.i1!=wdata.i1 || rdata.i2!=wdata.i2 || strcmp(rdata.str, wdata.str)) { H5_FAILED(); AT(); printf("incorrect read data\n"); goto error; } /* end if */ if(rdata.str) free(rdata.str); if(H5Dclose(dset_id) < 0) goto error; if(H5Tclose(cmpd_tid) < 0) goto error; if(H5Tclose(dup_tid) < 0) goto error; if(H5Fclose(file) < 0) goto error; PASSED(); return 0; error: return 1; } /*------------------------------------------------------------------------- * Function: test_compound_10 * * Purpose: Tests array datatype of compound type with VL string as field. * * Return: Success: 0 * * Failure: number of errors * * Programmer: Raymond Lu * Tuesday, June 15, 2004 * * Modifications: * *------------------------------------------------------------------------- */ static int test_compound_10(void) { typedef struct cmpd_struct { int i1; char* str; hvl_t text; int i2; } cmpd_struct; cmpd_struct wdata[ARRAY_DIM]; cmpd_struct rdata[ARRAY_DIM]; hid_t file; hid_t arr_tid, cmpd_tid, cstr_id, vlstr_id; hid_t space_id; hid_t dset_id; hsize_t arr_dim[1] = {ARRAY_DIM}; /* Array dimensions */ hsize_t dim1[1]; void *t1, *t2; char filename[1024]; size_t len; int i; TESTING("array datatype of compound type with VL string"); for(i=0; i<ARRAY_DIM; i++) { wdata[i].i1 = i*10+i; wdata[i].str = HDstrdup("C string A"); wdata[i].str[9] += (char)i; wdata[i].i2 = i*1000+i*10; wdata[i].text.p = (void*)HDstrdup("variable-length text A\0"); len = wdata[i].text.len = HDstrlen((char*)wdata[i].text.p)+1; ((char*)(wdata[i].text.p))[len-2] += (char)i; ((char*)(wdata[i].text.p))[len-1] = '\0'; } /* Create File */ h5_fixname(FILENAME[4], H5P_DEFAULT, filename, sizeof filename); if((file=H5Fcreate(filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); AT(); printf("Can't create file!\n"); goto error; } /* end if */ /* Create first compound datatype */ if((cmpd_tid = H5Tcreate( H5T_COMPOUND, sizeof(struct cmpd_struct))) < 0) { H5_FAILED(); AT(); printf("Can't create datatype!\n"); goto error; } /* end if */ if(H5Tinsert(cmpd_tid,"i1",HOFFSET(struct cmpd_struct,i1),H5T_NATIVE_INT) < 0) { H5_FAILED(); AT(); printf("Can't insert field 'i1'\n"); goto error; } /* end if */ cstr_id = H5Tcopy(H5T_C_S1); if(H5Tset_size(cstr_id,H5T_VARIABLE) < 0) { H5_FAILED(); AT(); printf("Can't set size for C string\n"); goto error; } /* end if */ if(H5Tinsert(cmpd_tid,"c_string",HOFFSET(cmpd_struct,str),cstr_id) < 0) { H5_FAILED(); AT(); printf("Can't insert field 'str'\n"); goto error; } /* end if */ /* Create vl-string datatype */ if((vlstr_id = H5Tvlen_create(H5T_NATIVE_CHAR)) < 0) { H5_FAILED(); AT(); printf("Can't create VL string\n"); goto error; } /* end if */ if(H5Tinsert(cmpd_tid, "vl_string",HOFFSET(cmpd_struct, text), vlstr_id) < 0) { H5_FAILED(); AT(); printf("Can't insert field 'text'\n"); goto error; } /* end if */ if(H5Tinsert(cmpd_tid,"i2",HOFFSET(struct cmpd_struct,i2),H5T_NATIVE_INT) < 0) { H5_FAILED(); AT(); printf("Can't insert field 'i2'\n"); goto error; } /* end if */ /* Create the array datatype for c_string data */ if((arr_tid = H5Tarray_create2(cmpd_tid, 1, arr_dim)) < 0) { H5_FAILED(); AT(); printf("Can't create array type\n"); goto error; } /* end if */ dim1[0] = 1; if((space_id = H5Screate_simple(1,dim1,NULL)) < 0) { H5_FAILED(); AT(); printf("Can't create space\n"); goto error; } /* end if */ if((dset_id = H5Dcreate2(file, "Dataset", arr_tid, space_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); AT(); printf("Can't create dataset\n"); goto error; } /* end if */ if(H5Dwrite(dset_id, arr_tid, H5S_ALL, H5S_ALL, H5P_DEFAULT, &wdata) < 0) { H5_FAILED(); AT(); printf("Can't write data\n"); goto error; } /* end if */ if(H5Dread(dset_id, arr_tid, H5S_ALL, H5S_ALL, H5P_DEFAULT, &rdata) < 0) { H5_FAILED(); AT(); printf("Can't read data\n"); goto error; } /* end if */ for(i = 0; i < ARRAY_DIM; i++) { if(rdata[i].i1 != wdata[i].i1 || rdata[i].i2 != wdata[i].i2 || HDstrcmp(rdata[i].str, wdata[i].str)) { H5_FAILED(); AT(); printf("incorrect read data\n"); goto error; } /* end if */ if(rdata[i].text.len!=wdata[i].text.len) { H5_FAILED(); AT(); printf("incorrect VL length\n"); goto error; } /* end if */ t1 = rdata[i].text.p; t2 = wdata[i].text.p; if(strcmp((char*)t1, (char*)t2)) { H5_FAILED(); AT(); printf("incorrect VL read data\n"); goto error; } free(t1); free(t2); free(wdata[i].str); free(rdata[i].str); } /* end for */ if(H5Dclose(dset_id) < 0) goto error; if(H5Tclose(arr_tid) < 0) goto error; if(H5Tclose(cmpd_tid) < 0) goto error; if(H5Tclose(cstr_id) < 0) goto error; if(H5Tclose(vlstr_id) < 0) goto error; if(H5Sclose(space_id) < 0) goto error; if(H5Fclose(file) < 0) goto error; PASSED(); return 0; error: return 1; } /*------------------------------------------------------------------------- * Function: test_compound_11 * * Purpose: Tests whether registering/unregistering a type conversion * function correctly causes compound datatypes to recalculate * their cached field conversion information * * Return: Success: 0 * * Failure: number of errors * * Programmer: Quincey Koziol * Saturday, August 7, 2004 * * Modifications: * *------------------------------------------------------------------------- */ static int test_compound_11(void) { typedef struct { double d1; int i1; char *s1; int i2; double d2; double d3; } big_t; typedef struct { double d1; int i1; char *s1; } little_t; hid_t var_string_tid; /* Datatype IDs for type conversion */ hid_t big_tid, little_tid; /* Datatype IDs for type conversion */ hid_t big_tid2, little_tid2; /* Datatype IDs for type conversion */ hid_t opaq_src_tid, opaq_dst_tid; /* Datatype IDs for type conversion */ void *buf = NULL; /* Conversion buffer */ void *buf_orig = NULL; /* Copy of original conversion buffer */ void *bkg = NULL; /* Background buffer */ size_t u; /* Local index variable */ int retval = 1; TESTING("registering type conversion routine with compound conversions"); /* Create variable string type for use in both structs */ if((var_string_tid=H5Tcopy(H5T_C_S1)) < 0) TEST_ERROR if(H5Tset_size(var_string_tid,H5T_VARIABLE) < 0) TEST_ERROR /* Create type for 'big' struct */ if((big_tid = H5Tcreate(H5T_COMPOUND, sizeof(big_t))) < 0) TEST_ERROR if(H5Tinsert(big_tid, "d1", HOFFSET(big_t, d1), H5T_NATIVE_DOUBLE) < 0) TEST_ERROR if(H5Tinsert(big_tid, "i1", HOFFSET(big_t, i1), H5T_NATIVE_INT) < 0) TEST_ERROR if(H5Tinsert(big_tid, "s1", HOFFSET(big_t, s1), var_string_tid) < 0) TEST_ERROR if(H5Tinsert(big_tid, "i2", HOFFSET(big_t, i2), H5T_NATIVE_INT) < 0) TEST_ERROR if(H5Tinsert(big_tid, "d2", HOFFSET(big_t, d2), H5T_NATIVE_DOUBLE) < 0) TEST_ERROR if(H5Tinsert(big_tid, "d3", HOFFSET(big_t, d3), H5T_NATIVE_DOUBLE) < 0) TEST_ERROR /* Create type for 'little' struct (with "out of order" inserts) */ if((little_tid = H5Tcreate(H5T_COMPOUND, sizeof(little_t))) < 0) TEST_ERROR if(H5Tinsert(little_tid, "d1", HOFFSET(little_t, d1), H5T_NATIVE_DOUBLE) < 0) TEST_ERROR if(H5Tinsert(little_tid, "s1", HOFFSET(little_t, s1), var_string_tid) < 0) TEST_ERROR if(H5Tinsert(little_tid, "i1", HOFFSET(little_t, i1), H5T_NATIVE_INT) < 0) TEST_ERROR /* Allocate buffers */ if((buf=HDmalloc(sizeof(big_t)*NTESTELEM))==NULL) TEST_ERROR if((buf_orig=HDmalloc(sizeof(big_t)*NTESTELEM))==NULL) TEST_ERROR if((bkg=HDmalloc(sizeof(big_t)*NTESTELEM))==NULL) TEST_ERROR /* Initialize buffer */ for(u = 0; u < NTESTELEM; u++) { ((big_t *)buf)[u].d1 = (double)u * (double)1.5f; ((big_t *)buf)[u].d2 = (double)u * (double)2.5f; ((big_t *)buf)[u].d3 = (double)u * (double)3.5f; ((big_t *)buf)[u].i1 = (int)(u * 3); ((big_t *)buf)[u].i2 = (int)(u * 5); ((big_t *)buf)[u].s1 = (char *)HDmalloc((size_t)32); sprintf(((big_t *)buf)[u].s1, "%u", (unsigned)u); } /* end for */ /* Make copy of buffer before conversion */ HDmemcpy(buf_orig,buf,sizeof(big_t)*NTESTELEM); /* Make copies of the 'big' and 'little' datatypes, so the type * conversion routine doesn't use the same ones this time and next time */ if((big_tid2=H5Tcopy(big_tid)) < 0) TEST_ERROR if((little_tid2=H5Tcopy(little_tid)) < 0) TEST_ERROR /* Convert buffer from 'big' to 'little' struct */ if(H5Tconvert(big_tid2,little_tid2,(size_t)NTESTELEM,buf,bkg,H5P_DEFAULT) < 0) TEST_ERROR /* Verify converted buffer is correct */ for(u=0; u<NTESTELEM; u++) { if(((big_t *)buf_orig)[u].d1!=((little_t *)buf)[u].d1) { printf("Error, line #%d: buf_orig[%u].d1=%f, buf[%u].d1=%f\n",__LINE__, (unsigned)u,((big_t *)buf_orig)[u].d1,(unsigned)u,((little_t *)buf)[u].d1); TEST_ERROR } /* end if */ if(((big_t *)buf_orig)[u].i1!=((little_t *)buf)[u].i1) { printf("Error, line #%d: buf_orig[%u].i1=%d, buf[%u].i1=%d\n",__LINE__, (unsigned)u,((big_t *)buf_orig)[u].i1,(unsigned)u,((little_t *)buf)[u].i1); TEST_ERROR } /* end if */ if(((big_t *)buf_orig)[u].s1==NULL || ((little_t *)buf)[u].s1==NULL) { printf("Error, line #%d: buf_orig[%u].s1=%p, buf[%u].s1=%p\n",__LINE__, (unsigned)u,((big_t *)buf_orig)[u].s1,(unsigned)u,((little_t *)buf)[u].s1); TEST_ERROR } /* end if */ else if(HDstrcmp(((big_t *)buf_orig)[u].s1,((little_t *)buf)[u].s1)) { printf("Error, line #%d: buf_orig[%u].s1=%s, buf[%u].s1=%s\n",__LINE__, (unsigned)u,((big_t *)buf_orig)[u].s1,(unsigned)u,((little_t *)buf)[u].s1); TEST_ERROR } /* end if */ HDfree(((little_t *)buf)[u].s1); } /* end for */ /* Build source and destination types for conversion routine */ if((opaq_src_tid=H5Tcreate(H5T_OPAQUE, (size_t)4)) < 0) TEST_ERROR if(H5Tset_tag(opaq_src_tid, "opaque source type") < 0) TEST_ERROR if((opaq_dst_tid=H5Tcreate(H5T_OPAQUE, (size_t)4)) < 0) TEST_ERROR if(H5Tset_tag(opaq_dst_tid, "opaque destination type") < 0) TEST_ERROR /* Register new type conversion routine */ if(H5Tregister(H5T_PERS_HARD, "opaq_test", opaq_src_tid, opaq_dst_tid, convert_opaque) < 0) TEST_ERROR /* Recover the original buffer information */ HDmemcpy(buf,buf_orig,sizeof(big_t)*NTESTELEM); /* Convert buffer from 'big' to 'little' struct */ if(H5Tconvert(big_tid,little_tid,(size_t)NTESTELEM,buf,bkg,H5P_DEFAULT) < 0) TEST_ERROR /* Verify converted buffer is correct */ for(u=0; u<NTESTELEM; u++) { if(((big_t *)buf_orig)[u].d1!=((little_t *)buf)[u].d1) { printf("Error, line #%d: buf_orig[%u].d1=%f, buf[%u].d1=%f\n",__LINE__, (unsigned)u,((big_t *)buf_orig)[u].d1,(unsigned)u,((little_t *)buf)[u].d1); TEST_ERROR } /* end if */ if(((big_t *)buf_orig)[u].i1!=((little_t *)buf)[u].i1) { printf("Error, line #%d: buf_orig[%u].i1=%d, buf[%u].i1=%d\n",__LINE__, (unsigned)u,((big_t *)buf_orig)[u].i1,(unsigned)u,((little_t *)buf)[u].i1); TEST_ERROR } /* end if */ if(((big_t *)buf_orig)[u].s1==NULL || ((little_t *)buf)[u].s1==NULL) { printf("Error, line #%d: buf_orig[%u].s1=%p, buf[%u].s1=%p\n",__LINE__, (unsigned)u,((big_t *)buf_orig)[u].s1,(unsigned)u,((little_t *)buf)[u].s1); TEST_ERROR } /* end if */ else if(HDstrcmp(((big_t *)buf_orig)[u].s1,((little_t *)buf)[u].s1)) { printf("Error, line #%d: buf_orig[%u].s1=%s, buf[%u].s1=%s\n",__LINE__, (unsigned)u,((big_t *)buf_orig)[u].s1,(unsigned)u,((little_t *)buf)[u].s1); TEST_ERROR } /* end if */ HDfree(((little_t *)buf)[u].s1); } /* end for */ /* Unregister the conversion routine */ if(H5Tunregister(H5T_PERS_HARD, "opaq_test", opaq_src_tid, opaq_dst_tid, convert_opaque) < 0) TEST_ERROR /* Recover the original buffer information */ HDmemcpy(buf,buf_orig,sizeof(big_t)*NTESTELEM); /* Convert buffer from 'big' to 'little' struct */ if(H5Tconvert(big_tid,little_tid,(size_t)NTESTELEM,buf,bkg,H5P_DEFAULT) < 0) TEST_ERROR /* Verify converted buffer is correct */ for(u=0; u<NTESTELEM; u++) { if(((big_t *)buf_orig)[u].d1!=((little_t *)buf)[u].d1) { printf("Error, line #%d: buf_orig[%u].d1=%f, buf[%u].d1=%f\n",__LINE__, (unsigned)u,((big_t *)buf_orig)[u].d1,(unsigned)u,((little_t *)buf)[u].d1); TEST_ERROR } /* end if */ if(((big_t *)buf_orig)[u].i1!=((little_t *)buf)[u].i1) { printf("Error, line #%d: buf_orig[%u].i1=%d, buf[%u].i1=%d\n",__LINE__, (unsigned)u,((big_t *)buf_orig)[u].i1,(unsigned)u,((little_t *)buf)[u].i1); TEST_ERROR } /* end if */ if(((big_t *)buf_orig)[u].s1==NULL || ((little_t *)buf)[u].s1==NULL) { printf("Error, line #%d: buf_orig[%u].s1=%p, buf[%u].s1=%p\n",__LINE__, (unsigned)u,((big_t *)buf_orig)[u].s1,(unsigned)u,((little_t *)buf)[u].s1); TEST_ERROR } /* end if */ else if(HDstrcmp(((big_t *)buf_orig)[u].s1,((little_t *)buf)[u].s1)) { printf("Error, line #%d: buf_orig[%u].s1=%s, buf[%u].s1=%s\n",__LINE__, (unsigned)u,((big_t *)buf_orig)[u].s1,(unsigned)u,((little_t *)buf)[u].s1); TEST_ERROR } /* end if */ HDfree(((little_t *)buf)[u].s1); } /* end for */ /* Free everything */ for(u=0; u<NTESTELEM; u++) HDfree(((big_t *)buf_orig)[u].s1); if(H5Tclose(opaq_dst_tid) < 0) TEST_ERROR if(H5Tclose(opaq_src_tid) < 0) TEST_ERROR if(H5Tclose(little_tid2) < 0) TEST_ERROR if(H5Tclose(big_tid2) < 0) TEST_ERROR if(H5Tclose(little_tid) < 0) TEST_ERROR if(H5Tclose(big_tid) < 0) TEST_ERROR if(H5Tclose(var_string_tid) < 0) TEST_ERROR PASSED(); retval = 0; error: if(buf) HDfree(buf); if(buf_orig) HDfree(buf_orig); if(bkg) HDfree(bkg); return retval; } /*------------------------------------------------------------------------- * Function: test_compound_12 * * Purpose: Tests size adjustment of compound datatypes. Start with * no member and 0 size, increase the size as inserting * members. * * Return: Success: 0 * * Failure: number of errors * * Programmer: Raymond Lu * Wednesday, September 29, 2004 * * Modifications: * *------------------------------------------------------------------------- */ static int test_compound_12(void) { hid_t complex_id; size_t size = 0; size_t offset, new_size, tmp_size; herr_t ret; TESTING("adjust size of compound datatypes"); /* Create a compound type of minimal size */ if ((complex_id = H5Tcreate(H5T_COMPOUND, (size_t)1)) < 0) goto error; /* Verify the size */ if((new_size=H5Tget_size(complex_id))==0) goto error; if(new_size!=1) goto error; /* Add a couple fields and adjust the size */ offset = size; if((tmp_size=H5Tget_size(H5T_NATIVE_DOUBLE))==0) goto error; size+=tmp_size; if (H5Tset_size(complex_id, size) < 0) goto error; if (H5Tinsert(complex_id, "real", offset, H5T_NATIVE_DOUBLE) < 0) goto error; offset = size; if((tmp_size=H5Tget_size(H5T_NATIVE_DOUBLE))==0) goto error; size+=tmp_size; if (H5Tset_size(complex_id, size) < 0) goto error; if (H5Tinsert(complex_id, "imaginary", offset, H5T_NATIVE_DOUBLE) < 0) goto error; /* Increase and decrease the size. */ if((tmp_size=H5Tget_size(H5T_NATIVE_DOUBLE))==0) goto error; size+=tmp_size; if (H5Tset_size(complex_id, size) < 0) goto error; if((tmp_size=H5Tget_size(H5T_NATIVE_DOUBLE))==0) goto error; size-=tmp_size; if (H5Tset_size(complex_id, size) < 0) goto error; /* Verify the size */ if((new_size=H5Tget_size(complex_id))==0) goto error; if(new_size!=size) goto error; /* Tries to cut last member. Supposed to fail. */ size--; H5E_BEGIN_TRY { ret = H5Tset_size(complex_id, size); } H5E_END_TRY; if(ret>=0) { H5_FAILED(); puts(" Tries to cut off the last member. Should have failed."); goto error; } if (H5Tclose (complex_id) < 0) goto error; PASSED(); return 0; error: return 1; } /*------------------------------------------------------------------------- * Function: test_compound_13 * * Purpose: Tests compound datatypes whose size is at the boundary for * needing 2 bytes for the datatype size and "use the latest * format" flag is enabled so that the size of the offsets uses * the smallest # of bytes possible. * * Return: Success: 0 * Failure: number of errors * * Programmer: Quincey Koziol * Thursday, March 13, 2008 * *------------------------------------------------------------------------- */ static int test_compound_13(void) { struct s1 { unsigned char x[COMPOUND13_ARRAY_SIZE + 1]; float y; }; struct s1 data_out, data_in; hid_t fileid, grpid, dtypeid, array1_tid, spaceid, attid; hid_t fapl_id; hsize_t dims[1] = {COMPOUND13_ARRAY_SIZE + 1}; char filename[1024]; unsigned u; TESTING("compound datatypes of boundary size with latest format"); /* Create some phony data. */ HDmemset(&data_out, 0, sizeof(data_out)); for(u = 0; u < COMPOUND13_ARRAY_SIZE + 1; u++) data_out.x[u] = (unsigned char)u; data_out.y = 99.99f; /* Set latest_format in access propertly list to enable the latest * compound datatype format. */ if((fapl_id = H5Pcreate(H5P_FILE_ACCESS)) < 0) FAIL_STACK_ERROR if(H5Pset_libver_bounds(fapl_id, H5F_LIBVER_LATEST, H5F_LIBVER_LATEST) < 0) FAIL_STACK_ERROR /* Open file and get root group. */ h5_fixname(FILENAME[4], H5P_DEFAULT, filename, sizeof filename); if((fileid = H5Fcreate(filename, H5F_ACC_TRUNC, H5P_DEFAULT, fapl_id)) < 0) FAIL_STACK_ERROR if((grpid = H5Gopen2(fileid, "/", H5P_DEFAULT)) < 0) FAIL_STACK_ERROR /* Create a compound type. */ if((dtypeid = H5Tcreate(H5T_COMPOUND, sizeof(struct s1))) < 0) FAIL_STACK_ERROR if((array1_tid = H5Tarray_create2(H5T_NATIVE_UCHAR, 1, dims)) < 0) FAIL_STACK_ERROR if(H5Tinsert(dtypeid, "x", HOFFSET(struct s1, x), array1_tid) < 0) FAIL_STACK_ERROR if(H5Tinsert(dtypeid, "y", HOFFSET(struct s1, y), H5T_NATIVE_FLOAT) < 0) FAIL_STACK_ERROR /* Create a space. */ if((spaceid = H5Screate(H5S_SCALAR)) < 0) FAIL_STACK_ERROR /* Create an attribute of this compound type. */ if((attid = H5Acreate2(grpid, COMPOUND13_ATTR_NAME, dtypeid, spaceid, H5P_DEFAULT, H5P_DEFAULT)) < 0) FAIL_STACK_ERROR /* Write some data. */ if(H5Awrite(attid, dtypeid, &data_out) < 0) FAIL_STACK_ERROR /* Release all resources. */ if(H5Aclose(attid) < 0) FAIL_STACK_ERROR if(H5Tclose(array1_tid) < 0) FAIL_STACK_ERROR if(H5Tclose(dtypeid) < 0) FAIL_STACK_ERROR if(H5Sclose(spaceid) < 0) FAIL_STACK_ERROR if(H5Gclose(grpid) < 0) FAIL_STACK_ERROR if(H5Fclose(fileid) < 0) FAIL_STACK_ERROR if(H5Pclose(fapl_id) < 0) FAIL_STACK_ERROR /* Now open the file and read it. */ if((fileid = H5Fopen(filename, H5F_ACC_RDONLY, H5P_DEFAULT)) < 0) FAIL_STACK_ERROR if((grpid = H5Gopen2(fileid, "/", H5P_DEFAULT)) < 0) FAIL_STACK_ERROR if((attid = H5Aopen(grpid, COMPOUND13_ATTR_NAME, H5P_DEFAULT)) < 0) FAIL_STACK_ERROR if((dtypeid = H5Aget_type(attid)) < 0) FAIL_STACK_ERROR if(H5Tget_class(dtypeid) != H5T_COMPOUND) FAIL_STACK_ERROR if(HOFFSET(struct s1, x) != H5Tget_member_offset(dtypeid, 0)) TEST_ERROR if(HOFFSET(struct s1, y) != H5Tget_member_offset(dtypeid, 1)) TEST_ERROR if(H5Aread(attid, dtypeid, &data_in) < 0) FAIL_STACK_ERROR /* Check the data. */ for (u = 0; u < COMPOUND13_ARRAY_SIZE + 1; u++) if(data_out.x[u] != data_in.x[u]) TEST_ERROR if(data_out.y != data_in.y) TEST_ERROR /* Release all resources. */ if(H5Aclose(attid) < 0) FAIL_STACK_ERROR if(H5Tclose(dtypeid) < 0) FAIL_STACK_ERROR if(H5Gclose(grpid) < 0) FAIL_STACK_ERROR if(H5Fclose(fileid) < 0) FAIL_STACK_ERROR PASSED(); return 0; error: return 1; } /* end test_compound_13() */ /*------------------------------------------------------------------------- * Function: test_compound_14 * * Purpose: Tests compound type conversions where a vlen string will be misaligned in the conversion buffer and the file. The two compound types are meant to trigger two different conversion routines. * * Return: Success: 0 * * Failure: number of errors * * Programmer: Neil Fortner * Monday, August 25, 2008 * * Modifications: * *------------------------------------------------------------------------- */ static int test_compound_14(void) { typedef struct cmpd_struct_1 { char c1; char c2; char* str; } cmpd_struct_1; typedef struct cmpd_struct_2 { char c1; char c2; char* str; long l1; long l2; long l3; long l4; } cmpd_struct_2; cmpd_struct_1 wdata1 = {'A', 'B', "variable-length string"}; cmpd_struct_1 rdata1; cmpd_struct_2 wdata2 = {'C', 'D', "another vlen!", 1, 2, -1, 9001}; cmpd_struct_2 rdata2; hid_t file; hid_t cmpd_m1_tid, cmpd_f1_tid, cmpd_m2_tid, cmpd_f2_tid, str_id; hid_t space_id; hid_t dset1_id, dset2_id; hsize_t dim1[1]; char filename[1024]; TESTING("unaligned VL strings in compound"); /* Create File */ h5_fixname(FILENAME[3], H5P_DEFAULT, filename, sizeof filename); if((file=H5Fcreate(filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); AT(); printf("Can't create file!\n"); goto error; } /* end if */ /* Create memory compound datatype 1 */ if((cmpd_m1_tid = H5Tcreate( H5T_COMPOUND, sizeof(struct cmpd_struct_1))) < 0) { H5_FAILED(); AT(); printf("Can't create datatype!\n"); goto error; } /* end if */ if(H5Tinsert(cmpd_m1_tid,"c1",HOFFSET(struct cmpd_struct_1,c1),H5T_NATIVE_CHAR) < 0) { H5_FAILED(); AT(); printf("Can't insert field 'c1'\n"); goto error; } /* end if */ if(H5Tinsert(cmpd_m1_tid,"c2",HOFFSET(struct cmpd_struct_1,c2),H5T_NATIVE_CHAR) < 0) { H5_FAILED(); AT(); printf("Can't insert field 'c2'\n"); goto error; } /* end if */ str_id = H5Tcopy(H5T_C_S1); if(H5Tset_size(str_id,H5T_VARIABLE) < 0) { H5_FAILED(); AT(); printf("Can't set size for VL string\n"); goto error; } /* end if */ if(H5Tinsert(cmpd_m1_tid, "vl_string", HOFFSET(cmpd_struct_1, str), str_id) < 0) { H5_FAILED(); AT(); printf("Can't insert field 'vl_string'\n"); goto error; } /* end if */ /* Create file compound datatype 1 */ if((cmpd_f1_tid = H5Tcreate( H5T_COMPOUND, 8 + 1 + sizeof(hvl_t))) < 0) { H5_FAILED(); AT(); printf("Can't create datatype!\n"); goto error; } /* end if */ if(H5Tinsert(cmpd_f1_tid,"c1",(size_t)0,H5T_STD_I64BE) < 0) { H5_FAILED(); AT(); printf("Can't insert field 'c1'\n"); goto error; } /* end if */ if(H5Tinsert(cmpd_f1_tid,"c2",(size_t)8,H5T_NATIVE_CHAR) < 0) { H5_FAILED(); AT(); printf("Can't insert field 'c2'\n"); goto error; } /* end if */ if(H5Tinsert(cmpd_f1_tid, "vl_string",(size_t)(8 + 1), str_id) < 0) { H5_FAILED(); AT(); printf("Can't insert field 'vl_string'\n"); goto error; } /* end if */ /* Create memory compound datatype 2 */ if((cmpd_m2_tid = H5Tcreate( H5T_COMPOUND, sizeof(struct cmpd_struct_2))) < 0) { H5_FAILED(); AT(); printf("Can't create datatype!\n"); goto error; } /* end if */ if(H5Tinsert(cmpd_m2_tid,"c1",HOFFSET(struct cmpd_struct_2,c1),H5T_NATIVE_CHAR) < 0) { H5_FAILED(); AT(); printf("Can't insert field 'c1'\n"); goto error; } /* end if */ if(H5Tinsert(cmpd_m2_tid,"c2",HOFFSET(struct cmpd_struct_2,c2),H5T_NATIVE_CHAR) < 0) { H5_FAILED(); AT(); printf("Can't insert field 'c2'\n"); goto error; } /* end if */ if(H5Tinsert(cmpd_m2_tid, "vl_string", HOFFSET(cmpd_struct_2, str), str_id) < 0) { H5_FAILED(); AT(); printf("Can't insert field 'vl_string'\n"); goto error; } /* end if */ if(H5Tinsert(cmpd_m2_tid,"l1",HOFFSET(struct cmpd_struct_2,l1),H5T_NATIVE_LONG) < 0) { H5_FAILED(); AT(); printf("Can't insert field 'l1'\n"); goto error; } /* end if */ if(H5Tinsert(cmpd_m2_tid,"l2",HOFFSET(struct cmpd_struct_2,l2),H5T_NATIVE_LONG) < 0) { H5_FAILED(); AT(); printf("Can't insert field 'l2'\n"); goto error; } /* end if */ if(H5Tinsert(cmpd_m2_tid,"l3",HOFFSET(struct cmpd_struct_2,l3),H5T_NATIVE_LONG) < 0) { H5_FAILED(); AT(); printf("Can't insert field 'l3'\n"); goto error; } /* end if */ if(H5Tinsert(cmpd_m2_tid,"l4",HOFFSET(struct cmpd_struct_2,l4),H5T_NATIVE_LONG) < 0) { H5_FAILED(); AT(); printf("Can't insert field 'l4'\n"); goto error; } /* end if */ /* Create file compound datatype 2 */ if((cmpd_f2_tid = H5Tcreate( H5T_COMPOUND, 8 + 1 + sizeof(hvl_t) + 4*sizeof(long))) < 0) { H5_FAILED(); AT(); printf("Can't create datatype!\n"); goto error; } /* end if */ if(H5Tinsert(cmpd_f2_tid,"c1",(size_t)0,H5T_STD_I64BE) < 0) { H5_FAILED(); AT(); printf("Can't insert field 'c1'\n"); goto error; } /* end if */ if(H5Tinsert(cmpd_f2_tid,"c2",(size_t)8,H5T_NATIVE_CHAR) < 0) { H5_FAILED(); AT(); printf("Can't insert field 'c2'\n"); goto error; } /* end if */ if(H5Tinsert(cmpd_f2_tid, "vl_string", (size_t)(8 + 1), str_id) < 0) { H5_FAILED(); AT(); printf("Can't insert field 'vl_string'\n"); goto error; } /* end if */ if(H5Tinsert(cmpd_f2_tid,"l1",8 + 1 + sizeof(hvl_t),H5T_NATIVE_LONG) < 0) { H5_FAILED(); AT(); printf("Can't insert field 'l1'\n"); goto error; } /* end if */ if(H5Tinsert(cmpd_f2_tid,"l2",8 + 1 + sizeof(hvl_t) + sizeof(long),H5T_NATIVE_LONG) < 0) { H5_FAILED(); AT(); printf("Can't insert field 'l2'\n"); goto error; } /* end if */ if(H5Tinsert(cmpd_f2_tid,"l3",8 + 1 + sizeof(hvl_t) + 2*sizeof(long),H5T_NATIVE_LONG) < 0) { H5_FAILED(); AT(); printf("Can't insert field 'l3'\n"); goto error; } /* end if */ if(H5Tinsert(cmpd_f2_tid,"l4",8 + 1 + sizeof(hvl_t) + 3*sizeof(long),H5T_NATIVE_LONG) < 0) { H5_FAILED(); AT(); printf("Can't insert field 'l4'\n"); goto error; } /* end if */ dim1[0] = 1; if((space_id = H5Screate_simple(1, dim1, NULL)) < 0) { H5_FAILED(); AT(); printf("Can't create space\n"); goto error; } /* end if */ if((dset1_id = H5Dcreate2(file, "Dataset1", cmpd_f1_tid, space_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); AT(); printf("Can't create dataset\n"); goto error; } /* end if */ if((dset2_id = H5Dcreate2(file, "Dataset2", cmpd_f2_tid, space_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); AT(); printf("Can't create dataset\n"); goto error; } /* end if */ if(H5Dwrite(dset1_id, cmpd_m1_tid, H5S_ALL, H5S_ALL, H5P_DEFAULT, &wdata1) < 0) { H5_FAILED(); AT(); printf("Can't write data\n"); goto error; } /* end if */ if(H5Dwrite(dset2_id, cmpd_m2_tid, H5S_ALL, H5S_ALL, H5P_DEFAULT, &wdata2) < 0) { H5_FAILED(); AT(); printf("Can't write data\n"); goto error; } /* end if */ if(H5Dread(dset1_id, cmpd_m1_tid, H5S_ALL, H5S_ALL, H5P_DEFAULT, &rdata1) < 0) { H5_FAILED(); AT(); printf("Can't read data\n"); goto error; } /* end if */ if(H5Dread(dset2_id, cmpd_m2_tid, H5S_ALL, H5S_ALL, H5P_DEFAULT, &rdata2) < 0) { H5_FAILED(); AT(); printf("Can't read data\n"); goto error; } /* end if */ if(rdata1.c1 != wdata1.c1 || rdata1.c2 != wdata1.c2 || HDstrcmp(rdata1.str, wdata1.str)) { H5_FAILED(); AT(); printf("incorrect read data\n"); goto error; } /* end if */ if(rdata2.c1 != wdata2.c1 || rdata2.c2 != wdata2.c2 || HDstrcmp(rdata2.str, wdata2.str) || rdata2.l1 != wdata2.l1 || rdata2.l2 != wdata2.l2 || rdata2.l3 != wdata2.l3 || rdata2.l4 != wdata2.l4) { H5_FAILED(); AT(); printf("incorrect read data\n"); goto error; } /* end if */ if(H5Dclose(dset1_id) < 0) goto error; if(H5Dclose(dset2_id) < 0) goto error; if(H5Tclose(cmpd_f1_tid) < 0) goto error; if(H5Tclose(cmpd_f2_tid) < 0) goto error; if(H5Tclose(str_id) < 0) goto error; if(H5Sclose(space_id) < 0) goto error; if(H5Fclose(file) < 0) goto error; if((file = H5Fopen(filename, H5F_ACC_RDONLY, H5P_DEFAULT)) < 0) { H5_FAILED(); AT(); printf("cannot open file\n"); goto error; } /* end if */ if((dset1_id = H5Dopen2(file, "Dataset1", H5P_DEFAULT)) < 0) { H5_FAILED(); AT(); printf("cannot open dataset\n"); goto error; } /* end if */ if((dset2_id = H5Dopen2(file, "Dataset2", H5P_DEFAULT)) < 0) { H5_FAILED(); AT(); printf("cannot open dataset\n"); goto error; } /* end if */ rdata1.c1 = rdata1.c2 = 0; if(rdata1.str) HDfree(rdata1.str); rdata2.c1 = rdata2.c2 = 0; rdata2.l1 = rdata2.l2 = rdata2.l3 = rdata2.l4 = 0; if(rdata2.str) { HDfree(rdata2.str); rdata2.str = NULL; } /* end if */ if(H5Dread(dset1_id, cmpd_m1_tid, H5S_ALL, H5S_ALL, H5P_DEFAULT, &rdata1) < 0) { H5_FAILED(); AT(); printf("Can't read data\n"); goto error; } /* end if */ if(H5Dread(dset2_id, cmpd_m2_tid, H5S_ALL, H5S_ALL, H5P_DEFAULT, &rdata2) < 0) { H5_FAILED(); AT(); printf("Can't read data\n"); goto error; } /* end if */ if(rdata1.c1!=wdata1.c1 || rdata1.c2!=wdata1.c2 || strcmp(rdata1.str, wdata1.str)) { H5_FAILED(); AT(); printf("incorrect read data\n"); goto error; } /* end if */ if(rdata2.c1 != wdata2.c1 || rdata2.c2 != wdata2.c2 || HDstrcmp(rdata2.str, wdata2.str) || rdata2.l1 != wdata2.l1 || rdata2.l2 != wdata2.l2 || rdata2.l3 != wdata2.l3 || rdata2.l4 != wdata2.l4) { H5_FAILED(); AT(); printf("incorrect read data\n"); goto error; } /* end if */ if(rdata1.str) HDfree(rdata1.str); if(rdata2.str) HDfree(rdata2.str); if(H5Dclose(dset1_id) < 0) goto error; if(H5Dclose(dset2_id) < 0) goto error; if(H5Tclose(cmpd_m1_tid) < 0) goto error; if(H5Tclose(cmpd_m2_tid) < 0) goto error; if(H5Fclose(file) < 0) goto error; PASSED(); return 0; error: return 1; } /* end test_compound_14() */ /*------------------------------------------------------------------------- * Function: test_compound_15 * * Purpose: Tests that conversion occurs correctly when the source is * subset of the destination, but there is extra space at the * end of the source type. * * Return: Success: 0 * * Failure: number of errors * * Programmer: Neil Fortner * Friday, September 19, 2008 * * Modifications: * *------------------------------------------------------------------------- */ static int test_compound_15(void) { typedef struct cmpd_struct { int i1; int i2; } cmpd_struct; cmpd_struct wdata1 = {1254, 5471}; cmpd_struct rdata; int wdata2[2] = {1, 2}; hid_t file; hid_t cmpd_m_tid, cmpd_f_tid; hid_t space_id; hid_t dset_id; hsize_t dim1[1]; char filename[1024]; TESTING("compound subset conversion with extra space in source"); /* Create File */ h5_fixname(FILENAME[3], H5P_DEFAULT, filename, sizeof filename); if((file=H5Fcreate(filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); AT(); printf("Can't create file!\n"); goto error; } /* end if */ /* Create file compound datatype */ if((cmpd_f_tid = H5Tcreate( H5T_COMPOUND, sizeof(struct cmpd_struct))) < 0) { H5_FAILED(); AT(); printf("Can't create datatype!\n"); goto error; } /* end if */ if(H5Tinsert(cmpd_f_tid,"i1",HOFFSET(struct cmpd_struct,i1),H5T_NATIVE_INT) < 0) { H5_FAILED(); AT(); printf("Can't insert field 'i1'\n"); goto error; } /* end if */ if(H5Tinsert(cmpd_f_tid,"i2",HOFFSET(struct cmpd_struct,i2),H5T_NATIVE_INT) < 0) { H5_FAILED(); AT(); printf("Can't insert field 'i2'\n"); goto error; } /* end if */ /* Create memory compound datatype */ if((cmpd_m_tid = H5Tcreate( H5T_COMPOUND, sizeof(struct cmpd_struct))) < 0) { H5_FAILED(); AT(); printf("Can't create datatype!\n"); goto error; } /* end if */ if(H5Tinsert(cmpd_m_tid,"i1",(size_t)0,H5T_NATIVE_INT) < 0) { H5_FAILED(); AT(); printf("Can't insert field 'i1'\n"); goto error; } /* end if */ /* Create space, dataset, write wdata1 */ dim1[0] = 1; if((space_id = H5Screate_simple(1, dim1, NULL)) < 0) { H5_FAILED(); AT(); printf("Can't create space\n"); goto error; } /* end if */ if((dset_id = H5Dcreate2(file, "Dataset", cmpd_f_tid, space_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) { H5_FAILED(); AT(); printf("Can't create dataset\n"); goto error; } /* end if */ if(H5Dwrite(dset_id, cmpd_f_tid, H5S_ALL, H5S_ALL, H5P_DEFAULT, &wdata1) < 0) { H5_FAILED(); AT(); printf("Can't write data\n"); goto error; } /* end if */ /* Write wdata2. The use of cmpd_m_tid here should cause only the first * element of wdata2 to be written. */ if(H5Dwrite(dset_id, cmpd_m_tid, H5S_ALL, H5S_ALL, H5P_DEFAULT, &wdata2) < 0) { H5_FAILED(); AT(); printf("Can't write data\n"); goto error; } /* end if */ /* Read data */ if(H5Dread(dset_id, cmpd_f_tid, H5S_ALL, H5S_ALL, H5P_DEFAULT, &rdata) < 0) { H5_FAILED(); AT(); printf("Can't read data\n"); goto error; } /* end if */ /* Check for correctness of read data */ if(rdata.i1 != wdata2[0] || rdata.i2 != wdata1.i2) { H5_FAILED(); AT(); printf("incorrect read data\n"); goto error; } /* end if */ /* Now try reading only the i1 field, verify it does not overwrite i2 in the * read buffer */ rdata.i1 = wdata1.i1; rdata.i2 = wdata2[1]; /* Read data */ if(H5Dread(dset_id, cmpd_m_tid, H5S_ALL, H5S_ALL, H5P_DEFAULT, &rdata) < 0) { H5_FAILED(); AT(); printf("Can't read data\n"); goto error; } /* end if */ /* Check for correctness of read data */ if(rdata.i1 != wdata2[0] || rdata.i2 != wdata2[1]) { H5_FAILED(); AT(); printf("incorrect read data\n"); goto error; } /* end if */ /* Close */ if(H5Dclose(dset_id) < 0) goto error; if(H5Tclose(cmpd_f_tid) < 0) goto error; if(H5Tclose(cmpd_m_tid) < 0) goto error; if(H5Sclose(space_id) < 0) goto error; if(H5Fclose(file) < 0) goto error; PASSED(); return 0; error: return 1; } /* end test_compound_15() */ /*------------------------------------------------------------------------- * Function: test_compound_16 * * Purpose: Tests that committed types that can be registered during * compound conversion are not visible to the application * with H5Fget_obj_count or H5Fget_obj_ids. * * Return: Success: 0 * * Failure: number of errors * * Programmer: Neil Fortner * Friday, October 3, 2008 * * Modifications: * *------------------------------------------------------------------------- */ static int test_compound_16(void) { typedef struct cmpd_struct { int i1; int i2; } cmpd_struct; cmpd_struct wdata1 = {1254, 5471}; ssize_t obj_count; hid_t file; hid_t cmpd_m_tid, cmpd_f_tid, int_id; hid_t space_id; hid_t dset_id; hid_t open_dtypes[2] = {0, 0}; hsize_t dim1[1] = {1}; char filename[1024]; TESTING("visibility of internally registered type ids"); /* Create File */ h5_fixname(FILENAME[3], H5P_DEFAULT, filename, sizeof filename); if((file=H5Fcreate(filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) TEST_ERROR /* Copy and commit integer datatype */ if((int_id = H5Tcopy(H5T_NATIVE_INT)) < 0) TEST_ERROR if(H5Tcommit2(file, "int", int_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) < 0) TEST_ERROR /* Create file compound datatype */ if((cmpd_f_tid = H5Tcreate(H5T_COMPOUND, 2 * sizeof(int) + 2)) < 0) TEST_ERROR if(H5Tinsert(cmpd_f_tid, "i1", (size_t)0, int_id) < 0) TEST_ERROR if(H5Tinsert(cmpd_f_tid, "i2", sizeof(int) + 1, int_id) < 0) TEST_ERROR /* Create memory compound datatype */ if((cmpd_m_tid = H5Tcreate(H5T_COMPOUND, sizeof(struct cmpd_struct))) < 0) TEST_ERROR if(H5Tinsert(cmpd_m_tid, "i1", HOFFSET(struct cmpd_struct, i1), int_id) < 0) TEST_ERROR if(H5Tinsert(cmpd_m_tid, "i2", HOFFSET(struct cmpd_struct, i2), int_id) < 0) TEST_ERROR /* Create space, dataset, write wdata1 */ if((space_id = H5Screate_simple(1, dim1, NULL)) < 0) TEST_ERROR if((dset_id = H5Dcreate2(file, "Dataset", cmpd_f_tid, space_id, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) TEST_ERROR if(H5Dwrite(dset_id, cmpd_m_tid, H5S_ALL, H5S_ALL, H5P_DEFAULT, &wdata1) < 0) TEST_ERROR /* Check behavior of H5Fget_obj_count */ if((obj_count = H5Fget_obj_count(file, H5F_OBJ_DATATYPE)) != 1) { H5_FAILED(); AT(); printf(" H5Fget_obj_count returned: %zd; expected: 1\n", obj_count); goto error; } /* Check behavior of H5Fget_obj_ids */ if(H5Fget_obj_ids(file, H5F_OBJ_DATATYPE, (size_t)2, open_dtypes) < 0) TEST_ERROR if(open_dtypes[1]) { H5_FAILED(); AT(); printf(" H5Fget_obj_ids returned as second id: %d; expected: 0\n", open_dtypes[1]); goto error; } /* Close */ if(H5Dclose(dset_id) < 0) TEST_ERROR if(H5Sclose(space_id) < 0) TEST_ERROR if(H5Tclose(cmpd_f_tid) < 0) TEST_ERROR if(H5Tclose(cmpd_m_tid) < 0) TEST_ERROR if(H5Tclose(int_id) < 0) TEST_ERROR if(H5Fclose(file) < 0) TEST_ERROR PASSED(); return 0; error: return 1; } /* end test_compound_16() */ /*------------------------------------------------------------------------- * Function: test_compound_17 * * Purpose: Tests that compound types are packed correctly when they * only have extra space at the end. The compounds are * "hidden" inside arrays to make sure that they are still * detected correctly. * * Return: Success: 0 * * Failure: number of errors * * Programmer: Neil Fortner * Tuesday, January 13, 2009 * * Modifications: * *------------------------------------------------------------------------- */ static int test_compound_17(void) { hid_t file; hid_t cmpd_int, arr_int, cmpd_ext, arr_ext, tmp_dt; hsize_t dims[1] = {2}; char filename[1024]; TESTING("that H5Tpack removes trailing bytes"); /* Create inner compound datatype. This type will be "packed" according * to the internal field, but will have trailing space at the end. */ if((cmpd_int = H5Tcreate(H5T_COMPOUND, (size_t)4)) < 0) TEST_ERROR if(H5Tinsert(cmpd_int, "c", (size_t)0, H5T_NATIVE_CHAR) < 0) TEST_ERROR /* Create inner array datatype */ if((arr_int = H5Tarray_create2(cmpd_int, 1, dims)) < 0) TEST_ERROR /* Create outer compound datatype. This type will be truly packed, with no * trailing space. However, the internal compound contained within is not * packed. */ if((cmpd_ext = H5Tcreate(H5T_COMPOUND, (size_t)8)) < 0) TEST_ERROR if(H5Tinsert(cmpd_ext, "arr", (size_t)0, arr_int) < 0) TEST_ERROR /* Create outer array datatype */ if((arr_ext = H5Tarray_create2(cmpd_ext, 1, dims)) < 0) TEST_ERROR /* Try packing the internal array. Size should be 2 after packing. */ if((tmp_dt = H5Tcopy(arr_int)) < 0) TEST_ERROR if(H5Tpack(tmp_dt) < 0) TEST_ERROR if(2 != H5Tget_size(tmp_dt)) { H5_FAILED(); AT(); printf(" Size after packing: %u; expected: 2\n", (unsigned)H5Tget_size(tmp_dt)); goto error; } if(H5Tclose(tmp_dt) < 0) TEST_ERROR /* Try packing the external array. Size should be 4 after packing. */ if((tmp_dt = H5Tcopy(arr_ext)) < 0) TEST_ERROR if(H5Tpack(tmp_dt) < 0) TEST_ERROR if(4 != H5Tget_size(tmp_dt)) { H5_FAILED(); AT(); printf(" Size after packing: %u; expected: 4\n", (unsigned)H5Tget_size(tmp_dt)); goto error; } if(H5Tclose(tmp_dt) < 0) TEST_ERROR /* Now we will commit arr_int and arr_ext to a file, and verify that they * are still packed correctly after opening them from the file */ /* Create File */ h5_fixname(FILENAME[3], H5P_DEFAULT, filename, sizeof filename); if((file=H5Fcreate(filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) TEST_ERROR /* Commit the datatypes. Note that they are still unpacked. */ if(H5Tcommit2(file, "arr_int", arr_int, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) < 0) TEST_ERROR if(H5Tcommit2(file, "arr_ext", arr_ext, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) < 0) TEST_ERROR /* Close IDs */ if(H5Tclose(cmpd_int) < 0) TEST_ERROR if(H5Tclose(arr_int) < 0) TEST_ERROR if(H5Tclose(cmpd_ext) < 0) TEST_ERROR if(H5Tclose(arr_ext) < 0) TEST_ERROR if(H5Fclose(file) < 0) TEST_ERROR /* Reopen file */ if((file = H5Fopen(filename, H5F_ACC_RDONLY, H5P_DEFAULT)) < 0) TEST_ERROR /* Open committed array datatypes */ if((arr_int = H5Topen2(file, "arr_int", H5P_DEFAULT)) < 0) TEST_ERROR if((arr_ext = H5Topen2(file, "arr_ext", H5P_DEFAULT)) < 0) TEST_ERROR /* Try packing the internal array. Size should be 2 after packing. */ if((tmp_dt = H5Tcopy(arr_int)) < 0) TEST_ERROR if(H5Tpack(tmp_dt) < 0) TEST_ERROR if(2 != H5Tget_size(tmp_dt)) { H5_FAILED(); AT(); printf(" Size after packing: %u; expected: 2\n", (unsigned)H5Tget_size(tmp_dt)); goto error; } if(H5Tclose(tmp_dt) < 0) TEST_ERROR /* Try packing the external array. Size should be 4 after packing. */ if((tmp_dt = H5Tcopy(arr_ext)) < 0) TEST_ERROR if(H5Tpack(tmp_dt) < 0) TEST_ERROR if(4 != H5Tget_size(tmp_dt)) { H5_FAILED(); AT(); printf(" Size after packing: %u; expected: 4\n", (unsigned)H5Tget_size(tmp_dt)); goto error; } if(H5Tclose(tmp_dt) < 0) TEST_ERROR /* Close IDs */ if(H5Tclose(arr_int) < 0) TEST_ERROR if(H5Tclose(arr_ext) < 0) TEST_ERROR if(H5Fclose(file) < 0) TEST_ERROR PASSED(); return 0; error: return 1; } /* end test_compound_17() */ /*------------------------------------------------------------------------- * Function: test_compound_18 * * Purpose: Tests that library fails correctly when opening a dataset * a compound datatype with zero fields. * * Return: Success: 0 * Failure: number of errors * * Programmer: Quincey Koziol * Thursday, April 14, 2011 * *------------------------------------------------------------------------- */ static int test_compound_18(void) { hid_t file = -1; hid_t gid = -1; hid_t did = -1; hid_t aid = -1; hid_t tid = -1; hid_t sid = -1; hsize_t dim = 1; const char *testfile = H5_get_srcdir_filename(TESTFILE); /* Corrected test file name */ char filename[1024]; herr_t ret; TESTING("accessing objects with compound datatypes that have no fields"); /* Create compound datatype, but don't insert fields */ tid = H5Tcreate(H5T_COMPOUND, (size_t)8); assert(tid > 0); /* Attempt to create file with compound datatype that has no fields */ /* Create File */ h5_fixname(FILENAME[3], H5P_DEFAULT, filename, sizeof filename); if((file = H5Fcreate(filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) FAIL_STACK_ERROR /* Create a dataspace to use */ sid = H5Screate_simple(1, &dim, NULL); assert(sid > 0); /* Create a dataset with the bad compound datatype */ H5E_BEGIN_TRY { did = H5Dcreate2(file, "dataset", tid, sid, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT); } H5E_END_TRY; if(did > 0) { H5Dclose(did); FAIL_PUTS_ERROR("created dataset with bad compound datatype") } /* end if */ /* Create a group */ gid = H5Gcreate2(file, "group", H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT); assert(gid > 0); /* Create an attribute with the bad compound datatype */ H5E_BEGIN_TRY { aid = H5Acreate2(gid, "attr", tid, sid, H5P_DEFAULT, H5P_DEFAULT); } H5E_END_TRY; if(aid > 0) { H5Aclose(aid); FAIL_PUTS_ERROR("created attribute with bad compound datatype") } /* end if */ /* Commit the datatype */ H5E_BEGIN_TRY { ret = H5Tcommit2(file, "cmpnd", tid, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT); } H5E_END_TRY; if(ret >= 0) { FAIL_PUTS_ERROR("committed named datatype with bad compound datatype") } /* end if */ /* Close IDs */ if(H5Tclose(tid) < 0) FAIL_STACK_ERROR if(H5Sclose(sid) < 0) FAIL_STACK_ERROR if(H5Gclose(gid) < 0) FAIL_STACK_ERROR if(H5Fclose(file) < 0) FAIL_STACK_ERROR /* Open Generated File */ /* (generated with gen_bad_compound.c) */ #ifdef H5_VMS if((file = H5Fopen(TESTFILE, H5F_ACC_RDONLY, H5P_DEFAULT)) < 0) FAIL_STACK_ERROR #else if((file = H5Fopen(testfile, H5F_ACC_RDONLY, H5P_DEFAULT)) < 0) FAIL_STACK_ERROR #endif /* Try to open the datatype */ H5E_BEGIN_TRY { tid = H5Topen2(file, "cmpnd", H5P_DEFAULT); } H5E_END_TRY; if(tid > 0) { H5Tclose(tid); FAIL_PUTS_ERROR("opened named datatype with bad compound datatype") } /* end if */ /* Try to open the dataset */ H5E_BEGIN_TRY { did = H5Dopen2(file, "dataset", H5P_DEFAULT); } H5E_END_TRY; if(did > 0) { H5Dclose(did); FAIL_PUTS_ERROR("opened dataset with bad compound datatype") } /* end if */ /* Open the group with the attribute */ if((gid = H5Gopen2(file, "group", H5P_DEFAULT)) < 0) TEST_ERROR /* Try to open the dataset */ H5E_BEGIN_TRY { aid = H5Aopen(gid, "attr", H5P_DEFAULT); } H5E_END_TRY; if(aid > 0) { H5Aclose(aid); FAIL_PUTS_ERROR("opened attribute with bad compound datatype") } /* end if */ /* Close IDs */ if(H5Gclose(gid) < 0) FAIL_STACK_ERROR if(H5Fclose(file) < 0) FAIL_STACK_ERROR PASSED(); return 0; error: return 1; } /* end test_compound_18() */ /*------------------------------------------------------------------------- * Function: test_query * * Purpose: Tests query functions of compound and enumeration types. * * Return: Success: 0 * * Failure: number of errors * * Programmer: Raymond Lu * Thursday, April 4, 2002 * * Modifications: * Raymond Lu * Wednesday, Febuary 9, 2005 * Added test for H5Tenum_valueof, H5Tenum_nameof, and * H5Tget_member_value. *------------------------------------------------------------------------- */ static int test_query(void) { struct s1 { int a; float b; long c; double d; }; hid_t file=-1, tid1=-1, tid2=-1; char filename[1024]; char compnd_type[]="Compound_type", enum_type[]="Enum_type"; short enum_val; char enum_name[16]; TESTING("query functions of compound and enumeration types"); /* Create File */ h5_fixname(FILENAME[2], H5P_DEFAULT, filename, sizeof filename); if((file=H5Fcreate(filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) goto error; /* Create a compound datatype */ if((tid1=H5Tcreate(H5T_COMPOUND, sizeof(struct s1))) < 0) { H5_FAILED(); printf("Can't create datatype!\n"); goto error; } /* end if */ if(H5Tinsert(tid1, "a", HOFFSET(struct s1, a), H5T_NATIVE_INT) < 0) { H5_FAILED(); printf("Can't insert field 'a'\n"); goto error; } /* end if */ if(H5Tinsert(tid1, "b", HOFFSET(struct s1, b), H5T_NATIVE_FLOAT) < 0) { H5_FAILED(); printf("Can't insert field 'b'\n"); goto error; } /* end if */ if(H5Tinsert(tid1, "c", HOFFSET(struct s1, c), H5T_NATIVE_LONG) < 0) { H5_FAILED(); printf("Can't insert field 'c'\n"); goto error; } /* end if */ if(H5Tinsert(tid1, "d", HOFFSET(struct s1, d), H5T_NATIVE_DOUBLE) < 0) { H5_FAILED(); printf("Can't insert field 'd'\n"); goto error; } /* end if */ /* Create a enumerate datatype */ if((tid2=H5Tcreate(H5T_ENUM, sizeof(short))) < 0) { H5_FAILED(); printf("Can't create enumerate type\n"); goto error; } /* end if */ if(H5Tenum_insert(tid2, "RED", (enum_val=10,&enum_val)) < 0) { H5_FAILED(); printf("Can't insert field into enumeration type\n"); goto error; } /* end if */ if(H5Tenum_insert(tid2, "GREEN", (enum_val=11,&enum_val)) < 0) { H5_FAILED(); printf("Can't insert field into enumeration type\n"); goto error; } /* end if */ if(H5Tenum_insert(tid2, "BLUE", (enum_val=12,&enum_val)) < 0) { H5_FAILED(); printf("Can't insert field into enumeration type\n"); goto error; } /* end if */ if(H5Tenum_insert(tid2, "ORANGE", (enum_val=13,&enum_val)) < 0) { H5_FAILED(); printf("Can't insert field into enumeration type\n"); goto error; } /* end if */ if(H5Tenum_insert(tid2, "YELLOW", (enum_val=14,&enum_val)) < 0) { H5_FAILED(); printf("Can't insert field into enumeration type\n"); goto error; } /* end if */ /* Query member number and member index by name, for compound type. */ if(H5Tget_nmembers(tid1)!=4) { H5_FAILED(); printf("Can't get member number\n"); goto error; } /* end if */ if(H5Tget_member_index(tid1, "c")!=2) { H5_FAILED(); printf("Can't get correct index number\n"); goto error; } /* end if */ /* Query member number and member index by member name, for enumeration type. */ if(H5Tget_nmembers(tid2) != 5) { H5_FAILED(); printf("Can't get member number\n"); goto error; } /* end if */ if(H5Tget_member_index(tid2, "ORANGE") != 3) { H5_FAILED(); printf("Can't get correct index number\n"); goto error; } /* end if */ /* Commit compound datatype and close it */ if(H5Tcommit2(file, compnd_type, tid1, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); printf("Can't commit compound datatype\n"); goto error; } /* end if */ if(H5Tclose(tid1) < 0) { H5_FAILED(); printf("Can't close datatype\n"); goto error; } /* end if */ /* Commit enumeration datatype and close it */ if(H5Tcommit2(file, enum_type, tid2, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); printf("Can't commit compound datatype\n"); goto error; } /* end if */ if(H5Tclose(tid2) < 0) { H5_FAILED(); printf("Can't close datatype\n"); goto error; } /* end if */ /* Open the dataytpe for query */ if((tid1 = H5Topen2(file, compnd_type, H5P_DEFAULT)) < 0) FAIL_STACK_ERROR if((tid2 = H5Topen2(file, enum_type, H5P_DEFAULT)) < 0) FAIL_STACK_ERROR /* Query member number and member index by name, for compound type */ if(H5Tget_nmembers(tid1) != 4) { H5_FAILED(); printf("Can't get member number\n"); goto error; } /* end if */ if(H5Tget_member_index(tid1, "c") != 2) { H5_FAILED(); printf("Can't get correct index number\n"); goto error; } /* end if */ /* Query member number and member index by member name, for enumeration type */ if(H5Tget_nmembers(tid2)!=5) { H5_FAILED(); printf("Can't get member number\n"); goto error; } /* end if */ if(H5Tget_member_index(tid2, "ORANGE")!=3) { H5_FAILED(); printf("Can't get correct index number\n"); goto error; } /* end if */ /* Query member value by member name, for enumeration type */ if(H5Tenum_valueof (tid2, "ORANGE", &enum_val) < 0) { H5_FAILED(); printf("Can't get value for enumerate member\n"); goto error; } /* end if */ if(enum_val!=13) { H5_FAILED(); printf("Incorrect value for enum member\n"); goto error; } /* end if */ /* Query member value by member index, for enumeration type */ if(H5Tget_member_value (tid2, 2, &enum_val) < 0) { H5_FAILED(); printf("Can't get value for enum member\n"); goto error; } /* end if */ if(enum_val!=12) { H5_FAILED(); printf("Incorrect value for enum member\n"); goto error; } /* end if */ /* Query member name by member value, for enumeration type */ enum_val = 14; if(H5Tenum_nameof(tid2, &enum_val, enum_name, (size_t)16) < 0) { H5_FAILED(); printf("Can't get name for enum member\n"); goto error; } /* end if */ if(strcmp("YELLOW", enum_name)) { H5_FAILED(); printf("Incorrect name for enum member\n"); goto error; } /* end if */ /* Close datatype and file */ if(H5Tclose(tid1) < 0) { H5_FAILED(); printf("Can't close datatype\n"); goto error; } /* end if */ if(H5Tclose(tid2) < 0) { H5_FAILED(); printf("Can't close datatype\n"); goto error; } /* end if */ if(H5Fclose(file) < 0) { H5_FAILED(); printf("Can't close file\n"); goto error; } /* end if */ PASSED(); return 0; error: H5E_BEGIN_TRY { H5Tclose (tid1); H5Tclose (tid2); H5Fclose (file); } H5E_END_TRY; return 1; } /*------------------------------------------------------------------------- * Function: test_transient * * Purpose: Tests transient datatypes. * * Return: Success: 0 * * Failure: number of errors * * Programmer: Robb Matzke * Thursday, June 4, 1998 * * Modifications: * *------------------------------------------------------------------------- */ static int test_transient (hid_t fapl) { static hsize_t ds_size[2] = {10, 20}; hid_t file=-1, type=-1, space=-1, dset=-1, t2=-1; char filename[1024]; herr_t status; TESTING("transient datatypes"); h5_fixname(FILENAME[0], fapl, filename, sizeof filename); if ((file=H5Fcreate (filename, H5F_ACC_TRUNC, H5P_DEFAULT, fapl)) < 0) { goto error; } if ((space = H5Screate_simple (2, ds_size, ds_size)) < 0) goto error; /* Predefined types cannot be modified or closed */ H5E_BEGIN_TRY { status = H5Tset_precision(H5T_NATIVE_INT, (size_t)256); } H5E_END_TRY; if (status>=0) { H5_FAILED(); HDputs (" Predefined types should not be modifiable!"); goto error; } H5E_BEGIN_TRY { status = H5Tclose (H5T_NATIVE_INT); } H5E_END_TRY; if (status>=0) { H5_FAILED(); HDputs (" Predefined types should not be closable!"); goto error; } /* Copying a predefined type results in a modifiable copy */ if((type=H5Tcopy(H5T_NATIVE_INT)) < 0) goto error; if(H5Tset_precision(type, (size_t)256) < 0) goto error; /* It should not be possible to create an attribute for a transient type */ H5E_BEGIN_TRY { status = H5Acreate2(type, "attr1", H5T_NATIVE_INT, space, H5P_DEFAULT, H5P_DEFAULT); } H5E_END_TRY; if (status>=0) { H5_FAILED(); HDputs (" Attributes should not be allowed for transient types!"); goto error; } /* Create a dataset from a transient datatype */ if(H5Tclose(type) < 0) goto error; if((type = H5Tcopy(H5T_NATIVE_INT)) < 0) goto error; if((dset = H5Dcreate2(file, "dset1", type, space, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) goto error; /* The type returned from a dataset should not be modifiable */ if((t2 = H5Dget_type(dset)) < 0) goto error; H5E_BEGIN_TRY { status = H5Tset_precision(t2, (size_t)256); } H5E_END_TRY; if(status >= 0) { H5_FAILED(); HDputs (" Dataset datatypes should not be modifiable!"); goto error; } if(H5Tclose(t2) < 0) goto error; /* * Close the dataset and reopen it, testing that it's type is still * read-only. */ if(H5Dclose(dset) < 0) goto error; if((dset = H5Dopen2(file, "dset1", H5P_DEFAULT)) < 0) goto error; if((t2 = H5Dget_type(dset)) < 0) goto error; H5E_BEGIN_TRY { status = H5Tset_precision(t2, (size_t)256); } H5E_END_TRY; if(status >= 0) { H5_FAILED(); HDputs (" Dataset datatypes should not be modifiable!"); goto error; } if(H5Tclose(t2) < 0) goto error; /* * Get the dataset datatype by applying H5Tcopy() to the dataset. The * result should be modifiable. */ if((t2=H5Tcopy(dset)) < 0) goto error; if(H5Tset_precision(t2, (size_t)256) < 0) goto error; if(H5Tclose(t2) < 0) goto error; if(H5Dclose(dset) < 0) goto error; if(H5Fclose(file) < 0) goto error; if(H5Tclose(type) < 0) goto error; if(H5Sclose(space) < 0) goto error; PASSED(); return 0; error: H5E_BEGIN_TRY { H5Tclose (t2); H5Tclose (type); H5Sclose (space); H5Dclose (dset); H5Fclose (file); } H5E_END_TRY; return 1; } /*------------------------------------------------------------------------- * Function: test_named * * Purpose: Tests named datatypes. * * Return: Success: 0 * * Failure: number of errors * * Programmer: Robb Matzke * Monday, June 1, 1998 * * Modifications: * *------------------------------------------------------------------------- */ static int test_named (hid_t fapl) { hid_t file=-1, type=-1, space=-1, dset=-1, t2=-1, t3=-1, attr1=-1; herr_t status; static hsize_t ds_size[2] = {10, 20}; size_t i,j; unsigned attr_data[10][20]; char filename[1024]; TESTING("named datatypes"); h5_fixname(FILENAME[1], fapl, filename, sizeof filename); if ((file=H5Fcreate (filename, H5F_ACC_TRUNC, H5P_DEFAULT, fapl)) < 0) { goto error; } if ((space = H5Screate_simple (2, ds_size, ds_size)) < 0) goto error; /* Predefined types cannot be committed */ H5E_BEGIN_TRY { status = H5Tcommit2(file, "test_named_1 (should not exist)", H5T_NATIVE_INT, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT); } H5E_END_TRY; if(status >= 0) { H5_FAILED(); HDputs (" Predefined types should not be committable!"); goto error; } /* Copy a predefined datatype and commit the copy */ if((type = H5Tcopy(H5T_NATIVE_INT)) < 0) goto error; if(H5Tcommit2(file, "native-int", type, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) < 0) goto error; if((status = H5Tcommitted(type)) < 0) goto error; if(0 == status) { H5_FAILED(); HDputs (" H5Tcommitted() returned false!"); goto error; } /* We should not be able to modify a type after it has been committed. */ H5E_BEGIN_TRY { status = H5Tset_precision (type, (size_t)256); } H5E_END_TRY; if (status>=0) { H5_FAILED(); HDputs (" Committed type is not constant!"); goto error; } /* We should not be able to re-commit a committed type */ H5E_BEGIN_TRY { status = H5Tcommit2(file, "test_named_2 (should not exist)", type, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT); } H5E_END_TRY; if(status >= 0) { H5_FAILED(); HDputs (" Committed types should not be recommitted!"); goto error; } /* It should be possible to define an attribute for the named type */ if((attr1 = H5Acreate2(type, "attr1", H5T_NATIVE_UCHAR, space, H5P_DEFAULT, H5P_DEFAULT)) < 0) goto error; for(i = 0; i < (size_t)ds_size[0]; i++) for(j = 0; j < (size_t)ds_size[1]; j++) attr_data[i][j] = (unsigned)(i * ds_size[1] + j); if(H5Awrite(attr1, H5T_NATIVE_UINT, attr_data) < 0) goto error; if(H5Aclose(attr1) < 0) goto error; /* * Copying a committed type should result in a transient type which is * not locked. */ if((t2 = H5Tcopy(type)) < 0) goto error; if((status = H5Tcommitted(t2)) < 0) goto error; if(status) { H5_FAILED(); HDputs (" Copying a named type should result in a transient type!"); goto error; } if(H5Tset_precision(t2, (size_t)256) < 0) goto error; if(H5Tclose(t2) < 0) goto error; /* * Close the committed type and reopen it. It should return a named type. */ if(H5Tclose(type) < 0) goto error; if((type = H5Topen2(file, "native-int", H5P_DEFAULT)) < 0) FAIL_STACK_ERROR if((status = H5Tcommitted(type)) < 0) goto error; if(!status) { H5_FAILED(); HDputs (" Opened named types should be named types!"); goto error; } /* Create a dataset that uses the named type */ if((dset = H5Dcreate2(file, "dset1", type, space, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) goto error; /* Get the dataset's datatype and make sure it's a named type */ if((t2 = H5Dget_type(dset)) < 0) goto error; if((status = H5Tcommitted(t2)) < 0) goto error; if(!status) { H5_FAILED(); HDputs (" Dataset type should be a named type!"); goto error; } /* Close the dataset, then close its type, then reopen the dataset */ if(H5Dclose(dset) < 0) goto error; if(H5Tclose(t2) < 0) goto error; if((dset = H5Dopen2(file, "dset1", H5P_DEFAULT)) < 0) goto error; /* Get the dataset's type and make sure it's named */ if((t2 = H5Dget_type(dset)) < 0) goto error; if((status = H5Tcommitted(t2)) < 0) goto error; if(!status) { H5_FAILED(); HDputs (" Dataset type should be a named type!"); goto error; } /* * Close the dataset and create another with the type returned from the * first dataset. */ if(H5Dclose(dset) < 0) goto error; if((dset = H5Dcreate2(file, "dset2", t2, space, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) goto error; /* Reopen the second dataset and make sure the type is shared */ if(H5Tclose(t2) < 0) goto error; if(H5Dclose(dset) < 0) goto error; if((dset = H5Dopen2(file, "dset2", H5P_DEFAULT)) < 0) goto error; if((t2 = H5Dget_type(dset)) < 0) goto error; if((status = H5Tcommitted(t2)) < 0) goto error; if(!status) { H5_FAILED(); HDputs (" Dataset type should be a named type!"); goto error; } if(H5Tclose(t2) < 0) goto error; /* * Get the dataset datatype by applying H5Tcopy() to the dataset. The * result should be modifiable. */ if((t2 = H5Tcopy(dset)) < 0) goto error; if(H5Tset_precision(t2, (size_t)256) < 0) goto error; if(H5Tclose(t2) < 0) goto error; if(H5Dclose(dset) < 0) goto error; /* * Copy of committed type used as dataset type should not be name type */ if((t2 = H5Tcopy(type)) < 0) goto error; if((status = H5Tcommitted(t2)) < 0) goto error; if(status) { H5_FAILED(); HDputs (" Copied type should not be a named type!"); goto error; } if((dset = H5Dcreate2(file, "dset3", t2, space, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) goto error; if((t3 = H5Dget_type(dset)) < 0) goto error; if((status = H5Tcommitted(t3)) < 0) goto error; if(status) { H5_FAILED(); HDputs (" Datatype from dataset using copied type should not be a named type!"); goto error; } if(H5Tclose(t3) < 0) goto error; if(H5Dclose(dset) < 0) goto error; /* Close */ if(H5Tclose(type) < 0) goto error; if(H5Sclose(space) < 0) goto error; if(H5Fclose(file) < 0) goto error; /* Reopen file with read only access */ if ((file = H5Fopen(filename, H5F_ACC_RDONLY, fapl)) < 0) goto error; /* Verify that H5Tcommit2 returns an error */ if((type = H5Tcopy(H5T_NATIVE_INT)) < 0) goto error; H5E_BEGIN_TRY { status = H5Tcommit2(file, "test_named_3 (should not exist)", type, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT); } H5E_END_TRY; if(status >= 0) { H5_FAILED(); HDputs (" Types should not be committable to a read-only file!"); goto error; } /* Verify that H5Tcommit_anon returns an error */ if((type = H5Tcopy(H5T_NATIVE_INT)) < 0) goto error; H5E_BEGIN_TRY { status = H5Tcommit_anon(file, type, H5P_DEFAULT, H5P_DEFAULT); } H5E_END_TRY; if(status >= 0) { H5_FAILED(); HDputs (" Types should not be committable to a read-only file!"); goto error; } /* Close */ if(H5Tclose(type) < 0) goto error; if(H5Fclose(file) < 0) goto error; PASSED(); return 0; error: H5E_BEGIN_TRY { H5Tclose(t3); H5Tclose(t2); H5Tclose(type); H5Sclose(space); H5Dclose(dset); H5Fclose(file); } H5E_END_TRY; return 1; } /*------------------------------------------------------------------------- * Function: mkstr * * Purpose: Create a new string datatype * * Return: Success: New type * Failure: -1 * * Programmer: Robb Matzke * Monday, August 10, 1998 * *------------------------------------------------------------------------- */ static hid_t mkstr(size_t len, H5T_str_t strpad) { hid_t t; if((t = H5Tcopy(H5T_C_S1)) < 0) return -1; if(H5Tset_size(t, len) < 0) return -1; if(H5Tset_strpad(t, strpad) < 0) return -1; return t; } /*------------------------------------------------------------------------- * Function: test_str_create * * Purpose: Test string type creation using H5Tcreate * * Return: Success: 0 * Failure: number of errors * * Programmer: Raymond Lu * 19 May 2011 * *------------------------------------------------------------------------- */ static int test_str_create(void) { hid_t fixed_str1, fixed_str2; hid_t vlen_str1, vlen_str2; htri_t is_vl_str = FALSE; size_t query_size, str_size = 10; TESTING("string type creation using H5Tcreate"); /* Create fixed-length string in two ways and make sure they are the same */ if((fixed_str1 = mkstr(str_size, H5T_STR_NULLTERM)) < 0) goto error; if((fixed_str2 = H5Tcreate(H5T_STRING, str_size)) < 0) goto error; if(H5Tset_strpad(fixed_str2, H5T_STR_NULLTERM) < 0) goto error; if(!H5Tequal(fixed_str1, fixed_str2)) goto error; if((query_size = H5Tget_size(fixed_str1)) == 0) goto error; if(query_size != str_size) goto error; if((query_size = H5Tget_size(fixed_str2)) == 0) goto error; if(query_size != str_size) goto error; if(H5Tclose(fixed_str1) < 0) goto error; if(H5Tclose(fixed_str2) < 0) goto error; /* Create variable-length string in two ways and make sure they are the same */ if((vlen_str1 = mkstr((size_t)H5T_VARIABLE, H5T_STR_NULLTERM)) < 0) goto error; if((vlen_str2 = H5Tcreate(H5T_STRING, (size_t)H5T_VARIABLE)) < 0) goto error; if(H5Tset_strpad(vlen_str2, H5T_STR_NULLTERM) < 0) goto error; if(!H5Tequal(vlen_str1, vlen_str2)) goto error; if((is_vl_str = H5Tis_variable_str(vlen_str1)) < 0) goto error; if(!is_vl_str) goto error; if((is_vl_str = H5Tis_variable_str(vlen_str2)) < 0) goto error; if(!is_vl_str) goto error; if(H5Tclose(vlen_str1) < 0) goto error; if(H5Tclose(vlen_str2) < 0) goto error; PASSED(); return 0; error: H5_FAILED(); return 1; } /*------------------------------------------------------------------------- * Function: test_conv_str_1 * * Purpose: Test string conversions * * Return: Success: 0 * Failure: number of errors * * Programmer: Robb Matzke * Monday, August 10, 1998 * *------------------------------------------------------------------------- */ static int test_conv_str_1(void) { char *buf = NULL; hid_t src_type = -1; hid_t dst_type = -1; TESTING("string conversions"); /* * Convert a null-terminated string to a shorter and longer null * terminated string. */ if((src_type = mkstr((size_t)10, H5T_STR_NULLTERM)) < 0) goto error; if((dst_type = mkstr((size_t)5, H5T_STR_NULLTERM)) < 0) goto error; if(NULL == (buf = (char*)HDcalloc((size_t)2, (size_t)10))) goto error; HDmemcpy(buf, "abcdefghi\0abcdefghi\0", (size_t)20); if (H5Tconvert(src_type, dst_type, (size_t)2, buf, NULL, H5P_DEFAULT) < 0) goto error; if (HDmemcmp(buf, "abcd\0abcd\0abcdefghi\0", (size_t)20)) { H5_FAILED(); HDputs(" Truncated C-string test failed"); goto error; } if (H5Tconvert(dst_type, src_type, (size_t)2, buf, NULL, H5P_DEFAULT) < 0) goto error; if (HDmemcmp(buf, "abcd\0\0\0\0\0\0abcd\0\0\0\0\0\0", (size_t)20)) { H5_FAILED(); HDputs(" Extended C-string test failed"); goto error; } HDfree(buf); buf = NULL; if (H5Tclose(src_type) < 0) goto error; if (H5Tclose(dst_type) < 0) goto error; /* * Convert a null padded string to a shorter and then longer string. */ if((src_type = mkstr((size_t)10, H5T_STR_NULLPAD)) < 0) goto error; if((dst_type = mkstr((size_t)5, H5T_STR_NULLPAD)) < 0) goto error; if(NULL == (buf = (char*)HDcalloc((size_t)2, (size_t)10))) goto error; HDmemcpy(buf, "abcdefghijabcdefghij", (size_t)20); if (H5Tconvert(src_type, dst_type, (size_t)2, buf, NULL, H5P_DEFAULT) < 0) goto error; if (HDmemcmp(buf, "abcdeabcdeabcdefghij", (size_t)20)) { H5_FAILED(); HDputs(" Truncated C buffer test failed"); goto error; } if (H5Tconvert(dst_type, src_type, (size_t)2, buf, NULL, H5P_DEFAULT) < 0) goto error; if (HDmemcmp(buf, "abcde\0\0\0\0\0abcde\0\0\0\0\0", (size_t)20)) { H5_FAILED(); HDputs(" Extended C buffer test failed"); goto error; } HDfree(buf); buf = NULL; if (H5Tclose(src_type) < 0) goto error; if (H5Tclose(dst_type) < 0) goto error; /* * Convert a space-padded string to a shorter and then longer string. */ if((src_type = mkstr((size_t)10, H5T_STR_SPACEPAD)) < 0) goto error; if((dst_type = mkstr((size_t)5, H5T_STR_SPACEPAD)) < 0) goto error; if(NULL == (buf = (char*)HDcalloc((size_t)2, (size_t)10))) goto error; HDmemcpy(buf, "abcdefghijabcdefghij", (size_t)20); if (H5Tconvert(src_type, dst_type, (size_t)2, buf, NULL, H5P_DEFAULT) < 0) goto error; if (HDmemcmp(buf, "abcdeabcdeabcdefghij", (size_t)20)) { H5_FAILED(); HDputs(" Truncated Fortran-string test failed"); goto error; } if (H5Tconvert(dst_type, src_type, (size_t)2, buf, NULL, H5P_DEFAULT) < 0) goto error; if (HDmemcmp(buf, "abcde abcde ", (size_t)20)) { H5_FAILED(); HDputs(" Extended Fortran-string test failed"); goto error; } HDfree(buf); buf = NULL; if (H5Tclose(src_type) < 0) goto error; if (H5Tclose(dst_type) < 0) goto error; /* * What happens if a null-terminated string is not null terminated? If * the conversion is to an identical string then nothing happens but if * the destination is a different size or type of string then the right * thing should happen. */ if((src_type = mkstr((size_t)10, H5T_STR_NULLTERM)) < 0) goto error; if((dst_type = mkstr((size_t)10, H5T_STR_NULLTERM)) < 0) goto error; if(NULL == (buf = (char*)HDcalloc((size_t)2, (size_t)10))) goto error; HDmemcpy(buf, "abcdefghijabcdefghij", (size_t)20); if (H5Tconvert(src_type, dst_type, (size_t)2, buf, NULL, H5P_DEFAULT) < 0) goto error; if (HDmemcmp(buf, "abcdefghijabcdefghij", (size_t)20)) { H5_FAILED(); HDputs(" Non-terminated string test 1"); goto error; } H5Tclose(dst_type); if((dst_type = mkstr((size_t)5, H5T_STR_NULLTERM)) < 0) goto error; HDmemcpy(buf, "abcdefghijabcdefghij", (size_t)20); if (H5Tconvert(src_type, dst_type, (size_t)2, buf, NULL, H5P_DEFAULT) < 0) goto error; if (HDmemcmp(buf, "abcd\0abcd\0abcdefghij", (size_t)20)) { H5_FAILED(); HDputs(" Non-terminated string test 2"); goto error; } HDmemcpy(buf, "abcdeabcdexxxxxxxxxx", (size_t)20); if (H5Tconvert(dst_type, src_type, (size_t)2, buf, NULL, H5P_DEFAULT) < 0) goto error; if (HDmemcmp(buf, "abcde\0\0\0\0\0abcde\0\0\0\0\0", (size_t)20)) { H5_FAILED(); HDputs(" Non-terminated string test 2"); goto error; } HDfree(buf); buf = NULL; if (H5Tclose(src_type) < 0) goto error; if (H5Tclose(dst_type) < 0) goto error; /* * Test C string to Fortran and vice versa. */ if((src_type = mkstr((size_t)10, H5T_STR_NULLTERM)) < 0) goto error; if((dst_type = mkstr((size_t)10, H5T_STR_SPACEPAD)) < 0) goto error; if(NULL == (buf = (char*)HDcalloc((size_t)2, (size_t)10))) goto error; HDmemcpy(buf, "abcdefghi\0abcdefghi\0", (size_t)20); if (H5Tconvert(src_type, dst_type, (size_t)2, buf, NULL, H5P_DEFAULT) < 0) goto error; if (HDmemcmp(buf, "abcdefghi abcdefghi ", (size_t)20)) { H5_FAILED(); HDputs(" C string to Fortran test 1"); goto error; } if (H5Tconvert(dst_type, src_type, (size_t)2, buf, NULL, H5P_DEFAULT) < 0) goto error; if (HDmemcmp(buf, "abcdefghi\0abcdefghi\0", (size_t)20)) { H5_FAILED(); HDputs(" Fortran to C string test 1"); goto error; } if (H5Tclose(dst_type) < 0) goto error; if((dst_type = mkstr((size_t)5, H5T_STR_SPACEPAD)) < 0) goto error; HDmemcpy(buf, "abcdefgh\0\0abcdefgh\0\0", (size_t)20); if (H5Tconvert(src_type, dst_type, (size_t)2, buf, NULL, H5P_DEFAULT) < 0) goto error; if (HDmemcmp(buf, "abcdeabcdeabcdefgh\0\0", (size_t)20)) { H5_FAILED(); HDputs(" C string to Fortran test 2"); goto error; } if (H5Tconvert(dst_type, src_type, (size_t)2, buf, NULL, H5P_DEFAULT) < 0) goto error; if (HDmemcmp(buf, "abcde\0\0\0\0\0abcde\0\0\0\0\0", (size_t)20)) { H5_FAILED(); HDputs(" Fortran to C string test 2"); goto error; } if (H5Tclose(src_type) < 0) goto error; if (H5Tclose(dst_type) < 0) goto error; if((src_type = mkstr((size_t)5, H5T_STR_NULLTERM)) < 0) goto error; if((dst_type = mkstr((size_t)10, H5T_STR_SPACEPAD)) < 0) goto error; HDmemcpy(buf, "abcd\0abcd\0xxxxxxxxxx", (size_t)20); if (H5Tconvert(src_type, dst_type, (size_t)2, buf, NULL, H5P_DEFAULT) < 0) goto error; if (HDmemcmp(buf, "abcd abcd ", (size_t)20)) { H5_FAILED(); HDputs(" C string to Fortran test 3"); goto error; } if (H5Tconvert(dst_type, src_type, (size_t)2, buf, NULL, H5P_DEFAULT) < 0) goto error; if (HDmemcmp(buf, "abcd\0abcd\0abcd ", (size_t)20)) { H5_FAILED(); HDputs(" Fortran to C string test 3"); goto error; } HDfree(buf); buf = NULL; if (H5Tclose(src_type) < 0) goto error; if (H5Tclose(dst_type) < 0) goto error; /* * Test C buffer to Fortran and vice versa. */ if((src_type = mkstr((size_t)10, H5T_STR_NULLPAD)) < 0) goto error; if((dst_type = mkstr((size_t)10, H5T_STR_SPACEPAD)) < 0) goto error; if(NULL == (buf = (char*)HDcalloc((size_t)2, (size_t)10))) goto error; HDmemcpy(buf, "abcdefghijabcdefghij", (size_t)20); if (H5Tconvert(src_type, dst_type, (size_t)2, buf, NULL, H5P_DEFAULT) < 0) goto error; if (HDmemcmp(buf, "abcdefghijabcdefghij", (size_t)20)) { H5_FAILED(); HDputs(" C buffer to Fortran test 1"); goto error; } if (H5Tconvert(dst_type, src_type, (size_t)2, buf, NULL, H5P_DEFAULT) < 0) goto error; if (HDmemcmp(buf, "abcdefghijabcdefghij", (size_t)20)) { H5_FAILED(); HDputs(" Fortran to C buffer test 1"); goto error; } if (H5Tclose(dst_type) < 0) goto error; if((dst_type = mkstr((size_t)5, H5T_STR_SPACEPAD)) < 0) goto error; HDmemcpy(buf, "abcdefgh\0\0abcdefgh\0\0", (size_t)20); if (H5Tconvert(src_type, dst_type, (size_t)2, buf, NULL, H5P_DEFAULT) < 0) goto error; if (HDmemcmp(buf, "abcdeabcdeabcdefgh\0\0", (size_t)20)) { H5_FAILED(); HDputs(" C buffer to Fortran test 2"); goto error; } if (H5Tconvert(dst_type, src_type, (size_t)2, buf, NULL, H5P_DEFAULT) < 0) goto error; if (HDmemcmp(buf, "abcde\0\0\0\0\0abcde\0\0\0\0\0", (size_t)20)) { H5_FAILED(); HDputs(" Fortran to C buffer test 2"); goto error; } if (H5Tclose(src_type) < 0) goto error; if (H5Tclose(dst_type) < 0) goto error; if((src_type = mkstr((size_t)5, H5T_STR_NULLPAD)) < 0) goto error; if((dst_type = mkstr((size_t)10, H5T_STR_SPACEPAD)) < 0) goto error; HDmemcpy(buf, "abcd\0abcd\0xxxxxxxxxx", (size_t)20); if (H5Tconvert(src_type, dst_type, (size_t)2, buf, NULL, H5P_DEFAULT) < 0) goto error; if (HDmemcmp(buf, "abcd abcd ", (size_t)20)) { H5_FAILED(); HDputs(" C buffer to Fortran test 3"); goto error; } if (H5Tconvert(dst_type, src_type, (size_t)2, buf, NULL, H5P_DEFAULT) < 0) goto error; if (HDmemcmp(buf, "abcd\0abcd\0abcd ", (size_t)20)) { H5_FAILED(); HDputs(" Fortran to C buffer test 3"); goto error; } if(H5Tclose(src_type) < 0) goto error; if(H5Tclose(dst_type) < 0) goto error; HDfree(buf); PASSED(); reset_hdf5(); return 0; error: H5E_BEGIN_TRY { H5Tclose(src_type); H5Tclose(dst_type); } H5E_END_TRY; if(buf) HDfree(buf); reset_hdf5(); return 1; } /*------------------------------------------------------------------------- * Function: test_conv_str_2 * * Purpose: Tests C-to-Fortran and Fortran-to-C string conversion speed. * * Return: Success: 0 * Failure: number of errors * * Programmer: Robb Matzke * Monday, August 10, 1998 * *------------------------------------------------------------------------- */ static int test_conv_str_2(void) { char *buf = NULL, s[80]; hid_t c_type = -1; hid_t f_type = -1; const size_t nelmts = NTESTELEM; size_t i, j, nchars; int ret_value = 1; /* * Initialize types and buffer. */ if((c_type = mkstr((size_t)8, H5T_STR_NULLPAD)) < 0) goto error; if((f_type = mkstr((size_t)8, H5T_STR_SPACEPAD)) < 0) goto error; if(NULL == (buf = (char*)HDcalloc(nelmts, (size_t)8))) goto error; for(i = 0; i < nelmts; i++) { nchars = (size_t)(HDrand() % 8); for(j = 0; j < nchars; j++) buf[i * 8 + j] = (char)('a' + HDrand() % 26); while(j < nchars) buf[i * 8 + j++] = '\0'; } /* end for */ /* Do the conversions */ sprintf(s, "Testing random string conversion speed"); printf("%-70s", s); HDfflush(stdout); if(H5Tconvert(c_type, f_type, nelmts, buf, NULL, H5P_DEFAULT) < 0) goto error; if(H5Tconvert(f_type, c_type, nelmts, buf, NULL, H5P_DEFAULT) < 0) goto error; PASSED(); ret_value = 0; error: H5E_BEGIN_TRY { H5Tclose(c_type); H5Tclose(f_type); } H5E_END_TRY; if(buf) HDfree(buf); reset_hdf5(); return ret_value; } /*------------------------------------------------------------------------- * Function: test_conv_str_3 * * Purpose: Tests some functions that are or aren't supposed to work * for string type. * * Return: Success: 0 * Failure: number of errors * * Programmer: Raymond Lu * Tuesday, April 4, 2006 * *------------------------------------------------------------------------- */ static int test_conv_str_3(void) { char *buf=NULL; hid_t type = -1; hid_t super = -1; const size_t nelmts = NTESTELEM; size_t i, j, nchars; int ret_value = 1; size_t size; H5T_pad_t inpad; H5T_sign_t sign; char *tag = NULL; herr_t ret; TESTING("some type functions for string"); /* * Initialize types and buffer. */ if((type = mkstr((size_t)8, H5T_STR_NULLPAD)) < 0) goto error; if(NULL == (buf = (char*)HDcalloc(nelmts, (size_t)8))) FAIL_PUTS_ERROR("Allocation failed."); for(i = 0; i < nelmts; i++) { nchars = (size_t)(HDrand() % 8); for(j = 0; j < nchars; j++) buf[i * 8 + j] = (char)('a' + HDrand() % 26); while(j < nchars) buf[i * 8 + j++] = '\0'; } /* end for */ if(H5Tget_precision(type) == 0) FAIL_STACK_ERROR if(H5Tget_size(type) == 0) FAIL_STACK_ERROR if(H5Tset_pad(type, H5T_PAD_ZERO, H5T_PAD_ONE) < 0) FAIL_STACK_ERROR if(H5Tget_cset(type) < 0) FAIL_STACK_ERROR if(H5Tget_strpad(type) < 0) FAIL_STACK_ERROR if(H5Tset_offset(type, (size_t)0) < 0) FAIL_STACK_ERROR if(H5Tget_order(type) < 0) FAIL_STACK_ERROR H5E_BEGIN_TRY { ret = H5Tset_precision(type, nelmts); } H5E_END_TRY; if(ret >= 0) { FAIL_PUTS_ERROR("Operation not allowed for this type."); } /* end if */ H5E_BEGIN_TRY { size = H5Tget_ebias(type); } H5E_END_TRY; if(size > 0) { FAIL_PUTS_ERROR("Operation not allowed for this type."); } /* end if */ H5E_BEGIN_TRY { inpad = H5Tget_inpad(type); } H5E_END_TRY; if(inpad > -1) { FAIL_PUTS_ERROR("Operation not allowed for this type."); } /* end if */ H5E_BEGIN_TRY { sign = H5Tget_sign(type); } H5E_END_TRY; if(sign > -1) { FAIL_PUTS_ERROR("Operation not allowed for this type."); } /* end if */ H5E_BEGIN_TRY { tag = H5Tget_tag(type); } H5E_END_TRY; if(tag) { FAIL_PUTS_ERROR("Operation not allowed for this type."); } /* end if */ H5E_BEGIN_TRY { super = H5Tget_super(type); } H5E_END_TRY; if(super >= 0) { FAIL_PUTS_ERROR("Operation not allowed for this type."); } /* end if */ PASSED(); ret_value = 0; error: H5E_BEGIN_TRY { H5Tclose(type); H5Tclose(super); } H5E_END_TRY; if(buf) HDfree(buf); if(tag) HDfree(tag); reset_hdf5(); return ret_value; /* Number of errors */ } /*------------------------------------------------------------------------- * Function: test_conv_enum_1 * * Purpose: Test conversion speed for enum datatypes * * Return: Success: 0 * * Failure: number of errors * * Programmer: Robb Matzke * Tuesday, January 5, 1999 * * Modifications: * *------------------------------------------------------------------------- */ static int test_conv_enum_1(void) { const size_t nelmts=NTESTELEM; int i, val, *buf=NULL; hid_t t1 = -1; hid_t t2 = -1; char s[80]; int ret_value = 1; size_t u; /* Build the datatypes */ if((t1 = H5Tcreate(H5T_ENUM, sizeof(int))) < 0) goto error; if((t2 = H5Tenum_create(H5T_NATIVE_INT)) < 0) goto error; s[1] = '\0'; for(i = 0; i < 26; i++) { s[0] = (char)('A' + i); H5Tenum_insert(t1, s, &i); H5Tenum_insert(t2, s, (val = i * 1000 + i, &val)); } /* end for */ /* Initialize the buffer */ if(NULL == (buf = (int*)HDmalloc(nelmts * MAX(H5Tget_size(t1), H5Tget_size(t2))))) goto error; for(u = 0; u < nelmts; u++) buf[u] = HDrand() % 26; /* Conversions */ sprintf(s, "Testing random enum conversion O(N)"); printf("%-70s", s); HDfflush(stdout); if(H5Tconvert(t1, t2, nelmts, buf, NULL, H5P_DEFAULT) < 0) goto error; PASSED(); sprintf(s, "Testing random enum conversion O(N log N)"); printf("%-70s", s); HDfflush(stdout); if(H5Tconvert(t2, t1, nelmts, buf, NULL, H5P_DEFAULT) < 0) goto error; PASSED(); ret_value = 0; error: H5E_BEGIN_TRY { H5Tclose(t1); H5Tclose(t2); } H5E_END_TRY; if(buf) HDfree(buf); reset_hdf5(); return ret_value; } /*------------------------------------------------------------------------- * Function: test_conv_enum_2 * * Purpose: Tests enumeration conversions where source isn't a native type. * * Return: Success: 0 * * Failure: number of errors * * Programmer: Robb Matzke, LLNL, 2003-06-09 *------------------------------------------------------------------------- */ static int test_conv_enum_2(void) { hid_t srctype=-1, dsttype=-1, oddsize=-1; int *data=NULL, i, nerrors=0; const char *mname[] = { "RED", "GREEN", "BLUE", "YELLOW", "PINK", "PURPLE", "ORANGE", "WHITE" }; TESTING("non-native enumeration type conversion"); /* Source enum type */ oddsize = H5Tcopy(H5T_STD_I32BE); H5Tset_size(oddsize, (size_t)3); /*reduce to 24 bits, not corresponding to any native size*/ srctype = H5Tenum_create(oddsize); for (i=7; i>=0; --i) { char pattern[3]; pattern[2] = (char)i; pattern[0] = pattern[1] = 0; H5Tenum_insert(srctype, mname[i], pattern); } /* Destination enum type */ dsttype = H5Tenum_create(H5T_NATIVE_INT); assert(H5Tget_size(dsttype) > H5Tget_size(srctype)); for (i=0; i<8; i++) H5Tenum_insert(dsttype, mname[i], &i); /* Source data */ data = (int*)malloc(NTESTELEM*sizeof(int)); for (i=0; i<NTESTELEM; i++) { ((char*)data)[i*3+2] = (char)(i % 8); ((char*)data)[i*3+0] = 0; ((char*)data)[i*3+1] = 0; } /* Convert to destination type */ H5Tconvert(srctype, dsttype, (size_t)NTESTELEM, data, NULL, H5P_DEFAULT); /* Check results */ for (i=0; i<NTESTELEM; i++) { if (data[i] != i%8) { if (!nerrors++) { H5_FAILED(); printf("element %d is %d but should have been %d\n", i, data[i], i%8); } } } /* Cleanup */ free(data); H5Tclose(srctype); H5Tclose(dsttype); H5Tclose(oddsize); /* Failure */ if (nerrors) { printf("total of %d conversion errors out of %d elements for enums\n", nerrors, NTESTELEM); return 1; } PASSED(); return 0; } /*------------------------------------------------------------------------- * Function: test_conv_bitfield * * Purpose: Test bitfield conversions. * * Return: Success: 0 * * Failure: number of errors * * Programmer: Robb Matzke * Thursday, May 20, 1999 * * Modifications: * *------------------------------------------------------------------------- */ static int test_conv_bitfield(void) { unsigned char buf[4]; hid_t st=-1, dt=-1; TESTING("bitfield conversions"); /* * First test a simple bitfield conversion: * 1010101010101010 * ________________1010101010101010 */ st = H5Tcopy(H5T_STD_B16LE); dt = H5Tcopy(H5T_STD_B32LE); buf[0] = buf[1] = 0xAA; buf[2] = buf[3] = 0x55; /*irrelevant*/ if (H5Tconvert(st, dt, (size_t)1, buf, NULL, H5P_DEFAULT) < 0) goto error; if (buf[0]!=0xAA || buf[1]!=0xAA || buf[2]!=0 || buf[3]!=0) { H5_FAILED(); printf(" s=0xaaaa, d=0x%02x%02x%02x%02x (test 1)\n", buf[3], buf[2], buf[1], buf[0]); goto error; } /* * Test2: Offset a 12-byte value in the middle of a 16 and 32 byte * field. * __10 1010 1010 10__ * ____ ____ __10 1010 1010 10__ ____ ____ */ H5Tset_precision(st, (size_t)12); H5Tset_offset(st, (size_t)2); H5Tset_precision(dt, (size_t)12); H5Tset_offset(dt, (size_t)10); buf[0] = 0xA8; buf[1] = 0x2A; buf[2] = buf[3] = 0; if (H5Tconvert(st, dt, (size_t)1, buf, NULL, H5P_DEFAULT) < 0) goto error; if (buf[0]!=0 || buf[1]!=0xA8 || buf[2]!=0x2A || buf[3]!=0) { H5_FAILED(); printf(" s=0x2AA8 d=0x%02x%02x%02x%02x (test 2)\n", buf[3], buf[2], buf[1], buf[0]); goto error; } /* * Same as previous test except unused bits of the destination will * be filled with ones. */ H5Tset_pad(dt, H5T_PAD_ONE, H5T_PAD_ONE); buf[0] = 0xA8; buf[1] = 0x2A; buf[2] = buf[3] = 0; if (H5Tconvert(st, dt, (size_t)1, buf, NULL, H5P_DEFAULT) < 0) goto error; if (buf[0]!=0xff || buf[1]!=0xAB || buf[2]!=0xEA || buf[3]!=0xff) { H5_FAILED(); printf(" s=0x2AA8 d=0x%02x%02x%02x%02x (test 3)\n", buf[3], buf[2], buf[1], buf[0]); goto error; } H5Tclose(st); H5Tclose(dt); PASSED(); reset_hdf5(); return 0; error: H5Tclose(st); H5Tclose(dt); reset_hdf5(); return 1; } /*------------------------------------------------------------------------- * Function: test_bitfield_funcs * * Purpose: Test some datatype functions that are and aren't supposed * work for bitfield type. * * Return: Success: 0 * * Failure: number of errors * * Programmer: Raymond Lu * Wednesday, April 5, 2006 * * Modifications: * *------------------------------------------------------------------------- */ static int test_bitfield_funcs(void) { hid_t type=-1, ntype=-1, super=-1; size_t size; char* tag=0; H5T_pad_t inpad; H5T_cset_t cset; H5T_str_t strpad; herr_t ret; int retval=-1; TESTING("some type functions for bitfield"); /* * First create a bitfield type. */ if((type = H5Tcopy(H5T_STD_B32LE)) < 0) goto error; /* * Offset a 12-byte value in the middle of a 16 and 32 byte * field. Pad unused bits with ones. * ____ ____ __10 1010 1010 10__ ____ ____ */ if(H5Tset_precision(type, (size_t)12) < 0) goto error; if(H5Tset_offset(type, (size_t)10) < 0) goto error; if(H5Tset_pad(type, H5T_PAD_ONE, H5T_PAD_ONE)) goto error; if((size=H5Tget_size(type))==0) goto error; if(H5Tset_order(type, H5T_ORDER_BE) < 0) goto error; if((ntype = H5Tget_native_type(type, H5T_DIR_ASCEND)) < 0) goto error; H5E_BEGIN_TRY { size=H5Tget_ebias(type); } H5E_END_TRY; if (size>0) { H5_FAILED(); printf("Operation not allowed for this type.\n"); goto error; } /* end if */ H5E_BEGIN_TRY { inpad=H5Tget_inpad(type); } H5E_END_TRY; if (inpad>-1) { H5_FAILED(); printf("Operation not allowed for this type.\n"); goto error; } /* end if */ H5E_BEGIN_TRY { cset=H5Tget_cset(type); } H5E_END_TRY; if (cset>-1) { H5_FAILED(); printf("Operation not allowed for this type.\n"); goto error; } /* end if */ H5E_BEGIN_TRY { strpad=H5Tget_strpad(type); } H5E_END_TRY; if (strpad>-1) { H5_FAILED(); printf("Operation not allowed for this type.\n"); goto error; } /* end if */ H5E_BEGIN_TRY { ret=H5Tset_sign(type, H5T_SGN_2); } H5E_END_TRY; if(ret>=0) { H5_FAILED(); printf("Operation not allowed for this type.\n"); goto error; } /* end if */ H5E_BEGIN_TRY { tag = H5Tget_tag(type); } H5E_END_TRY; if (tag) { H5_FAILED(); printf("Operation not allowed for this type.\n"); goto error; } /* end if */ H5E_BEGIN_TRY { super = H5Tget_super(type); } H5E_END_TRY; if (super>=0) { H5_FAILED(); printf("Operation not allowed for this type.\n"); goto error; } /* end if */ retval = 0; error: if (retval == -1) retval = 1; HDfree(tag); H5Tclose(ntype); H5Tclose(type); if (retval == 0) PASSED(); reset_hdf5(); return retval; } /*------------------------------------------------------------------------- * Function: convert_opaque * * Purpose: A fake opaque conversion functions * * Return: Success: 0 * * Failure: -1 * * Programmer: Robb Matzke * Friday, June 4, 1999 * * Modifications: * *------------------------------------------------------------------------- */ static herr_t convert_opaque(hid_t UNUSED st, hid_t UNUSED dt, H5T_cdata_t *cdata, size_t UNUSED nelmts, size_t UNUSED buf_stride, size_t UNUSED bkg_stride, void UNUSED *_buf, void UNUSED *bkg, hid_t UNUSED dset_xfer_plid) { if (H5T_CONV_CONV==cdata->command) num_opaque_conversions_g++; return 0; } /*------------------------------------------------------------------------- * Function: test_opaque * * Purpose: Driver function to test opaque datatypes * * Return: Success: 0 * * Failure: number of errors * * Programmer: Raymond Lu * June 2, 2004 * * Modifications: * *------------------------------------------------------------------------- */ static int test_opaque(void) { int num_errors = 0; TESTING("opaque datatypes"); /* Test opaque types with tags */ num_errors += opaque_check(0); /* Test opaque types without tag */ num_errors += opaque_check(1); /* Test named opaque types with very long tag */ num_errors += opaque_long(); /* Test some type functions with opaque type */ num_errors += opaque_funcs(); if(num_errors) goto error; PASSED(); return 0; error: return num_errors; } /*------------------------------------------------------------------------- * Function: opaque_check * * Purpose: Test opaque datatypes * * Return: Success: 0 * * Failure: number of errors * * Programmer: Robb Matzke * Thursday, May 20, 1999 * *------------------------------------------------------------------------- */ static int opaque_check(int tag_it) { #define OPAQUE_NELMTS 1000 hid_t st=-1, dt=-1; herr_t status; char buf[1]; /*not really used*/ int saved; saved = num_opaque_conversions_g = 0; /* Build source and destination types */ if ((st=H5Tcreate(H5T_OPAQUE, (size_t)4)) < 0) goto error; if (H5Tset_tag(st, "opaque source type") < 0) goto error; if ((dt=H5Tcreate(H5T_OPAQUE, (size_t)4)) < 0) goto error; if (tag_it) { if (H5Tset_tag(dt, "opaque destination type") < 0) goto error; } /* Make sure that we can't convert between the types yet */ H5E_BEGIN_TRY { status = H5Tconvert(st, dt, (size_t)OPAQUE_NELMTS, buf, NULL, H5P_DEFAULT); } H5E_END_TRY; if (status>=0) { H5_FAILED(); printf(" opaque conversion should have failed but succeeded\n"); goto error; } /* Register a conversion function */ if (H5Tregister(H5T_PERS_HARD, "o_test", st, dt, convert_opaque) < 0) goto error; /* Try the conversion again, this time it should work */ if (H5Tconvert(st, dt, (size_t)OPAQUE_NELMTS, buf, NULL, H5P_DEFAULT) < 0) goto error; if (saved+1 != num_opaque_conversions_g) { H5_FAILED(); printf(" unexpected number of opaque conversions\n"); goto error; } /* Unregister conversion function */ if (H5Tunregister(H5T_PERS_HARD, "o_test", st, dt, convert_opaque) < 0) goto error; H5Tclose(st); H5Tclose(dt); return 0; error: if (st>0) H5Tclose(st); if (dt>0) H5Tclose(dt); H5_FAILED(); return 1; } /*------------------------------------------------------------------------- * Function: opaque_long * * Purpose: Test named (committed) opaque datatypes w/very long tags * * Return: Success: 0 * Failure: number of errors * * Programmer: Quincey Koziol * Tuesday, June 14, 2005 * *------------------------------------------------------------------------- */ static int opaque_long(void) { char *long_tag = NULL; hid_t dt = -1; herr_t ret; /* Build opaque type */ if((dt=H5Tcreate(H5T_OPAQUE, (size_t)4)) < 0) TEST_ERROR /* Create long tag */ if(NULL == (long_tag = (char *)HDmalloc((size_t)(16384 + 1)))) TEST_ERROR HDmemset(long_tag, 'a', (size_t)16384); long_tag[16384] = '\0'; /* Set opaque type's tag */ H5E_BEGIN_TRY { ret = H5Tset_tag(dt, long_tag); } H5E_END_TRY; if(ret != FAIL) TEST_ERROR /* Close datatype */ if(H5Tclose(dt) < 0) TEST_ERROR /* Release memory for tag */ HDfree(long_tag); return 0; error: if(dt>0) H5Tclose(dt); if(long_tag) HDfree(long_tag); H5_FAILED(); return 1; } /*------------------------------------------------------------------------- * Function: opaque_funcs * * Purpose: Test some type functions that are and aren't supposed to * work with opaque type. * * Return: Success: 0 * * Failure: number of errors * * Programmer: Raymond Lu * Wednesday, April 5, 2006 * * Modifications: * *------------------------------------------------------------------------- */ static int opaque_funcs(void) { hid_t type = -1, super=-1; size_t size; H5T_pad_t inpad; H5T_cset_t cset; H5T_str_t strpad; H5T_sign_t sign; herr_t ret; /* Build opaque type */ if ((type=H5Tcreate(H5T_OPAQUE, (size_t)4)) < 0) TEST_ERROR if (H5Tset_tag(type, "opaque source type") < 0) TEST_ERROR if ((size=H5Tget_size(type))==0) goto error; H5E_BEGIN_TRY { ret=H5Tset_precision(type, (size_t)32); } H5E_END_TRY; if (ret>=0) { printf("Operation not allowed for this type.\n"); TEST_ERROR } /* end if */ H5E_BEGIN_TRY { ret=H5Tset_pad(type, H5T_PAD_ZERO, H5T_PAD_ONE); } H5E_END_TRY; if (ret>=0) { printf("Operation not allowed for this type.\n"); TEST_ERROR } /* end if */ H5E_BEGIN_TRY { size=H5Tget_ebias(type); } H5E_END_TRY; if (size>0) { printf("Operation not allowed for this type.\n"); TEST_ERROR } /* end if */ H5E_BEGIN_TRY { inpad=H5Tget_inpad(type); } H5E_END_TRY; if (inpad>-1) { printf("Operation not allowed for this type.\n"); TEST_ERROR } /* end if */ H5E_BEGIN_TRY { cset=H5Tget_cset(type); } H5E_END_TRY; if (cset>-1) { printf("Operation not allowed for this type.\n"); TEST_ERROR } /* end if */ H5E_BEGIN_TRY { strpad=H5Tget_strpad(type); } H5E_END_TRY; if (strpad>-1) { printf("Operation not allowed for this type.\n"); TEST_ERROR } /* end if */ H5E_BEGIN_TRY { ret=H5Tset_offset(type, (size_t)16); } H5E_END_TRY; if (ret>=0) { printf("Operation not allowed for this type.\n"); TEST_ERROR } /* end if */ H5E_BEGIN_TRY { sign = H5Tget_sign(type); } H5E_END_TRY; if (sign>-1) { printf("Operation not allowed for this type.\n"); TEST_ERROR } /* end if */ H5E_BEGIN_TRY { super = H5Tget_super(type); } H5E_END_TRY; if (super>=0) { printf("Operation not allowed for this type.\n"); TEST_ERROR } /* end if */ /* Close datatype */ if(H5Tclose(type) < 0) TEST_ERROR return 0; error: if (type>0) H5Tclose(type); return 1; } /*------------------------------------------------------------------------- * Function: test_encode * * Purpose: Tests functions of encoding and decoding datatype. * * Return: Success: 0 * * Failure: number of errors * * Programmer: Raymond Lu * July 14, 2004 * * Modifications: Raymond Lu * July 13, 2009 * Added the test for VL string types. * * Raymond Lu * 17 February 2011 * I added the test of reference count for decoded datatypes. *------------------------------------------------------------------------- */ static int test_encode(void) { struct s1 { int a; float b; long c; double d; }; hid_t file=-1, tid1=-1, tid2=-1, tid3=-1; hid_t decoded_tid1=-1, decoded_tid2=-1, decoded_tid3=-1; char filename[1024]; char compnd_type[]="Compound_type", enum_type[]="Enum_type"; char vlstr_type[]="VLstring_type"; short enum_val; size_t cmpd_buf_size = 0; size_t enum_buf_size = 0; size_t vlstr_buf_size = 0; unsigned char *cmpd_buf=NULL, *enum_buf=NULL, *vlstr_buf=NULL; herr_t ret; TESTING("functions of encoding and decoding datatypes"); /* Create File */ h5_fixname(FILENAME[5], H5P_DEFAULT, filename, sizeof filename); if((file=H5Fcreate(filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) goto error; /*----------------------------------------------------------------------- * Create compound, enumerate, and VL string datatypes *----------------------------------------------------------------------- */ /* Create a compound datatype */ if((tid1=H5Tcreate(H5T_COMPOUND, sizeof(struct s1))) < 0) { H5_FAILED(); printf("Can't create datatype!\n"); goto error; } /* end if */ if(H5Tinsert(tid1, "a", HOFFSET(struct s1, a), H5T_NATIVE_INT) < 0) { H5_FAILED(); printf("Can't insert field 'a'\n"); goto error; } /* end if */ if(H5Tinsert(tid1, "b", HOFFSET(struct s1, b), H5T_NATIVE_FLOAT) < 0) { H5_FAILED(); printf("Can't insert field 'b'\n"); goto error; } /* end if */ if(H5Tinsert(tid1, "c", HOFFSET(struct s1, c), H5T_NATIVE_LONG) < 0) { H5_FAILED(); printf("Can't insert field 'c'\n"); goto error; } /* end if */ if(H5Tinsert(tid1, "d", HOFFSET(struct s1, d), H5T_NATIVE_DOUBLE) < 0) { H5_FAILED(); printf("Can't insert field 'd'\n"); goto error; } /* end if */ /* Create a enumerate datatype */ if((tid2=H5Tcreate(H5T_ENUM, sizeof(short))) < 0) { H5_FAILED(); printf("Can't create enumerate type\n"); goto error; } /* end if */ if(H5Tenum_insert(tid2, "RED", (enum_val=0,&enum_val)) < 0) { H5_FAILED(); printf("Can't insert field into enumeration type\n"); goto error; } /* end if */ if(H5Tenum_insert(tid2, "GREEN", (enum_val=1,&enum_val)) < 0) { H5_FAILED(); printf("Can't insert field into enumeration type\n"); goto error; } /* end if */ if(H5Tenum_insert(tid2, "BLUE", (enum_val=2,&enum_val)) < 0) { H5_FAILED(); printf("Can't insert field into enumeration type\n"); goto error; } /* end if */ if(H5Tenum_insert(tid2, "ORANGE", (enum_val=3,&enum_val)) < 0) { H5_FAILED(); printf("Can't insert field into enumeration type\n"); goto error; } /* end if */ if(H5Tenum_insert(tid2, "YELLOW", (enum_val=4,&enum_val)) < 0) { H5_FAILED(); printf("Can't insert field into enumeration type\n"); goto error; } /* end if */ /* Create a variable-length string type */ if((tid3 = H5Tcopy(H5T_C_S1)) < 0) { H5_FAILED(); printf("Can't copy a string type\n"); goto error; } /* end if */ if(H5Tset_size(tid3, H5T_VARIABLE) < 0) { H5_FAILED(); printf("Can't the string type to be variable-length\n"); goto error; } /* end if */ /*----------------------------------------------------------------------- * Test encoding and decoding compound, enumerate, and VL string datatypes *----------------------------------------------------------------------- */ /* Encode compound type in a buffer */ if(H5Tencode(tid1, NULL, &cmpd_buf_size) < 0) { H5_FAILED(); printf("Can't encode compound type\n"); goto error; } /* end if */ if(cmpd_buf_size>0) cmpd_buf = (unsigned char*)HDcalloc((size_t)1, cmpd_buf_size); /* Try decoding bogus buffer */ H5E_BEGIN_TRY { ret = H5Tdecode(cmpd_buf); } H5E_END_TRY; if(ret!=FAIL) { H5_FAILED(); printf("Decoded bogus buffer!\n"); goto error; } if(H5Tencode(tid1, cmpd_buf, &cmpd_buf_size) < 0) { H5_FAILED(); printf("Can't encode compound type\n"); goto error; } /* end if */ /* Decode from the compound buffer and return an object handle */ if((decoded_tid1 = H5Tdecode(cmpd_buf)) < 0) FAIL_PUTS_ERROR("Can't decode compound type\n") /* Verify that the datatype was copied exactly */ if(H5Tequal(decoded_tid1, tid1)<=0) { H5_FAILED(); printf("Datatype wasn't encoded & decoded identically\n"); goto error; } /* end if */ /* Query member number and member index by name, for compound type. */ if(H5Tget_nmembers(decoded_tid1)!=4) { H5_FAILED(); printf("Can't get member number\n"); goto error; } /* end if */ if(H5Tget_member_index(decoded_tid1, "c")!=2) { H5_FAILED(); printf("Can't get correct index number\n"); goto error; } /* end if */ /* Encode enumerate type in a buffer */ if(H5Tencode(tid2, NULL, &enum_buf_size) < 0) { H5_FAILED(); printf("Can't encode enumerate type\n"); goto error; } /* end if */ if(enum_buf_size>0) enum_buf = (unsigned char*)HDcalloc((size_t)1, enum_buf_size); if(H5Tencode(tid2, enum_buf, &enum_buf_size) < 0) { H5_FAILED(); printf("Can't encode enumerate type\n"); goto error; } /* end if */ /* Decode from the enumerate buffer and return an object handle */ if((decoded_tid2=H5Tdecode(enum_buf)) < 0) { H5_FAILED(); printf("Can't decode enumerate type\n"); goto error; } /* end if */ /* Verify that the datatype was copied exactly */ if(H5Tequal(decoded_tid2, tid2)<=0) { H5_FAILED(); printf("Datatype wasn't encoded & decoded identically\n"); goto error; } /* end if */ /* Query member number and member index by name, for enumeration type. */ if(H5Tget_nmembers(decoded_tid2)!=5) { H5_FAILED(); printf("Can't get member number\n"); goto error; } /* end if */ if(H5Tget_member_index(decoded_tid2, "ORANGE") != 3) { H5_FAILED(); printf("Can't get correct index number\n"); goto error; } /* end if */ /* Encode VL string type in a buffer */ if(H5Tencode(tid3, NULL, &vlstr_buf_size) < 0) { H5_FAILED(); printf("Can't encode VL string type\n"); goto error; } /* end if */ if(vlstr_buf_size>0) vlstr_buf = (unsigned char*)HDcalloc((size_t)1, vlstr_buf_size); if(H5Tencode(tid3, vlstr_buf, &vlstr_buf_size) < 0) { H5_FAILED(); printf("Can't encode VL string type\n"); goto error; } /* end if */ /* Decode from the VL string buffer and return an object handle */ if((decoded_tid3=H5Tdecode(vlstr_buf)) < 0) { H5_FAILED(); printf("Can't decode VL string type\n"); goto error; } /* end if */ /* Verify that the datatype was copied exactly */ if(H5Tequal(decoded_tid3, tid3)<=0) { H5_FAILED(); printf("Datatype wasn't encoded & decoded identically\n"); goto error; } /* end if */ if(!H5Tis_variable_str(decoded_tid3)) { H5_FAILED(); printf("Datatype wasn't encoded & decoded identically\n"); goto error; } /* end if */ /*----------------------------------------------------------------------- * Commit and reopen the compound, enumerate, VL string datatypes *----------------------------------------------------------------------- */ /* Commit compound datatype and close it */ if(H5Tcommit2(file, compnd_type, tid1, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); printf("Can't commit compound datatype\n"); goto error; } /* end if */ if(H5Tclose(tid1) < 0) { H5_FAILED(); printf("Can't close datatype\n"); goto error; } /* end if */ if(H5Tclose(decoded_tid1) < 0) { H5_FAILED(); printf("Can't close datatype\n"); goto error; } /* end if */ free(cmpd_buf); cmpd_buf_size = 0; /* Commit enumeration datatype and close it */ if(H5Tcommit2(file, enum_type, tid2, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); printf("Can't commit compound datatype\n"); goto error; } /* end if */ if(H5Tclose(tid2) < 0) { H5_FAILED(); printf("Can't close datatype\n"); goto error; } /* end if */ if(H5Tclose(decoded_tid2) < 0) { H5_FAILED(); printf("Can't close datatype\n"); goto error; } /* end if */ free(enum_buf); enum_buf_size = 0; /* Commit enumeration datatype and close it */ if(H5Tcommit2(file, vlstr_type, tid3, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) < 0) { H5_FAILED(); printf("Can't commit vl string datatype\n"); goto error; } /* end if */ if(H5Tclose(tid3) < 0) { H5_FAILED(); printf("Can't close datatype\n"); goto error; } /* end if */ if(H5Tclose(decoded_tid3) < 0) { H5_FAILED(); printf("Can't close datatype\n"); goto error; } /* end if */ free(vlstr_buf); vlstr_buf_size = 0; /* Open the dataytpe for query */ if((tid1 = H5Topen2(file, compnd_type, H5P_DEFAULT)) < 0) FAIL_STACK_ERROR if((tid2 = H5Topen2(file, enum_type, H5P_DEFAULT)) < 0) FAIL_STACK_ERROR if((tid3 = H5Topen2(file, vlstr_type, H5P_DEFAULT)) < 0) FAIL_STACK_ERROR /*----------------------------------------------------------------------- * Test encoding and decoding compound, enumerate, and vl string datatypes *----------------------------------------------------------------------- */ /* Encode compound type in a buffer */ if(H5Tencode(tid1, NULL, &cmpd_buf_size) < 0) { H5_FAILED(); printf("Can't encode compound type\n"); goto error; } /* end if */ if(cmpd_buf_size>0) cmpd_buf = (unsigned char*)HDcalloc((size_t)1, cmpd_buf_size); if(H5Tencode(tid1, cmpd_buf, &cmpd_buf_size) < 0) { H5_FAILED(); printf("Can't encode compound type\n"); goto error; } /* end if */ /* Decode from the compound buffer and return an object handle */ if((decoded_tid1 = H5Tdecode(cmpd_buf)) < 0) FAIL_PUTS_ERROR("Can't decode compound type\n") /* Verify that the datatype was copied exactly */ if(H5Tequal(decoded_tid1, tid1)<=0) { H5_FAILED(); printf("Datatype wasn't encoded & decoded identically\n"); goto error; } /* end if */ /* Query member number and member index by name, for compound type. */ if(H5Tget_nmembers(decoded_tid1)!=4) { H5_FAILED(); printf("Can't get member number\n"); goto error; } /* end if */ if(H5Tget_member_index(decoded_tid1, "c")!=2) { H5_FAILED(); printf("Can't get correct index number\n"); goto error; } /* end if */ /* Encode enumerate type in a buffer */ if(H5Tencode(tid2, NULL, &enum_buf_size) < 0) { H5_FAILED(); printf("Can't encode enumerate type\n"); goto error; } /* end if */ if(enum_buf_size>0) enum_buf = (unsigned char*)HDcalloc((size_t)1, enum_buf_size); if(H5Tencode(tid2, enum_buf, &enum_buf_size) < 0) { H5_FAILED(); printf("Can't encode enumerate type\n"); goto error; } /* end if */ /* Decode from the enumerate buffer and return an object handle */ if((decoded_tid2=H5Tdecode(enum_buf)) < 0) { H5_FAILED(); printf("Can't decode enumerate type\n"); goto error; } /* end if */ /* Verify that the datatype was copied exactly */ if(H5Tequal(decoded_tid2, tid2)<=0) { H5_FAILED(); printf("Datatype wasn't encoded & decoded identically\n"); goto error; } /* end if */ /* Query member number and member index by name, for enumeration type. */ if(H5Tget_nmembers(decoded_tid2)!=5) { H5_FAILED(); printf("Can't get member number\n"); goto error; } /* end if */ if(H5Tget_member_index(decoded_tid2, "ORANGE")!=3) { H5_FAILED(); printf("Can't get correct index number\n"); goto error; } /* end if */ /* Encode VL string type in a buffer */ if(H5Tencode(tid3, NULL, &vlstr_buf_size) < 0) { H5_FAILED(); printf("Can't encode VL string type\n"); goto error; } /* end if */ if(vlstr_buf_size > 0) vlstr_buf = (unsigned char*)HDcalloc((size_t)1, vlstr_buf_size); if(H5Tencode(tid3, vlstr_buf, &vlstr_buf_size) < 0) { H5_FAILED(); printf("Can't encode VL string type\n"); goto error; } /* end if */ /* Decode from the VL string buffer and return an object handle */ if((decoded_tid3=H5Tdecode(vlstr_buf)) < 0) { H5_FAILED(); printf("Can't decode VL string type\n"); goto error; } /* end if */ free(vlstr_buf); /* Verify that the datatype was copied exactly */ if(H5Tequal(decoded_tid3, tid3)<=0) { H5_FAILED(); printf("Datatype wasn't encoded & decoded identically\n"); goto error; } /* end if */ if(!H5Tis_variable_str(decoded_tid3)) { H5_FAILED(); printf("Datatype wasn't encoded & decoded identically\n"); goto error; } /* end if */ /*----------------------------------------------------------------------- * Test the reference count of the decoded datatypes *----------------------------------------------------------------------- */ /* Make sure the reference counts for the decoded datatypes are one. */ if(H5Iget_ref(decoded_tid1) != 1) { H5_FAILED(); printf("Decoded datatype has incorrect reference count\n"); goto error; } /* end if */ if(H5Iget_ref(decoded_tid2) != 1) { H5_FAILED(); printf("Decoded datatype has incorrect reference count\n"); goto error; } /* end if */ if(H5Iget_ref(decoded_tid3) != 1) { H5_FAILED(); printf("Decoded datatype has incorrect reference count\n"); goto error; } /* end if */ /* Make sure the reference counts for the decoded datatypes can be * decremented and the datatypes are closed. */ if(H5Idec_ref(decoded_tid1) != 0) { H5_FAILED(); printf("Decoded datatype can't close\n"); goto error; } /* end if */ if(H5Idec_ref(decoded_tid2) != 0) { H5_FAILED(); printf("Decoded datatype can't close\n"); goto error; } /* end if */ if(H5Idec_ref(decoded_tid3) != 0) { H5_FAILED(); printf("Decoded datatype can't close\n"); goto error; } /* end if */ /* Make sure the decoded datatypes are already closed. */ H5E_BEGIN_TRY { ret = H5Tclose(decoded_tid1); } H5E_END_TRY; if(ret!=FAIL) { H5_FAILED(); printf("Decoded datatype should have been closed\n"); goto error; } H5E_BEGIN_TRY { ret = H5Tclose(decoded_tid2); } H5E_END_TRY; if(ret!=FAIL) { H5_FAILED(); printf("Decoded datatype should have been closed\n"); goto error; } H5E_BEGIN_TRY { ret = H5Tclose(decoded_tid3); } H5E_END_TRY; if(ret!=FAIL) { H5_FAILED(); printf("Decoded datatype should have been closed\n"); goto error; } /*----------------------------------------------------------------------- * Close and release *----------------------------------------------------------------------- */ /* Close datatype and file */ if(H5Tclose(tid1) < 0) { H5_FAILED(); printf("Can't close datatype\n"); goto error; } /* end if */ if(H5Tclose(tid2) < 0) { H5_FAILED(); printf("Can't close datatype\n"); goto error; } /* end if */ if(H5Tclose(tid3) < 0) { H5_FAILED(); printf("Can't close datatype\n"); goto error; } /* end if */ if(H5Fclose(file) < 0) { H5_FAILED(); printf("Can't close file\n"); goto error; } /* end if */ free(cmpd_buf); free(enum_buf); PASSED(); return 0; error: H5E_BEGIN_TRY { H5Tclose (tid1); H5Tclose (tid2); H5Tclose (tid3); H5Tclose (decoded_tid1); H5Tclose (decoded_tid2); H5Tclose (decoded_tid3); H5Fclose (file); } H5E_END_TRY; return 1; } /*------------------------------------------------------------------------- * Function: test_latest * * Purpose: Test encoding datatypes with the "use the latest version of * the file format" flag turned on. * * Return: Success: 0 * Failure: number of errors * * Programmer: Quincey Koziol * October 2, 2006 * *------------------------------------------------------------------------- */ static int test_latest(void) { struct s1 { int a; float b; long c; double d; }; hid_t file = (-1); /* File ID */ hid_t tid1 = (-1), tid2 = (-1); /* Datatype ID */ hid_t fapl = (-1); /* File access property list */ H5O_info_t oi; /* Stat buffer for committed datatype */ hsize_t old_dtype_oh_size; /* Size of object header with "old" format */ hsize_t new_dtype_oh_size; /* Size of object header with "new" format */ char filename[1024]; /* Buffer for filename */ const char compnd_type[] = "Compound_type"; /* Name of committed datatype */ TESTING("encoding datatypes with the 'use the latest format' flag"); /* Create a compound datatype */ if((tid1 = H5Tcreate(H5T_COMPOUND, sizeof(struct s1))) < 0) FAIL_STACK_ERROR if(H5Tinsert(tid1, "a", HOFFSET(struct s1, a), H5T_NATIVE_INT) < 0) FAIL_STACK_ERROR if(H5Tinsert(tid1, "b", HOFFSET(struct s1, b), H5T_NATIVE_FLOAT) < 0) FAIL_STACK_ERROR if(H5Tinsert(tid1, "c", HOFFSET(struct s1, c), H5T_NATIVE_LONG) < 0) FAIL_STACK_ERROR if(H5Tinsert(tid1, "d", HOFFSET(struct s1, d), H5T_NATIVE_DOUBLE) < 0) FAIL_STACK_ERROR /* Create file using default FAPL */ h5_fixname(FILENAME[5], H5P_DEFAULT, filename, sizeof filename); if((file = H5Fcreate(filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) FAIL_STACK_ERROR /* Make a copy of the datatype, to commit */ if((tid2 = H5Tcopy(tid1)) < 0) FAIL_STACK_ERROR /* Commit compound datatype */ if(H5Tcommit2(file, compnd_type, tid2, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) < 0) FAIL_STACK_ERROR /* Get information about datatype on disk */ if(H5Oget_info_by_name(file, compnd_type, &oi, H5P_DEFAULT) < 0) FAIL_STACK_ERROR old_dtype_oh_size = oi.hdr.space.total; /* Close datatype */ if(H5Tclose(tid2) < 0) FAIL_STACK_ERROR /* Close file */ if(H5Fclose(file) < 0) FAIL_STACK_ERROR /* Check that datatype has been encoded/decoded correctly */ if((file = H5Fopen(filename, H5F_ACC_RDONLY, H5P_DEFAULT)) < 0) FAIL_STACK_ERROR /* Open the dataytpe for query */ if((tid2 = H5Topen2(file, compnd_type, H5P_DEFAULT)) < 0) FAIL_STACK_ERROR /* Verify that the datatype was encoded/decoded correctly */ if(H5Tequal(tid1, tid2) <= 0) FAIL_STACK_ERROR /* Get information about datatype on disk */ if(H5Oget_info_by_name(file, compnd_type, &oi, H5P_DEFAULT) < 0) FAIL_STACK_ERROR /* Check that the object header info is still the same */ if(old_dtype_oh_size != oi.hdr.space.total) TEST_ERROR /* Close datatype */ if(H5Tclose(tid2) < 0) FAIL_STACK_ERROR /* Close file */ if(H5Fclose(file) < 0) FAIL_STACK_ERROR /* Set the 'use the latest format' bounds in the FAPL */ if((fapl = H5Pcreate(H5P_FILE_ACCESS)) < 0) FAIL_STACK_ERROR if(H5Pset_libver_bounds(fapl, H5F_LIBVER_LATEST, H5F_LIBVER_LATEST) < 0) FAIL_STACK_ERROR /* Create file using default FAPL */ h5_fixname(FILENAME[5], fapl, filename, sizeof filename); if((file = H5Fcreate(filename, H5F_ACC_TRUNC, H5P_DEFAULT, fapl)) < 0) FAIL_STACK_ERROR /* Make a copy of the datatype, to commit */ if((tid2 = H5Tcopy(tid1)) < 0) FAIL_STACK_ERROR /* Commit compound datatype */ if(H5Tcommit2(file, compnd_type, tid2, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) < 0) FAIL_STACK_ERROR /* Get information about datatype on disk */ if(H5Oget_info_by_name(file, compnd_type, &oi, H5P_DEFAULT) < 0) FAIL_STACK_ERROR new_dtype_oh_size = oi.hdr.space.total; /* Check that the new format is smaller than the old format */ if(old_dtype_oh_size <= new_dtype_oh_size) TEST_ERROR /* Close datatype */ if(H5Tclose(tid2) < 0) FAIL_STACK_ERROR /* Close file */ if(H5Fclose(file) < 0) FAIL_STACK_ERROR /* Check that datatype has been encoded/decoded correctly */ if((file = H5Fopen(filename, H5F_ACC_RDONLY, fapl)) < 0) FAIL_STACK_ERROR /* Open the dataytpe for query */ if((tid2 = H5Topen2(file, compnd_type, H5P_DEFAULT)) < 0) FAIL_STACK_ERROR /* Verify that the datatype was encoded/decoded correctly */ if(H5Tequal(tid1, tid2) <= 0) FAIL_STACK_ERROR /* Get information about datatype on disk */ if(H5Oget_info_by_name(file, compnd_type, &oi, H5P_DEFAULT) < 0) FAIL_STACK_ERROR /* Check that the object header info is still the same */ if(new_dtype_oh_size != oi.hdr.space.total) TEST_ERROR /* Close datatype */ if(H5Tclose(tid2) < 0) FAIL_STACK_ERROR /* Close file */ if(H5Fclose(file) < 0) FAIL_STACK_ERROR /* Close FAPL */ if(H5Pclose(fapl) < 0) FAIL_STACK_ERROR /* Close datatype */ if(H5Tclose(tid1) < 0) FAIL_STACK_ERROR PASSED(); return 0; error: H5E_BEGIN_TRY { H5Tclose(tid2); H5Tclose(tid1); H5Fclose(file); H5Pclose(fapl); } H5E_END_TRY; return 1; } /* end test_latest() */ typedef struct { unsigned num_range_hi; /* Number of H5T_CONV_EXCEPT_RANGE_HI exceptions seen */ unsigned num_range_low; /* Number of H5T_CONV_EXCEPT_RANGE_LOW exceptions seen */ unsigned num_precision; /* Number of H5T_CONV_EXCEPT_PRECISION exceptions seen */ unsigned num_truncate; /* Number of H5T_CONV_EXCEPT_TRUNCATE exceptions seen */ unsigned num_other; /* Number of other exceptions seen */ } except_info_t; static H5T_conv_ret_t conv_except(H5T_conv_except_t except_type, hid_t UNUSED src_id, hid_t UNUSED dst_id, void UNUSED *src_buf, void UNUSED *dst_buf, void *_user_data) { except_info_t *user_data = (except_info_t *)_user_data; if(except_type == H5T_CONV_EXCEPT_RANGE_HI) user_data->num_range_hi++; else if(except_type == H5T_CONV_EXCEPT_RANGE_LOW) user_data->num_range_low++; else if(except_type == H5T_CONV_EXCEPT_PRECISION) user_data->num_precision++; else if(except_type == H5T_CONV_EXCEPT_TRUNCATE) user_data->num_truncate++; else user_data->num_other++; return(H5T_CONV_UNHANDLED); } /*------------------------------------------------------------------------- * Function: test_int_float_except * * Purpose: Tests exception handling behavior of int <-> float * conversions. * * Return: Success: 0 * * Failure: number of errors * * Programmer: Quincey Koziol * August 18, 2005 * * Notes: This routine is pretty specific to 4 byte integers and 4 byte * floats and I can't think of a particularly good way to * make it portable to other architectures, but further * input and changes are welcome. -QAK * * Modifications: * *------------------------------------------------------------------------- */ static int test_int_float_except(void) { #if H5_SIZEOF_INT==4 && H5_SIZEOF_FLOAT==4 float buf[CONVERT_SIZE] = {(float)INT_MIN - 172.0f, (float)INT_MAX - 32.0f, (float)INT_MAX - 68.0f, (float)4.5f}; int buf_int[CONVERT_SIZE] = {INT_MIN, INT_MAX, INT_MAX-127, 4}; float buf_float[CONVERT_SIZE] = {(float)INT_MIN, (float)INT_MAX + 1.0f, (float)INT_MAX - 127.0f, 4}; int *intp; /* Pointer to buffer, as integers */ int buf2[CONVERT_SIZE] = {INT_MIN, INT_MAX, INT_MAX - 72, 0}; float buf2_float[CONVERT_SIZE] = {(float)INT_MIN, (float)INT_MAX, (float)INT_MAX - 127.0f, (float)0.0f}; int buf2_int[CONVERT_SIZE] = {INT_MIN, INT_MAX, INT_MAX - 127, 0}; float *floatp; /* Pointer to buffer #2, as floats */ hid_t dxpl; /* Dataset transfer property list */ except_info_t e; /* Exception information */ unsigned u; /* Local index variables */ #endif /* H5_SIZEOF_INT==4 && H5_SIZEOF_FLOAT==4 */ TESTING("exceptions for int <-> float conversions"); #if H5_SIZEOF_INT==4 && H5_SIZEOF_FLOAT==4 /* Create dataset transfer property list */ if((dxpl = H5Pcreate(H5P_DATASET_XFER) ) < 0) TEST_ERROR /* Set the conversion exception handler in the DXPL */ if(H5Pset_type_conv_cb(dxpl, conv_except, &e) < 0) TEST_ERROR /* Convert buffer */ HDmemset(&e, 0, sizeof(except_info_t)); if(H5Tconvert(H5T_NATIVE_FLOAT, H5T_NATIVE_INT, (size_t)CONVERT_SIZE, buf, NULL, dxpl) < 0) TEST_ERROR /* Check the buffer after conversion, as integers */ for(u = 0; u < CONVERT_SIZE; u++) { intp = (int *)&buf[u]; if(*intp != buf_int[u]) TEST_ERROR } /* end for */ /* Check for proper exceptions */ if(e.num_range_hi != 1) TEST_ERROR if(e.num_range_low != 1) TEST_ERROR if(e.num_precision != 0) TEST_ERROR if(e.num_truncate != 1) TEST_ERROR if(e.num_other != 0) TEST_ERROR /* Convert buffer */ HDmemset(&e, 0, sizeof(except_info_t)); if(H5Tconvert(H5T_NATIVE_INT, H5T_NATIVE_FLOAT, (size_t)CONVERT_SIZE, buf, NULL, dxpl) < 0) TEST_ERROR /* Check the buffer after conversion, as floats */ for(u = 0; u < CONVERT_SIZE; u++) { floatp = (float *)&buf[u]; if(*floatp != buf_float[u]) TEST_ERROR } /* end for */ /* Check for proper exceptions */ if(e.num_range_hi != 0) TEST_ERROR if(e.num_range_low != 0) TEST_ERROR if(e.num_precision != 1) TEST_ERROR if(e.num_truncate != 0) TEST_ERROR if(e.num_other != 0) TEST_ERROR /* Work on second buffer */ /* Convert second buffer */ HDmemset(&e, 0, sizeof(except_info_t)); if(H5Tconvert(H5T_NATIVE_INT, H5T_NATIVE_FLOAT, (size_t)CONVERT_SIZE, buf2, NULL, dxpl) < 0) TEST_ERROR /* Check the buffer after conversion, as floats */ for(u = 0; u < CONVERT_SIZE; u++) { floatp = (float *)&buf2[u]; if(*floatp != buf2_float[u]) TEST_ERROR } /* end for */ /* Check for proper exceptions */ if(e.num_range_hi != 0) TEST_ERROR if(e.num_range_low != 0) TEST_ERROR if(e.num_precision != 2) TEST_ERROR if(e.num_truncate != 0) TEST_ERROR if(e.num_other != 0) TEST_ERROR /* Convert buffer */ HDmemset(&e, 0, sizeof(except_info_t)); if(H5Tconvert(H5T_NATIVE_FLOAT, H5T_NATIVE_INT, (size_t)CONVERT_SIZE, buf2, NULL, dxpl) < 0) TEST_ERROR /* Check the buffer after conversion, as integers */ for(u = 0; u < CONVERT_SIZE; u++) { intp = (int *)&buf2[u]; if(*intp != buf2_int[u]) TEST_ERROR } /* end for */ /* Check for proper exceptions */ if(e.num_range_hi != 1) TEST_ERROR if(e.num_range_low != 0) TEST_ERROR if(e.num_precision != 0) TEST_ERROR if(e.num_truncate != 0) TEST_ERROR if(e.num_other != 0) TEST_ERROR /* Close DXPL */ if(H5Pclose(dxpl) < 0) TEST_ERROR PASSED(); #else /* H5_SIZEOF_INT==4 && H5_SIZEOF_FLOAT==4 */ SKIPPED(); HDputs(" Test skipped due to int or float not 4 bytes."); #endif /* H5_SIZEOF_INT==4 && H5_SIZEOF_FLOAT==4 */ return 0; #if H5_SIZEOF_INT==4 && H5_SIZEOF_FLOAT==4 error: H5E_BEGIN_TRY { H5Pclose (dxpl); } H5E_END_TRY; return 1; #endif /* H5_SIZEOF_INT==4 && H5_SIZEOF_FLOAT==4 */ } /* end test_int_float_except() */ /*------------------------------------------------------------------------- * Function: test_set_order * * Purpose: Tests H5Tset_order/H5Tget_order. Verifies that * H5T_ORDER_NONE cannot be set. * * Return: Success: 0 * Failure: number of errors * * Programmer: Neil Fortner * January 23, 2009 * *------------------------------------------------------------------------- */ static int test_set_order(void) { hid_t dtype; /* Datatype ID */ H5T_order_t order; /* Byte order */ hsize_t dims[2] = {3, 4}; /* Array dimenstions */ herr_t ret; /* Generic return value */ TESTING("H5Tset/get_order"); /* Integer */ if ((dtype = H5Tcopy(H5T_STD_I32BE)) < 0) TEST_ERROR if (H5T_ORDER_BE != H5Tget_order(dtype)) TEST_ERROR; H5E_BEGIN_TRY ret = H5Tset_order(dtype, H5T_ORDER_NONE); H5E_END_TRY if (ret >= 0) TEST_ERROR if (H5Tset_order(dtype, H5T_ORDER_LE) < 0) TEST_ERROR if (H5T_ORDER_LE != H5Tget_order(dtype)) TEST_ERROR; if (H5Tclose(dtype) < 0) TEST_ERROR /* Float */ if ((dtype = H5Tcopy(H5T_IEEE_F64LE)) < 0) TEST_ERROR if (H5T_ORDER_LE != H5Tget_order(dtype)) TEST_ERROR; H5E_BEGIN_TRY ret = H5Tset_order(dtype, H5T_ORDER_NONE); H5E_END_TRY if (ret >= 0) TEST_ERROR if (H5Tset_order(dtype, H5T_ORDER_BE) < 0) TEST_ERROR if (H5T_ORDER_BE != H5Tget_order(dtype)) TEST_ERROR; if (H5Tclose(dtype) < 0) TEST_ERROR /* Time */ if ((dtype = H5Tcopy(H5T_UNIX_D64BE)) < 0) TEST_ERROR if (H5T_ORDER_BE != H5Tget_order(dtype)) TEST_ERROR; H5E_BEGIN_TRY ret = H5Tset_order(dtype, H5T_ORDER_NONE); H5E_END_TRY if (ret >= 0) TEST_ERROR if (H5Tset_order(dtype, H5T_ORDER_LE) < 0) TEST_ERROR if (H5T_ORDER_LE != H5Tget_order(dtype)) TEST_ERROR; if (H5Tclose(dtype) < 0) TEST_ERROR /* Fixed length string */ if ((dtype = H5Tcopy(H5T_C_S1)) < 0) TEST_ERROR if (H5Tset_size(dtype, (size_t)5) < 0) TEST_ERROR if (H5T_ORDER_NONE != H5Tget_order(dtype)) TEST_ERROR; if (H5Tset_order(dtype, H5T_ORDER_NONE) < 0) TEST_ERROR; if (H5T_ORDER_NONE != H5Tget_order(dtype)) TEST_ERROR; /* Variable length string */ if (H5Tset_size(dtype, H5T_VARIABLE) < 0) TEST_ERROR H5E_BEGIN_TRY ret = H5Tset_order(dtype, H5T_ORDER_NONE); H5E_END_TRY if (ret >= 0) TEST_ERROR if (H5Tset_order(dtype, H5T_ORDER_BE) < 0) TEST_ERROR if (H5T_ORDER_BE != H5Tget_order(dtype)) TEST_ERROR; if (H5Tclose(dtype) < 0) TEST_ERROR /* Bitfield */ if ((dtype = H5Tcopy(H5T_STD_B16LE)) < 0) TEST_ERROR if (H5T_ORDER_LE != H5Tget_order(dtype)) TEST_ERROR; H5E_BEGIN_TRY ret = H5Tset_order(dtype, H5T_ORDER_NONE); H5E_END_TRY if (ret >= 0) TEST_ERROR if (H5Tset_order(dtype, H5T_ORDER_BE) < 0) TEST_ERROR if (H5T_ORDER_BE != H5Tget_order(dtype)) TEST_ERROR; if (H5Tclose(dtype) < 0) TEST_ERROR /* Opaque - No effect on the order */ if ((dtype = H5Tcreate(H5T_OPAQUE, (size_t)96)) < 0) TEST_ERROR if (H5T_ORDER_NONE != H5Tget_order(dtype)) TEST_ERROR; if (H5Tset_order(dtype, H5T_ORDER_NONE) < 0) TEST_ERROR if (H5Tset_order(dtype, H5T_ORDER_BE) < 0) TEST_ERROR if (H5T_ORDER_NONE != H5Tget_order(dtype)) TEST_ERROR; if (H5Tclose(dtype) < 0) TEST_ERROR /* Compound */ if ((dtype = H5Tcreate(H5T_COMPOUND, (size_t)48)) < 0) TEST_ERROR H5E_BEGIN_TRY ret = H5Tset_order(dtype, H5T_ORDER_BE); H5E_END_TRY if (ret >= 0) TEST_ERROR if ((order = H5Tget_order(dtype)) == H5T_ORDER_ERROR) TEST_ERROR if (order != H5T_ORDER_NONE) TEST_ERROR if (H5Tclose(dtype) < 0) TEST_ERROR /* Object reference */ if ((dtype = H5Tcopy(H5T_STD_REF_OBJ)) < 0) TEST_ERROR if (H5T_ORDER_NONE != H5Tget_order(dtype)) TEST_ERROR; if (H5Tset_order(dtype, H5T_ORDER_NONE) < 0) TEST_ERROR; if (H5T_ORDER_NONE != H5Tget_order(dtype)) TEST_ERROR; if (H5Tclose(dtype) < 0) TEST_ERROR /* Region reference */ if ((dtype = H5Tcopy(H5T_STD_REF_DSETREG)) < 0) TEST_ERROR if (H5T_ORDER_NONE != H5Tget_order(dtype)) TEST_ERROR; if (H5Tset_order(dtype, H5T_ORDER_NONE) < 0) TEST_ERROR; if (H5T_ORDER_NONE != H5Tget_order(dtype)) TEST_ERROR; if (H5Tclose(dtype) < 0) TEST_ERROR /* Enum */ if ((dtype = H5Tenum_create(H5T_STD_I16BE)) < 0) TEST_ERROR if (H5T_ORDER_BE != H5Tget_order(dtype)) TEST_ERROR; H5E_BEGIN_TRY ret = H5Tset_order(dtype, H5T_ORDER_NONE); H5E_END_TRY if (ret >= 0) TEST_ERROR if (H5Tset_order(dtype, H5T_ORDER_LE) < 0) TEST_ERROR if (H5T_ORDER_LE != H5Tget_order(dtype)) TEST_ERROR; if (H5Tclose(dtype) < 0) TEST_ERROR /* Vlen */ if ((dtype = H5Tvlen_create(H5T_STD_U64LE)) < 0) TEST_ERROR if (H5T_ORDER_LE != H5Tget_order(dtype)) TEST_ERROR; H5E_BEGIN_TRY ret = H5Tset_order(dtype, H5T_ORDER_NONE); H5E_END_TRY if (ret >= 0) TEST_ERROR if (H5Tset_order(dtype, H5T_ORDER_BE) < 0) TEST_ERROR if (H5T_ORDER_BE != H5Tget_order(dtype)) TEST_ERROR; if (H5Tclose(dtype) < 0) TEST_ERROR /* Array */ if ((dtype = H5Tarray_create2(H5T_IEEE_F64BE, 2, dims)) < 0) TEST_ERROR if (H5T_ORDER_BE != H5Tget_order(dtype)) TEST_ERROR; H5E_BEGIN_TRY ret = H5Tset_order(dtype, H5T_ORDER_NONE); H5E_END_TRY if (ret >= 0) TEST_ERROR if (H5Tset_order(dtype, H5T_ORDER_LE) < 0) TEST_ERROR if (H5T_ORDER_LE != H5Tget_order(dtype)) TEST_ERROR; if (H5Tclose(dtype) < 0) TEST_ERROR PASSED(); return 0; error: H5E_BEGIN_TRY H5Tclose (dtype); H5E_END_TRY; return 1; } /* end test_set_order() */ /*------------------------------------------------------------------------- * Function: test_set_order_compound * * Purpose: Tests H5Tset_order/H5Tget_order for complicated compound * type. * * Return: Success: 0 * Failure: number of errors * * Programmer: Raymond Lu * 18 August 2010 * *------------------------------------------------------------------------- */ static int test_set_order_compound(hid_t fapl) { typedef struct { /* Struct with atomic fields */ int i; char c; short s; float f; } atomic_cmpd; typedef struct { /* Struct with complex fields */ atomic_cmpd a; hvl_t vl; double b[3][4]; atomic_cmpd d[3][4]; } complex_cmpd; hid_t file = -1; hid_t cmpd = -1, memb_cmpd = -1, memb_array1 = -1, memb_array2 = -1, cmpd_array = -1; hid_t vl_id = -1; hsize_t dims[2] = {3, 4}; /* Array dimenstions */ char filename[1024]; herr_t ret; /* Generic return value */ TESTING("H5Tset/get_order for compound type"); if((memb_cmpd = H5Tcreate(H5T_COMPOUND, sizeof(atomic_cmpd))) < 0) FAIL_STACK_ERROR if(H5Tinsert(memb_cmpd, "i", HOFFSET(atomic_cmpd, i), H5T_NATIVE_INT) < 0) FAIL_STACK_ERROR if(H5Tinsert(memb_cmpd, "c", HOFFSET(atomic_cmpd, c), H5T_NATIVE_CHAR) < 0) FAIL_STACK_ERROR if(H5Tinsert(memb_cmpd, "s", HOFFSET(atomic_cmpd, s), H5T_NATIVE_SHORT) < 0) FAIL_STACK_ERROR if(H5Tinsert(memb_cmpd, "f", HOFFSET(atomic_cmpd, f), H5T_NATIVE_FLOAT) < 0) FAIL_STACK_ERROR /* Set the order to little-endian. */ if(H5Tset_order(memb_cmpd, H5T_ORDER_BE) < 0) FAIL_STACK_ERROR /* Create the array datatypes */ memb_array1 = H5Tarray_create2(H5T_NATIVE_DOUBLE, 2, dims); memb_array2 = H5Tarray_create2(memb_cmpd, 2, dims); /* Set the order to big-endian. */ if(H5Tset_order(memb_array1, H5T_ORDER_LE) < 0) FAIL_STACK_ERROR /* Create a variable-length datatype */ if((vl_id = H5Tvlen_create(H5T_NATIVE_UINT)) < 0) FAIL_STACK_ERROR /* Create a compound type using the types above. */ if((cmpd = H5Tcreate(H5T_COMPOUND, sizeof(complex_cmpd))) < 0) FAIL_STACK_ERROR if(H5Tinsert(cmpd, "a", HOFFSET(complex_cmpd, a), memb_cmpd) < 0) FAIL_STACK_ERROR if(H5Tinsert(cmpd, "vl_type", HOFFSET(complex_cmpd, vl), vl_id) < 0) FAIL_STACK_ERROR if(H5Tinsert(cmpd, "b", HOFFSET(complex_cmpd, b), memb_array1) < 0) FAIL_STACK_ERROR if(H5Tinsert(cmpd, "d", HOFFSET(complex_cmpd, d), memb_array2) < 0) FAIL_STACK_ERROR /* The order should be mixed now. */ if(H5Tget_order(cmpd) != H5T_ORDER_MIXED) FAIL_STACK_ERROR /* Create an array of the compound type above */ cmpd_array = H5Tarray_create2(cmpd, 2, dims); /* The order of the array type should be the same as the compound type */ if(H5Tget_order(cmpd_array) != H5T_ORDER_MIXED) FAIL_STACK_ERROR /* Verify that the order can't be 'none'. */ H5E_BEGIN_TRY ret = H5Tset_order(cmpd, H5T_ORDER_NONE); H5E_END_TRY if(ret >= 0) TEST_ERROR /* Verify that the order can't be 'mixed'. */ H5E_BEGIN_TRY ret = H5Tset_order(cmpd, H5T_ORDER_MIXED); H5E_END_TRY if(ret >= 0) TEST_ERROR /* Change the order of the compound type to big-endian*/ if(H5Tset_order(cmpd, H5T_ORDER_BE) < 0) FAIL_STACK_ERROR /* Verify that the order of the compound type is big-endian */ if(H5Tget_order(cmpd) != H5T_ORDER_BE) FAIL_STACK_ERROR /* Change the order of the array type to little-endian*/ if(H5Tset_order(cmpd_array, H5T_ORDER_LE) < 0) FAIL_STACK_ERROR /* Verify that the order of the array type is little-endian */ if(H5Tget_order(cmpd_array) != H5T_ORDER_LE) FAIL_STACK_ERROR /* Create file */ h5_fixname(FILENAME[1], fapl, filename, sizeof filename); if((file = H5Fcreate(filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) FAIL_STACK_ERROR /* Commit the data type */ if(H5Tcommit2(file, "compound", cmpd, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) < 0) FAIL_STACK_ERROR /* Verify that committed type can't change order */ H5E_BEGIN_TRY ret = H5Tset_order(cmpd, H5T_ORDER_LE); H5E_END_TRY if(ret >= 0) TEST_ERROR if(H5Tclose(memb_cmpd) < 0) FAIL_STACK_ERROR if(H5Tclose(memb_array1) < 0) FAIL_STACK_ERROR if(H5Tclose(memb_array2) < 0) FAIL_STACK_ERROR if(H5Tclose(vl_id) < 0) FAIL_STACK_ERROR if(H5Tclose(cmpd) < 0) FAIL_STACK_ERROR if(H5Tclose(cmpd_array) < 0) FAIL_STACK_ERROR if(H5Fclose(file) < 0) FAIL_STACK_ERROR PASSED(); return 0; error: H5E_BEGIN_TRY H5Tclose(memb_cmpd); H5Tclose(memb_array1); H5Tclose(memb_array2); H5Tclose(vl_id); H5Tclose(cmpd); H5Tclose(cmpd_array); H5Fclose(file); H5E_END_TRY; return 1; } /* end test_set_order_compound() */ /*------------------------------------------------------------------------- * Function: test_named_indirect_reopen * * Purpose: Tests that open named datatypes can be reopened indirectly * through H5Dget_type without causing problems. * * Return: Success: 0 * * Failure: number of errors * * Programmer: Neil Fortner * Thursday, June 4, 2009 * * Modifications: * *------------------------------------------------------------------------- */ static int test_named_indirect_reopen(hid_t fapl) { hid_t file=-1, type=-1, reopened_type=-1, strtype=-1, dset=-1, space=-1; static hsize_t dims[1] = {3}; size_t dt_size; int enum_value; const char *tag = "opaque_tag"; char *tag_ret = NULL; char filename[1024]; TESTING("indirectly reopening committed datatypes"); /* Create file, dataspace */ h5_fixname(FILENAME[1], fapl, filename, sizeof filename); if ((file=H5Fcreate (filename, H5F_ACC_TRUNC, H5P_DEFAULT, fapl)) < 0) TEST_ERROR if ((space = H5Screate_simple (1, dims, dims)) < 0) TEST_ERROR /* * Compound */ /* Create compound type */ if((strtype = H5Tcopy(H5T_C_S1)) < 0) TEST_ERROR if(H5Tset_size(strtype, H5T_VARIABLE) < 0) TEST_ERROR if((type = H5Tcreate(H5T_COMPOUND, sizeof(char *))) < 0) TEST_ERROR if(H5Tinsert(type, "vlstr", (size_t)0, strtype) < 0) TEST_ERROR if(H5Tclose(strtype) < 0) TEST_ERROR /* Get size of compound type */ if((dt_size = H5Tget_size(type)) == 0) TEST_ERROR /* Commit compound type and verify the size doesn't change */ if(H5Tcommit2(file, "cmpd_type", type, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) < 0) TEST_ERROR if(dt_size != H5Tget_size(type)) TEST_ERROR /* Create dataset with compound type */ if((dset = H5Dcreate2(file, "cmpd_dset", type, space, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) TEST_ERROR /* Indirectly reopen type and verify that the size doesn't change */ if((reopened_type = H5Dget_type(dset)) < 0) TEST_ERROR if(dt_size != H5Tget_size(reopened_type)) TEST_ERROR /* Close types and dataset */ if(H5Tclose(type) < 0) TEST_ERROR if(H5Tclose(reopened_type) < 0) TEST_ERROR if(H5Dclose(dset) < 0) TEST_ERROR /* * Enum */ /* Create enum type */ if((type = H5Tenum_create(H5T_NATIVE_INT)) < 0) TEST_ERROR enum_value = 0; if(H5Tenum_insert(type, "val1", &enum_value) < 0) TEST_ERROR enum_value = 1; if(H5Tenum_insert(type, "val2", &enum_value) < 0) TEST_ERROR /* Get size of enum type */ if((dt_size = H5Tget_size(type)) == 0) TEST_ERROR /* Commit enum type and verify the size doesn't change */ if(H5Tcommit2(file, "enum_type", type, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) < 0) TEST_ERROR if(dt_size != H5Tget_size(type)) TEST_ERROR /* Create dataset with enum type */ if((dset = H5Dcreate2(file, "enum_dset", type, space, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) TEST_ERROR /* Indirectly reopen type and verify that the size doesn't change */ if((reopened_type = H5Dget_type(dset)) < 0) TEST_ERROR if(dt_size != H5Tget_size(reopened_type)) TEST_ERROR /* Close types and dataset */ if(H5Tclose(type) < 0) TEST_ERROR if(H5Tclose(reopened_type) < 0) TEST_ERROR if(H5Dclose(dset) < 0) TEST_ERROR /* * Vlen */ /* Create vlen type */ if((type = H5Tvlen_create(H5T_NATIVE_INT)) < 0) TEST_ERROR /* Get size of vlen type */ if((dt_size = H5Tget_size(type)) == 0) TEST_ERROR /* Commit vlen type and verify the size doesn't change */ if(H5Tcommit2(file, "vlen_type", type, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) < 0) TEST_ERROR if(dt_size != H5Tget_size(type)) TEST_ERROR /* Create dataset with vlen type */ if((dset = H5Dcreate2(file, "vlen_dset", type, space, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) TEST_ERROR /* Indirectly reopen type and verify that the size doesn't change */ if((reopened_type = H5Dget_type(dset)) < 0) TEST_ERROR if(dt_size != H5Tget_size(reopened_type)) TEST_ERROR /* Close types and dataset */ if(H5Tclose(type) < 0) TEST_ERROR if(H5Tclose(reopened_type) < 0) TEST_ERROR if(H5Dclose(dset) < 0) TEST_ERROR /* * Opaque */ /* Create opaque type */ if((type = H5Tcreate(H5T_OPAQUE, (size_t)13)) < 0) TEST_ERROR if(H5Tset_tag(type, tag) < 0) TEST_ERROR /* Get size of opaque type */ if((dt_size = H5Tget_size(type)) == 0) TEST_ERROR /* Commit opaque type and verify the size and tag don't change */ if(H5Tcommit2(file, "opaque_type", type, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) < 0) TEST_ERROR if(dt_size != H5Tget_size(type)) TEST_ERROR if(NULL == (tag_ret = H5Tget_tag(type))) TEST_ERROR if(HDstrcmp(tag, tag_ret)) TEST_ERROR HDfree(tag_ret); tag_ret = NULL; /* Create dataset with opaque type */ if((dset = H5Dcreate2(file, "opaque_dset", type, space, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) TEST_ERROR /* Indirectly reopen type and verify that the size and tag don't change */ if((reopened_type = H5Dget_type(dset)) < 0) TEST_ERROR if(dt_size != H5Tget_size(reopened_type)) TEST_ERROR if(NULL == (tag_ret = H5Tget_tag(type))) TEST_ERROR if(HDstrcmp(tag, tag_ret)) TEST_ERROR HDfree(tag_ret); tag_ret = NULL; /* Close types and dataset */ if(H5Tclose(type) < 0) TEST_ERROR if(H5Tclose(reopened_type) < 0) TEST_ERROR if(H5Dclose(dset) < 0) TEST_ERROR /* * Array */ /* Create array type */ if((type = H5Tarray_create2(H5T_NATIVE_INT, 1, dims)) < 0) TEST_ERROR /* Get size of array type */ if((dt_size = H5Tget_size(type)) == 0) TEST_ERROR /* Commit array type and verify the size doesn't change */ if(H5Tcommit2(file, "array_type", type, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT) < 0) TEST_ERROR if(dt_size != H5Tget_size(type)) TEST_ERROR /* Create dataset with array type */ if((dset = H5Dcreate2(file, "array_dset", type, space, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) TEST_ERROR /* Indirectly reopen type and verify that the size doesn't change */ if((reopened_type = H5Dget_type(dset)) < 0) TEST_ERROR if(dt_size != H5Tget_size(reopened_type)) TEST_ERROR /* Close types and dataset */ if(H5Tclose(type) < 0) TEST_ERROR if(H5Tclose(reopened_type) < 0) TEST_ERROR if(H5Dclose(dset) < 0) TEST_ERROR /* Close file and dataspace */ if(H5Sclose(space) < 0) TEST_ERROR if(H5Fclose(file) < 0) TEST_ERROR PASSED(); return 0; error: H5E_BEGIN_TRY { H5Tclose(type); H5Tclose(strtype); H5Tclose(reopened_type); H5Sclose(space); H5Dclose(dset); H5Fclose(file); } H5E_END_TRY; if(tag_ret) HDfree(tag_ret); return 1; } /* end test_named_indirect_reopen() */ static void create_del_obj_named_test_file(const char *filename, hid_t fapl, hbool_t new_format) { hid_t file; /* File ID */ hid_t type; /* Datatype ID */ hid_t space; /* Dataspace ID */ hid_t attr; /* Attribute ID */ hid_t dset; /* Dataset ID */ hid_t fcpl; /* File creation property list ID */ hid_t my_fapl; /* Copy of file access property list ID */ hid_t dcpl; /* Dataset creation property list ID */ herr_t status; /* Generic return value */ /* Make copy of FAPL */ my_fapl = H5Pcopy(fapl); assert(my_fapl > 0); if(new_format) { /* Use latest version of file format */ status = H5Pset_libver_bounds(my_fapl, H5F_LIBVER_LATEST, H5F_LIBVER_LATEST); assert(status >= 0); } /* end if */ /* Create a file creation property list (used for the root group's creation property list) */ fcpl = H5Pcreate(H5P_FILE_CREATE); assert(fcpl > 0); if(new_format) { /* Use dense link storage for all links in root group */ status = H5Pset_link_phase_change(fcpl, 0, 0); assert(status >= 0); } /* end if */ /* Create file with attribute that uses committed datatype */ file = H5Fcreate(filename, H5F_ACC_TRUNC, fcpl, my_fapl); assert(file > 0); /* Close FCPL */ status = H5Pclose(fcpl); assert(status >= 0); /* Close FAPL */ status = H5Pclose(my_fapl); assert(status >= 0); /* Create datatype to commit */ type = H5Tvlen_create(H5T_NATIVE_INT); assert(type > 0); /* Commit datatype */ status = H5Tcommit2(file, DEL_OBJ_NAMED_NAMED_DTYPE, type, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT); assert(status >= 0); /* Create scalar dataspace */ space = H5Screate(H5S_SCALAR); assert(space > 0); /* Create a dataset creation property list */ dcpl = H5Pcreate(H5P_DATASET_CREATE); assert(dcpl > 0); if(new_format) { /* Use dense attribute storage for all attributes on dataset */ status = H5Pset_attr_phase_change(dcpl, 0, 0); assert(status >= 0); } /* end if */ /* Create dataset */ dset = H5Dcreate2(file, DEL_OBJ_NAMED_DATASET, type, space, H5P_DEFAULT, dcpl, H5P_DEFAULT); assert(dset > 0); /* Close DCPL */ status = H5Pclose(dcpl); assert(status >= 0); /* Close dataset */ status = H5Dclose(dset); assert(status >= 0); /* Create attribute */ attr = H5Acreate_by_name(file, DEL_OBJ_NAMED_DATASET, DEL_OBJ_NAMED_ATTRIBUTE, type, space, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT); assert(attr > 0); /* Close dataspace */ status = H5Sclose(space); assert(status >= 0); /* Close datatype */ status = H5Tclose(type); assert(status >= 0); /* Close attribute */ status = H5Aclose(attr); assert(status >= 0); /* Close file */ status = H5Fclose(file); assert(status >= 0); } /* end create_del_obj_named_test_file() */ /*------------------------------------------------------------------------- * Function: test_delete_obj_named * * Purpose: Tests that delete objects that use named datatypes through * different file IDs * * Return: Success: 0 * Failure: number of errors * * Programmer: Quincey Koziol * Monday, July 18, 2011 * *------------------------------------------------------------------------- */ static int test_delete_obj_named(hid_t fapl) { hid_t filea1 = -1, filea2 = -1, fileb = -1; /* File IDs */ hid_t attr = -1; /* Attribute ID */ hid_t dset = -1; /* Dataset ID */ hid_t fapl2 = -1; /* File access property list ID */ hbool_t new_format; /* Whether to use old or new format */ char filename[1024], filename2[1024]; TESTING("deleting objects that use named datatypes"); /* Set up filenames & FAPLs */ if((fapl2 = H5Pcopy(fapl)) < 0) FAIL_STACK_ERROR h5_fixname(FILENAME[8], fapl, filename, sizeof filename); h5_fixname(FILENAME[9], fapl2, filename2, sizeof filename2); /* Loop over old & new format files */ for(new_format = FALSE; new_format <= TRUE; new_format++) { /* Create test file, with attribute that uses committed datatype */ create_del_obj_named_test_file(filename, fapl, new_format); /* Test deleting dataset opened through different file ID */ if((filea1 = H5Fopen(filename, H5F_ACC_RDWR, fapl)) < 0) FAIL_STACK_ERROR if((filea2 = H5Fopen(filename, H5F_ACC_RDWR, fapl)) < 0) FAIL_STACK_ERROR if((dset = H5Dopen2(filea1, DEL_OBJ_NAMED_DATASET, H5P_DEFAULT)) < 0) FAIL_STACK_ERROR if(H5Dclose(dset) < 0) FAIL_STACK_ERROR if(H5Fclose(filea1) < 0) FAIL_STACK_ERROR if((fileb = H5Fcreate(filename2, H5F_ACC_TRUNC, H5P_DEFAULT, fapl2)) < 0) FAIL_STACK_ERROR if(H5Ldelete(filea2, DEL_OBJ_NAMED_DATASET, H5P_DEFAULT) < 0) FAIL_STACK_ERROR if(H5Fclose(filea2) < 0) FAIL_STACK_ERROR if(H5Fclose(fileb) < 0) FAIL_STACK_ERROR /* Create test file, with attribute that uses committed datatype */ create_del_obj_named_test_file(filename, fapl, new_format); /* Test deleting attribute opened through different file ID */ if((filea1 = H5Fopen(filename, H5F_ACC_RDWR, fapl)) < 0) FAIL_STACK_ERROR if((filea2 = H5Fopen(filename, H5F_ACC_RDWR, fapl)) < 0) FAIL_STACK_ERROR if((attr = H5Aopen_by_name(filea1, DEL_OBJ_NAMED_DATASET, DEL_OBJ_NAMED_ATTRIBUTE, H5P_DEFAULT, H5P_DEFAULT)) < 0) FAIL_STACK_ERROR if(H5Aclose(attr) < 0) FAIL_STACK_ERROR if(H5Fclose(filea1) < 0) FAIL_STACK_ERROR if((fileb = H5Fcreate(filename2, H5F_ACC_TRUNC, H5P_DEFAULT, fapl2)) < 0) FAIL_STACK_ERROR if(H5Adelete_by_name(filea2, DEL_OBJ_NAMED_DATASET, DEL_OBJ_NAMED_ATTRIBUTE, H5P_DEFAULT) < 0) FAIL_STACK_ERROR if(H5Fclose(filea2) < 0) FAIL_STACK_ERROR if(H5Fclose(fileb) < 0) FAIL_STACK_ERROR } /* end for */ if(H5Pclose(fapl2) < 0) FAIL_STACK_ERROR PASSED(); return 0; error: H5E_BEGIN_TRY { H5Tclose(attr); H5Dclose(dset); H5Pclose(fapl2); H5Fclose(filea1); H5Fclose(filea2); H5Fclose(fileb); } H5E_END_TRY; return 1; } /* end test_delete_obj_named() */ /*------------------------------------------------------------------------- * Function: test_delete_obj_named_fileid * * Purpose: Tests that objects that use named datatypes through * different file IDs get the correct file IDs * * Return: Success: 0 * Failure: number of errors * * Programmer: Quincey Koziol * Thursday, July 28, 2011 * *------------------------------------------------------------------------- */ static int test_delete_obj_named_fileid(hid_t fapl) { hid_t filea1 = -1, filea2 = -1, fileb = -1; /* File IDs */ hid_t dset_fid = -1; /* File ID from dataset */ hid_t type_fid = -1; /* File ID from datatype */ hid_t attr_fid = -1; /* File ID from attribute */ hid_t type = -1; /* Datatype ID */ hid_t attr = -1; /* Attribute ID */ hid_t dset = -1; /* Dataset ID */ hid_t fapl2 = -1; /* File access property list ID */ hbool_t new_format; /* Whether to use old or new format */ char filename[1024], filename2[1024]; TESTING("deleting objects that use named datatypes"); /* Set up filenames & FAPLs */ if((fapl2 = H5Pcopy(fapl)) < 0) FAIL_STACK_ERROR h5_fixname(FILENAME[8], fapl, filename, sizeof filename); h5_fixname(FILENAME[9], fapl2, filename2, sizeof filename2); /* Loop over old & new format files */ for(new_format = FALSE; new_format <= TRUE; new_format++) { /* Create test file, with attribute that uses committed datatype */ create_del_obj_named_test_file(filename, fapl, new_format); /* Test getting file ID for dataset opened through different file ID */ if((filea1 = H5Fopen(filename, H5F_ACC_RDWR, fapl)) < 0) FAIL_STACK_ERROR if((filea2 = H5Fopen(filename, H5F_ACC_RDWR, fapl)) < 0) FAIL_STACK_ERROR if((dset = H5Dopen2(filea1, DEL_OBJ_NAMED_DATASET, H5P_DEFAULT)) < 0) FAIL_STACK_ERROR /* Verify file ID from dataset matches correct file */ dset_fid = H5Iget_file_id(dset); if(dset_fid != filea1) TEST_ERROR H5Fclose(dset_fid); /* Verify file ID from datatype (from dataset) matches correct file */ type = H5Dget_type(dset); type_fid = H5Iget_file_id(type); if(type_fid != filea1) TEST_ERROR H5Fclose(type_fid); H5Tclose(type); if(H5Dclose(dset) < 0) FAIL_STACK_ERROR if(H5Fclose(filea1) < 0) FAIL_STACK_ERROR if((fileb = H5Fcreate(filename2, H5F_ACC_TRUNC, H5P_DEFAULT, fapl2)) < 0) FAIL_STACK_ERROR if((filea1 = H5Fopen(filename, H5F_ACC_RDWR, fapl)) < 0) FAIL_STACK_ERROR if((dset = H5Dopen2(filea1, DEL_OBJ_NAMED_DATASET, H5P_DEFAULT)) < 0) FAIL_STACK_ERROR /* Verify file ID from dataset matches correct file */ dset_fid = H5Iget_file_id(dset); if(dset_fid != filea1) TEST_ERROR H5Fclose(dset_fid); /* Verify file ID from datatype (from dataset) matches correct file */ type = H5Dget_type(dset); type_fid = H5Iget_file_id(type); if(type_fid != filea1) TEST_ERROR H5Fclose(type_fid); H5Tclose(type); if(H5Dclose(dset) < 0) FAIL_STACK_ERROR if(H5Fclose(filea1) < 0) FAIL_STACK_ERROR if(H5Fclose(filea2) < 0) FAIL_STACK_ERROR if(H5Fclose(fileb) < 0) FAIL_STACK_ERROR /* Create test file, with attribute that uses committed datatype */ create_del_obj_named_test_file(filename, fapl, new_format); /* Test getting file ID for attribute opened through different file ID */ if((filea1 = H5Fopen(filename, H5F_ACC_RDWR, fapl)) < 0) FAIL_STACK_ERROR if((filea2 = H5Fopen(filename, H5F_ACC_RDWR, fapl)) < 0) FAIL_STACK_ERROR if((attr = H5Aopen_by_name(filea1, DEL_OBJ_NAMED_DATASET, DEL_OBJ_NAMED_ATTRIBUTE, H5P_DEFAULT, H5P_DEFAULT)) < 0) FAIL_STACK_ERROR /* Verify file ID from dataset matches correct file */ attr_fid = H5Iget_file_id(attr); if(attr_fid != filea1) TEST_ERROR H5Fclose(attr_fid); /* Verify file ID from datatype (from dataset) matches correct file */ type = H5Aget_type(attr); type_fid = H5Iget_file_id(type); if(type_fid != filea1) TEST_ERROR H5Fclose(type_fid); H5Tclose(type); if(H5Aclose(attr) < 0) FAIL_STACK_ERROR if(H5Fclose(filea1) < 0) FAIL_STACK_ERROR if((fileb = H5Fcreate(filename2, H5F_ACC_TRUNC, H5P_DEFAULT, fapl2)) < 0) FAIL_STACK_ERROR if((filea1 = H5Fopen(filename, H5F_ACC_RDWR, fapl)) < 0) FAIL_STACK_ERROR if((attr = H5Aopen_by_name(filea1, DEL_OBJ_NAMED_DATASET, DEL_OBJ_NAMED_ATTRIBUTE, H5P_DEFAULT, H5P_DEFAULT)) < 0) FAIL_STACK_ERROR /* Verify file ID from dataset matches correct file */ attr_fid = H5Iget_file_id(attr); if(attr_fid != filea1) TEST_ERROR H5Fclose(attr_fid); /* Verify file ID from datatype (from dataset) matches correct file */ type = H5Aget_type(attr); type_fid = H5Iget_file_id(type); if(type_fid != filea1) TEST_ERROR H5Fclose(type_fid); H5Tclose(type); if(H5Aclose(attr) < 0) FAIL_STACK_ERROR if(H5Fclose(filea1) < 0) FAIL_STACK_ERROR if(H5Fclose(filea2) < 0) FAIL_STACK_ERROR if(H5Fclose(fileb) < 0) FAIL_STACK_ERROR } /* end for */ if(H5Pclose(fapl2) < 0) FAIL_STACK_ERROR PASSED(); return 0; error: H5E_BEGIN_TRY { H5Tclose(attr); H5Dclose(dset); H5Pclose(fapl2); H5Fclose(filea1); H5Fclose(filea2); H5Fclose(fileb); } H5E_END_TRY; return 1; } /* end test_delete_obj_named_fileid() */ /*------------------------------------------------------------------------- * Function: test_deprec * * Purpose: Tests deprecated API routines for datatypes. * * Return: Success: 0 * Failure: number of errors * * Programmer: Quincey Koziol * Thursday, September 27, 2007 * *------------------------------------------------------------------------- */ #ifndef H5_NO_DEPRECATED_SYMBOLS static int test_deprec(hid_t fapl) { hid_t file = -1; /* File ID */ hid_t type = -1; /* Datatype ID */ unsigned rank = 2; /* Rank for array datatype */ hsize_t dims[2] = {3, 3}; /* Dimensions for array datatype */ int perm[2] = {0, 1}; /* Dimensions permutations for array datatype */ hsize_t rdims[2]= {0, 0}; /* Dimensions for querying array datatype */ int rperm[2] = {-2, -2}; /* Dimensions permutations for array datatype */ hbool_t dim_mismatch; /* Whether any dimensions didn't match */ char filename[1024]; unsigned u; /* Local index variable */ herr_t status; /* Generic routine value */ TESTING("deprected API routines for datatypes"); /* Create an array datatype with an atomic base type */ /* (dimension permutations allowed, but not stored) */ if((type = H5Tarray_create1(H5T_NATIVE_INT, (int)rank, dims, perm)) < 0) FAIL_STACK_ERROR /* Make certain that the correct classes can be detected */ if(H5Tdetect_class(type, H5T_ARRAY) != TRUE) FAIL_STACK_ERROR if(H5Tdetect_class(type, H5T_INTEGER) != TRUE) FAIL_STACK_ERROR /* Get the array dimensions */ /* (Query the dimension permutations, which is allowed, but ignored) */ if(H5Tget_array_dims1(type, rdims, rperm) < 0) FAIL_STACK_ERROR /* Check the array dimensions */ dim_mismatch = FALSE; for(u = 0; u < rank; u++) if(rdims[u] != dims[u]) { TestErrPrintf("Array dimension information doesn't match!, rdims1[%u]=%d, tdims1[%u]=%d\n", u, (int)rdims[u], u, (int)dims[u]); dim_mismatch = TRUE; } /* end if */ if(dim_mismatch) FAIL_PUTS_ERROR(" Dimensions didn't match!") /* Check the array dimension permutations */ dim_mismatch = FALSE; for(u = 0; u < rank; u++) if(rperm[u] != -2) { TestErrPrintf("Array dimension permutation information was modified!, rdims1[%u]=%d, tdims1[%u]=%d\n", u, rperm[u], u, perm[u]); dim_mismatch = TRUE; } /* end if */ if(dim_mismatch) FAIL_PUTS_ERROR(" Dimension permutations modified!") /* Close the datatype */ if(H5Tclose(type) < 0) FAIL_STACK_ERROR h5_fixname(FILENAME[1], fapl, filename, sizeof filename); if((file = H5Fcreate(filename, H5F_ACC_TRUNC, H5P_DEFAULT, fapl)) < 0) FAIL_STACK_ERROR /* Predefined types cannot be committed */ H5E_BEGIN_TRY { status = H5Tcommit1(file, "test_named_1 (should not exist)", H5T_NATIVE_INT); } H5E_END_TRY; if(status >= 0) FAIL_PUTS_ERROR(" Predefined types should not be committable!") /* Copy a predefined datatype and commit the copy */ if((type = H5Tcopy(H5T_NATIVE_INT)) < 0) FAIL_STACK_ERROR if(H5Tcommit1(file, "native-int", type) < 0) FAIL_STACK_ERROR if((status = H5Tcommitted(type)) < 0) FAIL_STACK_ERROR if(0 == status) FAIL_PUTS_ERROR(" H5Tcommitted() returned false!") /* We should not be able to modify a type after it has been committed. */ H5E_BEGIN_TRY { status = H5Tset_precision(type, (size_t)256); } H5E_END_TRY; if(status >= 0) FAIL_PUTS_ERROR(" Committed type is not constant!") /* We should not be able to re-commit a committed type */ H5E_BEGIN_TRY { status = H5Tcommit1(file, "test_named_2 (should not exist)", type); } H5E_END_TRY; if(status >= 0) FAIL_PUTS_ERROR(" Committed types should not be recommitted!") /* * Close the committed type and reopen it. It should return a named type. */ if(H5Tclose(type) < 0) FAIL_STACK_ERROR if((type = H5Topen1(file, "native-int")) < 0) FAIL_STACK_ERROR if((status = H5Tcommitted(type)) < 0) FAIL_STACK_ERROR if(!status) FAIL_PUTS_ERROR(" Opened named types should be named types!") /* Close */ if(H5Tclose(type) < 0) FAIL_STACK_ERROR if(H5Fclose(file) < 0) FAIL_STACK_ERROR /* Reopen file with read only access */ if ((file = H5Fopen(filename, H5F_ACC_RDONLY, fapl)) < 0) goto error; /* Verify that H5Tcommit2 returns an error */ if((type = H5Tcopy(H5T_NATIVE_INT)) < 0) goto error; H5E_BEGIN_TRY { status = H5Tcommit1(file, "test_named_3 (should not exist)", type); } H5E_END_TRY; if(status >= 0) { H5_FAILED(); HDputs (" Types should not be committable to a read-only file!"); goto error; } /* Close */ if(H5Tclose(type) < 0) goto error; if(H5Fclose(file) < 0) goto error; PASSED(); return 0; error: H5E_BEGIN_TRY { H5Tclose(type); H5Fclose(file); } H5E_END_TRY; return 1; } /* end test_deprec() */ #endif /* H5_NO_DEPRECATED_SYMBOLS */ /*------------------------------------------------------------------------- * Function: test_utf_ascii_conv * * Purpose: Make sure the library doesn't conversion strings between * ASCII and UTF8. * * Return: Success: 0 * Failure: number of errors * * Programmer: Raymond Lu * 10 November 2011 *------------------------------------------------------------------------- */ static int test_utf_ascii_conv(void) { hid_t fid = -1; hid_t did = -1; hid_t utf8_vtid = -1; hid_t ascii_vtid = -1; hid_t utf8_tid = -1; hid_t ascii_tid = -1; hid_t sid = -1; const char *utf8_w = "foo!"; char *ascii_r = NULL; const char *ascii_w = "bar!"; char *utf8_r = NULL; char filename[1024]; char ascii2[4], utf8_2[4]; herr_t status; TESTING("string conversion between ASCII and UTF"); /************************************************ * Test VL string conversion from UTF8 to ASCII ************************************************/ /* Create a variable-length string */ if((utf8_vtid = H5Tcopy(H5T_C_S1)) < 0) FAIL_STACK_ERROR if((status = H5Tset_size(utf8_vtid, H5T_VARIABLE)) < 0) FAIL_STACK_ERROR /* Set the character set for the string to UTF-8 */ if((status = H5Tset_cset(utf8_vtid, H5T_CSET_UTF8)) < 0) FAIL_STACK_ERROR /* Create a variable-length string */ if((ascii_vtid = H5Tcopy(H5T_C_S1)) < 0) FAIL_STACK_ERROR if((status = H5Tset_size(ascii_vtid, H5T_VARIABLE)) < 0) FAIL_STACK_ERROR /* Set the character set for the string to ASCII (should already be so) */ if((status = H5Tset_cset(ascii_vtid, H5T_CSET_ASCII) < 0)) FAIL_STACK_ERROR /* Test conversion in memory */ H5E_BEGIN_TRY { status = H5Tconvert(utf8_vtid, ascii_vtid, 1, (void *)utf8_w, NULL, H5P_DEFAULT); } H5E_END_TRY if(status >= 0) FAIL_STACK_ERROR /* Create a file */ h5_fixname(FILENAME[10], H5P_DEFAULT, filename, sizeof filename); if((fid = H5Fcreate(filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) FAIL_STACK_ERROR /* Create a scalar dataspace for the dataset */ if((sid = H5Screate(H5S_SCALAR)) < 0) FAIL_STACK_ERROR /* Create a dataset of UTF8 string type */ if((did = H5Dcreate2(fid, UTF8_DATASET, utf8_vtid, sid, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) FAIL_STACK_ERROR /* Write the UTF8 string, as UTF8 */ if((status = H5Dwrite(did, utf8_vtid, H5S_ALL, H5S_ALL, H5P_DEFAULT, &utf8_w)) < 0) FAIL_STACK_ERROR /* Read the UTF8 string, as ASCII, supposed to fail */ H5E_BEGIN_TRY { status = H5Dread(did, ascii_vtid, H5S_ALL, H5S_ALL, H5P_DEFAULT, &ascii_r); } H5E_END_TRY if(status >= 0) FAIL_STACK_ERROR /* Close the dataset */ if((status = H5Dclose(did)) < 0) FAIL_STACK_ERROR /************************************************ * Test VL string conversion from ASCII to UTF8 ************************************************/ /* Test conversion in memory */ H5E_BEGIN_TRY { status = H5Tconvert(ascii_vtid, utf8_vtid, 1, (void *)ascii_w, NULL, H5P_DEFAULT); } H5E_END_TRY if(status >= 0) FAIL_STACK_ERROR /* Create a dataset of ASCII string type */ if((did = H5Dcreate2(fid, ASCII_DATASET, ascii_vtid, sid, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) FAIL_STACK_ERROR /* Write the ASCII string, as ASCII */ if((status = H5Dwrite(did, ascii_vtid, H5S_ALL, H5S_ALL, H5P_DEFAULT, &ascii_w)) < 0) FAIL_STACK_ERROR /* Read the ASCII string, as UTF8, supposed to fail */ H5E_BEGIN_TRY { status = H5Dread(did, utf8_vtid, H5S_ALL, H5S_ALL, H5P_DEFAULT, &utf8_r); } H5E_END_TRY if(status >= 0) FAIL_STACK_ERROR /* Close the dataset */ if((status = H5Dclose(did)) < 0) FAIL_STACK_ERROR /* Close the UTF8 VL-string datatype */ if((status = H5Tclose(utf8_vtid)) < 0) FAIL_STACK_ERROR /* Close the ASCII VL-string datatype */ if((status = H5Tclose(ascii_vtid)) < 0) FAIL_STACK_ERROR /********************************************************** * Test fixed-length string conversion from UTF8 to ASCII **********************************************************/ /* Create a fixed-length UTF8 string */ if((utf8_tid = H5Tcopy(H5T_C_S1)) < 0) FAIL_STACK_ERROR if((status = H5Tset_size(utf8_tid, 4)) < 0) FAIL_STACK_ERROR /* Set the character set for the string to UTF-8 */ if((status = H5Tset_cset(utf8_tid, H5T_CSET_UTF8)) < 0) FAIL_STACK_ERROR /* Create a fixed-length ASCII string */ if((ascii_tid = H5Tcopy(H5T_C_S1)) < 0) FAIL_STACK_ERROR if((status = H5Tset_size(ascii_tid, 4)) < 0) FAIL_STACK_ERROR /* Set the character set for the string to ASCII (should already be so) */ if((status = H5Tset_cset(ascii_tid, H5T_CSET_ASCII) < 0)) FAIL_STACK_ERROR /* Test conversion in memory */ H5E_BEGIN_TRY { status = H5Tconvert(utf8_tid, ascii_tid, 1, utf8_2, NULL, H5P_DEFAULT); } H5E_END_TRY if(status >= 0) FAIL_STACK_ERROR /* Create a dataset */ if((did = H5Dcreate2(fid, UTF8_DATASET2, utf8_tid, sid, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) FAIL_STACK_ERROR /* Write the UTF8 string, as UTF8 */ if((status = H5Dwrite(did, utf8_tid, H5S_ALL, H5S_ALL, H5P_DEFAULT, &utf8_w)) < 0) FAIL_STACK_ERROR /* Read the UTF8 string as ASCII, supposed to fail */ H5E_BEGIN_TRY { status = H5Dread(did, ascii_tid, H5S_ALL, H5S_ALL, H5P_DEFAULT, &ascii2); } H5E_END_TRY if(status >= 0) FAIL_STACK_ERROR /* Close the dataset */ if((status = H5Dclose(did)) < 0) FAIL_STACK_ERROR /********************************************************** * Test fixed-length string conversion from ASCII to UTF8 **********************************************************/ /* Test conversion in memory */ H5E_BEGIN_TRY { status = H5Tconvert(ascii_tid, utf8_tid, 1, ascii2, NULL, H5P_DEFAULT); } H5E_END_TRY if(status >= 0) FAIL_STACK_ERROR /* Create a dataset */ if((did = H5Dcreate2(fid, ASCII_DATASET2, ascii_tid, sid, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) FAIL_STACK_ERROR /* Write the ASCII string, as ASCII */ if((status = H5Dwrite(did, ascii_tid, H5S_ALL, H5S_ALL, H5P_DEFAULT, &ascii_w)) < 0) FAIL_STACK_ERROR /* Read the UTF8 string as ASCII, supposed to fail */ H5E_BEGIN_TRY { status = H5Dread(did, utf8_tid, H5S_ALL, H5S_ALL, H5P_DEFAULT, &utf8_2); } H5E_END_TRY if(status >= 0) FAIL_STACK_ERROR /* Close the dataset */ if((status = H5Dclose(did)) < 0) FAIL_STACK_ERROR /* Close the UTF8 string datatype */ if((status = H5Tclose(utf8_tid)) < 0) FAIL_STACK_ERROR /* Close the ASCII string datatype */ if((status = H5Tclose(ascii_tid)) < 0) FAIL_STACK_ERROR /* Close the dataspace */ if((status = H5Sclose(sid)) < 0) FAIL_STACK_ERROR /* Close the file */ if((status = H5Fclose(fid)) < 0) FAIL_STACK_ERROR PASSED(); return 0; error: H5E_BEGIN_TRY { H5Tclose(utf8_vtid); H5Tclose(ascii_vtid); H5Tclose(utf8_tid); H5Tclose(ascii_tid); H5Dclose(did); H5Sclose(sid); H5Fclose(fid); } H5E_END_TRY; return 1; } /*------------------------------------------------------------------------- * Function: main * * Purpose: Test the datatype interface. * * Return: Success: * * Failure: * * Programmer: Robb Matzke * Tuesday, December 9, 1997 * * Modifications: * *------------------------------------------------------------------------- */ int main(void) { long nerrors = 0; hid_t fapl = -1; /* Set the random # seed */ HDsrandom((unsigned)HDtime(NULL)); reset_hdf5(); fapl = h5_fileaccess(); if(ALIGNMENT) printf("Testing non-aligned conversions (ALIGNMENT=%d)....\n", ALIGNMENT); /* Do the tests */ nerrors += test_classes(); nerrors += test_copy(); nerrors += test_detect(); nerrors += test_compound_1(); nerrors += test_query(); nerrors += test_transient(fapl); nerrors += test_named(fapl); nerrors += test_encode(); nerrors += test_latest(); nerrors += test_int_float_except(); nerrors += test_named_indirect_reopen(fapl); #ifndef H5_CANNOT_OPEN_TWICE nerrors += test_delete_obj_named(fapl); nerrors += test_delete_obj_named_fileid(fapl); #endif /*H5_CANNOT_OPEN_TWICE*/ nerrors += test_set_order_compound(fapl); nerrors += test_str_create(); #ifndef H5_NO_DEPRECATED_SYMBOLS nerrors += test_deprec(fapl); #endif /* H5_NO_DEPRECATED_SYMBOLS */ h5_cleanup(FILENAME, fapl); /*must happen before first reset*/ reset_hdf5(); nerrors += test_conv_str_1(); nerrors += test_conv_str_2(); nerrors += test_conv_str_3(); nerrors += test_compound_2(); nerrors += test_compound_3(); nerrors += test_compound_4(); nerrors += test_compound_5(); nerrors += test_compound_6(); nerrors += test_compound_7(); nerrors += test_compound_8(); nerrors += test_compound_9(); nerrors += test_compound_10(); nerrors += test_compound_11(); nerrors += test_compound_12(); nerrors += test_compound_13(); nerrors += test_compound_14(); nerrors += test_compound_15(); nerrors += test_compound_16(); nerrors += test_compound_17(); nerrors += test_compound_18(); nerrors += test_conv_enum_1(); nerrors += test_conv_enum_2(); nerrors += test_conv_bitfield(); nerrors += test_bitfield_funcs(); nerrors += test_opaque(); nerrors += test_set_order(); nerrors += test_utf_ascii_conv(); if(nerrors) { printf("***** %lu FAILURE%s! *****\n", nerrors, 1==nerrors?"":"S"); HDexit(1); } printf("All datatype tests passed.\n"); return 0; }
gpl-2.0
CalcProgrammer1/archos-gen8-kernel-2.6.37
drivers/gpu/pvr/sgx_bridge.h
10543
/********************************************************************** * * Copyright(c) 2008 Imagination Technologies Ltd. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, * version 2, as published by the Free Software Foundation. * * This program is distributed in the hope it will be useful but, except * as otherwise stated in writing, without any warranty; without even the * implied warranty of merchantability or fitness for a particular purpose. * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along with * this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. * * The full GNU General Public License is included in this distribution in * the file called "COPYING". * * Contact Information: * Imagination Technologies Ltd. <[email protected]> * Home Park Estate, Kings Langley, Herts, WD4 8LZ, UK * ******************************************************************************/ #if !defined(__SGX_BRIDGE_H__) #define __SGX_BRIDGE_H__ #include "sgxapi_km.h" #include "sgxinfo.h" #include "pvr_bridge.h" #define PVRSRV_BRIDGE_SGX_CMD_BASE (PVRSRV_BRIDGE_LAST_NON_DEVICE_CMD+1) #define PVRSRV_BRIDGE_SGX_GETCLIENTINFO \ PVRSRV_IOWR(PVRSRV_BRIDGE_SGX_CMD_BASE+0) #define PVRSRV_BRIDGE_SGX_RELEASECLIENTINFO \ PVRSRV_IOWR(PVRSRV_BRIDGE_SGX_CMD_BASE+1) #define PVRSRV_BRIDGE_SGX_GETINTERNALDEVINFO \ PVRSRV_IOWR(PVRSRV_BRIDGE_SGX_CMD_BASE+2) #define PVRSRV_BRIDGE_SGX_DOKICK \ PVRSRV_IOWR(PVRSRV_BRIDGE_SGX_CMD_BASE+3) #define PVRSRV_BRIDGE_SGX_GETPHYSPAGEADDR \ PVRSRV_IOWR(PVRSRV_BRIDGE_SGX_CMD_BASE+4) #define PVRSRV_BRIDGE_SGX_READREGISTRYDWORD \ PVRSRV_IOWR(PVRSRV_BRIDGE_SGX_CMD_BASE+5) #define PVRSRV_BRIDGE_SGX_SCHEDULECOMMAND \ PVRSRV_IOWR(PVRSRV_BRIDGE_SGX_CMD_BASE+6) #define PVRSRV_BRIDGE_SGX_2DQUERYBLTSCOMPLETE \ PVRSRV_IOWR(PVRSRV_BRIDGE_SGX_CMD_BASE+9) #define PVRSRV_BRIDGE_SGX_GETMMUPDADDR \ PVRSRV_IOWR(PVRSRV_BRIDGE_SGX_CMD_BASE+10) #define PVRSRV_BRIDGE_SGX_SUBMITTRANSFER \ PVRSRV_IOWR(PVRSRV_BRIDGE_SGX_CMD_BASE+13) #define PVRSRV_BRIDGE_SGX_GETMISCINFO \ PVRSRV_IOWR(PVRSRV_BRIDGE_SGX_CMD_BASE+14) #define PVRSRV_BRIDGE_SGXINFO_FOR_SRVINIT \ PVRSRV_IOWR(PVRSRV_BRIDGE_SGX_CMD_BASE+15) #define PVRSRV_BRIDGE_SGX_DEVINITPART2 \ PVRSRV_IOWR(PVRSRV_BRIDGE_SGX_CMD_BASE+16) #define PVRSRV_BRIDGE_SGX_FINDSHAREDPBDESC \ PVRSRV_IOWR(PVRSRV_BRIDGE_SGX_CMD_BASE+17) #define PVRSRV_BRIDGE_SGX_UNREFSHAREDPBDESC \ PVRSRV_IOWR(PVRSRV_BRIDGE_SGX_CMD_BASE+18) #define PVRSRV_BRIDGE_SGX_ADDSHAREDPBDESC \ PVRSRV_IOWR(PVRSRV_BRIDGE_SGX_CMD_BASE+19) #define PVRSRV_BRIDGE_SGX_REGISTER_HW_RENDER_CONTEXT \ PVRSRV_IOWR(PVRSRV_BRIDGE_SGX_CMD_BASE+20) #define PVRSRV_BRIDGE_SGX_FLUSH_HW_RENDER_TARGET \ PVRSRV_IOWR(PVRSRV_BRIDGE_SGX_CMD_BASE+21) #define PVRSRV_BRIDGE_SGX_UNREGISTER_HW_RENDER_CONTEXT \ PVRSRV_IOWR(PVRSRV_BRIDGE_SGX_CMD_BASE+22) #define PVRSRV_BRIDGE_SGX_REGISTER_HW_TRANSFER_CONTEXT \ PVRSRV_IOWR(PVRSRV_BRIDGE_SGX_CMD_BASE+26) #define PVRSRV_BRIDGE_SGX_UNREGISTER_HW_TRANSFER_CONTEXT \ PVRSRV_IOWR(PVRSRV_BRIDGE_SGX_CMD_BASE+27) #define PVRSRV_BRIDGE_SGX_SCHEDULE_PROCESS_QUEUES \ PVRSRV_IOWR(PVRSRV_BRIDGE_SGX_CMD_BASE+28) #define PVRSRV_BRIDGE_SGX_READ_DIFF_COUNTERS \ PVRSRV_IOWR(PVRSRV_BRIDGE_SGX_CMD_BASE+29) #define PVRSRV_BRIDGE_SGX_READ_HWPERF_CB \ PVRSRV_IOWR(PVRSRV_BRIDGE_SGX_CMD_BASE+30) #if defined(PDUMP) #define PVRSRV_BRIDGE_SGX_PDUMP_BUFFER_ARRAY \ PVRSRV_IOWR(PVRSRV_BRIDGE_SGX_CMD_BASE+31) #define PVRSRV_BRIDGE_SGX_PDUMP_3D_SIGNATURE_REGISTERS \ PVRSRV_IOWR(PVRSRV_BRIDGE_SGX_CMD_BASE+32) #define PVRSRV_BRIDGE_SGX_PDUMP_COUNTER_REGISTERS \ PVRSRV_IOWR(PVRSRV_BRIDGE_SGX_CMD_BASE+33) #define PVRSRV_BRIDGE_SGX_PDUMP_TA_SIGNATURE_REGISTERS \ PVRSRV_IOWR(PVRSRV_BRIDGE_SGX_CMD_BASE+34) #define PVRSRV_BRIDGE_SGX_PDUMP_HWPERFCB \ PVRSRV_IOWR(PVRSRV_BRIDGE_SGX_CMD_BASE+35) #endif #define PVRSRV_BRIDGE_LAST_SGX_CMD (PVRSRV_BRIDGE_SGX_CMD_BASE+35) struct PVRSRV_BRIDGE_IN_GETPHYSPAGEADDR { u32 ui32BridgeFlags; void *hDevMemHeap; struct IMG_DEV_VIRTADDR sDevVAddr; }; struct PVRSRV_BRIDGE_OUT_GETPHYSPAGEADDR { enum PVRSRV_ERROR eError; struct IMG_DEV_PHYADDR DevPAddr; struct IMG_CPU_PHYADDR CpuPAddr; }; struct PVRSRV_BRIDGE_IN_SGX_GETMMU_PDADDR { u32 ui32BridgeFlags; void *hDevCookie; void *hDevMemContext; }; struct PVRSRV_BRIDGE_OUT_SGX_GETMMU_PDADDR { struct IMG_DEV_PHYADDR sPDDevPAddr; enum PVRSRV_ERROR eError; }; struct PVRSRV_BRIDGE_IN_GETCLIENTINFO { u32 ui32BridgeFlags; void *hDevCookie; }; struct PVRSRV_BRIDGE_OUT_GETINTERNALDEVINFO { struct SGX_INTERNAL_DEVINFO sSGXInternalDevInfo; enum PVRSRV_ERROR eError; }; struct PVRSRV_BRIDGE_IN_GETINTERNALDEVINFO { u32 ui32BridgeFlags; void *hDevCookie; }; struct PVRSRV_BRIDGE_OUT_GETCLIENTINFO { struct SGX_CLIENT_INFO sClientInfo; enum PVRSRV_ERROR eError; }; struct PVRSRV_BRIDGE_IN_RELEASECLIENTINFO { u32 ui32BridgeFlags; void *hDevCookie; struct SGX_CLIENT_INFO sClientInfo; }; struct PVRSRV_BRIDGE_IN_ISPBREAKPOLL { u32 ui32BridgeFlags; void *hDevCookie; }; struct PVRSRV_BRIDGE_IN_DOKICK { u32 ui32BridgeFlags; void *hDevCookie; struct SGX_CCB_KICK sCCBKick; }; struct PVRSRV_BRIDGE_IN_SGX_SCHEDULE_PROCESS_QUEUES { u32 ui32BridgeFlags; void *hDevCookie; }; struct PVRSRV_BRIDGE_IN_SUBMITTRANSFER { u32 ui32BridgeFlags; void *hDevCookie; struct PVRSRV_TRANSFER_SGX_KICK sKick; }; struct PVRSRV_BRIDGE_IN_READREGDWORD { u32 ui32BridgeFlags; void *hDevCookie; char *pszKey; char *pszValue; }; struct PVRSRV_BRIDGE_OUT_READREGDWORD { enum PVRSRV_ERROR eError; u32 ui32Data; }; struct PVRSRV_BRIDGE_IN_SCHEDULECOMMAND { u32 ui32BridgeFlags; void *hDevCookie; enum SGXMKIF_COMMAND_TYPE eCommandType; struct SGXMKIF_COMMAND *psCommandData; }; struct PVRSRV_BRIDGE_IN_SGXGETMISCINFO { u32 ui32BridgeFlags; void *hDevCookie; struct SGX_MISC_INFO __user *psMiscInfo; }; struct PVRSRV_BRIDGE_IN_SGXINFO_FOR_SRVINIT { u32 ui32BridgeFlags; void *hDevCookie; }; struct PVRSRV_BRIDGE_OUT_SGXINFO_FOR_SRVINIT { enum PVRSRV_ERROR eError; struct SGX_BRIDGE_INFO_FOR_SRVINIT sInitInfo; }; struct PVRSRV_BRIDGE_IN_SGXDEVINITPART2 { u32 ui32BridgeFlags; void *hDevCookie; struct SGX_BRIDGE_INIT_INFO sInitInfo; }; enum pvr_sync_wait_seq_type { _PVR_SYNC_WAIT_BLOCK, _PVR_SYNC_WAIT_NONBLOCK, _PVR_SYNC_WAIT_EVENT, _PVR_SYNC_WAIT_FLIP, _PVR_SYNC_WAIT_UPDATE, }; struct PVRSRV_BRIDGE_IN_2DQUERYBLTSCOMPLETE { u32 ui32BridgeFlags; void *hDevCookie; void *hKernSyncInfo; u64 user_data; enum pvr_sync_wait_seq_type type; }; #define PVRSRV_BRIDGE_SGX_SHAREDPBDESC_MAX_SUBMEMINFOS 10 struct PVRSRV_BRIDGE_IN_SGXFINDSHAREDPBDESC { u32 ui32BridgeFlags; void *hDevCookie; IMG_BOOL bLockOnFailure; u32 ui32TotalPBSize; }; struct PVRSRV_BRIDGE_OUT_SGXFINDSHAREDPBDESC { void *hKernelMemInfo; void *hSharedPBDesc; void *hSharedPBDescKernelMemInfoHandle; void *hHWPBDescKernelMemInfoHandle; void *hBlockKernelMemInfoHandle; void *ahSharedPBDescSubKernelMemInfoHandles [PVRSRV_BRIDGE_SGX_SHAREDPBDESC_MAX_SUBMEMINFOS]; u32 ui32SharedPBDescSubKernelMemInfoHandlesCount; enum PVRSRV_ERROR eError; }; struct PVRSRV_BRIDGE_IN_SGXUNREFSHAREDPBDESC { u32 ui32BridgeFlags; void *hSharedPBDesc; }; struct PVRSRV_BRIDGE_OUT_SGXUNREFSHAREDPBDESC { enum PVRSRV_ERROR eError; }; struct PVRSRV_BRIDGE_IN_SGXADDSHAREDPBDESC { u32 ui32BridgeFlags; void *hDevCookie; void *hSharedPBDescKernelMemInfo; void *hHWPBDescKernelMemInfo; void *hBlockKernelMemInfo; u32 ui32TotalPBSize; void * __user *phKernelMemInfoHandles; u32 ui32KernelMemInfoHandlesCount; }; struct PVRSRV_BRIDGE_OUT_SGXADDSHAREDPBDESC { enum PVRSRV_ERROR eError; void *hSharedPBDesc; }; #ifdef PDUMP struct PVRSRV_BRIDGE_IN_PDUMP_BUFFER_ARRAY { u32 ui32BridgeFlags; struct SGX_KICKTA_DUMP_BUFFER __user *psBufferArray; u32 ui32BufferArrayLength; IMG_BOOL bDumpPolls; }; struct PVRSRV_BRIDGE_IN_PDUMP_3D_SIGNATURE_REGISTERS { u32 ui32BridgeFlags; u32 ui32DumpFrameNum; IMG_BOOL bLastFrame; u32 *pui32Registers; u32 ui32NumRegisters; }; struct PVRSRV_BRIDGE_IN_PDUMP_COUNTER_REGISTERS { u32 ui32BridgeFlags; u32 ui32DumpFrameNum; IMG_BOOL bLastFrame; u32 *pui32Registers; u32 ui32NumRegisters; }; struct PVRSRV_BRIDGE_IN_PDUMP_TA_SIGNATURE_REGISTERS { u32 ui32BridgeFlags; u32 ui32DumpFrameNum; u32 ui32TAKickCount; IMG_BOOL bLastFrame; u32 *pui32Registers; u32 ui32NumRegisters; }; struct PVRSRV_BRIDGE_IN_PDUMP_HWPERFCB { u32 ui32BridgeFlags; void *hDevCookie; char szFileName[PVRSRV_PDUMP_MAX_FILENAME_SIZE]; u32 ui32FileOffset; u32 ui32PDumpFlags; }; #endif struct PVRSRV_BRIDGE_IN_SGX_REGISTER_HW_RENDER_CONTEXT { u32 ui32BridgeFlags; void *hDevCookie; struct IMG_DEV_VIRTADDR sHWRenderContextDevVAddr; }; struct PVRSRV_BRIDGE_OUT_SGX_REGISTER_HW_RENDER_CONTEXT { enum PVRSRV_ERROR eError; void *hHWRenderContext; }; struct PVRSRV_BRIDGE_IN_SGX_UNREGISTER_HW_RENDER_CONTEXT { u32 ui32BridgeFlags; void *hDevCookie; void *hHWRenderContext; }; struct PVRSRV_BRIDGE_IN_SGX_REGISTER_HW_TRANSFER_CONTEXT { u32 ui32BridgeFlags; void *hDevCookie; struct IMG_DEV_VIRTADDR sHWTransferContextDevVAddr; }; struct PVRSRV_BRIDGE_OUT_SGX_REGISTER_HW_TRANSFER_CONTEXT { enum PVRSRV_ERROR eError; void *hHWTransferContext; }; struct PVRSRV_BRIDGE_IN_SGX_UNREGISTER_HW_TRANSFER_CONTEXT { u32 ui32BridgeFlags; void *hDevCookie; void *hHWTransferContext; }; struct PVRSRV_BRIDGE_IN_SGX_FLUSH_HW_RENDER_TARGET { u32 ui32BridgeFlags; void *hDevCookie; struct IMG_DEV_VIRTADDR sHWRTDataSetDevVAddr; }; struct PVRSRV_BRIDGE_IN_SGX_READ_DIFF_COUNTERS { u32 ui32BridgeFlags; void *hDevCookie; u32 ui32Reg; IMG_BOOL bNew; u32 ui32New; u32 ui32NewReset; u32 ui32CountersReg; }; struct PVRSRV_BRIDGE_OUT_SGX_READ_DIFF_COUNTERS { enum PVRSRV_ERROR eError; u32 ui32Old; u32 ui32Time; IMG_BOOL bActive; struct PVRSRV_SGXDEV_DIFF_INFO sDiffs; }; struct PVRSRV_BRIDGE_IN_SGX_READ_HWPERF_CB { u32 ui32BridgeFlags; void *hDevCookie; u32 ui32ArraySize; struct PVRSRV_SGX_HWPERF_CB_ENTRY __user *psHWPerfCBData; }; struct PVRSRV_BRIDGE_OUT_SGX_READ_HWPERF_CB { enum PVRSRV_ERROR eError; u32 ui32DataCount; u32 ui32ClockSpeed; u32 ui32HostTimeStamp; }; #endif
gpl-2.0
DARKCHYLDX101/GCC-UBER
gcc/gengtype-lex.c
98280
#include "bconfig.h" #line 2 "gengtype-lex.c" #line 4 "gengtype-lex.c" #define YY_INT_ALIGNED short int /* A lexical scanner generated by flex */ #define FLEX_SCANNER #define YY_FLEX_MAJOR_VERSION 2 #define YY_FLEX_MINOR_VERSION 5 #define YY_FLEX_SUBMINOR_VERSION 37 #if YY_FLEX_SUBMINOR_VERSION > 0 #define FLEX_BETA #endif /* First, we deal with platform-specific or compiler-specific issues. */ /* begin standard C headers. */ #include <stdio.h> #include <string.h> #include <errno.h> #include <stdlib.h> /* end standard C headers. */ /* flex integer type definitions */ #ifndef FLEXINT_H #define FLEXINT_H /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */ #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h, * if you want the limit (max/min) macros for int types. */ #ifndef __STDC_LIMIT_MACROS #define __STDC_LIMIT_MACROS 1 #endif #include <inttypes.h> typedef int8_t flex_int8_t; typedef uint8_t flex_uint8_t; typedef int16_t flex_int16_t; typedef uint16_t flex_uint16_t; typedef int32_t flex_int32_t; typedef uint32_t flex_uint32_t; #else typedef signed char flex_int8_t; typedef short int flex_int16_t; typedef int flex_int32_t; typedef unsigned char flex_uint8_t; typedef unsigned short int flex_uint16_t; typedef unsigned int flex_uint32_t; /* Limits of integral types. */ #ifndef INT8_MIN #define INT8_MIN (-128) #endif #ifndef INT16_MIN #define INT16_MIN (-32767-1) #endif #ifndef INT32_MIN #define INT32_MIN (-2147483647-1) #endif #ifndef INT8_MAX #define INT8_MAX (127) #endif #ifndef INT16_MAX #define INT16_MAX (32767) #endif #ifndef INT32_MAX #define INT32_MAX (2147483647) #endif #ifndef UINT8_MAX #define UINT8_MAX (255U) #endif #ifndef UINT16_MAX #define UINT16_MAX (65535U) #endif #ifndef UINT32_MAX #define UINT32_MAX (4294967295U) #endif #endif /* ! C99 */ #endif /* ! FLEXINT_H */ #ifdef __cplusplus /* The "const" storage-class-modifier is valid. */ #define YY_USE_CONST #else /* ! __cplusplus */ /* C99 requires __STDC__ to be defined as 1. */ #if defined (__STDC__) #define YY_USE_CONST #endif /* defined (__STDC__) */ #endif /* ! __cplusplus */ #ifdef YY_USE_CONST #define yyconst const #else #define yyconst #endif /* Returned upon end-of-file. */ #define YY_NULL 0 /* Promotes a possibly negative, possibly signed char to an unsigned * integer for use as an array index. If the signed char is negative, * we want to instead treat it as an 8-bit unsigned char, hence the * double cast. */ #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c) /* Enter a start condition. This macro really ought to take a parameter, * but we do it the disgusting crufty way forced on us by the ()-less * definition of BEGIN. */ #define BEGIN (yy_start) = 1 + 2 * /* Translate the current start state into a value that can be later handed * to BEGIN to return to the state. The YYSTATE alias is for lex * compatibility. */ #define YY_START (((yy_start) - 1) / 2) #define YYSTATE YY_START /* Action number for EOF rule of a given start state. */ #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) /* Special action meaning "start processing a new file". */ #define YY_NEW_FILE yyrestart(yyin ) #define YY_END_OF_BUFFER_CHAR 0 /* Size of default input buffer. */ #ifndef YY_BUF_SIZE #define YY_BUF_SIZE 16384 #endif /* The state buf must be large enough to hold one state per character in the main buffer. */ #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) #ifndef YY_TYPEDEF_YY_BUFFER_STATE #define YY_TYPEDEF_YY_BUFFER_STATE typedef struct yy_buffer_state *YY_BUFFER_STATE; #endif #ifndef YY_TYPEDEF_YY_SIZE_T #define YY_TYPEDEF_YY_SIZE_T typedef size_t yy_size_t; #endif extern yy_size_t yyleng; extern FILE *yyin, *yyout; #define EOB_ACT_CONTINUE_SCAN 0 #define EOB_ACT_END_OF_FILE 1 #define EOB_ACT_LAST_MATCH 2 #define YY_LESS_LINENO(n) /* Return all but the first "n" matched characters back to the input stream. */ #define yyless(n) \ do \ { \ /* Undo effects of setting up yytext. */ \ int yyless_macro_arg = (n); \ YY_LESS_LINENO(yyless_macro_arg);\ *yy_cp = (yy_hold_char); \ YY_RESTORE_YY_MORE_OFFSET \ (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \ YY_DO_BEFORE_ACTION; /* set up yytext again */ \ } \ while ( 0 ) #define unput(c) yyunput( c, (yytext_ptr) ) #ifndef YY_STRUCT_YY_BUFFER_STATE #define YY_STRUCT_YY_BUFFER_STATE struct yy_buffer_state { FILE *yy_input_file; char *yy_ch_buf; /* input buffer */ char *yy_buf_pos; /* current position in input buffer */ /* Size of input buffer in bytes, not including room for EOB * characters. */ yy_size_t yy_buf_size; /* Number of characters read into yy_ch_buf, not including EOB * characters. */ yy_size_t yy_n_chars; /* Whether we "own" the buffer - i.e., we know we created it, * and can realloc() it to grow it, and should free() it to * delete it. */ int yy_is_our_buffer; /* Whether this is an "interactive" input source; if so, and * if we're using stdio for input, then we want to use getc() * instead of fread(), to make sure we stop fetching input after * each newline. */ int yy_is_interactive; /* Whether we're considered to be at the beginning of a line. * If so, '^' rules will be active on the next match, otherwise * not. */ int yy_at_bol; int yy_bs_lineno; /**< The line count. */ int yy_bs_column; /**< The column count. */ /* Whether to try to fill the input buffer when we reach the * end of it. */ int yy_fill_buffer; int yy_buffer_status; #define YY_BUFFER_NEW 0 #define YY_BUFFER_NORMAL 1 /* When an EOF's been seen but there's still some text to process * then we mark the buffer as YY_EOF_PENDING, to indicate that we * shouldn't try reading from the input source any more. We might * still have a bunch of tokens to match, though, because of * possible backing-up. * * When we actually see the EOF, we change the status to "new" * (via yyrestart()), so that the user can continue scanning by * just pointing yyin at a new input file. */ #define YY_BUFFER_EOF_PENDING 2 }; #endif /* !YY_STRUCT_YY_BUFFER_STATE */ /* Stack of input buffers. */ static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */ static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */ static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */ /* We provide macros for accessing buffer states in case in the * future we want to put the buffer states in a more general * "scanner state". * * Returns the top of the stack, or NULL. */ #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \ ? (yy_buffer_stack)[(yy_buffer_stack_top)] \ : NULL) /* Same as previous macro, but useful when we know that the buffer stack is not * NULL or when we need an lvalue. For internal use only. */ #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)] /* yy_hold_char holds the character lost when yytext is formed. */ static char yy_hold_char; static yy_size_t yy_n_chars; /* number of characters read into yy_ch_buf */ yy_size_t yyleng; /* Points to current character in buffer. */ static char *yy_c_buf_p = (char *) 0; static int yy_init = 0; /* whether we need to initialize */ static int yy_start = 0; /* start state number */ /* Flag which is used to allow yywrap()'s to do buffer switches * instead of setting up a fresh yyin. A bit of a hack ... */ static int yy_did_buffer_switch_on_eof; void yyrestart (FILE *input_file ); void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ); YY_BUFFER_STATE yy_create_buffer (FILE *file,int size ); void yy_delete_buffer (YY_BUFFER_STATE b ); void yy_flush_buffer (YY_BUFFER_STATE b ); void yypush_buffer_state (YY_BUFFER_STATE new_buffer ); void yypop_buffer_state (void ); static void yyensure_buffer_stack (void ); static void yy_load_buffer_state (void ); static void yy_init_buffer (YY_BUFFER_STATE b,FILE *file ); #define YY_FLUSH_BUFFER yy_flush_buffer(YY_CURRENT_BUFFER ) YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size ); YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str ); YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,yy_size_t len ); void *yyalloc (yy_size_t ); void *yyrealloc (void *,yy_size_t ); void yyfree (void * ); #define yy_new_buffer yy_create_buffer #define yy_set_interactive(is_interactive) \ { \ if ( ! YY_CURRENT_BUFFER ){ \ yyensure_buffer_stack (); \ YY_CURRENT_BUFFER_LVALUE = \ yy_create_buffer(yyin,YY_BUF_SIZE ); \ } \ YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \ } #define yy_set_bol(at_bol) \ { \ if ( ! YY_CURRENT_BUFFER ){\ yyensure_buffer_stack (); \ YY_CURRENT_BUFFER_LVALUE = \ yy_create_buffer(yyin,YY_BUF_SIZE ); \ } \ YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \ } #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) /* Begin user sect3 */ #define yywrap() 1 #define YY_SKIP_YYWRAP typedef unsigned char YY_CHAR; FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0; typedef int yy_state_type; extern int yylineno; int yylineno = 1; extern char *yytext; #define yytext_ptr yytext static yy_state_type yy_get_previous_state (void ); static yy_state_type yy_try_NUL_trans (yy_state_type current_state ); static int yy_get_next_buffer (void ); static void yy_fatal_error (yyconst char msg[] ); /* Done after the current pattern has been matched and before the * corresponding action - sets up yytext. */ #define YY_DO_BEFORE_ACTION \ (yytext_ptr) = yy_bp; \ yyleng = (size_t) (yy_cp - yy_bp); \ (yy_hold_char) = *yy_cp; \ *yy_cp = '\0'; \ (yy_c_buf_p) = yy_cp; #define YY_NUM_RULES 53 #define YY_END_OF_BUFFER 54 /* This struct is not used in this scanner, but its presence is necessary. */ struct yy_trans_info { flex_int32_t yy_verify; flex_int32_t yy_nxt; }; static yyconst flex_int16_t yy_accept[558] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 54, 41, 38, 50, 41, 50, 39, 41, 41, 39, 39, 39, 39, 39, 35, 9, 9, 33, 35, 14, 35, 33, 35, 24, 35, 35, 35, 35, 35, 35,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0, 0, 0, 0, 12, 12, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 17, 17, 17, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 26, 26, 0, 0, 0, 0, 0, 0, 0, 0, 12, 12, 19, 19, 19, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 25, 25, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 21, 21, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 22, 22, 0, 52, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 28, 28, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 27, 0, 0, 0, 0, 0, 0, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } ; static yyconst flex_int32_t yy_ec[256] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 4, 5, 6, 1, 4, 7, 8, 9, 10, 11, 4, 4, 4, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 4, 4, 4, 4, 4, 1, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 25, 26, 27, 28, 29, 30, 25, 31, 32, 33, 34, 25, 35, 25, 36, 25, 37, 38, 39, 1, 40, 1, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 50, 51, 52, 53, 54, 55, 50, 56, 57, 58, 59, 60, 50, 61, 62, 63, 4, 4, 4, 64, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 } ; static yyconst flex_int32_t yy_meta[65] = { 0, 1, 2, 3, 1, 1, 1, 1, 1, 1, 4, 5, 1, 1, 6, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 1, 1, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 1 } ; static yyconst flex_int16_t yy_base[605] = { 0, 0, 64, 128, 14, 14, 15, 16, 18, 1220, 2336, 2336, 17, 1181, 17, 21, 38, 40, 31, 30, 32, 46, 39, 2336, 47, 49, 2336, 19, 2336, 1177, 1202, 45, 1199, 192, 256, 30, 34, 2, 64, 1173, 1208, 56, 65, 59, 58, 69, 71, 60, 70, 57, 177, 179, 180, 181, 2336, 209, 1208, 0, 2336, 1196, 1195, 208, 2336, 0, 1199, 1203, 2336, 2336, 1202, 103, 217, 1189, 239, 237, 1152, 1141, 1143, 1138, 1146, 242, 1153, 238, 268, 272, 274, 273, 124, 209, 2336, 1194, 1188, 1192, 1181, 2336, 1175, 1163, 2336, 275, 1147, 1160, 1145, 187, 192, 214, 191, 88, 1134, 2336, 2336, 194, 251, 262, 220, 195, 243, 270, 276, 225, 275, 271, 277, 282, 279, 272, 283, 278, 286, 288, 289, 294, 309, 343, 1170, 1169, 352, 0, 2336, 2336, 2336, 2336, 1167, 2336, 1167, 1127, 1109, 268, 1111, 1116, 1118, 359, 337, 360, 358, 374, 366, 2336, 2336, 1160, 2336, 348, 1147, 1159, 327, 292, 330, 420, 24, 336, 319, 329, 405, 407, 337, 335, 338, 342, 350, 484, 408, 409, 410, 343, 318, 411, 412, 414, 415, 417, 416, 413, 418, 431, 420, 419, 421, 1157, 2336, 546, 0, 1157, 496, 1101, 1112, 1098, 1096, 1106, 1096, 1100, 498, 500, 501, 499, 502, 504, 1146, 609, 478, 357, 480, 2336, 510, 1132, 495, 497, 422, 424, 425, 673, 427, 452, 481, 2336, 736, 525, 1131, 499, 434, 479, 500, 507, 504, 505, 501, 518, 503, 522, 509, 524, 529, 532, 795, 0, 560, 1088, 1088, 1094, 1099, 1097, 1087, 1086, 859, 570, 623, 568, 625, 923, 987, 547, 551, 549, 540, 599, 1051, 1115, 2336, 627, 1123, 601, 604, 0, 629, 1108, 1106, 621, 1081, 1086, 1088, 1079, 1077, 203, 1076, 607, 603, 625, 606, 612, 638, 614, 624, 629, 633, 630, 627, 1179, 2336, 688, 1099, 0, 0, 1060, 1069, 1053, 1065, 0, 1064, 2336, 690, 1093, 1243, 1307, 1371, 694, 2336, 691, 1092, 670, 666, 678, 640, 684, 2336, 699, 1091, 2336, 702, 1090, 1435, 1075, 1073, 1071, 1069, 1046, 1058, 1038, 519, 1044, 1042, 653, 1038, 623, 669, 701, 693, 689, 690, 695, 706, 1499, 691, 697, 2336, 730, 1079, 0, 0, 0, 0, 1047, 725, 2336, 731, 1077, 2336, 745, 1076, 2336, 748, 1072, 1563, 696, 726, 723, 552, 738, 2336, 756, 1071, 1059, 1066, 1064, 1049, 1030, 1024, 1039, 1038, 759, 1030, 1020, 1022, 1029, 1024, 735, 736, 752, 753, 741, 743, 1057, 2336, 773, 1056, 744, 1627, 0, 0, 809, 2336, 811, 1055, 748, 762, 793, 787, 754, 1029, 1045, 1027, 1025, 992, 991, 2336, 813, 990, 1002, 1006, 998, 788, 1691, 791, 790, 2336, 1042, 2336, 821, 1028, 0, 1009, 707, 800, 801, 789, 808, 1024, 1024, 1008, 1003, 993, 978, 820, 2336, 836, 1020, 824, 1755, 0, 998, 821, 823, 853, 855, 825, 854, 1009, 1001, 1011, 1006, 1819, 2336, 840, 1014, 0, 1019, 851, 815, 859, 857, 852, 828, 994, 983, 1000, 1002, 2336, 885, 1005, 0, 2336, 860, 873, 872, 870, 874, 998, 985, 975, 994, 0, 876, 908, 880, 988, 986, 977, 872, 0, 910, 938, 911, 913, 889, 988, 985, 981, 953, 961, 0, 913, 942, 946, 956, 961, 963, 957, 954, 948, 936, 946, 0, 965, 967, 2336, 969, 941, 935, 932, 919, 888, 2336, 917, 887, 748, 582, 1001, 438, 355, 1003, 73, 2336, 1883, 1893, 1903, 1913, 1923, 1932, 1942, 1952, 1962, 1972, 1981, 1991, 2001, 2011, 2021, 2031, 2041, 2050, 2059, 2069, 2078, 2088, 2098, 2108, 2118, 2127, 2136, 2146, 2155, 2164, 2173, 2182, 2191, 2201, 2209, 2219, 2229, 2239, 2249, 2259, 2269, 2278, 2288, 2297, 2307, 2316, 2325 } ; static yyconst flex_int16_t yy_def[605] = { 0, 558, 558, 557, 3, 559, 559, 559, 559, 557, 557, 557, 560, 561, 562, 563, 557, 557, 563, 563, 563, 563, 563, 557, 557, 557, 557, 564, 557, 565, 557, 557, 557, 566, 566, 34, 34, 34, 34, 567, 557, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 557, 557, 568, 569, 557, 570, 570, 560, 557, 560, 557, 561, 557, 557, 571, 557, 563, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 563, 563, 563, 563, 563, 557, 564, 557, 564, 557, 565, 557, 557, 572, 557, 557, 557, 34, 557, 34, 34, 34, 34, 34, 34, 567, 557, 557, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 557, 568, 568, 573, 574, 557, 557, 557, 557, 571, 557, 575, 557, 557, 557, 557, 557, 557, 563, 563, 563, 563, 563, 563, 557, 557, 572, 557, 557, 557, 576, 34, 34, 34, 566, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 566, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 573, 557, 573, 577, 575, 578, 557, 557, 557, 557, 557, 557, 557, 563, 563, 563, 563, 563, 563, 576, 579, 34, 34, 34, 557, 557, 557, 34, 34, 34, 34, 34, 566, 34, 34, 34, 557, 557, 232, 557, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 566, 580, 578, 557, 557, 557, 557, 557, 557, 557, 563, 563, 563, 563, 563, 563, 579, 34, 34, 34, 34, 34, 566, 566, 557, 557, 557, 34, 34, 232, 232, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 566, 557, 557, 557, 581, 582, 557, 557, 557, 557, 583, 557, 557, 557, 557, 563, 563, 563, 563, 557, 557, 557, 34, 34, 34, 34, 34, 557, 557, 557, 557, 557, 557, 566, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 34, 34, 34, 34, 34, 34, 34, 34, 566, 34, 34, 557, 557, 557, 584, 585, 586, 587, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 563, 34, 34, 34, 34, 34, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 588, 557, 557, 557, 557, 557, 34, 34, 34, 34, 34, 34, 589, 557, 557, 557, 34, 566, 590, 591, 557, 557, 557, 557, 34, 34, 34, 34, 34, 557, 557, 557, 557, 557, 557, 557, 232, 557, 557, 557, 557, 34, 566, 34, 34, 557, 592, 557, 557, 557, 593, 557, 34, 34, 34, 34, 34, 557, 557, 557, 557, 557, 557, 34, 557, 557, 557, 34, 566, 594, 557, 34, 34, 34, 34, 34, 34, 557, 557, 557, 557, 566, 557, 557, 557, 595, 557, 34, 34, 34, 34, 34, 34, 557, 557, 557, 557, 557, 557, 557, 596, 557, 34, 34, 34, 34, 34, 557, 557, 557, 557, 597, 34, 34, 34, 557, 557, 557, 557, 598, 34, 557, 557, 599, 34, 557, 557, 557, 557, 557, 600, 34, 557, 557, 599, 599, 601, 557, 557, 557, 557, 557, 602, 557, 557, 557, 601, 557, 557, 557, 557, 557, 557, 603, 557, 557, 603, 604, 557, 557, 604, 557, 0, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557 } ; static yyconst flex_int16_t yy_nxt[2401] = { 0, 10, 10, 11, 10, 12, 10, 10, 13, 10, 10, 10, 10, 14, 10, 10, 55, 58, 58, 58, 56, 58, 62, 69, 88, 59, 59, 60, 67, 60, 68, 98, 69, 69, 69, 103, 71, 10, 10, 10, 72, 69, 79, 222, 73, 71, 71, 71, 69, 86, 86, 86, 86, 98, 71, 63, 93, 89, 94, 98, 101, 71, 102, 98, 10, 10, 16, 11, 10, 12, 17, 10, 13, 10, 10, 10, 10, 14, 10, 10, 104, 74, 81, 75, 80, 98, 98, 98, 98, 98, 83, 82, 85, 105, 98, 76, 77, 78, 98, 98, 98, 10, 10, 10, 113, 69, 395, 18, 84, 19, 109, 114, 119, 110, 117, 118, 111, 98, 71, 112, 167, 20, 21, 22, 116, 115, 86, 86, 10, 23, 24, 25, 26, 27, 23, 28, 29, 26, 26, 26, 30, 31, 32, 26, 33, 34, 35, 33, 36, 33, 37, 38, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 39, 40, 23, 33, 33, 41, 42, 43, 44, 45, 33, 33, 46, 33, 47, 33, 48, 49, 50, 33, 51, 52, 53, 33, 33, 33, 33, 54, 96, 97, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 98, 99, 98, 98, 98, 131, 86, 62, 88, 132, 98, 163, 120, 69, 98, 98, 166, 98, 98, 127, 164, 124, 125, 96, 96, 96, 71, 121, 129, 122, 123, 126, 130, 79, 69, 72, 128, 98, 79, 73, 63, 89, 168, 98, 165, 346, 347, 71, 98, 172, 96, 96, 97, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 69, 99, 98, 171, 69, 69, 69, 159, 178, 149, 98, 80, 74, 71, 75, 100, 80, 71, 71, 71, 160, 98, 169, 96, 96, 96, 76, 77, 78, 98, 98, 98, 173, 170, 98, 98, 98, 98, 98, 203, 217, 98, 98, 151, 185, 98, 180, 98, 98, 174, 96, 98, 154, 98, 204, 187, 150, 175, 152, 153, 176, 182, 179, 181, 177, 184, 183, 186, 98, 69, 190, 188, 189, 192, 191, 131, 86, 98, 98, 132, 159, 193, 71, 216, 194, 196, 98, 218, 98, 98, 69, 69, 69, 160, 98, 98, 98, 98, 69, 223, 177, 98, 98, 71, 71, 71, 69, 226, 238, 98, 268, 71, 209, 228, 237, 177, 98, 227, 395, 71, 230, 229, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 208, 211, 210, 212, 213, 219, 220, 219, 219, 219, 219, 219, 219, 219, 219, 219, 219, 219, 98, 221, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 240, 98, 98, 177, 98, 219, 219, 219, 98, 244, 224, 98, 225, 241, 236, 235, 249, 239, 243, 242, 245, 246, 248, 292, 247, 250, 556, 272, 277, 98, 273, 177, 219, 231, 232, 233, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 69, 234, 69, 69, 69, 69, 69, 278, 69, 98, 98, 98, 98, 71, 159, 71, 71, 71, 71, 71, 267, 71, 269, 231, 231, 231, 98, 160, 98, 280, 98, 98, 98, 293, 98, 98, 98, 270, 98, 271, 98, 177, 557, 294, 263, 299, 291, 296, 264, 98, 231, 196, 262, 98, 295, 98, 297, 260, 261, 265, 98, 177, 301, 98, 69, 298, 325, 300, 327, 326, 302, 98, 69, 328, 69, 394, 422, 71, 98, 395, 98, 187, 98, 98, 303, 71, 551, 71, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 96, 97, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 318, 99, 69, 320, 69, 98, 159, 98, 280, 98, 98, 329, 98, 98, 339, 71, 351, 71, 98, 160, 98, 557, 336, 96, 96, 96, 336, 340, 349, 98, 98, 98, 354, 98, 356, 98, 98, 382, 350, 98, 401, 353, 352, 319, 98, 177, 98, 321, 358, 359, 96, 274, 275, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, 177, 276, 355, 159, 357, 69, 69, 379, 98, 69, 380, 98, 98, 398, 159, 381, 160, 159, 71, 71, 98, 383, 71, 274, 274, 274, 98, 160, 351, 399, 160, 98, 98, 98, 407, 98, 402, 98, 98, 98, 415, 415, 419, 98, 466, 159, 69, 404, 98, 98, 274, 279, 280, 378, 352, 403, 412, 406, 160, 71, 69, 405, 411, 69, 160, 98, 281, 282, 98, 421, 423, 159, 283, 71, 431, 431, 71, 98, 98, 420, 98, 407, 447, 98, 160, 98, 98, 451, 159, 554, 98, 284, 285, 286, 98, 98, 98, 439, 287, 438, 288, 160, 336, 436, 98, 336, 289, 448, 290, 304, 305, 304, 304, 304, 304, 304, 304, 304, 304, 304, 304, 304, 437, 306, 415, 415, 69, 449, 280, 98, 98, 98, 98, 98, 469, 98, 159, 467, 468, 71, 450, 557, 98, 98, 446, 304, 304, 304, 462, 160, 98, 159, 407, 470, 482, 159, 498, 98, 483, 458, 463, 471, 98, 98, 160, 98, 98, 98, 160, 501, 98, 486, 304, 315, 316, 315, 315, 315, 315, 315, 315, 315, 315, 315, 315, 315, 484, 317, 485, 476, 497, 487, 177, 98, 98, 98, 98, 98, 499, 98, 159, 98, 98, 177, 508, 500, 507, 509, 515, 315, 315, 315, 98, 160, 98, 98, 98, 523, 98, 553, 177, 519, 98, 516, 517, 524, 528, 528, 530, 530, 518, 98, 551, 529, 395, 177, 315, 322, 323, 322, 322, 322, 322, 322, 322, 322, 322, 322, 322, 322, 98, 324, 98, 527, 528, 98, 550, 527, 528, 177, 529, 528, 528, 526, 529, 549, 160, 395, 529, 548, 160, 530, 530, 322, 322, 322, 530, 530, 538, 539, 538, 539, 539, 539, 538, 539, 540, 546, 540, 545, 540, 542, 540, 542, 395, 544, 543, 542, 536, 535, 322, 96, 97, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 534, 99, 538, 539, 538, 539, 533, 532, 522, 521, 540, 520, 540, 513, 512, 542, 511, 542, 510, 161, 505, 504, 503, 96, 96, 96, 502, 496, 161, 491, 490, 489, 488, 481, 161, 395, 395, 475, 474, 473, 472, 465, 161, 214, 398, 457, 456, 395, 395, 395, 96, 330, 331, 330, 330, 330, 330, 330, 330, 330, 330, 330, 330, 330, 455, 332, 454, 453, 452, 142, 161, 441, 435, 434, 433, 432, 395, 429, 428, 395, 395, 427, 426, 425, 424, 161, 142, 330, 330, 330, 142, 142, 414, 161, 400, 397, 396, 393, 392, 391, 390, 389, 388, 387, 161, 161, 142, 142, 368, 367, 366, 365, 364, 161, 330, 333, 334, 333, 333, 333, 333, 333, 333, 333, 333, 333, 333, 333, 348, 335, 345, 344, 343, 342, 341, 338, 337, 161, 314, 313, 312, 311, 310, 309, 308, 161, 161, 214, 259, 258, 257, 333, 333, 333, 256, 255, 254, 253, 199, 196, 214, 161, 158, 207, 206, 205, 202, 201, 199, 141, 133, 133, 107, 162, 161, 98, 95, 158, 333, 360, 361, 360, 360, 360, 360, 360, 360, 360, 360, 360, 360, 360, 156, 362, 557, 155, 557, 148, 147, 146, 145, 144, 143, 142, 141, 557, 139, 138, 137, 133, 108, 107, 95, 92, 91, 360, 360, 360, 65, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 360, 369, 370, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 557, 371, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 369, 369, 369, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 369, 372, 373, 372, 372, 372, 372, 372, 372, 372, 372, 372, 372, 372, 557, 374, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 372, 372, 372, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 372, 375, 376, 375, 375, 375, 375, 375, 375, 375, 375, 375, 375, 375, 557, 377, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 375, 375, 375, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 375, 384, 385, 384, 384, 384, 384, 384, 384, 384, 384, 384, 384, 384, 557, 386, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 384, 384, 384, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 384, 408, 409, 408, 408, 408, 408, 408, 408, 408, 408, 408, 408, 408, 557, 410, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 408, 408, 408, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 408, 416, 417, 416, 416, 416, 416, 416, 416, 416, 416, 416, 416, 416, 557, 418, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 416, 416, 416, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 416, 442, 443, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 557, 444, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 442, 442, 442, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 442, 459, 460, 459, 459, 459, 459, 459, 459, 459, 459, 459, 459, 459, 557, 461, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 459, 459, 459, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 459, 477, 478, 477, 477, 477, 477, 477, 477, 477, 477, 477, 477, 477, 557, 479, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 477, 477, 477, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 477, 492, 493, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 557, 494, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 492, 492, 492, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 492, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 57, 57, 57, 57, 57, 57, 57, 57, 57, 57, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 70, 557, 557, 557, 70, 70, 70, 557, 70, 87, 87, 87, 87, 87, 87, 87, 87, 87, 87, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 98, 98, 98, 98, 98, 98, 98, 98, 98, 98, 106, 106, 106, 106, 106, 106, 106, 106, 557, 106, 134, 557, 557, 557, 557, 557, 557, 557, 134, 135, 135, 557, 135, 557, 135, 135, 135, 135, 135, 136, 136, 136, 136, 136, 136, 136, 136, 136, 136, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 157, 157, 157, 157, 157, 157, 157, 157, 157, 157, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 198, 198, 557, 198, 557, 198, 198, 198, 198, 198, 200, 557, 557, 557, 557, 557, 200, 557, 200, 215, 557, 557, 557, 557, 557, 215, 557, 215, 251, 251, 557, 251, 557, 251, 251, 251, 251, 251, 252, 557, 557, 557, 252, 252, 252, 557, 252, 266, 266, 266, 266, 266, 266, 266, 266, 266, 266, 307, 307, 557, 307, 557, 307, 307, 307, 307, 307, 363, 363, 557, 363, 557, 363, 363, 363, 363, 363, 315, 315, 315, 315, 315, 557, 315, 557, 315, 322, 322, 322, 322, 322, 557, 322, 557, 322, 413, 413, 557, 413, 557, 413, 413, 413, 413, 413, 369, 369, 369, 369, 369, 557, 369, 557, 369, 372, 372, 372, 372, 372, 557, 372, 557, 372, 375, 375, 375, 375, 375, 557, 375, 557, 375, 430, 430, 430, 430, 430, 557, 430, 557, 430, 440, 440, 440, 440, 440, 557, 440, 557, 440, 445, 445, 557, 445, 557, 445, 445, 445, 445, 445, 416, 416, 416, 416, 416, 557, 416, 557, 416, 215, 557, 557, 557, 557, 557, 215, 557, 215, 464, 464, 557, 464, 557, 464, 464, 464, 464, 464, 480, 480, 557, 480, 557, 480, 480, 480, 480, 480, 495, 495, 557, 495, 557, 495, 495, 495, 495, 495, 506, 506, 557, 506, 557, 506, 506, 506, 506, 506, 514, 514, 557, 514, 557, 514, 514, 514, 514, 514, 525, 525, 557, 525, 557, 525, 525, 525, 525, 525, 531, 531, 557, 557, 557, 557, 531, 557, 531, 537, 537, 557, 537, 557, 537, 537, 537, 537, 537, 541, 541, 541, 557, 541, 541, 541, 557, 541, 547, 547, 557, 547, 557, 547, 547, 547, 547, 547, 552, 557, 557, 557, 557, 557, 552, 557, 552, 555, 555, 555, 557, 555, 555, 555, 557, 555, 9, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557 } ; static yyconst flex_int16_t yy_chk[2401] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 4, 5, 6, 7, 4, 8, 12, 15, 27, 5, 6, 7, 14, 8, 14, 37, 19, 18, 20, 37, 15, 1, 1, 1, 16, 22, 17, 166, 16, 19, 18, 20, 21, 24, 24, 25, 25, 166, 22, 12, 31, 27, 31, 35, 35, 21, 36, 36, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 38, 16, 18, 16, 17, 41, 49, 44, 43, 47, 20, 19, 22, 38, 42, 16, 16, 16, 45, 48, 46, 2, 2, 2, 43, 69, 556, 2, 21, 2, 41, 44, 49, 42, 47, 48, 42, 105, 69, 42, 105, 2, 2, 2, 46, 45, 86, 86, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 50, 33, 51, 52, 53, 55, 55, 61, 87, 55, 101, 101, 50, 70, 104, 102, 104, 109, 113, 52, 102, 51, 51, 33, 33, 33, 70, 50, 53, 50, 50, 51, 53, 73, 81, 72, 52, 103, 79, 72, 61, 87, 109, 112, 103, 289, 289, 81, 117, 113, 33, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 82, 34, 114, 112, 83, 85, 84, 97, 117, 81, 110, 73, 72, 82, 72, 34, 79, 83, 85, 84, 97, 111, 110, 34, 34, 34, 72, 72, 72, 115, 119, 123, 114, 111, 118, 116, 120, 125, 122, 145, 163, 121, 124, 83, 123, 126, 119, 127, 128, 115, 34, 163, 85, 129, 145, 125, 82, 116, 83, 84, 116, 121, 118, 120, 116, 122, 121, 124, 130, 150, 127, 125, 126, 129, 128, 131, 131, 182, 168, 131, 159, 129, 150, 162, 130, 134, 162, 164, 169, 164, 152, 149, 151, 159, 173, 167, 172, 174, 154, 167, 168, 175, 181, 152, 149, 151, 153, 172, 182, 176, 217, 154, 150, 174, 181, 169, 217, 173, 554, 153, 176, 175, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 134, 149, 152, 151, 153, 154, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 170, 165, 171, 178, 179, 180, 183, 184, 189, 185, 186, 188, 187, 190, 193, 192, 194, 224, 184, 225, 226, 178, 228, 165, 165, 165, 191, 188, 170, 236, 171, 185, 180, 179, 193, 183, 187, 186, 189, 190, 192, 236, 191, 194, 553, 224, 228, 229, 225, 226, 165, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 200, 177, 208, 211, 209, 210, 212, 229, 213, 216, 237, 218, 230, 200, 220, 208, 211, 209, 210, 212, 216, 213, 218, 177, 177, 177, 222, 220, 223, 233, 235, 238, 242, 237, 244, 240, 241, 222, 239, 223, 246, 230, 233, 238, 211, 244, 235, 240, 212, 243, 177, 197, 210, 245, 239, 247, 241, 208, 209, 213, 248, 242, 246, 249, 252, 243, 267, 245, 269, 268, 247, 270, 263, 270, 261, 344, 382, 252, 267, 344, 269, 249, 268, 382, 248, 263, 551, 261, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 261, 215, 262, 263, 264, 271, 275, 277, 280, 292, 278, 271, 294, 291, 283, 262, 293, 264, 295, 275, 297, 280, 277, 215, 215, 215, 278, 283, 291, 349, 298, 293, 295, 302, 297, 299, 301, 328, 292, 300, 349, 294, 293, 262, 296, 298, 328, 264, 301, 302, 215, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 299, 227, 296, 305, 300, 316, 323, 325, 326, 321, 326, 350, 325, 347, 331, 327, 305, 334, 316, 323, 327, 329, 321, 227, 227, 227, 329, 331, 351, 347, 334, 353, 354, 358, 356, 352, 350, 355, 379, 359, 368, 368, 379, 351, 447, 361, 370, 353, 356, 447, 227, 232, 232, 321, 351, 352, 359, 355, 361, 370, 373, 354, 358, 376, 232, 381, 232, 232, 380, 381, 383, 385, 232, 373, 395, 395, 376, 401, 402, 380, 383, 404, 419, 405, 385, 406, 411, 423, 409, 550, 419, 232, 232, 232, 403, 404, 423, 406, 232, 405, 232, 409, 411, 401, 420, 402, 232, 420, 232, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 403, 250, 415, 415, 417, 421, 431, 422, 436, 450, 439, 438, 450, 421, 443, 448, 449, 417, 422, 431, 448, 449, 415, 250, 250, 250, 438, 443, 451, 460, 462, 451, 466, 478, 483, 483, 467, 436, 439, 451, 458, 466, 460, 467, 462, 470, 478, 487, 487, 470, 250, 260, 260, 260, 260, 260, 260, 260, 260, 260, 260, 260, 260, 260, 468, 260, 469, 458, 482, 471, 497, 482, 486, 468, 471, 469, 484, 485, 493, 484, 497, 485, 499, 486, 498, 500, 507, 260, 260, 260, 500, 493, 499, 498, 501, 513, 507, 549, 501, 509, 509, 508, 508, 513, 517, 517, 518, 518, 508, 519, 548, 517, 546, 519, 260, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 508, 265, 515, 516, 516, 526, 545, 527, 527, 526, 516, 528, 528, 515, 527, 544, 516, 543, 528, 542, 527, 529, 529, 265, 265, 265, 530, 530, 531, 531, 538, 538, 539, 539, 541, 541, 531, 536, 538, 535, 539, 531, 541, 538, 534, 533, 532, 541, 524, 523, 265, 266, 266, 266, 266, 266, 266, 266, 266, 266, 266, 266, 266, 266, 522, 266, 552, 552, 555, 555, 521, 520, 512, 511, 552, 510, 555, 505, 504, 552, 503, 555, 502, 494, 491, 490, 489, 266, 266, 266, 488, 481, 479, 475, 474, 473, 472, 465, 461, 457, 456, 455, 454, 453, 452, 446, 444, 441, 435, 434, 433, 432, 429, 428, 266, 272, 272, 272, 272, 272, 272, 272, 272, 272, 272, 272, 272, 272, 427, 272, 426, 425, 424, 418, 410, 407, 400, 399, 398, 397, 396, 394, 393, 392, 391, 390, 389, 388, 387, 386, 377, 272, 272, 272, 374, 371, 367, 362, 348, 346, 345, 343, 342, 341, 340, 339, 338, 337, 335, 332, 324, 317, 314, 312, 311, 310, 309, 306, 272, 273, 273, 273, 273, 273, 273, 273, 273, 273, 273, 273, 273, 273, 290, 273, 288, 287, 286, 285, 284, 282, 281, 276, 259, 258, 257, 256, 255, 254, 253, 234, 221, 214, 207, 206, 205, 273, 273, 273, 204, 203, 202, 201, 199, 195, 161, 160, 157, 148, 147, 146, 144, 143, 142, 140, 133, 132, 106, 100, 99, 98, 95, 94, 273, 303, 303, 303, 303, 303, 303, 303, 303, 303, 303, 303, 303, 303, 92, 303, 91, 90, 89, 80, 78, 77, 76, 75, 74, 71, 68, 65, 64, 60, 59, 56, 40, 39, 32, 30, 29, 303, 303, 303, 13, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 303, 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, 0, 318, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 318, 318, 318, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 318, 319, 319, 319, 319, 319, 319, 319, 319, 319, 319, 319, 319, 319, 0, 319, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 319, 319, 319, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 319, 320, 320, 320, 320, 320, 320, 320, 320, 320, 320, 320, 320, 320, 0, 320, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 320, 320, 320, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 320, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 0, 336, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 336, 336, 336, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 336, 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, 0, 357, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 357, 357, 357, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 357, 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, 0, 378, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 378, 378, 378, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 378, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 0, 412, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 412, 412, 412, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 412, 437, 437, 437, 437, 437, 437, 437, 437, 437, 437, 437, 437, 437, 0, 437, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 437, 437, 437, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 437, 463, 463, 463, 463, 463, 463, 463, 463, 463, 463, 463, 463, 463, 0, 463, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 463, 463, 463, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 463, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 0, 476, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 476, 476, 476, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 476, 558, 558, 558, 558, 558, 558, 558, 558, 558, 558, 559, 559, 559, 559, 559, 559, 559, 559, 559, 559, 560, 560, 560, 560, 560, 560, 560, 560, 560, 560, 561, 561, 561, 561, 561, 561, 561, 561, 561, 561, 562, 562, 562, 562, 562, 562, 562, 562, 562, 562, 563, 0, 0, 0, 563, 563, 563, 0, 563, 564, 564, 564, 564, 564, 564, 564, 564, 564, 564, 565, 565, 565, 565, 565, 565, 565, 565, 565, 565, 566, 566, 566, 566, 566, 566, 566, 566, 566, 566, 567, 567, 567, 567, 567, 567, 567, 567, 0, 567, 568, 0, 0, 0, 0, 0, 0, 0, 568, 569, 569, 0, 569, 0, 569, 569, 569, 569, 569, 570, 570, 570, 570, 570, 570, 570, 570, 570, 570, 571, 571, 571, 571, 571, 571, 571, 571, 571, 571, 572, 572, 572, 572, 572, 572, 572, 572, 572, 572, 573, 573, 573, 573, 573, 573, 573, 573, 573, 573, 574, 574, 0, 574, 0, 574, 574, 574, 574, 574, 575, 0, 0, 0, 0, 0, 575, 0, 575, 576, 0, 0, 0, 0, 0, 576, 0, 576, 577, 577, 0, 577, 0, 577, 577, 577, 577, 577, 578, 0, 0, 0, 578, 578, 578, 0, 578, 579, 579, 579, 579, 579, 579, 579, 579, 579, 579, 580, 580, 0, 580, 0, 580, 580, 580, 580, 580, 581, 581, 0, 581, 0, 581, 581, 581, 581, 581, 582, 582, 582, 582, 582, 0, 582, 0, 582, 583, 583, 583, 583, 583, 0, 583, 0, 583, 584, 584, 0, 584, 0, 584, 584, 584, 584, 584, 585, 585, 585, 585, 585, 0, 585, 0, 585, 586, 586, 586, 586, 586, 0, 586, 0, 586, 587, 587, 587, 587, 587, 0, 587, 0, 587, 588, 588, 588, 588, 588, 0, 588, 0, 588, 589, 589, 589, 589, 589, 0, 589, 0, 589, 590, 590, 0, 590, 0, 590, 590, 590, 590, 590, 591, 591, 591, 591, 591, 0, 591, 0, 591, 592, 0, 0, 0, 0, 0, 592, 0, 592, 593, 593, 0, 593, 0, 593, 593, 593, 593, 593, 594, 594, 0, 594, 0, 594, 594, 594, 594, 594, 595, 595, 0, 595, 0, 595, 595, 595, 595, 595, 596, 596, 0, 596, 0, 596, 596, 596, 596, 596, 597, 597, 0, 597, 0, 597, 597, 597, 597, 597, 598, 598, 0, 598, 0, 598, 598, 598, 598, 598, 599, 599, 0, 0, 0, 0, 599, 0, 599, 600, 600, 0, 600, 0, 600, 600, 600, 600, 600, 601, 601, 601, 0, 601, 601, 601, 0, 601, 602, 602, 0, 602, 0, 602, 602, 602, 602, 602, 603, 0, 0, 0, 0, 0, 603, 0, 603, 604, 604, 604, 0, 604, 604, 604, 0, 604, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557 } ; static yy_state_type yy_last_accepting_state; static char *yy_last_accepting_cpos; extern int yy_flex_debug; int yy_flex_debug = 0; /* The intent behind this definition is that it'll catch * any uses of REJECT which flex missed. */ #define REJECT reject_used_but_not_detected #define yymore() yymore_used_but_not_detected #define YY_MORE_ADJ 0 #define YY_RESTORE_YY_MORE_OFFSET char *yytext; #line 1 "/d/gcc-4.9.0/gcc-4.9.0/gcc/gengtype-lex.l" /* -*- indented-text -*- */ /* Process source files and output type information. Copyright (C) 2002-2014 Free Software Foundation, Inc. This file is part of GCC. GCC 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 3, or (at your option) any later version. GCC 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 GCC; see the file COPYING3. If not see <http://www.gnu.org/licenses/>. */ #define YY_NO_INPUT 1 #line 24 "/d/gcc-4.9.0/gcc-4.9.0/gcc/gengtype-lex.l" #ifdef GENERATOR_FILE #include "bconfig.h" #else #include "config.h" #endif #include "system.h" #define malloc xmalloc #define realloc xrealloc #include "gengtype.h" #define YY_DECL int yylex (const char **yylval) #define yyterminate() return EOF_TOKEN struct fileloc lexer_line; int lexer_toplevel_done; static void update_lineno (const char *l, size_t len) { while (len-- > 0) if (*l++ == '\n') lexer_line.line++; } /* Include '::' in identifiers to capture C++ scope qualifiers. */ #line 1227 "gengtype-lex.c" #define INITIAL 0 #define in_struct 1 #define in_struct_comment 2 #define in_comment 3 #ifndef YY_NO_UNISTD_H /* Special case for "unistd.h", since it is non-ANSI. We include it way * down here because we want the user's section 1 to have been scanned first. * The user has a chance to override it with an option. */ #include <unistd.h> #endif #ifndef YY_EXTRA_TYPE #define YY_EXTRA_TYPE void * #endif static int yy_init_globals (void ); /* Accessor methods to globals. These are made visible to non-reentrant scanners for convenience. */ int yylex_destroy (void ); int yyget_debug (void ); void yyset_debug (int debug_flag ); YY_EXTRA_TYPE yyget_extra (void ); void yyset_extra (YY_EXTRA_TYPE user_defined ); FILE *yyget_in (void ); void yyset_in (FILE * in_str ); FILE *yyget_out (void ); void yyset_out (FILE * out_str ); yy_size_t yyget_leng (void ); char *yyget_text (void ); int yyget_lineno (void ); void yyset_lineno (int line_number ); /* Macros after this point can all be overridden by user definitions in * section 1. */ #ifndef YY_SKIP_YYWRAP #ifdef __cplusplus extern "C" int yywrap (void ); #else extern int yywrap (void ); #endif #endif #ifndef yytext_ptr static void yy_flex_strncpy (char *,yyconst char *,int ); #endif #ifdef YY_NEED_STRLEN static int yy_flex_strlen (yyconst char * ); #endif #ifndef YY_NO_INPUT #ifdef __cplusplus static int yyinput (void ); #else static int input (void ); #endif #endif /* Amount of stuff to slurp up with each read. */ #ifndef YY_READ_BUF_SIZE #define YY_READ_BUF_SIZE 8192 #endif /* Copy whatever the last rule matched to the standard output. */ #ifndef ECHO /* This used to be an fputs(), but since the string might contain NUL's, * we now use fwrite(). */ #define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0) #endif /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL, * is returned in "result". */ #ifndef YY_INPUT #define YY_INPUT(buf,result,max_size) \ if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \ { \ int c = '*'; \ size_t n; \ for ( n = 0; n < max_size && \ (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ buf[n] = (char) c; \ if ( c == '\n' ) \ buf[n++] = (char) c; \ if ( c == EOF && ferror( yyin ) ) \ YY_FATAL_ERROR( "input in flex scanner failed" ); \ result = n; \ } \ else \ { \ errno=0; \ while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \ { \ if( errno != EINTR) \ { \ YY_FATAL_ERROR( "input in flex scanner failed" ); \ break; \ } \ errno=0; \ clearerr(yyin); \ } \ }\ \ #endif /* No semi-colon after return; correct usage is to write "yyterminate();" - * we don't want an extra ';' after the "return" because that will cause * some compilers to complain about unreachable statements. */ #ifndef yyterminate #define yyterminate() return YY_NULL #endif /* Number of entries by which start-condition stack grows. */ #ifndef YY_START_STACK_INCR #define YY_START_STACK_INCR 25 #endif /* Report a fatal error. */ #ifndef YY_FATAL_ERROR #define YY_FATAL_ERROR(msg) yy_fatal_error( msg ) #endif /* end tables serialization structures and prototypes */ /* Default declaration of generated scanner - a define so the user can * easily add parameters. */ #ifndef YY_DECL #define YY_DECL_IS_OURS 1 extern int yylex (void); #define YY_DECL int yylex (void) #endif /* !YY_DECL */ /* Code executed at the beginning of each rule, after yytext and yyleng * have been set up. */ #ifndef YY_USER_ACTION #define YY_USER_ACTION #endif /* Code executed at the end of each rule. */ #ifndef YY_BREAK #define YY_BREAK break; #endif #define YY_RULE_SETUP \ if ( yyleng > 0 ) \ YY_CURRENT_BUFFER_LVALUE->yy_at_bol = \ (yytext[yyleng - 1] == '\n'); \ YY_USER_ACTION /** The main scanner function which does all the work. */ YY_DECL { register yy_state_type yy_current_state; register char *yy_cp, *yy_bp; register int yy_act; #line 65 "/d/gcc-4.9.0/gcc-4.9.0/gcc/gengtype-lex.l" /* Do this on entry to yylex(): */ *yylval = 0; if (lexer_toplevel_done) { BEGIN(INITIAL); lexer_toplevel_done = 0; } /* Things we look for in skipping mode: */ #line 1424 "gengtype-lex.c" if ( !(yy_init) ) { (yy_init) = 1; #ifdef YY_USER_INIT YY_USER_INIT; #endif if ( ! (yy_start) ) (yy_start) = 1; /* first start state */ if ( ! yyin ) yyin = stdin; if ( ! yyout ) yyout = stdout; if ( ! YY_CURRENT_BUFFER ) { yyensure_buffer_stack (); YY_CURRENT_BUFFER_LVALUE = yy_create_buffer(yyin,YY_BUF_SIZE ); } yy_load_buffer_state( ); } while ( 1 ) /* loops until end-of-file is reached */ { yy_cp = (yy_c_buf_p); /* Support of yytext. */ *yy_cp = (yy_hold_char); /* yy_bp points to the position in yy_ch_buf of the start of * the current run. */ yy_bp = yy_cp; yy_current_state = (yy_start); yy_current_state += YY_AT_BOL(); yy_match: do { register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)]; if ( yy_accept[yy_current_state] ) { (yy_last_accepting_state) = yy_current_state; (yy_last_accepting_cpos) = yy_cp; } while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) { yy_current_state = (int) yy_def[yy_current_state]; if ( yy_current_state >= 558 ) yy_c = yy_meta[(unsigned int) yy_c]; } yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; ++yy_cp; } while ( yy_current_state != 557 ); yy_cp = (yy_last_accepting_cpos); yy_current_state = (yy_last_accepting_state); yy_find_action: yy_act = yy_accept[yy_current_state]; YY_DO_BEFORE_ACTION; do_action: /* This label is used only to access EOF actions. */ switch ( yy_act ) { /* beginning of action switch */ case 0: /* must back up */ /* undo the effects of YY_DO_BEFORE_ACTION */ *yy_cp = (yy_hold_char); yy_cp = (yy_last_accepting_cpos); yy_current_state = (yy_last_accepting_state); goto yy_find_action; case 1: /* rule 1 can match eol */ *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ (yy_c_buf_p) = yy_cp -= 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 76 "/d/gcc-4.9.0/gcc-4.9.0/gcc/gengtype-lex.l" { BEGIN(in_struct); return TYPEDEF; } YY_BREAK case 2: /* rule 2 can match eol */ *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ (yy_c_buf_p) = yy_cp -= 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 80 "/d/gcc-4.9.0/gcc-4.9.0/gcc/gengtype-lex.l" { BEGIN(in_struct); return STRUCT; } YY_BREAK case 3: /* rule 3 can match eol */ *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ (yy_c_buf_p) = yy_cp -= 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 84 "/d/gcc-4.9.0/gcc-4.9.0/gcc/gengtype-lex.l" { BEGIN(in_struct); return UNION; } YY_BREAK case 4: /* rule 4 can match eol */ *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ (yy_c_buf_p) = yy_cp -= 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 88 "/d/gcc-4.9.0/gcc-4.9.0/gcc/gengtype-lex.l" { BEGIN(in_struct); return STRUCT; } YY_BREAK case 5: /* rule 5 can match eol */ *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ (yy_c_buf_p) = yy_cp -= 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 92 "/d/gcc-4.9.0/gcc-4.9.0/gcc/gengtype-lex.l" { BEGIN(in_struct); return EXTERN; } YY_BREAK case 6: /* rule 6 can match eol */ *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ (yy_c_buf_p) = yy_cp -= 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 96 "/d/gcc-4.9.0/gcc-4.9.0/gcc/gengtype-lex.l" { BEGIN(in_struct); return STATIC; } YY_BREAK /* Parsing inside a struct, union or class declaration. */ case 7: YY_RULE_SETUP #line 104 "/d/gcc-4.9.0/gcc-4.9.0/gcc/gengtype-lex.l" { BEGIN(in_struct_comment); } YY_BREAK case 8: /* rule 8 can match eol */ YY_RULE_SETUP #line 105 "/d/gcc-4.9.0/gcc-4.9.0/gcc/gengtype-lex.l" { lexer_line.line++; } YY_BREAK case 9: /* rule 9 can match eol */ YY_RULE_SETUP #line 107 "/d/gcc-4.9.0/gcc-4.9.0/gcc/gengtype-lex.l" { update_lineno (yytext, yyleng); } YY_BREAK case 10: /* rule 10 can match eol */ YY_RULE_SETUP #line 108 "/d/gcc-4.9.0/gcc-4.9.0/gcc/gengtype-lex.l" { lexer_line.line++; } YY_BREAK case 11: /* rule 11 can match eol */ *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ (yy_c_buf_p) = yy_cp = yy_bp + 5; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 110 "/d/gcc-4.9.0/gcc-4.9.0/gcc/gengtype-lex.l" /* don't care */ YY_BREAK case 12: /* rule 12 can match eol */ *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ (yy_c_buf_p) = yy_cp -= 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ #line 112 "/d/gcc-4.9.0/gcc-4.9.0/gcc/gengtype-lex.l" case 13: /* rule 13 can match eol */ #line 113 "/d/gcc-4.9.0/gcc-4.9.0/gcc/gengtype-lex.l" case 14: /* rule 14 can match eol */ YY_RULE_SETUP #line 113 "/d/gcc-4.9.0/gcc-4.9.0/gcc/gengtype-lex.l" { *yylval = XDUPVAR (const char, yytext, yyleng, yyleng + 1); return IGNORABLE_CXX_KEYWORD; } YY_BREAK case 15: /* rule 15 can match eol */ *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ (yy_c_buf_p) = yy_cp = yy_bp + 3; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 117 "/d/gcc-4.9.0/gcc-4.9.0/gcc/gengtype-lex.l" { return GTY_TOKEN; } YY_BREAK case 16: /* rule 16 can match eol */ *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ (yy_c_buf_p) = yy_cp = yy_bp + 5; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 118 "/d/gcc-4.9.0/gcc-4.9.0/gcc/gengtype-lex.l" { return UNION; } YY_BREAK case 17: /* rule 17 can match eol */ *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ (yy_c_buf_p) = yy_cp = yy_bp + 6; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 119 "/d/gcc-4.9.0/gcc-4.9.0/gcc/gengtype-lex.l" { return STRUCT; } YY_BREAK case 18: /* rule 18 can match eol */ *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ (yy_c_buf_p) = yy_cp = yy_bp + 5; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 120 "/d/gcc-4.9.0/gcc-4.9.0/gcc/gengtype-lex.l" { return STRUCT; } YY_BREAK case 19: /* rule 19 can match eol */ *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ (yy_c_buf_p) = yy_cp = yy_bp + 7; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 121 "/d/gcc-4.9.0/gcc-4.9.0/gcc/gengtype-lex.l" { return TYPEDEF; } YY_BREAK case 20: /* rule 20 can match eol */ *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ (yy_c_buf_p) = yy_cp = yy_bp + 4; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 122 "/d/gcc-4.9.0/gcc-4.9.0/gcc/gengtype-lex.l" { return ENUM; } YY_BREAK case 21: /* rule 21 can match eol */ *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ (yy_c_buf_p) = yy_cp = yy_bp + 9; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 123 "/d/gcc-4.9.0/gcc-4.9.0/gcc/gengtype-lex.l" { return PTR_ALIAS; } YY_BREAK case 22: /* rule 22 can match eol */ *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ (yy_c_buf_p) = yy_cp = yy_bp + 10; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 124 "/d/gcc-4.9.0/gcc-4.9.0/gcc/gengtype-lex.l" { return NESTED_PTR; } YY_BREAK case 23: /* rule 23 can match eol */ *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ (yy_c_buf_p) = yy_cp = yy_bp + 4; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 125 "/d/gcc-4.9.0/gcc-4.9.0/gcc/gengtype-lex.l" { return USER_GTY; } YY_BREAK case 24: YY_RULE_SETUP #line 126 "/d/gcc-4.9.0/gcc-4.9.0/gcc/gengtype-lex.l" { return NUM; } YY_BREAK case 25: /* rule 25 can match eol */ *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ (yy_c_buf_p) = yy_cp -= 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 127 "/d/gcc-4.9.0/gcc-4.9.0/gcc/gengtype-lex.l" { *yylval = XDUPVAR (const char, yytext, yyleng, yyleng+1); return PARAM_IS; } YY_BREAK case 26: /* rule 26 can match eol */ *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ (yy_c_buf_p) = yy_cp -= 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ #line 133 "/d/gcc-4.9.0/gcc-4.9.0/gcc/gengtype-lex.l" case 27: /* rule 27 can match eol */ YY_RULE_SETUP #line 133 "/d/gcc-4.9.0/gcc-4.9.0/gcc/gengtype-lex.l" { size_t len; for (len = yyleng; ISSPACE (yytext[len-1]); len--) ; *yylval = XDUPVAR (const char, yytext, len, len+1); update_lineno (yytext, yyleng); return SCALAR; } YY_BREAK case 28: /* rule 28 can match eol */ *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ (yy_c_buf_p) = yy_cp -= 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 144 "/d/gcc-4.9.0/gcc-4.9.0/gcc/gengtype-lex.l" { *yylval = XDUPVAR (const char, yytext, yyleng, yyleng+1); return ID; } YY_BREAK case 29: /* rule 29 can match eol */ YY_RULE_SETUP #line 149 "/d/gcc-4.9.0/gcc-4.9.0/gcc/gengtype-lex.l" { *yylval = XDUPVAR (const char, yytext+1, yyleng-2, yyleng-1); return STRING; } YY_BREAK /* This "terminal" avoids having to parse integer constant expressions. */ case 30: /* rule 30 can match eol */ YY_RULE_SETUP #line 154 "/d/gcc-4.9.0/gcc-4.9.0/gcc/gengtype-lex.l" { *yylval = XDUPVAR (const char, yytext+1, yyleng-2, yyleng-1); return ARRAY; } YY_BREAK case 31: /* rule 31 can match eol */ YY_RULE_SETUP #line 158 "/d/gcc-4.9.0/gcc-4.9.0/gcc/gengtype-lex.l" { *yylval = XDUPVAR (const char, yytext+1, yyleng-2, yyleng); return CHAR; } YY_BREAK case 32: YY_RULE_SETUP #line 163 "/d/gcc-4.9.0/gcc-4.9.0/gcc/gengtype-lex.l" { return ELLIPSIS; } YY_BREAK case 33: YY_RULE_SETUP #line 164 "/d/gcc-4.9.0/gcc-4.9.0/gcc/gengtype-lex.l" { return yytext[0]; } YY_BREAK /* ignore pp-directives */ case 34: /* rule 34 can match eol */ YY_RULE_SETUP #line 167 "/d/gcc-4.9.0/gcc-4.9.0/gcc/gengtype-lex.l" {lexer_line.line++;} YY_BREAK case 35: YY_RULE_SETUP #line 169 "/d/gcc-4.9.0/gcc-4.9.0/gcc/gengtype-lex.l" { error_at_line (&lexer_line, "unexpected character `%s'", yytext); } YY_BREAK case 36: YY_RULE_SETUP #line 174 "/d/gcc-4.9.0/gcc-4.9.0/gcc/gengtype-lex.l" { BEGIN(in_comment); } YY_BREAK case 37: /* rule 37 can match eol */ YY_RULE_SETUP #line 175 "/d/gcc-4.9.0/gcc-4.9.0/gcc/gengtype-lex.l" { lexer_line.line++; } YY_BREAK case 38: /* rule 38 can match eol */ YY_RULE_SETUP #line 176 "/d/gcc-4.9.0/gcc-4.9.0/gcc/gengtype-lex.l" { lexer_line.line++; } YY_BREAK case 39: #line 178 "/d/gcc-4.9.0/gcc-4.9.0/gcc/gengtype-lex.l" case 40: /* rule 40 can match eol */ #line 179 "/d/gcc-4.9.0/gcc-4.9.0/gcc/gengtype-lex.l" case 41: /* rule 41 can match eol */ YY_RULE_SETUP #line 179 "/d/gcc-4.9.0/gcc-4.9.0/gcc/gengtype-lex.l" /* do nothing */ YY_BREAK case 42: /* rule 42 can match eol */ YY_RULE_SETUP #line 180 "/d/gcc-4.9.0/gcc-4.9.0/gcc/gengtype-lex.l" { update_lineno (yytext, yyleng); } YY_BREAK case 43: /* rule 43 can match eol */ *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ (yy_c_buf_p) = yy_cp = yy_bp + 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 181 "/d/gcc-4.9.0/gcc-4.9.0/gcc/gengtype-lex.l" /* do nothing */ YY_BREAK case 44: /* rule 44 can match eol */ YY_RULE_SETUP #line 184 "/d/gcc-4.9.0/gcc-4.9.0/gcc/gengtype-lex.l" { lexer_line.line++; } YY_BREAK case 45: #line 186 "/d/gcc-4.9.0/gcc-4.9.0/gcc/gengtype-lex.l" case 46: YY_RULE_SETUP #line 186 "/d/gcc-4.9.0/gcc-4.9.0/gcc/gengtype-lex.l" /* do nothing */ YY_BREAK case 47: /* rule 47 can match eol */ *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ (yy_c_buf_p) = yy_cp = yy_bp + 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 187 "/d/gcc-4.9.0/gcc-4.9.0/gcc/gengtype-lex.l" /* do nothing */ YY_BREAK case 48: YY_RULE_SETUP #line 190 "/d/gcc-4.9.0/gcc-4.9.0/gcc/gengtype-lex.l" { BEGIN(INITIAL); } YY_BREAK case 49: YY_RULE_SETUP #line 191 "/d/gcc-4.9.0/gcc-4.9.0/gcc/gengtype-lex.l" { BEGIN(in_struct); } YY_BREAK case 50: #line 194 "/d/gcc-4.9.0/gcc-4.9.0/gcc/gengtype-lex.l" case 51: YY_RULE_SETUP #line 194 "/d/gcc-4.9.0/gcc-4.9.0/gcc/gengtype-lex.l" { error_at_line (&lexer_line, "unterminated comment or string; unexpected EOF"); } YY_BREAK case 52: /* rule 52 can match eol */ YY_RULE_SETUP #line 199 "/d/gcc-4.9.0/gcc-4.9.0/gcc/gengtype-lex.l" /* do nothing */ YY_BREAK case 53: YY_RULE_SETUP #line 201 "/d/gcc-4.9.0/gcc-4.9.0/gcc/gengtype-lex.l" YY_FATAL_ERROR( "flex scanner jammed" ); YY_BREAK #line 1911 "gengtype-lex.c" case YY_STATE_EOF(INITIAL): case YY_STATE_EOF(in_struct): case YY_STATE_EOF(in_struct_comment): case YY_STATE_EOF(in_comment): yyterminate(); case YY_END_OF_BUFFER: { /* Amount of text matched not including the EOB char. */ int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1; /* Undo the effects of YY_DO_BEFORE_ACTION. */ *yy_cp = (yy_hold_char); YY_RESTORE_YY_MORE_OFFSET if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW ) { /* We're scanning a new file or input source. It's * possible that this happened because the user * just pointed yyin at a new source and called * yylex(). If so, then we have to assure * consistency between YY_CURRENT_BUFFER and our * globals. Here is the right place to do so, because * this is the first action (other than possibly a * back-up) that will match for the new input source. */ (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin; YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL; } /* Note that here we test for yy_c_buf_p "<=" to the position * of the first EOB in the buffer, since yy_c_buf_p will * already have been incremented past the NUL character * (since all states make transitions on EOB to the * end-of-buffer state). Contrast this with the test * in input(). */ if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] ) { /* This was really a NUL. */ yy_state_type yy_next_state; (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text; yy_current_state = yy_get_previous_state( ); /* Okay, we're now positioned to make the NUL * transition. We couldn't have * yy_get_previous_state() go ahead and do it * for us because it doesn't know how to deal * with the possibility of jamming (and we don't * want to build jamming into it because then it * will run more slowly). */ yy_next_state = yy_try_NUL_trans( yy_current_state ); yy_bp = (yytext_ptr) + YY_MORE_ADJ; if ( yy_next_state ) { /* Consume the NUL. */ yy_cp = ++(yy_c_buf_p); yy_current_state = yy_next_state; goto yy_match; } else { yy_cp = (yy_last_accepting_cpos); yy_current_state = (yy_last_accepting_state); goto yy_find_action; } } else switch ( yy_get_next_buffer( ) ) { case EOB_ACT_END_OF_FILE: { (yy_did_buffer_switch_on_eof) = 0; if ( yywrap( ) ) { /* Note: because we've taken care in * yy_get_next_buffer() to have set up * yytext, we can now set up * yy_c_buf_p so that if some total * hoser (like flex itself) wants to * call the scanner after we return the * YY_NULL, it'll still work - another * YY_NULL will get returned. */ (yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ; yy_act = YY_STATE_EOF(YY_START); goto do_action; } else { if ( ! (yy_did_buffer_switch_on_eof) ) YY_NEW_FILE; } break; } case EOB_ACT_CONTINUE_SCAN: (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text; yy_current_state = yy_get_previous_state( ); yy_cp = (yy_c_buf_p); yy_bp = (yytext_ptr) + YY_MORE_ADJ; goto yy_match; case EOB_ACT_LAST_MATCH: (yy_c_buf_p) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)]; yy_current_state = yy_get_previous_state( ); yy_cp = (yy_c_buf_p); yy_bp = (yytext_ptr) + YY_MORE_ADJ; goto yy_find_action; } break; } default: YY_FATAL_ERROR( "fatal flex scanner internal error--no action found" ); } /* end of action switch */ } /* end of scanning one token */ } /* end of yylex */ /* yy_get_next_buffer - try to read in a new buffer * * Returns a code representing an action: * EOB_ACT_LAST_MATCH - * EOB_ACT_CONTINUE_SCAN - continue scanning from current position * EOB_ACT_END_OF_FILE - end of file */ static int yy_get_next_buffer (void) { register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf; register char *source = (yytext_ptr); register int number_to_move, i; int ret_val; if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] ) YY_FATAL_ERROR( "fatal flex scanner internal error--end of buffer missed" ); if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 ) { /* Don't try to fill the buffer, so this is an EOF. */ if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 ) { /* We matched a single character, the EOB, so * treat this as a final EOF. */ return EOB_ACT_END_OF_FILE; } else { /* We matched some text prior to the EOB, first * process it. */ return EOB_ACT_LAST_MATCH; } } /* Try to read more data. */ /* First move last chars to start of buffer. */ number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr)) - 1; for ( i = 0; i < number_to_move; ++i ) *(dest++) = *(source++); if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING ) /* don't do the read, it's not guaranteed to return an EOF, * just force an EOF */ YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0; else { yy_size_t num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; while ( num_to_read <= 0 ) { /* Not enough room in the buffer - grow it. */ /* just a shorter name for the current buffer */ YY_BUFFER_STATE b = YY_CURRENT_BUFFER_LVALUE; int yy_c_buf_p_offset = (int) ((yy_c_buf_p) - b->yy_ch_buf); if ( b->yy_is_our_buffer ) { yy_size_t new_size = b->yy_buf_size * 2; if ( new_size <= 0 ) b->yy_buf_size += b->yy_buf_size / 8; else b->yy_buf_size *= 2; b->yy_ch_buf = (char *) /* Include room in for 2 EOB chars. */ yyrealloc((void *) b->yy_ch_buf,b->yy_buf_size + 2 ); } else /* Can't grow it, we don't own it. */ b->yy_ch_buf = 0; if ( ! b->yy_ch_buf ) YY_FATAL_ERROR( "fatal error - scanner input buffer overflow" ); (yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset]; num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; } if ( num_to_read > YY_READ_BUF_SIZE ) num_to_read = YY_READ_BUF_SIZE; /* Read in more data. */ YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]), (yy_n_chars), num_to_read ); YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); } if ( (yy_n_chars) == 0 ) { if ( number_to_move == YY_MORE_ADJ ) { ret_val = EOB_ACT_END_OF_FILE; yyrestart(yyin ); } else { ret_val = EOB_ACT_LAST_MATCH; YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_EOF_PENDING; } } else ret_val = EOB_ACT_CONTINUE_SCAN; if ((yy_size_t) ((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) { /* Extend the array by 50%, plus the number we really need. */ yy_size_t new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1); YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size ); if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" ); } (yy_n_chars) += number_to_move; YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR; YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR; (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0]; return ret_val; } /* yy_get_previous_state - get the state just before the EOB char was reached */ static yy_state_type yy_get_previous_state (void) { register yy_state_type yy_current_state; register char *yy_cp; yy_current_state = (yy_start); yy_current_state += YY_AT_BOL(); for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp ) { register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); if ( yy_accept[yy_current_state] ) { (yy_last_accepting_state) = yy_current_state; (yy_last_accepting_cpos) = yy_cp; } while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) { yy_current_state = (int) yy_def[yy_current_state]; if ( yy_current_state >= 558 ) yy_c = yy_meta[(unsigned int) yy_c]; } yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; } return yy_current_state; } /* yy_try_NUL_trans - try to make a transition on the NUL character * * synopsis * next_state = yy_try_NUL_trans( current_state ); */ static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state ) { register int yy_is_jam; register char *yy_cp = (yy_c_buf_p); register YY_CHAR yy_c = 1; if ( yy_accept[yy_current_state] ) { (yy_last_accepting_state) = yy_current_state; (yy_last_accepting_cpos) = yy_cp; } while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) { yy_current_state = (int) yy_def[yy_current_state]; if ( yy_current_state >= 558 ) yy_c = yy_meta[(unsigned int) yy_c]; } yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; yy_is_jam = (yy_current_state == 557); return yy_is_jam ? 0 : yy_current_state; } #ifndef YY_NO_INPUT #ifdef __cplusplus static int yyinput (void) #else static int input (void) #endif { int c; *(yy_c_buf_p) = (yy_hold_char); if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR ) { /* yy_c_buf_p now points to the character we want to return. * If this occurs *before* the EOB characters, then it's a * valid NUL; if not, then we've hit the end of the buffer. */ if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] ) /* This was really a NUL. */ *(yy_c_buf_p) = '\0'; else { /* need more input */ yy_size_t offset = (yy_c_buf_p) - (yytext_ptr); ++(yy_c_buf_p); switch ( yy_get_next_buffer( ) ) { case EOB_ACT_LAST_MATCH: /* This happens because yy_g_n_b() * sees that we've accumulated a * token and flags that we need to * try matching the token before * proceeding. But for input(), * there's no matching to consider. * So convert the EOB_ACT_LAST_MATCH * to EOB_ACT_END_OF_FILE. */ /* Reset buffer status. */ yyrestart(yyin ); /*FALLTHROUGH*/ case EOB_ACT_END_OF_FILE: { if ( yywrap( ) ) return EOF; if ( ! (yy_did_buffer_switch_on_eof) ) YY_NEW_FILE; #ifdef __cplusplus return yyinput(); #else return input(); #endif } case EOB_ACT_CONTINUE_SCAN: (yy_c_buf_p) = (yytext_ptr) + offset; break; } } } c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */ *(yy_c_buf_p) = '\0'; /* preserve yytext */ (yy_hold_char) = *++(yy_c_buf_p); YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (c == '\n'); return c; } #endif /* ifndef YY_NO_INPUT */ /** Immediately switch to a different input stream. * @param input_file A readable stream. * * @note This function does not reset the start condition to @c INITIAL . */ void yyrestart (FILE * input_file ) { if ( ! YY_CURRENT_BUFFER ){ yyensure_buffer_stack (); YY_CURRENT_BUFFER_LVALUE = yy_create_buffer(yyin,YY_BUF_SIZE ); } yy_init_buffer(YY_CURRENT_BUFFER,input_file ); yy_load_buffer_state( ); } /** Switch to a different input buffer. * @param new_buffer The new input buffer. * */ void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ) { /* TODO. We should be able to replace this entire function body * with * yypop_buffer_state(); * yypush_buffer_state(new_buffer); */ yyensure_buffer_stack (); if ( YY_CURRENT_BUFFER == new_buffer ) return; if ( YY_CURRENT_BUFFER ) { /* Flush out information for old buffer. */ *(yy_c_buf_p) = (yy_hold_char); YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p); YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); } YY_CURRENT_BUFFER_LVALUE = new_buffer; yy_load_buffer_state( ); /* We don't actually know whether we did this switch during * EOF (yywrap()) processing, but the only time this flag * is looked at is after yywrap() is called, so it's safe * to go ahead and always set it. */ (yy_did_buffer_switch_on_eof) = 1; } static void yy_load_buffer_state (void) { (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos; yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file; (yy_hold_char) = *(yy_c_buf_p); } /** Allocate and initialize an input buffer state. * @param file A readable stream. * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE. * * @return the allocated buffer state. */ YY_BUFFER_STATE yy_create_buffer (FILE * file, int size ) { YY_BUFFER_STATE b; b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) ); if ( ! b ) YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); b->yy_buf_size = size; /* yy_ch_buf has to be 2 characters longer than the size given because * we need to put in 2 end-of-buffer characters. */ b->yy_ch_buf = (char *) yyalloc(b->yy_buf_size + 2 ); if ( ! b->yy_ch_buf ) YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); b->yy_is_our_buffer = 1; yy_init_buffer(b,file ); return b; } /** Destroy the buffer. * @param b a buffer created with yy_create_buffer() * */ void yy_delete_buffer (YY_BUFFER_STATE b ) { if ( ! b ) return; if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */ YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0; if ( b->yy_is_our_buffer ) yyfree((void *) b->yy_ch_buf ); yyfree((void *) b ); } /* Initializes or reinitializes a buffer. * This function is sometimes called more than once on the same buffer, * such as during a yyrestart() or at EOF. */ static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file ) { int oerrno = errno; yy_flush_buffer(b ); b->yy_input_file = file; b->yy_fill_buffer = 1; /* If b is the current buffer, then yy_init_buffer was _probably_ * called from yyrestart() or through yy_get_next_buffer. * In that case, we don't want to reset the lineno or column. */ if (b != YY_CURRENT_BUFFER){ b->yy_bs_lineno = 1; b->yy_bs_column = 0; } b->yy_is_interactive = 0; errno = oerrno; } /** Discard all buffered characters. On the next scan, YY_INPUT will be called. * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER. * */ void yy_flush_buffer (YY_BUFFER_STATE b ) { if ( ! b ) return; b->yy_n_chars = 0; /* We always need two end-of-buffer characters. The first causes * a transition to the end-of-buffer state. The second causes * a jam in that state. */ b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR; b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR; b->yy_buf_pos = &b->yy_ch_buf[0]; b->yy_at_bol = 1; b->yy_buffer_status = YY_BUFFER_NEW; if ( b == YY_CURRENT_BUFFER ) yy_load_buffer_state( ); } /** Pushes the new state onto the stack. The new state becomes * the current state. This function will allocate the stack * if necessary. * @param new_buffer The new state. * */ void yypush_buffer_state (YY_BUFFER_STATE new_buffer ) { if (new_buffer == NULL) return; yyensure_buffer_stack(); /* This block is copied from yy_switch_to_buffer. */ if ( YY_CURRENT_BUFFER ) { /* Flush out information for old buffer. */ *(yy_c_buf_p) = (yy_hold_char); YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p); YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); } /* Only push if top exists. Otherwise, replace top. */ if (YY_CURRENT_BUFFER) (yy_buffer_stack_top)++; YY_CURRENT_BUFFER_LVALUE = new_buffer; /* copied from yy_switch_to_buffer. */ yy_load_buffer_state( ); (yy_did_buffer_switch_on_eof) = 1; } /** Removes and deletes the top of the stack, if present. * The next element becomes the new top. * */ void yypop_buffer_state (void) { if (!YY_CURRENT_BUFFER) return; yy_delete_buffer(YY_CURRENT_BUFFER ); YY_CURRENT_BUFFER_LVALUE = NULL; if ((yy_buffer_stack_top) > 0) --(yy_buffer_stack_top); if (YY_CURRENT_BUFFER) { yy_load_buffer_state( ); (yy_did_buffer_switch_on_eof) = 1; } } /* Allocates the stack if it does not exist. * Guarantees space for at least one push. */ static void yyensure_buffer_stack (void) { yy_size_t num_to_alloc; if (!(yy_buffer_stack)) { /* First allocation is just for 2 elements, since we don't know if this * scanner will even need a stack. We use 2 instead of 1 to avoid an * immediate realloc on the next call. */ num_to_alloc = 1; (yy_buffer_stack) = (struct yy_buffer_state**)yyalloc (num_to_alloc * sizeof(struct yy_buffer_state*) ); if ( ! (yy_buffer_stack) ) YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" ); memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*)); (yy_buffer_stack_max) = num_to_alloc; (yy_buffer_stack_top) = 0; return; } if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){ /* Increase the buffer to prepare for a possible push. */ int grow_size = 8 /* arbitrary grow size */; num_to_alloc = (yy_buffer_stack_max) + grow_size; (yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc ((yy_buffer_stack), num_to_alloc * sizeof(struct yy_buffer_state*) ); if ( ! (yy_buffer_stack) ) YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" ); /* zero only the new slots.*/ memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*)); (yy_buffer_stack_max) = num_to_alloc; } } /** Setup the input buffer state to scan directly from a user-specified character buffer. * @param base the character buffer * @param size the size in bytes of the character buffer * * @return the newly allocated buffer state object. */ YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size ) { YY_BUFFER_STATE b; if ( size < 2 || base[size-2] != YY_END_OF_BUFFER_CHAR || base[size-1] != YY_END_OF_BUFFER_CHAR ) /* They forgot to leave room for the EOB's. */ return 0; b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) ); if ( ! b ) YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" ); b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */ b->yy_buf_pos = b->yy_ch_buf = base; b->yy_is_our_buffer = 0; b->yy_input_file = 0; b->yy_n_chars = b->yy_buf_size; b->yy_is_interactive = 0; b->yy_at_bol = 1; b->yy_fill_buffer = 0; b->yy_buffer_status = YY_BUFFER_NEW; yy_switch_to_buffer(b ); return b; } /** Setup the input buffer state to scan a string. The next call to yylex() will * scan from a @e copy of @a str. * @param yystr a NUL-terminated string to scan * * @return the newly allocated buffer state object. * @note If you want to scan bytes that may contain NUL values, then use * yy_scan_bytes() instead. */ YY_BUFFER_STATE yy_scan_string (yyconst char * yystr ) { return yy_scan_bytes(yystr,strlen(yystr) ); } /** Setup the input buffer state to scan the given bytes. The next call to yylex() will * scan from a @e copy of @a bytes. * @param yybytes the byte buffer to scan * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes. * * @return the newly allocated buffer state object. */ YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, yy_size_t _yybytes_len ) { YY_BUFFER_STATE b; char *buf; yy_size_t n; yy_size_t i; /* Get memory for full buffer, including space for trailing EOB's. */ n = _yybytes_len + 2; buf = (char *) yyalloc(n ); if ( ! buf ) YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" ); for ( i = 0; i < _yybytes_len; ++i ) buf[i] = yybytes[i]; buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR; b = yy_scan_buffer(buf,n ); if ( ! b ) YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" ); /* It's okay to grow etc. this buffer, and we should throw it * away when we're done. */ b->yy_is_our_buffer = 1; return b; } #ifndef YY_EXIT_FAILURE #define YY_EXIT_FAILURE 2 #endif static void yy_fatal_error (yyconst char* msg ) { (void) fprintf( stderr, "%s\n", msg ); exit( YY_EXIT_FAILURE ); } /* Redefine yyless() so it works in section 3 code. */ #undef yyless #define yyless(n) \ do \ { \ /* Undo effects of setting up yytext. */ \ int yyless_macro_arg = (n); \ YY_LESS_LINENO(yyless_macro_arg);\ yytext[yyleng] = (yy_hold_char); \ (yy_c_buf_p) = yytext + yyless_macro_arg; \ (yy_hold_char) = *(yy_c_buf_p); \ *(yy_c_buf_p) = '\0'; \ yyleng = yyless_macro_arg; \ } \ while ( 0 ) /* Accessor methods (get/set functions) to struct members. */ /** Get the current line number. * */ int yyget_lineno (void) { return yylineno; } /** Get the input stream. * */ FILE *yyget_in (void) { return yyin; } /** Get the output stream. * */ FILE *yyget_out (void) { return yyout; } /** Get the length of the current token. * */ yy_size_t yyget_leng (void) { return yyleng; } /** Get the current token. * */ char *yyget_text (void) { return yytext; } /** Set the current line number. * @param line_number * */ void yyset_lineno (int line_number ) { yylineno = line_number; } /** Set the input stream. This does not discard the current * input buffer. * @param in_str A readable stream. * * @see yy_switch_to_buffer */ void yyset_in (FILE * in_str ) { yyin = in_str ; } void yyset_out (FILE * out_str ) { yyout = out_str ; } int yyget_debug (void) { return yy_flex_debug; } void yyset_debug (int bdebug ) { yy_flex_debug = bdebug ; } static int yy_init_globals (void) { /* Initialization is the same as for the non-reentrant scanner. * This function is called from yylex_destroy(), so don't allocate here. */ (yy_buffer_stack) = 0; (yy_buffer_stack_top) = 0; (yy_buffer_stack_max) = 0; (yy_c_buf_p) = (char *) 0; (yy_init) = 0; (yy_start) = 0; /* Defined in main.c */ #ifdef YY_STDINIT yyin = stdin; yyout = stdout; #else yyin = (FILE *) 0; yyout = (FILE *) 0; #endif /* For future reference: Set errno on error, since we are called by * yylex_init() */ return 0; } /* yylex_destroy is for both reentrant and non-reentrant scanners. */ int yylex_destroy (void) { /* Pop the buffer stack, destroying each element. */ while(YY_CURRENT_BUFFER){ yy_delete_buffer(YY_CURRENT_BUFFER ); YY_CURRENT_BUFFER_LVALUE = NULL; yypop_buffer_state(); } /* Destroy the stack itself. */ yyfree((yy_buffer_stack) ); (yy_buffer_stack) = NULL; /* Reset the globals. This is important in a non-reentrant scanner so the next time * yylex() is called, initialization will occur. */ yy_init_globals( ); return 0; } /* * Internal utility routines. */ #ifndef yytext_ptr static void yy_flex_strncpy (char* s1, yyconst char * s2, int n ) { register int i; for ( i = 0; i < n; ++i ) s1[i] = s2[i]; } #endif #ifdef YY_NEED_STRLEN static int yy_flex_strlen (yyconst char * s ) { register int n; for ( n = 0; s[n]; ++n ) ; return n; } #endif void *yyalloc (yy_size_t size ) { return (void *) malloc( size ); } void *yyrealloc (void * ptr, yy_size_t size ) { /* The cast to (char *) in the following accommodates both * implementations that use char* generic pointers, and those * that use void* generic pointers. It works with the latter * because both ANSI C and C++ allow castless assignment from * any pointer type to void*, and deal with argument conversions * as though doing an assignment. */ return (void *) realloc( (char *) ptr, size ); } void yyfree (void * ptr ) { free( (char *) ptr ); /* see yyrealloc() for (char *) cast */ } #define YYTABLES_NAME "yytables" #line 201 "/d/gcc-4.9.0/gcc-4.9.0/gcc/gengtype-lex.l" void yybegin (const char *fname) { yyin = fopen (fname, "r"); if (yyin == NULL) { perror (fname); exit (1); } lexer_line.file = input_file_by_name (fname); lexer_line.line = 1; } void yyend (void) { fclose (yyin); }
gpl-2.0
daolcms/daol-ncenter
skins/default/userconfig.html
3015
<load target="../../../member/skins/default/css/member.css" /> <div class="xm"> <div cond="$XE_VALIDATOR_MESSAGE && $XE_VALIDATOR_ID == 'modules/ncenterlite/skins/default/userconfig/1'" class="message {$XE_VALIDATOR_MESSAGE_TYPE}"> <p>{$XE_VALIDATOR_MESSAGE}</p> </div> <form ruleset="insertConfig" action="./" method="post" class="form-horizontal" id="fo_ncenterlite"> <input type="hidden" name="module" value="ncenterlite" /> <input type="hidden" name="act" value="procNcenterliteUserConfig" /> <input type="hidden" name="xe_validator_id" value="modules/ncenterlite/skins/default/userconfig/1" /> <input type="hidden" name="member_srl" value="{$member_srl}"> <section class="section"> <h1><block cond="$member_info">{$member_info->nick_name}</block> <block cond="!$member_info">{$logged_info->nick_name}</block>님의 알림센터 설정</h1> <p>알림센터의 개인의 설정을 저장하도록 합니다.<block cond="$member_info">(주의! 당신은 관리자 권한으로 다른유저의 설정창을 접속하였습니다.)</block></p> <div class="control-group"> <label class="control-label">댓글 알림</label> <div class="controls"> <label class="inline"> <input type="radio" name="comment_notify" value="Y" checked="checked"|cond="$user_config->comment_notify == 'Y'" /> 사용 </label> <label class="inline"> <input type="radio" name="comment_notify" value="N" checked="checked"|cond="$user_config->comment_notify == 'N'" /> 사용 안 함 </label> <p class="help-block">내 게시물의 혹은 내 댓글에 댓글이 달릴경우 알림을 받습니다.</p> </div> </div> <div class="control-group"> <label class="control-label">맨션 알림</label> <div class="controls"> <label class="inline"> <input type="radio" name="mention_notify" value="Y" checked="checked"|cond="$user_config->mention_notify == 'Y'" /> 사용 </label> <label class="inline"> <input type="radio" name="mention_notify" value="N" checked="checked"|cond="$user_config->mention_notify == 'N'" /> 사용 안 함 </label> <p class="help-block">누군가 글, 혹은 댓글을 통해서 나를 맨션 했을 경우 알려줍니다. (맨션 방법 @닉네임 )</p> </div> </div> <div class="control-group"> <label class="control-label">쪽지 알림</label> <div class="controls"> <label class="inline"> <input type="radio" name="message_notify" value="Y" checked="checked"|cond="$user_config->message_notify == 'Y'" /> 사용 </label> <label class="inline"> <input type="radio" name="message_notify" value="N" checked="checked"|cond="$user_config->message_notify == 'N'" /> 사용 안 함 </label> <p class="help-block">누군가에게 받은 쪽지를 알림을 받습니다.</p> </div> </div> </section> <div class="clearfix btnArea"> <div class="pull-right"> <button class="btn btn-primary" type="submit">{$lang->cmd_registration}</button> </div> </div> </form> </div>
gpl-2.0
seret/oxtebafu
ow_plugins/forum/components/forum_topics_widget.php
7902
<?php /** * This software is intended for use with Oxwall Free Community Software http://www.oxwall.org/ and is * licensed under The BSD license. * --- * Copyright (c) 2011, Oxwall Foundation * All rights reserved. * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the * following conditions are met: * * - Redistributions of source code must retain the above copyright notice, this list of conditions and * the following disclaimer. * * - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and * the following disclaimer in the documentation and/or other materials provided with the distribution. * * - Neither the name of the Oxwall Foundation nor the names of its contributors may be used to endorse or promote products * derived from this software without specific prior written permission. * THIS SOFTWARE IS PROVIDED BY THE 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. */ /** * Forum topics widget component * * @author Egor Bulgakov <[email protected]> * @package ow.ow_plugins.forum.components * @since 1.0 */ class FORUM_CMP_ForumTopicsWidget extends BASE_CLASS_Widget { private $forumService; /** * Class constructor */ public function __construct( BASE_CLASS_WidgetParameter $paramObj ) { parent::__construct(); if ( false /*!OW::getUser()->isAuthorized('forum', 'view')*/ ) // TODO: implement widget complex solution { $this->setVisible(false); return; } $this->forumService = FORUM_BOL_ForumService::getInstance(); $confTopicCount = (int) $paramObj->customParamList['topicCount']; $confPostLength = (int) $paramObj->customParamList['postLength']; if ( OW::getUser()->isAuthorized('forum') ) { $excludeGroupIdList = array(); } else { $excludeGroupIdList = $this->forumService->getPrivateUnavailableGroupIdList(OW::getUser()->getId()); } $topics = $this->forumService->getLatestTopicList($confTopicCount, $excludeGroupIdList); if ( $topics ) { $this->assign('topics', $topics); $userIds = array(); $groupIds = array(); $toolbars = array(); foreach ( $topics as $topic ) { if ( !in_array($topic['lastPost']['userId'], $userIds) ) { array_push($userIds, $topic['lastPost']['userId']); } if ( !in_array($topic['groupId'], $groupIds) ) { array_push($groupIds, $topic['groupId']); } } $avatars = BOL_AvatarService::getInstance()->getDataForUserAvatars($userIds, true, false); $this->assign('avatars', $avatars); $urls = BOL_UserService::getInstance()->getUserUrlsForList($userIds); // toolbars foreach ( $topics as $key => $topic ) { $userId = $topic['lastPost']['userId']; $toolbars[$topic['lastPost']['postId']][] = array( 'class' => 'ow_icon_control ow_ic_user', 'href' => !empty($urls[$userId]) ? $urls[$userId] : '#', 'label' => !empty($avatars[$userId]['title']) ? $avatars[$userId]['title'] : '' ); $toolbars[$topic['lastPost']['postId']][] = array( 'label' => $topic['lastPost']['createStamp'], 'class' => 'ow_ipc_date' ); } $this->assign('toolbars', $toolbars); $this->assign('postLength', $confPostLength); $groups = $this->forumService->findGroupByIdList($groupIds); $groupList = array(); $sectionIds = array(); foreach ( $groups as $group ) { $groupList[$group->id] = $group; if ( !in_array($group->sectionId, $sectionIds) ) { array_push($sectionIds, $group->sectionId); } } $this->assign('groups', $groupList); $sectionList = $this->forumService->findSectionsByIdList($sectionIds); $this->assign('sections', $sectionList); $tb = array(); if ( OW::getUser()->isAuthorized('forum', 'edit') ) { $tb[] = array( 'label' => OW::getLanguage()->text('forum', 'add_new'), 'href' => OW::getRouter()->urlForRoute('add-topic-default') ); } $tb[] = array( 'label' => OW::getLanguage()->text('forum', 'goto_forum'), 'href' => OW::getRouter()->urlForRoute('forum-default') ); $this->setSettingValue(self::SETTING_TOOLBAR, $tb); } else { if ( !OW::getUser()->isAuthorized('forum', 'edit') ) { $this->setVisible(false); return; } $this->assign('topics', null); } } public static function getSettingList() { $settingList = array(); $settingList['topicCount'] = array( 'presentation' => self::PRESENTATION_NUMBER, 'label' => OW::getLanguage()->text('forum', 'cmp_widget_forum_topics_count'), 'value' => 5 ); $settingList['postLength'] = array( 'presentation' => self::PRESENTATION_NUMBER, 'label' => OW::getLanguage()->text('forum', 'cmp_widget_forum_topics_post_lenght'), 'value' => 50 ); return $settingList; } public static function validateSettingList( $settingList ) { parent::validateSettingList($settingList); $validationMessage = OW::getLanguage()->text('forum', 'cmp_widget_forum_topics_count_msg'); if ( !preg_match('/^\d+$/', $settingList['topicCount']) ) { throw new WidgetSettingValidateException($validationMessage, 'topicCount'); } if ( $settingList['topicCount'] > 20 ) { throw new WidgetSettingValidateException($validationMessage, 'topicCount'); } $validationMessage = OW::getLanguage()->text('forum', 'cmp_widget_forum_topics_post_length_msg'); if ( !preg_match('/^\d+$/', $settingList['postLength']) ) { throw new WidgetSettingValidateException($validationMessage, 'postLength'); } if ( $settingList['postLength'] > 1000 ) { throw new WidgetSettingValidateException($validationMessage, 'postLength'); } } public static function getAccess() { return self::ACCESS_ALL; } public static function getStandardSettingValueList() { return array( self::SETTING_TITLE => OW::getLanguage()->text('forum', 'forum_topics_widget'), self::SETTING_ICON => self::ICON_FILES, self::SETTING_SHOW_TITLE => true ); } }
gpl-2.0
noahjohn9259/emberrcom
wp-content/plugins/gravityforms_1.5.2.8/settings.php
19359
<?php class GFSettings{ public static $addon_pages = array(); public static function add_settings_page($name, $handler, $icon_path){ add_action("gform_settings_" . str_replace(" " , "_", $name), $handler); self::$addon_pages[$name] = array("name" => $name, "icon" => $icon_path); } public static function settings_page(){ $addon_name = RGForms::get("addon"); $icon_path = empty($addon_name) ? "" : self::$addon_pages[$addon_name]["icon"]; $page_title = empty($addon_name) ? __("Gravity Forms Settings", "gravityforms") : $addon_name . " " . __("Settings", "gravityforms"); $icon_path = empty($icon_path) ? GFCommon::get_base_url() . "/images/gravity-settings-icon-32.png" : $icon_path; echo GFCommon::get_remote_message(); ?> <link rel="stylesheet" href="<?php echo GFCommon::get_base_url()?>/css/admin.css" /> <div class="wrap"> <img alt="<?php $page_title ?>" src="<?php echo $icon_path?>" style="float:left; margin:15px 7px 0 0;"/> <h2><?php echo $page_title ?></h2> <?php if(!empty(self::$addon_pages)){ ?> <ul class="subsubsub"> <li><a href="?page=gf_settings">Gravity Forms</a> |</li> <?php $count = sizeof(self::$addon_pages); for($i = 0; $i<$count; $i++){ $addon_keys = array_keys(self::$addon_pages); $addon = $addon_keys[$i]; ?> <li><a href="?page=gf_settings&addon=<?php echo urlencode($addon) ?>"><?php echo esc_html($addon) ?></a> <?php echo $i < $count-1 ? "|" : ""?></li> <?php } ?> </ul> <br style="clear:both;"/> <?php } if(empty($addon_name)){ self::gravityforms_settings_page(); } else{ do_action("gform_settings_" . str_replace(" ", "_", $addon_name)); } } public static function gravityforms_settings_page(){ global $wpdb; if(!GFCommon::ensure_wp_version()) return; if(isset($_POST["submit"])){ check_admin_referer('gforms_update_settings', 'gforms_update_settings'); if(!GFCommon::current_user_can_any("gravityforms_edit_settings")) die(__("You don't have adequate permission to edit settings.", "gravityforms")); RGFormsModel::save_key($_POST["gforms_key"]); update_option("rg_gforms_disable_css", $_POST["gforms_disable_css"]); update_option("rg_gforms_enable_html5", $_POST["gforms_enable_html5"]); update_option("rg_gforms_captcha_public_key", $_POST["gforms_captcha_public_key"]); update_option("rg_gforms_captcha_private_key", $_POST["gforms_captcha_private_key"]); update_option("rg_gforms_currency", $_POST["gforms_currency"]); //Updating message because key could have been changed GFCommon::cache_remote_message(); //Re-caching version info $version_info = GFCommon::get_version_info(false); ?> <div class="updated fade" style="padding:6px;"> <?php _e("Settings Updated", "gravityforms"); ?>. </div> <?php } else if(isset($_POST["uninstall"])){ if(!GFCommon::current_user_can_any("gravityforms_uninstall") || (function_exists("is_multisite") && is_multisite() && !is_super_admin())) die(__("You don't have adequate permission to uninstall Gravity Forms.", "gravityforms")); //droping all tables RGFormsModel::drop_tables(); //removing options delete_option("rg_form_version"); delete_option("rg_gforms_key"); delete_option("rg_gforms_disable_css"); delete_option("rg_gforms_enable_html5"); delete_option("rg_gforms_captcha_public_key"); delete_option("rg_gforms_captcha_private_key"); delete_option("rg_gforms_message"); delete_option("gf_dismissed_upgrades"); delete_option("rg_gforms_currency"); //removing gravity forms upload folder GFCommon::delete_directory(RGFormsModel::get_upload_root()); //Deactivating plugin $plugin = "gravityforms/gravityforms.php"; deactivate_plugins($plugin); update_option('recently_activated', array($plugin => time()) + (array)get_option('recently_activated')); ?> <div class="updated fade" style="padding:20px;"><?php echo sprintf(__("Gravity Forms have been successfully uninstalled. It can be re-activated from the %splugins page%s.", "gravityforms"), "<a href='plugins.php'>","</a>")?></div> <?php return; } if(!isset($version_info)) $version_info = GFCommon::get_version_info(); ?> <form method="post"> <?php wp_nonce_field('gforms_update_settings', 'gforms_update_settings') ?> <h3><?php _e("General Settings", "gravityforms"); ?></h3> <table class="form-table"> <tr valign="top"> <th scope="row"><label for="gforms_key"><?php _e("Support License Key", "gravityforms"); ?></label> <?php gform_tooltip("settings_license_key") ?></th> <td> <?php $key = GFCommon::get_key(); $key_field = '<input type="password" name="gforms_key" id="gforms_key" style="width:350px;" value="' . $key . '" />'; if($version_info["is_valid_key"]) $key_field .= "&nbsp;<img src='" . GFCommon::get_base_url() ."/images/tick.png' class='gf_keystatus_valid' alt='valid key' title='valid key'/>"; else if (!empty($key)) $key_field .= "&nbsp;<img src='" . GFCommon::get_base_url() ."/images/cross.png' class='gf_keystatus_invalid' alt='invalid key' title='invalid key'/>"; echo apply_filters('gform_settings_key_field', $key_field); ?> <br /> <?php _e("The license key is used for access to automatic upgrades and support.", "gravityforms"); ?> </td> </tr> <tr valign="top"> <th scope="row"><label for="gforms_disable_css"><?php _e("Output CSS", "gravityforms"); ?></label> <?php gform_tooltip("settings_output_css") ?></th> <td> <input type="radio" name="gforms_disable_css" value="0" id="gforms_css_output_enabled" <?php echo get_option('rg_gforms_disable_css') == 1 ? "" : "checked='checked'" ?> /> <?php _e("Yes", "gravityforms"); ?>&nbsp;&nbsp; <input type="radio" name="gforms_disable_css" value="1" id="gforms_css_output_disabled" <?php echo get_option('rg_gforms_disable_css') == 1 ? "checked='checked'" : "" ?> /> <?php _e("No", "gravityforms"); ?><br /> <?php _e("Set this to No if you would like to disable the plugin from outputting the form CSS.", "gravityforms"); ?> </td> </tr> <tr valign="top"> <th scope="row"><label for="gforms_enable_html5"><?php _e("Output HTML5", "gravityforms"); ?></label> <?php gform_tooltip("settings_html5") ?></th> <td> <input type="radio" name="gforms_enable_html5" value="1" <?php echo get_option('rg_gforms_enable_html5') == 1 ? "checked='checked'" : "" ?> id="gforms_enable_html5"/> <?php _e("Yes", "gravityforms"); ?>&nbsp;&nbsp; <input type="radio" name="gforms_enable_html5" value="0" <?php echo get_option('rg_gforms_enable_html5') == 1 ? "" : "checked='checked'" ?> /><?php _e("No", "gravityforms"); ?><br /> <?php _e("Set this to No if you would like to disable the plugin from outputting HTML5 form fields.", "gravityforms"); ?> </td> </tr> <tr valign="top"> <th scope="row"><label for="gforms_currency"><?php _e("Currency", "gravityforms"); ?></label> <?php gform_tooltip("settings_currency") ?></th> <td> <select id="gforms_currency" name="gforms_currency"> <?php require_once("currency.php"); $current_currency = GFCommon::get_currency(); foreach(RGCurrency::get_currencies() as $code => $currency){ ?> <option value="<?php echo $code ?>" <?php echo $current_currency == $code ? "selected='selected'" : "" ?>><?php echo $currency["name"]?></option> <?php } ?> </select> </td> </tr> </table> <div class="hr-divider"></div> <h3><?php _e("reCAPTCHA Settings", "gravityforms"); ?></h3> <p style="text-align: left;"><?php _e("Gravity Forms integrates with reCAPTCHA, a free CAPTCHA service that helps to digitize books while protecting your forms from spam bots. ", "gravityforms"); ?><a href="http://www.google.com/recaptcha/" target="_blank"><?php _e("Read more about reCAPTCHA", "gravityforms"); ?></a>.</p> <table class="form-table"> <tr valign="top"> <th scope="row"><label for="gforms_captcha_public_key"><?php _e("reCAPTCHA Public Key", "gravityforms"); ?></label> <?php gform_tooltip("settings_recaptcha_public") ?></th> <td> <input type="text" name="gforms_captcha_public_key" style="width:350px;" value="<?php echo get_option("rg_gforms_captcha_public_key") ?>" /><br /> <?php _e("Required only if you decide to use the reCAPTCHA field.", "gravityforms"); ?> <?php printf(__("%sSign up%s for a free account to get the key.", "gravityforms"), '<a target="_blank" href="http://www.google.com/recaptcha/whyrecaptcha">', '</a>'); ?> </td> </tr> <tr valign="top"> <th scope="row"><label for="gforms_captcha_private_key"><?php _e("reCAPTCHA Private Key", "gravityforms"); ?></label> <?php gform_tooltip("settings_recaptcha_private") ?></th> <td> <input type="text" name="gforms_captcha_private_key" style="width:350px;" value="<?php echo esc_attr(get_option("rg_gforms_captcha_private_key")) ?>" /><br /> <?php _e("Required only if you decide to use the reCAPTCHA field.", "gravityforms"); ?> <?php printf(__("%sSign up%s for a free account to get the key.", "gravityforms"), '<a target="_blank" href="http://www.google.com/recaptcha/whyrecaptcha">', '</a>'); ?> </td> </tr> </table> <?php if(GFCommon::current_user_can_any("gravityforms_edit_settings")){ ?> <br/><br/> <p class="submit" style="text-align: left;"> <?php $save_button = '<input type="submit" name="submit" value="' . __("Save Settings", "gravityforms"). '" class="button-primary gf_settings_savebutton"/>'; echo apply_filters("gform_settings_save_button", $save_button); ?> </p> <?php } ?> </form> <div id='gform_upgrade_license' style="display:none;"></div> <script type="text/javascript"> jQuery(document).ready(function(){ jQuery.post(ajaxurl,{ action:"gf_upgrade_license", gf_upgrade_license: "<?php echo wp_create_nonce("gf_upgrade_license") ?>", cookie: encodeURIComponent(document.cookie)}, function(data){ if(data.trim().length > 0) jQuery("#gform_upgrade_license").replaceWith(data); } ); }); </script> <div class="hr-divider"></div> <h3><?php _e("Installation Status", "gravityforms"); ?></h3> <table class="form-table"> <tr valign="top"> <th scope="row"><label><?php _e("PHP Version", "gravityforms"); ?></label></th> <td class="installation_item_cell"> <strong><?php echo phpversion(); ?></strong> </td> <td> <?php if(version_compare(phpversion(), '5.0.0', '>')){ ?> <img src="<?php echo GFCommon::get_base_url() ?>/images/tick.png"/> <?php } else{ ?> <img src="<?php echo GFCommon::get_base_url() ?>/images/cross.png"/> <span class="installation_item_message"><?php _e("Gravity Forms requires PHP 5 or above.", "gravityforms"); ?></span> <?php } ?> </td> </tr> <tr valign="top"> <th scope="row"><label><?php _e("MySQL Version", "gravityforms"); ?></label></th> <td class="installation_item_cell"> <strong><?php echo $wpdb->db_version();?></strong> </td> <td> <?php if(version_compare($wpdb->db_version(), '5.0.0', '>')){ ?> <img src="<?php echo GFCommon::get_base_url() ?>/images/tick.png"/> <?php } else{ ?> <img src="<?php echo GFCommon::get_base_url() ?>/images/cross.png"/> <span class="installation_item_message"><?php _e("Gravity Forms requires MySQL 5 or above.", "gravityforms"); ?></span> <?php } ?> </td> </tr> <tr valign="top"> <th scope="row"><label><?php _e("WordPress Version", "gravityforms"); ?></label></th> <td class="installation_item_cell"> <strong><?php echo get_bloginfo("version"); ?></strong> </td> <td> <?php if(version_compare(get_bloginfo("version"), '2.8.0', '>')){ ?> <img src="<?php echo GFCommon::get_base_url() ?>/images/tick.png"/> <?php } else{ ?> <img src="<?php echo GFCommon::get_base_url() ?>/images/cross.png"/> <span class="installation_item_message"><?php _e("Gravity Forms requires WordPress 2.8 or above.", "gravityforms"); ?></span> <?php } ?> </td> </tr> <tr valign="top"> <th scope="row"><label><?php _e("Gravity Forms Version", "gravityforms"); ?></label></th> <td class="installation_item_cell"> <strong><?php echo GFCommon::$version ?></strong> </td> <td> <?php if(version_compare(GFCommon::$version, $version_info["version"], '>=')){ ?> <img src="<?php echo GFCommon::get_base_url() ?>/images/tick.png"/> <?php } else{ echo sprintf(__("New version %s available. Automatic upgrade available on the %splugins page%s", "gravityforms"), $version_info["version"], '<a href="plugins.php">', '</a>'); } ?> </td> </tr> </table> <form action="" method="post"> <?php if(GFCommon::current_user_can_any("gravityforms_uninstall") && (!function_exists("is_multisite") || !is_multisite() || is_super_admin())){ ?> <div class="hr-divider"></div> <h3><?php _e("Uninstall Gravity Forms", "gravityforms") ?></h3> <div class="delete-alert alert_red"><h3><?php _e("Warning", "gravityforms") ?></h3><p><?php _e("This operation deletes ALL Gravity Forms data. If you continue, You will not be able to retrieve or restore your forms or entries.", "gravityforms") ?></p> <?php $uninstall_button = '<input type="submit" name="uninstall" value="' . __("Uninstall Gravity Forms", "gravityforms") . '" class="button" onclick="return confirm(\'' . __("Warning! ALL Gravity Forms data, including form entries will be deleted. This cannot be undone. \'OK\' to delete, \'Cancel\' to stop", "gravityforms") . '\');"/>'; echo apply_filters("gform_uninstall_button", $uninstall_button); ?> </div> <?php } ?> </form> <?php } public static function upgrade_license(){ check_ajax_referer('gf_upgrade_license','gf_upgrade_license'); $key = GFCommon::get_key(); $body = "key=$key"; $options = array('method' => 'POST', 'timeout' => 3, 'body' => $body); $options['headers'] = array( 'Content-Type' => 'application/x-www-form-urlencoded; charset=' . get_option('blog_charset'), 'Content-Length' => strlen($body), 'User-Agent' => 'WordPress/' . get_bloginfo("version"), 'Referer' => get_bloginfo("url") ); $request_url = GRAVITY_MANAGER_URL . "/api.php?op=upgrade_message&key=" . GFCommon::get_key(); $raw_response = wp_remote_request($request_url, $options); if ( is_wp_error( $raw_response ) || 200 != $raw_response['response']['code'] ) $message = ""; else $message = $raw_response['body']; //validating that message is a valid Gravity Form message. If message is invalid, don't display anything if(substr($message, 0, 10) != "<!--GFM-->") $message = ""; echo $message; exit; } } ?>
gpl-2.0
lmedinas/brasero
libbrasero-media/scsi-error.c
2603
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ /* * Libbrasero-media * Copyright (C) Philippe Rouquier 2005-2009 <[email protected]> * * Libbrasero-media 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. * * The Libbrasero-media authors hereby grant permission for non-GPL compatible * GStreamer plugins to be used and distributed together with GStreamer * and Libbrasero-media. This permission is above and beyond the permissions granted * by the GPL license by which Libbrasero-media is covered. If you modify this code * you may extend this exception to your version of the code, but you are not * obligated to do so. If you do not wish to do so, delete this exception * statement from your version. * * Libbrasero-media 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 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. */ #ifdef HAVE_CONFIG_H # include <config.h> #endif #include <errno.h> #include <glib.h> #include <glib/gi18n-lib.h> #include "brasero-media.h" #include "scsi-error.h" static const gchar *error_string [] = { N_("Unknown error"), N_("Size mismatch"), N_("Type mismatch"), N_("Bad argument"), N_("The drive is busy"), N_("Outrange address"), N_("Invalid address"), N_("Invalid command"), N_("Invalid parameter in command"), N_("Invalid field in command"), N_("The device timed out"), N_("Key not established"), N_("Invalid track mode"), NULL }; /* errno */ const gchar * brasero_scsi_strerror (BraseroScsiErrCode code) { if (code > BRASERO_SCSI_ERROR_LAST || code < 0) return NULL; /* FIXME: this is for errors that don't have any message yet */ if (code > BRASERO_SCSI_ERRNO) return NULL; if (code == BRASERO_SCSI_ERRNO) return g_strerror (errno); return _(error_string [code]); } void brasero_scsi_set_error (GError **error, BraseroScsiErrCode code) { g_set_error (error, BRASERO_MEDIA_ERROR, BRASERO_MEDIA_ERROR_GENERAL, "%s", brasero_scsi_strerror (code)); }
gpl-2.0
uvoelkel/fuppes
src/lib/Presentation/PageLog.h
1548
/* -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; tab-width: 2 -*- */ /*************************************************************************** * PageLog.h * * FUPPES - Free UPnP Entertainment Service * * Copyright (C) 2011 Ulrich Völkel <[email protected]> ****************************************************************************/ /* * 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 _PAGELOG_H #define _PAGELOG_H #ifdef HAVE_CONFIG_H #include <config.h> #endif #include "PresentationPage.h" class PageLog: public Presentation::PresentationPage { public: std::string alias() { return "log"; } std::string title() { return "log"; } std::string js() { return "fuppes-log.js"; } std::string content(); private: std::string buildLogSelection(); }; #endif // _PAGELOG_H
gpl-2.0
seltmann/Symbiota
collections/rpc/changetablepage.php
7873
<?php include_once('../../config/symbini.php'); include_once($SERVER_ROOT.'/content/lang/collections/list.'.$LANG_TAG.'.php'); include_once($SERVER_ROOT.'/classes/OccurrenceListManager.php'); include_once($SERVER_ROOT.'/classes/SOLRManager.php'); $stArrCollJson = $_REQUEST["jsoncollstarr"]; $stArrSearchJson = $_REQUEST["starr"]; $targetTid = $_REQUEST["targettid"]; $occIndex = $_REQUEST['occindex']; $sortField1 = $_REQUEST['sortfield1']; $sortField2 = $_REQUEST['sortfield2']; $sortOrder = $_REQUEST['sortorder']; $stArrSearchJson = str_replace("%apos;","'",$stArrSearchJson); $collStArr = json_decode($stArrCollJson, true); $searchStArr = json_decode($stArrSearchJson, true); if($collStArr && $searchStArr) $stArr = array_merge($searchStArr,$collStArr); if(!$collStArr && $searchStArr) $stArr = $searchStArr; if($collStArr && !$searchStArr) $stArr = $collStArr; if($SOLR_MODE){ $collManager = new SOLRManager(); $collManager->setSearchTermsArr($stArr); $collManager->setSorting($sortField1,$sortField2,$sortOrder); $solrArr = $collManager->getRecordArr($occIndex,1000); $recArr = $collManager->translateSOLRRecList($solrArr); } else{ $collManager = new OccurrenceListManager(false); $collManager->setSearchTermsArr($stArr); $collManager->setSorting($sortField1,$sortField2,$sortOrder); $recArr = $collManager->getRecordArr($occIndex,1000); } $targetClid = $collManager->getSearchTerm("targetclid"); $urlPrefix = (isset($_SERVER['HTTPS'])?'https://':'http://').$_SERVER['HTTP_HOST'].$CLIENT_ROOT.'/collections/listtabledisplay.php'; $recordListHtml = ''; $qryCnt = $collManager->getRecordCnt(); $navStr = '<div style="float:right;">'; if(($occIndex*1000) > 1000){ $navStr .= "<a href='' title='Previous 1000 records' onclick='changeTablePage(".($occIndex-1).");return false;'>&lt;&lt;</a>"; } $navStr .= ' | '; $navStr .= ($occIndex <= 1?1:(($occIndex-1)*1000)+1).'-'.($qryCnt<1000+$occIndex?$qryCnt:(($occIndex-1)*1000)+1000).' of '.$qryCnt.' records'; $navStr .= ' | '; if($qryCnt > (1000+$occIndex)){ $navStr .= "<a href='' title='Next 1000 records' onclick='changeTablePage(".($occIndex+1).");return false;'>&gt;&gt;</a>"; } $navStr .= '</div>'; if($recArr){ $recordListHtml .= '<div style="width:790px;clear:both;margin:5px;">'; $recordListHtml .= '<div style="float:left;"><button type="button" id="copyurl" onclick="copySearchUrl();">Copy URL to These Results</button></div>'; if($qryCnt > 1){ $recordListHtml .= $navStr; } $recordListHtml .= '</div>'; $recordListHtml .= '<div style="clear:both;height:5px;"></div>'; $recordListHtml .= '<table class="styledtable" style="font-family:Arial;font-size:12px;"><tr>'; $recordListHtml .= '<th>Symbiota ID</th>'; $recordListHtml .= '<th>Collection</th>'; $recordListHtml .= '<th>Catalog Number</th>'; $recordListHtml .= '<th>Family</th>'; $recordListHtml .= '<th>Scientific Name</th>'; $recordListHtml .= '<th>Country</th>'; $recordListHtml .= '<th>State/Province</th>'; $recordListHtml .= '<th>County</th>'; $recordListHtml .= '<th>Locality</th>'; $recordListHtml .= '<th>Habitat</th>'; if($QUICK_HOST_ENTRY_IS_ACTIVE) $recordListHtml .= '<th>Host</th>'; $recordListHtml .= '<th>Elevation</th>'; $recordListHtml .= '<th>Event Date</th>'; $recordListHtml .= '<th>Collector</th>'; $recordListHtml .= '<th>Number</th>'; $recordListHtml .= '<th>Individual Count</th>'; $recordListHtml .= '<th>Life Stage</th>'; $recordListHtml .= '<th>Sex</th>'; $recordListHtml .= '</tr>'; $recCnt = 0; foreach($recArr as $id => $occArr){ $isEditor = false; if($SYMB_UID && ($IS_ADMIN || (array_key_exists('CollAdmin',$USER_RIGHTS) && in_array($occArr['collid'],$USER_RIGHTS['CollAdmin'])) || (array_key_exists('CollEditor',$USER_RIGHTS) && in_array($occArr['collid'],$USER_RIGHTS['CollEditor'])))){ $isEditor = true; } $collection = $occArr['institutioncode']; if($occArr['collectioncode']) $collection .= ':'.$occArr['collectioncode']; if($occArr['sciname']) $occArr['sciname'] = '<i>'.$occArr['sciname'].'</i> '; $recordListHtml .= "<tr ".($recCnt%2?'class="alt"':'').">\n"; $recordListHtml .= '<td>'; $recordListHtml .= '<a href="#" onclick="return openIndPU('.$id.",".($targetClid?$targetClid:"0").');">'.$id.'</a> '; if($isEditor || ($SYMB_UID && $SYMB_UID == $fieldArr['observeruid'])){ $recordListHtml .= '<a href="editor/occurrenceeditor.php?occid='.$id.'" target="_blank">'; $recordListHtml .= '<img src="../images/edit.png" style="height:13px;" title="Edit Record" />'; $recordListHtml .= '</a>'; } if(isset($occArr['img'])){ $recordListHtml .= '<img src="../images/image.png" style="height:13px;margin-left:5px;" title="Has Image" />'; } $recordListHtml .= '</td>'."\n"; $recordListHtml .= '<td>'.$collection.'</td>'."\n"; $recordListHtml .= '<td>'.$occArr['accession'].'</td>'."\n"; $recordListHtml .= '<td>'.$occArr['family'].'</td>'."\n"; $recordListHtml .= '<td>'.$occArr['sciname'].($occArr['author']?" ".$occArr['author']:"").'</td>'."\n"; $recordListHtml .= '<td>'.$occArr['country'].'</td>'."\n"; $recordListHtml .= '<td>'.$occArr['state'].'</td>'."\n"; $recordListHtml .= '<td>'.$occArr['county'].'</td>'."\n"; $recordListHtml .= '<td>'.((strlen($occArr['locality'])>80)?substr($occArr['locality'],0,80).'...':$occArr['locality']).'</td>'."\n"; $recordListHtml .= '<td>'.((strlen($occArr['habitat'])>80)?substr($occArr['habitat'],0,80).'...':$occArr['habitat']).'</td>'."\n"; if($QUICK_HOST_ENTRY_IS_ACTIVE){ if(array_key_exists('assochost',$occArr)){ $recordListHtml .= '<td>'.((strlen($occArr['assochost'])>80)?substr($occArr['assochost'],0,80).'...':$occArr['assochost']).'</td>'."\n"; } else{ $recordListHtml .= '<td></td>'."\n"; } } $recordListHtml .= '<td>'.(array_key_exists("elev",$occArr)?$occArr['elev']:"").'</td>'."\n"; $recordListHtml .= '<td>'.(array_key_exists("date",$occArr)?$occArr['date']:"").'</td>'."\n"; $recordListHtml .= '<td>'.$occArr['collector'].'</td>'."\n"; $recordListHtml .= '<td>'.(array_key_exists("collnumber",$occArr)?$occArr['collnumber']:"").'</td>'."\n"; $recordListHtml .= '<td>'.(array_key_exists("individualCount",$occArr)?$occArr['individualCount']:"").'</td>'."\n"; $recordListHtml .= '<td>'.(array_key_exists("lifeStage",$occArr)?$occArr['lifeStage']:"").'</td>'."\n"; $recordListHtml .= '<td>'.(array_key_exists("sex",$occArr)?$occArr['sex']:"").'</td>'."\n"; $recordListHtml .= "</tr>\n"; $recCnt++; } $recordListHtml .= '</table>'; $recordListHtml .= '<div style="clear:both;height:5px;"></div>'; $recordListHtml .= '<textarea id="urlPrefixBox" style="position:absolute;left:-9999px;top:-9999px">'.$urlPrefix.$collManager->getSearchResultUrl().'</textarea>'; $recordListHtml .= '<textarea id="urlFullBox" style="position:absolute;left:-9999px;top:-9999px"></textarea>'; if($qryCnt > 1){ $recordListHtml .= '<div style="width:790px;">'.$navStr.'</div>'; } $recordListHtml .= '*Click on the Symbiota identifier in the first column to see Full Record Details.'; } else{ $recordListHtml .= '<div style="font-weight:bold;font-size:120%;">No records found matching the query</div>'; } //output the response echo $recordListHtml; //echo json_encode($recordListHtml); ?>
gpl-2.0
alucard263096/XMLRPC
DEMO/ta_portal_dev/libs/PEAR/PEAR/Common.php
36771
<?php /** * PEAR_Common, the base class for the PEAR Installer * * PHP versions 4 and 5 * * LICENSE: This source file is subject to version 3.0 of the PHP license * that is available through the world-wide-web at the following URI: * http://www.php.net/license/3_0.txt. If you did not receive a copy of * the PHP License and are unable to obtain it through the web, please * send a note to [email protected] so we can mail you a copy immediately. * * @category pear * @package PEAR * @author Stig Bakken <[email protected]> * @author Tomas V. V. Cox <[email protected]> * @author Greg Beaver <[email protected]> * @copyright 1997-2008 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 * @version CVS: $Id: Common.php,v 1.1 2010/06/17 11:19:23 soonchoy Exp $ * @link http://pear.php.net/package/PEAR * @since File available since Release 0.1.0 * @deprecated File deprecated since Release 1.4.0a1 */ /** * Include error handling */ require_once 'PEAR.php'; // {{{ constants and globals /** * PEAR_Common error when an invalid PHP file is passed to PEAR_Common::analyzeSourceCode() */ define('PEAR_COMMON_ERROR_INVALIDPHP', 1); define('_PEAR_COMMON_PACKAGE_NAME_PREG', '[A-Za-z][a-zA-Z0-9_]+'); define('PEAR_COMMON_PACKAGE_NAME_PREG', '/^' . _PEAR_COMMON_PACKAGE_NAME_PREG . '\\z/'); // this should allow: 1, 1.0, 1.0RC1, 1.0dev, 1.0dev123234234234, 1.0a1, 1.0b1, 1.0pl1 define('_PEAR_COMMON_PACKAGE_VERSION_PREG', '\d+(?:\.\d+)*(?:[a-zA-Z]+\d*)?'); define('PEAR_COMMON_PACKAGE_VERSION_PREG', '/^' . _PEAR_COMMON_PACKAGE_VERSION_PREG . '\\z/i'); // XXX far from perfect :-) define('_PEAR_COMMON_PACKAGE_DOWNLOAD_PREG', '(' . _PEAR_COMMON_PACKAGE_NAME_PREG . ')(-([.0-9a-zA-Z]+))?'); define('PEAR_COMMON_PACKAGE_DOWNLOAD_PREG', '/^' . _PEAR_COMMON_PACKAGE_DOWNLOAD_PREG . '\\z/'); define('_PEAR_CHANNELS_NAME_PREG', '[A-Za-z][a-zA-Z0-9\.]+'); define('PEAR_CHANNELS_NAME_PREG', '/^' . _PEAR_CHANNELS_NAME_PREG . '\\z/'); // this should allow any dns or IP address, plus a path - NO UNDERSCORES ALLOWED define('_PEAR_CHANNELS_SERVER_PREG', '[a-zA-Z0-9\-]+(?:\.[a-zA-Z0-9\-]+)*(\/[a-zA-Z0-9\-]+)*'); define('PEAR_CHANNELS_SERVER_PREG', '/^' . _PEAR_CHANNELS_SERVER_PREG . '\\z/i'); define('_PEAR_CHANNELS_PACKAGE_PREG', '(' ._PEAR_CHANNELS_SERVER_PREG . ')\/(' . _PEAR_COMMON_PACKAGE_NAME_PREG . ')'); define('PEAR_CHANNELS_PACKAGE_PREG', '/^' . _PEAR_CHANNELS_PACKAGE_PREG . '\\z/i'); define('_PEAR_COMMON_CHANNEL_DOWNLOAD_PREG', '(' . _PEAR_CHANNELS_NAME_PREG . ')::(' . _PEAR_COMMON_PACKAGE_NAME_PREG . ')(-([.0-9a-zA-Z]+))?'); define('PEAR_COMMON_CHANNEL_DOWNLOAD_PREG', '/^' . _PEAR_COMMON_CHANNEL_DOWNLOAD_PREG . '\\z/'); /** * List of temporary files and directories registered by * PEAR_Common::addTempFile(). * @var array */ $GLOBALS['_PEAR_Common_tempfiles'] = array(); /** * Valid maintainer roles * @var array */ $GLOBALS['_PEAR_Common_maintainer_roles'] = array('lead','developer','contributor','helper'); /** * Valid release states * @var array */ $GLOBALS['_PEAR_Common_release_states'] = array('alpha','beta','stable','snapshot','devel'); /** * Valid dependency types * @var array */ $GLOBALS['_PEAR_Common_dependency_types'] = array('pkg','ext','php','prog','ldlib','rtlib','os','websrv','sapi'); /** * Valid dependency relations * @var array */ $GLOBALS['_PEAR_Common_dependency_relations'] = array('has','eq','lt','le','gt','ge','not', 'ne'); /** * Valid file roles * @var array */ $GLOBALS['_PEAR_Common_file_roles'] = array('php','ext','test','doc','data','src','script'); /** * Valid replacement types * @var array */ $GLOBALS['_PEAR_Common_replacement_types'] = array('php-const', 'pear-config', 'package-info'); /** * Valid "provide" types * @var array */ $GLOBALS['_PEAR_Common_provide_types'] = array('ext', 'prog', 'class', 'function', 'feature', 'api'); /** * Valid "provide" types * @var array */ $GLOBALS['_PEAR_Common_script_phases'] = array('pre-install', 'post-install', 'pre-uninstall', 'post-uninstall', 'pre-build', 'post-build', 'pre-configure', 'post-configure', 'pre-setup', 'post-setup'); // }}} /** * Class providing common functionality for PEAR administration classes. * @category pear * @package PEAR * @author Stig Bakken <[email protected]> * @author Tomas V. V. Cox <[email protected]> * @author Greg Beaver <[email protected]> * @copyright 1997-2008 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 * @version Release: 1.7.2 * @link http://pear.php.net/package/PEAR * @since Class available since Release 1.4.0a1 * @deprecated This class will disappear, and its components will be spread * into smaller classes, like the AT&T breakup, as of Release 1.4.0a1 */ class PEAR_Common extends PEAR { // {{{ properties /** stack of elements, gives some sort of XML context */ var $element_stack = array(); /** name of currently parsed XML element */ var $current_element; /** array of attributes of the currently parsed XML element */ var $current_attributes = array(); /** assoc with information about a package */ var $pkginfo = array(); /** * User Interface object (PEAR_Frontend_* class). If null, * the log() method uses print. * @var object */ var $ui = null; /** * Configuration object (PEAR_Config). * @var PEAR_Config */ var $config = null; var $current_path = null; /** * PEAR_SourceAnalyzer instance * @var object */ var $source_analyzer = null; /** * Flag variable used to mark a valid package file * @var boolean * @access private */ var $_validPackageFile; // }}} // {{{ constructor /** * PEAR_Common constructor * * @access public */ function PEAR_Common() { parent::PEAR(); $this->config = &PEAR_Config::singleton(); $this->debug = $this->config->get('verbose'); } // }}} // {{{ destructor /** * PEAR_Common destructor * * @access private */ function _PEAR_Common() { // doesn't work due to bug #14744 //$tempfiles = $this->_tempfiles; $tempfiles =& $GLOBALS['_PEAR_Common_tempfiles']; while ($file = array_shift($tempfiles)) { if (@is_dir($file)) { if (!class_exists('System')) { require_once 'System.php'; } System::rm(array('-rf', $file)); } elseif (file_exists($file)) { unlink($file); } } } // }}} // {{{ addTempFile() /** * Register a temporary file or directory. When the destructor is * executed, all registered temporary files and directories are * removed. * * @param string $file name of file or directory * * @return void * * @access public */ function addTempFile($file) { if (!class_exists('PEAR_Frontend')) { require_once 'PEAR/Frontend.php'; } PEAR_Frontend::addTempFile($file); } // }}} // {{{ mkDirHier() /** * Wrapper to System::mkDir(), creates a directory as well as * any necessary parent directories. * * @param string $dir directory name * * @return bool TRUE on success, or a PEAR error * * @access public */ function mkDirHier($dir) { $this->log(2, "+ create dir $dir"); if (!class_exists('System')) { require_once 'System.php'; } return System::mkDir(array('-p', $dir)); } // }}} // {{{ log() /** * Logging method. * * @param int $level log level (0 is quiet, higher is noisier) * @param string $msg message to write to the log * * @return void * * @access public * @static */ function log($level, $msg, $append_crlf = true) { if ($this->debug >= $level) { if (!class_exists('PEAR_Frontend')) { require_once 'PEAR/Frontend.php'; } $ui = &PEAR_Frontend::singleton(); if (is_a($ui, 'PEAR_Frontend')) { $ui->log($msg, $append_crlf); } else { print "$msg\n"; } } } // }}} // {{{ mkTempDir() /** * Create and register a temporary directory. * * @param string $tmpdir (optional) Directory to use as tmpdir. * Will use system defaults (for example * /tmp or c:\windows\temp) if not specified * * @return string name of created directory * * @access public */ function mkTempDir($tmpdir = '') { if ($tmpdir) { $topt = array('-t', $tmpdir); } else { $topt = array(); } $topt = array_merge($topt, array('-d', 'pear')); if (!class_exists('System')) { require_once 'System.php'; } if (!$tmpdir = System::mktemp($topt)) { return false; } $this->addTempFile($tmpdir); return $tmpdir; } // }}} // {{{ setFrontendObject() /** * Set object that represents the frontend to be used. * * @param object Reference of the frontend object * @return void * @access public */ function setFrontendObject(&$ui) { $this->ui = &$ui; } // }}} // {{{ infoFromTgzFile() /** * Returns information about a package file. Expects the name of * a gzipped tar file as input. * * @param string $file name of .tgz file * * @return array array with package information * * @access public * @deprecated use PEAR_PackageFile->fromTgzFile() instead * */ function infoFromTgzFile($file) { $packagefile = &new PEAR_PackageFile($this->config); $pf = &$packagefile->fromTgzFile($file, PEAR_VALIDATE_NORMAL); if (PEAR::isError($pf)) { $errs = $pf->getUserinfo(); if (is_array($errs)) { foreach ($errs as $error) { $e = $this->raiseError($error['message'], $error['code'], null, null, $error); } } return $pf; } return $this->_postProcessValidPackagexml($pf); } // }}} // {{{ infoFromDescriptionFile() /** * Returns information about a package file. Expects the name of * a package xml file as input. * * @param string $descfile name of package xml file * * @return array array with package information * * @access public * @deprecated use PEAR_PackageFile->fromPackageFile() instead * */ function infoFromDescriptionFile($descfile) { $packagefile = &new PEAR_PackageFile($this->config); $pf = &$packagefile->fromPackageFile($descfile, PEAR_VALIDATE_NORMAL); if (PEAR::isError($pf)) { $errs = $pf->getUserinfo(); if (is_array($errs)) { foreach ($errs as $error) { $e = $this->raiseError($error['message'], $error['code'], null, null, $error); } } return $pf; } return $this->_postProcessValidPackagexml($pf); } // }}} // {{{ infoFromString() /** * Returns information about a package file. Expects the contents * of a package xml file as input. * * @param string $data contents of package.xml file * * @return array array with package information * * @access public * @deprecated use PEAR_PackageFile->fromXmlstring() instead * */ function infoFromString($data) { $packagefile = &new PEAR_PackageFile($this->config); $pf = &$packagefile->fromXmlString($data, PEAR_VALIDATE_NORMAL, false); if (PEAR::isError($pf)) { $errs = $pf->getUserinfo(); if (is_array($errs)) { foreach ($errs as $error) { $e = $this->raiseError($error['message'], $error['code'], null, null, $error); } } return $pf; } return $this->_postProcessValidPackagexml($pf); } // }}} /** * @param PEAR_PackageFile_v1|PEAR_PackageFile_v2 * @return array */ function _postProcessValidPackagexml(&$pf) { if (is_a($pf, 'PEAR_PackageFile_v2')) { // sort of make this into a package.xml 1.0-style array // changelog is not converted to old format. $arr = $pf->toArray(true); $arr = array_merge($arr, $arr['old']); unset($arr['old']); unset($arr['xsdversion']); unset($arr['contents']); unset($arr['compatible']); unset($arr['channel']); unset($arr['uri']); unset($arr['dependencies']); unset($arr['phprelease']); unset($arr['extsrcrelease']); unset($arr['zendextsrcrelease']); unset($arr['extbinrelease']); unset($arr['zendextbinrelease']); unset($arr['bundle']); unset($arr['lead']); unset($arr['developer']); unset($arr['helper']); unset($arr['contributor']); $arr['filelist'] = $pf->getFilelist(); $this->pkginfo = $arr; return $arr; } else { $this->pkginfo = $pf->toArray(); return $this->pkginfo; } } // {{{ infoFromAny() /** * Returns package information from different sources * * This method is able to extract information about a package * from a .tgz archive or from a XML package definition file. * * @access public * @param string Filename of the source ('package.xml', '<package>.tgz') * @return string * @deprecated use PEAR_PackageFile->fromAnyFile() instead */ function infoFromAny($info) { if (is_string($info) && file_exists($info)) { $packagefile = &new PEAR_PackageFile($this->config); $pf = &$packagefile->fromAnyFile($info, PEAR_VALIDATE_NORMAL); if (PEAR::isError($pf)) { $errs = $pf->getUserinfo(); if (is_array($errs)) { foreach ($errs as $error) { $e = $this->raiseError($error['message'], $error['code'], null, null, $error); } } return $pf; } return $this->_postProcessValidPackagexml($pf); } return $info; } // }}} // {{{ xmlFromInfo() /** * Return an XML document based on the package info (as returned * by the PEAR_Common::infoFrom* methods). * * @param array $pkginfo package info * * @return string XML data * * @access public * @deprecated use a PEAR_PackageFile_v* object's generator instead */ function xmlFromInfo($pkginfo) { $config = &PEAR_Config::singleton(); $packagefile = &new PEAR_PackageFile($config); $pf = &$packagefile->fromArray($pkginfo); $gen = &$pf->getDefaultGenerator(); return $gen->toXml(PEAR_VALIDATE_PACKAGING); } // }}} // {{{ validatePackageInfo() /** * Validate XML package definition file. * * @param string $info Filename of the package archive or of the * package definition file * @param array $errors Array that will contain the errors * @param array $warnings Array that will contain the warnings * @param string $dir_prefix (optional) directory where source files * may be found, or empty if they are not available * @access public * @return boolean * @deprecated use the validation of PEAR_PackageFile objects */ function validatePackageInfo($info, &$errors, &$warnings, $dir_prefix = '') { $config = &PEAR_Config::singleton(); $packagefile = &new PEAR_PackageFile($config); PEAR::staticPushErrorHandling(PEAR_ERROR_RETURN); if (strpos($info, '<?xml') !== false) { $pf = &$packagefile->fromXmlString($info, PEAR_VALIDATE_NORMAL, ''); } else { $pf = &$packagefile->fromAnyFile($info, PEAR_VALIDATE_NORMAL); } PEAR::staticPopErrorHandling(); if (PEAR::isError($pf)) { $errs = $pf->getUserinfo(); if (is_array($errs)) { foreach ($errs as $error) { if ($error['level'] == 'error') { $errors[] = $error['message']; } else { $warnings[] = $error['message']; } } } return false; } return true; } // }}} // {{{ buildProvidesArray() /** * Build a "provides" array from data returned by * analyzeSourceCode(). The format of the built array is like * this: * * array( * 'class;MyClass' => 'array('type' => 'class', 'name' => 'MyClass'), * ... * ) * * * @param array $srcinfo array with information about a source file * as returned by the analyzeSourceCode() method. * * @return void * * @access public * */ function buildProvidesArray($srcinfo) { $file = basename($srcinfo['source_file']); $pn = ''; if (isset($this->_packageName)) { $pn = $this->_packageName; } $pnl = strlen($pn); foreach ($srcinfo['declared_classes'] as $class) { $key = "class;$class"; if (isset($this->pkginfo['provides'][$key])) { continue; } $this->pkginfo['provides'][$key] = array('file'=> $file, 'type' => 'class', 'name' => $class); if (isset($srcinfo['inheritance'][$class])) { $this->pkginfo['provides'][$key]['extends'] = $srcinfo['inheritance'][$class]; } } foreach ($srcinfo['declared_methods'] as $class => $methods) { foreach ($methods as $method) { $function = "$class::$method"; $key = "function;$function"; if ($method{0} == '_' || !strcasecmp($method, $class) || isset($this->pkginfo['provides'][$key])) { continue; } $this->pkginfo['provides'][$key] = array('file'=> $file, 'type' => 'function', 'name' => $function); } } foreach ($srcinfo['declared_functions'] as $function) { $key = "function;$function"; if ($function{0} == '_' || isset($this->pkginfo['provides'][$key])) { continue; } if (!strstr($function, '::') && strncasecmp($function, $pn, $pnl)) { $warnings[] = "in1 " . $file . ": function \"$function\" not prefixed with package name \"$pn\""; } $this->pkginfo['provides'][$key] = array('file'=> $file, 'type' => 'function', 'name' => $function); } } // }}} // {{{ analyzeSourceCode() /** * Analyze the source code of the given PHP file * * @param string Filename of the PHP file * @return mixed * @access public */ function analyzeSourceCode($file) { if (!function_exists("token_get_all")) { return false; } if (!defined('T_DOC_COMMENT')) { define('T_DOC_COMMENT', T_COMMENT); } if (!defined('T_INTERFACE')) { define('T_INTERFACE', -1); } if (!defined('T_IMPLEMENTS')) { define('T_IMPLEMENTS', -1); } if (!$fp = @fopen($file, "r")) { return false; } fclose($fp); $contents = file_get_contents($file); $tokens = token_get_all($contents); /* for ($i = 0; $i < sizeof($tokens); $i++) { @list($token, $data) = $tokens[$i]; if (is_string($token)) { var_dump($token); } else { print token_name($token) . ' '; var_dump(rtrim($data)); } } */ $look_for = 0; $paren_level = 0; $bracket_level = 0; $brace_level = 0; $lastphpdoc = ''; $current_class = ''; $current_interface = ''; $current_class_level = -1; $current_function = ''; $current_function_level = -1; $declared_classes = array(); $declared_interfaces = array(); $declared_functions = array(); $declared_methods = array(); $used_classes = array(); $used_functions = array(); $extends = array(); $implements = array(); $nodeps = array(); $inquote = false; $interface = false; for ($i = 0; $i < sizeof($tokens); $i++) { if (is_array($tokens[$i])) { list($token, $data) = $tokens[$i]; } else { $token = $tokens[$i]; $data = ''; } if ($inquote) { if ($token != '"') { continue; } else { $inquote = false; continue; } } switch ($token) { case T_WHITESPACE: continue; case ';': if ($interface) { $current_function = ''; $current_function_level = -1; } break; case '"': $inquote = true; break; case T_CURLY_OPEN: case T_DOLLAR_OPEN_CURLY_BRACES: case '{': $brace_level++; continue 2; case '}': $brace_level--; if ($current_class_level == $brace_level) { $current_class = ''; $current_class_level = -1; } if ($current_function_level == $brace_level) { $current_function = ''; $current_function_level = -1; } continue 2; case '[': $bracket_level++; continue 2; case ']': $bracket_level--; continue 2; case '(': $paren_level++; continue 2; case ')': $paren_level--; continue 2; case T_INTERFACE: $interface = true; case T_CLASS: if (($current_class_level != -1) || ($current_function_level != -1)) { PEAR::raiseError("Parser error: invalid PHP found in file \"$file\"", PEAR_COMMON_ERROR_INVALIDPHP); return false; } case T_FUNCTION: case T_NEW: case T_EXTENDS: case T_IMPLEMENTS: $look_for = $token; continue 2; case T_STRING: if (version_compare(zend_version(), '2.0', '<')) { if (in_array(strtolower($data), array('public', 'private', 'protected', 'abstract', 'interface', 'implements', 'throw') )) { PEAR::raiseError('Error: PHP5 token encountered in ' . $file . 'packaging should be done in PHP 5'); return false; } } if ($look_for == T_CLASS) { $current_class = $data; $current_class_level = $brace_level; $declared_classes[] = $current_class; } elseif ($look_for == T_INTERFACE) { $current_interface = $data; $current_class_level = $brace_level; $declared_interfaces[] = $current_interface; } elseif ($look_for == T_IMPLEMENTS) { $implements[$current_class] = $data; } elseif ($look_for == T_EXTENDS) { $extends[$current_class] = $data; } elseif ($look_for == T_FUNCTION) { if ($current_class) { $current_function = "$current_class::$data"; $declared_methods[$current_class][] = $data; } elseif ($current_interface) { $current_function = "$current_interface::$data"; $declared_methods[$current_interface][] = $data; } else { $current_function = $data; $declared_functions[] = $current_function; } $current_function_level = $brace_level; $m = array(); } elseif ($look_for == T_NEW) { $used_classes[$data] = true; } $look_for = 0; continue 2; case T_VARIABLE: $look_for = 0; continue 2; case T_DOC_COMMENT: case T_COMMENT: if (preg_match('!^/\*\*\s!', $data)) { $lastphpdoc = $data; if (preg_match_all('/@nodep\s+(\S+)/', $lastphpdoc, $m)) { $nodeps = array_merge($nodeps, $m[1]); } } continue 2; case T_DOUBLE_COLON: if (!($tokens[$i - 1][0] == T_WHITESPACE || $tokens[$i - 1][0] == T_STRING)) { PEAR::raiseError("Parser error: invalid PHP found in file \"$file\"", PEAR_COMMON_ERROR_INVALIDPHP); return false; } $class = $tokens[$i - 1][1]; if (strtolower($class) != 'parent') { $used_classes[$class] = true; } continue 2; } } return array( "source_file" => $file, "declared_classes" => $declared_classes, "declared_interfaces" => $declared_interfaces, "declared_methods" => $declared_methods, "declared_functions" => $declared_functions, "used_classes" => array_diff(array_keys($used_classes), $nodeps), "inheritance" => $extends, "implements" => $implements, ); } // }}} // {{{ betterStates() /** * Return an array containing all of the states that are more stable than * or equal to the passed in state * * @param string Release state * @param boolean Determines whether to include $state in the list * @return false|array False if $state is not a valid release state */ function betterStates($state, $include = false) { static $states = array('snapshot', 'devel', 'alpha', 'beta', 'stable'); $i = array_search($state, $states); if ($i === false) { return false; } if ($include) { $i--; } return array_slice($states, $i + 1); } // }}} // {{{ detectDependencies() function detectDependencies($any, $status_callback = null) { if (!function_exists("token_get_all")) { return false; } if (PEAR::isError($info = $this->infoFromAny($any))) { return $this->raiseError($info); } if (!is_array($info)) { return false; } $deps = array(); $used_c = $decl_c = $decl_f = $decl_m = array(); foreach ($info['filelist'] as $file => $fa) { $tmp = $this->analyzeSourceCode($file); $used_c = @array_merge($used_c, $tmp['used_classes']); $decl_c = @array_merge($decl_c, $tmp['declared_classes']); $decl_f = @array_merge($decl_f, $tmp['declared_functions']); $decl_m = @array_merge($decl_m, $tmp['declared_methods']); $inheri = @array_merge($inheri, $tmp['inheritance']); } $used_c = array_unique($used_c); $decl_c = array_unique($decl_c); $undecl_c = array_diff($used_c, $decl_c); return array('used_classes' => $used_c, 'declared_classes' => $decl_c, 'declared_methods' => $decl_m, 'declared_functions' => $decl_f, 'undeclared_classes' => $undecl_c, 'inheritance' => $inheri, ); } // }}} // {{{ getUserRoles() /** * Get the valid roles for a PEAR package maintainer * * @return array * @static */ function getUserRoles() { return $GLOBALS['_PEAR_Common_maintainer_roles']; } // }}} // {{{ getReleaseStates() /** * Get the valid package release states of packages * * @return array * @static */ function getReleaseStates() { return $GLOBALS['_PEAR_Common_release_states']; } // }}} // {{{ getDependencyTypes() /** * Get the implemented dependency types (php, ext, pkg etc.) * * @return array * @static */ function getDependencyTypes() { return $GLOBALS['_PEAR_Common_dependency_types']; } // }}} // {{{ getDependencyRelations() /** * Get the implemented dependency relations (has, lt, ge etc.) * * @return array * @static */ function getDependencyRelations() { return $GLOBALS['_PEAR_Common_dependency_relations']; } // }}} // {{{ getFileRoles() /** * Get the implemented file roles * * @return array * @static */ function getFileRoles() { return $GLOBALS['_PEAR_Common_file_roles']; } // }}} // {{{ getReplacementTypes() /** * Get the implemented file replacement types in * * @return array * @static */ function getReplacementTypes() { return $GLOBALS['_PEAR_Common_replacement_types']; } // }}} // {{{ getProvideTypes() /** * Get the implemented file replacement types in * * @return array * @static */ function getProvideTypes() { return $GLOBALS['_PEAR_Common_provide_types']; } // }}} // {{{ getScriptPhases() /** * Get the implemented file replacement types in * * @return array * @static */ function getScriptPhases() { return $GLOBALS['_PEAR_Common_script_phases']; } // }}} // {{{ validPackageName() /** * Test whether a string contains a valid package name. * * @param string $name the package name to test * * @return bool * * @access public */ function validPackageName($name) { return (bool)preg_match(PEAR_COMMON_PACKAGE_NAME_PREG, $name); } // }}} // {{{ validPackageVersion() /** * Test whether a string contains a valid package version. * * @param string $ver the package version to test * * @return bool * * @access public */ function validPackageVersion($ver) { return (bool)preg_match(PEAR_COMMON_PACKAGE_VERSION_PREG, $ver); } // }}} // {{{ downloadHttp() /** * Download a file through HTTP. Considers suggested file name in * Content-disposition: header and can run a callback function for * different events. The callback will be called with two * parameters: the callback type, and parameters. The implemented * callback types are: * * 'setup' called at the very beginning, parameter is a UI object * that should be used for all output * 'message' the parameter is a string with an informational message * 'saveas' may be used to save with a different file name, the * parameter is the filename that is about to be used. * If a 'saveas' callback returns a non-empty string, * that file name will be used as the filename instead. * Note that $save_dir will not be affected by this, only * the basename of the file. * 'start' download is starting, parameter is number of bytes * that are expected, or -1 if unknown * 'bytesread' parameter is the number of bytes read so far * 'done' download is complete, parameter is the total number * of bytes read * 'connfailed' if the TCP connection fails, this callback is called * with array(host,port,errno,errmsg) * 'writefailed' if writing to disk fails, this callback is called * with array(destfile,errmsg) * * If an HTTP proxy has been configured (http_proxy PEAR_Config * setting), the proxy will be used. * * @param string $url the URL to download * @param object $ui PEAR_Frontend_* instance * @param object $config PEAR_Config instance * @param string $save_dir (optional) directory to save file in * @param mixed $callback (optional) function/method to call for status * updates * * @return string Returns the full path of the downloaded file or a PEAR * error on failure. If the error is caused by * socket-related errors, the error object will * have the fsockopen error code available through * getCode(). * * @access public * @deprecated in favor of PEAR_Downloader::downloadHttp() */ function downloadHttp($url, &$ui, $save_dir = '.', $callback = null) { if (!class_exists('PEAR_Downloader')) { require_once 'PEAR/Downloader.php'; } return PEAR_Downloader::downloadHttp($url, $ui, $save_dir, $callback); } // }}} /** * @param string $path relative or absolute include path * @return boolean * @static */ function isIncludeable($path) { if (file_exists($path) && is_readable($path)) { return true; } $ipath = explode(PATH_SEPARATOR, ini_get('include_path')); foreach ($ipath as $include) { $test = realpath($include . DIRECTORY_SEPARATOR . $path); if (file_exists($test) && is_readable($test)) { return true; } } return false; } } require_once 'PEAR/Config.php'; require_once 'PEAR/PackageFile.php'; ?>
gpl-2.0
aosm/gcc_legacy
gcc/obcp/objc-act.h
6486
/* Declarations for objc-act.c. Copyright (C) 1990 Free Software Foundation, Inc. This file is part of GNU CC. GNU CC 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. GNU CC 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 GNU CC; see the file COPYING. If not, write to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /*** Public Interface (procedures) ***/ /* used by yyparse */ void finish_file PROTO((void)); tree start_class PROTO((enum tree_code, tree, tree, tree)); tree continue_class PROTO((tree)); void finish_class PROTO((tree)); void start_method_def PROTO((tree)); void continue_method_def PROTO((void)); void finish_method_def PROTO((void)); tree start_protocol PROTO((enum tree_code, tree, tree)); void finish_protocol PROTO((tree)); void add_objc_super_decl PROTO((void)); tree is_ivar PROTO((tree, tree)); int is_private PROTO((tree)); int is_public PROTO((tree, tree)); #ifdef MODERN_OBJC_SYNTAX int looks_like_ansistyle_message_ref PROTO((tree, tree)); int looks_like_ansistyle_method_decl PROTO((tree, tree)); #endif tree add_instance_variable PROTO((tree, int, tree, tree, tree)); tree add_class_method PROTO((tree, tree)); tree add_instance_method PROTO((tree, tree)); tree get_super_receiver PROTO((void)); tree get_class_ivars PROTO((tree)); tree get_class_reference PROTO((tree)); tree get_static_reference PROTO((tree, tree)); tree get_object_reference PROTO((tree)); #ifdef OBJCPLUS tree build_message_expr PROTO((tree)); #else tree build_message_expr PROTO((tree, int)); #endif tree finish_message_expr PROTO((tree, tree, tree)); #ifdef MODERN_OBJC_SYNTAX tree build_modern_message_expression PROTO((tree, tree)); #endif tree build_selector_expr PROTO((tree)); tree build_ivar_reference PROTO((tree)); tree build_keyword_decl PROTO((tree, tree, tree)); tree build_method_decl PROTO((enum tree_code, tree, tree, tree, tree)); #ifdef MODERN_OBJC_SYNTAX tree build_method_decl_from_ansiproto PROTO((tree, tree, tree)); #endif tree build_protocol_expr PROTO((tree)); tree build_objc_string PROTO((int, char *)); tree build_objc_string_object PROTO((tree)); tree lookup_interface PROTO((tree)); tree lookup_name_type PROTO((tree)); void emit_class_ivars PROTO((tree)); int lang_decode_option PROTO((int, char **)); void objc_declare_alias PROTO((tree, tree)); void objc_declare_class PROTO((tree)); #ifdef MODERN_OBJC_SYNTAX void objc_selector_alias_pragma PROTO((tree, tree)); #endif extern int objc_receiver_context; /* the following routines are used to implement statically typed objects */ int objc_comptypes PROTO((tree, tree, int)); void objc_check_decl PROTO((tree)); void objc_check_type PROTO((tree)); /* NeXT extensions */ tree build_encode_expr PROTO((tree)); /* Objective-C structures */ /* KEYWORD_DECL */ #define KEYWORD_KEY_NAME(DECL) ((DECL)->decl.name) #define KEYWORD_ARG_NAME(DECL) ((DECL)->decl.arguments) /* INSTANCE_METHOD_DECL, CLASS_METHOD_DECL */ #define METHOD_SEL_NAME(DECL) ((DECL)->decl.name) #define METHOD_SEL_ARGS(DECL) ((DECL)->decl.arguments) #define METHOD_ADD_ARGS(DECL) ((DECL)->decl.result) #define METHOD_DEFINITION(DECL) ((DECL)->decl.initial) #define METHOD_ENCODING(DECL) ((DECL)->decl.context) #ifdef MODERN_OBJC_SYNTAX #define METHOD_ALIAS(DECL) ((DECL)->decl.assembler_name) #endif #if defined(NEXT_SEMANTICS) #define DIRECT_METHOD_FLAG(DECL) DECL_LANG_FLAG_2(DECL) #define STATIC_METHOD_FLAG(DECL) DECL_LANG_FLAG_3(DECL) #define INLINE_METHOD_FLAG(DECL) DECL_LANG_FLAG_4(DECL) #ifdef MODERN_OBJC_SYNTAX #define ANSI_STYLE_METHOD_FLAG(DECL) DECL_LANG_FLAG_5(DECL) #endif #define METHOD_ORIGIN(DECL) ((DECL)->decl.abstract_origin) #endif /* NEXT_SEMANTICS */ /* CLASS_INTERFACE_TYPE, CLASS_IMPLEMENTATION_TYPE, CATEGORY_INTERFACE_TYPE, CATEGORY_IMPLEMENTATION_TYPE, PROTOCOL_INTERFACE_TYPE */ #define CLASS_NAME(CLASS) ((CLASS)->type.name) #define CLASS_SUPER_NAME(CLASS) ((CLASS)->type.context) #define CLASS_IVARS(CLASS) TREE_VEC_ELT (TYPE_BINFO (CLASS), 0) #define CLASS_RAW_IVARS(CLASS) TREE_VEC_ELT (TYPE_BINFO (CLASS), 1) #define CLASS_NST_METHODS(CLASS) ((CLASS)->type.minval) #define CLASS_CLS_METHODS(CLASS) ((CLASS)->type.maxval) #define CLASS_STATIC_TEMPLATE(CLASS) TREE_VEC_ELT (TYPE_BINFO (CLASS), 2) #define CLASS_CATEGORY_LIST(CLASS) TREE_VEC_ELT (TYPE_BINFO (CLASS), 3) #define CLASS_PROTOCOL_LIST(CLASS) TREE_VEC_ELT (TYPE_BINFO (CLASS), 4) /* APPLE LOCAL bitfield alignment */ #define CLASS_OWN_IVARS(CLASS) TREE_VEC_ELT (TYPE_BINFO (CLASS), 5) #define PROTOCOL_NAME(CLASS) ((CLASS)->type.name) #define PROTOCOL_LIST(CLASS) TREE_VEC_ELT (TYPE_BINFO (CLASS), 0) #define PROTOCOL_NST_METHODS(CLASS) ((CLASS)->type.minval) #define PROTOCOL_CLS_METHODS(CLASS) ((CLASS)->type.maxval) #define PROTOCOL_FORWARD_DECL(CLASS) TREE_VEC_ELT (TYPE_BINFO (CLASS), 1) #define PROTOCOL_DEFINED(CLASS) TREE_USED (CLASS) #define TYPE_PROTOCOL_LIST(TYPE) ((TYPE)->type.context) /* Type checking macros. */ extern tree super_type, selector_type, id_type, objc_class_type; #define IS_ID(TYPE) \ (id_type && TYPE_MAIN_VARIANT (TYPE) == TYPE_MAIN_VARIANT (id_type)) #define IS_PROTOCOL_QUALIFIED_ID(TYPE) \ (IS_ID (TYPE) && TYPE_PROTOCOL_LIST (TYPE)) #define IS_SUPER(TYPE) \ (super_type && TYPE_MAIN_VARIANT (TYPE) == TYPE_MAIN_VARIANT (super_type)) /* Set by `continue_class' and checked by `is_public'. */ #define TREE_STATIC_TEMPLATE(record_type) (TREE_PUBLIC (record_type)) #define TYPED_OBJECT(type) \ (TREE_CODE (type) == RECORD_TYPE && TREE_STATIC_TEMPLATE (type)) /* Define the Objective-C or Objective-C++ language-specific tree codes. */ /* this requires tree.h and if C++ also cp-tree.h to be included already. */ #define OBJC_TREE_CODES #define DEFTREECODE(SYM, NAME, TYPE, LENGTH) SYM, enum objc_tree_code { __OBJC_DUMMY = #ifdef OBJCPLUS LAST_CPLUS_TREE_CODE, #else LAST_AND_UNUSED_TREE_CODE, #endif #include "objc-tree.def" LAST_OBJC_TREE_CODE }; #undef DEFTREECODE
gpl-2.0
paulalesius/kernel-3.10.20-lenovo-tablet
drivers/external_drivers/camera/i2c/ov8865.h
76600
/* * Support for Omnivision OV8865 camera sensor. * Based on Aptina mt9e013 driver. * * Copyright (c) 2010 Intel Corporation. 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. * * 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 __OV8865_H__ #define __OV8865_H__ #include <linux/atomisp_platform.h> #include <linux/atomisp.h> #include <linux/delay.h> #include <linux/i2c.h> #include <linux/kernel.h> #include <linux/spinlock.h> #include <linux/videodev2.h> #include <linux/v4l2-mediabus.h> #include <linux/types.h> #include <media/media-entity.h> #include <media/v4l2-ctrls.h> #include <media/v4l2-device.h> #include <media/v4l2-subdev.h> #define to_bu64243_device(_sd) (&(container_of(_sd, struct ov8865_device, sd) \ ->bu64243)) #define BU64243_W0_W2(a) ((a & 0x07) << 3) #define BU64243_PS(a) (a << 7) #define BU64243_EN(a) (a << 6) #define BU64243_M(a) (a << 2) #define BU64243_D_HI(a) ((a >> 8) & 0x03) #define BU64243_D_LO(a) (a & 0xff) #define BU64243_RFEQ(a) ((a & 0x1f) << 3) #define BU64243_SRATE(a) (a & 0x03) #define BU64243_STIME(a) (a & 0x1f) #define BU64243_SRES(a) ((a & 0x07) << 5) #define BU64243_I2C_ADDR 0x0C #define BU64243_VCM_CURRENT 0 /* point C */ #define BU64243_PARAM_1 1 /* freq and slew rate */ #define BU64243_PARAM_2 2 /* point A */ #define BU64243_PARAM_3 3 /* point B */ #define BU64243_PARAM_4 4 /*step res and step time*/ #define BU64243_DEFAULT_POINT_A 0x2a /* 42 */ #define BU64243_DEFAULT_POINT_B 0x52 /* 82 */ #define BU64243_DEFAULT_POINT_C 0xCB /* 203*/ #define BU64243_DEFAULT_VCM_FREQ 0x08 /* 85HZ */ #define BU64243_DEFAULT_SLEW_RATE 0x03 /* fastest */ #define BU64243_DEFAULT_RES_SETTING 0x04 /* 4LSB */ #define BU64243_DEFAULT_STEP_TIME_SETTING 0x04 /* 200us */ #define BU64243_DEFAULT_OUTPUT_STATUS 0x01 /* 0 um */ #define BU64243_DEFAULT_ISRC_MODE 0x01 /* 0 um */ #define INTEL_FOCUS_OFFSET 20 #define VCM_ORIENTATION_OFFSET 100 #define POINT_AB_OFFSET 40 #define BU64243_MAX_FOCUS_POS 1023 /* bu64243 device structure */ struct bu64243_device { bool initialized; /* true if bu64243 is detected */ u16 focus; u16 power_state; u16 output_status; /* */ u16 isrc_mode; /* ISRC enable */ u16 point_a; /* 0 um */ u16 point_b; /* lens float */ u16 point_c; /* focus point*/ u16 res_freq; /* resonant frequency*/ u16 slew_rate; /* slew rate*/ u16 step_res; /* step resolution */ u16 step_time; /* step time */ struct timespec focus_time; /* Time when focus was last time set */ __u8 buffer[4]; /* Used for i2c transactions */ const struct camera_af_platform_data *platform_data; }; #define OV8865_NAME "ov8865" #define OV8865_ADDR 0x10 #define OV8865_CHIP_ID 0x8865 #define LAST_REG_SETING {0xffff, 0xff} #define is_last_reg_setting(item) ((item).reg == 0xffff) #define I2C_MSG_LENGTH 0x2 #define OV8865_INVALID_CONFIG 0xffffffff #define OV8865_INTG_UNIT_US 100 #define OV8865_MCLK 192 #define OV8865_REG_BITS 16 #define OV8865_REG_MASK 0xFFFF /* This should be added into include/linux/videodev2.h */ #ifndef V4L2_IDENT_OV8865 #define V4L2_IDENT_OV8865 8245 #endif /* * ov8865 System control registers */ #define OV8865_PLL_PLL10 0x3090 #define OV8865_PLL_PLL11 0x3091 #define OV8865_PLL_PLL12 0x3092 #define OV8865_PLL_PLL13 0x3093 #define OV8865_TIMING_VTS 0x380e #define OV8865_TIMING_HTS 0x380C #define PLL1_SYS_PRE_DIV 0x030F #define OV8865_HORIZONTAL_START_H 0x3800 #define OV8865_HORIZONTAL_START_L 0x3801 #define OV8865_VERTICAL_START_H 0x3802 #define OV8865_VERTICAL_START_L 0x3803 #define OV8865_HORIZONTAL_END_H 0x3804 #define OV8865_HORIZONTAL_END_L 0x3805 #define OV8865_VERTICAL_END_H 0x3806 #define OV8865_VERTICAL_END_L 0x3807 #define OV8865_HORIZONTAL_OUTPUT_SIZE_H 0x3808 #define OV8865_HORIZONTAL_OUTPUT_SIZE_L 0x3809 #define OV8865_VERTICAL_OUTPUT_SIZE_H 0x380a #define OV8865_VERTICAL_OUTPUT_SIZE_L 0x380b #define OV8865_GROUP_ACCESS 0x3208 #define OV8865_GROUP_ACCESS_HOLD_START 0x00 #define OV8865_GROUP_ACCESS_HOLD_END 0x10 #define OV8865_GROUP_ACCESS_DELAY_LAUNCH 0xA0 #define OV8865_GROUP_ACCESS_QUICK_LAUNCH 0xE0 #define OV8865_LONG_EXPO 0x3500 #define OV8865_AGC_ADJ 0x3508 #define OV8865_TEST_PATTERN_MODE 0x3070 /* ov8865 SCCB */ #define OV8865_SCCB_CTRL 0x3100 #define OV8865_AEC_PK_EXPO_H 0x3500 #define OV8865_AEC_PK_EXPO_M 0x3501 #define OV8865_AEC_PK_EXPO_L 0x3502 #define OV8865_AEC_MANUAL_CTRL 0x3503 #define OV8865_AGC_ADJ_H 0x3508 #define OV8865_AGC_ADJ_L 0x3509 #define OV8865_MWB_RED_GAIN_H 0x3400 #define OV8865_MWB_GREEN_GAIN_H 0x3402 #define OV8865_MWB_BLUE_GAIN_H 0x3404 #define OV8865_DIGI_GAIN 0x350A #define OV8865_MWB_GAIN_MAX 0x3fff #define OV8865_OTP_BANK0_PID 0x3d00 #define OV8865_CHIP_ID_HIGH 0x300B #define OV8865_CHIP_ID_LOW 0x300C #define OV8865_STREAM_MODE 0x0100 #define OV8865_FOCAL_LENGTH_NUM 439 /*4.39mm*/ #define OV8865_FOCAL_LENGTH_DEM 100 #define OV8865_F_NUMBER_DEFAULT_NUM 24 #define OV8865_F_NUMBER_DEM 10 #define OV8865_TIMING_X_INC 0x3814 #define OV8865_TIMING_Y_INC 0x382A #define OV8865_ISP_CTRL 0x501E /* sensor_mode_data read_mode adaptation */ #define OV8865_READ_MODE_BINNING_ON 0x0400 #define OV8865_READ_MODE_BINNING_OFF 0x00 #define OV8865_INTEGRATION_TIME_MARGIN 4 #define OV8865_MAX_VTS_VALUE 0x7FFF #define OV8865_MAX_EXPOSURE_VALUE \ (OV8865_MAX_VTS_VALUE - OV8865_INTEGRATION_TIME_MARGIN) #define OV8865_MAX_GAIN_VALUE 0xfff /*x32 gain*/ /* * focal length bits definition: * bits 31-16: numerator, bits 15-0: denominator */ #define OV8865_FOCAL_LENGTH_DEFAULT ((385<<16)|100) //3.85 /* * current f-number bits definition: * bits 31-16: numerator, bits 15-0: denominator */ #define OV8865_F_NUMBER_DEFAULT ((220<<16)|100) //2.2 /* * f-number range bits definition: * bits 31-24: max f-number numerator * bits 23-16: max f-number denominator * bits 15-8: min f-number numerator * bits 7-0: min f-number denominator */ #define OV8865_F_NUMBER_RANGE 0x180a180a #define OTPM_ADD_START_1 0x1000 #define OTPM_DATA_LENGTH_1 0x0100 #define OTPM_COUNT 0x200 /* Defines for register writes and register array processing */ #define OV8865_BYTE_MAX 32 #define OV8865_SHORT_MAX 16 #define I2C_RETRY_COUNT 5 #define OV8865_TOK_MASK 0xfff0 #define OV8865_STATUS_POWER_DOWN 0x0 #define OV8865_STATUS_STANDBY 0x2 #define OV8865_STATUS_ACTIVE 0x3 #define OV8865_STATUS_VIEWFINDER 0x4 #define MAX_FPS_OPTIONS_SUPPORTED 3 #define v4l2_format_capture_type_entry(_width, _height, \ _pixelformat, _bytesperline, _colorspace) \ {\ .type = V4L2_BUF_TYPE_VIDEO_CAPTURE,\ .fmt.pix.width = (_width),\ .fmt.pix.height = (_height),\ .fmt.pix.pixelformat = (_pixelformat),\ .fmt.pix.bytesperline = (_bytesperline),\ .fmt.pix.colorspace = (_colorspace),\ .fmt.pix.sizeimage = (_height)*(_bytesperline),\ } #define s_output_format_entry(_width, _height, _pixelformat, \ _bytesperline, _colorspace, _fps) \ {\ .v4l2_fmt = v4l2_format_capture_type_entry(_width, \ _height, _pixelformat, _bytesperline, \ _colorspace),\ .fps = (_fps),\ } #define s_output_format_reg_entry(_width, _height, _pixelformat, \ _bytesperline, _colorspace, _fps, _reg_setting) \ {\ .s_fmt = s_output_format_entry(_width, _height,\ _pixelformat, _bytesperline, \ _colorspace, _fps),\ .reg_setting = (_reg_setting),\ } struct s_ctrl_id { struct v4l2_queryctrl qc; int (*s_ctrl)(struct v4l2_subdev *sd, u32 val); int (*g_ctrl)(struct v4l2_subdev *sd, u32 *val); }; #define v4l2_queryctrl_entry_integer(_id, _name,\ _minimum, _maximum, _step, \ _default_value, _flags) \ {\ .id = (_id), \ .type = V4L2_CTRL_TYPE_INTEGER, \ .name = _name, \ .minimum = (_minimum), \ .maximum = (_maximum), \ .step = (_step), \ .default_value = (_default_value),\ .flags = (_flags),\ } #define v4l2_queryctrl_entry_boolean(_id, _name,\ _default_value, _flags) \ {\ .id = (_id), \ .type = V4L2_CTRL_TYPE_BOOLEAN, \ .name = _name, \ .minimum = 0, \ .maximum = 1, \ .step = 1, \ .default_value = (_default_value),\ .flags = (_flags),\ } #define s_ctrl_id_entry_integer(_id, _name, \ _minimum, _maximum, _step, \ _default_value, _flags, \ _s_ctrl, _g_ctrl) \ {\ .qc = v4l2_queryctrl_entry_integer(_id, _name,\ _minimum, _maximum, _step,\ _default_value, _flags), \ .s_ctrl = _s_ctrl, \ .g_ctrl = _g_ctrl, \ } #define s_ctrl_id_entry_boolean(_id, _name, \ _default_value, _flags, \ _s_ctrl, _g_ctrl) \ {\ .qc = v4l2_queryctrl_entry_boolean(_id, _name,\ _default_value, _flags), \ .s_ctrl = _s_ctrl, \ .g_ctrl = _g_ctrl, \ } #define macro_string_entry(VAL) \ { \ .val = VAL, \ .string = #VAL, \ } enum ov8865_tok_type { OV8865_8BIT = 0x0001, OV8865_16BIT = 0x0002, OV8865_TOK_TERM = 0xf000, /* terminating token for reg list */ OV8865_TOK_DELAY = 0xfe00 /* delay token for reg list */ }; /* * If register address or register width is not 32 bit width, * user needs to convert it manually */ struct s_register_setting { u32 reg; u32 val; }; struct s_output_format { struct v4l2_format v4l2_fmt; int fps; }; /** * struct ov8865_fwreg - Firmware burst command * @type: FW burst or 8/16 bit register * @addr: 16-bit offset to register or other values depending on type * @val: data value for burst (or other commands) * * Define a structure for sensor register initialization values */ struct ov8865_fwreg { enum ov8865_tok_type type; /* value, register or FW burst string */ u16 addr; /* target address */ u32 val[8]; }; /** * struct ov8865_reg - MI sensor register format * @type: type of the register * @reg: 16-bit offset to register * @val: 8/16/32-bit register value * * Define a structure for sensor register initialization values */ struct ov8865_reg { enum ov8865_tok_type type; union { u16 sreg; struct ov8865_fwreg *fwreg; } reg; u32 val; /* @set value for read/mod/write, @mask */ u32 val2; /* optional: for rmw, OR mask */ }; struct ov8865_fps_setting { int fps; unsigned short pixels_per_line; unsigned short lines_per_frame; }; /* Store macro values' debug names */ struct macro_string { u8 val; char *string; }; static inline const char * macro_to_string(const struct macro_string *array, int size, u8 val) { int i; for (i = 0; i < size; i++) { if (array[i].val == val) return array[i].string; } return "Unknown VAL"; } struct ov8865_control { struct v4l2_queryctrl qc; int (*query)(struct v4l2_subdev *sd, s32 *value); int (*tweak)(struct v4l2_subdev *sd, s32 value); }; struct ov8865_resolution { u8 *desc; int res; int width; int height; bool used; const struct ov8865_reg *regs; u8 bin_factor_x; u8 bin_factor_y; unsigned short skip_frames; const struct ov8865_fps_setting fps_options[MAX_FPS_OPTIONS_SUPPORTED]; }; struct ov8865_format { u8 *desc; u32 pixelformat; struct s_register_setting *regs; }; /* ov8865 device structure */ struct ov8865_device { struct v4l2_subdev sd; struct media_pad pad; struct v4l2_mbus_framefmt format; u8 *otp_data; struct camera_sensor_platform_data *platform_data; int fmt_idx; int streaming; int power; u16 sensor_id; u8 sensor_revision; int exposure; int gain; u16 digital_gain; struct bu64243_device bu64243; struct mutex input_lock; /* serialize sensor's ioctl */ const struct ov8865_reg *basic_settings_list; const struct ov8865_resolution *curr_res_table; int entries_curr_table; int fps_index; struct v4l2_ctrl_handler ctrl_handler; struct v4l2_ctrl *run_mode; }; /* * The i2c adapter on Intel Medfield can transfer 32 bytes maximum * at a time. In burst mode we require that the buffer is transferred * in one shot, so limit the buffer size to 32 bytes minus a safety. */ #define OV8865_MAX_WRITE_BUF_SIZE 30 struct ov8865_write_buffer { u16 addr; u8 data[OV8865_MAX_WRITE_BUF_SIZE]; }; struct ov8865_write_ctrl { int index; struct ov8865_write_buffer buffer; }; #define OV8865_RES_WIDTH_MAX 3280 #define OV8865_RES_HEIGHT_MAX 2464 /* please refer to 0x3800 0x3801 setting*/ #define OV8865_CROP_X_START_FOR_MAX_SIZE 0x0C /* please refer to 0x3802 0x3803 setting*/ #define OV8865_CROP_Y_START_FOR_MAX_SIZE 0x0C #define ISP_PADDING_W 16 #define ISP_PADDING_H 16 #define OV8865_ISP_MAX_WIDTH (OV8865_RES_WIDTH_MAX - ISP_PADDING_W) #define OV8865_ISP_MAX_HEIGHT (OV8865_RES_HEIGHT_MAX - ISP_PADDING_H) static const struct ov8865_reg ov8865_BasicSettings[] = { {OV8865_8BIT, {0x0103}, 0x01}, /* delay 10ms*/ {OV8865_TOK_DELAY, {0}, 0x0A}, {OV8865_8BIT, {0x0100}, 0x00}, {OV8865_8BIT, {0x0100}, 0x00}, {OV8865_8BIT, {0x0100}, 0x00}, {OV8865_8BIT, {0x0100}, 0x00}, {OV8865_8BIT, {0x3638}, 0xff}, {OV8865_8BIT, {0x0300}, 0x05}, {OV8865_8BIT, {0x0302}, 0x96}, {OV8865_8BIT, {0x0303}, 0x00}, {OV8865_8BIT, {0x0304}, 0x03}, {OV8865_8BIT, {0x030b}, 0x05}, {OV8865_8BIT, {0x030e}, 0x00}, {OV8865_8BIT, {0x030d}, 0x96}, {OV8865_8BIT, {0x030f}, 0x04}, {OV8865_8BIT, {0x0312}, 0x01}, {OV8865_8BIT, {0x031e}, 0x0c}, {OV8865_8BIT, {0x3015}, 0x01}, {OV8865_8BIT, {0x3018}, 0x72}, {OV8865_8BIT, {0x3020}, 0x93}, {OV8865_8BIT, {0x3022}, 0x01}, {OV8865_8BIT, {0x3031}, 0x0a}, {OV8865_8BIT, {0x3106}, 0x01}, {OV8865_8BIT, {0x3305}, 0xf1}, {OV8865_8BIT, {0x3308}, 0x00}, {OV8865_8BIT, {0x3309}, 0x28}, {OV8865_8BIT, {0x330a}, 0x00}, {OV8865_8BIT, {0x330b}, 0x20}, {OV8865_8BIT, {0x330c}, 0x00}, {OV8865_8BIT, {0x330d}, 0x00}, {OV8865_8BIT, {0x330e}, 0x00}, {OV8865_8BIT, {0x330f}, 0x40}, {OV8865_8BIT, {0x3307}, 0x04}, {OV8865_8BIT, {0x3604}, 0x04}, {OV8865_8BIT, {0x3602}, 0x30}, {OV8865_8BIT, {0x3605}, 0x00}, {OV8865_8BIT, {0x3607}, 0x20}, {OV8865_8BIT, {0x3608}, 0x11}, {OV8865_8BIT, {0x3609}, 0x68}, {OV8865_8BIT, {0x360a}, 0x40}, {OV8865_8BIT, {0x360c}, 0xdd}, {OV8865_8BIT, {0x360e}, 0x0c}, {OV8865_8BIT, {0x3610}, 0x07}, {OV8865_8BIT, {0x3612}, 0x86}, {OV8865_8BIT, {0x3613}, 0x58}, {OV8865_8BIT, {0x3614}, 0x28}, {OV8865_8BIT, {0x3617}, 0x40}, {OV8865_8BIT, {0x3618}, 0x5a}, {OV8865_8BIT, {0x3619}, 0x9b}, {OV8865_8BIT, {0x361c}, 0x00}, {OV8865_8BIT, {0x361d}, 0x60}, {OV8865_8BIT, {0x3631}, 0x60}, {OV8865_8BIT, {0x3633}, 0x10}, {OV8865_8BIT, {0x3634}, 0x10}, {OV8865_8BIT, {0x3635}, 0x10}, {OV8865_8BIT, {0x3636}, 0x10}, {OV8865_8BIT, {0x3641}, 0x55}, {OV8865_8BIT, {0x3646}, 0x86}, {OV8865_8BIT, {0x3647}, 0x27}, {OV8865_8BIT, {0x364a}, 0x1b}, {OV8865_8BIT, {0x3500}, 0x00}, {OV8865_8BIT, {0x3503}, 0x00}, {OV8865_8BIT, {0x3509}, 0x00}, {OV8865_8BIT, {0x3705}, 0x00}, {OV8865_8BIT, {0x3719}, 0x31}, {OV8865_8BIT, {0x3714}, 0x12}, {OV8865_8BIT, {0x3733}, 0x10}, {OV8865_8BIT, {0x3734}, 0x40}, {OV8865_8BIT, {0x3755}, 0x40}, {OV8865_8BIT, {0x3758}, 0x00}, {OV8865_8BIT, {0x3759}, 0x4c}, {OV8865_8BIT, {0x375c}, 0x40}, {OV8865_8BIT, {0x375e}, 0x00}, {OV8865_8BIT, {0x3768}, 0x04}, {OV8865_8BIT, {0x3769}, 0x20}, {OV8865_8BIT, {0x376c}, 0xc0}, {OV8865_8BIT, {0x376d}, 0xc0}, {OV8865_8BIT, {0x376a}, 0x08}, {OV8865_8BIT, {0x3761}, 0x00}, {OV8865_8BIT, {0x3762}, 0x00}, {OV8865_8BIT, {0x3763}, 0x00}, {OV8865_8BIT, {0x3766}, 0xff}, {OV8865_8BIT, {0x376b}, 0x42}, {OV8865_8BIT, {0x37a4}, 0x00}, {OV8865_8BIT, {0x37a6}, 0x00}, {OV8865_8BIT, {0x3760}, 0x00}, {OV8865_8BIT, {0x376f}, 0x01}, {OV8865_8BIT, {0x37b0}, 0x00}, {OV8865_8BIT, {0x37b1}, 0x00}, {OV8865_8BIT, {0x37b2}, 0x00}, {OV8865_8BIT, {0x37b6}, 0x00}, {OV8865_8BIT, {0x37b7}, 0x00}, {OV8865_8BIT, {0x37b8}, 0x00}, {OV8865_8BIT, {0x37b9}, 0xff}, {OV8865_8BIT, {0x3800}, 0x00}, /*please change OV8865_CROP_X_START_FOR_MAX_SIZE accordingly*/ {OV8865_8BIT, {0x3801}, 0x0c}, {OV8865_8BIT, {0x3802}, 0x00}, /*please change OV8865_CROP_Y_START_FOR_MAX_SIZE accordingly*/ {OV8865_8BIT, {0x3803}, 0x0c}, {OV8865_8BIT, {0x3804}, 0x0c}, {OV8865_8BIT, {0x3805}, 0xd3}, {OV8865_8BIT, {0x3806}, 0x09}, {OV8865_8BIT, {0x3807}, 0xa3}, {OV8865_8BIT, {0x3810}, 0x00}, {OV8865_8BIT, {0x3811}, 0x04}, {OV8865_8BIT, {0x3815}, 0x01}, {OV8865_8BIT, {0x3820}, 0x06}, {OV8865_8BIT, {0x382b}, 0x01}, {OV8865_8BIT, {0x3837}, 0x18}, {OV8865_8BIT, {0x3841}, 0xff}, {OV8865_8BIT, {0x3d85}, 0x06}, {OV8865_8BIT, {0x3d8c}, 0x75}, {OV8865_8BIT, {0x3d8d}, 0xef}, {OV8865_8BIT, {0x4000}, 0xf1}, {OV8865_8BIT, {0x4005}, 0x10}, {OV8865_8BIT, {0x400b}, 0x0c}, {OV8865_8BIT, {0x400d}, 0x10}, {OV8865_8BIT, {0x401b}, 0x00}, {OV8865_8BIT, {0x401d}, 0x00}, {OV8865_8BIT, {0x4028}, 0x00}, {OV8865_8BIT, {0x4029}, 0x02}, {OV8865_8BIT, {0x402a}, 0x04}, {OV8865_8BIT, {0x402b}, 0x04}, {OV8865_8BIT, {0x402c}, 0x02}, {OV8865_8BIT, {0x402d}, 0x02}, {OV8865_8BIT, {0x402e}, 0x08}, {OV8865_8BIT, {0x402f}, 0x02}, {OV8865_8BIT, {0x401f}, 0x00}, {OV8865_8BIT, {0x4034}, 0x3f}, {OV8865_8BIT, {0x4300}, 0xff}, {OV8865_8BIT, {0x4301}, 0x00}, {OV8865_8BIT, {0x4302}, 0x0f}, {OV8865_8BIT, {0x4503}, 0x10}, {OV8865_8BIT, {0x481f}, 0x32}, {OV8865_8BIT, {0x4837}, 0x16}, {OV8865_8BIT, {0x4850}, 0x10}, {OV8865_8BIT, {0x4851}, 0x32}, {OV8865_8BIT, {0x4b00}, 0x2a}, {OV8865_8BIT, {0x4b0d}, 0x00}, {OV8865_8BIT, {0x4d00}, 0x04}, {OV8865_8BIT, {0x4d01}, 0x18}, {OV8865_8BIT, {0x4d02}, 0xc3}, {OV8865_8BIT, {0x4d03}, 0xff}, {OV8865_8BIT, {0x4d04}, 0xff}, {OV8865_8BIT, {0x4d05}, 0xff}, {OV8865_8BIT, {0x5000}, 0x96}, {OV8865_8BIT, {0x5001}, 0x01}, {OV8865_8BIT, {0x5002}, 0x08}, {OV8865_8BIT, {0x5901}, 0x00}, {OV8865_8BIT, {0x5e00}, 0x00}, {OV8865_8BIT, {0x5e01}, 0x41}, {OV8865_8BIT, {0x5b00}, 0x02}, {OV8865_8BIT, {0x5b01}, 0xd0}, {OV8865_8BIT, {0x5b02}, 0x03}, {OV8865_8BIT, {0x5b03}, 0xff}, {OV8865_8BIT, {0x5b05}, 0x6c}, {OV8865_8BIT, {0x5780}, 0xfc}, {OV8865_8BIT, {0x5781}, 0xdf}, {OV8865_8BIT, {0x5782}, 0x3f}, {OV8865_8BIT, {0x5783}, 0x08}, {OV8865_8BIT, {0x5784}, 0x0c}, {OV8865_8BIT, {0x5786}, 0x20}, {OV8865_8BIT, {0x5787}, 0x40}, {OV8865_8BIT, {0x5788}, 0x08}, {OV8865_8BIT, {0x5789}, 0x08}, {OV8865_8BIT, {0x578a}, 0x02}, {OV8865_8BIT, {0x578b}, 0x01}, {OV8865_8BIT, {0x578c}, 0x01}, {OV8865_8BIT, {0x578d}, 0x0c}, {OV8865_8BIT, {0x578e}, 0x02}, {OV8865_8BIT, {0x578f}, 0x01}, {OV8865_8BIT, {0x5790}, 0x01}, {OV8865_8BIT, {0x5800}, 0x1d}, {OV8865_8BIT, {0x5801}, 0x0e}, {OV8865_8BIT, {0x5802}, 0x0c}, {OV8865_8BIT, {0x5803}, 0x0c}, {OV8865_8BIT, {0x5804}, 0x0f}, {OV8865_8BIT, {0x5805}, 0x22}, {OV8865_8BIT, {0x5806}, 0x0a}, {OV8865_8BIT, {0x5807}, 0x06}, {OV8865_8BIT, {0x5808}, 0x05}, {OV8865_8BIT, {0x5809}, 0x05}, {OV8865_8BIT, {0x580a}, 0x07}, {OV8865_8BIT, {0x580b}, 0x0a}, {OV8865_8BIT, {0x580c}, 0x06}, {OV8865_8BIT, {0x580d}, 0x02}, {OV8865_8BIT, {0x580e}, 0x00}, {OV8865_8BIT, {0x580f}, 0x00}, {OV8865_8BIT, {0x5810}, 0x03}, {OV8865_8BIT, {0x5811}, 0x07}, {OV8865_8BIT, {0x5812}, 0x06}, {OV8865_8BIT, {0x5813}, 0x02}, {OV8865_8BIT, {0x5814}, 0x00}, {OV8865_8BIT, {0x5815}, 0x00}, {OV8865_8BIT, {0x5816}, 0x03}, {OV8865_8BIT, {0x5817}, 0x07}, {OV8865_8BIT, {0x5818}, 0x09}, {OV8865_8BIT, {0x5819}, 0x06}, {OV8865_8BIT, {0x581a}, 0x04}, {OV8865_8BIT, {0x581b}, 0x04}, {OV8865_8BIT, {0x581c}, 0x06}, {OV8865_8BIT, {0x581d}, 0x0a}, {OV8865_8BIT, {0x581e}, 0x19}, {OV8865_8BIT, {0x581f}, 0x0d}, {OV8865_8BIT, {0x5820}, 0x0b}, {OV8865_8BIT, {0x5821}, 0x0b}, {OV8865_8BIT, {0x5822}, 0x0e}, {OV8865_8BIT, {0x5823}, 0x22}, {OV8865_8BIT, {0x5824}, 0x23}, {OV8865_8BIT, {0x5825}, 0x28}, {OV8865_8BIT, {0x5826}, 0x29}, {OV8865_8BIT, {0x5827}, 0x27}, {OV8865_8BIT, {0x5828}, 0x13}, {OV8865_8BIT, {0x5829}, 0x26}, {OV8865_8BIT, {0x582a}, 0x33}, {OV8865_8BIT, {0x582b}, 0x32}, {OV8865_8BIT, {0x582c}, 0x33}, {OV8865_8BIT, {0x582d}, 0x16}, {OV8865_8BIT, {0x582e}, 0x14}, {OV8865_8BIT, {0x582f}, 0x30}, {OV8865_8BIT, {0x5830}, 0x31}, {OV8865_8BIT, {0x5831}, 0x30}, {OV8865_8BIT, {0x5832}, 0x15}, {OV8865_8BIT, {0x5833}, 0x26}, {OV8865_8BIT, {0x5834}, 0x23}, {OV8865_8BIT, {0x5835}, 0x21}, {OV8865_8BIT, {0x5836}, 0x23}, {OV8865_8BIT, {0x5837}, 0x05}, {OV8865_8BIT, {0x5838}, 0x36}, {OV8865_8BIT, {0x5839}, 0x27}, {OV8865_8BIT, {0x583a}, 0x28}, {OV8865_8BIT, {0x583b}, 0x26}, {OV8865_8BIT, {0x583c}, 0x24}, {OV8865_8BIT, {0x583d}, 0xdf}, /* otp key setting */ {OV8865_8BIT, {0x3820}, 0x06}, /* Mirror off, flip on */ {OV8865_8BIT, {0x3821}, 0x40}, /* Align with Intel/Lenovo requirement */ {OV8865_8BIT, {0x5000}, 0x16}, {OV8865_8BIT, {0x5018}, 0x10}, {OV8865_8BIT, {0x5019}, 0x00}, {OV8865_8BIT, {0x501a}, 0x10}, {OV8865_8BIT, {0x501b}, 0x00}, {OV8865_8BIT, {0x501c}, 0x10}, {OV8865_8BIT, {0x501d}, 0x00}, {OV8865_8BIT, {0x501e}, 0x00}, {OV8865_8BIT, {0x4000}, 0xf3}, {OV8865_8BIT, {0x3503}, 0x00}, {OV8865_8BIT, {0x3501}, 0x07}, {OV8865_8BIT, {0x3502}, 0xff}, {OV8865_8BIT, {0x3508}, 0x00}, { OV8865_TOK_TERM, {0}, 0} }; /*****************************STILL********************************/ static const struct ov8865_reg ov8865_896x736_30fps[] = { /* 896x736_30fps */ {OV8865_8BIT, {0x0100}, 0x00}, {OV8865_8BIT, {0x030f}, 0x09}, {OV8865_8BIT, {0x3501}, 0x31}, {OV8865_8BIT, {0x3502}, 0x00}, {OV8865_8BIT, {0x3508}, 0x02}, {OV8865_8BIT, {0x3700}, 0x24}, {OV8865_8BIT, {0x3701}, 0x0c}, {OV8865_8BIT, {0x3702}, 0x28}, {OV8865_8BIT, {0x3703}, 0x19}, {OV8865_8BIT, {0x3704}, 0x14}, {OV8865_8BIT, {0x3706}, 0x38}, {OV8865_8BIT, {0x3707}, 0x04}, {OV8865_8BIT, {0x3708}, 0x24}, {OV8865_8BIT, {0x3709}, 0x40}, {OV8865_8BIT, {0x370a}, 0x00}, {OV8865_8BIT, {0x370b}, 0xb8}, {OV8865_8BIT, {0x370c}, 0x04}, {OV8865_8BIT, {0x3718}, 0x12}, {OV8865_8BIT, {0x3712}, 0x42}, {OV8865_8BIT, {0x371e}, 0x19}, {OV8865_8BIT, {0x371f}, 0x40}, {OV8865_8BIT, {0x3720}, 0x05}, {OV8865_8BIT, {0x3721}, 0x05}, {OV8865_8BIT, {0x3724}, 0x02}, {OV8865_8BIT, {0x3725}, 0x02}, {OV8865_8BIT, {0x3726}, 0x06}, {OV8865_8BIT, {0x3728}, 0x05}, {OV8865_8BIT, {0x3729}, 0x02}, {OV8865_8BIT, {0x372a}, 0x03}, {OV8865_8BIT, {0x372b}, 0x53}, {OV8865_8BIT, {0x372c}, 0xa3}, {OV8865_8BIT, {0x372d}, 0x53}, {OV8865_8BIT, {0x372e}, 0x06}, {OV8865_8BIT, {0x372f}, 0x10}, {OV8865_8BIT, {0x3730}, 0x01}, {OV8865_8BIT, {0x3731}, 0x06}, {OV8865_8BIT, {0x3732}, 0x14}, {OV8865_8BIT, {0x3736}, 0x20}, {OV8865_8BIT, {0x373a}, 0x02}, {OV8865_8BIT, {0x373b}, 0x0c}, {OV8865_8BIT, {0x373c}, 0x0a}, {OV8865_8BIT, {0x373e}, 0x03}, {OV8865_8BIT, {0x375a}, 0x06}, {OV8865_8BIT, {0x375b}, 0x13}, {OV8865_8BIT, {0x375d}, 0x02}, {OV8865_8BIT, {0x375f}, 0x14}, {OV8865_8BIT, {0x3767}, 0x1c}, {OV8865_8BIT, {0x3772}, 0x23}, {OV8865_8BIT, {0x3773}, 0x02}, {OV8865_8BIT, {0x3774}, 0x16}, {OV8865_8BIT, {0x3775}, 0x12}, {OV8865_8BIT, {0x3776}, 0x08}, {OV8865_8BIT, {0x37a0}, 0x44}, {OV8865_8BIT, {0x37a1}, 0x3d}, {OV8865_8BIT, {0x37a2}, 0x3d}, {OV8865_8BIT, {0x37a3}, 0x01}, {OV8865_8BIT, {0x37a5}, 0x08}, {OV8865_8BIT, {0x37a7}, 0x44}, {OV8865_8BIT, {0x37a8}, 0x58}, {OV8865_8BIT, {0x37a9}, 0x58}, {OV8865_8BIT, {0x37aa}, 0x44}, {OV8865_8BIT, {0x37ab}, 0x2e}, {OV8865_8BIT, {0x37ac}, 0x2e}, {OV8865_8BIT, {0x37ad}, 0x33}, {OV8865_8BIT, {0x37ae}, 0x0d}, {OV8865_8BIT, {0x37af}, 0x0d}, {OV8865_8BIT, {0x37b3}, 0x42}, {OV8865_8BIT, {0x37b4}, 0x42}, {OV8865_8BIT, {0x37b5}, 0x33}, {OV8865_8BIT, {0x3808}, 0x03}, {OV8865_8BIT, {0x3809}, 0x80}, {OV8865_8BIT, {0x380a}, 0x02}, {OV8865_8BIT, {0x380b}, 0xe0}, {OV8865_8BIT, {0x380c}, 0x06}, {OV8865_8BIT, {0x380d}, 0xe6}, {OV8865_8BIT, {0x380e}, 0x05}, {OV8865_8BIT, {0x380f}, 0x50}, {OV8865_8BIT, {0x3813}, 0x04}, {OV8865_8BIT, {0x3814}, 0x03}, {OV8865_8BIT, {0x3821}, 0x61}, {OV8865_8BIT, {0x382a}, 0x03}, {OV8865_8BIT, {0x3830}, 0x08}, {OV8865_8BIT, {0x3836}, 0x02}, {OV8865_8BIT, {0x3846}, 0x88}, {OV8865_8BIT, {0x3f08}, 0x0b}, {OV8865_8BIT, {0x4001}, 0x14}, {OV8865_8BIT, {0x4020}, 0x00}, {OV8865_8BIT, {0x4021}, 0x00}, {OV8865_8BIT, {0x4022}, 0x01}, {OV8865_8BIT, {0x4023}, 0x56}, {OV8865_8BIT, {0x4024}, 0x03}, {OV8865_8BIT, {0x4025}, 0x54}, {OV8865_8BIT, {0x4026}, 0x03}, {OV8865_8BIT, {0x4027}, 0x84}, {OV8865_8BIT, {0x4500}, 0x40}, {OV8865_8BIT, {0x4601}, 0x38}, { OV8865_TOK_TERM, {0}, 0} }; static const struct ov8865_reg ov8865_1216x736_30fps[] = { /* 1216x736_30fps */ {OV8865_8BIT, {0x0100}, 0x00}, {OV8865_8BIT, {0x030f}, 0x09}, {OV8865_8BIT, {0x3501}, 0x31}, {OV8865_8BIT, {0x3502}, 0x00}, {OV8865_8BIT, {0x3508}, 0x02}, {OV8865_8BIT, {0x3700}, 0x24}, {OV8865_8BIT, {0x3701}, 0x0c}, {OV8865_8BIT, {0x3702}, 0x28}, {OV8865_8BIT, {0x3703}, 0x19}, {OV8865_8BIT, {0x3704}, 0x14}, {OV8865_8BIT, {0x3706}, 0x38}, {OV8865_8BIT, {0x3707}, 0x04}, {OV8865_8BIT, {0x3708}, 0x24}, {OV8865_8BIT, {0x3709}, 0x40}, {OV8865_8BIT, {0x370a}, 0x00}, {OV8865_8BIT, {0x370b}, 0xb8}, {OV8865_8BIT, {0x370c}, 0x04}, {OV8865_8BIT, {0x3718}, 0x12}, {OV8865_8BIT, {0x3712}, 0x42}, {OV8865_8BIT, {0x371e}, 0x19}, {OV8865_8BIT, {0x371f}, 0x40}, {OV8865_8BIT, {0x3720}, 0x05}, {OV8865_8BIT, {0x3721}, 0x05}, {OV8865_8BIT, {0x3724}, 0x02}, {OV8865_8BIT, {0x3725}, 0x02}, {OV8865_8BIT, {0x3726}, 0x06}, {OV8865_8BIT, {0x3728}, 0x05}, {OV8865_8BIT, {0x3729}, 0x02}, {OV8865_8BIT, {0x372a}, 0x03}, {OV8865_8BIT, {0x372b}, 0x53}, {OV8865_8BIT, {0x372c}, 0xa3}, {OV8865_8BIT, {0x372d}, 0x53}, {OV8865_8BIT, {0x372e}, 0x06}, {OV8865_8BIT, {0x372f}, 0x10}, {OV8865_8BIT, {0x3730}, 0x01}, {OV8865_8BIT, {0x3731}, 0x06}, {OV8865_8BIT, {0x3732}, 0x14}, {OV8865_8BIT, {0x3736}, 0x20}, {OV8865_8BIT, {0x373a}, 0x02}, {OV8865_8BIT, {0x373b}, 0x0c}, {OV8865_8BIT, {0x373c}, 0x0a}, {OV8865_8BIT, {0x373e}, 0x03}, {OV8865_8BIT, {0x375a}, 0x06}, {OV8865_8BIT, {0x375b}, 0x13}, {OV8865_8BIT, {0x375d}, 0x02}, {OV8865_8BIT, {0x375f}, 0x14}, {OV8865_8BIT, {0x3767}, 0x1c}, {OV8865_8BIT, {0x3772}, 0x23}, {OV8865_8BIT, {0x3773}, 0x02}, {OV8865_8BIT, {0x3774}, 0x16}, {OV8865_8BIT, {0x3775}, 0x12}, {OV8865_8BIT, {0x3776}, 0x08}, {OV8865_8BIT, {0x37a0}, 0x44}, {OV8865_8BIT, {0x37a1}, 0x3d}, {OV8865_8BIT, {0x37a2}, 0x3d}, {OV8865_8BIT, {0x37a3}, 0x01}, {OV8865_8BIT, {0x37a5}, 0x08}, {OV8865_8BIT, {0x37a7}, 0x44}, {OV8865_8BIT, {0x37a8}, 0x58}, {OV8865_8BIT, {0x37a9}, 0x58}, {OV8865_8BIT, {0x37aa}, 0x44}, {OV8865_8BIT, {0x37ab}, 0x2e}, {OV8865_8BIT, {0x37ac}, 0x2e}, {OV8865_8BIT, {0x37ad}, 0x33}, {OV8865_8BIT, {0x37ae}, 0x0d}, {OV8865_8BIT, {0x37af}, 0x0d}, {OV8865_8BIT, {0x37b3}, 0x42}, {OV8865_8BIT, {0x37b4}, 0x42}, {OV8865_8BIT, {0x37b5}, 0x33}, {OV8865_8BIT, {0x3808}, 0x04}, {OV8865_8BIT, {0x3809}, 0xc0}, {OV8865_8BIT, {0x380a}, 0x02}, {OV8865_8BIT, {0x380b}, 0xe0}, {OV8865_8BIT, {0x380c}, 0x07}, {OV8865_8BIT, {0x380d}, 0x1a}, {OV8865_8BIT, {0x380e}, 0x05}, {OV8865_8BIT, {0x380f}, 0x28}, {OV8865_8BIT, {0x3813}, 0x04}, {OV8865_8BIT, {0x3814}, 0x03}, {OV8865_8BIT, {0x3821}, 0x61}, {OV8865_8BIT, {0x382a}, 0x03}, {OV8865_8BIT, {0x3830}, 0x08}, {OV8865_8BIT, {0x3836}, 0x02}, {OV8865_8BIT, {0x3846}, 0x88}, {OV8865_8BIT, {0x3f08}, 0x0b}, {OV8865_8BIT, {0x4001}, 0x14}, {OV8865_8BIT, {0x4020}, 0x00}, {OV8865_8BIT, {0x4021}, 0x00}, {OV8865_8BIT, {0x4022}, 0x02}, {OV8865_8BIT, {0x4023}, 0x96}, {OV8865_8BIT, {0x4024}, 0x04}, {OV8865_8BIT, {0x4025}, 0x94}, {OV8865_8BIT, {0x4026}, 0x04}, {OV8865_8BIT, {0x4027}, 0xc4}, {OV8865_8BIT, {0x4500}, 0x40}, {OV8865_8BIT, {0x4601}, 0x74}, { OV8865_TOK_TERM, {0}, 0} }; static const struct ov8865_reg ov8865_1632x1224_30fps[] = { /* 1632x1224_30fps */ {OV8865_8BIT, {0x0100}, 0x00}, {OV8865_8BIT, {0x030f}, 0x09}, {OV8865_8BIT, {0x3501}, 0x5c}, {OV8865_8BIT, {0x3502}, 0x00}, {OV8865_8BIT, {0x3508}, 0x02}, {OV8865_8BIT, {0x3700}, 0x24}, {OV8865_8BIT, {0x3701}, 0x0c}, {OV8865_8BIT, {0x3702}, 0x28}, {OV8865_8BIT, {0x3703}, 0x19}, {OV8865_8BIT, {0x3704}, 0x14}, {OV8865_8BIT, {0x3706}, 0x38}, {OV8865_8BIT, {0x3707}, 0x04}, {OV8865_8BIT, {0x3708}, 0x24}, {OV8865_8BIT, {0x3709}, 0x40}, {OV8865_8BIT, {0x370a}, 0x00}, {OV8865_8BIT, {0x370b}, 0xb8}, {OV8865_8BIT, {0x370c}, 0x04}, {OV8865_8BIT, {0x3718}, 0x12}, {OV8865_8BIT, {0x3712}, 0x42}, {OV8865_8BIT, {0x371e}, 0x19}, {OV8865_8BIT, {0x371f}, 0x40}, {OV8865_8BIT, {0x3720}, 0x05}, {OV8865_8BIT, {0x3721}, 0x05}, {OV8865_8BIT, {0x3724}, 0x02}, {OV8865_8BIT, {0x3725}, 0x02}, {OV8865_8BIT, {0x3726}, 0x06}, {OV8865_8BIT, {0x3728}, 0x05}, {OV8865_8BIT, {0x3729}, 0x02}, {OV8865_8BIT, {0x372a}, 0x03}, {OV8865_8BIT, {0x372b}, 0x53}, {OV8865_8BIT, {0x372c}, 0xa3}, {OV8865_8BIT, {0x372d}, 0x53}, {OV8865_8BIT, {0x372e}, 0x06}, {OV8865_8BIT, {0x372f}, 0x10}, {OV8865_8BIT, {0x3730}, 0x01}, {OV8865_8BIT, {0x3731}, 0x06}, {OV8865_8BIT, {0x3732}, 0x14}, {OV8865_8BIT, {0x3736}, 0x20}, {OV8865_8BIT, {0x373a}, 0x02}, {OV8865_8BIT, {0x373b}, 0x0c}, {OV8865_8BIT, {0x373c}, 0x0a}, {OV8865_8BIT, {0x373e}, 0x03}, {OV8865_8BIT, {0x375a}, 0x06}, {OV8865_8BIT, {0x375b}, 0x13}, {OV8865_8BIT, {0x375d}, 0x02}, {OV8865_8BIT, {0x375f}, 0x14}, {OV8865_8BIT, {0x3767}, 0x1c}, {OV8865_8BIT, {0x3772}, 0x23}, {OV8865_8BIT, {0x3773}, 0x02}, {OV8865_8BIT, {0x3774}, 0x16}, {OV8865_8BIT, {0x3775}, 0x12}, {OV8865_8BIT, {0x3776}, 0x08}, {OV8865_8BIT, {0x37a0}, 0x44}, {OV8865_8BIT, {0x37a1}, 0x3d}, {OV8865_8BIT, {0x37a2}, 0x3d}, {OV8865_8BIT, {0x37a3}, 0x01}, {OV8865_8BIT, {0x37a5}, 0x08}, {OV8865_8BIT, {0x37a7}, 0x44}, {OV8865_8BIT, {0x37a8}, 0x58}, {OV8865_8BIT, {0x37a9}, 0x58}, {OV8865_8BIT, {0x37aa}, 0x44}, {OV8865_8BIT, {0x37ab}, 0x2e}, {OV8865_8BIT, {0x37ac}, 0x2e}, {OV8865_8BIT, {0x37ad}, 0x33}, {OV8865_8BIT, {0x37ae}, 0x0d}, {OV8865_8BIT, {0x37af}, 0x0d}, {OV8865_8BIT, {0x37b3}, 0x42}, {OV8865_8BIT, {0x37b4}, 0x42}, {OV8865_8BIT, {0x37b5}, 0x33}, {OV8865_8BIT, {0x3808}, 0x06}, {OV8865_8BIT, {0x3809}, 0x60}, {OV8865_8BIT, {0x380a}, 0x04}, {OV8865_8BIT, {0x380b}, 0xc8}, {OV8865_8BIT, {0x380c}, 0x06}, {OV8865_8BIT, {0x380d}, 0x42}, {OV8865_8BIT, {0x380e}, 0x05}, {OV8865_8BIT, {0x380f}, 0xda}, {OV8865_8BIT, {0x3813}, 0x04}, {OV8865_8BIT, {0x3814}, 0x03}, {OV8865_8BIT, {0x3821}, 0x61}, {OV8865_8BIT, {0x382a}, 0x03}, {OV8865_8BIT, {0x3830}, 0x08}, {OV8865_8BIT, {0x3836}, 0x02}, {OV8865_8BIT, {0x3846}, 0x88}, {OV8865_8BIT, {0x3f08}, 0x0b}, {OV8865_8BIT, {0x4001}, 0x14}, {OV8865_8BIT, {0x4020}, 0x01}, {OV8865_8BIT, {0x4021}, 0x20}, {OV8865_8BIT, {0x4022}, 0x01}, {OV8865_8BIT, {0x4023}, 0x9f}, {OV8865_8BIT, {0x4024}, 0x03}, {OV8865_8BIT, {0x4025}, 0xe0}, {OV8865_8BIT, {0x4026}, 0x04}, {OV8865_8BIT, {0x4027}, 0x5f}, {OV8865_8BIT, {0x4500}, 0x40}, {OV8865_8BIT, {0x4601}, 0x74}, { OV8865_TOK_TERM, {0}, 0} }; static const struct ov8865_reg ov8865_1936x1096_21fps[] = { /* 1936x1096_21fps */ {OV8865_8BIT, {0x0100}, 0x00}, {OV8865_8BIT, {0x030f}, 0x04}, {OV8865_8BIT, {0x3501}, 0x44}, {OV8865_8BIT, {0x3502}, 0x60}, {OV8865_8BIT, {0x3508}, 0x02}, {OV8865_8BIT, {0x3700}, 0x48}, {OV8865_8BIT, {0x3701}, 0x18}, {OV8865_8BIT, {0x3702}, 0x50}, {OV8865_8BIT, {0x3703}, 0x32}, {OV8865_8BIT, {0x3704}, 0x28}, {OV8865_8BIT, {0x3706}, 0x70}, {OV8865_8BIT, {0x3707}, 0x08}, {OV8865_8BIT, {0x3708}, 0x48}, {OV8865_8BIT, {0x3709}, 0x80}, {OV8865_8BIT, {0x370a}, 0x01}, {OV8865_8BIT, {0x370b}, 0x70}, {OV8865_8BIT, {0x370c}, 0x07}, {OV8865_8BIT, {0x3718}, 0x14}, {OV8865_8BIT, {0x3712}, 0x44}, {OV8865_8BIT, {0x371e}, 0x31}, {OV8865_8BIT, {0x371f}, 0x7f}, {OV8865_8BIT, {0x3720}, 0x0a}, {OV8865_8BIT, {0x3721}, 0x0a}, {OV8865_8BIT, {0x3724}, 0x04}, {OV8865_8BIT, {0x3725}, 0x04}, {OV8865_8BIT, {0x3726}, 0x0c}, {OV8865_8BIT, {0x3728}, 0x0a}, {OV8865_8BIT, {0x3729}, 0x03}, {OV8865_8BIT, {0x372a}, 0x06}, {OV8865_8BIT, {0x372b}, 0xa6}, {OV8865_8BIT, {0x372c}, 0xa6}, {OV8865_8BIT, {0x372d}, 0xa6}, {OV8865_8BIT, {0x372e}, 0x0c}, {OV8865_8BIT, {0x372f}, 0x20}, {OV8865_8BIT, {0x3730}, 0x02}, {OV8865_8BIT, {0x3731}, 0x0c}, {OV8865_8BIT, {0x3732}, 0x28}, {OV8865_8BIT, {0x3736}, 0x30}, {OV8865_8BIT, {0x373a}, 0x04}, {OV8865_8BIT, {0x373b}, 0x18}, {OV8865_8BIT, {0x373c}, 0x14}, {OV8865_8BIT, {0x373e}, 0x06}, {OV8865_8BIT, {0x375a}, 0x0c}, {OV8865_8BIT, {0x375b}, 0x26}, {OV8865_8BIT, {0x375d}, 0x04}, {OV8865_8BIT, {0x375f}, 0x28}, {OV8865_8BIT, {0x3767}, 0x1e}, {OV8865_8BIT, {0x3772}, 0x46}, {OV8865_8BIT, {0x3773}, 0x04}, {OV8865_8BIT, {0x3774}, 0x2c}, {OV8865_8BIT, {0x3775}, 0x13}, {OV8865_8BIT, {0x3776}, 0x10}, {OV8865_8BIT, {0x37a0}, 0x88}, {OV8865_8BIT, {0x37a1}, 0x7a}, {OV8865_8BIT, {0x37a2}, 0x7a}, {OV8865_8BIT, {0x37a3}, 0x02}, {OV8865_8BIT, {0x37a5}, 0x09}, {OV8865_8BIT, {0x37a7}, 0x88}, {OV8865_8BIT, {0x37a8}, 0xb0}, {OV8865_8BIT, {0x37a9}, 0xb0}, {OV8865_8BIT, {0x37aa}, 0x88}, {OV8865_8BIT, {0x37ab}, 0x5c}, {OV8865_8BIT, {0x37ac}, 0x5c}, {OV8865_8BIT, {0x37ad}, 0x55}, {OV8865_8BIT, {0x37ae}, 0x19}, {OV8865_8BIT, {0x37af}, 0x19}, {OV8865_8BIT, {0x37b3}, 0x84}, {OV8865_8BIT, {0x37b4}, 0x84}, {OV8865_8BIT, {0x37b5}, 0x66}, {OV8865_8BIT, {0x3808}, 0x07}, {OV8865_8BIT, {0x3809}, 0x90}, {OV8865_8BIT, {0x380a}, 0x04}, {OV8865_8BIT, {0x380b}, 0x48}, {OV8865_8BIT, {0x380c}, 0x0f}, {OV8865_8BIT, {0x380d}, 0x98}, {OV8865_8BIT, {0x380e}, 0x06}, //04 {OV8865_8BIT, {0x380f}, 0xb5}, //b2 {OV8865_8BIT, {0x3813}, 0x02}, {OV8865_8BIT, {0x3814}, 0x01}, {OV8865_8BIT, {0x3821}, 0x40}, {OV8865_8BIT, {0x382a}, 0x01}, {OV8865_8BIT, {0x3830}, 0x04}, {OV8865_8BIT, {0x3836}, 0x01}, {OV8865_8BIT, {0x3846}, 0x48}, {OV8865_8BIT, {0x3f08}, 0x16}, {OV8865_8BIT, {0x4001}, 0x04}, {OV8865_8BIT, {0x4020}, 0x00}, {OV8865_8BIT, {0x4021}, 0x00}, {OV8865_8BIT, {0x4022}, 0x05}, {OV8865_8BIT, {0x4023}, 0x65}, {OV8865_8BIT, {0x4024}, 0x07}, {OV8865_8BIT, {0x4025}, 0x63}, {OV8865_8BIT, {0x4026}, 0x07}, {OV8865_8BIT, {0x4027}, 0x93}, {OV8865_8BIT, {0x4500}, 0x68}, {OV8865_8BIT, {0x4601}, 0x10}, { OV8865_TOK_TERM, {0}, 0} }; static const struct ov8865_reg ov8865_1936x1096_30fps[] = { /* 1936x1096_30fps */ {OV8865_8BIT, {0x0100}, 0x00}, {OV8865_8BIT, {0x030f}, 0x04}, {OV8865_8BIT, {0x3501}, 0x44}, {OV8865_8BIT, {0x3502}, 0x60}, {OV8865_8BIT, {0x3508}, 0x02}, {OV8865_8BIT, {0x3700}, 0x48}, {OV8865_8BIT, {0x3701}, 0x18}, {OV8865_8BIT, {0x3702}, 0x50}, {OV8865_8BIT, {0x3703}, 0x32}, {OV8865_8BIT, {0x3704}, 0x28}, {OV8865_8BIT, {0x3706}, 0x70}, {OV8865_8BIT, {0x3707}, 0x08}, {OV8865_8BIT, {0x3708}, 0x48}, {OV8865_8BIT, {0x3709}, 0x80}, {OV8865_8BIT, {0x370a}, 0x01}, {OV8865_8BIT, {0x370b}, 0x70}, {OV8865_8BIT, {0x370c}, 0x07}, {OV8865_8BIT, {0x3718}, 0x14}, {OV8865_8BIT, {0x3712}, 0x44}, {OV8865_8BIT, {0x371e}, 0x31}, {OV8865_8BIT, {0x371f}, 0x7f}, {OV8865_8BIT, {0x3720}, 0x0a}, {OV8865_8BIT, {0x3721}, 0x0a}, {OV8865_8BIT, {0x3724}, 0x04}, {OV8865_8BIT, {0x3725}, 0x04}, {OV8865_8BIT, {0x3726}, 0x0c}, {OV8865_8BIT, {0x3728}, 0x0a}, {OV8865_8BIT, {0x3729}, 0x03}, {OV8865_8BIT, {0x372a}, 0x06}, {OV8865_8BIT, {0x372b}, 0xa6}, {OV8865_8BIT, {0x372c}, 0xa6}, {OV8865_8BIT, {0x372d}, 0xa6}, {OV8865_8BIT, {0x372e}, 0x0c}, {OV8865_8BIT, {0x372f}, 0x20}, {OV8865_8BIT, {0x3730}, 0x02}, {OV8865_8BIT, {0x3731}, 0x0c}, {OV8865_8BIT, {0x3732}, 0x28}, {OV8865_8BIT, {0x3736}, 0x30}, {OV8865_8BIT, {0x373a}, 0x04}, {OV8865_8BIT, {0x373b}, 0x18}, {OV8865_8BIT, {0x373c}, 0x14}, {OV8865_8BIT, {0x373e}, 0x06}, {OV8865_8BIT, {0x375a}, 0x0c}, {OV8865_8BIT, {0x375b}, 0x26}, {OV8865_8BIT, {0x375d}, 0x04}, {OV8865_8BIT, {0x375f}, 0x28}, {OV8865_8BIT, {0x3767}, 0x1e}, {OV8865_8BIT, {0x3772}, 0x46}, {OV8865_8BIT, {0x3773}, 0x04}, {OV8865_8BIT, {0x3774}, 0x2c}, {OV8865_8BIT, {0x3775}, 0x13}, {OV8865_8BIT, {0x3776}, 0x10}, {OV8865_8BIT, {0x37a0}, 0x88}, {OV8865_8BIT, {0x37a1}, 0x7a}, {OV8865_8BIT, {0x37a2}, 0x7a}, {OV8865_8BIT, {0x37a3}, 0x02}, {OV8865_8BIT, {0x37a5}, 0x09}, {OV8865_8BIT, {0x37a7}, 0x88}, {OV8865_8BIT, {0x37a8}, 0xb0}, {OV8865_8BIT, {0x37a9}, 0xb0}, {OV8865_8BIT, {0x37aa}, 0x88}, {OV8865_8BIT, {0x37ab}, 0x5c}, {OV8865_8BIT, {0x37ac}, 0x5c}, {OV8865_8BIT, {0x37ad}, 0x55}, {OV8865_8BIT, {0x37ae}, 0x19}, {OV8865_8BIT, {0x37af}, 0x19}, {OV8865_8BIT, {0x37b3}, 0x84}, {OV8865_8BIT, {0x37b4}, 0x84}, {OV8865_8BIT, {0x37b5}, 0x66}, {OV8865_8BIT, {0x3808}, 0x07}, {OV8865_8BIT, {0x3809}, 0x90}, {OV8865_8BIT, {0x380a}, 0x04}, {OV8865_8BIT, {0x380b}, 0x48}, {OV8865_8BIT, {0x380c}, 0x0f}, {OV8865_8BIT, {0x380d}, 0x98}, {OV8865_8BIT, {0x380e}, 0x04}, {OV8865_8BIT, {0x380f}, 0xb2}, {OV8865_8BIT, {0x3813}, 0x02}, {OV8865_8BIT, {0x3814}, 0x01}, {OV8865_8BIT, {0x3821}, 0x40}, {OV8865_8BIT, {0x382a}, 0x01}, {OV8865_8BIT, {0x3830}, 0x04}, {OV8865_8BIT, {0x3836}, 0x01}, {OV8865_8BIT, {0x3846}, 0x48}, {OV8865_8BIT, {0x3f08}, 0x16}, {OV8865_8BIT, {0x4001}, 0x04}, {OV8865_8BIT, {0x4020}, 0x00}, {OV8865_8BIT, {0x4021}, 0x00}, {OV8865_8BIT, {0x4022}, 0x05}, {OV8865_8BIT, {0x4023}, 0x65}, {OV8865_8BIT, {0x4024}, 0x07}, {OV8865_8BIT, {0x4025}, 0x63}, {OV8865_8BIT, {0x4026}, 0x07}, {OV8865_8BIT, {0x4027}, 0x93}, {OV8865_8BIT, {0x4500}, 0x68}, {OV8865_8BIT, {0x4601}, 0x10}, { OV8865_TOK_TERM, {0}, 0} }; static const struct ov8865_reg ov8865_2064x1552_21fps[] = { /* 2064x1552_21fps */ {OV8865_8BIT, {0x0100}, 0x00}, {OV8865_8BIT, {0x030f}, 0x04}, {OV8865_8BIT, {0x3501}, 0x98}, {OV8865_8BIT, {0x3502}, 0x60}, {OV8865_8BIT, {0x3508}, 0x02}, {OV8865_8BIT, {0x3700}, 0x48}, {OV8865_8BIT, {0x3701}, 0x18}, {OV8865_8BIT, {0x3702}, 0x50}, {OV8865_8BIT, {0x3703}, 0x32}, {OV8865_8BIT, {0x3704}, 0x28}, {OV8865_8BIT, {0x3706}, 0x70}, {OV8865_8BIT, {0x3707}, 0x08}, {OV8865_8BIT, {0x3708}, 0x48}, {OV8865_8BIT, {0x3709}, 0x80}, {OV8865_8BIT, {0x370a}, 0x01}, {OV8865_8BIT, {0x370b}, 0x70}, {OV8865_8BIT, {0x370c}, 0x07}, {OV8865_8BIT, {0x3718}, 0x14}, {OV8865_8BIT, {0x3712}, 0x44}, {OV8865_8BIT, {0x371e}, 0x31}, {OV8865_8BIT, {0x371f}, 0x7f}, {OV8865_8BIT, {0x3720}, 0x0a}, {OV8865_8BIT, {0x3721}, 0x0a}, {OV8865_8BIT, {0x3724}, 0x04}, {OV8865_8BIT, {0x3725}, 0x04}, {OV8865_8BIT, {0x3726}, 0x0c}, {OV8865_8BIT, {0x3728}, 0x0a}, {OV8865_8BIT, {0x3729}, 0x03}, {OV8865_8BIT, {0x372a}, 0x06}, {OV8865_8BIT, {0x372b}, 0xa6}, {OV8865_8BIT, {0x372c}, 0xa6}, {OV8865_8BIT, {0x372d}, 0xa6}, {OV8865_8BIT, {0x372e}, 0x0c}, {OV8865_8BIT, {0x372f}, 0x20}, {OV8865_8BIT, {0x3730}, 0x02}, {OV8865_8BIT, {0x3731}, 0x0c}, {OV8865_8BIT, {0x3732}, 0x28}, {OV8865_8BIT, {0x3736}, 0x30}, {OV8865_8BIT, {0x373a}, 0x04}, {OV8865_8BIT, {0x373b}, 0x18}, {OV8865_8BIT, {0x373c}, 0x14}, {OV8865_8BIT, {0x373e}, 0x06}, {OV8865_8BIT, {0x375a}, 0x0c}, {OV8865_8BIT, {0x375b}, 0x26}, {OV8865_8BIT, {0x375d}, 0x04}, {OV8865_8BIT, {0x375f}, 0x28}, {OV8865_8BIT, {0x3767}, 0x1e}, {OV8865_8BIT, {0x3772}, 0x46}, {OV8865_8BIT, {0x3773}, 0x04}, {OV8865_8BIT, {0x3774}, 0x2c}, {OV8865_8BIT, {0x3775}, 0x13}, {OV8865_8BIT, {0x3776}, 0x10}, {OV8865_8BIT, {0x37a0}, 0x88}, {OV8865_8BIT, {0x37a1}, 0x7a}, {OV8865_8BIT, {0x37a2}, 0x7a}, {OV8865_8BIT, {0x37a3}, 0x02}, {OV8865_8BIT, {0x37a5}, 0x09}, {OV8865_8BIT, {0x37a7}, 0x88}, {OV8865_8BIT, {0x37a8}, 0xb0}, {OV8865_8BIT, {0x37a9}, 0xb0}, {OV8865_8BIT, {0x37aa}, 0x88}, {OV8865_8BIT, {0x37ab}, 0x5c}, {OV8865_8BIT, {0x37ac}, 0x5c}, {OV8865_8BIT, {0x37ad}, 0x55}, {OV8865_8BIT, {0x37ae}, 0x19}, {OV8865_8BIT, {0x37af}, 0x19}, {OV8865_8BIT, {0x37b3}, 0x84}, {OV8865_8BIT, {0x37b4}, 0x84}, {OV8865_8BIT, {0x37b5}, 0x66}, {OV8865_8BIT, {0x3808}, 0x08}, {OV8865_8BIT, {0x3809}, 0x10}, {OV8865_8BIT, {0x380a}, 0x06}, {OV8865_8BIT, {0x380b}, 0x10}, {OV8865_8BIT, {0x380c}, 0x0b}, {OV8865_8BIT, {0x380d}, 0xf0}, {OV8865_8BIT, {0x380e}, 0x08}, //;06 {OV8865_8BIT, {0x380f}, 0xc2}, //;22 {OV8865_8BIT, {0x3813}, 0x02}, {OV8865_8BIT, {0x3814}, 0x01}, {OV8865_8BIT, {0x3821}, 0x40}, {OV8865_8BIT, {0x382a}, 0x01}, {OV8865_8BIT, {0x3830}, 0x04}, {OV8865_8BIT, {0x3836}, 0x01}, {OV8865_8BIT, {0x3846}, 0x48}, {OV8865_8BIT, {0x3f08}, 0x16}, {OV8865_8BIT, {0x4001}, 0x04}, {OV8865_8BIT, {0x4020}, 0x00}, {OV8865_8BIT, {0x4021}, 0x00}, {OV8865_8BIT, {0x4022}, 0x05}, {OV8865_8BIT, {0x4023}, 0xe6}, {OV8865_8BIT, {0x4024}, 0x07}, {OV8865_8BIT, {0x4025}, 0xe4}, {OV8865_8BIT, {0x4026}, 0x08}, {OV8865_8BIT, {0x4027}, 0x14}, {OV8865_8BIT, {0x4500}, 0x68}, {OV8865_8BIT, {0x4601}, 0x10}, { OV8865_TOK_TERM, {0}, 0} }; static const struct ov8865_reg ov8865_2064x1552_30fps[] = { /* 2064x1552_30fps */ {OV8865_8BIT, {0x0100}, 0x00}, {OV8865_8BIT, {0x030f}, 0x04}, {OV8865_8BIT, {0x3501}, 0x98}, {OV8865_8BIT, {0x3502}, 0x60}, {OV8865_8BIT, {0x3508}, 0x02}, {OV8865_8BIT, {0x3700}, 0x48}, {OV8865_8BIT, {0x3701}, 0x18}, {OV8865_8BIT, {0x3702}, 0x50}, {OV8865_8BIT, {0x3703}, 0x32}, {OV8865_8BIT, {0x3704}, 0x28}, {OV8865_8BIT, {0x3706}, 0x70}, {OV8865_8BIT, {0x3707}, 0x08}, {OV8865_8BIT, {0x3708}, 0x48}, {OV8865_8BIT, {0x3709}, 0x80}, {OV8865_8BIT, {0x370a}, 0x01}, {OV8865_8BIT, {0x370b}, 0x70}, {OV8865_8BIT, {0x370c}, 0x07}, {OV8865_8BIT, {0x3718}, 0x14}, {OV8865_8BIT, {0x3712}, 0x44}, {OV8865_8BIT, {0x371e}, 0x31}, {OV8865_8BIT, {0x371f}, 0x7f}, {OV8865_8BIT, {0x3720}, 0x0a}, {OV8865_8BIT, {0x3721}, 0x0a}, {OV8865_8BIT, {0x3724}, 0x04}, {OV8865_8BIT, {0x3725}, 0x04}, {OV8865_8BIT, {0x3726}, 0x0c}, {OV8865_8BIT, {0x3728}, 0x0a}, {OV8865_8BIT, {0x3729}, 0x03}, {OV8865_8BIT, {0x372a}, 0x06}, {OV8865_8BIT, {0x372b}, 0xa6}, {OV8865_8BIT, {0x372c}, 0xa6}, {OV8865_8BIT, {0x372d}, 0xa6}, {OV8865_8BIT, {0x372e}, 0x0c}, {OV8865_8BIT, {0x372f}, 0x20}, {OV8865_8BIT, {0x3730}, 0x02}, {OV8865_8BIT, {0x3731}, 0x0c}, {OV8865_8BIT, {0x3732}, 0x28}, {OV8865_8BIT, {0x3736}, 0x30}, {OV8865_8BIT, {0x373a}, 0x04}, {OV8865_8BIT, {0x373b}, 0x18}, {OV8865_8BIT, {0x373c}, 0x14}, {OV8865_8BIT, {0x373e}, 0x06}, {OV8865_8BIT, {0x375a}, 0x0c}, {OV8865_8BIT, {0x375b}, 0x26}, {OV8865_8BIT, {0x375d}, 0x04}, {OV8865_8BIT, {0x375f}, 0x28}, {OV8865_8BIT, {0x3767}, 0x1e}, {OV8865_8BIT, {0x3772}, 0x46}, {OV8865_8BIT, {0x3773}, 0x04}, {OV8865_8BIT, {0x3774}, 0x2c}, {OV8865_8BIT, {0x3775}, 0x13}, {OV8865_8BIT, {0x3776}, 0x10}, {OV8865_8BIT, {0x37a0}, 0x88}, {OV8865_8BIT, {0x37a1}, 0x7a}, {OV8865_8BIT, {0x37a2}, 0x7a}, {OV8865_8BIT, {0x37a3}, 0x02}, {OV8865_8BIT, {0x37a5}, 0x09}, {OV8865_8BIT, {0x37a7}, 0x88}, {OV8865_8BIT, {0x37a8}, 0xb0}, {OV8865_8BIT, {0x37a9}, 0xb0}, {OV8865_8BIT, {0x37aa}, 0x88}, {OV8865_8BIT, {0x37ab}, 0x5c}, {OV8865_8BIT, {0x37ac}, 0x5c}, {OV8865_8BIT, {0x37ad}, 0x55}, {OV8865_8BIT, {0x37ae}, 0x19}, {OV8865_8BIT, {0x37af}, 0x19}, {OV8865_8BIT, {0x37b3}, 0x84}, {OV8865_8BIT, {0x37b4}, 0x84}, {OV8865_8BIT, {0x37b5}, 0x66}, {OV8865_8BIT, {0x3808}, 0x08}, {OV8865_8BIT, {0x3809}, 0x10}, {OV8865_8BIT, {0x380a}, 0x06}, {OV8865_8BIT, {0x380b}, 0x10}, {OV8865_8BIT, {0x380c}, 0x0b}, {OV8865_8BIT, {0x380d}, 0xf0}, {OV8865_8BIT, {0x380e}, 0x06}, {OV8865_8BIT, {0x380f}, 0x22}, {OV8865_8BIT, {0x3813}, 0x02}, {OV8865_8BIT, {0x3814}, 0x01}, {OV8865_8BIT, {0x3821}, 0x40}, {OV8865_8BIT, {0x382a}, 0x01}, {OV8865_8BIT, {0x3830}, 0x04}, {OV8865_8BIT, {0x3836}, 0x01}, {OV8865_8BIT, {0x3846}, 0x48}, {OV8865_8BIT, {0x3f08}, 0x16}, {OV8865_8BIT, {0x4001}, 0x04}, {OV8865_8BIT, {0x4020}, 0x00}, {OV8865_8BIT, {0x4021}, 0x00}, {OV8865_8BIT, {0x4022}, 0x05}, {OV8865_8BIT, {0x4023}, 0xe6}, {OV8865_8BIT, {0x4024}, 0x07}, {OV8865_8BIT, {0x4025}, 0xe4}, {OV8865_8BIT, {0x4026}, 0x08}, {OV8865_8BIT, {0x4027}, 0x14}, {OV8865_8BIT, {0x4500}, 0x68}, {OV8865_8BIT, {0x4601}, 0x10}, { OV8865_TOK_TERM, {0}, 0} }; static const struct ov8865_reg ov8865_2576x1936_10fps[] = { /* 2576x1936_10fps */ {OV8865_8BIT, {0x0100}, 0x00}, {OV8865_8BIT, {0x030f}, 0x04}, {OV8865_8BIT, {0x3501}, 0x98}, {OV8865_8BIT, {0x3502}, 0x60}, {OV8865_8BIT, {0x3508}, 0x01}, {OV8865_8BIT, {0x3700}, 0x48}, {OV8865_8BIT, {0x3701}, 0x18}, {OV8865_8BIT, {0x3702}, 0x50}, {OV8865_8BIT, {0x3703}, 0x32}, {OV8865_8BIT, {0x3704}, 0x28}, {OV8865_8BIT, {0x3706}, 0x70}, {OV8865_8BIT, {0x3707}, 0x08}, {OV8865_8BIT, {0x3708}, 0x48}, {OV8865_8BIT, {0x3709}, 0x80}, {OV8865_8BIT, {0x370a}, 0x01}, {OV8865_8BIT, {0x370b}, 0x70}, {OV8865_8BIT, {0x370c}, 0x07}, {OV8865_8BIT, {0x3718}, 0x14}, {OV8865_8BIT, {0x3712}, 0x44}, {OV8865_8BIT, {0x371e}, 0x31}, {OV8865_8BIT, {0x371f}, 0x7f}, {OV8865_8BIT, {0x3720}, 0x0a}, {OV8865_8BIT, {0x3721}, 0x0a}, {OV8865_8BIT, {0x3724}, 0x04}, {OV8865_8BIT, {0x3725}, 0x04}, {OV8865_8BIT, {0x3726}, 0x0c}, {OV8865_8BIT, {0x3728}, 0x0a}, {OV8865_8BIT, {0x3729}, 0x03}, {OV8865_8BIT, {0x372a}, 0x06}, {OV8865_8BIT, {0x372b}, 0xa6}, {OV8865_8BIT, {0x372c}, 0xa6}, {OV8865_8BIT, {0x372d}, 0xa6}, {OV8865_8BIT, {0x372e}, 0x0c}, {OV8865_8BIT, {0x372f}, 0x20}, {OV8865_8BIT, {0x3730}, 0x02}, {OV8865_8BIT, {0x3731}, 0x0c}, {OV8865_8BIT, {0x3732}, 0x28}, {OV8865_8BIT, {0x3736}, 0x30}, {OV8865_8BIT, {0x373a}, 0x04}, {OV8865_8BIT, {0x373b}, 0x18}, {OV8865_8BIT, {0x373c}, 0x14}, {OV8865_8BIT, {0x373e}, 0x06}, {OV8865_8BIT, {0x375a}, 0x0c}, {OV8865_8BIT, {0x375b}, 0x26}, {OV8865_8BIT, {0x375d}, 0x04}, {OV8865_8BIT, {0x375f}, 0x28}, {OV8865_8BIT, {0x3767}, 0x1e}, {OV8865_8BIT, {0x3772}, 0x46}, {OV8865_8BIT, {0x3773}, 0x04}, {OV8865_8BIT, {0x3774}, 0x2c}, {OV8865_8BIT, {0x3775}, 0x13}, {OV8865_8BIT, {0x3776}, 0x10}, {OV8865_8BIT, {0x37a0}, 0x88}, {OV8865_8BIT, {0x37a1}, 0x7a}, {OV8865_8BIT, {0x37a2}, 0x7a}, {OV8865_8BIT, {0x37a3}, 0x02}, {OV8865_8BIT, {0x37a5}, 0x09}, {OV8865_8BIT, {0x37a7}, 0x88}, {OV8865_8BIT, {0x37a8}, 0xb0}, {OV8865_8BIT, {0x37a9}, 0xb0}, {OV8865_8BIT, {0x37aa}, 0x88}, {OV8865_8BIT, {0x37ab}, 0x5c}, {OV8865_8BIT, {0x37ac}, 0x5c}, {OV8865_8BIT, {0x37ad}, 0x55}, {OV8865_8BIT, {0x37ae}, 0x19}, {OV8865_8BIT, {0x37af}, 0x19}, {OV8865_8BIT, {0x37b3}, 0x84}, {OV8865_8BIT, {0x37b4}, 0x84}, {OV8865_8BIT, {0x37b5}, 0x66}, {OV8865_8BIT, {0x3808}, 0x0a}, {OV8865_8BIT, {0x3809}, 0x10}, {OV8865_8BIT, {0x380a}, 0x07}, {OV8865_8BIT, {0x380b}, 0x90}, {OV8865_8BIT, {0x380c}, 0x10}, {OV8865_8BIT, {0x380d}, 0x3a}, {OV8865_8BIT, {0x380e}, 0x0d}, {OV8865_8BIT, {0x380f}, 0x88}, {OV8865_8BIT, {0x3813}, 0x02}, {OV8865_8BIT, {0x3814}, 0x01}, {OV8865_8BIT, {0x3821}, 0x40}, {OV8865_8BIT, {0x382a}, 0x01}, {OV8865_8BIT, {0x3830}, 0x04}, {OV8865_8BIT, {0x3836}, 0x01}, {OV8865_8BIT, {0x3846}, 0x48}, {OV8865_8BIT, {0x3f08}, 0x16}, {OV8865_8BIT, {0x4001}, 0x04}, {OV8865_8BIT, {0x4020}, 0x00}, {OV8865_8BIT, {0x4021}, 0x00}, {OV8865_8BIT, {0x4022}, 0x07}, {OV8865_8BIT, {0x4023}, 0xe6}, {OV8865_8BIT, {0x4024}, 0x09}, {OV8865_8BIT, {0x4025}, 0xe4}, {OV8865_8BIT, {0x4026}, 0x0a}, {OV8865_8BIT, {0x4027}, 0x14}, {OV8865_8BIT, {0x4500}, 0x68}, {OV8865_8BIT, {0x4601}, 0x10}, { OV8865_TOK_TERM, {0}, 0} }; static const struct ov8865_reg ov8865_2576x1936_21fps[] = { /* 2576x1936_21fps */ {OV8865_8BIT, {0x0100}, 0x00}, {OV8865_8BIT, {0x030f}, 0x04}, {OV8865_8BIT, {0x3501}, 0x98}, {OV8865_8BIT, {0x3502}, 0x60}, {OV8865_8BIT, {0x3508}, 0x02}, {OV8865_8BIT, {0x3700}, 0x48}, {OV8865_8BIT, {0x3701}, 0x18}, {OV8865_8BIT, {0x3702}, 0x50}, {OV8865_8BIT, {0x3703}, 0x32}, {OV8865_8BIT, {0x3704}, 0x28}, {OV8865_8BIT, {0x3706}, 0x70}, {OV8865_8BIT, {0x3707}, 0x08}, {OV8865_8BIT, {0x3708}, 0x48}, {OV8865_8BIT, {0x3709}, 0x80}, {OV8865_8BIT, {0x370a}, 0x01}, {OV8865_8BIT, {0x370b}, 0x70}, {OV8865_8BIT, {0x370c}, 0x07}, {OV8865_8BIT, {0x3718}, 0x14}, {OV8865_8BIT, {0x3712}, 0x44}, {OV8865_8BIT, {0x371e}, 0x31}, {OV8865_8BIT, {0x371f}, 0x7f}, {OV8865_8BIT, {0x3720}, 0x0a}, {OV8865_8BIT, {0x3721}, 0x0a}, {OV8865_8BIT, {0x3724}, 0x04}, {OV8865_8BIT, {0x3725}, 0x04}, {OV8865_8BIT, {0x3726}, 0x0c}, {OV8865_8BIT, {0x3728}, 0x0a}, {OV8865_8BIT, {0x3729}, 0x03}, {OV8865_8BIT, {0x372a}, 0x06}, {OV8865_8BIT, {0x372b}, 0xa6}, {OV8865_8BIT, {0x372c}, 0xa6}, {OV8865_8BIT, {0x372d}, 0xa6}, {OV8865_8BIT, {0x372e}, 0x0c}, {OV8865_8BIT, {0x372f}, 0x20}, {OV8865_8BIT, {0x3730}, 0x02}, {OV8865_8BIT, {0x3731}, 0x0c}, {OV8865_8BIT, {0x3732}, 0x28}, {OV8865_8BIT, {0x3736}, 0x30}, {OV8865_8BIT, {0x373a}, 0x04}, {OV8865_8BIT, {0x373b}, 0x18}, {OV8865_8BIT, {0x373c}, 0x14}, {OV8865_8BIT, {0x373e}, 0x06}, {OV8865_8BIT, {0x375a}, 0x0c}, {OV8865_8BIT, {0x375b}, 0x26}, {OV8865_8BIT, {0x375d}, 0x04}, {OV8865_8BIT, {0x375f}, 0x28}, {OV8865_8BIT, {0x3767}, 0x1e}, {OV8865_8BIT, {0x3772}, 0x46}, {OV8865_8BIT, {0x3773}, 0x04}, {OV8865_8BIT, {0x3774}, 0x2c}, {OV8865_8BIT, {0x3775}, 0x13}, {OV8865_8BIT, {0x3776}, 0x10}, {OV8865_8BIT, {0x37a0}, 0x88}, {OV8865_8BIT, {0x37a1}, 0x7a}, {OV8865_8BIT, {0x37a2}, 0x7a}, {OV8865_8BIT, {0x37a3}, 0x02}, {OV8865_8BIT, {0x37a5}, 0x09}, {OV8865_8BIT, {0x37a7}, 0x88}, {OV8865_8BIT, {0x37a8}, 0xb0}, {OV8865_8BIT, {0x37a9}, 0xb0}, {OV8865_8BIT, {0x37aa}, 0x88}, {OV8865_8BIT, {0x37ab}, 0x5c}, {OV8865_8BIT, {0x37ac}, 0x5c}, {OV8865_8BIT, {0x37ad}, 0x55}, {OV8865_8BIT, {0x37ae}, 0x19}, {OV8865_8BIT, {0x37af}, 0x19}, {OV8865_8BIT, {0x37b3}, 0x84}, {OV8865_8BIT, {0x37b4}, 0x84}, {OV8865_8BIT, {0x37b5}, 0x66}, {OV8865_8BIT, {0x3808}, 0x0a}, {OV8865_8BIT, {0x3809}, 0x10}, {OV8865_8BIT, {0x380a}, 0x07}, {OV8865_8BIT, {0x380b}, 0x90}, {OV8865_8BIT, {0x380c}, 0x08}, {OV8865_8BIT, {0x380d}, 0xa2}, {OV8865_8BIT, {0x380e}, 0x0c}, //;08 {OV8865_8BIT, {0x380f}, 0x1e}, //;7c {OV8865_8BIT, {0x3813}, 0x02}, {OV8865_8BIT, {0x3814}, 0x01}, {OV8865_8BIT, {0x3821}, 0x40}, {OV8865_8BIT, {0x382a}, 0x01}, {OV8865_8BIT, {0x3830}, 0x04}, {OV8865_8BIT, {0x3836}, 0x01}, {OV8865_8BIT, {0x3846}, 0x48}, {OV8865_8BIT, {0x3f08}, 0x16}, {OV8865_8BIT, {0x4001}, 0x04}, {OV8865_8BIT, {0x4020}, 0x00}, {OV8865_8BIT, {0x4021}, 0x00}, {OV8865_8BIT, {0x4022}, 0x07}, {OV8865_8BIT, {0x4023}, 0xe6}, {OV8865_8BIT, {0x4024}, 0x09}, {OV8865_8BIT, {0x4025}, 0xe4}, {OV8865_8BIT, {0x4026}, 0x0a}, {OV8865_8BIT, {0x4027}, 0x14}, {OV8865_8BIT, {0x4500}, 0x68}, {OV8865_8BIT, {0x4601}, 0x10}, { OV8865_TOK_TERM, {0}, 0} }; /*****************************OV8865 PREVIEW********************************/ static struct ov8865_reg const ov8865_2576x1936_30fps[] = { /* 2576x1936_30fps */ {OV8865_8BIT, {0x0100}, 0x00}, {OV8865_8BIT, {0x030f}, 0x04}, {OV8865_8BIT, {0x3501}, 0x98}, {OV8865_8BIT, {0x3502}, 0x60}, {OV8865_8BIT, {0x3508}, 0x02}, {OV8865_8BIT, {0x3700}, 0x48}, {OV8865_8BIT, {0x3701}, 0x18}, {OV8865_8BIT, {0x3702}, 0x50}, {OV8865_8BIT, {0x3703}, 0x32}, {OV8865_8BIT, {0x3704}, 0x28}, {OV8865_8BIT, {0x3706}, 0x70}, {OV8865_8BIT, {0x3707}, 0x08}, {OV8865_8BIT, {0x3708}, 0x48}, {OV8865_8BIT, {0x3709}, 0x80}, {OV8865_8BIT, {0x370a}, 0x01}, {OV8865_8BIT, {0x370b}, 0x70}, {OV8865_8BIT, {0x370c}, 0x07}, {OV8865_8BIT, {0x3718}, 0x14}, {OV8865_8BIT, {0x3712}, 0x44}, {OV8865_8BIT, {0x371e}, 0x31}, {OV8865_8BIT, {0x371f}, 0x7f}, {OV8865_8BIT, {0x3720}, 0x0a}, {OV8865_8BIT, {0x3721}, 0x0a}, {OV8865_8BIT, {0x3724}, 0x04}, {OV8865_8BIT, {0x3725}, 0x04}, {OV8865_8BIT, {0x3726}, 0x0c}, {OV8865_8BIT, {0x3728}, 0x0a}, {OV8865_8BIT, {0x3729}, 0x03}, {OV8865_8BIT, {0x372a}, 0x06}, {OV8865_8BIT, {0x372b}, 0xa6}, {OV8865_8BIT, {0x372c}, 0xa6}, {OV8865_8BIT, {0x372d}, 0xa6}, {OV8865_8BIT, {0x372e}, 0x0c}, {OV8865_8BIT, {0x372f}, 0x20}, {OV8865_8BIT, {0x3730}, 0x02}, {OV8865_8BIT, {0x3731}, 0x0c}, {OV8865_8BIT, {0x3732}, 0x28}, {OV8865_8BIT, {0x3736}, 0x30}, {OV8865_8BIT, {0x373a}, 0x04}, {OV8865_8BIT, {0x373b}, 0x18}, {OV8865_8BIT, {0x373c}, 0x14}, {OV8865_8BIT, {0x373e}, 0x06}, {OV8865_8BIT, {0x375a}, 0x0c}, {OV8865_8BIT, {0x375b}, 0x26}, {OV8865_8BIT, {0x375d}, 0x04}, {OV8865_8BIT, {0x375f}, 0x28}, {OV8865_8BIT, {0x3767}, 0x1e}, {OV8865_8BIT, {0x3772}, 0x46}, {OV8865_8BIT, {0x3773}, 0x04}, {OV8865_8BIT, {0x3774}, 0x2c}, {OV8865_8BIT, {0x3775}, 0x13}, {OV8865_8BIT, {0x3776}, 0x10}, {OV8865_8BIT, {0x37a0}, 0x88}, {OV8865_8BIT, {0x37a1}, 0x7a}, {OV8865_8BIT, {0x37a2}, 0x7a}, {OV8865_8BIT, {0x37a3}, 0x02}, {OV8865_8BIT, {0x37a5}, 0x09}, {OV8865_8BIT, {0x37a7}, 0x88}, {OV8865_8BIT, {0x37a8}, 0xb0}, {OV8865_8BIT, {0x37a9}, 0xb0}, {OV8865_8BIT, {0x37aa}, 0x88}, {OV8865_8BIT, {0x37ab}, 0x5c}, {OV8865_8BIT, {0x37ac}, 0x5c}, {OV8865_8BIT, {0x37ad}, 0x55}, {OV8865_8BIT, {0x37ae}, 0x19}, {OV8865_8BIT, {0x37af}, 0x19}, {OV8865_8BIT, {0x37b3}, 0x84}, {OV8865_8BIT, {0x37b4}, 0x84}, {OV8865_8BIT, {0x37b5}, 0x66}, {OV8865_8BIT, {0x3808}, 0x0a}, {OV8865_8BIT, {0x3809}, 0x10}, {OV8865_8BIT, {0x380a}, 0x07}, {OV8865_8BIT, {0x380b}, 0x90}, {OV8865_8BIT, {0x380c}, 0x08}, {OV8865_8BIT, {0x380d}, 0xa2}, {OV8865_8BIT, {0x380e}, 0x08}, {OV8865_8BIT, {0x380f}, 0x7c}, {OV8865_8BIT, {0x3813}, 0x02}, {OV8865_8BIT, {0x3814}, 0x01}, {OV8865_8BIT, {0x3821}, 0x40}, {OV8865_8BIT, {0x382a}, 0x01}, {OV8865_8BIT, {0x3830}, 0x04}, {OV8865_8BIT, {0x3836}, 0x01}, {OV8865_8BIT, {0x3846}, 0x48}, {OV8865_8BIT, {0x3f08}, 0x16}, {OV8865_8BIT, {0x4001}, 0x04}, {OV8865_8BIT, {0x4020}, 0x00}, {OV8865_8BIT, {0x4021}, 0x00}, {OV8865_8BIT, {0x4022}, 0x07}, {OV8865_8BIT, {0x4023}, 0xe6}, {OV8865_8BIT, {0x4024}, 0x09}, {OV8865_8BIT, {0x4025}, 0xe4}, {OV8865_8BIT, {0x4026}, 0x0a}, {OV8865_8BIT, {0x4027}, 0x14}, {OV8865_8BIT, {0x4500}, 0x68}, {OV8865_8BIT, {0x4601}, 0x10}, { OV8865_TOK_TERM, {0}, 0} }; static struct ov8865_reg const ov8865_3280x1852_10fps[] = { /* 3280x1852_10fps */ {OV8865_8BIT, {0x0100}, 0x00}, {OV8865_8BIT, {0x030f}, 0x04}, {OV8865_8BIT, {0x3501}, 0x72}, {OV8865_8BIT, {0x3502}, 0x20}, {OV8865_8BIT, {0x3508}, 0x01}, {OV8865_8BIT, {0x3700}, 0x48}, {OV8865_8BIT, {0x3701}, 0x18}, {OV8865_8BIT, {0x3702}, 0x50}, {OV8865_8BIT, {0x3703}, 0x32}, {OV8865_8BIT, {0x3704}, 0x28}, {OV8865_8BIT, {0x3706}, 0x70}, {OV8865_8BIT, {0x3707}, 0x08}, {OV8865_8BIT, {0x3708}, 0x48}, {OV8865_8BIT, {0x3709}, 0x80}, {OV8865_8BIT, {0x370a}, 0x01}, {OV8865_8BIT, {0x370b}, 0x70}, {OV8865_8BIT, {0x370c}, 0x07}, {OV8865_8BIT, {0x3718}, 0x14}, {OV8865_8BIT, {0x3712}, 0x44}, {OV8865_8BIT, {0x371e}, 0x31}, {OV8865_8BIT, {0x371f}, 0x7f}, {OV8865_8BIT, {0x3720}, 0x0a}, {OV8865_8BIT, {0x3721}, 0x0a}, {OV8865_8BIT, {0x3724}, 0x04}, {OV8865_8BIT, {0x3725}, 0x04}, {OV8865_8BIT, {0x3726}, 0x0c}, {OV8865_8BIT, {0x3728}, 0x0a}, {OV8865_8BIT, {0x3729}, 0x03}, {OV8865_8BIT, {0x372a}, 0x06}, {OV8865_8BIT, {0x372b}, 0xa6}, {OV8865_8BIT, {0x372c}, 0xa6}, {OV8865_8BIT, {0x372d}, 0xa6}, {OV8865_8BIT, {0x372e}, 0x0c}, {OV8865_8BIT, {0x372f}, 0x20}, {OV8865_8BIT, {0x3730}, 0x02}, {OV8865_8BIT, {0x3731}, 0x0c}, {OV8865_8BIT, {0x3732}, 0x28}, {OV8865_8BIT, {0x3736}, 0x30}, {OV8865_8BIT, {0x373a}, 0x04}, {OV8865_8BIT, {0x373b}, 0x18}, {OV8865_8BIT, {0x373c}, 0x14}, {OV8865_8BIT, {0x373e}, 0x06}, {OV8865_8BIT, {0x375a}, 0x0c}, {OV8865_8BIT, {0x375b}, 0x26}, {OV8865_8BIT, {0x375d}, 0x04}, {OV8865_8BIT, {0x375f}, 0x28}, {OV8865_8BIT, {0x3767}, 0x1e}, {OV8865_8BIT, {0x3772}, 0x46}, {OV8865_8BIT, {0x3773}, 0x04}, {OV8865_8BIT, {0x3774}, 0x2c}, {OV8865_8BIT, {0x3775}, 0x13}, {OV8865_8BIT, {0x3776}, 0x10}, {OV8865_8BIT, {0x37a0}, 0x88}, {OV8865_8BIT, {0x37a1}, 0x7a}, {OV8865_8BIT, {0x37a2}, 0x7a}, {OV8865_8BIT, {0x37a3}, 0x02}, {OV8865_8BIT, {0x37a5}, 0x09}, {OV8865_8BIT, {0x37a7}, 0x88}, {OV8865_8BIT, {0x37a8}, 0xb0}, {OV8865_8BIT, {0x37a9}, 0xb0}, {OV8865_8BIT, {0x37aa}, 0x88}, {OV8865_8BIT, {0x37ab}, 0x5c}, {OV8865_8BIT, {0x37ac}, 0x5c}, {OV8865_8BIT, {0x37ad}, 0x55}, {OV8865_8BIT, {0x37ae}, 0x19}, {OV8865_8BIT, {0x37af}, 0x19}, {OV8865_8BIT, {0x37b3}, 0x84}, {OV8865_8BIT, {0x37b4}, 0x84}, {OV8865_8BIT, {0x37b5}, 0x66}, {OV8865_8BIT, {0x3808}, 0x0c}, {OV8865_8BIT, {0x3809}, 0xd0}, {OV8865_8BIT, {0x380a}, 0x07}, {OV8865_8BIT, {0x380b}, 0x3c}, {OV8865_8BIT, {0x380c}, 0x12}, {OV8865_8BIT, {0x380d}, 0x54}, {OV8865_8BIT, {0x380e}, 0x0b}, {OV8865_8BIT, {0x380f}, 0xfc}, {OV8865_8BIT, {0x3813}, 0x02}, {OV8865_8BIT, {0x3814}, 0x01}, {OV8865_8BIT, {0x3821}, 0x40}, {OV8865_8BIT, {0x382a}, 0x01}, {OV8865_8BIT, {0x3830}, 0x04}, {OV8865_8BIT, {0x3836}, 0x01}, {OV8865_8BIT, {0x3846}, 0x48}, {OV8865_8BIT, {0x3f08}, 0x16}, {OV8865_8BIT, {0x4001}, 0x04}, {OV8865_8BIT, {0x4020}, 0x02}, {OV8865_8BIT, {0x4021}, 0x40}, {OV8865_8BIT, {0x4022}, 0x03}, {OV8865_8BIT, {0x4023}, 0x3f}, {OV8865_8BIT, {0x4024}, 0x07}, {OV8865_8BIT, {0x4025}, 0xc0}, {OV8865_8BIT, {0x4026}, 0x08}, {OV8865_8BIT, {0x4027}, 0xbf}, {OV8865_8BIT, {0x4500}, 0x68}, {OV8865_8BIT, {0x4601}, 0x10}, { OV8865_TOK_TERM, {0}, 0} }; static struct ov8865_reg const ov8865_3280x1852_21fps[] = { /* 3280x1852_21fps */ {OV8865_8BIT, {0x0100}, 0x00}, {OV8865_8BIT, {0x030f}, 0x04}, {OV8865_8BIT, {0x3501}, 0x72}, {OV8865_8BIT, {0x3502}, 0x20}, {OV8865_8BIT, {0x3508}, 0x02}, {OV8865_8BIT, {0x3700}, 0x48}, {OV8865_8BIT, {0x3701}, 0x18}, {OV8865_8BIT, {0x3702}, 0x50}, {OV8865_8BIT, {0x3703}, 0x32}, {OV8865_8BIT, {0x3704}, 0x28}, {OV8865_8BIT, {0x3706}, 0x70}, {OV8865_8BIT, {0x3707}, 0x08}, {OV8865_8BIT, {0x3708}, 0x48}, {OV8865_8BIT, {0x3709}, 0x80}, {OV8865_8BIT, {0x370a}, 0x01}, {OV8865_8BIT, {0x370b}, 0x70}, {OV8865_8BIT, {0x370c}, 0x07}, {OV8865_8BIT, {0x3718}, 0x14}, {OV8865_8BIT, {0x3712}, 0x44}, {OV8865_8BIT, {0x371e}, 0x31}, {OV8865_8BIT, {0x371f}, 0x7f}, {OV8865_8BIT, {0x3720}, 0x0a}, {OV8865_8BIT, {0x3721}, 0x0a}, {OV8865_8BIT, {0x3724}, 0x04}, {OV8865_8BIT, {0x3725}, 0x04}, {OV8865_8BIT, {0x3726}, 0x0c}, {OV8865_8BIT, {0x3728}, 0x0a}, {OV8865_8BIT, {0x3729}, 0x03}, {OV8865_8BIT, {0x372a}, 0x06}, {OV8865_8BIT, {0x372b}, 0xa6}, {OV8865_8BIT, {0x372c}, 0xa6}, {OV8865_8BIT, {0x372d}, 0xa6}, {OV8865_8BIT, {0x372e}, 0x0c}, {OV8865_8BIT, {0x372f}, 0x20}, {OV8865_8BIT, {0x3730}, 0x02}, {OV8865_8BIT, {0x3731}, 0x0c}, {OV8865_8BIT, {0x3732}, 0x28}, {OV8865_8BIT, {0x3736}, 0x30}, {OV8865_8BIT, {0x373a}, 0x04}, {OV8865_8BIT, {0x373b}, 0x18}, {OV8865_8BIT, {0x373c}, 0x14}, {OV8865_8BIT, {0x373e}, 0x06}, {OV8865_8BIT, {0x375a}, 0x0c}, {OV8865_8BIT, {0x375b}, 0x26}, {OV8865_8BIT, {0x375d}, 0x04}, {OV8865_8BIT, {0x375f}, 0x28}, {OV8865_8BIT, {0x3767}, 0x1e}, {OV8865_8BIT, {0x3772}, 0x46}, {OV8865_8BIT, {0x3773}, 0x04}, {OV8865_8BIT, {0x3774}, 0x2c}, {OV8865_8BIT, {0x3775}, 0x13}, {OV8865_8BIT, {0x3776}, 0x10}, {OV8865_8BIT, {0x37a0}, 0x88}, {OV8865_8BIT, {0x37a1}, 0x7a}, {OV8865_8BIT, {0x37a2}, 0x7a}, {OV8865_8BIT, {0x37a3}, 0x02}, {OV8865_8BIT, {0x37a5}, 0x09}, {OV8865_8BIT, {0x37a7}, 0x88}, {OV8865_8BIT, {0x37a8}, 0xb0}, {OV8865_8BIT, {0x37a9}, 0xb0}, {OV8865_8BIT, {0x37aa}, 0x88}, {OV8865_8BIT, {0x37ab}, 0x5c}, {OV8865_8BIT, {0x37ac}, 0x5c}, {OV8865_8BIT, {0x37ad}, 0x55}, {OV8865_8BIT, {0x37ae}, 0x19}, {OV8865_8BIT, {0x37af}, 0x19}, {OV8865_8BIT, {0x37b3}, 0x84}, {OV8865_8BIT, {0x37b4}, 0x84}, {OV8865_8BIT, {0x37b5}, 0x66}, {OV8865_8BIT, {0x3808}, 0x0c}, {OV8865_8BIT, {0x3809}, 0xd0}, {OV8865_8BIT, {0x380a}, 0x07}, {OV8865_8BIT, {0x380b}, 0x3c}, {OV8865_8BIT, {0x380c}, 0x0b},//;0a {OV8865_8BIT, {0x380d}, 0x3e},//;00 {OV8865_8BIT, {0x380e}, 0x09},//;07 {OV8865_8BIT, {0x380f}, 0x4e},//;52 {OV8865_8BIT, {0x3813}, 0x02}, {OV8865_8BIT, {0x3814}, 0x01}, {OV8865_8BIT, {0x3821}, 0x40}, {OV8865_8BIT, {0x382a}, 0x01}, {OV8865_8BIT, {0x3830}, 0x04}, {OV8865_8BIT, {0x3836}, 0x01}, {OV8865_8BIT, {0x3846}, 0x48}, {OV8865_8BIT, {0x3f08}, 0x16}, {OV8865_8BIT, {0x4001}, 0x04}, {OV8865_8BIT, {0x4020}, 0x02}, {OV8865_8BIT, {0x4021}, 0x40}, {OV8865_8BIT, {0x4022}, 0x03}, {OV8865_8BIT, {0x4023}, 0x3f}, {OV8865_8BIT, {0x4024}, 0x07}, {OV8865_8BIT, {0x4025}, 0xc0}, {OV8865_8BIT, {0x4026}, 0x08}, {OV8865_8BIT, {0x4027}, 0xbf}, {OV8865_8BIT, {0x4500}, 0x68}, {OV8865_8BIT, {0x4601}, 0x10}, { OV8865_TOK_TERM, {0}, 0} }; static const struct ov8865_reg ov8865_3280x1852_30fps[] = { /* 3280x1852_30fps */ {OV8865_8BIT, {0x0100}, 0x00}, {OV8865_8BIT, {0x030f}, 0x04}, {OV8865_8BIT, {0x3501}, 0x72}, {OV8865_8BIT, {0x3502}, 0x20}, {OV8865_8BIT, {0x3508}, 0x02}, {OV8865_8BIT, {0x3700}, 0x48}, {OV8865_8BIT, {0x3701}, 0x18}, {OV8865_8BIT, {0x3702}, 0x50}, {OV8865_8BIT, {0x3703}, 0x32}, {OV8865_8BIT, {0x3704}, 0x28}, {OV8865_8BIT, {0x3706}, 0x70}, {OV8865_8BIT, {0x3707}, 0x08}, {OV8865_8BIT, {0x3708}, 0x48}, {OV8865_8BIT, {0x3709}, 0x80}, {OV8865_8BIT, {0x370a}, 0x01}, {OV8865_8BIT, {0x370b}, 0x70}, {OV8865_8BIT, {0x370c}, 0x07}, {OV8865_8BIT, {0x3718}, 0x14}, {OV8865_8BIT, {0x3712}, 0x44}, {OV8865_8BIT, {0x371e}, 0x31}, {OV8865_8BIT, {0x371f}, 0x7f}, {OV8865_8BIT, {0x3720}, 0x0a}, {OV8865_8BIT, {0x3721}, 0x0a}, {OV8865_8BIT, {0x3724}, 0x04}, {OV8865_8BIT, {0x3725}, 0x04}, {OV8865_8BIT, {0x3726}, 0x0c}, {OV8865_8BIT, {0x3728}, 0x0a}, {OV8865_8BIT, {0x3729}, 0x03}, {OV8865_8BIT, {0x372a}, 0x06}, {OV8865_8BIT, {0x372b}, 0xa6}, {OV8865_8BIT, {0x372c}, 0xa6}, {OV8865_8BIT, {0x372d}, 0xa6}, {OV8865_8BIT, {0x372e}, 0x0c}, {OV8865_8BIT, {0x372f}, 0x20}, {OV8865_8BIT, {0x3730}, 0x02}, {OV8865_8BIT, {0x3731}, 0x0c}, {OV8865_8BIT, {0x3732}, 0x28}, {OV8865_8BIT, {0x3736}, 0x30}, {OV8865_8BIT, {0x373a}, 0x04}, {OV8865_8BIT, {0x373b}, 0x18}, {OV8865_8BIT, {0x373c}, 0x14}, {OV8865_8BIT, {0x373e}, 0x06}, {OV8865_8BIT, {0x375a}, 0x0c}, {OV8865_8BIT, {0x375b}, 0x26}, {OV8865_8BIT, {0x375d}, 0x04}, {OV8865_8BIT, {0x375f}, 0x28}, {OV8865_8BIT, {0x3767}, 0x1e}, {OV8865_8BIT, {0x3772}, 0x46}, {OV8865_8BIT, {0x3773}, 0x04}, {OV8865_8BIT, {0x3774}, 0x2c}, {OV8865_8BIT, {0x3775}, 0x13}, {OV8865_8BIT, {0x3776}, 0x10}, {OV8865_8BIT, {0x37a0}, 0x88}, {OV8865_8BIT, {0x37a1}, 0x7a}, {OV8865_8BIT, {0x37a2}, 0x7a}, {OV8865_8BIT, {0x37a3}, 0x02}, {OV8865_8BIT, {0x37a5}, 0x09}, {OV8865_8BIT, {0x37a7}, 0x88}, {OV8865_8BIT, {0x37a8}, 0xb0}, {OV8865_8BIT, {0x37a9}, 0xb0}, {OV8865_8BIT, {0x37aa}, 0x88}, {OV8865_8BIT, {0x37ab}, 0x5c}, {OV8865_8BIT, {0x37ac}, 0x5c}, {OV8865_8BIT, {0x37ad}, 0x55}, {OV8865_8BIT, {0x37ae}, 0x19}, {OV8865_8BIT, {0x37af}, 0x19}, {OV8865_8BIT, {0x37b3}, 0x84}, {OV8865_8BIT, {0x37b4}, 0x84}, {OV8865_8BIT, {0x37b5}, 0x66}, {OV8865_8BIT, {0x3808}, 0x0c}, {OV8865_8BIT, {0x3809}, 0xd0}, {OV8865_8BIT, {0x380a}, 0x07}, {OV8865_8BIT, {0x380b}, 0x3c}, {OV8865_8BIT, {0x380c}, 0x09}, {OV8865_8BIT, {0x380d}, 0x20}, {OV8865_8BIT, {0x380e}, 0x08}, {OV8865_8BIT, {0x380f}, 0x00}, {OV8865_8BIT, {0x3813}, 0x02}, {OV8865_8BIT, {0x3814}, 0x01}, {OV8865_8BIT, {0x3821}, 0x40}, {OV8865_8BIT, {0x382a}, 0x01}, {OV8865_8BIT, {0x3830}, 0x04}, {OV8865_8BIT, {0x3836}, 0x01}, {OV8865_8BIT, {0x3846}, 0x48}, {OV8865_8BIT, {0x3f08}, 0x16}, {OV8865_8BIT, {0x4001}, 0x04}, {OV8865_8BIT, {0x4020}, 0x02}, {OV8865_8BIT, {0x4021}, 0x40}, {OV8865_8BIT, {0x4022}, 0x03}, {OV8865_8BIT, {0x4023}, 0x3f}, {OV8865_8BIT, {0x4024}, 0x07}, {OV8865_8BIT, {0x4025}, 0xc0}, {OV8865_8BIT, {0x4026}, 0x08}, {OV8865_8BIT, {0x4027}, 0xbf}, {OV8865_8BIT, {0x4500}, 0x68}, {OV8865_8BIT, {0x4601}, 0x10}, { OV8865_TOK_TERM, {0}, 0} }; static const struct ov8865_reg ov8865_3280x2464_21fps[] = { /* 3280x2464_21fps */ {OV8865_8BIT, {0x0100}, 0x00}, {OV8865_8BIT, {0x030f}, 0x04}, {OV8865_8BIT, {0x3501}, 0x98}, {OV8865_8BIT, {0x3502}, 0x60}, {OV8865_8BIT, {0x3508}, 0x02}, {OV8865_8BIT, {0x3700}, 0x48}, {OV8865_8BIT, {0x3701}, 0x18}, {OV8865_8BIT, {0x3702}, 0x50}, {OV8865_8BIT, {0x3703}, 0x32}, {OV8865_8BIT, {0x3704}, 0x28}, {OV8865_8BIT, {0x3706}, 0x70}, {OV8865_8BIT, {0x3707}, 0x08}, {OV8865_8BIT, {0x3708}, 0x48}, {OV8865_8BIT, {0x3709}, 0x80}, {OV8865_8BIT, {0x370a}, 0x01}, {OV8865_8BIT, {0x370b}, 0x70}, {OV8865_8BIT, {0x370c}, 0x07}, {OV8865_8BIT, {0x3718}, 0x14}, {OV8865_8BIT, {0x3712}, 0x44}, {OV8865_8BIT, {0x371e}, 0x31}, {OV8865_8BIT, {0x371f}, 0x7f}, {OV8865_8BIT, {0x3720}, 0x0a}, {OV8865_8BIT, {0x3721}, 0x0a}, {OV8865_8BIT, {0x3724}, 0x04}, {OV8865_8BIT, {0x3725}, 0x04}, {OV8865_8BIT, {0x3726}, 0x0c}, {OV8865_8BIT, {0x3728}, 0x0a}, {OV8865_8BIT, {0x3729}, 0x03}, {OV8865_8BIT, {0x372a}, 0x06}, {OV8865_8BIT, {0x372b}, 0xa6}, {OV8865_8BIT, {0x372c}, 0xa6}, {OV8865_8BIT, {0x372d}, 0xa6}, {OV8865_8BIT, {0x372e}, 0x0c}, {OV8865_8BIT, {0x372f}, 0x20}, {OV8865_8BIT, {0x3730}, 0x02}, {OV8865_8BIT, {0x3731}, 0x0c}, {OV8865_8BIT, {0x3732}, 0x28}, {OV8865_8BIT, {0x3736}, 0x30}, {OV8865_8BIT, {0x373a}, 0x04}, {OV8865_8BIT, {0x373b}, 0x18}, {OV8865_8BIT, {0x373c}, 0x14}, {OV8865_8BIT, {0x373e}, 0x06}, {OV8865_8BIT, {0x375a}, 0x0c}, {OV8865_8BIT, {0x375b}, 0x26}, {OV8865_8BIT, {0x375d}, 0x04}, {OV8865_8BIT, {0x375f}, 0x28}, {OV8865_8BIT, {0x3767}, 0x1e}, {OV8865_8BIT, {0x3772}, 0x46}, {OV8865_8BIT, {0x3773}, 0x04}, {OV8865_8BIT, {0x3774}, 0x2c}, {OV8865_8BIT, {0x3775}, 0x13}, {OV8865_8BIT, {0x3776}, 0x10}, {OV8865_8BIT, {0x37a0}, 0x88}, {OV8865_8BIT, {0x37a1}, 0x7a}, {OV8865_8BIT, {0x37a2}, 0x7a}, {OV8865_8BIT, {0x37a3}, 0x02}, {OV8865_8BIT, {0x37a5}, 0x09}, {OV8865_8BIT, {0x37a7}, 0x88}, {OV8865_8BIT, {0x37a8}, 0xb0}, {OV8865_8BIT, {0x37a9}, 0xb0}, {OV8865_8BIT, {0x37aa}, 0x88}, {OV8865_8BIT, {0x37ab}, 0x5c}, {OV8865_8BIT, {0x37ac}, 0x5c}, {OV8865_8BIT, {0x37ad}, 0x55}, {OV8865_8BIT, {0x37ae}, 0x19}, {OV8865_8BIT, {0x37af}, 0x19}, {OV8865_8BIT, {0x37b3}, 0x84}, {OV8865_8BIT, {0x37b4}, 0x84}, {OV8865_8BIT, {0x37b5}, 0x66}, {OV8865_8BIT, {0x3808}, 0x0c}, {OV8865_8BIT, {0x3809}, 0xd0}, {OV8865_8BIT, {0x380a}, 0x09}, {OV8865_8BIT, {0x380b}, 0xa0}, {OV8865_8BIT, {0x380c}, 0x08},//;07 {OV8865_8BIT, {0x380d}, 0xd2},//;90 {OV8865_8BIT, {0x380e}, 0x0b},//;09 {OV8865_8BIT, {0x380f}, 0xda},//;b2 {OV8865_8BIT, {0x3813}, 0x02}, {OV8865_8BIT, {0x3814}, 0x01}, {OV8865_8BIT, {0x3821}, 0x40}, {OV8865_8BIT, {0x382a}, 0x01}, {OV8865_8BIT, {0x3830}, 0x04}, {OV8865_8BIT, {0x3836}, 0x01}, {OV8865_8BIT, {0x3846}, 0x48}, {OV8865_8BIT, {0x3f08}, 0x16}, {OV8865_8BIT, {0x4001}, 0x04}, {OV8865_8BIT, {0x4020}, 0x02}, {OV8865_8BIT, {0x4021}, 0x40}, {OV8865_8BIT, {0x4022}, 0x03}, {OV8865_8BIT, {0x4023}, 0x3f}, {OV8865_8BIT, {0x4024}, 0x07}, {OV8865_8BIT, {0x4025}, 0xc0}, {OV8865_8BIT, {0x4026}, 0x08}, {OV8865_8BIT, {0x4027}, 0xbf}, {OV8865_8BIT, {0x4500}, 0x68}, {OV8865_8BIT, {0x4601}, 0x10}, { OV8865_TOK_TERM, {0}, 0} }; static const struct ov8865_reg ov8865_3280x2464_10fps[] = { /* 3280x2464_10fps */ {OV8865_8BIT, {0x0100}, 0x00}, {OV8865_8BIT, {0x030f}, 0x04}, {OV8865_8BIT, {0x3501}, 0x98}, {OV8865_8BIT, {0x3502}, 0x60}, {OV8865_8BIT, {0x3508}, 0x02}, {OV8865_8BIT, {0x3700}, 0x48}, {OV8865_8BIT, {0x3701}, 0x18}, {OV8865_8BIT, {0x3702}, 0x50}, {OV8865_8BIT, {0x3703}, 0x32}, {OV8865_8BIT, {0x3704}, 0x28}, {OV8865_8BIT, {0x3706}, 0x70}, {OV8865_8BIT, {0x3707}, 0x08}, {OV8865_8BIT, {0x3708}, 0x48}, {OV8865_8BIT, {0x3709}, 0x80}, {OV8865_8BIT, {0x370a}, 0x01}, {OV8865_8BIT, {0x370b}, 0x70}, {OV8865_8BIT, {0x370c}, 0x07}, {OV8865_8BIT, {0x3718}, 0x14}, {OV8865_8BIT, {0x3712}, 0x44}, {OV8865_8BIT, {0x371e}, 0x31}, {OV8865_8BIT, {0x371f}, 0x7f}, {OV8865_8BIT, {0x3720}, 0x0a}, {OV8865_8BIT, {0x3721}, 0x0a}, {OV8865_8BIT, {0x3724}, 0x04}, {OV8865_8BIT, {0x3725}, 0x04}, {OV8865_8BIT, {0x3726}, 0x0c}, {OV8865_8BIT, {0x3728}, 0x0a}, {OV8865_8BIT, {0x3729}, 0x03}, {OV8865_8BIT, {0x372a}, 0x06}, {OV8865_8BIT, {0x372b}, 0xa6}, {OV8865_8BIT, {0x372c}, 0xa6}, {OV8865_8BIT, {0x372d}, 0xa6}, {OV8865_8BIT, {0x372e}, 0x0c}, {OV8865_8BIT, {0x372f}, 0x20}, {OV8865_8BIT, {0x3730}, 0x02}, {OV8865_8BIT, {0x3731}, 0x0c}, {OV8865_8BIT, {0x3732}, 0x28}, {OV8865_8BIT, {0x3736}, 0x30}, {OV8865_8BIT, {0x373a}, 0x04}, {OV8865_8BIT, {0x373b}, 0x18}, {OV8865_8BIT, {0x373c}, 0x14}, {OV8865_8BIT, {0x373e}, 0x06}, {OV8865_8BIT, {0x375a}, 0x0c}, {OV8865_8BIT, {0x375b}, 0x26}, {OV8865_8BIT, {0x375d}, 0x04}, {OV8865_8BIT, {0x375f}, 0x28}, {OV8865_8BIT, {0x3767}, 0x1e}, {OV8865_8BIT, {0x3772}, 0x46}, {OV8865_8BIT, {0x3773}, 0x04}, {OV8865_8BIT, {0x3774}, 0x2c}, {OV8865_8BIT, {0x3775}, 0x13}, {OV8865_8BIT, {0x3776}, 0x10}, {OV8865_8BIT, {0x37a0}, 0x88}, {OV8865_8BIT, {0x37a1}, 0x7a}, {OV8865_8BIT, {0x37a2}, 0x7a}, {OV8865_8BIT, {0x37a3}, 0x02}, {OV8865_8BIT, {0x37a5}, 0x09}, {OV8865_8BIT, {0x37a7}, 0x88}, {OV8865_8BIT, {0x37a8}, 0xb0}, {OV8865_8BIT, {0x37a9}, 0xb0}, {OV8865_8BIT, {0x37aa}, 0x88}, {OV8865_8BIT, {0x37ab}, 0x5c}, {OV8865_8BIT, {0x37ac}, 0x5c}, {OV8865_8BIT, {0x37ad}, 0x55}, {OV8865_8BIT, {0x37ae}, 0x19}, {OV8865_8BIT, {0x37af}, 0x19}, {OV8865_8BIT, {0x37b3}, 0x84}, {OV8865_8BIT, {0x37b4}, 0x84}, {OV8865_8BIT, {0x37b5}, 0x66}, {OV8865_8BIT, {0x3808}, 0x0c}, {OV8865_8BIT, {0x3809}, 0xd0}, {OV8865_8BIT, {0x380a}, 0x09}, {OV8865_8BIT, {0x380b}, 0xa0}, {OV8865_8BIT, {0x380c}, 0x12},//;07 {OV8865_8BIT, {0x380d}, 0x54},//;90 {OV8865_8BIT, {0x380e}, 0x0b},//;09 {OV8865_8BIT, {0x380f}, 0xda},//;b2 {OV8865_8BIT, {0x3813}, 0x02}, {OV8865_8BIT, {0x3814}, 0x01}, {OV8865_8BIT, {0x3821}, 0x40}, {OV8865_8BIT, {0x382a}, 0x01}, {OV8865_8BIT, {0x3830}, 0x04}, {OV8865_8BIT, {0x3836}, 0x01}, {OV8865_8BIT, {0x3846}, 0x48}, {OV8865_8BIT, {0x3f08}, 0x16}, {OV8865_8BIT, {0x4001}, 0x04}, {OV8865_8BIT, {0x4020}, 0x02}, {OV8865_8BIT, {0x4021}, 0x40}, {OV8865_8BIT, {0x4022}, 0x03}, {OV8865_8BIT, {0x4023}, 0x3f}, {OV8865_8BIT, {0x4024}, 0x07}, {OV8865_8BIT, {0x4025}, 0xc0}, {OV8865_8BIT, {0x4026}, 0x08}, {OV8865_8BIT, {0x4027}, 0xbf}, {OV8865_8BIT, {0x4500}, 0x68}, {OV8865_8BIT, {0x4601}, 0x10}, { OV8865_TOK_TERM, {0}, 0} }; static const struct ov8865_reg ov8865_3280x2464_30fps[] = { /* 3280x2464_30fps */ {OV8865_8BIT, {0x0100}, 0x00}, {OV8865_8BIT, {0x030f}, 0x04}, {OV8865_8BIT, {0x3501}, 0x98}, {OV8865_8BIT, {0x3502}, 0x60}, {OV8865_8BIT, {0x3508}, 0x02}, {OV8865_8BIT, {0x3700}, 0x48}, {OV8865_8BIT, {0x3701}, 0x18}, {OV8865_8BIT, {0x3702}, 0x50}, {OV8865_8BIT, {0x3703}, 0x32}, {OV8865_8BIT, {0x3704}, 0x28}, {OV8865_8BIT, {0x3706}, 0x70}, {OV8865_8BIT, {0x3707}, 0x08}, {OV8865_8BIT, {0x3708}, 0x48}, {OV8865_8BIT, {0x3709}, 0x80}, {OV8865_8BIT, {0x370a}, 0x01}, {OV8865_8BIT, {0x370b}, 0x70}, {OV8865_8BIT, {0x370c}, 0x07}, {OV8865_8BIT, {0x3718}, 0x14}, {OV8865_8BIT, {0x3712}, 0x44}, {OV8865_8BIT, {0x371e}, 0x31}, {OV8865_8BIT, {0x371f}, 0x7f}, {OV8865_8BIT, {0x3720}, 0x0a}, {OV8865_8BIT, {0x3721}, 0x0a}, {OV8865_8BIT, {0x3724}, 0x04}, {OV8865_8BIT, {0x3725}, 0x04}, {OV8865_8BIT, {0x3726}, 0x0c}, {OV8865_8BIT, {0x3728}, 0x0a}, {OV8865_8BIT, {0x3729}, 0x03}, {OV8865_8BIT, {0x372a}, 0x06}, {OV8865_8BIT, {0x372b}, 0xa6}, {OV8865_8BIT, {0x372c}, 0xa6}, {OV8865_8BIT, {0x372d}, 0xa6}, {OV8865_8BIT, {0x372e}, 0x0c}, {OV8865_8BIT, {0x372f}, 0x20}, {OV8865_8BIT, {0x3730}, 0x02}, {OV8865_8BIT, {0x3731}, 0x0c}, {OV8865_8BIT, {0x3732}, 0x28}, {OV8865_8BIT, {0x3736}, 0x30}, {OV8865_8BIT, {0x373a}, 0x04}, {OV8865_8BIT, {0x373b}, 0x18}, {OV8865_8BIT, {0x373c}, 0x14}, {OV8865_8BIT, {0x373e}, 0x06}, {OV8865_8BIT, {0x375a}, 0x0c}, {OV8865_8BIT, {0x375b}, 0x26}, {OV8865_8BIT, {0x375d}, 0x04}, {OV8865_8BIT, {0x375f}, 0x28}, {OV8865_8BIT, {0x3767}, 0x1e}, {OV8865_8BIT, {0x3772}, 0x46}, {OV8865_8BIT, {0x3773}, 0x04}, {OV8865_8BIT, {0x3774}, 0x2c}, {OV8865_8BIT, {0x3775}, 0x13}, {OV8865_8BIT, {0x3776}, 0x10}, {OV8865_8BIT, {0x37a0}, 0x88}, {OV8865_8BIT, {0x37a1}, 0x7a}, {OV8865_8BIT, {0x37a2}, 0x7a}, {OV8865_8BIT, {0x37a3}, 0x02}, {OV8865_8BIT, {0x37a5}, 0x09}, {OV8865_8BIT, {0x37a7}, 0x88}, {OV8865_8BIT, {0x37a8}, 0xb0}, {OV8865_8BIT, {0x37a9}, 0xb0}, {OV8865_8BIT, {0x37aa}, 0x88}, {OV8865_8BIT, {0x37ab}, 0x5c}, {OV8865_8BIT, {0x37ac}, 0x5c}, {OV8865_8BIT, {0x37ad}, 0x55}, {OV8865_8BIT, {0x37ae}, 0x19}, {OV8865_8BIT, {0x37af}, 0x19}, {OV8865_8BIT, {0x37b3}, 0x84}, {OV8865_8BIT, {0x37b4}, 0x84}, {OV8865_8BIT, {0x37b5}, 0x66}, {OV8865_8BIT, {0x3808}, 0x0c}, {OV8865_8BIT, {0x3809}, 0xd0}, {OV8865_8BIT, {0x380a}, 0x09}, {OV8865_8BIT, {0x380b}, 0xa0}, {OV8865_8BIT, {0x380c}, 0x07}, {OV8865_8BIT, {0x380d}, 0x90}, {OV8865_8BIT, {0x380e}, 0x09}, {OV8865_8BIT, {0x380f}, 0xb6}, {OV8865_8BIT, {0x3813}, 0x02}, {OV8865_8BIT, {0x3814}, 0x01}, {OV8865_8BIT, {0x3821}, 0x40}, {OV8865_8BIT, {0x382a}, 0x01}, {OV8865_8BIT, {0x3830}, 0x04}, {OV8865_8BIT, {0x3836}, 0x01}, {OV8865_8BIT, {0x3846}, 0x48}, {OV8865_8BIT, {0x3f08}, 0x16}, {OV8865_8BIT, {0x4001}, 0x04}, {OV8865_8BIT, {0x4020}, 0x02}, {OV8865_8BIT, {0x4021}, 0x40}, {OV8865_8BIT, {0x4022}, 0x03}, {OV8865_8BIT, {0x4023}, 0x3f}, {OV8865_8BIT, {0x4024}, 0x07}, {OV8865_8BIT, {0x4025}, 0xc0}, {OV8865_8BIT, {0x4026}, 0x08}, {OV8865_8BIT, {0x4027}, 0xbf}, {OV8865_8BIT, {0x4500}, 0x68}, {OV8865_8BIT, {0x4601}, 0x10}, { OV8865_TOK_TERM, {0}, 0} }; static struct ov8865_resolution ov8865_res_preview[] = { { .desc = "ov8865_896x736_30fps", .width = 896, .height = 736, .used = 0, .regs = ov8865_896x736_30fps, .bin_factor_x = 1, .bin_factor_y = 1, .skip_frames = 0, .fps_options = { { .fps = 30, .pixels_per_line = 0x6e6, /* 1766 */ .lines_per_frame = 0x550, /* 1360 */ }, { } }, }, { .desc = "ov8865_1632x1224_30fps", .width = 1632, .height = 1224, .used = 0, .regs = ov8865_1632x1224_30fps, .bin_factor_x = 1, .bin_factor_y = 1, .skip_frames = 0, .fps_options = { { .fps = 30, .pixels_per_line = 0x0642, /* 1602 */ .lines_per_frame = 0x05da, /* 1498 */ }, { } } }, { .desc = "ov8865_3280x1852_30fps", .width = 3280, .height = 1852, .used = 0, .regs = ov8865_3280x1852_30fps, .bin_factor_x = 0, .bin_factor_y = 0, .skip_frames = 0, .fps_options = { { .fps = 30, .pixels_per_line = 0x0920, /* 2336*/ .lines_per_frame = 0x0800, /* 2048 */ }, { } } }, { .desc = "ov8865_3280x2464_30fps", .width = 3280, .height = 2464, .used = 0, .regs = ov8865_3280x2464_30fps, .bin_factor_x = 0, .bin_factor_y = 0, .skip_frames = 0, .fps_options = { { .fps = 30, .pixels_per_line = 0x0790, /* 1936*/ .lines_per_frame = 0x09b6, /* 2486 */ }, { } }, }, }; static struct ov8865_resolution ov8865_res_still[] = { #if 0 { .desc = "ov8865_2576x1936_10fps", .width = 2576, .height = 1936, .used = 0, .regs = ov8865_2576x1936_10fps, .bin_factor_x = 0, .bin_factor_y = 0, .skip_frames = 1, .fps_options = { { .fps = 10, .pixels_per_line = 0x103a, /* 4154 */ .lines_per_frame = 0x0d88, /* 3464 */ }, { } }, }, #endif { .desc = "ov8865_3280x1852_10fps", .width = 3280, .height = 1852, .used = 0, .regs = ov8865_3280x1852_10fps, .bin_factor_x = 0, .bin_factor_y = 0, .skip_frames = 1, .fps_options = { { .fps = 10, .pixels_per_line = 0x1254, /* 4692 */ .lines_per_frame = 0x0bfc, /* 3068 */ }, { } }, }, { .desc = "ov8865_3280x2464_10fps", .width = 3280, .height = 2464, .used = 0, .regs = ov8865_3280x2464_10fps, .bin_factor_x = 0, .bin_factor_y = 0, .skip_frames = 0, .fps_options = { { .fps = 10, .pixels_per_line = 0x1254/* 4692*/, /* 2258 */ .lines_per_frame = 0x0bda, /* 3034 */ }, { } }, }, }; static struct ov8865_resolution ov8865_res_video[] = { { .desc = "ov8865_896x736_30fps", .width = 896, .height = 736, .used = 0, .regs = ov8865_896x736_30fps, .bin_factor_x = 1, .bin_factor_y = 1, .skip_frames = 0, .fps_options = { { .fps = 30, .pixels_per_line = 0x6e6, /* 1766 */ .lines_per_frame = 0x550, /* 1360 */ }, { } }, }, #if 0 { .desc = "ov8865_1216x736_30fps", .width = 1216, .height = 736, .used = 0, .regs = ov8865_1216x736_30fps, .bin_factor_x = 1, .bin_factor_y = 1, .skip_frames = 0, .fps_options = { { .fps = 30, .pixels_per_line = 0x071a, /* 1818 */ .lines_per_frame = 0x0528, /* 1320 */ }, { } }, }, #endif { .desc = "ov8865_1632x1224_30fps", .width = 1632, .height = 1224, .used = 0, .regs = ov8865_1632x1224_30fps, .bin_factor_x = 1, .bin_factor_y = 1, .skip_frames = 0, .fps_options = { { .fps = 30, .pixels_per_line = 0x0642, /* 1602 */ .lines_per_frame = 0x05da, /* 1498 */ }, { } }, }, { .desc = "ov8865_1936x1096_30fps", .width = 1936, .height = 1096, .regs = ov8865_1936x1096_30fps, .bin_factor_x = 0, .bin_factor_y = 0, .skip_frames = 0, .fps_options = { { .fps = 30, .pixels_per_line = 0x0f98, /* 3992 */ .lines_per_frame = 0x04b2, /* 1202 */ }, { } }, }, }; static int ov8865_read_reg(struct i2c_client *client, u16 len, u16 reg, u16 *val); static int ov8865_write_reg(struct i2c_client *client, u16 data_length, u16 reg, u16 val); #endif
gpl-2.0
qtproject/qtwebkit
Source/WebCore/page/csp/ContentSecurityPolicySource.cpp
3383
/* * Copyright (C) 2011 Google, Inc. All rights reserved. * Copyright (C) 2016 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY GOOGLE INC. ``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 APPLE INC. OR * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "config.h" #include "ContentSecurityPolicySource.h" #include "ContentSecurityPolicy.h" #include "URL.h" namespace WebCore { ContentSecurityPolicySource::ContentSecurityPolicySource(const ContentSecurityPolicy& policy, const String& scheme, const String& host, int port, const String& path, bool hostHasWildcard, bool portHasWildcard) : m_policy(policy) , m_scheme(scheme) , m_host(host) , m_port(port) , m_path(path) , m_hostHasWildcard(hostHasWildcard) , m_portHasWildcard(portHasWildcard) { } bool ContentSecurityPolicySource::matches(const URL& url) const { if (!schemeMatches(url)) return false; if (isSchemeOnly()) return true; return hostMatches(url) && portMatches(url) && pathMatches(url); } bool ContentSecurityPolicySource::schemeMatches(const URL& url) const { if (m_scheme.isEmpty()) return m_policy.protocolMatchesSelf(url); return equalIgnoringASCIICase(url.protocol(), m_scheme); } bool ContentSecurityPolicySource::hostMatches(const URL& url) const { const String& host = url.host(); if (equalIgnoringASCIICase(host, m_host)) return true; return m_hostHasWildcard && host.endsWith("." + m_host, false); } bool ContentSecurityPolicySource::pathMatches(const URL& url) const { if (m_path.isEmpty()) return true; String path = decodeURLEscapeSequences(url.path()); if (m_path.endsWith("/")) return path.startsWith(m_path); return path == m_path; } bool ContentSecurityPolicySource::portMatches(const URL& url) const { if (m_portHasWildcard) return true; int port = url.port(); if (port == m_port) return true; if (!port) return isDefaultPortForProtocol(m_port, url.protocol()); if (!m_port) return isDefaultPortForProtocol(port, url.protocol()); return false; } bool ContentSecurityPolicySource::isSchemeOnly() const { return m_host.isEmpty(); } } // namespace WebCore
gpl-2.0
igraph/igraph
src/games/sbm.c
23629
/* -*- mode: C -*- */ /* vim:set ts=4 sw=4 sts=4 et: */ /* IGraph R library. Copyright (C) 2003-2013 Gabor Csardi <[email protected]> 334 Harvard street, Cambridge, MA 02139 USA 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 "igraph_interface.h" #include "igraph_vector.h" #include "igraph_matrix.h" #include "igraph_random.h" #include "igraph_constructors.h" #include "igraph_games.h" #include "core/interruption.h" #include <float.h> /* for DBL_EPSILON */ #include <math.h> /* for sqrt */ /** * \function igraph_sbm_game * \brief Sample from a stochastic block model. * * This function samples graphs from a stochastic block * model by (doing the equivalent of) Bernoulli * trials for each potential edge with the probabilities * given by the Bernoulli rate matrix, \p pref_matrix. * See Faust, K., &amp; Wasserman, S. (1992a). Blockmodels: * Interpretation and evaluation. Social Networks, 14, 5-–61. * * </para><para> * The order of the vertex ids in the generated graph corresponds to * the \p block_sizes argument. * * \param graph The output graph. This should be a pointer to an * uninitialized graph. * \param n Number of vertices. * \param pref_matrix The matrix giving the Bernoulli rates. * This is a KxK matrix, where K is the number of groups. * The probability of creating an edge between vertices from * groups i and j is given by element (i,j). * \param block_sizes An integer vector giving the number of * vertices in each group. * \param directed Boolean, whether to create a directed graph. If * this argument is false, then \p pref_matrix must be symmetric. * \param loops Boolean, whether to create self-loops. * \return Error code. * * Time complexity: O(|V|+|E|+K^2), where |V| is the number of * vertices, |E| is the number of edges, and K is the number of * groups. * * \sa \ref igraph_erdos_renyi_game() for a simple Bernoulli graph. * */ int igraph_sbm_game(igraph_t *graph, igraph_integer_t n, const igraph_matrix_t *pref_matrix, const igraph_vector_int_t *block_sizes, igraph_bool_t directed, igraph_bool_t loops) { long int no_blocks = igraph_matrix_nrow(pref_matrix); long int from, to, fromoff = 0; igraph_real_t minp, maxp; igraph_vector_t edges; /* ------------------------------------------------------------ */ /* Check arguments */ /* ------------------------------------------------------------ */ if (igraph_matrix_ncol(pref_matrix) != no_blocks) { IGRAPH_ERROR("Preference matrix is not square.", IGRAPH_NONSQUARE); } if (no_blocks > 0) { igraph_matrix_minmax(pref_matrix, &minp, &maxp); if (minp < 0 || maxp > 1) { IGRAPH_ERROR("Connection probabilities must be in [0,1].", IGRAPH_EINVAL); } } if (!directed && !igraph_matrix_is_symmetric(pref_matrix)) { IGRAPH_ERROR("Preference matrix must be symmetric for undirected graphs.", IGRAPH_EINVAL); } if (igraph_vector_int_size(block_sizes) != no_blocks) { IGRAPH_ERRORF("Block size vector length (%ld) does not agree with " "preference matrix size (%ld).", IGRAPH_EINVAL, igraph_vector_int_size(block_sizes), no_blocks); } if (no_blocks > 0) { if (igraph_vector_int_min(block_sizes) < 0) { IGRAPH_ERRORF("Block sizes must be non-negative, but got %" IGRAPH_PRId ".", IGRAPH_EINVAL, igraph_vector_int_min(block_sizes)); } } if (igraph_vector_int_sum(block_sizes) != n) { IGRAPH_ERRORF("Sum of the block sizes (%" IGRAPH_PRId ") must equal the number of vertices (%" IGRAPH_PRId ").", IGRAPH_EINVAL, igraph_vector_int_sum(block_sizes), n); } /* Since the sum of the block sizes should equal the number of vertices, * and the block sizes are non-negative, the number of vertices is * guaranteed to be non-negative. This shouldn't be checked separately. */ IGRAPH_VECTOR_INIT_FINALLY(&edges, 0); RNG_BEGIN(); for (from = 0; from < no_blocks; from++) { double fromsize = VECTOR(*block_sizes)[from]; long int start = directed ? 0 : from; long int i, tooff = 0; IGRAPH_ALLOW_INTERRUPTION(); for (i = 0; i < start; i++) { tooff += VECTOR(*block_sizes)[i]; } for (to = start; to < no_blocks; to++) { double tosize = VECTOR(*block_sizes)[to]; igraph_real_t prob = MATRIX(*pref_matrix, from, to); double maxedges, last = RNG_GEOM(prob); if (directed && loops) { maxedges = fromsize * tosize; while (last < maxedges) { long int vto = floor(last / fromsize); long int vfrom = last - (igraph_real_t)vto * fromsize; igraph_vector_push_back(&edges, fromoff + vfrom); igraph_vector_push_back(&edges, tooff + vto); last += RNG_GEOM(prob); last += 1; } } else if (directed && !loops && from != to) { maxedges = fromsize * tosize; while (last < maxedges) { long int vto = floor(last / fromsize); long int vfrom = last - (igraph_real_t)vto * fromsize; igraph_vector_push_back(&edges, fromoff + vfrom); igraph_vector_push_back(&edges, tooff + vto); last += RNG_GEOM(prob); last += 1; } } else if (directed && !loops && from == to) { maxedges = fromsize * (fromsize - 1); while (last < maxedges) { long int vto = floor(last / fromsize); long int vfrom = last - (igraph_real_t)vto * fromsize; if (vfrom == vto) { vto = fromsize - 1; } igraph_vector_push_back(&edges, fromoff + vfrom); igraph_vector_push_back(&edges, tooff + vto); last += RNG_GEOM(prob); last += 1; } } else if (!directed && loops && from != to) { maxedges = fromsize * tosize; while (last < maxedges) { long int vto = floor(last / fromsize); long int vfrom = last - (igraph_real_t)vto * fromsize; igraph_vector_push_back(&edges, fromoff + vfrom); igraph_vector_push_back(&edges, tooff + vto); last += RNG_GEOM(prob); last += 1; } } else if (!directed && loops && from == to) { maxedges = fromsize * (fromsize + 1) / 2.0; while (last < maxedges) { long int vto = floor((sqrt(8 * last + 1) - 1) / 2); long int vfrom = last - (((igraph_real_t)vto) * (vto + 1)) / 2; igraph_vector_push_back(&edges, fromoff + vfrom); igraph_vector_push_back(&edges, tooff + vto); last += RNG_GEOM(prob); last += 1; } } else if (!directed && !loops && from != to) { maxedges = fromsize * tosize; while (last < maxedges) { long int vto = floor(last / fromsize); long int vfrom = last - (igraph_real_t)vto * fromsize; igraph_vector_push_back(&edges, fromoff + vfrom); igraph_vector_push_back(&edges, tooff + vto); last += RNG_GEOM(prob); last += 1; } } else { /*!directed && !loops && from==to */ maxedges = fromsize * (fromsize - 1) / 2.0; while (last < maxedges) { long int vto = floor((sqrt(8 * last + 1) + 1) / 2); long int vfrom = last - (((igraph_real_t)vto) * (vto - 1)) / 2; igraph_vector_push_back(&edges, fromoff + vfrom); igraph_vector_push_back(&edges, tooff + vto); last += RNG_GEOM(prob); last += 1; } } tooff += tosize; } fromoff += fromsize; } RNG_END(); igraph_create(graph, &edges, n, directed); igraph_vector_destroy(&edges); IGRAPH_FINALLY_CLEAN(1); return IGRAPH_SUCCESS; } /** * \function igraph_hsbm_game * \brief Hierarchical stochastic block model. * * The function generates a random graph according to the hierarchical * stochastic block model. * * \param graph The generated graph is stored here. * \param n The number of vertices in the graph. * \param m The number of vertices per block. n/m must be integer. * \param rho The fraction of vertices per cluster, * within a block. Must sum up to 1, and rho * m must be integer * for all elements of rho. * \param C A square, symmetric numeric matrix, the Bernoulli rates for * the clusters within a block. Its size must mach the size of the * \code{rho} vector. * \param p The Bernoulli rate of connections between * vertices in different blocks. * \return Error code. * * \sa \ref igraph_sbm_game() for the classic stochastic block model, * \ref igraph_hsbm_list_game() for a more general version. */ int igraph_hsbm_game(igraph_t *graph, igraph_integer_t n, igraph_integer_t m, const igraph_vector_t *rho, const igraph_matrix_t *C, igraph_real_t p) { int b, i, k = igraph_vector_size(rho); igraph_vector_t csizes; igraph_real_t sq_dbl_epsilon = sqrt(DBL_EPSILON); int no_blocks = n / m; igraph_vector_t edges; int offset = 0; if (n < 1) { IGRAPH_ERROR("`n' must be positive for HSBM", IGRAPH_EINVAL); } if (m < 1) { IGRAPH_ERROR("`m' must be positive for HSBM", IGRAPH_EINVAL); } if ((long) n % (long) m) { IGRAPH_ERROR("`n' must be a multiple of `m' for HSBM", IGRAPH_EINVAL); } if (!igraph_vector_isininterval(rho, 0, 1)) { IGRAPH_ERROR("`rho' must be between zero and one for HSBM", IGRAPH_EINVAL); } if (igraph_matrix_min(C) < 0 || igraph_matrix_max(C) > 1) { IGRAPH_ERROR("`C' must be between zero and one for HSBM", IGRAPH_EINVAL); } if (fabs(igraph_vector_sum(rho) - 1.0) > sq_dbl_epsilon) { IGRAPH_ERROR("`rho' must sum up to 1 for HSBM", IGRAPH_EINVAL); } if (igraph_matrix_nrow(C) != k || igraph_matrix_ncol(C) != k) { IGRAPH_ERROR("`C' dimensions must match `rho' dimensions in HSBM", IGRAPH_EINVAL); } if (!igraph_matrix_is_symmetric(C)) { IGRAPH_ERROR("`C' must be a symmetric matrix", IGRAPH_EINVAL); } if (p < 0 || p > 1) { IGRAPH_ERROR("`p' must be a probability for HSBM", IGRAPH_EINVAL); } for (i = 0; i < k; i++) { igraph_real_t s = VECTOR(*rho)[i] * m; if (fabs(round(s) - s) > sq_dbl_epsilon) { IGRAPH_ERROR("`rho' * `m' is not integer in HSBM", IGRAPH_EINVAL); } } IGRAPH_VECTOR_INIT_FINALLY(&csizes, k); for (i = 0; i < k; i++) { VECTOR(csizes)[i] = round(VECTOR(*rho)[i] * m); } IGRAPH_VECTOR_INIT_FINALLY(&edges, 0); RNG_BEGIN(); /* Block models first */ for (b = 0; b < no_blocks; b++) { int from, to, fromoff = 0; for (from = 0; from < k; from++) { int fromsize = VECTOR(csizes)[from]; int i, tooff = 0; for (i = 0; i < from; i++) { tooff += VECTOR(csizes)[i]; } for (to = from; to < k; to++) { int tosize = VECTOR(csizes)[to]; igraph_real_t prob = MATRIX(*C, from, to); igraph_real_t maxedges; igraph_real_t last = RNG_GEOM(prob); if (from != to) { maxedges = fromsize * tosize; while (last < maxedges) { int vto = floor(last / fromsize); int vfrom = last - (igraph_real_t)vto * fromsize; igraph_vector_push_back(&edges, offset + fromoff + vfrom); igraph_vector_push_back(&edges, offset + tooff + vto); last += RNG_GEOM(prob); last += 1; } } else { /* from==to */ maxedges = fromsize * (fromsize - 1) / 2.0; while (last < maxedges) { int vto = floor((sqrt(8 * last + 1) + 1) / 2); int vfrom = last - (((igraph_real_t)vto) * (vto - 1)) / 2; igraph_vector_push_back(&edges, offset + fromoff + vfrom); igraph_vector_push_back(&edges, offset + tooff + vto); last += RNG_GEOM(prob); last += 1; } } tooff += tosize; } fromoff += fromsize; } offset += m; } /* And now the rest, if not a special case */ if (p == 1) { int fromoff = 0, tooff = m; for (b = 0; b < no_blocks; b++) { igraph_real_t fromsize = m; igraph_real_t tosize = n - tooff; int from, to; for (from = 0; from < fromsize; from++) { for (to = 0; to < tosize; to++) { igraph_vector_push_back(&edges, fromoff + from); igraph_vector_push_back(&edges, tooff + to); } } fromoff += m; tooff += m; } } else if (p > 0) { int fromoff = 0, tooff = m; for (b = 0; b < no_blocks; b++) { igraph_real_t fromsize = m; igraph_real_t tosize = n - tooff; igraph_real_t maxedges = fromsize * tosize; igraph_real_t last = RNG_GEOM(p); while (last < maxedges) { int vto = floor(last / fromsize); int vfrom = last - (igraph_real_t) vto * fromsize; igraph_vector_push_back(&edges, fromoff + vfrom); igraph_vector_push_back(&edges, tooff + vto); last += RNG_GEOM(p); last += 1; } fromoff += m; tooff += m; } } RNG_END(); igraph_create(graph, &edges, n, /*directed=*/ 0); igraph_vector_destroy(&edges); igraph_vector_destroy(&csizes); IGRAPH_FINALLY_CLEAN(2); return 0; } /** * \function igraph_hsbm_list_game * \brief Hierarchical stochastic block model, more general version. * * The function generates a random graph according to the hierarchical * stochastic block model. * * \param graph The generated graph is stored here. * \param n The number of vertices in the graph. * \param mlist An integer vector of block sizes. * \param rholist A list of rho vectors (\c igraph_vector_t objects), one * for each block. * \param Clist A list of square matrices (\c igraph_matrix_t objects), * one for each block, giving the Bernoulli rates of connections * within the block. * \param p The Bernoulli rate of connections between * vertices in different blocks. * \return Error code. * * \sa \ref igraph_sbm_game() for the classic stochastic block model, * \ref igraph_hsbm_game() for a simpler general version. */ int igraph_hsbm_list_game(igraph_t *graph, igraph_integer_t n, const igraph_vector_int_t *mlist, const igraph_vector_ptr_t *rholist, const igraph_vector_ptr_t *Clist, igraph_real_t p) { int i, no_blocks = igraph_vector_ptr_size(rholist); igraph_real_t sq_dbl_epsilon = sqrt(DBL_EPSILON); igraph_vector_t csizes, edges; int b, offset = 0; if (n < 1) { IGRAPH_ERROR("`n' must be positive for HSBM", IGRAPH_EINVAL); } if (no_blocks == 0) { IGRAPH_ERROR("`rholist' empty for HSBM", IGRAPH_EINVAL); } if (igraph_vector_ptr_size(Clist) != no_blocks && igraph_vector_int_size(mlist) != no_blocks) { IGRAPH_ERROR("`rholist' must have same length as `Clist' and `m' " "for HSBM", IGRAPH_EINVAL); } if (p < 0 || p > 1) { IGRAPH_ERROR("`p' must be a probability for HSBM", IGRAPH_EINVAL); } /* Checks for m's */ if (igraph_vector_int_sum(mlist) != n) { IGRAPH_ERROR("`m' must sum up to `n' for HSBM", IGRAPH_EINVAL); } if (igraph_vector_int_min(mlist) < 1) { IGRAPH_ERROR("`m' must be positive for HSBM", IGRAPH_EINVAL); } /* Checks for the rhos */ for (i = 0; i < no_blocks; i++) { const igraph_vector_t *rho = VECTOR(*rholist)[i]; if (!igraph_vector_isininterval(rho, 0, 1)) { IGRAPH_ERROR("`rho' must be between zero and one for HSBM", IGRAPH_EINVAL); } if (fabs(igraph_vector_sum(rho) - 1.0) > sq_dbl_epsilon) { IGRAPH_ERROR("`rho' must sum up to 1 for HSBM", IGRAPH_EINVAL); } } /* Checks for the Cs */ for (i = 0; i < no_blocks; i++) { const igraph_matrix_t *C = VECTOR(*Clist)[i]; if (igraph_matrix_min(C) < 0 || igraph_matrix_max(C) > 1) { IGRAPH_ERROR("`C' must be between zero and one for HSBM", IGRAPH_EINVAL); } if (!igraph_matrix_is_symmetric(C)) { IGRAPH_ERROR("`C' must be a symmetric matrix", IGRAPH_EINVAL); } } /* Check that C and rho sizes match */ for (i = 0; i < no_blocks; i++) { const igraph_vector_t *rho = VECTOR(*rholist)[i]; const igraph_matrix_t *C = VECTOR(*Clist)[i]; int k = igraph_vector_size(rho); if (igraph_matrix_nrow(C) != k || igraph_matrix_ncol(C) != k) { IGRAPH_ERROR("`C' dimensions must match `rho' dimensions in HSBM", IGRAPH_EINVAL); } } /* Check that rho * m is integer */ for (i = 0; i < no_blocks; i++) { const igraph_vector_t *rho = VECTOR(*rholist)[i]; igraph_real_t m = VECTOR(*mlist)[i]; int j, k = igraph_vector_size(rho); for (j = 0; j < k; j++) { igraph_real_t s = VECTOR(*rho)[j] * m; if (fabs(round(s) - s) > sq_dbl_epsilon) { IGRAPH_ERROR("`rho' * `m' is not integer in HSBM", IGRAPH_EINVAL); } } } IGRAPH_VECTOR_INIT_FINALLY(&csizes, 0); IGRAPH_VECTOR_INIT_FINALLY(&edges, 0); RNG_BEGIN(); /* Block models first */ for (b = 0; b < no_blocks; b++) { int from, to, fromoff = 0; const igraph_vector_t *rho = VECTOR(*rholist)[b]; const igraph_matrix_t *C = VECTOR(*Clist)[b]; igraph_real_t m = VECTOR(*mlist)[b]; int k = igraph_vector_size(rho); igraph_vector_resize(&csizes, k); for (i = 0; i < k; i++) { VECTOR(csizes)[i] = round(VECTOR(*rho)[i] * m); } for (from = 0; from < k; from++) { int fromsize = VECTOR(csizes)[from]; int i, tooff = 0; for (i = 0; i < from; i++) { tooff += VECTOR(csizes)[i]; } for (to = from; to < k; to++) { int tosize = VECTOR(csizes)[to]; igraph_real_t prob = MATRIX(*C, from, to); igraph_real_t maxedges; igraph_real_t last = RNG_GEOM(prob); if (from != to) { maxedges = fromsize * tosize; while (last < maxedges) { int vto = floor(last / fromsize); int vfrom = last - (igraph_real_t)vto * fromsize; igraph_vector_push_back(&edges, offset + fromoff + vfrom); igraph_vector_push_back(&edges, offset + tooff + vto); last += RNG_GEOM(prob); last += 1; } } else { /* from==to */ maxedges = fromsize * (fromsize - 1) / 2.0; while (last < maxedges) { int vto = floor((sqrt(8 * last + 1) + 1) / 2); int vfrom = last - (((igraph_real_t)vto) * (vto - 1)) / 2; igraph_vector_push_back(&edges, offset + fromoff + vfrom); igraph_vector_push_back(&edges, offset + tooff + vto); last += RNG_GEOM(prob); last += 1; } } tooff += tosize; } fromoff += fromsize; } offset += m; } /* And now the rest, if not a special case */ if (p == 1) { int fromoff = 0, tooff = VECTOR(*mlist)[0]; for (b = 0; b < no_blocks; b++) { igraph_real_t fromsize = VECTOR(*mlist)[b]; igraph_real_t tosize = n - tooff; int from, to; for (from = 0; from < fromsize; from++) { for (to = 0; to < tosize; to++) { igraph_vector_push_back(&edges, fromoff + from); igraph_vector_push_back(&edges, tooff + to); } } fromoff += fromsize; if (b + 1 < no_blocks) { tooff += VECTOR(*mlist)[b + 1]; } } } else if (p > 0) { int fromoff = 0, tooff = VECTOR(*mlist)[0]; for (b = 0; b < no_blocks; b++) { igraph_real_t fromsize = VECTOR(*mlist)[b]; igraph_real_t tosize = n - tooff; igraph_real_t maxedges = fromsize * tosize; igraph_real_t last = RNG_GEOM(p); while (last < maxedges) { int vto = floor(last / fromsize); int vfrom = last - (igraph_real_t) vto * fromsize; igraph_vector_push_back(&edges, fromoff + vfrom); igraph_vector_push_back(&edges, tooff + vto); last += RNG_GEOM(p); last += 1; } fromoff += fromsize; if (b + 1 < no_blocks) { tooff += VECTOR(*mlist)[b + 1]; } } } RNG_END(); igraph_create(graph, &edges, n, /*directed=*/ 0); igraph_vector_destroy(&edges); igraph_vector_destroy(&csizes); IGRAPH_FINALLY_CLEAN(2); return 0; }
gpl-2.0
annegrundhoefer/mark
wp-content/plugins/booked/includes/profiles.php
2040
<?php $profile_page = get_option('booked_profile_page'); if ($profile_page): if(!class_exists('booked_profiles')) { class booked_profiles { public function __construct() { add_action('init', array(&$this,'rewrite_add_rewrites')); add_action('the_content', array(&$this,'display_profile_markup')); add_filter('wp_title', array(&$this,'wp_profile_title'),10,2); register_activation_hook( __FILE__, array(&$this, 'rewrite_activation') ); } public function rewrite_add_rewrites(){ $profile_page = get_option('booked_profile_page'); if ($profile_page): $profile_page_data = get_post($profile_page, ARRAY_A); $profile_slug = $profile_page_data['post_name']; else : $profile_slug = 'profile'; endif; add_rewrite_tag( '%profile%', '([^&]+)' ); add_rewrite_rule( '^'.$profile_slug.'/([^/]*)/?', 'index.php?profile=$matches[1]', 'top' ); } public function rewrite_activation(){ $this->rewrite_add_rewrites(); flush_rewrite_rules(); } public function display_profile_markup($content){ $profile_page = get_option('booked_profile_page'); if(is_page($profile_page) || get_query_var('profile')): if (is_user_logged_in() || get_query_var('profile')): ob_start(); $this->display_profile_page_content(); $content = ob_get_clean(); return $content; else : return $content; endif; endif; return $content; } public function display_profile_page_content() { require(BOOKED_PLUGIN_TEMPLATES_DIR . 'profile.php'); } public function wp_profile_title( $title, $sep = false ) { if (get_query_var('profile')): echo get_query_var('profile'); $user_data = get_user_by( 'id', get_query_var('profile') ); $title = sprintf(__("%s's Profile","booked"), $user_data->data->display_name) . ' - '; return $title; endif; return $title; } } new booked_profiles(); } endif;
gpl-2.0
bernds/UAE
src/targets/t-ascii.h
273
/* * UAE - The Un*x Amiga Emulator * * Target specific stuff, ncurses version * * Copyright 1997 Bernd Schmidt */ #define TARGET_NAME "curses" #define OPTIONSFILENAME ".uaerc" #define OPTIONS_IN_HOME #define DEFPRTNAME "lpr" #define DEFSERNAME "/dev/ttyS1"
gpl-2.0
serghei/kde3-kdeutils
khexedit/lib/kbordercoltextexport.cpp
1464
/*************************************************************************** kbordercoltextexport.cpp - description ------------------- begin : Sam Aug 30 2003 copyright : (C) 2003 by Friedrich W. H. Kossebau email : [email protected] ***************************************************************************/ /*************************************************************************** * * * This library is free software; you can redistribute it and/or * * modify it under the terms of the GNU Library General Public * * License version 2 as published by the Free Software Foundation. * * * ***************************************************************************/ // qt specific #include <qstring.h> // lib specific #include "kbordercoltextexport.h" using namespace KHE; static const uint BorderColumnTEWidth = 3; int KBorderColTextExport::charsPerLine() const { return BorderColumnTEWidth; } void KBorderColTextExport::printFirstLine( QString &T, int /*Line*/ ) const { print( T ); } void KBorderColTextExport::printNextLine( QString &T ) const { print( T ); } void KBorderColTextExport::print( QString &T ) const { T.append( " | " ); }
gpl-2.0
loveyoupeng/rt
modules/web/src/main/native/Source/WebCore/platform/graphics/efl/GraphicsContext3DPrivate.cpp
8176
/* Copyright (C) 2012 Samsung Electronics Copyright (C) 2012 Intel Corporation. All rights reserved. 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 "config.h" #include "GraphicsContext3DPrivate.h" #include "HostWindow.h" #include "NotImplemented.h" namespace WebCore { PassOwnPtr<GraphicsContext3DPrivate> GraphicsContext3DPrivate::create(GraphicsContext3D* context, HostWindow* hostWindow) { OwnPtr<GraphicsContext3DPrivate> platformLayer = adoptPtr(new GraphicsContext3DPrivate(context, hostWindow)); if (platformLayer && platformLayer->initialize()) return platformLayer.release(); return nullptr; } GraphicsContext3DPrivate::GraphicsContext3DPrivate(GraphicsContext3D* context, HostWindow* hostWindow) : m_context(context) , m_hostWindow(hostWindow) { } bool GraphicsContext3DPrivate::initialize() { if (m_context->m_renderStyle == GraphicsContext3D::RenderDirectlyToHostWindow) return false; if (m_hostWindow && m_hostWindow->platformPageClient()) { // FIXME: Implement this code path for WebKit1. // Get Evas object from platformPageClient and set EvasGL related members. return false; } m_offScreenContext = GLPlatformContext::createContext(m_context->m_renderStyle); if (!m_offScreenContext) return false; if (m_context->m_renderStyle == GraphicsContext3D::RenderOffscreen) { m_offScreenSurface = GLPlatformSurface::createOffScreenSurface(); if (!m_offScreenSurface) return false; if (!m_offScreenContext->initialize(m_offScreenSurface.get())) return false; if (!makeContextCurrent()) return false; #if USE(GRAPHICS_SURFACE) m_surfaceOperation = CreateSurface; #endif } return true; } GraphicsContext3DPrivate::~GraphicsContext3DPrivate() { releaseResources(); } void GraphicsContext3DPrivate::releaseResources() { if (m_context->m_renderStyle == GraphicsContext3D::RenderToCurrentGLContext) return; // Release the current context and drawable only after destroying any associated gl resources. #if USE(GRAPHICS_SURFACE) if (m_previousGraphicsSurface) m_previousGraphicsSurface = nullptr; if (m_graphicsSurface) m_graphicsSurface = nullptr; m_surfaceHandle = GraphicsSurfaceToken(); #endif if (m_offScreenSurface) m_offScreenSurface->destroy(); if (m_offScreenContext) { m_offScreenContext->destroy(); m_offScreenContext->releaseCurrent(); } } void GraphicsContext3DPrivate::setContextLostCallback(PassOwnPtr<GraphicsContext3D::ContextLostCallback> callBack) { m_contextLostCallback = callBack; } PlatformGraphicsContext3D GraphicsContext3DPrivate::platformGraphicsContext3D() const { return m_offScreenContext->handle(); } bool GraphicsContext3DPrivate::makeContextCurrent() const { bool success = m_offScreenContext->makeCurrent(m_offScreenSurface.get()); if (!m_offScreenContext->isValid()) { // FIXME: Restore context if (m_contextLostCallback) m_contextLostCallback->onContextLost(); return false; } return success; } bool GraphicsContext3DPrivate::prepareBuffer() const { if (!makeContextCurrent()) return false; m_context->markLayerComposited(); if (m_context->m_attrs.antialias) { bool enableScissorTest = false; int width = m_context->m_currentWidth; int height = m_context->m_currentHeight; // We should copy the full buffer, and not respect the current scissor bounds. // FIXME: It would be more efficient to track the state of the scissor test. if (m_context->isEnabled(GraphicsContext3D::SCISSOR_TEST)) { enableScissorTest = true; m_context->disable(GraphicsContext3D::SCISSOR_TEST); } glBindFramebuffer(Extensions3D::READ_FRAMEBUFFER, m_context->m_multisampleFBO); glBindFramebuffer(Extensions3D::DRAW_FRAMEBUFFER, m_context->m_fbo); // Use NEAREST as no scale is performed during the blit. m_context->getExtensions()->blitFramebuffer(0, 0, width, height, 0, 0, width, height, GraphicsContext3D::COLOR_BUFFER_BIT, GraphicsContext3D::NEAREST); if (enableScissorTest) m_context->enable(GraphicsContext3D::SCISSOR_TEST); glBindFramebuffer(GL_FRAMEBUFFER, m_context->m_state.boundFBO); } return true; } #if USE(TEXTURE_MAPPER_GL) void GraphicsContext3DPrivate::paintToTextureMapper(TextureMapper*, const FloatRect& /* target */, const TransformationMatrix&, float /* opacity */) { notImplemented(); } #endif #if USE(GRAPHICS_SURFACE) void GraphicsContext3DPrivate::createGraphicsSurface() { static PendingSurfaceOperation pendingOperation = DeletePreviousSurface | Resize | CreateSurface; if (!(m_surfaceOperation & pendingOperation)) return; if (m_surfaceOperation & DeletePreviousSurface) { m_previousGraphicsSurface = nullptr; m_surfaceOperation &= ~DeletePreviousSurface; } if (!(m_surfaceOperation & pendingOperation)) return; // Don't release current graphics surface until we have prepared surface // with requested size. This is to avoid flashing during resize. if (m_surfaceOperation & Resize) { m_previousGraphicsSurface = m_graphicsSurface; m_surfaceOperation &= ~Resize; m_surfaceOperation |= DeletePreviousSurface; m_size = IntSize(m_context->m_currentWidth, m_context->m_currentHeight); } else m_surfaceOperation &= ~CreateSurface; m_targetRect = IntRect(IntPoint(), m_size); if (m_size.isEmpty()) { if (m_graphicsSurface) { m_graphicsSurface = nullptr; m_surfaceHandle = GraphicsSurfaceToken(); makeContextCurrent(); } return; } m_offScreenContext->releaseCurrent(); GraphicsSurface::Flags flags = GraphicsSurface::SupportsTextureTarget | GraphicsSurface::SupportsSharing; if (m_context->m_attrs.alpha) flags |= GraphicsSurface::SupportsAlpha; m_graphicsSurface = GraphicsSurface::create(m_size, flags, m_offScreenContext->handle()); if (!m_graphicsSurface) m_surfaceHandle = GraphicsSurfaceToken(); else m_surfaceHandle = GraphicsSurfaceToken(m_graphicsSurface->exportToken()); makeContextCurrent(); } void GraphicsContext3DPrivate::didResizeCanvas(const IntSize& size) { if (m_surfaceOperation & CreateSurface) { m_size = size; createGraphicsSurface(); return; } m_surfaceOperation |= Resize; } uint32_t GraphicsContext3DPrivate::copyToGraphicsSurface() { createGraphicsSurface(); if (!m_graphicsSurface || m_context->m_layerComposited || !prepareBuffer()) return 0; m_graphicsSurface->copyFromTexture(m_context->m_texture, m_targetRect); makeContextCurrent(); return m_graphicsSurface->frontBuffer(); } GraphicsSurfaceToken GraphicsContext3DPrivate::graphicsSurfaceToken() const { return m_surfaceHandle; } IntSize GraphicsContext3DPrivate::platformLayerSize() const { return m_size; } GraphicsSurface::Flags GraphicsContext3DPrivate::graphicsSurfaceFlags() const { if (m_graphicsSurface) return m_graphicsSurface->flags(); return TextureMapperPlatformLayer::graphicsSurfaceFlags(); } #endif } // namespace WebCore
gpl-2.0
fluffyfreak/oculusvr_samples
common_src/renderer/Font.hpp
1188
#ifndef FONT_HPP #define FONT_HPP #include "renderer/OpenGL.hpp" #include <string> class Texture; class Font { public: Font(const char *texture); ~Font(); void SetColor(const Math::Vector4f &color) { m_color = color; } void SetPosition(const Math::Vector3f &position) { m_position = position; } void SetScale(const Math::Vector2f &scale) { m_scale = scale; } void drawText(const std::string &text); void drawText(const std::string &text, float x, float y, float z, float r, float g, float b, float a); void drawText(const std::string &text, const Math::Vector3f &position, const Math::Vector4f &color=Math::Vector4f(1.f, 1.f, 1.f, 1.f)); void drawText(const std::string &text, float x, float y, float z=-1.0f); private: void renderAt(const Math::Vector3f &pos, int w, int h, int uo, int vo, const Math::Vector4f &color); Texture* m_texture; Math::Vector2f m_scale; Math::Vector3f m_position; Math::Vector4f m_color; // OpenGL thingamabobs GLuint m_fontVertexArray; // VAO GLuint m_vertexBuffer; // VBO GLuint m_indexBuffer; // IBO GLuint m_vertexPosAttr; // attribute location }; #endif
gpl-2.0
rockly703/busybox
docs/busybox.net/BusyBox.html
160507
<?xml version="1.0" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>BusyBox - The Swiss Army Knife of Embedded Linux</title> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <link rev="made" href="mailto:[email protected]" /> </head> <body style="background-color: white"> <!-- INDEX BEGIN --> <div name="index"> <p><a name="__index__"></a></p> <!-- <ul> <li><a href="#name">NAME</a></li> <li><a href="#syntax">SYNTAX</a></li> <li><a href="#description">DESCRIPTION</a></li> <li><a href="#usage">USAGE</a></li> <li><a href="#common_options">COMMON OPTIONS</a></li> <li><a href="#commands">COMMANDS</a></li> <li><a href="#command_descriptions">COMMAND DESCRIPTIONS</a></li> <li><a href="#libc_nss">LIBC NSS</a></li> <li><a href="#maintainer">MAINTAINER</a></li> <li><a href="#authors">AUTHORS</a></li> </ul> --> </div> <!-- INDEX END --> <p> </p> <h1><a name="name">NAME</a></h1> <p>BusyBox - The Swiss Army Knife of Embedded Linux</p> <p> </p> <hr /> <h1><a name="syntax">SYNTAX</a></h1> <pre> busybox &lt;applet&gt; [arguments...] # or</pre> <pre> &lt;applet&gt; [arguments...] # if symlinked</pre> <p> </p> <hr /> <h1><a name="description">DESCRIPTION</a></h1> <p>BusyBox combines tiny versions of many common UNIX utilities into a single small executable. It provides minimalist replacements for most of the utilities you usually find in GNU coreutils, util-linux, etc. The utilities in BusyBox generally have fewer options than their full-featured GNU cousins; however, the options that are included provide the expected functionality and behave very much like their GNU counterparts.</p> <p>BusyBox has been written with size-optimization and limited resources in mind. It is also extremely modular so you can easily include or exclude commands (or features) at compile time. This makes it easy to customize your embedded systems. To create a working system, just add /dev, /etc, and a Linux kernel. BusyBox provides a fairly complete POSIX environment for any small or embedded system.</p> <p>BusyBox is extremely configurable. This allows you to include only the components you need, thereby reducing binary size. Run 'make config' or 'make menuconfig' to select the functionality that you wish to enable. Then run 'make' to compile BusyBox using your configuration.</p> <p>After the compile has finished, you should use 'make install' to install BusyBox. This will install the 'bin/busybox' binary, in the target directory specified by CONFIG_PREFIX. CONFIG_PREFIX can be set when configuring BusyBox, or you can specify an alternative location at install time (i.e., with a command line like 'make CONFIG_PREFIX=/tmp/foo install'). If you enabled any applet installation scheme (either as symlinks or hardlinks), these will also be installed in the location pointed to by CONFIG_PREFIX.</p> <p> </p> <hr /> <h1><a name="usage">USAGE</a></h1> <p>BusyBox is a multi-call binary. A multi-call binary is an executable program that performs the same job as more than one utility program. That means there is just a single BusyBox binary, but that single binary acts like a large number of utilities. This allows BusyBox to be smaller since all the built-in utility programs (we call them applets) can share code for many common operations.</p> <p>You can also invoke BusyBox by issuing a command as an argument on the command line. For example, entering</p> <pre> /bin/busybox ls</pre> <p>will also cause BusyBox to behave as 'ls'.</p> <p>Of course, adding '/bin/busybox' into every command would be painful. So most people will invoke BusyBox using links to the BusyBox binary.</p> <p>For example, entering</p> <pre> ln -s /bin/busybox ls ./ls</pre> <p>will cause BusyBox to behave as 'ls' (if the 'ls' command has been compiled into BusyBox). Generally speaking, you should never need to make all these links yourself, as the BusyBox build system will do this for you when you run the 'make install' command.</p> <p>If you invoke BusyBox with no arguments, it will provide you with a list of the applets that have been compiled into your BusyBox binary.</p> <p> </p> <hr /> <h1><a name="common_options">COMMON OPTIONS</a></h1> <p>Most BusyBox applets support the <strong>--help</strong> argument to provide a terse runtime description of their behavior. If the CONFIG_FEATURE_VERBOSE_USAGE option has been enabled, more detailed usage information will also be available.</p> <p> </p> <hr /> <h1><a name="commands">COMMANDS</a></h1> <p>Currently available applets include:</p> <pre> [, [[, acpid, add-shell, addgroup, adduser, adjtimex, arp, arping, ash, awk, base64, basename, beep, blkid, blockdev, bootchartd, brctl, bunzip2, bzcat, bzip2, cal, cat, catv, chat, chattr, chgrp, chmod, chown, chpasswd, chpst, chroot, chrt, chvt, cksum, clear, cmp, comm, conspy, cp, cpio, crond, crontab, cryptpw, cttyhack, cut, date, dc, dd, deallocvt, delgroup, deluser, depmod, devmem, df, dhcprelay, diff, dirname, dmesg, dnsd, dnsdomainname, dos2unix, du, dumpkmap, dumpleases, echo, ed, egrep, eject, env, envdir, envuidgid, ether-wake, expand, expr, fakeidentd, false, fbset, fbsplash, fdflush, fdformat, fdisk, fgconsole, fgrep, find, findfs, flock, fold, free, freeramdisk, fsck, fsck.minix, fstrim, fsync, ftpd, ftpget, ftpput, fuser, getopt, getty, grep, groups, gunzip, gzip, halt, hd, hdparm, head, hexdump, hostid, hostname, httpd, hush, hwclock, id, ifconfig, ifdown, ifenslave, ifplugd, ifup, inetd, init, insmod, install, ionice, iostat, ip, ipaddr, ipcalc, ipcrm, ipcs, iplink, iproute, iprule, iptunnel, kbd_mode, kill, killall, killall5, klogd, last, less, linux32, linux64, linuxrc, ln, loadfont, loadkmap, logger, login, logname, logread, losetup, lpd, lpq, lpr, ls, lsattr, lsmod, lsof, lspci, lsusb, lzcat, lzma, lzop, lzopcat, makedevs, makemime, man, md5sum, mdev, mesg, microcom, mkdir, mkdosfs, mke2fs, mkfifo, mkfs.ext2, mkfs.minix, mkfs.vfat, mknod, mkpasswd, mkswap, mktemp, modinfo, modprobe, more, mount, mountpoint, mpstat, mt, mv, nameif, nanddump, nandwrite, nbd-client, nc, netstat, nice, nmeter, nohup, nslookup, ntpd, od, openvt, passwd, patch, pgrep, pidof, ping, ping6, pipe_progress, pivot_root, pkill, pmap, popmaildir, poweroff, powertop, printenv, printf, ps, pscan, pstree, pwd, pwdx, raidautorun, rdate, rdev, readahead, readlink, readprofile, realpath, reboot, reformime, remove-shell, renice, reset, resize, rev, rm, rmdir, rmmod, route, rpm, rpm2cpio, rtcwake, run-parts, runlevel, runsv, runsvdir, rx, script, scriptreplay, sed, sendmail, seq, setarch, setconsole, setfont, setkeycodes, setlogcons, setserial, setsid, setuidgid, sh, sha1sum, sha256sum, sha3sum, sha512sum, showkey, slattach, sleep, smemcap, softlimit, sort, split, start-stop-daemon, stat, strings, stty, su, sulogin, sum, sv, svlogd, swapoff, swapon, switch_root, sync, sysctl, syslogd, tac, tail, tar, tcpsvd, tee, telnet, telnetd, test, tftp, tftpd, time, timeout, top, touch, tr, traceroute, traceroute6, true, tty, ttysize, tunctl, udhcpc, udhcpd, udpsvd, umount, uname, unexpand, uniq, unix2dos, unlzma, unlzop, unxz, unzip, uptime, users, usleep, uudecode, uuencode, vconfig, vi, vlock, volname, wall, watch, watchdog, wc, wget, which, who, whoami, whois, xargs, xz, xzcat, yes, zcat, zcip</pre> <p> </p> <hr /> <h1><a name="command_descriptions">COMMAND DESCRIPTIONS</a></h1> <dl> <dt><strong><a name="acpid" class="item"><strong>acpid</strong></a></strong></dt> <dd> <p>acpid [-df] [-c CONFDIR] [-l LOGFILE] [-a ACTIONFILE] [-M MAPFILE] [-e PROC_EVENT_FILE] [-p PIDFILE]</p> <p>Listen to ACPI events and spawn specific helpers on event arrival</p> <pre> -d Log to stderr, not log file (implies -f) -f Run in foreground -c DIR Config directory [/etc/acpi] -e FILE /proc event file [/proc/acpi/event] -l FILE Log file [/var/log/acpid.log] -p FILE Pid file [/var/run/acpid.pid] -a FILE Action file [/etc/acpid.conf] -M FILE Map file [/etc/acpi.map]</pre> <p>Accept and ignore compatibility options -g -m -s -S -v</p> </dd> <dt><strong><a name="add_shell" class="item"><strong>add-shell</strong></a></strong></dt> <dd> <p>add-shell SHELL...</p> <p>Add SHELLs to /etc/shells</p> </dd> <dt><strong><a name="addgroup" class="item"><strong>addgroup</strong></a></strong></dt> <dd> <p>addgroup [-g GID] [USER] GROUP</p> <p>Add a group or add a user to a group</p> <pre> -g GID Group id -S Create a system group</pre> </dd> <dt><strong><a name="adduser" class="item"><strong>adduser</strong></a></strong></dt> <dd> <p>adduser [OPTIONS] USER [GROUP]</p> <p>Create new user, or add USER to GROUP</p> <pre> -h DIR Home directory -g GECOS GECOS field -s SHELL Login shell -G GRP Add user to existing group -S Create a system user -D Don't assign a password -H Don't create home directory -u UID User id</pre> </dd> <dt><strong><a name="adjtimex" class="item"><strong>adjtimex</strong></a></strong></dt> <dd> <p>adjtimex [-q] [-o OFF] [-f FREQ] [-p TCONST] [-t TICK]</p> <p>Read and optionally set system timebase parameters. See <a href="#adjtimex"><code>adjtimex(2)</code></a></p> <pre> -q Quiet -o OFF Time offset, microseconds -f FREQ Frequency adjust, integer kernel units (65536 is 1ppm) (positive values make clock run faster) -t TICK Microseconds per tick, usually 10000 -p TCONST</pre> </dd> <dt><strong><a name="arp" class="item"><strong>arp</strong></a></strong></dt> <dd> <p><table cellspacing="0" cellpadding="0"><tr><td>arp <tr><td>[-vn]<td>[-H HWTYPE] [-i IF] -a [HOSTNAME] <tr><td>[-v]<td> [-i IF] -d HOSTNAME [pub] <tr><td>[-v]<td>[-H HWTYPE] [-i IF] -s HOSTNAME HWADDR [temp] <tr><td>[-v]<td>[-H HWTYPE] [-i IF] -s HOSTNAME HWADDR [netmask MASK] pub <tr><td>[-v]<td>[-H HWTYPE] [-i IF] -Ds HOSTNAME IFACE [netmask MASK] pub</table></p> <p>Manipulate ARP cache</p> <pre> -a Display (all) hosts -d Delete ARP entry -s Set new entry -v Verbose -n Don't resolve names -i IF Network interface -D Read HWADDR from IFACE -A,-p AF Protocol family -H HWTYPE Hardware address type</pre> </dd> <dt><strong><a name="arping" class="item"><strong>arping</strong></a></strong></dt> <dd> <p>arping [-fqbDUA] [-c CNT] [-w TIMEOUT] [-I IFACE] [-s SRC_IP] DST_IP</p> <p>Send ARP requests/replies</p> <pre> -f Quit on first ARP reply -q Quiet -b Keep broadcasting, don't go unicast -D Duplicated address detection mode -U Unsolicited ARP mode, update your neighbors -A ARP answer mode, update your neighbors -c N Stop after sending N ARP requests -w TIMEOUT Time to wait for ARP reply, seconds -I IFACE Interface to use (default eth0) -s SRC_IP Sender IP address DST_IP Target IP address</pre> </dd> <dt><strong><a name="ash" class="item"><strong>ash</strong></a></strong></dt> <dd> <p>ash [-/+OPTIONS] [-/+o OPT]... [-c 'SCRIPT' [ARG0 [ARGS]] / FILE [ARGS]]</p> <p>Unix shell interpreter</p> </dd> <dt><strong><a name="awk" class="item"><strong>awk</strong></a></strong></dt> <dd> <p>awk [OPTIONS] [AWK_PROGRAM] [FILE]...</p> <pre> -v VAR=VAL Set variable -F SEP Use SEP as field separator -f FILE Read program from FILE -e AWK_PROGRAM</pre> </dd> <dt><strong><a name="base64" class="item"><strong>base64</strong></a></strong></dt> <dd> <p>base64 [-d] [FILE]</p> <p><table cellspacing="0" cellpadding="0"><tr><td>Base64 encode or decode FILE to standard output <tr><td><td>-d<td>Decode data</table></p> </dd> <dt><strong><a name="basename" class="item"><strong>basename</strong></a></strong></dt> <dd> <p>basename FILE [SUFFIX]</p> <p>Strip directory path and .SUFFIX from FILE</p> </dd> <dt><strong><a name="beep" class="item"><strong>beep</strong></a></strong></dt> <dd> <p>beep -f FREQ -l LEN -d DELAY -r COUNT -n</p> <pre> -f Frequency in Hz -l Length in ms -d Delay in ms -r Repetitions -n Start new tone</pre> </dd> <dt><strong><a name="blkid" class="item"><strong>blkid</strong></a></strong></dt> <dd> <p>blkid [BLOCKDEV]...</p> <p>Print UUIDs of all filesystems</p> </dd> <dt><strong><a name="blockdev" class="item"><strong>blockdev</strong></a></strong></dt> <dd> <p>blockdev OPTION BLOCKDEV</p> <pre> --setro Set ro --setrw Set rw --getro Get ro --getss Get sector size --getbsz Get block size --setbsz BYTES Set block size --getsz Get device size in 512-byte sectors --getsize64 Get device size in bytes --flushbufs Flush buffers --rereadpt Reread partition table</pre> </dd> <dt><strong><a name="bootchartd" class="item"><strong>bootchartd</strong></a></strong></dt> <dd> <p>bootchartd start [PROG ARGS]|stop|init</p> <p>Create /var/log/bootchart.tgz with boot chart data</p> <p>start: start background logging; with PROG, run PROG, then kill logging with USR1 stop: send USR1 to all bootchartd processes init: start background logging; stop when getty/xdm is seen (for init scripts) Under PID 1: as init, then exec $bootchart_init, /init, /sbin/init</p> </dd> <dt><strong><a name="brctl" class="item"><strong>brctl</strong></a></strong></dt> <dd> <p>brctl COMMAND [BRIDGE [INTERFACE]]</p> <p>Manage ethernet bridges</p> <p>Commands:</p> <pre> show Show a list of bridges addbr BRIDGE Create BRIDGE delbr BRIDGE Delete BRIDGE addif BRIDGE IFACE Add IFACE to BRIDGE delif BRIDGE IFACE Delete IFACE from BRIDGE setageing BRIDGE TIME Set ageing time setfd BRIDGE TIME Set bridge forward delay sethello BRIDGE TIME Set hello time setmaxage BRIDGE TIME Set max message age setpathcost BRIDGE COST Set path cost setportprio BRIDGE PRIO Set port priority setbridgeprio BRIDGE PRIO Set bridge priority stp BRIDGE [1/yes/on|0/no/off] STP on/off</pre> </dd> <dt><strong><a name="bunzip2" class="item"><strong>bunzip2</strong></a></strong></dt> <dd> <p>bunzip2 [-cf] [FILE]...</p> <p>Decompress FILEs (or stdin)</p> <pre> -c Write to stdout -f Force</pre> </dd> <dt><strong><a name="bzcat" class="item"><strong>bzcat</strong></a></strong></dt> <dd> <p>bzcat [FILE]...</p> <p>Decompress to stdout</p> </dd> <dt><strong><a name="bzip2" class="item"><strong>bzip2</strong></a></strong></dt> <dd> <p>bzip2 [OPTIONS] [FILE]...</p> <p>Compress FILEs (or stdin) with bzip2 algorithm</p> <pre> -1..9 Compression level -d Decompress -c Write to stdout -f Force</pre> </dd> <dt><strong><a name="cal" class="item"><strong>cal</strong></a></strong></dt> <dd> <p>cal [-jy] [[MONTH] YEAR]</p> <p>Display a calendar</p> <pre> -j Use julian dates -y Display the entire year</pre> </dd> <dt><strong><a name="cat" class="item"><strong>cat</strong></a></strong></dt> <dd> <p>cat [FILE]...</p> <p>Concatenate FILEs and print them to stdout</p> </dd> <dt><strong><a name="catv" class="item"><strong>catv</strong></a></strong></dt> <dd> <p>catv [-etv] [FILE]...</p> <p>Display nonprinting characters as ^x or M-x</p> <pre> -e End each line with $ -t Show tabs as ^I -v Don't use ^x or M-x escapes</pre> </dd> <dt><strong><a name="chat" class="item"><strong>chat</strong></a></strong></dt> <dd> <p>chat EXPECT [SEND [EXPECT [SEND...]]]</p> <p>Useful for interacting with a modem connected to stdin/stdout. A script consists of one or more &quot;expect-send&quot; pairs of strings, each pair is a pair of arguments. Example: chat '' ATZ OK ATD123456 CONNECT '' ogin: pppuser word: ppppass '~'</p> </dd> <dt><strong><a name="chattr" class="item"><strong>chattr</strong></a></strong></dt> <dd> <p>chattr [-R] [-+=AacDdijsStTu] [-v VERSION] [FILE]...</p> <p>Change file attributes on an ext2 fs</p> <p>Modifiers:</p> <pre> - Remove attributes + Add attributes = Set attributes Attributes:</pre> <pre> A Don't track atime a Append mode only c Enable compress D Write dir contents synchronously d Don't backup with dump i Cannot be modified (immutable) j Write all data to journal first s Zero disk storage when deleted S Write file contents synchronously t Disable tail-merging of partial blocks with other files u Allow file to be undeleted -R Recurse -v Set the file's version/generation number</pre> </dd> <dt><strong><a name="chgrp" class="item"><strong>chgrp</strong></a></strong></dt> <dd> <p>chgrp [-RhLHPcvf]... GROUP FILE...</p> <p>Change the group membership of each FILE to GROUP</p> <pre> -R Recurse -h Affect symlinks instead of symlink targets -L Traverse all symlinks to directories -H Traverse symlinks on command line only -P Don't traverse symlinks (default) -c List changed files -v Verbose -f Hide errors</pre> </dd> <dt><strong><a name="chmod" class="item"><strong>chmod</strong></a></strong></dt> <dd> <p>chmod [-Rcvf] MODE[,MODE]... FILE...</p> <p>Each MODE is one or more of the letters ugoa, one of the symbols +-= and one or more of the letters rwxst</p> <pre> -R Recurse -c List changed files -v List all files -f Hide errors</pre> </dd> <dt><strong><a name="chown" class="item"><strong>chown</strong></a></strong></dt> <dd> <p>chown [-RhLHPcvf]... OWNER[&lt;.|:&gt;[GROUP]] FILE...</p> <p>Change the owner and/or group of each FILE to OWNER and/or GROUP</p> <pre> -R Recurse -h Affect symlinks instead of symlink targets -L Traverse all symlinks to directories -H Traverse symlinks on command line only -P Don't traverse symlinks (default) -c List changed files -v List all files -f Hide errors</pre> </dd> <dt><strong><a name="chpasswd" class="item"><strong>chpasswd</strong></a></strong></dt> <dd> <p>chpasswd [--md5|--encrypted]</p> <p>Read user:password from stdin and update /etc/passwd</p> <pre> -e,--encrypted Supplied passwords are in encrypted form -m,--md5 Use MD5 encryption instead of DES</pre> </dd> <dt><strong><a name="chpst" class="item"><strong>chpst</strong></a></strong></dt> <dd> <p><table cellspacing="0" cellpadding="0"><tr><td>chpst [-vP012] [-u USER[:GRP]] [-U USER[:GRP]] [-e DIR] <tr><td><td>[-/ DIR] [-n NICE] [-m BYTES] [-d BYTES] [-o N] <tr><td><td>[-p N] [-f BYTES] [-c BYTES] PROG ARGS</table></p> <p>Change the process state, run PROG</p> <pre> -u USER[:GRP] Set uid and gid -U USER[:GRP] Set $UID and $GID in environment -e DIR Set environment variables as specified by files in DIR: file=1st_line_of_file -/ DIR Chroot to DIR -n NICE Add NICE to nice value -m BYTES Same as -d BYTES -s BYTES -l BYTES -d BYTES Limit data segment -o N Limit number of open files per process -p N Limit number of processes per uid -f BYTES Limit output file sizes -c BYTES Limit core file size -v Verbose -P Create new process group -0 Close stdin -1 Close stdout -2 Close stderr</pre> </dd> <dt><strong><a name="chroot" class="item"><strong>chroot</strong></a></strong></dt> <dd> <p>chroot NEWROOT [PROG ARGS]</p> <p>Run PROG with root directory set to NEWROOT</p> </dd> <dt><strong><a name="chrt" class="item"><strong>chrt</strong></a></strong></dt> <dd> <p>chrt [-prfom] [PRIO] [PID | PROG ARGS]</p> <p>Change scheduling priority and class for a process</p> <pre> -p Operate on PID -r Set SCHED_RR class -f Set SCHED_FIFO class -o Set SCHED_OTHER class -m Show min/max priorities</pre> </dd> <dt><strong><a name="chvt" class="item"><strong>chvt</strong></a></strong></dt> <dd> <p>chvt N</p> <p>Change the foreground virtual terminal to /dev/ttyN</p> </dd> <dt><strong><a name="cksum" class="item"><strong>cksum</strong></a></strong></dt> <dd> <p>cksum FILES...</p> <p>Calculate the CRC32 checksums of FILES</p> </dd> <dt><strong><a name="clear" class="item"><strong>clear</strong></a></strong></dt> <dd> <p>clear</p> <p>Clear screen</p> </dd> <dt><strong><a name="cmp" class="item"><strong>cmp</strong></a></strong></dt> <dd> <p>cmp [-l] [-s] FILE1 [FILE2 [SKIP1 [SKIP2]]]</p> <p>Compare FILE1 with FILE2 (or stdin)</p> <pre> -l Write the byte numbers (decimal) and values (octal) for all differing bytes -s Quiet</pre> </dd> <dt><strong><a name="comm" class="item"><strong>comm</strong></a></strong></dt> <dd> <p>comm [-123] FILE1 FILE2</p> <p>Compare FILE1 with FILE2</p> <pre> -1 Suppress lines unique to FILE1 -2 Suppress lines unique to FILE2 -3 Suppress lines common to both files</pre> </dd> <dt><strong><a name="conspy" class="item"><strong>conspy</strong></a></strong></dt> <dd> <p>conspy [-vcsndfFQ] [-x COL] [-y LINE] [CONSOLE_NO]</p> <p>A text-mode VNC like program for Linux virtual consoles. To exit, quickly press ESC 3 times.</p> <pre> -v Don't send keystrokes to the console -c Create missing /dev/{tty,vcsa}N -s Open a SHELL session -n Black &amp; white -d Dump console to stdout -f Follow cursor -F Assume console is on a framebuffer device -Q Disable exit on ESC-ESC-ESC -x COL Starting column -y LINE Starting line</pre> </dd> <dt><strong><a name="cp" class="item"><strong>cp</strong></a></strong></dt> <dd> <p>cp [OPTIONS] SOURCE... DEST</p> <p>Copy SOURCE(s) to DEST</p> <pre> -a Same as -dpR -R,-r Recurse -d,-P Preserve symlinks (default if -R) -L Follow all symlinks -H Follow symlinks on command line -p Preserve file attributes if possible -f Overwrite -i Prompt before overwrite -l,-s Create (sym)links</pre> </dd> <dt><strong><a name="cpio" class="item"><strong>cpio</strong></a></strong></dt> <dd> <p>cpio [-dmvu] [-F FILE] [-H newc] [-tio] [-p DIR] [EXTR_FILE]...</p> <p>Extract or list files from a cpio archive, or create an archive (-o) or copy files (-p) using file list on stdin</p> <p>Main operation mode:</p> <pre> -t List -i Extract EXTR_FILEs (or all) -o Create (requires -H newc) -p DIR Copy files to DIR -d Make leading directories -m Preserve mtime -v Verbose -u Overwrite -F FILE Input (-t,-i,-p) or output (-o) file -H newc Archive format</pre> </dd> <dt><strong><a name="crond" class="item"><strong>crond</strong></a></strong></dt> <dd> <p>crond -fbS -l N -d N -L LOGFILE -c DIR</p> <pre> -f Foreground -b Background (default) -S Log to syslog (default) -l Set log level. 0 is the most verbose, default 8 -d Set log level, log to stderr -L Log to file -c Working dir</pre> </dd> <dt><strong><a name="crontab" class="item"><strong>crontab</strong></a></strong></dt> <dd> <p>crontab [-c DIR] [-u USER] [-ler]|[FILE]</p> <pre> -c Crontab directory -u User -l List crontab -e Edit crontab -r Delete crontab FILE Replace crontab by FILE ('-': stdin)</pre> </dd> <dt><strong><a name="cryptpw" class="item"><strong>cryptpw</strong></a></strong></dt> <dd> <p>cryptpw [OPTIONS] [PASSWORD] [SALT]</p> <p>Crypt PASSWORD using <code>crypt(3)</code></p> <pre> -P,--password-fd=N Read password from fd N -m,--method=TYPE Encryption method -S,--salt=SALT</pre> </dd> <dt><strong><a name="cttyhack" class="item"><strong>cttyhack</strong></a></strong></dt> <dd> <p>cttyhack [PROG ARGS]</p> <p>Give PROG a controlling tty if possible. Example for /etc/inittab (for busybox init): ::respawn:/bin/cttyhack /bin/sh Giving controlling tty to shell running with PID 1: $ exec cttyhack sh Starting interactive shell from boot shell script:</p> <pre> setsid cttyhack sh</pre> </dd> <dt><strong><a name="cut" class="item"><strong>cut</strong></a></strong></dt> <dd> <p>cut [OPTIONS] [FILE]...</p> <p>Print selected fields from each input FILE to stdout</p> <pre> -b LIST Output only bytes from LIST -c LIST Output only characters from LIST -d CHAR Use CHAR instead of tab as the field delimiter -s Output only the lines containing delimiter -f N Print only these fields -n Ignored</pre> </dd> <dt><strong><a name="date" class="item"><strong>date</strong></a></strong></dt> <dd> <p>date [OPTIONS] [+FMT] [TIME]</p> <p>Display time (using +FMT), or set time</p> <pre> [-s,--set] TIME Set time to TIME -u,--utc Work in UTC (don't convert to local time) -R,--rfc-2822 Output RFC-2822 compliant date string -I[SPEC] Output ISO-8601 compliant date string SPEC='date' (default) for date only, 'hours', 'minutes', or 'seconds' for date and time to the indicated precision -r,--reference FILE Display last modification time of FILE -d,--date TIME Display TIME, not 'now' -D FMT Use FMT for -d TIME conversion</pre> <p>Recognized TIME formats:</p> <pre> hh:mm[:ss] [YYYY.]MM.DD-hh:mm[:ss] YYYY-MM-DD hh:mm[:ss] [[[[[YY]YY]MM]DD]hh]mm[.ss] 'date TIME' form accepts MMDDhhmm[[YY]YY][.ss] instead</pre> </dd> <dt><strong><a name="dc" class="item"><strong>dc</strong></a></strong></dt> <dd> <p>dc EXPRESSION...</p> <p>Tiny RPN calculator. Operations: +, add, -, sub, *, mul, /, div, %, mod, **, exp, and, or, not, xor, p - print top of the stack (without popping), f - print entire stack, o - pop the value and set output radix (must be 10, 16, 8 or 2). Examples: 'dc 2 2 add p' -&gt; 4, 'dc 8 8 mul 2 2 + / p' -&gt; 16</p> </dd> <dt><strong><a name="dd" class="item"><strong>dd</strong></a></strong></dt> <dd> <p><table cellspacing="0" cellpadding="0"><tr><td>dd [if=FILE] [of=FILE] [ibs=N] [obs=N] [bs=N] [count=N] [skip=N] <tr><td><td>[seek=N] [conv=notrunc|noerror|sync|fsync]</table></p> <p>Copy a file with converting and formatting</p> <pre> if=FILE Read from FILE instead of stdin of=FILE Write to FILE instead of stdout bs=N Read and write N bytes at a time ibs=N Read N bytes at a time obs=N Write N bytes at a time count=N Copy only N input blocks skip=N Skip N input blocks seek=N Skip N output blocks conv=notrunc Don't truncate output file conv=noerror Continue after read errors conv=sync Pad blocks with zeros conv=fsync Physically write data out before finishing conv=swab Swap every pair of bytes</pre> <p>N may be suffixed by c (1), w (2), b (512), kD (1000), k (1024), MD, M, GD, G</p> </dd> <dt><strong><a name="deallocvt" class="item"><strong>deallocvt</strong></a></strong></dt> <dd> <p>deallocvt [N]</p> <p>Deallocate unused virtual terminal /dev/ttyN</p> </dd> <dt><strong><a name="delgroup" class="item"><strong>delgroup</strong></a></strong></dt> <dd> <p>delgroup [USER] GROUP</p> <p>Delete group GROUP from the system or user USER from group GROUP</p> </dd> <dt><strong><a name="deluser" class="item"><strong>deluser</strong></a></strong></dt> <dd> <p>deluser USER</p> <p>Delete USER from the system</p> </dd> <dt><strong><a name="depmod" class="item"><strong>depmod</strong></a></strong></dt> <dd> <p>depmod [-qfwrsv] MODULE [symbol=value]...</p> <pre> -r Remove MODULE (stacks) or do autoclean -q Quiet -v Verbose -f Force -w Wait for unload -s Report via syslog instead of stderr</pre> </dd> <dt><strong><a name="devmem" class="item"><strong>devmem</strong></a></strong></dt> <dd> <p>devmem ADDRESS [WIDTH [VALUE]]</p> <p>Read/write from physical address</p> <pre> ADDRESS Address to act upon WIDTH Width (8/16/...) VALUE Data to be written</pre> </dd> <dt><strong><a name="df" class="item"><strong>df</strong></a></strong></dt> <dd> <p>df [-Pkmhai] [-B SIZE] [FILESYSTEM]...</p> <p>Print filesystem usage statistics</p> <pre> -P POSIX output format -k 1024-byte blocks (default) -m 1M-byte blocks -h Human readable (e.g. 1K 243M 2G) -a Show all filesystems -i Inodes -B SIZE Blocksize</pre> </dd> <dt><strong><a name="dhcprelay" class="item"><strong>dhcprelay</strong></a></strong></dt> <dd> <p>dhcprelay CLIENT_IFACE[,CLIENT_IFACE2]... SERVER_IFACE [SERVER_IP]</p> <p>Relay DHCP requests between clients and server</p> </dd> <dt><strong><a name="diff" class="item"><strong>diff</strong></a></strong></dt> <dd> <p>diff [-abBdiNqrTstw] [-L LABEL] [-S FILE] [-U LINES] FILE1 FILE2</p> <p>Compare files line by line and output the differences between them. This implementation supports unified diffs only.</p> <pre> -a Treat all files as text -b Ignore changes in the amount of whitespace -B Ignore changes whose lines are all blank -d Try hard to find a smaller set of changes -i Ignore case differences -L Use LABEL instead of the filename in the unified header -N Treat absent files as empty -q Output only whether files differ -r Recurse -S Start with FILE when comparing directories -T Make tabs line up by prefixing a tab when necessary -s Report when two files are the same -t Expand tabs to spaces in output -U Output LINES lines of context -w Ignore all whitespace</pre> </dd> <dt><strong><a name="dirname" class="item"><strong>dirname</strong></a></strong></dt> <dd> <p>dirname FILENAME</p> <p>Strip non-directory suffix from FILENAME</p> </dd> <dt><strong><a name="dmesg" class="item"><strong>dmesg</strong></a></strong></dt> <dd> <p>dmesg [-c] [-n LEVEL] [-s SIZE]</p> <p>Print or control the kernel ring buffer</p> <pre> -c Clear ring buffer after printing -n LEVEL Set console logging level -s SIZE Buffer size</pre> </dd> <dt><strong><a name="dnsd" class="item"><strong>dnsd</strong></a></strong></dt> <dd> <p>dnsd [-dvs] [-c CONFFILE] [-t TTL_SEC] [-p PORT] [-i ADDR]</p> <p>Small static DNS server daemon</p> <pre> -c FILE Config file -t SEC TTL -p PORT Listen on PORT -i ADDR Listen on ADDR -d Daemonize -v Verbose -s Send successful replies only. Use this if you want to use /etc/resolv.conf with two nameserver lines: nameserver DNSD_SERVER nameserver NORMAL_DNS_SERVER</pre> </dd> <dt><strong><a name="dos2unix" class="item"><strong>dos2unix</strong></a></strong></dt> <dd> <p>dos2unix [-ud] [FILE]</p> <p>Convert FILE in-place from DOS to Unix format. When no file is given, use stdin/stdout.</p> <pre> -u dos2unix -d unix2dos</pre> </dd> <dt><strong><a name="du" class="item"><strong>du</strong></a></strong></dt> <dd> <p>du [-aHLdclsxhmk] [FILE]...</p> <p>Summarize disk space used for each FILE and/or directory</p> <pre> -a Show file sizes too -L Follow all symlinks -H Follow symlinks on command line -d N Limit output to directories (and files with -a) of depth &lt; N -c Show grand total -l Count sizes many times if hard linked -s Display only a total for each argument -x Skip directories on different filesystems -h Sizes in human readable format (e.g., 1K 243M 2G) -m Sizes in megabytes -k Sizes in kilobytes (default)</pre> </dd> <dt><strong><a name="dumpkmap" class="item"><strong>dumpkmap</strong></a></strong></dt> <dd> <p>dumpkmap &gt; keymap</p> <p>Print a binary keyboard translation table to stdout</p> </dd> <dt><strong><a name="dumpleases" class="item"><strong>dumpleases</strong></a></strong></dt> <dd> <p>dumpleases [-r|-a] [-f LEASEFILE]</p> <p>Display DHCP leases granted by udhcpd</p> <pre> -f,--file=FILE Lease file -r,--remaining Show remaining time -a,--absolute Show expiration time</pre> </dd> <dt><strong><a name="echo" class="item"><strong>echo</strong></a></strong></dt> <dd> <p>echo [-neE] [ARG]...</p> <p>Print the specified ARGs to stdout</p> <pre> -n Suppress trailing newline -e Interpret backslash escapes (i.e., \t=tab) -E Don't interpret backslash escapes (default)</pre> </dd> <dt><strong><a name="ed" class="item"><strong>ed</strong></a></strong></dt> <dd> <p>ed</p> </dd> <dt><strong><a name="eject" class="item"><strong>eject</strong></a></strong></dt> <dd> <p>eject [-t] [-T] [DEVICE]</p> <p>Eject DEVICE or default /dev/cdrom</p> <pre> -s SCSI device -t Close tray -T Open/close tray (toggle)</pre> </dd> <dt><strong><a name="env" class="item"><strong>env</strong></a></strong></dt> <dd> <p>env [-iu] [-] [name=value]... [PROG ARGS]</p> <p>Print the current environment or run PROG after setting up the specified environment</p> <pre> -, -i Start with an empty environment -u Remove variable from the environment</pre> </dd> <dt><strong><a name="envdir" class="item"><strong>envdir</strong></a></strong></dt> <dd> <p>envdir DIR PROG ARGS</p> <p>Set various environment variables as specified by files in the directory DIR, run PROG</p> </dd> <dt><strong><a name="envuidgid" class="item"><strong>envuidgid</strong></a></strong></dt> <dd> <p>envuidgid USER PROG ARGS</p> <p>Set $UID to USER's uid and $GID to USER's gid, run PROG</p> </dd> <dt><strong><a name="ether_wake" class="item"><strong>ether-wake</strong></a></strong></dt> <dd> <p>ether-wake [-b] [-i IFACE] [-p aa:bb:cc:dd[:ee:ff]/a.b.c.d] MAC</p> <p>Send a magic packet to wake up sleeping machines. MAC must be a station address (00:11:22:33:44:55) or a hostname with a known 'ethers' entry.</p> <pre> -b Broadcast the packet -i IFACE Interface to use (default eth0) -p PASSWORD Append four or six byte PASSWORD to the packet</pre> </dd> <dt><strong><a name="expand" class="item"><strong>expand</strong></a></strong></dt> <dd> <p>expand [-i] [-t N] [FILE]...</p> <p>Convert tabs to spaces, writing to stdout</p> <pre> -i,--initial Don't convert tabs after non blanks -t,--tabs=N Tabstops every N chars</pre> </dd> <dt><strong><a name="expr" class="item"><strong>expr</strong></a></strong></dt> <dd> <p>expr EXPRESSION</p> <p>Print the value of EXPRESSION to stdout</p> <p>EXPRESSION may be:</p> <pre> ARG1 | ARG2 ARG1 if it is neither null nor 0, otherwise ARG2 ARG1 &amp; ARG2 ARG1 if neither argument is null or 0, otherwise 0 ARG1 &lt; ARG2 1 if ARG1 is less than ARG2, else 0. Similarly: ARG1 &lt;= ARG2 ARG1 = ARG2 ARG1 != ARG2 ARG1 &gt;= ARG2 ARG1 &gt; ARG2 ARG1 + ARG2 Sum of ARG1 and ARG2. Similarly: ARG1 - ARG2 ARG1 * ARG2 ARG1 / ARG2 ARG1 % ARG2 STRING : REGEXP Anchored pattern match of REGEXP in STRING match STRING REGEXP Same as STRING : REGEXP substr STRING POS LENGTH Substring of STRING, POS counted from 1 index STRING CHARS Index in STRING where any CHARS is found, or 0 length STRING Length of STRING quote TOKEN Interpret TOKEN as a string, even if it is a keyword like 'match' or an operator like '/' (EXPRESSION) Value of EXPRESSION</pre> <p>Beware that many operators need to be escaped or quoted for shells. Comparisons are arithmetic if both ARGs are numbers, else lexicographical. Pattern matches return the string matched between \( and \) or null; if \( and \) are not used, they return the number of characters matched or 0.</p> </dd> <dt><strong><a name="fakeidentd" class="item"><strong>fakeidentd</strong></a></strong></dt> <dd> <p>fakeidentd [-fiw] [-b ADDR] [STRING]</p> <p>Provide fake ident (auth) service</p> <pre> -f Run in foreground -i Inetd mode -w Inetd 'wait' mode -b ADDR Bind to specified address STRING Ident answer string (default: nobody)</pre> </dd> <dt><strong><a name="false" class="item"><strong>false</strong></a></strong></dt> <dd> <p>false</p> <p>Return an exit code of FALSE (1)</p> </dd> <dt><strong><a name="fbset" class="item"><strong>fbset</strong></a></strong></dt> <dd> <p>fbset [OPTIONS] [MODE]</p> <p>Show and modify frame buffer settings</p> </dd> <dt><strong><a name="fbsplash" class="item"><strong>fbsplash</strong></a></strong></dt> <dd> <p>fbsplash -s IMGFILE [-c] [-d DEV] [-i INIFILE] [-f CMD]</p> <pre> -s Image -c Hide cursor -d Framebuffer device (default /dev/fb0) -i Config file (var=value): BAR_LEFT,BAR_TOP,BAR_WIDTH,BAR_HEIGHT BAR_R,BAR_G,BAR_B -f Control pipe (else exit after drawing image) commands: 'NN' (% for progress bar) or 'exit'</pre> </dd> <dt><strong><a name="fdflush" class="item"><strong>fdflush</strong></a></strong></dt> <dd> <p>fdflush DEVICE</p> <p>Force floppy disk drive to detect disk change</p> </dd> <dt><strong><a name="fdformat" class="item"><strong>fdformat</strong></a></strong></dt> <dd> <p>fdformat [-n] DEVICE</p> <p>Format floppy disk</p> <pre> -n Don't verify after format</pre> </dd> <dt><strong><a name="fdisk" class="item"><strong>fdisk</strong></a></strong></dt> <dd> <p>fdisk [-ul] [-C CYLINDERS] [-H HEADS] [-S SECTORS] [-b SSZ] DISK</p> <p>Change partition table</p> <pre> -u Start and End are in sectors (instead of cylinders) -l Show partition table for each DISK, then exit -b 2048 (for certain MO disks) use 2048-byte sectors -C CYLINDERS Set number of cylinders/heads/sectors -H HEADS -S SECTORS</pre> </dd> <dt><strong><a name="fgconsole" class="item"><strong>fgconsole</strong></a></strong></dt> <dd> <p>fgconsole</p> <p>Get active console</p> </dd> <dt><strong><a name="find" class="item"><strong>find</strong></a></strong></dt> <dd> <p>find [-HL] [PATH]... [OPTIONS] [ACTIONS]</p> <p>Search for files and perform actions on them. First failed action stops processing of current file. Defaults: PATH is current directory, action is '-print'</p> <pre> -L,-follow Follow symlinks -H ...on command line only -xdev Don't descend directories on other filesystems -maxdepth N Descend at most N levels. -maxdepth 0 applies actions to command line arguments only -mindepth N Don't act on first N levels -depth Act on directory *after* traversing it</pre> <p>Actions:</p> <pre> ( ACTIONS ) Group actions for -o / -a ! ACT Invert ACT's success/failure ACT1 [-a] ACT2 If ACT1 fails, stop, else do ACT2 ACT1 -o ACT2 If ACT1 succeeds, stop, else do ACT2 Note: -a has higher priority than -o -name PATTERN Match file name (w/o directory name) to PATTERN -iname PATTERN Case insensitive -name -path PATTERN Match path to PATTERN -ipath PATTERN Case insensitive -path -regex PATTERN Match path to regex PATTERN -type X File type is X (one of: f,d,l,b,c,...) -perm MASK At least one mask bit (+MASK), all bits (-MASK), or exactly MASK bits are set in file's mode -mtime DAYS mtime is greater than (+N), less than (-N), or exactly N days in the past -mmin MINS mtime is greater than (+N), less than (-N), or exactly N minutes in the past -newer FILE mtime is more recent than FILE's -inum N File has inode number N -user NAME/ID File is owned by given user -group NAME/ID File is owned by given group -size N[bck] File size is N (c:bytes,k:kbytes,b:512 bytes(def.)) +/-N: file size is bigger/smaller than N -links N Number of links is greater than (+N), less than (-N), or exactly N -prune If current file is directory, don't descend into it If none of the following actions is specified, -print is assumed -print Print file name -print0 Print file name, NUL terminated -exec CMD ARG ; Run CMD with all instances of {} replaced by file name. Fails if CMD exits with nonzero -delete Delete current file/directory. Turns on -depth option</pre> </dd> <dt><strong><a name="findfs" class="item"><strong>findfs</strong></a></strong></dt> <dd> <p>findfs LABEL=label or UUID=uuid</p> <p>Find a filesystem device based on a label or UUID</p> </dd> <dt><strong><a name="flock" class="item"><strong>flock</strong></a></strong></dt> <dd> <p>flock [-sxun] FD|{FILE [-c] PROG ARGS}</p> <p>[Un]lock file descriptor, or lock FILE, run PROG</p> <pre> -s Shared lock -x Exclusive lock (default) -u Unlock FD -n Fail rather than wait</pre> </dd> <dt><strong><a name="fold" class="item"><strong>fold</strong></a></strong></dt> <dd> <p>fold [-bs] [-w WIDTH] [FILE]...</p> <p>Wrap input lines in each FILE (or stdin), writing to stdout</p> <pre> -b Count bytes rather than columns -s Break at spaces -w Use WIDTH columns instead of 80</pre> </dd> <dt><strong><a name="free" class="item"><strong>free</strong></a></strong></dt> <dd> <p>free [-b/k/m/g]</p> <p>Display the amount of free and used system memory</p> </dd> <dt><strong><a name="freeramdisk" class="item"><strong>freeramdisk</strong></a></strong></dt> <dd> <p>freeramdisk DEVICE</p> <p>Free all memory used by the specified ramdisk</p> </dd> <dt><strong><a name="fsck" class="item"><strong>fsck</strong></a></strong></dt> <dd> <p>fsck [-ANPRTV] [-C FD] [-t FSTYPE] [FS_OPTS] [BLOCKDEV]...</p> <p>Check and repair filesystems</p> <pre> -A Walk /etc/fstab and check all filesystems -N Don't execute, just show what would be done -P With -A, check filesystems in parallel -R With -A, skip the root filesystem -T Don't show title on startup -V Verbose -C n Write status information to specified filedescriptor -t TYPE List of filesystem types to check</pre> </dd> <dt><strong><a name="fsck_minix" class="item"><strong>fsck.minix</strong></a></strong></dt> <dd> <p>fsck.minix [-larvsmf] BLOCKDEV</p> <p>Check MINIX filesystem</p> <pre> -l List all filenames -r Perform interactive repairs -a Perform automatic repairs -v Verbose -s Output superblock information -m Show &quot;mode not cleared&quot; warnings -f Force file system check</pre> </dd> <dt><strong><a name="fstrim" class="item"><strong>fstrim</strong></a></strong></dt> <dd> <p>fstrim [OPTIONS] MOUNTPOINT</p> <pre> -o,--offset=OFFSET Offset in bytes to discard from -l,--length=LEN Bytes to discard -m,--minimum=MIN Minimum extent length -v,--verbose Print number of discarded bytes</pre> </dd> <dt><strong><a name="fsync" class="item"><strong>fsync</strong></a></strong></dt> <dd> <p>fsync [-d] FILE...</p> <p>Write files' buffered blocks to disk</p> <pre> -d Avoid syncing metadata</pre> </dd> <dt><strong><a name="ftpd" class="item"><strong>ftpd</strong></a></strong></dt> <dd> <p>ftpd [-wvS] [-t N] [-T N] [DIR]</p> <p>Anonymous FTP server</p> <p>ftpd should be used as an inetd service. ftpd's line for inetd.conf: 21 stream tcp nowait root ftpd ftpd /files/to/serve It also can be ran from tcpsvd:</p> <pre> tcpsvd -vE 0.0.0.0 21 ftpd /files/to/serve</pre> <pre> -w Allow upload -v Log errors to stderr. -vv: verbose log -S Log errors to syslog. -SS: verbose log -t,-T Idle and absolute timeouts DIR Change root to this directory</pre> </dd> <dt><strong><a name="ftpget" class="item"><strong>ftpget</strong></a></strong></dt> <dd> <p>ftpget [OPTIONS] HOST [LOCAL_FILE] REMOTE_FILE</p> <p>Download a file via FTP</p> <pre> -c,--continue Continue previous transfer -v,--verbose Verbose -u,--username USER Username -p,--password PASS Password -P,--port NUM Port</pre> </dd> <dt><strong><a name="ftpput" class="item"><strong>ftpput</strong></a></strong></dt> <dd> <p>ftpput [OPTIONS] HOST [REMOTE_FILE] LOCAL_FILE</p> <p>Upload a file to a FTP server</p> <pre> -v,--verbose Verbose -u,--username USER Username -p,--password PASS Password -P,--port NUM Port</pre> </dd> <dt><strong><a name="fuser" class="item"><strong>fuser</strong></a></strong></dt> <dd> <p>fuser [OPTIONS] FILE or PORT/PROTO</p> <p>Find processes which use FILEs or PORTs</p> <pre> -m Find processes which use same fs as FILEs -4,-6 Search only IPv4/IPv6 space -s Don't display PIDs -k Kill found processes -SIGNAL Signal to send (default: KILL)</pre> </dd> <dt><strong><a name="getopt" class="item"><strong>getopt</strong></a></strong></dt> <dd> <p>getopt [OPTIONS] [--] OPTSTRING PARAMS</p> <pre> -a,--alternative Allow long options starting with single - -l,--longoptions=LOPT[,...] Long options to recognize -n,--name=PROGNAME The name under which errors are reported -o,--options=OPTSTRING Short options to recognize -q,--quiet No error messages on unrecognized options -Q,--quiet-output No normal output -s,--shell=SHELL Set shell quoting conventions -T,--test Version test (exits with 4) -u,--unquoted Don't quote output</pre> <p>Example:</p> <p>O=`getopt -l bb: -- ab:c:: &quot;$@&quot;` || exit 1 eval set -- &quot;$O&quot; while true; do case &quot;$1&quot; in -a) echo A; shift;; -b|--bb) echo &quot;B:'$2'&quot;; shift 2;; -c) case &quot;$2&quot; in &quot;&quot;) echo C; shift 2;; *) echo &quot;C:'$2'&quot;; shift 2;; esac;; --) shift; break;; *) echo Error; exit 1;; esac done</p> </dd> <dt><strong><a name="getty" class="item"><strong>getty</strong></a></strong></dt> <dd> <p>getty [OPTIONS] BAUD_RATE[,BAUD_RATE]... TTY [TERMTYPE]</p> <p>Open TTY, prompt for login name, then invoke /bin/login</p> <pre> -h Enable hardware RTS/CTS flow control -L Set CLOCAL (ignore Carrier Detect state) -m Get baud rate from modem's CONNECT status message -n Don't prompt for login name -w Wait for CR or LF before sending /etc/issue -i Don't display /etc/issue -f ISSUE_FILE Display ISSUE_FILE instead of /etc/issue -l LOGIN Invoke LOGIN instead of /bin/login -t SEC Terminate after SEC if no login name is read -I INITSTR Send INITSTR before anything else -H HOST Log HOST into the utmp file as the hostname</pre> <p>BAUD_RATE of 0 leaves it unchanged</p> </dd> <dt><strong><a name="grep" class="item"><strong>grep</strong></a></strong></dt> <dd> <p>grep [-HhnlLoqvsriwFE] [-m N] [-A/B/C N] PATTERN/-e PATTERN.../-f FILE [FILE]...</p> <p>Search for PATTERN in FILEs (or stdin)</p> <pre> -H Add 'filename:' prefix -h Do not add 'filename:' prefix -n Add 'line_no:' prefix -l Show only names of files that match -L Show only names of files that don't match -c Show only count of matching lines -o Show only the matching part of line -q Quiet. Return 0 if PATTERN is found, 1 otherwise -v Select non-matching lines -s Suppress open and read errors -r Recurse -i Ignore case -w Match whole words only -x Match whole lines only -F PATTERN is a literal (not regexp) -E PATTERN is an extended regexp -m N Match up to N times per file -A N Print N lines of trailing context -B N Print N lines of leading context -C N Same as '-A N -B N' -e PTRN Pattern to match -f FILE Read pattern from file</pre> </dd> <dt><strong><a name="groups" class="item"><strong>groups</strong></a></strong></dt> <dd> <p>groups [USER]</p> <p>Print the group memberships of USER or for the current process</p> </dd> <dt><strong><a name="gunzip" class="item"><strong>gunzip</strong></a></strong></dt> <dd> <p>gunzip [-cft] [FILE]...</p> <p>Decompress FILEs (or stdin)</p> <pre> -c Write to stdout -f Force -t Test file integrity</pre> </dd> <dt><strong><a name="gzip" class="item"><strong>gzip</strong></a></strong></dt> <dd> <p>gzip [-cfd] [FILE]...</p> <p>Compress FILEs (or stdin)</p> <pre> -d Decompress -c Write to stdout -f Force</pre> </dd> <dt><strong><a name="halt" class="item"><strong>halt</strong></a></strong></dt> <dd> <p>halt [-d DELAY] [-n] [-f] [-w]</p> <p>Halt the system</p> <pre> -d SEC Delay interval -n Do not sync -f Force (don't go through init) -w Only write a wtmp record</pre> </dd> <dt><strong><a name="hd" class="item"><strong>hd</strong></a></strong></dt> <dd> <p>hd FILE...</p> <p>hd is an alias for hexdump -C</p> </dd> <dt><strong><a name="hdparm" class="item"><strong>hdparm</strong></a></strong></dt> <dd> <p>hdparm [OPTIONS] [DEVICE]</p> <pre> -a Get/set fs readahead -A Set drive read-lookahead flag (0/1) -b Get/set bus state (0 == off, 1 == on, 2 == tristate) -B Set Advanced Power Management setting (1-255) -c Get/set IDE 32-bit IO setting -C Check IDE power mode status -d Get/set using_dma flag -D Enable/disable drive defect-mgmt -f Flush buffer cache for device on exit -g Display drive geometry -h Display terse usage information -i Display drive identification -I Detailed/current information directly from drive -k Get/set keep_settings_over_reset flag (0/1) -K Set drive keep_features_over_reset flag (0/1) -L Set drive doorlock (0/1) (removable harddisks only) -m Get/set multiple sector count -n Get/set ignore-write-errors flag (0/1) -p Set PIO mode on IDE interface chipset (0,1,2,3,4,...) -P Set drive prefetch count -Q Get/set DMA tagged-queuing depth (if supported) -r Get/set readonly flag (DANGEROUS to set) -R Register an IDE interface (DANGEROUS) -S Set standby (spindown) timeout -t Perform device read timings -T Perform cache read timings -u Get/set unmaskirq flag (0/1) -U Unregister an IDE interface (DANGEROUS) -v Defaults; same as -mcudkrag for IDE drives -V Display program version and exit immediately -w Perform device reset (DANGEROUS) -W Set drive write-caching flag (0/1) (DANGEROUS) -x Tristate device for hotswap (0/1) (DANGEROUS) -X Set IDE xfer mode (DANGEROUS) -y Put IDE drive in standby mode -Y Put IDE drive to sleep -Z Disable Seagate auto-powersaving mode -z Reread partition table</pre> </dd> <dt><strong><a name="head" class="item"><strong>head</strong></a></strong></dt> <dd> <p>head [OPTIONS] [FILE]...</p> <p>Print first 10 lines of each FILE (or stdin) to stdout. With more than one FILE, precede each with a filename header.</p> <pre> -n N[kbm] Print first N lines -n -N[kbm] Print all except N last lines -c [-]N[kbm] Print first N bytes -q Never print headers -v Always print headers</pre> <p>N may be suffixed by k (x1024), b (x512), or m (x1024^2).</p> </dd> <dt><strong><a name="hexdump" class="item"><strong>hexdump</strong></a></strong></dt> <dd> <p>hexdump [-bcCdefnosvxR] [FILE]...</p> <p>Display FILEs (or stdin) in a user specified format</p> <pre> -b One-byte octal display -c One-byte character display -C Canonical hex+ASCII, 16 bytes per line -d Two-byte decimal display -e FORMAT_STRING -f FORMAT_FILE -n LENGTH Interpret only LENGTH bytes of input -o Two-byte octal display -s OFFSET Skip OFFSET bytes -v Display all input data -x Two-byte hexadecimal display -R Reverse of 'hexdump -Cv'</pre> </dd> <dt><strong><a name="hostid" class="item"><strong>hostid</strong></a></strong></dt> <dd> <p>hostid</p> <p>Print out a unique 32-bit identifier for the machine</p> </dd> <dt><strong><a name="hostname" class="item"><strong>hostname</strong></a></strong></dt> <dd> <p>hostname [OPTIONS] [HOSTNAME | -F FILE]</p> <p>Get or set hostname or DNS domain name</p> <pre> -s Short -i Addresses for the hostname -d DNS domain name -f Fully qualified domain name -F FILE Use FILE's content as hostname</pre> </dd> <dt><strong><a name="httpd" class="item"><strong>httpd</strong></a></strong></dt> <dd> <p>httpd [-ifv[v]] [-c CONFFILE] [-p [IP:]PORT] [-u USER[:GRP]] [-r REALM] [-h HOME] or httpd -d/-e/-m STRING</p> <p>Listen for incoming HTTP requests</p> <pre> -i Inetd mode -f Don't daemonize -v[v] Verbose -p [IP:]PORT Bind to IP:PORT (default *:80) -u USER[:GRP] Set uid/gid after binding to port -r REALM Authentication Realm for Basic Authentication -h HOME Home directory (default .) -c FILE Configuration file (default {/etc,HOME}/httpd.conf) -m STRING MD5 crypt STRING -e STRING HTML encode STRING -d STRING URL decode STRING</pre> </dd> <dt><strong><a name="hush" class="item"><strong>hush</strong></a></strong></dt> <dd> <p>hush [-nxl] [-c 'SCRIPT' [ARG0 [ARGS]] / FILE [ARGS]]</p> <p>Unix shell interpreter</p> </dd> <dt><strong><a name="hwclock" class="item"><strong>hwclock</strong></a></strong></dt> <dd> <p>hwclock [-r|--show] [-s|--hctosys] [-w|--systohc] [-t|--systz] [-l|--localtime] [-u|--utc] [-f|--rtc FILE]</p> <p>Query and set hardware clock (RTC)</p> <pre> -r Show hardware clock time -s Set system time from hardware clock -w Set hardware clock from system time -t Set in-kernel timezone, correct system time if hardware clock is in local time -u Assume hardware clock is kept in UTC -l Assume hardware clock is kept in local time -f FILE Use specified device (e.g. /dev/rtc2)</pre> </dd> <dt><strong><a name="id" class="item"><strong>id</strong></a></strong></dt> <dd> <p>id [OPTIONS] [USER]</p> <p>Print information about USER or the current user</p> <pre> -u User ID -g Group ID -G Supplementary group IDs -n Print names instead of numbers -r Print real ID instead of effective ID</pre> </dd> <dt><strong><a name="ifconfig" class="item"><strong>ifconfig</strong></a></strong></dt> <dd> <p>ifconfig [-a] interface [address]</p> <p>Configure a network interface</p> <pre> [add ADDRESS[/PREFIXLEN]] [del ADDRESS[/PREFIXLEN]] [[-]broadcast [ADDRESS]] [[-]pointopoint [ADDRESS]] [netmask ADDRESS] [dstaddr ADDRESS] [outfill NN] [keepalive NN] [hw ether|infiniband ADDRESS] [metric NN] [mtu NN] [[-]trailers] [[-]arp] [[-]allmulti] [multicast] [[-]promisc] [txqueuelen NN] [[-]dynamic] [mem_start NN] [io_addr NN] [irq NN] [up|down] ...</pre> </dd> <dt><strong><a name="ifdown" class="item"><strong>ifdown</strong></a></strong></dt> <dd> <p>ifdown [-anmvf] [-i FILE] IFACE...</p> <pre> -a De/configure all interfaces automatically -i FILE Use FILE for interface definitions -n Print out what would happen, but don't do it (note: doesn't disable mappings) -m Don't run any mappings -v Print out what would happen before doing it -f Force de/configuration</pre> </dd> <dt><strong><a name="ifenslave" class="item"><strong>ifenslave</strong></a></strong></dt> <dd> <p>ifenslave [-cdf] MASTER_IFACE SLAVE_IFACE...</p> <p>Configure network interfaces for parallel routing</p> <pre> -c,--change-active Change active slave -d,--detach Remove slave interface from bonding device -f,--force Force, even if interface is not Ethernet</pre> </dd> <dt><strong><a name="ifplugd" class="item"><strong>ifplugd</strong></a></strong></dt> <dd> <p>ifplugd [OPTIONS]</p> <p>Network interface plug detection daemon</p> <pre> -n Don't daemonize -s Don't log to syslog -i IFACE Interface -f/-F Treat link detection error as link down/link up (otherwise exit on error) -a Don't up interface at each link probe -M Monitor creation/destruction of interface (otherwise it must exist) -r PROG Script to run -x ARG Extra argument for script -I Don't exit on nonzero exit code from script -p Don't run &quot;up&quot; script on startup -q Don't run &quot;down&quot; script on exit -l Always run script on startup -t SECS Poll time in seconds -u SECS Delay before running script after link up -d SECS Delay after link down -m MODE API mode (mii, priv, ethtool, wlan, iff, auto) -k Kill running daemon</pre> </dd> <dt><strong><a name="ifup" class="item"><strong>ifup</strong></a></strong></dt> <dd> <p>ifup [-anmvf] [-i FILE] IFACE...</p> <pre> -a De/configure all interfaces automatically -i FILE Use FILE for interface definitions -n Print out what would happen, but don't do it (note: doesn't disable mappings) -m Don't run any mappings -v Print out what would happen before doing it -f Force de/configuration</pre> </dd> <dt><strong><a name="inetd" class="item"><strong>inetd</strong></a></strong></dt> <dd> <p>inetd [-fe] [-q N] [-R N] [CONFFILE]</p> <p>Listen for network connections and launch programs</p> <pre> -f Run in foreground -e Log to stderr -q N Socket listen queue (default: 128) -R N Pause services after N connects/min (default: 0 - disabled)</pre> </dd> <dt><strong><a name="init" class="item"><strong>init</strong></a></strong></dt> <dd> <p>init</p> <p>Init is the first process started during boot. It never exits. It (re)spawns children according to /etc/inittab.</p> </dd> <dt><strong><a name="insmod" class="item"><strong>insmod</strong></a></strong></dt> <dd> <p>insmod [-qfwrsv] MODULE [symbol=value]...</p> <pre> -r Remove MODULE (stacks) or do autoclean -q Quiet -v Verbose -f Force -w Wait for unload -s Report via syslog instead of stderr</pre> </dd> <dt><strong><a name="install" class="item"><strong>install</strong></a></strong></dt> <dd> <p>install [-cdDsp] [-o USER] [-g GRP] [-m MODE] [SOURCE]... DEST</p> <p>Copy files and set attributes</p> <pre> -c Just copy (default) -d Create directories -D Create leading target directories -s Strip symbol table -p Preserve date -o USER Set ownership -g GRP Set group ownership -m MODE Set permissions</pre> </dd> <dt><strong><a name="ionice" class="item"><strong>ionice</strong></a></strong></dt> <dd> <p>ionice [-c 1-3] [-n 0-7] [-p PID] [PROG]</p> <p>Change I/O priority and class</p> <pre> -c Class. 1:realtime 2:best-effort 3:idle -n Priority</pre> </dd> <dt><strong><a name="iostat" class="item"><strong>iostat</strong></a></strong></dt> <dd> <p>iostat [-c] [-d] [-t] [-z] [-k|-m] [ALL|BLOCKDEV...] [INTERVAL [COUNT]]</p> <p>Report CPU and I/O statistics</p> <pre> -c Show CPU utilization -d Show device utilization -t Print current time -z Omit devices with no activity -k Use kb/s -m Use Mb/s</pre> </dd> <dt><strong><a name="ip" class="item"><strong>ip</strong></a></strong></dt> <dd> <p>ip [OPTIONS] {address | route | link | tunnel | rule} {COMMAND}</p> <p>ip [OPTIONS] OBJECT {COMMAND} where OBJECT := {address | route | link | tunnel | rule} OPTIONS := { -f[amily] { inet | inet6 | link } | -o[neline] }</p> </dd> <dt><strong><a name="ipaddr" class="item"><strong>ipaddr</strong></a></strong></dt> <dd> <p><table cellspacing="0" cellpadding="0"><tr><td>ipaddr { {add|del} IFADDR dev STRING | {show|flush} <tr><td><td>[dev STRING] [to PREFIX] }</table></p> <p>ipaddr {add|delete} IFADDR dev STRING ipaddr {show|flush} [dev STRING] [scope SCOPE-ID] [to PREFIX] [label PATTERN] IFADDR := PREFIX | ADDR peer PREFIX [broadcast ADDR] [anycast ADDR] [label STRING] [scope SCOPE-ID] SCOPE-ID := [host | link | global | NUMBER]</p> </dd> <dt><strong><a name="ipcalc" class="item"><strong>ipcalc</strong></a></strong></dt> <dd> <p>ipcalc [OPTIONS] ADDRESS[[/]NETMASK] [NETMASK]</p> <p>Calculate IP network settings from a IP address</p> <pre> -b,--broadcast Display calculated broadcast address -n,--network Display calculated network address -m,--netmask Display default netmask for IP -p,--prefix Display the prefix for IP/NETMASK -h,--hostname Display first resolved host name -s,--silent Don't ever display error messages</pre> </dd> <dt><strong><a name="ipcrm" class="item"><strong>ipcrm</strong></a></strong></dt> <dd> <p>ipcrm [-MQS key] [-mqs id]</p> <p>Upper-case options MQS remove an object by shmkey value. Lower-case options remove an object by shmid value.</p> <pre> -mM Remove memory segment after last detach -qQ Remove message queue -sS Remove semaphore</pre> </dd> <dt><strong><a name="ipcs" class="item"><strong>ipcs</strong></a></strong></dt> <dd> <p>ipcs [[-smq] -i shmid] | [[-asmq] [-tcplu]]</p> <pre> -i Show specific resource Resource specification:</pre> <pre> -m Shared memory segments -q Message queues -s Semaphore arrays -a All (default) Output format:</pre> <pre> -t Time -c Creator -p Pid -l Limits -u Summary</pre> </dd> <dt><strong><a name="iplink" class="item"><strong>iplink</strong></a></strong></dt> <dd> <p>iplink { set DEVICE { up | down | arp { on | off } | show [DEVICE] }</p> <p>iplink set DEVICE { up | down | arp | multicast { on | off } | dynamic { on | off } | mtu MTU } iplink show [DEVICE]</p> </dd> <dt><strong><a name="iproute" class="item"><strong>iproute</strong></a></strong></dt> <dd> <p><table cellspacing="0" cellpadding="0"><tr><td>iproute { list | flush | add | del | change | append | <tr><td><td>replace | test } ROUTE</table></p> <p>iproute { list | flush } SELECTOR iproute get ADDRESS [from ADDRESS iif STRING] [oif STRING] [tos TOS] iproute { add | del | change | append | replace | test } ROUTE SELECTOR := [root PREFIX] [match PREFIX] [proto RTPROTO] ROUTE := [TYPE] PREFIX [tos TOS] [proto RTPROTO] [metric METRIC]</p> </dd> <dt><strong><a name="iprule" class="item"><strong>iprule</strong></a></strong></dt> <dd> <p>iprule {[list | add | del] RULE}</p> <p><table cellspacing="0" cellpadding="0"><tr><td>iprule [list | add | del] SELECTOR ACTION <tr><td><td>SELECTOR := [from PREFIX] [to PREFIX] [tos TOS] [fwmark FWMARK] <tr><td><td>[dev STRING] [pref NUMBER] <tr><td><td>ACTION := [table TABLE_ID] [nat ADDRESS] <tr><td><td>[prohibit | reject | unreachable] <tr><td><td>[realms [SRCREALM/]DSTREALM] <tr><td><td>TABLE_ID := [local | main | default | NUMBER]</table></p> </dd> <dt><strong><a name="iptunnel" class="item"><strong>iptunnel</strong></a></strong></dt> <dd> <p><table cellspacing="0" cellpadding="0"><tr><td>iptunnel { add | change | del | show } [NAME] <tr><td><td>[mode { ipip | gre | sit }] <tr><td><td>[remote ADDR] [local ADDR] [ttl TTL]</table></p> <p><table cellspacing="0" cellpadding="0"><tr><td>iptunnel { add | change | del | show } [NAME] <tr><td><td>[mode { ipip | gre | sit }] [remote ADDR] [local ADDR] <tr><td><td>[[i|o]seq] [[i|o]key KEY] [[i|o]csum] <tr><td><td>[ttl TTL] [tos TOS] [[no]pmtudisc] [dev PHYS_DEV]</table></p> </dd> <dt><strong><a name="kbd_mode" class="item"><strong>kbd_mode</strong></a></strong></dt> <dd> <p>kbd_mode [-a|k|s|u] [-C TTY]</p> <p>Report or set the keyboard mode</p> <pre> -a Default (ASCII) -k Medium-raw (keyboard) -s Raw (scancode) -u Unicode (utf-8) -C TTY Affect TTY instead of /dev/tty</pre> </dd> <dt><strong><a name="kill" class="item"><strong>kill</strong></a></strong></dt> <dd> <p>kill [-l] [-SIG] PID...</p> <p>Send a signal (default: TERM) to given PIDs</p> <pre> -l List all signal names and numbers</pre> </dd> <dt><strong><a name="killall" class="item"><strong>killall</strong></a></strong></dt> <dd> <p>killall [-l] [-q] [-SIG] PROCESS_NAME...</p> <p>Send a signal (default: TERM) to given processes</p> <pre> -l List all signal names and numbers -q Don't complain if no processes were killed</pre> </dd> <dt><strong><a name="killall5" class="item"><strong>killall5</strong></a></strong></dt> <dd> <p>killall5 [-l] [-SIG] [-o PID]...</p> <p>Send a signal (default: TERM) to all processes outside current session</p> <pre> -l List all signal names and numbers -o PID Don't signal this PID</pre> </dd> <dt><strong><a name="klogd" class="item"><strong>klogd</strong></a></strong></dt> <dd> <p>klogd [-c N] [-n]</p> <p>Kernel logger</p> <pre> -c N Print to console messages more urgent than prio N (1-8) -n Run in foreground</pre> </dd> <dt><strong><a name="last" class="item"><strong>last</strong></a></strong></dt> <dd> <p>last [-HW] [-f FILE]</p> <p>Show listing of the last users that logged into the system</p> <pre> -W Display with no host column truncation -f FILE Read from FILE instead of /var/log/wtmp</pre> </dd> <dt><strong><a name="less" class="item"><strong>less</strong></a></strong></dt> <dd> <p>less [-EMmNh~I?] [FILE]...</p> <p>View FILE (or stdin) one screenful at a time</p> <pre> -E Quit once the end of a file is reached -M,-m Display status line with line numbers and percentage through the file -N Prefix line number to each line -I Ignore case in all searches -~ Suppress ~s displayed past EOF</pre> </dd> <dt><strong><a name="ln" class="item"><strong>ln</strong></a></strong></dt> <dd> <p>ln [OPTIONS] TARGET... LINK|DIR</p> <p>Create a link LINK or DIR/TARGET to the specified TARGET(s)</p> <pre> -s Make symlinks instead of hardlinks -f Remove existing destinations -n Don't dereference symlinks - treat like normal file -b Make a backup of the target (if exists) before link operation -S suf Use suffix instead of ~ when making backup files -T 2nd arg must be a DIR -v Verbose</pre> </dd> <dt><strong><a name="loadfont" class="item"><strong>loadfont</strong></a></strong></dt> <dd> <p>loadfont &lt; font</p> <p>Load a console font from stdin</p> </dd> <dt><strong><a name="loadkmap" class="item"><strong>loadkmap</strong></a></strong></dt> <dd> <p>loadkmap &lt; keymap</p> <p>Load a binary keyboard translation table from stdin</p> </dd> <dt><strong><a name="logger" class="item"><strong>logger</strong></a></strong></dt> <dd> <p>logger [OPTIONS] [MESSAGE]</p> <p>Write MESSAGE (or stdin) to syslog</p> <pre> -s Log to stderr as well as the system log -t TAG Log using the specified tag (defaults to user name) -p PRIO Priority (numeric or facility.level pair)</pre> </dd> <dt><strong><a name="login" class="item"><strong>login</strong></a></strong></dt> <dd> <p>login [-p] [-h HOST] [[-f] USER]</p> <p>Begin a new session on the system</p> <pre> -f Don't authenticate (user already authenticated) -h Name of the remote host -p Preserve environment</pre> </dd> <dt><strong><a name="logname" class="item"><strong>logname</strong></a></strong></dt> <dd> <p>logname</p> <p>Print the name of the current user</p> </dd> <dt><strong><a name="logread" class="item"><strong>logread</strong></a></strong></dt> <dd> <p>logread [-f]</p> <p>Show messages in syslogd's circular buffer</p> <pre> -f Output data as log grows</pre> </dd> <dt><strong><a name="losetup" class="item"><strong>losetup</strong></a></strong></dt> <dd> <p><table cellspacing="0" cellpadding="0"><tr><td>losetup [-r] [-o OFS] {-f|LOOPDEV} FILE - associate loop devices <tr><td><td>losetup -d LOOPDEV - disassociate <tr><td><td>losetup -a - show status <tr><td><td>losetup -f - show next free loop device</table></p> <pre> -o OFS Start OFS bytes into FILE -r Read-only -f Show/use next free loop device</pre> </dd> <dt><strong><a name="lpd" class="item"><strong>lpd</strong></a></strong></dt> <dd> <p>lpd SPOOLDIR [HELPER [ARGS]]</p> <p>SPOOLDIR must contain (symlinks to) device nodes or directories with names matching print queue names. In the first case, jobs are sent directly to the device. Otherwise each job is stored in queue directory and HELPER program is called. Name of file to print is passed in $DATAFILE variable. Example:</p> <pre> tcpsvd -E 0 515 softlimit -m 999999 lpd /var/spool ./print</pre> </dd> <dt><strong><a name="lpq" class="item"><strong>lpq</strong></a></strong></dt> <dd> <p>lpq [-P queue[@host[:port]]] [-U USERNAME] [-d JOBID]... [-fs]</p> <pre> -P lp service to connect to (else uses $PRINTER) -d Delete jobs -f Force any waiting job to be printed -s Short display</pre> </dd> <dt><strong><a name="lpr" class="item"><strong>lpr</strong></a></strong></dt> <dd> <p>lpr -P queue[@host[:port]] -U USERNAME -J TITLE -Vmh [FILE]...</p> <pre> -P lp service to connect to (else uses $PRINTER) -m Send mail on completion -h Print banner page too -V Verbose</pre> </dd> <dt><strong><a name="ls" class="item"><strong>ls</strong></a></strong></dt> <dd> <p>ls [-1AaCxdLHRFplinsehrSXvctu] [-w WIDTH] [FILE]...</p> <p>List directory contents</p> <pre> -1 One column output -a Include entries which start with . -A Like -a, but exclude . and .. -C List by columns -x List by lines -d List directory entries instead of contents -L Follow symlinks -H Follow symlinks on command line -R Recurse -p Append / to dir entries -F Append indicator (one of */=@|) to entries -l Long listing format -i List inode numbers -n List numeric UIDs and GIDs instead of names -s List allocated blocks -e List full date and time -h List sizes in human readable format (1K 243M 2G) -r Sort in reverse order -S Sort by size -X Sort by extension -v Sort by version -c With -l: sort by ctime -t With -l: sort by mtime -u With -l: sort by atime -w N Assume the terminal is N columns wide --color[={always,never,auto}] Control coloring</pre> </dd> <dt><strong><a name="lsattr" class="item"><strong>lsattr</strong></a></strong></dt> <dd> <p>lsattr [-Radlv] [FILE]...</p> <p>List file attributes on an ext2 fs</p> <pre> -R Recurse -a Don't hide entries starting with . -d List directory entries instead of contents -l List long flag names -v List the file's version/generation number</pre> </dd> <dt><strong><a name="lsmod" class="item"><strong>lsmod</strong></a></strong></dt> <dd> <p>lsmod [-qfwrsv] MODULE [symbol=value]...</p> <pre> -r Remove MODULE (stacks) or do autoclean -q Quiet -v Verbose -f Force -w Wait for unload -s Report via syslog instead of stderr</pre> </dd> <dt><strong><a name="lsof" class="item"><strong>lsof</strong></a></strong></dt> <dd> <p>lsof</p> <p>Show all open files</p> </dd> <dt><strong><a name="lspci" class="item"><strong>lspci</strong></a></strong></dt> <dd> <p>lspci [-mk]</p> <p>List all PCI devices</p> <pre> -m Parsable output -k Show driver</pre> </dd> <dt><strong><a name="lzcat" class="item"><strong>lzcat</strong></a></strong></dt> <dd> <p>lzcat [FILE]...</p> <p>Decompress to stdout</p> </dd> <dt><strong><a name="lzma" class="item"><strong>lzma</strong></a></strong></dt> <dd> <p>lzma -d [-cf] [FILE]...</p> <p>Decompress FILE (or stdin)</p> <pre> -d Decompress -c Write to stdout -f Force</pre> </dd> <dt><strong><a name="lzop" class="item"><strong>lzop</strong></a></strong></dt> <dd> <p>lzop [-cfvd123456789CF] [FILE]...</p> <pre> -1..9 Compression level -d Decompress -c Write to stdout -f Force -v Verbose -F Don't store or verify checksum -C Also write checksum of compressed block</pre> </dd> <dt><strong><a name="lzopcat" class="item"><strong>lzopcat</strong></a></strong></dt> <dd> <p>lzopcat [-vCF] [FILE]...</p> <pre> -v Verbose -F Don't store or verify checksum</pre> </dd> <dt><strong><a name="makedevs" class="item"><strong>makedevs</strong></a></strong></dt> <dd> <p>makedevs [-d device_table] rootdir</p> <p>Create a range of special files as specified in a device table. Device table entries take the form of:</p> <p>&lt;name&gt; &lt;type&gt; &lt;mode&gt; &lt;uid&gt; &lt;gid&gt; &lt;major&gt; &lt;minor&gt; &lt;start&gt; &lt;inc&gt; &lt;count&gt; Where name is the file name, type can be one of: f Regular file d Directory c Character device b Block device p Fifo (named pipe) uid is the user id for the target file, gid is the group id for the target file. The rest of the entries (major, minor, etc) apply to to device special files. A '-' may be used for blank entries.</p> </dd> <dt><strong><a name="makemime" class="item"><strong>makemime</strong></a></strong></dt> <dd> <p>makemime [OPTIONS] [FILE]...</p> <p>Create multipart MIME-encoded message from FILEs</p> <pre> -o FILE Output. Default: stdout -a HDR Add header(s). Examples: &quot;From: [email protected]&quot;, &quot;Date: `date -R`&quot; -c CT Content type. Default: application/octet-stream -C CS Charset. Default: us-ascii</pre> <p>Other options are silently ignored</p> </dd> <dt><strong><a name="man" class="item"><strong>man</strong></a></strong></dt> <dd> <p>man [-aw] [MANPAGE]...</p> <p>Format and display manual page</p> <pre> -a Display all pages -w Show page locations</pre> </dd> <dt><strong><a name="md5sum" class="item"><strong>md5sum</strong></a></strong></dt> <dd> <p>md5sum [-c[sw]] [FILE]...</p> <p>Print or check MD5 checksums</p> <pre> -c Check sums against list in FILEs -s Don't output anything, status code shows success -w Warn about improperly formatted checksum lines</pre> </dd> <dt><strong><a name="mdev" class="item"><strong>mdev</strong></a></strong></dt> <dd> <p>mdev [-s]</p> <p>mdev -s is to be run during boot to scan /sys and populate /dev.</p> <p><table cellspacing="0" cellpadding="0"><tr><td>Bare mdev is a kernel hotplug helper. To activate it: <tr><td><td>echo /sbin/mdev &gt;/proc/sys/kernel/hotplug</table></p> <p>It uses /etc/mdev.conf with lines [-][ENV=regex;]...DEVNAME UID:GID PERM [&gt;|=PATH]|[!] [@|$|*PROG] where DEVNAME is device name regex, @major,minor[-minor2], or environment variable regex. A common use of the latter is to load modules for hotplugged devices:</p> <pre> $MODALIAS=.* 0:0 660 @modprobe &quot;$MODALIAS&quot;</pre> <p>If /dev/mdev.seq file exists, mdev will wait for its value to match $SEQNUM variable. This prevents plug/unplug races. To activate this feature, create empty /dev/mdev.seq at boot.</p> <p>If /dev/mdev.log file exists, debug log will be appended to it.</p> </dd> <dt><strong><a name="mesg" class="item"><strong>mesg</strong></a></strong></dt> <dd> <p>mesg [y|n]</p> <p><table cellspacing="0" cellpadding="0"><tr><td>Control write access to your terminal <tr><td><td>y<td>Allow write access to your terminal <tr><td><td>n<td>Disallow write access to your terminal</table></p> </dd> <dt><strong><a name="microcom" class="item"><strong>microcom</strong></a></strong></dt> <dd> <p>microcom [-d DELAY] [-t TIMEOUT] [-s SPEED] [-X] TTY</p> <p>Copy bytes for stdin to TTY and from TTY to stdout</p> <pre> -d Wait up to DELAY ms for TTY output before sending every next byte to it -t Exit if both stdin and TTY are silent for TIMEOUT ms -s Set serial line to SPEED -X Disable special meaning of NUL and Ctrl-X from stdin</pre> </dd> <dt><strong><a name="mkdir" class="item"><strong>mkdir</strong></a></strong></dt> <dd> <p>mkdir [OPTIONS] DIRECTORY...</p> <p>Create DIRECTORY</p> <pre> -m MODE Mode -p No error if exists; make parent directories as needed</pre> </dd> <dt><strong><a name="mkdosfs" class="item"><strong>mkdosfs</strong></a></strong></dt> <dd> <p>mkdosfs [-v] [-n LABEL] BLOCKDEV [KBYTES]</p> <p>Make a FAT32 filesystem</p> <pre> -v Verbose -n LBL Volume label</pre> </dd> <dt><strong><a name="mke2fs" class="item"><strong>mke2fs</strong></a></strong></dt> <dd> <p>mke2fs [-Fn] [-b BLK_SIZE] [-i INODE_RATIO] [-I INODE_SIZE] [-m RESERVED_PERCENT] [-L LABEL] BLOCKDEV [KBYTES]</p> <pre> -b BLK_SIZE Block size, bytes -F Force -i RATIO Max number of files is filesystem_size / RATIO -I BYTES Inode size (min 128) -L LBL Volume label -m PERCENT Percent of blocks to reserve for admin -n Dry run</pre> </dd> <dt><strong><a name="mkfifo" class="item"><strong>mkfifo</strong></a></strong></dt> <dd> <p>mkfifo [-m MODE] NAME</p> <p>Create named pipe</p> <pre> -m MODE Mode (default a=rw)</pre> </dd> <dt><strong><a name="mkfs_ext2" class="item"><strong>mkfs.ext2</strong></a></strong></dt> <dd> <p>mkfs.ext2 [-Fn] [-b BLK_SIZE] [-i INODE_RATIO] [-I INODE_SIZE] [-m RESERVED_PERCENT] [-L LABEL] BLOCKDEV [KBYTES]</p> <pre> -b BLK_SIZE Block size, bytes -F Force -i RATIO Max number of files is filesystem_size / RATIO -I BYTES Inode size (min 128) -L LBL Volume label -m PERCENT Percent of blocks to reserve for admin -n Dry run</pre> </dd> <dt><strong><a name="mkfs_minix" class="item"><strong>mkfs.minix</strong></a></strong></dt> <dd> <p>mkfs.minix [-c | -l FILE] [-nXX] [-iXX] BLOCKDEV [KBYTES]</p> <p>Make a MINIX filesystem</p> <pre> -c Check device for bad blocks -n [14|30] Maximum length of filenames -i INODES Number of inodes for the filesystem -l FILE Read bad blocks list from FILE -v Make version 2 filesystem</pre> </dd> <dt><strong><a name="mkfs_vfat" class="item"><strong>mkfs.vfat</strong></a></strong></dt> <dd> <p>mkfs.vfat [-v] [-n LABEL] BLOCKDEV [KBYTES]</p> <p>Make a FAT32 filesystem</p> <pre> -v Verbose -n LBL Volume label</pre> </dd> <dt><strong><a name="mknod" class="item"><strong>mknod</strong></a></strong></dt> <dd> <p>mknod [-m MODE] NAME TYPE MAJOR MINOR</p> <p>Create a special file (block, character, or pipe)</p> <pre> -m MODE Creation mode (default a=rw) TYPE: b Block device c or u Character device p Named pipe (MAJOR and MINOR are ignored)</pre> </dd> <dt><strong><a name="mkpasswd" class="item"><strong>mkpasswd</strong></a></strong></dt> <dd> <p>mkpasswd [OPTIONS] [PASSWORD] [SALT]</p> <p>Crypt PASSWORD using <code>crypt(3)</code></p> <pre> -P,--password-fd=N Read password from fd N -m,--method=TYPE Encryption method -S,--salt=SALT</pre> </dd> <dt><strong><a name="mkswap" class="item"><strong>mkswap</strong></a></strong></dt> <dd> <p>mkswap [-L LBL] BLOCKDEV [KBYTES]</p> <p>Prepare BLOCKDEV to be used as swap partition</p> <pre> -L LBL Label</pre> </dd> <dt><strong><a name="mktemp" class="item"><strong>mktemp</strong></a></strong></dt> <dd> <p>mktemp [-dt] [-p DIR] [TEMPLATE]</p> <p>Create a temporary file with name based on TEMPLATE and print its name. TEMPLATE must end with XXXXXX (e.g. [/dir/]nameXXXXXX). Without TEMPLATE, -t tmp.XXXXXX is assumed.</p> <pre> -d Make directory, not file -q Fail silently on errors -t Prepend base directory name to TEMPLATE -p DIR Use DIR as a base directory (implies -t) -u Do not create anything; print a name</pre> <p>Base directory is: -p DIR, else $TMPDIR, else /tmp</p> </dd> <dt><strong><a name="modinfo" class="item"><strong>modinfo</strong></a></strong></dt> <dd> <p>modinfo [-adlp0] [-F keyword] MODULE</p> <pre> -a Shortcut for '-F author' -d Shortcut for '-F description' -l Shortcut for '-F license' -p Shortcut for '-F parm' -F keyword Keyword to look for -0 Separate output with NULs</pre> </dd> <dt><strong><a name="modprobe" class="item"><strong>modprobe</strong></a></strong></dt> <dd> <p>modprobe [-qfwrsv] MODULE [symbol=value]...</p> <pre> -r Remove MODULE (stacks) or do autoclean -q Quiet -v Verbose -f Force -w Wait for unload -s Report via syslog instead of stderr</pre> </dd> <dt><strong><a name="more" class="item"><strong>more</strong></a></strong></dt> <dd> <p>more [FILE]...</p> <p>View FILE (or stdin) one screenful at a time</p> </dd> <dt><strong><a name="mount" class="item"><strong>mount</strong></a></strong></dt> <dd> <p>mount [OPTIONS] [-o OPTS] DEVICE NODE</p> <p>Mount a filesystem. Filesystem autodetection requires /proc.</p> <pre> -a Mount all filesystems in fstab -f Dry run -v Verbose -r Read-only mount -w Read-write mount (default) -t FSTYPE[,...] Filesystem type(s) -O OPT Mount only filesystems with option OPT (-a only) -o OPT: loop Ignored (loop devices are autodetected) [a]sync Writes are [a]synchronous [no]atime Disable/enable updates to inode access times [no]diratime Disable/enable atime updates to directories [no]relatime Disable/enable atime updates relative to modification time [no]dev (Dis)allow use of special device files [no]exec (Dis)allow use of executable files [no]suid (Dis)allow set-user-id-root programs [r]shared Convert [recursively] to a shared subtree [r]slave Convert [recursively] to a slave subtree [r]private Convert [recursively] to a private subtree [un]bindable Make mount point [un]able to be bind mounted [r]bind Bind a file or directory [recursively] to another location move Relocate an existing mount point remount Remount a mounted filesystem, changing flags ro/rw Same as -r/-w</pre> <p>There are filesystem-specific -o flags.</p> </dd> <dt><strong><a name="mountpoint" class="item"><strong>mountpoint</strong></a></strong></dt> <dd> <p>mountpoint [-q] &lt;[-dn] DIR | -x DEVICE&gt;</p> <p>Check if the directory is a mountpoint</p> <pre> -q Quiet -d Print major/minor device number of the filesystem -n Print device name of the filesystem -x Print major/minor device number of the blockdevice</pre> </dd> <dt><strong><a name="mpstat" class="item"><strong>mpstat</strong></a></strong></dt> <dd> <p>mpstat [-A] [-I SUM|CPU|ALL|SCPU] [-u] [-P num|ALL] [INTERVAL [COUNT]]</p> <p>Per-processor statistics</p> <pre> -A Same as -I ALL -u -P ALL -I SUM|CPU|ALL|SCPU Report interrupt statistics -P num|ALL Processor to monitor -u Report CPU utilization</pre> </dd> <dt><strong><a name="mt" class="item"><strong>mt</strong></a></strong></dt> <dd> <p>mt [-f device] opcode value</p> <p>Control magnetic tape drive operation</p> <p>Available Opcodes:</p> <p>bsf bsfm bsr bss datacompression drvbuffer eof eom erase fsf fsfm fsr fss load lock mkpart nop offline ras1 ras2 ras3 reset retension rewind rewoffline seek setblk setdensity setpart tell unload unlock weof wset</p> </dd> <dt><strong><a name="mv" class="item"><strong>mv</strong></a></strong></dt> <dd> <p>mv [-fin] SOURCE DEST or: mv [-fin] SOURCE... DIRECTORY</p> <p>Rename SOURCE to DEST, or move SOURCE(s) to DIRECTORY</p> <pre> -f Don't prompt before overwriting -i Interactive, prompt before overwrite -n Don't overwrite an existing file</pre> </dd> <dt><strong><a name="nameif" class="item"><strong>nameif</strong></a></strong></dt> <dd> <p>nameif [-s] [-c FILE] [IFNAME SELECTOR]...</p> <p>Rename network interface while it in the down state. The device matched by SELECTOR is renamed to IFACE. SELECTOR can be a combination of:</p> <pre> driver=STRING bus=STRING phy_address=NUM [mac=]XX:XX:XX:XX:XX:XX</pre> <pre> -c FILE Configuration file (default: /etc/mactab) -s Log to syslog</pre> </dd> <dt><strong><a name="nanddump" class="item"><strong>nanddump</strong></a></strong></dt> <dd> <p>nanddump [-o] [-b] [-s ADDR] [-l LEN] [-f FILE] MTD_DEVICE</p> <p>Dump MTD_DEVICE</p> <pre> -o Dump oob data -b Omit bad block from the dump -s ADDR Start address -l LEN Length -f FILE Dump to file ('-' for stdout)</pre> </dd> <dt><strong><a name="nandwrite" class="item"><strong>nandwrite</strong></a></strong></dt> <dd> <p>nandwrite [-p] [-s ADDR] MTD_DEVICE [FILE]</p> <p>Write to MTD_DEVICE</p> <pre> -p Pad to page size -s ADDR Start address</pre> </dd> <dt><strong><a name="nbd_client" class="item"><strong>nbd-client</strong></a></strong></dt> <dd> <p>nbd-client HOST PORT BLOCKDEV</p> <p>Connect to HOST and provide a network block device on BLOCKDEV</p> </dd> <dt><strong><a name="nc" class="item"><strong>nc</strong></a></strong></dt> <dd> <p>nc [-iN] [-wN] [-l] [-p PORT] [-f FILE|IPADDR PORT] [-e PROG]</p> <p>Open a pipe to IP:PORT or FILE</p> <pre> -l Listen mode, for inbound connects (use -ll with -e for persistent server) -p PORT Local port -w SEC Connect timeout -i SEC Delay interval for lines sent -f FILE Use file (ala /dev/ttyS0) instead of network -e PROG Run PROG after connect</pre> </dd> <dt><strong><a name="netstat" class="item"><strong>netstat</strong></a></strong></dt> <dd> <p>netstat [-ral] [-tuwx] [-enWp]</p> <p>Display networking information</p> <pre> -r Routing table -a All sockets -l Listening sockets Else: connected sockets -t TCP sockets -u UDP sockets -w Raw sockets -x Unix sockets Else: all socket types -e Other/more information -n Don't resolve names -W Wide display -p Show PID/program name for sockets</pre> </dd> <dt><strong><a name="nice" class="item"><strong>nice</strong></a></strong></dt> <dd> <p>nice [-n ADJUST] [PROG ARGS]</p> <p>Change scheduling priority, run PROG</p> <pre> -n ADJUST Adjust priority by ADJUST</pre> </dd> <dt><strong><a name="nmeter" class="item"><strong>nmeter</strong></a></strong></dt> <dd> <p>nmeter [-d MSEC] FORMAT_STRING</p> <p>Monitor system in real time</p> <pre> -d MSEC Milliseconds between updates (default:1000)</pre> <p>Format specifiers:</p> <pre> %Nc or %[cN] CPU. N - bar size (default:10) (displays: S:system U:user N:niced D:iowait I:irq i:softirq) %[nINTERFACE] Network INTERFACE %m Allocated memory %[mf] Free memory %[mt] Total memory %s Allocated swap %f Number of used file descriptors %Ni Total/specific IRQ rate %x Context switch rate %p Forks %[pn] # of processes %b Block io %Nt Time (with N decimal points) %r Print &lt;cr&gt; instead of &lt;lf&gt; at EOL</pre> </dd> <dt><strong><a name="nohup" class="item"><strong>nohup</strong></a></strong></dt> <dd> <p>nohup PROG ARGS</p> <p>Run PROG immune to hangups, with output to a non-tty</p> </dd> <dt><strong><a name="nslookup" class="item"><strong>nslookup</strong></a></strong></dt> <dd> <p>nslookup [HOST] [SERVER]</p> <p>Query the nameserver for the IP address of the given HOST optionally using a specified DNS server</p> </dd> <dt><strong><a name="ntpd" class="item"><strong>ntpd</strong></a></strong></dt> <dd> <p>ntpd [-dnqNwl] [-S PROG] [-p PEER]...</p> <p>NTP client/server</p> <pre> -d Verbose -n Do not daemonize -q Quit after clock is set -N Run at high priority -w Do not set time (only query peers), implies -n -l Run as server on port 123 -S PROG Run PROG after stepping time, stratum change, and every 11 mins -p PEER Obtain time from PEER (may be repeated)</pre> </dd> <dt><strong><a name="od" class="item"><strong>od</strong></a></strong></dt> <dd> <p>od [-abcdfhilovxs] [-t TYPE] [-A RADIX] [-N SIZE] [-j SKIP] [-S MINSTR] [-w WIDTH] [FILE]...</p> <p>Print FILEs (or stdin) unambiguously, as octal bytes by default</p> </dd> <dt><strong><a name="openvt" class="item"><strong>openvt</strong></a></strong></dt> <dd> <p>openvt [-c N] [-sw] [PROG ARGS]</p> <p>Start PROG on a new virtual terminal</p> <pre> -c N Use specified VT -s Switch to the VT -w Wait for PROG to exit</pre> </dd> <dt><strong><a name="passwd" class="item"><strong>passwd</strong></a></strong></dt> <dd> <p>passwd [OPTIONS] [USER]</p> <p>Change USER's password (default: current user)</p> <pre> -a ALG Encryption method -d Set password to '' -l Lock (disable) account -u Unlock (enable) account</pre> </dd> <dt><strong><a name="patch" class="item"><strong>patch</strong></a></strong></dt> <dd> <p>patch [OPTIONS] [ORIGFILE [PATCHFILE]]</p> <pre> -p,--strip N Strip N leading components from file names -i,--input DIFF Read DIFF instead of stdin -R,--reverse Reverse patch -N,--forward Ignore already applied patches -E,--remove-empty-files Remove output files if they become empty</pre> </dd> <dt><strong><a name="pgrep" class="item"><strong>pgrep</strong></a></strong></dt> <dd> <p>pgrep [-flnovx] [-s SID|-P PPID|PATTERN]</p> <p>Display process(es) selected by regex PATTERN</p> <pre> -l Show command name too -f Match against entire command line -n Show the newest process only -o Show the oldest process only -v Negate the match -x Match whole name (not substring) -s Match session ID (0 for current) -P Match parent process ID</pre> </dd> <dt><strong><a name="pidof" class="item"><strong>pidof</strong></a></strong></dt> <dd> <p>pidof [OPTIONS] [NAME]...</p> <p>List PIDs of all processes with names that match NAMEs</p> <pre> -s Show only one PID -o PID Omit given pid Use %PPID to omit pid of pidof's parent</pre> </dd> <dt><strong><a name="ping" class="item"><strong>ping</strong></a></strong></dt> <dd> <p>ping [OPTIONS] HOST</p> <p>Send ICMP ECHO_REQUEST packets to network hosts</p> <pre> -4,-6 Force IP or IPv6 name resolution -c CNT Send only CNT pings -s SIZE Send SIZE data bytes in packets (default:56) -t TTL Set TTL -I IFACE/IP Use interface or IP address as source -W SEC Seconds to wait for the first response (default:10) (after all -c CNT packets are sent) -w SEC Seconds until ping exits (default:infinite) (can exit earlier with -c CNT) -q Quiet, only displays output at start and when finished</pre> </dd> <dt><strong><a name="ping6" class="item"><strong>ping6</strong></a></strong></dt> <dd> <p>ping6 [OPTIONS] HOST</p> <p>Send ICMP ECHO_REQUEST packets to network hosts</p> <pre> -c CNT Send only CNT pings -s SIZE Send SIZE data bytes in packets (default:56) -I IFACE/IP Use interface or IP address as source -q Quiet, only displays output at start and when finished</pre> </dd> <dt><strong><a name="pivot_root" class="item"><strong>pivot_root</strong></a></strong></dt> <dd> <p>pivot_root NEW_ROOT PUT_OLD</p> <p>Move the current root file system to PUT_OLD and make NEW_ROOT the new root file system</p> </dd> <dt><strong><a name="pkill" class="item"><strong>pkill</strong></a></strong></dt> <dd> <p>pkill [-l|-SIGNAL] [-fnovx] [-s SID|-P PPID|PATTERN]</p> <p>Send a signal to process(es) selected by regex PATTERN</p> <pre> -l List all signals -f Match against entire command line -n Signal the newest process only -o Signal the oldest process only -v Negate the match -x Match whole name (not substring) -s Match session ID (0 for current) -P Match parent process ID</pre> </dd> <dt><strong><a name="pmap" class="item"><strong>pmap</strong></a></strong></dt> <dd> <p>pmap [-xq] PID</p> <p>Display detailed process memory usage</p> <pre> -x Show details -q Quiet</pre> </dd> <dt><strong><a name="popmaildir" class="item"><strong>popmaildir</strong></a></strong></dt> <dd> <p>popmaildir [OPTIONS] MAILDIR [CONN_HELPER ARGS]</p> <p>Fetch content of remote mailbox to local maildir</p> <pre> -s Skip authorization -T Get messages with TOP instead of RETR -k Keep retrieved messages on the server -t SEC Network timeout -F &quot;PROG ARGS&quot; Filter program (may be repeated) -M &quot;PROG ARGS&quot; Delivery program</pre> <p>Fetch from plain POP3 server: popmaildir -k DIR nc pop3.server.com 110 &lt;user_and_pass.txt Fetch from SSLed POP3 server and delete fetched emails: popmaildir DIR -- openssl s_client -quiet -connect pop3.server.com:995 &lt;user_and_pass.txt</p> </dd> <dt><strong><a name="poweroff" class="item"><strong>poweroff</strong></a></strong></dt> <dd> <p>poweroff [-d DELAY] [-n] [-f]</p> <p>Halt and shut off power</p> <pre> -d SEC Delay interval -n Do not sync -f Force (don't go through init)</pre> </dd> <dt><strong><a name="powertop" class="item"><strong>powertop</strong></a></strong></dt> <dd> <p>powertop</p> <p>Analyze power consumption on Intel-based laptops</p> </dd> <dt><strong><a name="printenv" class="item"><strong>printenv</strong></a></strong></dt> <dd> <p>printenv [VARIABLE]...</p> <p>Print environment VARIABLEs. If no VARIABLE specified, print all.</p> </dd> <dt><strong><a name="printf" class="item"><strong>printf</strong></a></strong></dt> <dd> <p>printf FORMAT [ARG]...</p> <p>Format and print ARG(s) according to FORMAT (a-la C printf)</p> </dd> <dt><strong><a name="ps" class="item"><strong>ps</strong></a></strong></dt> <dd> <p>ps [-o COL1,COL2=HEADER] [-T]</p> <p>Show list of processes</p> <pre> -o COL1,COL2=HEADER Select columns for display -T Show threads</pre> </dd> <dt><strong><a name="pscan" class="item"><strong>pscan</strong></a></strong></dt> <dd> <p>pscan [-cb] [-p MIN_PORT] [-P MAX_PORT] [-t TIMEOUT] [-T MIN_RTT] HOST</p> <p>Scan a host, print all open ports</p> <pre> -c Show closed ports too -b Show blocked ports too -p Scan from this port (default 1) -P Scan up to this port (default 1024) -t Timeout (default 5000 ms) -T Minimum rtt (default 5 ms, increase for congested hosts)</pre> </dd> <dt><strong><a name="pstree" class="item"><strong>pstree</strong></a></strong></dt> <dd> <p>pstree [-p] [PID|USER]</p> <p>Display process tree, optionally start from USER or PID</p> <pre> -p Show pids</pre> </dd> <dt><strong><a name="pwd" class="item"><strong>pwd</strong></a></strong></dt> <dd> <p>pwd</p> <p>Print the full filename of the current working directory</p> </dd> <dt><strong><a name="pwdx" class="item"><strong>pwdx</strong></a></strong></dt> <dd> <p>pwdx PID...</p> <p>Show current directory for PIDs</p> </dd> <dt><strong><a name="raidautorun" class="item"><strong>raidautorun</strong></a></strong></dt> <dd> <p>raidautorun DEVICE</p> <p>Tell the kernel to automatically search and start RAID arrays</p> </dd> <dt><strong><a name="rdate" class="item"><strong>rdate</strong></a></strong></dt> <dd> <p>rdate [-sp] HOST</p> <p>Get and possibly set the system date/time from a remote HOST</p> <pre> -s Set the system date/time (default) -p Print the date/time</pre> </dd> <dt><strong><a name="rdev" class="item"><strong>rdev</strong></a></strong></dt> <dd> <p>rdev</p> <p>Print the device node associated with the filesystem mounted at '/'</p> </dd> <dt><strong><a name="readahead" class="item"><strong>readahead</strong></a></strong></dt> <dd> <p>readahead [FILE]...</p> <p>Preload FILEs to RAM</p> </dd> <dt><strong><a name="readlink" class="item"><strong>readlink</strong></a></strong></dt> <dd> <p>readlink [-fnv] FILE</p> <p>Display the value of a symlink</p> <pre> -f Canonicalize by following all symlinks -n Don't add newline -v Verbose</pre> </dd> <dt><strong><a name="readprofile" class="item"><strong>readprofile</strong></a></strong></dt> <dd> <p>readprofile [OPTIONS]</p> <pre> -m mapfile (Default: /boot/System.map) -p profile (Default: /proc/profile) -M NUM Set the profiling multiplier to NUM -i Print only info about the sampling step -v Verbose -a Print all symbols, even if count is 0 -b Print individual histogram-bin counts -s Print individual counters within functions -r Reset all the counters (root only) -n Disable byte order auto-detection</pre> </dd> <dt><strong><a name="realpath" class="item"><strong>realpath</strong></a></strong></dt> <dd> <p>realpath FILE...</p> <p>Return the absolute pathnames of given FILE</p> </dd> <dt><strong><a name="reboot" class="item"><strong>reboot</strong></a></strong></dt> <dd> <p>reboot [-d DELAY] [-n] [-f]</p> <p>Reboot the system</p> <pre> -d SEC Delay interval -n Do not sync -f Force (don't go through init)</pre> </dd> <dt><strong><a name="reformime" class="item"><strong>reformime</strong></a></strong></dt> <dd> <p>reformime [OPTIONS]</p> <p>Parse MIME-encoded message on stdin</p> <pre> -x PREFIX Extract content of MIME sections to files -X PROG ARGS Filter content of MIME sections through PROG Must be the last option</pre> <p>Other options are silently ignored</p> </dd> <dt><strong><a name="remove_shell" class="item"><strong>remove-shell</strong></a></strong></dt> <dd> <p>remove-shell SHELL...</p> <p>Remove SHELLs from /etc/shells</p> </dd> <dt><strong><a name="renice" class="item"><strong>renice</strong></a></strong></dt> <dd> <p>renice {{-n INCREMENT} | PRIORITY} [[-p | -g | -u] ID...]</p> <p>Change scheduling priority for a running process</p> <pre> -n Adjust current nice value (smaller is faster) -p Process id(s) (default) -g Process group id(s) -u Process user name(s) and/or id(s)</pre> </dd> <dt><strong><a name="reset" class="item"><strong>reset</strong></a></strong></dt> <dd> <p>reset</p> <p>Reset the screen</p> </dd> <dt><strong><a name="resize" class="item"><strong>resize</strong></a></strong></dt> <dd> <p>resize</p> <p>Resize the screen</p> </dd> <dt><strong><a name="rev" class="item"><strong>rev</strong></a></strong></dt> <dd> <p>rev [FILE]...</p> <p>Reverse lines of FILE</p> </dd> <dt><strong><a name="rm" class="item"><strong>rm</strong></a></strong></dt> <dd> <p>rm [-irf] FILE...</p> <p>Remove (unlink) FILEs</p> <pre> -i Always prompt before removing -f Never prompt -R,-r Recurse</pre> </dd> <dt><strong><a name="rmdir" class="item"><strong>rmdir</strong></a></strong></dt> <dd> <p>rmdir [OPTIONS] DIRECTORY...</p> <p>Remove DIRECTORY if it is empty</p> <pre> -p|--parents Include parents --ignore-fail-on-non-empty</pre> </dd> <dt><strong><a name="rmmod" class="item"><strong>rmmod</strong></a></strong></dt> <dd> <p>rmmod [-qfwrsv] MODULE [symbol=value]...</p> <pre> -r Remove MODULE (stacks) or do autoclean -q Quiet -v Verbose -f Force -w Wait for unload -s Report via syslog instead of stderr</pre> </dd> <dt><strong><a name="route" class="item"><strong>route</strong></a></strong></dt> <dd> <p>route [{add|del|delete}]</p> <p>Edit kernel routing tables</p> <pre> -n Don't resolve names -e Display other/more information -A inet{6} Select address family</pre> </dd> <dt><strong><a name="rpm" class="item"><strong>rpm</strong></a></strong></dt> <dd> <p>rpm -i PACKAGE.rpm; rpm -qp[ildc] PACKAGE.rpm</p> <p>Manipulate RPM packages</p> <p>Commands:</p> <pre> -i Install package -qp Query package -qpi Show information -qpl List contents -qpd List documents -qpc List config files</pre> </dd> <dt><strong><a name="rpm2cpio" class="item"><strong>rpm2cpio</strong></a></strong></dt> <dd> <p>rpm2cpio package.rpm</p> <p>Output a cpio archive of the rpm file</p> </dd> <dt><strong><a name="rtcwake" class="item"><strong>rtcwake</strong></a></strong></dt> <dd> <p>rtcwake [-a | -l | -u] [-d DEV] [-m MODE] [-s SEC | -t TIME]</p> <p>Enter a system sleep state until specified wakeup time</p> <pre> -a,--auto Read clock mode from adjtime -l,--local Clock is set to local time -u,--utc Clock is set to UTC time -d,--device=DEV Specify the RTC device -m,--mode=MODE Set the sleep state (default: standby) -s,--seconds=SEC Set the timeout in SEC seconds from now -t,--time=TIME Set the timeout to TIME seconds from epoch</pre> </dd> <dt><strong><a name="run_parts" class="item"><strong>run-parts</strong></a></strong></dt> <dd> <p>run-parts [-a ARG]... [-u UMASK] [--reverse] [--test] [--exit-on-error] [--list] DIRECTORY</p> <p>Run a bunch of scripts in DIRECTORY</p> <pre> -a ARG Pass ARG as argument to scripts -u UMASK Set UMASK before running scripts --reverse Reverse execution order --test Dry run --exit-on-error Exit if a script exits with non-zero --list Print names of matching files even if they are not executable</pre> </dd> <dt><strong><a name="runlevel" class="item"><strong>runlevel</strong></a></strong></dt> <dd> <p>runlevel [FILE]</p> <p>Find the current and previous system runlevel</p> <p>If no utmp FILE exists or if no runlevel record can be found, print &quot;unknown&quot;</p> </dd> <dt><strong><a name="runsv" class="item"><strong>runsv</strong></a></strong></dt> <dd> <p>runsv DIR</p> <p>Start and monitor a service and optionally an appendant log service</p> </dd> <dt><strong><a name="runsvdir" class="item"><strong>runsvdir</strong></a></strong></dt> <dd> <p>runsvdir [-P] [-s SCRIPT] DIR</p> <p>Start a runsv process for each subdirectory. If it exits, restart it.</p> <pre> -P Put each runsv in a new session -s SCRIPT Run SCRIPT &lt;signo&gt; after signal is processed</pre> </dd> <dt><strong><a name="rx" class="item"><strong>rx</strong></a></strong></dt> <dd> <p>rx FILE</p> <p>Receive a file using the xmodem protocol</p> </dd> <dt><strong><a name="script" class="item"><strong>script</strong></a></strong></dt> <dd> <p>script [-afqt] [-c PROG] [OUTFILE]</p> <pre> -a Append output -c PROG Run PROG, not shell -f Flush output after each write -q Quiet -t Send timing to stderr</pre> </dd> <dt><strong><a name="scriptreplay" class="item"><strong>scriptreplay</strong></a></strong></dt> <dd> <p>scriptreplay timingfile [typescript [divisor]]</p> <p>Play back typescripts, using timing information</p> </dd> <dt><strong><a name="sed" class="item"><strong>sed</strong></a></strong></dt> <dd> <p>sed [-inrE] [-f FILE]... [-e CMD]... [FILE]... or: sed [-inrE] CMD [FILE]...</p> <pre> -e CMD Add CMD to sed commands to be executed -f FILE Add FILE contents to sed commands to be executed -i[SFX] Edit files in-place (otherwise sends to stdout) Optionally back files up, appending SFX -n Suppress automatic printing of pattern space -r,-E Use extended regex syntax</pre> <p>If no -e or -f, the first non-option argument is the sed command string. Remaining arguments are input files (stdin if none).</p> </dd> <dt><strong><a name="sendmail" class="item"><strong>sendmail</strong></a></strong></dt> <dd> <p>sendmail [OPTIONS] [RECIPIENT_EMAIL]...</p> <p>Read email from stdin and send it</p> <p>Standard options:</p> <pre> -t Read additional recipients from message body -f SENDER Sender (required) -o OPTIONS Various options. -oi implied, others are ignored -i -oi synonym. implied and ignored</pre> <p>Busybox specific options:</p> <pre> -v Verbose -w SECS Network timeout -H 'PROG ARGS' Run connection helper Examples: -H 'exec openssl s_client -quiet -tls1 -starttls smtp -connect smtp.gmail.com:25' &lt;email.txt [4&lt;username_and_passwd.txt | -auUSER -apPASS] -H 'exec openssl s_client -quiet -tls1 -connect smtp.gmail.com:465' &lt;email.txt [4&lt;username_and_passwd.txt | -auUSER -apPASS] -S HOST[:PORT] Server -auUSER Username for AUTH LOGIN -apPASS Password for AUTH LOGIN</pre> <p>Other options are silently ignored; -oi -t is implied Use makemime to create emails with attachments</p> </dd> <dt><strong><a name="seq" class="item"><strong>seq</strong></a></strong></dt> <dd> <p>seq [-w] [-s SEP] [FIRST [INC]] LAST</p> <p>Print numbers from FIRST to LAST, in steps of INC. FIRST, INC default to 1.</p> <pre> -w Pad to last with leading zeros -s SEP String separator</pre> </dd> <dt><strong><a name="setarch" class="item"><strong>setarch</strong></a></strong></dt> <dd> <p>setarch personality PROG ARGS</p> <p>Personality may be:</p> <pre> linux32 Set 32bit uname emulation linux64 Set 64bit uname emulation</pre> </dd> <dt><strong><a name="setconsole" class="item"><strong>setconsole</strong></a></strong></dt> <dd> <p>setconsole [-r|--reset] [DEVICE]</p> <p>Redirect system console output to DEVICE (default: /dev/tty)</p> <pre> -r Reset output to /dev/console</pre> </dd> <dt><strong><a name="setfont" class="item"><strong>setfont</strong></a></strong></dt> <dd> <p>setfont FONT [-m MAPFILE] [-C TTY]</p> <p>Load a console font</p> <pre> -m MAPFILE Load console screen map -C TTY Affect TTY instead of /dev/tty</pre> </dd> <dt><strong><a name="setkeycodes" class="item"><strong>setkeycodes</strong></a></strong></dt> <dd> <p>setkeycodes SCANCODE KEYCODE...</p> <p>Set entries into the kernel's scancode-to-keycode map, allowing unusual keyboards to generate usable keycodes.</p> <p>SCANCODE may be either xx or e0xx (hexadecimal), and KEYCODE is given in decimal.</p> </dd> <dt><strong><a name="setlogcons" class="item"><strong>setlogcons</strong></a></strong></dt> <dd> <p>setlogcons N</p> <p>Redirect the kernel output to console N (0 for current)</p> </dd> <dt><strong><a name="setserial" class="item"><strong>setserial</strong></a></strong></dt> <dd> <p>setserial [-gabGvzV] DEVICE [PARAMETER [ARG]]...</p> <p>Request or set Linux serial port information</p> <pre> -g Interpret parameters as list of devices for reporting -a Print all available information -b Print summary information -G Print in form which can be fed back to setserial as command line parameters -z Zero out serial flags before setting -v Verbose</pre> <p><table cellspacing="0" cellpadding="0"><tr><td>Parameters: (* = takes an argument, ^ = can be turned off by preceding ^) <tr><td><td>*port, *irq, *divisor, *uart, *baud_base, *close_delay, *closing_wait, <tr><td><td>^fourport, ^auto_irq, ^skip_test, ^sak, ^session_lockout, ^pgrp_lockout, <tr><td><td>^callout_nohup, ^split_termios, ^hup_notify, ^low_latency, autoconfig, <tr><td><td>spd_normal, spd_hi, spd_vhi, spd_shi, spd_warp, spd_cust</table></p> <p>UART types:</p> <pre> unknown, 8250, 16450, 16550, 16550A, Cirrus, 16650, 16650V2, 16750, 16950, 16954, 16654, 16850, RSA, NS16550A, XSCALE, RM9000, OCTEON, AR7, U6_16550A</pre> </dd> <dt><strong><a name="setsid" class="item"><strong>setsid</strong></a></strong></dt> <dd> <p>setsid PROG ARGS</p> <p>Run PROG in a new session. PROG will have no controlling terminal and will not be affected by keyboard signals (Ctrl-C etc). See <a href="#setsid"><code>setsid(2)</code></a> for details.</p> </dd> <dt><strong><a name="setuidgid" class="item"><strong>setuidgid</strong></a></strong></dt> <dd> <p>setuidgid USER PROG ARGS</p> <p>Set uid and gid to USER's uid and gid, drop supplementary group ids, run PROG</p> </dd> <dt><strong><a name="sh" class="item"><strong>sh</strong></a></strong></dt> <dd> <p>sh [-/+OPTIONS] [-/+o OPT]... [-c 'SCRIPT' [ARG0 [ARGS]] / FILE [ARGS]]</p> <p>Unix shell interpreter</p> </dd> <dt><strong><a name="sha1sum" class="item"><strong>sha1sum</strong></a></strong></dt> <dd> <p>sha1sum [-c[sw]] [FILE]...</p> <p>Print or check SHA1 checksums</p> <pre> -c Check sums against list in FILEs -s Don't output anything, status code shows success -w Warn about improperly formatted checksum lines</pre> </dd> <dt><strong><a name="sha256sum" class="item"><strong>sha256sum</strong></a></strong></dt> <dd> <p>sha256sum [-c[sw]] [FILE]...</p> <p>Print or check SHA256 checksums</p> <pre> -c Check sums against list in FILEs -s Don't output anything, status code shows success -w Warn about improperly formatted checksum lines</pre> </dd> <dt><strong><a name="sha3sum" class="item"><strong>sha3sum</strong></a></strong></dt> <dd> <p>sha3sum [-c[sw]] [FILE]...</p> <p>Print or check SHA3-512 checksums</p> <pre> -c Check sums against list in FILEs -s Don't output anything, status code shows success -w Warn about improperly formatted checksum lines</pre> </dd> <dt><strong><a name="sha512sum" class="item"><strong>sha512sum</strong></a></strong></dt> <dd> <p>sha512sum [-c[sw]] [FILE]...</p> <p>Print or check SHA512 checksums</p> <pre> -c Check sums against list in FILEs -s Don't output anything, status code shows success -w Warn about improperly formatted checksum lines</pre> </dd> <dt><strong><a name="showkey" class="item"><strong>showkey</strong></a></strong></dt> <dd> <p>showkey [-a | -k | -s]</p> <p>Show keys pressed</p> <pre> -a Display decimal/octal/hex values of the keys -k Display interpreted keycodes (default) -s Display raw scan-codes</pre> </dd> <dt><strong><a name="slattach" class="item"><strong>slattach</strong></a></strong></dt> <dd> <p>slattach [-cehmLF] [-s SPEED] [-p PROTOCOL] DEVICE</p> <p>Attach network interface(s) to serial line(s)</p> <pre> -p PROT Set protocol (slip, cslip, slip6, clisp6 or adaptive) -s SPD Set line speed -e Exit after initializing device -h Exit when the carrier is lost -c PROG Run PROG when the line is hung up -m Do NOT initialize the line in raw 8 bits mode -L Enable 3-wire operation -F Disable RTS/CTS flow control</pre> </dd> <dt><strong><a name="sleep" class="item"><strong>sleep</strong></a></strong></dt> <dd> <p>sleep [N]...</p> <p>Pause for a time equal to the total of the args given, where each arg can have an optional suffix of (s)econds, (m)inutes, (h)ours, or (d)ays</p> </dd> <dt><strong><a name="smemcap" class="item"><strong>smemcap</strong></a></strong></dt> <dd> <p>smemcap &gt;SMEMDATA.TAR</p> <p>Collect memory usage data in /proc and write it to stdout</p> </dd> <dt><strong><a name="softlimit" class="item"><strong>softlimit</strong></a></strong></dt> <dd> <p><table cellspacing="0" cellpadding="0"><tr><td>softlimit [-a BYTES] [-m BYTES] [-d BYTES] [-s BYTES] [-l BYTES] <tr><td><td>[-f BYTES] [-c BYTES] [-r BYTES] [-o N] [-p N] [-t N] <tr><td><td>PROG ARGS</table></p> <p>Set soft resource limits, then run PROG</p> <pre> -a BYTES Limit total size of all segments -m BYTES Same as -d BYTES -s BYTES -l BYTES -a BYTES -d BYTES Limit data segment -s BYTES Limit stack segment -l BYTES Limit locked memory size -o N Limit number of open files per process -p N Limit number of processes per uid Options controlling file sizes:</pre> <pre> -f BYTES Limit output file sizes -c BYTES Limit core file size Efficiency opts:</pre> <pre> -r BYTES Limit resident set size -t N Limit CPU time, process receives a SIGXCPU after N seconds</pre> </dd> <dt><strong><a name="sort" class="item"><strong>sort</strong></a></strong></dt> <dd> <p>sort [-nrugMcszbdfimSTokt] [-o FILE] [-k start[.offset][opts][,end[.offset][opts]] [-t CHAR] [FILE]...</p> <p>Sort lines of text</p> <pre> -b Ignore leading blanks -c Check whether input is sorted -d Dictionary order (blank or alphanumeric only) -f Ignore case -g General numerical sort -i Ignore unprintable characters -k Sort key -M Sort month -n Sort numbers -o Output to file -k Sort by key -t CHAR Key separator -r Reverse sort order -s Stable (don't sort ties alphabetically) -u Suppress duplicate lines -z Lines are terminated by NUL, not newline -mST Ignored for GNU compatibility</pre> </dd> <dt><strong><a name="split" class="item"><strong>split</strong></a></strong></dt> <dd> <p>split [OPTIONS] [INPUT [PREFIX]]</p> <pre> -b N[k|m] Split by N (kilo|mega)bytes -l N Split by N lines -a N Use N letters as suffix</pre> </dd> <dt><strong><a name="start_stop_daemon" class="item"><strong>start-stop-daemon</strong></a></strong></dt> <dd> <p>start-stop-daemon [OPTIONS] [-S|-K] ... [-- ARGS...]</p> <p>Search for matching processes, and then -K: stop all matching processes. -S: start a process unless a matching process is found.</p> <p>Process matching:</p> <pre> -u,--user USERNAME|UID Match only this user's processes -n,--name NAME Match processes with NAME in comm field in /proc/PID/stat -x,--exec EXECUTABLE Match processes with this command in /proc/PID/{exe,cmdline} -p,--pidfile FILE Match a process with PID from the file All specified conditions must match -S only: -x,--exec EXECUTABLE Program to run -a,--startas NAME Zeroth argument -b,--background Background -N,--nicelevel N Change nice level -c,--chuid USER[:[GRP]] Change to user/group -m,--make-pidfile Write PID to the pidfile specified by -p -K only: -s,--signal SIG Signal to send -t,--test Match only, exit with 0 if a process is found Other:</pre> <pre> -o,--oknodo Exit with status 0 if nothing is done -v,--verbose Verbose -q,--quiet Quiet</pre> </dd> <dt><strong><a name="stat" class="item"><strong>stat</strong></a></strong></dt> <dd> <p>stat [OPTIONS] FILE...</p> <p>Display file (default) or filesystem status</p> <pre> -c fmt Use the specified format -f Display filesystem status -L Follow links -t Display info in terse form</pre> <p>Valid format sequences for files:</p> <pre> %a Access rights in octal %A Access rights in human readable form %b Number of blocks allocated (see %B) %B The size in bytes of each block reported by %b %d Device number in decimal %D Device number in hex %f Raw mode in hex %F File type %g Group ID of owner %G Group name of owner %h Number of hard links %i Inode number %n File name %N File name, with -&gt; TARGET if symlink %o I/O block size %s Total size, in bytes %t Major device type in hex %T Minor device type in hex %u User ID of owner %U User name of owner %x Time of last access %X Time of last access as seconds since Epoch %y Time of last modification %Y Time of last modification as seconds since Epoch %z Time of last change %Z Time of last change as seconds since Epoch</pre> <p>Valid format sequences for file systems:</p> <pre> %a Free blocks available to non-superuser %b Total data blocks in file system %c Total file nodes in file system %d Free file nodes in file system %f Free blocks in file system %i File System ID in hex %l Maximum length of filenames %n File name %s Block size (for faster transfer) %S Fundamental block size (for block counts) %t Type in hex %T Type in human readable form</pre> </dd> <dt><strong><a name="strings" class="item"><strong>strings</strong></a></strong></dt> <dd> <p>strings [-afo] [-n LEN] [FILE]...</p> <p>Display printable strings in a binary file</p> <pre> -a Scan whole file (default) -f Precede strings with filenames -n LEN At least LEN characters form a string (default 4) -o Precede strings with decimal offsets</pre> </dd> <dt><strong><a name="stty" class="item"><strong>stty</strong></a></strong></dt> <dd> <p>stty [-a|g] [-F DEVICE] [SETTING]...</p> <p>Without arguments, prints baud rate, line discipline, and deviations from stty sane</p> <pre> -F DEVICE Open device instead of stdin -a Print all current settings in human-readable form -g Print in stty-readable form [SETTING] See manpage</pre> </dd> <dt><strong><a name="su" class="item"><strong>su</strong></a></strong></dt> <dd> <p>su [OPTIONS] [-] [USER]</p> <p>Run shell under USER (by default, root)</p> <pre> -,-l Clear environment, run shell as login shell -p,-m Do not set new $HOME, $SHELL, $USER, $LOGNAME -c CMD Command to pass to 'sh -c' -s SH Shell to use instead of user's default</pre> </dd> <dt><strong><a name="sulogin" class="item"><strong>sulogin</strong></a></strong></dt> <dd> <p>sulogin [-t N] [TTY]</p> <p>Single user login</p> <pre> -t N Timeout</pre> </dd> <dt><strong><a name="sum" class="item"><strong>sum</strong></a></strong></dt> <dd> <p>sum [-rs] [FILE]...</p> <p>Checksum and count the blocks in a file</p> <pre> -r Use BSD sum algorithm (1K blocks) -s Use System V sum algorithm (512byte blocks)</pre> </dd> <dt><strong><a name="sv" class="item"><strong>sv</strong></a></strong></dt> <dd> <p>sv [-v] [-w SEC] CMD SERVICE_DIR...</p> <p>Control services monitored by runsv supervisor. Commands (only first character is enough):</p> <p>status: query service status up: if service isn't running, start it. If service stops, restart it once: like 'up', but if service stops, don't restart it down: send TERM and CONT signals. If ./run exits, start ./finish if it exists. After it stops, don't restart service exit: send TERM and CONT signals to service and log service. If they exit, runsv exits too pause, cont, hup, alarm, interrupt, quit, 1, 2, term, kill: send STOP, CONT, HUP, ALRM, INT, QUIT, USR1, USR2, TERM, KILL signal to service</p> </dd> <dt><strong><a name="svlogd" class="item"><strong>svlogd</strong></a></strong></dt> <dd> <p>svlogd [-ttv] [-r C] [-R CHARS] [-l MATCHLEN] [-b BUFLEN] DIR...</p> <p>Continuously read log data from stdin and write to rotated log files in DIRs</p> <p>DIR/config file modifies behavior: sSIZE - when to rotate logs nNUM - number of files to retain !PROG - process rotated log with PROG +,-PATTERN - (de)select line for logging E,ePATTERN - (de)select line for stderr</p> </dd> <dt><strong><a name="swapoff" class="item"><strong>swapoff</strong></a></strong></dt> <dd> <p>swapoff [-a] [DEVICE]</p> <p>Stop swapping on DEVICE</p> <pre> -a Stop swapping on all swap devices</pre> </dd> <dt><strong><a name="swapon" class="item"><strong>swapon</strong></a></strong></dt> <dd> <p>swapon [-a] [-p PRI] [DEVICE]</p> <p>Start swapping on DEVICE</p> <pre> -a Start swapping on all swap devices -p PRI Set swap device priority</pre> </dd> <dt><strong><a name="switch_root" class="item"><strong>switch_root</strong></a></strong></dt> <dd> <p>switch_root [-c /dev/console] NEW_ROOT NEW_INIT [ARGS]</p> <p>Free initramfs and switch to another root fs:</p> <p>chroot to NEW_ROOT, delete all in /, move NEW_ROOT to /, execute NEW_INIT. PID must be 1. NEW_ROOT must be a mountpoint.</p> <pre> -c DEV Reopen stdio to DEV after switch</pre> </dd> <dt><strong><a name="sync" class="item"><strong>sync</strong></a></strong></dt> <dd> <p>sync</p> <p>Write all buffered blocks to disk</p> </dd> <dt><strong><a name="sysctl" class="item"><strong>sysctl</strong></a></strong></dt> <dd> <p>sysctl [OPTIONS] [KEY[=VALUE]]...</p> <p>Show/set kernel parameters</p> <pre> -e Don't warn about unknown keys -n Don't show key names -a Show all values -w Set values -p FILE Set values from FILE (default /etc/sysctl.conf) -q Set values silently</pre> </dd> <dt><strong><a name="syslogd" class="item"><strong>syslogd</strong></a></strong></dt> <dd> <p>syslogd [OPTIONS]</p> <p>System logging utility</p> <pre> -n Run in foreground -O FILE Log to FILE (default:/var/log/messages) -l N Log only messages more urgent than prio N (1-8) -S Smaller output -s SIZE Max size (KB) before rotation (default:200KB, 0=off) -b N N rotated logs to keep (default:1, max=99, 0=purge) -R HOST[:PORT] Log to HOST:PORT (default PORT:514) -L Log locally and via network (default is network only if -R) -D Drop duplicates -C[size_kb] Log to shared mem buffer (use logread to read it) -f FILE Use FILE as config (default:/etc/syslog.conf) -K Log to kernel printk buffer (use dmesg to read it)</pre> </dd> <dt><strong><a name="tac" class="item"><strong>tac</strong></a></strong></dt> <dd> <p>tac [FILE]...</p> <p>Concatenate FILEs and print them in reverse</p> </dd> <dt><strong><a name="tail" class="item"><strong>tail</strong></a></strong></dt> <dd> <p>tail [OPTIONS] [FILE]...</p> <p>Print last 10 lines of each FILE (or stdin) to stdout. With more than one FILE, precede each with a filename header.</p> <pre> -f Print data as file grows -s SECONDS Wait SECONDS between reads with -f -n N[kbm] Print last N lines -n +N[kbm] Start on Nth line and print the rest -c [+]N[kbm] Print last N bytes -q Never print headers -v Always print headers</pre> <p>N may be suffixed by k (x1024), b (x512), or m (x1024^2).</p> </dd> <dt><strong><a name="tar" class="item"><strong>tar</strong></a></strong></dt> <dd> <p>tar -[cxtzJjahmvO] [-X FILE] [-T FILE] [-f TARFILE] [-C DIR] [FILE]...</p> <p>Create, extract, or list files from a tar file</p> <p>Operation:</p> <pre> c Create x Extract t List f Name of TARFILE ('-' for stdin/out) C Change to DIR before operation v Verbose z (De)compress using gzip J (De)compress using xz j (De)compress using bzip2 a (De)compress using lzma O Extract to stdout h Follow symlinks m Don't restore mtime exclude File to exclude X File with names to exclude T File with names to include</pre> </dd> <dt><strong><a name="tcpsvd" class="item"><strong>tcpsvd</strong></a></strong></dt> <dd> <p>tcpsvd [-hEv] [-c N] [-C N[:MSG]] [-b N] [-u USER] [-l NAME] IP PORT PROG</p> <p>Create TCP socket, bind to IP:PORT and listen for incoming connection. Run PROG for each connection.</p> <pre> IP IP to listen on, 0 = all PORT Port to listen on PROG ARGS Program to run -l NAME Local hostname (else looks up local hostname in DNS) -u USER[:GRP] Change to user/group after bind -c N Handle up to N connections simultaneously -b N Allow a backlog of approximately N TCP SYNs -C N[:MSG] Allow only up to N connections from the same IP New connections from this IP address are closed immediately. MSG is written to the peer before close -h Look up peer's hostname -E Don't set up environment variables -v Verbose</pre> </dd> <dt><strong><a name="tee" class="item"><strong>tee</strong></a></strong></dt> <dd> <p>tee [-ai] [FILE]...</p> <p>Copy stdin to each FILE, and also to stdout</p> <pre> -a Append to the given FILEs, don't overwrite -i Ignore interrupt signals (SIGINT)</pre> </dd> <dt><strong><a name="telnet" class="item"><strong>telnet</strong></a></strong></dt> <dd> <p>telnet [-a] [-l USER] HOST [PORT]</p> <p>Connect to telnet server</p> <pre> -a Automatic login with $USER variable -l USER Automatic login as USER</pre> </dd> <dt><strong><a name="telnetd" class="item"><strong>telnetd</strong></a></strong></dt> <dd> <p>telnetd [OPTIONS]</p> <p>Handle incoming telnet connections</p> <pre> -l LOGIN Exec LOGIN on connect -f ISSUE_FILE Display ISSUE_FILE instead of /etc/issue -K Close connection as soon as login exits (normally wait until all programs close slave pty) -p PORT Port to listen on -b ADDR[:PORT] Address to bind to -F Run in foreground -i Inetd mode -w SEC Inetd 'wait' mode, linger time SEC -S Log to syslog (implied by -i or without -F and -w)</pre> </dd> <dt><strong><a name="test" class="item"><strong>test</strong></a></strong></dt> <dd> <p>test EXPRESSION ]</p> <p>Check file types, compare values etc. Return a 0/1 exit code depending on logical value of EXPRESSION</p> </dd> <dt><strong><a name="tftp" class="item"><strong>tftp</strong></a></strong></dt> <dd> <p>tftp [OPTIONS] HOST [PORT]</p> <p>Transfer a file from/to tftp server</p> <pre> -l FILE Local FILE -r FILE Remote FILE -g Get file -p Put file -b SIZE Transfer blocks of SIZE octets</pre> </dd> <dt><strong><a name="tftpd" class="item"><strong>tftpd</strong></a></strong></dt> <dd> <p>tftpd [-cr] [-u USER] [DIR]</p> <p>Transfer a file on tftp client's request</p> <p>tftpd should be used as an inetd service. tftpd's line for inetd.conf: 69 dgram udp nowait root tftpd tftpd -l /files/to/serve It also can be ran from udpsvd:</p> <pre> udpsvd -vE 0.0.0.0 69 tftpd /files/to/serve</pre> <pre> -r Prohibit upload -c Allow file creation via upload -u Access files as USER -l Log to syslog (inetd mode requires this)</pre> </dd> <dt><strong><a name="time" class="item"><strong>time</strong></a></strong></dt> <dd> <p>time [-v] PROG ARGS</p> <p>Run PROG, display resource usage when it exits</p> <pre> -v Verbose</pre> </dd> <dt><strong><a name="timeout" class="item"><strong>timeout</strong></a></strong></dt> <dd> <p>timeout [-t SECS] [-s SIG] PROG ARGS</p> <p>Runs PROG. Sends SIG to it if it is not gone in SECS seconds. Defaults: SECS: 10, SIG: TERM.</p> </dd> <dt><strong><a name="top" class="item"><strong>top</strong></a></strong></dt> <dd> <p>top [-b] [-nCOUNT] [-dSECONDS] [-m]</p> <p>Provide a view of process activity in real time. Read the status of all processes from /proc each SECONDS and display a screenful of them. Keys:</p> <pre> N/M/P/T: show CPU usage, sort by pid/mem/cpu/time S: show memory R: reverse sort H: toggle threads, 1: toggle SMP Q,^C: exit</pre> <p>Options:</p> <pre> -b Batch mode -n N Exit after N iterations -d N Delay between updates -m Same as 's' key</pre> </dd> <dt><strong><a name="touch" class="item"><strong>touch</strong></a></strong></dt> <dd> <p>touch [-c] [-d DATE] [-t DATE] [-r FILE] FILE...</p> <p>Update the last-modified date on the given FILE[s]</p> <pre> -c Don't create files -h Don't follow links -d DT Date/time to use -t DT Date/time to use -r FILE Use FILE's date/time</pre> </dd> <dt><strong><a name="tr" class="item"><strong>tr</strong></a></strong></dt> <dd> <p>tr [-cds] STRING1 [STRING2]</p> <p>Translate, squeeze, or delete characters from stdin, writing to stdout</p> <pre> -c Take complement of STRING1 -d Delete input characters coded STRING1 -s Squeeze multiple output characters of STRING2 into one character</pre> </dd> <dt><strong><a name="traceroute" class="item"><strong>traceroute</strong></a></strong></dt> <dd> <p><table cellspacing="0" cellpadding="0"><tr><td>traceroute [-46FIldnrv] [-f 1ST_TTL] [-m MAXTTL] [-p PORT] [-q PROBES] <tr><td><td>[-s SRC_IP] [-t TOS] [-w WAIT_SEC] [-g GATEWAY] [-i IFACE] <tr><td><td>[-z PAUSE_MSEC] HOST [BYTES]</table></p> <p>Trace the route to HOST</p> <pre> -4,-6 Force IP or IPv6 name resolution -F Set the don't fragment bit -I Use ICMP ECHO instead of UDP datagrams -l Display the TTL value of the returned packet -d Set SO_DEBUG options to socket -n Print numeric addresses -r Bypass routing tables, send directly to HOST -v Verbose -m Max time-to-live (max number of hops) -p Base UDP port number used in probes (default 33434) -q Number of probes per TTL (default 3) -s IP address to use as the source address -t Type-of-service in probe packets (default 0) -w Time in seconds to wait for a response (default 3) -g Loose source route gateway (8 max)</pre> </dd> <dt><strong><a name="traceroute6" class="item"><strong>traceroute6</strong></a></strong></dt> <dd> <p><table cellspacing="0" cellpadding="0"><tr><td>traceroute6 [-dnrv] [-m MAXTTL] [-p PORT] [-q PROBES] <tr><td><td>[-s SRC_IP] [-t TOS] [-w WAIT_SEC] [-i IFACE] <tr><td><td>HOST [BYTES]</table></p> <p>Trace the route to HOST</p> <pre> -d Set SO_DEBUG options to socket -n Print numeric addresses -r Bypass routing tables, send directly to HOST -v Verbose -m Max time-to-live (max number of hops) -p Base UDP port number used in probes (default is 33434) -q Number of probes per TTL (default 3) -s IP address to use as the source address -t Type-of-service in probe packets (default 0) -w Time in seconds to wait for a response (default 3)</pre> </dd> <dt><strong><a name="true" class="item"><strong>true</strong></a></strong></dt> <dd> <p>true</p> <p>Return an exit code of TRUE (0)</p> </dd> <dt><strong><a name="tty" class="item"><strong>tty</strong></a></strong></dt> <dd> <p>tty</p> <p>Print file name of stdin's terminal</p> <pre> -s Print nothing, only return exit status</pre> </dd> <dt><strong><a name="ttysize" class="item"><strong>ttysize</strong></a></strong></dt> <dd> <p>ttysize [w] [h]</p> <p>Print dimension(s) of stdin's terminal, on error return 80x25</p> </dd> <dt><strong><a name="tunctl" class="item"><strong>tunctl</strong></a></strong></dt> <dd> <p>tunctl [-f device] ([-t name] | -d name) [-u owner] [-g group] [-b]</p> <p>Create or delete tun interfaces</p> <pre> -f name tun device (/dev/net/tun) -t name Create iface 'name' -d name Delete iface 'name' -u owner Set iface owner -g group Set iface group -b Brief output</pre> </dd> <dt><strong><a name="udhcpc" class="item"><strong>udhcpc</strong></a></strong></dt> <dd> <p><table cellspacing="0" cellpadding="0"><tr><td>udhcpc [-fbqvaRB] [-t N] [-T SEC] [-A SEC/-n] <tr><td><td>[-i IFACE] [-s PROG] [-p PIDFILE] <tr><td><td>[-oC] [-r IP] [-V VENDOR] [-F NAME] [-x OPT:VAL]... [-O OPT]...</table></p> <pre> -i,--interface IFACE Interface to use (default eth0) -s,--script PROG Run PROG at DHCP events (default /usr/share/udhcpc/default.script) -p,--pidfile FILE Create pidfile -B,--broadcast Request broadcast replies -t,--retries N Send up to N discover packets (default 3) -T,--timeout SEC Pause between packets (default 3) -A,--tryagain SEC Wait if lease is not obtained (default 20) -n,--now Exit if lease is not obtained -q,--quit Exit after obtaining lease -R,--release Release IP on exit -f,--foreground Run in foreground -b,--background Background if lease is not obtained -S,--syslog Log to syslog too -a,--arping Use arping to validate offered address -r,--request IP Request this IP address -o,--no-default-options Don't request any options (unless -O is given) -O,--request-option OPT Request option OPT from server (cumulative) -x OPT:VAL Include option OPT in sent packets (cumulative) Examples of string, numeric, and hex byte opts: -x hostname:bbox - option 12 -x lease:3600 - option 51 (lease time) -x 0x3d:0100BEEFC0FFEE - option 61 (client id) -F,--fqdn NAME Ask server to update DNS mapping for NAME -V,--vendorclass VENDOR Vendor identifier (default 'udhcp VERSION') -C,--clientid-none Don't send MAC as client identifier -v Verbose Signals:</pre> <pre> USR1 Renew lease USR2 Release lease</pre> </dd> <dt><strong><a name="udhcpd" class="item"><strong>udhcpd</strong></a></strong></dt> <dd> <p>udhcpd [-fS] [-I ADDR] [CONFFILE]</p> <p>DHCP server</p> <pre> -f Run in foreground -S Log to syslog too -I ADDR Local address</pre> </dd> <dt><strong><a name="udpsvd" class="item"><strong>udpsvd</strong></a></strong></dt> <dd> <p>udpsvd [-hEv] [-c N] [-u USER] [-l NAME] IP PORT PROG</p> <p>Create UDP socket, bind to IP:PORT and wait for incoming packets. Run PROG for each packet, redirecting all further packets with same peer ip:port to it.</p> <pre> IP IP to listen on, 0 = all PORT Port to listen on PROG ARGS Program to run -l NAME Local hostname (else looks up local hostname in DNS) -u USER[:GRP] Change to user/group after bind -c N Handle up to N connections simultaneously -h Look up peer's hostname -E Don't set up environment variables -v Verbose</pre> </dd> <dt><strong><a name="umount" class="item"><strong>umount</strong></a></strong></dt> <dd> <p>umount [OPTIONS] FILESYSTEM|DIRECTORY</p> <p>Unmount file systems</p> <pre> -a Unmount all file systems -r Try to remount devices as read-only if mount is busy -l Lazy umount (detach filesystem) -f Force umount (i.e., unreachable NFS server) -D Don't free loop device even if it has been used</pre> </dd> <dt><strong><a name="uname" class="item"><strong>uname</strong></a></strong></dt> <dd> <p>uname [-amnrspv]</p> <p>Print system information</p> <pre> -a Print all -m The machine (hardware) type -n Hostname -r OS release -s OS name (default) -p Processor type -v OS version</pre> </dd> <dt><strong><a name="unexpand" class="item"><strong>unexpand</strong></a></strong></dt> <dd> <p>unexpand [-fa][-t N] [FILE]...</p> <p>Convert spaces to tabs, writing to stdout</p> <pre> -a,--all Convert all blanks -f,--first-only Convert only leading blanks -t,--tabs=N Tabstops every N chars</pre> </dd> <dt><strong><a name="uniq" class="item"><strong>uniq</strong></a></strong></dt> <dd> <p>uniq [-cdu][-f,s,w N] [INPUT [OUTPUT]]</p> <p>Discard duplicate lines</p> <pre> -c Prefix lines by the number of occurrences -d Only print duplicate lines -u Only print unique lines -f N Skip first N fields -s N Skip first N chars (after any skipped fields) -w N Compare N characters in line</pre> </dd> <dt><strong><a name="unix2dos" class="item"><strong>unix2dos</strong></a></strong></dt> <dd> <p>unix2dos [-ud] [FILE]</p> <p>Convert FILE in-place from Unix to DOS format. When no file is given, use stdin/stdout.</p> <pre> -u dos2unix -d unix2dos</pre> </dd> <dt><strong><a name="unlzma" class="item"><strong>unlzma</strong></a></strong></dt> <dd> <p>unlzma [-cf] [FILE]...</p> <p>Decompress FILE (or stdin)</p> <pre> -c Write to stdout -f Force</pre> </dd> <dt><strong><a name="unlzop" class="item"><strong>unlzop</strong></a></strong></dt> <dd> <p>unlzop [-cfvCF] [FILE]...</p> <pre> -c Write to stdout -f Force -v Verbose -F Don't store or verify checksum</pre> </dd> <dt><strong><a name="unxz" class="item"><strong>unxz</strong></a></strong></dt> <dd> <p>unxz [-cf] [FILE]...</p> <p>Decompress FILE (or stdin)</p> <pre> -c Write to stdout -f Force</pre> </dd> <dt><strong><a name="unzip" class="item"><strong>unzip</strong></a></strong></dt> <dd> <p>unzip [-lnopq] FILE[.zip] [FILE]... [-x FILE...] [-d DIR]</p> <p>Extract FILEs from ZIP archive</p> <pre> -l List contents (with -q for short form) -n Never overwrite files (default: ask) -o Overwrite -p Print to stdout -q Quiet -x FILE Exclude FILEs -d DIR Extract into DIR</pre> </dd> <dt><strong><a name="uptime" class="item"><strong>uptime</strong></a></strong></dt> <dd> <p>uptime</p> <p>Display the time since the last boot</p> </dd> <dt><strong><a name="users" class="item"><strong>users</strong></a></strong></dt> <dd> <p>users</p> <p>Print the users currently logged on</p> </dd> <dt><strong><a name="usleep" class="item"><strong>usleep</strong></a></strong></dt> <dd> <p>usleep N</p> <p>Pause for N microseconds</p> </dd> <dt><strong><a name="uudecode" class="item"><strong>uudecode</strong></a></strong></dt> <dd> <p>uudecode [-o OUTFILE] [INFILE]</p> <p>Uudecode a file Finds OUTFILE in uuencoded source unless -o is given</p> </dd> <dt><strong><a name="uuencode" class="item"><strong>uuencode</strong></a></strong></dt> <dd> <p>uuencode [-m] [FILE] STORED_FILENAME</p> <p>Uuencode FILE (or stdin) to stdout</p> <pre> -m Use base64 encoding per RFC1521</pre> </dd> <dt><strong><a name="vconfig" class="item"><strong>vconfig</strong></a></strong></dt> <dd> <p>vconfig COMMAND [OPTIONS]</p> <p>Create and remove virtual ethernet devices</p> <pre> add IFACE VLAN_ID rem VLAN_NAME set_flag IFACE 0|1 VLAN_QOS set_egress_map VLAN_NAME SKB_PRIO VLAN_QOS set_ingress_map VLAN_NAME SKB_PRIO VLAN_QOS set_name_type NAME_TYPE</pre> </dd> <dt><strong><a name="vi" class="item"><strong>vi</strong></a></strong></dt> <dd> <p>vi [OPTIONS] [FILE]...</p> <p>Edit FILE</p> <pre> -c CMD Initial command to run ($EXINIT also available) -R Read-only -H List available features</pre> </dd> <dt><strong><a name="vlock" class="item"><strong>vlock</strong></a></strong></dt> <dd> <p>vlock [-a]</p> <p>Lock a virtual terminal. A password is required to unlock.</p> <pre> -a Lock all VTs</pre> </dd> <dt><strong><a name="volname" class="item"><strong>volname</strong></a></strong></dt> <dd> <p>volname [DEVICE]</p> <p>Show CD volume name of the DEVICE (default /dev/cdrom)</p> </dd> <dt><strong><a name="wall" class="item"><strong>wall</strong></a></strong></dt> <dd> <p>wall [FILE]</p> <p>Write content of FILE or stdin to all logged-in users</p> </dd> <dt><strong><a name="watch" class="item"><strong>watch</strong></a></strong></dt> <dd> <p>watch [-n SEC] [-t] PROG ARGS</p> <p>Run PROG periodically</p> <pre> -n Loop period in seconds (default 2) -t Don't print header</pre> </dd> <dt><strong><a name="watchdog" class="item"><strong>watchdog</strong></a></strong></dt> <dd> <p>watchdog [-t N[ms]] [-T N[ms]] [-F] DEV</p> <p>Periodically write to watchdog device DEV</p> <pre> -T N Reboot after N seconds if not reset (default 60) -t N Reset every N seconds (default 30) -F Run in foreground</pre> <p>Use 500ms to specify period in milliseconds</p> </dd> <dt><strong><a name="wc" class="item"><strong>wc</strong></a></strong></dt> <dd> <p>wc [-cmlwL] [FILE]...</p> <p>Count lines, words, and bytes for each FILE (or stdin)</p> <pre> -c Count bytes -m Count characters -l Count newlines -w Count words -L Print longest line length</pre> </dd> <dt><strong><a name="wget" class="item"><strong>wget</strong></a></strong></dt> <dd> <p><table cellspacing="0" cellpadding="0"><tr><td>wget [-c|--continue] [-s|--spider] [-q|--quiet] [-O|--output-document FILE] <tr><td><td>[--header 'header: value'] [-Y|--proxy on/off] [-P DIR] <tr><td><td>[-U|--user-agent AGENT] [-T SEC] URL...</table></p> <p>Retrieve files via HTTP or FTP</p> <pre> -s Spider mode - only check file existence -c Continue retrieval of aborted transfer -q Quiet -P DIR Save to DIR (default .) -T SEC Network read timeout is SEC seconds -O FILE Save to FILE ('-' for stdout) -U STR Use STR for User-Agent header -Y Use proxy ('on' or 'off')</pre> </dd> <dt><strong><a name="which" class="item"><strong>which</strong></a></strong></dt> <dd> <p>which [COMMAND]...</p> <p>Locate a COMMAND</p> </dd> <dt><strong><a name="who" class="item"><strong>who</strong></a></strong></dt> <dd> <p>who [-a]</p> <p>Show who is logged on</p> <pre> -a Show all -H Print column headers</pre> </dd> <dt><strong><a name="whoami" class="item"><strong>whoami</strong></a></strong></dt> <dd> <p>whoami</p> <p>Print the user name associated with the current effective user id</p> </dd> <dt><strong><a name="whois" class="item"><strong>whois</strong></a></strong></dt> <dd> <p>whois [-h SERVER] [-p PORT] NAME...</p> <p>Query WHOIS info about NAME</p> <pre> -h,-p Server to query</pre> </dd> <dt><strong><a name="xargs" class="item"><strong>xargs</strong></a></strong></dt> <dd> <p>xargs [OPTIONS] [PROG ARGS]</p> <p>Run PROG on every item given by stdin</p> <pre> -p Ask user whether to run each command -r Don't run command if input is empty -0 Input is separated by NUL characters -t Print the command on stderr before execution -e[STR] STR stops input processing -n N Pass no more than N args to PROG -s N Pass command line of no more than N bytes -x Exit if size is exceeded</pre> </dd> <dt><strong><a name="xz" class="item"><strong>xz</strong></a></strong></dt> <dd> <p>xz -d [-cf] [FILE]...</p> <p>Decompress FILE (or stdin)</p> <pre> -d Decompress -c Write to stdout -f Force</pre> </dd> <dt><strong><a name="xzcat" class="item"><strong>xzcat</strong></a></strong></dt> <dd> <p>xzcat [FILE]...</p> <p>Decompress to stdout</p> </dd> <dt><strong><a name="yes" class="item"><strong>yes</strong></a></strong></dt> <dd> <p>yes [STRING]</p> <p>Repeatedly output a line with STRING, or 'y'</p> </dd> <dt><strong><a name="zcat" class="item"><strong>zcat</strong></a></strong></dt> <dd> <p>zcat [FILE]...</p> <p>Decompress to stdout</p> </dd> <dt><strong><a name="zcip" class="item"><strong>zcip</strong></a></strong></dt> <dd> <p>zcip [OPTIONS] IFACE SCRIPT</p> <p>Manage a ZeroConf IPv4 link-local address</p> <pre> -f Run in foreground -q Quit after obtaining address -r 169.254.x.x Request this address first -v Verbose</pre> <p>With no -q, runs continuously monitoring for ARP conflicts, exits only on I/O errors (link down etc)</p> </dd> </dl> <p> </p> <hr /> <h1><a name="libc_nss">LIBC NSS</a></h1> <p>GNU Libc (glibc) uses the Name Service Switch (NSS) to configure the behavior of the C library for the local environment, and to configure how it reads system data, such as passwords and group information. This is implemented using an /etc/nsswitch.conf configuration file, and using one or more of the /lib/libnss_* libraries. BusyBox tries to avoid using any libc calls that make use of NSS. Some applets however, such as login and su, will use libc functions that require NSS.</p> <p>If you enable CONFIG_USE_BB_PWD_GRP, BusyBox will use internal functions to directly access the /etc/passwd, /etc/group, and /etc/shadow files without using NSS. This may allow you to run your system without the need for installing any of the NSS configuration files and libraries.</p> <p>When used with glibc, the BusyBox 'networking' applets will similarly require that you install at least some of the glibc NSS stuff (in particular, /etc/nsswitch.conf, /lib/libnss_dns*, /lib/libnss_files*, and /lib/libresolv*).</p> <p>Shameless Plug: As an alternative, one could use a C library such as uClibc. In addition to making your system significantly smaller, uClibc does not require the use of any NSS support files or libraries.</p> <p> </p> <hr /> <h1><a name="maintainer">MAINTAINER</a></h1> <p>Denis Vlasenko &lt;<a href="mailto:[email protected]">[email protected]</a>&gt;</p> <p> </p> <hr /> <h1><a name="authors">AUTHORS</a></h1> <p>The following people have contributed code to BusyBox whether they know it or not. If you have written code included in BusyBox, you should probably be listed here so you can obtain your bit of eternal glory. If you should be listed here, or the description of what you have done needs more detail, or is incorrect, please send in an update.</p> <br><p>Emanuele Aina &lt;<a href="mailto:[email protected]">[email protected]</a>&gt; run-parts</p> <br><p>Erik Andersen &lt;<a href="mailto:[email protected]">[email protected]</a>&gt;</p> <pre> Tons of new stuff, major rewrite of most of the core apps, tons of new apps as noted in header files. Lots of tedious effort writing these boring docs that nobody is going to actually read.</pre> <br><p>Laurence Anderson &lt;<a href="mailto:[email protected]">[email protected]</a>&gt;</p> <pre> rpm2cpio, unzip, get_header_cpio, read_gz interface, rpm</pre> <br><p>Jeff Angielski &lt;<a href="mailto:[email protected]">[email protected]</a>&gt;</p> <pre> ftpput, ftpget</pre> <br><p>Edward Betts &lt;<a href="mailto:[email protected]">[email protected]</a>&gt;</p> <pre> expr, hostid, logname, whoami</pre> <br><p>John Beppu &lt;<a href="mailto:[email protected]">[email protected]</a>&gt;</p> <pre> du, nslookup, sort</pre> <br><p>Brian Candler &lt;<a href="mailto:[email protected]">[email protected]</a>&gt;</p> <pre> tiny-ls(ls)</pre> <br><p>Randolph Chung &lt;<a href="mailto:[email protected]">[email protected]</a>&gt;</p> <pre> fbset, ping, hostname</pre> <br><p>Dave Cinege &lt;<a href="mailto:[email protected]">[email protected]</a>&gt;</p> <pre> more(v2), makedevs, dutmp, modularization, auto links file, various fixes, Linux Router Project maintenance</pre> <br><p>Jordan Crouse &lt;<a href="mailto:[email protected]">[email protected]</a>&gt;</p> <pre> ipcalc</pre> <br><p>Magnus Damm &lt;<a href="mailto:[email protected]">[email protected]</a>&gt;</p> <pre> tftp client insmod powerpc support</pre> <br><p>Larry Doolittle &lt;<a href="mailto:[email protected]">[email protected]</a>&gt;</p> <pre> pristine source directory compilation, lots of patches and fixes.</pre> <br><p>Glenn Engel &lt;<a href="mailto:[email protected]">[email protected]</a>&gt;</p> <pre> httpd</pre> <br><p>Gennady Feldman &lt;<a href="mailto:[email protected]">[email protected]</a>&gt;</p> <pre> Sysklogd (single threaded syslogd, IPC Circular buffer support, logread), various fixes.</pre> <br><p>Karl M. Hegbloom &lt;<a href="mailto:[email protected]">[email protected]</a>&gt;</p> <pre> cp_mv.c, the test suite, various fixes to utility.c, &amp;c.</pre> <br><p>Daniel Jacobowitz &lt;<a href="mailto:[email protected]">[email protected]</a>&gt;</p> <pre> mktemp.c</pre> <br><p>Matt Kraai &lt;<a href="mailto:[email protected]">[email protected]</a>&gt;</p> <pre> documentation, bugfixes, test suite</pre> <br><p>Stephan Linz &lt;<a href="mailto:[email protected]">[email protected]</a>&gt;</p> <pre> ipcalc, Red Hat equivalence</pre> <br><p>John Lombardo &lt;<a href="mailto:[email protected]">[email protected]</a>&gt;</p> <pre> tr</pre> <br><p>Glenn McGrath &lt;<a href="mailto:[email protected]">[email protected]</a>&gt;</p> <pre> Common unarchiving code and unarchiving applets, ifupdown, ftpgetput, nameif, sed, patch, fold, install, uudecode. Various bugfixes, review and apply numerous patches.</pre> <br><p>Manuel Novoa III &lt;<a href="mailto:[email protected]">[email protected]</a>&gt;</p> <pre> cat, head, mkfifo, mknod, rmdir, sleep, tee, tty, uniq, usleep, wc, yes, mesg, vconfig, make_directory, parse_mode, dirname, mode_string, get_last_path_component, simplify_path, and a number trivial libbb routines</pre> <pre> also bug fixes, partial rewrites, and size optimizations in ash, basename, cal, cmp, cp, df, du, echo, env, ln, logname, md5sum, mkdir, mv, realpath, rm, sort, tail, touch, uname, watch, arith, human_readable, interface, dutmp, ifconfig, route</pre> <br><p>Vladimir Oleynik &lt;<a href="mailto:[email protected]">[email protected]</a>&gt;</p> <pre> cmdedit; xargs(current), httpd(current); ports: ash, crond, fdisk, inetd, stty, traceroute, top; locale, various fixes and irreconcilable critic of everything not perfect.</pre> <br><p>Bruce Perens &lt;<a href="mailto:[email protected]">[email protected]</a>&gt;</p> <pre> Original author of BusyBox in 1995, 1996. Some of his code can still be found hiding here and there...</pre> <br><p>Tim Riker &lt;<a href="mailto:[email protected]">[email protected]</a>&gt;</p> <pre> bug fixes, member of fan club</pre> <br><p>Kent Robotti &lt;<a href="mailto:[email protected]">[email protected]</a>&gt;</p> <pre> reset, tons and tons of bug reports and patches.</pre> <br><p>Chip Rosenthal &lt;<a href="mailto:[email protected]">[email protected]</a>&gt;, &lt;<a href="mailto:[email protected]">[email protected]</a>&gt;</p> <pre> wget - Contributed by permission of Covad Communications</pre> <br><p>Pavel Roskin &lt;<a href="mailto:[email protected]">[email protected]</a>&gt;</p> <pre> Lots of bugs fixes and patches.</pre> <br><p>Gyepi Sam &lt;<a href="mailto:[email protected]">[email protected]</a>&gt;</p> <pre> Remote logging feature for syslogd</pre> <br><p>Linus Torvalds &lt;<a href="mailto:[email protected]">[email protected]</a>&gt;</p> <pre> mkswap, fsck.minix, mkfs.minix</pre> <br><p>Mark Whitley &lt;<a href="mailto:[email protected]">[email protected]</a>&gt;</p> <pre> grep, sed, cut, xargs(previous), style-guide, new-applet-HOWTO, bug fixes, etc.</pre> <br><p>Charles P. Wright &lt;<a href="mailto:[email protected]">[email protected]</a>&gt;</p> <pre> gzip, mini-netcat(nc)</pre> <br><p>Enrique Zanardi &lt;<a href="mailto:[email protected]">[email protected]</a>&gt;</p> <pre> tarcat (since removed), loadkmap, various fixes, Debian maintenance</pre> <br><p>Tito Ragusa &lt;<a href="mailto:[email protected]">[email protected]</a>&gt;</p> <pre> devfsd and size optimizations in strings, openvt and deallocvt.</pre> <br><p>Paul Fox &lt;<a href="mailto:[email protected]">[email protected]</a>&gt;</p> <pre> vi editing mode for ash, various other patches/fixes</pre> <br><p>Roberto A. Foglietta &lt;<a href="mailto:[email protected]">[email protected]</a>&gt;</p> <pre> port: dnsd</pre> <br><p>Bernhard Reutner-Fischer &lt;<a href="mailto:[email protected]">[email protected]</a>&gt;</p> <pre> misc</pre> <br><p>Mike Frysinger &lt;<a href="mailto:[email protected]">[email protected]</a>&gt;</p> <pre> initial e2fsprogs, printenv, setarch, sum, misc</pre> <br><p>Jie Zhang &lt;<a href="mailto:[email protected]">[email protected]</a>&gt;</p> <pre> fixed two bugs in msh and hush (exitcode of killed processes)</pre> </body> </html>
gpl-2.0
sumeettalwar/develop
node-js/src/week1/hello.js
49
#!/usr/bin/env node console.log("Hello World!");
gpl-2.0
cleaton/liquid_kernel
arch/arm/mach-msm/board-msm7x27.c
52847
/* * Copyright (C) 2007 Google, Inc. * Copyright (c) 2008-2010, Code Aurora Forum. All rights reserved. * Author: Brian Swetland <[email protected]> * * 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. * */ #include <linux/kernel.h> #include <linux/init.h> #include <linux/platform_device.h> #include <linux/input.h> #include <linux/io.h> #include <linux/delay.h> #include <linux/bootmem.h> #include <linux/usb/mass_storage_function.h> #include <linux/power_supply.h> #include <mach/hardware.h> #include <asm/mach-types.h> #include <asm/mach/arch.h> #include <asm/mach/map.h> #include <asm/mach/flash.h> #include <asm/setup.h> #ifdef CONFIG_CACHE_L2X0 #include <asm/hardware/cache-l2x0.h> #endif #include <asm/mach/mmc.h> #include <mach/vreg.h> #include <mach/mpp.h> #include <mach/gpio.h> #include <mach/board.h> #include <mach/msm_iomap.h> #include <mach/msm_rpcrouter.h> #include <mach/msm_hsusb.h> #include <mach/rpc_hsusb.h> #include <mach/rpc_pmapp.h> #include <mach/msm_serial_hs.h> #include <mach/memory.h> #include <mach/msm_battery.h> #include <linux/mtd/nand.h> #include <linux/mtd/partitions.h> #include <linux/i2c.h> #include <linux/android_pmem.h> #include <mach/camera.h> #include "devices.h" #include "socinfo.h" #include "clock.h" #include "msm-keypad-devices.h" #ifdef CONFIG_USB_ANDROID #include <linux/usb/android.h> #endif #include "pm.h" #ifdef CONFIG_ARCH_MSM7X27 #include <linux/msm_kgsl.h> #endif #ifdef CONFIG_ARCH_MSM7X25 #define MSM_PMEM_MDP_SIZE 0xb21000 #define MSM_PMEM_ADSP_SIZE 0x97b000 #define MSM_PMEM_AUDIO_SIZE 0x121000 #define MSM_FB_SIZE 0x200000 #define PMEM_KERNEL_EBI1_SIZE 0x64000 #endif #ifdef CONFIG_ARCH_MSM7X27 #define MSM_PMEM_MDP_SIZE 0x1700000 #define MSM_PMEM_ADSP_SIZE 0xAE4000 #define MSM_PMEM_AUDIO_SIZE 0x5B000 #define MSM_FB_SIZE 0x177000 #define MSM_GPU_PHYS_SIZE SZ_2M #define PMEM_KERNEL_EBI1_SIZE 0x1C000 /* Using lower 1MB of OEMSBL memory for GPU_PHYS */ #define MSM_GPU_PHYS_START_ADDR 0xD600000ul #endif /* Using upper 1/2MB of Apps Bootloader memory*/ #define MSM_PMEM_AUDIO_START_ADDR 0x80000ul static struct resource smc91x_resources[] = { [0] = { .start = 0x9C004300, .end = 0x9C0043ff, .flags = IORESOURCE_MEM, }, [1] = { .start = MSM_GPIO_TO_INT(132), .end = MSM_GPIO_TO_INT(132), .flags = IORESOURCE_IRQ, }, }; #ifdef CONFIG_USB_FUNCTION static struct usb_mass_storage_platform_data usb_mass_storage_pdata = { .nluns = 0x02, .buf_size = 16384, .vendor = "GOOGLE", .product = "Mass storage", .release = 0xffff, }; static struct platform_device mass_storage_device = { .name = "usb_mass_storage", .id = -1, .dev = { .platform_data = &usb_mass_storage_pdata, }, }; #endif #ifdef CONFIG_USB_ANDROID /* dynamic composition */ static struct usb_composition usb_func_composition[] = { { /* MSC */ .product_id = 0xF000, .functions = 0x02, .adb_product_id = 0x9015, .adb_functions = 0x12 }, #ifdef CONFIG_USB_F_SERIAL { /* MODEM */ .product_id = 0xF00B, .functions = 0x06, .adb_product_id = 0x901E, .adb_functions = 0x16, }, #endif #ifdef CONFIG_USB_ANDROID_DIAG { /* DIAG */ .product_id = 0x900E, .functions = 0x04, .adb_product_id = 0x901D, .adb_functions = 0x14, }, #endif #if defined(CONFIG_USB_ANDROID_DIAG) && defined(CONFIG_USB_F_SERIAL) { /* DIAG + MODEM */ .product_id = 0x9004, .functions = 0x64, .adb_product_id = 0x901F, .adb_functions = 0x0614, }, { /* DIAG + MODEM + NMEA*/ .product_id = 0x9016, .functions = 0x764, .adb_product_id = 0x9020, .adb_functions = 0x7614, }, { /* DIAG + MODEM + NMEA + MSC */ .product_id = 0x9017, .functions = 0x2764, .adb_product_id = 0x9018, .adb_functions = 0x27614, }, #endif #ifdef CONFIG_USB_ANDROID_CDC_ECM { /* MSC + CDC-ECM */ .product_id = 0x9014, .functions = 0x82, .adb_product_id = 0x9023, .adb_functions = 0x812, }, #endif #ifdef CONFIG_USB_ANDROID_RMNET { /* DIAG + RMNET */ .product_id = 0x9021, .functions = 0x94, .adb_product_id = 0x9022, .adb_functions = 0x914, }, #endif #ifdef CONFIG_USB_ANDROID_RNDIS { /* RNDIS */ .product_id = 0xF00E, .functions = 0xA, .adb_product_id = 0x9024, .adb_functions = 0x1A, }, #endif }; static struct android_usb_platform_data android_usb_pdata = { .vendor_id = 0x05C6, .version = 0x0100, .compositions = usb_func_composition, .num_compositions = ARRAY_SIZE(usb_func_composition), .product_name = "Qualcomm HSUSB Device", .manufacturer_name = "Qualcomm Incorporated", .nluns = 1, }; static struct platform_device android_usb_device = { .name = "android_usb", .id = -1, .dev = { .platform_data = &android_usb_pdata, }, }; #endif static struct platform_device smc91x_device = { .name = "smc91x", .id = 0, .num_resources = ARRAY_SIZE(smc91x_resources), .resource = smc91x_resources, }; #ifdef CONFIG_USB_FUNCTION static struct usb_function_map usb_functions_map[] = { {"diag", 0}, {"adb", 1}, {"modem", 2}, {"nmea", 3}, {"mass_storage", 4}, {"ethernet", 5}, {"rmnet", 6}, }; /* dynamic composition */ static struct usb_composition usb_func_composition[] = { { .product_id = 0x9012, .functions = 0x5, /* 0101 */ }, { .product_id = 0x9013, .functions = 0x15, /* 10101 */ }, { .product_id = 0x9014, .functions = 0x30, /* 110000 */ }, { .product_id = 0x9016, .functions = 0xD, /* 01101 */ }, { .product_id = 0x9017, .functions = 0x1D, /* 11101 */ }, { .product_id = 0xF000, .functions = 0x10, /* 10000 */ }, { .product_id = 0xF009, .functions = 0x20, /* 100000 */ }, { .product_id = 0x9018, .functions = 0x1F, /* 011111 */ }, #ifdef CONFIG_USB_FUNCTION_RMNET { .product_id = 0x9021, /* DIAG + RMNET */ .functions = 0x41, }, { .product_id = 0x9022, /* DIAG + ADB + RMNET */ .functions = 0x43, }, #endif }; static struct msm_hsusb_platform_data msm_hsusb_pdata = { .version = 0x0100, .phy_info = (USB_PHY_INTEGRATED | USB_PHY_MODEL_65NM), .vendor_id = 0x5c6, .product_name = "Qualcomm HSUSB Device", .serial_number = "1234567890ABCDEF", .manufacturer_name = "Qualcomm Incorporated", .compositions = usb_func_composition, .num_compositions = ARRAY_SIZE(usb_func_composition), .function_map = usb_functions_map, .num_functions = ARRAY_SIZE(usb_functions_map), .config_gpio = NULL, }; #endif #ifdef CONFIG_USB_MSM_OTG_72K static int hsusb_rpc_connect(int connect) { if (connect) return msm_hsusb_rpc_connect(); else return msm_hsusb_rpc_close(); } #endif #if defined(CONFIG_USB_MSM_OTG_72K) || defined(CONFIG_USB_EHCI_MSM) static int msm_hsusb_rpc_phy_reset(void __iomem *addr) { return msm_hsusb_phy_reset(); } #endif #ifdef CONFIG_USB_MSM_OTG_72K static struct msm_otg_platform_data msm_otg_pdata = { .rpc_connect = hsusb_rpc_connect, .phy_reset = msm_hsusb_rpc_phy_reset, .pmic_notif_init = msm_pm_app_rpc_init, .pmic_notif_deinit = msm_pm_app_rpc_deinit, .pmic_register_vbus_sn = msm_pm_app_register_vbus_sn, .pmic_unregister_vbus_sn = msm_pm_app_unregister_vbus_sn, .pmic_enable_ldo = msm_pm_app_enable_usb_ldo, }; #ifdef CONFIG_USB_GADGET static struct msm_hsusb_gadget_platform_data msm_gadget_pdata; #endif #endif #define SND(desc, num) { .name = #desc, .id = num } static struct snd_endpoint snd_endpoints_list[] = { SND(HANDSET, 0), SND(MONO_HEADSET, 2), SND(HEADSET, 3), SND(SPEAKER, 6), SND(TTY_HEADSET, 8), SND(TTY_VCO, 9), SND(TTY_HCO, 10), SND(BT, 12), SND(IN_S_SADC_OUT_HANDSET, 16), SND(IN_S_SADC_OUT_SPEAKER_PHONE, 25), SND(CURRENT, 27), }; #undef SND static struct msm_snd_endpoints msm_device_snd_endpoints = { .endpoints = snd_endpoints_list, .num = sizeof(snd_endpoints_list) / sizeof(struct snd_endpoint) }; static struct platform_device msm_device_snd = { .name = "msm_snd", .id = -1, .dev = { .platform_data = &msm_device_snd_endpoints }, }; #define DEC0_FORMAT ((1<<MSM_ADSP_CODEC_MP3)| \ (1<<MSM_ADSP_CODEC_AAC)|(1<<MSM_ADSP_CODEC_WMA)| \ (1<<MSM_ADSP_CODEC_WMAPRO)|(1<<MSM_ADSP_CODEC_AMRWB)| \ (1<<MSM_ADSP_CODEC_AMRNB)|(1<<MSM_ADSP_CODEC_WAV)| \ (1<<MSM_ADSP_CODEC_ADPCM)|(1<<MSM_ADSP_CODEC_YADPCM)| \ (1<<MSM_ADSP_CODEC_EVRC)|(1<<MSM_ADSP_CODEC_QCELP)) #define DEC1_FORMAT ((1<<MSM_ADSP_CODEC_WAV)|(1<<MSM_ADSP_CODEC_ADPCM)| \ (1<<MSM_ADSP_CODEC_YADPCM)|(1<<MSM_ADSP_CODEC_QCELP)) #define DEC2_FORMAT ((1<<MSM_ADSP_CODEC_WAV)|(1<<MSM_ADSP_CODEC_ADPCM)| \ (1<<MSM_ADSP_CODEC_YADPCM)|(1<<MSM_ADSP_CODEC_QCELP)) #ifdef CONFIG_ARCH_MSM7X25 #define DEC3_FORMAT 0 #define DEC4_FORMAT 0 #else #define DEC3_FORMAT ((1<<MSM_ADSP_CODEC_WAV)|(1<<MSM_ADSP_CODEC_ADPCM)| \ (1<<MSM_ADSP_CODEC_YADPCM)|(1<<MSM_ADSP_CODEC_QCELP)) #define DEC4_FORMAT (1<<MSM_ADSP_CODEC_MIDI) #endif static unsigned int dec_concurrency_table[] = { /* Audio LP */ (DEC0_FORMAT|(1<<MSM_ADSP_MODE_TUNNEL)|(1<<MSM_ADSP_OP_DMA)), 0, 0, 0, 0, /* Concurrency 1 */ (DEC0_FORMAT|(1<<MSM_ADSP_MODE_TUNNEL)|(1<<MSM_ADSP_OP_DM)), (DEC1_FORMAT|(1<<MSM_ADSP_MODE_TUNNEL)|(1<<MSM_ADSP_OP_DM)), (DEC2_FORMAT|(1<<MSM_ADSP_MODE_TUNNEL)|(1<<MSM_ADSP_OP_DM)), (DEC3_FORMAT|(1<<MSM_ADSP_MODE_TUNNEL)|(1<<MSM_ADSP_OP_DM)), (DEC4_FORMAT), /* Concurrency 2 */ (DEC0_FORMAT|(1<<MSM_ADSP_MODE_TUNNEL)|(1<<MSM_ADSP_OP_DM)), (DEC1_FORMAT|(1<<MSM_ADSP_MODE_TUNNEL)|(1<<MSM_ADSP_OP_DM)), (DEC2_FORMAT|(1<<MSM_ADSP_MODE_TUNNEL)|(1<<MSM_ADSP_OP_DM)), (DEC3_FORMAT|(1<<MSM_ADSP_MODE_TUNNEL)|(1<<MSM_ADSP_OP_DM)), (DEC4_FORMAT), /* Concurrency 3 */ (DEC0_FORMAT|(1<<MSM_ADSP_MODE_TUNNEL)|(1<<MSM_ADSP_OP_DM)), (DEC1_FORMAT|(1<<MSM_ADSP_MODE_TUNNEL)|(1<<MSM_ADSP_OP_DM)), (DEC2_FORMAT|(1<<MSM_ADSP_MODE_TUNNEL)|(1<<MSM_ADSP_OP_DM)), (DEC3_FORMAT|(1<<MSM_ADSP_MODE_NONTUNNEL)|(1<<MSM_ADSP_OP_DM)), (DEC4_FORMAT), /* Concurrency 4 */ (DEC0_FORMAT|(1<<MSM_ADSP_MODE_TUNNEL)|(1<<MSM_ADSP_OP_DM)), (DEC1_FORMAT|(1<<MSM_ADSP_MODE_TUNNEL)|(1<<MSM_ADSP_OP_DM)), (DEC2_FORMAT|(1<<MSM_ADSP_MODE_NONTUNNEL)|(1<<MSM_ADSP_OP_DM)), (DEC3_FORMAT|(1<<MSM_ADSP_MODE_NONTUNNEL)|(1<<MSM_ADSP_OP_DM)), (DEC4_FORMAT), /* Concurrency 5 */ (DEC0_FORMAT|(1<<MSM_ADSP_MODE_TUNNEL)|(1<<MSM_ADSP_OP_DM)), (DEC1_FORMAT|(1<<MSM_ADSP_MODE_NONTUNNEL)|(1<<MSM_ADSP_OP_DM)), (DEC2_FORMAT|(1<<MSM_ADSP_MODE_NONTUNNEL)|(1<<MSM_ADSP_OP_DM)), (DEC3_FORMAT|(1<<MSM_ADSP_MODE_NONTUNNEL)|(1<<MSM_ADSP_OP_DM)), (DEC4_FORMAT), /* Concurrency 6 */ (DEC0_FORMAT|(1<<MSM_ADSP_MODE_NONTUNNEL)|(1<<MSM_ADSP_OP_DM)), (DEC1_FORMAT|(1<<MSM_ADSP_MODE_NONTUNNEL)|(1<<MSM_ADSP_OP_DM)), (DEC2_FORMAT|(1<<MSM_ADSP_MODE_NONTUNNEL)|(1<<MSM_ADSP_OP_DM)), (DEC3_FORMAT|(1<<MSM_ADSP_MODE_NONTUNNEL)|(1<<MSM_ADSP_OP_DM)), (DEC4_FORMAT), }; #define DEC_INFO(name, queueid, decid, nr_codec) { .module_name = name, \ .module_queueid = queueid, .module_decid = decid, \ .nr_codec_support = nr_codec} static struct msm_adspdec_info dec_info_list[] = { DEC_INFO("AUDPLAY0TASK", 13, 0, 11), /* AudPlay0BitStreamCtrlQueue */ DEC_INFO("AUDPLAY1TASK", 14, 1, 4), /* AudPlay1BitStreamCtrlQueue */ DEC_INFO("AUDPLAY2TASK", 15, 2, 4), /* AudPlay2BitStreamCtrlQueue */ #ifdef CONFIG_ARCH_MSM7X25 DEC_INFO("AUDPLAY3TASK", 16, 3, 0), /* AudPlay3BitStreamCtrlQueue */ DEC_INFO("AUDPLAY4TASK", 17, 4, 0), /* AudPlay4BitStreamCtrlQueue */ #else DEC_INFO("AUDPLAY3TASK", 16, 3, 4), /* AudPlay3BitStreamCtrlQueue */ DEC_INFO("AUDPLAY4TASK", 17, 4, 1), /* AudPlay4BitStreamCtrlQueue */ #endif }; static struct msm_adspdec_database msm_device_adspdec_database = { .num_dec = ARRAY_SIZE(dec_info_list), .num_concurrency_support = (ARRAY_SIZE(dec_concurrency_table) / \ ARRAY_SIZE(dec_info_list)), .dec_concurrency_table = dec_concurrency_table, .dec_info_list = dec_info_list, }; static struct platform_device msm_device_adspdec = { .name = "msm_adspdec", .id = -1, .dev = { .platform_data = &msm_device_adspdec_database }, }; static struct android_pmem_platform_data android_pmem_kernel_ebi1_pdata = { .name = PMEM_KERNEL_EBI1_DATA_NAME, /* if no allocator_type, defaults to PMEM_ALLOCATORTYPE_BITMAP, * the only valid choice at this time. The board structure is * set to all zeros by the C runtime initialization and that is now * the enum value of PMEM_ALLOCATORTYPE_BITMAP, now forced to 0 in * include/linux/android_pmem.h. */ .cached = 0, }; static struct android_pmem_platform_data android_pmem_pdata = { .name = "pmem", .allocator_type = PMEM_ALLOCATORTYPE_BITMAP, .cached = 1, }; static struct android_pmem_platform_data android_pmem_adsp_pdata = { .name = "pmem_adsp", .allocator_type = PMEM_ALLOCATORTYPE_BITMAP, .cached = 1, }; static struct android_pmem_platform_data android_pmem_audio_pdata = { .name = "pmem_audio", .allocator_type = PMEM_ALLOCATORTYPE_BITMAP, .cached = 0, }; static struct platform_device android_pmem_device = { .name = "android_pmem", .id = 0, .dev = { .platform_data = &android_pmem_pdata }, }; static struct platform_device android_pmem_adsp_device = { .name = "android_pmem", .id = 1, .dev = { .platform_data = &android_pmem_adsp_pdata }, }; static struct platform_device android_pmem_audio_device = { .name = "android_pmem", .id = 2, .dev = { .platform_data = &android_pmem_audio_pdata }, }; static struct platform_device android_pmem_kernel_ebi1_device = { .name = "android_pmem", .id = 4, .dev = { .platform_data = &android_pmem_kernel_ebi1_pdata }, }; static struct platform_device hs_device = { .name = "msm-handset", .id = -1, .dev = { .platform_data = "7k_handset", }, }; #define LCDC_CONFIG_PROC 21 #define LCDC_UN_CONFIG_PROC 22 #define LCDC_API_PROG 0x30000066 #define LCDC_API_VERS 0x00010001 #define GPIO_OUT_132 132 #define GPIO_OUT_131 131 #define GPIO_OUT_103 103 #define GPIO_OUT_102 102 #define GPIO_OUT_88 88 static struct msm_rpc_endpoint *lcdc_ep; static int msm_fb_lcdc_config(int on) { int rc = 0; struct rpc_request_hdr hdr; if (on) pr_info("lcdc config\n"); else pr_info("lcdc un-config\n"); lcdc_ep = msm_rpc_connect_compatible(LCDC_API_PROG, LCDC_API_VERS, 0); if (IS_ERR(lcdc_ep)) { printk(KERN_ERR "%s: msm_rpc_connect failed! rc = %ld\n", __func__, PTR_ERR(lcdc_ep)); return -EINVAL; } rc = msm_rpc_call(lcdc_ep, (on) ? LCDC_CONFIG_PROC : LCDC_UN_CONFIG_PROC, &hdr, sizeof(hdr), 5 * HZ); if (rc) printk(KERN_ERR "%s: msm_rpc_call failed! rc = %d\n", __func__, rc); msm_rpc_close(lcdc_ep); return rc; } static int gpio_array_num[] = { GPIO_OUT_132, /* spi_clk */ GPIO_OUT_131, /* spi_cs */ GPIO_OUT_103, /* spi_sdi */ GPIO_OUT_102, /* spi_sdoi */ GPIO_OUT_88 }; static void lcdc_gordon_gpio_init(void) { if (gpio_request(GPIO_OUT_132, "spi_clk")) pr_err("failed to request gpio spi_clk\n"); if (gpio_request(GPIO_OUT_131, "spi_cs")) pr_err("failed to request gpio spi_cs\n"); if (gpio_request(GPIO_OUT_103, "spi_sdi")) pr_err("failed to request gpio spi_sdi\n"); if (gpio_request(GPIO_OUT_102, "spi_sdoi")) pr_err("failed to request gpio spi_sdoi\n"); if (gpio_request(GPIO_OUT_88, "gpio_dac")) pr_err("failed to request gpio_dac\n"); } static uint32_t lcdc_gpio_table[] = { GPIO_CFG(GPIO_OUT_132, 0, GPIO_OUTPUT, GPIO_NO_PULL, GPIO_2MA), GPIO_CFG(GPIO_OUT_131, 0, GPIO_OUTPUT, GPIO_NO_PULL, GPIO_2MA), GPIO_CFG(GPIO_OUT_103, 0, GPIO_OUTPUT, GPIO_NO_PULL, GPIO_2MA), GPIO_CFG(GPIO_OUT_102, 0, GPIO_OUTPUT, GPIO_NO_PULL, GPIO_2MA), GPIO_CFG(GPIO_OUT_88, 0, GPIO_OUTPUT, GPIO_NO_PULL, GPIO_2MA), }; static void config_lcdc_gpio_table(uint32_t *table, int len, unsigned enable) { int n, rc; for (n = 0; n < len; n++) { rc = gpio_tlmm_config(table[n], enable ? GPIO_ENABLE : GPIO_DISABLE); if (rc) { printk(KERN_ERR "%s: gpio_tlmm_config(%#x)=%d\n", __func__, table[n], rc); break; } } } static void lcdc_gordon_config_gpios(int enable) { config_lcdc_gpio_table(lcdc_gpio_table, ARRAY_SIZE(lcdc_gpio_table), enable); } static char *msm_fb_lcdc_vreg[] = { "gp5" }; #define MSM_FB_LCDC_VREG_OP(name, op) \ do { \ vreg = vreg_get(0, name); \ if (vreg_##op(vreg)) \ printk(KERN_ERR "%s: %s vreg operation failed \n", \ (vreg_##op == vreg_enable) ? "vreg_enable" \ : "vreg_disable", name); \ } while (0) static void msm_fb_lcdc_power_save(int on) { struct vreg *vreg; int i; for (i = 0; i < ARRAY_SIZE(msm_fb_lcdc_vreg); i++) { if (on) MSM_FB_LCDC_VREG_OP(msm_fb_lcdc_vreg[i], enable); else{ MSM_FB_LCDC_VREG_OP(msm_fb_lcdc_vreg[i], disable); gpio_tlmm_config(GPIO_CFG(GPIO_OUT_88, 0, GPIO_OUTPUT, GPIO_NO_PULL, GPIO_2MA), GPIO_ENABLE); gpio_set_value(88, 0); mdelay(15); gpio_set_value(88, 1); mdelay(15); } } } static struct lcdc_platform_data lcdc_pdata = { .lcdc_gpio_config = msm_fb_lcdc_config, .lcdc_power_save = msm_fb_lcdc_power_save, }; static struct msm_panel_common_pdata lcdc_gordon_panel_data = { .panel_config_gpio = lcdc_gordon_config_gpios, .gpio_num = gpio_array_num, }; static struct platform_device lcdc_gordon_panel_device = { .name = "lcdc_gordon_vga", .id = 0, .dev = { .platform_data = &lcdc_gordon_panel_data, } }; static struct resource msm_fb_resources[] = { { .flags = IORESOURCE_DMA, } }; static int msm_fb_detect_panel(const char *name) { int ret = -EPERM; if (machine_is_msm7x25_ffa() || machine_is_msm7x27_ffa()) { if (!strcmp(name, "lcdc_gordon_vga")) ret = 0; else ret = -ENODEV; } return ret; } static struct msm_fb_platform_data msm_fb_pdata = { .detect_client = msm_fb_detect_panel, .mddi_prescan = 1, }; static struct platform_device msm_fb_device = { .name = "msm_fb", .id = 0, .num_resources = ARRAY_SIZE(msm_fb_resources), .resource = msm_fb_resources, .dev = { .platform_data = &msm_fb_pdata, } }; #ifdef CONFIG_BT static struct platform_device msm_bt_power_device = { .name = "bt_power", }; enum { BT_WAKE, BT_RFR, BT_CTS, BT_RX, BT_TX, BT_PCM_DOUT, BT_PCM_DIN, BT_PCM_SYNC, BT_PCM_CLK, BT_HOST_WAKE, }; static unsigned bt_config_power_on[] = { GPIO_CFG(42, 0, GPIO_OUTPUT, GPIO_NO_PULL, GPIO_2MA), /* WAKE */ GPIO_CFG(43, 2, GPIO_OUTPUT, GPIO_NO_PULL, GPIO_2MA), /* RFR */ GPIO_CFG(44, 2, GPIO_INPUT, GPIO_NO_PULL, GPIO_2MA), /* CTS */ GPIO_CFG(45, 2, GPIO_INPUT, GPIO_NO_PULL, GPIO_2MA), /* Rx */ GPIO_CFG(46, 3, GPIO_OUTPUT, GPIO_NO_PULL, GPIO_2MA), /* Tx */ GPIO_CFG(68, 1, GPIO_OUTPUT, GPIO_NO_PULL, GPIO_2MA), /* PCM_DOUT */ GPIO_CFG(69, 1, GPIO_INPUT, GPIO_NO_PULL, GPIO_2MA), /* PCM_DIN */ GPIO_CFG(70, 2, GPIO_OUTPUT, GPIO_NO_PULL, GPIO_2MA), /* PCM_SYNC */ GPIO_CFG(71, 2, GPIO_OUTPUT, GPIO_NO_PULL, GPIO_2MA), /* PCM_CLK */ GPIO_CFG(83, 0, GPIO_INPUT, GPIO_NO_PULL, GPIO_2MA), /* HOST_WAKE */ }; static unsigned bt_config_power_off[] = { GPIO_CFG(42, 0, GPIO_INPUT, GPIO_PULL_DOWN, GPIO_2MA), /* WAKE */ GPIO_CFG(43, 0, GPIO_INPUT, GPIO_PULL_DOWN, GPIO_2MA), /* RFR */ GPIO_CFG(44, 0, GPIO_INPUT, GPIO_PULL_DOWN, GPIO_2MA), /* CTS */ GPIO_CFG(45, 0, GPIO_INPUT, GPIO_PULL_DOWN, GPIO_2MA), /* Rx */ GPIO_CFG(46, 0, GPIO_INPUT, GPIO_PULL_DOWN, GPIO_2MA), /* Tx */ GPIO_CFG(68, 0, GPIO_INPUT, GPIO_PULL_DOWN, GPIO_2MA), /* PCM_DOUT */ GPIO_CFG(69, 0, GPIO_INPUT, GPIO_PULL_DOWN, GPIO_2MA), /* PCM_DIN */ GPIO_CFG(70, 0, GPIO_INPUT, GPIO_PULL_DOWN, GPIO_2MA), /* PCM_SYNC */ GPIO_CFG(71, 0, GPIO_INPUT, GPIO_PULL_DOWN, GPIO_2MA), /* PCM_CLK */ GPIO_CFG(83, 0, GPIO_INPUT, GPIO_PULL_DOWN, GPIO_2MA), /* HOST_WAKE */ }; static int bluetooth_power(int on) { struct vreg *vreg_bt; int pin, rc; printk(KERN_DEBUG "%s\n", __func__); /* do not have vreg bt defined, gp6 is the same */ /* vreg_get parameter 1 (struct device *) is ignored */ vreg_bt = vreg_get(NULL, "gp6"); if (IS_ERR(vreg_bt)) { printk(KERN_ERR "%s: vreg get failed (%ld)\n", __func__, PTR_ERR(vreg_bt)); return PTR_ERR(vreg_bt); } if (on) { for (pin = 0; pin < ARRAY_SIZE(bt_config_power_on); pin++) { rc = gpio_tlmm_config(bt_config_power_on[pin], GPIO_ENABLE); if (rc) { printk(KERN_ERR "%s: gpio_tlmm_config(%#x)=%d\n", __func__, bt_config_power_on[pin], rc); return -EIO; } } /* units of mV, steps of 50 mV */ rc = vreg_set_level(vreg_bt, 2600); if (rc) { printk(KERN_ERR "%s: vreg set level failed (%d)\n", __func__, rc); return -EIO; } rc = vreg_enable(vreg_bt); if (rc) { printk(KERN_ERR "%s: vreg enable failed (%d)\n", __func__, rc); return -EIO; } } else { rc = vreg_disable(vreg_bt); if (rc) { printk(KERN_ERR "%s: vreg disable failed (%d)\n", __func__, rc); return -EIO; } for (pin = 0; pin < ARRAY_SIZE(bt_config_power_off); pin++) { rc = gpio_tlmm_config(bt_config_power_off[pin], GPIO_ENABLE); if (rc) { printk(KERN_ERR "%s: gpio_tlmm_config(%#x)=%d\n", __func__, bt_config_power_off[pin], rc); return -EIO; } } } return 0; } static void __init bt_power_init(void) { msm_bt_power_device.dev.platform_data = &bluetooth_power; } #else #define bt_power_init(x) do {} while (0) #endif #ifdef CONFIG_ARCH_MSM7X27 static struct resource kgsl_resources[] = { { .name = "kgsl_reg_memory", .start = 0xA0000000, .end = 0xA001ffff, .flags = IORESOURCE_MEM, }, { .name = "kgsl_phys_memory", .start = 0, .end = 0, .flags = IORESOURCE_MEM, }, { .name = "kgsl_yamato_irq", .start = INT_GRAPHICS, .end = INT_GRAPHICS, .flags = IORESOURCE_IRQ, }, }; static struct kgsl_platform_data kgsl_pdata; static struct platform_device msm_device_kgsl = { .name = "kgsl", .id = -1, .num_resources = ARRAY_SIZE(kgsl_resources), .resource = kgsl_resources, .dev = { .platform_data = &kgsl_pdata, }, }; #endif static struct platform_device msm_device_pmic_leds = { .name = "pmic-leds", .id = -1, }; static struct resource bluesleep_resources[] = { { .name = "gpio_host_wake", .start = 83, .end = 83, .flags = IORESOURCE_IO, }, { .name = "gpio_ext_wake", .start = 42, .end = 42, .flags = IORESOURCE_IO, }, { .name = "host_wake", .start = MSM_GPIO_TO_INT(83), .end = MSM_GPIO_TO_INT(83), .flags = IORESOURCE_IRQ, }, }; static struct platform_device msm_bluesleep_device = { .name = "bluesleep", .id = -1, .num_resources = ARRAY_SIZE(bluesleep_resources), .resource = bluesleep_resources, }; static struct i2c_board_info i2c_devices[] = { #ifdef CONFIG_MT9D112 { I2C_BOARD_INFO("mt9d112", 0x78 >> 1), }, #endif #ifdef CONFIG_S5K3E2FX { I2C_BOARD_INFO("s5k3e2fx", 0x20 >> 1), }, #endif #ifdef CONFIG_MT9P012 { I2C_BOARD_INFO("mt9p012", 0x6C >> 1), }, #endif #ifdef CONFIG_MT9P012_KM { I2C_BOARD_INFO("mt9p012_km", 0x6C >> 2), }, #endif #if defined(CONFIG_MT9T013) || defined(CONFIG_SENSORS_MT9T013) { I2C_BOARD_INFO("mt9t013", 0x6C), }, #endif #ifdef CONFIG_VB6801 { I2C_BOARD_INFO("vb6801", 0x20), }, #endif }; #ifdef CONFIG_MSM_CAMERA static uint32_t camera_off_gpio_table[] = { /* parallel CAMERA interfaces */ GPIO_CFG(0, 0, GPIO_INPUT, GPIO_PULL_DOWN, GPIO_2MA), /* DAT0 */ GPIO_CFG(1, 0, GPIO_INPUT, GPIO_PULL_DOWN, GPIO_2MA), /* DAT1 */ GPIO_CFG(2, 0, GPIO_INPUT, GPIO_PULL_DOWN, GPIO_2MA), /* DAT2 */ GPIO_CFG(3, 0, GPIO_INPUT, GPIO_PULL_DOWN, GPIO_2MA), /* DAT3 */ GPIO_CFG(4, 0, GPIO_INPUT, GPIO_PULL_DOWN, GPIO_2MA), /* DAT4 */ GPIO_CFG(5, 0, GPIO_INPUT, GPIO_PULL_DOWN, GPIO_2MA), /* DAT5 */ GPIO_CFG(6, 0, GPIO_INPUT, GPIO_PULL_DOWN, GPIO_2MA), /* DAT6 */ GPIO_CFG(7, 0, GPIO_INPUT, GPIO_PULL_DOWN, GPIO_2MA), /* DAT7 */ GPIO_CFG(8, 0, GPIO_INPUT, GPIO_PULL_DOWN, GPIO_2MA), /* DAT8 */ GPIO_CFG(9, 0, GPIO_INPUT, GPIO_PULL_DOWN, GPIO_2MA), /* DAT9 */ GPIO_CFG(10, 0, GPIO_INPUT, GPIO_PULL_DOWN, GPIO_2MA), /* DAT10 */ GPIO_CFG(11, 0, GPIO_INPUT, GPIO_PULL_DOWN, GPIO_2MA), /* DAT11 */ GPIO_CFG(12, 0, GPIO_INPUT, GPIO_PULL_DOWN, GPIO_2MA), /* PCLK */ GPIO_CFG(13, 0, GPIO_INPUT, GPIO_PULL_DOWN, GPIO_2MA), /* HSYNC_IN */ GPIO_CFG(14, 0, GPIO_INPUT, GPIO_PULL_DOWN, GPIO_2MA), /* VSYNC_IN */ GPIO_CFG(15, 0, GPIO_OUTPUT, GPIO_NO_PULL, GPIO_2MA), /* MCLK */ }; static uint32_t camera_on_gpio_table[] = { /* parallel CAMERA interfaces */ GPIO_CFG(0, 1, GPIO_INPUT, GPIO_PULL_DOWN, GPIO_2MA), /* DAT0 */ GPIO_CFG(1, 1, GPIO_INPUT, GPIO_PULL_DOWN, GPIO_2MA), /* DAT1 */ GPIO_CFG(2, 1, GPIO_INPUT, GPIO_PULL_DOWN, GPIO_2MA), /* DAT2 */ GPIO_CFG(3, 1, GPIO_INPUT, GPIO_PULL_DOWN, GPIO_2MA), /* DAT3 */ GPIO_CFG(4, 1, GPIO_INPUT, GPIO_PULL_DOWN, GPIO_2MA), /* DAT4 */ GPIO_CFG(5, 1, GPIO_INPUT, GPIO_PULL_DOWN, GPIO_2MA), /* DAT5 */ GPIO_CFG(6, 1, GPIO_INPUT, GPIO_PULL_DOWN, GPIO_2MA), /* DAT6 */ GPIO_CFG(7, 1, GPIO_INPUT, GPIO_PULL_DOWN, GPIO_2MA), /* DAT7 */ GPIO_CFG(8, 1, GPIO_INPUT, GPIO_PULL_DOWN, GPIO_2MA), /* DAT8 */ GPIO_CFG(9, 1, GPIO_INPUT, GPIO_PULL_DOWN, GPIO_2MA), /* DAT9 */ GPIO_CFG(10, 1, GPIO_INPUT, GPIO_PULL_DOWN, GPIO_2MA), /* DAT10 */ GPIO_CFG(11, 1, GPIO_INPUT, GPIO_PULL_DOWN, GPIO_2MA), /* DAT11 */ GPIO_CFG(12, 1, GPIO_INPUT, GPIO_PULL_DOWN, GPIO_16MA), /* PCLK */ GPIO_CFG(13, 1, GPIO_INPUT, GPIO_PULL_DOWN, GPIO_2MA), /* HSYNC_IN */ GPIO_CFG(14, 1, GPIO_INPUT, GPIO_PULL_DOWN, GPIO_2MA), /* VSYNC_IN */ GPIO_CFG(15, 1, GPIO_OUTPUT, GPIO_PULL_DOWN, GPIO_16MA), /* MCLK */ }; static void config_gpio_table(uint32_t *table, int len) { int n, rc; for (n = 0; n < len; n++) { rc = gpio_tlmm_config(table[n], GPIO_ENABLE); if (rc) { printk(KERN_ERR "%s: gpio_tlmm_config(%#x)=%d\n", __func__, table[n], rc); break; } } } static struct vreg *vreg_gp2; static struct vreg *vreg_gp3; static void msm_camera_vreg_config(int vreg_en) { int rc; if (vreg_gp2 == NULL) { vreg_gp2 = vreg_get(NULL, "gp2"); if (IS_ERR(vreg_gp2)) { printk(KERN_ERR "%s: vreg_get(%s) failed (%ld)\n", __func__, "gp2", PTR_ERR(vreg_gp2)); return; } rc = vreg_set_level(vreg_gp2, 1800); if (rc) { printk(KERN_ERR "%s: GP2 set_level failed (%d)\n", __func__, rc); } } if (vreg_gp3 == NULL) { vreg_gp3 = vreg_get(NULL, "gp3"); if (IS_ERR(vreg_gp3)) { printk(KERN_ERR "%s: vreg_get(%s) failed (%ld)\n", __func__, "gp3", PTR_ERR(vreg_gp3)); return; } rc = vreg_set_level(vreg_gp3, 2850); if (rc) { printk(KERN_ERR "%s: GP3 set level failed (%d)\n", __func__, rc); } } if (vreg_en) { rc = vreg_enable(vreg_gp2); if (rc) { printk(KERN_ERR "%s: GP2 enable failed (%d)\n", __func__, rc); } rc = vreg_enable(vreg_gp3); if (rc) { printk(KERN_ERR "%s: GP3 enable failed (%d)\n", __func__, rc); } } else { rc = vreg_disable(vreg_gp2); if (rc) { printk(KERN_ERR "%s: GP2 disable failed (%d)\n", __func__, rc); } rc = vreg_disable(vreg_gp3); if (rc) { printk(KERN_ERR "%s: GP3 disable failed (%d)\n", __func__, rc); } } } static void config_camera_on_gpios(void) { int vreg_en = 1; if (machine_is_msm7x25_ffa() || machine_is_msm7x27_ffa()) msm_camera_vreg_config(vreg_en); config_gpio_table(camera_on_gpio_table, ARRAY_SIZE(camera_on_gpio_table)); } static void config_camera_off_gpios(void) { int vreg_en = 0; if (machine_is_msm7x25_ffa() || machine_is_msm7x27_ffa()) msm_camera_vreg_config(vreg_en); config_gpio_table(camera_off_gpio_table, ARRAY_SIZE(camera_off_gpio_table)); } static struct msm_camera_device_platform_data msm_camera_device_data = { .camera_gpio_on = config_camera_on_gpios, .camera_gpio_off = config_camera_off_gpios, .ioext.mdcphy = MSM_MDC_PHYS, .ioext.mdcsz = MSM_MDC_SIZE, .ioext.appphy = MSM_CLK_CTL_PHYS, .ioext.appsz = MSM_CLK_CTL_SIZE, }; static struct msm_camera_sensor_flash_src msm_flash_src = { .flash_sr_type = MSM_CAMERA_FLASH_SRC_PMIC, ._fsrc.pmic_src.low_current = 30, ._fsrc.pmic_src.high_current = 100, }; #ifdef CONFIG_MT9D112 static struct msm_camera_sensor_flash_data flash_mt9d112 = { .flash_type = MSM_CAMERA_FLASH_LED, .flash_src = &msm_flash_src }; static struct msm_camera_sensor_info msm_camera_sensor_mt9d112_data = { .sensor_name = "mt9d112", .sensor_reset = 89, .sensor_pwd = 85, .vcm_pwd = 0, .vcm_enable = 0, .pdata = &msm_camera_device_data, .flash_data = &flash_mt9d112 }; static struct platform_device msm_camera_sensor_mt9d112 = { .name = "msm_camera_mt9d112", .dev = { .platform_data = &msm_camera_sensor_mt9d112_data, }, }; #endif #ifdef CONFIG_S5K3E2FX static struct msm_camera_sensor_flash_data flash_s5k3e2fx = { .flash_type = MSM_CAMERA_FLASH_LED, .flash_src = &msm_flash_src }; static struct msm_camera_sensor_info msm_camera_sensor_s5k3e2fx_data = { .sensor_name = "s5k3e2fx", .sensor_reset = 89, .sensor_pwd = 85, .vcm_pwd = 0, .vcm_enable = 0, .pdata = &msm_camera_device_data, .flash_data = &flash_s5k3e2fx }; static struct platform_device msm_camera_sensor_s5k3e2fx = { .name = "msm_camera_s5k3e2fx", .dev = { .platform_data = &msm_camera_sensor_s5k3e2fx_data, }, }; #endif #ifdef CONFIG_MT9P012 static struct msm_camera_sensor_flash_data flash_mt9p012 = { .flash_type = MSM_CAMERA_FLASH_LED, .flash_src = &msm_flash_src }; static struct msm_camera_sensor_info msm_camera_sensor_mt9p012_data = { .sensor_name = "mt9p012", .sensor_reset = 89, .sensor_pwd = 85, .vcm_pwd = 88, .vcm_enable = 0, .pdata = &msm_camera_device_data, .flash_data = &flash_mt9p012 }; static struct platform_device msm_camera_sensor_mt9p012 = { .name = "msm_camera_mt9p012", .dev = { .platform_data = &msm_camera_sensor_mt9p012_data, }, }; #endif #ifdef CONFIG_MT9P012_KM static struct msm_camera_sensor_flash_data flash_mt9p012_km = { .flash_type = MSM_CAMERA_FLASH_LED, .flash_src = &msm_flash_src }; static struct msm_camera_sensor_info msm_camera_sensor_mt9p012_km_data = { .sensor_name = "mt9p012_km", .sensor_reset = 89, .sensor_pwd = 85, .vcm_pwd = 88, .vcm_enable = 0, .pdata = &msm_camera_device_data, .flash_data = &flash_mt9p012_km }; static struct platform_device msm_camera_sensor_mt9p012_km = { .name = "msm_camera_mt9p012_km", .dev = { .platform_data = &msm_camera_sensor_mt9p012_km_data, }, }; #endif #ifdef CONFIG_MT9T013 static struct msm_camera_sensor_flash_data flash_mt9t013 = { .flash_type = MSM_CAMERA_FLASH_LED, .flash_src = &msm_flash_src }; static struct msm_camera_sensor_info msm_camera_sensor_mt9t013_data = { .sensor_name = "mt9t013", .sensor_reset = 89, .sensor_pwd = 85, .vcm_pwd = 0, .vcm_enable = 0, .pdata = &msm_camera_device_data, .flash_data = &flash_mt9t013 }; static struct platform_device msm_camera_sensor_mt9t013 = { .name = "msm_camera_mt9t013", .dev = { .platform_data = &msm_camera_sensor_mt9t013_data, }, }; #endif #ifdef CONFIG_VB6801 static struct msm_camera_sensor_flash_data flash_vb6801 = { .flash_type = MSM_CAMERA_FLASH_LED, .flash_src = &msm_flash_src }; static struct msm_camera_sensor_info msm_camera_sensor_vb6801_data = { .sensor_name = "vb6801", .sensor_reset = 89, .sensor_pwd = 88, .vcm_pwd = 0, .vcm_enable = 0, .pdata = &msm_camera_device_data, .flash_data = &flash_vb6801 }; static struct platform_device msm_camera_sensor_vb6801 = { .name = "msm_camera_vb6801", .dev = { .platform_data = &msm_camera_sensor_vb6801_data, }, }; #endif #endif static u32 msm_calculate_batt_capacity(u32 current_voltage); static struct msm_psy_batt_pdata msm_psy_batt_data = { .voltage_min_design = 2800, .voltage_max_design = 4300, .avail_chg_sources = AC_CHG | USB_CHG , .batt_technology = POWER_SUPPLY_TECHNOLOGY_LION, .calculate_capacity = &msm_calculate_batt_capacity, }; static u32 msm_calculate_batt_capacity(u32 current_voltage) { u32 low_voltage = msm_psy_batt_data.voltage_min_design; u32 high_voltage = msm_psy_batt_data.voltage_max_design; return (current_voltage - low_voltage) * 100 / (high_voltage - low_voltage); } static struct platform_device msm_batt_device = { .name = "msm-battery", .id = -1, .dev.platform_data = &msm_psy_batt_data, }; static struct platform_device *devices[] __initdata = { #if !defined(CONFIG_MSM_SERIAL_DEBUGGER) &msm_device_uart3, #endif &msm_device_smd, &msm_device_dmov, &msm_device_nand, #ifdef CONFIG_USB_MSM_OTG_72K &msm_device_otg, #ifdef CONFIG_USB_GADGET &msm_device_gadget_peripheral, #endif #endif #ifdef CONFIG_USB_FUNCTION &msm_device_hsusb_peripheral, &mass_storage_device, #endif #ifdef CONFIG_USB_ANDROID &android_usb_device, #endif &msm_device_i2c, &smc91x_device, &msm_device_tssc, &android_pmem_kernel_ebi1_device, &android_pmem_device, &android_pmem_adsp_device, &android_pmem_audio_device, &msm_fb_device, &lcdc_gordon_panel_device, &msm_device_uart_dm1, #ifdef CONFIG_BT &msm_bt_power_device, #endif &msm_device_pmic_leds, &msm_device_snd, &msm_device_adspdec, #ifdef CONFIG_MT9T013 &msm_camera_sensor_mt9t013, #endif #ifdef CONFIG_MT9D112 &msm_camera_sensor_mt9d112, #endif #ifdef CONFIG_S5K3E2FX &msm_camera_sensor_s5k3e2fx, #endif #ifdef CONFIG_MT9P012 &msm_camera_sensor_mt9p012, #endif #ifdef CONFIG_MT9P012_KM &msm_camera_sensor_mt9p012_km, #endif #ifdef CONFIG_VB6801 &msm_camera_sensor_vb6801, #endif &msm_bluesleep_device, #ifdef CONFIG_ARCH_MSM7X27 &msm_device_kgsl, #endif &hs_device, &msm_batt_device, }; static struct msm_panel_common_pdata mdp_pdata = { .gpio = 97, }; static void __init msm_fb_add_devices(void) { msm_fb_register_device("mdp", &mdp_pdata); msm_fb_register_device("pmdh", 0); msm_fb_register_device("lcdc", &lcdc_pdata); } extern struct sys_timer msm_timer; static void __init msm7x2x_init_irq(void) { msm_init_irq(); } static struct msm_acpu_clock_platform_data msm7x2x_clock_data = { .acpu_switch_time_us = 50, .max_speed_delta_khz = 256000, .vdd_switch_time_us = 62, .max_axi_khz = 160000, }; void msm_serial_debug_init(unsigned int base, int irq, struct device *clk_device, int signal_irq); #ifdef CONFIG_USB_EHCI_MSM static void msm_hsusb_vbus_power(unsigned phy_info, int on) { if (on) msm_hsusb_vbus_powerup(); else msm_hsusb_vbus_shutdown(); } static struct msm_usb_host_platform_data msm_usb_host_pdata = { .phy_info = (USB_PHY_INTEGRATED | USB_PHY_MODEL_65NM), .phy_reset = msm_hsusb_rpc_phy_reset, .vbus_power = msm_hsusb_vbus_power, }; static void __init msm7x2x_init_host(void) { if (machine_is_msm7x25_ffa() || machine_is_msm7x27_ffa()) return; msm_add_host(0, &msm_usb_host_pdata); } #endif #ifdef CONFIG_MMC static void sdcc_gpio_init(void) { /* SDC1 GPIOs */ #ifdef CONFIG_MMC_MSM_SDC1_SUPPORT if (gpio_request(51, "sdc1_data_3")) pr_err("failed to request gpio sdc1_data_3\n"); if (gpio_request(52, "sdc1_data_2")) pr_err("failed to request gpio sdc1_data_2\n"); if (gpio_request(53, "sdc1_data_1")) pr_err("failed to request gpio sdc1_data_1\n"); if (gpio_request(54, "sdc1_data_0")) pr_err("failed to request gpio sdc1_data_0\n"); if (gpio_request(55, "sdc1_cmd")) pr_err("failed to request gpio sdc1_cmd\n"); if (gpio_request(56, "sdc1_clk")) pr_err("failed to request gpio sdc1_clk\n"); #endif if (machine_is_msm7x25_ffa()) return; /* SDC2 GPIOs */ #ifdef CONFIG_MMC_MSM_SDC2_SUPPORT if (gpio_request(62, "sdc2_clk")) pr_err("failed to request gpio sdc2_clk\n"); if (gpio_request(63, "sdc2_cmd")) pr_err("failed to request gpio sdc2_cmd\n"); if (gpio_request(64, "sdc2_data_3")) pr_err("failed to request gpio sdc2_data_3\n"); if (gpio_request(65, "sdc2_data_2")) pr_err("failed to request gpio sdc2_data_2\n"); if (gpio_request(66, "sdc2_data_1")) pr_err("failed to request gpio sdc2_data_1\n"); if (gpio_request(67, "sdc2_data_0")) pr_err("failed to request gpio sdc2_data_0\n"); #endif if (machine_is_msm7x27_ffa()) return; /* SDC3 GPIOs */ #ifdef CONFIG_MMC_MSM_SDC3_SUPPORT if (gpio_request(88, "sdc3_clk")) pr_err("failed to request gpio sdc3_clk\n"); if (gpio_request(89, "sdc3_cmd")) pr_err("failed to request gpio sdc3_cmd\n"); if (gpio_request(90, "sdc3_data_3")) pr_err("failed to request gpio sdc3_data_3\n"); if (gpio_request(91, "sdc3_data_2")) pr_err("failed to request gpio sdc3_data_2\n"); if (gpio_request(92, "sdc3_data_1")) pr_err("failed to request gpio sdc3_data_1\n"); if (gpio_request(93, "sdc3_data_0")) pr_err("failed to request gpio sdc3_data_0\n"); #endif /* SDC4 GPIOs */ #ifdef CONFIG_MMC_MSM_SDC4_SUPPORT if (gpio_request(19, "sdc4_data_3")) pr_err("failed to request gpio sdc4_data_3\n"); if (gpio_request(20, "sdc4_data_2")) pr_err("failed to request gpio sdc4_data_2\n"); if (gpio_request(21, "sdc4_data_1")) pr_err("failed to request gpio sdc4_data_1\n"); if (gpio_request(107, "sdc4_cmd")) pr_err("failed to request gpio sdc4_cmd\n"); if (gpio_request(108, "sdc4_data_0")) pr_err("failed to request gpio sdc4_data_0\n"); if (gpio_request(109, "sdc4_clk")) pr_err("failed to request gpio sdc4_clk\n"); #endif } static unsigned sdcc_cfg_data[][6] = { /* SDC1 configs */ { GPIO_CFG(51, 1, GPIO_OUTPUT, GPIO_PULL_UP, GPIO_8MA), GPIO_CFG(52, 1, GPIO_OUTPUT, GPIO_PULL_UP, GPIO_8MA), GPIO_CFG(53, 1, GPIO_OUTPUT, GPIO_PULL_UP, GPIO_8MA), GPIO_CFG(54, 1, GPIO_OUTPUT, GPIO_PULL_UP, GPIO_8MA), GPIO_CFG(55, 1, GPIO_OUTPUT, GPIO_PULL_UP, GPIO_8MA), GPIO_CFG(56, 1, GPIO_OUTPUT, GPIO_NO_PULL, GPIO_8MA), }, /* SDC2 configs */ { GPIO_CFG(62, 2, GPIO_OUTPUT, GPIO_NO_PULL, GPIO_8MA), GPIO_CFG(63, 2, GPIO_OUTPUT, GPIO_PULL_UP, GPIO_8MA), GPIO_CFG(64, 2, GPIO_OUTPUT, GPIO_PULL_UP, GPIO_8MA), GPIO_CFG(65, 2, GPIO_OUTPUT, GPIO_PULL_UP, GPIO_8MA), GPIO_CFG(66, 2, GPIO_OUTPUT, GPIO_PULL_UP, GPIO_8MA), GPIO_CFG(67, 2, GPIO_OUTPUT, GPIO_PULL_UP, GPIO_8MA), }, /* SDC3 configs */ { GPIO_CFG(88, 1, GPIO_OUTPUT, GPIO_NO_PULL, GPIO_8MA), GPIO_CFG(89, 1, GPIO_OUTPUT, GPIO_PULL_UP, GPIO_8MA), GPIO_CFG(90, 1, GPIO_OUTPUT, GPIO_PULL_UP, GPIO_8MA), GPIO_CFG(91, 1, GPIO_OUTPUT, GPIO_PULL_UP, GPIO_8MA), GPIO_CFG(92, 1, GPIO_OUTPUT, GPIO_PULL_UP, GPIO_8MA), GPIO_CFG(93, 1, GPIO_OUTPUT, GPIO_PULL_UP, GPIO_8MA), }, /* SDC4 configs */ { GPIO_CFG(19, 3, GPIO_OUTPUT, GPIO_PULL_UP, GPIO_8MA), GPIO_CFG(20, 3, GPIO_OUTPUT, GPIO_PULL_UP, GPIO_8MA), GPIO_CFG(21, 4, GPIO_OUTPUT, GPIO_PULL_UP, GPIO_8MA), GPIO_CFG(107, 1, GPIO_OUTPUT, GPIO_PULL_UP, GPIO_8MA), GPIO_CFG(108, 1, GPIO_OUTPUT, GPIO_PULL_UP, GPIO_8MA), GPIO_CFG(109, 1, GPIO_OUTPUT, GPIO_NO_PULL, GPIO_8MA), } }; static unsigned long vreg_sts, gpio_sts; static unsigned mpp_mmc = 2; static struct vreg *vreg_mmc; static void msm_sdcc_setup_gpio(int dev_id, unsigned int enable) { int i, rc; if (!(test_bit(dev_id, &gpio_sts)^enable)) return; if (enable) set_bit(dev_id, &gpio_sts); else clear_bit(dev_id, &gpio_sts); for (i = 0; i < ARRAY_SIZE(sdcc_cfg_data[dev_id - 1]); i++) { rc = gpio_tlmm_config(sdcc_cfg_data[dev_id - 1][i], enable ? GPIO_ENABLE : GPIO_DISABLE); if (rc) printk(KERN_ERR "%s: gpio_tlmm_config(%#x)=%d\n", __func__, sdcc_cfg_data[dev_id - 1][i], rc); } } static uint32_t msm_sdcc_setup_power(struct device *dv, unsigned int vdd) { int rc = 0; struct platform_device *pdev; pdev = container_of(dv, struct platform_device, dev); msm_sdcc_setup_gpio(pdev->id, !!vdd); if (vdd == 0) { if (!vreg_sts) return 0; clear_bit(pdev->id, &vreg_sts); if (!vreg_sts) { if (machine_is_msm7x25_ffa() || machine_is_msm7x27_ffa()) { rc = mpp_config_digital_out(mpp_mmc, MPP_CFG(MPP_DLOGIC_LVL_MSMP, MPP_DLOGIC_OUT_CTRL_LOW)); } else rc = vreg_disable(vreg_mmc); if (rc) printk(KERN_ERR "%s: return val: %d \n", __func__, rc); } return 0; } if (!vreg_sts) { if (machine_is_msm7x25_ffa() || machine_is_msm7x27_ffa()) { rc = mpp_config_digital_out(mpp_mmc, MPP_CFG(MPP_DLOGIC_LVL_MSMP, MPP_DLOGIC_OUT_CTRL_HIGH)); } else { rc = vreg_set_level(vreg_mmc, 2850); if (!rc) rc = vreg_enable(vreg_mmc); } if (rc) printk(KERN_ERR "%s: return val: %d \n", __func__, rc); } set_bit(pdev->id, &vreg_sts); return 0; } #ifdef CONFIG_MMC_MSM_SDC1_SUPPORT static struct mmc_platform_data msm7x2x_sdc1_data = { .ocr_mask = MMC_VDD_28_29, .translate_vdd = msm_sdcc_setup_power, .mmc_bus_width = MMC_CAP_4_BIT_DATA, }; #endif #ifdef CONFIG_MMC_MSM_SDC2_SUPPORT static struct mmc_platform_data msm7x2x_sdc2_data = { .ocr_mask = MMC_VDD_28_29, .translate_vdd = msm_sdcc_setup_power, .mmc_bus_width = MMC_CAP_4_BIT_DATA, #ifdef CONFIG_MMC_MSM_SDIO_SUPPORT .sdiowakeup_irq = MSM_GPIO_TO_INT(66), #endif }; #endif #ifdef CONFIG_MMC_MSM_SDC3_SUPPORT static struct mmc_platform_data msm7x2x_sdc3_data = { .ocr_mask = MMC_VDD_28_29, .translate_vdd = msm_sdcc_setup_power, .mmc_bus_width = MMC_CAP_4_BIT_DATA, }; #endif #ifdef CONFIG_MMC_MSM_SDC4_SUPPORT static struct mmc_platform_data msm7x2x_sdc4_data = { .ocr_mask = MMC_VDD_28_29, .translate_vdd = msm_sdcc_setup_power, .mmc_bus_width = MMC_CAP_4_BIT_DATA, }; #endif static void __init msm7x2x_init_mmc(void) { if (!machine_is_msm7x25_ffa() && !machine_is_msm7x27_ffa()) { vreg_mmc = vreg_get(NULL, "mmc"); if (IS_ERR(vreg_mmc)) { printk(KERN_ERR "%s: vreg get failed (%ld)\n", __func__, PTR_ERR(vreg_mmc)); return; } } sdcc_gpio_init(); #ifdef CONFIG_MMC_MSM_SDC1_SUPPORT msm_add_sdcc(1, &msm7x2x_sdc1_data); #endif if (machine_is_msm7x25_surf() || machine_is_msm7x27_surf() || machine_is_msm7x27_ffa()) { #ifdef CONFIG_MMC_MSM_SDC2_SUPPORT msm_add_sdcc(2, &msm7x2x_sdc2_data); #endif } if (machine_is_msm7x25_surf() || machine_is_msm7x27_surf()) { #ifdef CONFIG_MMC_MSM_SDC3_SUPPORT msm_add_sdcc(3, &msm7x2x_sdc3_data); #endif #ifdef CONFIG_MMC_MSM_SDC4_SUPPORT msm_add_sdcc(4, &msm7x2x_sdc4_data); #endif } } #else #define msm7x2x_init_mmc() do {} while (0) #endif static struct msm_pm_platform_data msm7x25_pm_data[MSM_PM_SLEEP_MODE_NR] = { [MSM_PM_SLEEP_MODE_POWER_COLLAPSE].latency = 16000, [MSM_PM_SLEEP_MODE_POWER_COLLAPSE_NO_XO_SHUTDOWN].latency = 12000, [MSM_PM_SLEEP_MODE_RAMP_DOWN_AND_WAIT_FOR_INTERRUPT].latency = 2000, }; static struct msm_pm_platform_data msm7x27_pm_data[MSM_PM_SLEEP_MODE_NR] = { [MSM_PM_SLEEP_MODE_POWER_COLLAPSE].supported = 1, [MSM_PM_SLEEP_MODE_POWER_COLLAPSE].suspend_enabled = 1, [MSM_PM_SLEEP_MODE_POWER_COLLAPSE].idle_enabled = 1, [MSM_PM_SLEEP_MODE_POWER_COLLAPSE].latency = 16000, [MSM_PM_SLEEP_MODE_POWER_COLLAPSE].residency = 20000, [MSM_PM_SLEEP_MODE_POWER_COLLAPSE_NO_XO_SHUTDOWN].supported = 1, [MSM_PM_SLEEP_MODE_POWER_COLLAPSE_NO_XO_SHUTDOWN].suspend_enabled = 1, [MSM_PM_SLEEP_MODE_POWER_COLLAPSE_NO_XO_SHUTDOWN].idle_enabled = 1, [MSM_PM_SLEEP_MODE_POWER_COLLAPSE_NO_XO_SHUTDOWN].latency = 12000, [MSM_PM_SLEEP_MODE_POWER_COLLAPSE_NO_XO_SHUTDOWN].residency = 20000, [MSM_PM_SLEEP_MODE_RAMP_DOWN_AND_WAIT_FOR_INTERRUPT].supported = 1, [MSM_PM_SLEEP_MODE_RAMP_DOWN_AND_WAIT_FOR_INTERRUPT].suspend_enabled = 1, [MSM_PM_SLEEP_MODE_RAMP_DOWN_AND_WAIT_FOR_INTERRUPT].idle_enabled = 1, [MSM_PM_SLEEP_MODE_RAMP_DOWN_AND_WAIT_FOR_INTERRUPT].latency = 2000, [MSM_PM_SLEEP_MODE_RAMP_DOWN_AND_WAIT_FOR_INTERRUPT].residency = 0, }; static void msm_i2c_gpio_config(int iface, int config_type) { int gpio_scl; int gpio_sda; if (iface) { gpio_scl = 95; gpio_sda = 96; } else { gpio_scl = 60; gpio_sda = 61; } if (config_type) { gpio_tlmm_config(GPIO_CFG(gpio_scl, 1, GPIO_INPUT, GPIO_NO_PULL, GPIO_16MA), GPIO_ENABLE); gpio_tlmm_config(GPIO_CFG(gpio_sda, 1, GPIO_INPUT, GPIO_NO_PULL, GPIO_16MA), GPIO_ENABLE); } else { gpio_tlmm_config(GPIO_CFG(gpio_scl, 0, GPIO_OUTPUT, GPIO_NO_PULL, GPIO_16MA), GPIO_ENABLE); gpio_tlmm_config(GPIO_CFG(gpio_sda, 0, GPIO_OUTPUT, GPIO_NO_PULL, GPIO_16MA), GPIO_ENABLE); } } static struct msm_i2c_platform_data msm_i2c_pdata = { .clk_freq = 100000, .rmutex = 0, .pri_clk = 60, .pri_dat = 61, .aux_clk = 95, .aux_dat = 96, .msm_i2c_config_gpio = msm_i2c_gpio_config, }; static void __init msm_device_i2c_init(void) { if (gpio_request(60, "i2c_pri_clk")) pr_err("failed to request gpio i2c_pri_clk\n"); if (gpio_request(61, "i2c_pri_dat")) pr_err("failed to request gpio i2c_pri_dat\n"); if (gpio_request(95, "i2c_sec_clk")) pr_err("failed to request gpio i2c_sec_clk\n"); if (gpio_request(96, "i2c_sec_dat")) pr_err("failed to request gpio i2c_sec_dat\n"); if (cpu_is_msm7x27()) msm_i2c_pdata.pm_lat = msm7x27_pm_data[MSM_PM_SLEEP_MODE_POWER_COLLAPSE_NO_XO_SHUTDOWN] .latency; else msm_i2c_pdata.pm_lat = msm7x25_pm_data[MSM_PM_SLEEP_MODE_POWER_COLLAPSE_NO_XO_SHUTDOWN] .latency; msm_device_i2c.dev.platform_data = &msm_i2c_pdata; } static void __init msm7x2x_init(void) { if (socinfo_init() < 0) BUG(); #if defined(CONFIG_MSM_SERIAL_DEBUGGER) msm_serial_debug_init(MSM_UART3_PHYS, INT_UART3, &msm_device_uart3.dev, 1); #endif if (machine_is_msm7x25_ffa() || machine_is_msm7x27_ffa()) { smc91x_resources[0].start = 0x98000300; smc91x_resources[0].end = 0x980003ff; smc91x_resources[1].start = MSM_GPIO_TO_INT(85); smc91x_resources[1].end = MSM_GPIO_TO_INT(85); if (gpio_tlmm_config(GPIO_CFG(85, 0, GPIO_INPUT, GPIO_PULL_DOWN, GPIO_2MA), GPIO_ENABLE)) { printk(KERN_ERR "%s: Err: Config GPIO-85 INT\n", __func__); } } if (cpu_is_msm7x27()) msm7x2x_clock_data.max_axi_khz = 200000; msm_acpu_clock_init(&msm7x2x_clock_data); #ifdef CONFIG_ARCH_MSM7X27 /* This value has been set to 160000 for power savings. */ /* OEMs may modify the value at their discretion for performance */ /* The appropriate maximum replacement for 160000 is: */ /* clk_get_max_axi_khz() */ kgsl_pdata.max_axi_freq = 160000; /* 7x27 doesn't allow graphics clocks to be run asynchronously to */ /* the AXI bus */ kgsl_pdata.max_grp2d_freq = 0; kgsl_pdata.min_grp2d_freq = 0; kgsl_pdata.set_grp2d_async = NULL; kgsl_pdata.max_grp3d_freq = 0; kgsl_pdata.min_grp3d_freq = 0; kgsl_pdata.set_grp3d_async = NULL; #endif #ifdef CONFIG_USB_FUNCTION msm_hsusb_pdata.swfi_latency = msm7x27_pm_data [MSM_PM_SLEEP_MODE_RAMP_DOWN_AND_WAIT_FOR_INTERRUPT].latency; msm_device_hsusb_peripheral.dev.platform_data = &msm_hsusb_pdata; #endif #ifdef CONFIG_USB_MSM_OTG_72K msm_device_otg.dev.platform_data = &msm_otg_pdata; #ifdef CONFIG_USB_GADGET msm_gadget_pdata.swfi_latency = msm7x27_pm_data [MSM_PM_SLEEP_MODE_RAMP_DOWN_AND_WAIT_FOR_INTERRUPT].latency; msm_device_gadget_peripheral.dev.platform_data = &msm_gadget_pdata; #endif #endif platform_add_devices(devices, ARRAY_SIZE(devices)); #ifdef CONFIG_MSM_CAMERA config_camera_off_gpios(); /* might not be necessary */ #endif msm_device_i2c_init(); i2c_register_board_info(0, i2c_devices, ARRAY_SIZE(i2c_devices)); #ifdef CONFIG_SURF_FFA_GPIO_KEYPAD if (machine_is_msm7x25_ffa() || machine_is_msm7x27_ffa()) platform_device_register(&keypad_device_7k_ffa); else platform_device_register(&keypad_device_surf); #endif lcdc_gordon_gpio_init(); msm_fb_add_devices(); rmt_storage_add_ramfs(); #ifdef CONFIG_USB_EHCI_MSM msm7x2x_init_host(); #endif msm7x2x_init_mmc(); bt_power_init(); if (cpu_is_msm7x27()) msm_pm_set_platform_data(msm7x27_pm_data); else msm_pm_set_platform_data(msm7x25_pm_data); } static unsigned pmem_kernel_ebi1_size = PMEM_KERNEL_EBI1_SIZE; static void __init pmem_kernel_ebi1_size_setup(char **p) { pmem_kernel_ebi1_size = memparse(*p, p); } __early_param("pmem_kernel_ebi1_size=", pmem_kernel_ebi1_size_setup); static unsigned pmem_mdp_size = MSM_PMEM_MDP_SIZE; static void __init pmem_mdp_size_setup(char **p) { pmem_mdp_size = memparse(*p, p); } __early_param("pmem_mdp_size=", pmem_mdp_size_setup); static unsigned pmem_adsp_size = MSM_PMEM_ADSP_SIZE; static void __init pmem_adsp_size_setup(char **p) { pmem_adsp_size = memparse(*p, p); } __early_param("pmem_adsp_size=", pmem_adsp_size_setup); static unsigned fb_size = MSM_FB_SIZE; static void __init fb_size_setup(char **p) { fb_size = memparse(*p, p); } __early_param("fb_size=", fb_size_setup); static void __init msm_msm7x2x_allocate_memory_regions(void) { void *addr; unsigned long size; size = pmem_mdp_size; if (size) { addr = alloc_bootmem(size); android_pmem_pdata.start = __pa(addr); android_pmem_pdata.size = size; pr_info("allocating %lu bytes at %p (%lx physical) for mdp " "pmem arena\n", size, addr, __pa(addr)); } size = pmem_adsp_size; if (size) { addr = alloc_bootmem(size); android_pmem_adsp_pdata.start = __pa(addr); android_pmem_adsp_pdata.size = size; pr_info("allocating %lu bytes at %p (%lx physical) for adsp " "pmem arena\n", size, addr, __pa(addr)); } size = MSM_PMEM_AUDIO_SIZE ; android_pmem_audio_pdata.start = MSM_PMEM_AUDIO_START_ADDR ; android_pmem_audio_pdata.size = size; pr_info("allocating %lu bytes (at %lx physical) for audio " "pmem arena\n", size , MSM_PMEM_AUDIO_START_ADDR); size = fb_size ? : MSM_FB_SIZE; addr = alloc_bootmem(size); msm_fb_resources[0].start = __pa(addr); msm_fb_resources[0].end = msm_fb_resources[0].start + size - 1; pr_info("allocating %lu bytes at %p (%lx physical) for fb\n", size, addr, __pa(addr)); size = pmem_kernel_ebi1_size; if (size) { addr = alloc_bootmem_aligned(size, 0x100000); android_pmem_kernel_ebi1_pdata.start = __pa(addr); android_pmem_kernel_ebi1_pdata.size = size; pr_info("allocating %lu bytes at %p (%lx physical) for kernel" " ebi1 pmem arena\n", size, addr, __pa(addr)); } #ifdef CONFIG_ARCH_MSM7X27 size = MSM_GPU_PHYS_SIZE; kgsl_resources[1].start = MSM_GPU_PHYS_START_ADDR ; kgsl_resources[1].end = kgsl_resources[1].start + size - 1; pr_info("allocating %lu bytes (at %lx physical) for KGSL\n", size , MSM_GPU_PHYS_START_ADDR); #endif } static void __init msm7x2x_map_io(void) { msm_map_common_io(); /* Technically dependent on the SoC but using machine_is * macros since socinfo is not available this early and there * are plans to restructure the code which will eliminate the * need for socinfo. */ if (machine_is_msm7x27_surf() || machine_is_msm7x27_ffa()) msm_clock_init(msm_clocks_7x27, msm_num_clocks_7x27); if (machine_is_msm7x25_surf() || machine_is_msm7x25_ffa()) msm_clock_init(msm_clocks_7x25, msm_num_clocks_7x25); msm_msm7x2x_allocate_memory_regions(); #ifdef CONFIG_CACHE_L2X0 if (machine_is_msm7x27_surf() || machine_is_msm7x27_ffa()) { /* 7x27 has 256KB L2 cache: 64Kb/Way and 4-Way Associativity; R/W latency: 3 cycles; evmon/parity/share disabled. */ l2x0_init(MSM_L2CC_BASE, 0x00068012, 0xfe000000); } #endif } MACHINE_START(MSM7X27_SURF, "QCT MSM7x27 SURF") #ifdef CONFIG_MSM_DEBUG_UART .phys_io = MSM_DEBUG_UART_PHYS, .io_pg_offst = ((MSM_DEBUG_UART_BASE) >> 18) & 0xfffc, #endif .boot_params = PHYS_OFFSET + 0x100, .map_io = msm7x2x_map_io, .init_irq = msm7x2x_init_irq, .init_machine = msm7x2x_init, .timer = &msm_timer, MACHINE_END MACHINE_START(MSM7X27_FFA, "QCT MSM7x27 FFA") #ifdef CONFIG_MSM_DEBUG_UART .phys_io = MSM_DEBUG_UART_PHYS, .io_pg_offst = ((MSM_DEBUG_UART_BASE) >> 18) & 0xfffc, #endif .boot_params = PHYS_OFFSET + 0x100, .map_io = msm7x2x_map_io, .init_irq = msm7x2x_init_irq, .init_machine = msm7x2x_init, .timer = &msm_timer, MACHINE_END MACHINE_START(MSM7X25_SURF, "QCT MSM7x25 SURF") #ifdef CONFIG_MSM_DEBUG_UART .phys_io = MSM_DEBUG_UART_PHYS, .io_pg_offst = ((MSM_DEBUG_UART_BASE) >> 18) & 0xfffc, #endif .boot_params = PHYS_OFFSET + 0x100, .map_io = msm7x2x_map_io, .init_irq = msm7x2x_init_irq, .init_machine = msm7x2x_init, .timer = &msm_timer, MACHINE_END MACHINE_START(MSM7X25_FFA, "QCT MSM7x25 FFA") #ifdef CONFIG_MSM_DEBUG_UART .phys_io = MSM_DEBUG_UART_PHYS, .io_pg_offst = ((MSM_DEBUG_UART_BASE) >> 18) & 0xfffc, #endif .boot_params = PHYS_OFFSET + 0x100, .map_io = msm7x2x_map_io, .init_irq = msm7x2x_init_irq, .init_machine = msm7x2x_init, .timer = &msm_timer, MACHINE_END
gpl-2.0
gerboland/linux-2.6.15-neuros-eabi
drivers/md/raid5.c
61042
/* * raid5.c : Multiple Devices driver for Linux * Copyright (C) 1996, 1997 Ingo Molnar, Miguel de Icaza, Gadi Oxman * Copyright (C) 1999, 2000 Ingo Molnar * * RAID-5 management functions. * * 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. * * You should have received a copy of the GNU General Public License * (for example /usr/src/linux/COPYING); 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/slab.h> #include <linux/raid/raid5.h> #include <linux/highmem.h> #include <linux/bitops.h> #include <asm/atomic.h> #include <linux/raid/bitmap.h> /* * Stripe cache */ #define NR_STRIPES 256 #define STRIPE_SIZE PAGE_SIZE #define STRIPE_SHIFT (PAGE_SHIFT - 9) #define STRIPE_SECTORS (STRIPE_SIZE>>9) #define IO_THRESHOLD 1 #define HASH_PAGES 1 #define HASH_PAGES_ORDER 0 #define NR_HASH (HASH_PAGES * PAGE_SIZE / sizeof(struct stripe_head *)) #define HASH_MASK (NR_HASH - 1) #define stripe_hash(conf, sect) ((conf)->stripe_hashtbl[((sect) >> STRIPE_SHIFT) & HASH_MASK]) /* bio's attached to a stripe+device for I/O are linked together in bi_sector * order without overlap. There may be several bio's per stripe+device, and * a bio could span several devices. * When walking this list for a particular stripe+device, we must never proceed * beyond a bio that extends past this device, as the next bio might no longer * be valid. * This macro is used to determine the 'next' bio in the list, given the sector * of the current stripe+device */ #define r5_next_bio(bio, sect) ( ( (bio)->bi_sector + ((bio)->bi_size>>9) < sect + STRIPE_SECTORS) ? (bio)->bi_next : NULL) /* * The following can be used to debug the driver */ #define RAID5_DEBUG 0 #define RAID5_PARANOIA 1 #if RAID5_PARANOIA && defined(CONFIG_SMP) # define CHECK_DEVLOCK() assert_spin_locked(&conf->device_lock) #else # define CHECK_DEVLOCK() #endif #define PRINTK(x...) ((void)(RAID5_DEBUG && printk(x))) #if RAID5_DEBUG #define inline #define __inline__ #endif static void print_raid5_conf (raid5_conf_t *conf); static inline void __release_stripe(raid5_conf_t *conf, struct stripe_head *sh) { if (atomic_dec_and_test(&sh->count)) { if (!list_empty(&sh->lru)) BUG(); if (atomic_read(&conf->active_stripes)==0) BUG(); if (test_bit(STRIPE_HANDLE, &sh->state)) { if (test_bit(STRIPE_DELAYED, &sh->state)) list_add_tail(&sh->lru, &conf->delayed_list); else if (test_bit(STRIPE_BIT_DELAY, &sh->state) && conf->seq_write == sh->bm_seq) list_add_tail(&sh->lru, &conf->bitmap_list); else { clear_bit(STRIPE_BIT_DELAY, &sh->state); list_add_tail(&sh->lru, &conf->handle_list); } md_wakeup_thread(conf->mddev->thread); } else { if (test_and_clear_bit(STRIPE_PREREAD_ACTIVE, &sh->state)) { atomic_dec(&conf->preread_active_stripes); if (atomic_read(&conf->preread_active_stripes) < IO_THRESHOLD) md_wakeup_thread(conf->mddev->thread); } list_add_tail(&sh->lru, &conf->inactive_list); atomic_dec(&conf->active_stripes); if (!conf->inactive_blocked || atomic_read(&conf->active_stripes) < (conf->max_nr_stripes*3/4)) wake_up(&conf->wait_for_stripe); } } } static void release_stripe(struct stripe_head *sh) { raid5_conf_t *conf = sh->raid_conf; unsigned long flags; spin_lock_irqsave(&conf->device_lock, flags); __release_stripe(conf, sh); spin_unlock_irqrestore(&conf->device_lock, flags); } static void remove_hash(struct stripe_head *sh) { PRINTK("remove_hash(), stripe %llu\n", (unsigned long long)sh->sector); if (sh->hash_pprev) { if (sh->hash_next) sh->hash_next->hash_pprev = sh->hash_pprev; *sh->hash_pprev = sh->hash_next; sh->hash_pprev = NULL; } } static __inline__ void insert_hash(raid5_conf_t *conf, struct stripe_head *sh) { struct stripe_head **shp = &stripe_hash(conf, sh->sector); PRINTK("insert_hash(), stripe %llu\n", (unsigned long long)sh->sector); CHECK_DEVLOCK(); if ((sh->hash_next = *shp) != NULL) (*shp)->hash_pprev = &sh->hash_next; *shp = sh; sh->hash_pprev = shp; } /* find an idle stripe, make sure it is unhashed, and return it. */ static struct stripe_head *get_free_stripe(raid5_conf_t *conf) { struct stripe_head *sh = NULL; struct list_head *first; CHECK_DEVLOCK(); if (list_empty(&conf->inactive_list)) goto out; first = conf->inactive_list.next; sh = list_entry(first, struct stripe_head, lru); list_del_init(first); remove_hash(sh); atomic_inc(&conf->active_stripes); out: return sh; } static void shrink_buffers(struct stripe_head *sh, int num) { struct page *p; int i; for (i=0; i<num ; i++) { p = sh->dev[i].page; if (!p) continue; sh->dev[i].page = NULL; page_cache_release(p); } } static int grow_buffers(struct stripe_head *sh, int num) { int i; for (i=0; i<num; i++) { struct page *page; if (!(page = alloc_page(GFP_KERNEL))) { return 1; } sh->dev[i].page = page; } return 0; } static void raid5_build_block (struct stripe_head *sh, int i); static inline void init_stripe(struct stripe_head *sh, sector_t sector, int pd_idx) { raid5_conf_t *conf = sh->raid_conf; int disks = conf->raid_disks, i; if (atomic_read(&sh->count) != 0) BUG(); if (test_bit(STRIPE_HANDLE, &sh->state)) BUG(); CHECK_DEVLOCK(); PRINTK("init_stripe called, stripe %llu\n", (unsigned long long)sh->sector); remove_hash(sh); sh->sector = sector; sh->pd_idx = pd_idx; sh->state = 0; for (i=disks; i--; ) { struct r5dev *dev = &sh->dev[i]; if (dev->toread || dev->towrite || dev->written || test_bit(R5_LOCKED, &dev->flags)) { printk("sector=%llx i=%d %p %p %p %d\n", (unsigned long long)sh->sector, i, dev->toread, dev->towrite, dev->written, test_bit(R5_LOCKED, &dev->flags)); BUG(); } dev->flags = 0; raid5_build_block(sh, i); } insert_hash(conf, sh); } static struct stripe_head *__find_stripe(raid5_conf_t *conf, sector_t sector) { struct stripe_head *sh; CHECK_DEVLOCK(); PRINTK("__find_stripe, sector %llu\n", (unsigned long long)sector); for (sh = stripe_hash(conf, sector); sh; sh = sh->hash_next) if (sh->sector == sector) return sh; PRINTK("__stripe %llu not in cache\n", (unsigned long long)sector); return NULL; } static void unplug_slaves(mddev_t *mddev); static void raid5_unplug_device(request_queue_t *q); static struct stripe_head *get_active_stripe(raid5_conf_t *conf, sector_t sector, int pd_idx, int noblock) { struct stripe_head *sh; PRINTK("get_stripe, sector %llu\n", (unsigned long long)sector); spin_lock_irq(&conf->device_lock); do { wait_event_lock_irq(conf->wait_for_stripe, conf->quiesce == 0, conf->device_lock, /* nothing */); sh = __find_stripe(conf, sector); if (!sh) { if (!conf->inactive_blocked) sh = get_free_stripe(conf); if (noblock && sh == NULL) break; if (!sh) { conf->inactive_blocked = 1; wait_event_lock_irq(conf->wait_for_stripe, !list_empty(&conf->inactive_list) && (atomic_read(&conf->active_stripes) < (conf->max_nr_stripes *3/4) || !conf->inactive_blocked), conf->device_lock, unplug_slaves(conf->mddev); ); conf->inactive_blocked = 0; } else init_stripe(sh, sector, pd_idx); } else { if (atomic_read(&sh->count)) { if (!list_empty(&sh->lru)) BUG(); } else { if (!test_bit(STRIPE_HANDLE, &sh->state)) atomic_inc(&conf->active_stripes); if (list_empty(&sh->lru)) BUG(); list_del_init(&sh->lru); } } } while (sh == NULL); if (sh) atomic_inc(&sh->count); spin_unlock_irq(&conf->device_lock); return sh; } static int grow_one_stripe(raid5_conf_t *conf) { struct stripe_head *sh; sh = kmem_cache_alloc(conf->slab_cache, GFP_KERNEL); if (!sh) return 0; memset(sh, 0, sizeof(*sh) + (conf->raid_disks-1)*sizeof(struct r5dev)); sh->raid_conf = conf; spin_lock_init(&sh->lock); if (grow_buffers(sh, conf->raid_disks)) { shrink_buffers(sh, conf->raid_disks); kmem_cache_free(conf->slab_cache, sh); return 0; } /* we just created an active stripe so... */ atomic_set(&sh->count, 1); atomic_inc(&conf->active_stripes); INIT_LIST_HEAD(&sh->lru); release_stripe(sh); return 1; } static int grow_stripes(raid5_conf_t *conf, int num) { kmem_cache_t *sc; int devs = conf->raid_disks; sprintf(conf->cache_name, "raid5/%s", mdname(conf->mddev)); sc = kmem_cache_create(conf->cache_name, sizeof(struct stripe_head)+(devs-1)*sizeof(struct r5dev), 0, 0, NULL, NULL); if (!sc) return 1; conf->slab_cache = sc; while (num--) { if (!grow_one_stripe(conf)) return 1; } return 0; } static int drop_one_stripe(raid5_conf_t *conf) { struct stripe_head *sh; spin_lock_irq(&conf->device_lock); sh = get_free_stripe(conf); spin_unlock_irq(&conf->device_lock); if (!sh) return 0; if (atomic_read(&sh->count)) BUG(); shrink_buffers(sh, conf->raid_disks); kmem_cache_free(conf->slab_cache, sh); atomic_dec(&conf->active_stripes); return 1; } static void shrink_stripes(raid5_conf_t *conf) { while (drop_one_stripe(conf)) ; kmem_cache_destroy(conf->slab_cache); conf->slab_cache = NULL; } static int raid5_end_read_request(struct bio * bi, unsigned int bytes_done, int error) { struct stripe_head *sh = bi->bi_private; raid5_conf_t *conf = sh->raid_conf; int disks = conf->raid_disks, i; int uptodate = test_bit(BIO_UPTODATE, &bi->bi_flags); if (bi->bi_size) return 1; for (i=0 ; i<disks; i++) if (bi == &sh->dev[i].req) break; PRINTK("end_read_request %llu/%d, count: %d, uptodate %d.\n", (unsigned long long)sh->sector, i, atomic_read(&sh->count), uptodate); if (i == disks) { BUG(); return 0; } if (uptodate) { #if 0 struct bio *bio; unsigned long flags; spin_lock_irqsave(&conf->device_lock, flags); /* we can return a buffer if we bypassed the cache or * if the top buffer is not in highmem. If there are * multiple buffers, leave the extra work to * handle_stripe */ buffer = sh->bh_read[i]; if (buffer && (!PageHighMem(buffer->b_page) || buffer->b_page == bh->b_page ) ) { sh->bh_read[i] = buffer->b_reqnext; buffer->b_reqnext = NULL; } else buffer = NULL; spin_unlock_irqrestore(&conf->device_lock, flags); if (sh->bh_page[i]==bh->b_page) set_buffer_uptodate(bh); if (buffer) { if (buffer->b_page != bh->b_page) memcpy(buffer->b_data, bh->b_data, bh->b_size); buffer->b_end_io(buffer, 1); } #else set_bit(R5_UPTODATE, &sh->dev[i].flags); #endif if (test_bit(R5_ReadError, &sh->dev[i].flags)) { printk("R5: read error corrected!!\n"); clear_bit(R5_ReadError, &sh->dev[i].flags); clear_bit(R5_ReWrite, &sh->dev[i].flags); } if (atomic_read(&conf->disks[i].rdev->read_errors)) atomic_set(&conf->disks[i].rdev->read_errors, 0); } else { int retry = 0; clear_bit(R5_UPTODATE, &sh->dev[i].flags); atomic_inc(&conf->disks[i].rdev->read_errors); if (conf->mddev->degraded) printk("R5: read error not correctable.\n"); else if (test_bit(R5_ReWrite, &sh->dev[i].flags)) /* Oh, no!!! */ printk("R5: read error NOT corrected!!\n"); else if (atomic_read(&conf->disks[i].rdev->read_errors) > conf->max_nr_stripes) printk("raid5: Too many read errors, failing device.\n"); else retry = 1; if (retry) set_bit(R5_ReadError, &sh->dev[i].flags); else { clear_bit(R5_ReadError, &sh->dev[i].flags); clear_bit(R5_ReWrite, &sh->dev[i].flags); md_error(conf->mddev, conf->disks[i].rdev); } } rdev_dec_pending(conf->disks[i].rdev, conf->mddev); #if 0 /* must restore b_page before unlocking buffer... */ if (sh->bh_page[i] != bh->b_page) { bh->b_page = sh->bh_page[i]; bh->b_data = page_address(bh->b_page); clear_buffer_uptodate(bh); } #endif clear_bit(R5_LOCKED, &sh->dev[i].flags); set_bit(STRIPE_HANDLE, &sh->state); release_stripe(sh); return 0; } static int raid5_end_write_request (struct bio *bi, unsigned int bytes_done, int error) { struct stripe_head *sh = bi->bi_private; raid5_conf_t *conf = sh->raid_conf; int disks = conf->raid_disks, i; unsigned long flags; int uptodate = test_bit(BIO_UPTODATE, &bi->bi_flags); if (bi->bi_size) return 1; for (i=0 ; i<disks; i++) if (bi == &sh->dev[i].req) break; PRINTK("end_write_request %llu/%d, count %d, uptodate: %d.\n", (unsigned long long)sh->sector, i, atomic_read(&sh->count), uptodate); if (i == disks) { BUG(); return 0; } spin_lock_irqsave(&conf->device_lock, flags); if (!uptodate) md_error(conf->mddev, conf->disks[i].rdev); rdev_dec_pending(conf->disks[i].rdev, conf->mddev); clear_bit(R5_LOCKED, &sh->dev[i].flags); set_bit(STRIPE_HANDLE, &sh->state); __release_stripe(conf, sh); spin_unlock_irqrestore(&conf->device_lock, flags); return 0; } static sector_t compute_blocknr(struct stripe_head *sh, int i); static void raid5_build_block (struct stripe_head *sh, int i) { struct r5dev *dev = &sh->dev[i]; bio_init(&dev->req); dev->req.bi_io_vec = &dev->vec; dev->req.bi_vcnt++; dev->req.bi_max_vecs++; dev->vec.bv_page = dev->page; dev->vec.bv_len = STRIPE_SIZE; dev->vec.bv_offset = 0; dev->req.bi_sector = sh->sector; dev->req.bi_private = sh; dev->flags = 0; if (i != sh->pd_idx) dev->sector = compute_blocknr(sh, i); } static void error(mddev_t *mddev, mdk_rdev_t *rdev) { char b[BDEVNAME_SIZE]; raid5_conf_t *conf = (raid5_conf_t *) mddev->private; PRINTK("raid5: error called\n"); if (!test_bit(Faulty, &rdev->flags)) { mddev->sb_dirty = 1; if (test_bit(In_sync, &rdev->flags)) { conf->working_disks--; mddev->degraded++; conf->failed_disks++; clear_bit(In_sync, &rdev->flags); /* * if recovery was running, make sure it aborts. */ set_bit(MD_RECOVERY_ERR, &mddev->recovery); } set_bit(Faulty, &rdev->flags); printk (KERN_ALERT "raid5: Disk failure on %s, disabling device." " Operation continuing on %d devices\n", bdevname(rdev->bdev,b), conf->working_disks); } } /* * Input: a 'big' sector number, * Output: index of the data and parity disk, and the sector # in them. */ static sector_t raid5_compute_sector(sector_t r_sector, unsigned int raid_disks, unsigned int data_disks, unsigned int * dd_idx, unsigned int * pd_idx, raid5_conf_t *conf) { long stripe; unsigned long chunk_number; unsigned int chunk_offset; sector_t new_sector; int sectors_per_chunk = conf->chunk_size >> 9; /* First compute the information on this sector */ /* * Compute the chunk number and the sector offset inside the chunk */ chunk_offset = sector_div(r_sector, sectors_per_chunk); chunk_number = r_sector; BUG_ON(r_sector != chunk_number); /* * Compute the stripe number */ stripe = chunk_number / data_disks; /* * Compute the data disk and parity disk indexes inside the stripe */ *dd_idx = chunk_number % data_disks; /* * Select the parity disk based on the user selected algorithm. */ if (conf->level == 4) *pd_idx = data_disks; else switch (conf->algorithm) { case ALGORITHM_LEFT_ASYMMETRIC: *pd_idx = data_disks - stripe % raid_disks; if (*dd_idx >= *pd_idx) (*dd_idx)++; break; case ALGORITHM_RIGHT_ASYMMETRIC: *pd_idx = stripe % raid_disks; if (*dd_idx >= *pd_idx) (*dd_idx)++; break; case ALGORITHM_LEFT_SYMMETRIC: *pd_idx = data_disks - stripe % raid_disks; *dd_idx = (*pd_idx + 1 + *dd_idx) % raid_disks; break; case ALGORITHM_RIGHT_SYMMETRIC: *pd_idx = stripe % raid_disks; *dd_idx = (*pd_idx + 1 + *dd_idx) % raid_disks; break; default: printk("raid5: unsupported algorithm %d\n", conf->algorithm); } /* * Finally, compute the new sector number */ new_sector = (sector_t)stripe * sectors_per_chunk + chunk_offset; return new_sector; } static sector_t compute_blocknr(struct stripe_head *sh, int i) { raid5_conf_t *conf = sh->raid_conf; int raid_disks = conf->raid_disks, data_disks = raid_disks - 1; sector_t new_sector = sh->sector, check; int sectors_per_chunk = conf->chunk_size >> 9; sector_t stripe; int chunk_offset; int chunk_number, dummy1, dummy2, dd_idx = i; sector_t r_sector; chunk_offset = sector_div(new_sector, sectors_per_chunk); stripe = new_sector; BUG_ON(new_sector != stripe); switch (conf->algorithm) { case ALGORITHM_LEFT_ASYMMETRIC: case ALGORITHM_RIGHT_ASYMMETRIC: if (i > sh->pd_idx) i--; break; case ALGORITHM_LEFT_SYMMETRIC: case ALGORITHM_RIGHT_SYMMETRIC: if (i < sh->pd_idx) i += raid_disks; i -= (sh->pd_idx + 1); break; default: printk("raid5: unsupported algorithm %d\n", conf->algorithm); } chunk_number = stripe * data_disks + i; r_sector = (sector_t)chunk_number * sectors_per_chunk + chunk_offset; check = raid5_compute_sector (r_sector, raid_disks, data_disks, &dummy1, &dummy2, conf); if (check != sh->sector || dummy1 != dd_idx || dummy2 != sh->pd_idx) { printk("compute_blocknr: map not correct\n"); return 0; } return r_sector; } /* * Copy data between a page in the stripe cache, and a bio. * There are no alignment or size guarantees between the page or the * bio except that there is some overlap. * All iovecs in the bio must be considered. */ static void copy_data(int frombio, struct bio *bio, struct page *page, sector_t sector) { char *pa = page_address(page); struct bio_vec *bvl; int i; int page_offset; if (bio->bi_sector >= sector) page_offset = (signed)(bio->bi_sector - sector) * 512; else page_offset = (signed)(sector - bio->bi_sector) * -512; bio_for_each_segment(bvl, bio, i) { int len = bio_iovec_idx(bio,i)->bv_len; int clen; int b_offset = 0; if (page_offset < 0) { b_offset = -page_offset; page_offset += b_offset; len -= b_offset; } if (len > 0 && page_offset + len > STRIPE_SIZE) clen = STRIPE_SIZE - page_offset; else clen = len; if (clen > 0) { char *ba = __bio_kmap_atomic(bio, i, KM_USER0); if (frombio) memcpy(pa+page_offset, ba+b_offset, clen); else memcpy(ba+b_offset, pa+page_offset, clen); __bio_kunmap_atomic(ba, KM_USER0); } if (clen < len) /* hit end of page */ break; page_offset += len; } } #define check_xor() do { \ if (count == MAX_XOR_BLOCKS) { \ xor_block(count, STRIPE_SIZE, ptr); \ count = 1; \ } \ } while(0) static void compute_block(struct stripe_head *sh, int dd_idx) { raid5_conf_t *conf = sh->raid_conf; int i, count, disks = conf->raid_disks; void *ptr[MAX_XOR_BLOCKS], *p; PRINTK("compute_block, stripe %llu, idx %d\n", (unsigned long long)sh->sector, dd_idx); ptr[0] = page_address(sh->dev[dd_idx].page); memset(ptr[0], 0, STRIPE_SIZE); count = 1; for (i = disks ; i--; ) { if (i == dd_idx) continue; p = page_address(sh->dev[i].page); if (test_bit(R5_UPTODATE, &sh->dev[i].flags)) ptr[count++] = p; else printk("compute_block() %d, stripe %llu, %d" " not present\n", dd_idx, (unsigned long long)sh->sector, i); check_xor(); } if (count != 1) xor_block(count, STRIPE_SIZE, ptr); set_bit(R5_UPTODATE, &sh->dev[dd_idx].flags); } static void compute_parity(struct stripe_head *sh, int method) { raid5_conf_t *conf = sh->raid_conf; int i, pd_idx = sh->pd_idx, disks = conf->raid_disks, count; void *ptr[MAX_XOR_BLOCKS]; struct bio *chosen; PRINTK("compute_parity, stripe %llu, method %d\n", (unsigned long long)sh->sector, method); count = 1; ptr[0] = page_address(sh->dev[pd_idx].page); switch(method) { case READ_MODIFY_WRITE: if (!test_bit(R5_UPTODATE, &sh->dev[pd_idx].flags)) BUG(); for (i=disks ; i-- ;) { if (i==pd_idx) continue; if (sh->dev[i].towrite && test_bit(R5_UPTODATE, &sh->dev[i].flags)) { ptr[count++] = page_address(sh->dev[i].page); chosen = sh->dev[i].towrite; sh->dev[i].towrite = NULL; if (test_and_clear_bit(R5_Overlap, &sh->dev[i].flags)) wake_up(&conf->wait_for_overlap); if (sh->dev[i].written) BUG(); sh->dev[i].written = chosen; check_xor(); } } break; case RECONSTRUCT_WRITE: memset(ptr[0], 0, STRIPE_SIZE); for (i= disks; i-- ;) if (i!=pd_idx && sh->dev[i].towrite) { chosen = sh->dev[i].towrite; sh->dev[i].towrite = NULL; if (test_and_clear_bit(R5_Overlap, &sh->dev[i].flags)) wake_up(&conf->wait_for_overlap); if (sh->dev[i].written) BUG(); sh->dev[i].written = chosen; } break; case CHECK_PARITY: break; } if (count>1) { xor_block(count, STRIPE_SIZE, ptr); count = 1; } for (i = disks; i--;) if (sh->dev[i].written) { sector_t sector = sh->dev[i].sector; struct bio *wbi = sh->dev[i].written; while (wbi && wbi->bi_sector < sector + STRIPE_SECTORS) { copy_data(1, wbi, sh->dev[i].page, sector); wbi = r5_next_bio(wbi, sector); } set_bit(R5_LOCKED, &sh->dev[i].flags); set_bit(R5_UPTODATE, &sh->dev[i].flags); } switch(method) { case RECONSTRUCT_WRITE: case CHECK_PARITY: for (i=disks; i--;) if (i != pd_idx) { ptr[count++] = page_address(sh->dev[i].page); check_xor(); } break; case READ_MODIFY_WRITE: for (i = disks; i--;) if (sh->dev[i].written) { ptr[count++] = page_address(sh->dev[i].page); check_xor(); } } if (count != 1) xor_block(count, STRIPE_SIZE, ptr); if (method != CHECK_PARITY) { set_bit(R5_UPTODATE, &sh->dev[pd_idx].flags); set_bit(R5_LOCKED, &sh->dev[pd_idx].flags); } else clear_bit(R5_UPTODATE, &sh->dev[pd_idx].flags); } /* * Each stripe/dev can have one or more bion attached. * toread/towrite point to the first in a chain. * The bi_next chain must be in order. */ static int add_stripe_bio(struct stripe_head *sh, struct bio *bi, int dd_idx, int forwrite) { struct bio **bip; raid5_conf_t *conf = sh->raid_conf; int firstwrite=0; PRINTK("adding bh b#%llu to stripe s#%llu\n", (unsigned long long)bi->bi_sector, (unsigned long long)sh->sector); spin_lock(&sh->lock); spin_lock_irq(&conf->device_lock); if (forwrite) { bip = &sh->dev[dd_idx].towrite; if (*bip == NULL && sh->dev[dd_idx].written == NULL) firstwrite = 1; } else bip = &sh->dev[dd_idx].toread; while (*bip && (*bip)->bi_sector < bi->bi_sector) { if ((*bip)->bi_sector + ((*bip)->bi_size >> 9) > bi->bi_sector) goto overlap; bip = & (*bip)->bi_next; } if (*bip && (*bip)->bi_sector < bi->bi_sector + ((bi->bi_size)>>9)) goto overlap; if (*bip && bi->bi_next && (*bip) != bi->bi_next) BUG(); if (*bip) bi->bi_next = *bip; *bip = bi; bi->bi_phys_segments ++; spin_unlock_irq(&conf->device_lock); spin_unlock(&sh->lock); PRINTK("added bi b#%llu to stripe s#%llu, disk %d.\n", (unsigned long long)bi->bi_sector, (unsigned long long)sh->sector, dd_idx); if (conf->mddev->bitmap && firstwrite) { sh->bm_seq = conf->seq_write; bitmap_startwrite(conf->mddev->bitmap, sh->sector, STRIPE_SECTORS, 0); set_bit(STRIPE_BIT_DELAY, &sh->state); } if (forwrite) { /* check if page is covered */ sector_t sector = sh->dev[dd_idx].sector; for (bi=sh->dev[dd_idx].towrite; sector < sh->dev[dd_idx].sector + STRIPE_SECTORS && bi && bi->bi_sector <= sector; bi = r5_next_bio(bi, sh->dev[dd_idx].sector)) { if (bi->bi_sector + (bi->bi_size>>9) >= sector) sector = bi->bi_sector + (bi->bi_size>>9); } if (sector >= sh->dev[dd_idx].sector + STRIPE_SECTORS) set_bit(R5_OVERWRITE, &sh->dev[dd_idx].flags); } return 1; overlap: set_bit(R5_Overlap, &sh->dev[dd_idx].flags); spin_unlock_irq(&conf->device_lock); spin_unlock(&sh->lock); return 0; } /* * handle_stripe - do things to a stripe. * * We lock the stripe and then examine the state of various bits * to see what needs to be done. * Possible results: * return some read request which now have data * return some write requests which are safely on disc * schedule a read on some buffers * schedule a write of some buffers * return confirmation of parity correctness * * Parity calculations are done inside the stripe lock * buffers are taken off read_list or write_list, and bh_cache buffers * get BH_Lock set before the stripe lock is released. * */ static void handle_stripe(struct stripe_head *sh) { raid5_conf_t *conf = sh->raid_conf; int disks = conf->raid_disks; struct bio *return_bi= NULL; struct bio *bi; int i; int syncing; int locked=0, uptodate=0, to_read=0, to_write=0, failed=0, written=0; int non_overwrite = 0; int failed_num=0; struct r5dev *dev; PRINTK("handling stripe %llu, cnt=%d, pd_idx=%d\n", (unsigned long long)sh->sector, atomic_read(&sh->count), sh->pd_idx); spin_lock(&sh->lock); clear_bit(STRIPE_HANDLE, &sh->state); clear_bit(STRIPE_DELAYED, &sh->state); syncing = test_bit(STRIPE_SYNCING, &sh->state); /* Now to look around and see what can be done */ for (i=disks; i--; ) { mdk_rdev_t *rdev; dev = &sh->dev[i]; clear_bit(R5_Insync, &dev->flags); clear_bit(R5_Syncio, &dev->flags); PRINTK("check %d: state 0x%lx read %p write %p written %p\n", i, dev->flags, dev->toread, dev->towrite, dev->written); /* maybe we can reply to a read */ if (test_bit(R5_UPTODATE, &dev->flags) && dev->toread) { struct bio *rbi, *rbi2; PRINTK("Return read for disc %d\n", i); spin_lock_irq(&conf->device_lock); rbi = dev->toread; dev->toread = NULL; if (test_and_clear_bit(R5_Overlap, &dev->flags)) wake_up(&conf->wait_for_overlap); spin_unlock_irq(&conf->device_lock); while (rbi && rbi->bi_sector < dev->sector + STRIPE_SECTORS) { copy_data(0, rbi, dev->page, dev->sector); rbi2 = r5_next_bio(rbi, dev->sector); spin_lock_irq(&conf->device_lock); if (--rbi->bi_phys_segments == 0) { rbi->bi_next = return_bi; return_bi = rbi; } spin_unlock_irq(&conf->device_lock); rbi = rbi2; } } /* now count some things */ if (test_bit(R5_LOCKED, &dev->flags)) locked++; if (test_bit(R5_UPTODATE, &dev->flags)) uptodate++; if (dev->toread) to_read++; if (dev->towrite) { to_write++; if (!test_bit(R5_OVERWRITE, &dev->flags)) non_overwrite++; } if (dev->written) written++; rdev = conf->disks[i].rdev; /* FIXME, should I be looking rdev */ if (!rdev || !test_bit(In_sync, &rdev->flags)) { /* The ReadError flag wil just be confusing now */ clear_bit(R5_ReadError, &dev->flags); clear_bit(R5_ReWrite, &dev->flags); } if (!rdev || !test_bit(In_sync, &rdev->flags) || test_bit(R5_ReadError, &dev->flags)) { failed++; failed_num = i; } else set_bit(R5_Insync, &dev->flags); } PRINTK("locked=%d uptodate=%d to_read=%d" " to_write=%d failed=%d failed_num=%d\n", locked, uptodate, to_read, to_write, failed, failed_num); /* check if the array has lost two devices and, if so, some requests might * need to be failed */ if (failed > 1 && to_read+to_write+written) { for (i=disks; i--; ) { int bitmap_end = 0; if (test_bit(R5_ReadError, &sh->dev[i].flags)) { mdk_rdev_t *rdev = conf->disks[i].rdev; if (rdev && test_bit(In_sync, &rdev->flags)) /* multiple read failures in one stripe */ md_error(conf->mddev, rdev); } spin_lock_irq(&conf->device_lock); /* fail all writes first */ bi = sh->dev[i].towrite; sh->dev[i].towrite = NULL; if (bi) { to_write--; bitmap_end = 1; } if (test_and_clear_bit(R5_Overlap, &sh->dev[i].flags)) wake_up(&conf->wait_for_overlap); while (bi && bi->bi_sector < sh->dev[i].sector + STRIPE_SECTORS){ struct bio *nextbi = r5_next_bio(bi, sh->dev[i].sector); clear_bit(BIO_UPTODATE, &bi->bi_flags); if (--bi->bi_phys_segments == 0) { md_write_end(conf->mddev); bi->bi_next = return_bi; return_bi = bi; } bi = nextbi; } /* and fail all 'written' */ bi = sh->dev[i].written; sh->dev[i].written = NULL; if (bi) bitmap_end = 1; while (bi && bi->bi_sector < sh->dev[i].sector + STRIPE_SECTORS) { struct bio *bi2 = r5_next_bio(bi, sh->dev[i].sector); clear_bit(BIO_UPTODATE, &bi->bi_flags); if (--bi->bi_phys_segments == 0) { md_write_end(conf->mddev); bi->bi_next = return_bi; return_bi = bi; } bi = bi2; } /* fail any reads if this device is non-operational */ if (!test_bit(R5_Insync, &sh->dev[i].flags) || test_bit(R5_ReadError, &sh->dev[i].flags)) { bi = sh->dev[i].toread; sh->dev[i].toread = NULL; if (test_and_clear_bit(R5_Overlap, &sh->dev[i].flags)) wake_up(&conf->wait_for_overlap); if (bi) to_read--; while (bi && bi->bi_sector < sh->dev[i].sector + STRIPE_SECTORS){ struct bio *nextbi = r5_next_bio(bi, sh->dev[i].sector); clear_bit(BIO_UPTODATE, &bi->bi_flags); if (--bi->bi_phys_segments == 0) { bi->bi_next = return_bi; return_bi = bi; } bi = nextbi; } } spin_unlock_irq(&conf->device_lock); if (bitmap_end) bitmap_endwrite(conf->mddev->bitmap, sh->sector, STRIPE_SECTORS, 0, 0); } } if (failed > 1 && syncing) { md_done_sync(conf->mddev, STRIPE_SECTORS,0); clear_bit(STRIPE_SYNCING, &sh->state); syncing = 0; } /* might be able to return some write requests if the parity block * is safe, or on a failed drive */ dev = &sh->dev[sh->pd_idx]; if ( written && ( (test_bit(R5_Insync, &dev->flags) && !test_bit(R5_LOCKED, &dev->flags) && test_bit(R5_UPTODATE, &dev->flags)) || (failed == 1 && failed_num == sh->pd_idx)) ) { /* any written block on an uptodate or failed drive can be returned. * Note that if we 'wrote' to a failed drive, it will be UPTODATE, but * never LOCKED, so we don't need to test 'failed' directly. */ for (i=disks; i--; ) if (sh->dev[i].written) { dev = &sh->dev[i]; if (!test_bit(R5_LOCKED, &dev->flags) && test_bit(R5_UPTODATE, &dev->flags) ) { /* We can return any write requests */ struct bio *wbi, *wbi2; int bitmap_end = 0; PRINTK("Return write for disc %d\n", i); spin_lock_irq(&conf->device_lock); wbi = dev->written; dev->written = NULL; while (wbi && wbi->bi_sector < dev->sector + STRIPE_SECTORS) { wbi2 = r5_next_bio(wbi, dev->sector); if (--wbi->bi_phys_segments == 0) { md_write_end(conf->mddev); wbi->bi_next = return_bi; return_bi = wbi; } wbi = wbi2; } if (dev->towrite == NULL) bitmap_end = 1; spin_unlock_irq(&conf->device_lock); if (bitmap_end) bitmap_endwrite(conf->mddev->bitmap, sh->sector, STRIPE_SECTORS, !test_bit(STRIPE_DEGRADED, &sh->state), 0); } } } /* Now we might consider reading some blocks, either to check/generate * parity, or to satisfy requests * or to load a block that is being partially written. */ if (to_read || non_overwrite || (syncing && (uptodate < disks))) { for (i=disks; i--;) { dev = &sh->dev[i]; if (!test_bit(R5_LOCKED, &dev->flags) && !test_bit(R5_UPTODATE, &dev->flags) && (dev->toread || (dev->towrite && !test_bit(R5_OVERWRITE, &dev->flags)) || syncing || (failed && (sh->dev[failed_num].toread || (sh->dev[failed_num].towrite && !test_bit(R5_OVERWRITE, &sh->dev[failed_num].flags)))) ) ) { /* we would like to get this block, possibly * by computing it, but we might not be able to */ if (uptodate == disks-1) { PRINTK("Computing block %d\n", i); compute_block(sh, i); uptodate++; } else if (test_bit(R5_Insync, &dev->flags)) { set_bit(R5_LOCKED, &dev->flags); set_bit(R5_Wantread, &dev->flags); #if 0 /* if I am just reading this block and we don't have a failed drive, or any pending writes then sidestep the cache */ if (sh->bh_read[i] && !sh->bh_read[i]->b_reqnext && ! syncing && !failed && !to_write) { sh->bh_cache[i]->b_page = sh->bh_read[i]->b_page; sh->bh_cache[i]->b_data = sh->bh_read[i]->b_data; } #endif locked++; PRINTK("Reading block %d (sync=%d)\n", i, syncing); if (syncing) md_sync_acct(conf->disks[i].rdev->bdev, STRIPE_SECTORS); } } } set_bit(STRIPE_HANDLE, &sh->state); } /* now to consider writing and what else, if anything should be read */ if (to_write) { int rmw=0, rcw=0; for (i=disks ; i--;) { /* would I have to read this buffer for read_modify_write */ dev = &sh->dev[i]; if ((dev->towrite || i == sh->pd_idx) && (!test_bit(R5_LOCKED, &dev->flags) #if 0 || sh->bh_page[i]!=bh->b_page #endif ) && !test_bit(R5_UPTODATE, &dev->flags)) { if (test_bit(R5_Insync, &dev->flags) /* && !(!mddev->insync && i == sh->pd_idx) */ ) rmw++; else rmw += 2*disks; /* cannot read it */ } /* Would I have to read this buffer for reconstruct_write */ if (!test_bit(R5_OVERWRITE, &dev->flags) && i != sh->pd_idx && (!test_bit(R5_LOCKED, &dev->flags) #if 0 || sh->bh_page[i] != bh->b_page #endif ) && !test_bit(R5_UPTODATE, &dev->flags)) { if (test_bit(R5_Insync, &dev->flags)) rcw++; else rcw += 2*disks; } } PRINTK("for sector %llu, rmw=%d rcw=%d\n", (unsigned long long)sh->sector, rmw, rcw); set_bit(STRIPE_HANDLE, &sh->state); if (rmw < rcw && rmw > 0) /* prefer read-modify-write, but need to get some data */ for (i=disks; i--;) { dev = &sh->dev[i]; if ((dev->towrite || i == sh->pd_idx) && !test_bit(R5_LOCKED, &dev->flags) && !test_bit(R5_UPTODATE, &dev->flags) && test_bit(R5_Insync, &dev->flags)) { if (test_bit(STRIPE_PREREAD_ACTIVE, &sh->state)) { PRINTK("Read_old block %d for r-m-w\n", i); set_bit(R5_LOCKED, &dev->flags); set_bit(R5_Wantread, &dev->flags); locked++; } else { set_bit(STRIPE_DELAYED, &sh->state); set_bit(STRIPE_HANDLE, &sh->state); } } } if (rcw <= rmw && rcw > 0) /* want reconstruct write, but need to get some data */ for (i=disks; i--;) { dev = &sh->dev[i]; if (!test_bit(R5_OVERWRITE, &dev->flags) && i != sh->pd_idx && !test_bit(R5_LOCKED, &dev->flags) && !test_bit(R5_UPTODATE, &dev->flags) && test_bit(R5_Insync, &dev->flags)) { if (test_bit(STRIPE_PREREAD_ACTIVE, &sh->state)) { PRINTK("Read_old block %d for Reconstruct\n", i); set_bit(R5_LOCKED, &dev->flags); set_bit(R5_Wantread, &dev->flags); locked++; } else { set_bit(STRIPE_DELAYED, &sh->state); set_bit(STRIPE_HANDLE, &sh->state); } } } /* now if nothing is locked, and if we have enough data, we can start a write request */ if (locked == 0 && (rcw == 0 ||rmw == 0) && !test_bit(STRIPE_BIT_DELAY, &sh->state)) { PRINTK("Computing parity...\n"); compute_parity(sh, rcw==0 ? RECONSTRUCT_WRITE : READ_MODIFY_WRITE); /* now every locked buffer is ready to be written */ for (i=disks; i--;) if (test_bit(R5_LOCKED, &sh->dev[i].flags)) { PRINTK("Writing block %d\n", i); locked++; set_bit(R5_Wantwrite, &sh->dev[i].flags); if (!test_bit(R5_Insync, &sh->dev[i].flags) || (i==sh->pd_idx && failed == 0)) set_bit(STRIPE_INSYNC, &sh->state); } if (test_and_clear_bit(STRIPE_PREREAD_ACTIVE, &sh->state)) { atomic_dec(&conf->preread_active_stripes); if (atomic_read(&conf->preread_active_stripes) < IO_THRESHOLD) md_wakeup_thread(conf->mddev->thread); } } } /* maybe we need to check and possibly fix the parity for this stripe * Any reads will already have been scheduled, so we just see if enough data * is available */ if (syncing && locked == 0 && !test_bit(STRIPE_INSYNC, &sh->state) && failed <= 1) { set_bit(STRIPE_HANDLE, &sh->state); if (failed == 0) { char *pagea; if (uptodate != disks) BUG(); compute_parity(sh, CHECK_PARITY); uptodate--; pagea = page_address(sh->dev[sh->pd_idx].page); if ((*(u32*)pagea) == 0 && !memcmp(pagea, pagea+4, STRIPE_SIZE-4)) { /* parity is correct (on disc, not in buffer any more) */ set_bit(STRIPE_INSYNC, &sh->state); } else { conf->mddev->resync_mismatches += STRIPE_SECTORS; if (test_bit(MD_RECOVERY_CHECK, &conf->mddev->recovery)) /* don't try to repair!! */ set_bit(STRIPE_INSYNC, &sh->state); } } if (!test_bit(STRIPE_INSYNC, &sh->state)) { if (failed==0) failed_num = sh->pd_idx; /* should be able to compute the missing block and write it to spare */ if (!test_bit(R5_UPTODATE, &sh->dev[failed_num].flags)) { if (uptodate+1 != disks) BUG(); compute_block(sh, failed_num); uptodate++; } if (uptodate != disks) BUG(); dev = &sh->dev[failed_num]; set_bit(R5_LOCKED, &dev->flags); set_bit(R5_Wantwrite, &dev->flags); clear_bit(STRIPE_DEGRADED, &sh->state); locked++; set_bit(STRIPE_INSYNC, &sh->state); set_bit(R5_Syncio, &dev->flags); } } if (syncing && locked == 0 && test_bit(STRIPE_INSYNC, &sh->state)) { md_done_sync(conf->mddev, STRIPE_SECTORS,1); clear_bit(STRIPE_SYNCING, &sh->state); } /* If the failed drive is just a ReadError, then we might need to progress * the repair/check process */ if (failed == 1 && ! conf->mddev->ro && test_bit(R5_ReadError, &sh->dev[failed_num].flags) && !test_bit(R5_LOCKED, &sh->dev[failed_num].flags) && test_bit(R5_UPTODATE, &sh->dev[failed_num].flags) ) { dev = &sh->dev[failed_num]; if (!test_bit(R5_ReWrite, &dev->flags)) { set_bit(R5_Wantwrite, &dev->flags); set_bit(R5_ReWrite, &dev->flags); set_bit(R5_LOCKED, &dev->flags); } else { /* let's read it back */ set_bit(R5_Wantread, &dev->flags); set_bit(R5_LOCKED, &dev->flags); } } spin_unlock(&sh->lock); while ((bi=return_bi)) { int bytes = bi->bi_size; return_bi = bi->bi_next; bi->bi_next = NULL; bi->bi_size = 0; bi->bi_end_io(bi, bytes, 0); } for (i=disks; i-- ;) { int rw; struct bio *bi; mdk_rdev_t *rdev; if (test_and_clear_bit(R5_Wantwrite, &sh->dev[i].flags)) rw = 1; else if (test_and_clear_bit(R5_Wantread, &sh->dev[i].flags)) rw = 0; else continue; bi = &sh->dev[i].req; bi->bi_rw = rw; if (rw) bi->bi_end_io = raid5_end_write_request; else bi->bi_end_io = raid5_end_read_request; rcu_read_lock(); rdev = rcu_dereference(conf->disks[i].rdev); if (rdev && test_bit(Faulty, &rdev->flags)) rdev = NULL; if (rdev) atomic_inc(&rdev->nr_pending); rcu_read_unlock(); if (rdev) { if (test_bit(R5_Syncio, &sh->dev[i].flags)) md_sync_acct(rdev->bdev, STRIPE_SECTORS); bi->bi_bdev = rdev->bdev; PRINTK("for %llu schedule op %ld on disc %d\n", (unsigned long long)sh->sector, bi->bi_rw, i); atomic_inc(&sh->count); bi->bi_sector = sh->sector + rdev->data_offset; bi->bi_flags = 1 << BIO_UPTODATE; bi->bi_vcnt = 1; bi->bi_max_vecs = 1; bi->bi_idx = 0; bi->bi_io_vec = &sh->dev[i].vec; bi->bi_io_vec[0].bv_len = STRIPE_SIZE; bi->bi_io_vec[0].bv_offset = 0; bi->bi_size = STRIPE_SIZE; bi->bi_next = NULL; generic_make_request(bi); } else { if (rw == 1) set_bit(STRIPE_DEGRADED, &sh->state); PRINTK("skip op %ld on disc %d for sector %llu\n", bi->bi_rw, i, (unsigned long long)sh->sector); clear_bit(R5_LOCKED, &sh->dev[i].flags); set_bit(STRIPE_HANDLE, &sh->state); } } } static inline void raid5_activate_delayed(raid5_conf_t *conf) { if (atomic_read(&conf->preread_active_stripes) < IO_THRESHOLD) { while (!list_empty(&conf->delayed_list)) { struct list_head *l = conf->delayed_list.next; struct stripe_head *sh; sh = list_entry(l, struct stripe_head, lru); list_del_init(l); clear_bit(STRIPE_DELAYED, &sh->state); if (!test_and_set_bit(STRIPE_PREREAD_ACTIVE, &sh->state)) atomic_inc(&conf->preread_active_stripes); list_add_tail(&sh->lru, &conf->handle_list); } } } static inline void activate_bit_delay(raid5_conf_t *conf) { /* device_lock is held */ struct list_head head; list_add(&head, &conf->bitmap_list); list_del_init(&conf->bitmap_list); while (!list_empty(&head)) { struct stripe_head *sh = list_entry(head.next, struct stripe_head, lru); list_del_init(&sh->lru); atomic_inc(&sh->count); __release_stripe(conf, sh); } } static void unplug_slaves(mddev_t *mddev) { raid5_conf_t *conf = mddev_to_conf(mddev); int i; rcu_read_lock(); for (i=0; i<mddev->raid_disks; i++) { mdk_rdev_t *rdev = rcu_dereference(conf->disks[i].rdev); if (rdev && !test_bit(Faulty, &rdev->flags) && atomic_read(&rdev->nr_pending)) { request_queue_t *r_queue = bdev_get_queue(rdev->bdev); atomic_inc(&rdev->nr_pending); rcu_read_unlock(); if (r_queue->unplug_fn) r_queue->unplug_fn(r_queue); rdev_dec_pending(rdev, mddev); rcu_read_lock(); } } rcu_read_unlock(); } static void raid5_unplug_device(request_queue_t *q) { mddev_t *mddev = q->queuedata; raid5_conf_t *conf = mddev_to_conf(mddev); unsigned long flags; spin_lock_irqsave(&conf->device_lock, flags); if (blk_remove_plug(q)) { conf->seq_flush++; raid5_activate_delayed(conf); } md_wakeup_thread(mddev->thread); spin_unlock_irqrestore(&conf->device_lock, flags); unplug_slaves(mddev); } static int raid5_issue_flush(request_queue_t *q, struct gendisk *disk, sector_t *error_sector) { mddev_t *mddev = q->queuedata; raid5_conf_t *conf = mddev_to_conf(mddev); int i, ret = 0; rcu_read_lock(); for (i=0; i<mddev->raid_disks && ret == 0; i++) { mdk_rdev_t *rdev = rcu_dereference(conf->disks[i].rdev); if (rdev && !test_bit(Faulty, &rdev->flags)) { struct block_device *bdev = rdev->bdev; request_queue_t *r_queue = bdev_get_queue(bdev); if (!r_queue->issue_flush_fn) ret = -EOPNOTSUPP; else { atomic_inc(&rdev->nr_pending); rcu_read_unlock(); ret = r_queue->issue_flush_fn(r_queue, bdev->bd_disk, error_sector); rdev_dec_pending(rdev, mddev); rcu_read_lock(); } } } rcu_read_unlock(); return ret; } static inline void raid5_plug_device(raid5_conf_t *conf) { spin_lock_irq(&conf->device_lock); blk_plug_device(conf->mddev->queue); spin_unlock_irq(&conf->device_lock); } static int make_request (request_queue_t *q, struct bio * bi) { mddev_t *mddev = q->queuedata; raid5_conf_t *conf = mddev_to_conf(mddev); const unsigned int raid_disks = conf->raid_disks; const unsigned int data_disks = raid_disks - 1; unsigned int dd_idx, pd_idx; sector_t new_sector; sector_t logical_sector, last_sector; struct stripe_head *sh; const int rw = bio_data_dir(bi); if (unlikely(bio_barrier(bi))) { bio_endio(bi, bi->bi_size, -EOPNOTSUPP); return 0; } md_write_start(mddev, bi); disk_stat_inc(mddev->gendisk, ios[rw]); disk_stat_add(mddev->gendisk, sectors[rw], bio_sectors(bi)); logical_sector = bi->bi_sector & ~((sector_t)STRIPE_SECTORS-1); last_sector = bi->bi_sector + (bi->bi_size>>9); bi->bi_next = NULL; bi->bi_phys_segments = 1; /* over-loaded to count active stripes */ for (;logical_sector < last_sector; logical_sector += STRIPE_SECTORS) { DEFINE_WAIT(w); new_sector = raid5_compute_sector(logical_sector, raid_disks, data_disks, &dd_idx, &pd_idx, conf); PRINTK("raid5: make_request, sector %llu logical %llu\n", (unsigned long long)new_sector, (unsigned long long)logical_sector); retry: prepare_to_wait(&conf->wait_for_overlap, &w, TASK_UNINTERRUPTIBLE); sh = get_active_stripe(conf, new_sector, pd_idx, (bi->bi_rw&RWA_MASK)); if (sh) { if (!add_stripe_bio(sh, bi, dd_idx, (bi->bi_rw&RW_MASK))) { /* Add failed due to overlap. Flush everything * and wait a while */ raid5_unplug_device(mddev->queue); release_stripe(sh); schedule(); goto retry; } finish_wait(&conf->wait_for_overlap, &w); raid5_plug_device(conf); handle_stripe(sh); release_stripe(sh); } else { /* cannot get stripe for read-ahead, just give-up */ clear_bit(BIO_UPTODATE, &bi->bi_flags); finish_wait(&conf->wait_for_overlap, &w); break; } } spin_lock_irq(&conf->device_lock); if (--bi->bi_phys_segments == 0) { int bytes = bi->bi_size; if ( bio_data_dir(bi) == WRITE ) md_write_end(mddev); bi->bi_size = 0; bi->bi_end_io(bi, bytes, 0); } spin_unlock_irq(&conf->device_lock); return 0; } /* FIXME go_faster isn't used */ static sector_t sync_request(mddev_t *mddev, sector_t sector_nr, int *skipped, int go_faster) { raid5_conf_t *conf = (raid5_conf_t *) mddev->private; struct stripe_head *sh; int sectors_per_chunk = conf->chunk_size >> 9; sector_t x; unsigned long stripe; int chunk_offset; int dd_idx, pd_idx; sector_t first_sector; int raid_disks = conf->raid_disks; int data_disks = raid_disks-1; sector_t max_sector = mddev->size << 1; int sync_blocks; if (sector_nr >= max_sector) { /* just being told to finish up .. nothing much to do */ unplug_slaves(mddev); if (mddev->curr_resync < max_sector) /* aborted */ bitmap_end_sync(mddev->bitmap, mddev->curr_resync, &sync_blocks, 1); else /* compelted sync */ conf->fullsync = 0; bitmap_close_sync(mddev->bitmap); return 0; } /* if there is 1 or more failed drives and we are trying * to resync, then assert that we are finished, because there is * nothing we can do. */ if (mddev->degraded >= 1 && test_bit(MD_RECOVERY_SYNC, &mddev->recovery)) { sector_t rv = (mddev->size << 1) - sector_nr; *skipped = 1; return rv; } if (!bitmap_start_sync(mddev->bitmap, sector_nr, &sync_blocks, 1) && !test_bit(MD_RECOVERY_REQUESTED, &mddev->recovery) && !conf->fullsync && sync_blocks >= STRIPE_SECTORS) { /* we can skip this block, and probably more */ sync_blocks /= STRIPE_SECTORS; *skipped = 1; return sync_blocks * STRIPE_SECTORS; /* keep things rounded to whole stripes */ } x = sector_nr; chunk_offset = sector_div(x, sectors_per_chunk); stripe = x; BUG_ON(x != stripe); first_sector = raid5_compute_sector((sector_t)stripe*data_disks*sectors_per_chunk + chunk_offset, raid_disks, data_disks, &dd_idx, &pd_idx, conf); sh = get_active_stripe(conf, sector_nr, pd_idx, 1); if (sh == NULL) { sh = get_active_stripe(conf, sector_nr, pd_idx, 0); /* make sure we don't swamp the stripe cache if someone else * is trying to get access */ schedule_timeout_uninterruptible(1); } bitmap_start_sync(mddev->bitmap, sector_nr, &sync_blocks, 0); spin_lock(&sh->lock); set_bit(STRIPE_SYNCING, &sh->state); clear_bit(STRIPE_INSYNC, &sh->state); spin_unlock(&sh->lock); handle_stripe(sh); release_stripe(sh); return STRIPE_SECTORS; } /* * This is our raid5 kernel thread. * * We scan the hash table for stripes which can be handled now. * During the scan, completed stripes are saved for us by the interrupt * handler, so that they will not have to wait for our next wakeup. */ static void raid5d (mddev_t *mddev) { struct stripe_head *sh; raid5_conf_t *conf = mddev_to_conf(mddev); int handled; PRINTK("+++ raid5d active\n"); md_check_recovery(mddev); handled = 0; spin_lock_irq(&conf->device_lock); while (1) { struct list_head *first; if (conf->seq_flush - conf->seq_write > 0) { int seq = conf->seq_flush; spin_unlock_irq(&conf->device_lock); bitmap_unplug(mddev->bitmap); spin_lock_irq(&conf->device_lock); conf->seq_write = seq; activate_bit_delay(conf); } if (list_empty(&conf->handle_list) && atomic_read(&conf->preread_active_stripes) < IO_THRESHOLD && !blk_queue_plugged(mddev->queue) && !list_empty(&conf->delayed_list)) raid5_activate_delayed(conf); if (list_empty(&conf->handle_list)) break; first = conf->handle_list.next; sh = list_entry(first, struct stripe_head, lru); list_del_init(first); atomic_inc(&sh->count); if (atomic_read(&sh->count)!= 1) BUG(); spin_unlock_irq(&conf->device_lock); handled++; handle_stripe(sh); release_stripe(sh); spin_lock_irq(&conf->device_lock); } PRINTK("%d stripes handled\n", handled); spin_unlock_irq(&conf->device_lock); unplug_slaves(mddev); PRINTK("--- raid5d inactive\n"); } static ssize_t raid5_show_stripe_cache_size(mddev_t *mddev, char *page) { raid5_conf_t *conf = mddev_to_conf(mddev); if (conf) return sprintf(page, "%d\n", conf->max_nr_stripes); else return 0; } static ssize_t raid5_store_stripe_cache_size(mddev_t *mddev, const char *page, size_t len) { raid5_conf_t *conf = mddev_to_conf(mddev); char *end; int new; if (len >= PAGE_SIZE) return -EINVAL; if (!conf) return -ENODEV; new = simple_strtoul(page, &end, 10); if (!*page || (*end && *end != '\n') ) return -EINVAL; if (new <= 16 || new > 32768) return -EINVAL; while (new < conf->max_nr_stripes) { if (drop_one_stripe(conf)) conf->max_nr_stripes--; else break; } while (new > conf->max_nr_stripes) { if (grow_one_stripe(conf)) conf->max_nr_stripes++; else break; } return len; } static struct md_sysfs_entry raid5_stripecache_size = __ATTR(stripe_cache_size, S_IRUGO | S_IWUSR, raid5_show_stripe_cache_size, raid5_store_stripe_cache_size); static ssize_t stripe_cache_active_show(mddev_t *mddev, char *page) { raid5_conf_t *conf = mddev_to_conf(mddev); if (conf) return sprintf(page, "%d\n", atomic_read(&conf->active_stripes)); else return 0; } static struct md_sysfs_entry raid5_stripecache_active = __ATTR_RO(stripe_cache_active); static struct attribute *raid5_attrs[] = { &raid5_stripecache_size.attr, &raid5_stripecache_active.attr, NULL, }; static struct attribute_group raid5_attrs_group = { .name = NULL, .attrs = raid5_attrs, }; static int run(mddev_t *mddev) { raid5_conf_t *conf; int raid_disk, memory; mdk_rdev_t *rdev; struct disk_info *disk; struct list_head *tmp; if (mddev->level != 5 && mddev->level != 4) { printk("raid5: %s: raid level not set to 4/5 (%d)\n", mdname(mddev), mddev->level); return -EIO; } mddev->private = kmalloc (sizeof (raid5_conf_t) + mddev->raid_disks * sizeof(struct disk_info), GFP_KERNEL); if ((conf = mddev->private) == NULL) goto abort; memset (conf, 0, sizeof (*conf) + mddev->raid_disks * sizeof(struct disk_info) ); conf->mddev = mddev; if ((conf->stripe_hashtbl = (struct stripe_head **) __get_free_pages(GFP_ATOMIC, HASH_PAGES_ORDER)) == NULL) goto abort; memset(conf->stripe_hashtbl, 0, HASH_PAGES * PAGE_SIZE); spin_lock_init(&conf->device_lock); init_waitqueue_head(&conf->wait_for_stripe); init_waitqueue_head(&conf->wait_for_overlap); INIT_LIST_HEAD(&conf->handle_list); INIT_LIST_HEAD(&conf->delayed_list); INIT_LIST_HEAD(&conf->bitmap_list); INIT_LIST_HEAD(&conf->inactive_list); atomic_set(&conf->active_stripes, 0); atomic_set(&conf->preread_active_stripes, 0); PRINTK("raid5: run(%s) called.\n", mdname(mddev)); ITERATE_RDEV(mddev,rdev,tmp) { raid_disk = rdev->raid_disk; if (raid_disk >= mddev->raid_disks || raid_disk < 0) continue; disk = conf->disks + raid_disk; disk->rdev = rdev; if (test_bit(In_sync, &rdev->flags)) { char b[BDEVNAME_SIZE]; printk(KERN_INFO "raid5: device %s operational as raid" " disk %d\n", bdevname(rdev->bdev,b), raid_disk); conf->working_disks++; } } conf->raid_disks = mddev->raid_disks; /* * 0 for a fully functional array, 1 for a degraded array. */ mddev->degraded = conf->failed_disks = conf->raid_disks - conf->working_disks; conf->mddev = mddev; conf->chunk_size = mddev->chunk_size; conf->level = mddev->level; conf->algorithm = mddev->layout; conf->max_nr_stripes = NR_STRIPES; /* device size must be a multiple of chunk size */ mddev->size &= ~(mddev->chunk_size/1024 -1); mddev->resync_max_sectors = mddev->size << 1; if (!conf->chunk_size || conf->chunk_size % 4) { printk(KERN_ERR "raid5: invalid chunk size %d for %s\n", conf->chunk_size, mdname(mddev)); goto abort; } if (conf->algorithm > ALGORITHM_RIGHT_SYMMETRIC) { printk(KERN_ERR "raid5: unsupported parity algorithm %d for %s\n", conf->algorithm, mdname(mddev)); goto abort; } if (mddev->degraded > 1) { printk(KERN_ERR "raid5: not enough operational devices for %s" " (%d/%d failed)\n", mdname(mddev), conf->failed_disks, conf->raid_disks); goto abort; } if (mddev->degraded == 1 && mddev->recovery_cp != MaxSector) { printk(KERN_ERR "raid5: cannot start dirty degraded array for %s\n", mdname(mddev)); goto abort; } { mddev->thread = md_register_thread(raid5d, mddev, "%s_raid5"); if (!mddev->thread) { printk(KERN_ERR "raid5: couldn't allocate thread for %s\n", mdname(mddev)); goto abort; } } memory = conf->max_nr_stripes * (sizeof(struct stripe_head) + conf->raid_disks * ((sizeof(struct bio) + PAGE_SIZE))) / 1024; if (grow_stripes(conf, conf->max_nr_stripes)) { printk(KERN_ERR "raid5: couldn't allocate %dkB for buffers\n", memory); shrink_stripes(conf); md_unregister_thread(mddev->thread); goto abort; } else printk(KERN_INFO "raid5: allocated %dkB for %s\n", memory, mdname(mddev)); if (mddev->degraded == 0) printk("raid5: raid level %d set %s active with %d out of %d" " devices, algorithm %d\n", conf->level, mdname(mddev), mddev->raid_disks-mddev->degraded, mddev->raid_disks, conf->algorithm); else printk(KERN_ALERT "raid5: raid level %d set %s active with %d" " out of %d devices, algorithm %d\n", conf->level, mdname(mddev), mddev->raid_disks - mddev->degraded, mddev->raid_disks, conf->algorithm); print_raid5_conf(conf); /* read-ahead size must cover two whole stripes, which is * 2 * (n-1) * chunksize where 'n' is the number of raid devices */ { int stripe = (mddev->raid_disks-1) * mddev->chunk_size / PAGE_CACHE_SIZE; if (mddev->queue->backing_dev_info.ra_pages < 2 * stripe) mddev->queue->backing_dev_info.ra_pages = 2 * stripe; } /* Ok, everything is just fine now */ sysfs_create_group(&mddev->kobj, &raid5_attrs_group); if (mddev->bitmap) mddev->thread->timeout = mddev->bitmap->daemon_sleep * HZ; mddev->queue->unplug_fn = raid5_unplug_device; mddev->queue->issue_flush_fn = raid5_issue_flush; mddev->array_size = mddev->size * (mddev->raid_disks - 1); return 0; abort: if (conf) { print_raid5_conf(conf); if (conf->stripe_hashtbl) free_pages((unsigned long) conf->stripe_hashtbl, HASH_PAGES_ORDER); kfree(conf); } mddev->private = NULL; printk(KERN_ALERT "raid5: failed to run raid set %s\n", mdname(mddev)); return -EIO; } static int stop(mddev_t *mddev) { raid5_conf_t *conf = (raid5_conf_t *) mddev->private; md_unregister_thread(mddev->thread); mddev->thread = NULL; shrink_stripes(conf); free_pages((unsigned long) conf->stripe_hashtbl, HASH_PAGES_ORDER); blk_sync_queue(mddev->queue); /* the unplug fn references 'conf'*/ sysfs_remove_group(&mddev->kobj, &raid5_attrs_group); kfree(conf); mddev->private = NULL; return 0; } #if RAID5_DEBUG static void print_sh (struct stripe_head *sh) { int i; printk("sh %llu, pd_idx %d, state %ld.\n", (unsigned long long)sh->sector, sh->pd_idx, sh->state); printk("sh %llu, count %d.\n", (unsigned long long)sh->sector, atomic_read(&sh->count)); printk("sh %llu, ", (unsigned long long)sh->sector); for (i = 0; i < sh->raid_conf->raid_disks; i++) { printk("(cache%d: %p %ld) ", i, sh->dev[i].page, sh->dev[i].flags); } printk("\n"); } static void printall (raid5_conf_t *conf) { struct stripe_head *sh; int i; spin_lock_irq(&conf->device_lock); for (i = 0; i < NR_HASH; i++) { sh = conf->stripe_hashtbl[i]; for (; sh; sh = sh->hash_next) { if (sh->raid_conf != conf) continue; print_sh(sh); } } spin_unlock_irq(&conf->device_lock); } #endif static void status (struct seq_file *seq, mddev_t *mddev) { raid5_conf_t *conf = (raid5_conf_t *) mddev->private; int i; seq_printf (seq, " level %d, %dk chunk, algorithm %d", mddev->level, mddev->chunk_size >> 10, mddev->layout); seq_printf (seq, " [%d/%d] [", conf->raid_disks, conf->working_disks); for (i = 0; i < conf->raid_disks; i++) seq_printf (seq, "%s", conf->disks[i].rdev && test_bit(In_sync, &conf->disks[i].rdev->flags) ? "U" : "_"); seq_printf (seq, "]"); #if RAID5_DEBUG #define D(x) \ seq_printf (seq, "<"#x":%d>", atomic_read(&conf->x)) printall(conf); #endif } static void print_raid5_conf (raid5_conf_t *conf) { int i; struct disk_info *tmp; printk("RAID5 conf printout:\n"); if (!conf) { printk("(conf==NULL)\n"); return; } printk(" --- rd:%d wd:%d fd:%d\n", conf->raid_disks, conf->working_disks, conf->failed_disks); for (i = 0; i < conf->raid_disks; i++) { char b[BDEVNAME_SIZE]; tmp = conf->disks + i; if (tmp->rdev) printk(" disk %d, o:%d, dev:%s\n", i, !test_bit(Faulty, &tmp->rdev->flags), bdevname(tmp->rdev->bdev,b)); } } static int raid5_spare_active(mddev_t *mddev) { int i; raid5_conf_t *conf = mddev->private; struct disk_info *tmp; for (i = 0; i < conf->raid_disks; i++) { tmp = conf->disks + i; if (tmp->rdev && !test_bit(Faulty, &tmp->rdev->flags) && !test_bit(In_sync, &tmp->rdev->flags)) { mddev->degraded--; conf->failed_disks--; conf->working_disks++; set_bit(In_sync, &tmp->rdev->flags); } } print_raid5_conf(conf); return 0; } static int raid5_remove_disk(mddev_t *mddev, int number) { raid5_conf_t *conf = mddev->private; int err = 0; mdk_rdev_t *rdev; struct disk_info *p = conf->disks + number; print_raid5_conf(conf); rdev = p->rdev; if (rdev) { if (test_bit(In_sync, &rdev->flags) || atomic_read(&rdev->nr_pending)) { err = -EBUSY; goto abort; } p->rdev = NULL; synchronize_rcu(); if (atomic_read(&rdev->nr_pending)) { /* lost the race, try later */ err = -EBUSY; p->rdev = rdev; } } abort: print_raid5_conf(conf); return err; } static int raid5_add_disk(mddev_t *mddev, mdk_rdev_t *rdev) { raid5_conf_t *conf = mddev->private; int found = 0; int disk; struct disk_info *p; if (mddev->degraded > 1) /* no point adding a device */ return 0; /* * find the disk ... */ for (disk=0; disk < mddev->raid_disks; disk++) if ((p=conf->disks + disk)->rdev == NULL) { clear_bit(In_sync, &rdev->flags); rdev->raid_disk = disk; found = 1; if (rdev->saved_raid_disk != disk) conf->fullsync = 1; rcu_assign_pointer(p->rdev, rdev); break; } print_raid5_conf(conf); return found; } static int raid5_resize(mddev_t *mddev, sector_t sectors) { /* no resync is happening, and there is enough space * on all devices, so we can resize. * We need to make sure resync covers any new space. * If the array is shrinking we should possibly wait until * any io in the removed space completes, but it hardly seems * worth it. */ sectors &= ~((sector_t)mddev->chunk_size/512 - 1); mddev->array_size = (sectors * (mddev->raid_disks-1))>>1; set_capacity(mddev->gendisk, mddev->array_size << 1); mddev->changed = 1; if (sectors/2 > mddev->size && mddev->recovery_cp == MaxSector) { mddev->recovery_cp = mddev->size << 1; set_bit(MD_RECOVERY_NEEDED, &mddev->recovery); } mddev->size = sectors /2; mddev->resync_max_sectors = sectors; return 0; } static void raid5_quiesce(mddev_t *mddev, int state) { raid5_conf_t *conf = mddev_to_conf(mddev); switch(state) { case 1: /* stop all writes */ spin_lock_irq(&conf->device_lock); conf->quiesce = 1; wait_event_lock_irq(conf->wait_for_stripe, atomic_read(&conf->active_stripes) == 0, conf->device_lock, /* nothing */); spin_unlock_irq(&conf->device_lock); break; case 0: /* re-enable writes */ spin_lock_irq(&conf->device_lock); conf->quiesce = 0; wake_up(&conf->wait_for_stripe); spin_unlock_irq(&conf->device_lock); break; } if (mddev->thread) { if (mddev->bitmap) mddev->thread->timeout = mddev->bitmap->daemon_sleep * HZ; else mddev->thread->timeout = MAX_SCHEDULE_TIMEOUT; md_wakeup_thread(mddev->thread); } } static mdk_personality_t raid5_personality= { .name = "raid5", .owner = THIS_MODULE, .make_request = make_request, .run = run, .stop = stop, .status = status, .error_handler = error, .hot_add_disk = raid5_add_disk, .hot_remove_disk= raid5_remove_disk, .spare_active = raid5_spare_active, .sync_request = sync_request, .resize = raid5_resize, .quiesce = raid5_quiesce, }; static int __init raid5_init (void) { return register_md_personality (RAID5, &raid5_personality); } static void raid5_exit (void) { unregister_md_personality (RAID5); } module_init(raid5_init); module_exit(raid5_exit); MODULE_LICENSE("GPL"); MODULE_ALIAS("md-personality-4"); /* RAID5 */
gpl-2.0
DaMan69/dynarmic
.travis/test-a64-on-x86_64-linux/deps.sh
357
#!/bin/sh set -e set -x # TODO: This isn't ideal. cd externals git clone https://github.com/MerryMage/ext-boost git clone https://github.com/yuzu-emu/unicorn cd unicorn UNICORN_ARCHS=aarch64 ./make.sh cd ../.. mkdir -p $HOME/.local curl -L https://cmake.org/files/v3.8/cmake-3.8.0-Linux-x86_64.tar.gz \ | tar -xz -C $HOME/.local --strip-components=1
gpl-2.0
GNOME/conglomerate
src/cong-service-print-method.h
3112
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ /* * cong-print-method.h * * Copyright (C) 2004 David Malcolm * * Conglomerate 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. * * Conglomerate 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. * * Authors: David Malcolm <[email protected]> */ #ifndef __CONG_PRINT_METHOD_H__ #define __CONG_PRINT_METHOD_H__ #include "cong-plugin.h" G_BEGIN_DECLS #define CONG_SERVICE_PRINT_METHOD_TYPE (cong_service_print_method_get_type ()) #define CONG_SERVICE_PRINT_METHOD(obj) G_TYPE_CHECK_INSTANCE_CAST (obj, CONG_SERVICE_PRINT_METHOD_TYPE, CongServicePrintMethod) #define CONG_SERVICE_PRINT_METHOD_CLASS(klass) G_TYPE_CHECK_CLASS_CAST (klass, CONG_SERVICE_PRINT_METHOD_TYPE, CongServicePrintMethodClass) #define IS_CONG_SERVICE_PRINT_METHOD(obj) G_TYPE_CHECK_INSTANCE_TYPE (obj, CONG_SERVICE_PRINT_METHOD_TYPE) CONG_DECLARE_CLASS (CongServicePrintMethod, cong_service_print_method, CongService) #if ENABLE_PRINTING typedef gboolean (*CongServicePrintMethodDocumentFilter) (CongServicePrintMethod *print_method, CongDocument *doc, gpointer user_data); typedef void (*CongServicePrintMethodActionCallback) (CongServicePrintMethod *print_method, CongDocument *doc, GnomePrintContext *gpc, gpointer user_data, GtkWindow *toplevel_window); CongServicePrintMethod * cong_service_print_method_construct (CongServicePrintMethod *print_method, const gchar *name, const gchar *description, const gchar *service_id, CongServicePrintMethodDocumentFilter doc_filter, CongServicePrintMethodActionCallback action_callback, gpointer user_data); CongServicePrintMethod* cong_plugin_register_print_method (CongPlugin *plugin, const gchar *name, const gchar *description, const gchar *id, CongServicePrintMethodDocumentFilter doc_filter, CongServicePrintMethodActionCallback action_callback, gpointer user_data); gboolean cong_print_method_supports_document (CongServicePrintMethod *print_method, CongDocument *doc); void cong_print_method_invoke (CongServicePrintMethod *print_method, CongDocument *doc, GnomePrintContext *gpc, GtkWindow *toplevel_window); void cong_plugin_for_each_print_method (CongPlugin *plugin, void (*callback) (CongServicePrintMethod *print_method, gpointer user_data), gpointer user_data); G_END_DECLS #endif #endif
gpl-2.0
sorabhv6/mylib
php_lib/google_analytics/js/custom.js
211
$(document).ready(function(){ $("#startDate").datepicker({dateFormat:'yy-mm-dd'}); $("#endDate").datepicker({dateFormat:'yy-mm-dd'}); //$('#startDate').datepicker(); //$('#endDate').datepicker(); })
gpl-2.0
tomhenderson/ns-3-dev-git
src/traffic-control/model/red-queue-disc.cc
26145
// /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright © 2011 Marcos Talau * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * Author: Marcos Talau ([email protected]) * * Thanks to: Duy Nguyen<[email protected]> by RED efforts in NS3 * * * This file incorporates work covered by the following copyright and * permission notice: * * Copyright (c) 1990-1997 Regents of the University of California. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the University nor of the Laboratory may be used * to endorse or promote products derived from this software without * specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS 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 REGENTS 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. */ /* * PORT NOTE: This code was ported from ns-2 (queue/red.cc). Almost all * comments have also been ported from NS-2 */ #include "ns3/log.h" #include "ns3/enum.h" #include "ns3/uinteger.h" #include "ns3/double.h" #include "ns3/simulator.h" #include "ns3/abort.h" #include "red-queue-disc.h" #include "ns3/drop-tail-queue.h" #include "ns3/net-device-queue-interface.h" namespace ns3 { NS_LOG_COMPONENT_DEFINE ("RedQueueDisc"); NS_OBJECT_ENSURE_REGISTERED (RedQueueDisc); TypeId RedQueueDisc::GetTypeId (void) { static TypeId tid = TypeId ("ns3::RedQueueDisc") .SetParent<QueueDisc> () .SetGroupName("TrafficControl") .AddConstructor<RedQueueDisc> () .AddAttribute ("MeanPktSize", "Average of packet size", UintegerValue (500), MakeUintegerAccessor (&RedQueueDisc::m_meanPktSize), MakeUintegerChecker<uint32_t> ()) .AddAttribute ("IdlePktSize", "Average packet size used during idle times. Used when m_cautions = 3", UintegerValue (0), MakeUintegerAccessor (&RedQueueDisc::m_idlePktSize), MakeUintegerChecker<uint32_t> ()) .AddAttribute ("Wait", "True for waiting between dropped packets", BooleanValue (true), MakeBooleanAccessor (&RedQueueDisc::m_isWait), MakeBooleanChecker ()) .AddAttribute ("Gentle", "True to increases dropping probability slowly when average queue exceeds maxthresh", BooleanValue (true), MakeBooleanAccessor (&RedQueueDisc::m_isGentle), MakeBooleanChecker ()) .AddAttribute ("ARED", "True to enable ARED", BooleanValue (false), MakeBooleanAccessor (&RedQueueDisc::m_isARED), MakeBooleanChecker ()) .AddAttribute ("AdaptMaxP", "True to adapt m_curMaxP", BooleanValue (false), MakeBooleanAccessor (&RedQueueDisc::m_isAdaptMaxP), MakeBooleanChecker ()) .AddAttribute ("FengAdaptive", "True to enable Feng's Adaptive RED", BooleanValue (false), MakeBooleanAccessor (&RedQueueDisc::m_isFengAdaptive), MakeBooleanChecker ()) .AddAttribute ("NLRED", "True to enable Nonlinear RED", BooleanValue (false), MakeBooleanAccessor (&RedQueueDisc::m_isNonlinear), MakeBooleanChecker ()) .AddAttribute ("MinTh", "Minimum average length threshold in packets/bytes", DoubleValue (5), MakeDoubleAccessor (&RedQueueDisc::m_minTh), MakeDoubleChecker<double> ()) .AddAttribute ("MaxTh", "Maximum average length threshold in packets/bytes", DoubleValue (15), MakeDoubleAccessor (&RedQueueDisc::m_maxTh), MakeDoubleChecker<double> ()) .AddAttribute ("MaxSize", "The maximum number of packets accepted by this queue disc", QueueSizeValue (QueueSize ("25p")), MakeQueueSizeAccessor (&QueueDisc::SetMaxSize, &QueueDisc::GetMaxSize), MakeQueueSizeChecker ()) .AddAttribute ("QW", "Queue weight related to the exponential weighted moving average (EWMA)", DoubleValue (0.002), MakeDoubleAccessor (&RedQueueDisc::m_qW), MakeDoubleChecker <double> ()) .AddAttribute ("LInterm", "The maximum probability of dropping a packet", DoubleValue (50), MakeDoubleAccessor (&RedQueueDisc::m_lInterm), MakeDoubleChecker <double> ()) .AddAttribute ("TargetDelay", "Target average queuing delay in ARED", TimeValue (Seconds (0.005)), MakeTimeAccessor (&RedQueueDisc::m_targetDelay), MakeTimeChecker ()) .AddAttribute ("Interval", "Time interval to update m_curMaxP", TimeValue (Seconds (0.5)), MakeTimeAccessor (&RedQueueDisc::m_interval), MakeTimeChecker ()) .AddAttribute ("Top", "Upper bound for m_curMaxP in ARED", DoubleValue (0.5), MakeDoubleAccessor (&RedQueueDisc::m_top), MakeDoubleChecker <double> (0, 1)) .AddAttribute ("Bottom", "Lower bound for m_curMaxP in ARED", DoubleValue (0.0), MakeDoubleAccessor (&RedQueueDisc::m_bottom), MakeDoubleChecker <double> (0, 1)) .AddAttribute ("Alpha", "Increment parameter for m_curMaxP in ARED", DoubleValue (0.01), MakeDoubleAccessor (&RedQueueDisc::SetAredAlpha), MakeDoubleChecker <double> (0, 1)) .AddAttribute ("Beta", "Decrement parameter for m_curMaxP in ARED", DoubleValue (0.9), MakeDoubleAccessor (&RedQueueDisc::SetAredBeta), MakeDoubleChecker <double> (0, 1)) .AddAttribute ("FengAlpha", "Decrement parameter for m_curMaxP in Feng's Adaptive RED", DoubleValue (3.0), MakeDoubleAccessor (&RedQueueDisc::SetFengAdaptiveA), MakeDoubleChecker <double> ()) .AddAttribute ("FengBeta", "Increment parameter for m_curMaxP in Feng's Adaptive RED", DoubleValue (2.0), MakeDoubleAccessor (&RedQueueDisc::SetFengAdaptiveB), MakeDoubleChecker <double> ()) .AddAttribute ("LastSet", "Store the last time m_curMaxP was updated", TimeValue (Seconds (0.0)), MakeTimeAccessor (&RedQueueDisc::m_lastSet), MakeTimeChecker ()) .AddAttribute ("Rtt", "Round Trip Time to be considered while automatically setting m_bottom", TimeValue (Seconds (0.1)), MakeTimeAccessor (&RedQueueDisc::m_rtt), MakeTimeChecker ()) .AddAttribute ("Ns1Compat", "NS-1 compatibility", BooleanValue (false), MakeBooleanAccessor (&RedQueueDisc::m_isNs1Compat), MakeBooleanChecker ()) .AddAttribute ("LinkBandwidth", "The RED link bandwidth", DataRateValue (DataRate ("1.5Mbps")), MakeDataRateAccessor (&RedQueueDisc::m_linkBandwidth), MakeDataRateChecker ()) .AddAttribute ("LinkDelay", "The RED link delay", TimeValue (MilliSeconds (20)), MakeTimeAccessor (&RedQueueDisc::m_linkDelay), MakeTimeChecker ()) .AddAttribute ("UseEcn", "True to use ECN (packets are marked instead of being dropped)", BooleanValue (false), MakeBooleanAccessor (&RedQueueDisc::m_useEcn), MakeBooleanChecker ()) .AddAttribute ("UseHardDrop", "True to always drop packets above max threshold", BooleanValue (true), MakeBooleanAccessor (&RedQueueDisc::m_useHardDrop), MakeBooleanChecker ()) ; return tid; } RedQueueDisc::RedQueueDisc () : QueueDisc (QueueDiscSizePolicy::SINGLE_INTERNAL_QUEUE) { NS_LOG_FUNCTION (this); m_uv = CreateObject<UniformRandomVariable> (); } RedQueueDisc::~RedQueueDisc () { NS_LOG_FUNCTION (this); } void RedQueueDisc::DoDispose (void) { NS_LOG_FUNCTION (this); m_uv = 0; QueueDisc::DoDispose (); } void RedQueueDisc::SetAredAlpha (double alpha) { NS_LOG_FUNCTION (this << alpha); m_alpha = alpha; if (m_alpha > 0.01) { NS_LOG_WARN ("Alpha value is above the recommended bound!"); } } double RedQueueDisc::GetAredAlpha (void) { NS_LOG_FUNCTION (this); return m_alpha; } void RedQueueDisc::SetAredBeta (double beta) { NS_LOG_FUNCTION (this << beta); m_beta = beta; if (m_beta < 0.83) { NS_LOG_WARN ("Beta value is below the recommended bound!"); } } double RedQueueDisc::GetAredBeta (void) { NS_LOG_FUNCTION (this); return m_beta; } void RedQueueDisc::SetFengAdaptiveA (double a) { NS_LOG_FUNCTION (this << a); m_a = a; if (m_a != 3) { NS_LOG_WARN ("Alpha value does not follow the recommendations!"); } } double RedQueueDisc::GetFengAdaptiveA (void) { NS_LOG_FUNCTION (this); return m_a; } void RedQueueDisc::SetFengAdaptiveB (double b) { NS_LOG_FUNCTION (this << b); m_b = b; if (m_b != 2) { NS_LOG_WARN ("Beta value does not follow the recommendations!"); } } double RedQueueDisc::GetFengAdaptiveB (void) { NS_LOG_FUNCTION (this); return m_b; } void RedQueueDisc::SetTh (double minTh, double maxTh) { NS_LOG_FUNCTION (this << minTh << maxTh); NS_ASSERT (minTh <= maxTh); m_minTh = minTh; m_maxTh = maxTh; } int64_t RedQueueDisc::AssignStreams (int64_t stream) { NS_LOG_FUNCTION (this << stream); m_uv->SetStream (stream); return 1; } bool RedQueueDisc::DoEnqueue (Ptr<QueueDiscItem> item) { NS_LOG_FUNCTION (this << item); uint32_t nQueued = GetInternalQueue (0)->GetCurrentSize ().GetValue (); // simulate number of packets arrival during idle period uint32_t m = 0; if (m_idle == 1) { NS_LOG_DEBUG ("RED Queue Disc is idle."); Time now = Simulator::Now (); if (m_cautious == 3) { double ptc = m_ptc * m_meanPktSize / m_idlePktSize; m = uint32_t (ptc * (now - m_idleTime).GetSeconds ()); } else { m = uint32_t (m_ptc * (now - m_idleTime).GetSeconds ()); } m_idle = 0; } m_qAvg = Estimator (nQueued, m + 1, m_qAvg, m_qW); NS_LOG_DEBUG ("\t bytesInQueue " << GetInternalQueue (0)->GetNBytes () << "\tQavg " << m_qAvg); NS_LOG_DEBUG ("\t packetsInQueue " << GetInternalQueue (0)->GetNPackets () << "\tQavg " << m_qAvg); m_count++; m_countBytes += item->GetSize (); uint32_t dropType = DTYPE_NONE; if (m_qAvg >= m_minTh && nQueued > 1) { if ((!m_isGentle && m_qAvg >= m_maxTh) || (m_isGentle && m_qAvg >= 2 * m_maxTh)) { NS_LOG_DEBUG ("adding DROP FORCED MARK"); dropType = DTYPE_FORCED; } else if (m_old == 0) { /* * The average queue size has just crossed the * threshold from below to above m_minTh, or * from above m_minTh with an empty queue to * above m_minTh with a nonempty queue. */ m_count = 1; m_countBytes = item->GetSize (); m_old = 1; } else if (DropEarly (item, nQueued)) { NS_LOG_LOGIC ("DropEarly returns 1"); dropType = DTYPE_UNFORCED; } } else { // No packets are being dropped m_vProb = 0.0; m_old = 0; } if (dropType == DTYPE_UNFORCED) { if (!m_useEcn || !Mark (item, UNFORCED_MARK)) { NS_LOG_DEBUG ("\t Dropping due to Prob Mark " << m_qAvg); DropBeforeEnqueue (item, UNFORCED_DROP); return false; } NS_LOG_DEBUG ("\t Marking due to Prob Mark " << m_qAvg); } else if (dropType == DTYPE_FORCED) { if (m_useHardDrop || !m_useEcn || !Mark (item, FORCED_MARK)) { NS_LOG_DEBUG ("\t Dropping due to Hard Mark " << m_qAvg); DropBeforeEnqueue (item, FORCED_DROP); if (m_isNs1Compat) { m_count = 0; m_countBytes = 0; } return false; } NS_LOG_DEBUG ("\t Marking due to Hard Mark " << m_qAvg); } bool retval = GetInternalQueue (0)->Enqueue (item); // If Queue::Enqueue fails, QueueDisc::DropBeforeEnqueue is called by the // internal queue because QueueDisc::AddInternalQueue sets the trace callback NS_LOG_LOGIC ("Number packets " << GetInternalQueue (0)->GetNPackets ()); NS_LOG_LOGIC ("Number bytes " << GetInternalQueue (0)->GetNBytes ()); return retval; } /* * Note: if the link bandwidth changes in the course of the * simulation, the bandwidth-dependent RED parameters do not change. * This should be fixed, but it would require some extra parameters, * and didn't seem worth the trouble... */ void RedQueueDisc::InitializeParams (void) { NS_LOG_FUNCTION (this); NS_LOG_INFO ("Initializing RED params."); m_cautious = 0; m_ptc = m_linkBandwidth.GetBitRate () / (8.0 * m_meanPktSize); if (m_isARED) { // Set m_minTh, m_maxTh and m_qW to zero for automatic setting m_minTh = 0; m_maxTh = 0; m_qW = 0; // Turn on m_isAdaptMaxP to adapt m_curMaxP m_isAdaptMaxP = true; } if (m_isFengAdaptive) { // Initialize m_fengStatus m_fengStatus = Above; } if (m_minTh == 0 && m_maxTh == 0) { m_minTh = 5.0; // set m_minTh to max(m_minTh, targetqueue/2.0) [Ref: http://www.icir.org/floyd/papers/adaptiveRed.pdf] double targetqueue = m_targetDelay.GetSeconds() * m_ptc; if (m_minTh < targetqueue / 2.0 ) { m_minTh = targetqueue / 2.0; } if (GetMaxSize ().GetUnit () == QueueSizeUnit::BYTES) { m_minTh = m_minTh * m_meanPktSize; } // set m_maxTh to three times m_minTh [Ref: http://www.icir.org/floyd/papers/adaptiveRed.pdf] m_maxTh = 3 * m_minTh; } NS_ASSERT (m_minTh <= m_maxTh); m_qAvg = 0.0; m_count = 0; m_countBytes = 0; m_old = 0; m_idle = 1; double th_diff = (m_maxTh - m_minTh); if (th_diff == 0) { th_diff = 1.0; } m_vA = 1.0 / th_diff; m_curMaxP = 1.0 / m_lInterm; m_vB = -m_minTh / th_diff; if (m_isGentle) { m_vC = (1.0 - m_curMaxP) / m_maxTh; m_vD = 2.0 * m_curMaxP - 1.0; } m_idleTime = NanoSeconds (0); /* * If m_qW=0, set it to a reasonable value of 1-exp(-1/C) * This corresponds to choosing m_qW to be of that value for * which the packet time constant -1/ln(1-m)qW) per default RTT * of 100ms is an order of magnitude more than the link capacity, C. * * If m_qW=-1, then the queue weight is set to be a function of * the bandwidth and the link propagation delay. In particular, * the default RTT is assumed to be three times the link delay and * transmission delay, if this gives a default RTT greater than 100 ms. * * If m_qW=-2, set it to a reasonable value of 1-exp(-10/C). */ if (m_qW == 0.0) { m_qW = 1.0 - std::exp (-1.0 / m_ptc); } else if (m_qW == -1.0) { double rtt = 3.0 * (m_linkDelay.GetSeconds () + 1.0 / m_ptc); if (rtt < 0.1) { rtt = 0.1; } m_qW = 1.0 - std::exp (-1.0 / (10 * rtt * m_ptc)); } else if (m_qW == -2.0) { m_qW = 1.0 - std::exp (-10.0 / m_ptc); } if (m_bottom == 0) { m_bottom = 0.01; // Set bottom to at most 1/W, where W is the delay-bandwidth // product in packets for a connection. // So W = m_linkBandwidth.GetBitRate () / (8.0 * m_meanPktSize * m_rtt.GetSeconds()) double bottom1 = (8.0 * m_meanPktSize * m_rtt.GetSeconds()) / m_linkBandwidth.GetBitRate(); if (bottom1 < m_bottom) { m_bottom = bottom1; } } NS_LOG_DEBUG ("\tm_delay " << m_linkDelay.GetSeconds () << "; m_isWait " << m_isWait << "; m_qW " << m_qW << "; m_ptc " << m_ptc << "; m_minTh " << m_minTh << "; m_maxTh " << m_maxTh << "; m_isGentle " << m_isGentle << "; th_diff " << th_diff << "; lInterm " << m_lInterm << "; va " << m_vA << "; cur_max_p " << m_curMaxP << "; v_b " << m_vB << "; m_vC " << m_vC << "; m_vD " << m_vD); } // Updating m_curMaxP, following the pseudocode // from: A Self-Configuring RED Gateway, INFOCOMM '99. // They recommend m_a = 3, and m_b = 2. void RedQueueDisc::UpdateMaxPFeng (double newAve) { NS_LOG_FUNCTION (this << newAve); if (m_minTh < newAve && newAve < m_maxTh) { m_fengStatus = Between; } else if (newAve < m_minTh && m_fengStatus != Below) { m_fengStatus = Below; m_curMaxP = m_curMaxP / m_a; } else if (newAve > m_maxTh && m_fengStatus != Above) { m_fengStatus = Above; m_curMaxP = m_curMaxP * m_b; } } // Update m_curMaxP to keep the average queue length within the target range. void RedQueueDisc::UpdateMaxP (double newAve) { NS_LOG_FUNCTION (this << newAve); Time now = Simulator::Now (); double m_part = 0.4 * (m_maxTh - m_minTh); // AIMD rule to keep target Q~1/2(m_minTh + m_maxTh) if (newAve < m_minTh + m_part && m_curMaxP > m_bottom) { // we should increase the average queue size, so decrease m_curMaxP m_curMaxP = m_curMaxP * m_beta; m_lastSet = now; } else if (newAve > m_maxTh - m_part && m_top > m_curMaxP) { // we should decrease the average queue size, so increase m_curMaxP double alpha = m_alpha; if (alpha > 0.25 * m_curMaxP) { alpha = 0.25 * m_curMaxP; } m_curMaxP = m_curMaxP + alpha; m_lastSet = now; } } // Compute the average queue size double RedQueueDisc::Estimator (uint32_t nQueued, uint32_t m, double qAvg, double qW) { NS_LOG_FUNCTION (this << nQueued << m << qAvg << qW); double newAve = qAvg * std::pow (1.0 - qW, m); newAve += qW * nQueued; Time now = Simulator::Now (); if (m_isAdaptMaxP && now > m_lastSet + m_interval) { UpdateMaxP (newAve); } else if (m_isFengAdaptive) { UpdateMaxPFeng (newAve); // Update m_curMaxP in MIMD fashion. } return newAve; } // Check if packet p needs to be dropped due to probability mark uint32_t RedQueueDisc::DropEarly (Ptr<QueueDiscItem> item, uint32_t qSize) { NS_LOG_FUNCTION (this << item << qSize); double prob1 = CalculatePNew (); m_vProb = ModifyP (prob1, item->GetSize ()); // Drop probability is computed, pick random number and act if (m_cautious == 1) { /* * Don't drop/mark if the instantaneous queue is much below the average. * For experimental purposes only. * pkts: the number of packets arriving in 50 ms */ double pkts = m_ptc * 0.05; double fraction = std::pow ((1 - m_qW), pkts); if ((double) qSize < fraction * m_qAvg) { // Queue could have been empty for 0.05 seconds return 0; } } double u = m_uv->GetValue (); if (m_cautious == 2) { /* * Decrease the drop probability if the instantaneous * queue is much below the average. * For experimental purposes only. * pkts: the number of packets arriving in 50 ms */ double pkts = m_ptc * 0.05; double fraction = std::pow ((1 - m_qW), pkts); double ratio = qSize / (fraction * m_qAvg); if (ratio < 1.0) { u *= 1.0 / ratio; } } if (u <= m_vProb) { NS_LOG_LOGIC ("u <= m_vProb; u " << u << "; m_vProb " << m_vProb); // DROP or MARK m_count = 0; m_countBytes = 0; /// \todo Implement set bit to mark return 1; // drop } return 0; // no drop/mark } // Returns a probability using these function parameters for the DropEarly function double RedQueueDisc::CalculatePNew (void) { NS_LOG_FUNCTION (this); double p; if (m_isGentle && m_qAvg >= m_maxTh) { // p ranges from m_curMaxP to 1 as the average queue // size ranges from m_maxTh to twice m_maxTh p = m_vC * m_qAvg + m_vD; } else if (!m_isGentle && m_qAvg >= m_maxTh) { /* * OLD: p continues to range linearly above m_curMaxP as * the average queue size ranges above m_maxTh. * NEW: p is set to 1.0 */ p = 1.0; } else { /* * p ranges from 0 to m_curMaxP as the average queue size ranges from * m_minTh to m_maxTh */ p = m_vA * m_qAvg + m_vB; if (m_isNonlinear) { p *= p * 1.5; } p *= m_curMaxP; } if (p > 1.0) { p = 1.0; } return p; } // Returns a probability using these function parameters for the DropEarly function double RedQueueDisc::ModifyP (double p, uint32_t size) { NS_LOG_FUNCTION (this << p << size); double count1 = (double) m_count; if (GetMaxSize ().GetUnit () == QueueSizeUnit::BYTES) { count1 = (double) (m_countBytes / m_meanPktSize); } if (m_isWait) { if (count1 * p < 1.0) { p = 0.0; } else if (count1 * p < 2.0) { p /= (2.0 - count1 * p); } else { p = 1.0; } } else { if (count1 * p < 1.0) { p /= (1.0 - count1 * p); } else { p = 1.0; } } if ((GetMaxSize ().GetUnit () == QueueSizeUnit::BYTES) && (p < 1.0)) { p = (p * size) / m_meanPktSize; } if (p > 1.0) { p = 1.0; } return p; } Ptr<QueueDiscItem> RedQueueDisc::DoDequeue (void) { NS_LOG_FUNCTION (this); if (GetInternalQueue (0)->IsEmpty ()) { NS_LOG_LOGIC ("Queue empty"); m_idle = 1; m_idleTime = Simulator::Now (); return 0; } else { m_idle = 0; Ptr<QueueDiscItem> item = GetInternalQueue (0)->Dequeue (); NS_LOG_LOGIC ("Popped " << item); NS_LOG_LOGIC ("Number packets " << GetInternalQueue (0)->GetNPackets ()); NS_LOG_LOGIC ("Number bytes " << GetInternalQueue (0)->GetNBytes ()); return item; } } Ptr<const QueueDiscItem> RedQueueDisc::DoPeek (void) { NS_LOG_FUNCTION (this); if (GetInternalQueue (0)->IsEmpty ()) { NS_LOG_LOGIC ("Queue empty"); return 0; } Ptr<const QueueDiscItem> item = GetInternalQueue (0)->Peek (); NS_LOG_LOGIC ("Number packets " << GetInternalQueue (0)->GetNPackets ()); NS_LOG_LOGIC ("Number bytes " << GetInternalQueue (0)->GetNBytes ()); return item; } bool RedQueueDisc::CheckConfig (void) { NS_LOG_FUNCTION (this); if (GetNQueueDiscClasses () > 0) { NS_LOG_ERROR ("RedQueueDisc cannot have classes"); return false; } if (GetNPacketFilters () > 0) { NS_LOG_ERROR ("RedQueueDisc cannot have packet filters"); return false; } if (GetNInternalQueues () == 0) { // add a DropTail queue AddInternalQueue (CreateObjectWithAttributes<DropTailQueue<QueueDiscItem> > ("MaxSize", QueueSizeValue (GetMaxSize ()))); } if (GetNInternalQueues () != 1) { NS_LOG_ERROR ("RedQueueDisc needs 1 internal queue"); return false; } if ((m_isARED || m_isAdaptMaxP) && m_isFengAdaptive) { NS_LOG_ERROR ("m_isAdaptMaxP and m_isFengAdaptive cannot be simultaneously true"); } return true; } } // namespace ns3
gpl-2.0
onuremix/LeagueSharp
Kalista/ItemManager.cs
1531
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using LeagueSharp; using LeagueSharp.Common; using Item = LeagueSharp.Common.Items.Item; namespace Kalista { public class ItemManager { private static Obj_AI_Hero player = ObjectManager.Player; // Offensive items public static readonly Item CUTLASS = ItemData.Bilgewater_Cutlass.GetItem(); public static readonly Item BOTRK = ItemData.Blade_of_the_Ruined_King.GetItem(); public static readonly Item YOUMUU = ItemData.Youmuus_Ghostblade.GetItem(); public static bool UseBotrk(Obj_AI_Hero target) { if (Config.BoolLinks["itemsBotrk"].Value && BOTRK.IsReady() && target.IsValidTarget(BOTRK.Range) && player.Health + player.GetItemDamage(target, Damage.DamageItems.Botrk) < player.MaxHealth) { return BOTRK.Cast(target); } else if (Config.BoolLinks["itemsCutlass"].Value && CUTLASS.IsReady() && target.IsValidTarget(CUTLASS.Range)) { return CUTLASS.Cast(target); } return false; } public static bool UseYoumuu(Obj_AI_Base target) { if (Config.BoolLinks["itemsYoumuu"].Value && YOUMUU.IsReady() && target.IsValidTarget(Orbwalking.GetRealAutoAttackRange(player) + 50)) { return YOUMUU.Cast(); } return false; } } }
gpl-2.0
seret/oxtebafu
ow_plugins/vwlivestreaming/views/controllers/add_index.html
10372
{if !$auth_msg} {form name='vwlsAddForm'} <table class="ow_table_1 ow_form"> <tr class="ow_alt1"> <td class="ow_label">{label name='room_name'}</td> <td class="ow_value">{input name='room_name'} <br /> {error name='room_name'}</td> <td class="ow_desc ow_small">{text key='vwls+room_name_desc'}</td> </tr> <tr class="ow_alt2"> <td class="ow_label">{label name='description'}</td> <td class="ow_value">{input name='description'} <br /> {error name='description'}</td> <td class="ow_desc ow_small">{text key='vwls+description_desc'}</td> </tr> <tr class="ow_alt1"> <td class="ow_label">{label name='room_limit'}</td> <td class="ow_value">{input name='room_limit'} <br /> {error name='room_limit'}</td> <td class="ow_desc ow_small"></td> </tr> <tr class="ow_alt2"> <td class="ow_label">{label name='show_camera_settings'}</td> <td class="ow_value">{input name='show_camera_settings'} <br /> {error name='show_camera_settings'}</td> <td class="ow_desc ow_small"></td> </tr> <tr class="ow_alt1"> <td class="ow_label">{label name='advanced_camera_settings'}</td> <td class="ow_value">{input name='advanced_camera_settings'} <br /> {error name='advanced_camera_settings'}</td> <td class="ow_desc ow_small"></td> </tr> <tr class="ow_alt2"> <td class="ow_label">{label name='configure_source'}</td> <td class="ow_value">{input name='configure_source'} <br /> {error name='configure_source'}</td> <td class="ow_desc ow_small"></td> </tr> <tr class="ow_alt1"> <td class="ow_label">{label name='user_list'}</td> <td class="ow_value">{input name='user_list'} <br /> {error name='user_list'}</td> <td class="ow_desc ow_small">{text key='vwls+user_list_desc'}</td> </tr> <tr class="ow_alt2"> <td class="ow_label">{label name='moderator_list'}</td> <td class="ow_value">{input name='moderator_list'} <br /> {error name='moderator_list'}</td> <td class="ow_desc ow_small">{text key='vwls+moderator_list_desc'}</td> </tr> <tr> <th class="ow_name ow_txtleft" colspan="3"> {text key='vwls+broadcasting_settings'} </th> </tr> <tr class="ow_alt1"> <td class="ow_label">{label name='welcome'}</td> <td class="ow_value">{input name='welcome'} <br /> {error name='welcome'}</td> <td class="ow_desc ow_small">{text key='vwls+welcome_desc'}</td> </tr> <tr class="ow_alt2"> <td class="ow_label">{label name='only_video'}</td> <td class="ow_value">{input name='only_video'} <br /> {error name='only_video'}</td> <td class="ow_desc ow_small"></td> </tr> <tr class="ow_alt1"> <td class="ow_label">{label name='no_video'}</td> <td class="ow_value">{input name='no_video'} <br /> {error name='no_video'}</td> <td class="ow_desc ow_small"></td> </tr> <tr class="ow_alt2"> <td class="ow_label">{label name='no_embeds'}</td> <td class="ow_value">{input name='no_embeds'} <br /> {error name='no_embeds'}</td> <td class="ow_desc ow_small"></td> </tr> <tr class="ow_alt1"> <td class="ow_label">{label name='show_timer'}</td> <td class="ow_value">{input name='show_timer'} <br /> {error name='show_timer'}</td> <td class="ow_desc ow_small">{text key='vwls+show_timer_desc'}</td> </tr> <tr class="ow_alt2"> <td class="ow_label">{label name='write_text'}</td> <td class="ow_value">{input name='write_text'} <br /> {error name='write_text'}</td> <td class="ow_desc ow_small"></td> </tr> <tr class="ow_alt1"> <td class="ow_label">{label name='resolution'}</td> <td class="ow_value">{input name='resolution'} <br /> {error name='resolution'}</td> <td class="ow_desc ow_small">{text key='vwls+resolution_desc'}</td> </tr> <tr class="ow_alt2"> <td class="ow_label">{label name='camera_fps'}</td> <td class="ow_value">{input name='camera_fps'} <br /> {error name='camera_fps'}</td> <td class="ow_desc ow_small">{text key='vwls+camera_fps_desc'}</td> </tr> <tr class="ow_alt1"> <td class="ow_label">{label name='microphone_rate'}</td> <td class="ow_value">{input name='microphone_rate'} <br /> {error name='microphone_rate'}</td> <td class="ow_desc ow_small">{text key='vwls+microphone_rate_desc'}</td> </tr> <tr class="ow_alt2"> <td class="ow_label">{label name='soundQuality'}</td> <td class="ow_value">{input name='soundQuality'} <br /> {error name='soundQuality'}</td> <td class="ow_desc ow_small">{text key='vwls+soundQuality_desc'}</td> </tr> <tr class="ow_alt1"> <td class="ow_label">{label name='bandwidth'}</td> <td class="ow_value">{input name='bandwidth'} <br /> {error name='bandwidth'}</td> <td class="ow_desc ow_small">{text key='vwls+bandwidth_desc'}</td> </tr> <tr class="ow_alt2"> <td class="ow_label">{label name='flood_protection'}</td> <td class="ow_value">{input name='flood_protection'} <br /> {error name='flood_protection'}</td> <td class="ow_desc ow_small">{text key='vwls+flood_protection_desc'}</td> </tr> <tr class="ow_alt1"> <td class="ow_label">{label name='verbose_level'}</td> <td class="ow_value">{input name='verbose_level'} <br /> {error name='verbose_level'}</td> <td class="ow_desc ow_small">{text key='vwls+verbose_level_desc'}</td> </tr> <tr class="ow_alt2"> <td class="ow_label">{label name='label_color'}</td> <td class="ow_value">{input name='label_color'} <br /> {error name='label_color'}</td> <td class="ow_desc ow_small"></td> </tr> <tr class="ow_alt1"> <td class="ow_label">{label name='private_textchat'}</td> <td class="ow_value">{input name='private_textchat'} <br /> {error name='private_textchat'}</td> <td class="ow_desc ow_small"></td> </tr> <tr class="ow_alt2"> <td class="ow_label">{label name='layout_code'}</td> <td class="ow_value">{input name='layout_code'} <br /> {error name='layout_code'}</td> <td class="ow_desc ow_small">{text key='vwls+layout_code_desc'}</td> </tr> <tr class="ow_alt1"> <td class="ow_label">{label name='fill_window'}</td> <td class="ow_value">{input name='fill_window'} <br /> {error name='fill_window'}</td> <td class="ow_desc ow_small">{text key='vwls+fill_window_desc'}</td> </tr> <tr> <th class="ow_name ow_txtleft" colspan="3"> {text key='vwls+watch_settings'} </th> </tr> <tr class="ow_alt1"> <td class="ow_label">{label name='welcome2'}</td> <td class="ow_value">{input name='welcome2'} <br /> {error name='welcome2'}</td> <td class="ow_desc ow_small">{text key='vwls+welcome2_desc'}</td> </tr> </tr> <tr class="ow_alt2"> <td class="ow_label">{label name='offline_message'}</td> <td class="ow_value">{input name='offline_message'} <br /> {error name='offline_message'}</td> <td class="ow_desc ow_small"></td> </tr> <tr class="ow_alt1"> <td class="ow_label">{label name='flood_protection2'}</td> <td class="ow_value">{input name='flood_protection2'} <br /> {error name='flood_protection2'}</td> <td class="ow_desc ow_small">{text key='vwls+flood_protection2_desc'}</td> </tr> <tr class="ow_alt2"> <td class="ow_label">{label name='layout_code2'}</td> <td class="ow_value">{input name='layout_code2'} <br /> {error name='layout_code2'}</td> <td class="ow_desc ow_small">{text key='vwls+layout_code2_desc'}</td> </tr> <tr class="ow_alt1"> <td class="ow_label">{label name='fill_window2'}</td> <td class="ow_value">{input name='fill_window2'} <br /> {error name='fill_window2'}</td> <td class="ow_desc ow_small"></td> </tr> <tr class="ow_alt2"> <td class="ow_label">{label name='filter_regex'}</td> <td class="ow_value">{input name='filter_regex'} <br /> {error name='filter_regex'}</td> <td class="ow_desc ow_small"></td> </tr> <tr class="ow_alt1"> <td class="ow_label">{label name='filter_replace'}</td> <td class="ow_value">{input name='filter_replace'} <br /> {error name='filter_replace'}</td> <td class="ow_desc ow_small"></td> </tr> <tr class="ow_alt2"> <td class="ow_label">{label name='write_text2'}</td> <td class="ow_value">{input name='write_text2'} <br /> {error name='write_text2'}</td> <td class="ow_desc ow_small"></td> </tr> <tr class="ow_alt1"> <td class="ow_label">{label name='enable_video'}</td> <td class="ow_value">{input name='enable_video'} <br /> {error name='enable_video'}</td> <td class="ow_desc ow_small"></td> </tr> <tr class="ow_alt2"> <td class="ow_label">{label name='enable_chat'}</td> <td class="ow_value">{input name='enable_chat'} <br /> {error name='enable_chat'}</td> <td class="ow_desc ow_small"></td> </tr> <tr class="ow_alt1"> <td class="ow_label">{label name='enable_users'}</td> <td class="ow_value">{input name='enable_users'} <br /> {error name='enable_users'}</td> <td class="ow_desc ow_small"></td> </tr> <tr class="ow_alt2"> <td class="ow_label">{label name='tags'}</td> <td class="ow_value">{input name='tags'} <br /> {error name='tags'}</td> <td class="ow_desc ow_small">{text key='vwls+tags_desc'}</td> </tr> <tr> <td colspan="3" class="ow_submit">{submit name='add' class='ow_ic_add'}</td> </tr> </table> {/form} {else} <div class="ow_anno ow_std_margin ow_nocontent">{$auth_msg}</div> {/if}
gpl-2.0
jntd11/dev2
modules/mod_roktwittie/tmpl/error.php
650
<?php /** * RokTwittie Module * * @package RocketTheme * @subpackage roktwittie.tmpl * @version 1.8 September 3, 2012 * @author RocketTheme http://www.rockettheme.com * @copyright Copyright (C) 2007 - 2012 RocketTheme, LLC * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only * */ defined('_JEXEC') or die('Restricted access'); $error = (isset($status) && is_string($status)) ? $status : (isset($friends) ? $friends : ''); $error = (is_string($error)) ? $error : ''; ?> <div id="roktwittie" class="roktwittie<?php echo $params->get('moduleclass_sfx'); ?>"> <div class="error"> <?php echo $error; ?> </div> </div>
gpl-2.0
sdsc/lustre-release
lustre/lmv/lmv_intent.c
14025
/* * GPL HEADER START * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 only, * 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 version 2 for more details (a copy is included * in the LICENSE file that accompanied this code). * * You should have received a copy of the GNU General Public License * version 2 along with this program; If not, see * http://www.gnu.org/licenses/gpl-2.0.html * * GPL HEADER END */ /* * Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved. * Use is subject to license terms. * * Copyright (c) 2011, 2016, Intel Corporation. */ /* * This file is part of Lustre, http://www.lustre.org/ * Lustre is a trademark of Sun Microsystems, Inc. */ #define DEBUG_SUBSYSTEM S_LMV #include <linux/slab.h> #include <linux/module.h> #include <linux/init.h> #include <linux/slab.h> #include <linux/pagemap.h> #include <linux/math64.h> #include <linux/seq_file.h> #include <linux/namei.h> #include <lustre_intent.h> #include <obd_support.h> #include <lustre/lustre_idl.h> #include <lustre_lib.h> #include <lustre_net.h> #include <lustre_dlm.h> #include <lustre_mdc.h> #include <obd_class.h> #include <lprocfs_status.h> #include "lmv_internal.h" static int lmv_intent_remote(struct obd_export *exp, struct lookup_intent *it, const struct lu_fid *parent_fid, struct ptlrpc_request **reqp, ldlm_blocking_callback cb_blocking, __u64 extra_lock_flags) { struct obd_device *obd = exp->exp_obd; struct lmv_obd *lmv = &obd->u.lmv; struct ptlrpc_request *req = NULL; struct lustre_handle plock; struct md_op_data *op_data; struct lmv_tgt_desc *tgt; struct mdt_body *body; int pmode; int rc = 0; ENTRY; body = req_capsule_server_get(&(*reqp)->rq_pill, &RMF_MDT_BODY); if (body == NULL) RETURN(-EPROTO); LASSERT((body->mbo_valid & OBD_MD_MDS)); /* * Unfortunately, we have to lie to MDC/MDS to retrieve * attributes llite needs and provideproper locking. */ if (it->it_op & IT_LOOKUP) it->it_op = IT_GETATTR; /* * We got LOOKUP lock, but we really need attrs. */ pmode = it->it_lock_mode; if (pmode) { plock.cookie = it->it_lock_handle; it->it_lock_mode = 0; it->it_request = NULL; } LASSERT(fid_is_sane(&body->mbo_fid1)); tgt = lmv_find_target(lmv, &body->mbo_fid1); if (IS_ERR(tgt)) GOTO(out, rc = PTR_ERR(tgt)); OBD_ALLOC_PTR(op_data); if (op_data == NULL) GOTO(out, rc = -ENOMEM); op_data->op_fid1 = body->mbo_fid1; /* Sent the parent FID to the remote MDT */ if (parent_fid != NULL) { /* The parent fid is only for remote open to * check whether the open is from OBF, * see mdt_cross_open */ LASSERT(it->it_op & IT_OPEN); op_data->op_fid2 = *parent_fid; } op_data->op_bias = MDS_CROSS_REF; CDEBUG(D_INODE, "REMOTE_INTENT with fid="DFID" -> mds #%u\n", PFID(&body->mbo_fid1), tgt->ltd_idx); rc = md_intent_lock(tgt->ltd_exp, op_data, it, &req, cb_blocking, extra_lock_flags); if (rc) GOTO(out_free_op_data, rc); /* * LLite needs LOOKUP lock to track dentry revocation in order to * maintain dcache consistency. Thus drop UPDATE|PERM lock here * and put LOOKUP in request. */ if (it->it_lock_mode != 0) { it->it_remote_lock_handle = it->it_lock_handle; it->it_remote_lock_mode = it->it_lock_mode; } if (pmode) { it->it_lock_handle = plock.cookie; it->it_lock_mode = pmode; } EXIT; out_free_op_data: OBD_FREE_PTR(op_data); out: if (rc && pmode) ldlm_lock_decref(&plock, pmode); ptlrpc_req_finished(*reqp); *reqp = req; return rc; } int lmv_revalidate_slaves(struct obd_export *exp, const struct lmv_stripe_md *lsm, ldlm_blocking_callback cb_blocking, int extra_lock_flags) { struct obd_device *obd = exp->exp_obd; struct lmv_obd *lmv = &obd->u.lmv; struct ptlrpc_request *req = NULL; struct mdt_body *body; struct md_op_data *op_data; int i; int rc = 0; ENTRY; /** * revalidate slaves has some problems, temporarily return, * we may not need that */ OBD_ALLOC_PTR(op_data); if (op_data == NULL) RETURN(-ENOMEM); /** * Loop over the stripe information, check validity and update them * from MDS if needed. */ for (i = 0; i < lsm->lsm_md_stripe_count; i++) { struct lu_fid fid; struct lookup_intent it = { .it_op = IT_GETATTR }; struct lustre_handle *lockh = NULL; struct lmv_tgt_desc *tgt = NULL; struct inode *inode; fid = lsm->lsm_md_oinfo[i].lmo_fid; inode = lsm->lsm_md_oinfo[i].lmo_root; /* * Prepare op_data for revalidating. Note that @fid2 shluld be * defined otherwise it will go to server and take new lock * which is not needed here. */ memset(op_data, 0, sizeof(*op_data)); op_data->op_fid1 = fid; op_data->op_fid2 = fid; tgt = lmv_locate_mds(lmv, op_data, &fid); if (IS_ERR(tgt)) GOTO(cleanup, rc = PTR_ERR(tgt)); CDEBUG(D_INODE, "Revalidate slave "DFID" -> mds #%u\n", PFID(&fid), tgt->ltd_idx); if (req != NULL) { ptlrpc_req_finished(req); req = NULL; } rc = md_intent_lock(tgt->ltd_exp, op_data, &it, &req, cb_blocking, extra_lock_flags); if (rc < 0) GOTO(cleanup, rc); lockh = (struct lustre_handle *)&it.it_lock_handle; if (rc > 0 && req == NULL) { /* slave inode is still valid */ CDEBUG(D_INODE, "slave "DFID" is still valid.\n", PFID(&fid)); rc = 0; } else { /* refresh slave from server */ body = req_capsule_server_get(&req->rq_pill, &RMF_MDT_BODY); if (body == NULL) { if (it.it_lock_mode && lockh) { ldlm_lock_decref(lockh, it.it_lock_mode); it.it_lock_mode = 0; } GOTO(cleanup, rc = -ENOENT); } i_size_write(inode, body->mbo_size); inode->i_blocks = body->mbo_blocks; set_nlink(inode, body->mbo_nlink); LTIME_S(inode->i_atime) = body->mbo_atime; LTIME_S(inode->i_ctime) = body->mbo_ctime; LTIME_S(inode->i_mtime) = body->mbo_mtime; } md_set_lock_data(tgt->ltd_exp, lockh, inode, NULL); if (it.it_lock_mode != 0 && lockh != NULL) { ldlm_lock_decref(lockh, it.it_lock_mode); it.it_lock_mode = 0; } } cleanup: if (req != NULL) ptlrpc_req_finished(req); OBD_FREE_PTR(op_data); RETURN(rc); } /* * IT_OPEN is intended to open (and create, possible) an object. Parent (pid) * may be split dir. */ static int lmv_intent_open(struct obd_export *exp, struct md_op_data *op_data, struct lookup_intent *it, struct ptlrpc_request **reqp, ldlm_blocking_callback cb_blocking, __u64 extra_lock_flags) { struct obd_device *obd = exp->exp_obd; struct lmv_obd *lmv = &obd->u.lmv; struct lmv_tgt_desc *tgt; struct mdt_body *body; int rc; ENTRY; if (it->it_flags & MDS_OPEN_BY_FID) { LASSERT(fid_is_sane(&op_data->op_fid2)); /* for striped directory, we can't know parent stripe fid * without name, but we can set it to child fid, and MDT * will obtain it from linkea in open in such case. */ if (op_data->op_mea1 != NULL) op_data->op_fid1 = op_data->op_fid2; tgt = lmv_find_target(lmv, &op_data->op_fid2); if (IS_ERR(tgt)) RETURN(PTR_ERR(tgt)); op_data->op_mds = tgt->ltd_idx; } else { LASSERT(fid_is_sane(&op_data->op_fid1)); LASSERT(fid_is_zero(&op_data->op_fid2)); LASSERT(op_data->op_name != NULL); tgt = lmv_locate_mds(lmv, op_data, &op_data->op_fid1); if (IS_ERR(tgt)) RETURN(PTR_ERR(tgt)); } /* If it is ready to open the file by FID, do not need * allocate FID at all, otherwise it will confuse MDT */ if ((it->it_op & IT_CREAT) && !(it->it_flags & MDS_OPEN_BY_FID)) { /* * For lookup(IT_CREATE) cases allocate new fid and setup FLD * for it. */ rc = lmv_fid_alloc(NULL, exp, &op_data->op_fid2, op_data); if (rc != 0) RETURN(rc); } CDEBUG(D_INODE, "OPEN_INTENT with fid1="DFID", fid2="DFID"," " name='%s' -> mds #%u\n", PFID(&op_data->op_fid1), PFID(&op_data->op_fid2), op_data->op_name, tgt->ltd_idx); rc = md_intent_lock(tgt->ltd_exp, op_data, it, reqp, cb_blocking, extra_lock_flags); if (rc != 0) RETURN(rc); /* * Nothing is found, do not access body->fid1 as it is zero and thus * pointless. */ if ((it->it_disposition & DISP_LOOKUP_NEG) && !(it->it_disposition & DISP_OPEN_CREATE) && !(it->it_disposition & DISP_OPEN_OPEN)) RETURN(rc); body = req_capsule_server_get(&(*reqp)->rq_pill, &RMF_MDT_BODY); if (body == NULL) RETURN(-EPROTO); /* Not cross-ref case, just get out of here. */ if (unlikely((body->mbo_valid & OBD_MD_MDS))) { rc = lmv_intent_remote(exp, it, &op_data->op_fid1, reqp, cb_blocking, extra_lock_flags); if (rc != 0) RETURN(rc); body = req_capsule_server_get(&(*reqp)->rq_pill, &RMF_MDT_BODY); if (body == NULL) RETURN(-EPROTO); } RETURN(rc); } /* * Handler for: getattr, lookup and revalidate cases. */ static int lmv_intent_lookup(struct obd_export *exp, struct md_op_data *op_data, struct lookup_intent *it, struct ptlrpc_request **reqp, ldlm_blocking_callback cb_blocking, __u64 extra_lock_flags) { struct obd_device *obd = exp->exp_obd; struct lmv_obd *lmv = &obd->u.lmv; struct lmv_tgt_desc *tgt = NULL; struct mdt_body *body; struct lmv_stripe_md *lsm = op_data->op_mea1; int rc = 0; ENTRY; /* If it returns ERR_PTR(-EBADFD) then it is an unknown hash type * it will try all stripes to locate the object */ tgt = lmv_locate_mds(lmv, op_data, &op_data->op_fid1); if (IS_ERR(tgt) && (PTR_ERR(tgt) != -EBADFD)) RETURN(PTR_ERR(tgt)); /* Both migrating dir and unknown hash dir need to try * all of sub-stripes */ if (lsm != NULL && !lmv_is_known_hash_type(lsm->lsm_md_hash_type)) { struct lmv_oinfo *oinfo; oinfo = &lsm->lsm_md_oinfo[0]; op_data->op_fid1 = oinfo->lmo_fid; op_data->op_mds = oinfo->lmo_mds; tgt = lmv_get_target(lmv, oinfo->lmo_mds, NULL); if (IS_ERR(tgt)) RETURN(PTR_ERR(tgt)); } if (!fid_is_sane(&op_data->op_fid2)) fid_zero(&op_data->op_fid2); CDEBUG(D_INODE, "LOOKUP_INTENT with fid1="DFID", fid2="DFID ", name='%s' -> mds #%u lsm=%p lsm_magic=%x\n", PFID(&op_data->op_fid1), PFID(&op_data->op_fid2), op_data->op_name ? op_data->op_name : "<NULL>", tgt->ltd_idx, lsm, lsm == NULL ? -1 : lsm->lsm_md_magic); op_data->op_bias &= ~MDS_CROSS_REF; rc = md_intent_lock(tgt->ltd_exp, op_data, it, reqp, cb_blocking, extra_lock_flags); if (rc < 0) RETURN(rc); if (*reqp == NULL) { /* If RPC happens, lsm information will be revalidated * during update_inode process (see ll_update_lsm_md) */ if (op_data->op_mea2 != NULL) { rc = lmv_revalidate_slaves(exp, op_data->op_mea2, cb_blocking, extra_lock_flags); if (rc != 0) RETURN(rc); } RETURN(rc); } else if (it_disposition(it, DISP_LOOKUP_NEG) && lsm != NULL && lmv_need_try_all_stripes(lsm)) { /* For migrating and unknown hash type directory, it will * try to target the entry on other stripes */ int stripe_index; for (stripe_index = 1; stripe_index < lsm->lsm_md_stripe_count && it_disposition(it, DISP_LOOKUP_NEG); stripe_index++) { struct lmv_oinfo *oinfo; /* release the previous request */ ptlrpc_req_finished(*reqp); it->it_request = NULL; *reqp = NULL; oinfo = &lsm->lsm_md_oinfo[stripe_index]; tgt = lmv_find_target(lmv, &oinfo->lmo_fid); if (IS_ERR(tgt)) RETURN(PTR_ERR(tgt)); CDEBUG(D_INODE, "Try other stripes " DFID"\n", PFID(&oinfo->lmo_fid)); op_data->op_fid1 = oinfo->lmo_fid; it->it_disposition &= ~DISP_ENQ_COMPLETE; rc = md_intent_lock(tgt->ltd_exp, op_data, it, reqp, cb_blocking, extra_lock_flags); if (rc != 0) RETURN(rc); } } if (!it_has_reply_body(it)) RETURN(0); /* * MDS has returned success. Probably name has been resolved in * remote inode. Let's check this. */ body = req_capsule_server_get(&(*reqp)->rq_pill, &RMF_MDT_BODY); if (body == NULL) RETURN(-EPROTO); /* Not cross-ref case, just get out of here. */ if (unlikely((body->mbo_valid & OBD_MD_MDS))) { rc = lmv_intent_remote(exp, it, NULL, reqp, cb_blocking, extra_lock_flags); if (rc != 0) RETURN(rc); body = req_capsule_server_get(&(*reqp)->rq_pill, &RMF_MDT_BODY); if (body == NULL) RETURN(-EPROTO); } RETURN(rc); } int lmv_intent_lock(struct obd_export *exp, struct md_op_data *op_data, struct lookup_intent *it, struct ptlrpc_request **reqp, ldlm_blocking_callback cb_blocking, __u64 extra_lock_flags) { int rc; ENTRY; LASSERT(it != NULL); LASSERT(fid_is_sane(&op_data->op_fid1)); CDEBUG(D_INODE, "INTENT LOCK '%s' for "DFID" '%.*s' on "DFID"\n", LL_IT2STR(it), PFID(&op_data->op_fid2), (int)op_data->op_namelen, op_data->op_name, PFID(&op_data->op_fid1)); if (it->it_op & (IT_LOOKUP | IT_GETATTR | IT_LAYOUT | IT_GETXATTR)) rc = lmv_intent_lookup(exp, op_data, it, reqp, cb_blocking, extra_lock_flags); else if (it->it_op & IT_OPEN) rc = lmv_intent_open(exp, op_data, it, reqp, cb_blocking, extra_lock_flags); else LBUG(); if (rc < 0) { struct lustre_handle lock_handle; if (it->it_lock_mode != 0) { lock_handle.cookie = it->it_lock_handle; ldlm_lock_decref_and_cancel(&lock_handle, it->it_lock_mode); } it->it_lock_handle = 0; it->it_lock_mode = 0; if (it->it_remote_lock_mode != 0) { lock_handle.cookie = it->it_remote_lock_handle; ldlm_lock_decref_and_cancel(&lock_handle, it->it_remote_lock_mode); } it->it_remote_lock_handle = 0; it->it_remote_lock_mode = 0; } RETURN(rc); }
gpl-2.0
curbthepain/revkernel_us990
arch/arm/mach-msm/qdsp6v2/msm_audio_ion.c
15141
/* * Copyright (c) 2013-2014, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and * only version 2 as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ #include <linux/init.h> #include <linux/kernel.h> #include <linux/module.h> #include <linux/err.h> #include <linux/delay.h> #include <linux/platform_device.h> #include <mach/subsystem_restart.h> #include <mach/qdsp6v2/apr.h> #include <linux/of_device.h> #include <linux/msm_audio_ion.h> #include <linux/iommu.h> #include <mach/iommu_domains.h> struct msm_audio_ion_private { bool smmu_enabled; bool audioheap_enabled; struct iommu_group *group; int32_t domain_id; struct iommu_domain *domain; }; static struct msm_audio_ion_private msm_audio_ion_data = {0,}; static int msm_audio_ion_get_phys(struct ion_client *client, struct ion_handle *handle, ion_phys_addr_t *addr, size_t *len); int msm_audio_ion_alloc(const char *name, struct ion_client **client, struct ion_handle **handle, size_t bufsz, ion_phys_addr_t *paddr, size_t *pa_len, void **vaddr) { int rc = 0; if ((msm_audio_ion_data.smmu_enabled == true) && (msm_audio_ion_data.group == NULL)) { pr_debug("%s:probe is not done, deferred\n", __func__); return -EPROBE_DEFER; } if (!name || !client || !handle || !paddr || !vaddr || !bufsz || !pa_len) { pr_err("%s: Invalid params\n", __func__); return -EINVAL; } *client = msm_audio_ion_client_create(UINT_MAX, name); if (IS_ERR_OR_NULL((void *)(*client))) { pr_err("%s: ION create client for AUDIO failed\n", __func__); goto err; } *handle = ion_alloc(*client, bufsz, SZ_4K, ION_HEAP(ION_AUDIO_HEAP_ID), 0); if (IS_ERR_OR_NULL((void *) (*handle))) { pr_debug("system heap is used"); msm_audio_ion_data.audioheap_enabled = 0; *handle = ion_alloc(*client, bufsz, SZ_4K, ION_HEAP(ION_SYSTEM_HEAP_ID), 0); } else { pr_debug("audio heap is used"); msm_audio_ion_data.audioheap_enabled = 1; } if (IS_ERR_OR_NULL((void *) (*handle))) { pr_err("%s: ION memory allocation for AUDIO failed rc=%d, smmu_enabled=%d\n", __func__, rc, msm_audio_ion_data.smmu_enabled); goto err_ion_client; } rc = msm_audio_ion_get_phys(*client, *handle, paddr, pa_len); if (rc) { pr_err("%s: ION Get Physical for AUDIO failed, rc = %d\n", __func__, rc); goto err_ion_handle; } *vaddr = ion_map_kernel(*client, *handle); if (IS_ERR_OR_NULL((void *)*vaddr)) { pr_err("%s: ION memory mapping for AUDIO failed\n", __func__); goto err_ion_handle; } pr_debug("%s: mapped address = %p, size=%d\n", __func__, *vaddr, bufsz); if (bufsz != 0) { pr_debug("%s: memset to 0 %p %d\n", __func__, *vaddr, bufsz); memset((void *)*vaddr, 0, bufsz); } return 0; err_ion_handle: ion_free(*client, *handle); err_ion_client: msm_audio_ion_client_destroy(*client); *handle = NULL; *client = NULL; err: return -EINVAL; } int msm_audio_ion_import(const char *name, struct ion_client **client, struct ion_handle **handle, int fd, unsigned long *ionflag, size_t bufsz, ion_phys_addr_t *paddr, size_t *pa_len, void **vaddr) { int rc = 0; if (!name || !client || !handle || !paddr || !vaddr || !pa_len) { pr_err("%s: Invalid params\n", __func__); rc = -EINVAL; goto err; } *client = msm_audio_ion_client_create(UINT_MAX, name); if (IS_ERR_OR_NULL((void *)(*client))) { pr_err("%s: ION create client for AUDIO failed\n", __func__); rc = -EINVAL; goto err; } /* */ *handle = ion_import_dma_buf(*client, fd); pr_err("%s: DMA Buf name=%s, fd=%d handle=%p\n", __func__, name, fd, *handle); if (IS_ERR_OR_NULL((void *) (*handle))) { pr_err("%s: ion import dma buffer failed\n", __func__); rc = -EINVAL; goto err_destroy_client; } if (ionflag != NULL) { rc = ion_handle_get_flags(*client, *handle, ionflag); if (rc) { pr_err("%s: could not get flags for the handle\n", __func__); goto err_ion_handle; } } rc = msm_audio_ion_get_phys(*client, *handle, paddr, pa_len); if (rc) { pr_err("%s: ION Get Physical for AUDIO failed, rc = %d\n", __func__, rc); goto err_ion_handle; } *vaddr = ion_map_kernel(*client, *handle); if (IS_ERR_OR_NULL((void *)*vaddr)) { pr_err("%s: ION memory mapping for AUDIO failed\n", __func__); rc = -ENOMEM; goto err_ion_handle; } pr_debug("%s: mapped address = %p, size=%d\n", __func__, *vaddr, bufsz); return 0; err_ion_handle: ion_free(*client, *handle); err_destroy_client: msm_audio_ion_client_destroy(*client); *client = NULL; *handle = NULL; err: return rc; } int msm_audio_ion_free(struct ion_client *client, struct ion_handle *handle) { if (!client || !handle) { pr_err("%s Invalid params\n", __func__); return -EINVAL; } if (msm_audio_ion_data.smmu_enabled) { /* */ pr_debug("client=%p, domain=%p, domain_id=%d, group=%p", client, msm_audio_ion_data.domain, msm_audio_ion_data.domain_id, msm_audio_ion_data.group); ion_unmap_iommu(client, handle, msm_audio_ion_data.domain_id, 0); } ion_unmap_kernel(client, handle); ion_free(client, handle); msm_audio_ion_client_destroy(client); return 0; } int msm_audio_ion_mmap(struct audio_buffer *ab, struct vm_area_struct *vma) { struct sg_table *table; unsigned long addr = vma->vm_start; unsigned long offset = vma->vm_pgoff * PAGE_SIZE; struct scatterlist *sg; unsigned int i; struct page *page; int ret; pr_debug("%s\n", __func__); table = ion_sg_table(ab->client, ab->handle); if (IS_ERR(table)) { pr_err("%s: Unable to get sg_table from ion: %ld\n", __func__, PTR_ERR(table)); return PTR_ERR(table); } else if (!table) { pr_err("%s: sg_list is NULL\n", __func__); return -EINVAL; } /* */ vma->vm_page_prot = pgprot_writecombine(vma->vm_page_prot); /* */ page = sg_page(table->sgl); if (page) { pr_debug("%s: page is NOT null\n", __func__); for_each_sg(table->sgl, sg, table->nents, i) { unsigned long remainder = vma->vm_end - addr; unsigned long len = sg_dma_len(sg); page = sg_page(sg); if (offset >= sg_dma_len(sg)) { offset -= sg_dma_len(sg); continue; } else if (offset) { page += offset / PAGE_SIZE; len = sg_dma_len(sg) - offset; offset = 0; } len = min(len, remainder); pr_debug("vma=%p, addr=%x len=%ld vm_start=%x vm_end=%x vm_page_prot=%ld\n", vma, (unsigned int)addr, len, (unsigned int)vma->vm_start, (unsigned int)vma->vm_end, (unsigned long int)vma->vm_page_prot); remap_pfn_range(vma, addr, page_to_pfn(page), len, vma->vm_page_prot); addr += len; if (addr >= vma->vm_end) return 0; } } else { ion_phys_addr_t phys_addr; size_t phys_len; size_t va_len = 0; pr_debug("%s: page is NULL\n", __func__); ret = ion_phys(ab->client, ab->handle, &phys_addr, &phys_len); if (ret) { pr_err("%s: Unable to get phys address from ION buffer: %d\n" , __func__ , ret); return ret; } pr_debug("phys=%x len=%d\n", (unsigned int)phys_addr, phys_len); pr_debug("vma=%p, vm_start=%x vm_end=%x vm_pgoff=%ld vm_page_prot=%ld\n", vma, (unsigned int)vma->vm_start, (unsigned int)vma->vm_end, vma->vm_pgoff, (unsigned long int)vma->vm_page_prot); va_len = vma->vm_end - vma->vm_start; if ((offset > phys_len) || (va_len > phys_len-offset)) { pr_err("wrong offset size %ld, lens= %d, va_len=%d\n", offset, phys_len, va_len); return -EINVAL; } ret = remap_pfn_range(vma, vma->vm_start, __phys_to_pfn(phys_addr) + vma->vm_pgoff, vma->vm_end - vma->vm_start, vma->vm_page_prot); } return 0; } bool msm_audio_ion_is_smmu_available(void) { return msm_audio_ion_data.smmu_enabled; } /* */ struct ion_client *msm_audio_ion_client_create(unsigned int heap_mask, const char *name) { struct ion_client *pclient = NULL; /* */ pclient = msm_ion_client_create(heap_mask, name); return pclient; } void msm_audio_ion_client_destroy(struct ion_client *client) { pr_debug("%s: client = %p smmu_enabled = %d\n", __func__, client, msm_audio_ion_data.smmu_enabled); ion_client_destroy(client); } int msm_audio_ion_import_legacy(const char *name, struct ion_client *client, struct ion_handle **handle, int fd, unsigned long *ionflag, size_t bufsz, ion_phys_addr_t *paddr, size_t *pa_len, void **vaddr) { int rc = 0; if (!name || !client || !handle || !paddr || !vaddr || !pa_len) { pr_err("%s: Invalid params\n", __func__); rc = -EINVAL; goto err; } /* */ /* */ *handle = ion_import_dma_buf(client, fd); pr_debug("%s: DMA Buf name=%s, fd=%d handle=%p\n", __func__, name, fd, *handle); if (IS_ERR_OR_NULL((void *)(*handle))) { pr_err("%s: ion import dma buffer failed\n", __func__); rc = -EINVAL; goto err; } if (ionflag != NULL) { rc = ion_handle_get_flags(client, *handle, ionflag); if (rc) { pr_err("%s: could not get flags for the handle\n", __func__); rc = -EINVAL; goto err_ion_handle; } } rc = msm_audio_ion_get_phys(client, *handle, paddr, pa_len); if (rc) { pr_err("%s: ION Get Physical for AUDIO failed, rc = %d\n", __func__, rc); rc = -EINVAL; goto err_ion_handle; } /* */ *vaddr = ion_map_kernel(client, *handle); if (IS_ERR_OR_NULL((void *)*vaddr)) { pr_err("%s: ION memory mapping for AUDIO failed\n", __func__); rc = -EINVAL; goto err_ion_handle; } if (bufsz != 0) memset((void *)*vaddr, 0, bufsz); return 0; err_ion_handle: ion_free(client, *handle); err: return rc; } int msm_audio_ion_free_legacy(struct ion_client *client, struct ion_handle *handle) { if (msm_audio_ion_data.smmu_enabled) ion_unmap_iommu(client, handle, msm_audio_ion_data.domain_id, 0); ion_unmap_kernel(client, handle); ion_free(client, handle); /* */ return 0; } int msm_audio_ion_cache_operations(struct audio_buffer *abuff, int cache_op) { unsigned long ionflag = 0; int rc = 0; int msm_cache_ops = 0; if (!abuff) { pr_err("Invalid params: %p, %p\n", __func__, abuff); return -EINVAL; } rc = ion_handle_get_flags(abuff->client, abuff->handle, &ionflag); if (rc) { pr_err("ion_handle_get_flags failed: %d\n", rc); goto cache_op_failed; } /* */ if (ION_IS_CACHED(ionflag)) { /* */ msm_cache_ops = cache_op; rc = msm_ion_do_cache_op(abuff->client, abuff->handle, (unsigned long *) abuff->data, (unsigned long)abuff->size, msm_cache_ops); if (rc) { pr_err("cache operation failed %d\n", rc); goto cache_op_failed; } } cache_op_failed: return rc; } static int msm_audio_ion_get_phys(struct ion_client *client, struct ion_handle *handle, ion_phys_addr_t *addr, size_t *len) { int rc = 0; pr_debug("%s: smmu_enabled = %d\n", __func__, msm_audio_ion_data.smmu_enabled); if (msm_audio_ion_data.smmu_enabled) { rc = ion_map_iommu(client, handle, msm_audio_ion_data.domain_id, 0 /* */, SZ_4K /* */, 0/* */, addr, (unsigned long *)len, 0, 0); if (rc) { pr_err("%s: ION map iommu failed %d\n", __func__, rc); return rc; } pr_debug("client=%p, domain=%p, domain_id=%d, group=%p", client, msm_audio_ion_data.domain, msm_audio_ion_data.domain_id, msm_audio_ion_data.group); } else { /* */ rc = ion_phys(client, handle, addr, len); } pr_debug("phys=%x, len=%d, rc=%d\n", (unsigned int)*addr, *len, rc); return rc; } static int msm_audio_ion_probe(struct platform_device *pdev) { int rc = 0; const char *msm_audio_ion_dt = "qcom,smmu-enabled"; bool smmu_enabled; if (pdev->dev.of_node == NULL) { pr_err("%s: device tree is not found\n", __func__); msm_audio_ion_data.smmu_enabled = 0; return 0; } smmu_enabled = of_property_read_bool(pdev->dev.of_node, msm_audio_ion_dt); msm_audio_ion_data.smmu_enabled = smmu_enabled; if (smmu_enabled) { msm_audio_ion_data.group = iommu_group_find("lpass_audio"); if (!msm_audio_ion_data.group) { pr_debug("Failed to find group lpass_audio deferred\n"); goto fail_group; } msm_audio_ion_data.domain = iommu_group_get_iommudata(msm_audio_ion_data.group); if (IS_ERR_OR_NULL(msm_audio_ion_data.domain)) { pr_err("Failed to get domain data for group %p", msm_audio_ion_data.group); goto fail_group; } msm_audio_ion_data.domain_id = msm_find_domain_no(msm_audio_ion_data.domain); if (msm_audio_ion_data.domain_id < 0) { pr_err("Failed to get domain index for domain %p", msm_audio_ion_data.domain); goto fail_group; } pr_debug("domain=%p, domain_id=%d, group=%p", msm_audio_ion_data.domain, msm_audio_ion_data.domain_id, msm_audio_ion_data.group); /* */ rc = iommu_attach_group(msm_audio_ion_data.domain, msm_audio_ion_data.group); if (rc) { pr_err("%s:ION attach group failed %d\n", __func__, rc); return rc; } } pr_debug("%s: SMMU-Enabled = %d\n", __func__, smmu_enabled); return rc; fail_group: return -EPROBE_DEFER; } static int msm_audio_ion_remove(struct platform_device *pdev) { pr_debug("%s: msm audio ion is unloaded, domain=%p, group=%p\n", __func__, msm_audio_ion_data.domain, msm_audio_ion_data.group); iommu_detach_group(msm_audio_ion_data.domain, msm_audio_ion_data.group); return 0; } static const struct of_device_id msm_audio_ion_dt_match[] = { { .compatible = "qcom,msm-audio-ion" }, { } }; MODULE_DEVICE_TABLE(of, msm_audio_ion_dt_match); static struct platform_driver msm_audio_ion_driver = { .driver = { .name = "msm-audio-ion", .owner = THIS_MODULE, .of_match_table = msm_audio_ion_dt_match, }, .probe = msm_audio_ion_probe, .remove = __devexit_p(msm_audio_ion_remove), }; static int __init msm_audio_ion_init(void) { return platform_driver_register(&msm_audio_ion_driver); } module_init(msm_audio_ion_init); static void __exit msm_audio_ion_exit(void) { platform_driver_unregister(&msm_audio_ion_driver); } module_exit(msm_audio_ion_exit); MODULE_DESCRIPTION("MSM Audio ION module"); MODULE_LICENSE("GPL v2");
gpl-2.0
animenotifier/anime-release-notifier-android
app/src/main/java/com/freezingwind/animereleasenotifier/updater/AnimeUpdater.java
4366
package com.freezingwind.animereleasenotifier.updater; import android.content.Context; import android.content.SharedPreferences; import android.preference.PreferenceManager; import android.util.Log; import com.android.volley.Request; import com.android.volley.Response; import com.android.volley.VolleyError; import com.android.volley.toolbox.JsonObjectRequest; import com.freezingwind.animereleasenotifier.data.Anime; import com.freezingwind.animereleasenotifier.helpers.NetworkManager; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import java.util.ArrayList; public class AnimeUpdater { protected ArrayList<Anime> animeList; protected boolean completedOnly; public AnimeUpdater(boolean fetchCompletedOnly) { animeList = new ArrayList<Anime>(); completedOnly = fetchCompletedOnly; } // GetAnimeList public ArrayList<Anime> getAnimeList() { return animeList; } public void update(String response, final Context context, final AnimeListUpdateCallBack callBack) { try { JSONObject responseObject = new JSONObject(response); update(responseObject, context, callBack); } catch(JSONException e) { Log.d("AnimeUpdater", e.toString()); } } public void update(JSONObject response, final Context context, final AnimeListUpdateCallBack callBack) { try { animeList.clear(); SharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(context); SharedPreferences.Editor editor = sharedPrefs.edit(); JSONArray watchingList = response.getJSONArray("watching"); for (int i = 0; i < watchingList.length(); i++) { JSONObject animeJSON = watchingList.getJSONObject(i); JSONObject episodes = animeJSON.getJSONObject("episodes"); JSONObject airingDate = animeJSON.getJSONObject("airingDate"); JSONObject animeProvider = null; try { animeProvider = animeJSON.getJSONObject("animeProvider"); } catch(JSONException e) { //Log.d("AnimeUpdater", "No anime provider available"); } Anime anime = new Anime( animeJSON.getString("title"), animeJSON.getString("image"), animeJSON.getString("url"), animeProvider != null ? animeProvider.getString("url") : "", animeProvider != null ? animeProvider.getString("nextEpisodeUrl") : "", animeProvider != null ? animeProvider.getString("videoUrl") : "", episodes.getInt("watched"), episodes.getInt("available"), episodes.getInt("max"), episodes.getInt("offset"), airingDate.getString("remainingString"), completedOnly ? "completed" : "watching" ); // Load cached episode count String key = anime.title + ":episodes-available"; int availableCached = sharedPrefs.getInt(key, -1); anime.notify = anime.available > availableCached && availableCached != -1; // Save data in preferences editor.putInt(anime.title + ":episodes-available", anime.available); // Add to list animeList.add(anime); } // Write preferences editor.apply(); } catch (JSONException e) { Log.d("AnimeUpdater", "Error parsing JSON: " + e.toString()); } finally { callBack.execute(); } } // Update public void updateByUser(String userName, final Context context, final AnimeListUpdateCallBack callBack) { String apiUrl = "https://animereleasenotifier.com/api/animelist/" + userName; if(completedOnly) apiUrl += "&completed=1"; final SharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(context); apiUrl += "&animeProvider=" + sharedPrefs.getString("animeProvider", "KissAnime"); //Toast.makeText(activity, "Loading anime list of " + userName, Toast.LENGTH_SHORT).show(); final JsonObjectRequest jsObjRequest = new JsonObjectRequest(Request.Method.GET, apiUrl, (String)null, new Response.Listener<JSONObject>() { @Override public void onResponse(JSONObject response) { update(response, context, callBack); // Cache it SharedPreferences.Editor editor = sharedPrefs.edit(); editor.putString("cachedAnimeListJSON" + (completedOnly ? "Completed" : ""), response.toString()); editor.apply(); } }, new Response.ErrorListener() { @Override public void onErrorResponse(VolleyError error) { System.out.println("Error: " + error.toString()); } }); NetworkManager.getRequestQueue().add(jsObjRequest); } }
gpl-2.0
ysleu/RTL8685
uClinux-dist/user/cups/cups-1.0.5/filter/hpgl-vector.c
16984
/* * "$Id: hpgl-vector.c,v 1.1 2011/02/22 15:39:35 cathy Exp $" * * HP-GL/2 vector routines for the Common UNIX Printing System (CUPS). * * Copyright 1993-2000 by Easy Software Products. * * These coded instructions, statements, and computer programs are the * property of Easy Software Products and are protected by Federal * copyright law. Distribution and use rights are outlined in the file * "LICENSE.txt" which should have been included with this file. If this * file is missing or damaged please contact Easy Software Products * at: * * Attn: CUPS Licensing Information * Easy Software Products * 44141 Airport View Drive, Suite 204 * Hollywood, Maryland 20636-3111 USA * * Voice: (301) 373-9603 * EMail: [email protected] * WWW: http://www.cups.org * * Contents: * * AA_arc_absolute() - Draw an arc. * AR_arc_relative() - Draw an arc relative to the current pen * AT_arc_absolute3() - Draw an arc using 3 points. * CI_circle() - Draw a circle. * PA_plot_absolute() - Plot a line using absolute coordinates. * PD_pen_down() - Start drawing. * PE_polygon_encoded() - Draw an encoded polyline. * PR_plot_relative() - Plot a line using relative coordinates. * PU_pen_up() - Stop drawing. * RT_arc_relative3() - Draw an arc through 3 points relative to the * decode_number() - Decode an encoded number. * plot_points() - Plot the specified points. */ /* * Include necessary headers... */ #include "hpgltops.h" /* * Local functions... */ static double decode_number(unsigned char **, int, double); static void plot_points(int, param_t *); /* * 'AA_arc_absolute()' - Draw an arc. */ void AA_arc_absolute(int num_params, /* I - Number of parameters */ param_t *params) /* I - Parameters */ { float x, y, /* Transformed coordinates */ dx, dy; /* Distance from current pen */ float start, end, /* Start and end angles */ theta, /* Current angle */ dt, /* Step between points */ radius; /* Radius of arc */ if (num_params < 3) return; x = Transform[0][0] * params[0].value.number + Transform[0][1] * params[1].value.number + Transform[0][2]; y = Transform[1][0] * params[0].value.number + Transform[1][1] * params[1].value.number + Transform[1][2]; dx = PenPosition[0] - x; dy = PenPosition[1] - y; start = (float)(180.0 * atan2(dy, dx) / M_PI); if (start < 0.0) start += 360.0f; end = start + params[2].value.number; radius = (float)hypot(dx, dy); if (PenDown) { if (num_params > 3 && params[3].value.number > 0.0) dt = (float)fabs(params[3].value.number); else dt = 5.0; if (!PolygonMode) Outputf("MP\n"); Outputf("%.3f %.3f MO\n", PenPosition[0], PenPosition[1]); if (start < end) for (theta = start + dt; theta < end; theta += dt) { PenPosition[0] = (float)(x + radius * cos(M_PI * theta / 180.0)); PenPosition[1] = (float)(y + radius * sin(M_PI * theta / 180.0)); Outputf("%.3f %.3f LI\n", PenPosition[0], PenPosition[1]); } else for (theta = start - dt; theta > end; theta -= dt) { PenPosition[0] = (float)(x + radius * cos(M_PI * theta / 180.0)); PenPosition[1] = (float)(y + radius * sin(M_PI * theta / 180.0)); Outputf("%.3f %.3f LI\n", PenPosition[0], PenPosition[1]); } } PenPosition[0] = (float)(x + radius * cos(M_PI * end / 180.0)); PenPosition[1] = (float)(y + radius * sin(M_PI * end / 180.0)); if (PenDown) { Outputf("%.3f %.3f LI\n", PenPosition[0], PenPosition[1]); if (!PolygonMode) Outputf("ST\n"); } } /* * 'AR_arc_relative()' - Draw an arc relative to the current pen * position. */ void AR_arc_relative(int num_params, /* I - Number of parameters */ param_t *params) /* I - Parameters */ { float x, y, /* Transformed coordinates */ dx, dy; /* Distance from current pen */ float start, end, /* Start and end angles */ theta, /* Current angle */ dt, /* Step between points */ radius; /* Radius of arc */ if (num_params < 3) return; x = Transform[0][0] * params[0].value.number + Transform[0][1] * params[1].value.number + PenPosition[0]; y = Transform[1][0] * params[0].value.number + Transform[1][1] * params[1].value.number + PenPosition[1]; dx = PenPosition[0] - x; dy = PenPosition[1] - y; start = (float)(180.0 * atan2(dy, dx) / M_PI); if (start < 0.0) start += 360.0f; end = start + params[2].value.number; radius = (float)hypot(dx, dy); if (PenDown) { if (num_params > 3 && params[3].value.number > 0.0) dt = (float)fabs(params[3].value.number); else dt = 5.0; if (!PolygonMode) Outputf("MP\n"); Outputf("%.3f %.3f MO\n", PenPosition[0], PenPosition[1]); if (start < end) for (theta = start + dt; theta < end; theta += dt) { PenPosition[0] = (float)(x + radius * cos(M_PI * theta / 180.0)); PenPosition[1] = (float)(y + radius * sin(M_PI * theta / 180.0)); Outputf("%.3f %.3f LI\n", PenPosition[0], PenPosition[1]); } else for (theta = start - dt; theta > end; theta -= dt) { PenPosition[0] = (float)(x + radius * cos(M_PI * theta / 180.0)); PenPosition[1] = (float)(y + radius * sin(M_PI * theta / 180.0)); Outputf("%.3f %.3f LI\n", PenPosition[0], PenPosition[1]); } } PenPosition[0] = (float)(x + radius * cos(M_PI * end / 180.0)); PenPosition[1] = (float)(y + radius * sin(M_PI * end / 180.0)); if (PenDown) { Outputf("%.3f %.3f LI\n", PenPosition[0], PenPosition[1]); if (!PolygonMode) Outputf("ST\n"); } } /* * 'AT_arc_absolute3()' - Draw an arc using 3 points. * * Note: * * Currently this only draws two line segments through the * specified points. */ void AT_arc_absolute3(int num_params, /* I - Number of parameters */ param_t *params) /* I - Parameters */ { if (num_params < 4) return; if (PenDown) { if (!PolygonMode) Outputf("MP\n"); Outputf("%.3f %.3f MO\n", PenPosition[0], PenPosition[1]); PenPosition[0] = Transform[0][0] * params[0].value.number + Transform[0][1] * params[1].value.number + Transform[0][2]; PenPosition[1] = Transform[1][0] * params[0].value.number + Transform[1][1] * params[1].value.number + Transform[1][2]; Outputf("%.3f %.3f LI\n", PenPosition[0], PenPosition[1]); } PenPosition[0] = Transform[0][0] * params[2].value.number + Transform[0][1] * params[3].value.number + Transform[0][2]; PenPosition[1] = Transform[1][0] * params[2].value.number + Transform[1][1] * params[3].value.number + Transform[1][2]; if (PenDown) { Outputf("%.3f %.3f LI\n", PenPosition[0], PenPosition[1]); if (!PolygonMode) Outputf("ST\n"); } } /* * 'CI_circle()' - Draw a circle. */ void CI_circle(int num_params, /* I - Number of parameters */ param_t *params) /* I - Parameters */ { float x, y; /* Transformed coordinates */ float theta, /* Current angle */ dt, /* Step between points */ radius; /* Radius of circle */ if (num_params < 1) return; if (!PenDown) return; radius = params[0].value.number; if (num_params > 1) dt = (float)fabs(params[1].value.number); else dt = 5.0; if (!PolygonMode) Outputf("MP\n"); for (theta = 0.0; theta < 360.0; theta += dt) { x = (float)(PenPosition[0] + radius * cos(M_PI * theta / 180.0) * Transform[0][0] + radius * sin(M_PI * theta / 180.0) * Transform[0][1]); y = (float)(PenPosition[1] + radius * cos(M_PI * theta / 180.0) * Transform[1][0] + radius * sin(M_PI * theta / 180.0) * Transform[1][1]); Outputf("%.3f %.3f %s\n", x, y, theta == 0.0 ? "MO" : "LI"); } Outputf("CP\n"); if (!PolygonMode) Outputf("ST\n"); } /* * 'PA_plot_absolute()' - Plot a line using absolute coordinates. */ void PA_plot_absolute(int num_params, /* I - Number of parameters */ param_t *params) /* I - Parameters */ { PenMotion = 0; if (num_params > 1) plot_points(num_params, params); } /* * 'PD_pen_down()' - Start drawing. */ void PD_pen_down(int num_params, /* I - Number of parameters */ param_t *params) /* I - Parameters */ { PenDown = 1; if (num_params > 1) plot_points(num_params, params); } /* * 'PE_polygon_encoded()' - Draw an encoded polyline. */ void PE_polyline_encoded(int num_params, /* I - Number of parameters */ param_t *params) /* I - Parameters */ { unsigned char *s; /* Pointer into string */ int temp, /* Temporary value */ base_bits, /* Data bits per byte */ draw, /* Draw or move */ abscoords; /* Use absolute coordinates */ double tx, ty, /* Transformed coordinates */ x, y, /* Raw coordinates */ frac_bits; /* Multiplier for encoded number */ base_bits = 6; frac_bits = 1.0; draw = 1; abscoords = 0; if (num_params == 0) return; if (!PolygonMode) { Outputf("MP\n"); Outputf("%.3f %.3f MO\n", PenPosition[0], PenPosition[1]); } for (s = (unsigned char *)params[0].value.string; *s != '\0';) switch (*s) { case '7' : s ++; base_bits = 5; break; case ':' : /* Select pen */ s ++; PenNumber = (int)decode_number(&s, base_bits, 1.0); if (PageDirty) printf("%.3f %.3f %.3f %.2f SP\n", Pens[PenNumber].rgb[0], Pens[PenNumber].rgb[PenNumber], Pens[PenNumber].rgb[2], Pens[PenNumber].width * PenScaling); break; case '<' : /* Next coords are a move-to */ draw = 0; s ++; break; case '>' : /* Set fractional bits */ s ++; temp = (int)decode_number(&s, base_bits, 1.0); frac_bits = 1.0 / (1 << temp); break; case '=' : /* Next coords are absolute */ s ++; abscoords = 1; break; default : if (*s >= 63) { /* * Coordinate... */ x = decode_number(&s, base_bits, frac_bits); y = decode_number(&s, base_bits, frac_bits); if (abscoords) { tx = Transform[0][0] * x + Transform[0][1] * y + Transform[0][2]; ty = Transform[1][0] * x + Transform[1][1] * y + Transform[1][2]; } else if (x == 0.0 && y == 0.0) { draw = 1; continue; } else { tx = Transform[0][0] * x + Transform[0][1] * y + PenPosition[0]; ty = Transform[1][0] * x + Transform[1][1] * y + PenPosition[1]; } if (draw) Outputf("%.3f %.3f LI\n", tx, ty); else Outputf("%.3f %.3f MO\n", tx, ty); PenPosition[0] = (float)tx; PenPosition[1] = (float)ty; draw = 1; abscoords = 0; } else { /* * Junk - ignore... */ if (*s != '\n' && *s != '\r') fprintf(stderr, "WARNING: ignoring illegal PE char \'%c\'...\n", *s); s ++; } break; } if (!PolygonMode) Outputf("ST\n"); } /* * 'PR_plot_relative()' - Plot a line using relative coordinates. */ void PR_plot_relative(int num_params, /* I - Number of parameters */ param_t *params) /* I - Parameters */ { PenMotion = 1; if (num_params > 1) plot_points(num_params, params); } /* * 'PU_pen_up()' - Stop drawing. */ void PU_pen_up(int num_params, /* I - Number of parameters */ param_t *params) /* I - Parameters */ { PenDown = 0; if (num_params > 1) plot_points(num_params, params); } /* * 'RT_arc_relative3()' - Draw an arc through 3 points relative to the * current pen position. * * Note: * * This currently only draws two line segments through the specified * points. */ void RT_arc_relative3(int num_params, /* I - Number of parameters */ param_t *params) /* I - Parameters */ { if (num_params < 4) return; if (PenDown) { if (!PolygonMode) Outputf("MP\n"); Outputf("%.3f %.3f MO\n", PenPosition[0], PenPosition[1]); PenPosition[0] = Transform[0][0] * params[0].value.number + Transform[0][1] * params[1].value.number + PenPosition[0]; PenPosition[1] = Transform[1][0] * params[0].value.number + Transform[1][1] * params[1].value.number + PenPosition[1]; Outputf("%.3f %.3f LI\n", PenPosition[0], PenPosition[1]); } PenPosition[0] = Transform[0][0] * params[2].value.number + Transform[0][1] * params[3].value.number + PenPosition[0]; PenPosition[1] = Transform[1][0] * params[2].value.number + Transform[1][1] * params[3].value.number + PenPosition[1]; if (PenDown) { Outputf("%.3f %.3f LI\n", PenPosition[0], PenPosition[1]); if (!PolygonMode) Outputf("ST\n"); } } /* * 'decode_number()' - Decode an encoded number. */ static double /* O - Value */ decode_number(unsigned char **s, /* IO - String to decode */ int base_bits, /* I - Number of data bits per byte */ double frac_bits) /* I - Multiplier for fractional data */ { double temp, /* Current value */ shift; /* Multiplier */ int sign; /* Sign of result */ sign = 0; if (base_bits == 5) { for (temp = 0.0, shift = frac_bits * 0.5; **s != '\0'; (*s) ++) if (**s >= 95 && **s < 127) { if (sign == 0) { if ((**s - 95) & 1) sign = -1; else sign = 1; temp += ((**s - 95) & ~1) * shift; } else temp += (**s - 95) * shift; break; } else if (**s < 63) { if (**s != '\r' && **s != '\n') fprintf(stderr, "hpgl2ps: Bad PE character \'%c\'!\n", **s); continue; } else { if (sign == 0) { if ((**s - 63) & 1) sign = -1; else sign = 1; temp += ((**s - 63) & ~1) * shift; } else temp += (**s - 63) * shift; shift *= 32.0; } } else { for (temp = 0.0, shift = frac_bits * 0.5; **s != '\0'; (*s) ++) if (**s >= 191 && **s < 255) { if (sign == 0) { if ((**s - 191) & 1) sign = -1; else sign = 1; temp += ((**s - 191) & ~1) * shift; } else temp += (**s - 191) * shift; break; } else if (**s < 63) { if (**s != '\r' && **s != '\n') fprintf(stderr, "hpgl2ps: Bad PE character \'%c\'!\n", **s); continue; } else { if (sign == 0) { if ((**s - 63) & 1) sign = -1; else sign = 1; temp += ((**s - 63) & ~1) * shift; } else temp += (**s - 63) * shift; shift *= 64.0; } } (*s) ++; return (temp * sign); } /* * 'plot_points()' - Plot the specified points. */ static void plot_points(int num_params, /* I - Number of parameters */ param_t *params) /* I - Parameters */ { int i; /* Looping var */ float x, y; /* Transformed coordinates */ if (PenDown) { if (!PolygonMode) Outputf("MP\n"); Outputf("%.3f %.3f MO\n", PenPosition[0], PenPosition[1]); } for (i = 0; i < num_params; i += 2) { if (PenMotion == 0) { x = Transform[0][0] * params[i + 0].value.number + Transform[0][1] * params[i + 1].value.number + Transform[0][2]; y = Transform[1][0] * params[i + 0].value.number + Transform[1][1] * params[i + 1].value.number + Transform[1][2]; } else { x = Transform[0][0] * params[i + 0].value.number + Transform[0][1] * params[i + 1].value.number + PenPosition[0]; y = Transform[1][0] * params[i + 0].value.number + Transform[1][1] * params[i + 1].value.number + PenPosition[1]; } if (PenDown) Outputf("%.3f %.3f LI\n", x, y); PenPosition[0] = x; PenPosition[1] = y; } if (PenDown) { if (!PolygonMode) Outputf("ST\n"); } } /* * End of "$Id: hpgl-vector.c,v 1.1 2011/02/22 15:39:35 cathy Exp $". */
gpl-2.0
caps-liu/hisi-driverlibs
source/msp/drv/vfmw/softlib/hwmedia_v1.1/src/hwdec/inc/win32/sys/socket.h
1070
/* * Copyright (C) 2000-2004 the xine project * * This file is part of xine, a unix video player. * * xine 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. * * xine 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 * * WIN32 PORT, */ #ifndef _SOCKET_H #define _SOCKET_H #include <fcntl.h> /* Not sure that this is needed */ #include <io.h> /* open, close, ... */ #include <winsock.h> #define SIGPIPE 13 #ifndef SIGALRM #define SIGALRM 14 #endif #endif /* _SOCKET_H */
gpl-2.0
jcollie/asterisk
res/parking/parking_applications.c
26552
/* * Asterisk -- An open source telephony toolkit. * * Copyright (C) 2013, Digium, Inc. * * Jonathan Rose <[email protected]> * * See http://www.asterisk.org for more information about * the Asterisk project. Please do not directly contact * any of the maintainers of this project for assistance; * the project provides a web site, mailing lists and IRC * channels for your use. * * This program is free software, distributed under the terms of * the GNU General Public License Version 2. See the LICENSE file * at the top of the source tree. */ /*! \file * * \brief Call Parking Applications * * \author Jonathan Rose <[email protected]> */ #include "asterisk.h" ASTERISK_FILE_VERSION(__FILE__, "$Revision$") #include "res_parking.h" #include "asterisk/config.h" #include "asterisk/config_options.h" #include "asterisk/utils.h" #include "asterisk/astobj2.h" #include "asterisk/features.h" #include "asterisk/module.h" #include "asterisk/app.h" #include "asterisk/say.h" #include "asterisk/bridge_basic.h" /*** DOCUMENTATION <application name="Park" language="en_US"> <synopsis> Park yourself. </synopsis> <syntax> <parameter name="parking_lot_name"> <para>Specify in which parking lot to park a call.</para> <para>The parking lot used is selected in the following order:</para> <para>1) parking_lot_name option to this application</para> <para>2) <variable>PARKINGLOT</variable> variable</para> <para>3) <literal>CHANNEL(parkinglot)</literal> function (Possibly preset by the channel driver.)</para> <para>4) Default parking lot.</para> </parameter> <parameter name="options"> <para>A list of options for this parked call.</para> <optionlist> <option name="r"> <para>Send ringing instead of MOH to the parked call.</para> </option> <option name="R"> <para>Randomize the selection of a parking space.</para> </option> <option name="s"> <para>Silence announcement of the parking space number.</para> </option> <option name="c" argsep=","> <argument name="context" required="false" /> <argument name="extension" required="false" /> <argument name="priority" required="true" /> <para>If the parking times out, go to this place in the dialplan instead of where the parking lot defines the call should go. </para> </option> <option name="t"> <argument name="duration" required="true" /> <para>Use a timeout of <literal>duration</literal> seconds instead of the timeout specified by the parking lot.</para> </option> </optionlist> </parameter> </syntax> <description> <para>Used to park yourself (typically in combination with an attended transfer to know the parking space).</para> <para>If you set the <variable>PARKINGEXTEN</variable> variable to a parking space extension in the parking lot, Park() will attempt to park the call on that extension. If the extension is already in use then execution will continue at the next priority. </para> </description> <see-also> <ref type="application">ParkedCall</ref> </see-also> </application> <application name="ParkedCall" language="en_US"> <synopsis> Retrieve a parked call. </synopsis> <syntax> <parameter name="parking_lot_name"> <para>Specify from which parking lot to retrieve a parked call.</para> <para>The parking lot used is selected in the following order:</para> <para>1) parking_lot_name option</para> <para>2) <variable>PARKINGLOT</variable> variable</para> <para>3) <literal>CHANNEL(parkinglot)</literal> function (Possibly preset by the channel driver.)</para> <para>4) Default parking lot.</para> </parameter> <parameter name="parking_space"> <para>Parking space to retrieve a parked call from. If not provided then the first available parked call in the parking lot will be retrieved.</para> </parameter> </syntax> <description> <para>Used to retrieve a parked call from a parking lot.</para> <note> <para>If a parking lot's parkext option is set, then Parking lots will automatically create and manage dialplan extensions in the parking lot context. If that is the case then you will not need to manage parking extensions yourself, just include the parking context of the parking lot.</para> </note> </description> <see-also> <ref type="application">Park</ref> </see-also> </application> <application name="ParkAndAnnounce" language="en_US"> <synopsis> Park and Announce. </synopsis> <syntax> <parameter name="parking_lot_name"> <para>Specify in which parking lot to park a call.</para> <para>The parking lot used is selected in the following order:</para> <para>1) parking_lot_name option to this application</para> <para>2) <variable>PARKINGLOT</variable> variable</para> <para>3) <literal>CHANNEL(parkinglot)</literal> function (Possibly preset by the channel driver.)</para> <para>4) Default parking lot.</para> </parameter> <parameter name="options"> <para>A list of options for this parked call.</para> <optionlist> <option name="r"> <para>Send ringing instead of MOH to the parked call.</para> </option> <option name="R"> <para>Randomize the selection of a parking space.</para> </option> <option name="c" argsep=","> <argument name="context" required="false" /> <argument name="extension" required="false" /> <argument name="priority" required="true" /> <para>If the parking times out, go to this place in the dialplan instead of where the parking lot defines the call should go. </para> </option> <option name="t"> <argument name="duration" required="true" /> <para>Use a timeout of <literal>duration</literal> seconds instead of the timeout specified by the parking lot.</para> </option> </optionlist> </parameter> <parameter name="announce_template" required="true" argsep=":"> <argument name="announce" required="true"> <para>Colon-separated list of files to announce. The word <literal>PARKED</literal> will be replaced by a say_digits of the extension in which the call is parked.</para> </argument> <argument name="announce1" multiple="true" /> </parameter> <parameter name="dial" required="true"> <para>The app_dial style resource to call to make the announcement. Console/dsp calls the console.</para> </parameter> </syntax> <description> <para>Park a call into the parkinglot and announce the call to another channel.</para> <para>The variable <variable>PARKEDAT</variable> will contain the parking extension into which the call was placed. Use with the Local channel to allow the dialplan to make use of this information.</para> </description> <see-also> <ref type="application">Park</ref> <ref type="application">ParkedCall</ref> </see-also> </application> ***/ #define PARK_AND_ANNOUNCE_APPLICATION "ParkAndAnnounce" /* Park a call */ enum park_args { OPT_ARG_COMEBACK, OPT_ARG_TIMEOUT, OPT_ARG_ARRAY_SIZE /* Always the last element of the enum */ }; enum park_flags { MUXFLAG_RINGING = (1 << 0), MUXFLAG_RANDOMIZE = (1 << 1), MUXFLAG_NOANNOUNCE = (1 << 2), MUXFLAG_COMEBACK_OVERRIDE = (1 << 3), MUXFLAG_TIMEOUT_OVERRIDE = (1 << 4), }; AST_APP_OPTIONS(park_opts, { AST_APP_OPTION('r', MUXFLAG_RINGING), AST_APP_OPTION('R', MUXFLAG_RANDOMIZE), AST_APP_OPTION('s', MUXFLAG_NOANNOUNCE), AST_APP_OPTION_ARG('c', MUXFLAG_COMEBACK_OVERRIDE, OPT_ARG_COMEBACK), AST_APP_OPTION_ARG('t', MUXFLAG_TIMEOUT_OVERRIDE, OPT_ARG_TIMEOUT), }); static int apply_option_timeout (int *var, char *timeout_arg) { if (ast_strlen_zero(timeout_arg)) { ast_log(LOG_ERROR, "No duration value provided for the timeout ('t') option.\n"); return -1; } if (sscanf(timeout_arg, "%d", var) != 1 || *var < 0) { ast_log(LOG_ERROR, "Duration value provided for timeout ('t') option must be 0 or greater.\n"); return -1; } return 0; } static int park_app_parse_data(const char *data, int *disable_announce, int *use_ringing, int *randomize, int *time_limit, char **comeback_override, char **lot_name) { char *parse; struct ast_flags flags = { 0 }; AST_DECLARE_APP_ARGS(args, AST_APP_ARG(lot_name); AST_APP_ARG(options); AST_APP_ARG(other); /* Any remaining unused arguments */ ); parse = ast_strdupa(data); AST_STANDARD_APP_ARGS(args, parse); if (args.options) { char *opts[OPT_ARG_ARRAY_SIZE] = { NULL, }; ast_app_parse_options(park_opts, &flags, opts, args.options); if (ast_test_flag(&flags, MUXFLAG_TIMEOUT_OVERRIDE)) { if (apply_option_timeout(time_limit, opts[OPT_ARG_TIMEOUT])) { return -1; } } if (ast_test_flag(&flags, MUXFLAG_COMEBACK_OVERRIDE)) { *comeback_override = ast_strdup(opts[OPT_ARG_COMEBACK]); } if (ast_test_flag(&flags, MUXFLAG_NOANNOUNCE)) { if (disable_announce) { *disable_announce = 1; } } if (ast_test_flag(&flags, MUXFLAG_RINGING)) { *use_ringing = 1; } if (ast_test_flag(&flags, MUXFLAG_RANDOMIZE)) { *randomize = 1; } } if (!ast_strlen_zero(args.lot_name)) { *lot_name = ast_strdup(args.lot_name); } return 0; } void park_common_datastore_free(struct park_common_datastore *datastore) { if (!datastore) { return; } ast_free(datastore->parker_uuid); ast_free(datastore->parker_dial_string); ast_free(datastore->comeback_override); ast_free(datastore); } static void park_common_datastore_destroy(void *data) { struct park_common_datastore *datastore = data; park_common_datastore_free(datastore); } static const struct ast_datastore_info park_common_info = { .type = "park entry data", .destroy = park_common_datastore_destroy, }; static void wipe_park_common_datastore(struct ast_channel *chan) { struct ast_datastore *datastore; ast_channel_lock(chan); datastore = ast_channel_datastore_find(chan, &park_common_info, NULL); if (datastore) { ast_channel_datastore_remove(chan, datastore); ast_datastore_free(datastore); } ast_channel_unlock(chan); } static int setup_park_common_datastore(struct ast_channel *parkee, const char *parker_uuid, const char *comeback_override, int randomize, int time_limit, int silence_announce) { struct ast_datastore *datastore = NULL; struct park_common_datastore *park_datastore; const char *attended_transfer; const char *blind_transfer; char *parker_dial_string = NULL; wipe_park_common_datastore(parkee); if (!(datastore = ast_datastore_alloc(&park_common_info, NULL))) { return -1; } if (!(park_datastore = ast_calloc(1, sizeof(*park_datastore)))) { ast_datastore_free(datastore); return -1; } if (parker_uuid) { park_datastore->parker_uuid = ast_strdup(parker_uuid); } ast_channel_lock(parkee); attended_transfer = pbx_builtin_getvar_helper(parkee, "ATTENDEDTRANSFER"); blind_transfer = pbx_builtin_getvar_helper(parkee, "BLINDTRANSFER"); if (attended_transfer || blind_transfer) { parker_dial_string = ast_strdupa(S_OR(attended_transfer, blind_transfer)); } ast_channel_unlock(parkee); if (!ast_strlen_zero(parker_dial_string)) { ast_channel_name_to_dial_string(parker_dial_string); ast_verb(5, "Setting dial string to %s from %s value", parker_dial_string, attended_transfer ? "ATTENDEDTRANSFER" : "BLINDTRANSFER"); park_datastore->parker_dial_string = ast_strdup(parker_dial_string); } park_datastore->randomize = randomize; park_datastore->time_limit = time_limit; park_datastore->silence_announce = silence_announce; if (comeback_override) { park_datastore->comeback_override = ast_strdup(comeback_override); } datastore->data = park_datastore; ast_channel_lock(parkee); ast_channel_datastore_add(parkee, datastore); ast_channel_unlock(parkee); return 0; } struct park_common_datastore *get_park_common_datastore_copy(struct ast_channel *parkee) { struct ast_datastore *datastore; struct park_common_datastore *data; struct park_common_datastore *data_copy; SCOPED_CHANNELLOCK(lock, parkee); if (!(datastore = ast_channel_datastore_find(parkee, &park_common_info, NULL))) { return NULL; } data = datastore->data; if (!data) { /* This data should always be populated if this datastore was appended to the channel */ ast_assert(0); } data_copy = ast_calloc(1, sizeof(*data_copy)); if (!data_copy) { return NULL; } if (!(data_copy->parker_uuid = ast_strdup(data->parker_uuid))) { park_common_datastore_free(data_copy); return NULL; } data_copy->randomize = data->randomize; data_copy->time_limit = data->time_limit; data_copy->silence_announce = data->silence_announce; if (data->comeback_override) { data_copy->comeback_override = ast_strdup(data->comeback_override); if (!data_copy->comeback_override) { park_common_datastore_free(data_copy); return NULL; } } if (data->parker_dial_string) { data_copy->parker_dial_string = ast_strdup(data->parker_dial_string); if (!data_copy->parker_dial_string) { park_common_datastore_free(data_copy); return NULL; } } return data_copy; } struct ast_bridge *park_common_setup(struct ast_channel *parkee, struct ast_channel *parker, const char *lot_name, const char *comeback_override, int use_ringing, int randomize, int time_limit, int silence_announcements) { struct ast_bridge *parking_bridge; RAII_VAR(struct parking_lot *, lot, NULL, ao2_cleanup); if (!parker) { parker = parkee; } /* If the name of the parking lot isn't specified in the arguments, find it based on the channel. */ if (ast_strlen_zero(lot_name)) { ast_channel_lock(parker); lot_name = ast_strdupa(find_channel_parking_lot_name(parker)); ast_channel_unlock(parker); } lot = parking_lot_find_by_name(lot_name); if (!lot) { lot = parking_create_dynamic_lot(lot_name, parkee); } if (!lot) { ast_log(LOG_ERROR, "Could not find parking lot: '%s'\n", lot_name); return NULL; } ao2_lock(lot); parking_bridge = parking_lot_get_bridge(lot); ao2_unlock(lot); if (!parking_bridge) { return NULL; } /* Apply relevant bridge roles and such to the parking channel */ parking_channel_set_roles(parkee, lot, use_ringing); setup_park_common_datastore(parkee, ast_channel_uniqueid(parker), comeback_override, randomize, time_limit, silence_announcements); return parking_bridge; } struct ast_bridge *park_application_setup(struct ast_channel *parkee, struct ast_channel *parker, const char *app_data, int *silence_announcements) { int use_ringing = 0; int randomize = 0; int time_limit = -1; RAII_VAR(char *, comeback_override, NULL, ast_free); RAII_VAR(char *, lot_name_app_arg, NULL, ast_free); if (app_data) { park_app_parse_data(app_data, silence_announcements, &use_ringing, &randomize, &time_limit, &comeback_override, &lot_name_app_arg); } return park_common_setup(parkee, parker, lot_name_app_arg, comeback_override, use_ringing, randomize, time_limit, silence_announcements ? *silence_announcements : 0); } static int park_app_exec(struct ast_channel *chan, const char *data) { RAII_VAR(struct ast_bridge *, parking_bridge, NULL, ao2_cleanup); struct ast_bridge_features chan_features; int res; int silence_announcements = 0; const char *transferer; /* Answer the channel if needed */ if (ast_channel_state(chan) != AST_STATE_UP) { ast_answer(chan); } ast_channel_lock(chan); if (!(transferer = pbx_builtin_getvar_helper(chan, "ATTENDEDTRANSFER"))) { transferer = pbx_builtin_getvar_helper(chan, "BLINDTRANSFER"); } transferer = ast_strdupa(S_OR(transferer, "")); ast_channel_unlock(chan); /* Handle the common parking setup stuff */ if (!(parking_bridge = park_application_setup(chan, NULL, data, &silence_announcements))) { if (!silence_announcements && !transferer) { ast_stream_and_wait(chan, "pbx-parkingfailed", ""); } return 0; } /* Initialize bridge features for the channel. */ res = ast_bridge_features_init(&chan_features); if (res) { ast_bridge_features_cleanup(&chan_features); return -1; } /* Now for the fun part... park it! */ ast_bridge_join(parking_bridge, chan, NULL, &chan_features, NULL, 0); /* * If the bridge was broken for a hangup that isn't real, then * don't run the h extension, because the channel isn't really * hung up. This should only happen with AST_SOFTHANGUP_ASYNCGOTO. */ res = -1; ast_channel_lock(chan); if (ast_channel_softhangup_internal_flag(chan) & AST_SOFTHANGUP_ASYNCGOTO) { res = 0; } ast_channel_unlock(chan); ast_bridge_features_cleanup(&chan_features); return res; } /* Retrieve a parked call */ static int parked_call_app_exec(struct ast_channel *chan, const char *data) { RAII_VAR(struct parking_lot *, lot, NULL, ao2_cleanup); RAII_VAR(struct parked_user *, pu, NULL, ao2_cleanup); /* Parked user being retrieved */ struct ast_bridge *retrieval_bridge; int res; int target_space = -1; struct ast_bridge_features chan_features; char *parse; char *lot_name; AST_DECLARE_APP_ARGS(args, AST_APP_ARG(lot_name); AST_APP_ARG(parking_space); AST_APP_ARG(other); /* Any remaining unused arguments */ ); parse = ast_strdupa(data); AST_STANDARD_APP_ARGS(args, parse); /* Answer the channel if needed */ if (ast_channel_state(chan) != AST_STATE_UP) { ast_answer(chan); } lot_name = args.lot_name; /* If the name of the parking lot isn't in the arguments, find it based on the channel. */ if (ast_strlen_zero(lot_name)) { ast_channel_lock(chan); lot_name = ast_strdupa(find_channel_parking_lot_name(chan)); ast_channel_unlock(chan); } lot = parking_lot_find_by_name(lot_name); if (!lot) { ast_log(LOG_ERROR, "Could not find the requested parking lot\n"); ast_stream_and_wait(chan, "pbx-invalidpark", ""); return -1; } if (!ast_strlen_zero(args.parking_space)) { if (sscanf(args.parking_space, "%d", &target_space) != 1 || target_space < 0) { ast_stream_and_wait(chan, "pbx-invalidpark", ""); ast_log(LOG_ERROR, "value '%s' for parking_space argument is invalid. Must be an integer greater than 0.\n", args.parking_space); return -1; } } /* Attempt to get the parked user from the parking lot */ pu = parking_lot_retrieve_parked_user(lot, target_space); if (!pu) { ast_stream_and_wait(chan, "pbx-invalidpark", ""); return -1; } /* The parked call needs to know who is retrieving it before we move it out of the parking bridge */ pu->retriever = ast_channel_snapshot_create(chan); /* Create bridge */ retrieval_bridge = ast_bridge_basic_new(); if (!retrieval_bridge) { return -1; } /* Move the parkee into the new bridge */ if (ast_bridge_move(retrieval_bridge, lot->parking_bridge, pu->chan, NULL, 0)) { ast_bridge_destroy(retrieval_bridge, 0); return -1; } /* Initialize our bridge features */ res = ast_bridge_features_init(&chan_features); if (res) { ast_bridge_destroy(retrieval_bridge, 0); ast_bridge_features_cleanup(&chan_features); return -1; } /* Set the features */ parked_call_retrieve_enable_features(chan, lot, AST_FEATURE_FLAG_BYCALLER); /* If the parkedplay option is set for the caller to hear, play that tone now. */ if (lot->cfg->parkedplay & AST_FEATURE_FLAG_BYCALLER) { ast_stream_and_wait(chan, lot->cfg->courtesytone, NULL); } /* Now we should try to join the new bridge ourselves... */ ast_bridge_join(retrieval_bridge, chan, NULL, &chan_features, NULL, AST_BRIDGE_JOIN_PASS_REFERENCE); ast_bridge_features_cleanup(&chan_features); return 0; } struct park_announce_subscription_data { char *parkee_uuid; char *dial_string; char *announce_string; }; static void park_announce_subscription_data_destroy(void *data) { struct park_announce_subscription_data *pa_data = data; ast_free(pa_data->parkee_uuid); ast_free(pa_data->dial_string); ast_free(pa_data->announce_string); ast_free(pa_data); } static struct park_announce_subscription_data *park_announce_subscription_data_create(const char *parkee_uuid, const char *dial_string, const char *announce_string) { struct park_announce_subscription_data *pa_data; if (!(pa_data = ast_calloc(1, sizeof(*pa_data)))) { return NULL; } if (!(pa_data->parkee_uuid = ast_strdup(parkee_uuid)) || !(pa_data->dial_string = ast_strdup(dial_string)) || !(pa_data->announce_string = ast_strdup(announce_string))) { park_announce_subscription_data_destroy(pa_data); return NULL; } return pa_data; } static void announce_to_dial(char *dial_string, char *announce_string, int parkingspace, struct ast_channel_snapshot *parkee_snapshot) { struct ast_channel *dchan; struct outgoing_helper oh = { 0, }; int outstate; struct ast_format_cap *cap_slin = ast_format_cap_alloc(AST_FORMAT_CAP_FLAG_NOLOCK); char buf[13]; char *dial_tech; char *cur_announce; struct ast_format tmpfmt; dial_tech = strsep(&dial_string, "/"); ast_verb(3, "Dial Tech,String: (%s,%s)\n", dial_tech, dial_string); if (!cap_slin) { ast_log(LOG_WARNING, "PARK: Failed to announce park.\n"); goto announce_cleanup; } ast_format_cap_add(cap_slin, ast_format_set(&tmpfmt, AST_FORMAT_SLINEAR, 0)); snprintf(buf, sizeof(buf), "%d", parkingspace); oh.vars = ast_variable_new("_PARKEDAT", buf, ""); dchan = __ast_request_and_dial(dial_tech, cap_slin, NULL, NULL, dial_string, 30000, &outstate, parkee_snapshot->caller_number, parkee_snapshot->caller_name, &oh); ast_variables_destroy(oh.vars); if (!dchan) { ast_log(LOG_WARNING, "PARK: Unable to allocate announce channel.\n"); goto announce_cleanup; } ast_verb(4, "Announce Template: %s\n", announce_string); for (cur_announce = strsep(&announce_string, ":"); cur_announce; cur_announce = strsep(&announce_string, ":")) { ast_verb(4, "Announce:%s\n", cur_announce); if (!strcmp(cur_announce, "PARKED")) { ast_say_digits(dchan, parkingspace, "", ast_channel_language(dchan)); } else { int dres = ast_streamfile(dchan, cur_announce, ast_channel_language(dchan)); if (!dres) { dres = ast_waitstream(dchan, ""); } else { ast_log(LOG_WARNING, "ast_streamfile of %s failed on %s\n", cur_announce, ast_channel_name(dchan)); } } } ast_stopstream(dchan); ast_hangup(dchan); announce_cleanup: cap_slin = ast_format_cap_destroy(cap_slin); } static void park_announce_update_cb(void *data, struct stasis_subscription *sub, struct stasis_message *message) { struct park_announce_subscription_data *pa_data = data; char *dial_string = pa_data->dial_string; struct ast_parked_call_payload *payload = stasis_message_data(message); if (stasis_subscription_final_message(sub, message)) { park_announce_subscription_data_destroy(data); return; } if (payload->event_type != PARKED_CALL) { /* We are only concerned with calls parked */ return; } if (strcmp(payload->parkee->uniqueid, pa_data->parkee_uuid)) { /* We are only concerned with the parkee we are subscribed for. */ return; } if (!ast_strlen_zero(dial_string)) { announce_to_dial(dial_string, pa_data->announce_string, payload->parkingspace, payload->parkee); } *dial_string = '\0'; /* If we observe this dial string on a second pass, we don't want to do anything with it. */ } static int park_and_announce_app_exec(struct ast_channel *chan, const char *data) { struct ast_bridge_features chan_features; char *parse; int res; int silence_announcements = 1; struct stasis_subscription *parking_subscription; struct park_announce_subscription_data *pa_data; RAII_VAR(struct ast_bridge *, parking_bridge, NULL, ao2_cleanup); AST_DECLARE_APP_ARGS(args, AST_APP_ARG(lot_name); AST_APP_ARG(options); AST_APP_ARG(announce_template); AST_APP_ARG(dial); AST_APP_ARG(others);/* Any remaining unused arguments */ ); if (ast_strlen_zero(data)) { ast_log(LOG_ERROR, "ParkAndAnnounce has required arguments. No arguments were provided.\n"); return -1; } parse = ast_strdupa(data); AST_STANDARD_APP_ARGS(args, parse); if (ast_strlen_zero(args.announce_template)) { /* improperly configured arguments for the application */ ast_log(LOG_ERROR, "ParkAndAnnounce requires the announce_template argument.\n"); return -1; } if (ast_strlen_zero(args.dial)) { /* improperly configured arguments */ ast_log(LOG_ERROR, "ParkAndAnnounce requires the dial argument.\n"); return -1; } if (!strchr(args.dial, '/')) { ast_log(LOG_ERROR, "ParkAndAnnounce dial string '%s' is improperly formed.\n", args.dial); return -1; } /* Handle the common parking setup stuff */ if (!(parking_bridge = park_application_setup(chan, NULL, data, &silence_announcements))) { return 0; } /* Initialize bridge features for the channel. */ res = ast_bridge_features_init(&chan_features); if (res) { ast_bridge_features_cleanup(&chan_features); return -1; } /* subscribe to the parking message so that we can announce once it is parked */ pa_data = park_announce_subscription_data_create(ast_channel_uniqueid(chan), args.dial, args.announce_template); if (!pa_data) { return -1; } if (!(parking_subscription = stasis_subscribe(ast_parking_topic(), park_announce_update_cb, pa_data))) { /* Failed to create subscription */ park_announce_subscription_data_destroy(pa_data); return -1; } /* Now for the fun part... park it! */ ast_bridge_join(parking_bridge, chan, NULL, &chan_features, NULL, 0); /* Toss the subscription since we aren't bridged at this point. */ stasis_unsubscribe(parking_subscription); /* * If the bridge was broken for a hangup that isn't real, then * don't run the h extension, because the channel isn't really * hung up. This should only happen with AST_SOFTHANGUP_ASYNCGOTO. */ res = -1; ast_channel_lock(chan); if (ast_channel_softhangup_internal_flag(chan) & AST_SOFTHANGUP_ASYNCGOTO) { res = 0; } ast_channel_unlock(chan); ast_bridge_features_cleanup(&chan_features); return res; } int load_parking_applications(void) { const struct ast_module_info *ast_module_info = parking_get_module_info(); if (ast_register_application_xml(PARK_APPLICATION, park_app_exec)) { return -1; } if (ast_register_application_xml(PARKED_CALL_APPLICATION, parked_call_app_exec)) { return -1; } if (ast_register_application_xml(PARK_AND_ANNOUNCE_APPLICATION, park_and_announce_app_exec)) { return -1; } return 0; } void unload_parking_applications(void) { ast_unregister_application(PARK_APPLICATION); ast_unregister_application(PARKED_CALL_APPLICATION); ast_unregister_application(PARK_AND_ANNOUNCE_APPLICATION); }
gpl-2.0
carlitosalcala/openui
ManageProducts/webapp/Component.js
2424
sap.ui.define([ "sap/ui/core/UIComponent", "sap/ui/Device", "opensap/manageproducts/model/models", "opensap/manageproducts/controller/ErrorHandler" ], function (UIComponent, Device, models, ErrorHandler) { "use strict"; return UIComponent.extend("opensap.manageproducts.Component", { metadata : { manifest: "json" }, /** * The component is initialized by UI5 automatically during the startup of the app and calls the init method once. * In this function, the device models are set and the router is initialized. * @public * @override */ init : function () { // call the base component's init function UIComponent.prototype.init.apply(this, arguments); // initialize the error handler with the component this._oErrorHandler = new ErrorHandler(this); // set the device model this.setModel(models.createDeviceModel(), "device"); // create the views based on the url/hash this.getRouter().initialize(); }, /** * The component is destroyed by UI5 automatically. * In this method, the ErrorHandler is destroyed. * @public * @override */ destroy : function () { this._oErrorHandler.destroy(); // call the base component's destroy function UIComponent.prototype.destroy.apply(this, arguments); }, /** * This method can be called to determine whether the sapUiSizeCompact or sapUiSizeCozy * design mode class should be set, which influences the size appearance of some controls. * @public * @return {string} css class, either 'sapUiSizeCompact' or 'sapUiSizeCozy' - or an empty string if no css class should be set */ getContentDensityClass : function() { if (this._sContentDensityClass === undefined) { // check whether FLP has already set the content density class; do nothing in this case if (jQuery(document.body).hasClass("sapUiSizeCozy") || jQuery(document.body).hasClass("sapUiSizeCompact")) { this._sContentDensityClass = ""; } else if (!Device.support.touch) { // apply "compact" mode if touch is not supported this._sContentDensityClass = "sapUiSizeCompact"; } else { // "cozy" in case of touch support; default for most sap.m controls, but needed for desktop-first controls like sap.ui.table.Table this._sContentDensityClass = "sapUiSizeCozy"; } } return this._sContentDensityClass; } }); } );
gpl-2.0
joshyan/everymarket
includes/templates/everymarket_classic/common/tpl_left_categories.php
536
<div class="categoryMenu"> <ul> <?php foreach($root_categories as $key => $value) { if($key == 13) echo "<div class='hiddenCategories'>"; ?> <li<?php if($key == 0) { ?> class="first"<?php } ?>><a href="<?php echo zen_href_link('index', zen_get_path($value['id']));?>"><?php echo $value['text'] ?></a></li> <?php if($key == $catcount - 1) echo "</div>"; } ?> <li class="last"><a href="#">All Categories &gt;&gt;</a></li> </ul> </div> <div class="clear"></div>
gpl-2.0
aldencolerain/mc2kernel
toolchain/share/doc/arm-marvell-linux-gnueabi/html/libc/Porting-to-Unix.html
5091
<html lang="en"> <head> <title>Porting to Unix - The GNU C Library</title> <meta http-equiv="Content-Type" content="text/html"> <meta name="description" content="The GNU C Library"> <meta name="generator" content="makeinfo 4.13"> <link title="Top" rel="start" href="index.html#Top"> <link rel="up" href="Porting.html#Porting" title="Porting"> <link rel="prev" href="Hierarchy-Conventions.html#Hierarchy-Conventions" title="Hierarchy Conventions"> <link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage"> <!-- This file documents the GNU C library. This is Edition 0.13, last updated 2011-07-19, of `The GNU C Library Reference Manual', for version 2.14 (EGLIBC). Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2001, 2002, 2003, 2007, 2008, 2010, 2011 Free Software Foundation, Inc. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with the Invariant Sections being ``Free Software Needs Free Documentation'' and ``GNU Lesser General Public License'', the Front-Cover texts being ``A GNU Manual'', and with the Back-Cover Texts as in (a) below. A copy of the license is included in the section entitled "GNU Free Documentation License". (a) The FSF's Back-Cover Text is: ``You have the freedom to copy and modify this GNU manual. Buying copies from the FSF supports it in developing GNU and promoting software freedom.''--> <meta http-equiv="Content-Style-Type" content="text/css"> <style type="text/css"><!-- pre.display { font-family:inherit } pre.format { font-family:inherit } pre.smalldisplay { font-family:inherit; font-size:smaller } pre.smallformat { font-family:inherit; font-size:smaller } pre.smallexample { font-size:smaller } pre.smalllisp { font-size:smaller } span.sc { font-variant:small-caps } span.roman { font-family:serif; font-weight:normal; } span.sansserif { font-family:sans-serif; font-weight:normal; } --></style> </head> <body> <div class="node"> <a name="Porting-to-Unix"></a> <p> Previous:&nbsp;<a rel="previous" accesskey="p" href="Hierarchy-Conventions.html#Hierarchy-Conventions">Hierarchy Conventions</a>, Up:&nbsp;<a rel="up" accesskey="u" href="Porting.html#Porting">Porting</a> <hr> </div> <h4 class="appendixsubsec">D.2.2 Porting the GNU C Library to Unix Systems</h4> <p>Most Unix systems are fundamentally very similar. There are variations between different machines, and variations in what facilities are provided by the kernel. But the interface to the operating system facilities is, for the most part, pretty uniform and simple. <p>The code for Unix systems is in the directory <samp><span class="file">unix</span></samp>, at the top level of the <samp><span class="file">sysdeps</span></samp> hierarchy. This directory contains subdirectories (and subdirectory trees) for various Unix variants. <p>The functions which are system calls in most Unix systems are implemented in assembly code, which is generated automatically from specifications in files named <samp><span class="file">syscalls.list</span></samp>. There are several such files, one in <samp><span class="file">sysdeps/unix</span></samp> and others in its subdirectories. Some special system calls are implemented in files that are named with a suffix of &lsquo;<samp><span class="samp">.S</span></samp>&rsquo;; for example, <samp><span class="file">_exit.S</span></samp>. Files ending in &lsquo;<samp><span class="samp">.S</span></samp>&rsquo; are run through the C preprocessor before being fed to the assembler. <p>These files all use a set of macros that should be defined in <samp><span class="file">sysdep.h</span></samp>. The <samp><span class="file">sysdep.h</span></samp> file in <samp><span class="file">sysdeps/unix</span></samp> partially defines them; a <samp><span class="file">sysdep.h</span></samp> file in another directory must finish defining them for the particular machine and operating system variant. See <samp><span class="file">sysdeps/unix/sysdep.h</span></samp> and the machine-specific <samp><span class="file">sysdep.h</span></samp> implementations to see what these macros are and what they should do. <p>The system-specific makefile for the <samp><span class="file">unix</span></samp> directory (<samp><span class="file">sysdeps/unix/Makefile</span></samp>) gives rules to generate several files from the Unix system you are building the library on (which is assumed to be the target system you are building the library <em>for</em>). All the generated files are put in the directory where the object files are kept; they should not affect the source tree itself. The files generated are <samp><span class="file">ioctls.h</span></samp>, <samp><span class="file">errnos.h</span></samp>, <samp><span class="file">sys/param.h</span></samp>, and <samp><span class="file">errlist.c</span></samp> (for the <samp><span class="file">stdio</span></samp> section of the library). </body></html>
gpl-2.0
zrafa/linuxkernel
linux-2.6.17.new/include/linux/syscalls.h
26418
/* * syscalls.h - Linux syscall interfaces (non-arch-specific) * * Copyright (c) 2004 Randy Dunlap * Copyright (c) 2004 Open Source Development Labs * * This file is released under the GPLv2. * See the file COPYING for more details. */ #ifndef _LINUX_SYSCALLS_H #define _LINUX_SYSCALLS_H struct epoll_event; struct iattr; struct inode; struct iocb; struct io_event; struct iovec; struct itimerspec; struct itimerval; struct kexec_segment; struct linux_dirent; struct linux_dirent64; struct list_head; struct msgbuf; struct msghdr; struct msqid_ds; struct new_utsname; struct nfsctl_arg; struct __old_kernel_stat; struct pollfd; struct rlimit; struct rusage; struct sched_param; struct semaphore; struct sembuf; struct shmid_ds; struct sockaddr; struct stat; struct stat64; struct statfs; struct statfs64; struct __sysctl_args; struct sysinfo; struct timespec; struct timeval; struct timex; struct timezone; struct tms; struct utimbuf; struct mq_attr; struct compat_stat; struct compat_timeval; struct robust_list_head; #include <linux/config.h> #include <linux/types.h> #include <linux/aio_abi.h> #include <linux/capability.h> #include <linux/list.h> #include <linux/sem.h> #include <asm/semaphore.h> #include <asm/siginfo.h> #include <asm/signal.h> #include <linux/quota.h> #include <linux/key.h> asmlinkage long sys_time(time_t __user *tloc); asmlinkage long sys_stime(time_t __user *tptr); asmlinkage long sys_gettimeofday(struct timeval __user *tv, struct timezone __user *tz); asmlinkage long sys_settimeofday(struct timeval __user *tv, struct timezone __user *tz); asmlinkage long sys_adjtimex(struct timex __user *txc_p); asmlinkage long sys_times(struct tms __user *tbuf); asmlinkage long sys_gettid(void); asmlinkage long sys_nanosleep(struct timespec __user *rqtp, struct timespec __user *rmtp); asmlinkage unsigned long sys_alarm(unsigned int seconds); asmlinkage long sys_getpid(void); asmlinkage long sys_getppid(void); asmlinkage long sys_getuid(void); asmlinkage long sys_geteuid(void); asmlinkage long sys_getgid(void); asmlinkage long sys_getegid(void); asmlinkage long sys_getresuid(uid_t __user *ruid, uid_t __user *euid, uid_t __user *suid); asmlinkage long sys_getresgid(gid_t __user *rgid, gid_t __user *egid, gid_t __user *sgid); asmlinkage long sys_getpgid(pid_t pid); asmlinkage long sys_getpgrp(void); asmlinkage long sys_getsid(pid_t pid); asmlinkage long sys_getgroups(int gidsetsize, gid_t __user *grouplist); asmlinkage long sys_setregid(gid_t rgid, gid_t egid); asmlinkage long sys_setgid(gid_t gid); asmlinkage long sys_setreuid(uid_t ruid, uid_t euid); asmlinkage long sys_setuid(uid_t uid); asmlinkage long sys_setresuid(uid_t ruid, uid_t euid, uid_t suid); asmlinkage long sys_setresgid(gid_t rgid, gid_t egid, gid_t sgid); asmlinkage long sys_setfsuid(uid_t uid); asmlinkage long sys_setfsgid(gid_t gid); asmlinkage long sys_setpgid(pid_t pid, pid_t pgid); asmlinkage long sys_setsid(void); asmlinkage long sys_setgroups(int gidsetsize, gid_t __user *grouplist); asmlinkage long sys_acct(const char __user *name); asmlinkage long sys_capget(cap_user_header_t header, cap_user_data_t dataptr); asmlinkage long sys_capset(cap_user_header_t header, const cap_user_data_t data); asmlinkage long sys_personality(u_long personality); asmlinkage long sys_sigpending(old_sigset_t __user *set); asmlinkage long sys_sigprocmask(int how, old_sigset_t __user *set, old_sigset_t __user *oset); asmlinkage long sys_getitimer(int which, struct itimerval __user *value); asmlinkage long sys_setitimer(int which, struct itimerval __user *value, struct itimerval __user *ovalue); asmlinkage long sys_timer_create(clockid_t which_clock, struct sigevent __user *timer_event_spec, timer_t __user * created_timer_id); asmlinkage long sys_timer_gettime(timer_t timer_id, struct itimerspec __user *setting); asmlinkage long sys_timer_getoverrun(timer_t timer_id); asmlinkage long sys_timer_settime(timer_t timer_id, int flags, const struct itimerspec __user *new_setting, struct itimerspec __user *old_setting); asmlinkage long sys_timer_delete(timer_t timer_id); asmlinkage long sys_clock_settime(clockid_t which_clock, const struct timespec __user *tp); asmlinkage long sys_clock_gettime(clockid_t which_clock, struct timespec __user *tp); asmlinkage long sys_clock_getres(clockid_t which_clock, struct timespec __user *tp); asmlinkage long sys_clock_nanosleep(clockid_t which_clock, int flags, const struct timespec __user *rqtp, struct timespec __user *rmtp); asmlinkage long sys_nice(int increment); asmlinkage long sys_sched_setscheduler(pid_t pid, int policy, struct sched_param __user *param); asmlinkage long sys_sched_setparam(pid_t pid, struct sched_param __user *param); asmlinkage long sys_sched_getscheduler(pid_t pid); asmlinkage long sys_sched_getparam(pid_t pid, struct sched_param __user *param); asmlinkage long sys_sched_setaffinity(pid_t pid, unsigned int len, unsigned long __user *user_mask_ptr); asmlinkage long sys_sched_getaffinity(pid_t pid, unsigned int len, unsigned long __user *user_mask_ptr); asmlinkage long sys_sched_yield(void); asmlinkage long sys_sched_get_priority_max(int policy); asmlinkage long sys_sched_get_priority_min(int policy); asmlinkage long sys_sched_rr_get_interval(pid_t pid, struct timespec __user *interval); asmlinkage long sys_setpriority(int which, int who, int niceval); asmlinkage long sys_getpriority(int which, int who); asmlinkage long sys_shutdown(int, int); asmlinkage long sys_reboot(int magic1, int magic2, unsigned int cmd, void __user *arg); asmlinkage long sys_restart_syscall(void); asmlinkage long sys_kexec_load(unsigned long entry, unsigned long nr_segments, struct kexec_segment __user *segments, unsigned long flags); asmlinkage long sys_exit(int error_code); asmlinkage void sys_exit_group(int error_code); asmlinkage long sys_wait4(pid_t pid, int __user *stat_addr, int options, struct rusage __user *ru); asmlinkage long sys_waitid(int which, pid_t pid, struct siginfo __user *infop, int options, struct rusage __user *ru); asmlinkage long sys_waitpid(pid_t pid, int __user *stat_addr, int options); asmlinkage long sys_set_tid_address(int __user *tidptr); asmlinkage long sys_futex(u32 __user *uaddr, int op, int val, struct timespec __user *utime, u32 __user *uaddr2, int val3); asmlinkage long sys_init_module(void __user *umod, unsigned long len, const char __user *uargs); asmlinkage long sys_delete_module(const char __user *name_user, unsigned int flags); asmlinkage long sys_rt_sigprocmask(int how, sigset_t __user *set, sigset_t __user *oset, size_t sigsetsize); asmlinkage long sys_rt_sigpending(sigset_t __user *set, size_t sigsetsize); asmlinkage long sys_rt_sigtimedwait(const sigset_t __user *uthese, siginfo_t __user *uinfo, const struct timespec __user *uts, size_t sigsetsize); asmlinkage long sys_kill(int pid, int sig); asmlinkage long sys_tgkill(int tgid, int pid, int sig); asmlinkage long sys_tkill(int pid, int sig); asmlinkage long sys_rt_sigqueueinfo(int pid, int sig, siginfo_t __user *uinfo); asmlinkage long sys_sgetmask(void); asmlinkage long sys_ssetmask(int newmask); asmlinkage unsigned long sys_signal(int sig, __sighandler_t handler); asmlinkage long sys_pause(void); asmlinkage long sys_sync(void); asmlinkage long sys_fsync(unsigned int fd); asmlinkage long sys_fdatasync(unsigned int fd); asmlinkage long sys_bdflush(int func, long data); asmlinkage long sys_mount(char __user *dev_name, char __user *dir_name, char __user *type, unsigned long flags, void __user *data); asmlinkage long sys_umount(char __user *name, int flags); asmlinkage long sys_oldumount(char __user *name); asmlinkage long sys_truncate(const char __user *path, unsigned long length); asmlinkage long sys_ftruncate(unsigned int fd, unsigned long length); asmlinkage long sys_stat(char __user *filename, struct __old_kernel_stat __user *statbuf); asmlinkage long sys_statfs(const char __user * path, struct statfs __user *buf); asmlinkage long sys_statfs64(const char __user *path, size_t sz, struct statfs64 __user *buf); asmlinkage long sys_fstatfs(unsigned int fd, struct statfs __user *buf); asmlinkage long sys_fstatfs64(unsigned int fd, size_t sz, struct statfs64 __user *buf); asmlinkage long sys_lstat(char __user *filename, struct __old_kernel_stat __user *statbuf); asmlinkage long sys_fstat(unsigned int fd, struct __old_kernel_stat __user *statbuf); asmlinkage long sys_newstat(char __user *filename, struct stat __user *statbuf); asmlinkage long sys_newlstat(char __user *filename, struct stat __user *statbuf); asmlinkage long sys_newfstat(unsigned int fd, struct stat __user *statbuf); asmlinkage long sys_ustat(unsigned dev, struct ustat __user *ubuf); #if BITS_PER_LONG == 32 asmlinkage long sys_stat64(char __user *filename, struct stat64 __user *statbuf); asmlinkage long sys_fstat64(unsigned long fd, struct stat64 __user *statbuf); asmlinkage long sys_lstat64(char __user *filename, struct stat64 __user *statbuf); asmlinkage long sys_truncate64(const char __user *path, loff_t length); asmlinkage long sys_ftruncate64(unsigned int fd, loff_t length); #endif asmlinkage long sys_setxattr(char __user *path, char __user *name, void __user *value, size_t size, int flags); asmlinkage long sys_lsetxattr(char __user *path, char __user *name, void __user *value, size_t size, int flags); asmlinkage long sys_fsetxattr(int fd, char __user *name, void __user *value, size_t size, int flags); asmlinkage ssize_t sys_getxattr(char __user *path, char __user *name, void __user *value, size_t size); asmlinkage ssize_t sys_lgetxattr(char __user *path, char __user *name, void __user *value, size_t size); asmlinkage ssize_t sys_fgetxattr(int fd, char __user *name, void __user *value, size_t size); asmlinkage ssize_t sys_listxattr(char __user *path, char __user *list, size_t size); asmlinkage ssize_t sys_llistxattr(char __user *path, char __user *list, size_t size); asmlinkage ssize_t sys_flistxattr(int fd, char __user *list, size_t size); asmlinkage long sys_removexattr(char __user *path, char __user *name); asmlinkage long sys_lremovexattr(char __user *path, char __user *name); asmlinkage long sys_fremovexattr(int fd, char __user *name); asmlinkage unsigned long sys_brk(unsigned long brk); asmlinkage long sys_mprotect(unsigned long start, size_t len, unsigned long prot); asmlinkage unsigned long sys_mremap(unsigned long addr, unsigned long old_len, unsigned long new_len, unsigned long flags, unsigned long new_addr); asmlinkage long sys_remap_file_pages(unsigned long start, unsigned long size, unsigned long prot, unsigned long pgoff, unsigned long flags); asmlinkage long sys_msync(unsigned long start, size_t len, int flags); asmlinkage long sys_fadvise64(int fd, loff_t offset, size_t len, int advice); asmlinkage long sys_fadvise64_64(int fd, loff_t offset, loff_t len, int advice); asmlinkage long sys_munmap(unsigned long addr, size_t len); asmlinkage long sys_mlock(unsigned long start, size_t len); asmlinkage long sys_munlock(unsigned long start, size_t len); asmlinkage long sys_mlockall(int flags); asmlinkage long sys_munlockall(void); asmlinkage long sys_madvise(unsigned long start, size_t len, int behavior); asmlinkage long sys_mincore(unsigned long start, size_t len, unsigned char __user * vec); asmlinkage long sys_pivot_root(const char __user *new_root, const char __user *put_old); asmlinkage long sys_chroot(const char __user *filename); asmlinkage long sys_mknod(const char __user *filename, int mode, unsigned dev); asmlinkage long sys_link(const char __user *oldname, const char __user *newname); asmlinkage long sys_symlink(const char __user *old, const char __user *new); asmlinkage long sys_unlink(const char __user *pathname); asmlinkage long sys_rename(const char __user *oldname, const char __user *newname); asmlinkage long sys_chmod(const char __user *filename, mode_t mode); asmlinkage long sys_fchmod(unsigned int fd, mode_t mode); asmlinkage long sys_fcntl(unsigned int fd, unsigned int cmd, unsigned long arg); #if BITS_PER_LONG == 32 asmlinkage long sys_fcntl64(unsigned int fd, unsigned int cmd, unsigned long arg); #endif asmlinkage long sys_dup(unsigned int fildes); asmlinkage long sys_dup2(unsigned int oldfd, unsigned int newfd); asmlinkage long sys_ioperm(unsigned long from, unsigned long num, int on); asmlinkage long sys_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg); asmlinkage long sys_flock(unsigned int fd, unsigned int cmd); asmlinkage long sys_io_setup(unsigned nr_reqs, aio_context_t __user *ctx); asmlinkage long sys_io_destroy(aio_context_t ctx); asmlinkage long sys_io_getevents(aio_context_t ctx_id, long min_nr, long nr, struct io_event __user *events, struct timespec __user *timeout); asmlinkage long sys_io_submit(aio_context_t, long, struct iocb __user * __user *); asmlinkage long sys_io_cancel(aio_context_t ctx_id, struct iocb __user *iocb, struct io_event __user *result); asmlinkage ssize_t sys_sendfile(int out_fd, int in_fd, off_t __user *offset, size_t count); asmlinkage ssize_t sys_sendfile64(int out_fd, int in_fd, loff_t __user *offset, size_t count); asmlinkage long sys_readlink(const char __user *path, char __user *buf, int bufsiz); asmlinkage long sys_creat(const char __user *pathname, int mode); asmlinkage long sys_open(const char __user *filename, int flags, int mode); asmlinkage long sys_close(unsigned int fd); asmlinkage long sys_access(const char __user *filename, int mode); asmlinkage long sys_vhangup(void); asmlinkage long sys_chown(const char __user *filename, uid_t user, gid_t group); asmlinkage long sys_lchown(const char __user *filename, uid_t user, gid_t group); asmlinkage long sys_fchown(unsigned int fd, uid_t user, gid_t group); #ifdef CONFIG_UID16 asmlinkage long sys_chown16(const char __user *filename, old_uid_t user, old_gid_t group); asmlinkage long sys_lchown16(const char __user *filename, old_uid_t user, old_gid_t group); asmlinkage long sys_fchown16(unsigned int fd, old_uid_t user, old_gid_t group); asmlinkage long sys_setregid16(old_gid_t rgid, old_gid_t egid); asmlinkage long sys_setgid16(old_gid_t gid); asmlinkage long sys_setreuid16(old_uid_t ruid, old_uid_t euid); asmlinkage long sys_setuid16(old_uid_t uid); asmlinkage long sys_setresuid16(old_uid_t ruid, old_uid_t euid, old_uid_t suid); asmlinkage long sys_getresuid16(old_uid_t __user *ruid, old_uid_t __user *euid, old_uid_t __user *suid); asmlinkage long sys_setresgid16(old_gid_t rgid, old_gid_t egid, old_gid_t sgid); asmlinkage long sys_getresgid16(old_gid_t __user *rgid, old_gid_t __user *egid, old_gid_t __user *sgid); asmlinkage long sys_setfsuid16(old_uid_t uid); asmlinkage long sys_setfsgid16(old_gid_t gid); asmlinkage long sys_getgroups16(int gidsetsize, old_gid_t __user *grouplist); asmlinkage long sys_setgroups16(int gidsetsize, old_gid_t __user *grouplist); asmlinkage long sys_getuid16(void); asmlinkage long sys_geteuid16(void); asmlinkage long sys_getgid16(void); asmlinkage long sys_getegid16(void); #endif asmlinkage long sys_utime(char __user *filename, struct utimbuf __user *times); asmlinkage long sys_utimes(char __user *filename, struct timeval __user *utimes); asmlinkage off_t sys_lseek(unsigned int fd, off_t offset, unsigned int origin); asmlinkage long sys_llseek(unsigned int fd, unsigned long offset_high, unsigned long offset_low, loff_t __user *result, unsigned int origin); asmlinkage ssize_t sys_read(unsigned int fd, char __user *buf, size_t count); asmlinkage ssize_t sys_readahead(int fd, loff_t offset, size_t count); asmlinkage ssize_t sys_readv(unsigned long fd, const struct iovec __user *vec, unsigned long vlen); asmlinkage ssize_t sys_write(unsigned int fd, const char __user *buf, size_t count); asmlinkage ssize_t sys_writev(unsigned long fd, const struct iovec __user *vec, unsigned long vlen); asmlinkage ssize_t sys_pread64(unsigned int fd, char __user *buf, size_t count, loff_t pos); asmlinkage ssize_t sys_pwrite64(unsigned int fd, const char __user *buf, size_t count, loff_t pos); asmlinkage long sys_getcwd(char __user *buf, unsigned long size); asmlinkage long sys_mkdir(const char __user *pathname, int mode); asmlinkage long sys_chdir(const char __user *filename); asmlinkage long sys_fchdir(unsigned int fd); asmlinkage long sys_rmdir(const char __user *pathname); asmlinkage long sys_lookup_dcookie(u64 cookie64, char __user *buf, size_t len); asmlinkage long sys_quotactl(unsigned int cmd, const char __user *special, qid_t id, void __user *addr); asmlinkage long sys_getdents(unsigned int fd, struct linux_dirent __user *dirent, unsigned int count); asmlinkage long sys_getdents64(unsigned int fd, struct linux_dirent64 __user *dirent, unsigned int count); asmlinkage long sys_setsockopt(int fd, int level, int optname, char __user *optval, int optlen); asmlinkage long sys_getsockopt(int fd, int level, int optname, char __user *optval, int __user *optlen); asmlinkage long sys_bind(int, struct sockaddr __user *, int); asmlinkage long sys_connect(int, struct sockaddr __user *, int); asmlinkage long sys_accept(int, struct sockaddr __user *, int __user *); asmlinkage long sys_getsockname(int, struct sockaddr __user *, int __user *); asmlinkage long sys_getpeername(int, struct sockaddr __user *, int __user *); asmlinkage long sys_send(int, void __user *, size_t, unsigned); asmlinkage long sys_sendto(int, void __user *, size_t, unsigned, struct sockaddr __user *, int); asmlinkage long sys_sendmsg(int fd, struct msghdr __user *msg, unsigned flags); asmlinkage long sys_recv(int, void __user *, size_t, unsigned); asmlinkage long sys_recvfrom(int, void __user *, size_t, unsigned, struct sockaddr __user *, int __user *); asmlinkage long sys_recvmsg(int fd, struct msghdr __user *msg, unsigned flags); asmlinkage long sys_socket(int, int, int); asmlinkage long sys_socketpair(int, int, int, int __user *); asmlinkage long sys_socketcall(int call, unsigned long __user *args); asmlinkage long sys_listen(int, int); asmlinkage long sys_poll(struct pollfd __user *ufds, unsigned int nfds, long timeout); asmlinkage long sys_select(int n, fd_set __user *inp, fd_set __user *outp, fd_set __user *exp, struct timeval __user *tvp); asmlinkage long sys_epoll_create(int size); asmlinkage long sys_epoll_ctl(int epfd, int op, int fd, struct epoll_event __user *event); asmlinkage long sys_epoll_wait(int epfd, struct epoll_event __user *events, int maxevents, int timeout); asmlinkage long sys_gethostname(char __user *name, int len); asmlinkage long sys_sethostname(char __user *name, int len); asmlinkage long sys_setdomainname(char __user *name, int len); asmlinkage long sys_newuname(struct new_utsname __user *name); asmlinkage long sys_getrlimit(unsigned int resource, struct rlimit __user *rlim); #if defined(COMPAT_RLIM_OLD_INFINITY) || !(defined(CONFIG_IA64) || defined(CONFIG_V850)) asmlinkage long sys_old_getrlimit(unsigned int resource, struct rlimit __user *rlim); #endif asmlinkage long sys_setrlimit(unsigned int resource, struct rlimit __user *rlim); asmlinkage long sys_getrusage(int who, struct rusage __user *ru); asmlinkage long sys_umask(int mask); asmlinkage long sys_msgget(key_t key, int msgflg); asmlinkage long sys_msgsnd(int msqid, struct msgbuf __user *msgp, size_t msgsz, int msgflg); asmlinkage long sys_msgrcv(int msqid, struct msgbuf __user *msgp, size_t msgsz, long msgtyp, int msgflg); asmlinkage long sys_msgctl(int msqid, int cmd, struct msqid_ds __user *buf); asmlinkage long sys_semget(key_t key, int nsems, int semflg); asmlinkage long sys_semop(int semid, struct sembuf __user *sops, unsigned nsops); asmlinkage long sys_semctl(int semid, int semnum, int cmd, union semun arg); asmlinkage long sys_semtimedop(int semid, struct sembuf __user *sops, unsigned nsops, const struct timespec __user *timeout); asmlinkage long sys_shmat(int shmid, char __user *shmaddr, int shmflg); asmlinkage long sys_shmget(key_t key, size_t size, int flag); asmlinkage long sys_shmdt(char __user *shmaddr); asmlinkage long sys_shmctl(int shmid, int cmd, struct shmid_ds __user *buf); asmlinkage long sys_mq_open(const char __user *name, int oflag, mode_t mode, struct mq_attr __user *attr); asmlinkage long sys_mq_unlink(const char __user *name); asmlinkage long sys_mq_timedsend(mqd_t mqdes, const char __user *msg_ptr, size_t msg_len, unsigned int msg_prio, const struct timespec __user *abs_timeout); asmlinkage ssize_t sys_mq_timedreceive(mqd_t mqdes, char __user *msg_ptr, size_t msg_len, unsigned int __user *msg_prio, const struct timespec __user *abs_timeout); asmlinkage long sys_mq_notify(mqd_t mqdes, const struct sigevent __user *notification); asmlinkage long sys_mq_getsetattr(mqd_t mqdes, const struct mq_attr __user *mqstat, struct mq_attr __user *omqstat); asmlinkage long sys_pciconfig_iobase(long which, unsigned long bus, unsigned long devfn); asmlinkage long sys_pciconfig_read(unsigned long bus, unsigned long dfn, unsigned long off, unsigned long len, void __user *buf); asmlinkage long sys_pciconfig_write(unsigned long bus, unsigned long dfn, unsigned long off, unsigned long len, void __user *buf); asmlinkage long sys_prctl(int option, unsigned long arg2, unsigned long arg3, unsigned long arg4, unsigned long arg5); asmlinkage long sys_swapon(const char __user *specialfile, int swap_flags); asmlinkage long sys_swapoff(const char __user *specialfile); asmlinkage long sys_sysctl(struct __sysctl_args __user *args); asmlinkage long sys_sysinfo(struct sysinfo __user *info); asmlinkage long sys_sysfs(int option, unsigned long arg1, unsigned long arg2); asmlinkage long sys_nfsservctl(int cmd, struct nfsctl_arg __user *arg, void __user *res); asmlinkage long sys_syslog(int type, char __user *buf, int len); asmlinkage long sys_uselib(const char __user *library); asmlinkage long sys_ni_syscall(void); asmlinkage long sys_ptrace(long request, long pid, long addr, long data); asmlinkage long sys_add_key(const char __user *_type, const char __user *_description, const void __user *_payload, size_t plen, key_serial_t destringid); asmlinkage long sys_request_key(const char __user *_type, const char __user *_description, const char __user *_callout_info, key_serial_t destringid); asmlinkage long sys_keyctl(int cmd, unsigned long arg2, unsigned long arg3, unsigned long arg4, unsigned long arg5); asmlinkage long sys_ioprio_set(int which, int who, int ioprio); asmlinkage long sys_ioprio_get(int which, int who); asmlinkage long sys_set_mempolicy(int mode, unsigned long __user *nmask, unsigned long maxnode); asmlinkage long sys_migrate_pages(pid_t pid, unsigned long maxnode, const unsigned long __user *from, const unsigned long __user *to); asmlinkage long sys_mbind(unsigned long start, unsigned long len, unsigned long mode, unsigned long __user *nmask, unsigned long maxnode, unsigned flags); asmlinkage long sys_get_mempolicy(int __user *policy, unsigned long __user *nmask, unsigned long maxnode, unsigned long addr, unsigned long flags); asmlinkage long sys_inotify_init(void); asmlinkage long sys_inotify_add_watch(int fd, const char __user *path, u32 mask); asmlinkage long sys_inotify_rm_watch(int fd, u32 wd); asmlinkage long sys_spu_run(int fd, __u32 __user *unpc, __u32 __user *ustatus); asmlinkage long sys_spu_create(const char __user *name, unsigned int flags, mode_t mode); asmlinkage long sys_mknodat(int dfd, const char __user * filename, int mode, unsigned dev); asmlinkage long sys_mkdirat(int dfd, const char __user * pathname, int mode); asmlinkage long sys_unlinkat(int dfd, const char __user * pathname, int flag); asmlinkage long sys_symlinkat(const char __user * oldname, int newdfd, const char __user * newname); asmlinkage long sys_linkat(int olddfd, const char __user *oldname, int newdfd, const char __user *newname, int flags); asmlinkage long sys_renameat(int olddfd, const char __user * oldname, int newdfd, const char __user * newname); asmlinkage long sys_futimesat(int dfd, char __user *filename, struct timeval __user *utimes); asmlinkage long sys_faccessat(int dfd, const char __user *filename, int mode); asmlinkage long sys_fchmodat(int dfd, const char __user * filename, mode_t mode); asmlinkage long sys_fchownat(int dfd, const char __user *filename, uid_t user, gid_t group, int flag); asmlinkage long sys_openat(int dfd, const char __user *filename, int flags, int mode); asmlinkage long sys_newfstatat(int dfd, char __user *filename, struct stat __user *statbuf, int flag); asmlinkage long sys_fstatat64(int dfd, char __user *filename, struct stat64 __user *statbuf, int flag); asmlinkage long sys_readlinkat(int dfd, const char __user *path, char __user *buf, int bufsiz); asmlinkage long compat_sys_futimesat(unsigned int dfd, char __user *filename, struct compat_timeval __user *t); asmlinkage long compat_sys_newfstatat(unsigned int dfd, char __user * filename, struct compat_stat __user *statbuf, int flag); asmlinkage long compat_sys_openat(unsigned int dfd, const char __user *filename, int flags, int mode); asmlinkage long sys_unshare(unsigned long unshare_flags); asmlinkage long sys_splice(int fd_in, loff_t __user *off_in, int fd_out, loff_t __user *off_out, size_t len, unsigned int flags); asmlinkage long sys_vmsplice(int fd, const struct iovec __user *iov, unsigned long nr_segs, unsigned int flags); asmlinkage long sys_tee(int fdin, int fdout, size_t len, unsigned int flags); asmlinkage long sys_sync_file_range(int fd, loff_t offset, loff_t nbytes, unsigned int flags); asmlinkage long sys_get_robust_list(int pid, struct robust_list_head __user **head_ptr, size_t __user *len_ptr); asmlinkage long sys_set_robust_list(struct robust_list_head __user *head, size_t len); #endif
gpl-2.0
volter/zabbix-d3
include/classes/class.cconfigfile.php
5446
<?php /* ** Zabbix ** Copyright (C) 2001-2013 Zabbix SIA ** ** 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. **/ class CConfigFile { const CONFIG_NOT_FOUND = 1; const CONFIG_ERROR = 2; const CONFIG_FILE_PATH = '/conf/zabbix.conf.php'; public $configFile = null; public $config = array(); public $error = ''; private static function exception($error, $code = self::CONFIG_ERROR) { throw new ConfigFileException($error, $code); } public function __construct($file = null) { $this->setDefaults(); if (!is_null($file)) { $this->setFile($file); } } public function setFile($file) { $this->configFile = $file; } public function load() { if (!file_exists($this->configFile)) { self::exception('Config file does not exist.', self::CONFIG_NOT_FOUND); } if (!is_readable($this->configFile)) { self::exception('Permission denied.'); } ob_start(); include($this->configFile); ob_end_clean(); // config file in plain php is bad $dbs = array(ZBX_DB_MYSQL, ZBX_DB_POSTGRESQL, ZBX_DB_ORACLE, ZBX_DB_DB2, ZBX_DB_SQLITE3); if (!isset($DB['TYPE'])) { self::exception('DB type is not set.'); } elseif (isset($DB['TYPE']) && !in_array($DB['TYPE'], $dbs)) { self::exception('DB type has wrong value. Possible values '.implode(', ', $dbs)); } elseif (!isset($DB['DATABASE'])) { self::exception('DB database is not set.'); } $this->setDefaults(); if (isset($DB['TYPE'])) { $this->config['DB']['TYPE'] = $DB['TYPE']; } if (isset($DB['DATABASE'])) { $this->config['DB']['DATABASE'] = $DB['DATABASE']; } if (isset($DB['SERVER'])) { $this->config['DB']['SERVER'] = $DB['SERVER']; } if (isset($DB['PORT'])) { $this->config['DB']['PORT'] = $DB['PORT']; } if (isset($DB['USER'])) { $this->config['DB']['USER'] = $DB['USER']; } if (isset($DB['PASSWORD'])) { $this->config['DB']['PASSWORD'] = $DB['PASSWORD']; } if (isset($DB['SCHEMA'])) { $this->config['DB']['SCHEMA'] = $DB['SCHEMA']; } if (isset($ZBX_SERVER)) { $this->config['ZBX_SERVER'] = $ZBX_SERVER; } if (isset($ZBX_SERVER_PORT)) { $this->config['ZBX_SERVER_PORT'] = $ZBX_SERVER_PORT; } if (isset($ZBX_SERVER_NAME)) { $this->config['ZBX_SERVER_NAME'] = $ZBX_SERVER_NAME; } $this->makeGlobal(); return $this->config; } public function makeGlobal() { global $DB, $ZBX_SERVER, $ZBX_SERVER_PORT, $ZBX_SERVER_NAME; $DB = $this->config['DB']; $ZBX_SERVER = $this->config['ZBX_SERVER']; $ZBX_SERVER_PORT = $this->config['ZBX_SERVER_PORT']; $ZBX_SERVER_NAME = $this->config['ZBX_SERVER_NAME']; } public function save() { try { if (is_null($this->configFile)) { self::exception('Cannot save, config file is not set.'); } $this->check(); if (!file_put_contents($this->configFile, $this->getString())) { self::exception('Cannot write config file.'); } } catch (Exception $e) { $this->error = $e->getMessage(); return false; } } public function getString() { return '<?php // Zabbix GUI configuration file global $DB; $DB[\'TYPE\'] = \''.addcslashes($this->config['DB']['TYPE'], "'\\").'\'; $DB[\'SERVER\'] = \''.addcslashes($this->config['DB']['SERVER'], "'\\").'\'; $DB[\'PORT\'] = \''.addcslashes($this->config['DB']['PORT'], "'\\").'\'; $DB[\'DATABASE\'] = \''.addcslashes($this->config['DB']['DATABASE'], "'\\").'\'; $DB[\'USER\'] = \''.addcslashes($this->config['DB']['USER'], "'\\").'\'; $DB[\'PASSWORD\'] = \''.addcslashes($this->config['DB']['PASSWORD'], "'\\").'\'; // SCHEMA is relevant only for IBM_DB2 database $DB[\'SCHEMA\'] = \''.addcslashes($this->config['DB']['SCHEMA'], "'\\").'\'; $ZBX_SERVER = \''.addcslashes($this->config['ZBX_SERVER'], "'\\").'\'; $ZBX_SERVER_PORT = \''.addcslashes($this->config['ZBX_SERVER_PORT'], "'\\").'\'; $ZBX_SERVER_NAME = \''.addcslashes($this->config['ZBX_SERVER_NAME'], "'\\").'\'; $IMAGE_FORMAT_DEFAULT = IMAGE_FORMAT_PNG; ?> '; } protected function setDefaults() { $this->config['DB'] = array( 'TYPE' => null, 'SERVER' => 'localhost', 'PORT' => '0', 'DATABASE' => null, 'USER' => '', 'PASSWORD' => '', 'SCHEMA' => '' ); $this->config['ZBX_SERVER'] = 'localhost'; $this->config['ZBX_SERVER_PORT'] = '10051'; $this->config['ZBX_SERVER_NAME'] = ''; } protected function check() { $dbs = array(ZBX_DB_MYSQL, ZBX_DB_POSTGRESQL, ZBX_DB_ORACLE, ZBX_DB_DB2, ZBX_DB_SQLITE3); if (!isset($this->config['DB']['TYPE'])) { self::exception('DB type is not set.'); } elseif (!in_array($this->config['DB']['TYPE'], $dbs)) { self::exception('DB type has wrong value. Possible values '.implode(', ', $dbs)); } elseif (!isset($this->config['DB']['DATABASE'])) { self::exception('DB database is not set.'); } } }
gpl-2.0
dtsd/zte_blade_s6_lollipop_kernel
drivers/input/touchscreen/gtxxx_v22/gt9xx_firmware.h
460424
/* Copyright Statement: *This firmware are protected under relevant copyright laws,this information contained *herein is confidential and proprietary to Goodix. * *GOODIX (C) 2013. All rights reserved. * *WARNING:The GTP_COMPATIBLE_MODE part of this file was generated by the specialized tools, *please do not modify it manually! * */ #ifndef _GT9XX_FIRMWARE_H_ #define _GT9XX_FIRMWARE_H_ /* *[HW INFO]00900600 *[PID]9157 *[VID]1070 *[GENERATED]2015/02/3 9157 new firmware for glove mode and gesture mode */ #if GTP_HEADER_FW_UPDATE unsigned char gtp_default_FW[] = { 0x00,0x01,0x60,0x00,0x39,0x31,0x35,0x37,0x00,0x00,0x00,0x00,0x10,0x70,0x80,0x00,0x55,0x40,0xBD,0xDA, 0xFD,0x24,0x34,0xDF,0x44,0x40,0x43,0xB7,0x0F,0xEB,0x08,0xB4,0x27,0x41,0x8C,0x90,0x08,0xAF,0x22,0xB7, 0xED,0x5E,0xF9,0x74,0x1D,0x67,0x01,0x08,0x84,0x13,0x72,0xFC,0x81,0xD9,0x39,0x25,0xC8,0xE2,0xB1,0xCF, 0xB9,0xD1,0x09,0x1D,0xC9,0xB3,0xE9,0x55,0x24,0xA8,0x23,0xB6,0x6D,0x4B,0xB4,0x71,0x70,0x78,0x08,0x04, 0x04,0xD6,0x94,0x83,0xD8,0x8D,0x82,0xA7,0xAB,0x57,0x02,0x84,0x56,0xC4,0x36,0x56,0x60,0x81,0x92,0xAE, 0x7B,0xE6,0xE2,0x00,0xC3,0x5A,0x88,0x35,0x8C,0xC1,0x18,0xB1,0x10,0xF7,0xC9,0x41,0xBB,0xC2,0x08,0x94, 0x04,0x54,0x87,0x24,0x2D,0xC6,0x89,0xC8,0x41,0x0F,0xB7,0x53,0xF0,0xD0,0x67,0xC4,0xA2,0x43,0x88,0xD4, 0x5C,0xCA,0xD2,0xAC,0x2E,0x48,0x86,0xEE,0x9A,0x22,0x96,0xDE,0xC8,0x68,0xCD,0xDA,0xB9,0x73,0x9A,0x18, 0x09,0x49,0x92,0x04,0x1F,0x03,0x3A,0x11,0xA8,0x2F,0xC2,0x38,0xD1,0x5D,0x8D,0x7A,0x2B,0x6F,0x65,0x6F, 0xF9,0x7F,0xEB,0x21,0x17,0xC5,0x09,0xCB,0x31,0x03,0xC9,0x0D,0x89,0x0B,0x0C,0x9F,0x9A,0x8D,0xAF,0xD3, 0x8A,0xAB,0x5B,0xA1,0xAC,0x90,0xC0,0x5B,0x34,0xEF,0x94,0xFD,0xF1,0x48,0x33,0x28,0x06,0x57,0x83,0xFE, 0xA5,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A5,0x19,0x61,0x0D,0x88, 0xDD,0x32,0xDF,0xD4,0xAF,0x20,0x7D,0xB9,0x4E,0x40,0xBF,0x8C,0x7B,0xB7,0xA0,0xAE,0xD9,0x0C,0x9F,0x5B, 0xCB,0x73,0xCD,0x88,0x22,0x30,0x80,0x8E,0x09,0x7C,0x29,0x27,0xDE,0x8B,0x55,0xD0,0xD2,0xE4,0x60,0x84, 0x48,0x1D,0x25,0x78,0x13,0xD5,0xFF,0x32,0x27,0xE3,0xC6,0xB6,0x1D,0x95,0x31,0xD5,0x01,0x87,0x40,0x12, 0x0B,0xAD,0xB4,0xE2,0xD7,0x84,0x97,0xCD,0xD0,0x14,0xB7,0xB4,0xCB,0x27,0x1F,0x31,0x12,0xC3,0xB2,0xCE, 0x02,0x61,0xA6,0xFD,0xE1,0xCE,0x35,0x1D,0x30,0x82,0xE8,0x76,0x67,0x1A,0x33,0xE2,0x85,0x9E,0x4A,0x70, 0x74,0x81,0x18,0xD0,0xC2,0x6B,0x47,0x48,0x77,0x0C,0x03,0x44,0x79,0x24,0xC6,0x47,0x86,0xB9,0x74,0x1D, 0x8C,0x13,0x09,0xD9,0xC4,0xAF,0x92,0x63,0x05,0x95,0xB1,0x1A,0xF6,0xE3,0xA9,0xCA,0xC7,0x58,0x3F,0x70, 0x34,0x15,0x39,0x5C,0xE3,0xE6,0x81,0x06,0x10,0xBF,0x0F,0x25,0xBB,0x72,0x8D,0x99,0x35,0x65,0x95,0x95, 0xFE,0xF3,0x52,0xBE,0xD9,0x59,0x19,0xB2,0x4B,0x6E,0xC0,0x8E,0x57,0x14,0xA5,0x93,0xF8,0x79,0x3C,0x31, 0x69,0xB6,0x2B,0x61,0x75,0x1F,0x64,0xE3,0xB2,0x57,0x33,0x51,0x34,0x1E,0x11,0x5F,0x6A,0xE8,0xE2,0xE5, 0xE5,0xCF,0x06,0x0D,0xA1,0x38,0x6A,0x03,0x0A,0x69,0x5A,0xE6,0xC4,0x05,0x05,0xAE,0x43,0x18,0x4D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 0xD1,0x01,0x56,0x51,0x16,0x76,0x6A,0x4C,0xC3,0x26,0x04,0xCF,0x2F,0x1C,0x86,0xCC,0x2D,0xB1,0x2E,0xEE, 0x47,0xBA,0x31,0x6C,0xFE,0xF7,0x50,0xD7,0x0F,0xD0,0x55,0x4C,0x3F,0xB5,0xBE,0x5A,0x94,0x09,0x3E,0x62, 0x52,0x9F,0x8F,0xEB,0x29,0xB4,0x98,0x88,0x43,0x08,0x4D,0x10,0x12,0x0F,0xCF,0x6A,0x78,0x8F,0xFB,0xA8, 0x8A,0x94,0x2D,0x19,0x9F,0xFD,0x2B,0xE4,0xC9,0x64,0x1F,0xC7,0x1E,0xE4,0x15,0xE6,0x82,0x1C,0x84,0x44, 0x1A,0x8D,0xF7,0x60,0x4C,0xED,0x6F,0x57,0x2C,0x0E,0x10,0x01,0xE8,0xD0,0x48,0x45,0x2E,0x63,0x89,0xD6, 0x72,0x20,0xDF,0x52,0x72,0x81,0x33,0x63,0xE9,0xD3,0x96,0x34,0xC0,0xDD,0x12,0xC7,0x21,0x59,0x76,0x65, 0xE2,0x79,0x71,0xD7,0xA1,0x00,0xC6,0x17,0x11,0xA3,0xE1,0x39,0x66,0x58,0x21,0x25,0x76,0xEE,0x7A,0xA6, 0x04,0xBE,0x13,0xBE,0xAB,0x85,0xE6,0x3E,0xBF,0x4B,0x2F,0x8C,0x70,0x29,0x60,0xB2,0x82,0x61,0x37,0x13, 0xEA,0xD3,0x98,0xA8,0x80,0x43,0x18,0xA8,0xF6,0x27,0x61,0x65,0x03,0x0B,0xF9,0x4A,0x31,0xA3,0x08,0x70, 0x67,0xB9,0x7D,0xFA,0xD1,0xD6,0x61,0x57,0x02,0x09,0x36,0x2F,0x59,0x28,0xEF,0x2B,0x3E,0x48,0xD0,0x75, 0xE0,0x64,0x12,0x1C,0x8A,0x2C,0xB8,0xE4,0x0A,0x67,0x04,0xCE,0x58,0x07,0xCB,0xA5,0xFF,0x73,0x1A,0x9D, 0x41,0xFC,0x75,0x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0x81,0x94,0xA0,0x9C,0x3B,0x44,0x5E,0xF0,0xEE,0x9B,0x4B,0x43, 0x7F,0x82,0x5F,0x09,0x3D,0x17,0xF7,0xCF,0xFA,0xF4,0x0F,0x54,0x40,0xD7,0x37,0x69,0xF9,0x21,0x4F,0xB1, 0xEB,0x67,0x03,0x1A,0x42,0xD5,0x65,0xF6,0x6F,0xC7,0xD6,0x53,0xE5,0x76,0xE2,0xB4,0x4C,0xBC,0xDE,0x31, 0xD7,0x6D,0x08,0xED,0xCF,0x99,0xFE,0x6B,0xDF,0x76,0xB5,0x38,0x29,0xE7,0x90,0xA3,0x93,0xB0,0x46,0x7F, 0xD0,0x60,0x11,0x1C,0xFD,0xD5,0x19,0x6B,0xD1,0x9E,0x27,0x2A,0x67,0xB3,0xC9,0x6E,0x59,0xBB,0x00,0x0D, 0x5F,0x74,0xA8,0x2A,0x85,0xEA,0x91,0x3F,0x56,0x4E,0x69,0x99,0x10,0x42,0x5B,0x9D,0xBC,0x10,0x78,0x62, 0x41,0x80,0x86,0x80,0x0F,0xAC,0xBC,0x04,0x3F,0x50,0xF2,0x2C,0x51,0x70,0x58,0xE3,0x7D,0xAE,0x20,0x00, 0x22,0xB3,0x66,0x36,0xA0,0xC2,0xD2,0xEE,0xD6,0x49,0x79,0x25,0x61,0xAD,0xBB,0xED,0xB8,0x6D,0xD6,0xD1, 0xF2,0xB3,0x51,0xCC,0xA0,0x20,0x9A,0xE2,0xF9,0xD8,0x71,0x53,0xDF,0x38,0x39,0xC2,0x4D,0x4E,0x09,0x72, 0x38,0x9A,0x40,0x40,0x02,0x04,0xC0,0x44,0x12,0x24,0x50,0x60,0x42,0x44,0xD0,0x64,0x52,0x64,0x48,0x50, 0x03,0x05,0xC8,0x54,0x13,0x25,0x58,0x70,0x43,0x45,0xD8,0x74,0x53,0x65,0x41,0x41,0x82,0x06,0xC1,0x45, 0x92,0x26,0x51,0x61,0xC2,0x46,0xD1,0x65,0xD2,0x66,0x49,0x51,0x83,0x07,0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0xBC,0x1A,0xDC,0x3E,0x86,0x5F,0x09,0xAD,0xC2,0x27,0x05,0xC7,0xBE,0x2D,0xFB,0xCD,0xBA,0xAF,0x45, 0x7E,0xD2,0x15,0x79,0x92,0x9F,0x74,0x1D,0xBB,0xFB,0x07,0xCB,0xF4,0xD2,0xC7,0xDD,0xBC,0xEB,0x1B,0x39, 0xF6,0x48,0xEE,0x6B,0xDF,0xB3,0xDE,0x4C,0xEB,0xFB,0x1E,0x4D,0x78,0x9C,0x86,0x50,0x0D,0x4B,0xD6,0x0E, 0xE0,0xB2,0x6D,0x88,0x90,0x9F,0x6E,0xB8,0xD5,0x06,0x44,0x3A,0x32,0xDE,0x77,0x4D,0xBB,0xD4,0xA8,0xEE, 0xE8,0xDE,0x8A,0x6B,0xBE,0xD4,0x10,0xA8,0x45,0x37,0x8F,0x9B,0xCE,0x32,0x7F,0xC3,0x13,0xCF,0xF9,0x7B, 0xFF,0x6E,0xDF,0x15,0x87,0x07,0x80,0x04,0x10,0x20,0x10,0x20,0x40,0x40,0x90,0x24,0x50,0x60,0xE0,0xB2, 0xA5,0x86,0x88,0x14,0x11,0x21,0x18,0x30,0x41,0x41,0x98,0x34,0x51,0x61,0xA9,0xA3,0x5F,0x5D,0x81,0x05, 0x90,0x22,0x11,0x21,0xC0,0x42,0x91,0x25,0xD0,0x62,0xE9,0x11,0x04,0x04,0x89,0x15,0x91,0x23,0x19,0x31, 0xC1,0x43,0x99,0x35,0xD1,0x63,0x40,0x40,0x02,0x04,0xC0,0x44,0x12,0x24,0x50,0x60,0x42,0x44,0xD0,0x64, 0x52,0x64,0x48,0x50,0x03,0x05,0xC8,0x54,0x13,0x25,0x58,0x70,0x43,0x45,0xD8,0x74,0x53,0x65,0x41,0x41, 0x82,0x06,0xC1,0x45,0x92,0x26,0x51,0x61,0xC2,0x46,0xD1,0x65,0xD2,0x66,0x49,0x51,0x83,0x07,0xC9,0x55, 0x93,0x27,0x59,0x71,0xC3,0x47,0xD9,0x75,0xD3,0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xCB,0xB9,0x10,0x10,0xEE,0x5B,0xC4,0xAC,0x65,0xEF,0xCE,0x9F,0x60,0x8C, 0x8B,0x79,0x02,0x40,0x1A,0x1B,0xD9,0x2B,0xB5,0x21,0x3D,0x05,0x23,0xE2,0x90,0x24,0x50,0x60,0x40,0xC9, 0x32,0xA5,0xE8,0xD8,0xC8,0x25,0x8B,0x24,0x36,0x93,0xE0,0xB6,0x54,0xDA,0xA3,0x77,0x42,0x62,0xB9,0x98, 0x79,0x72,0x69,0x53,0x37,0x41,0xF1,0x85,0x82,0xEF,0xB3,0x56,0x43,0x83,0xCF,0x66,0x85,0x25,0x39,0x35, 0x46,0x22,0xC3,0x30,0x72,0x98,0x73,0xA6,0x26,0x89,0xC0,0x44,0x12,0x24,0x50,0x60,0x42,0x44,0xD0,0x64, 0x52,0x64,0x73,0x1A,0x13,0x01,0xC8,0x54,0x13,0x25,0x58,0x70,0x43,0x45,0xD8,0x74,0x53,0x65,0xBA,0xBB, 0x7B,0x1A,0xC1,0x45,0x92,0x26,0x51,0x61,0xC2,0x46,0xD1,0x65,0xD2,0x66,0xC9,0x16,0x8D,0x19,0xC9,0x55, 0x93,0x27,0x59,0x71,0xC3,0x47,0xD9,0x75,0xD3,0x67,0x4A,0xD9,0x3B,0x8C,0x4B,0xD3,0x96,0x87,0x72,0x2A, 0xB5,0x45,0x12,0xA8,0x07,0xA9,0x02,0x1C,0x89,0x71,0x26,0x8E,0x01,0x23,0x0D,0xC3,0xA8,0x2A,0x4A,0xD4, 0xDD,0xA9,0xB9,0x4E,0x4A,0x8A,0xCB,0xE5,0x68,0x67,0x59,0xD4,0x33,0x97,0x4C,0x29,0xDC,0x90,0x6B,0x4F, 0x95,0x06,0x8A,0x6E,0x8D,0x2D,0x60,0x7E,0x4B,0x17,0xCB,0x84,0xD1,0xAB,0x39,0xE8,0xAB,0xAC,0xC2,0x4C, 0x1A,0x2C,0x52,0x68,0x4A,0x4C,0xD2,0x6C,0x5A,0x6C,0xC9,0x40,0x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F,0x90,0xC0,0x5B,0xF2,0x0B,0x2F,0xCE,0xD1,0xBE,0xE3,0x24,0x0D,0xD0,0x36,0x70,0xDD,0x0A,0xA9,0xDF, 0x09,0x01,0x57,0xA7,0x8C,0xFF,0x62,0xB9,0x48,0xAF,0x00,0xF3,0x4A,0x00,0x6F,0xFF,0xFF,0xFF,0x60,0x4E, 0xD1,0x42,0xC8,0x10,0x73,0x00,0x25,0x53,0x63,0x49,0x24,0x5B,0xF3,0x0C,0x08,0x10,0x83,0x5D,0xD1,0xC9, 0xB4,0xA0,0xE7,0x42,0xBA,0xBA,0x98,0x74,0x15,0x7A,0x40,0x2A,0x80,0x02,0x79,0x0D,0x71,0x6D,0x94,0xD2, 0x94,0x39,0xF3,0xDB,0x25,0xE4,0x61,0x95,0x93,0x36,0x89,0xEA,0x83,0x6E,0xE6,0xB5,0x8E,0x86,0x3D,0xC5, 0x2E,0x2C,0x20,0x42,0x5B,0x09,0x05,0xB2,0x72,0x22,0xFB,0x1A,0x97,0xB8,0x28,0x06,0x61,0x60,0x8F,0xF0, 0xA2,0x75,0xE1,0xD0,0x0D,0x29,0x5A,0x83,0x35,0xE5,0x47,0x92,0x60,0x61,0x85,0xC4,0x8C,0x8C,0xBF,0x43, 0x73,0xA5,0x6E,0x3E,0x2B,0xC5,0x2B,0xA3,0x92,0x24,0x10,0x88,0x85,0x75,0x73,0xD1,0x89,0x69,0x0B,0x73, 0x59,0xCA,0x63,0xB2,0x19,0xAE,0x02,0x08,0x08,0x08,0xD0,0xF3,0xEF,0x46,0x2C,0xD9,0x0A,0xB7,0x02,0xAE, 0xCD,0x14,0x72,0x3F,0xAA,0xAD,0xCB,0x7A,0xCF,0x21,0x52,0x20,0x81,0x62,0x22,0x2C,0xFE,0x28,0x39,0x8B, 0x1D,0x56,0xDA,0x1A,0x3D,0xDC,0x2D,0xC8,0x45,0xBC,0xAB,0xC5,0x54,0x25,0xD3,0x00,0x60,0xBB,0x8D,0x63, 0x3E,0x3B,0x98,0xD4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8B,0xCC,0x26,0x80,0x86,0xDA,0xE2,0xD8,0xE5,0xF9,0x45,0x8B,0xAF,0xBA,0x93,0xB7,0xE8, 0xCC,0x77,0x89,0x82,0x5B,0xEA,0x24,0x61,0x2E,0xDF,0x89,0xB6,0x9E,0x1F,0x01,0x96,0xEB,0xD2,0xE7,0x3B, 0xEF,0xC2,0xA6,0x22,0x82,0x87,0xB6,0xC2,0x42,0xBF,0xC9,0xC7,0x95,0x41,0xB5,0xAF,0x97,0x94,0xF3,0x5E, 0x40,0x6A,0xEA,0x98,0x33,0xFF,0x68,0x98,0xA7,0x74,0xA6,0xFB,0x00,0xFD,0x65,0xB4,0x09,0x6B,0xE7,0xF7, 0xD5,0x27,0xA4,0x11,0x07,0xF7,0x68,0x0F,0xF6,0x23,0x36,0xCF,0x52,0xD0,0x31,0x7B,0x3F,0xFE,0x07,0xC9, 0x10,0xB3,0x6F,0x02,0xF7,0xBE,0x5E,0x28,0xFF,0x1B,0x05,0x76,0xFB,0x69,0xF7,0xE0,0x44,0x61,0x00,0xDA, 0xAD,0xC1,0x19,0xE9,0x0B,0x43,0x77,0x90,0x6D,0xF4,0x86,0x1E,0x9D,0x50,0x63,0xC4,0x53,0x90,0x5E,0x77, 0x7F,0x79,0xBF,0x30,0xF8,0xEB,0xD0,0x53,0x67,0x00,0xA9,0xDA,0x25,0x01,0x06,0x78,0x5D,0xE2,0xE9,0x46, 0x27,0x2E,0xBA,0x04,0x20,0xBC,0xE7,0x33,0xB2,0x14,0x39,0x90,0xA1,0x18,0x9B,0x6B,0xEE,0xA7,0xAF,0x82, 0x66,0x42,0xAE,0xD1,0x70,0x89,0x41,0x74,0xA0,0x60,0xB6,0xF1,0x15,0xC6,0x20,0x54,0xDE,0xB8,0x89,0x87, 0x61,0xE8,0xFE,0x13,0xC1,0xF6,0x01,0xB5,0xE1,0xAB,0x59,0xD6,0xA1,0x66,0x54,0x22,0x33,0xC0,0x13,0x4C, 0x20,0x01,0x35,0x95,0x89,0x65,0xF4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D4, 0x77,0x19,0x37,0x76,0x9D,0xCC,0x1D,0xD6,0x9A,0x13,0x70,0x26,0x10,0x79,0xFD,0x63,0x5F,0x53,0xD1,0x01, 0xDE,0xBE,0x85,0x5E,0x45,0xCD,0xAF,0x56,0xC1,0x3F,0x8D,0x92,0x0F,0x08,0xF5,0xE6,0x97,0x8C,0xC7,0x03, 0x6E,0x55,0xD8,0xD3,0x91,0xE5,0x64,0x2A,0x41,0x10,0x8E,0x3F,0x91,0x76,0xE0,0x93,0x12,0x5B,0x6F,0xC2, 0x9F,0x16,0x68,0x9D,0x82,0x1C,0x64,0xC8,0xB1,0x31,0xC8,0xF5,0x7D,0x51,0x21,0xBA,0x86,0x29,0x24,0x81, 0xE6,0x10,0xDE,0x93,0x34,0x16,0xD4,0xE3,0x12,0x55,0x2E,0xC2,0x53,0x14,0xCF,0x53,0x32,0x4D,0x56,0xB7, 0x91,0xDA,0x59,0xFC,0xF9,0x6A,0x6A,0xD8,0x0E,0x14,0x99,0xEE,0x0B,0x58,0xDD,0x8C,0x07,0x9B,0x3F,0x58, 0xC9,0xAE,0x6E,0x44,0x57,0xF3,0xB6,0x66,0x39,0x54,0xA6,0x60,0xCF,0x7B,0xFD,0x9C,0x5A,0x2B,0x26,0xAC, 0xDE,0x34,0x27,0x15,0x9B,0x68,0xD9,0xC9,0x86,0xC1,0x77,0xE3,0xC7,0x57,0x93,0x4B,0xCB,0x7A,0x56,0xF0, 0xAF,0x91,0x90,0x8D,0x34,0x20,0xA7,0x43,0xF9,0x16,0x73,0x2F,0x68,0x73,0x7E,0x28,0x62,0xE7,0x01,0x30, 0xBA,0xC7,0x0E,0x73,0x55,0xDC,0xB0,0x8E,0x8D,0x81,0x1E,0x58,0x67,0x1E,0x14,0x92,0xC6,0x34,0xE7,0xBF, 0xA1,0xF6,0xA5,0x87,0x13,0x70,0xC7,0x4D,0x81,0x11,0x49,0x34,0x00,0x7C,0xEA,0x6D,0xE3,0x93,0xC0,0x16, 0x0F,0xED,0xCE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C8,0x32,0x86,0x90,0x50,0x91,0xB2,0x0F,0xC0,0xD2,0x8E,0xE8,0xA2,0x04,0x42,0x49,0xE5,0xD1,0x05, 0x37,0xE0,0x67,0xB4,0x6F,0xED,0x9B,0xCD,0x9B,0xC6,0x75,0x19,0x25,0xBF,0x4C,0x34,0x0F,0x33,0x87,0xC4, 0x7A,0x06,0x8B,0x1E,0x66,0xA2,0x31,0x08,0xF3,0xC0,0x04,0x05,0xD9,0xE6,0x0A,0xC2,0x7C,0x8B,0xC3,0xE0, 0xFE,0x73,0x4B,0x26,0x03,0x57,0xB1,0x56,0xE5,0xBF,0x94,0x7A,0x18,0xD3,0xC4,0x56,0x79,0x1C,0xAC,0xC0, 0x8E,0xB2,0x60,0x50,0x46,0x41,0x62,0xE5,0x53,0x82,0x9B,0x36,0xB2,0x71,0x99,0xDD,0x26,0xB2,0x95,0xB7, 0x15,0xE9,0x67,0xC0,0xA6,0x41,0xFB,0x71,0xA5,0x1E,0x43,0x03,0xD6,0x45,0x05,0x05,0xF1,0x13,0x64,0x24, 0x02,0x39,0xE0,0xDA,0x16,0x64,0x74,0xD3,0x52,0x6B,0x4F,0x18,0xDA,0xF9,0x3C,0xF7,0x23,0xEE,0xB6,0x29, 0x94,0xF7,0x42,0x03,0x0C,0xDA,0x1D,0xB6,0x33,0x29,0x3F,0xF3,0x15,0xE9,0x60,0x45,0x36,0xBE,0xCE,0x52, 0xDE,0x49,0x0A,0x20,0x68,0x2B,0xEB,0x3A,0xE3,0xAA,0xEC,0xD7,0x37,0x67,0xFD,0xC1,0x9F,0x28,0x44,0xA9, 0x2A,0x8A,0x1C,0x62,0x51,0xD7,0x74,0x68,0xD5,0xFB,0xCE,0xA2,0xCB,0x03,0x8C,0x46,0x28,0xB7,0x2F,0xFC, 0x1E,0xA0,0x94,0x2F,0x13,0x16,0x74,0x54,0x96,0x9B,0x5C,0xC8,0x82,0x97,0x7E,0x06,0x09,0x65,0xB1,0x3F, 0x57,0x39,0x86,0x56,0x1E,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0xF0,0x72,0x15,0xA1,0xE0,0x52,0x85,0x85,0xB0,0x32,0x05,0x81,0xA0,0x12,0x9C,0xB4, 0x71,0x71,0x1C,0xB0,0x61,0x51,0x8C,0x94,0x31,0x31,0x0C,0x90,0x21,0x11,0x94,0xA4,0x70,0x70,0x14,0xA0, 0x60,0x50,0x84,0x84,0x30,0x30,0x04,0x80,0x20,0x10,0x1B,0x60,0x88,0x94,0x5B,0x79,0xCB,0x4F,0xCB,0x5D, 0x9B,0x2F,0x4B,0x59,0x8B,0x0F,0xEE,0xE4,0x23,0x8A,0x53,0x69,0xCA,0x4E,0xC3,0x4D,0x9A,0x2E,0x43,0x49, 0x8A,0x0E,0xDB,0xA7,0x97,0x34,0x5A,0x78,0x4B,0x4D,0xCA,0x5C,0x1B,0x2D,0x4A,0x58,0x0B,0x0D,0x3A,0xF1, 0x52,0xF6,0x52,0x68,0x4A,0x4C,0xC2,0x4C,0x1A,0x2C,0x42,0x48,0x0A,0x0C,0x9B,0x3D,0xD9,0x6B,0x1B,0x39, 0xC9,0x4B,0x8B,0x1D,0x99,0x2B,0x0B,0x19,0x89,0x0B,0x93,0x2D,0xD8,0x6A,0x13,0x29,0xC8,0x4A,0x83,0x0D, 0x98,0x2A,0x03,0x09,0x88,0x0A,0x9A,0x3C,0x59,0x69,0x1A,0x38,0x49,0x49,0x8A,0x1C,0x19,0x29,0x0A,0x18, 0x09,0x09,0x92,0x2C,0x58,0x68,0x12,0x28,0x48,0x48,0x82,0x0C,0x18,0x28,0x02,0x08,0x08,0x08,0x1E,0x75, 0x08,0x9E,0x59,0x71,0xC3,0x47,0xC9,0x55,0x93,0x27,0x49,0x51,0x83,0x07,0x56,0x18,0x2C,0xC1,0x51,0x61, 0xC2,0x46,0xC1,0x45,0x92,0x26,0x41,0x41,0x82,0x06,0x2F,0xC6,0xCF,0xFA,0x58,0x70,0x43,0x45,0xC8,0x54, 0x13,0x25,0x48,0x50,0x03,0x05,0x15,0x79,0x89,0x9D,0x50,0x60,0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DA,0x7C,0x5B,0x6D,0x5A,0x78,0x4B,0x4D,0xCA,0x5C,0x1B,0x2D,0x4A,0x58, 0x0B,0x0D,0xD2,0x6C,0x5A,0x6C,0x52,0x68,0x4A,0x4C,0xC2,0x4C,0x1A,0x2C,0x42,0x48,0x0A,0x0C,0x9B,0x3D, 0xD9,0x6B,0x1B,0x39,0xC9,0x4B,0x8B,0x1D,0x99,0x2B,0x0B,0x19,0x89,0x0B,0x93,0x2D,0xD8,0x6A,0x13,0x29, 0xC8,0x4A,0x83,0x0D,0x98,0x2A,0x03,0x09,0x88,0x0A,0x9A,0x3C,0x59,0x69,0x1A,0x38,0x49,0x49,0x8A,0x1C, 0x19,0x29,0x0A,0x18,0x09,0x09,0x92,0x2C,0x58,0x68,0x12,0x28,0x48,0x48,0x82,0x0C,0x18,0x28,0x02,0x08, 0x08,0x08,0xD9,0x75,0xD3,0x67,0x59,0x71,0xC3,0x47,0xC9,0x55,0x93,0x27,0x49,0x51,0x83,0x07,0xD1,0x65, 0xD2,0x66,0x51,0x61,0xC2,0x46,0xC1,0x45,0x92,0x26,0x41,0x41,0x82,0x06,0xD8,0x74,0x53,0x65,0x58,0x70, 0x43,0x45,0xC8,0x54,0x13,0x25,0x48,0x50,0x03,0x05,0xD0,0x64,0x52,0x64,0x50,0x60,0x42,0x44,0xC0,0x44, 0x12,0x24,0x40,0x40,0x02,0x04,0x99,0x35,0xD1,0x63,0x19,0x31,0xC1,0x43,0x89,0x15,0x91,0x23,0x09,0x11, 0x81,0x03,0x91,0x25,0xD0,0x62,0x11,0x21,0xC0,0x42,0x81,0x05,0x90,0x22,0x01,0x01,0x80,0x02,0x98,0x34, 0x51,0x61,0x18,0x30,0x41,0x41,0x88,0x14,0x11,0x21,0x08,0x10,0x01,0x01,0x90,0x24,0x50,0x60,0x10,0x20, 0x40,0x40,0x80,0x04,0x10,0x20,0x00,0x00,0x03,0xAE,0x80,0x05,0x76,0x8D,0xDE,0x85,0xB1,0x8B,0x52,0x92, 0x14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25,0x19,0x4D,0xDD,0xBE,0x24,0x8A,0x4A,0xD2,0xBC,0xE6,0xCE, 0x3E,0xBC,0xF2,0x08,0xEC,0xD4,0xF6,0xEE,0x7E,0xFC,0x56,0x29,0x77,0x39,0xEE,0xDE,0x3F,0xBD,0x1E,0xBA, 0xC2,0x20,0xFE,0xFE,0x7F,0xFD,0xCB,0x49,0xAF,0xCB,0xE7,0xCF,0xBE,0xBE,0xFE,0x99,0x4D,0x9F,0xF7,0xEF, 0xFE,0xFE,0x80,0xC7,0x29,0x6A,0xEF,0xDF,0xBF,0xBF,0x07,0xDF,0x6D,0xD7,0xFF,0xFF,0xFF,0xFF,0x00,0x00, 0x00,0x00,0x80,0x04,0x10,0x20,0x10,0x20,0x40,0x40,0x90,0x24,0x50,0x60,0x08,0x10,0x01,0x01,0x88,0x14, 0x11,0x21,0x18,0x30,0x41,0x41,0x98,0x34,0x51,0x61,0x01,0x01,0x80,0x02,0x81,0x05,0x90,0x22,0x11,0x21, 0xC0,0x42,0x91,0x25,0xD0,0x62,0x09,0x11,0x81,0x03,0x89,0x15,0x91,0x23,0x19,0x31,0xC1,0x43,0x99,0x35, 0xD1,0x63,0x40,0x40,0x02,0x04,0xC0,0x44,0x12,0x24,0x50,0x60,0x42,0x44,0xD0,0x64,0x52,0x64,0x48,0x50, 0x03,0x05,0xC8,0x54,0x13,0x25,0x58,0x70,0x43,0x45,0xD8,0x74,0x53,0x65,0x41,0x41,0x82,0x06,0xC1,0x45, 0x92,0x26,0x51,0x61,0xC2,0x46,0xD1,0x65,0xD2,0x66,0x49,0x51,0x83,0x07,0xC9,0x55,0x93,0x27,0x59,0x71, 0xC3,0x47,0xD9,0x75,0xD3,0x67,0x02,0x08,0x08,0x08,0x82,0x0C,0x18,0x28,0x12,0x28,0x48,0x48,0x92,0x2C, 0x58,0x68,0x0A,0x18,0x09,0x09,0x8A,0x1C,0x19,0x29,0x1A,0x38,0x49,0x49,0x9A,0x3C,0x59,0x69,0x03,0x09, 0x88,0x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,0x80,0x04,0x10,0x20,0x10,0x20,0x40,0x40,0x90,0x24,0x50,0x60,0x08,0x10, 0x01,0x01,0x88,0x14,0x11,0x21,0x18,0x30,0x41,0x41,0x98,0x34,0x51,0x61,0x01,0x01,0x80,0x02,0x81,0x05, 0x90,0x22,0x11,0x21,0xC0,0x42,0x91,0x25,0xD0,0x62,0x09,0x11,0x81,0x03,0x89,0x15,0x91,0x23,0x19,0x31, 0xC1,0x43,0x99,0x35,0xD1,0x63,0x40,0x40,0x02,0x04,0xC0,0x44,0x12,0x24,0x50,0x60,0x42,0x44,0xD0,0x64, 0x52,0x64,0x48,0x50,0x03,0x05,0xC8,0x54,0x13,0x25,0x58,0x70,0x43,0x45,0xD8,0x74,0x53,0x65,0x41,0x41, 0x82,0x06,0xC1,0x45,0x92,0x26,0x51,0x61,0xC2,0x46,0xD1,0x65,0xD2,0x66,0x49,0x51,0x83,0x07,0xC9,0x55, 0x93,0x27,0x59,0x71,0xC3,0x47,0xD9,0x75,0xD3,0x67,0x02,0x08,0x08,0x08,0x82,0x0C,0x18,0x28,0x12,0x28, 0x48,0x48,0x92,0x2C,0x58,0x68,0x0A,0x18,0x09,0x09,0x8A,0x1C,0x19,0x29,0x1A,0x38,0x49,0x49,0x9A,0x3C, 0x59,0x69,0x03,0x09,0x88,0x0A,0x83,0x0D,0x98,0x2A,0x13,0x29,0xC8,0x4A,0x93,0x2D,0xD8,0x6A,0x0B,0x19, 0x89,0x0B,0x8B,0x1D,0x99,0x2B,0x1B,0x39,0xC9,0x4B,0x9B,0x3D,0xD9,0x6B,0x42,0x48,0x0A,0x0C,0xC2,0x4C, 0x1A,0x2C,0x52,0x68,0x4A,0x4C,0xD2,0x6C,0x5A,0x6C,0x4A,0x58,0x0B,0x0D,0xCA,0x5C,0x1B,0x2D,0x5A,0x78, 0x4B,0x4D,0xDA,0x7C,0x5B,0x6D,0x43,0x49,0x8A,0x0E,0xC3,0x4D,0x9A,0x2E,0x53,0x69,0xCA,0x4E,0xD3,0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0xFD,0xF7,0xF7,0xF7,0x26,0x8A, 0x2C,0x98,0xA6,0x8E,0x3C,0xB8,0x36,0xAA,0x6C,0xD8,0xB6,0xAE,0x7C,0xF8,0x2E,0x9A,0x2D,0x99,0xAE,0x9E, 0x3D,0xB9,0x3E,0xBA,0x6D,0xD9,0xBE,0xBE,0x7D,0xF9,0x27,0x8B,0xAC,0x9A,0xA7,0x8F,0xBC,0xBA,0x37,0xAB, 0xEC,0xDA,0xB7,0xAF,0xFC,0xFA,0x2F,0x9B,0xAD,0x9B,0xAF,0x9F,0xBD,0xBB,0x3F,0xBB,0xED,0xDB,0xBF,0xBF, 0xFD,0xFB,0x66,0xCA,0x2E,0x9C,0xE6,0xCE,0x3E,0xBC,0x76,0xEA,0x6E,0xDC,0xF6,0xEE,0x7E,0xFC,0x6E,0xDA, 0x2F,0x9D,0xEE,0xDE,0x3F,0xBD,0x7E,0xFA,0x6F,0xDD,0xFE,0xFE,0x7F,0xFD,0x67,0xCB,0xAE,0x9E,0xE7,0xCF, 0xBE,0xBE,0x77,0xEB,0xEE,0xDE,0xF7,0xEF,0xFE,0xFE,0x6F,0xDB,0xAF,0x9F,0xEF,0xDF,0xBF,0xBF,0x7F,0xFB, 0xEF,0xDF,0xFF,0xFF,0x90,0xAF, }; #endif /* *[HW INFO]00900600 *[PID]910 *[VID]1010 *[GENERATED]2013/08/27 20:59:13 */ #if GTP_COMPATIBLE_MODE unsigned char gtp_default_FW_fl[] = {}; #endif #endif
gpl-2.0
metan-ucw/ltp
testcases/kernel/sched/process_stress/process.c
31061
/* * * Copyright (c) International Business Machines Corp., 2001 * * 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 <sys/mman.h> #include <ctype.h> #include <errno.h> #include <signal.h> #include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <unistd.h> #ifndef _LINUX /* LINUX INCLUDES */ #include <sys/mode.h> #include <sys/timers.h> #else #include <sys/stat.h> #include <sys/time.h> #include <sys/ipc.h> #endif #include <sys/msg.h> #include <sys/resource.h> #include <sys/select.h> #include <sys/sem.h> #include <sys/shm.h> #include <sys/types.h> #include <sys/wait.h> #include "lapi/semun.h" /* indexes into environment variable array */ #define ADBG 0 #define BNDX 1 #define DNDX 2 #define TNDX 3 #define MAXBVAL 70 #define MAXDVAL 11 #define SLOTDIR "./slot/" #ifdef _LINUX /* LINUX #defnes */ #ifndef TRUE #define TRUE 1 #endif #ifndef FALSE #define FALSE 0 #endif #endif #if defined _LINUX && defined DEBUG #define prtln() printf("At line number: %d\n", __LINE__); \ fflush(NULL) #define dprt(fmt, args...) printf(fmt, ## args) #else #define prtln() #define dprt(fmt, args...) #endif /* aliases for environment variable entries */ #define AUSDEBUG (*edat[ADBG].eval.vint) /* debug value */ #define BVAL (*edat[BNDX].eval.vint) /* # of childern per parent */ #define DVAL (*edat[DNDX].eval.vint) /* depth of process tree */ #define TVAL (*edat[TNDX].eval.vint) /* timer value */ #ifdef _LINUX typedef long mtyp_t; #endif /* structure of information stored about each process in shared memory */ typedef struct proc_info { #ifdef __64LDT__ pid_t pid; /* process id */ pid_t ppid; /* parent process id */ #else int pid; /* process id */ int ppid; /* parent process id */ #endif int msg; /* parent process id */ int err; /* error indicator */ int *list; /* pointer to list of parent and sibling slot locations */ } Pinfo; typedef struct messagebuf { mtyp_t mtyp; /* message type */ char mtext[80]; /* message text */ } Msgbuf; union semun semarg; /* structure of all environment variable used by program */ struct envstruct { char *env_name; union { char *chptr; int *vint; } eval; } envdata[] = { { "AUSDBG", { "0"}}, { "BVAL", { "3"}}, { "DVAL", { "2"}}, { "FORCE", { "0"}}, { "TVAL", { "1"}}, { "", { ""}} }; char *errfile; /* pointer to errfile name */ int msgid; /* message queue for leaf nodes */ int msgerr; /* message queue for errors */ int nodesum; /* total number of process to be created */ int sem_count; /* counter semaphore */ int sem_lock; /* locks access to counter semaphore */ int shmid; /* global shared memory id varible */ int procgrp; /* process group id */ timer_t timer; /* timer structure */ Pinfo *shmaddr; /* Start address of shared memory */ #ifndef _LINUX FILE *errfp = stderr; /* error file pointer, probably not necessary */ FILE *debugfp = stderr; /* debug file pointer, used if AUSDEBUG set */ #else #define errfp stderr #define debugfp stderr #endif struct envstruct *edat = envdata; /* pointer to environment data */ /* external function declarations */ extern int killpg(int procgrp, int sig); extern timer_t gettimerid(int Timer_type, int Notify_type); extern int reltimerid(timer_t timer); /* internal function declarations */ void cleanup(int sig, int code, struct sigcontext *scp); void nextofkin(int sig, int code, struct sigcontext *scp); void doit(void); void debugout(char *fmt, ...); int getenv_val(void); void messenger(void); void nextofkin(int sig, int code, struct sigcontext *scp); int notify(int slot); void parse_args(int argc, char *argv[]); void print_shm(void); Pinfo *put_proc_info(int tval); void rm_msgqueue(void); void rm_semseg(void); void rm_shmseg(void); int semoper(int slot, int smid, int opval); int send_message(int id, mtyp_t type, char *text); void set_timer(void); void set_signals(void *sighandler()); void setup_msgqueue(void); void setup_semaphores(void); void setup_shm(void); void severe(char *fmt, ...); Pinfo *shmgetseg(void); int spawn(int val); unsigned long sumit(int B, int D); /* * Prints out the data structures in shared memory. */ void print_shm(void) { extern int nodesum; /* total number of nodes created */ extern Pinfo *shmaddr; /* shared memory pointer */ extern int shmid; /* shared memory id */ Pinfo *pinfo; /* pointer to process info in shared memory */ int *listp; /* pointer to sibling info in shared memory */ int i, j; /* counters */ struct shmid_ds buf; if (shmctl(shmid, IPC_STAT, &buf)) return; for (pinfo = shmaddr, i = 0; i < nodesum; i++, pinfo++) { fprintf(errfp, "slot: %-4d pid: %-6d ppid: %-6d msg: %-2d err: %-2d lst:", i, pinfo->pid, pinfo->ppid, pinfo->msg, pinfo->err); for (j = 0, listp = pinfo->list; j < BVAL; j++, listp++) fprintf(errfp, " %d", *listp); fprintf(errfp, "\n"); } } /* * Generalized send routine. Sends a message on message queue. */ int send_message(int id, mtyp_t type, char *text) { int rc; Msgbuf sndbuf; strcpy(sndbuf.mtext, text); sndbuf.mtyp = type; while (TRUE) { rc = msgsnd(id, &sndbuf, sizeof(struct messagebuf), IPC_NOWAIT); if (rc == -1 && errno == EAGAIN) { debugout("msgqueue %d of mtyp %d not ready to send\n", msgid, type); errno = 0; } else return (rc); } } /* * Sends error message to initial parent (messenger).i */ void severe(char *fmt, ...) { va_list args; int rc; char mtext[80]; extern int msgerr; va_start(args, fmt); vsprintf(mtext, fmt, args); va_end(args); rc = send_message(msgerr, 2, mtext); if (rc == -1) { perror("cannot send message to msgerr"); exit(1); } } /* * if AUSDEBUG set will print information to file associated with slot number. */ void debugout(char *fmt, ...) { va_list args; if (AUSDEBUG) { va_start(args, fmt); vfprintf(debugfp, fmt, args); va_end(args); } } /* * Remove message queues. */ void rm_msgqueue(void) { extern int msgid; /* remove message queue id. */ if (msgctl(msgid, IPC_RMID, NULL) && errno != EINVAL) { fprintf(errfp, "msgctl failed msgid: errno %d\n", errno); perror("msgctl failed"); } /* remove message queue id. */ if (msgctl(msgerr, IPC_RMID, NULL) && errno != EINVAL) { fprintf(errfp, "msgctl failed msgerr: errno %d\n", errno); perror("msgctl failed"); } } /* * Remove shared memory segment. */ void rm_shmseg(void) { extern int shmid; /* Global shared memory id */ extern Pinfo *shmaddr; /* Global shared memory address */ /* remove shared memory id (and shared memory segment). */ if (shmctl(shmid, IPC_RMID, NULL) && errno != EINVAL) { fprintf(errfp, "shmctl failed: errno %d\n", errno); perror("shmctl failed"); } } /* * Remove semaphores. */ void rm_semseg(void) { extern int sem_lock; extern int sem_count; /* remove sem_lock semaphore id */ semarg.val = 0; /* to fix problem with 4th arg of semctl in 64 bits MARIOG */ if (semctl(sem_lock, 0, IPC_RMID, semarg.val) && errno != EINVAL) { fprintf(errfp, "semctl failed: errno %d\n", errno); perror("semctl failed"); } /* remove sem_count semaphore id. */ semarg.val = 0; /* to fix problem with 4th arg of semctl in 64 bits MARIOG */ if (semctl(sem_count, 0, IPC_RMID, semarg.val) && errno != EINVAL) { fprintf(errfp, "semctl failed: errno %d\n", errno); perror("semctl failed"); } } /* * Routine to clean up shared memory and return exit status (CHILD handler). */ void cleanup(int sig, int code, struct sigcontext *scp) { int rc; char mtext[80]; killpg(procgrp, SIGTERM); sprintf(mtext, "%d", sig); rc = send_message(msgerr, 3, mtext); if (rc == -1) { severe("msgsnd failed: %d msgid %d mtyp %d mtext %d\n", errno, msgerr, 3, mtext); } } /* * Routine to clean up shared memory and return exit status (PARENT handler). */ void nextofkin(int sig, int code, struct sigcontext *scp) { int rc; char mtext[80]; sprintf(mtext, "%d", sig); rc = send_message(msgerr, 3, mtext); if (rc == -1) { severe("msgsnd failed: %d msgid %d mtyp %d mtext %d\n", errno, msgerr, 3, mtext); } #ifndef _LINUX reltimerid(timer); #endif exit(1); } /* given breadth and depth of a tree, sum up total number of nodes created */ unsigned long sumit(int B, int D) { int i; int exp = 1; /* exponent of breadth */ unsigned long sum = 1; /* running sum of nodes */ for (sum = 1, i = 1; i <= D; i++) { exp = B * exp; sum += (int)exp; } return (sum); } /* Finds correct slot for current process in shared memory and stores * information about process in it. */ Pinfo *put_proc_info(int tval) { extern int nodesum; extern Pinfo *shmaddr; int sibslot = 0; /* sibling slot number */ int *listp; /* ptr to sibling info for current proc */ Pinfo *smp; /* ptr to current process data slot */ smp = shmaddr + tval; smp->pid = getpid(); smp->ppid = getppid(); smp->err = 0; smp->msg = 0; /* if very first process (slot 0), dont fill in info about siblings * and parent. Sibling and parent info is irrevelant in this case. */ if (!tval) return (smp); /* find parent of current process and store slot location */ smp->list = (int *)(Pinfo *) (shmaddr + nodesum) + (BVAL * tval); *smp->list = (tval - 1) / BVAL; listp = smp->list + 1; /* calculate and store sibling slot numbers of current process */ for (sibslot = *smp->list * BVAL + 1; listp < smp->list + BVAL; sibslot++) { if (tval != sibslot) *(listp++) = sibslot; } return (smp); } /* This routine sends a message from the current process to all of her * siblings and then waits to receive responses from them. A timer is * set so that if a message is lost or not received for some reason * we can exit gracefully. */ int notify(int slot) { extern int msgid; extern Pinfo *shmaddr; int i; int rc; int tslot; int *listp = (shmaddr + slot)->list; int cldcnt = 1; int ndx = 0; #ifdef __64LDT__ pid_t pid = 0; #else int pid = 0; #endif char mtext[80]; Msgbuf rcvbuf; for (i = 1, listp++; i < BVAL; i++, listp++) { sprintf(mtext, "%d %d %d", i, slot, (shmaddr + slot)->pid); rc = send_message(msgid, (mtyp_t) * listp, mtext); if (rc == -1) { severe ("notify: send_message Failed: %d msgid %d mtyp %d mtext %d\n", errno, msgid, *listp, mtext); exit(1); } } while (cldcnt < BVAL) { rc = msgrcv(msgid, &rcvbuf, sizeof(struct messagebuf), slot, 0); if (rc == -1) { switch (errno) { case EAGAIN: printf("msgqueue %d not ready to receive\n", msgid); fflush(stdout); errno = 0; break; case ENOMSG: printf("msgqueue %d no message\n", msgid); fflush(stdout); errno = 0; break; default: perror("msgrcv failed"); severe("msgrcv failed, errno: %d\n", errno); exit(1); } } else { sscanf(rcvbuf.mtext, "%d %d %d", &ndx, &tslot, &pid); if (*((shmaddr + tslot)->list + ndx) == slot && (shmaddr + tslot)->pid == pid) { debugout ("MSGRCV:slot: %d ndx: %d tslot: %d pid: %d\n", slot, ndx, tslot, pid); (shmaddr + slot)->msg++; cldcnt++; } else { (shmaddr + slot)->err--; debugout ("MSGRCV: slot: %d ndx: %d tslot: %d pid: %d\n", slot, ndx, tslot, pid); } } } return 0; } /* * Calculates semaphore number and sets semaphore (lock). */ int semoper(int slot, int smid, int opval) { int pslot; /* parent slot */ struct sembuf smop; /* semaphore operator */ pslot = (slot - 1) / BVAL; /* calculate parent node */ smop.sem_num = pslot; smop.sem_op = opval; smop.sem_flg = 0; semop(smid, &smop, 1); return (pslot); } /* * This is the meat and potatoes of the program. Spawn creates a tree * of processes with Dval depth and Bval breadth. Each parent will spawn * Bval children. Each child will store information about themselves * in shared memory. The leaf nodes will communicate the existence * of one another through message queues, once each leaf node has * received communication from all of her siblings she will reduce * the semaphore count and exit. Meanwhile all parents are waiting * to hear from their children through the use of semaphores. When * the semaphore count reaches zero then the parent knows all the * children have talked to one another. Locking of the connter semaphore * is provided by the use of another (binary) semaphore. */ int spawn(int val) { extern int sem_count; /* used to keep track of childern */ extern int sem_lock; /* used to lock access to sem_count semaphore */ int i; /* Breadth counter */ static int level = 0; /* level counter */ int lvlflg = 0; /* level toggle, limits parental spawning to one generation */ int pslot = 0; #ifdef __64LDT__ pid_t pid; /* pid of child process */ #else int pid; /* pid of child process */ #endif Pinfo *pinfo; /* pointer to process information in shared mem */ int semval; /* value of semaphore ( equals BVAL initially */ static int tval = 1; /* tree node value of child. */ char foo[1024]; level++; for (i = 1; i <= BVAL; i++) { tval = (val * BVAL) + i; if (!lvlflg) { pid = fork(); if (!pid) { /* CHILD */ if (AUSDEBUG) { sprintf(foo, "%sslot%d", SLOTDIR, tval); debugfp = fopen(foo, "a+"); } pinfo = put_proc_info(tval); debugout ("pid: %-6d ppid: %-6d lev: %-2d i: %-2d val: %-3d\n", pinfo->pid, pinfo->ppid, level, i, tval); set_timer(); /* set up signal handlers and initialize pgrp */ if (level < DVAL) { if (spawn(tval) == -1) { pslot = semoper(tval, sem_lock, -1); semarg.val = 0; /* to fix problem with 4th arg of semctl in 64 bits MARIOG */ semval = semctl(sem_count, pslot, GETVAL, semarg); semarg.val = --semval; /* to fix problem with 4th arg of semctl in 64 bits MARIOG */ semctl(sem_count, pslot, SETVAL, semarg); semarg.val = 1; /* to fix problem with 4th arg of semctl in 64 bits MARIOG */ semctl(sem_lock, pslot, SETVAL, semarg); } lvlflg++; } else { /* leaf node */ notify(tval); return (-1); } } #ifdef __64LDT__ else if (pid > 0 && i >= BVAL) { /* PARENT */ #else else if (pid > (pid_t) 0 && i >= BVAL) { /* PARENT */ #endif pslot = semoper(tval, sem_count, 0); pslot = semoper(pslot, sem_lock, -1); semarg.val = 0; /* to fix problem with 4th arg of semctl in 64 bits MARIOG */ semval = semctl(sem_count, pslot, GETVAL, semarg); semarg.val = --semval; /* to fix problem with 4th arg of semctl in 64 bits MARIOG */ semctl(sem_count, pslot, SETVAL, semarg); semarg.val = 1; /* to fix problem with 4th arg of semctl in 64 bits MARIOG */ semctl(sem_lock, pslot, SETVAL, semarg); (shmaddr + val)->msg++; } #ifdef __64LDT__ else if (pid < (pid_t) 0) { #else else if (pid < 0) { #endif perror("spawn: fork failed"); severe ("spawn: fork failed, exiting with errno %d\n", errno); exit(1); } else (shmaddr + val)->msg++; } } return (pslot); } /* * Allocate message queues. */ void setup_msgqueue(void) { extern int msgid; extern int msgerr; msgid = msgget(IPC_PRIVATE, IPC_CREAT | IPC_EXCL | S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP); if (msgid == -1) { perror("msgget msgid failed"); fprintf(stderr, " SEVERE : msgget msgid failed: errno %d\n", errno); exit(1); } msgerr = msgget(IPC_PRIVATE, IPC_CREAT | IPC_EXCL | S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP); if (msgerr == -1) { perror("msgget msgerr failed"); fprintf(stderr, " SEVERE : msgget msgerr failed: errno %d\n", errno); exit(1); } } /* * Set up and initialize all semaphores */ void setup_semaphores(void) { extern int sem_count; extern int sem_lock; int i; int rc; prtln(); sem_lock = semget(IPC_PRIVATE, nodesum - 1, IPC_CREAT | IPC_EXCL | S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP); dprt("nodesum = %d, sem_lock = %d\n", nodesum, sem_lock); prtln(); if (sem_lock == -1) { perror("semget failed for sem_lock"); fprintf(stderr, " SEVERE : semget failed for sem_lock, errno: %d\n", errno); rm_shmseg(); exit(1); } prtln(); sem_count = semget(IPC_PRIVATE, nodesum - 1, IPC_CREAT | IPC_EXCL | S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP); if (sem_count == -1) { perror("semget failed for sem_count"); fprintf(stderr, " SEVERE : semget failed for sem_count, errno: %d\n", errno); rm_shmseg(); exit(1); } prtln(); for (i = 0; i < (nodesum - 1); i++) { semarg.val = 1; /* to fix problem with 4th arg of semctl in 64 bits MARIOG */ rc = semctl(sem_lock, i, SETVAL, semarg); prtln(); if (rc == -1) { perror("semctl failed for sem_lock failed"); fprintf(stderr, " SEVERE : semctl failed for sem_lock, errno: %d\n", errno); rm_shmseg(); exit(1); } semarg.val = BVAL; /* to fix problem with 4th arg of semctl in 64 bits MARIOG */ rc = semctl(sem_count, i, SETVAL, semarg); prtln(); if (rc == -1) { perror("semctl failed for sem_lock failed"); fprintf(stderr, " SEVERE : semctl failed for sem_lock, errno: %d\n", errno); rm_shmseg(); exit(1); } } } /* * Set up and allocate shared memory. */ void setup_shm(void) { extern int nodesum; /* global shared memory id */ extern int shmid; /* global shared memory id */ extern Pinfo *shmaddr; int i, j; /* counters */ Pinfo *shmad = NULL; /* ptr to start of shared memory. */ Pinfo *pinfo = NULL; /* ptr to struct in shared memory. */ debugout("size = %d, size (in hex) = %#x nodes: %d\n", sizeof(Pinfo) * nodesum + (nodesum * BVAL * sizeof(int)), sizeof(Pinfo) * nodesum + (nodesum * BVAL * sizeof(int)), nodesum); /* Get shared memory id */ shmid = shmget(IPC_PRIVATE, sizeof(Pinfo) * nodesum + (nodesum * BVAL * sizeof(int)), IPC_CREAT | IPC_EXCL | S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP); if (shmid < 0) { perror("shmget failed"); fprintf(stderr, " SEVERE : shmget failed: errno %d\n", errno); exit(1); } /* allocate shared memory */ if ((shmad = shmat(shmid, (char *)shmad, 0)) == MAP_FAILED) { printf("SEVERE : shmat failed\n"); exit(1); } else { shmctl(shmid, IPC_RMID, NULL); } /* set all fields in shared memory to -1 */ for (pinfo = shmad, i = 0; i < nodesum; i++, pinfo++) { #ifdef __64LDT__ pinfo->pid = (pid_t) - 1; pinfo->ppid = (pid_t) - 1; #else pinfo->pid = -1; pinfo->ppid = -1; #endif pinfo->msg = -1; pinfo->err = -1; /* Changed 10/9/97 */ /* pinfo->list = (int *)((ulong)shmad + nodesum * sizeof(Pinfo) + (sizeof(int) * BVAL * i)); */ pinfo->list = (int *)((long)shmad + nodesum * sizeof(Pinfo) + (sizeof(int) * BVAL * i)); for (j = 0; j < BVAL; j++) *(pinfo->list + j) = -1; } shmaddr = shmad; } /* * Set up Signal handler and which signals to catch */ void set_signals(void *sighandler()) { int i; int rc; struct sigaction action; /* list of signals we want to catch */ static struct signalinfo { int signum; char *signame; } siginfo[] = { { SIGHUP, "SIGHUP"}, { SIGINT, "SIGINT"}, { SIGQUIT, "SIGQUIT"}, { SIGABRT, "SIGABRT"}, { SIGBUS, "SIGBUS"}, { SIGSEGV, "SIGSEGV"}, { SIGALRM, "SIGALRM"}, { SIGUSR1, "SIGUSR1"}, { SIGUSR2, "SIGUSR2"}, { -1, "ENDSIG"} }; char tmpstr[1024]; action.sa_handler = (void *)sighandler; #ifdef _LINUX sigfillset(&action.sa_mask); #else SIGINITSET(action.sa_mask); #endif action.sa_flags = 0; /* Set the signal handler up */ #ifdef _LINUX sigaddset(&action.sa_mask, SIGTERM); #else SIGADDSET(action.sa_mask, SIGTERM); #endif for (i = 0; siginfo[i].signum != -1; i++) { #ifdef _LINUX sigaddset(&action.sa_mask, siginfo[i].signum); #else SIGADDSET(action.sa_mask, siginfo[i].signum); #endif rc = sigaction(siginfo[i].signum, &action, NULL); if (rc == -1) { sprintf(tmpstr, "sigaction: %s\n", siginfo[i].signame); perror(tmpstr); fprintf(stderr, " SEVERE : Could not set %s signal action, errno=%d.", siginfo[i].signame, errno); exit(1); } } } /* * Get and set a timer for current process. */ #ifndef _LINUX void set_timer(void) { struct itimerstruc_t itimer, old_itimer; if ((timer = gettimerid(TIMERID_REAL, DELIVERY_SIGNALS)) == -1) { perror("gettimerid"); fprintf(stderr, " SEVERE : Could not get timer id, errno=%d.", errno); exit(1); } /* * Start the timer. */ itimer.it_interval.tv_nsec = 0; itimer.it_interval.tv_sec = 0; itimer.it_value.tv_nsec = 0; itimer.it_value.tv_sec = (time_t) (TVAL * 60.0); if (incinterval(timer, &itimer, &old_itimer) == -1) { perror("incinterval"); fprintf(stderr, " SEVERE : Could not set timer interval, errno=%d.", errno); (void)reltimerid(timer); exit(1); } } #else void set_timer(void) { struct itimerval itimer; memset(&itimer, 0, sizeof(struct itimerval)); /* * Start the timer. */ itimer.it_interval.tv_usec = 0; itimer.it_interval.tv_sec = 0; itimer.it_value.tv_usec = 0; itimer.it_value.tv_sec = (time_t) (TVAL * 60.0); if (setitimer(ITIMER_REAL, &itimer, NULL)) { perror("setitimer"); exit(1); } } #endif /* * parse_args * * Parse command line arguments. Any errors cause the program to exit * at this point. */ void parse_args(int argc, char *argv[]) { int i; int opt, errflag = 0; int dflag = 0, bflag = 0, fflag = 0, tflag = 0; extern int optind; extern char *optarg; /* DVAL: 0 1 2 3 4 5 6 7 8 9 10 11 */ int limits[] = { -1, -1, MAXBVAL, 17, 8, 5, 4, 3, 2, 2, 2, 2 }; while ((opt = getopt(argc, argv, "b:d:ft:D?")) != EOF) { switch (opt) { case 'b': if (bflag) errflag++; else { bflag++; errno = 0; BVAL = atoi(optarg); if (errno) { perror("atoi"); fprintf(stderr, " ERROR : atoi - errno %d.", errno); errflag++; } } break; case 'd': if (dflag) errflag++; else { dflag++; errno = 0; DVAL = atoi(optarg); if (errno) { perror("atoi"); fprintf(stderr, " ERROR : atoi - errno %d.", errno); errflag++; } } break; case 'f': fflag = 1; break; case 'D': AUSDEBUG = 1; break; case 't': if (tflag) errflag++; else { tflag++; errno = 0; TVAL = atoi(optarg); if (!TVAL || errno) { perror("atoi"); fprintf(stderr, " ERROR : atoi - errno %d.", errno); errflag++; } } break; case '?': errflag++; break; } } if (BVAL < 2) { errflag++; fprintf(stderr, "The value of b must be greater than 1\n"); } else if (DVAL < 2) { errflag++; fprintf(stderr, "The depth value must be greater than 1\n"); } else if (!fflag && (DVAL > MAXDVAL)) { /* || BVAL > limits[DVAL])) { */ fprintf(stderr, "\tExceeded process creation limits. \ \n\tParameters will generate %lu processes. \n\tThe preset limits are as \ follows:\n\t\tdepth\tbreadth\ttotal\n", sumit(BVAL, DVAL)); for (i = 2; i <= MAXDVAL; i++) fprintf(stderr, "\t\t %-3d\t %-5d\t%-5lu\n", i, limits[i], sumit(limits[i], i)); exit(1); } if (errflag) { fprintf(stderr, "usage: %s [-b number] [-d number] [-t number] \n", argv[0]); fprintf(stderr, "where:\n"); fprintf(stderr, "\t-b number\tnumber of children each parent will spawn ( > 1)\n"); fprintf(stderr, "\t-d number\tdepth of process tree ( > 1)\n"); fprintf(stderr, "\t-t\t\tset timeout value\n"); fprintf(stderr, " SEVERE : Command line parameter error.\n"); exit(1); } } /* * Initializes environment variables, using defaults if not set in env. */ int getenv_val(void) { char *c; /* character pointer */ struct envstruct *envd = envdata; /* pointer to environment data */ union { int *vint; char *chptr; } val; /* * Loop through envdata, set default first then set environment * variable value if present. */ for (; *envd->env_name != '\0'; envd++) { if ((val.chptr = getenv(envd->env_name)) == NULL) val.chptr = envd->eval.chptr; c = val.chptr; while (isdigit(*c)) c++; if (*c == '\0') { (envd->eval.vint) = malloc(sizeof(int)); *(envd->eval.vint) = atoi(val.chptr); } else { envd->eval.chptr = malloc(strlen(val.chptr) + 1); strcpy(envd->eval.chptr, val.chptr); } } return 0; } /* * Prints all errors coming from the children and terminates execution if * an error execption is received. In addition messenger() is sent the * process group id of the children so it can terminate all children. * This routine uses message queues to receive all communications. */ void messenger(void) { /* AKA Assassin */ Msgbuf rcvbuf; int discrim = 0; int rc; /* generic return code var */ int sig = -1; /* type of signal received */ extern int msgerr; /* message queue used to send error messages */ extern int procgrp; /* process group of children (used to kill them) */ /* * Infinite loop used to receive error messages from children and * to terminate process tree. */ while (TRUE) { rc = msgrcv(msgerr, &rcvbuf, sizeof(struct messagebuf), 0, 0); if (rc == -1) { switch (errno) { case EAGAIN: printf("msgqueue %d not ready to receive\n", msgid); fflush(stdout); errno = 0; break; case ENOMSG: printf("msgqueue %d no message\n", msgid); fflush(stdout); errno = 0; break; default: perror("msgrcv failed"); fprintf(stderr, " SEVERE : messenger - msgrcv failed, errno: %d\n", errno); errno = 0; break; } } else { switch ((int)rcvbuf.mtyp) { case 1: /* type 1: we received the process group id */ sscanf(rcvbuf.mtext, "%d", &procgrp); break; case 2: /* type 2: we received an error */ fprintf(stderr, " SEVERE : %s ", rcvbuf.mtext); /* rcvbuf.mtext type %s ou %d ??? */ break; case 3: /* type 3: somebody got a signal, now we terminate */ sscanf(rcvbuf.mtext, "%d", &sig); switch (sig) { case SIGALRM: /* a process is hung, we will terminate */ killpg(procgrp, sig); fprintf(errfp, "ALERT! ALERT! WE HAVE TIMED OUT\n"); fprintf(stderr, " SEVERE : SIGALRM: A process timed out, we failed\n"); shmaddr->err++; break; case SIGUSR1: /* Special: means everything went ok */ discrim = 1; break; default: /* somebody sent a signal, we will terminate */ killpg(procgrp, sig); fprintf(errfp, "We received signal %d\n", sig); fprintf(stderr, " SEVERE : signal %d received, A proc was killed\n", sig); break; } /* clean up and exit with status */ rm_msgqueue(); rm_semseg(); if (AUSDEBUG) print_shm(); prtln(); rm_shmseg(); prtln(); if (discrim) { prtln(); printf("Test exiting with SUCCESS\n"); exit(0); } exit(1); break; } } } } /* * This routine spawns off the first child (node 0) of the process tree. * This child set up the signal handler for all of the children and also * sets up a process group so that all children can be terminated easily. * The child then calls spawn which creates the process tree. After spawn * has returned the child contacts the parent and the parent exits. * The parent sets her own signal handler and then calls messenger. */ void doit(void) { pid_t pid; /* process id */ int rc; char mtext[80]; /* message text */ extern int msgerr; extern int procgrp; pid = fork(); #ifdef __64LDT__ if (pid == (pid_t) 0) { #else if (pid == 0) { #endif /* set the process group so we can terminate all children */ set_signals((void *)nextofkin); /* set up signal handlers and initialize pgrp */ #ifndef _LINUX procgrp = setpgrp(0, 0); #else procgrp = setpgrp(); #endif if (AUSDEBUG) { fprintf(stderr, "process group: %d\n", procgrp); fflush(stderr); } if (procgrp == -1) { perror("setpgid failed"); fprintf(stderr, " SEVERE : setpgid failed, errno: %d\n", errno); exit(1); } sprintf(mtext, "%d", procgrp); rc = send_message(msgerr, 1, mtext); if (rc == -1) { perror("send_message failed"); fprintf(stderr, " SEVERE : send_message failed, errno: %d\n", errno); exit(1); } put_proc_info(0); /* store process info for this (root) process */ spawn(0); if (shmaddr->pid == getpid()) { sprintf(mtext, "%d", SIGUSR1); rc = send_message(msgerr, 3, mtext); if (rc == -1) { severe ("msgsnd failed: %d msgid %d mtyp %d mtext %d\n", errno, msgerr, 3, mtext); exit(1); } } exit(0); } #ifdef __64LDT__ else if (pid > (pid_t) 0) { #else else if (pid > 0) { #endif set_signals((void *)cleanup); /* set up signal handlers and initialize pgrp */ messenger(); /* receives and acts upon messages */ exit(1); } else { perror("fork failed"); fprintf(stderr, " SEVERE : fork failed, exiting with errno %d\n", errno); exit(1); } } /* main */ int main(int argc, char *argv[]) { extern Pinfo *shmaddr; /* start address of shared memory */ prtln(); getenv_val(); /* Get and initialize all environment variables */ prtln(); if (argc < 2) { fprintf(stderr, "usage: %s [-b number] [-d number] [-t number] \n", argv[0]); fprintf(stderr, "where:\n"); fprintf(stderr, "\t-b number\tnumber of children each parent will spawn ( > 1)\n"); fprintf(stderr, "\t-d number\tdepth of process tree ( > 1)\n"); fprintf(stderr, "\t-t\t\tset timeout value\n"); fprintf(stderr, " SEVERE : Command line parameter error.\n"); exit(1); } parse_args(argc, argv); /* Get all command line arguments */ dprt("value of BVAL = %d, value of DVAL = %d\n", BVAL, DVAL); nodesum = sumit(BVAL, DVAL); #ifdef _LINUX if (nodesum > 250) { printf("total number of process to be created " "nodesum (%d) is greater\n than the allowed " "SEMMSL value (250)\n", nodesum); printf("reseting the value of nodesum to SEMMSL\n"); nodesum = 250; } #endif dprt("value of nodesum is initiallized to: %d\n", nodesum); prtln(); setup_shm(); /* Set up, allocate and initialize shared memory */ prtln(); setup_semaphores(); /* Set up, allocate and initialize semaphores */ prtln(); setup_msgqueue(); /* Set up, allocate and initialize message queues */ prtln(); doit(); /* spawn off processes */ prtln(); return 0; }
gpl-2.0
Macavity/SkyFireEMU
src/server/game/Handlers/BattlefieldHandler.cpp
4910
/* * Copyright (C) 2010-2012 Project SkyFire <http://www.projectskyfire.org/> * Copyright (C) 2008-2012 TrinityCore <http://www.trinitycore.org/> * Copyright (C) 2005-2012 MaNGOS <http://getmangos.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, see <http://www.gnu.org/licenses/>. */ #include "Common.h" #include "ObjectAccessor.h" #include "ObjectMgr.h" #include "WorldPacket.h" #include "WorldSession.h" #include "Battlefield.h" #include "BattlefieldMgr.h" #include "Opcodes.h" //This send to player windows for invite player to join the war //Param1:(BattleId) the BattleId of Bf //Param2:(ZoneId) the zone where the battle is (4197 for wg) //Param3:(time) Time in second that the player have for accept void WorldSession::SendBfInvitePlayerToWar(uint32 BattleId, uint32 ZoneId, uint32 p_time) { //Send packet WorldPacket data(SMSG_BATTLEFIELD_MGR_ENTRY_INVITE, 16); data << uint32(0); data << uint32(ZoneId); data << uint64(BattleId | 0x20000); //Sending the packet to player SendPacket(&data); } //This send invitation to player to join the queue //Param1:(BattleId) the BattleId of Bf void WorldSession::SendBfInvitePlayerToQueue(uint32 BattleId) { WorldPacket data(SMSG_BATTLEFIELD_MGR_QUEUE_INVITE, 5); data << uint8(0); data << uint8(1); // warmup data << uint32(0); data << uint32(0); data << uint32(0); data << uint32(0); data << uint32(0); data << uint64(BattleId); // BattleId //warmup ? used ? //Sending packet to player SendPacket(&data); } //This send packet for inform player that he join queue //Param1:(BattleId) the BattleId of Bf //Param2:(ZoneId) the zone where the battle is (4197 for wg) void WorldSession::SendBfQueueInviteResponce(uint32 BattleId, uint32 ZoneId) { WorldPacket data(SMSG_BATTLEFIELD_MGR_QUEUE_REQUEST_RESPONSE, 11); data << uint8(0); // unk, Logging In??? data << uint64(BattleId); data << uint32(ZoneId); data << uint64(GetPlayer()->GetGUID()); data << uint8(1); // 1 = accepted, 0 = You cant join queue right now data << uint8(1); // 1 = queued for next battle, 0 = you are queued, please wait... SendPacket(&data); } //This is call when player accept to join war //Param1:(BattleId) the BattleId of Bf void WorldSession::SendBfEntered(uint32 BattleId) { WorldPacket data(SMSG_BATTLEFIELD_MGR_ENTERED, 7); data << uint32(BattleId); data << uint8(1); //unk data << uint8(1); //unk data << uint8(_player->isAFK()?1:0); //Clear AFK SendPacket(&data); } //Send when player is kick from Battlefield void WorldSession::SendBfLeaveMessage(uint32 BattleId) { WorldPacket data(SMSG_BATTLEFIELD_MGR_EJECTED, 7); data << uint8(8); //byte Reason data << uint8(2); //byte BattleStatus data << uint64(BattleId); data << uint8(0); //bool Relocated SendPacket(&data); } //Send by client when he click on accept for queue void WorldSession::HandleBfQueueInviteResponse(WorldPacket & recv_data) { uint32 BattleId; uint8 Accepted; recv_data >> BattleId >> Accepted; sLog->outError("HandleQueueInviteResponse: BattleID:%u Accepted:%u", BattleId, Accepted); Battlefield* Bf = sBattlefieldMgr.GetBattlefieldByBattleId(BattleId); if (!Bf) return; if (Accepted) { Bf->PlayerAcceptInviteToQueue(_player); } } //Send by client on clicking in accept or refuse of invitation windows for join game void WorldSession::HandleBfEntryInviteResponse(WorldPacket & recv_data) { uint64 data; uint8 Accepted; recv_data >> Accepted >> data; uint64 BattleId = data &~ 0x20000; Battlefield* Bf= sBattlefieldMgr.GetBattlefieldByBattleId((uint32)BattleId); if(!Bf) return; //If player accept invitation if (Accepted) { Bf->PlayerAcceptInviteToWar(_player); } else { if (_player->GetZoneId() == Bf->GetZoneId()) Bf->KickPlayerFromBf(_player->GetGUID()); } } void WorldSession::HandleBfExitRequest(WorldPacket & recv_data) { uint32 BattleId; recv_data >> BattleId; sLog->outError("HandleBfExitRequest: BattleID:%u ", BattleId); Battlefield* Bf = sBattlefieldMgr.GetBattlefieldByBattleId(BattleId); if (!Bf) return; Bf->AskToLeaveQueue(_player); }
gpl-2.0
iPodLinux/linux-2.4.32-ipod
net/ipv4/ip_output.c
25611
/* * INET An implementation of the TCP/IP protocol suite for the LINUX * operating system. INET is implemented using the BSD Socket * interface as the means of communication with the user level. * * The Internet Protocol (IP) output module. * * Version: $Id: ip_output.c,v 1.99.2.1 2002/03/10 04:26:08 davem Exp $ * * Authors: Ross Biro, <[email protected]> * Fred N. van Kempen, <[email protected]> * Donald Becker, <[email protected]> * Alan Cox, <[email protected]> * Richard Underwood * Stefan Becker, <[email protected]> * Jorge Cwik, <[email protected]> * Arnt Gulbrandsen, <[email protected]> * * See ip_input.c for original log * * Fixes: * Alan Cox : Missing nonblock feature in ip_build_xmit. * Mike Kilburn : htons() missing in ip_build_xmit. * Bradford Johnson: Fix faulty handling of some frames when * no route is found. * Alexander Demenshin: Missing sk/skb free in ip_queue_xmit * (in case if packet not accepted by * output firewall rules) * Mike McLagan : Routing by source * Alexey Kuznetsov: use new route cache * Andi Kleen: Fix broken PMTU recovery and remove * some redundant tests. * Vitaly E. Lavrov : Transparent proxy revived after year coma. * Andi Kleen : Replace ip_reply with ip_send_reply. * Andi Kleen : Split fast and slow ip_build_xmit path * for decreased register pressure on x86 * and more readibility. * Marc Boucher : When call_out_firewall returns FW_QUEUE, * silently drop skb instead of failing with -EPERM. * Detlev Wengorz : Copy protocol for fragments. */ #include <asm/uaccess.h> #include <asm/system.h> #include <linux/types.h> #include <linux/kernel.h> #include <linux/sched.h> #include <linux/mm.h> #include <linux/string.h> #include <linux/errno.h> #include <linux/config.h> #include <linux/socket.h> #include <linux/sockios.h> #include <linux/in.h> #include <linux/inet.h> #include <linux/netdevice.h> #include <linux/etherdevice.h> #include <linux/proc_fs.h> #include <linux/stat.h> #include <linux/init.h> #include <net/snmp.h> #include <net/ip.h> #include <net/protocol.h> #include <net/route.h> #include <net/tcp.h> #include <net/udp.h> #include <linux/skbuff.h> #include <net/sock.h> #include <net/arp.h> #include <net/icmp.h> #include <net/raw.h> #include <net/checksum.h> #include <net/inetpeer.h> #include <linux/igmp.h> #include <linux/netfilter_ipv4.h> #include <linux/mroute.h> #include <linux/netlink.h> /* * Shall we try to damage output packets if routing dev changes? */ int sysctl_ip_dynaddr = 0; int sysctl_ip_default_ttl = IPDEFTTL; /* Generate a checksum for an outgoing IP datagram. */ __inline__ void ip_send_check(struct iphdr *iph) { iph->check = 0; iph->check = ip_fast_csum((unsigned char *)iph, iph->ihl); } /* dev_loopback_xmit for use with netfilter. */ static int ip_dev_loopback_xmit(struct sk_buff *newskb) { newskb->mac.raw = newskb->data; __skb_pull(newskb, newskb->nh.raw - newskb->data); newskb->pkt_type = PACKET_LOOPBACK; newskb->ip_summed = CHECKSUM_UNNECESSARY; BUG_TRAP(newskb->dst); #ifdef CONFIG_NETFILTER_DEBUG nf_debug_ip_loopback_xmit(newskb); #endif netif_rx(newskb); return 0; } /* Don't just hand NF_HOOK skb->dst->output, in case netfilter hook changes route */ static inline int output_maybe_reroute(struct sk_buff *skb) { return skb->dst->output(skb); } /* * Add an ip header to a skbuff and send it out. */ int ip_build_and_send_pkt(struct sk_buff *skb, struct sock *sk, u32 saddr, u32 daddr, struct ip_options *opt) { struct rtable *rt = (struct rtable *)skb->dst; struct iphdr *iph; /* Build the IP header. */ if (opt) iph=(struct iphdr *)skb_push(skb,sizeof(struct iphdr) + opt->optlen); else iph=(struct iphdr *)skb_push(skb,sizeof(struct iphdr)); iph->version = 4; iph->ihl = 5; iph->tos = sk->protinfo.af_inet.tos; if (ip_dont_fragment(sk, &rt->u.dst)) iph->frag_off = htons(IP_DF); else iph->frag_off = 0; iph->ttl = sk->protinfo.af_inet.ttl; iph->daddr = rt->rt_dst; iph->saddr = rt->rt_src; iph->protocol = sk->protocol; iph->tot_len = htons(skb->len); ip_select_ident(iph, &rt->u.dst, sk); skb->nh.iph = iph; if (opt && opt->optlen) { iph->ihl += opt->optlen>>2; ip_options_build(skb, opt, daddr, rt, 0); } ip_send_check(iph); /* Send it out. */ return NF_HOOK(PF_INET, NF_IP_LOCAL_OUT, skb, NULL, rt->u.dst.dev, output_maybe_reroute); } static inline int ip_finish_output2(struct sk_buff *skb) { struct dst_entry *dst = skb->dst; struct hh_cache *hh = dst->hh; #ifdef CONFIG_NETFILTER_DEBUG nf_debug_ip_finish_output2(skb); #endif /*CONFIG_NETFILTER_DEBUG*/ if (hh) { int hh_alen; read_lock_bh(&hh->hh_lock); hh_alen = HH_DATA_ALIGN(hh->hh_len); memcpy(skb->data - hh_alen, hh->hh_data, hh_alen); read_unlock_bh(&hh->hh_lock); skb_push(skb, hh->hh_len); return hh->hh_output(skb); } else if (dst->neighbour) return dst->neighbour->output(skb); if (net_ratelimit()) printk(KERN_DEBUG "ip_finish_output2: No header cache and no neighbour!\n"); kfree_skb(skb); return -EINVAL; } static __inline__ int __ip_finish_output(struct sk_buff *skb) { struct net_device *dev = skb->dst->dev; skb->dev = dev; skb->protocol = htons(ETH_P_IP); return NF_HOOK(PF_INET, NF_IP_POST_ROUTING, skb, NULL, dev, ip_finish_output2); } int ip_finish_output(struct sk_buff *skb) { return __ip_finish_output(skb); } int ip_mc_output(struct sk_buff *skb) { struct sock *sk = skb->sk; struct rtable *rt = (struct rtable*)skb->dst; struct net_device *dev = rt->u.dst.dev; /* * If the indicated interface is up and running, send the packet. */ IP_INC_STATS(IpOutRequests); #ifdef CONFIG_IP_ROUTE_NAT if (rt->rt_flags & RTCF_NAT) ip_do_nat(skb); #endif skb->dev = dev; skb->protocol = htons(ETH_P_IP); /* * Multicasts are looped back for other local users */ if (rt->rt_flags&RTCF_MULTICAST) { if ((!sk || sk->protinfo.af_inet.mc_loop) #ifdef CONFIG_IP_MROUTE /* Small optimization: do not loopback not local frames, which returned after forwarding; they will be dropped by ip_mr_input in any case. Note, that local frames are looped back to be delivered to local recipients. This check is duplicated in ip_mr_input at the moment. */ && ((rt->rt_flags&RTCF_LOCAL) || !(IPCB(skb)->flags&IPSKB_FORWARDED)) #endif ) { struct sk_buff *newskb = skb_clone(skb, GFP_ATOMIC); if (newskb) NF_HOOK(PF_INET, NF_IP_POST_ROUTING, newskb, NULL, newskb->dev, ip_dev_loopback_xmit); } /* Multicasts with ttl 0 must not go beyond the host */ if (skb->nh.iph->ttl == 0) { kfree_skb(skb); return 0; } } if (rt->rt_flags&RTCF_BROADCAST) { struct sk_buff *newskb = skb_clone(skb, GFP_ATOMIC); if (newskb) NF_HOOK(PF_INET, NF_IP_POST_ROUTING, newskb, NULL, newskb->dev, ip_dev_loopback_xmit); } return __ip_finish_output(skb); } int ip_output(struct sk_buff *skb) { #ifdef CONFIG_IP_ROUTE_NAT struct rtable *rt = (struct rtable*)skb->dst; #endif IP_INC_STATS(IpOutRequests); #ifdef CONFIG_IP_ROUTE_NAT if (rt->rt_flags&RTCF_NAT) ip_do_nat(skb); #endif return __ip_finish_output(skb); } /* Queues a packet to be sent, and starts the transmitter if necessary. * This routine also needs to put in the total length and compute the * checksum. We use to do this in two stages, ip_build_header() then * this, but that scheme created a mess when routes disappeared etc. * So we do it all here, and the TCP send engine has been changed to * match. (No more unroutable FIN disasters, etc. wheee...) This will * most likely make other reliable transport layers above IP easier * to implement under Linux. */ static inline int ip_queue_xmit2(struct sk_buff *skb) { struct sock *sk = skb->sk; struct rtable *rt = (struct rtable *)skb->dst; struct net_device *dev; struct iphdr *iph = skb->nh.iph; dev = rt->u.dst.dev; /* This can happen when the transport layer has segments queued * with a cached route, and by the time we get here things are * re-routed to a device with a different MTU than the original * device. Sick, but we must cover it. */ if (skb_headroom(skb) < dev->hard_header_len && dev->hard_header) { struct sk_buff *skb2; skb2 = skb_realloc_headroom(skb, (dev->hard_header_len + 15) & ~15); kfree_skb(skb); if (skb2 == NULL) return -ENOMEM; if (sk) skb_set_owner_w(skb2, sk); skb = skb2; iph = skb->nh.iph; } if (skb->len > rt->u.dst.pmtu) goto fragment; ip_select_ident(iph, &rt->u.dst, sk); /* Add an IP checksum. */ ip_send_check(iph); skb->priority = sk->priority; return skb->dst->output(skb); fragment: if (ip_dont_fragment(sk, &rt->u.dst)) { /* Reject packet ONLY if TCP might fragment * it itself, if were careful enough. */ NETDEBUG(printk(KERN_DEBUG "sending pkt_too_big (len[%u] pmtu[%u]) to self\n", skb->len, rt->u.dst.pmtu)); icmp_send(skb, ICMP_DEST_UNREACH, ICMP_FRAG_NEEDED, htonl(rt->u.dst.pmtu)); kfree_skb(skb); return -EMSGSIZE; } ip_select_ident(iph, &rt->u.dst, sk); if (skb->ip_summed == CHECKSUM_HW && (skb = skb_checksum_help(skb)) == NULL) return -ENOMEM; return ip_fragment(skb, skb->dst->output); } int ip_queue_xmit(struct sk_buff *skb, int ipfragok) { struct sock *sk = skb->sk; struct ip_options *opt = sk->protinfo.af_inet.opt; struct rtable *rt; struct iphdr *iph; /* Skip all of this if the packet is already routed, * f.e. by something like SCTP. */ rt = (struct rtable *) skb->dst; if (rt != NULL) goto packet_routed; /* Make sure we can route this packet. */ rt = (struct rtable *)__sk_dst_check(sk, 0); if (rt == NULL || rt->u.dst.obsolete) { u32 daddr; /* Use correct destination address if we have options. */ daddr = sk->daddr; if(opt && opt->srr) daddr = opt->faddr; /* If this fails, retransmit mechanism of transport layer will * keep trying until route appears or the connection times itself * out. */ if (ip_route_output(&rt, daddr, sk->saddr, RT_CONN_FLAGS(sk), sk->bound_dev_if)) goto no_route; __sk_dst_set(sk, &rt->u.dst); sk->route_caps = rt->u.dst.dev->features; } skb->dst = dst_clone(&rt->u.dst); packet_routed: if (opt && opt->is_strictroute && rt->rt_dst != rt->rt_gateway) goto no_route; /* OK, we know where to send it, allocate and build IP header. */ iph = (struct iphdr *) skb_push(skb, sizeof(struct iphdr) + (opt ? opt->optlen : 0)); *((__u16 *)iph) = htons((4 << 12) | (5 << 8) | (sk->protinfo.af_inet.tos & 0xff)); iph->tot_len = htons(skb->len); if (ip_dont_fragment(sk, &rt->u.dst) && !ipfragok) iph->frag_off = htons(IP_DF); else iph->frag_off = 0; iph->ttl = sk->protinfo.af_inet.ttl; iph->protocol = sk->protocol; iph->saddr = rt->rt_src; iph->daddr = rt->rt_dst; skb->nh.iph = iph; /* Transport layer set skb->h.foo itself. */ if(opt && opt->optlen) { iph->ihl += opt->optlen >> 2; ip_options_build(skb, opt, sk->daddr, rt, 0); } return NF_HOOK(PF_INET, NF_IP_LOCAL_OUT, skb, NULL, rt->u.dst.dev, ip_queue_xmit2); no_route: IP_INC_STATS(IpOutNoRoutes); kfree_skb(skb); return -EHOSTUNREACH; } /* * Build and send a packet, with as little as one copy * * Doesn't care much about ip options... option length can be * different for fragment at 0 and other fragments. * * Note that the fragment at the highest offset is sent first, * so the getfrag routine can fill in the TCP/UDP checksum header * field in the last fragment it sends... actually it also helps * the reassemblers, they can put most packets in at the head of * the fragment queue, and they know the total size in advance. This * last feature will measurably improve the Linux fragment handler one * day. * * The callback has five args, an arbitrary pointer (copy of frag), * the source IP address (may depend on the routing table), the * destination address (char *), the offset to copy from, and the * length to be copied. */ static int ip_build_xmit_slow(struct sock *sk, int getfrag (const void *, char *, unsigned int, unsigned int, struct sk_buff *), const void *frag, unsigned length, struct ipcm_cookie *ipc, struct rtable *rt, int flags) { unsigned int fraglen, maxfraglen, fragheaderlen; int err; int offset, mf; int mtu; u16 id; int hh_len = (rt->u.dst.dev->hard_header_len + 15)&~15; int nfrags=0; struct ip_options *opt = ipc->opt; int df = 0; mtu = rt->u.dst.pmtu; if (ip_dont_fragment(sk, &rt->u.dst)) df = htons(IP_DF); length -= sizeof(struct iphdr); id = sk->protinfo.af_inet.id++; if (opt) { fragheaderlen = sizeof(struct iphdr) + opt->optlen; maxfraglen = ((mtu-sizeof(struct iphdr)-opt->optlen) & ~7) + fragheaderlen; } else { fragheaderlen = sizeof(struct iphdr); /* * Fragheaderlen is the size of 'overhead' on each buffer. Now work * out the size of the frames to send. */ maxfraglen = ((mtu-sizeof(struct iphdr)) & ~7) + fragheaderlen; } if (length + fragheaderlen > 0xFFFF) { ip_local_error(sk, EMSGSIZE, rt->rt_dst, sk->dport, mtu); return -EMSGSIZE; } /* * Start at the end of the frame by handling the remainder. */ offset = length - (length % (maxfraglen - fragheaderlen)); /* * Amount of memory to allocate for final fragment. */ fraglen = length - offset + fragheaderlen; if (length-offset==0) { fraglen = maxfraglen; offset -= maxfraglen-fragheaderlen; } /* * The last fragment will not have MF (more fragments) set. */ mf = 0; /* * Don't fragment packets for path mtu discovery. */ if (offset > 0 && sk->protinfo.af_inet.pmtudisc==IP_PMTUDISC_DO) { ip_local_error(sk, EMSGSIZE, rt->rt_dst, sk->dport, mtu); return -EMSGSIZE; } if (flags&MSG_PROBE) goto out; /* * Begin outputting the bytes. */ do { char *data; struct sk_buff * skb; /* * Get the memory we require with some space left for alignment. */ if (!(flags & MSG_DONTWAIT) || nfrags == 0) { skb = sock_alloc_send_skb(sk, fraglen + hh_len + 15, (flags & MSG_DONTWAIT), &err); } else { /* On a non-blocking write, we check for send buffer * usage on the first fragment only. */ skb = sock_wmalloc(sk, fraglen + hh_len + 15, 1, sk->allocation); if (!skb) err = -ENOBUFS; } if (skb == NULL) goto error; /* * Fill in the control structures */ skb->priority = sk->priority; skb->dst = dst_clone(&rt->u.dst); skb_reserve(skb, hh_len); /* * Find where to start putting bytes. */ data = skb_put(skb, fraglen); skb->nh.iph = (struct iphdr *)data; /* * Only write IP header onto non-raw packets */ { struct iphdr *iph = (struct iphdr *)data; iph->version = 4; iph->ihl = 5; if (opt) { iph->ihl += opt->optlen>>2; ip_options_build(skb, opt, ipc->addr, rt, offset); } iph->tos = sk->protinfo.af_inet.tos; iph->tot_len = htons(fraglen - fragheaderlen + iph->ihl*4); iph->frag_off = htons(offset>>3)|mf|df; iph->id = id; if (!mf) { if (offset || !df) { /* Select an unpredictable ident only * for packets without DF or having * been fragmented. */ __ip_select_ident(iph, &rt->u.dst); id = iph->id; } /* * Any further fragments will have MF set. */ mf = htons(IP_MF); } if (rt->rt_type == RTN_MULTICAST) iph->ttl = sk->protinfo.af_inet.mc_ttl; else iph->ttl = sk->protinfo.af_inet.ttl; iph->protocol = sk->protocol; iph->check = 0; iph->saddr = rt->rt_src; iph->daddr = rt->rt_dst; iph->check = ip_fast_csum((unsigned char *)iph, iph->ihl); data += iph->ihl*4; } /* * User data callback */ if (getfrag(frag, data, offset, fraglen-fragheaderlen, skb)) { err = -EFAULT; kfree_skb(skb); goto error; } offset -= (maxfraglen-fragheaderlen); fraglen = maxfraglen; nfrags++; err = NF_HOOK(PF_INET, NF_IP_LOCAL_OUT, skb, NULL, skb->dst->dev, output_maybe_reroute); if (err) { if (err > 0) err = sk->protinfo.af_inet.recverr ? net_xmit_errno(err) : 0; if (err) goto error; } } while (offset >= 0); if (nfrags>1) ip_statistics[smp_processor_id()*2 + !in_softirq()].IpFragCreates += nfrags; out: return 0; error: IP_INC_STATS(IpOutDiscards); if (nfrags>1) ip_statistics[smp_processor_id()*2 + !in_softirq()].IpFragCreates += nfrags; return err; } /* * Fast path for unfragmented packets. */ int ip_build_xmit(struct sock *sk, int getfrag (const void *, char *, unsigned int, unsigned int, struct sk_buff *), const void *frag, unsigned length, struct ipcm_cookie *ipc, struct rtable *rt, int flags) { int err; struct sk_buff *skb; int df; struct iphdr *iph; /* * Try the simple case first. This leaves fragmented frames, and by * choice RAW frames within 20 bytes of maximum size(rare) to the long path */ if (!sk->protinfo.af_inet.hdrincl) { length += sizeof(struct iphdr); /* * Check for slow path. */ if (length > rt->u.dst.pmtu || ipc->opt != NULL) return ip_build_xmit_slow(sk,getfrag,frag,length,ipc,rt,flags); } else { if (length > rt->u.dst.dev->mtu) { ip_local_error(sk, EMSGSIZE, rt->rt_dst, sk->dport, rt->u.dst.dev->mtu); return -EMSGSIZE; } } if (flags&MSG_PROBE) goto out; /* * Do path mtu discovery if needed. */ df = 0; if (ip_dont_fragment(sk, &rt->u.dst)) df = htons(IP_DF); /* * Fast path for unfragmented frames without options. */ { int hh_len = (rt->u.dst.dev->hard_header_len + 15)&~15; skb = sock_alloc_send_skb(sk, length+hh_len+15, flags&MSG_DONTWAIT, &err); if(skb==NULL) goto error; skb_reserve(skb, hh_len); } skb->priority = sk->priority; skb->dst = dst_clone(&rt->u.dst); skb->nh.iph = iph = (struct iphdr *)skb_put(skb, length); if(!sk->protinfo.af_inet.hdrincl) { iph->version=4; iph->ihl=5; iph->tos=sk->protinfo.af_inet.tos; iph->tot_len = htons(length); iph->frag_off = df; iph->ttl=sk->protinfo.af_inet.mc_ttl; ip_select_ident(iph, &rt->u.dst, sk); if (rt->rt_type != RTN_MULTICAST) iph->ttl=sk->protinfo.af_inet.ttl; iph->protocol=sk->protocol; iph->saddr=rt->rt_src; iph->daddr=rt->rt_dst; iph->check=0; iph->check = ip_fast_csum((unsigned char *)iph, iph->ihl); err = getfrag(frag, ((char *)iph)+iph->ihl*4,0, length-iph->ihl*4, skb); } else err = getfrag(frag, (void *)iph, 0, length, skb); if (err) goto error_fault; err = NF_HOOK(PF_INET, NF_IP_LOCAL_OUT, skb, NULL, rt->u.dst.dev, output_maybe_reroute); if (err > 0) err = sk->protinfo.af_inet.recverr ? net_xmit_errno(err) : 0; if (err) goto error; out: return 0; error_fault: err = -EFAULT; kfree_skb(skb); error: IP_INC_STATS(IpOutDiscards); return err; } /* * This IP datagram is too large to be sent in one piece. Break it up into * smaller pieces (each of size equal to IP header plus * a block of the data of the original IP data part) that will yet fit in a * single device frame, and queue such a frame for sending. * * Yes this is inefficient, feel free to submit a quicker one. */ int ip_fragment(struct sk_buff *skb, int (*output)(struct sk_buff*)) { struct iphdr *iph; int raw = 0; int ptr; struct net_device *dev; struct sk_buff *skb2; unsigned int mtu, hlen, left, len; int offset; int not_last_frag; struct rtable *rt = (struct rtable*)skb->dst; int err = 0; dev = rt->u.dst.dev; /* * Point into the IP datagram header. */ iph = skb->nh.iph; /* * Setup starting values. */ hlen = iph->ihl * 4; left = skb->len - hlen; /* Space per frame */ mtu = rt->u.dst.pmtu - hlen; /* Size of data space */ ptr = raw + hlen; /* Where to start from */ /* * Fragment the datagram. */ offset = (ntohs(iph->frag_off) & IP_OFFSET) << 3; not_last_frag = iph->frag_off & htons(IP_MF); /* * Keep copying data until we run out. */ while(left > 0) { len = left; /* IF: it doesn't fit, use 'mtu' - the data space left */ if (len > mtu) len = mtu; /* IF: we are not sending upto and including the packet end then align the next start on an eight byte boundary */ if (len < left) { len &= ~7; } /* * Allocate buffer. */ if ((skb2 = alloc_skb(len+hlen+dev->hard_header_len+15,GFP_ATOMIC)) == NULL) { NETDEBUG(printk(KERN_INFO "IP: frag: no memory for new fragment!\n")); err = -ENOMEM; goto fail; } /* * Set up data on packet */ skb2->pkt_type = skb->pkt_type; skb2->priority = skb->priority; skb_reserve(skb2, (dev->hard_header_len+15)&~15); skb_put(skb2, len + hlen); skb2->nh.raw = skb2->data; skb2->h.raw = skb2->data + hlen; skb2->protocol = skb->protocol; skb2->security = skb->security; /* * Charge the memory for the fragment to any owner * it might possess */ if (skb->sk) skb_set_owner_w(skb2, skb->sk); skb2->dst = dst_clone(skb->dst); skb2->dev = skb->dev; /* * Copy the packet header into the new buffer. */ memcpy(skb2->nh.raw, skb->data, hlen); /* * Copy a block of the IP datagram. */ if (skb_copy_bits(skb, ptr, skb2->h.raw, len)) BUG(); left -= len; /* * Fill in the new header fields. */ iph = skb2->nh.iph; iph->frag_off = htons((offset >> 3)); /* ANK: dirty, but effective trick. Upgrade options only if * the segment to be fragmented was THE FIRST (otherwise, * options are already fixed) and make it ONCE * on the initial skb, so that all the following fragments * will inherit fixed options. */ if (offset == 0) ip_options_fragment(skb); /* Copy the flags to each fragment. */ IPCB(skb2)->flags = IPCB(skb)->flags; /* * Added AC : If we are fragmenting a fragment that's not the * last fragment then keep MF on each bit */ if (left > 0 || not_last_frag) iph->frag_off |= htons(IP_MF); ptr += len; offset += len; #ifdef CONFIG_NET_SCHED skb2->tc_index = skb->tc_index; #endif #ifdef CONFIG_NETFILTER skb2->nfmark = skb->nfmark; skb2->nfcache = skb->nfcache; /* Connection association is same as pre-frag packet */ skb2->nfct = skb->nfct; nf_conntrack_get(skb2->nfct); #if defined(CONFIG_BRIDGE) || defined(CONFIG_BRIDGE_MODULE) skb2->nf_bridge = skb->nf_bridge; nf_bridge_get(skb2->nf_bridge); #endif #ifdef CONFIG_NETFILTER_DEBUG skb2->nf_debug = skb->nf_debug; #endif #endif /* * Put this fragment into the sending queue. */ IP_INC_STATS(IpFragCreates); iph->tot_len = htons(len + hlen); ip_send_check(iph); err = output(skb2); if (err) goto fail; } kfree_skb(skb); IP_INC_STATS(IpFragOKs); return err; fail: kfree_skb(skb); IP_INC_STATS(IpFragFails); return err; } /* * Fetch data from kernel space and fill in checksum if needed. */ static int ip_reply_glue_bits(const void *dptr, char *to, unsigned int offset, unsigned int fraglen, struct sk_buff *skb) { struct ip_reply_arg *dp = (struct ip_reply_arg*)dptr; u16 *pktp = (u16 *)to; struct iovec *iov; int len; int hdrflag = 1; iov = &dp->iov[0]; if (offset >= iov->iov_len) { offset -= iov->iov_len; iov++; hdrflag = 0; } len = iov->iov_len - offset; if (fraglen > len) { /* overlapping. */ dp->csum = csum_partial_copy_nocheck(iov->iov_base+offset, to, len, dp->csum); offset = 0; fraglen -= len; to += len; iov++; } dp->csum = csum_partial_copy_nocheck(iov->iov_base+offset, to, fraglen, dp->csum); if (hdrflag && dp->csumoffset) *(pktp + dp->csumoffset) = csum_fold(dp->csum); /* fill in checksum */ return 0; } /* * Generic function to send a packet as reply to another packet. * Used to send TCP resets so far. ICMP should use this function too. * * Should run single threaded per socket because it uses the sock * structure to pass arguments. */ void ip_send_reply(struct sock *sk, struct sk_buff *skb, struct ip_reply_arg *arg, unsigned int len) { struct { struct ip_options opt; char data[40]; } replyopts; struct ipcm_cookie ipc; u32 daddr; struct rtable *rt = (struct rtable*)skb->dst; if (ip_options_echo(&replyopts.opt, skb)) return; daddr = ipc.addr = rt->rt_src; ipc.opt = NULL; if (replyopts.opt.optlen) { ipc.opt = &replyopts.opt; if (ipc.opt->srr) daddr = replyopts.opt.faddr; } if (ip_route_output(&rt, daddr, rt->rt_spec_dst, RT_TOS(skb->nh.iph->tos), 0)) return; /* And let IP do all the hard work. This chunk is not reenterable, hence spinlock. Note that it uses the fact, that this function is called with locally disabled BH and that sk cannot be already spinlocked. */ bh_lock_sock(sk); sk->protinfo.af_inet.tos = skb->nh.iph->tos; sk->priority = skb->priority; sk->protocol = skb->nh.iph->protocol; ip_build_xmit(sk, ip_reply_glue_bits, arg, len, &ipc, rt, MSG_DONTWAIT); bh_unlock_sock(sk); ip_rt_put(rt); } /* * IP protocol layer initialiser */ static struct packet_type ip_packet_type = { __constant_htons(ETH_P_IP), NULL, /* All devices */ ip_rcv, (void*)1, NULL, }; /* * IP registers the packet type and then calls the subprotocol initialisers */ void __init ip_init(void) { dev_add_pack(&ip_packet_type); ip_rt_init(); inet_initpeers(); #ifdef CONFIG_IP_MULTICAST proc_net_create("igmp", 0, ip_mc_procinfo); #endif proc_net_create("mcfilter", 0, ip_mcf_procinfo); }
gpl-2.0
mario-goulart/sawfish
lisp/sawfish/gtk/widgets/color.jl
2140
;; nokogiri-widgets/color.jl -- color selector widget ;; ;; Copyright (C) 2000 John Harper <[email protected]> ;; ;; This file is part of sawfish. ;; ;; sawfish 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. ;; ;; sawfish 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 sawfish; see the file COPYING. If not, write to ;; the Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. (define-structure sawfish.gtk.widgets.color (export ) (open rep gui.gtk-2.gtk rep.regexp sawfish.gtk.widget) (defconst default-color "#000000") (define (make-color-item changed-callback) (let* ((value default-color) (button (gtk-color-button-new-with-color (gdk-color-parse-interp value)))) (g-signal-connect button "color-set" (lambda () (let ((color (gtk-color-button-get-color-interp button))) (setq value color) (call-callback changed-callback)))) (gtk-widget-show button) (lambda (op) (case op ((set) (lambda (x) (setq value x) (gtk-color-button-set-color button (gdk-color-parse-interp value)))) ((clear) (lambda () (setq value default-color) (gtk-color-button-set-color button (gdk-color-parse-interp value)))) ((ref) (lambda () value)) ((gtk-widget) button) ((validp) (lambda (x) (and (stringp x) (string-match "^#" x)))))))) (define-widget-type 'color make-color-item))
gpl-2.0
Minasokoni/coasties
wp-content/plugins/woocommerce/includes/admin/post-types/class-wc-admin-cpt.php
1091
<?php /** * Admin functions for post types * * @author WooThemes * @category Admin * @package WooCommerce/Admin/Post Types * @version 2.1.0 */ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly if ( ! class_exists( 'WC_Admin_CPT' ) ) : /** * WC_Admin_CPT Class */ class WC_Admin_CPT { protected $type = ''; /** * Constructor */ public function __construct() { // Insert into X media browser add_filter( 'media_view_strings', array( $this, 'change_insert_into_post' ) ); } /** * Change label for insert buttons. * * @access public * @param mixed $translation * @param mixed $original * @return void */ function change_insert_into_post( $strings ) { global $post_type; if ( $post_type == $this->type ) { $obj = get_post_type_object( $this->type ); $strings['insertIntoPost'] = sprintf( __( 'Insert into %s', 'woocommerce' ), $obj->labels->singular_name ); $strings['uploadedToThisPost'] = sprintf( __( 'Uploaded to this %s', 'woocommerce' ), $obj->labels->singular_name ); } return $strings; } } endif;
gpl-2.0
nazariyg/Qcore
Qinclude/QFormatGif.h
16317
#ifndef QFORMATGIF_H #define QFORMATGIF_H // CompuServe Graphics Interchange Format. File extension: .gif. A GIF file can be either still, containing a // single image, or animated, having multiple images. An image stored inside a GIF file has its own dimensions // and also a position defined relatively to the logical screen which is to delineate an area where pixels // should be visible to the viewer. The opening image contained by a GIF file is called "title image". Only // the title image can be interlaced in order to provide the ability of progressive image displaying while data // is transmitting. All sorts of interactions with GIF's "transparency color" replaced by interaction with // RasterImage's visibility mask. Saving and loading use the next common understanding of GIF's term // "background": it means no certain color but an under-laying graphics instead. Netscape Navigator's // "N-Loops" extension is supported. // // For saving, only RasterImage's CMT_PALETTED color model is acceptable. An image to be saved into GIF // representation can be with or without a visibility mask. WARNING. Both saving kinds, still-oriented and // animation-oriented, will require an additional entry in GIF's color table with the intention of signifying // transparent pixels if the image or an animation frame has a visibility mask associated, thus a palette with // 256 entries is incompatible with a masked image. Accordingly, if all animation frames have the same shared // palette, presence of a visibility mask at least at one frame will raise size of the output global palette by // one. Produced GIF files have version "89a". If "manual" animation assembling is used instead of automatic // which involves GenerateInputAnimation static member function, the user should note that the first frame // cannot have disposal method DT_RESTORE_TO_PREVIOUS. An image passed for saving must have dimensions which // do not exceed 65535. // DEFAULTS. The title image is not to be interlaced; loop_quantity is 0 ("loop infinity times"). // // For loading, the only image type which can appear is IT_PALETTED. If an image has transparency in GIF // domain, it comes in with a visibility mask. Loading accepts both GIF versions, "87a" and "89a". A GIF file // is treated as animated if it has a Graphic Control Extension block before the first image. Absence of the // Netscape's extension field for an animation being loaded is understood as "play once", which is the common // practice. A lot of concessions are made to the format for loading purpose since there were and, most // likely, still are many imperfectly designed GIF encoders whose ways of file stuffing have become widespread. // Some notable concessions are: // if size of the received image data less than the expected, then lacking number of bytes is appended using // zeroes (it means that unknown image areas will be colored by the first color from the color table); // if a color index points out of the color table, then 0 index is used; // if an unknown disposal method is encountered, then DT_LEAVE replaces it; // if an animation frame has no Graphic Control Extension, then this frame is considered as the last and GCE // from the previous frame is used. // The "Deferred clear code" feature is supported in the LZW implementation. In loading from a dynamic // bytestream, LZW decoding resumes just from the pixel at which it had stopped before, therefore no redundant // performance and memory resources are involved. Due to neglecting by some GIF encoders the specification, // loading of a GIF image happens into the allocated "draft image" in order to allow the user displaying a // failed-to-load image if it's required. In the case of loading from a dynamic bytestream, if all expected // bytes were received but loading function still returns 'false', then it's acceptable for the control logic // to finish, with treating that file as normal. #include "QFormatBase.h" #include "QProgressBase.h" #include "QRasterImageSequence.h" namespace Q { class Q_ITEM FormatGif : public FormatBase, public ProgressBase { public: enum DisposalType { DT_UNSPECIFIED, DT_LEAVE, DT_RESTORE_TO_BACKGROUND, DT_RESTORE_TO_PREVIOUS }; // ET_FORMAT_IDENTIFIER_MISMATCH: signature discrepancy, causes no assert-false // ET_FILE_HAS_NO_IMAGES: this case allowed by the specification // ET_PLAIN_TEXT_EXTENSION_NOT_SUPPORTED: representation of a graphical image via text characters is // undoubtedly obsolete and hence unsupported enum ExceptionType { ET_CANNOT_ACCESS_FILE, // saving and loading ET_FORMAT_IDENTIFIER_MISMATCH, // loading ET_FORMAT_MISMATCH, // loading ET_FILE_HAS_NO_IMAGES, // loading ET_PLAIN_TEXT_EXTENSION_NOT_SUPPORTED // loading }; // animation frame holder class AnimationFrame { public: // construction AnimationFrame () {}; // uninitialized AnimationFrame (const RasterImagePtr& rspqImage, DisposalType eDisposalMethod, int iDelayTime, int iPositionX, int iPositionY, bool bUserInputExpected = false) : ImagePtr(rspqImage), DisposalMethod(eDisposalMethod), DelayTime(iDelayTime), PositionX(iPositionX), PositionY(iPositionY), UserInputExpected(bUserInputExpected) { }; RasterImagePtr ImagePtr; DisposalType DisposalMethod; int DelayTime; // in 1/100 of a second int PositionX, PositionY; bool UserInputExpected; private: friend class FormatGif; bool m_bHasTransparency; int m_iTransparentColorIndex; }; typedef StillArray<AnimationFrame> Animation; // destruction ~FormatGif (); // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // Construction. For saving. When storing an animation, all frame images must have the same dimensions as // the logical screen has. Parameter bAllPalettesAreEqual indicates if a single global palette common to // all frames is to be used instead of per-frame local palettes; it must be 'false' if animation frames' // palettes are known to differ or if the situation is simply uncertain. The minimal possible // bits-per-pixel value to be used in encoding is automatically derived from appropriate palette's size. FormatGif (const RasterImagePtr& rspqImage); FormatGif (const Animation& rqAnimation, int iLogicalScreenWidth, int iLogicalScreenHeight, bool bAllPalettesAreEqual); // file settings void SetIsTitleImageInterlaced (bool bInterlaced); // only for a still GIF void SetLoopQuantity (int iQuantity); // [0, 65535], 0 is for "replay infinity times" // Saving of a still image. Progressed. bool SaveImage (const char* acFilename); void SaveImage (StillArray<char>& rqStaticBytestream); // Saving of an animation. A produced file always has a Global Color Table. All frames are // non-interlaced. Progressed. bool SaveAnimation (const char* acFilename); void SaveAnimation (StillArray<char>& rqStaticBytestream); // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // Construction. For loading. Initially tries to read the heading data (Logical Screen Descriptor, Global // Color Table, and Netscape Navigator's "N-Loops" extension field) and to reach the first Image // Descriptor. FormatGif (const char* acFilename, bool& rbSuccess); FormatGif (bool bBytestreamIsStatic, const char* acBytestream, int iBytestreamSize, bool& rbSuccess); // file attributes int GetLogicalScreenWidth () const; int GetLogicalScreenHeight () const; bool IsAnimated () const; bool IsTitleImageInterlaced () const; int GetLoopQuantity () const; // Loading of the title image. NOTE. The GIF interlacing scheme assumes possibility of presence of "empty // passes", so, in the case of loading from a dynamic bytestream, the image may be transmitted completely // even if loaded_pass_quantity hasn't reached 4. Progressed. bool LoadImage (RasterImagePtr& rspqImage, int iDynamicBytestreamSize = -1); // For animated GIFs, the function loads frames into rqAnimation. In the case of loading from a dynamic // bytestream, size of rqAnimation grows with time by transmitted frames. NOTE. If the first frame of a // multiframe animation fails to load, then this function returns 'false', but if some other frame fails to // load, then it's considered as partial success (using GIF's indulgent criteria) and 'true' is returned. bool LoadAnimation (Animation& rqAnimation, int iDynamicBytestreamSize = -1); // Supporting calls (for the loading functions above) in case when the feature of loading from a dynamic // bytestream is used for transmitting the title image. Return value of GetDevelopedRowQuantity can vary from // 0 to logical_screen_height inclusively. For non-interlaced images only GetDevelopedRowQuantity is usable, // allowing an application to hide not yet loaded rows. If the image is interlaced, return value of // GetCurrentPassIndex can vary from 0 to 3 inclusively, but it may jump e.g. from 1 to 3 because some // passes may be empty for small images. For interlaced case, loaded_row_quantity resets every time as a // new pass starts to unroll. Generally speaking, the application may not take into account values from // GetDevelopedRowQuantity for passes other than the first (for which hiding needed), just updating the // display image wholly while it isn't transmitted completely. int GetDevelopedRowQuantity () const; int GetCurrentPassIndex () const; // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // The next two static functions are, respectively, to generate a ready-to-save GIF animation from a // sequence of raster images, and from a loaded GIF animation a ready-to-display image sequence. // From a raster image sequence provided, this function assembles an animation with the smallest size // possible for future reincarnation into a GIF file. The function is responsible for setting of the next // data members of an AnimationFrame object: ImagePtr, DisposalMethod, and PositionX with PositionY; the // remaining is left for the user. All images in rqImageSequence must be already paletted and can be with // or without a visibility mask. Parameter rqAnimation must be allocated and have the same length as // rqImageSequence (data members of AnimationFrame objects may be uninitialized). If bCropFrameImages is // 'true', then only a subimage of a frame will be saved whenever it's possible reasoning from pixels of // the previous frame: the changing pixels' bounding rectangular area is written in such cases instead of // the full frame. Setting to 'true' bWriteUnchangingPixelsAsTransparency means writing transparency // color's palette index for pixels which remain still if compare with the previous frame: this allows by // now "looking through this frame at the previous one" on per-pixel level, which increases compression // efficiency as well. Ability of lossy compression is supplied by parameter fRequiredPixelSimilarity that // defines which difference between two corresponding pixels from two adjacent frames is to be considered // as meaning; extreme values are: 0.0 -- almost all pixel pairs will fall into "the same", 1.0 -- strict // equality is needed to consider two pixels as "the same". The last animation frame gets disposal method // DT_RESTORE_TO_BACKGROUND. Color reduction and palette shrinking are out of the scope of this function. static void GenerateInputAnimation (const RasterImageSequence& rqImageSequence, Animation& rqAnimation, bool bCropFrameImages, bool bWriteUnchangingPixelsAsTransparency, float fRequiredPixelSimilarity = 1.0f); // Taking a GIF animation, this function produces a sequence of raster images with the same dimensions // correspondingly to the logical screen, all having IT_RGB_8_8_8 type and, for the uniformity reasons, // each with a visibility mask associated. Parameter array rqImageSequence must have the same length as // rqAnimation (images inside the sequence should be uninitialized). Parameter rqForRestToPrevImages is // just a smart pointer with no special meaning for the user; it must be created beforehand and freed when // it's done (it is caused by presence of the feature of loading from a dynamic bytestream). Setting of // bLastFrameOnly to 'true' may be useful when image sequence construction is needed on-the-fly while // entire animation is not yet downloaded from a dynamic bytestream, so only an image from the last // animation frame, after that frame is freshly transmitted, is processed and appended to the image // sequence. static void GenerateOutputImageSequence (const Animation& rqAnimation, RasterImageSequence& rqImageSequence, StillArray<RasterImagePtr>& rqForRestToPrevImages, bool bLastFrameOnly = false); // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - private: void WriteImage (Stream& rqStream); void WriteAnimation (Stream& rqStream); void WriteImageData (const RasterImagePtr& rspqImage, int iBitsPerPixel, bool bInterlaced, ProgressProbe& rqProgress, float fScopeCoefficient, Stream& rqStream); static bool ArePixelsSimilar (int iX0, int iY0, int iX1, int iY1, const RasterImagePtr& rspqImage0, const RasterImagePtr& rspqImage1, float fRequiredPixelSimilarity); bool LoadHeadingData (int iBytestreamSize = -1); int LoadImageData (int& riNextReadPos, int iWidth, int iHeight, bool bInterlaced, const RasterImage::Palette& rqActiveColorTable, AnimationFrame* pqAnimationFrame, int iBytestreamSize, bool bAnimationFrame, RasterImagePtr& rspqImage); int GetIrlcRow (int iPass, int iRowWithinPass) const; void UpdateInterlacedView (RasterImagePtr& rspqImage) const; RasterImagePtr m_spqImageSaveTo; Animation m_qAnimationSaveTo; StillArray<RasterImage::Palette> m_qLocalColorTablesSaveTo; StillArray<int> m_qFrameBitsPerPixelSaveTo; int m_iLogicalScreenWidth, m_iLogicalScreenHeight; int m_iBitsPerPixel; bool m_bHasGlobalColorTable; RasterImage::Palette m_qGlobalColorTable; int m_iBackgroundColorIndex; bool m_bIsAnimated; // (default: false) bool m_bTitleImageIsInterlaced; // (default: false) int m_iLoopQuantity; int m_iFirstIDOrGCEPosition; int m_iDevelopedRowQuantity, m_iCurrentPassIndex; StillArray<char> m_qCompressedImageData, m_qDecompressedImageData; StillArray<bool> m_qRowsToFilledState; StillArray<char> m_qSavedImageRow; RasterImage::VisibilityMask m_qSavedVMRow; bool m_bDraftImageAllocated; // (default: false) bool m_bDynaInitialized; // (default: false) bool m_bHasRestorePoint; // (default: false) bool m_bHasNRPALSB; // (default: false) bool m_bHasAnimationRestorePoint; // (default: false) int m_iNextReadPosAfterLastSubBlock, m_iRestoreX, m_iRestoreY, m_iRestoreBytePos, m_iRestoreBitRatio, m_iRestorePass, m_iRestoreRowWithinPass, m_iNextReadPosAfterLastAnimationFrame, m_iAnimationRestorePointId; bool m_bRestoreLastFrameWithNoGCE; void* m_pvLzw; // default: 0 static const PaletteColor ms_qTransparencyColor; // black static const PaletteColor ms_qDraftColor; // white static const int ms_aiIrlcStrt[4]; static const int ms_aiIrlcStep[4]; static const float ms_fPixelSimilarityBaseMapper; // 0.95 }; #include "QFormatGif.inl" typedef SmartPointer<FormatGif> FormatGifPtr; } #endif
gpl-2.0
shinji00/dev-tools
tools/minifier/html/minifier.html
5906
<link rel="stylesheet" href="tools/minifier/html/style.css"/> <script src="tools/minifier/html/minifier.js" type="application/javascript"></script> <script type="application/javascript"> $(document).ready(function () { $('#minifier a._TYPE_CODE_').tab('show'); $('#minifier a').click(function (e) { e.preventDefault(); $(this).tab('show'); }); }); </script> <div> <ul class="nav nav-tabs" id="minifier"> <li><a class="css" href="#css">css</a></li> <li><a class="js" href="#js">js</a></li> <li><a class="html" href="#html">html</a></li> </ul> <div class="tab-content" style="margin-top: 15px"> <div class="tab-pane" id="css"> <form action="" method="post" class="form-horizontal"> <input type="hidden" name="type_code" value="css"/> <div class="form-group"> <label for="css_code" class="col-sm-2 control-label">CSS code</label> <div class="col-sm-10"> <textarea id="css_code" class="form-control" name="css_code" style="min-height: 200px">[CSS_CODE]</textarea> </div> </div> <div class="form-group"> <div class="col-sm-offset-2 col-sm-10"> <button type="submit" class="btn btn-primary">Send</button> </div> </div> <br/> <!-- BEGIN css_statistic --> <div class="form-group"> <div class="col-sm-offset-2 col-sm-10"> <div class="help-block"> Original: [original]b, minified: [minified]b <br/> The difference: [difference]b or [difference_percent]% </div> </div> </div> <!-- END css_statistic --> <div class="form-group"> <label class="col-sm-2 control-label">Result</label> <div class="col-sm-10"> <span onclick="selectText('result-css');" class="btn-selected">Select</span> <pre class="result" id="result-css">[MINIFY_CSS]</pre> </div> </div> </form> </div> <div class="tab-pane" id="js"> <form action="" method="post" class="form-horizontal"> <input type="hidden" name="type_code" value="js"/> <div class="form-group"> <label for="js_code" class="col-sm-2 control-label">JS code</label> <div class="col-sm-10"> <textarea id="js_code" class="form-control" name="js_code" style="min-height: 200px">[JS_CODE]</textarea> </div> </div> <div class="form-group"> <div class="col-sm-offset-2 col-sm-10"> <button type="submit" class="btn btn-primary">Send</button> </div> </div> <br/> <!-- BEGIN js_statistic --> <div class="form-group"> <div class="col-sm-offset-2 col-sm-10"> <div class="help-block"> Original: [original]b, minified: [minified]b <br/> The difference: [difference]b or [difference_percent]% </div> </div> </div> <!-- END js_statistic --> <div class="form-group"> <label class="col-sm-2 control-label">Result</label> <div class="col-sm-10"> <span onclick="selectText('result-js');" class="btn-selected">Select</span> <pre class="result" id="result-js">[MINIFY_JS]</pre> </div> </div> </form> </div> <div class="tab-pane" id="html"> <form action="" method="post" class="form-horizontal"> <input type="hidden" name="type_code" value="html"/> <div class="form-group"> <label for="HTML_code" class="col-sm-2 control-label">HTML code</label> <div class="col-sm-10"> <textarea id="html_code" class="form-control" name="html_code" style="min-height: 200px">[HTML_CODE]</textarea> </div> </div> <div class="form-group"> <div class="col-sm-offset-2 col-sm-10"> <button type="submit" class="btn btn-primary">Send</button> </div> </div> <br/> <!-- BEGIN html_statistic --> <div class="form-group"> <div class="col-sm-offset-2 col-sm-10"> <div class="help-block"> Original: [original]b, minified: [minified]b <br/> The difference: [difference]b or [difference_percent]% </div> </div> </div> <!-- END html_statistic --> <div class="form-group"> <label class="col-sm-2 control-label">Result</label> <div class="col-sm-10"> <span onclick="selectText('result-html');" class="btn-selected">Select</span> <pre class="result" id="result-html">[MINIFY_HTML]</pre> </div> </div> </form> </div> </div> </div>
gpl-2.0
ssj71/midifilter.lv2
modgui/icon-midichord.html
5742
<div class="mod-pedal x42-midifilter{{{cns}}} x42-midi-midichord"> <div mod-role="drag-handle" class="mod-drag-handle"></div> <div class="x42-brand"><h1 title="Brought to you by x42.">x42</h1></div> <div class="x42-plugin-name"><h1>MIDI Chord Builder</h1></div> <div class="mod-light on" mod-role="bypass-light"></div> <div class="mod-footswitch" mod-role="bypass"></div> <div class="mod-enum-top-group clearfix"> <div class="mod-control-group mod-enumerated-group bottom float"> <span class="mod-knob-title">Midi Channel</span> <div class="mod-enumerated" mod-role="input-control-port" mod-port-symbol="channelf" mod-widget="custom-select"> <div mod-role="input-control-value" mod-port-symbol="channelf" class="mod-enumerated-selected"></div> <div class="mod-enumerated-list"> <div mod-role="enumeration-option" mod-port-value="0">Any</div> <div mod-role="enumeration-option" mod-port-value="1">1</div> <div mod-role="enumeration-option" mod-port-value="2">2</div> <div mod-role="enumeration-option" mod-port-value="3">3</div> <div mod-role="enumeration-option" mod-port-value="4">4</div> <div mod-role="enumeration-option" mod-port-value="5">5</div> <div mod-role="enumeration-option" mod-port-value="6">6</div> <div mod-role="enumeration-option" mod-port-value="7">7</div> <div mod-role="enumeration-option" mod-port-value="8">8</div> <div mod-role="enumeration-option" mod-port-value="9">9</div> <div mod-role="enumeration-option" mod-port-value="10">10</div> <div mod-role="enumeration-option" mod-port-value="11">11</div> <div mod-role="enumeration-option" mod-port-value="12">12</div> <div mod-role="enumeration-option" mod-port-value="13">13</div> <div mod-role="enumeration-option" mod-port-value="14">14</div> <div mod-role="enumeration-option" mod-port-value="15">15</div> <div mod-role="enumeration-option" mod-port-value="16">16</div> </div> </div> </div> <div class="mod-control-group mod-enumerated-group bottom float" style="width:150px"> <span class="mod-knob-title">Scale</span> <div class="mod-enumerated" mod-role="input-control-port" mod-port-symbol="scale" mod-widget="custom-select"> <div mod-role="input-control-value" mod-port-symbol="scale" class="mod-enumerated-selected"></div> <div class="mod-enumerated-list"> <div mod-role="enumeration-option" mod-port-value="0">C Major</div> <div mod-role="enumeration-option" mod-port-value="1">C# Major</div> <div mod-role="enumeration-option" mod-port-value="2">D Major</div> <div mod-role="enumeration-option" mod-port-value="3">D# Major</div> <div mod-role="enumeration-option" mod-port-value="4">E Major</div> <div mod-role="enumeration-option" mod-port-value="5">F Major</div> <div mod-role="enumeration-option" mod-port-value="6">F# Major</div> <div mod-role="enumeration-option" mod-port-value="7">G Major</div> <div mod-role="enumeration-option" mod-port-value="8">G# Major</div> <div mod-role="enumeration-option" mod-port-value="9">A Major</div> <div mod-role="enumeration-option" mod-port-value="10">A# Major</div> <div mod-role="enumeration-option" mod-port-value="11">B Major</div> </div> </div> </div> </div> <div class="clearfix top buttongrid"> <div class="togglebtn on" mod-widget="switch" mod-role="input-control-port" mod-port-symbol="c1">Prime</div> <div class="togglebtn on" mod-widget="switch" mod-role="input-control-port" mod-port-symbol="c3">Third</div> <div class="togglebtn on" mod-widget="switch" mod-role="input-control-port" mod-port-symbol="c5">5th</div> <div class="togglebtn on" mod-widget="switch" mod-role="input-control-port" mod-port-symbol="c6">6th</div> <div class="togglebtn on" mod-widget="switch" mod-role="input-control-port" mod-port-symbol="c7">7th</div> <div class="togglebtn on" mod-widget="switch" mod-role="input-control-port" mod-port-symbol="c8">8va</div> <div class="togglebtn on" mod-widget="switch" mod-role="input-control-port" mod-port-symbol="c9">9th</div> <div class="togglebtn on" mod-widget="switch" mod-role="input-control-port" mod-port-symbol="c11">11th</div> <div class="togglebtn on" mod-widget="switch" mod-role="input-control-port" mod-port-symbol="c13">13th</div> <div class="togglebtn on" mod-widget="switch" mod-role="input-control-port" mod-port-symbol="_8">Bass</div> </div> <div class="mod-pedal-input"> {{#effect.ports.midi.input}} <div class="mod-input mod-input-disconnected" title="{{name}}" mod-role="input-midi-port" mod-port-symbol="{{symbol}}"> <div class="mod-pedal-input-image"></div> </div> {{/effect.ports.midi.input}} </div> <div class="mod-pedal-output"> {{#effect.ports.midi.output}} <div class="mod-output mod-output-disconnected" title="{{name}}" mod-role="output-midi-port" mod-port-symbol="{{symbol}}"> <div class="mod-pedal-output-image"></div> </div> {{/effect.ports.midi.output}} </div> </div>
gpl-2.0
EPiCS/reconos
demos/sort_demo/xilkernel/sort_demo_bsp/microblaze_0/libsrc/standalone_v3_03_a/src/profile/profile_config.h
1355
////////////////////////////////////////////////////////////////////// // // Copyright (c) 2002-11 Xilinx, Inc. All rights reserved. // Xilinx, Inc. // // XILINX IS PROVIDING THIS DESIGN, CODE, OR INFORMATION "AS IS" AS A // COURTESY TO YOU. BY PROVIDING THIS DESIGN, CODE, OR INFORMATION AS // ONE POSSIBLE IMPLEMENTATION OF THIS FEATURE, APPLICATION OR // STANDARD, XILINX IS MAKING NO REPRESENTATION THAT THIS IMPLEMENTATION // IS FREE FROM ANY CLAIMS OF INFRINGEMENT, AND YOU ARE RESPONSIBLE // FOR OBTAINING ANY RIGHTS YOU MAY REQUIRE FOR YOUR IMPLEMENTATION. // XILINX EXPRESSLY DISCLAIMS ANY WARRANTY WHATSOEVER WITH RESPECT TO // THE ADEQUACY OF THE IMPLEMENTATION, INCLUDING BUT NOT LIMITED TO // ANY WARRANTIES OR REPRESENTATIONS THAT THIS IMPLEMENTATION IS FREE // FROM CLAIMS OF INFRINGEMENT, IMPLIED WARRANTIES OF MERCHANTABILITY // AND FITNESS FOR A PARTICULAR PURPOSE. // // $Id: profile_config.h,v 1.1.2.2 2011/05/30 06:46:18 svemula Exp $ // ////////////////////////////////////////////////////////////////////// #ifndef _PROFILE_CONFIG_H #define _PROFILE_CONFIG_H #define BINSIZE 4 #define SAMPLE_FREQ_HZ 100000 #define TIMER_CLK_TICKS 1000 #define PROFILE_NO_FUNCPTR_FLAG 0 //#define PROFILE_TIMER_BASEADDR 0x0c000500 #define PROFILE_TIMER_BASEADDR 0x00608000 #define PROFILE_TIMER_INTR_ID 0 #define TIMER_CONNECT_INTC #endif
gpl-2.0
lcp0578/mediawiki
maintenance/language/generateNormalizerDataMl.php
2183
<?php /** * Generates the normalizer data file for Malayalam. * * 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. * http://www.gnu.org/copyleft/gpl.html * * @file * @ingroup MaintenanceLanguage */ require_once __DIR__ . '/../Maintenance.php'; /** * Generates the normalizer data file for Malayalam. * For NFC see includes/compat/normal. * * @ingroup MaintenanceLanguage */ class GenerateNormalizerDataMl extends Maintenance { public function __construct() { parent::__construct(); $this->mDescription = 'Generate the normalizer data file for Malayalam'; } public function getDbType() { return Maintenance::DB_NONE; } public function execute() { $hexPairs = array( # From http://unicode.org/versions/Unicode5.1.0/#Malayalam_Chillu_Characters '0D23 0D4D 200D' => '0D7A', '0D28 0D4D 200D' => '0D7B', '0D30 0D4D 200D' => '0D7C', '0D32 0D4D 200D' => '0D7D', '0D33 0D4D 200D' => '0D7E', # From http://permalink.gmane.org/gmane.science.linguistics.wikipedia.technical/46413 '0D15 0D4D 200D' => '0D7F', ); $pairs = array(); foreach ( $hexPairs as $hexSource => $hexDest ) { $source = UtfNormal\Utils::hexSequenceToUtf8( $hexSource ); $dest = UtfNormal\Utils::hexSequenceToUtf8( $hexDest ); $pairs[$source] = $dest; } global $IP; file_put_contents( "$IP/serialized/normalize-ml.ser", serialize( $pairs ) ); echo "ml: " . count( $pairs ) . " pairs written.\n"; } } $maintClass = 'GenerateNormalizerDataMl'; require_once RUN_MAINTENANCE_IF_MAIN;
gpl-2.0