hexsha stringlengths 40 40 | size int64 5 1.05M | ext stringclasses 588
values | lang stringclasses 305
values | max_stars_repo_path stringlengths 3 363 | max_stars_repo_name stringlengths 5 118 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 10 | max_stars_count float64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringdate 2015-01-01 00:00:35 2022-03-31 23:43:49 ⌀ | max_stars_repo_stars_event_max_datetime stringdate 2015-01-01 12:37:38 2022-03-31 23:59:52 ⌀ | max_issues_repo_path stringlengths 3 363 | max_issues_repo_name stringlengths 5 118 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 10 | max_issues_count float64 1 134k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 3 363 | max_forks_repo_name stringlengths 5 135 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 10 | max_forks_count float64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringdate 2015-01-01 00:01:02 2022-03-31 23:27:27 ⌀ | max_forks_repo_forks_event_max_datetime stringdate 2015-01-03 08:55:07 2022-03-31 23:59:24 ⌀ | content stringlengths 5 1.05M | avg_line_length float64 1.13 1.04M | max_line_length int64 1 1.05M | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4a1310369ca74331970e703939192028ef025ec5 | 8,061 | h | C | ascent/core/Vars.h | AnyarInc/ascent-beta | db65bd071931d1eff07eb32070675085e63cfb43 | [
"Apache-2.0"
] | 6 | 2017-09-15T19:59:05.000Z | 2022-02-11T11:07:19.000Z | ascent/core/Vars.h | AnyarInc/ascent-beta | db65bd071931d1eff07eb32070675085e63cfb43 | [
"Apache-2.0"
] | null | null | null | ascent/core/Vars.h | AnyarInc/ascent-beta | db65bd071931d1eff07eb32070675085e63cfb43 | [
"Apache-2.0"
] | null | null | null | // Copyright (c) 2015 - 2016 Anyar, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#pragma once
#include "Parameter.h"
#include "ToString.h"
#include <iostream>
#include <functional>
#include <map>
#include <sstream>
#include <memory>
namespace asc
{
class Vars
{
friend class Module;
private:
Simulator& simulator;
// stores pointers to maps of Parameters
std::map<std::type_index, void*> maps;
std::map<std::type_index, std::function<void()>> delete_map;
// A vector of all initialized object typeid(T).name() definitions and variable names. e.g. ("double", "height")
std::vector<std::pair<std::string, std::string>> names;
std::map<std::string, std::function<void()>> update_map;
std::map<std::string, std::function<std::string(const size_t i)>> print_map;
std::map<std::string, std::function<std::string()>> type_map;
std::map<std::string, std::function<size_t()>> length_map;
std::map<std::string, std::function<size_t()>> t_begin_map;
std::map<std::string, std::function<void(size_t steps)>> steps_map;
std::map<std::string, std::function<void(bool infinite)>> steps_infinite_map;
template <typename T>
std::map<std::string, Parameter<T>>& getMap()
{
return *static_cast<std::map<std::string, Parameter<T>>*>(maps[typeid(T)]);
}
template <typename T>
T* getPtr(const std::string &id)
{
if (maps.count(typeid(T)))
{
auto& map = getMap<T>();
auto p = map.find(id);
if (p != map.end())
return p->second.ptr;
else
simulator.setError("Variable <" + id + "> could not be located.");
}
else
simulator.setError((std::string)"No variables of type <" + typeid(T).name() + "> were set for access.");
return nullptr;
}
public:
Vars(Simulator& simulator) : simulator(simulator) {}
~Vars()
{
for (auto p : maps)
delete_map[p.first]();
}
template <typename T>
Parameter<T>& initNoTrack(const std::string &id, T &x)
{
if (maps.count(typeid(T)) == 0) // if this type hasn't been initialized before, then create a new container for this type
{
auto map_ptr = new std::map<std::string, Parameter<T>>();
maps[typeid(T)] = map_ptr;
delete_map[typeid(T)] = [=] () { delete map_ptr; };
}
auto& map = getMap<T>();
auto p = map.find(id);
if (p != map.end())
simulator.setError("id of <" + id + "> was already initialized. Overwriting.");
names.push_back(std::pair<std::string, std::string>(typeid(T).name(), id));
Parameter<T> param(&simulator);
param.ptr = &x;
map.emplace(id, param); // copy of Parameter param made (copy is legitimate because its pointers are copied)
Parameter<T>& ref = map[id]; // get reference to copy
type_map[id] = [&]() -> std::string { return ref.type(); };
return ref;
}
template <typename T>
void init(const std::string& id, T& x, size_t steps)
{
Parameter<T>& ref = initNoTrack(id, x);
ref.steps = steps;
update_map[id] = [&]() { ref.update(); };
length_map[id] = [&]() -> size_t { return ref.length(); };
t_begin_map[id] = [&]() -> size_t { return ref.t_begin; };
steps_map[id] = [&](size_t steps) { ref.steps = steps; };
steps_infinite_map[id] = [&](bool inifinite) { ref.infinite = inifinite; };
print_map[id] = [&](const size_t i) -> std::string { return ToString::print(ref.x[i]); };
}
bool trackable(const std::string& id)
{
if (update_map.count(id))
return true;
return false;
}
void update(const std::string& id)
{
if (update_map.count(id))
update_map[id]();
else
simulator.setError("Access failure in Vars::update(const std::string& id)");
}
void update() // updates all tracked parameters
{
for (auto& p : update_map)
p.second();
}
std::string print(const std::string& id)
{
size_t n = length(id) - 1; // get last element
return print(id, n);
}
std::string print(const std::string& id, const size_t i)
{
if (print_map.count(id))
return print_map[id](i);
simulator.setError("Access failure in Vars::print(const std::string& id, const size_t i)");
return "";
}
std::string type(const std::string& id)
{
if (type_map.count(id))
return type_map[id]();
simulator.setError("Access failure in Vars::type(const std::string& id)");
return "";
}
size_t length(const std::string& id) // returns length of id's Parameter history
{
if (length_map.count(id))
return length_map[id]();
simulator.setError("Access failure in Vars::length(const std::string& id)");
return 0;
}
size_t tBegin(const std::string& id)
{
if (t_begin_map.count(id))
return t_begin_map[id]();
simulator.setError("Access failure in Vars::tBegin(const std::string& id)");
return 0;
}
template <typename T>
bool set(const std::string& id, const T& x)
{
T* ptr = getPtr<T>(id);
if (ptr)
{
*ptr = x;
return true;
}
simulator.setError("id of <" + id + "> could not be accessed via Vars::set<T>(const std::string& id, const T& x).");
return false;
}
template <typename T>
T get(const std::string& id)
{
T* ptr = getPtr<T>(id);
if (ptr)
return *ptr;
simulator.setError("id of <" + id + "> could not be accessed via Vars::get<T>(const std::string& id).");
return T();
}
template <typename T>
std::deque<T> history(const std::string &id)
{
if (maps.count(typeid(T)))
{
auto& map = getMap<T>();
auto p = map.find(id);
if (p != map.end())
return p->second.history();
else
simulator.setError("Variable <" + id + "> could not be located.");
}
else
simulator.setError(static_cast<std::string>("No variables of type <") + typeid(T).name() + "> were set for access.");
return std::deque<T>();
}
void steps(const std::string& id, size_t steps)
{
if (steps_map.count(id))
steps_map[id](steps);
else
simulator.setError("Access failure in Vars::setSteps(" + id + ", " + std::to_string(steps) + ")");
}
void steps(const std::string& id, bool infinite = true)
{
if (steps_infinite_map.count(id))
steps_infinite_map[id](infinite);
else
simulator.setError("Access failure in Vars::setStepsInfinite(" + id + ", " + std::to_string(infinite) + ")");
}
auto& getNames() { return names; }
};
} | 32.244 | 131 | 0.533805 |
d1144769e2d47dda46ea8e8330b6b69afd578b47 | 1,244 | h | C | src/icmp6.h | clarinette9/dperf | 4087f2f7f8881ce5bca86af222c5f87ea9a3cf2b | [
"Apache-2.0"
] | 597 | 2021-12-21T08:04:41.000Z | 2022-03-31T15:43:33.000Z | src/icmp6.h | clarinette9/dperf | 4087f2f7f8881ce5bca86af222c5f87ea9a3cf2b | [
"Apache-2.0"
] | 39 | 2021-12-31T07:56:47.000Z | 2022-03-31T11:37:46.000Z | src/icmp6.h | clarinette9/dperf | 4087f2f7f8881ce5bca86af222c5f87ea9a3cf2b | [
"Apache-2.0"
] | 84 | 2021-12-22T07:30:05.000Z | 2022-03-31T11:32:24.000Z | /*
* Copyright (c) 2021 Baidu.com, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Author: Jianzhang Peng (pengjianzhang@baidu.com)
*/
#ifndef __ICMP6_H_
#define __ICMP6_H_
#include <stdbool.h>
#include <rte_mbuf.h>
#include <netinet/icmp6.h>
#include "mbuf.h"
struct work_space;
void icmp6_process(struct work_space *ws, struct rte_mbuf *m);
void icmp6_ns_request(struct work_space *ws);
static inline bool icmp6_is_neigh(struct rte_mbuf *m)
{
uint8_t type = 0;
struct icmp6_hdr *icmp6h = NULL;
icmp6h = mbuf_icmp6_hdr(m);
type = icmp6h->icmp6_type;
if ((type == ND_NEIGHBOR_SOLICIT) || (type == ND_NEIGHBOR_ADVERT)) {
return true;
}
return false;
}
#endif
| 27.043478 | 75 | 0.717846 |
6d102eb4123495e3e3afb46f8ff55932b033e538 | 17,016 | c | C | src/dictionary.c | eerpini/Retrieval-Tree | f270c54fbdc88c9c25515aed9a9e99a50d8a4450 | [
"MIT"
] | 2 | 2015-08-28T21:45:42.000Z | 2015-12-26T04:25:54.000Z | src/dictionary.c | eerpini/Retrieval-Tree | f270c54fbdc88c9c25515aed9a9e99a50d8a4450 | [
"MIT"
] | null | null | null | src/dictionary.c | eerpini/Retrieval-Tree | f270c54fbdc88c9c25515aed9a9e99a50d8a4450 | [
"MIT"
] | null | null | null | #include <dictionary.h>
#include <cmdutils.h>
#include <strutils.h>
dict * new_dictionary (){
return (dict *)trie_create();
}
/*
* Recursive call to insert a word
*/
bool _insert_word_recur(trienode * root, char *word, int wlen){
int i;
/*
* if no match is found return false
* If exact match return true
* if I am the prefix, check children
* if all children return false
* add new child with suffix
* if some child return true
* return true
* if I am a partial match, split myself
* push unmatching suffix as new child and parent of my children
* push unmatching suffix in word as my new child
* if I am a partial match and the input word is a prefix of me - HANDLED by the sub if else block of above
* push my unmatching suffix as a new child and make that the parent of all my children
* make myself a word
*/
void ** children;
int num_children;
int match_index = strcmp2(word, root->value);
int my_val_len = strlen(root->value);
char *suffix;
trienode * newchild;
if(match_index == STRCMP_NO_MATCH){
return FAILURE;
}
else if(match_index == STRCMP_EXACT_MATCH){
root->is_word = TRUE;
return SUCCESS;
}
else{
//Check if I am a complete prefix
if(match_index == my_val_len -1 ){
children = trie_get_children(root);
for(i = 0; i < trie_num_children(root); i++){
if( _insert_word_recur( (trienode *)children[i],
word + my_val_len, wlen - my_val_len)){
xfree(children);
return SUCCESS;
}
}
trie_add_child( root,
trie_createnode (word + my_val_len, wlen - my_val_len));
xfree(children);
return SUCCESS;
}
//Split myself
else {
//strsplit resizes the first arg
suffix = strsplit(&(root->value), match_index + 1);
//create a new child with the suffix
newchild = trie_createnode(suffix, strlen(suffix));
xfree(suffix);
children = trie_get_children(root);
num_children = trie_num_children(root);
for(i = 0; i < num_children; i++){
//remove the child from root and attach to new child
trie_remove_child (root, (trienode *)children[i]);
trie_add_child (newchild, (trienode *)children[i]);
}
trie_add_child (root, newchild);
newchild->is_word = root->is_word;
root->is_word = FALSE;
//Add the unmatching suffix of the input word as a new child
if(match_index == wlen - 1){
//The new split root is a word
root->is_word = TRUE;
}
else{
trie_add_child (root,
trie_createnode(word + match_index +1, wlen - match_index -1));
}
xfree(children);
return SUCCESS;
}
}
return FAILURE;
}
/*
* Insert a word into the dictionary
*/
bool insert(dict * dictionary, char *word, int wlen){
if(dictionary == NULL || word == NULL || wlen <= 0){
return FAILURE;
}
void ** roots = trie_get_children(dictionary->root);
int num_children = trie_num_children(dictionary->root);
int i = 0;
for( i=0; i< num_children; i++){
if(_insert_word_recur( (trienode *)roots[i],
word, wlen)){
xfree(roots);
return SUCCESS;
}
}
trie_add_child(dictionary->root,
trie_createnode(word, wlen));
xfree(roots);
return SUCCESS;
}
void _print_words_recur( trienode * root, int indent){
if(root == NULL)
return;
int i = 0;
void ** children = trie_get_children(root);
int num_children = trie_num_children(root);
for (i = 0; i< indent-1; i++){
printf("| ");
}
printf("|-------");
if(root->is_word){
printf("$%s#$ %d\n", root->value, root->num_strings );
}
else{
printf("$%s$ %d\n", root->value, root->num_strings );
}
for( i=0; i< num_children; i++){
_print_words_recur( (trienode *)children[i], indent + 1);
}
xfree(children);
return;
}
/*
* Print the words in the dictionary as a tree
*/
void print (dict *dictionary){
if(dictionary == NULL){
return;
}
int i = 0;
int indent = 0;
word_count(dictionary);
void ** roots = trie_get_children(dictionary->root);
int num_children = trie_num_children(dictionary->root);
printf("ROOT %d\n", dictionary->root->num_strings);
for( i=0; i< num_children; i++){
_print_words_recur( (trienode *)roots[i], indent + 1);
}
xfree(roots);
return;
}
/*
* Recursively populate number of valid strings in the sub tree
*/
int _num_strings_in_subtree_recur(trienode *root){
if(root == NULL){
return FAILURE;
}
int i = 0;
void ** children = trie_get_children(root);
if(children == NULL && root->is_word){
return 1;
}
int count = 0;
for( i=0; i< trie_num_children(root); i++){
count += _num_strings_in_subtree_recur( (trienode *)children[i]);
}
if(root->is_word ){
root->num_strings = count +1;
}
else{
root->num_strings = count;
}
xfree(children);
return root->num_strings;
}
int word_count(dict *dictionary){
int i;
void ** roots = trie_get_children(dictionary->root);
int count = 0;
for( i=0; i< trie_num_children(dictionary->root) ; i++){
count += _num_strings_in_subtree_recur( (trienode *)roots[i]);
}
dictionary->root->num_strings = count;
xfree(roots);
return count;
}
bool _find_recur(trienode * root, char *s){
int i;
void ** children = NULL;
int match_index = strcmp2(root->value, s);
if(match_index == STRCMP_EXACT_MATCH){
if(root->is_word)
return SUCCESS;
else
return FAILURE;
}
else if (match_index == STRCMP_NO_MATCH){
return FAILURE;
}
else{
if(match_index == strlen(root->value) -1){
children = trie_get_children(root);
for (i=0; i< trie_num_children(root); i++){
if(_find_recur((trienode *)children[i], s+match_index+1)){
xfree(children);
return SUCCESS;
}
}
}
}
xfree(children);
return FAILURE;
}
bool find (dict * dictionary, char * s){
if(dictionary == NULL || s == NULL){
return FAILURE;
}
int i;
void ** roots = trie_get_children(dictionary->root);
int num_children = trie_num_children(dictionary->root);
for( i=0; i<num_children; i++){
if(_find_recur((trienode *)roots[i], s)){
xfree(roots);
return SUCCESS;
}
}
xfree(roots);
return FAILURE;
}
void _fill_strings_recur (trienode * root, void ** strings, int len){
int i;
void **children ;
int running_count = 0;
for( i=0; i < len; i++){
strcpy((char *)strings[i] + strlen((char*)strings[i]), root->value);
}
children = trie_get_children(root);
if(children == NULL){
return;
}
if(root->is_word && root->num_strings > 1){
running_count++;
}
for(i=0; i < trie_num_children(root); i++){
_fill_strings_recur( (trienode *)children[i], (void **)(strings + running_count), ((trienode *)children[i])->num_strings);
running_count +=((trienode *) children[i])->num_strings;
}
xfree(children);
return;
}
void _pfind_recur(trienode * root, char *s, int s_start, lookup * result){
int i;
void ** children ;
int match_index = strcmp2(root->value, s+s_start);
int running_count = 0;
if(match_index == STRCMP_EXACT_MATCH){
//Populate string counts and return if 0
if(_num_strings_in_subtree_recur(root) == 0){
printf("THIS SHOUD NOT HAPPEN\n");
return;
}
//Allocate memory for the prefixes
result->matches = (void **)malloc(sizeof(char *) * root->num_strings);
result->len = root->num_strings;
//Append whole string so far
for(i=0; i< root->num_strings; i++){
result->matches[i] = (void *)malloc(sizeof(char) *MAX_WORD_SIZE);
strcpy(result->matches[i], s);
}
children = trie_get_children(root);
if(root->is_word && root->num_strings > 1){
running_count++;
}
for(i=0; i < trie_num_children(root); i++){
_fill_strings_recur( (trienode *)children[i], (void **)(result->matches + running_count), ((trienode *)children[i])->num_strings);
running_count += ((trienode *)children[i])->num_strings;
}
}
else if (match_index == STRCMP_NO_MATCH){
log("No match found for %s at node %s\n", s+s_start, root->value);
log("Returning becase no match was found for [%s] and word [%s] for segment %s\n", root->value, s, s + s_start);
return;
}
else{
log("LOG1 match index is [%d] and s_start is [%d] and strlen(s) is [%d] \n"
,match_index, s_start, strlen(s));
if(match_index == strlen(root->value) -1){
log("LOG1");
children = trie_get_children(root);
for (i=0; i< trie_num_children(root); i++){
_pfind_recur((trienode *)children[i], s, s_start + match_index+1, result);
if(result->len > 0){
xfree(children);
return ;
}
}
log("Returning because children did not have anything for [%s] and word [%s] for segment %s\n", root->value, s, s + s_start);
xfree(children);
return;
}
else if(match_index +1 == strlen(s) - s_start){
log("LOG2");
//if the passed prefix from above was a prefix of root->value
//Populate string counts and return if 0
if(_num_strings_in_subtree_recur(root) == 0){
log("Returning because num_strings is 0 for [%s] and word [%s] for segment %s\n", root->value, s, s + s_start);
return;
}
//Allocate memory for the prefixes
result->matches = (void **)malloc(sizeof(char *) * root->num_strings);
result->len = root->num_strings;
//Append whole string so far
for(i=0; i< root->num_strings; i++){
result->matches[i] = (void *)malloc(sizeof(char) *MAX_WORD_SIZE);
//Copy part of s and root->value
strncpy(result->matches[i], s, s_start);
strcpy((char *)result->matches[i] + s_start, root->value);
}
children = trie_get_children(root);
if(root->is_word && root->num_strings > 1){
running_count++;
}
for(i=0; i < trie_num_children(root); i++){
_fill_strings_recur( (trienode *)children[i], (void **)(result->matches + running_count), ((trienode *)children[i])->num_strings);
running_count += ((trienode *)children[i])->num_strings;
}
xfree(children);
return;
}
}
xfree(children);
return;
}
lookup * pfind( dict *dictionary, char *s){
if(dictionary == NULL || s == NULL){
return FAILURE;
}
int i;
void ** roots = trie_get_children(dictionary->root);
int num_children = trie_num_children(dictionary->root);
lookup * temp = malloc(sizeof(lookup));
temp->len = 0;
temp->matches = NULL;
for( i=0; i<num_children; i++){
_pfind_recur((trienode *)roots[i], s, 0, temp);
if(temp->len > 0){
xfree(roots);
return temp;
}
}
xfree(roots);
return temp;
}
bool _remove_recur(trienode * root, char *s, trienode **child_to_rm){
int i,j;
int num_children;
void ** children = NULL;
void ** merge_children = NULL;
void ** moving_children = NULL;
trienode *merge_child = NULL;
int merge_num = 0;
int match_index = strcmp2(root->value, s);
if(match_index == STRCMP_EXACT_MATCH){
if(root->is_word){
root->is_word = FALSE;
//Mark the current node for removal if it has no children
num_children = trie_num_children(root);
if(num_children == 0){
log("Exact match found, setting myself here");
*child_to_rm = root;
}
else if (num_children == 1){
//Reconcile
merge_children = trie_get_children(root);
merge_child = merge_children[0];
moving_children = trie_get_children(merge_child);
merge_num = trie_num_children(merge_child);
for(j=0; j < merge_num; j++){
trie_remove_child(merge_child, moving_children[j]);
trie_add_child(root, moving_children[j]);
}
//Concatenate strings
strjoin(&(root->value), merge_child->value);
root->is_word = merge_child->is_word;
trie_remove_child(root, merge_child);
trie_freenode(merge_child);
xfree(merge_children);
xfree(moving_children);
*child_to_rm = NULL;
}
else{
*child_to_rm = NULL;
}
return SUCCESS;
}
else{
return FAILURE;
}
}
else if (match_index == STRCMP_NO_MATCH){
return FAILURE;
}
else{
if(match_index == strlen(root->value) -1){
children = trie_get_children(root);
num_children = trie_num_children(root);
for (i=0; i< trie_num_children(root); i++){
log("Passing on to the next level with [%s] I have [%s]\n", s+match_index+1, root->value);
if(_remove_recur((trienode *)children[i], s+match_index+1, child_to_rm)){
if(*child_to_rm != NULL){
trie_remove_child(root, *child_to_rm);
trie_freenode(*child_to_rm);
*child_to_rm = NULL;
//Reconcile if only one child is remaining
if(trie_num_children(root) == 1 && !root->is_word){
//There is only one child anyway
void ** merge_children = trie_get_children(root);
trienode * merge_child = merge_children[0];
void ** moving_children = trie_get_children(merge_child);
int merge_num = trie_num_children(merge_child);
int j;
for(j=0; j < merge_num; j++){
trie_remove_child(merge_child, moving_children[j]);
trie_add_child(root, moving_children[j]);
}
//Concatenate strings
log("Root value before merge [%s] child value [%s]\n", root->value, merge_child->value);
strjoin(&(root->value), merge_child->value);
log("Root value after merge [%s] child value [%s]\n", root->value, merge_child->value);
root->is_word = merge_child->is_word;
trie_remove_child(root, merge_child);
trie_freenode(merge_child);
xfree(merge_children);
xfree(moving_children);
}
}
else{
log("Got succces with [%s] but did not have to do anything\n", root->value);
}
xfree(children);
return SUCCESS;
}
}
}
}
xfree(children);
return FAILURE;
}
bool remove_word ( dict *dictionary, char *s){
if(dictionary == NULL || s == NULL){
return FAILURE;
}
trienode * temp;
int i;
void ** roots = trie_get_children(dictionary->root);
int num_children = trie_num_children(dictionary->root);
for( i=0; i<num_children; i++){
if(_remove_recur((trienode *)roots[i], s, &temp) ){
if(temp != NULL){
trie_remove_child(dictionary->root, temp);
log("Removing the child here");
trie_freenode(temp);
}
xfree(roots);
return SUCCESS;
}
}
xfree(roots);
return FAILURE;
}
| 31.924953 | 146 | 0.532323 |
921a74bee3dad2a9eec3024afc1cfd4dc5461e37 | 236 | h | C | examples/jpeg/jpeg_debug.h | PPCDroid/external-liboil | 30c33c74706cc8cebe4f74c552d75d632eef02be | [
"BSD-2-Clause-NetBSD",
"BSD-2-Clause"
] | 1 | 2018-04-28T07:47:28.000Z | 2018-04-28T07:47:28.000Z | examples/jpeg/jpeg_debug.h | PPCDroid/external-liboil | 30c33c74706cc8cebe4f74c552d75d632eef02be | [
"BSD-2-Clause-NetBSD",
"BSD-2-Clause"
] | null | null | null | examples/jpeg/jpeg_debug.h | PPCDroid/external-liboil | 30c33c74706cc8cebe4f74c552d75d632eef02be | [
"BSD-2-Clause-NetBSD",
"BSD-2-Clause"
] | null | null | null |
#ifndef _JPEG_DEBUG_H_
#define _JPEG_DEBUG_H_
#define JPEG_DEBUG(n, format...) do{ \
if((n)<=JPEG_DEBUG_LEVEL)jpeg_debug((n),format); \
}while(0)
#define JPEG_DEBUG_LEVEL 4
void jpeg_debug(int n, const char *format, ... );
#endif
| 16.857143 | 51 | 0.711864 |
1aee6bfb3cafab2e7e1f56bddd263c32d9e05e5b | 10,370 | h | C | services/distributeddataservice/libs/distributeddb/syncer/src/single_ver_data_sync.h | openharmony-gitee-mirror/distributeddatamgr_datamgr | 3f17e1a6a6e0f83f3a346e87073b39dd949b0c9e | [
"Apache-2.0"
] | null | null | null | services/distributeddataservice/libs/distributeddb/syncer/src/single_ver_data_sync.h | openharmony-gitee-mirror/distributeddatamgr_datamgr | 3f17e1a6a6e0f83f3a346e87073b39dd949b0c9e | [
"Apache-2.0"
] | null | null | null | services/distributeddataservice/libs/distributeddb/syncer/src/single_ver_data_sync.h | openharmony-gitee-mirror/distributeddatamgr_datamgr | 3f17e1a6a6e0f83f3a346e87073b39dd949b0c9e | [
"Apache-2.0"
] | 1 | 2021-09-13T12:07:54.000Z | 2021-09-13T12:07:54.000Z | /*
* Copyright (c) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef SINGLE_VER_DATA_SYNC_NEW_H
#define SINGLE_VER_DATA_SYNC_NEW_H
#include "icommunicator.h"
#include "meta_data.h"
#include "single_ver_kvdb_sync_interface.h"
#include "single_ver_sync_task_context.h"
#include "sync_types.h"
#include "version.h"
#include "parcel.h"
namespace DistributedDB {
using SendDataItem = SingleVerKvEntry *;
struct DataSyncReSendInfo {
uint32_t sessionId = 0;
uint32_t sequenceId = 0;
TimeStamp start = 0; // means localwatermark
TimeStamp end = 0;
uint64_t packetId = 0;
};
class DataRequestPacket {
public:
DataRequestPacket() {};
~DataRequestPacket();
void SetData(std::vector<SendDataItem> &data);
const std::vector<SendDataItem> &GetData() const;
void SetEndWaterMark(WaterMark waterMark);
WaterMark GetEndWaterMark() const;
void SetLocalWaterMark(WaterMark waterMark);
WaterMark GetLocalWaterMark() const;
void SetPeerWaterMark(WaterMark waterMark);
WaterMark GetPeerWaterMark() const;
void SetSendCode(int32_t errCode);
int32_t GetSendCode() const;
void SetMode(int32_t mode);
int32_t GetMode() const;
void SetSessionId(uint32_t sessionId);
uint32_t GetSessionId() const;
void SetVersion(uint32_t version);
uint32_t GetVersion() const;
uint32_t CalculateLen() const;
void SetReserved(std::vector<uint64_t> &reserved);
std::vector<uint64_t> GetReserved() const;
uint64_t GetPacketId() const;
void SetFlag(uint32_t flag);
uint32_t GetFlag() const;
bool IsLastSequence() const;
void SetLastSequence();
void SetBasicInfo(int sendCode, uint32_t version, WaterMark localMark, WaterMark peerMark, int32_t mode);
private:
std::vector<SendDataItem> data_;
WaterMark endWaterMark_ = 0;
WaterMark localWaterMark_ = 0;
WaterMark peerWaterMark_ = 0;
int32_t sendCode_ = 0;
int32_t mode_ = SyncOperation::INVALID;
uint32_t sessionId_ = 0;
uint32_t version_ = SOFTWARE_VERSION_CURRENT;
std::vector<uint64_t> reserved_;
uint32_t flag_ = 0; // bit 0 used for isLastSequence
static const uint32_t IS_LAST_SEQUENCE = 0x1; // bit 0 used for isLastSequence, 1: is last, 0: not last
};
class DataAckPacket {
public:
DataAckPacket() {};
~DataAckPacket() {};
void SetData(uint64_t data);
uint64_t GetData() const;
void SetRecvCode(int32_t errorCode);
int32_t GetRecvCode() const;
void SetVersion(uint32_t version);
uint32_t GetVersion() const;
void SetReserved(std::vector<uint64_t> &reserved);
std::vector<uint64_t> GetReserved() const;
uint64_t GetPacketId() const;
static bool IsPacketIdValid(uint64_t packetId);
uint32_t CalculateLen() const;
private:
/*
* data_ is waterMark when revCode_ == LOCAL_WATER_MARK_NOT_INIT || revCode_ == E_OK;
* data_ is timer in milliSeconds when revCode_ == -E_SAVE_DATA_NOTIFY && data_ != 0.
*/
uint64_t data_ = 0;
int32_t recvCode_ = 0;
uint32_t version_ = SOFTWARE_VERSION_CURRENT;
std::vector<uint64_t> reserved_;
};
class SingleVerDataSync {
public:
SingleVerDataSync();
~SingleVerDataSync();
DISABLE_COPY_ASSIGN_MOVE(SingleVerDataSync);
static int Serialization(uint8_t *buffer, uint32_t length, const Message *inMsg);
static int DeSerialization(const uint8_t *buffer, uint32_t length, Message *inMsg);
static uint32_t CalculateLen(const Message *inMsg);
static int RegisterTransformFunc();
int Initialize(IKvDBSyncInterface *inStorage, ICommunicator *inCommunicateHandle,
std::shared_ptr<Metadata> &inMetadata, const std::string &deviceId);
int PushStart(SingleVerSyncTaskContext *context);
int PushPullStart(SingleVerSyncTaskContext *context);
int PullRequestStart(SingleVerSyncTaskContext *context);
int PullResponseStart(SingleVerSyncTaskContext *context);
int RequestRecv(SingleVerSyncTaskContext *context, const Message *message, WaterMark &pullEndWatermark);
int AckRecv(SingleVerSyncTaskContext *context, const Message *message);
void SendSaveDataNotifyPacket(SingleVerSyncTaskContext *context, uint32_t pktVersion, uint32_t sessionId,
uint32_t sequenceId);
void SendAck(SingleVerSyncTaskContext *context, uint32_t sessionId, uint32_t sequenceId, uint64_t packetId);
int32_t ReSend(SingleVerSyncTaskContext *context, DataSyncReSendInfo reSendInfo);
int CheckPermitSendData(int mode, SingleVerSyncTaskContext *context);
std::string GetLabel() const;
std::string GetDeviceId() const;
private:
static const int SEND_FINISHED = 0xff;
static const int LOCAL_WATER_MARK_NOT_INIT = 0xaa;
static const int PEER_WATER_MARK_NOT_INIT = 0x55;
static const int WATER_MARK_INVALID = 0xbb;
static const int MTU_SIZE = 28311552; // 27MB
static int AckPacketCalculateLen(const Message *inMsg, uint32_t &len);
static int DataPacketCalculateLen(const Message *inMsg, uint32_t &len);
static int DataPacketSerialization(uint8_t *buffer, uint32_t length, const Message *inMsg);
static int DataPacketDeSerialization(const uint8_t *buffer, uint32_t length, Message *inMsg);
static int AckPacketSerialization(uint8_t *buffer, uint32_t length, const Message *inMsg);
static int AckPacketDeSerialization(const uint8_t *buffer, uint32_t length, Message *inMsg);
static bool IsPacketValid(const Message *inMsg);
static TimeStamp GetMaxSendDataTime(const std::vector<SendDataItem> &inData, bool isNeedInit,
WaterMark localMark = 0);
static TimeStamp GetMinSendDataTime(const std::vector<SendDataItem> &inData, WaterMark localMark);
int GetData(SingleVerSyncTaskContext *context, std::vector<SendDataItem> &outData, size_t packetSize);
int GetDataWithRerformanceRecord(SingleVerSyncTaskContext *context, std::vector<SendDataItem> &outData);
int Send(SingleVerSyncTaskContext *context, const Message *message, const CommErrHandler &handler,
uint32_t packetLen);
int GetUnsyncData(SingleVerSyncTaskContext *context, std::vector<SendDataItem> &outData, size_t packetSize);
int GetNextUnsyncData(SingleVerSyncTaskContext *context, std::vector<SendDataItem> &outData, size_t packetSize);
int SaveData(const SingleVerSyncTaskContext *context, const std::vector<SendDataItem> &inData);
int SaveLocalWaterMark(const DeviceID &deviceId, WaterMark waterMark);
int SavePeerWaterMark(const DeviceID &deviceId, WaterMark waterMark);
int RemoveDeviceData(SingleVerSyncTaskContext *context, const Message *message, WaterMark maxSendDataTime);
void TransSendDataItemToLocal(const SingleVerSyncTaskContext *context,
const std::vector<SendDataItem> &data);
void TransDbDataItemToSendDataItem(const SingleVerSyncTaskContext *context,
std::vector<SendDataItem> &outData);
int SendDataPacket(const DataRequestPacket *packet, SingleVerSyncTaskContext *context);
void SetAckData(DataAckPacket &ackPacket, SingleVerSyncTaskContext *context, int32_t recvCode,
WaterMark maxSendDataTime) const;
int SendAck(SingleVerSyncTaskContext *context, const Message *message, int32_t recvCode,
WaterMark maxSendDataTime);
int SendLocalWaterMarkAck(SingleVerSyncTaskContext *context, const Message *message);
void UpdatePeerWaterMark(const SingleVerSyncTaskContext *context, WaterMark peerWatermark);
std::string GetLocalDeviceName();
std::string TransferForeignOrigDevName(const std::string &deviceName);
std::string TransferLocalOrigDevName(const std::string &origName);
int RequestRecvPre(SingleVerSyncTaskContext *context, const Message *message);
void GetPullEndWatermark(const SingleVerSyncTaskContext *context, const DataRequestPacket *packet,
WaterMark &pullEndWatermark) const;
int DealWaterMarkException(SingleVerSyncTaskContext *context, WaterMark ackWaterMark,
const std::vector<uint64_t> &reserved);
static int DataPacketSyncerPartSerialization(Parcel &parcel, const DataRequestPacket *packet);
static int DataPacketSyncerPartDeSerialization(Parcel &parcel, DataRequestPacket *packet, uint32_t packLen,
uint32_t length, uint32_t version);
static int AckPacketSyncerPartSerializationV1(Parcel &parcel, const DataAckPacket *packet);
static int AckPacketSyncerPartDeSerializationV1(Parcel &parcel, DataAckPacket &packet);
int RunPermissionCheck(SingleVerSyncTaskContext *context, const Message *message,
const DataRequestPacket *packet);
void SendResetWatchDogPacket(SingleVerSyncTaskContext *context, uint32_t packetLen);
int SendReSendPacket(const DataRequestPacket *packet, SingleVerSyncTaskContext *context,
uint32_t sessionId, uint32_t sequenceId);
int SendPullResponseDataPkt(int ackCode, std::vector<SendDataItem> &inData,
SingleVerSyncTaskContext *context);
void SetPacketId(DataRequestPacket *packet, SingleVerSyncTaskContext *context, uint32_t version);
bool IsPermitRemoteDeviceRecvData(const std::string &deviceId, const SecurityOption &secOption) const;
bool IsPermitLocalDeviceRecvData(const std::string &deviceId, const SecurityOption &remoteSecOption) const;
bool CheckPermitReceiveData(const SingleVerSyncTaskContext *context);
int CheckSchemaStrategy(SingleVerSyncTaskContext *context, const Message *message);
void RemotePushFinished(int sendCode, int mode, uint32_t msgSessionId, uint32_t contetSessionId);
uint32_t mtuSize_;
SingleVerKvDBSyncInterface* storage_;
ICommunicator* communicateHandle_;
std::shared_ptr<Metadata> metadata_;
std::string label_;
std::string deviceId_;
};
} // namespace DistributedDB
#endif // SINGLE_VER_DATA_SYNC_NEW_H
| 33.668831 | 116 | 0.758631 |
4d8e400e9576500d2c6399ecd09b1f4938bb6f35 | 1,075 | h | C | Chapter21/StrProg/StrLib.h | UncleCShark/ProgrammingWindows5thEdWithCMake | 0ace890f9d08079402d6d59bd648f7e98a21f925 | [
"MIT"
] | null | null | null | Chapter21/StrProg/StrLib.h | UncleCShark/ProgrammingWindows5thEdWithCMake | 0ace890f9d08079402d6d59bd648f7e98a21f925 | [
"MIT"
] | null | null | null | Chapter21/StrProg/StrLib.h | UncleCShark/ProgrammingWindows5thEdWithCMake | 0ace890f9d08079402d6d59bd648f7e98a21f925 | [
"MIT"
] | null | null | null | /*----------------------
STRLIB.H header file
----------------------*/
#ifdef __cplusplus
#define EXPORT extern "C" __declspec (dllexport)
#else
#define EXPORT __declspec (dllexport)
#endif
// The maximum number of strings STRLIB will store and their lengths
#define MAX_STRINGS 256
#define MAX_LENGTH 64
// The callback function type definition uses generic strings
typedef BOOL (CALLBACK * GETSTRCB) (PCTSTR, PVOID) ;
// Each function has ANSI and Unicode versions
EXPORT BOOL CALLBACK AddStringA (PCSTR) ;
EXPORT BOOL CALLBACK AddStringW (PCWSTR) ;
EXPORT BOOL CALLBACK DeleteStringA (PCSTR) ;
EXPORT BOOL CALLBACK DeleteStringW (PCWSTR) ;
EXPORT int CALLBACK GetStringsA (GETSTRCB, PVOID) ;
EXPORT int CALLBACK GetStringsW (GETSTRCB, PVOID) ;
// Use the correct version depending on the UNICODE identifier
#ifdef UNICODE
#define AddString AddStringW
#define DeleteString DeleteStringW
#define GetStrings GetStringsW
#else
#define AddString AddStringA
#define DeleteString DeleteStringA
#define GetStrings GetStringsA
#endif
| 25.595238 | 73 | 0.734884 |
0630fb32b909893ab1c986bcedbdb0fdc7d1b314 | 825 | c | C | src/dictset.c | xupingmao/minipy | 5bce2f238925eb92fe9ff7d935f59ef68daa257a | [
"MIT"
] | 52 | 2016-07-11T10:14:35.000Z | 2021-12-09T09:10:43.000Z | src/dictset.c | xupingmao/minipy | 5bce2f238925eb92fe9ff7d935f59ef68daa257a | [
"MIT"
] | 13 | 2016-07-24T13:50:37.000Z | 2019-03-02T06:56:18.000Z | src/dictset.c | xupingmao/minipy | 5bce2f238925eb92fe9ff7d935f59ef68daa257a | [
"MIT"
] | 9 | 2017-01-27T10:46:04.000Z | 2021-12-09T09:10:46.000Z | /**
* HashSet
* @author xupingmao <578749341@qq.com>
* @since 2021/09/30 20:45:28
* @modified 2021/09/30 22:24:31
*/
#include "include/mp.h"
/* TODO: set.contains */
MpObj dictset_builtin_add() {
MpObj self = arg_take_dict_obj("set.add");
MpObj key = arg_take_obj("set.add");
obj_set(self, key, tm->_TRUE);
return NONE_OBJECT;
}
MpObj dictset_builtin_remove() {
MpObj self = arg_take_dict_obj("set.remove");
MpObj key = arg_take_obj("set.remove");
obj_del(self, key);
return NONE_OBJECT;
}
void dictset_methods_init() {
MpObj set_class = class_new_by_cstr("set");
/* build dict class */
reg_method_by_cstr(set_class, "add", dictset_builtin_add);
reg_method_by_cstr(set_class, "remove", dictset_builtin_remove);
obj_set_by_cstr(tm->builtins, "set", set_class);
} | 25.78125 | 68 | 0.683636 |
9edac9ed655e246295ea41661fa8e797bcbdc249 | 261 | h | C | src/platform/platform_dc.h | spencerelliott/dc-powervr-sandbox | f6c056876a1a643b5691ced4f9a5fb0a0cc69d3b | [
"MIT"
] | null | null | null | src/platform/platform_dc.h | spencerelliott/dc-powervr-sandbox | f6c056876a1a643b5691ced4f9a5fb0a0cc69d3b | [
"MIT"
] | null | null | null | src/platform/platform_dc.h | spencerelliott/dc-powervr-sandbox | f6c056876a1a643b5691ced4f9a5fb0a0cc69d3b | [
"MIT"
] | null | null | null | #ifndef __PLATFORM_PC_H__
#define __PLATFORM_PC_H__
#include "platform.h"
class DreamcastPlatform : virtual public Platform {
public:
DreamcastPlatform();
void Init(void);
bool ProcessFrame();
void Cleanup(void);
};
#endif | 18.642857 | 51 | 0.67433 |
36c17be9002f999accc25755616aa96d18164216 | 2,169 | h | C | tools/gap8-openocd/src/flash/nor/cc3220sf.h | knmcguire/gap_sdk | 7b0a09a353ab6f0550793d40bd46e98051f4a3d7 | [
"Apache-2.0"
] | 1 | 2020-01-29T15:39:31.000Z | 2020-01-29T15:39:31.000Z | tools/gap8-openocd/src/flash/nor/cc3220sf.h | knmcguire/gap_sdk | 7b0a09a353ab6f0550793d40bd46e98051f4a3d7 | [
"Apache-2.0"
] | null | null | null | tools/gap8-openocd/src/flash/nor/cc3220sf.h | knmcguire/gap_sdk | 7b0a09a353ab6f0550793d40bd46e98051f4a3d7 | [
"Apache-2.0"
] | 1 | 2021-11-11T02:12:25.000Z | 2021-11-11T02:12:25.000Z | /***************************************************************************
* Copyright (C) 2017 by Texas Instruments, 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, see <http://www.gnu.org/licenses/>. *
***************************************************************************/
#ifndef OPENOCD_FLASH_NOR_CC3220SF_H
#define OPENOCD_FLASH_NOR_CC3220SF_H
/* CC3220SF device types */
#define CC3220_NO_TYPE 0 /* Device type not determined yet */
#define CC3220_OTHER 1 /* CC3220 variant without flash */
#define CC3220SF 2 /* CC3220SF variant with flash */
/* Flash parameters */
#define FLASH_BASE_ADDR 0x01000000
#define FLASH_SECTOR_SIZE 2048
#define FLASH_NUM_SECTORS 512
/* CC2200SF flash registers */
#define FMA_REGISTER_ADDR 0x400FD000
#define FMC_REGISTER_ADDR 0x400FD008
#define FMC_DEFAULT_VALUE 0xA4420000
#define FMC_ERASE_BIT 0x00000002
#define FMC_MERASE_BIT 0x00000004
#define FMC_ERASE_VALUE (FMC_DEFAULT_VALUE | FMC_ERASE_BIT)
#define FMC_MERASE_VALUE (FMC_DEFAULT_VALUE | FMC_MERASE_BIT)
/* Flash helper algorithm for CC3220SF */
const uint8_t cc3220sf_algo[] = {
#include "../../../contrib/loaders/flash/cc3220sf/cc3220sf.inc"
};
#endif /* OPENOCD_FLASH_NOR_CC3220SF_H */
| 47.152174 | 77 | 0.578608 |
36c5fb6fdfe774812237b6e090a1a10d73747646 | 5,323 | h | C | src/core/LinearInterpolation.h | Exawind/NaluWindUtils | ae571b914bf27adaa7a569be5d590840d0f6cb48 | [
"Apache-2.0"
] | 2 | 2019-10-17T04:29:46.000Z | 2020-03-24T20:08:55.000Z | src/core/LinearInterpolation.h | Exawind/NaluWindUtils | ae571b914bf27adaa7a569be5d590840d0f6cb48 | [
"Apache-2.0"
] | 5 | 2018-05-08T21:05:32.000Z | 2020-07-07T16:29:38.000Z | src/core/LinearInterpolation.h | Exawind/NaluWindUtils | ae571b914bf27adaa7a569be5d590840d0f6cb48 | [
"Apache-2.0"
] | 5 | 2018-08-03T21:51:31.000Z | 2020-11-17T17:35:32.000Z | // Copyright 2016 National Renewable Energy Laboratory
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
#ifndef LINEARINTERPOLATION_H
#define LINEARINTERPOLATION_H
/** \file LinearInterpolation.h
* 1-D linear interpolation utilities
*
* This file implements a single public API method `linear_interp` that is used
* to perform piecewise linear interpolations.
*/
#include <iostream>
#include <vector>
#include <stdexcept>
#include <utility>
namespace sierra {
namespace nalu {
namespace utils {
/** Flags and actions for out-of-bounds operation
*/
struct OutOfBounds
{
//! Out of bounds limit types
enum boundLimits {
LOWLIM = -2, //!< xtgt < xarray[0]
UPLIM = -1, //!< xtgt > xarray[N]
VALID = 0 //!< xarray[0] <= xtgt <= xarray[N]
};
//! Flags indicating action to perform on Out of Bounds situation
enum OobAction {
ERROR = 0, //!< Raise runtime error
WARN, //!< Warn and then CLAMP
CLAMP, //!< Clamp values to the end points
EXTRAPOLATE //!< Extrapolate linearly based on end point
};
};
template <typename T>
using Array1D = std::vector<T>;
/** Useful type definitions for tracking interpolation data
*/
template <typename T>
struct InterpTraits
{
typedef typename Array1D<T>::size_type size_type;
/** A pair indicating whether the point to be interpolate is within bounds
* or out of bounds and a corresponding index. If the point is within bounds
* then the index returned is such that `xarray[i] <= xtarget <
* xarray[i+1]`. For out of bounds, the index is either 0 or IMAX-1.
*/
typedef typename std::pair<OutOfBounds::boundLimits, size_type> index_type;
};
/**
* Determine whether the given value is within the limits of the interpolation
* table
*
* \param xinp 1-D array of monotonically increasing values
* \param x The value to check for
*
* \result A std::pair containing the OutOfBounds flag and the index (0 or MAX)
*/
template <typename T>
inline typename InterpTraits<T>::index_type
check_bounds(const Array1D<T>& xinp, const T& x)
{
auto sz = xinp.size();
if (sz < 2) {
throw std::runtime_error(
"Interpolation table contains less than 2 entries.");
}
if (x < xinp[0]) {
return std::make_pair(OutOfBounds::LOWLIM, 0);
} else if (x > xinp[sz - 1]) {
return std::make_pair(OutOfBounds::UPLIM, sz - 1);
} else {
return std::make_pair(OutOfBounds::VALID, 0);
}
}
/**
* Return an index object corresponding to the x-value based on interpolation
* table.
*
* \param xinp 1-D array of monotonically increasing values
* \param x The value to check for
*
* \return The `std::pair` returned contains two values: the bounds indicator and the
* index of the element in the interpolation table such that `xarray[i] <= x <
* xarray[i+1]`
*/
template <typename T>
inline typename InterpTraits<T>::index_type
find_index(const Array1D<T>& xinp, const T& x)
{
auto idx = check_bounds(xinp, x);
if (idx.first == OutOfBounds::UPLIM || idx.first == OutOfBounds::LOWLIM)
return idx;
auto sz = xinp.size();
for (size_t i = 1; i < sz; i++) {
if (x <= xinp[i]) {
idx.second = i - 1;
break;
}
}
return idx;
}
/**
* Perform a 1-D linear interpolation
*
* \param xinp A 1-d vector of monotonically increasing x-values
* \param yinp Corresponding 1-d vector of y-values
* \param xout Target x-value for interpolation
* \param yout Interpolated value at `xout`
* \param oob (Optional) Out-of-bounds handling (default: CLAMP)
*/
template <typename T>
void
linear_interp(
const Array1D<T>& xinp,
const Array1D<T>& yinp,
const T& xout,
T& yout,
OutOfBounds::OobAction oob = OutOfBounds::CLAMP)
{
auto idx = find_index(xinp, xout);
switch (idx.first) {
case OutOfBounds::LOWLIM:
case OutOfBounds::UPLIM: {
switch (oob) {
case OutOfBounds::ERROR:
throw std::runtime_error("Out of bounds error in interpolation");
break;
case OutOfBounds::WARN:
std::cout
<< std::endl
<< "WARNING: Out of bound values encountered during interpolation"
<< std::endl;
yout = yinp[idx.second];
break;
case OutOfBounds::CLAMP:
yout = yinp[idx.second];
break;
case OutOfBounds::EXTRAPOLATE: {
auto ii = idx.second;
if ((ii + 1) == xinp.size())
--ii;
yout = yinp[ii] +
(yinp[ii + 1] - yinp[ii]) / (xinp[ii + 1] - xinp[ii]) *
(xout - xinp[ii]);
break;
}
}
break;
}
case OutOfBounds::VALID:
auto j = idx.second;
T fac = (xout - xinp[j]) / (xinp[j + 1] - xinp[j]);
yout = (static_cast<T>(1.0) - fac) * yinp[j] + fac * yinp[j + 1];
break;
}
}
} // namespace utils
} // namespace nalu
} // namespace sierra
#endif /* LINEARINTERPOLATION_H */
| 27.020305 | 85 | 0.658088 |
9a5004f674c75303365feb25c90a4ee207f53696 | 234,415 | c | C | net-next/drivers/net/ethernet/sun/niu.c | CavalryXD/APN6_Repo | 7a6af135ad936d52599b3ce59cf4f377a97a51d4 | [
"Apache-2.0"
] | 2 | 2020-09-18T07:01:49.000Z | 2022-01-27T08:59:04.000Z | net-next/drivers/net/ethernet/sun/niu.c | MaoJianwei/Mao_Linux_Network_Enhance | 2ba9e6278e3f405dcb9fc807d9f9a8d4ff0356dd | [
"Apache-2.0"
] | null | null | null | net-next/drivers/net/ethernet/sun/niu.c | MaoJianwei/Mao_Linux_Network_Enhance | 2ba9e6278e3f405dcb9fc807d9f9a8d4ff0356dd | [
"Apache-2.0"
] | 4 | 2020-06-29T04:09:48.000Z | 2022-01-27T08:59:01.000Z | // SPDX-License-Identifier: GPL-2.0
/* niu.c: Neptune ethernet driver.
*
* Copyright (C) 2007, 2008 David S. Miller (davem@davemloft.net)
*/
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include <linux/module.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/pci.h>
#include <linux/dma-mapping.h>
#include <linux/netdevice.h>
#include <linux/ethtool.h>
#include <linux/etherdevice.h>
#include <linux/platform_device.h>
#include <linux/delay.h>
#include <linux/bitops.h>
#include <linux/mii.h>
#include <linux/if.h>
#include <linux/if_ether.h>
#include <linux/if_vlan.h>
#include <linux/ip.h>
#include <linux/in.h>
#include <linux/ipv6.h>
#include <linux/log2.h>
#include <linux/jiffies.h>
#include <linux/crc32.h>
#include <linux/list.h>
#include <linux/slab.h>
#include <linux/io.h>
#include <linux/of_device.h>
#include "niu.h"
#define DRV_MODULE_NAME "niu"
#define DRV_MODULE_VERSION "1.1"
#define DRV_MODULE_RELDATE "Apr 22, 2010"
static char version[] =
DRV_MODULE_NAME ".c:v" DRV_MODULE_VERSION " (" DRV_MODULE_RELDATE ")\n";
MODULE_AUTHOR("David S. Miller (davem@davemloft.net)");
MODULE_DESCRIPTION("NIU ethernet driver");
MODULE_LICENSE("GPL");
MODULE_VERSION(DRV_MODULE_VERSION);
#ifndef readq
static u64 readq(void __iomem *reg)
{
return ((u64) readl(reg)) | (((u64) readl(reg + 4UL)) << 32);
}
static void writeq(u64 val, void __iomem *reg)
{
writel(val & 0xffffffff, reg);
writel(val >> 32, reg + 0x4UL);
}
#endif
static const struct pci_device_id niu_pci_tbl[] = {
{PCI_DEVICE(PCI_VENDOR_ID_SUN, 0xabcd)},
{}
};
MODULE_DEVICE_TABLE(pci, niu_pci_tbl);
#define NIU_TX_TIMEOUT (5 * HZ)
#define nr64(reg) readq(np->regs + (reg))
#define nw64(reg, val) writeq((val), np->regs + (reg))
#define nr64_mac(reg) readq(np->mac_regs + (reg))
#define nw64_mac(reg, val) writeq((val), np->mac_regs + (reg))
#define nr64_ipp(reg) readq(np->regs + np->ipp_off + (reg))
#define nw64_ipp(reg, val) writeq((val), np->regs + np->ipp_off + (reg))
#define nr64_pcs(reg) readq(np->regs + np->pcs_off + (reg))
#define nw64_pcs(reg, val) writeq((val), np->regs + np->pcs_off + (reg))
#define nr64_xpcs(reg) readq(np->regs + np->xpcs_off + (reg))
#define nw64_xpcs(reg, val) writeq((val), np->regs + np->xpcs_off + (reg))
#define NIU_MSG_DEFAULT (NETIF_MSG_DRV | NETIF_MSG_PROBE | NETIF_MSG_LINK)
static int niu_debug;
static int debug = -1;
module_param(debug, int, 0);
MODULE_PARM_DESC(debug, "NIU debug level");
#define niu_lock_parent(np, flags) \
spin_lock_irqsave(&np->parent->lock, flags)
#define niu_unlock_parent(np, flags) \
spin_unlock_irqrestore(&np->parent->lock, flags)
static int serdes_init_10g_serdes(struct niu *np);
static int __niu_wait_bits_clear_mac(struct niu *np, unsigned long reg,
u64 bits, int limit, int delay)
{
while (--limit >= 0) {
u64 val = nr64_mac(reg);
if (!(val & bits))
break;
udelay(delay);
}
if (limit < 0)
return -ENODEV;
return 0;
}
static int __niu_set_and_wait_clear_mac(struct niu *np, unsigned long reg,
u64 bits, int limit, int delay,
const char *reg_name)
{
int err;
nw64_mac(reg, bits);
err = __niu_wait_bits_clear_mac(np, reg, bits, limit, delay);
if (err)
netdev_err(np->dev, "bits (%llx) of register %s would not clear, val[%llx]\n",
(unsigned long long)bits, reg_name,
(unsigned long long)nr64_mac(reg));
return err;
}
#define niu_set_and_wait_clear_mac(NP, REG, BITS, LIMIT, DELAY, REG_NAME) \
({ BUILD_BUG_ON(LIMIT <= 0 || DELAY < 0); \
__niu_set_and_wait_clear_mac(NP, REG, BITS, LIMIT, DELAY, REG_NAME); \
})
static int __niu_wait_bits_clear_ipp(struct niu *np, unsigned long reg,
u64 bits, int limit, int delay)
{
while (--limit >= 0) {
u64 val = nr64_ipp(reg);
if (!(val & bits))
break;
udelay(delay);
}
if (limit < 0)
return -ENODEV;
return 0;
}
static int __niu_set_and_wait_clear_ipp(struct niu *np, unsigned long reg,
u64 bits, int limit, int delay,
const char *reg_name)
{
int err;
u64 val;
val = nr64_ipp(reg);
val |= bits;
nw64_ipp(reg, val);
err = __niu_wait_bits_clear_ipp(np, reg, bits, limit, delay);
if (err)
netdev_err(np->dev, "bits (%llx) of register %s would not clear, val[%llx]\n",
(unsigned long long)bits, reg_name,
(unsigned long long)nr64_ipp(reg));
return err;
}
#define niu_set_and_wait_clear_ipp(NP, REG, BITS, LIMIT, DELAY, REG_NAME) \
({ BUILD_BUG_ON(LIMIT <= 0 || DELAY < 0); \
__niu_set_and_wait_clear_ipp(NP, REG, BITS, LIMIT, DELAY, REG_NAME); \
})
static int __niu_wait_bits_clear(struct niu *np, unsigned long reg,
u64 bits, int limit, int delay)
{
while (--limit >= 0) {
u64 val = nr64(reg);
if (!(val & bits))
break;
udelay(delay);
}
if (limit < 0)
return -ENODEV;
return 0;
}
#define niu_wait_bits_clear(NP, REG, BITS, LIMIT, DELAY) \
({ BUILD_BUG_ON(LIMIT <= 0 || DELAY < 0); \
__niu_wait_bits_clear(NP, REG, BITS, LIMIT, DELAY); \
})
static int __niu_set_and_wait_clear(struct niu *np, unsigned long reg,
u64 bits, int limit, int delay,
const char *reg_name)
{
int err;
nw64(reg, bits);
err = __niu_wait_bits_clear(np, reg, bits, limit, delay);
if (err)
netdev_err(np->dev, "bits (%llx) of register %s would not clear, val[%llx]\n",
(unsigned long long)bits, reg_name,
(unsigned long long)nr64(reg));
return err;
}
#define niu_set_and_wait_clear(NP, REG, BITS, LIMIT, DELAY, REG_NAME) \
({ BUILD_BUG_ON(LIMIT <= 0 || DELAY < 0); \
__niu_set_and_wait_clear(NP, REG, BITS, LIMIT, DELAY, REG_NAME); \
})
static void niu_ldg_rearm(struct niu *np, struct niu_ldg *lp, int on)
{
u64 val = (u64) lp->timer;
if (on)
val |= LDG_IMGMT_ARM;
nw64(LDG_IMGMT(lp->ldg_num), val);
}
static int niu_ldn_irq_enable(struct niu *np, int ldn, int on)
{
unsigned long mask_reg, bits;
u64 val;
if (ldn < 0 || ldn > LDN_MAX)
return -EINVAL;
if (ldn < 64) {
mask_reg = LD_IM0(ldn);
bits = LD_IM0_MASK;
} else {
mask_reg = LD_IM1(ldn - 64);
bits = LD_IM1_MASK;
}
val = nr64(mask_reg);
if (on)
val &= ~bits;
else
val |= bits;
nw64(mask_reg, val);
return 0;
}
static int niu_enable_ldn_in_ldg(struct niu *np, struct niu_ldg *lp, int on)
{
struct niu_parent *parent = np->parent;
int i;
for (i = 0; i <= LDN_MAX; i++) {
int err;
if (parent->ldg_map[i] != lp->ldg_num)
continue;
err = niu_ldn_irq_enable(np, i, on);
if (err)
return err;
}
return 0;
}
static int niu_enable_interrupts(struct niu *np, int on)
{
int i;
for (i = 0; i < np->num_ldg; i++) {
struct niu_ldg *lp = &np->ldg[i];
int err;
err = niu_enable_ldn_in_ldg(np, lp, on);
if (err)
return err;
}
for (i = 0; i < np->num_ldg; i++)
niu_ldg_rearm(np, &np->ldg[i], on);
return 0;
}
static u32 phy_encode(u32 type, int port)
{
return type << (port * 2);
}
static u32 phy_decode(u32 val, int port)
{
return (val >> (port * 2)) & PORT_TYPE_MASK;
}
static int mdio_wait(struct niu *np)
{
int limit = 1000;
u64 val;
while (--limit > 0) {
val = nr64(MIF_FRAME_OUTPUT);
if ((val >> MIF_FRAME_OUTPUT_TA_SHIFT) & 0x1)
return val & MIF_FRAME_OUTPUT_DATA;
udelay(10);
}
return -ENODEV;
}
static int mdio_read(struct niu *np, int port, int dev, int reg)
{
int err;
nw64(MIF_FRAME_OUTPUT, MDIO_ADDR_OP(port, dev, reg));
err = mdio_wait(np);
if (err < 0)
return err;
nw64(MIF_FRAME_OUTPUT, MDIO_READ_OP(port, dev));
return mdio_wait(np);
}
static int mdio_write(struct niu *np, int port, int dev, int reg, int data)
{
int err;
nw64(MIF_FRAME_OUTPUT, MDIO_ADDR_OP(port, dev, reg));
err = mdio_wait(np);
if (err < 0)
return err;
nw64(MIF_FRAME_OUTPUT, MDIO_WRITE_OP(port, dev, data));
err = mdio_wait(np);
if (err < 0)
return err;
return 0;
}
static int mii_read(struct niu *np, int port, int reg)
{
nw64(MIF_FRAME_OUTPUT, MII_READ_OP(port, reg));
return mdio_wait(np);
}
static int mii_write(struct niu *np, int port, int reg, int data)
{
int err;
nw64(MIF_FRAME_OUTPUT, MII_WRITE_OP(port, reg, data));
err = mdio_wait(np);
if (err < 0)
return err;
return 0;
}
static int esr2_set_tx_cfg(struct niu *np, unsigned long channel, u32 val)
{
int err;
err = mdio_write(np, np->port, NIU_ESR2_DEV_ADDR,
ESR2_TI_PLL_TX_CFG_L(channel),
val & 0xffff);
if (!err)
err = mdio_write(np, np->port, NIU_ESR2_DEV_ADDR,
ESR2_TI_PLL_TX_CFG_H(channel),
val >> 16);
return err;
}
static int esr2_set_rx_cfg(struct niu *np, unsigned long channel, u32 val)
{
int err;
err = mdio_write(np, np->port, NIU_ESR2_DEV_ADDR,
ESR2_TI_PLL_RX_CFG_L(channel),
val & 0xffff);
if (!err)
err = mdio_write(np, np->port, NIU_ESR2_DEV_ADDR,
ESR2_TI_PLL_RX_CFG_H(channel),
val >> 16);
return err;
}
/* Mode is always 10G fiber. */
static int serdes_init_niu_10g_fiber(struct niu *np)
{
struct niu_link_config *lp = &np->link_config;
u32 tx_cfg, rx_cfg;
unsigned long i;
tx_cfg = (PLL_TX_CFG_ENTX | PLL_TX_CFG_SWING_1375MV);
rx_cfg = (PLL_RX_CFG_ENRX | PLL_RX_CFG_TERM_0P8VDDT |
PLL_RX_CFG_ALIGN_ENA | PLL_RX_CFG_LOS_LTHRESH |
PLL_RX_CFG_EQ_LP_ADAPTIVE);
if (lp->loopback_mode == LOOPBACK_PHY) {
u16 test_cfg = PLL_TEST_CFG_LOOPBACK_CML_DIS;
mdio_write(np, np->port, NIU_ESR2_DEV_ADDR,
ESR2_TI_PLL_TEST_CFG_L, test_cfg);
tx_cfg |= PLL_TX_CFG_ENTEST;
rx_cfg |= PLL_RX_CFG_ENTEST;
}
/* Initialize all 4 lanes of the SERDES. */
for (i = 0; i < 4; i++) {
int err = esr2_set_tx_cfg(np, i, tx_cfg);
if (err)
return err;
}
for (i = 0; i < 4; i++) {
int err = esr2_set_rx_cfg(np, i, rx_cfg);
if (err)
return err;
}
return 0;
}
static int serdes_init_niu_1g_serdes(struct niu *np)
{
struct niu_link_config *lp = &np->link_config;
u16 pll_cfg, pll_sts;
int max_retry = 100;
u64 uninitialized_var(sig), mask, val;
u32 tx_cfg, rx_cfg;
unsigned long i;
int err;
tx_cfg = (PLL_TX_CFG_ENTX | PLL_TX_CFG_SWING_1375MV |
PLL_TX_CFG_RATE_HALF);
rx_cfg = (PLL_RX_CFG_ENRX | PLL_RX_CFG_TERM_0P8VDDT |
PLL_RX_CFG_ALIGN_ENA | PLL_RX_CFG_LOS_LTHRESH |
PLL_RX_CFG_RATE_HALF);
if (np->port == 0)
rx_cfg |= PLL_RX_CFG_EQ_LP_ADAPTIVE;
if (lp->loopback_mode == LOOPBACK_PHY) {
u16 test_cfg = PLL_TEST_CFG_LOOPBACK_CML_DIS;
mdio_write(np, np->port, NIU_ESR2_DEV_ADDR,
ESR2_TI_PLL_TEST_CFG_L, test_cfg);
tx_cfg |= PLL_TX_CFG_ENTEST;
rx_cfg |= PLL_RX_CFG_ENTEST;
}
/* Initialize PLL for 1G */
pll_cfg = (PLL_CFG_ENPLL | PLL_CFG_MPY_8X);
err = mdio_write(np, np->port, NIU_ESR2_DEV_ADDR,
ESR2_TI_PLL_CFG_L, pll_cfg);
if (err) {
netdev_err(np->dev, "NIU Port %d %s() mdio write to ESR2_TI_PLL_CFG_L failed\n",
np->port, __func__);
return err;
}
pll_sts = PLL_CFG_ENPLL;
err = mdio_write(np, np->port, NIU_ESR2_DEV_ADDR,
ESR2_TI_PLL_STS_L, pll_sts);
if (err) {
netdev_err(np->dev, "NIU Port %d %s() mdio write to ESR2_TI_PLL_STS_L failed\n",
np->port, __func__);
return err;
}
udelay(200);
/* Initialize all 4 lanes of the SERDES. */
for (i = 0; i < 4; i++) {
err = esr2_set_tx_cfg(np, i, tx_cfg);
if (err)
return err;
}
for (i = 0; i < 4; i++) {
err = esr2_set_rx_cfg(np, i, rx_cfg);
if (err)
return err;
}
switch (np->port) {
case 0:
val = (ESR_INT_SRDY0_P0 | ESR_INT_DET0_P0);
mask = val;
break;
case 1:
val = (ESR_INT_SRDY0_P1 | ESR_INT_DET0_P1);
mask = val;
break;
default:
return -EINVAL;
}
while (max_retry--) {
sig = nr64(ESR_INT_SIGNALS);
if ((sig & mask) == val)
break;
mdelay(500);
}
if ((sig & mask) != val) {
netdev_err(np->dev, "Port %u signal bits [%08x] are not [%08x]\n",
np->port, (int)(sig & mask), (int)val);
return -ENODEV;
}
return 0;
}
static int serdes_init_niu_10g_serdes(struct niu *np)
{
struct niu_link_config *lp = &np->link_config;
u32 tx_cfg, rx_cfg, pll_cfg, pll_sts;
int max_retry = 100;
u64 uninitialized_var(sig), mask, val;
unsigned long i;
int err;
tx_cfg = (PLL_TX_CFG_ENTX | PLL_TX_CFG_SWING_1375MV);
rx_cfg = (PLL_RX_CFG_ENRX | PLL_RX_CFG_TERM_0P8VDDT |
PLL_RX_CFG_ALIGN_ENA | PLL_RX_CFG_LOS_LTHRESH |
PLL_RX_CFG_EQ_LP_ADAPTIVE);
if (lp->loopback_mode == LOOPBACK_PHY) {
u16 test_cfg = PLL_TEST_CFG_LOOPBACK_CML_DIS;
mdio_write(np, np->port, NIU_ESR2_DEV_ADDR,
ESR2_TI_PLL_TEST_CFG_L, test_cfg);
tx_cfg |= PLL_TX_CFG_ENTEST;
rx_cfg |= PLL_RX_CFG_ENTEST;
}
/* Initialize PLL for 10G */
pll_cfg = (PLL_CFG_ENPLL | PLL_CFG_MPY_10X);
err = mdio_write(np, np->port, NIU_ESR2_DEV_ADDR,
ESR2_TI_PLL_CFG_L, pll_cfg & 0xffff);
if (err) {
netdev_err(np->dev, "NIU Port %d %s() mdio write to ESR2_TI_PLL_CFG_L failed\n",
np->port, __func__);
return err;
}
pll_sts = PLL_CFG_ENPLL;
err = mdio_write(np, np->port, NIU_ESR2_DEV_ADDR,
ESR2_TI_PLL_STS_L, pll_sts & 0xffff);
if (err) {
netdev_err(np->dev, "NIU Port %d %s() mdio write to ESR2_TI_PLL_STS_L failed\n",
np->port, __func__);
return err;
}
udelay(200);
/* Initialize all 4 lanes of the SERDES. */
for (i = 0; i < 4; i++) {
err = esr2_set_tx_cfg(np, i, tx_cfg);
if (err)
return err;
}
for (i = 0; i < 4; i++) {
err = esr2_set_rx_cfg(np, i, rx_cfg);
if (err)
return err;
}
/* check if serdes is ready */
switch (np->port) {
case 0:
mask = ESR_INT_SIGNALS_P0_BITS;
val = (ESR_INT_SRDY0_P0 |
ESR_INT_DET0_P0 |
ESR_INT_XSRDY_P0 |
ESR_INT_XDP_P0_CH3 |
ESR_INT_XDP_P0_CH2 |
ESR_INT_XDP_P0_CH1 |
ESR_INT_XDP_P0_CH0);
break;
case 1:
mask = ESR_INT_SIGNALS_P1_BITS;
val = (ESR_INT_SRDY0_P1 |
ESR_INT_DET0_P1 |
ESR_INT_XSRDY_P1 |
ESR_INT_XDP_P1_CH3 |
ESR_INT_XDP_P1_CH2 |
ESR_INT_XDP_P1_CH1 |
ESR_INT_XDP_P1_CH0);
break;
default:
return -EINVAL;
}
while (max_retry--) {
sig = nr64(ESR_INT_SIGNALS);
if ((sig & mask) == val)
break;
mdelay(500);
}
if ((sig & mask) != val) {
pr_info("NIU Port %u signal bits [%08x] are not [%08x] for 10G...trying 1G\n",
np->port, (int)(sig & mask), (int)val);
/* 10G failed, try initializing at 1G */
err = serdes_init_niu_1g_serdes(np);
if (!err) {
np->flags &= ~NIU_FLAGS_10G;
np->mac_xcvr = MAC_XCVR_PCS;
} else {
netdev_err(np->dev, "Port %u 10G/1G SERDES Link Failed\n",
np->port);
return -ENODEV;
}
}
return 0;
}
static int esr_read_rxtx_ctrl(struct niu *np, unsigned long chan, u32 *val)
{
int err;
err = mdio_read(np, np->port, NIU_ESR_DEV_ADDR, ESR_RXTX_CTRL_L(chan));
if (err >= 0) {
*val = (err & 0xffff);
err = mdio_read(np, np->port, NIU_ESR_DEV_ADDR,
ESR_RXTX_CTRL_H(chan));
if (err >= 0)
*val |= ((err & 0xffff) << 16);
err = 0;
}
return err;
}
static int esr_read_glue0(struct niu *np, unsigned long chan, u32 *val)
{
int err;
err = mdio_read(np, np->port, NIU_ESR_DEV_ADDR,
ESR_GLUE_CTRL0_L(chan));
if (err >= 0) {
*val = (err & 0xffff);
err = mdio_read(np, np->port, NIU_ESR_DEV_ADDR,
ESR_GLUE_CTRL0_H(chan));
if (err >= 0) {
*val |= ((err & 0xffff) << 16);
err = 0;
}
}
return err;
}
static int esr_read_reset(struct niu *np, u32 *val)
{
int err;
err = mdio_read(np, np->port, NIU_ESR_DEV_ADDR,
ESR_RXTX_RESET_CTRL_L);
if (err >= 0) {
*val = (err & 0xffff);
err = mdio_read(np, np->port, NIU_ESR_DEV_ADDR,
ESR_RXTX_RESET_CTRL_H);
if (err >= 0) {
*val |= ((err & 0xffff) << 16);
err = 0;
}
}
return err;
}
static int esr_write_rxtx_ctrl(struct niu *np, unsigned long chan, u32 val)
{
int err;
err = mdio_write(np, np->port, NIU_ESR_DEV_ADDR,
ESR_RXTX_CTRL_L(chan), val & 0xffff);
if (!err)
err = mdio_write(np, np->port, NIU_ESR_DEV_ADDR,
ESR_RXTX_CTRL_H(chan), (val >> 16));
return err;
}
static int esr_write_glue0(struct niu *np, unsigned long chan, u32 val)
{
int err;
err = mdio_write(np, np->port, NIU_ESR_DEV_ADDR,
ESR_GLUE_CTRL0_L(chan), val & 0xffff);
if (!err)
err = mdio_write(np, np->port, NIU_ESR_DEV_ADDR,
ESR_GLUE_CTRL0_H(chan), (val >> 16));
return err;
}
static int esr_reset(struct niu *np)
{
u32 uninitialized_var(reset);
int err;
err = mdio_write(np, np->port, NIU_ESR_DEV_ADDR,
ESR_RXTX_RESET_CTRL_L, 0x0000);
if (err)
return err;
err = mdio_write(np, np->port, NIU_ESR_DEV_ADDR,
ESR_RXTX_RESET_CTRL_H, 0xffff);
if (err)
return err;
udelay(200);
err = mdio_write(np, np->port, NIU_ESR_DEV_ADDR,
ESR_RXTX_RESET_CTRL_L, 0xffff);
if (err)
return err;
udelay(200);
err = mdio_write(np, np->port, NIU_ESR_DEV_ADDR,
ESR_RXTX_RESET_CTRL_H, 0x0000);
if (err)
return err;
udelay(200);
err = esr_read_reset(np, &reset);
if (err)
return err;
if (reset != 0) {
netdev_err(np->dev, "Port %u ESR_RESET did not clear [%08x]\n",
np->port, reset);
return -ENODEV;
}
return 0;
}
static int serdes_init_10g(struct niu *np)
{
struct niu_link_config *lp = &np->link_config;
unsigned long ctrl_reg, test_cfg_reg, i;
u64 ctrl_val, test_cfg_val, sig, mask, val;
int err;
switch (np->port) {
case 0:
ctrl_reg = ENET_SERDES_0_CTRL_CFG;
test_cfg_reg = ENET_SERDES_0_TEST_CFG;
break;
case 1:
ctrl_reg = ENET_SERDES_1_CTRL_CFG;
test_cfg_reg = ENET_SERDES_1_TEST_CFG;
break;
default:
return -EINVAL;
}
ctrl_val = (ENET_SERDES_CTRL_SDET_0 |
ENET_SERDES_CTRL_SDET_1 |
ENET_SERDES_CTRL_SDET_2 |
ENET_SERDES_CTRL_SDET_3 |
(0x5 << ENET_SERDES_CTRL_EMPH_0_SHIFT) |
(0x5 << ENET_SERDES_CTRL_EMPH_1_SHIFT) |
(0x5 << ENET_SERDES_CTRL_EMPH_2_SHIFT) |
(0x5 << ENET_SERDES_CTRL_EMPH_3_SHIFT) |
(0x1 << ENET_SERDES_CTRL_LADJ_0_SHIFT) |
(0x1 << ENET_SERDES_CTRL_LADJ_1_SHIFT) |
(0x1 << ENET_SERDES_CTRL_LADJ_2_SHIFT) |
(0x1 << ENET_SERDES_CTRL_LADJ_3_SHIFT));
test_cfg_val = 0;
if (lp->loopback_mode == LOOPBACK_PHY) {
test_cfg_val |= ((ENET_TEST_MD_PAD_LOOPBACK <<
ENET_SERDES_TEST_MD_0_SHIFT) |
(ENET_TEST_MD_PAD_LOOPBACK <<
ENET_SERDES_TEST_MD_1_SHIFT) |
(ENET_TEST_MD_PAD_LOOPBACK <<
ENET_SERDES_TEST_MD_2_SHIFT) |
(ENET_TEST_MD_PAD_LOOPBACK <<
ENET_SERDES_TEST_MD_3_SHIFT));
}
nw64(ctrl_reg, ctrl_val);
nw64(test_cfg_reg, test_cfg_val);
/* Initialize all 4 lanes of the SERDES. */
for (i = 0; i < 4; i++) {
u32 rxtx_ctrl, glue0;
err = esr_read_rxtx_ctrl(np, i, &rxtx_ctrl);
if (err)
return err;
err = esr_read_glue0(np, i, &glue0);
if (err)
return err;
rxtx_ctrl &= ~(ESR_RXTX_CTRL_VMUXLO);
rxtx_ctrl |= (ESR_RXTX_CTRL_ENSTRETCH |
(2 << ESR_RXTX_CTRL_VMUXLO_SHIFT));
glue0 &= ~(ESR_GLUE_CTRL0_SRATE |
ESR_GLUE_CTRL0_THCNT |
ESR_GLUE_CTRL0_BLTIME);
glue0 |= (ESR_GLUE_CTRL0_RXLOSENAB |
(0xf << ESR_GLUE_CTRL0_SRATE_SHIFT) |
(0xff << ESR_GLUE_CTRL0_THCNT_SHIFT) |
(BLTIME_300_CYCLES <<
ESR_GLUE_CTRL0_BLTIME_SHIFT));
err = esr_write_rxtx_ctrl(np, i, rxtx_ctrl);
if (err)
return err;
err = esr_write_glue0(np, i, glue0);
if (err)
return err;
}
err = esr_reset(np);
if (err)
return err;
sig = nr64(ESR_INT_SIGNALS);
switch (np->port) {
case 0:
mask = ESR_INT_SIGNALS_P0_BITS;
val = (ESR_INT_SRDY0_P0 |
ESR_INT_DET0_P0 |
ESR_INT_XSRDY_P0 |
ESR_INT_XDP_P0_CH3 |
ESR_INT_XDP_P0_CH2 |
ESR_INT_XDP_P0_CH1 |
ESR_INT_XDP_P0_CH0);
break;
case 1:
mask = ESR_INT_SIGNALS_P1_BITS;
val = (ESR_INT_SRDY0_P1 |
ESR_INT_DET0_P1 |
ESR_INT_XSRDY_P1 |
ESR_INT_XDP_P1_CH3 |
ESR_INT_XDP_P1_CH2 |
ESR_INT_XDP_P1_CH1 |
ESR_INT_XDP_P1_CH0);
break;
default:
return -EINVAL;
}
if ((sig & mask) != val) {
if (np->flags & NIU_FLAGS_HOTPLUG_PHY) {
np->flags &= ~NIU_FLAGS_HOTPLUG_PHY_PRESENT;
return 0;
}
netdev_err(np->dev, "Port %u signal bits [%08x] are not [%08x]\n",
np->port, (int)(sig & mask), (int)val);
return -ENODEV;
}
if (np->flags & NIU_FLAGS_HOTPLUG_PHY)
np->flags |= NIU_FLAGS_HOTPLUG_PHY_PRESENT;
return 0;
}
static int serdes_init_1g(struct niu *np)
{
u64 val;
val = nr64(ENET_SERDES_1_PLL_CFG);
val &= ~ENET_SERDES_PLL_FBDIV2;
switch (np->port) {
case 0:
val |= ENET_SERDES_PLL_HRATE0;
break;
case 1:
val |= ENET_SERDES_PLL_HRATE1;
break;
case 2:
val |= ENET_SERDES_PLL_HRATE2;
break;
case 3:
val |= ENET_SERDES_PLL_HRATE3;
break;
default:
return -EINVAL;
}
nw64(ENET_SERDES_1_PLL_CFG, val);
return 0;
}
static int serdes_init_1g_serdes(struct niu *np)
{
struct niu_link_config *lp = &np->link_config;
unsigned long ctrl_reg, test_cfg_reg, pll_cfg, i;
u64 ctrl_val, test_cfg_val, sig, mask, val;
int err;
u64 reset_val, val_rd;
val = ENET_SERDES_PLL_HRATE0 | ENET_SERDES_PLL_HRATE1 |
ENET_SERDES_PLL_HRATE2 | ENET_SERDES_PLL_HRATE3 |
ENET_SERDES_PLL_FBDIV0;
switch (np->port) {
case 0:
reset_val = ENET_SERDES_RESET_0;
ctrl_reg = ENET_SERDES_0_CTRL_CFG;
test_cfg_reg = ENET_SERDES_0_TEST_CFG;
pll_cfg = ENET_SERDES_0_PLL_CFG;
break;
case 1:
reset_val = ENET_SERDES_RESET_1;
ctrl_reg = ENET_SERDES_1_CTRL_CFG;
test_cfg_reg = ENET_SERDES_1_TEST_CFG;
pll_cfg = ENET_SERDES_1_PLL_CFG;
break;
default:
return -EINVAL;
}
ctrl_val = (ENET_SERDES_CTRL_SDET_0 |
ENET_SERDES_CTRL_SDET_1 |
ENET_SERDES_CTRL_SDET_2 |
ENET_SERDES_CTRL_SDET_3 |
(0x5 << ENET_SERDES_CTRL_EMPH_0_SHIFT) |
(0x5 << ENET_SERDES_CTRL_EMPH_1_SHIFT) |
(0x5 << ENET_SERDES_CTRL_EMPH_2_SHIFT) |
(0x5 << ENET_SERDES_CTRL_EMPH_3_SHIFT) |
(0x1 << ENET_SERDES_CTRL_LADJ_0_SHIFT) |
(0x1 << ENET_SERDES_CTRL_LADJ_1_SHIFT) |
(0x1 << ENET_SERDES_CTRL_LADJ_2_SHIFT) |
(0x1 << ENET_SERDES_CTRL_LADJ_3_SHIFT));
test_cfg_val = 0;
if (lp->loopback_mode == LOOPBACK_PHY) {
test_cfg_val |= ((ENET_TEST_MD_PAD_LOOPBACK <<
ENET_SERDES_TEST_MD_0_SHIFT) |
(ENET_TEST_MD_PAD_LOOPBACK <<
ENET_SERDES_TEST_MD_1_SHIFT) |
(ENET_TEST_MD_PAD_LOOPBACK <<
ENET_SERDES_TEST_MD_2_SHIFT) |
(ENET_TEST_MD_PAD_LOOPBACK <<
ENET_SERDES_TEST_MD_3_SHIFT));
}
nw64(ENET_SERDES_RESET, reset_val);
mdelay(20);
val_rd = nr64(ENET_SERDES_RESET);
val_rd &= ~reset_val;
nw64(pll_cfg, val);
nw64(ctrl_reg, ctrl_val);
nw64(test_cfg_reg, test_cfg_val);
nw64(ENET_SERDES_RESET, val_rd);
mdelay(2000);
/* Initialize all 4 lanes of the SERDES. */
for (i = 0; i < 4; i++) {
u32 rxtx_ctrl, glue0;
err = esr_read_rxtx_ctrl(np, i, &rxtx_ctrl);
if (err)
return err;
err = esr_read_glue0(np, i, &glue0);
if (err)
return err;
rxtx_ctrl &= ~(ESR_RXTX_CTRL_VMUXLO);
rxtx_ctrl |= (ESR_RXTX_CTRL_ENSTRETCH |
(2 << ESR_RXTX_CTRL_VMUXLO_SHIFT));
glue0 &= ~(ESR_GLUE_CTRL0_SRATE |
ESR_GLUE_CTRL0_THCNT |
ESR_GLUE_CTRL0_BLTIME);
glue0 |= (ESR_GLUE_CTRL0_RXLOSENAB |
(0xf << ESR_GLUE_CTRL0_SRATE_SHIFT) |
(0xff << ESR_GLUE_CTRL0_THCNT_SHIFT) |
(BLTIME_300_CYCLES <<
ESR_GLUE_CTRL0_BLTIME_SHIFT));
err = esr_write_rxtx_ctrl(np, i, rxtx_ctrl);
if (err)
return err;
err = esr_write_glue0(np, i, glue0);
if (err)
return err;
}
sig = nr64(ESR_INT_SIGNALS);
switch (np->port) {
case 0:
val = (ESR_INT_SRDY0_P0 | ESR_INT_DET0_P0);
mask = val;
break;
case 1:
val = (ESR_INT_SRDY0_P1 | ESR_INT_DET0_P1);
mask = val;
break;
default:
return -EINVAL;
}
if ((sig & mask) != val) {
netdev_err(np->dev, "Port %u signal bits [%08x] are not [%08x]\n",
np->port, (int)(sig & mask), (int)val);
return -ENODEV;
}
return 0;
}
static int link_status_1g_serdes(struct niu *np, int *link_up_p)
{
struct niu_link_config *lp = &np->link_config;
int link_up;
u64 val;
u16 current_speed;
unsigned long flags;
u8 current_duplex;
link_up = 0;
current_speed = SPEED_INVALID;
current_duplex = DUPLEX_INVALID;
spin_lock_irqsave(&np->lock, flags);
val = nr64_pcs(PCS_MII_STAT);
if (val & PCS_MII_STAT_LINK_STATUS) {
link_up = 1;
current_speed = SPEED_1000;
current_duplex = DUPLEX_FULL;
}
lp->active_speed = current_speed;
lp->active_duplex = current_duplex;
spin_unlock_irqrestore(&np->lock, flags);
*link_up_p = link_up;
return 0;
}
static int link_status_10g_serdes(struct niu *np, int *link_up_p)
{
unsigned long flags;
struct niu_link_config *lp = &np->link_config;
int link_up = 0;
int link_ok = 1;
u64 val, val2;
u16 current_speed;
u8 current_duplex;
if (!(np->flags & NIU_FLAGS_10G))
return link_status_1g_serdes(np, link_up_p);
current_speed = SPEED_INVALID;
current_duplex = DUPLEX_INVALID;
spin_lock_irqsave(&np->lock, flags);
val = nr64_xpcs(XPCS_STATUS(0));
val2 = nr64_mac(XMAC_INTER2);
if (val2 & 0x01000000)
link_ok = 0;
if ((val & 0x1000ULL) && link_ok) {
link_up = 1;
current_speed = SPEED_10000;
current_duplex = DUPLEX_FULL;
}
lp->active_speed = current_speed;
lp->active_duplex = current_duplex;
spin_unlock_irqrestore(&np->lock, flags);
*link_up_p = link_up;
return 0;
}
static int link_status_mii(struct niu *np, int *link_up_p)
{
struct niu_link_config *lp = &np->link_config;
int err;
int bmsr, advert, ctrl1000, stat1000, lpa, bmcr, estatus;
int supported, advertising, active_speed, active_duplex;
err = mii_read(np, np->phy_addr, MII_BMCR);
if (unlikely(err < 0))
return err;
bmcr = err;
err = mii_read(np, np->phy_addr, MII_BMSR);
if (unlikely(err < 0))
return err;
bmsr = err;
err = mii_read(np, np->phy_addr, MII_ADVERTISE);
if (unlikely(err < 0))
return err;
advert = err;
err = mii_read(np, np->phy_addr, MII_LPA);
if (unlikely(err < 0))
return err;
lpa = err;
if (likely(bmsr & BMSR_ESTATEN)) {
err = mii_read(np, np->phy_addr, MII_ESTATUS);
if (unlikely(err < 0))
return err;
estatus = err;
err = mii_read(np, np->phy_addr, MII_CTRL1000);
if (unlikely(err < 0))
return err;
ctrl1000 = err;
err = mii_read(np, np->phy_addr, MII_STAT1000);
if (unlikely(err < 0))
return err;
stat1000 = err;
} else
estatus = ctrl1000 = stat1000 = 0;
supported = 0;
if (bmsr & BMSR_ANEGCAPABLE)
supported |= SUPPORTED_Autoneg;
if (bmsr & BMSR_10HALF)
supported |= SUPPORTED_10baseT_Half;
if (bmsr & BMSR_10FULL)
supported |= SUPPORTED_10baseT_Full;
if (bmsr & BMSR_100HALF)
supported |= SUPPORTED_100baseT_Half;
if (bmsr & BMSR_100FULL)
supported |= SUPPORTED_100baseT_Full;
if (estatus & ESTATUS_1000_THALF)
supported |= SUPPORTED_1000baseT_Half;
if (estatus & ESTATUS_1000_TFULL)
supported |= SUPPORTED_1000baseT_Full;
lp->supported = supported;
advertising = mii_adv_to_ethtool_adv_t(advert);
advertising |= mii_ctrl1000_to_ethtool_adv_t(ctrl1000);
if (bmcr & BMCR_ANENABLE) {
int neg, neg1000;
lp->active_autoneg = 1;
advertising |= ADVERTISED_Autoneg;
neg = advert & lpa;
neg1000 = (ctrl1000 << 2) & stat1000;
if (neg1000 & (LPA_1000FULL | LPA_1000HALF))
active_speed = SPEED_1000;
else if (neg & LPA_100)
active_speed = SPEED_100;
else if (neg & (LPA_10HALF | LPA_10FULL))
active_speed = SPEED_10;
else
active_speed = SPEED_INVALID;
if ((neg1000 & LPA_1000FULL) || (neg & LPA_DUPLEX))
active_duplex = DUPLEX_FULL;
else if (active_speed != SPEED_INVALID)
active_duplex = DUPLEX_HALF;
else
active_duplex = DUPLEX_INVALID;
} else {
lp->active_autoneg = 0;
if ((bmcr & BMCR_SPEED1000) && !(bmcr & BMCR_SPEED100))
active_speed = SPEED_1000;
else if (bmcr & BMCR_SPEED100)
active_speed = SPEED_100;
else
active_speed = SPEED_10;
if (bmcr & BMCR_FULLDPLX)
active_duplex = DUPLEX_FULL;
else
active_duplex = DUPLEX_HALF;
}
lp->active_advertising = advertising;
lp->active_speed = active_speed;
lp->active_duplex = active_duplex;
*link_up_p = !!(bmsr & BMSR_LSTATUS);
return 0;
}
static int link_status_1g_rgmii(struct niu *np, int *link_up_p)
{
struct niu_link_config *lp = &np->link_config;
u16 current_speed, bmsr;
unsigned long flags;
u8 current_duplex;
int err, link_up;
link_up = 0;
current_speed = SPEED_INVALID;
current_duplex = DUPLEX_INVALID;
spin_lock_irqsave(&np->lock, flags);
err = mii_read(np, np->phy_addr, MII_BMSR);
if (err < 0)
goto out;
bmsr = err;
if (bmsr & BMSR_LSTATUS) {
link_up = 1;
current_speed = SPEED_1000;
current_duplex = DUPLEX_FULL;
}
lp->active_speed = current_speed;
lp->active_duplex = current_duplex;
err = 0;
out:
spin_unlock_irqrestore(&np->lock, flags);
*link_up_p = link_up;
return err;
}
static int link_status_1g(struct niu *np, int *link_up_p)
{
struct niu_link_config *lp = &np->link_config;
unsigned long flags;
int err;
spin_lock_irqsave(&np->lock, flags);
err = link_status_mii(np, link_up_p);
lp->supported |= SUPPORTED_TP;
lp->active_advertising |= ADVERTISED_TP;
spin_unlock_irqrestore(&np->lock, flags);
return err;
}
static int bcm8704_reset(struct niu *np)
{
int err, limit;
err = mdio_read(np, np->phy_addr,
BCM8704_PHYXS_DEV_ADDR, MII_BMCR);
if (err < 0 || err == 0xffff)
return err;
err |= BMCR_RESET;
err = mdio_write(np, np->phy_addr, BCM8704_PHYXS_DEV_ADDR,
MII_BMCR, err);
if (err)
return err;
limit = 1000;
while (--limit >= 0) {
err = mdio_read(np, np->phy_addr,
BCM8704_PHYXS_DEV_ADDR, MII_BMCR);
if (err < 0)
return err;
if (!(err & BMCR_RESET))
break;
}
if (limit < 0) {
netdev_err(np->dev, "Port %u PHY will not reset (bmcr=%04x)\n",
np->port, (err & 0xffff));
return -ENODEV;
}
return 0;
}
/* When written, certain PHY registers need to be read back twice
* in order for the bits to settle properly.
*/
static int bcm8704_user_dev3_readback(struct niu *np, int reg)
{
int err = mdio_read(np, np->phy_addr, BCM8704_USER_DEV3_ADDR, reg);
if (err < 0)
return err;
err = mdio_read(np, np->phy_addr, BCM8704_USER_DEV3_ADDR, reg);
if (err < 0)
return err;
return 0;
}
static int bcm8706_init_user_dev3(struct niu *np)
{
int err;
err = mdio_read(np, np->phy_addr, BCM8704_USER_DEV3_ADDR,
BCM8704_USER_OPT_DIGITAL_CTRL);
if (err < 0)
return err;
err &= ~USER_ODIG_CTRL_GPIOS;
err |= (0x3 << USER_ODIG_CTRL_GPIOS_SHIFT);
err |= USER_ODIG_CTRL_RESV2;
err = mdio_write(np, np->phy_addr, BCM8704_USER_DEV3_ADDR,
BCM8704_USER_OPT_DIGITAL_CTRL, err);
if (err)
return err;
mdelay(1000);
return 0;
}
static int bcm8704_init_user_dev3(struct niu *np)
{
int err;
err = mdio_write(np, np->phy_addr,
BCM8704_USER_DEV3_ADDR, BCM8704_USER_CONTROL,
(USER_CONTROL_OPTXRST_LVL |
USER_CONTROL_OPBIASFLT_LVL |
USER_CONTROL_OBTMPFLT_LVL |
USER_CONTROL_OPPRFLT_LVL |
USER_CONTROL_OPTXFLT_LVL |
USER_CONTROL_OPRXLOS_LVL |
USER_CONTROL_OPRXFLT_LVL |
USER_CONTROL_OPTXON_LVL |
(0x3f << USER_CONTROL_RES1_SHIFT)));
if (err)
return err;
err = mdio_write(np, np->phy_addr,
BCM8704_USER_DEV3_ADDR, BCM8704_USER_PMD_TX_CONTROL,
(USER_PMD_TX_CTL_XFP_CLKEN |
(1 << USER_PMD_TX_CTL_TX_DAC_TXD_SH) |
(2 << USER_PMD_TX_CTL_TX_DAC_TXCK_SH) |
USER_PMD_TX_CTL_TSCK_LPWREN));
if (err)
return err;
err = bcm8704_user_dev3_readback(np, BCM8704_USER_CONTROL);
if (err)
return err;
err = bcm8704_user_dev3_readback(np, BCM8704_USER_PMD_TX_CONTROL);
if (err)
return err;
err = mdio_read(np, np->phy_addr, BCM8704_USER_DEV3_ADDR,
BCM8704_USER_OPT_DIGITAL_CTRL);
if (err < 0)
return err;
err &= ~USER_ODIG_CTRL_GPIOS;
err |= (0x3 << USER_ODIG_CTRL_GPIOS_SHIFT);
err = mdio_write(np, np->phy_addr, BCM8704_USER_DEV3_ADDR,
BCM8704_USER_OPT_DIGITAL_CTRL, err);
if (err)
return err;
mdelay(1000);
return 0;
}
static int mrvl88x2011_act_led(struct niu *np, int val)
{
int err;
err = mdio_read(np, np->phy_addr, MRVL88X2011_USER_DEV2_ADDR,
MRVL88X2011_LED_8_TO_11_CTL);
if (err < 0)
return err;
err &= ~MRVL88X2011_LED(MRVL88X2011_LED_ACT,MRVL88X2011_LED_CTL_MASK);
err |= MRVL88X2011_LED(MRVL88X2011_LED_ACT,val);
return mdio_write(np, np->phy_addr, MRVL88X2011_USER_DEV2_ADDR,
MRVL88X2011_LED_8_TO_11_CTL, err);
}
static int mrvl88x2011_led_blink_rate(struct niu *np, int rate)
{
int err;
err = mdio_read(np, np->phy_addr, MRVL88X2011_USER_DEV2_ADDR,
MRVL88X2011_LED_BLINK_CTL);
if (err >= 0) {
err &= ~MRVL88X2011_LED_BLKRATE_MASK;
err |= (rate << 4);
err = mdio_write(np, np->phy_addr, MRVL88X2011_USER_DEV2_ADDR,
MRVL88X2011_LED_BLINK_CTL, err);
}
return err;
}
static int xcvr_init_10g_mrvl88x2011(struct niu *np)
{
int err;
/* Set LED functions */
err = mrvl88x2011_led_blink_rate(np, MRVL88X2011_LED_BLKRATE_134MS);
if (err)
return err;
/* led activity */
err = mrvl88x2011_act_led(np, MRVL88X2011_LED_CTL_OFF);
if (err)
return err;
err = mdio_read(np, np->phy_addr, MRVL88X2011_USER_DEV3_ADDR,
MRVL88X2011_GENERAL_CTL);
if (err < 0)
return err;
err |= MRVL88X2011_ENA_XFPREFCLK;
err = mdio_write(np, np->phy_addr, MRVL88X2011_USER_DEV3_ADDR,
MRVL88X2011_GENERAL_CTL, err);
if (err < 0)
return err;
err = mdio_read(np, np->phy_addr, MRVL88X2011_USER_DEV1_ADDR,
MRVL88X2011_PMA_PMD_CTL_1);
if (err < 0)
return err;
if (np->link_config.loopback_mode == LOOPBACK_MAC)
err |= MRVL88X2011_LOOPBACK;
else
err &= ~MRVL88X2011_LOOPBACK;
err = mdio_write(np, np->phy_addr, MRVL88X2011_USER_DEV1_ADDR,
MRVL88X2011_PMA_PMD_CTL_1, err);
if (err < 0)
return err;
/* Enable PMD */
return mdio_write(np, np->phy_addr, MRVL88X2011_USER_DEV1_ADDR,
MRVL88X2011_10G_PMD_TX_DIS, MRVL88X2011_ENA_PMDTX);
}
static int xcvr_diag_bcm870x(struct niu *np)
{
u16 analog_stat0, tx_alarm_status;
int err = 0;
#if 1
err = mdio_read(np, np->phy_addr, BCM8704_PMA_PMD_DEV_ADDR,
MII_STAT1000);
if (err < 0)
return err;
pr_info("Port %u PMA_PMD(MII_STAT1000) [%04x]\n", np->port, err);
err = mdio_read(np, np->phy_addr, BCM8704_USER_DEV3_ADDR, 0x20);
if (err < 0)
return err;
pr_info("Port %u USER_DEV3(0x20) [%04x]\n", np->port, err);
err = mdio_read(np, np->phy_addr, BCM8704_PHYXS_DEV_ADDR,
MII_NWAYTEST);
if (err < 0)
return err;
pr_info("Port %u PHYXS(MII_NWAYTEST) [%04x]\n", np->port, err);
#endif
/* XXX dig this out it might not be so useful XXX */
err = mdio_read(np, np->phy_addr, BCM8704_USER_DEV3_ADDR,
BCM8704_USER_ANALOG_STATUS0);
if (err < 0)
return err;
err = mdio_read(np, np->phy_addr, BCM8704_USER_DEV3_ADDR,
BCM8704_USER_ANALOG_STATUS0);
if (err < 0)
return err;
analog_stat0 = err;
err = mdio_read(np, np->phy_addr, BCM8704_USER_DEV3_ADDR,
BCM8704_USER_TX_ALARM_STATUS);
if (err < 0)
return err;
err = mdio_read(np, np->phy_addr, BCM8704_USER_DEV3_ADDR,
BCM8704_USER_TX_ALARM_STATUS);
if (err < 0)
return err;
tx_alarm_status = err;
if (analog_stat0 != 0x03fc) {
if ((analog_stat0 == 0x43bc) && (tx_alarm_status != 0)) {
pr_info("Port %u cable not connected or bad cable\n",
np->port);
} else if (analog_stat0 == 0x639c) {
pr_info("Port %u optical module is bad or missing\n",
np->port);
}
}
return 0;
}
static int xcvr_10g_set_lb_bcm870x(struct niu *np)
{
struct niu_link_config *lp = &np->link_config;
int err;
err = mdio_read(np, np->phy_addr, BCM8704_PCS_DEV_ADDR,
MII_BMCR);
if (err < 0)
return err;
err &= ~BMCR_LOOPBACK;
if (lp->loopback_mode == LOOPBACK_MAC)
err |= BMCR_LOOPBACK;
err = mdio_write(np, np->phy_addr, BCM8704_PCS_DEV_ADDR,
MII_BMCR, err);
if (err)
return err;
return 0;
}
static int xcvr_init_10g_bcm8706(struct niu *np)
{
int err = 0;
u64 val;
if ((np->flags & NIU_FLAGS_HOTPLUG_PHY) &&
(np->flags & NIU_FLAGS_HOTPLUG_PHY_PRESENT) == 0)
return err;
val = nr64_mac(XMAC_CONFIG);
val &= ~XMAC_CONFIG_LED_POLARITY;
val |= XMAC_CONFIG_FORCE_LED_ON;
nw64_mac(XMAC_CONFIG, val);
val = nr64(MIF_CONFIG);
val |= MIF_CONFIG_INDIRECT_MODE;
nw64(MIF_CONFIG, val);
err = bcm8704_reset(np);
if (err)
return err;
err = xcvr_10g_set_lb_bcm870x(np);
if (err)
return err;
err = bcm8706_init_user_dev3(np);
if (err)
return err;
err = xcvr_diag_bcm870x(np);
if (err)
return err;
return 0;
}
static int xcvr_init_10g_bcm8704(struct niu *np)
{
int err;
err = bcm8704_reset(np);
if (err)
return err;
err = bcm8704_init_user_dev3(np);
if (err)
return err;
err = xcvr_10g_set_lb_bcm870x(np);
if (err)
return err;
err = xcvr_diag_bcm870x(np);
if (err)
return err;
return 0;
}
static int xcvr_init_10g(struct niu *np)
{
int phy_id, err;
u64 val;
val = nr64_mac(XMAC_CONFIG);
val &= ~XMAC_CONFIG_LED_POLARITY;
val |= XMAC_CONFIG_FORCE_LED_ON;
nw64_mac(XMAC_CONFIG, val);
/* XXX shared resource, lock parent XXX */
val = nr64(MIF_CONFIG);
val |= MIF_CONFIG_INDIRECT_MODE;
nw64(MIF_CONFIG, val);
phy_id = phy_decode(np->parent->port_phy, np->port);
phy_id = np->parent->phy_probe_info.phy_id[phy_id][np->port];
/* handle different phy types */
switch (phy_id & NIU_PHY_ID_MASK) {
case NIU_PHY_ID_MRVL88X2011:
err = xcvr_init_10g_mrvl88x2011(np);
break;
default: /* bcom 8704 */
err = xcvr_init_10g_bcm8704(np);
break;
}
return err;
}
static int mii_reset(struct niu *np)
{
int limit, err;
err = mii_write(np, np->phy_addr, MII_BMCR, BMCR_RESET);
if (err)
return err;
limit = 1000;
while (--limit >= 0) {
udelay(500);
err = mii_read(np, np->phy_addr, MII_BMCR);
if (err < 0)
return err;
if (!(err & BMCR_RESET))
break;
}
if (limit < 0) {
netdev_err(np->dev, "Port %u MII would not reset, bmcr[%04x]\n",
np->port, err);
return -ENODEV;
}
return 0;
}
static int xcvr_init_1g_rgmii(struct niu *np)
{
int err;
u64 val;
u16 bmcr, bmsr, estat;
val = nr64(MIF_CONFIG);
val &= ~MIF_CONFIG_INDIRECT_MODE;
nw64(MIF_CONFIG, val);
err = mii_reset(np);
if (err)
return err;
err = mii_read(np, np->phy_addr, MII_BMSR);
if (err < 0)
return err;
bmsr = err;
estat = 0;
if (bmsr & BMSR_ESTATEN) {
err = mii_read(np, np->phy_addr, MII_ESTATUS);
if (err < 0)
return err;
estat = err;
}
bmcr = 0;
err = mii_write(np, np->phy_addr, MII_BMCR, bmcr);
if (err)
return err;
if (bmsr & BMSR_ESTATEN) {
u16 ctrl1000 = 0;
if (estat & ESTATUS_1000_TFULL)
ctrl1000 |= ADVERTISE_1000FULL;
err = mii_write(np, np->phy_addr, MII_CTRL1000, ctrl1000);
if (err)
return err;
}
bmcr = (BMCR_SPEED1000 | BMCR_FULLDPLX);
err = mii_write(np, np->phy_addr, MII_BMCR, bmcr);
if (err)
return err;
err = mii_read(np, np->phy_addr, MII_BMCR);
if (err < 0)
return err;
bmcr = mii_read(np, np->phy_addr, MII_BMCR);
err = mii_read(np, np->phy_addr, MII_BMSR);
if (err < 0)
return err;
return 0;
}
static int mii_init_common(struct niu *np)
{
struct niu_link_config *lp = &np->link_config;
u16 bmcr, bmsr, adv, estat;
int err;
err = mii_reset(np);
if (err)
return err;
err = mii_read(np, np->phy_addr, MII_BMSR);
if (err < 0)
return err;
bmsr = err;
estat = 0;
if (bmsr & BMSR_ESTATEN) {
err = mii_read(np, np->phy_addr, MII_ESTATUS);
if (err < 0)
return err;
estat = err;
}
bmcr = 0;
err = mii_write(np, np->phy_addr, MII_BMCR, bmcr);
if (err)
return err;
if (lp->loopback_mode == LOOPBACK_MAC) {
bmcr |= BMCR_LOOPBACK;
if (lp->active_speed == SPEED_1000)
bmcr |= BMCR_SPEED1000;
if (lp->active_duplex == DUPLEX_FULL)
bmcr |= BMCR_FULLDPLX;
}
if (lp->loopback_mode == LOOPBACK_PHY) {
u16 aux;
aux = (BCM5464R_AUX_CTL_EXT_LB |
BCM5464R_AUX_CTL_WRITE_1);
err = mii_write(np, np->phy_addr, BCM5464R_AUX_CTL, aux);
if (err)
return err;
}
if (lp->autoneg) {
u16 ctrl1000;
adv = ADVERTISE_CSMA | ADVERTISE_PAUSE_CAP;
if ((bmsr & BMSR_10HALF) &&
(lp->advertising & ADVERTISED_10baseT_Half))
adv |= ADVERTISE_10HALF;
if ((bmsr & BMSR_10FULL) &&
(lp->advertising & ADVERTISED_10baseT_Full))
adv |= ADVERTISE_10FULL;
if ((bmsr & BMSR_100HALF) &&
(lp->advertising & ADVERTISED_100baseT_Half))
adv |= ADVERTISE_100HALF;
if ((bmsr & BMSR_100FULL) &&
(lp->advertising & ADVERTISED_100baseT_Full))
adv |= ADVERTISE_100FULL;
err = mii_write(np, np->phy_addr, MII_ADVERTISE, adv);
if (err)
return err;
if (likely(bmsr & BMSR_ESTATEN)) {
ctrl1000 = 0;
if ((estat & ESTATUS_1000_THALF) &&
(lp->advertising & ADVERTISED_1000baseT_Half))
ctrl1000 |= ADVERTISE_1000HALF;
if ((estat & ESTATUS_1000_TFULL) &&
(lp->advertising & ADVERTISED_1000baseT_Full))
ctrl1000 |= ADVERTISE_1000FULL;
err = mii_write(np, np->phy_addr,
MII_CTRL1000, ctrl1000);
if (err)
return err;
}
bmcr |= (BMCR_ANENABLE | BMCR_ANRESTART);
} else {
/* !lp->autoneg */
int fulldpx;
if (lp->duplex == DUPLEX_FULL) {
bmcr |= BMCR_FULLDPLX;
fulldpx = 1;
} else if (lp->duplex == DUPLEX_HALF)
fulldpx = 0;
else
return -EINVAL;
if (lp->speed == SPEED_1000) {
/* if X-full requested while not supported, or
X-half requested while not supported... */
if ((fulldpx && !(estat & ESTATUS_1000_TFULL)) ||
(!fulldpx && !(estat & ESTATUS_1000_THALF)))
return -EINVAL;
bmcr |= BMCR_SPEED1000;
} else if (lp->speed == SPEED_100) {
if ((fulldpx && !(bmsr & BMSR_100FULL)) ||
(!fulldpx && !(bmsr & BMSR_100HALF)))
return -EINVAL;
bmcr |= BMCR_SPEED100;
} else if (lp->speed == SPEED_10) {
if ((fulldpx && !(bmsr & BMSR_10FULL)) ||
(!fulldpx && !(bmsr & BMSR_10HALF)))
return -EINVAL;
} else
return -EINVAL;
}
err = mii_write(np, np->phy_addr, MII_BMCR, bmcr);
if (err)
return err;
#if 0
err = mii_read(np, np->phy_addr, MII_BMCR);
if (err < 0)
return err;
bmcr = err;
err = mii_read(np, np->phy_addr, MII_BMSR);
if (err < 0)
return err;
bmsr = err;
pr_info("Port %u after MII init bmcr[%04x] bmsr[%04x]\n",
np->port, bmcr, bmsr);
#endif
return 0;
}
static int xcvr_init_1g(struct niu *np)
{
u64 val;
/* XXX shared resource, lock parent XXX */
val = nr64(MIF_CONFIG);
val &= ~MIF_CONFIG_INDIRECT_MODE;
nw64(MIF_CONFIG, val);
return mii_init_common(np);
}
static int niu_xcvr_init(struct niu *np)
{
const struct niu_phy_ops *ops = np->phy_ops;
int err;
err = 0;
if (ops->xcvr_init)
err = ops->xcvr_init(np);
return err;
}
static int niu_serdes_init(struct niu *np)
{
const struct niu_phy_ops *ops = np->phy_ops;
int err;
err = 0;
if (ops->serdes_init)
err = ops->serdes_init(np);
return err;
}
static void niu_init_xif(struct niu *);
static void niu_handle_led(struct niu *, int status);
static int niu_link_status_common(struct niu *np, int link_up)
{
struct niu_link_config *lp = &np->link_config;
struct net_device *dev = np->dev;
unsigned long flags;
if (!netif_carrier_ok(dev) && link_up) {
netif_info(np, link, dev, "Link is up at %s, %s duplex\n",
lp->active_speed == SPEED_10000 ? "10Gb/sec" :
lp->active_speed == SPEED_1000 ? "1Gb/sec" :
lp->active_speed == SPEED_100 ? "100Mbit/sec" :
"10Mbit/sec",
lp->active_duplex == DUPLEX_FULL ? "full" : "half");
spin_lock_irqsave(&np->lock, flags);
niu_init_xif(np);
niu_handle_led(np, 1);
spin_unlock_irqrestore(&np->lock, flags);
netif_carrier_on(dev);
} else if (netif_carrier_ok(dev) && !link_up) {
netif_warn(np, link, dev, "Link is down\n");
spin_lock_irqsave(&np->lock, flags);
niu_handle_led(np, 0);
spin_unlock_irqrestore(&np->lock, flags);
netif_carrier_off(dev);
}
return 0;
}
static int link_status_10g_mrvl(struct niu *np, int *link_up_p)
{
int err, link_up, pma_status, pcs_status;
link_up = 0;
err = mdio_read(np, np->phy_addr, MRVL88X2011_USER_DEV1_ADDR,
MRVL88X2011_10G_PMD_STATUS_2);
if (err < 0)
goto out;
/* Check PMA/PMD Register: 1.0001.2 == 1 */
err = mdio_read(np, np->phy_addr, MRVL88X2011_USER_DEV1_ADDR,
MRVL88X2011_PMA_PMD_STATUS_1);
if (err < 0)
goto out;
pma_status = ((err & MRVL88X2011_LNK_STATUS_OK) ? 1 : 0);
/* Check PMC Register : 3.0001.2 == 1: read twice */
err = mdio_read(np, np->phy_addr, MRVL88X2011_USER_DEV3_ADDR,
MRVL88X2011_PMA_PMD_STATUS_1);
if (err < 0)
goto out;
err = mdio_read(np, np->phy_addr, MRVL88X2011_USER_DEV3_ADDR,
MRVL88X2011_PMA_PMD_STATUS_1);
if (err < 0)
goto out;
pcs_status = ((err & MRVL88X2011_LNK_STATUS_OK) ? 1 : 0);
/* Check XGXS Register : 4.0018.[0-3,12] */
err = mdio_read(np, np->phy_addr, MRVL88X2011_USER_DEV4_ADDR,
MRVL88X2011_10G_XGXS_LANE_STAT);
if (err < 0)
goto out;
if (err == (PHYXS_XGXS_LANE_STAT_ALINGED | PHYXS_XGXS_LANE_STAT_LANE3 |
PHYXS_XGXS_LANE_STAT_LANE2 | PHYXS_XGXS_LANE_STAT_LANE1 |
PHYXS_XGXS_LANE_STAT_LANE0 | PHYXS_XGXS_LANE_STAT_MAGIC |
0x800))
link_up = (pma_status && pcs_status) ? 1 : 0;
np->link_config.active_speed = SPEED_10000;
np->link_config.active_duplex = DUPLEX_FULL;
err = 0;
out:
mrvl88x2011_act_led(np, (link_up ?
MRVL88X2011_LED_CTL_PCS_ACT :
MRVL88X2011_LED_CTL_OFF));
*link_up_p = link_up;
return err;
}
static int link_status_10g_bcm8706(struct niu *np, int *link_up_p)
{
int err, link_up;
link_up = 0;
err = mdio_read(np, np->phy_addr, BCM8704_PMA_PMD_DEV_ADDR,
BCM8704_PMD_RCV_SIGDET);
if (err < 0 || err == 0xffff)
goto out;
if (!(err & PMD_RCV_SIGDET_GLOBAL)) {
err = 0;
goto out;
}
err = mdio_read(np, np->phy_addr, BCM8704_PCS_DEV_ADDR,
BCM8704_PCS_10G_R_STATUS);
if (err < 0)
goto out;
if (!(err & PCS_10G_R_STATUS_BLK_LOCK)) {
err = 0;
goto out;
}
err = mdio_read(np, np->phy_addr, BCM8704_PHYXS_DEV_ADDR,
BCM8704_PHYXS_XGXS_LANE_STAT);
if (err < 0)
goto out;
if (err != (PHYXS_XGXS_LANE_STAT_ALINGED |
PHYXS_XGXS_LANE_STAT_MAGIC |
PHYXS_XGXS_LANE_STAT_PATTEST |
PHYXS_XGXS_LANE_STAT_LANE3 |
PHYXS_XGXS_LANE_STAT_LANE2 |
PHYXS_XGXS_LANE_STAT_LANE1 |
PHYXS_XGXS_LANE_STAT_LANE0)) {
err = 0;
np->link_config.active_speed = SPEED_INVALID;
np->link_config.active_duplex = DUPLEX_INVALID;
goto out;
}
link_up = 1;
np->link_config.active_speed = SPEED_10000;
np->link_config.active_duplex = DUPLEX_FULL;
err = 0;
out:
*link_up_p = link_up;
return err;
}
static int link_status_10g_bcom(struct niu *np, int *link_up_p)
{
int err, link_up;
link_up = 0;
err = mdio_read(np, np->phy_addr, BCM8704_PMA_PMD_DEV_ADDR,
BCM8704_PMD_RCV_SIGDET);
if (err < 0)
goto out;
if (!(err & PMD_RCV_SIGDET_GLOBAL)) {
err = 0;
goto out;
}
err = mdio_read(np, np->phy_addr, BCM8704_PCS_DEV_ADDR,
BCM8704_PCS_10G_R_STATUS);
if (err < 0)
goto out;
if (!(err & PCS_10G_R_STATUS_BLK_LOCK)) {
err = 0;
goto out;
}
err = mdio_read(np, np->phy_addr, BCM8704_PHYXS_DEV_ADDR,
BCM8704_PHYXS_XGXS_LANE_STAT);
if (err < 0)
goto out;
if (err != (PHYXS_XGXS_LANE_STAT_ALINGED |
PHYXS_XGXS_LANE_STAT_MAGIC |
PHYXS_XGXS_LANE_STAT_LANE3 |
PHYXS_XGXS_LANE_STAT_LANE2 |
PHYXS_XGXS_LANE_STAT_LANE1 |
PHYXS_XGXS_LANE_STAT_LANE0)) {
err = 0;
goto out;
}
link_up = 1;
np->link_config.active_speed = SPEED_10000;
np->link_config.active_duplex = DUPLEX_FULL;
err = 0;
out:
*link_up_p = link_up;
return err;
}
static int link_status_10g(struct niu *np, int *link_up_p)
{
unsigned long flags;
int err = -EINVAL;
spin_lock_irqsave(&np->lock, flags);
if (np->link_config.loopback_mode == LOOPBACK_DISABLED) {
int phy_id;
phy_id = phy_decode(np->parent->port_phy, np->port);
phy_id = np->parent->phy_probe_info.phy_id[phy_id][np->port];
/* handle different phy types */
switch (phy_id & NIU_PHY_ID_MASK) {
case NIU_PHY_ID_MRVL88X2011:
err = link_status_10g_mrvl(np, link_up_p);
break;
default: /* bcom 8704 */
err = link_status_10g_bcom(np, link_up_p);
break;
}
}
spin_unlock_irqrestore(&np->lock, flags);
return err;
}
static int niu_10g_phy_present(struct niu *np)
{
u64 sig, mask, val;
sig = nr64(ESR_INT_SIGNALS);
switch (np->port) {
case 0:
mask = ESR_INT_SIGNALS_P0_BITS;
val = (ESR_INT_SRDY0_P0 |
ESR_INT_DET0_P0 |
ESR_INT_XSRDY_P0 |
ESR_INT_XDP_P0_CH3 |
ESR_INT_XDP_P0_CH2 |
ESR_INT_XDP_P0_CH1 |
ESR_INT_XDP_P0_CH0);
break;
case 1:
mask = ESR_INT_SIGNALS_P1_BITS;
val = (ESR_INT_SRDY0_P1 |
ESR_INT_DET0_P1 |
ESR_INT_XSRDY_P1 |
ESR_INT_XDP_P1_CH3 |
ESR_INT_XDP_P1_CH2 |
ESR_INT_XDP_P1_CH1 |
ESR_INT_XDP_P1_CH0);
break;
default:
return 0;
}
if ((sig & mask) != val)
return 0;
return 1;
}
static int link_status_10g_hotplug(struct niu *np, int *link_up_p)
{
unsigned long flags;
int err = 0;
int phy_present;
int phy_present_prev;
spin_lock_irqsave(&np->lock, flags);
if (np->link_config.loopback_mode == LOOPBACK_DISABLED) {
phy_present_prev = (np->flags & NIU_FLAGS_HOTPLUG_PHY_PRESENT) ?
1 : 0;
phy_present = niu_10g_phy_present(np);
if (phy_present != phy_present_prev) {
/* state change */
if (phy_present) {
/* A NEM was just plugged in */
np->flags |= NIU_FLAGS_HOTPLUG_PHY_PRESENT;
if (np->phy_ops->xcvr_init)
err = np->phy_ops->xcvr_init(np);
if (err) {
err = mdio_read(np, np->phy_addr,
BCM8704_PHYXS_DEV_ADDR, MII_BMCR);
if (err == 0xffff) {
/* No mdio, back-to-back XAUI */
goto out;
}
/* debounce */
np->flags &= ~NIU_FLAGS_HOTPLUG_PHY_PRESENT;
}
} else {
np->flags &= ~NIU_FLAGS_HOTPLUG_PHY_PRESENT;
*link_up_p = 0;
netif_warn(np, link, np->dev,
"Hotplug PHY Removed\n");
}
}
out:
if (np->flags & NIU_FLAGS_HOTPLUG_PHY_PRESENT) {
err = link_status_10g_bcm8706(np, link_up_p);
if (err == 0xffff) {
/* No mdio, back-to-back XAUI: it is C10NEM */
*link_up_p = 1;
np->link_config.active_speed = SPEED_10000;
np->link_config.active_duplex = DUPLEX_FULL;
}
}
}
spin_unlock_irqrestore(&np->lock, flags);
return 0;
}
static int niu_link_status(struct niu *np, int *link_up_p)
{
const struct niu_phy_ops *ops = np->phy_ops;
int err;
err = 0;
if (ops->link_status)
err = ops->link_status(np, link_up_p);
return err;
}
static void niu_timer(struct timer_list *t)
{
struct niu *np = from_timer(np, t, timer);
unsigned long off;
int err, link_up;
err = niu_link_status(np, &link_up);
if (!err)
niu_link_status_common(np, link_up);
if (netif_carrier_ok(np->dev))
off = 5 * HZ;
else
off = 1 * HZ;
np->timer.expires = jiffies + off;
add_timer(&np->timer);
}
static const struct niu_phy_ops phy_ops_10g_serdes = {
.serdes_init = serdes_init_10g_serdes,
.link_status = link_status_10g_serdes,
};
static const struct niu_phy_ops phy_ops_10g_serdes_niu = {
.serdes_init = serdes_init_niu_10g_serdes,
.link_status = link_status_10g_serdes,
};
static const struct niu_phy_ops phy_ops_1g_serdes_niu = {
.serdes_init = serdes_init_niu_1g_serdes,
.link_status = link_status_1g_serdes,
};
static const struct niu_phy_ops phy_ops_1g_rgmii = {
.xcvr_init = xcvr_init_1g_rgmii,
.link_status = link_status_1g_rgmii,
};
static const struct niu_phy_ops phy_ops_10g_fiber_niu = {
.serdes_init = serdes_init_niu_10g_fiber,
.xcvr_init = xcvr_init_10g,
.link_status = link_status_10g,
};
static const struct niu_phy_ops phy_ops_10g_fiber = {
.serdes_init = serdes_init_10g,
.xcvr_init = xcvr_init_10g,
.link_status = link_status_10g,
};
static const struct niu_phy_ops phy_ops_10g_fiber_hotplug = {
.serdes_init = serdes_init_10g,
.xcvr_init = xcvr_init_10g_bcm8706,
.link_status = link_status_10g_hotplug,
};
static const struct niu_phy_ops phy_ops_niu_10g_hotplug = {
.serdes_init = serdes_init_niu_10g_fiber,
.xcvr_init = xcvr_init_10g_bcm8706,
.link_status = link_status_10g_hotplug,
};
static const struct niu_phy_ops phy_ops_10g_copper = {
.serdes_init = serdes_init_10g,
.link_status = link_status_10g, /* XXX */
};
static const struct niu_phy_ops phy_ops_1g_fiber = {
.serdes_init = serdes_init_1g,
.xcvr_init = xcvr_init_1g,
.link_status = link_status_1g,
};
static const struct niu_phy_ops phy_ops_1g_copper = {
.xcvr_init = xcvr_init_1g,
.link_status = link_status_1g,
};
struct niu_phy_template {
const struct niu_phy_ops *ops;
u32 phy_addr_base;
};
static const struct niu_phy_template phy_template_niu_10g_fiber = {
.ops = &phy_ops_10g_fiber_niu,
.phy_addr_base = 16,
};
static const struct niu_phy_template phy_template_niu_10g_serdes = {
.ops = &phy_ops_10g_serdes_niu,
.phy_addr_base = 0,
};
static const struct niu_phy_template phy_template_niu_1g_serdes = {
.ops = &phy_ops_1g_serdes_niu,
.phy_addr_base = 0,
};
static const struct niu_phy_template phy_template_10g_fiber = {
.ops = &phy_ops_10g_fiber,
.phy_addr_base = 8,
};
static const struct niu_phy_template phy_template_10g_fiber_hotplug = {
.ops = &phy_ops_10g_fiber_hotplug,
.phy_addr_base = 8,
};
static const struct niu_phy_template phy_template_niu_10g_hotplug = {
.ops = &phy_ops_niu_10g_hotplug,
.phy_addr_base = 8,
};
static const struct niu_phy_template phy_template_10g_copper = {
.ops = &phy_ops_10g_copper,
.phy_addr_base = 10,
};
static const struct niu_phy_template phy_template_1g_fiber = {
.ops = &phy_ops_1g_fiber,
.phy_addr_base = 0,
};
static const struct niu_phy_template phy_template_1g_copper = {
.ops = &phy_ops_1g_copper,
.phy_addr_base = 0,
};
static const struct niu_phy_template phy_template_1g_rgmii = {
.ops = &phy_ops_1g_rgmii,
.phy_addr_base = 0,
};
static const struct niu_phy_template phy_template_10g_serdes = {
.ops = &phy_ops_10g_serdes,
.phy_addr_base = 0,
};
static int niu_atca_port_num[4] = {
0, 0, 11, 10
};
static int serdes_init_10g_serdes(struct niu *np)
{
struct niu_link_config *lp = &np->link_config;
unsigned long ctrl_reg, test_cfg_reg, pll_cfg, i;
u64 ctrl_val, test_cfg_val, sig, mask, val;
switch (np->port) {
case 0:
ctrl_reg = ENET_SERDES_0_CTRL_CFG;
test_cfg_reg = ENET_SERDES_0_TEST_CFG;
pll_cfg = ENET_SERDES_0_PLL_CFG;
break;
case 1:
ctrl_reg = ENET_SERDES_1_CTRL_CFG;
test_cfg_reg = ENET_SERDES_1_TEST_CFG;
pll_cfg = ENET_SERDES_1_PLL_CFG;
break;
default:
return -EINVAL;
}
ctrl_val = (ENET_SERDES_CTRL_SDET_0 |
ENET_SERDES_CTRL_SDET_1 |
ENET_SERDES_CTRL_SDET_2 |
ENET_SERDES_CTRL_SDET_3 |
(0x5 << ENET_SERDES_CTRL_EMPH_0_SHIFT) |
(0x5 << ENET_SERDES_CTRL_EMPH_1_SHIFT) |
(0x5 << ENET_SERDES_CTRL_EMPH_2_SHIFT) |
(0x5 << ENET_SERDES_CTRL_EMPH_3_SHIFT) |
(0x1 << ENET_SERDES_CTRL_LADJ_0_SHIFT) |
(0x1 << ENET_SERDES_CTRL_LADJ_1_SHIFT) |
(0x1 << ENET_SERDES_CTRL_LADJ_2_SHIFT) |
(0x1 << ENET_SERDES_CTRL_LADJ_3_SHIFT));
test_cfg_val = 0;
if (lp->loopback_mode == LOOPBACK_PHY) {
test_cfg_val |= ((ENET_TEST_MD_PAD_LOOPBACK <<
ENET_SERDES_TEST_MD_0_SHIFT) |
(ENET_TEST_MD_PAD_LOOPBACK <<
ENET_SERDES_TEST_MD_1_SHIFT) |
(ENET_TEST_MD_PAD_LOOPBACK <<
ENET_SERDES_TEST_MD_2_SHIFT) |
(ENET_TEST_MD_PAD_LOOPBACK <<
ENET_SERDES_TEST_MD_3_SHIFT));
}
esr_reset(np);
nw64(pll_cfg, ENET_SERDES_PLL_FBDIV2);
nw64(ctrl_reg, ctrl_val);
nw64(test_cfg_reg, test_cfg_val);
/* Initialize all 4 lanes of the SERDES. */
for (i = 0; i < 4; i++) {
u32 rxtx_ctrl, glue0;
int err;
err = esr_read_rxtx_ctrl(np, i, &rxtx_ctrl);
if (err)
return err;
err = esr_read_glue0(np, i, &glue0);
if (err)
return err;
rxtx_ctrl &= ~(ESR_RXTX_CTRL_VMUXLO);
rxtx_ctrl |= (ESR_RXTX_CTRL_ENSTRETCH |
(2 << ESR_RXTX_CTRL_VMUXLO_SHIFT));
glue0 &= ~(ESR_GLUE_CTRL0_SRATE |
ESR_GLUE_CTRL0_THCNT |
ESR_GLUE_CTRL0_BLTIME);
glue0 |= (ESR_GLUE_CTRL0_RXLOSENAB |
(0xf << ESR_GLUE_CTRL0_SRATE_SHIFT) |
(0xff << ESR_GLUE_CTRL0_THCNT_SHIFT) |
(BLTIME_300_CYCLES <<
ESR_GLUE_CTRL0_BLTIME_SHIFT));
err = esr_write_rxtx_ctrl(np, i, rxtx_ctrl);
if (err)
return err;
err = esr_write_glue0(np, i, glue0);
if (err)
return err;
}
sig = nr64(ESR_INT_SIGNALS);
switch (np->port) {
case 0:
mask = ESR_INT_SIGNALS_P0_BITS;
val = (ESR_INT_SRDY0_P0 |
ESR_INT_DET0_P0 |
ESR_INT_XSRDY_P0 |
ESR_INT_XDP_P0_CH3 |
ESR_INT_XDP_P0_CH2 |
ESR_INT_XDP_P0_CH1 |
ESR_INT_XDP_P0_CH0);
break;
case 1:
mask = ESR_INT_SIGNALS_P1_BITS;
val = (ESR_INT_SRDY0_P1 |
ESR_INT_DET0_P1 |
ESR_INT_XSRDY_P1 |
ESR_INT_XDP_P1_CH3 |
ESR_INT_XDP_P1_CH2 |
ESR_INT_XDP_P1_CH1 |
ESR_INT_XDP_P1_CH0);
break;
default:
return -EINVAL;
}
if ((sig & mask) != val) {
int err;
err = serdes_init_1g_serdes(np);
if (!err) {
np->flags &= ~NIU_FLAGS_10G;
np->mac_xcvr = MAC_XCVR_PCS;
} else {
netdev_err(np->dev, "Port %u 10G/1G SERDES Link Failed\n",
np->port);
return -ENODEV;
}
}
return 0;
}
static int niu_determine_phy_disposition(struct niu *np)
{
struct niu_parent *parent = np->parent;
u8 plat_type = parent->plat_type;
const struct niu_phy_template *tp;
u32 phy_addr_off = 0;
if (plat_type == PLAT_TYPE_NIU) {
switch (np->flags &
(NIU_FLAGS_10G |
NIU_FLAGS_FIBER |
NIU_FLAGS_XCVR_SERDES)) {
case NIU_FLAGS_10G | NIU_FLAGS_XCVR_SERDES:
/* 10G Serdes */
tp = &phy_template_niu_10g_serdes;
break;
case NIU_FLAGS_XCVR_SERDES:
/* 1G Serdes */
tp = &phy_template_niu_1g_serdes;
break;
case NIU_FLAGS_10G | NIU_FLAGS_FIBER:
/* 10G Fiber */
default:
if (np->flags & NIU_FLAGS_HOTPLUG_PHY) {
tp = &phy_template_niu_10g_hotplug;
if (np->port == 0)
phy_addr_off = 8;
if (np->port == 1)
phy_addr_off = 12;
} else {
tp = &phy_template_niu_10g_fiber;
phy_addr_off += np->port;
}
break;
}
} else {
switch (np->flags &
(NIU_FLAGS_10G |
NIU_FLAGS_FIBER |
NIU_FLAGS_XCVR_SERDES)) {
case 0:
/* 1G copper */
tp = &phy_template_1g_copper;
if (plat_type == PLAT_TYPE_VF_P0)
phy_addr_off = 10;
else if (plat_type == PLAT_TYPE_VF_P1)
phy_addr_off = 26;
phy_addr_off += (np->port ^ 0x3);
break;
case NIU_FLAGS_10G:
/* 10G copper */
tp = &phy_template_10g_copper;
break;
case NIU_FLAGS_FIBER:
/* 1G fiber */
tp = &phy_template_1g_fiber;
break;
case NIU_FLAGS_10G | NIU_FLAGS_FIBER:
/* 10G fiber */
tp = &phy_template_10g_fiber;
if (plat_type == PLAT_TYPE_VF_P0 ||
plat_type == PLAT_TYPE_VF_P1)
phy_addr_off = 8;
phy_addr_off += np->port;
if (np->flags & NIU_FLAGS_HOTPLUG_PHY) {
tp = &phy_template_10g_fiber_hotplug;
if (np->port == 0)
phy_addr_off = 8;
if (np->port == 1)
phy_addr_off = 12;
}
break;
case NIU_FLAGS_10G | NIU_FLAGS_XCVR_SERDES:
case NIU_FLAGS_XCVR_SERDES | NIU_FLAGS_FIBER:
case NIU_FLAGS_XCVR_SERDES:
switch(np->port) {
case 0:
case 1:
tp = &phy_template_10g_serdes;
break;
case 2:
case 3:
tp = &phy_template_1g_rgmii;
break;
default:
return -EINVAL;
}
phy_addr_off = niu_atca_port_num[np->port];
break;
default:
return -EINVAL;
}
}
np->phy_ops = tp->ops;
np->phy_addr = tp->phy_addr_base + phy_addr_off;
return 0;
}
static int niu_init_link(struct niu *np)
{
struct niu_parent *parent = np->parent;
int err, ignore;
if (parent->plat_type == PLAT_TYPE_NIU) {
err = niu_xcvr_init(np);
if (err)
return err;
msleep(200);
}
err = niu_serdes_init(np);
if (err && !(np->flags & NIU_FLAGS_HOTPLUG_PHY))
return err;
msleep(200);
err = niu_xcvr_init(np);
if (!err || (np->flags & NIU_FLAGS_HOTPLUG_PHY))
niu_link_status(np, &ignore);
return 0;
}
static void niu_set_primary_mac(struct niu *np, unsigned char *addr)
{
u16 reg0 = addr[4] << 8 | addr[5];
u16 reg1 = addr[2] << 8 | addr[3];
u16 reg2 = addr[0] << 8 | addr[1];
if (np->flags & NIU_FLAGS_XMAC) {
nw64_mac(XMAC_ADDR0, reg0);
nw64_mac(XMAC_ADDR1, reg1);
nw64_mac(XMAC_ADDR2, reg2);
} else {
nw64_mac(BMAC_ADDR0, reg0);
nw64_mac(BMAC_ADDR1, reg1);
nw64_mac(BMAC_ADDR2, reg2);
}
}
static int niu_num_alt_addr(struct niu *np)
{
if (np->flags & NIU_FLAGS_XMAC)
return XMAC_NUM_ALT_ADDR;
else
return BMAC_NUM_ALT_ADDR;
}
static int niu_set_alt_mac(struct niu *np, int index, unsigned char *addr)
{
u16 reg0 = addr[4] << 8 | addr[5];
u16 reg1 = addr[2] << 8 | addr[3];
u16 reg2 = addr[0] << 8 | addr[1];
if (index >= niu_num_alt_addr(np))
return -EINVAL;
if (np->flags & NIU_FLAGS_XMAC) {
nw64_mac(XMAC_ALT_ADDR0(index), reg0);
nw64_mac(XMAC_ALT_ADDR1(index), reg1);
nw64_mac(XMAC_ALT_ADDR2(index), reg2);
} else {
nw64_mac(BMAC_ALT_ADDR0(index), reg0);
nw64_mac(BMAC_ALT_ADDR1(index), reg1);
nw64_mac(BMAC_ALT_ADDR2(index), reg2);
}
return 0;
}
static int niu_enable_alt_mac(struct niu *np, int index, int on)
{
unsigned long reg;
u64 val, mask;
if (index >= niu_num_alt_addr(np))
return -EINVAL;
if (np->flags & NIU_FLAGS_XMAC) {
reg = XMAC_ADDR_CMPEN;
mask = 1 << index;
} else {
reg = BMAC_ADDR_CMPEN;
mask = 1 << (index + 1);
}
val = nr64_mac(reg);
if (on)
val |= mask;
else
val &= ~mask;
nw64_mac(reg, val);
return 0;
}
static void __set_rdc_table_num_hw(struct niu *np, unsigned long reg,
int num, int mac_pref)
{
u64 val = nr64_mac(reg);
val &= ~(HOST_INFO_MACRDCTBLN | HOST_INFO_MPR);
val |= num;
if (mac_pref)
val |= HOST_INFO_MPR;
nw64_mac(reg, val);
}
static int __set_rdc_table_num(struct niu *np,
int xmac_index, int bmac_index,
int rdc_table_num, int mac_pref)
{
unsigned long reg;
if (rdc_table_num & ~HOST_INFO_MACRDCTBLN)
return -EINVAL;
if (np->flags & NIU_FLAGS_XMAC)
reg = XMAC_HOST_INFO(xmac_index);
else
reg = BMAC_HOST_INFO(bmac_index);
__set_rdc_table_num_hw(np, reg, rdc_table_num, mac_pref);
return 0;
}
static int niu_set_primary_mac_rdc_table(struct niu *np, int table_num,
int mac_pref)
{
return __set_rdc_table_num(np, 17, 0, table_num, mac_pref);
}
static int niu_set_multicast_mac_rdc_table(struct niu *np, int table_num,
int mac_pref)
{
return __set_rdc_table_num(np, 16, 8, table_num, mac_pref);
}
static int niu_set_alt_mac_rdc_table(struct niu *np, int idx,
int table_num, int mac_pref)
{
if (idx >= niu_num_alt_addr(np))
return -EINVAL;
return __set_rdc_table_num(np, idx, idx + 1, table_num, mac_pref);
}
static u64 vlan_entry_set_parity(u64 reg_val)
{
u64 port01_mask;
u64 port23_mask;
port01_mask = 0x00ff;
port23_mask = 0xff00;
if (hweight64(reg_val & port01_mask) & 1)
reg_val |= ENET_VLAN_TBL_PARITY0;
else
reg_val &= ~ENET_VLAN_TBL_PARITY0;
if (hweight64(reg_val & port23_mask) & 1)
reg_val |= ENET_VLAN_TBL_PARITY1;
else
reg_val &= ~ENET_VLAN_TBL_PARITY1;
return reg_val;
}
static void vlan_tbl_write(struct niu *np, unsigned long index,
int port, int vpr, int rdc_table)
{
u64 reg_val = nr64(ENET_VLAN_TBL(index));
reg_val &= ~((ENET_VLAN_TBL_VPR |
ENET_VLAN_TBL_VLANRDCTBLN) <<
ENET_VLAN_TBL_SHIFT(port));
if (vpr)
reg_val |= (ENET_VLAN_TBL_VPR <<
ENET_VLAN_TBL_SHIFT(port));
reg_val |= (rdc_table << ENET_VLAN_TBL_SHIFT(port));
reg_val = vlan_entry_set_parity(reg_val);
nw64(ENET_VLAN_TBL(index), reg_val);
}
static void vlan_tbl_clear(struct niu *np)
{
int i;
for (i = 0; i < ENET_VLAN_TBL_NUM_ENTRIES; i++)
nw64(ENET_VLAN_TBL(i), 0);
}
static int tcam_wait_bit(struct niu *np, u64 bit)
{
int limit = 1000;
while (--limit > 0) {
if (nr64(TCAM_CTL) & bit)
break;
udelay(1);
}
if (limit <= 0)
return -ENODEV;
return 0;
}
static int tcam_flush(struct niu *np, int index)
{
nw64(TCAM_KEY_0, 0x00);
nw64(TCAM_KEY_MASK_0, 0xff);
nw64(TCAM_CTL, (TCAM_CTL_RWC_TCAM_WRITE | index));
return tcam_wait_bit(np, TCAM_CTL_STAT);
}
#if 0
static int tcam_read(struct niu *np, int index,
u64 *key, u64 *mask)
{
int err;
nw64(TCAM_CTL, (TCAM_CTL_RWC_TCAM_READ | index));
err = tcam_wait_bit(np, TCAM_CTL_STAT);
if (!err) {
key[0] = nr64(TCAM_KEY_0);
key[1] = nr64(TCAM_KEY_1);
key[2] = nr64(TCAM_KEY_2);
key[3] = nr64(TCAM_KEY_3);
mask[0] = nr64(TCAM_KEY_MASK_0);
mask[1] = nr64(TCAM_KEY_MASK_1);
mask[2] = nr64(TCAM_KEY_MASK_2);
mask[3] = nr64(TCAM_KEY_MASK_3);
}
return err;
}
#endif
static int tcam_write(struct niu *np, int index,
u64 *key, u64 *mask)
{
nw64(TCAM_KEY_0, key[0]);
nw64(TCAM_KEY_1, key[1]);
nw64(TCAM_KEY_2, key[2]);
nw64(TCAM_KEY_3, key[3]);
nw64(TCAM_KEY_MASK_0, mask[0]);
nw64(TCAM_KEY_MASK_1, mask[1]);
nw64(TCAM_KEY_MASK_2, mask[2]);
nw64(TCAM_KEY_MASK_3, mask[3]);
nw64(TCAM_CTL, (TCAM_CTL_RWC_TCAM_WRITE | index));
return tcam_wait_bit(np, TCAM_CTL_STAT);
}
#if 0
static int tcam_assoc_read(struct niu *np, int index, u64 *data)
{
int err;
nw64(TCAM_CTL, (TCAM_CTL_RWC_RAM_READ | index));
err = tcam_wait_bit(np, TCAM_CTL_STAT);
if (!err)
*data = nr64(TCAM_KEY_1);
return err;
}
#endif
static int tcam_assoc_write(struct niu *np, int index, u64 assoc_data)
{
nw64(TCAM_KEY_1, assoc_data);
nw64(TCAM_CTL, (TCAM_CTL_RWC_RAM_WRITE | index));
return tcam_wait_bit(np, TCAM_CTL_STAT);
}
static void tcam_enable(struct niu *np, int on)
{
u64 val = nr64(FFLP_CFG_1);
if (on)
val &= ~FFLP_CFG_1_TCAM_DIS;
else
val |= FFLP_CFG_1_TCAM_DIS;
nw64(FFLP_CFG_1, val);
}
static void tcam_set_lat_and_ratio(struct niu *np, u64 latency, u64 ratio)
{
u64 val = nr64(FFLP_CFG_1);
val &= ~(FFLP_CFG_1_FFLPINITDONE |
FFLP_CFG_1_CAMLAT |
FFLP_CFG_1_CAMRATIO);
val |= (latency << FFLP_CFG_1_CAMLAT_SHIFT);
val |= (ratio << FFLP_CFG_1_CAMRATIO_SHIFT);
nw64(FFLP_CFG_1, val);
val = nr64(FFLP_CFG_1);
val |= FFLP_CFG_1_FFLPINITDONE;
nw64(FFLP_CFG_1, val);
}
static int tcam_user_eth_class_enable(struct niu *np, unsigned long class,
int on)
{
unsigned long reg;
u64 val;
if (class < CLASS_CODE_ETHERTYPE1 ||
class > CLASS_CODE_ETHERTYPE2)
return -EINVAL;
reg = L2_CLS(class - CLASS_CODE_ETHERTYPE1);
val = nr64(reg);
if (on)
val |= L2_CLS_VLD;
else
val &= ~L2_CLS_VLD;
nw64(reg, val);
return 0;
}
#if 0
static int tcam_user_eth_class_set(struct niu *np, unsigned long class,
u64 ether_type)
{
unsigned long reg;
u64 val;
if (class < CLASS_CODE_ETHERTYPE1 ||
class > CLASS_CODE_ETHERTYPE2 ||
(ether_type & ~(u64)0xffff) != 0)
return -EINVAL;
reg = L2_CLS(class - CLASS_CODE_ETHERTYPE1);
val = nr64(reg);
val &= ~L2_CLS_ETYPE;
val |= (ether_type << L2_CLS_ETYPE_SHIFT);
nw64(reg, val);
return 0;
}
#endif
static int tcam_user_ip_class_enable(struct niu *np, unsigned long class,
int on)
{
unsigned long reg;
u64 val;
if (class < CLASS_CODE_USER_PROG1 ||
class > CLASS_CODE_USER_PROG4)
return -EINVAL;
reg = L3_CLS(class - CLASS_CODE_USER_PROG1);
val = nr64(reg);
if (on)
val |= L3_CLS_VALID;
else
val &= ~L3_CLS_VALID;
nw64(reg, val);
return 0;
}
static int tcam_user_ip_class_set(struct niu *np, unsigned long class,
int ipv6, u64 protocol_id,
u64 tos_mask, u64 tos_val)
{
unsigned long reg;
u64 val;
if (class < CLASS_CODE_USER_PROG1 ||
class > CLASS_CODE_USER_PROG4 ||
(protocol_id & ~(u64)0xff) != 0 ||
(tos_mask & ~(u64)0xff) != 0 ||
(tos_val & ~(u64)0xff) != 0)
return -EINVAL;
reg = L3_CLS(class - CLASS_CODE_USER_PROG1);
val = nr64(reg);
val &= ~(L3_CLS_IPVER | L3_CLS_PID |
L3_CLS_TOSMASK | L3_CLS_TOS);
if (ipv6)
val |= L3_CLS_IPVER;
val |= (protocol_id << L3_CLS_PID_SHIFT);
val |= (tos_mask << L3_CLS_TOSMASK_SHIFT);
val |= (tos_val << L3_CLS_TOS_SHIFT);
nw64(reg, val);
return 0;
}
static int tcam_early_init(struct niu *np)
{
unsigned long i;
int err;
tcam_enable(np, 0);
tcam_set_lat_and_ratio(np,
DEFAULT_TCAM_LATENCY,
DEFAULT_TCAM_ACCESS_RATIO);
for (i = CLASS_CODE_ETHERTYPE1; i <= CLASS_CODE_ETHERTYPE2; i++) {
err = tcam_user_eth_class_enable(np, i, 0);
if (err)
return err;
}
for (i = CLASS_CODE_USER_PROG1; i <= CLASS_CODE_USER_PROG4; i++) {
err = tcam_user_ip_class_enable(np, i, 0);
if (err)
return err;
}
return 0;
}
static int tcam_flush_all(struct niu *np)
{
unsigned long i;
for (i = 0; i < np->parent->tcam_num_entries; i++) {
int err = tcam_flush(np, i);
if (err)
return err;
}
return 0;
}
static u64 hash_addr_regval(unsigned long index, unsigned long num_entries)
{
return (u64)index | (num_entries == 1 ? HASH_TBL_ADDR_AUTOINC : 0);
}
#if 0
static int hash_read(struct niu *np, unsigned long partition,
unsigned long index, unsigned long num_entries,
u64 *data)
{
u64 val = hash_addr_regval(index, num_entries);
unsigned long i;
if (partition >= FCRAM_NUM_PARTITIONS ||
index + num_entries > FCRAM_SIZE)
return -EINVAL;
nw64(HASH_TBL_ADDR(partition), val);
for (i = 0; i < num_entries; i++)
data[i] = nr64(HASH_TBL_DATA(partition));
return 0;
}
#endif
static int hash_write(struct niu *np, unsigned long partition,
unsigned long index, unsigned long num_entries,
u64 *data)
{
u64 val = hash_addr_regval(index, num_entries);
unsigned long i;
if (partition >= FCRAM_NUM_PARTITIONS ||
index + (num_entries * 8) > FCRAM_SIZE)
return -EINVAL;
nw64(HASH_TBL_ADDR(partition), val);
for (i = 0; i < num_entries; i++)
nw64(HASH_TBL_DATA(partition), data[i]);
return 0;
}
static void fflp_reset(struct niu *np)
{
u64 val;
nw64(FFLP_CFG_1, FFLP_CFG_1_PIO_FIO_RST);
udelay(10);
nw64(FFLP_CFG_1, 0);
val = FFLP_CFG_1_FCRAMOUTDR_NORMAL | FFLP_CFG_1_FFLPINITDONE;
nw64(FFLP_CFG_1, val);
}
static void fflp_set_timings(struct niu *np)
{
u64 val = nr64(FFLP_CFG_1);
val &= ~FFLP_CFG_1_FFLPINITDONE;
val |= (DEFAULT_FCRAMRATIO << FFLP_CFG_1_FCRAMRATIO_SHIFT);
nw64(FFLP_CFG_1, val);
val = nr64(FFLP_CFG_1);
val |= FFLP_CFG_1_FFLPINITDONE;
nw64(FFLP_CFG_1, val);
val = nr64(FCRAM_REF_TMR);
val &= ~(FCRAM_REF_TMR_MAX | FCRAM_REF_TMR_MIN);
val |= (DEFAULT_FCRAM_REFRESH_MAX << FCRAM_REF_TMR_MAX_SHIFT);
val |= (DEFAULT_FCRAM_REFRESH_MIN << FCRAM_REF_TMR_MIN_SHIFT);
nw64(FCRAM_REF_TMR, val);
}
static int fflp_set_partition(struct niu *np, u64 partition,
u64 mask, u64 base, int enable)
{
unsigned long reg;
u64 val;
if (partition >= FCRAM_NUM_PARTITIONS ||
(mask & ~(u64)0x1f) != 0 ||
(base & ~(u64)0x1f) != 0)
return -EINVAL;
reg = FLW_PRT_SEL(partition);
val = nr64(reg);
val &= ~(FLW_PRT_SEL_EXT | FLW_PRT_SEL_MASK | FLW_PRT_SEL_BASE);
val |= (mask << FLW_PRT_SEL_MASK_SHIFT);
val |= (base << FLW_PRT_SEL_BASE_SHIFT);
if (enable)
val |= FLW_PRT_SEL_EXT;
nw64(reg, val);
return 0;
}
static int fflp_disable_all_partitions(struct niu *np)
{
unsigned long i;
for (i = 0; i < FCRAM_NUM_PARTITIONS; i++) {
int err = fflp_set_partition(np, 0, 0, 0, 0);
if (err)
return err;
}
return 0;
}
static void fflp_llcsnap_enable(struct niu *np, int on)
{
u64 val = nr64(FFLP_CFG_1);
if (on)
val |= FFLP_CFG_1_LLCSNAP;
else
val &= ~FFLP_CFG_1_LLCSNAP;
nw64(FFLP_CFG_1, val);
}
static void fflp_errors_enable(struct niu *np, int on)
{
u64 val = nr64(FFLP_CFG_1);
if (on)
val &= ~FFLP_CFG_1_ERRORDIS;
else
val |= FFLP_CFG_1_ERRORDIS;
nw64(FFLP_CFG_1, val);
}
static int fflp_hash_clear(struct niu *np)
{
struct fcram_hash_ipv4 ent;
unsigned long i;
/* IPV4 hash entry with valid bit clear, rest is don't care. */
memset(&ent, 0, sizeof(ent));
ent.header = HASH_HEADER_EXT;
for (i = 0; i < FCRAM_SIZE; i += sizeof(ent)) {
int err = hash_write(np, 0, i, 1, (u64 *) &ent);
if (err)
return err;
}
return 0;
}
static int fflp_early_init(struct niu *np)
{
struct niu_parent *parent;
unsigned long flags;
int err;
niu_lock_parent(np, flags);
parent = np->parent;
err = 0;
if (!(parent->flags & PARENT_FLGS_CLS_HWINIT)) {
if (np->parent->plat_type != PLAT_TYPE_NIU) {
fflp_reset(np);
fflp_set_timings(np);
err = fflp_disable_all_partitions(np);
if (err) {
netif_printk(np, probe, KERN_DEBUG, np->dev,
"fflp_disable_all_partitions failed, err=%d\n",
err);
goto out;
}
}
err = tcam_early_init(np);
if (err) {
netif_printk(np, probe, KERN_DEBUG, np->dev,
"tcam_early_init failed, err=%d\n", err);
goto out;
}
fflp_llcsnap_enable(np, 1);
fflp_errors_enable(np, 0);
nw64(H1POLY, 0);
nw64(H2POLY, 0);
err = tcam_flush_all(np);
if (err) {
netif_printk(np, probe, KERN_DEBUG, np->dev,
"tcam_flush_all failed, err=%d\n", err);
goto out;
}
if (np->parent->plat_type != PLAT_TYPE_NIU) {
err = fflp_hash_clear(np);
if (err) {
netif_printk(np, probe, KERN_DEBUG, np->dev,
"fflp_hash_clear failed, err=%d\n",
err);
goto out;
}
}
vlan_tbl_clear(np);
parent->flags |= PARENT_FLGS_CLS_HWINIT;
}
out:
niu_unlock_parent(np, flags);
return err;
}
static int niu_set_flow_key(struct niu *np, unsigned long class_code, u64 key)
{
if (class_code < CLASS_CODE_USER_PROG1 ||
class_code > CLASS_CODE_SCTP_IPV6)
return -EINVAL;
nw64(FLOW_KEY(class_code - CLASS_CODE_USER_PROG1), key);
return 0;
}
static int niu_set_tcam_key(struct niu *np, unsigned long class_code, u64 key)
{
if (class_code < CLASS_CODE_USER_PROG1 ||
class_code > CLASS_CODE_SCTP_IPV6)
return -EINVAL;
nw64(TCAM_KEY(class_code - CLASS_CODE_USER_PROG1), key);
return 0;
}
/* Entries for the ports are interleaved in the TCAM */
static u16 tcam_get_index(struct niu *np, u16 idx)
{
/* One entry reserved for IP fragment rule */
if (idx >= (np->clas.tcam_sz - 1))
idx = 0;
return np->clas.tcam_top + ((idx+1) * np->parent->num_ports);
}
static u16 tcam_get_size(struct niu *np)
{
/* One entry reserved for IP fragment rule */
return np->clas.tcam_sz - 1;
}
static u16 tcam_get_valid_entry_cnt(struct niu *np)
{
/* One entry reserved for IP fragment rule */
return np->clas.tcam_valid_entries - 1;
}
static void niu_rx_skb_append(struct sk_buff *skb, struct page *page,
u32 offset, u32 size, u32 truesize)
{
skb_fill_page_desc(skb, skb_shinfo(skb)->nr_frags, page, offset, size);
skb->len += size;
skb->data_len += size;
skb->truesize += truesize;
}
static unsigned int niu_hash_rxaddr(struct rx_ring_info *rp, u64 a)
{
a >>= PAGE_SHIFT;
a ^= (a >> ilog2(MAX_RBR_RING_SIZE));
return a & (MAX_RBR_RING_SIZE - 1);
}
static struct page *niu_find_rxpage(struct rx_ring_info *rp, u64 addr,
struct page ***link)
{
unsigned int h = niu_hash_rxaddr(rp, addr);
struct page *p, **pp;
addr &= PAGE_MASK;
pp = &rp->rxhash[h];
for (; (p = *pp) != NULL; pp = (struct page **) &p->mapping) {
if (p->index == addr) {
*link = pp;
goto found;
}
}
BUG();
found:
return p;
}
static void niu_hash_page(struct rx_ring_info *rp, struct page *page, u64 base)
{
unsigned int h = niu_hash_rxaddr(rp, base);
page->index = base;
page->mapping = (struct address_space *) rp->rxhash[h];
rp->rxhash[h] = page;
}
static int niu_rbr_add_page(struct niu *np, struct rx_ring_info *rp,
gfp_t mask, int start_index)
{
struct page *page;
u64 addr;
int i;
page = alloc_page(mask);
if (!page)
return -ENOMEM;
addr = np->ops->map_page(np->device, page, 0,
PAGE_SIZE, DMA_FROM_DEVICE);
if (!addr) {
__free_page(page);
return -ENOMEM;
}
niu_hash_page(rp, page, addr);
if (rp->rbr_blocks_per_page > 1)
page_ref_add(page, rp->rbr_blocks_per_page - 1);
for (i = 0; i < rp->rbr_blocks_per_page; i++) {
__le32 *rbr = &rp->rbr[start_index + i];
*rbr = cpu_to_le32(addr >> RBR_DESCR_ADDR_SHIFT);
addr += rp->rbr_block_size;
}
return 0;
}
static void niu_rbr_refill(struct niu *np, struct rx_ring_info *rp, gfp_t mask)
{
int index = rp->rbr_index;
rp->rbr_pending++;
if ((rp->rbr_pending % rp->rbr_blocks_per_page) == 0) {
int err = niu_rbr_add_page(np, rp, mask, index);
if (unlikely(err)) {
rp->rbr_pending--;
return;
}
rp->rbr_index += rp->rbr_blocks_per_page;
BUG_ON(rp->rbr_index > rp->rbr_table_size);
if (rp->rbr_index == rp->rbr_table_size)
rp->rbr_index = 0;
if (rp->rbr_pending >= rp->rbr_kick_thresh) {
nw64(RBR_KICK(rp->rx_channel), rp->rbr_pending);
rp->rbr_pending = 0;
}
}
}
static int niu_rx_pkt_ignore(struct niu *np, struct rx_ring_info *rp)
{
unsigned int index = rp->rcr_index;
int num_rcr = 0;
rp->rx_dropped++;
while (1) {
struct page *page, **link;
u64 addr, val;
u32 rcr_size;
num_rcr++;
val = le64_to_cpup(&rp->rcr[index]);
addr = (val & RCR_ENTRY_PKT_BUF_ADDR) <<
RCR_ENTRY_PKT_BUF_ADDR_SHIFT;
page = niu_find_rxpage(rp, addr, &link);
rcr_size = rp->rbr_sizes[(val & RCR_ENTRY_PKTBUFSZ) >>
RCR_ENTRY_PKTBUFSZ_SHIFT];
if ((page->index + PAGE_SIZE) - rcr_size == addr) {
*link = (struct page *) page->mapping;
np->ops->unmap_page(np->device, page->index,
PAGE_SIZE, DMA_FROM_DEVICE);
page->index = 0;
page->mapping = NULL;
__free_page(page);
rp->rbr_refill_pending++;
}
index = NEXT_RCR(rp, index);
if (!(val & RCR_ENTRY_MULTI))
break;
}
rp->rcr_index = index;
return num_rcr;
}
static int niu_process_rx_pkt(struct napi_struct *napi, struct niu *np,
struct rx_ring_info *rp)
{
unsigned int index = rp->rcr_index;
struct rx_pkt_hdr1 *rh;
struct sk_buff *skb;
int len, num_rcr;
skb = netdev_alloc_skb(np->dev, RX_SKB_ALLOC_SIZE);
if (unlikely(!skb))
return niu_rx_pkt_ignore(np, rp);
num_rcr = 0;
while (1) {
struct page *page, **link;
u32 rcr_size, append_size;
u64 addr, val, off;
num_rcr++;
val = le64_to_cpup(&rp->rcr[index]);
len = (val & RCR_ENTRY_L2_LEN) >>
RCR_ENTRY_L2_LEN_SHIFT;
append_size = len + ETH_HLEN + ETH_FCS_LEN;
addr = (val & RCR_ENTRY_PKT_BUF_ADDR) <<
RCR_ENTRY_PKT_BUF_ADDR_SHIFT;
page = niu_find_rxpage(rp, addr, &link);
rcr_size = rp->rbr_sizes[(val & RCR_ENTRY_PKTBUFSZ) >>
RCR_ENTRY_PKTBUFSZ_SHIFT];
off = addr & ~PAGE_MASK;
if (num_rcr == 1) {
int ptype;
ptype = (val >> RCR_ENTRY_PKT_TYPE_SHIFT);
if ((ptype == RCR_PKT_TYPE_TCP ||
ptype == RCR_PKT_TYPE_UDP) &&
!(val & (RCR_ENTRY_NOPORT |
RCR_ENTRY_ERROR)))
skb->ip_summed = CHECKSUM_UNNECESSARY;
else
skb_checksum_none_assert(skb);
} else if (!(val & RCR_ENTRY_MULTI))
append_size = append_size - skb->len;
niu_rx_skb_append(skb, page, off, append_size, rcr_size);
if ((page->index + rp->rbr_block_size) - rcr_size == addr) {
*link = (struct page *) page->mapping;
np->ops->unmap_page(np->device, page->index,
PAGE_SIZE, DMA_FROM_DEVICE);
page->index = 0;
page->mapping = NULL;
rp->rbr_refill_pending++;
} else
get_page(page);
index = NEXT_RCR(rp, index);
if (!(val & RCR_ENTRY_MULTI))
break;
}
rp->rcr_index = index;
len += sizeof(*rh);
len = min_t(int, len, sizeof(*rh) + VLAN_ETH_HLEN);
__pskb_pull_tail(skb, len);
rh = (struct rx_pkt_hdr1 *) skb->data;
if (np->dev->features & NETIF_F_RXHASH)
skb_set_hash(skb,
((u32)rh->hashval2_0 << 24 |
(u32)rh->hashval2_1 << 16 |
(u32)rh->hashval1_1 << 8 |
(u32)rh->hashval1_2 << 0),
PKT_HASH_TYPE_L3);
skb_pull(skb, sizeof(*rh));
rp->rx_packets++;
rp->rx_bytes += skb->len;
skb->protocol = eth_type_trans(skb, np->dev);
skb_record_rx_queue(skb, rp->rx_channel);
napi_gro_receive(napi, skb);
return num_rcr;
}
static int niu_rbr_fill(struct niu *np, struct rx_ring_info *rp, gfp_t mask)
{
int blocks_per_page = rp->rbr_blocks_per_page;
int err, index = rp->rbr_index;
err = 0;
while (index < (rp->rbr_table_size - blocks_per_page)) {
err = niu_rbr_add_page(np, rp, mask, index);
if (unlikely(err))
break;
index += blocks_per_page;
}
rp->rbr_index = index;
return err;
}
static void niu_rbr_free(struct niu *np, struct rx_ring_info *rp)
{
int i;
for (i = 0; i < MAX_RBR_RING_SIZE; i++) {
struct page *page;
page = rp->rxhash[i];
while (page) {
struct page *next = (struct page *) page->mapping;
u64 base = page->index;
np->ops->unmap_page(np->device, base, PAGE_SIZE,
DMA_FROM_DEVICE);
page->index = 0;
page->mapping = NULL;
__free_page(page);
page = next;
}
}
for (i = 0; i < rp->rbr_table_size; i++)
rp->rbr[i] = cpu_to_le32(0);
rp->rbr_index = 0;
}
static int release_tx_packet(struct niu *np, struct tx_ring_info *rp, int idx)
{
struct tx_buff_info *tb = &rp->tx_buffs[idx];
struct sk_buff *skb = tb->skb;
struct tx_pkt_hdr *tp;
u64 tx_flags;
int i, len;
tp = (struct tx_pkt_hdr *) skb->data;
tx_flags = le64_to_cpup(&tp->flags);
rp->tx_packets++;
rp->tx_bytes += (((tx_flags & TXHDR_LEN) >> TXHDR_LEN_SHIFT) -
((tx_flags & TXHDR_PAD) / 2));
len = skb_headlen(skb);
np->ops->unmap_single(np->device, tb->mapping,
len, DMA_TO_DEVICE);
if (le64_to_cpu(rp->descr[idx]) & TX_DESC_MARK)
rp->mark_pending--;
tb->skb = NULL;
do {
idx = NEXT_TX(rp, idx);
len -= MAX_TX_DESC_LEN;
} while (len > 0);
for (i = 0; i < skb_shinfo(skb)->nr_frags; i++) {
tb = &rp->tx_buffs[idx];
BUG_ON(tb->skb != NULL);
np->ops->unmap_page(np->device, tb->mapping,
skb_frag_size(&skb_shinfo(skb)->frags[i]),
DMA_TO_DEVICE);
idx = NEXT_TX(rp, idx);
}
dev_kfree_skb(skb);
return idx;
}
#define NIU_TX_WAKEUP_THRESH(rp) ((rp)->pending / 4)
static void niu_tx_work(struct niu *np, struct tx_ring_info *rp)
{
struct netdev_queue *txq;
u16 pkt_cnt, tmp;
int cons, index;
u64 cs;
index = (rp - np->tx_rings);
txq = netdev_get_tx_queue(np->dev, index);
cs = rp->tx_cs;
if (unlikely(!(cs & (TX_CS_MK | TX_CS_MMK))))
goto out;
tmp = pkt_cnt = (cs & TX_CS_PKT_CNT) >> TX_CS_PKT_CNT_SHIFT;
pkt_cnt = (pkt_cnt - rp->last_pkt_cnt) &
(TX_CS_PKT_CNT >> TX_CS_PKT_CNT_SHIFT);
rp->last_pkt_cnt = tmp;
cons = rp->cons;
netif_printk(np, tx_done, KERN_DEBUG, np->dev,
"%s() pkt_cnt[%u] cons[%d]\n", __func__, pkt_cnt, cons);
while (pkt_cnt--)
cons = release_tx_packet(np, rp, cons);
rp->cons = cons;
smp_mb();
out:
if (unlikely(netif_tx_queue_stopped(txq) &&
(niu_tx_avail(rp) > NIU_TX_WAKEUP_THRESH(rp)))) {
__netif_tx_lock(txq, smp_processor_id());
if (netif_tx_queue_stopped(txq) &&
(niu_tx_avail(rp) > NIU_TX_WAKEUP_THRESH(rp)))
netif_tx_wake_queue(txq);
__netif_tx_unlock(txq);
}
}
static inline void niu_sync_rx_discard_stats(struct niu *np,
struct rx_ring_info *rp,
const int limit)
{
/* This elaborate scheme is needed for reading the RX discard
* counters, as they are only 16-bit and can overflow quickly,
* and because the overflow indication bit is not usable as
* the counter value does not wrap, but remains at max value
* 0xFFFF.
*
* In theory and in practice counters can be lost in between
* reading nr64() and clearing the counter nw64(). For this
* reason, the number of counter clearings nw64() is
* limited/reduced though the limit parameter.
*/
int rx_channel = rp->rx_channel;
u32 misc, wred;
/* RXMISC (Receive Miscellaneous Discard Count), covers the
* following discard events: IPP (Input Port Process),
* FFLP/TCAM, Full RCR (Receive Completion Ring) RBR (Receive
* Block Ring) prefetch buffer is empty.
*/
misc = nr64(RXMISC(rx_channel));
if (unlikely((misc & RXMISC_COUNT) > limit)) {
nw64(RXMISC(rx_channel), 0);
rp->rx_errors += misc & RXMISC_COUNT;
if (unlikely(misc & RXMISC_OFLOW))
dev_err(np->device, "rx-%d: Counter overflow RXMISC discard\n",
rx_channel);
netif_printk(np, rx_err, KERN_DEBUG, np->dev,
"rx-%d: MISC drop=%u over=%u\n",
rx_channel, misc, misc-limit);
}
/* WRED (Weighted Random Early Discard) by hardware */
wred = nr64(RED_DIS_CNT(rx_channel));
if (unlikely((wred & RED_DIS_CNT_COUNT) > limit)) {
nw64(RED_DIS_CNT(rx_channel), 0);
rp->rx_dropped += wred & RED_DIS_CNT_COUNT;
if (unlikely(wred & RED_DIS_CNT_OFLOW))
dev_err(np->device, "rx-%d: Counter overflow WRED discard\n", rx_channel);
netif_printk(np, rx_err, KERN_DEBUG, np->dev,
"rx-%d: WRED drop=%u over=%u\n",
rx_channel, wred, wred-limit);
}
}
static int niu_rx_work(struct napi_struct *napi, struct niu *np,
struct rx_ring_info *rp, int budget)
{
int qlen, rcr_done = 0, work_done = 0;
struct rxdma_mailbox *mbox = rp->mbox;
u64 stat;
#if 1
stat = nr64(RX_DMA_CTL_STAT(rp->rx_channel));
qlen = nr64(RCRSTAT_A(rp->rx_channel)) & RCRSTAT_A_QLEN;
#else
stat = le64_to_cpup(&mbox->rx_dma_ctl_stat);
qlen = (le64_to_cpup(&mbox->rcrstat_a) & RCRSTAT_A_QLEN);
#endif
mbox->rx_dma_ctl_stat = 0;
mbox->rcrstat_a = 0;
netif_printk(np, rx_status, KERN_DEBUG, np->dev,
"%s(chan[%d]), stat[%llx] qlen=%d\n",
__func__, rp->rx_channel, (unsigned long long)stat, qlen);
rcr_done = work_done = 0;
qlen = min(qlen, budget);
while (work_done < qlen) {
rcr_done += niu_process_rx_pkt(napi, np, rp);
work_done++;
}
if (rp->rbr_refill_pending >= rp->rbr_kick_thresh) {
unsigned int i;
for (i = 0; i < rp->rbr_refill_pending; i++)
niu_rbr_refill(np, rp, GFP_ATOMIC);
rp->rbr_refill_pending = 0;
}
stat = (RX_DMA_CTL_STAT_MEX |
((u64)work_done << RX_DMA_CTL_STAT_PKTREAD_SHIFT) |
((u64)rcr_done << RX_DMA_CTL_STAT_PTRREAD_SHIFT));
nw64(RX_DMA_CTL_STAT(rp->rx_channel), stat);
/* Only sync discards stats when qlen indicate potential for drops */
if (qlen > 10)
niu_sync_rx_discard_stats(np, rp, 0x7FFF);
return work_done;
}
static int niu_poll_core(struct niu *np, struct niu_ldg *lp, int budget)
{
u64 v0 = lp->v0;
u32 tx_vec = (v0 >> 32);
u32 rx_vec = (v0 & 0xffffffff);
int i, work_done = 0;
netif_printk(np, intr, KERN_DEBUG, np->dev,
"%s() v0[%016llx]\n", __func__, (unsigned long long)v0);
for (i = 0; i < np->num_tx_rings; i++) {
struct tx_ring_info *rp = &np->tx_rings[i];
if (tx_vec & (1 << rp->tx_channel))
niu_tx_work(np, rp);
nw64(LD_IM0(LDN_TXDMA(rp->tx_channel)), 0);
}
for (i = 0; i < np->num_rx_rings; i++) {
struct rx_ring_info *rp = &np->rx_rings[i];
if (rx_vec & (1 << rp->rx_channel)) {
int this_work_done;
this_work_done = niu_rx_work(&lp->napi, np, rp,
budget);
budget -= this_work_done;
work_done += this_work_done;
}
nw64(LD_IM0(LDN_RXDMA(rp->rx_channel)), 0);
}
return work_done;
}
static int niu_poll(struct napi_struct *napi, int budget)
{
struct niu_ldg *lp = container_of(napi, struct niu_ldg, napi);
struct niu *np = lp->np;
int work_done;
work_done = niu_poll_core(np, lp, budget);
if (work_done < budget) {
napi_complete_done(napi, work_done);
niu_ldg_rearm(np, lp, 1);
}
return work_done;
}
static void niu_log_rxchan_errors(struct niu *np, struct rx_ring_info *rp,
u64 stat)
{
netdev_err(np->dev, "RX channel %u errors ( ", rp->rx_channel);
if (stat & RX_DMA_CTL_STAT_RBR_TMOUT)
pr_cont("RBR_TMOUT ");
if (stat & RX_DMA_CTL_STAT_RSP_CNT_ERR)
pr_cont("RSP_CNT ");
if (stat & RX_DMA_CTL_STAT_BYTE_EN_BUS)
pr_cont("BYTE_EN_BUS ");
if (stat & RX_DMA_CTL_STAT_RSP_DAT_ERR)
pr_cont("RSP_DAT ");
if (stat & RX_DMA_CTL_STAT_RCR_ACK_ERR)
pr_cont("RCR_ACK ");
if (stat & RX_DMA_CTL_STAT_RCR_SHA_PAR)
pr_cont("RCR_SHA_PAR ");
if (stat & RX_DMA_CTL_STAT_RBR_PRE_PAR)
pr_cont("RBR_PRE_PAR ");
if (stat & RX_DMA_CTL_STAT_CONFIG_ERR)
pr_cont("CONFIG ");
if (stat & RX_DMA_CTL_STAT_RCRINCON)
pr_cont("RCRINCON ");
if (stat & RX_DMA_CTL_STAT_RCRFULL)
pr_cont("RCRFULL ");
if (stat & RX_DMA_CTL_STAT_RBRFULL)
pr_cont("RBRFULL ");
if (stat & RX_DMA_CTL_STAT_RBRLOGPAGE)
pr_cont("RBRLOGPAGE ");
if (stat & RX_DMA_CTL_STAT_CFIGLOGPAGE)
pr_cont("CFIGLOGPAGE ");
if (stat & RX_DMA_CTL_STAT_DC_FIFO_ERR)
pr_cont("DC_FIDO ");
pr_cont(")\n");
}
static int niu_rx_error(struct niu *np, struct rx_ring_info *rp)
{
u64 stat = nr64(RX_DMA_CTL_STAT(rp->rx_channel));
int err = 0;
if (stat & (RX_DMA_CTL_STAT_CHAN_FATAL |
RX_DMA_CTL_STAT_PORT_FATAL))
err = -EINVAL;
if (err) {
netdev_err(np->dev, "RX channel %u error, stat[%llx]\n",
rp->rx_channel,
(unsigned long long) stat);
niu_log_rxchan_errors(np, rp, stat);
}
nw64(RX_DMA_CTL_STAT(rp->rx_channel),
stat & RX_DMA_CTL_WRITE_CLEAR_ERRS);
return err;
}
static void niu_log_txchan_errors(struct niu *np, struct tx_ring_info *rp,
u64 cs)
{
netdev_err(np->dev, "TX channel %u errors ( ", rp->tx_channel);
if (cs & TX_CS_MBOX_ERR)
pr_cont("MBOX ");
if (cs & TX_CS_PKT_SIZE_ERR)
pr_cont("PKT_SIZE ");
if (cs & TX_CS_TX_RING_OFLOW)
pr_cont("TX_RING_OFLOW ");
if (cs & TX_CS_PREF_BUF_PAR_ERR)
pr_cont("PREF_BUF_PAR ");
if (cs & TX_CS_NACK_PREF)
pr_cont("NACK_PREF ");
if (cs & TX_CS_NACK_PKT_RD)
pr_cont("NACK_PKT_RD ");
if (cs & TX_CS_CONF_PART_ERR)
pr_cont("CONF_PART ");
if (cs & TX_CS_PKT_PRT_ERR)
pr_cont("PKT_PTR ");
pr_cont(")\n");
}
static int niu_tx_error(struct niu *np, struct tx_ring_info *rp)
{
u64 cs, logh, logl;
cs = nr64(TX_CS(rp->tx_channel));
logh = nr64(TX_RNG_ERR_LOGH(rp->tx_channel));
logl = nr64(TX_RNG_ERR_LOGL(rp->tx_channel));
netdev_err(np->dev, "TX channel %u error, cs[%llx] logh[%llx] logl[%llx]\n",
rp->tx_channel,
(unsigned long long)cs,
(unsigned long long)logh,
(unsigned long long)logl);
niu_log_txchan_errors(np, rp, cs);
return -ENODEV;
}
static int niu_mif_interrupt(struct niu *np)
{
u64 mif_status = nr64(MIF_STATUS);
int phy_mdint = 0;
if (np->flags & NIU_FLAGS_XMAC) {
u64 xrxmac_stat = nr64_mac(XRXMAC_STATUS);
if (xrxmac_stat & XRXMAC_STATUS_PHY_MDINT)
phy_mdint = 1;
}
netdev_err(np->dev, "MIF interrupt, stat[%llx] phy_mdint(%d)\n",
(unsigned long long)mif_status, phy_mdint);
return -ENODEV;
}
static void niu_xmac_interrupt(struct niu *np)
{
struct niu_xmac_stats *mp = &np->mac_stats.xmac;
u64 val;
val = nr64_mac(XTXMAC_STATUS);
if (val & XTXMAC_STATUS_FRAME_CNT_EXP)
mp->tx_frames += TXMAC_FRM_CNT_COUNT;
if (val & XTXMAC_STATUS_BYTE_CNT_EXP)
mp->tx_bytes += TXMAC_BYTE_CNT_COUNT;
if (val & XTXMAC_STATUS_TXFIFO_XFR_ERR)
mp->tx_fifo_errors++;
if (val & XTXMAC_STATUS_TXMAC_OFLOW)
mp->tx_overflow_errors++;
if (val & XTXMAC_STATUS_MAX_PSIZE_ERR)
mp->tx_max_pkt_size_errors++;
if (val & XTXMAC_STATUS_TXMAC_UFLOW)
mp->tx_underflow_errors++;
val = nr64_mac(XRXMAC_STATUS);
if (val & XRXMAC_STATUS_LCL_FLT_STATUS)
mp->rx_local_faults++;
if (val & XRXMAC_STATUS_RFLT_DET)
mp->rx_remote_faults++;
if (val & XRXMAC_STATUS_LFLT_CNT_EXP)
mp->rx_link_faults += LINK_FAULT_CNT_COUNT;
if (val & XRXMAC_STATUS_ALIGNERR_CNT_EXP)
mp->rx_align_errors += RXMAC_ALIGN_ERR_CNT_COUNT;
if (val & XRXMAC_STATUS_RXFRAG_CNT_EXP)
mp->rx_frags += RXMAC_FRAG_CNT_COUNT;
if (val & XRXMAC_STATUS_RXMULTF_CNT_EXP)
mp->rx_mcasts += RXMAC_MC_FRM_CNT_COUNT;
if (val & XRXMAC_STATUS_RXBCAST_CNT_EXP)
mp->rx_bcasts += RXMAC_BC_FRM_CNT_COUNT;
if (val & XRXMAC_STATUS_RXBCAST_CNT_EXP)
mp->rx_bcasts += RXMAC_BC_FRM_CNT_COUNT;
if (val & XRXMAC_STATUS_RXHIST1_CNT_EXP)
mp->rx_hist_cnt1 += RXMAC_HIST_CNT1_COUNT;
if (val & XRXMAC_STATUS_RXHIST2_CNT_EXP)
mp->rx_hist_cnt2 += RXMAC_HIST_CNT2_COUNT;
if (val & XRXMAC_STATUS_RXHIST3_CNT_EXP)
mp->rx_hist_cnt3 += RXMAC_HIST_CNT3_COUNT;
if (val & XRXMAC_STATUS_RXHIST4_CNT_EXP)
mp->rx_hist_cnt4 += RXMAC_HIST_CNT4_COUNT;
if (val & XRXMAC_STATUS_RXHIST5_CNT_EXP)
mp->rx_hist_cnt5 += RXMAC_HIST_CNT5_COUNT;
if (val & XRXMAC_STATUS_RXHIST6_CNT_EXP)
mp->rx_hist_cnt6 += RXMAC_HIST_CNT6_COUNT;
if (val & XRXMAC_STATUS_RXHIST7_CNT_EXP)
mp->rx_hist_cnt7 += RXMAC_HIST_CNT7_COUNT;
if (val & XRXMAC_STATUS_RXOCTET_CNT_EXP)
mp->rx_octets += RXMAC_BT_CNT_COUNT;
if (val & XRXMAC_STATUS_CVIOLERR_CNT_EXP)
mp->rx_code_violations += RXMAC_CD_VIO_CNT_COUNT;
if (val & XRXMAC_STATUS_LENERR_CNT_EXP)
mp->rx_len_errors += RXMAC_MPSZER_CNT_COUNT;
if (val & XRXMAC_STATUS_CRCERR_CNT_EXP)
mp->rx_crc_errors += RXMAC_CRC_ER_CNT_COUNT;
if (val & XRXMAC_STATUS_RXUFLOW)
mp->rx_underflows++;
if (val & XRXMAC_STATUS_RXOFLOW)
mp->rx_overflows++;
val = nr64_mac(XMAC_FC_STAT);
if (val & XMAC_FC_STAT_TX_MAC_NPAUSE)
mp->pause_off_state++;
if (val & XMAC_FC_STAT_TX_MAC_PAUSE)
mp->pause_on_state++;
if (val & XMAC_FC_STAT_RX_MAC_RPAUSE)
mp->pause_received++;
}
static void niu_bmac_interrupt(struct niu *np)
{
struct niu_bmac_stats *mp = &np->mac_stats.bmac;
u64 val;
val = nr64_mac(BTXMAC_STATUS);
if (val & BTXMAC_STATUS_UNDERRUN)
mp->tx_underflow_errors++;
if (val & BTXMAC_STATUS_MAX_PKT_ERR)
mp->tx_max_pkt_size_errors++;
if (val & BTXMAC_STATUS_BYTE_CNT_EXP)
mp->tx_bytes += BTXMAC_BYTE_CNT_COUNT;
if (val & BTXMAC_STATUS_FRAME_CNT_EXP)
mp->tx_frames += BTXMAC_FRM_CNT_COUNT;
val = nr64_mac(BRXMAC_STATUS);
if (val & BRXMAC_STATUS_OVERFLOW)
mp->rx_overflows++;
if (val & BRXMAC_STATUS_FRAME_CNT_EXP)
mp->rx_frames += BRXMAC_FRAME_CNT_COUNT;
if (val & BRXMAC_STATUS_ALIGN_ERR_EXP)
mp->rx_align_errors += BRXMAC_ALIGN_ERR_CNT_COUNT;
if (val & BRXMAC_STATUS_CRC_ERR_EXP)
mp->rx_crc_errors += BRXMAC_ALIGN_ERR_CNT_COUNT;
if (val & BRXMAC_STATUS_LEN_ERR_EXP)
mp->rx_len_errors += BRXMAC_CODE_VIOL_ERR_CNT_COUNT;
val = nr64_mac(BMAC_CTRL_STATUS);
if (val & BMAC_CTRL_STATUS_NOPAUSE)
mp->pause_off_state++;
if (val & BMAC_CTRL_STATUS_PAUSE)
mp->pause_on_state++;
if (val & BMAC_CTRL_STATUS_PAUSE_RECV)
mp->pause_received++;
}
static int niu_mac_interrupt(struct niu *np)
{
if (np->flags & NIU_FLAGS_XMAC)
niu_xmac_interrupt(np);
else
niu_bmac_interrupt(np);
return 0;
}
static void niu_log_device_error(struct niu *np, u64 stat)
{
netdev_err(np->dev, "Core device errors ( ");
if (stat & SYS_ERR_MASK_META2)
pr_cont("META2 ");
if (stat & SYS_ERR_MASK_META1)
pr_cont("META1 ");
if (stat & SYS_ERR_MASK_PEU)
pr_cont("PEU ");
if (stat & SYS_ERR_MASK_TXC)
pr_cont("TXC ");
if (stat & SYS_ERR_MASK_RDMC)
pr_cont("RDMC ");
if (stat & SYS_ERR_MASK_TDMC)
pr_cont("TDMC ");
if (stat & SYS_ERR_MASK_ZCP)
pr_cont("ZCP ");
if (stat & SYS_ERR_MASK_FFLP)
pr_cont("FFLP ");
if (stat & SYS_ERR_MASK_IPP)
pr_cont("IPP ");
if (stat & SYS_ERR_MASK_MAC)
pr_cont("MAC ");
if (stat & SYS_ERR_MASK_SMX)
pr_cont("SMX ");
pr_cont(")\n");
}
static int niu_device_error(struct niu *np)
{
u64 stat = nr64(SYS_ERR_STAT);
netdev_err(np->dev, "Core device error, stat[%llx]\n",
(unsigned long long)stat);
niu_log_device_error(np, stat);
return -ENODEV;
}
static int niu_slowpath_interrupt(struct niu *np, struct niu_ldg *lp,
u64 v0, u64 v1, u64 v2)
{
int i, err = 0;
lp->v0 = v0;
lp->v1 = v1;
lp->v2 = v2;
if (v1 & 0x00000000ffffffffULL) {
u32 rx_vec = (v1 & 0xffffffff);
for (i = 0; i < np->num_rx_rings; i++) {
struct rx_ring_info *rp = &np->rx_rings[i];
if (rx_vec & (1 << rp->rx_channel)) {
int r = niu_rx_error(np, rp);
if (r) {
err = r;
} else {
if (!v0)
nw64(RX_DMA_CTL_STAT(rp->rx_channel),
RX_DMA_CTL_STAT_MEX);
}
}
}
}
if (v1 & 0x7fffffff00000000ULL) {
u32 tx_vec = (v1 >> 32) & 0x7fffffff;
for (i = 0; i < np->num_tx_rings; i++) {
struct tx_ring_info *rp = &np->tx_rings[i];
if (tx_vec & (1 << rp->tx_channel)) {
int r = niu_tx_error(np, rp);
if (r)
err = r;
}
}
}
if ((v0 | v1) & 0x8000000000000000ULL) {
int r = niu_mif_interrupt(np);
if (r)
err = r;
}
if (v2) {
if (v2 & 0x01ef) {
int r = niu_mac_interrupt(np);
if (r)
err = r;
}
if (v2 & 0x0210) {
int r = niu_device_error(np);
if (r)
err = r;
}
}
if (err)
niu_enable_interrupts(np, 0);
return err;
}
static void niu_rxchan_intr(struct niu *np, struct rx_ring_info *rp,
int ldn)
{
struct rxdma_mailbox *mbox = rp->mbox;
u64 stat_write, stat = le64_to_cpup(&mbox->rx_dma_ctl_stat);
stat_write = (RX_DMA_CTL_STAT_RCRTHRES |
RX_DMA_CTL_STAT_RCRTO);
nw64(RX_DMA_CTL_STAT(rp->rx_channel), stat_write);
netif_printk(np, intr, KERN_DEBUG, np->dev,
"%s() stat[%llx]\n", __func__, (unsigned long long)stat);
}
static void niu_txchan_intr(struct niu *np, struct tx_ring_info *rp,
int ldn)
{
rp->tx_cs = nr64(TX_CS(rp->tx_channel));
netif_printk(np, intr, KERN_DEBUG, np->dev,
"%s() cs[%llx]\n", __func__, (unsigned long long)rp->tx_cs);
}
static void __niu_fastpath_interrupt(struct niu *np, int ldg, u64 v0)
{
struct niu_parent *parent = np->parent;
u32 rx_vec, tx_vec;
int i;
tx_vec = (v0 >> 32);
rx_vec = (v0 & 0xffffffff);
for (i = 0; i < np->num_rx_rings; i++) {
struct rx_ring_info *rp = &np->rx_rings[i];
int ldn = LDN_RXDMA(rp->rx_channel);
if (parent->ldg_map[ldn] != ldg)
continue;
nw64(LD_IM0(ldn), LD_IM0_MASK);
if (rx_vec & (1 << rp->rx_channel))
niu_rxchan_intr(np, rp, ldn);
}
for (i = 0; i < np->num_tx_rings; i++) {
struct tx_ring_info *rp = &np->tx_rings[i];
int ldn = LDN_TXDMA(rp->tx_channel);
if (parent->ldg_map[ldn] != ldg)
continue;
nw64(LD_IM0(ldn), LD_IM0_MASK);
if (tx_vec & (1 << rp->tx_channel))
niu_txchan_intr(np, rp, ldn);
}
}
static void niu_schedule_napi(struct niu *np, struct niu_ldg *lp,
u64 v0, u64 v1, u64 v2)
{
if (likely(napi_schedule_prep(&lp->napi))) {
lp->v0 = v0;
lp->v1 = v1;
lp->v2 = v2;
__niu_fastpath_interrupt(np, lp->ldg_num, v0);
__napi_schedule(&lp->napi);
}
}
static irqreturn_t niu_interrupt(int irq, void *dev_id)
{
struct niu_ldg *lp = dev_id;
struct niu *np = lp->np;
int ldg = lp->ldg_num;
unsigned long flags;
u64 v0, v1, v2;
if (netif_msg_intr(np))
printk(KERN_DEBUG KBUILD_MODNAME ": " "%s() ldg[%p](%d)",
__func__, lp, ldg);
spin_lock_irqsave(&np->lock, flags);
v0 = nr64(LDSV0(ldg));
v1 = nr64(LDSV1(ldg));
v2 = nr64(LDSV2(ldg));
if (netif_msg_intr(np))
pr_cont(" v0[%llx] v1[%llx] v2[%llx]\n",
(unsigned long long) v0,
(unsigned long long) v1,
(unsigned long long) v2);
if (unlikely(!v0 && !v1 && !v2)) {
spin_unlock_irqrestore(&np->lock, flags);
return IRQ_NONE;
}
if (unlikely((v0 & ((u64)1 << LDN_MIF)) || v1 || v2)) {
int err = niu_slowpath_interrupt(np, lp, v0, v1, v2);
if (err)
goto out;
}
if (likely(v0 & ~((u64)1 << LDN_MIF)))
niu_schedule_napi(np, lp, v0, v1, v2);
else
niu_ldg_rearm(np, lp, 1);
out:
spin_unlock_irqrestore(&np->lock, flags);
return IRQ_HANDLED;
}
static void niu_free_rx_ring_info(struct niu *np, struct rx_ring_info *rp)
{
if (rp->mbox) {
np->ops->free_coherent(np->device,
sizeof(struct rxdma_mailbox),
rp->mbox, rp->mbox_dma);
rp->mbox = NULL;
}
if (rp->rcr) {
np->ops->free_coherent(np->device,
MAX_RCR_RING_SIZE * sizeof(__le64),
rp->rcr, rp->rcr_dma);
rp->rcr = NULL;
rp->rcr_table_size = 0;
rp->rcr_index = 0;
}
if (rp->rbr) {
niu_rbr_free(np, rp);
np->ops->free_coherent(np->device,
MAX_RBR_RING_SIZE * sizeof(__le32),
rp->rbr, rp->rbr_dma);
rp->rbr = NULL;
rp->rbr_table_size = 0;
rp->rbr_index = 0;
}
kfree(rp->rxhash);
rp->rxhash = NULL;
}
static void niu_free_tx_ring_info(struct niu *np, struct tx_ring_info *rp)
{
if (rp->mbox) {
np->ops->free_coherent(np->device,
sizeof(struct txdma_mailbox),
rp->mbox, rp->mbox_dma);
rp->mbox = NULL;
}
if (rp->descr) {
int i;
for (i = 0; i < MAX_TX_RING_SIZE; i++) {
if (rp->tx_buffs[i].skb)
(void) release_tx_packet(np, rp, i);
}
np->ops->free_coherent(np->device,
MAX_TX_RING_SIZE * sizeof(__le64),
rp->descr, rp->descr_dma);
rp->descr = NULL;
rp->pending = 0;
rp->prod = 0;
rp->cons = 0;
rp->wrap_bit = 0;
}
}
static void niu_free_channels(struct niu *np)
{
int i;
if (np->rx_rings) {
for (i = 0; i < np->num_rx_rings; i++) {
struct rx_ring_info *rp = &np->rx_rings[i];
niu_free_rx_ring_info(np, rp);
}
kfree(np->rx_rings);
np->rx_rings = NULL;
np->num_rx_rings = 0;
}
if (np->tx_rings) {
for (i = 0; i < np->num_tx_rings; i++) {
struct tx_ring_info *rp = &np->tx_rings[i];
niu_free_tx_ring_info(np, rp);
}
kfree(np->tx_rings);
np->tx_rings = NULL;
np->num_tx_rings = 0;
}
}
static int niu_alloc_rx_ring_info(struct niu *np,
struct rx_ring_info *rp)
{
BUILD_BUG_ON(sizeof(struct rxdma_mailbox) != 64);
rp->rxhash = kcalloc(MAX_RBR_RING_SIZE, sizeof(struct page *),
GFP_KERNEL);
if (!rp->rxhash)
return -ENOMEM;
rp->mbox = np->ops->alloc_coherent(np->device,
sizeof(struct rxdma_mailbox),
&rp->mbox_dma, GFP_KERNEL);
if (!rp->mbox)
return -ENOMEM;
if ((unsigned long)rp->mbox & (64UL - 1)) {
netdev_err(np->dev, "Coherent alloc gives misaligned RXDMA mailbox %p\n",
rp->mbox);
return -EINVAL;
}
rp->rcr = np->ops->alloc_coherent(np->device,
MAX_RCR_RING_SIZE * sizeof(__le64),
&rp->rcr_dma, GFP_KERNEL);
if (!rp->rcr)
return -ENOMEM;
if ((unsigned long)rp->rcr & (64UL - 1)) {
netdev_err(np->dev, "Coherent alloc gives misaligned RXDMA RCR table %p\n",
rp->rcr);
return -EINVAL;
}
rp->rcr_table_size = MAX_RCR_RING_SIZE;
rp->rcr_index = 0;
rp->rbr = np->ops->alloc_coherent(np->device,
MAX_RBR_RING_SIZE * sizeof(__le32),
&rp->rbr_dma, GFP_KERNEL);
if (!rp->rbr)
return -ENOMEM;
if ((unsigned long)rp->rbr & (64UL - 1)) {
netdev_err(np->dev, "Coherent alloc gives misaligned RXDMA RBR table %p\n",
rp->rbr);
return -EINVAL;
}
rp->rbr_table_size = MAX_RBR_RING_SIZE;
rp->rbr_index = 0;
rp->rbr_pending = 0;
return 0;
}
static void niu_set_max_burst(struct niu *np, struct tx_ring_info *rp)
{
int mtu = np->dev->mtu;
/* These values are recommended by the HW designers for fair
* utilization of DRR amongst the rings.
*/
rp->max_burst = mtu + 32;
if (rp->max_burst > 4096)
rp->max_burst = 4096;
}
static int niu_alloc_tx_ring_info(struct niu *np,
struct tx_ring_info *rp)
{
BUILD_BUG_ON(sizeof(struct txdma_mailbox) != 64);
rp->mbox = np->ops->alloc_coherent(np->device,
sizeof(struct txdma_mailbox),
&rp->mbox_dma, GFP_KERNEL);
if (!rp->mbox)
return -ENOMEM;
if ((unsigned long)rp->mbox & (64UL - 1)) {
netdev_err(np->dev, "Coherent alloc gives misaligned TXDMA mailbox %p\n",
rp->mbox);
return -EINVAL;
}
rp->descr = np->ops->alloc_coherent(np->device,
MAX_TX_RING_SIZE * sizeof(__le64),
&rp->descr_dma, GFP_KERNEL);
if (!rp->descr)
return -ENOMEM;
if ((unsigned long)rp->descr & (64UL - 1)) {
netdev_err(np->dev, "Coherent alloc gives misaligned TXDMA descr table %p\n",
rp->descr);
return -EINVAL;
}
rp->pending = MAX_TX_RING_SIZE;
rp->prod = 0;
rp->cons = 0;
rp->wrap_bit = 0;
/* XXX make these configurable... XXX */
rp->mark_freq = rp->pending / 4;
niu_set_max_burst(np, rp);
return 0;
}
static void niu_size_rbr(struct niu *np, struct rx_ring_info *rp)
{
u16 bss;
bss = min(PAGE_SHIFT, 15);
rp->rbr_block_size = 1 << bss;
rp->rbr_blocks_per_page = 1 << (PAGE_SHIFT-bss);
rp->rbr_sizes[0] = 256;
rp->rbr_sizes[1] = 1024;
if (np->dev->mtu > ETH_DATA_LEN) {
switch (PAGE_SIZE) {
case 4 * 1024:
rp->rbr_sizes[2] = 4096;
break;
default:
rp->rbr_sizes[2] = 8192;
break;
}
} else {
rp->rbr_sizes[2] = 2048;
}
rp->rbr_sizes[3] = rp->rbr_block_size;
}
static int niu_alloc_channels(struct niu *np)
{
struct niu_parent *parent = np->parent;
int first_rx_channel, first_tx_channel;
int num_rx_rings, num_tx_rings;
struct rx_ring_info *rx_rings;
struct tx_ring_info *tx_rings;
int i, port, err;
port = np->port;
first_rx_channel = first_tx_channel = 0;
for (i = 0; i < port; i++) {
first_rx_channel += parent->rxchan_per_port[i];
first_tx_channel += parent->txchan_per_port[i];
}
num_rx_rings = parent->rxchan_per_port[port];
num_tx_rings = parent->txchan_per_port[port];
rx_rings = kcalloc(num_rx_rings, sizeof(struct rx_ring_info),
GFP_KERNEL);
err = -ENOMEM;
if (!rx_rings)
goto out_err;
np->num_rx_rings = num_rx_rings;
smp_wmb();
np->rx_rings = rx_rings;
netif_set_real_num_rx_queues(np->dev, num_rx_rings);
for (i = 0; i < np->num_rx_rings; i++) {
struct rx_ring_info *rp = &np->rx_rings[i];
rp->np = np;
rp->rx_channel = first_rx_channel + i;
err = niu_alloc_rx_ring_info(np, rp);
if (err)
goto out_err;
niu_size_rbr(np, rp);
/* XXX better defaults, configurable, etc... XXX */
rp->nonsyn_window = 64;
rp->nonsyn_threshold = rp->rcr_table_size - 64;
rp->syn_window = 64;
rp->syn_threshold = rp->rcr_table_size - 64;
rp->rcr_pkt_threshold = 16;
rp->rcr_timeout = 8;
rp->rbr_kick_thresh = RBR_REFILL_MIN;
if (rp->rbr_kick_thresh < rp->rbr_blocks_per_page)
rp->rbr_kick_thresh = rp->rbr_blocks_per_page;
err = niu_rbr_fill(np, rp, GFP_KERNEL);
if (err)
return err;
}
tx_rings = kcalloc(num_tx_rings, sizeof(struct tx_ring_info),
GFP_KERNEL);
err = -ENOMEM;
if (!tx_rings)
goto out_err;
np->num_tx_rings = num_tx_rings;
smp_wmb();
np->tx_rings = tx_rings;
netif_set_real_num_tx_queues(np->dev, num_tx_rings);
for (i = 0; i < np->num_tx_rings; i++) {
struct tx_ring_info *rp = &np->tx_rings[i];
rp->np = np;
rp->tx_channel = first_tx_channel + i;
err = niu_alloc_tx_ring_info(np, rp);
if (err)
goto out_err;
}
return 0;
out_err:
niu_free_channels(np);
return err;
}
static int niu_tx_cs_sng_poll(struct niu *np, int channel)
{
int limit = 1000;
while (--limit > 0) {
u64 val = nr64(TX_CS(channel));
if (val & TX_CS_SNG_STATE)
return 0;
}
return -ENODEV;
}
static int niu_tx_channel_stop(struct niu *np, int channel)
{
u64 val = nr64(TX_CS(channel));
val |= TX_CS_STOP_N_GO;
nw64(TX_CS(channel), val);
return niu_tx_cs_sng_poll(np, channel);
}
static int niu_tx_cs_reset_poll(struct niu *np, int channel)
{
int limit = 1000;
while (--limit > 0) {
u64 val = nr64(TX_CS(channel));
if (!(val & TX_CS_RST))
return 0;
}
return -ENODEV;
}
static int niu_tx_channel_reset(struct niu *np, int channel)
{
u64 val = nr64(TX_CS(channel));
int err;
val |= TX_CS_RST;
nw64(TX_CS(channel), val);
err = niu_tx_cs_reset_poll(np, channel);
if (!err)
nw64(TX_RING_KICK(channel), 0);
return err;
}
static int niu_tx_channel_lpage_init(struct niu *np, int channel)
{
u64 val;
nw64(TX_LOG_MASK1(channel), 0);
nw64(TX_LOG_VAL1(channel), 0);
nw64(TX_LOG_MASK2(channel), 0);
nw64(TX_LOG_VAL2(channel), 0);
nw64(TX_LOG_PAGE_RELO1(channel), 0);
nw64(TX_LOG_PAGE_RELO2(channel), 0);
nw64(TX_LOG_PAGE_HDL(channel), 0);
val = (u64)np->port << TX_LOG_PAGE_VLD_FUNC_SHIFT;
val |= (TX_LOG_PAGE_VLD_PAGE0 | TX_LOG_PAGE_VLD_PAGE1);
nw64(TX_LOG_PAGE_VLD(channel), val);
/* XXX TXDMA 32bit mode? XXX */
return 0;
}
static void niu_txc_enable_port(struct niu *np, int on)
{
unsigned long flags;
u64 val, mask;
niu_lock_parent(np, flags);
val = nr64(TXC_CONTROL);
mask = (u64)1 << np->port;
if (on) {
val |= TXC_CONTROL_ENABLE | mask;
} else {
val &= ~mask;
if ((val & ~TXC_CONTROL_ENABLE) == 0)
val &= ~TXC_CONTROL_ENABLE;
}
nw64(TXC_CONTROL, val);
niu_unlock_parent(np, flags);
}
static void niu_txc_set_imask(struct niu *np, u64 imask)
{
unsigned long flags;
u64 val;
niu_lock_parent(np, flags);
val = nr64(TXC_INT_MASK);
val &= ~TXC_INT_MASK_VAL(np->port);
val |= (imask << TXC_INT_MASK_VAL_SHIFT(np->port));
niu_unlock_parent(np, flags);
}
static void niu_txc_port_dma_enable(struct niu *np, int on)
{
u64 val = 0;
if (on) {
int i;
for (i = 0; i < np->num_tx_rings; i++)
val |= (1 << np->tx_rings[i].tx_channel);
}
nw64(TXC_PORT_DMA(np->port), val);
}
static int niu_init_one_tx_channel(struct niu *np, struct tx_ring_info *rp)
{
int err, channel = rp->tx_channel;
u64 val, ring_len;
err = niu_tx_channel_stop(np, channel);
if (err)
return err;
err = niu_tx_channel_reset(np, channel);
if (err)
return err;
err = niu_tx_channel_lpage_init(np, channel);
if (err)
return err;
nw64(TXC_DMA_MAX(channel), rp->max_burst);
nw64(TX_ENT_MSK(channel), 0);
if (rp->descr_dma & ~(TX_RNG_CFIG_STADDR_BASE |
TX_RNG_CFIG_STADDR)) {
netdev_err(np->dev, "TX ring channel %d DMA addr (%llx) is not aligned\n",
channel, (unsigned long long)rp->descr_dma);
return -EINVAL;
}
/* The length field in TX_RNG_CFIG is measured in 64-byte
* blocks. rp->pending is the number of TX descriptors in
* our ring, 8 bytes each, thus we divide by 8 bytes more
* to get the proper value the chip wants.
*/
ring_len = (rp->pending / 8);
val = ((ring_len << TX_RNG_CFIG_LEN_SHIFT) |
rp->descr_dma);
nw64(TX_RNG_CFIG(channel), val);
if (((rp->mbox_dma >> 32) & ~TXDMA_MBH_MBADDR) ||
((u32)rp->mbox_dma & ~TXDMA_MBL_MBADDR)) {
netdev_err(np->dev, "TX ring channel %d MBOX addr (%llx) has invalid bits\n",
channel, (unsigned long long)rp->mbox_dma);
return -EINVAL;
}
nw64(TXDMA_MBH(channel), rp->mbox_dma >> 32);
nw64(TXDMA_MBL(channel), rp->mbox_dma & TXDMA_MBL_MBADDR);
nw64(TX_CS(channel), 0);
rp->last_pkt_cnt = 0;
return 0;
}
static void niu_init_rdc_groups(struct niu *np)
{
struct niu_rdc_tables *tp = &np->parent->rdc_group_cfg[np->port];
int i, first_table_num = tp->first_table_num;
for (i = 0; i < tp->num_tables; i++) {
struct rdc_table *tbl = &tp->tables[i];
int this_table = first_table_num + i;
int slot;
for (slot = 0; slot < NIU_RDC_TABLE_SLOTS; slot++)
nw64(RDC_TBL(this_table, slot),
tbl->rxdma_channel[slot]);
}
nw64(DEF_RDC(np->port), np->parent->rdc_default[np->port]);
}
static void niu_init_drr_weight(struct niu *np)
{
int type = phy_decode(np->parent->port_phy, np->port);
u64 val;
switch (type) {
case PORT_TYPE_10G:
val = PT_DRR_WEIGHT_DEFAULT_10G;
break;
case PORT_TYPE_1G:
default:
val = PT_DRR_WEIGHT_DEFAULT_1G;
break;
}
nw64(PT_DRR_WT(np->port), val);
}
static int niu_init_hostinfo(struct niu *np)
{
struct niu_parent *parent = np->parent;
struct niu_rdc_tables *tp = &parent->rdc_group_cfg[np->port];
int i, err, num_alt = niu_num_alt_addr(np);
int first_rdc_table = tp->first_table_num;
err = niu_set_primary_mac_rdc_table(np, first_rdc_table, 1);
if (err)
return err;
err = niu_set_multicast_mac_rdc_table(np, first_rdc_table, 1);
if (err)
return err;
for (i = 0; i < num_alt; i++) {
err = niu_set_alt_mac_rdc_table(np, i, first_rdc_table, 1);
if (err)
return err;
}
return 0;
}
static int niu_rx_channel_reset(struct niu *np, int channel)
{
return niu_set_and_wait_clear(np, RXDMA_CFIG1(channel),
RXDMA_CFIG1_RST, 1000, 10,
"RXDMA_CFIG1");
}
static int niu_rx_channel_lpage_init(struct niu *np, int channel)
{
u64 val;
nw64(RX_LOG_MASK1(channel), 0);
nw64(RX_LOG_VAL1(channel), 0);
nw64(RX_LOG_MASK2(channel), 0);
nw64(RX_LOG_VAL2(channel), 0);
nw64(RX_LOG_PAGE_RELO1(channel), 0);
nw64(RX_LOG_PAGE_RELO2(channel), 0);
nw64(RX_LOG_PAGE_HDL(channel), 0);
val = (u64)np->port << RX_LOG_PAGE_VLD_FUNC_SHIFT;
val |= (RX_LOG_PAGE_VLD_PAGE0 | RX_LOG_PAGE_VLD_PAGE1);
nw64(RX_LOG_PAGE_VLD(channel), val);
return 0;
}
static void niu_rx_channel_wred_init(struct niu *np, struct rx_ring_info *rp)
{
u64 val;
val = (((u64)rp->nonsyn_window << RDC_RED_PARA_WIN_SHIFT) |
((u64)rp->nonsyn_threshold << RDC_RED_PARA_THRE_SHIFT) |
((u64)rp->syn_window << RDC_RED_PARA_WIN_SYN_SHIFT) |
((u64)rp->syn_threshold << RDC_RED_PARA_THRE_SYN_SHIFT));
nw64(RDC_RED_PARA(rp->rx_channel), val);
}
static int niu_compute_rbr_cfig_b(struct rx_ring_info *rp, u64 *ret)
{
u64 val = 0;
*ret = 0;
switch (rp->rbr_block_size) {
case 4 * 1024:
val |= (RBR_BLKSIZE_4K << RBR_CFIG_B_BLKSIZE_SHIFT);
break;
case 8 * 1024:
val |= (RBR_BLKSIZE_8K << RBR_CFIG_B_BLKSIZE_SHIFT);
break;
case 16 * 1024:
val |= (RBR_BLKSIZE_16K << RBR_CFIG_B_BLKSIZE_SHIFT);
break;
case 32 * 1024:
val |= (RBR_BLKSIZE_32K << RBR_CFIG_B_BLKSIZE_SHIFT);
break;
default:
return -EINVAL;
}
val |= RBR_CFIG_B_VLD2;
switch (rp->rbr_sizes[2]) {
case 2 * 1024:
val |= (RBR_BUFSZ2_2K << RBR_CFIG_B_BUFSZ2_SHIFT);
break;
case 4 * 1024:
val |= (RBR_BUFSZ2_4K << RBR_CFIG_B_BUFSZ2_SHIFT);
break;
case 8 * 1024:
val |= (RBR_BUFSZ2_8K << RBR_CFIG_B_BUFSZ2_SHIFT);
break;
case 16 * 1024:
val |= (RBR_BUFSZ2_16K << RBR_CFIG_B_BUFSZ2_SHIFT);
break;
default:
return -EINVAL;
}
val |= RBR_CFIG_B_VLD1;
switch (rp->rbr_sizes[1]) {
case 1 * 1024:
val |= (RBR_BUFSZ1_1K << RBR_CFIG_B_BUFSZ1_SHIFT);
break;
case 2 * 1024:
val |= (RBR_BUFSZ1_2K << RBR_CFIG_B_BUFSZ1_SHIFT);
break;
case 4 * 1024:
val |= (RBR_BUFSZ1_4K << RBR_CFIG_B_BUFSZ1_SHIFT);
break;
case 8 * 1024:
val |= (RBR_BUFSZ1_8K << RBR_CFIG_B_BUFSZ1_SHIFT);
break;
default:
return -EINVAL;
}
val |= RBR_CFIG_B_VLD0;
switch (rp->rbr_sizes[0]) {
case 256:
val |= (RBR_BUFSZ0_256 << RBR_CFIG_B_BUFSZ0_SHIFT);
break;
case 512:
val |= (RBR_BUFSZ0_512 << RBR_CFIG_B_BUFSZ0_SHIFT);
break;
case 1 * 1024:
val |= (RBR_BUFSZ0_1K << RBR_CFIG_B_BUFSZ0_SHIFT);
break;
case 2 * 1024:
val |= (RBR_BUFSZ0_2K << RBR_CFIG_B_BUFSZ0_SHIFT);
break;
default:
return -EINVAL;
}
*ret = val;
return 0;
}
static int niu_enable_rx_channel(struct niu *np, int channel, int on)
{
u64 val = nr64(RXDMA_CFIG1(channel));
int limit;
if (on)
val |= RXDMA_CFIG1_EN;
else
val &= ~RXDMA_CFIG1_EN;
nw64(RXDMA_CFIG1(channel), val);
limit = 1000;
while (--limit > 0) {
if (nr64(RXDMA_CFIG1(channel)) & RXDMA_CFIG1_QST)
break;
udelay(10);
}
if (limit <= 0)
return -ENODEV;
return 0;
}
static int niu_init_one_rx_channel(struct niu *np, struct rx_ring_info *rp)
{
int err, channel = rp->rx_channel;
u64 val;
err = niu_rx_channel_reset(np, channel);
if (err)
return err;
err = niu_rx_channel_lpage_init(np, channel);
if (err)
return err;
niu_rx_channel_wred_init(np, rp);
nw64(RX_DMA_ENT_MSK(channel), RX_DMA_ENT_MSK_RBR_EMPTY);
nw64(RX_DMA_CTL_STAT(channel),
(RX_DMA_CTL_STAT_MEX |
RX_DMA_CTL_STAT_RCRTHRES |
RX_DMA_CTL_STAT_RCRTO |
RX_DMA_CTL_STAT_RBR_EMPTY));
nw64(RXDMA_CFIG1(channel), rp->mbox_dma >> 32);
nw64(RXDMA_CFIG2(channel),
((rp->mbox_dma & RXDMA_CFIG2_MBADDR_L) |
RXDMA_CFIG2_FULL_HDR));
nw64(RBR_CFIG_A(channel),
((u64)rp->rbr_table_size << RBR_CFIG_A_LEN_SHIFT) |
(rp->rbr_dma & (RBR_CFIG_A_STADDR_BASE | RBR_CFIG_A_STADDR)));
err = niu_compute_rbr_cfig_b(rp, &val);
if (err)
return err;
nw64(RBR_CFIG_B(channel), val);
nw64(RCRCFIG_A(channel),
((u64)rp->rcr_table_size << RCRCFIG_A_LEN_SHIFT) |
(rp->rcr_dma & (RCRCFIG_A_STADDR_BASE | RCRCFIG_A_STADDR)));
nw64(RCRCFIG_B(channel),
((u64)rp->rcr_pkt_threshold << RCRCFIG_B_PTHRES_SHIFT) |
RCRCFIG_B_ENTOUT |
((u64)rp->rcr_timeout << RCRCFIG_B_TIMEOUT_SHIFT));
err = niu_enable_rx_channel(np, channel, 1);
if (err)
return err;
nw64(RBR_KICK(channel), rp->rbr_index);
val = nr64(RX_DMA_CTL_STAT(channel));
val |= RX_DMA_CTL_STAT_RBR_EMPTY;
nw64(RX_DMA_CTL_STAT(channel), val);
return 0;
}
static int niu_init_rx_channels(struct niu *np)
{
unsigned long flags;
u64 seed = jiffies_64;
int err, i;
niu_lock_parent(np, flags);
nw64(RX_DMA_CK_DIV, np->parent->rxdma_clock_divider);
nw64(RED_RAN_INIT, RED_RAN_INIT_OPMODE | (seed & RED_RAN_INIT_VAL));
niu_unlock_parent(np, flags);
/* XXX RXDMA 32bit mode? XXX */
niu_init_rdc_groups(np);
niu_init_drr_weight(np);
err = niu_init_hostinfo(np);
if (err)
return err;
for (i = 0; i < np->num_rx_rings; i++) {
struct rx_ring_info *rp = &np->rx_rings[i];
err = niu_init_one_rx_channel(np, rp);
if (err)
return err;
}
return 0;
}
static int niu_set_ip_frag_rule(struct niu *np)
{
struct niu_parent *parent = np->parent;
struct niu_classifier *cp = &np->clas;
struct niu_tcam_entry *tp;
int index, err;
index = cp->tcam_top;
tp = &parent->tcam[index];
/* Note that the noport bit is the same in both ipv4 and
* ipv6 format TCAM entries.
*/
memset(tp, 0, sizeof(*tp));
tp->key[1] = TCAM_V4KEY1_NOPORT;
tp->key_mask[1] = TCAM_V4KEY1_NOPORT;
tp->assoc_data = (TCAM_ASSOCDATA_TRES_USE_OFFSET |
((u64)0 << TCAM_ASSOCDATA_OFFSET_SHIFT));
err = tcam_write(np, index, tp->key, tp->key_mask);
if (err)
return err;
err = tcam_assoc_write(np, index, tp->assoc_data);
if (err)
return err;
tp->valid = 1;
cp->tcam_valid_entries++;
return 0;
}
static int niu_init_classifier_hw(struct niu *np)
{
struct niu_parent *parent = np->parent;
struct niu_classifier *cp = &np->clas;
int i, err;
nw64(H1POLY, cp->h1_init);
nw64(H2POLY, cp->h2_init);
err = niu_init_hostinfo(np);
if (err)
return err;
for (i = 0; i < ENET_VLAN_TBL_NUM_ENTRIES; i++) {
struct niu_vlan_rdc *vp = &cp->vlan_mappings[i];
vlan_tbl_write(np, i, np->port,
vp->vlan_pref, vp->rdc_num);
}
for (i = 0; i < cp->num_alt_mac_mappings; i++) {
struct niu_altmac_rdc *ap = &cp->alt_mac_mappings[i];
err = niu_set_alt_mac_rdc_table(np, ap->alt_mac_num,
ap->rdc_num, ap->mac_pref);
if (err)
return err;
}
for (i = CLASS_CODE_USER_PROG1; i <= CLASS_CODE_SCTP_IPV6; i++) {
int index = i - CLASS_CODE_USER_PROG1;
err = niu_set_tcam_key(np, i, parent->tcam_key[index]);
if (err)
return err;
err = niu_set_flow_key(np, i, parent->flow_key[index]);
if (err)
return err;
}
err = niu_set_ip_frag_rule(np);
if (err)
return err;
tcam_enable(np, 1);
return 0;
}
static int niu_zcp_write(struct niu *np, int index, u64 *data)
{
nw64(ZCP_RAM_DATA0, data[0]);
nw64(ZCP_RAM_DATA1, data[1]);
nw64(ZCP_RAM_DATA2, data[2]);
nw64(ZCP_RAM_DATA3, data[3]);
nw64(ZCP_RAM_DATA4, data[4]);
nw64(ZCP_RAM_BE, ZCP_RAM_BE_VAL);
nw64(ZCP_RAM_ACC,
(ZCP_RAM_ACC_WRITE |
(0 << ZCP_RAM_ACC_ZFCID_SHIFT) |
(ZCP_RAM_SEL_CFIFO(np->port) << ZCP_RAM_ACC_RAM_SEL_SHIFT)));
return niu_wait_bits_clear(np, ZCP_RAM_ACC, ZCP_RAM_ACC_BUSY,
1000, 100);
}
static int niu_zcp_read(struct niu *np, int index, u64 *data)
{
int err;
err = niu_wait_bits_clear(np, ZCP_RAM_ACC, ZCP_RAM_ACC_BUSY,
1000, 100);
if (err) {
netdev_err(np->dev, "ZCP read busy won't clear, ZCP_RAM_ACC[%llx]\n",
(unsigned long long)nr64(ZCP_RAM_ACC));
return err;
}
nw64(ZCP_RAM_ACC,
(ZCP_RAM_ACC_READ |
(0 << ZCP_RAM_ACC_ZFCID_SHIFT) |
(ZCP_RAM_SEL_CFIFO(np->port) << ZCP_RAM_ACC_RAM_SEL_SHIFT)));
err = niu_wait_bits_clear(np, ZCP_RAM_ACC, ZCP_RAM_ACC_BUSY,
1000, 100);
if (err) {
netdev_err(np->dev, "ZCP read busy2 won't clear, ZCP_RAM_ACC[%llx]\n",
(unsigned long long)nr64(ZCP_RAM_ACC));
return err;
}
data[0] = nr64(ZCP_RAM_DATA0);
data[1] = nr64(ZCP_RAM_DATA1);
data[2] = nr64(ZCP_RAM_DATA2);
data[3] = nr64(ZCP_RAM_DATA3);
data[4] = nr64(ZCP_RAM_DATA4);
return 0;
}
static void niu_zcp_cfifo_reset(struct niu *np)
{
u64 val = nr64(RESET_CFIFO);
val |= RESET_CFIFO_RST(np->port);
nw64(RESET_CFIFO, val);
udelay(10);
val &= ~RESET_CFIFO_RST(np->port);
nw64(RESET_CFIFO, val);
}
static int niu_init_zcp(struct niu *np)
{
u64 data[5], rbuf[5];
int i, max, err;
if (np->parent->plat_type != PLAT_TYPE_NIU) {
if (np->port == 0 || np->port == 1)
max = ATLAS_P0_P1_CFIFO_ENTRIES;
else
max = ATLAS_P2_P3_CFIFO_ENTRIES;
} else
max = NIU_CFIFO_ENTRIES;
data[0] = 0;
data[1] = 0;
data[2] = 0;
data[3] = 0;
data[4] = 0;
for (i = 0; i < max; i++) {
err = niu_zcp_write(np, i, data);
if (err)
return err;
err = niu_zcp_read(np, i, rbuf);
if (err)
return err;
}
niu_zcp_cfifo_reset(np);
nw64(CFIFO_ECC(np->port), 0);
nw64(ZCP_INT_STAT, ZCP_INT_STAT_ALL);
(void) nr64(ZCP_INT_STAT);
nw64(ZCP_INT_MASK, ZCP_INT_MASK_ALL);
return 0;
}
static void niu_ipp_write(struct niu *np, int index, u64 *data)
{
u64 val = nr64_ipp(IPP_CFIG);
nw64_ipp(IPP_CFIG, val | IPP_CFIG_DFIFO_PIO_W);
nw64_ipp(IPP_DFIFO_WR_PTR, index);
nw64_ipp(IPP_DFIFO_WR0, data[0]);
nw64_ipp(IPP_DFIFO_WR1, data[1]);
nw64_ipp(IPP_DFIFO_WR2, data[2]);
nw64_ipp(IPP_DFIFO_WR3, data[3]);
nw64_ipp(IPP_DFIFO_WR4, data[4]);
nw64_ipp(IPP_CFIG, val & ~IPP_CFIG_DFIFO_PIO_W);
}
static void niu_ipp_read(struct niu *np, int index, u64 *data)
{
nw64_ipp(IPP_DFIFO_RD_PTR, index);
data[0] = nr64_ipp(IPP_DFIFO_RD0);
data[1] = nr64_ipp(IPP_DFIFO_RD1);
data[2] = nr64_ipp(IPP_DFIFO_RD2);
data[3] = nr64_ipp(IPP_DFIFO_RD3);
data[4] = nr64_ipp(IPP_DFIFO_RD4);
}
static int niu_ipp_reset(struct niu *np)
{
return niu_set_and_wait_clear_ipp(np, IPP_CFIG, IPP_CFIG_SOFT_RST,
1000, 100, "IPP_CFIG");
}
static int niu_init_ipp(struct niu *np)
{
u64 data[5], rbuf[5], val;
int i, max, err;
if (np->parent->plat_type != PLAT_TYPE_NIU) {
if (np->port == 0 || np->port == 1)
max = ATLAS_P0_P1_DFIFO_ENTRIES;
else
max = ATLAS_P2_P3_DFIFO_ENTRIES;
} else
max = NIU_DFIFO_ENTRIES;
data[0] = 0;
data[1] = 0;
data[2] = 0;
data[3] = 0;
data[4] = 0;
for (i = 0; i < max; i++) {
niu_ipp_write(np, i, data);
niu_ipp_read(np, i, rbuf);
}
(void) nr64_ipp(IPP_INT_STAT);
(void) nr64_ipp(IPP_INT_STAT);
err = niu_ipp_reset(np);
if (err)
return err;
(void) nr64_ipp(IPP_PKT_DIS);
(void) nr64_ipp(IPP_BAD_CS_CNT);
(void) nr64_ipp(IPP_ECC);
(void) nr64_ipp(IPP_INT_STAT);
nw64_ipp(IPP_MSK, ~IPP_MSK_ALL);
val = nr64_ipp(IPP_CFIG);
val &= ~IPP_CFIG_IP_MAX_PKT;
val |= (IPP_CFIG_IPP_ENABLE |
IPP_CFIG_DFIFO_ECC_EN |
IPP_CFIG_DROP_BAD_CRC |
IPP_CFIG_CKSUM_EN |
(0x1ffff << IPP_CFIG_IP_MAX_PKT_SHIFT));
nw64_ipp(IPP_CFIG, val);
return 0;
}
static void niu_handle_led(struct niu *np, int status)
{
u64 val;
val = nr64_mac(XMAC_CONFIG);
if ((np->flags & NIU_FLAGS_10G) != 0 &&
(np->flags & NIU_FLAGS_FIBER) != 0) {
if (status) {
val |= XMAC_CONFIG_LED_POLARITY;
val &= ~XMAC_CONFIG_FORCE_LED_ON;
} else {
val |= XMAC_CONFIG_FORCE_LED_ON;
val &= ~XMAC_CONFIG_LED_POLARITY;
}
}
nw64_mac(XMAC_CONFIG, val);
}
static void niu_init_xif_xmac(struct niu *np)
{
struct niu_link_config *lp = &np->link_config;
u64 val;
if (np->flags & NIU_FLAGS_XCVR_SERDES) {
val = nr64(MIF_CONFIG);
val |= MIF_CONFIG_ATCA_GE;
nw64(MIF_CONFIG, val);
}
val = nr64_mac(XMAC_CONFIG);
val &= ~XMAC_CONFIG_SEL_POR_CLK_SRC;
val |= XMAC_CONFIG_TX_OUTPUT_EN;
if (lp->loopback_mode == LOOPBACK_MAC) {
val &= ~XMAC_CONFIG_SEL_POR_CLK_SRC;
val |= XMAC_CONFIG_LOOPBACK;
} else {
val &= ~XMAC_CONFIG_LOOPBACK;
}
if (np->flags & NIU_FLAGS_10G) {
val &= ~XMAC_CONFIG_LFS_DISABLE;
} else {
val |= XMAC_CONFIG_LFS_DISABLE;
if (!(np->flags & NIU_FLAGS_FIBER) &&
!(np->flags & NIU_FLAGS_XCVR_SERDES))
val |= XMAC_CONFIG_1G_PCS_BYPASS;
else
val &= ~XMAC_CONFIG_1G_PCS_BYPASS;
}
val &= ~XMAC_CONFIG_10G_XPCS_BYPASS;
if (lp->active_speed == SPEED_100)
val |= XMAC_CONFIG_SEL_CLK_25MHZ;
else
val &= ~XMAC_CONFIG_SEL_CLK_25MHZ;
nw64_mac(XMAC_CONFIG, val);
val = nr64_mac(XMAC_CONFIG);
val &= ~XMAC_CONFIG_MODE_MASK;
if (np->flags & NIU_FLAGS_10G) {
val |= XMAC_CONFIG_MODE_XGMII;
} else {
if (lp->active_speed == SPEED_1000)
val |= XMAC_CONFIG_MODE_GMII;
else
val |= XMAC_CONFIG_MODE_MII;
}
nw64_mac(XMAC_CONFIG, val);
}
static void niu_init_xif_bmac(struct niu *np)
{
struct niu_link_config *lp = &np->link_config;
u64 val;
val = BMAC_XIF_CONFIG_TX_OUTPUT_EN;
if (lp->loopback_mode == LOOPBACK_MAC)
val |= BMAC_XIF_CONFIG_MII_LOOPBACK;
else
val &= ~BMAC_XIF_CONFIG_MII_LOOPBACK;
if (lp->active_speed == SPEED_1000)
val |= BMAC_XIF_CONFIG_GMII_MODE;
else
val &= ~BMAC_XIF_CONFIG_GMII_MODE;
val &= ~(BMAC_XIF_CONFIG_LINK_LED |
BMAC_XIF_CONFIG_LED_POLARITY);
if (!(np->flags & NIU_FLAGS_10G) &&
!(np->flags & NIU_FLAGS_FIBER) &&
lp->active_speed == SPEED_100)
val |= BMAC_XIF_CONFIG_25MHZ_CLOCK;
else
val &= ~BMAC_XIF_CONFIG_25MHZ_CLOCK;
nw64_mac(BMAC_XIF_CONFIG, val);
}
static void niu_init_xif(struct niu *np)
{
if (np->flags & NIU_FLAGS_XMAC)
niu_init_xif_xmac(np);
else
niu_init_xif_bmac(np);
}
static void niu_pcs_mii_reset(struct niu *np)
{
int limit = 1000;
u64 val = nr64_pcs(PCS_MII_CTL);
val |= PCS_MII_CTL_RST;
nw64_pcs(PCS_MII_CTL, val);
while ((--limit >= 0) && (val & PCS_MII_CTL_RST)) {
udelay(100);
val = nr64_pcs(PCS_MII_CTL);
}
}
static void niu_xpcs_reset(struct niu *np)
{
int limit = 1000;
u64 val = nr64_xpcs(XPCS_CONTROL1);
val |= XPCS_CONTROL1_RESET;
nw64_xpcs(XPCS_CONTROL1, val);
while ((--limit >= 0) && (val & XPCS_CONTROL1_RESET)) {
udelay(100);
val = nr64_xpcs(XPCS_CONTROL1);
}
}
static int niu_init_pcs(struct niu *np)
{
struct niu_link_config *lp = &np->link_config;
u64 val;
switch (np->flags & (NIU_FLAGS_10G |
NIU_FLAGS_FIBER |
NIU_FLAGS_XCVR_SERDES)) {
case NIU_FLAGS_FIBER:
/* 1G fiber */
nw64_pcs(PCS_CONF, PCS_CONF_MASK | PCS_CONF_ENABLE);
nw64_pcs(PCS_DPATH_MODE, 0);
niu_pcs_mii_reset(np);
break;
case NIU_FLAGS_10G:
case NIU_FLAGS_10G | NIU_FLAGS_FIBER:
case NIU_FLAGS_10G | NIU_FLAGS_XCVR_SERDES:
/* 10G SERDES */
if (!(np->flags & NIU_FLAGS_XMAC))
return -EINVAL;
/* 10G copper or fiber */
val = nr64_mac(XMAC_CONFIG);
val &= ~XMAC_CONFIG_10G_XPCS_BYPASS;
nw64_mac(XMAC_CONFIG, val);
niu_xpcs_reset(np);
val = nr64_xpcs(XPCS_CONTROL1);
if (lp->loopback_mode == LOOPBACK_PHY)
val |= XPCS_CONTROL1_LOOPBACK;
else
val &= ~XPCS_CONTROL1_LOOPBACK;
nw64_xpcs(XPCS_CONTROL1, val);
nw64_xpcs(XPCS_DESKEW_ERR_CNT, 0);
(void) nr64_xpcs(XPCS_SYMERR_CNT01);
(void) nr64_xpcs(XPCS_SYMERR_CNT23);
break;
case NIU_FLAGS_XCVR_SERDES:
/* 1G SERDES */
niu_pcs_mii_reset(np);
nw64_pcs(PCS_CONF, PCS_CONF_MASK | PCS_CONF_ENABLE);
nw64_pcs(PCS_DPATH_MODE, 0);
break;
case 0:
/* 1G copper */
case NIU_FLAGS_XCVR_SERDES | NIU_FLAGS_FIBER:
/* 1G RGMII FIBER */
nw64_pcs(PCS_DPATH_MODE, PCS_DPATH_MODE_MII);
niu_pcs_mii_reset(np);
break;
default:
return -EINVAL;
}
return 0;
}
static int niu_reset_tx_xmac(struct niu *np)
{
return niu_set_and_wait_clear_mac(np, XTXMAC_SW_RST,
(XTXMAC_SW_RST_REG_RS |
XTXMAC_SW_RST_SOFT_RST),
1000, 100, "XTXMAC_SW_RST");
}
static int niu_reset_tx_bmac(struct niu *np)
{
int limit;
nw64_mac(BTXMAC_SW_RST, BTXMAC_SW_RST_RESET);
limit = 1000;
while (--limit >= 0) {
if (!(nr64_mac(BTXMAC_SW_RST) & BTXMAC_SW_RST_RESET))
break;
udelay(100);
}
if (limit < 0) {
dev_err(np->device, "Port %u TX BMAC would not reset, BTXMAC_SW_RST[%llx]\n",
np->port,
(unsigned long long) nr64_mac(BTXMAC_SW_RST));
return -ENODEV;
}
return 0;
}
static int niu_reset_tx_mac(struct niu *np)
{
if (np->flags & NIU_FLAGS_XMAC)
return niu_reset_tx_xmac(np);
else
return niu_reset_tx_bmac(np);
}
static void niu_init_tx_xmac(struct niu *np, u64 min, u64 max)
{
u64 val;
val = nr64_mac(XMAC_MIN);
val &= ~(XMAC_MIN_TX_MIN_PKT_SIZE |
XMAC_MIN_RX_MIN_PKT_SIZE);
val |= (min << XMAC_MIN_RX_MIN_PKT_SIZE_SHFT);
val |= (min << XMAC_MIN_TX_MIN_PKT_SIZE_SHFT);
nw64_mac(XMAC_MIN, val);
nw64_mac(XMAC_MAX, max);
nw64_mac(XTXMAC_STAT_MSK, ~(u64)0);
val = nr64_mac(XMAC_IPG);
if (np->flags & NIU_FLAGS_10G) {
val &= ~XMAC_IPG_IPG_XGMII;
val |= (IPG_12_15_XGMII << XMAC_IPG_IPG_XGMII_SHIFT);
} else {
val &= ~XMAC_IPG_IPG_MII_GMII;
val |= (IPG_12_MII_GMII << XMAC_IPG_IPG_MII_GMII_SHIFT);
}
nw64_mac(XMAC_IPG, val);
val = nr64_mac(XMAC_CONFIG);
val &= ~(XMAC_CONFIG_ALWAYS_NO_CRC |
XMAC_CONFIG_STRETCH_MODE |
XMAC_CONFIG_VAR_MIN_IPG_EN |
XMAC_CONFIG_TX_ENABLE);
nw64_mac(XMAC_CONFIG, val);
nw64_mac(TXMAC_FRM_CNT, 0);
nw64_mac(TXMAC_BYTE_CNT, 0);
}
static void niu_init_tx_bmac(struct niu *np, u64 min, u64 max)
{
u64 val;
nw64_mac(BMAC_MIN_FRAME, min);
nw64_mac(BMAC_MAX_FRAME, max);
nw64_mac(BTXMAC_STATUS_MASK, ~(u64)0);
nw64_mac(BMAC_CTRL_TYPE, 0x8808);
nw64_mac(BMAC_PREAMBLE_SIZE, 7);
val = nr64_mac(BTXMAC_CONFIG);
val &= ~(BTXMAC_CONFIG_FCS_DISABLE |
BTXMAC_CONFIG_ENABLE);
nw64_mac(BTXMAC_CONFIG, val);
}
static void niu_init_tx_mac(struct niu *np)
{
u64 min, max;
min = 64;
if (np->dev->mtu > ETH_DATA_LEN)
max = 9216;
else
max = 1522;
/* The XMAC_MIN register only accepts values for TX min which
* have the low 3 bits cleared.
*/
BUG_ON(min & 0x7);
if (np->flags & NIU_FLAGS_XMAC)
niu_init_tx_xmac(np, min, max);
else
niu_init_tx_bmac(np, min, max);
}
static int niu_reset_rx_xmac(struct niu *np)
{
int limit;
nw64_mac(XRXMAC_SW_RST,
XRXMAC_SW_RST_REG_RS | XRXMAC_SW_RST_SOFT_RST);
limit = 1000;
while (--limit >= 0) {
if (!(nr64_mac(XRXMAC_SW_RST) & (XRXMAC_SW_RST_REG_RS |
XRXMAC_SW_RST_SOFT_RST)))
break;
udelay(100);
}
if (limit < 0) {
dev_err(np->device, "Port %u RX XMAC would not reset, XRXMAC_SW_RST[%llx]\n",
np->port,
(unsigned long long) nr64_mac(XRXMAC_SW_RST));
return -ENODEV;
}
return 0;
}
static int niu_reset_rx_bmac(struct niu *np)
{
int limit;
nw64_mac(BRXMAC_SW_RST, BRXMAC_SW_RST_RESET);
limit = 1000;
while (--limit >= 0) {
if (!(nr64_mac(BRXMAC_SW_RST) & BRXMAC_SW_RST_RESET))
break;
udelay(100);
}
if (limit < 0) {
dev_err(np->device, "Port %u RX BMAC would not reset, BRXMAC_SW_RST[%llx]\n",
np->port,
(unsigned long long) nr64_mac(BRXMAC_SW_RST));
return -ENODEV;
}
return 0;
}
static int niu_reset_rx_mac(struct niu *np)
{
if (np->flags & NIU_FLAGS_XMAC)
return niu_reset_rx_xmac(np);
else
return niu_reset_rx_bmac(np);
}
static void niu_init_rx_xmac(struct niu *np)
{
struct niu_parent *parent = np->parent;
struct niu_rdc_tables *tp = &parent->rdc_group_cfg[np->port];
int first_rdc_table = tp->first_table_num;
unsigned long i;
u64 val;
nw64_mac(XMAC_ADD_FILT0, 0);
nw64_mac(XMAC_ADD_FILT1, 0);
nw64_mac(XMAC_ADD_FILT2, 0);
nw64_mac(XMAC_ADD_FILT12_MASK, 0);
nw64_mac(XMAC_ADD_FILT00_MASK, 0);
for (i = 0; i < MAC_NUM_HASH; i++)
nw64_mac(XMAC_HASH_TBL(i), 0);
nw64_mac(XRXMAC_STAT_MSK, ~(u64)0);
niu_set_primary_mac_rdc_table(np, first_rdc_table, 1);
niu_set_multicast_mac_rdc_table(np, first_rdc_table, 1);
val = nr64_mac(XMAC_CONFIG);
val &= ~(XMAC_CONFIG_RX_MAC_ENABLE |
XMAC_CONFIG_PROMISCUOUS |
XMAC_CONFIG_PROMISC_GROUP |
XMAC_CONFIG_ERR_CHK_DIS |
XMAC_CONFIG_RX_CRC_CHK_DIS |
XMAC_CONFIG_RESERVED_MULTICAST |
XMAC_CONFIG_RX_CODEV_CHK_DIS |
XMAC_CONFIG_ADDR_FILTER_EN |
XMAC_CONFIG_RCV_PAUSE_ENABLE |
XMAC_CONFIG_STRIP_CRC |
XMAC_CONFIG_PASS_FLOW_CTRL |
XMAC_CONFIG_MAC2IPP_PKT_CNT_EN);
val |= (XMAC_CONFIG_HASH_FILTER_EN);
nw64_mac(XMAC_CONFIG, val);
nw64_mac(RXMAC_BT_CNT, 0);
nw64_mac(RXMAC_BC_FRM_CNT, 0);
nw64_mac(RXMAC_MC_FRM_CNT, 0);
nw64_mac(RXMAC_FRAG_CNT, 0);
nw64_mac(RXMAC_HIST_CNT1, 0);
nw64_mac(RXMAC_HIST_CNT2, 0);
nw64_mac(RXMAC_HIST_CNT3, 0);
nw64_mac(RXMAC_HIST_CNT4, 0);
nw64_mac(RXMAC_HIST_CNT5, 0);
nw64_mac(RXMAC_HIST_CNT6, 0);
nw64_mac(RXMAC_HIST_CNT7, 0);
nw64_mac(RXMAC_MPSZER_CNT, 0);
nw64_mac(RXMAC_CRC_ER_CNT, 0);
nw64_mac(RXMAC_CD_VIO_CNT, 0);
nw64_mac(LINK_FAULT_CNT, 0);
}
static void niu_init_rx_bmac(struct niu *np)
{
struct niu_parent *parent = np->parent;
struct niu_rdc_tables *tp = &parent->rdc_group_cfg[np->port];
int first_rdc_table = tp->first_table_num;
unsigned long i;
u64 val;
nw64_mac(BMAC_ADD_FILT0, 0);
nw64_mac(BMAC_ADD_FILT1, 0);
nw64_mac(BMAC_ADD_FILT2, 0);
nw64_mac(BMAC_ADD_FILT12_MASK, 0);
nw64_mac(BMAC_ADD_FILT00_MASK, 0);
for (i = 0; i < MAC_NUM_HASH; i++)
nw64_mac(BMAC_HASH_TBL(i), 0);
niu_set_primary_mac_rdc_table(np, first_rdc_table, 1);
niu_set_multicast_mac_rdc_table(np, first_rdc_table, 1);
nw64_mac(BRXMAC_STATUS_MASK, ~(u64)0);
val = nr64_mac(BRXMAC_CONFIG);
val &= ~(BRXMAC_CONFIG_ENABLE |
BRXMAC_CONFIG_STRIP_PAD |
BRXMAC_CONFIG_STRIP_FCS |
BRXMAC_CONFIG_PROMISC |
BRXMAC_CONFIG_PROMISC_GRP |
BRXMAC_CONFIG_ADDR_FILT_EN |
BRXMAC_CONFIG_DISCARD_DIS);
val |= (BRXMAC_CONFIG_HASH_FILT_EN);
nw64_mac(BRXMAC_CONFIG, val);
val = nr64_mac(BMAC_ADDR_CMPEN);
val |= BMAC_ADDR_CMPEN_EN0;
nw64_mac(BMAC_ADDR_CMPEN, val);
}
static void niu_init_rx_mac(struct niu *np)
{
niu_set_primary_mac(np, np->dev->dev_addr);
if (np->flags & NIU_FLAGS_XMAC)
niu_init_rx_xmac(np);
else
niu_init_rx_bmac(np);
}
static void niu_enable_tx_xmac(struct niu *np, int on)
{
u64 val = nr64_mac(XMAC_CONFIG);
if (on)
val |= XMAC_CONFIG_TX_ENABLE;
else
val &= ~XMAC_CONFIG_TX_ENABLE;
nw64_mac(XMAC_CONFIG, val);
}
static void niu_enable_tx_bmac(struct niu *np, int on)
{
u64 val = nr64_mac(BTXMAC_CONFIG);
if (on)
val |= BTXMAC_CONFIG_ENABLE;
else
val &= ~BTXMAC_CONFIG_ENABLE;
nw64_mac(BTXMAC_CONFIG, val);
}
static void niu_enable_tx_mac(struct niu *np, int on)
{
if (np->flags & NIU_FLAGS_XMAC)
niu_enable_tx_xmac(np, on);
else
niu_enable_tx_bmac(np, on);
}
static void niu_enable_rx_xmac(struct niu *np, int on)
{
u64 val = nr64_mac(XMAC_CONFIG);
val &= ~(XMAC_CONFIG_HASH_FILTER_EN |
XMAC_CONFIG_PROMISCUOUS);
if (np->flags & NIU_FLAGS_MCAST)
val |= XMAC_CONFIG_HASH_FILTER_EN;
if (np->flags & NIU_FLAGS_PROMISC)
val |= XMAC_CONFIG_PROMISCUOUS;
if (on)
val |= XMAC_CONFIG_RX_MAC_ENABLE;
else
val &= ~XMAC_CONFIG_RX_MAC_ENABLE;
nw64_mac(XMAC_CONFIG, val);
}
static void niu_enable_rx_bmac(struct niu *np, int on)
{
u64 val = nr64_mac(BRXMAC_CONFIG);
val &= ~(BRXMAC_CONFIG_HASH_FILT_EN |
BRXMAC_CONFIG_PROMISC);
if (np->flags & NIU_FLAGS_MCAST)
val |= BRXMAC_CONFIG_HASH_FILT_EN;
if (np->flags & NIU_FLAGS_PROMISC)
val |= BRXMAC_CONFIG_PROMISC;
if (on)
val |= BRXMAC_CONFIG_ENABLE;
else
val &= ~BRXMAC_CONFIG_ENABLE;
nw64_mac(BRXMAC_CONFIG, val);
}
static void niu_enable_rx_mac(struct niu *np, int on)
{
if (np->flags & NIU_FLAGS_XMAC)
niu_enable_rx_xmac(np, on);
else
niu_enable_rx_bmac(np, on);
}
static int niu_init_mac(struct niu *np)
{
int err;
niu_init_xif(np);
err = niu_init_pcs(np);
if (err)
return err;
err = niu_reset_tx_mac(np);
if (err)
return err;
niu_init_tx_mac(np);
err = niu_reset_rx_mac(np);
if (err)
return err;
niu_init_rx_mac(np);
/* This looks hookey but the RX MAC reset we just did will
* undo some of the state we setup in niu_init_tx_mac() so we
* have to call it again. In particular, the RX MAC reset will
* set the XMAC_MAX register back to it's default value.
*/
niu_init_tx_mac(np);
niu_enable_tx_mac(np, 1);
niu_enable_rx_mac(np, 1);
return 0;
}
static void niu_stop_one_tx_channel(struct niu *np, struct tx_ring_info *rp)
{
(void) niu_tx_channel_stop(np, rp->tx_channel);
}
static void niu_stop_tx_channels(struct niu *np)
{
int i;
for (i = 0; i < np->num_tx_rings; i++) {
struct tx_ring_info *rp = &np->tx_rings[i];
niu_stop_one_tx_channel(np, rp);
}
}
static void niu_reset_one_tx_channel(struct niu *np, struct tx_ring_info *rp)
{
(void) niu_tx_channel_reset(np, rp->tx_channel);
}
static void niu_reset_tx_channels(struct niu *np)
{
int i;
for (i = 0; i < np->num_tx_rings; i++) {
struct tx_ring_info *rp = &np->tx_rings[i];
niu_reset_one_tx_channel(np, rp);
}
}
static void niu_stop_one_rx_channel(struct niu *np, struct rx_ring_info *rp)
{
(void) niu_enable_rx_channel(np, rp->rx_channel, 0);
}
static void niu_stop_rx_channels(struct niu *np)
{
int i;
for (i = 0; i < np->num_rx_rings; i++) {
struct rx_ring_info *rp = &np->rx_rings[i];
niu_stop_one_rx_channel(np, rp);
}
}
static void niu_reset_one_rx_channel(struct niu *np, struct rx_ring_info *rp)
{
int channel = rp->rx_channel;
(void) niu_rx_channel_reset(np, channel);
nw64(RX_DMA_ENT_MSK(channel), RX_DMA_ENT_MSK_ALL);
nw64(RX_DMA_CTL_STAT(channel), 0);
(void) niu_enable_rx_channel(np, channel, 0);
}
static void niu_reset_rx_channels(struct niu *np)
{
int i;
for (i = 0; i < np->num_rx_rings; i++) {
struct rx_ring_info *rp = &np->rx_rings[i];
niu_reset_one_rx_channel(np, rp);
}
}
static void niu_disable_ipp(struct niu *np)
{
u64 rd, wr, val;
int limit;
rd = nr64_ipp(IPP_DFIFO_RD_PTR);
wr = nr64_ipp(IPP_DFIFO_WR_PTR);
limit = 100;
while (--limit >= 0 && (rd != wr)) {
rd = nr64_ipp(IPP_DFIFO_RD_PTR);
wr = nr64_ipp(IPP_DFIFO_WR_PTR);
}
if (limit < 0 &&
(rd != 0 && wr != 1)) {
netdev_err(np->dev, "IPP would not quiesce, rd_ptr[%llx] wr_ptr[%llx]\n",
(unsigned long long)nr64_ipp(IPP_DFIFO_RD_PTR),
(unsigned long long)nr64_ipp(IPP_DFIFO_WR_PTR));
}
val = nr64_ipp(IPP_CFIG);
val &= ~(IPP_CFIG_IPP_ENABLE |
IPP_CFIG_DFIFO_ECC_EN |
IPP_CFIG_DROP_BAD_CRC |
IPP_CFIG_CKSUM_EN);
nw64_ipp(IPP_CFIG, val);
(void) niu_ipp_reset(np);
}
static int niu_init_hw(struct niu *np)
{
int i, err;
netif_printk(np, ifup, KERN_DEBUG, np->dev, "Initialize TXC\n");
niu_txc_enable_port(np, 1);
niu_txc_port_dma_enable(np, 1);
niu_txc_set_imask(np, 0);
netif_printk(np, ifup, KERN_DEBUG, np->dev, "Initialize TX channels\n");
for (i = 0; i < np->num_tx_rings; i++) {
struct tx_ring_info *rp = &np->tx_rings[i];
err = niu_init_one_tx_channel(np, rp);
if (err)
return err;
}
netif_printk(np, ifup, KERN_DEBUG, np->dev, "Initialize RX channels\n");
err = niu_init_rx_channels(np);
if (err)
goto out_uninit_tx_channels;
netif_printk(np, ifup, KERN_DEBUG, np->dev, "Initialize classifier\n");
err = niu_init_classifier_hw(np);
if (err)
goto out_uninit_rx_channels;
netif_printk(np, ifup, KERN_DEBUG, np->dev, "Initialize ZCP\n");
err = niu_init_zcp(np);
if (err)
goto out_uninit_rx_channels;
netif_printk(np, ifup, KERN_DEBUG, np->dev, "Initialize IPP\n");
err = niu_init_ipp(np);
if (err)
goto out_uninit_rx_channels;
netif_printk(np, ifup, KERN_DEBUG, np->dev, "Initialize MAC\n");
err = niu_init_mac(np);
if (err)
goto out_uninit_ipp;
return 0;
out_uninit_ipp:
netif_printk(np, ifup, KERN_DEBUG, np->dev, "Uninit IPP\n");
niu_disable_ipp(np);
out_uninit_rx_channels:
netif_printk(np, ifup, KERN_DEBUG, np->dev, "Uninit RX channels\n");
niu_stop_rx_channels(np);
niu_reset_rx_channels(np);
out_uninit_tx_channels:
netif_printk(np, ifup, KERN_DEBUG, np->dev, "Uninit TX channels\n");
niu_stop_tx_channels(np);
niu_reset_tx_channels(np);
return err;
}
static void niu_stop_hw(struct niu *np)
{
netif_printk(np, ifdown, KERN_DEBUG, np->dev, "Disable interrupts\n");
niu_enable_interrupts(np, 0);
netif_printk(np, ifdown, KERN_DEBUG, np->dev, "Disable RX MAC\n");
niu_enable_rx_mac(np, 0);
netif_printk(np, ifdown, KERN_DEBUG, np->dev, "Disable IPP\n");
niu_disable_ipp(np);
netif_printk(np, ifdown, KERN_DEBUG, np->dev, "Stop TX channels\n");
niu_stop_tx_channels(np);
netif_printk(np, ifdown, KERN_DEBUG, np->dev, "Stop RX channels\n");
niu_stop_rx_channels(np);
netif_printk(np, ifdown, KERN_DEBUG, np->dev, "Reset TX channels\n");
niu_reset_tx_channels(np);
netif_printk(np, ifdown, KERN_DEBUG, np->dev, "Reset RX channels\n");
niu_reset_rx_channels(np);
}
static void niu_set_irq_name(struct niu *np)
{
int port = np->port;
int i, j = 1;
sprintf(np->irq_name[0], "%s:MAC", np->dev->name);
if (port == 0) {
sprintf(np->irq_name[1], "%s:MIF", np->dev->name);
sprintf(np->irq_name[2], "%s:SYSERR", np->dev->name);
j = 3;
}
for (i = 0; i < np->num_ldg - j; i++) {
if (i < np->num_rx_rings)
sprintf(np->irq_name[i+j], "%s-rx-%d",
np->dev->name, i);
else if (i < np->num_tx_rings + np->num_rx_rings)
sprintf(np->irq_name[i+j], "%s-tx-%d", np->dev->name,
i - np->num_rx_rings);
}
}
static int niu_request_irq(struct niu *np)
{
int i, j, err;
niu_set_irq_name(np);
err = 0;
for (i = 0; i < np->num_ldg; i++) {
struct niu_ldg *lp = &np->ldg[i];
err = request_irq(lp->irq, niu_interrupt, IRQF_SHARED,
np->irq_name[i], lp);
if (err)
goto out_free_irqs;
}
return 0;
out_free_irqs:
for (j = 0; j < i; j++) {
struct niu_ldg *lp = &np->ldg[j];
free_irq(lp->irq, lp);
}
return err;
}
static void niu_free_irq(struct niu *np)
{
int i;
for (i = 0; i < np->num_ldg; i++) {
struct niu_ldg *lp = &np->ldg[i];
free_irq(lp->irq, lp);
}
}
static void niu_enable_napi(struct niu *np)
{
int i;
for (i = 0; i < np->num_ldg; i++)
napi_enable(&np->ldg[i].napi);
}
static void niu_disable_napi(struct niu *np)
{
int i;
for (i = 0; i < np->num_ldg; i++)
napi_disable(&np->ldg[i].napi);
}
static int niu_open(struct net_device *dev)
{
struct niu *np = netdev_priv(dev);
int err;
netif_carrier_off(dev);
err = niu_alloc_channels(np);
if (err)
goto out_err;
err = niu_enable_interrupts(np, 0);
if (err)
goto out_free_channels;
err = niu_request_irq(np);
if (err)
goto out_free_channels;
niu_enable_napi(np);
spin_lock_irq(&np->lock);
err = niu_init_hw(np);
if (!err) {
timer_setup(&np->timer, niu_timer, 0);
np->timer.expires = jiffies + HZ;
err = niu_enable_interrupts(np, 1);
if (err)
niu_stop_hw(np);
}
spin_unlock_irq(&np->lock);
if (err) {
niu_disable_napi(np);
goto out_free_irq;
}
netif_tx_start_all_queues(dev);
if (np->link_config.loopback_mode != LOOPBACK_DISABLED)
netif_carrier_on(dev);
add_timer(&np->timer);
return 0;
out_free_irq:
niu_free_irq(np);
out_free_channels:
niu_free_channels(np);
out_err:
return err;
}
static void niu_full_shutdown(struct niu *np, struct net_device *dev)
{
cancel_work_sync(&np->reset_task);
niu_disable_napi(np);
netif_tx_stop_all_queues(dev);
del_timer_sync(&np->timer);
spin_lock_irq(&np->lock);
niu_stop_hw(np);
spin_unlock_irq(&np->lock);
}
static int niu_close(struct net_device *dev)
{
struct niu *np = netdev_priv(dev);
niu_full_shutdown(np, dev);
niu_free_irq(np);
niu_free_channels(np);
niu_handle_led(np, 0);
return 0;
}
static void niu_sync_xmac_stats(struct niu *np)
{
struct niu_xmac_stats *mp = &np->mac_stats.xmac;
mp->tx_frames += nr64_mac(TXMAC_FRM_CNT);
mp->tx_bytes += nr64_mac(TXMAC_BYTE_CNT);
mp->rx_link_faults += nr64_mac(LINK_FAULT_CNT);
mp->rx_align_errors += nr64_mac(RXMAC_ALIGN_ERR_CNT);
mp->rx_frags += nr64_mac(RXMAC_FRAG_CNT);
mp->rx_mcasts += nr64_mac(RXMAC_MC_FRM_CNT);
mp->rx_bcasts += nr64_mac(RXMAC_BC_FRM_CNT);
mp->rx_hist_cnt1 += nr64_mac(RXMAC_HIST_CNT1);
mp->rx_hist_cnt2 += nr64_mac(RXMAC_HIST_CNT2);
mp->rx_hist_cnt3 += nr64_mac(RXMAC_HIST_CNT3);
mp->rx_hist_cnt4 += nr64_mac(RXMAC_HIST_CNT4);
mp->rx_hist_cnt5 += nr64_mac(RXMAC_HIST_CNT5);
mp->rx_hist_cnt6 += nr64_mac(RXMAC_HIST_CNT6);
mp->rx_hist_cnt7 += nr64_mac(RXMAC_HIST_CNT7);
mp->rx_octets += nr64_mac(RXMAC_BT_CNT);
mp->rx_code_violations += nr64_mac(RXMAC_CD_VIO_CNT);
mp->rx_len_errors += nr64_mac(RXMAC_MPSZER_CNT);
mp->rx_crc_errors += nr64_mac(RXMAC_CRC_ER_CNT);
}
static void niu_sync_bmac_stats(struct niu *np)
{
struct niu_bmac_stats *mp = &np->mac_stats.bmac;
mp->tx_bytes += nr64_mac(BTXMAC_BYTE_CNT);
mp->tx_frames += nr64_mac(BTXMAC_FRM_CNT);
mp->rx_frames += nr64_mac(BRXMAC_FRAME_CNT);
mp->rx_align_errors += nr64_mac(BRXMAC_ALIGN_ERR_CNT);
mp->rx_crc_errors += nr64_mac(BRXMAC_ALIGN_ERR_CNT);
mp->rx_len_errors += nr64_mac(BRXMAC_CODE_VIOL_ERR_CNT);
}
static void niu_sync_mac_stats(struct niu *np)
{
if (np->flags & NIU_FLAGS_XMAC)
niu_sync_xmac_stats(np);
else
niu_sync_bmac_stats(np);
}
static void niu_get_rx_stats(struct niu *np,
struct rtnl_link_stats64 *stats)
{
u64 pkts, dropped, errors, bytes;
struct rx_ring_info *rx_rings;
int i;
pkts = dropped = errors = bytes = 0;
rx_rings = READ_ONCE(np->rx_rings);
if (!rx_rings)
goto no_rings;
for (i = 0; i < np->num_rx_rings; i++) {
struct rx_ring_info *rp = &rx_rings[i];
niu_sync_rx_discard_stats(np, rp, 0);
pkts += rp->rx_packets;
bytes += rp->rx_bytes;
dropped += rp->rx_dropped;
errors += rp->rx_errors;
}
no_rings:
stats->rx_packets = pkts;
stats->rx_bytes = bytes;
stats->rx_dropped = dropped;
stats->rx_errors = errors;
}
static void niu_get_tx_stats(struct niu *np,
struct rtnl_link_stats64 *stats)
{
u64 pkts, errors, bytes;
struct tx_ring_info *tx_rings;
int i;
pkts = errors = bytes = 0;
tx_rings = READ_ONCE(np->tx_rings);
if (!tx_rings)
goto no_rings;
for (i = 0; i < np->num_tx_rings; i++) {
struct tx_ring_info *rp = &tx_rings[i];
pkts += rp->tx_packets;
bytes += rp->tx_bytes;
errors += rp->tx_errors;
}
no_rings:
stats->tx_packets = pkts;
stats->tx_bytes = bytes;
stats->tx_errors = errors;
}
static void niu_get_stats(struct net_device *dev,
struct rtnl_link_stats64 *stats)
{
struct niu *np = netdev_priv(dev);
if (netif_running(dev)) {
niu_get_rx_stats(np, stats);
niu_get_tx_stats(np, stats);
}
}
static void niu_load_hash_xmac(struct niu *np, u16 *hash)
{
int i;
for (i = 0; i < 16; i++)
nw64_mac(XMAC_HASH_TBL(i), hash[i]);
}
static void niu_load_hash_bmac(struct niu *np, u16 *hash)
{
int i;
for (i = 0; i < 16; i++)
nw64_mac(BMAC_HASH_TBL(i), hash[i]);
}
static void niu_load_hash(struct niu *np, u16 *hash)
{
if (np->flags & NIU_FLAGS_XMAC)
niu_load_hash_xmac(np, hash);
else
niu_load_hash_bmac(np, hash);
}
static void niu_set_rx_mode(struct net_device *dev)
{
struct niu *np = netdev_priv(dev);
int i, alt_cnt, err;
struct netdev_hw_addr *ha;
unsigned long flags;
u16 hash[16] = { 0, };
spin_lock_irqsave(&np->lock, flags);
niu_enable_rx_mac(np, 0);
np->flags &= ~(NIU_FLAGS_MCAST | NIU_FLAGS_PROMISC);
if (dev->flags & IFF_PROMISC)
np->flags |= NIU_FLAGS_PROMISC;
if ((dev->flags & IFF_ALLMULTI) || (!netdev_mc_empty(dev)))
np->flags |= NIU_FLAGS_MCAST;
alt_cnt = netdev_uc_count(dev);
if (alt_cnt > niu_num_alt_addr(np)) {
alt_cnt = 0;
np->flags |= NIU_FLAGS_PROMISC;
}
if (alt_cnt) {
int index = 0;
netdev_for_each_uc_addr(ha, dev) {
err = niu_set_alt_mac(np, index, ha->addr);
if (err)
netdev_warn(dev, "Error %d adding alt mac %d\n",
err, index);
err = niu_enable_alt_mac(np, index, 1);
if (err)
netdev_warn(dev, "Error %d enabling alt mac %d\n",
err, index);
index++;
}
} else {
int alt_start;
if (np->flags & NIU_FLAGS_XMAC)
alt_start = 0;
else
alt_start = 1;
for (i = alt_start; i < niu_num_alt_addr(np); i++) {
err = niu_enable_alt_mac(np, i, 0);
if (err)
netdev_warn(dev, "Error %d disabling alt mac %d\n",
err, i);
}
}
if (dev->flags & IFF_ALLMULTI) {
for (i = 0; i < 16; i++)
hash[i] = 0xffff;
} else if (!netdev_mc_empty(dev)) {
netdev_for_each_mc_addr(ha, dev) {
u32 crc = ether_crc_le(ETH_ALEN, ha->addr);
crc >>= 24;
hash[crc >> 4] |= (1 << (15 - (crc & 0xf)));
}
}
if (np->flags & NIU_FLAGS_MCAST)
niu_load_hash(np, hash);
niu_enable_rx_mac(np, 1);
spin_unlock_irqrestore(&np->lock, flags);
}
static int niu_set_mac_addr(struct net_device *dev, void *p)
{
struct niu *np = netdev_priv(dev);
struct sockaddr *addr = p;
unsigned long flags;
if (!is_valid_ether_addr(addr->sa_data))
return -EADDRNOTAVAIL;
memcpy(dev->dev_addr, addr->sa_data, ETH_ALEN);
if (!netif_running(dev))
return 0;
spin_lock_irqsave(&np->lock, flags);
niu_enable_rx_mac(np, 0);
niu_set_primary_mac(np, dev->dev_addr);
niu_enable_rx_mac(np, 1);
spin_unlock_irqrestore(&np->lock, flags);
return 0;
}
static int niu_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
{
return -EOPNOTSUPP;
}
static void niu_netif_stop(struct niu *np)
{
netif_trans_update(np->dev); /* prevent tx timeout */
niu_disable_napi(np);
netif_tx_disable(np->dev);
}
static void niu_netif_start(struct niu *np)
{
/* NOTE: unconditional netif_wake_queue is only appropriate
* so long as all callers are assured to have free tx slots
* (such as after niu_init_hw).
*/
netif_tx_wake_all_queues(np->dev);
niu_enable_napi(np);
niu_enable_interrupts(np, 1);
}
static void niu_reset_buffers(struct niu *np)
{
int i, j, k, err;
if (np->rx_rings) {
for (i = 0; i < np->num_rx_rings; i++) {
struct rx_ring_info *rp = &np->rx_rings[i];
for (j = 0, k = 0; j < MAX_RBR_RING_SIZE; j++) {
struct page *page;
page = rp->rxhash[j];
while (page) {
struct page *next =
(struct page *) page->mapping;
u64 base = page->index;
base = base >> RBR_DESCR_ADDR_SHIFT;
rp->rbr[k++] = cpu_to_le32(base);
page = next;
}
}
for (; k < MAX_RBR_RING_SIZE; k++) {
err = niu_rbr_add_page(np, rp, GFP_ATOMIC, k);
if (unlikely(err))
break;
}
rp->rbr_index = rp->rbr_table_size - 1;
rp->rcr_index = 0;
rp->rbr_pending = 0;
rp->rbr_refill_pending = 0;
}
}
if (np->tx_rings) {
for (i = 0; i < np->num_tx_rings; i++) {
struct tx_ring_info *rp = &np->tx_rings[i];
for (j = 0; j < MAX_TX_RING_SIZE; j++) {
if (rp->tx_buffs[j].skb)
(void) release_tx_packet(np, rp, j);
}
rp->pending = MAX_TX_RING_SIZE;
rp->prod = 0;
rp->cons = 0;
rp->wrap_bit = 0;
}
}
}
static void niu_reset_task(struct work_struct *work)
{
struct niu *np = container_of(work, struct niu, reset_task);
unsigned long flags;
int err;
spin_lock_irqsave(&np->lock, flags);
if (!netif_running(np->dev)) {
spin_unlock_irqrestore(&np->lock, flags);
return;
}
spin_unlock_irqrestore(&np->lock, flags);
del_timer_sync(&np->timer);
niu_netif_stop(np);
spin_lock_irqsave(&np->lock, flags);
niu_stop_hw(np);
spin_unlock_irqrestore(&np->lock, flags);
niu_reset_buffers(np);
spin_lock_irqsave(&np->lock, flags);
err = niu_init_hw(np);
if (!err) {
np->timer.expires = jiffies + HZ;
add_timer(&np->timer);
niu_netif_start(np);
}
spin_unlock_irqrestore(&np->lock, flags);
}
static void niu_tx_timeout(struct net_device *dev, unsigned int txqueue)
{
struct niu *np = netdev_priv(dev);
dev_err(np->device, "%s: Transmit timed out, resetting\n",
dev->name);
schedule_work(&np->reset_task);
}
static void niu_set_txd(struct tx_ring_info *rp, int index,
u64 mapping, u64 len, u64 mark,
u64 n_frags)
{
__le64 *desc = &rp->descr[index];
*desc = cpu_to_le64(mark |
(n_frags << TX_DESC_NUM_PTR_SHIFT) |
(len << TX_DESC_TR_LEN_SHIFT) |
(mapping & TX_DESC_SAD));
}
static u64 niu_compute_tx_flags(struct sk_buff *skb, struct ethhdr *ehdr,
u64 pad_bytes, u64 len)
{
u16 eth_proto, eth_proto_inner;
u64 csum_bits, l3off, ihl, ret;
u8 ip_proto;
int ipv6;
eth_proto = be16_to_cpu(ehdr->h_proto);
eth_proto_inner = eth_proto;
if (eth_proto == ETH_P_8021Q) {
struct vlan_ethhdr *vp = (struct vlan_ethhdr *) ehdr;
__be16 val = vp->h_vlan_encapsulated_proto;
eth_proto_inner = be16_to_cpu(val);
}
ipv6 = ihl = 0;
switch (skb->protocol) {
case cpu_to_be16(ETH_P_IP):
ip_proto = ip_hdr(skb)->protocol;
ihl = ip_hdr(skb)->ihl;
break;
case cpu_to_be16(ETH_P_IPV6):
ip_proto = ipv6_hdr(skb)->nexthdr;
ihl = (40 >> 2);
ipv6 = 1;
break;
default:
ip_proto = ihl = 0;
break;
}
csum_bits = TXHDR_CSUM_NONE;
if (skb->ip_summed == CHECKSUM_PARTIAL) {
u64 start, stuff;
csum_bits = (ip_proto == IPPROTO_TCP ?
TXHDR_CSUM_TCP :
(ip_proto == IPPROTO_UDP ?
TXHDR_CSUM_UDP : TXHDR_CSUM_SCTP));
start = skb_checksum_start_offset(skb) -
(pad_bytes + sizeof(struct tx_pkt_hdr));
stuff = start + skb->csum_offset;
csum_bits |= (start / 2) << TXHDR_L4START_SHIFT;
csum_bits |= (stuff / 2) << TXHDR_L4STUFF_SHIFT;
}
l3off = skb_network_offset(skb) -
(pad_bytes + sizeof(struct tx_pkt_hdr));
ret = (((pad_bytes / 2) << TXHDR_PAD_SHIFT) |
(len << TXHDR_LEN_SHIFT) |
((l3off / 2) << TXHDR_L3START_SHIFT) |
(ihl << TXHDR_IHL_SHIFT) |
((eth_proto_inner < ETH_P_802_3_MIN) ? TXHDR_LLC : 0) |
((eth_proto == ETH_P_8021Q) ? TXHDR_VLAN : 0) |
(ipv6 ? TXHDR_IP_VER : 0) |
csum_bits);
return ret;
}
static netdev_tx_t niu_start_xmit(struct sk_buff *skb,
struct net_device *dev)
{
struct niu *np = netdev_priv(dev);
unsigned long align, headroom;
struct netdev_queue *txq;
struct tx_ring_info *rp;
struct tx_pkt_hdr *tp;
unsigned int len, nfg;
struct ethhdr *ehdr;
int prod, i, tlen;
u64 mapping, mrk;
i = skb_get_queue_mapping(skb);
rp = &np->tx_rings[i];
txq = netdev_get_tx_queue(dev, i);
if (niu_tx_avail(rp) <= (skb_shinfo(skb)->nr_frags + 1)) {
netif_tx_stop_queue(txq);
dev_err(np->device, "%s: BUG! Tx ring full when queue awake!\n", dev->name);
rp->tx_errors++;
return NETDEV_TX_BUSY;
}
if (eth_skb_pad(skb))
goto out;
len = sizeof(struct tx_pkt_hdr) + 15;
if (skb_headroom(skb) < len) {
struct sk_buff *skb_new;
skb_new = skb_realloc_headroom(skb, len);
if (!skb_new)
goto out_drop;
kfree_skb(skb);
skb = skb_new;
} else
skb_orphan(skb);
align = ((unsigned long) skb->data & (16 - 1));
headroom = align + sizeof(struct tx_pkt_hdr);
ehdr = (struct ethhdr *) skb->data;
tp = skb_push(skb, headroom);
len = skb->len - sizeof(struct tx_pkt_hdr);
tp->flags = cpu_to_le64(niu_compute_tx_flags(skb, ehdr, align, len));
tp->resv = 0;
len = skb_headlen(skb);
mapping = np->ops->map_single(np->device, skb->data,
len, DMA_TO_DEVICE);
prod = rp->prod;
rp->tx_buffs[prod].skb = skb;
rp->tx_buffs[prod].mapping = mapping;
mrk = TX_DESC_SOP;
if (++rp->mark_counter == rp->mark_freq) {
rp->mark_counter = 0;
mrk |= TX_DESC_MARK;
rp->mark_pending++;
}
tlen = len;
nfg = skb_shinfo(skb)->nr_frags;
while (tlen > 0) {
tlen -= MAX_TX_DESC_LEN;
nfg++;
}
while (len > 0) {
unsigned int this_len = len;
if (this_len > MAX_TX_DESC_LEN)
this_len = MAX_TX_DESC_LEN;
niu_set_txd(rp, prod, mapping, this_len, mrk, nfg);
mrk = nfg = 0;
prod = NEXT_TX(rp, prod);
mapping += this_len;
len -= this_len;
}
for (i = 0; i < skb_shinfo(skb)->nr_frags; i++) {
const skb_frag_t *frag = &skb_shinfo(skb)->frags[i];
len = skb_frag_size(frag);
mapping = np->ops->map_page(np->device, skb_frag_page(frag),
skb_frag_off(frag), len,
DMA_TO_DEVICE);
rp->tx_buffs[prod].skb = NULL;
rp->tx_buffs[prod].mapping = mapping;
niu_set_txd(rp, prod, mapping, len, 0, 0);
prod = NEXT_TX(rp, prod);
}
if (prod < rp->prod)
rp->wrap_bit ^= TX_RING_KICK_WRAP;
rp->prod = prod;
nw64(TX_RING_KICK(rp->tx_channel), rp->wrap_bit | (prod << 3));
if (unlikely(niu_tx_avail(rp) <= (MAX_SKB_FRAGS + 1))) {
netif_tx_stop_queue(txq);
if (niu_tx_avail(rp) > NIU_TX_WAKEUP_THRESH(rp))
netif_tx_wake_queue(txq);
}
out:
return NETDEV_TX_OK;
out_drop:
rp->tx_errors++;
kfree_skb(skb);
goto out;
}
static int niu_change_mtu(struct net_device *dev, int new_mtu)
{
struct niu *np = netdev_priv(dev);
int err, orig_jumbo, new_jumbo;
orig_jumbo = (dev->mtu > ETH_DATA_LEN);
new_jumbo = (new_mtu > ETH_DATA_LEN);
dev->mtu = new_mtu;
if (!netif_running(dev) ||
(orig_jumbo == new_jumbo))
return 0;
niu_full_shutdown(np, dev);
niu_free_channels(np);
niu_enable_napi(np);
err = niu_alloc_channels(np);
if (err)
return err;
spin_lock_irq(&np->lock);
err = niu_init_hw(np);
if (!err) {
timer_setup(&np->timer, niu_timer, 0);
np->timer.expires = jiffies + HZ;
err = niu_enable_interrupts(np, 1);
if (err)
niu_stop_hw(np);
}
spin_unlock_irq(&np->lock);
if (!err) {
netif_tx_start_all_queues(dev);
if (np->link_config.loopback_mode != LOOPBACK_DISABLED)
netif_carrier_on(dev);
add_timer(&np->timer);
}
return err;
}
static void niu_get_drvinfo(struct net_device *dev,
struct ethtool_drvinfo *info)
{
struct niu *np = netdev_priv(dev);
struct niu_vpd *vpd = &np->vpd;
strlcpy(info->driver, DRV_MODULE_NAME, sizeof(info->driver));
strlcpy(info->version, DRV_MODULE_VERSION, sizeof(info->version));
snprintf(info->fw_version, sizeof(info->fw_version), "%d.%d",
vpd->fcode_major, vpd->fcode_minor);
if (np->parent->plat_type != PLAT_TYPE_NIU)
strlcpy(info->bus_info, pci_name(np->pdev),
sizeof(info->bus_info));
}
static int niu_get_link_ksettings(struct net_device *dev,
struct ethtool_link_ksettings *cmd)
{
struct niu *np = netdev_priv(dev);
struct niu_link_config *lp;
lp = &np->link_config;
memset(cmd, 0, sizeof(*cmd));
cmd->base.phy_address = np->phy_addr;
ethtool_convert_legacy_u32_to_link_mode(cmd->link_modes.supported,
lp->supported);
ethtool_convert_legacy_u32_to_link_mode(cmd->link_modes.advertising,
lp->active_advertising);
cmd->base.autoneg = lp->active_autoneg;
cmd->base.speed = lp->active_speed;
cmd->base.duplex = lp->active_duplex;
cmd->base.port = (np->flags & NIU_FLAGS_FIBER) ? PORT_FIBRE : PORT_TP;
return 0;
}
static int niu_set_link_ksettings(struct net_device *dev,
const struct ethtool_link_ksettings *cmd)
{
struct niu *np = netdev_priv(dev);
struct niu_link_config *lp = &np->link_config;
ethtool_convert_link_mode_to_legacy_u32(&lp->advertising,
cmd->link_modes.advertising);
lp->speed = cmd->base.speed;
lp->duplex = cmd->base.duplex;
lp->autoneg = cmd->base.autoneg;
return niu_init_link(np);
}
static u32 niu_get_msglevel(struct net_device *dev)
{
struct niu *np = netdev_priv(dev);
return np->msg_enable;
}
static void niu_set_msglevel(struct net_device *dev, u32 value)
{
struct niu *np = netdev_priv(dev);
np->msg_enable = value;
}
static int niu_nway_reset(struct net_device *dev)
{
struct niu *np = netdev_priv(dev);
if (np->link_config.autoneg)
return niu_init_link(np);
return 0;
}
static int niu_get_eeprom_len(struct net_device *dev)
{
struct niu *np = netdev_priv(dev);
return np->eeprom_len;
}
static int niu_get_eeprom(struct net_device *dev,
struct ethtool_eeprom *eeprom, u8 *data)
{
struct niu *np = netdev_priv(dev);
u32 offset, len, val;
offset = eeprom->offset;
len = eeprom->len;
if (offset + len < offset)
return -EINVAL;
if (offset >= np->eeprom_len)
return -EINVAL;
if (offset + len > np->eeprom_len)
len = eeprom->len = np->eeprom_len - offset;
if (offset & 3) {
u32 b_offset, b_count;
b_offset = offset & 3;
b_count = 4 - b_offset;
if (b_count > len)
b_count = len;
val = nr64(ESPC_NCR((offset - b_offset) / 4));
memcpy(data, ((char *)&val) + b_offset, b_count);
data += b_count;
len -= b_count;
offset += b_count;
}
while (len >= 4) {
val = nr64(ESPC_NCR(offset / 4));
memcpy(data, &val, 4);
data += 4;
len -= 4;
offset += 4;
}
if (len) {
val = nr64(ESPC_NCR(offset / 4));
memcpy(data, &val, len);
}
return 0;
}
static void niu_ethflow_to_l3proto(int flow_type, u8 *pid)
{
switch (flow_type) {
case TCP_V4_FLOW:
case TCP_V6_FLOW:
*pid = IPPROTO_TCP;
break;
case UDP_V4_FLOW:
case UDP_V6_FLOW:
*pid = IPPROTO_UDP;
break;
case SCTP_V4_FLOW:
case SCTP_V6_FLOW:
*pid = IPPROTO_SCTP;
break;
case AH_V4_FLOW:
case AH_V6_FLOW:
*pid = IPPROTO_AH;
break;
case ESP_V4_FLOW:
case ESP_V6_FLOW:
*pid = IPPROTO_ESP;
break;
default:
*pid = 0;
break;
}
}
static int niu_class_to_ethflow(u64 class, int *flow_type)
{
switch (class) {
case CLASS_CODE_TCP_IPV4:
*flow_type = TCP_V4_FLOW;
break;
case CLASS_CODE_UDP_IPV4:
*flow_type = UDP_V4_FLOW;
break;
case CLASS_CODE_AH_ESP_IPV4:
*flow_type = AH_V4_FLOW;
break;
case CLASS_CODE_SCTP_IPV4:
*flow_type = SCTP_V4_FLOW;
break;
case CLASS_CODE_TCP_IPV6:
*flow_type = TCP_V6_FLOW;
break;
case CLASS_CODE_UDP_IPV6:
*flow_type = UDP_V6_FLOW;
break;
case CLASS_CODE_AH_ESP_IPV6:
*flow_type = AH_V6_FLOW;
break;
case CLASS_CODE_SCTP_IPV6:
*flow_type = SCTP_V6_FLOW;
break;
case CLASS_CODE_USER_PROG1:
case CLASS_CODE_USER_PROG2:
case CLASS_CODE_USER_PROG3:
case CLASS_CODE_USER_PROG4:
*flow_type = IP_USER_FLOW;
break;
default:
return -EINVAL;
}
return 0;
}
static int niu_ethflow_to_class(int flow_type, u64 *class)
{
switch (flow_type) {
case TCP_V4_FLOW:
*class = CLASS_CODE_TCP_IPV4;
break;
case UDP_V4_FLOW:
*class = CLASS_CODE_UDP_IPV4;
break;
case AH_ESP_V4_FLOW:
case AH_V4_FLOW:
case ESP_V4_FLOW:
*class = CLASS_CODE_AH_ESP_IPV4;
break;
case SCTP_V4_FLOW:
*class = CLASS_CODE_SCTP_IPV4;
break;
case TCP_V6_FLOW:
*class = CLASS_CODE_TCP_IPV6;
break;
case UDP_V6_FLOW:
*class = CLASS_CODE_UDP_IPV6;
break;
case AH_ESP_V6_FLOW:
case AH_V6_FLOW:
case ESP_V6_FLOW:
*class = CLASS_CODE_AH_ESP_IPV6;
break;
case SCTP_V6_FLOW:
*class = CLASS_CODE_SCTP_IPV6;
break;
default:
return 0;
}
return 1;
}
static u64 niu_flowkey_to_ethflow(u64 flow_key)
{
u64 ethflow = 0;
if (flow_key & FLOW_KEY_L2DA)
ethflow |= RXH_L2DA;
if (flow_key & FLOW_KEY_VLAN)
ethflow |= RXH_VLAN;
if (flow_key & FLOW_KEY_IPSA)
ethflow |= RXH_IP_SRC;
if (flow_key & FLOW_KEY_IPDA)
ethflow |= RXH_IP_DST;
if (flow_key & FLOW_KEY_PROTO)
ethflow |= RXH_L3_PROTO;
if (flow_key & (FLOW_KEY_L4_BYTE12 << FLOW_KEY_L4_0_SHIFT))
ethflow |= RXH_L4_B_0_1;
if (flow_key & (FLOW_KEY_L4_BYTE12 << FLOW_KEY_L4_1_SHIFT))
ethflow |= RXH_L4_B_2_3;
return ethflow;
}
static int niu_ethflow_to_flowkey(u64 ethflow, u64 *flow_key)
{
u64 key = 0;
if (ethflow & RXH_L2DA)
key |= FLOW_KEY_L2DA;
if (ethflow & RXH_VLAN)
key |= FLOW_KEY_VLAN;
if (ethflow & RXH_IP_SRC)
key |= FLOW_KEY_IPSA;
if (ethflow & RXH_IP_DST)
key |= FLOW_KEY_IPDA;
if (ethflow & RXH_L3_PROTO)
key |= FLOW_KEY_PROTO;
if (ethflow & RXH_L4_B_0_1)
key |= (FLOW_KEY_L4_BYTE12 << FLOW_KEY_L4_0_SHIFT);
if (ethflow & RXH_L4_B_2_3)
key |= (FLOW_KEY_L4_BYTE12 << FLOW_KEY_L4_1_SHIFT);
*flow_key = key;
return 1;
}
static int niu_get_hash_opts(struct niu *np, struct ethtool_rxnfc *nfc)
{
u64 class;
nfc->data = 0;
if (!niu_ethflow_to_class(nfc->flow_type, &class))
return -EINVAL;
if (np->parent->tcam_key[class - CLASS_CODE_USER_PROG1] &
TCAM_KEY_DISC)
nfc->data = RXH_DISCARD;
else
nfc->data = niu_flowkey_to_ethflow(np->parent->flow_key[class -
CLASS_CODE_USER_PROG1]);
return 0;
}
static void niu_get_ip4fs_from_tcam_key(struct niu_tcam_entry *tp,
struct ethtool_rx_flow_spec *fsp)
{
u32 tmp;
u16 prt;
tmp = (tp->key[3] & TCAM_V4KEY3_SADDR) >> TCAM_V4KEY3_SADDR_SHIFT;
fsp->h_u.tcp_ip4_spec.ip4src = cpu_to_be32(tmp);
tmp = (tp->key[3] & TCAM_V4KEY3_DADDR) >> TCAM_V4KEY3_DADDR_SHIFT;
fsp->h_u.tcp_ip4_spec.ip4dst = cpu_to_be32(tmp);
tmp = (tp->key_mask[3] & TCAM_V4KEY3_SADDR) >> TCAM_V4KEY3_SADDR_SHIFT;
fsp->m_u.tcp_ip4_spec.ip4src = cpu_to_be32(tmp);
tmp = (tp->key_mask[3] & TCAM_V4KEY3_DADDR) >> TCAM_V4KEY3_DADDR_SHIFT;
fsp->m_u.tcp_ip4_spec.ip4dst = cpu_to_be32(tmp);
fsp->h_u.tcp_ip4_spec.tos = (tp->key[2] & TCAM_V4KEY2_TOS) >>
TCAM_V4KEY2_TOS_SHIFT;
fsp->m_u.tcp_ip4_spec.tos = (tp->key_mask[2] & TCAM_V4KEY2_TOS) >>
TCAM_V4KEY2_TOS_SHIFT;
switch (fsp->flow_type) {
case TCP_V4_FLOW:
case UDP_V4_FLOW:
case SCTP_V4_FLOW:
prt = ((tp->key[2] & TCAM_V4KEY2_PORT_SPI) >>
TCAM_V4KEY2_PORT_SPI_SHIFT) >> 16;
fsp->h_u.tcp_ip4_spec.psrc = cpu_to_be16(prt);
prt = ((tp->key[2] & TCAM_V4KEY2_PORT_SPI) >>
TCAM_V4KEY2_PORT_SPI_SHIFT) & 0xffff;
fsp->h_u.tcp_ip4_spec.pdst = cpu_to_be16(prt);
prt = ((tp->key_mask[2] & TCAM_V4KEY2_PORT_SPI) >>
TCAM_V4KEY2_PORT_SPI_SHIFT) >> 16;
fsp->m_u.tcp_ip4_spec.psrc = cpu_to_be16(prt);
prt = ((tp->key_mask[2] & TCAM_V4KEY2_PORT_SPI) >>
TCAM_V4KEY2_PORT_SPI_SHIFT) & 0xffff;
fsp->m_u.tcp_ip4_spec.pdst = cpu_to_be16(prt);
break;
case AH_V4_FLOW:
case ESP_V4_FLOW:
tmp = (tp->key[2] & TCAM_V4KEY2_PORT_SPI) >>
TCAM_V4KEY2_PORT_SPI_SHIFT;
fsp->h_u.ah_ip4_spec.spi = cpu_to_be32(tmp);
tmp = (tp->key_mask[2] & TCAM_V4KEY2_PORT_SPI) >>
TCAM_V4KEY2_PORT_SPI_SHIFT;
fsp->m_u.ah_ip4_spec.spi = cpu_to_be32(tmp);
break;
case IP_USER_FLOW:
tmp = (tp->key[2] & TCAM_V4KEY2_PORT_SPI) >>
TCAM_V4KEY2_PORT_SPI_SHIFT;
fsp->h_u.usr_ip4_spec.l4_4_bytes = cpu_to_be32(tmp);
tmp = (tp->key_mask[2] & TCAM_V4KEY2_PORT_SPI) >>
TCAM_V4KEY2_PORT_SPI_SHIFT;
fsp->m_u.usr_ip4_spec.l4_4_bytes = cpu_to_be32(tmp);
fsp->h_u.usr_ip4_spec.proto =
(tp->key[2] & TCAM_V4KEY2_PROTO) >>
TCAM_V4KEY2_PROTO_SHIFT;
fsp->m_u.usr_ip4_spec.proto =
(tp->key_mask[2] & TCAM_V4KEY2_PROTO) >>
TCAM_V4KEY2_PROTO_SHIFT;
fsp->h_u.usr_ip4_spec.ip_ver = ETH_RX_NFC_IP4;
break;
default:
break;
}
}
static int niu_get_ethtool_tcam_entry(struct niu *np,
struct ethtool_rxnfc *nfc)
{
struct niu_parent *parent = np->parent;
struct niu_tcam_entry *tp;
struct ethtool_rx_flow_spec *fsp = &nfc->fs;
u16 idx;
u64 class;
int ret = 0;
idx = tcam_get_index(np, (u16)nfc->fs.location);
tp = &parent->tcam[idx];
if (!tp->valid) {
netdev_info(np->dev, "niu%d: entry [%d] invalid for idx[%d]\n",
parent->index, (u16)nfc->fs.location, idx);
return -EINVAL;
}
/* fill the flow spec entry */
class = (tp->key[0] & TCAM_V4KEY0_CLASS_CODE) >>
TCAM_V4KEY0_CLASS_CODE_SHIFT;
ret = niu_class_to_ethflow(class, &fsp->flow_type);
if (ret < 0) {
netdev_info(np->dev, "niu%d: niu_class_to_ethflow failed\n",
parent->index);
goto out;
}
if (fsp->flow_type == AH_V4_FLOW || fsp->flow_type == AH_V6_FLOW) {
u32 proto = (tp->key[2] & TCAM_V4KEY2_PROTO) >>
TCAM_V4KEY2_PROTO_SHIFT;
if (proto == IPPROTO_ESP) {
if (fsp->flow_type == AH_V4_FLOW)
fsp->flow_type = ESP_V4_FLOW;
else
fsp->flow_type = ESP_V6_FLOW;
}
}
switch (fsp->flow_type) {
case TCP_V4_FLOW:
case UDP_V4_FLOW:
case SCTP_V4_FLOW:
case AH_V4_FLOW:
case ESP_V4_FLOW:
niu_get_ip4fs_from_tcam_key(tp, fsp);
break;
case TCP_V6_FLOW:
case UDP_V6_FLOW:
case SCTP_V6_FLOW:
case AH_V6_FLOW:
case ESP_V6_FLOW:
/* Not yet implemented */
ret = -EINVAL;
break;
case IP_USER_FLOW:
niu_get_ip4fs_from_tcam_key(tp, fsp);
break;
default:
ret = -EINVAL;
break;
}
if (ret < 0)
goto out;
if (tp->assoc_data & TCAM_ASSOCDATA_DISC)
fsp->ring_cookie = RX_CLS_FLOW_DISC;
else
fsp->ring_cookie = (tp->assoc_data & TCAM_ASSOCDATA_OFFSET) >>
TCAM_ASSOCDATA_OFFSET_SHIFT;
/* put the tcam size here */
nfc->data = tcam_get_size(np);
out:
return ret;
}
static int niu_get_ethtool_tcam_all(struct niu *np,
struct ethtool_rxnfc *nfc,
u32 *rule_locs)
{
struct niu_parent *parent = np->parent;
struct niu_tcam_entry *tp;
int i, idx, cnt;
unsigned long flags;
int ret = 0;
/* put the tcam size here */
nfc->data = tcam_get_size(np);
niu_lock_parent(np, flags);
for (cnt = 0, i = 0; i < nfc->data; i++) {
idx = tcam_get_index(np, i);
tp = &parent->tcam[idx];
if (!tp->valid)
continue;
if (cnt == nfc->rule_cnt) {
ret = -EMSGSIZE;
break;
}
rule_locs[cnt] = i;
cnt++;
}
niu_unlock_parent(np, flags);
nfc->rule_cnt = cnt;
return ret;
}
static int niu_get_nfc(struct net_device *dev, struct ethtool_rxnfc *cmd,
u32 *rule_locs)
{
struct niu *np = netdev_priv(dev);
int ret = 0;
switch (cmd->cmd) {
case ETHTOOL_GRXFH:
ret = niu_get_hash_opts(np, cmd);
break;
case ETHTOOL_GRXRINGS:
cmd->data = np->num_rx_rings;
break;
case ETHTOOL_GRXCLSRLCNT:
cmd->rule_cnt = tcam_get_valid_entry_cnt(np);
break;
case ETHTOOL_GRXCLSRULE:
ret = niu_get_ethtool_tcam_entry(np, cmd);
break;
case ETHTOOL_GRXCLSRLALL:
ret = niu_get_ethtool_tcam_all(np, cmd, rule_locs);
break;
default:
ret = -EINVAL;
break;
}
return ret;
}
static int niu_set_hash_opts(struct niu *np, struct ethtool_rxnfc *nfc)
{
u64 class;
u64 flow_key = 0;
unsigned long flags;
if (!niu_ethflow_to_class(nfc->flow_type, &class))
return -EINVAL;
if (class < CLASS_CODE_USER_PROG1 ||
class > CLASS_CODE_SCTP_IPV6)
return -EINVAL;
if (nfc->data & RXH_DISCARD) {
niu_lock_parent(np, flags);
flow_key = np->parent->tcam_key[class -
CLASS_CODE_USER_PROG1];
flow_key |= TCAM_KEY_DISC;
nw64(TCAM_KEY(class - CLASS_CODE_USER_PROG1), flow_key);
np->parent->tcam_key[class - CLASS_CODE_USER_PROG1] = flow_key;
niu_unlock_parent(np, flags);
return 0;
} else {
/* Discard was set before, but is not set now */
if (np->parent->tcam_key[class - CLASS_CODE_USER_PROG1] &
TCAM_KEY_DISC) {
niu_lock_parent(np, flags);
flow_key = np->parent->tcam_key[class -
CLASS_CODE_USER_PROG1];
flow_key &= ~TCAM_KEY_DISC;
nw64(TCAM_KEY(class - CLASS_CODE_USER_PROG1),
flow_key);
np->parent->tcam_key[class - CLASS_CODE_USER_PROG1] =
flow_key;
niu_unlock_parent(np, flags);
}
}
if (!niu_ethflow_to_flowkey(nfc->data, &flow_key))
return -EINVAL;
niu_lock_parent(np, flags);
nw64(FLOW_KEY(class - CLASS_CODE_USER_PROG1), flow_key);
np->parent->flow_key[class - CLASS_CODE_USER_PROG1] = flow_key;
niu_unlock_parent(np, flags);
return 0;
}
static void niu_get_tcamkey_from_ip4fs(struct ethtool_rx_flow_spec *fsp,
struct niu_tcam_entry *tp,
int l2_rdc_tab, u64 class)
{
u8 pid = 0;
u32 sip, dip, sipm, dipm, spi, spim;
u16 sport, dport, spm, dpm;
sip = be32_to_cpu(fsp->h_u.tcp_ip4_spec.ip4src);
sipm = be32_to_cpu(fsp->m_u.tcp_ip4_spec.ip4src);
dip = be32_to_cpu(fsp->h_u.tcp_ip4_spec.ip4dst);
dipm = be32_to_cpu(fsp->m_u.tcp_ip4_spec.ip4dst);
tp->key[0] = class << TCAM_V4KEY0_CLASS_CODE_SHIFT;
tp->key_mask[0] = TCAM_V4KEY0_CLASS_CODE;
tp->key[1] = (u64)l2_rdc_tab << TCAM_V4KEY1_L2RDCNUM_SHIFT;
tp->key_mask[1] = TCAM_V4KEY1_L2RDCNUM;
tp->key[3] = (u64)sip << TCAM_V4KEY3_SADDR_SHIFT;
tp->key[3] |= dip;
tp->key_mask[3] = (u64)sipm << TCAM_V4KEY3_SADDR_SHIFT;
tp->key_mask[3] |= dipm;
tp->key[2] |= ((u64)fsp->h_u.tcp_ip4_spec.tos <<
TCAM_V4KEY2_TOS_SHIFT);
tp->key_mask[2] |= ((u64)fsp->m_u.tcp_ip4_spec.tos <<
TCAM_V4KEY2_TOS_SHIFT);
switch (fsp->flow_type) {
case TCP_V4_FLOW:
case UDP_V4_FLOW:
case SCTP_V4_FLOW:
sport = be16_to_cpu(fsp->h_u.tcp_ip4_spec.psrc);
spm = be16_to_cpu(fsp->m_u.tcp_ip4_spec.psrc);
dport = be16_to_cpu(fsp->h_u.tcp_ip4_spec.pdst);
dpm = be16_to_cpu(fsp->m_u.tcp_ip4_spec.pdst);
tp->key[2] |= (((u64)sport << 16) | dport);
tp->key_mask[2] |= (((u64)spm << 16) | dpm);
niu_ethflow_to_l3proto(fsp->flow_type, &pid);
break;
case AH_V4_FLOW:
case ESP_V4_FLOW:
spi = be32_to_cpu(fsp->h_u.ah_ip4_spec.spi);
spim = be32_to_cpu(fsp->m_u.ah_ip4_spec.spi);
tp->key[2] |= spi;
tp->key_mask[2] |= spim;
niu_ethflow_to_l3proto(fsp->flow_type, &pid);
break;
case IP_USER_FLOW:
spi = be32_to_cpu(fsp->h_u.usr_ip4_spec.l4_4_bytes);
spim = be32_to_cpu(fsp->m_u.usr_ip4_spec.l4_4_bytes);
tp->key[2] |= spi;
tp->key_mask[2] |= spim;
pid = fsp->h_u.usr_ip4_spec.proto;
break;
default:
break;
}
tp->key[2] |= ((u64)pid << TCAM_V4KEY2_PROTO_SHIFT);
if (pid) {
tp->key_mask[2] |= TCAM_V4KEY2_PROTO;
}
}
static int niu_add_ethtool_tcam_entry(struct niu *np,
struct ethtool_rxnfc *nfc)
{
struct niu_parent *parent = np->parent;
struct niu_tcam_entry *tp;
struct ethtool_rx_flow_spec *fsp = &nfc->fs;
struct niu_rdc_tables *rdc_table = &parent->rdc_group_cfg[np->port];
int l2_rdc_table = rdc_table->first_table_num;
u16 idx;
u64 class;
unsigned long flags;
int err, ret;
ret = 0;
idx = nfc->fs.location;
if (idx >= tcam_get_size(np))
return -EINVAL;
if (fsp->flow_type == IP_USER_FLOW) {
int i;
int add_usr_cls = 0;
struct ethtool_usrip4_spec *uspec = &fsp->h_u.usr_ip4_spec;
struct ethtool_usrip4_spec *umask = &fsp->m_u.usr_ip4_spec;
if (uspec->ip_ver != ETH_RX_NFC_IP4)
return -EINVAL;
niu_lock_parent(np, flags);
for (i = 0; i < NIU_L3_PROG_CLS; i++) {
if (parent->l3_cls[i]) {
if (uspec->proto == parent->l3_cls_pid[i]) {
class = parent->l3_cls[i];
parent->l3_cls_refcnt[i]++;
add_usr_cls = 1;
break;
}
} else {
/* Program new user IP class */
switch (i) {
case 0:
class = CLASS_CODE_USER_PROG1;
break;
case 1:
class = CLASS_CODE_USER_PROG2;
break;
case 2:
class = CLASS_CODE_USER_PROG3;
break;
case 3:
class = CLASS_CODE_USER_PROG4;
break;
default:
class = CLASS_CODE_UNRECOG;
break;
}
ret = tcam_user_ip_class_set(np, class, 0,
uspec->proto,
uspec->tos,
umask->tos);
if (ret)
goto out;
ret = tcam_user_ip_class_enable(np, class, 1);
if (ret)
goto out;
parent->l3_cls[i] = class;
parent->l3_cls_pid[i] = uspec->proto;
parent->l3_cls_refcnt[i]++;
add_usr_cls = 1;
break;
}
}
if (!add_usr_cls) {
netdev_info(np->dev, "niu%d: %s(): Could not find/insert class for pid %d\n",
parent->index, __func__, uspec->proto);
ret = -EINVAL;
goto out;
}
niu_unlock_parent(np, flags);
} else {
if (!niu_ethflow_to_class(fsp->flow_type, &class)) {
return -EINVAL;
}
}
niu_lock_parent(np, flags);
idx = tcam_get_index(np, idx);
tp = &parent->tcam[idx];
memset(tp, 0, sizeof(*tp));
/* fill in the tcam key and mask */
switch (fsp->flow_type) {
case TCP_V4_FLOW:
case UDP_V4_FLOW:
case SCTP_V4_FLOW:
case AH_V4_FLOW:
case ESP_V4_FLOW:
niu_get_tcamkey_from_ip4fs(fsp, tp, l2_rdc_table, class);
break;
case TCP_V6_FLOW:
case UDP_V6_FLOW:
case SCTP_V6_FLOW:
case AH_V6_FLOW:
case ESP_V6_FLOW:
/* Not yet implemented */
netdev_info(np->dev, "niu%d: In %s(): flow %d for IPv6 not implemented\n",
parent->index, __func__, fsp->flow_type);
ret = -EINVAL;
goto out;
case IP_USER_FLOW:
niu_get_tcamkey_from_ip4fs(fsp, tp, l2_rdc_table, class);
break;
default:
netdev_info(np->dev, "niu%d: In %s(): Unknown flow type %d\n",
parent->index, __func__, fsp->flow_type);
ret = -EINVAL;
goto out;
}
/* fill in the assoc data */
if (fsp->ring_cookie == RX_CLS_FLOW_DISC) {
tp->assoc_data = TCAM_ASSOCDATA_DISC;
} else {
if (fsp->ring_cookie >= np->num_rx_rings) {
netdev_info(np->dev, "niu%d: In %s(): Invalid RX ring %lld\n",
parent->index, __func__,
(long long)fsp->ring_cookie);
ret = -EINVAL;
goto out;
}
tp->assoc_data = (TCAM_ASSOCDATA_TRES_USE_OFFSET |
(fsp->ring_cookie <<
TCAM_ASSOCDATA_OFFSET_SHIFT));
}
err = tcam_write(np, idx, tp->key, tp->key_mask);
if (err) {
ret = -EINVAL;
goto out;
}
err = tcam_assoc_write(np, idx, tp->assoc_data);
if (err) {
ret = -EINVAL;
goto out;
}
/* validate the entry */
tp->valid = 1;
np->clas.tcam_valid_entries++;
out:
niu_unlock_parent(np, flags);
return ret;
}
static int niu_del_ethtool_tcam_entry(struct niu *np, u32 loc)
{
struct niu_parent *parent = np->parent;
struct niu_tcam_entry *tp;
u16 idx;
unsigned long flags;
u64 class;
int ret = 0;
if (loc >= tcam_get_size(np))
return -EINVAL;
niu_lock_parent(np, flags);
idx = tcam_get_index(np, loc);
tp = &parent->tcam[idx];
/* if the entry is of a user defined class, then update*/
class = (tp->key[0] & TCAM_V4KEY0_CLASS_CODE) >>
TCAM_V4KEY0_CLASS_CODE_SHIFT;
if (class >= CLASS_CODE_USER_PROG1 && class <= CLASS_CODE_USER_PROG4) {
int i;
for (i = 0; i < NIU_L3_PROG_CLS; i++) {
if (parent->l3_cls[i] == class) {
parent->l3_cls_refcnt[i]--;
if (!parent->l3_cls_refcnt[i]) {
/* disable class */
ret = tcam_user_ip_class_enable(np,
class,
0);
if (ret)
goto out;
parent->l3_cls[i] = 0;
parent->l3_cls_pid[i] = 0;
}
break;
}
}
if (i == NIU_L3_PROG_CLS) {
netdev_info(np->dev, "niu%d: In %s(): Usr class 0x%llx not found\n",
parent->index, __func__,
(unsigned long long)class);
ret = -EINVAL;
goto out;
}
}
ret = tcam_flush(np, idx);
if (ret)
goto out;
/* invalidate the entry */
tp->valid = 0;
np->clas.tcam_valid_entries--;
out:
niu_unlock_parent(np, flags);
return ret;
}
static int niu_set_nfc(struct net_device *dev, struct ethtool_rxnfc *cmd)
{
struct niu *np = netdev_priv(dev);
int ret = 0;
switch (cmd->cmd) {
case ETHTOOL_SRXFH:
ret = niu_set_hash_opts(np, cmd);
break;
case ETHTOOL_SRXCLSRLINS:
ret = niu_add_ethtool_tcam_entry(np, cmd);
break;
case ETHTOOL_SRXCLSRLDEL:
ret = niu_del_ethtool_tcam_entry(np, cmd->fs.location);
break;
default:
ret = -EINVAL;
break;
}
return ret;
}
static const struct {
const char string[ETH_GSTRING_LEN];
} niu_xmac_stat_keys[] = {
{ "tx_frames" },
{ "tx_bytes" },
{ "tx_fifo_errors" },
{ "tx_overflow_errors" },
{ "tx_max_pkt_size_errors" },
{ "tx_underflow_errors" },
{ "rx_local_faults" },
{ "rx_remote_faults" },
{ "rx_link_faults" },
{ "rx_align_errors" },
{ "rx_frags" },
{ "rx_mcasts" },
{ "rx_bcasts" },
{ "rx_hist_cnt1" },
{ "rx_hist_cnt2" },
{ "rx_hist_cnt3" },
{ "rx_hist_cnt4" },
{ "rx_hist_cnt5" },
{ "rx_hist_cnt6" },
{ "rx_hist_cnt7" },
{ "rx_octets" },
{ "rx_code_violations" },
{ "rx_len_errors" },
{ "rx_crc_errors" },
{ "rx_underflows" },
{ "rx_overflows" },
{ "pause_off_state" },
{ "pause_on_state" },
{ "pause_received" },
};
#define NUM_XMAC_STAT_KEYS ARRAY_SIZE(niu_xmac_stat_keys)
static const struct {
const char string[ETH_GSTRING_LEN];
} niu_bmac_stat_keys[] = {
{ "tx_underflow_errors" },
{ "tx_max_pkt_size_errors" },
{ "tx_bytes" },
{ "tx_frames" },
{ "rx_overflows" },
{ "rx_frames" },
{ "rx_align_errors" },
{ "rx_crc_errors" },
{ "rx_len_errors" },
{ "pause_off_state" },
{ "pause_on_state" },
{ "pause_received" },
};
#define NUM_BMAC_STAT_KEYS ARRAY_SIZE(niu_bmac_stat_keys)
static const struct {
const char string[ETH_GSTRING_LEN];
} niu_rxchan_stat_keys[] = {
{ "rx_channel" },
{ "rx_packets" },
{ "rx_bytes" },
{ "rx_dropped" },
{ "rx_errors" },
};
#define NUM_RXCHAN_STAT_KEYS ARRAY_SIZE(niu_rxchan_stat_keys)
static const struct {
const char string[ETH_GSTRING_LEN];
} niu_txchan_stat_keys[] = {
{ "tx_channel" },
{ "tx_packets" },
{ "tx_bytes" },
{ "tx_errors" },
};
#define NUM_TXCHAN_STAT_KEYS ARRAY_SIZE(niu_txchan_stat_keys)
static void niu_get_strings(struct net_device *dev, u32 stringset, u8 *data)
{
struct niu *np = netdev_priv(dev);
int i;
if (stringset != ETH_SS_STATS)
return;
if (np->flags & NIU_FLAGS_XMAC) {
memcpy(data, niu_xmac_stat_keys,
sizeof(niu_xmac_stat_keys));
data += sizeof(niu_xmac_stat_keys);
} else {
memcpy(data, niu_bmac_stat_keys,
sizeof(niu_bmac_stat_keys));
data += sizeof(niu_bmac_stat_keys);
}
for (i = 0; i < np->num_rx_rings; i++) {
memcpy(data, niu_rxchan_stat_keys,
sizeof(niu_rxchan_stat_keys));
data += sizeof(niu_rxchan_stat_keys);
}
for (i = 0; i < np->num_tx_rings; i++) {
memcpy(data, niu_txchan_stat_keys,
sizeof(niu_txchan_stat_keys));
data += sizeof(niu_txchan_stat_keys);
}
}
static int niu_get_sset_count(struct net_device *dev, int stringset)
{
struct niu *np = netdev_priv(dev);
if (stringset != ETH_SS_STATS)
return -EINVAL;
return (np->flags & NIU_FLAGS_XMAC ?
NUM_XMAC_STAT_KEYS :
NUM_BMAC_STAT_KEYS) +
(np->num_rx_rings * NUM_RXCHAN_STAT_KEYS) +
(np->num_tx_rings * NUM_TXCHAN_STAT_KEYS);
}
static void niu_get_ethtool_stats(struct net_device *dev,
struct ethtool_stats *stats, u64 *data)
{
struct niu *np = netdev_priv(dev);
int i;
niu_sync_mac_stats(np);
if (np->flags & NIU_FLAGS_XMAC) {
memcpy(data, &np->mac_stats.xmac,
sizeof(struct niu_xmac_stats));
data += (sizeof(struct niu_xmac_stats) / sizeof(u64));
} else {
memcpy(data, &np->mac_stats.bmac,
sizeof(struct niu_bmac_stats));
data += (sizeof(struct niu_bmac_stats) / sizeof(u64));
}
for (i = 0; i < np->num_rx_rings; i++) {
struct rx_ring_info *rp = &np->rx_rings[i];
niu_sync_rx_discard_stats(np, rp, 0);
data[0] = rp->rx_channel;
data[1] = rp->rx_packets;
data[2] = rp->rx_bytes;
data[3] = rp->rx_dropped;
data[4] = rp->rx_errors;
data += 5;
}
for (i = 0; i < np->num_tx_rings; i++) {
struct tx_ring_info *rp = &np->tx_rings[i];
data[0] = rp->tx_channel;
data[1] = rp->tx_packets;
data[2] = rp->tx_bytes;
data[3] = rp->tx_errors;
data += 4;
}
}
static u64 niu_led_state_save(struct niu *np)
{
if (np->flags & NIU_FLAGS_XMAC)
return nr64_mac(XMAC_CONFIG);
else
return nr64_mac(BMAC_XIF_CONFIG);
}
static void niu_led_state_restore(struct niu *np, u64 val)
{
if (np->flags & NIU_FLAGS_XMAC)
nw64_mac(XMAC_CONFIG, val);
else
nw64_mac(BMAC_XIF_CONFIG, val);
}
static void niu_force_led(struct niu *np, int on)
{
u64 val, reg, bit;
if (np->flags & NIU_FLAGS_XMAC) {
reg = XMAC_CONFIG;
bit = XMAC_CONFIG_FORCE_LED_ON;
} else {
reg = BMAC_XIF_CONFIG;
bit = BMAC_XIF_CONFIG_LINK_LED;
}
val = nr64_mac(reg);
if (on)
val |= bit;
else
val &= ~bit;
nw64_mac(reg, val);
}
static int niu_set_phys_id(struct net_device *dev,
enum ethtool_phys_id_state state)
{
struct niu *np = netdev_priv(dev);
if (!netif_running(dev))
return -EAGAIN;
switch (state) {
case ETHTOOL_ID_ACTIVE:
np->orig_led_state = niu_led_state_save(np);
return 1; /* cycle on/off once per second */
case ETHTOOL_ID_ON:
niu_force_led(np, 1);
break;
case ETHTOOL_ID_OFF:
niu_force_led(np, 0);
break;
case ETHTOOL_ID_INACTIVE:
niu_led_state_restore(np, np->orig_led_state);
}
return 0;
}
static const struct ethtool_ops niu_ethtool_ops = {
.get_drvinfo = niu_get_drvinfo,
.get_link = ethtool_op_get_link,
.get_msglevel = niu_get_msglevel,
.set_msglevel = niu_set_msglevel,
.nway_reset = niu_nway_reset,
.get_eeprom_len = niu_get_eeprom_len,
.get_eeprom = niu_get_eeprom,
.get_strings = niu_get_strings,
.get_sset_count = niu_get_sset_count,
.get_ethtool_stats = niu_get_ethtool_stats,
.set_phys_id = niu_set_phys_id,
.get_rxnfc = niu_get_nfc,
.set_rxnfc = niu_set_nfc,
.get_link_ksettings = niu_get_link_ksettings,
.set_link_ksettings = niu_set_link_ksettings,
};
static int niu_ldg_assign_ldn(struct niu *np, struct niu_parent *parent,
int ldg, int ldn)
{
if (ldg < NIU_LDG_MIN || ldg > NIU_LDG_MAX)
return -EINVAL;
if (ldn < 0 || ldn > LDN_MAX)
return -EINVAL;
parent->ldg_map[ldn] = ldg;
if (np->parent->plat_type == PLAT_TYPE_NIU) {
/* On N2 NIU, the ldn-->ldg assignments are setup and fixed by
* the firmware, and we're not supposed to change them.
* Validate the mapping, because if it's wrong we probably
* won't get any interrupts and that's painful to debug.
*/
if (nr64(LDG_NUM(ldn)) != ldg) {
dev_err(np->device, "Port %u, mis-matched LDG assignment for ldn %d, should be %d is %llu\n",
np->port, ldn, ldg,
(unsigned long long) nr64(LDG_NUM(ldn)));
return -EINVAL;
}
} else
nw64(LDG_NUM(ldn), ldg);
return 0;
}
static int niu_set_ldg_timer_res(struct niu *np, int res)
{
if (res < 0 || res > LDG_TIMER_RES_VAL)
return -EINVAL;
nw64(LDG_TIMER_RES, res);
return 0;
}
static int niu_set_ldg_sid(struct niu *np, int ldg, int func, int vector)
{
if ((ldg < NIU_LDG_MIN || ldg > NIU_LDG_MAX) ||
(func < 0 || func > 3) ||
(vector < 0 || vector > 0x1f))
return -EINVAL;
nw64(SID(ldg), (func << SID_FUNC_SHIFT) | vector);
return 0;
}
static int niu_pci_eeprom_read(struct niu *np, u32 addr)
{
u64 frame, frame_base = (ESPC_PIO_STAT_READ_START |
(addr << ESPC_PIO_STAT_ADDR_SHIFT));
int limit;
if (addr > (ESPC_PIO_STAT_ADDR >> ESPC_PIO_STAT_ADDR_SHIFT))
return -EINVAL;
frame = frame_base;
nw64(ESPC_PIO_STAT, frame);
limit = 64;
do {
udelay(5);
frame = nr64(ESPC_PIO_STAT);
if (frame & ESPC_PIO_STAT_READ_END)
break;
} while (limit--);
if (!(frame & ESPC_PIO_STAT_READ_END)) {
dev_err(np->device, "EEPROM read timeout frame[%llx]\n",
(unsigned long long) frame);
return -ENODEV;
}
frame = frame_base;
nw64(ESPC_PIO_STAT, frame);
limit = 64;
do {
udelay(5);
frame = nr64(ESPC_PIO_STAT);
if (frame & ESPC_PIO_STAT_READ_END)
break;
} while (limit--);
if (!(frame & ESPC_PIO_STAT_READ_END)) {
dev_err(np->device, "EEPROM read timeout frame[%llx]\n",
(unsigned long long) frame);
return -ENODEV;
}
frame = nr64(ESPC_PIO_STAT);
return (frame & ESPC_PIO_STAT_DATA) >> ESPC_PIO_STAT_DATA_SHIFT;
}
static int niu_pci_eeprom_read16(struct niu *np, u32 off)
{
int err = niu_pci_eeprom_read(np, off);
u16 val;
if (err < 0)
return err;
val = (err << 8);
err = niu_pci_eeprom_read(np, off + 1);
if (err < 0)
return err;
val |= (err & 0xff);
return val;
}
static int niu_pci_eeprom_read16_swp(struct niu *np, u32 off)
{
int err = niu_pci_eeprom_read(np, off);
u16 val;
if (err < 0)
return err;
val = (err & 0xff);
err = niu_pci_eeprom_read(np, off + 1);
if (err < 0)
return err;
val |= (err & 0xff) << 8;
return val;
}
static int niu_pci_vpd_get_propname(struct niu *np, u32 off, char *namebuf,
int namebuf_len)
{
int i;
for (i = 0; i < namebuf_len; i++) {
int err = niu_pci_eeprom_read(np, off + i);
if (err < 0)
return err;
*namebuf++ = err;
if (!err)
break;
}
if (i >= namebuf_len)
return -EINVAL;
return i + 1;
}
static void niu_vpd_parse_version(struct niu *np)
{
struct niu_vpd *vpd = &np->vpd;
int len = strlen(vpd->version) + 1;
const char *s = vpd->version;
int i;
for (i = 0; i < len - 5; i++) {
if (!strncmp(s + i, "FCode ", 6))
break;
}
if (i >= len - 5)
return;
s += i + 5;
sscanf(s, "%d.%d", &vpd->fcode_major, &vpd->fcode_minor);
netif_printk(np, probe, KERN_DEBUG, np->dev,
"VPD_SCAN: FCODE major(%d) minor(%d)\n",
vpd->fcode_major, vpd->fcode_minor);
if (vpd->fcode_major > NIU_VPD_MIN_MAJOR ||
(vpd->fcode_major == NIU_VPD_MIN_MAJOR &&
vpd->fcode_minor >= NIU_VPD_MIN_MINOR))
np->flags |= NIU_FLAGS_VPD_VALID;
}
/* ESPC_PIO_EN_ENABLE must be set */
static int niu_pci_vpd_scan_props(struct niu *np, u32 start, u32 end)
{
unsigned int found_mask = 0;
#define FOUND_MASK_MODEL 0x00000001
#define FOUND_MASK_BMODEL 0x00000002
#define FOUND_MASK_VERS 0x00000004
#define FOUND_MASK_MAC 0x00000008
#define FOUND_MASK_NMAC 0x00000010
#define FOUND_MASK_PHY 0x00000020
#define FOUND_MASK_ALL 0x0000003f
netif_printk(np, probe, KERN_DEBUG, np->dev,
"VPD_SCAN: start[%x] end[%x]\n", start, end);
while (start < end) {
int len, err, prop_len;
char namebuf[64];
u8 *prop_buf;
int max_len;
if (found_mask == FOUND_MASK_ALL) {
niu_vpd_parse_version(np);
return 1;
}
err = niu_pci_eeprom_read(np, start + 2);
if (err < 0)
return err;
len = err;
start += 3;
prop_len = niu_pci_eeprom_read(np, start + 4);
if (prop_len < 0)
return prop_len;
err = niu_pci_vpd_get_propname(np, start + 5, namebuf, 64);
if (err < 0)
return err;
prop_buf = NULL;
max_len = 0;
if (!strcmp(namebuf, "model")) {
prop_buf = np->vpd.model;
max_len = NIU_VPD_MODEL_MAX;
found_mask |= FOUND_MASK_MODEL;
} else if (!strcmp(namebuf, "board-model")) {
prop_buf = np->vpd.board_model;
max_len = NIU_VPD_BD_MODEL_MAX;
found_mask |= FOUND_MASK_BMODEL;
} else if (!strcmp(namebuf, "version")) {
prop_buf = np->vpd.version;
max_len = NIU_VPD_VERSION_MAX;
found_mask |= FOUND_MASK_VERS;
} else if (!strcmp(namebuf, "local-mac-address")) {
prop_buf = np->vpd.local_mac;
max_len = ETH_ALEN;
found_mask |= FOUND_MASK_MAC;
} else if (!strcmp(namebuf, "num-mac-addresses")) {
prop_buf = &np->vpd.mac_num;
max_len = 1;
found_mask |= FOUND_MASK_NMAC;
} else if (!strcmp(namebuf, "phy-type")) {
prop_buf = np->vpd.phy_type;
max_len = NIU_VPD_PHY_TYPE_MAX;
found_mask |= FOUND_MASK_PHY;
}
if (max_len && prop_len > max_len) {
dev_err(np->device, "Property '%s' length (%d) is too long\n", namebuf, prop_len);
return -EINVAL;
}
if (prop_buf) {
u32 off = start + 5 + err;
int i;
netif_printk(np, probe, KERN_DEBUG, np->dev,
"VPD_SCAN: Reading in property [%s] len[%d]\n",
namebuf, prop_len);
for (i = 0; i < prop_len; i++) {
err = niu_pci_eeprom_read(np, off + i);
if (err >= 0)
*prop_buf = err;
++prop_buf;
}
}
start += len;
}
return 0;
}
/* ESPC_PIO_EN_ENABLE must be set */
static void niu_pci_vpd_fetch(struct niu *np, u32 start)
{
u32 offset;
int err;
err = niu_pci_eeprom_read16_swp(np, start + 1);
if (err < 0)
return;
offset = err + 3;
while (start + offset < ESPC_EEPROM_SIZE) {
u32 here = start + offset;
u32 end;
err = niu_pci_eeprom_read(np, here);
if (err != 0x90)
return;
err = niu_pci_eeprom_read16_swp(np, here + 1);
if (err < 0)
return;
here = start + offset + 3;
end = start + offset + err;
offset += err;
err = niu_pci_vpd_scan_props(np, here, end);
if (err < 0 || err == 1)
return;
}
}
/* ESPC_PIO_EN_ENABLE must be set */
static u32 niu_pci_vpd_offset(struct niu *np)
{
u32 start = 0, end = ESPC_EEPROM_SIZE, ret;
int err;
while (start < end) {
ret = start;
/* ROM header signature? */
err = niu_pci_eeprom_read16(np, start + 0);
if (err != 0x55aa)
return 0;
/* Apply offset to PCI data structure. */
err = niu_pci_eeprom_read16(np, start + 23);
if (err < 0)
return 0;
start += err;
/* Check for "PCIR" signature. */
err = niu_pci_eeprom_read16(np, start + 0);
if (err != 0x5043)
return 0;
err = niu_pci_eeprom_read16(np, start + 2);
if (err != 0x4952)
return 0;
/* Check for OBP image type. */
err = niu_pci_eeprom_read(np, start + 20);
if (err < 0)
return 0;
if (err != 0x01) {
err = niu_pci_eeprom_read(np, ret + 2);
if (err < 0)
return 0;
start = ret + (err * 512);
continue;
}
err = niu_pci_eeprom_read16_swp(np, start + 8);
if (err < 0)
return err;
ret += err;
err = niu_pci_eeprom_read(np, ret + 0);
if (err != 0x82)
return 0;
return ret;
}
return 0;
}
static int niu_phy_type_prop_decode(struct niu *np, const char *phy_prop)
{
if (!strcmp(phy_prop, "mif")) {
/* 1G copper, MII */
np->flags &= ~(NIU_FLAGS_FIBER |
NIU_FLAGS_10G);
np->mac_xcvr = MAC_XCVR_MII;
} else if (!strcmp(phy_prop, "xgf")) {
/* 10G fiber, XPCS */
np->flags |= (NIU_FLAGS_10G |
NIU_FLAGS_FIBER);
np->mac_xcvr = MAC_XCVR_XPCS;
} else if (!strcmp(phy_prop, "pcs")) {
/* 1G fiber, PCS */
np->flags &= ~NIU_FLAGS_10G;
np->flags |= NIU_FLAGS_FIBER;
np->mac_xcvr = MAC_XCVR_PCS;
} else if (!strcmp(phy_prop, "xgc")) {
/* 10G copper, XPCS */
np->flags |= NIU_FLAGS_10G;
np->flags &= ~NIU_FLAGS_FIBER;
np->mac_xcvr = MAC_XCVR_XPCS;
} else if (!strcmp(phy_prop, "xgsd") || !strcmp(phy_prop, "gsd")) {
/* 10G Serdes or 1G Serdes, default to 10G */
np->flags |= NIU_FLAGS_10G;
np->flags &= ~NIU_FLAGS_FIBER;
np->flags |= NIU_FLAGS_XCVR_SERDES;
np->mac_xcvr = MAC_XCVR_XPCS;
} else {
return -EINVAL;
}
return 0;
}
static int niu_pci_vpd_get_nports(struct niu *np)
{
int ports = 0;
if ((!strcmp(np->vpd.model, NIU_QGC_LP_MDL_STR)) ||
(!strcmp(np->vpd.model, NIU_QGC_PEM_MDL_STR)) ||
(!strcmp(np->vpd.model, NIU_MARAMBA_MDL_STR)) ||
(!strcmp(np->vpd.model, NIU_KIMI_MDL_STR)) ||
(!strcmp(np->vpd.model, NIU_ALONSO_MDL_STR))) {
ports = 4;
} else if ((!strcmp(np->vpd.model, NIU_2XGF_LP_MDL_STR)) ||
(!strcmp(np->vpd.model, NIU_2XGF_PEM_MDL_STR)) ||
(!strcmp(np->vpd.model, NIU_FOXXY_MDL_STR)) ||
(!strcmp(np->vpd.model, NIU_2XGF_MRVL_MDL_STR))) {
ports = 2;
}
return ports;
}
static void niu_pci_vpd_validate(struct niu *np)
{
struct net_device *dev = np->dev;
struct niu_vpd *vpd = &np->vpd;
u8 val8;
if (!is_valid_ether_addr(&vpd->local_mac[0])) {
dev_err(np->device, "VPD MAC invalid, falling back to SPROM\n");
np->flags &= ~NIU_FLAGS_VPD_VALID;
return;
}
if (!strcmp(np->vpd.model, NIU_ALONSO_MDL_STR) ||
!strcmp(np->vpd.model, NIU_KIMI_MDL_STR)) {
np->flags |= NIU_FLAGS_10G;
np->flags &= ~NIU_FLAGS_FIBER;
np->flags |= NIU_FLAGS_XCVR_SERDES;
np->mac_xcvr = MAC_XCVR_PCS;
if (np->port > 1) {
np->flags |= NIU_FLAGS_FIBER;
np->flags &= ~NIU_FLAGS_10G;
}
if (np->flags & NIU_FLAGS_10G)
np->mac_xcvr = MAC_XCVR_XPCS;
} else if (!strcmp(np->vpd.model, NIU_FOXXY_MDL_STR)) {
np->flags |= (NIU_FLAGS_10G | NIU_FLAGS_FIBER |
NIU_FLAGS_HOTPLUG_PHY);
} else if (niu_phy_type_prop_decode(np, np->vpd.phy_type)) {
dev_err(np->device, "Illegal phy string [%s]\n",
np->vpd.phy_type);
dev_err(np->device, "Falling back to SPROM\n");
np->flags &= ~NIU_FLAGS_VPD_VALID;
return;
}
memcpy(dev->dev_addr, vpd->local_mac, ETH_ALEN);
val8 = dev->dev_addr[5];
dev->dev_addr[5] += np->port;
if (dev->dev_addr[5] < val8)
dev->dev_addr[4]++;
}
static int niu_pci_probe_sprom(struct niu *np)
{
struct net_device *dev = np->dev;
int len, i;
u64 val, sum;
u8 val8;
val = (nr64(ESPC_VER_IMGSZ) & ESPC_VER_IMGSZ_IMGSZ);
val >>= ESPC_VER_IMGSZ_IMGSZ_SHIFT;
len = val / 4;
np->eeprom_len = len;
netif_printk(np, probe, KERN_DEBUG, np->dev,
"SPROM: Image size %llu\n", (unsigned long long)val);
sum = 0;
for (i = 0; i < len; i++) {
val = nr64(ESPC_NCR(i));
sum += (val >> 0) & 0xff;
sum += (val >> 8) & 0xff;
sum += (val >> 16) & 0xff;
sum += (val >> 24) & 0xff;
}
netif_printk(np, probe, KERN_DEBUG, np->dev,
"SPROM: Checksum %x\n", (int)(sum & 0xff));
if ((sum & 0xff) != 0xab) {
dev_err(np->device, "Bad SPROM checksum (%x, should be 0xab)\n", (int)(sum & 0xff));
return -EINVAL;
}
val = nr64(ESPC_PHY_TYPE);
switch (np->port) {
case 0:
val8 = (val & ESPC_PHY_TYPE_PORT0) >>
ESPC_PHY_TYPE_PORT0_SHIFT;
break;
case 1:
val8 = (val & ESPC_PHY_TYPE_PORT1) >>
ESPC_PHY_TYPE_PORT1_SHIFT;
break;
case 2:
val8 = (val & ESPC_PHY_TYPE_PORT2) >>
ESPC_PHY_TYPE_PORT2_SHIFT;
break;
case 3:
val8 = (val & ESPC_PHY_TYPE_PORT3) >>
ESPC_PHY_TYPE_PORT3_SHIFT;
break;
default:
dev_err(np->device, "Bogus port number %u\n",
np->port);
return -EINVAL;
}
netif_printk(np, probe, KERN_DEBUG, np->dev,
"SPROM: PHY type %x\n", val8);
switch (val8) {
case ESPC_PHY_TYPE_1G_COPPER:
/* 1G copper, MII */
np->flags &= ~(NIU_FLAGS_FIBER |
NIU_FLAGS_10G);
np->mac_xcvr = MAC_XCVR_MII;
break;
case ESPC_PHY_TYPE_1G_FIBER:
/* 1G fiber, PCS */
np->flags &= ~NIU_FLAGS_10G;
np->flags |= NIU_FLAGS_FIBER;
np->mac_xcvr = MAC_XCVR_PCS;
break;
case ESPC_PHY_TYPE_10G_COPPER:
/* 10G copper, XPCS */
np->flags |= NIU_FLAGS_10G;
np->flags &= ~NIU_FLAGS_FIBER;
np->mac_xcvr = MAC_XCVR_XPCS;
break;
case ESPC_PHY_TYPE_10G_FIBER:
/* 10G fiber, XPCS */
np->flags |= (NIU_FLAGS_10G |
NIU_FLAGS_FIBER);
np->mac_xcvr = MAC_XCVR_XPCS;
break;
default:
dev_err(np->device, "Bogus SPROM phy type %u\n", val8);
return -EINVAL;
}
val = nr64(ESPC_MAC_ADDR0);
netif_printk(np, probe, KERN_DEBUG, np->dev,
"SPROM: MAC_ADDR0[%08llx]\n", (unsigned long long)val);
dev->dev_addr[0] = (val >> 0) & 0xff;
dev->dev_addr[1] = (val >> 8) & 0xff;
dev->dev_addr[2] = (val >> 16) & 0xff;
dev->dev_addr[3] = (val >> 24) & 0xff;
val = nr64(ESPC_MAC_ADDR1);
netif_printk(np, probe, KERN_DEBUG, np->dev,
"SPROM: MAC_ADDR1[%08llx]\n", (unsigned long long)val);
dev->dev_addr[4] = (val >> 0) & 0xff;
dev->dev_addr[5] = (val >> 8) & 0xff;
if (!is_valid_ether_addr(&dev->dev_addr[0])) {
dev_err(np->device, "SPROM MAC address invalid [ %pM ]\n",
dev->dev_addr);
return -EINVAL;
}
val8 = dev->dev_addr[5];
dev->dev_addr[5] += np->port;
if (dev->dev_addr[5] < val8)
dev->dev_addr[4]++;
val = nr64(ESPC_MOD_STR_LEN);
netif_printk(np, probe, KERN_DEBUG, np->dev,
"SPROM: MOD_STR_LEN[%llu]\n", (unsigned long long)val);
if (val >= 8 * 4)
return -EINVAL;
for (i = 0; i < val; i += 4) {
u64 tmp = nr64(ESPC_NCR(5 + (i / 4)));
np->vpd.model[i + 3] = (tmp >> 0) & 0xff;
np->vpd.model[i + 2] = (tmp >> 8) & 0xff;
np->vpd.model[i + 1] = (tmp >> 16) & 0xff;
np->vpd.model[i + 0] = (tmp >> 24) & 0xff;
}
np->vpd.model[val] = '\0';
val = nr64(ESPC_BD_MOD_STR_LEN);
netif_printk(np, probe, KERN_DEBUG, np->dev,
"SPROM: BD_MOD_STR_LEN[%llu]\n", (unsigned long long)val);
if (val >= 4 * 4)
return -EINVAL;
for (i = 0; i < val; i += 4) {
u64 tmp = nr64(ESPC_NCR(14 + (i / 4)));
np->vpd.board_model[i + 3] = (tmp >> 0) & 0xff;
np->vpd.board_model[i + 2] = (tmp >> 8) & 0xff;
np->vpd.board_model[i + 1] = (tmp >> 16) & 0xff;
np->vpd.board_model[i + 0] = (tmp >> 24) & 0xff;
}
np->vpd.board_model[val] = '\0';
np->vpd.mac_num =
nr64(ESPC_NUM_PORTS_MACS) & ESPC_NUM_PORTS_MACS_VAL;
netif_printk(np, probe, KERN_DEBUG, np->dev,
"SPROM: NUM_PORTS_MACS[%d]\n", np->vpd.mac_num);
return 0;
}
static int niu_get_and_validate_port(struct niu *np)
{
struct niu_parent *parent = np->parent;
if (np->port <= 1)
np->flags |= NIU_FLAGS_XMAC;
if (!parent->num_ports) {
if (parent->plat_type == PLAT_TYPE_NIU) {
parent->num_ports = 2;
} else {
parent->num_ports = niu_pci_vpd_get_nports(np);
if (!parent->num_ports) {
/* Fall back to SPROM as last resort.
* This will fail on most cards.
*/
parent->num_ports = nr64(ESPC_NUM_PORTS_MACS) &
ESPC_NUM_PORTS_MACS_VAL;
/* All of the current probing methods fail on
* Maramba on-board parts.
*/
if (!parent->num_ports)
parent->num_ports = 4;
}
}
}
if (np->port >= parent->num_ports)
return -ENODEV;
return 0;
}
static int phy_record(struct niu_parent *parent, struct phy_probe_info *p,
int dev_id_1, int dev_id_2, u8 phy_port, int type)
{
u32 id = (dev_id_1 << 16) | dev_id_2;
u8 idx;
if (dev_id_1 < 0 || dev_id_2 < 0)
return 0;
if (type == PHY_TYPE_PMA_PMD || type == PHY_TYPE_PCS) {
/* Because of the NIU_PHY_ID_MASK being applied, the 8704
* test covers the 8706 as well.
*/
if (((id & NIU_PHY_ID_MASK) != NIU_PHY_ID_BCM8704) &&
((id & NIU_PHY_ID_MASK) != NIU_PHY_ID_MRVL88X2011))
return 0;
} else {
if ((id & NIU_PHY_ID_MASK) != NIU_PHY_ID_BCM5464R)
return 0;
}
pr_info("niu%d: Found PHY %08x type %s at phy_port %u\n",
parent->index, id,
type == PHY_TYPE_PMA_PMD ? "PMA/PMD" :
type == PHY_TYPE_PCS ? "PCS" : "MII",
phy_port);
if (p->cur[type] >= NIU_MAX_PORTS) {
pr_err("Too many PHY ports\n");
return -EINVAL;
}
idx = p->cur[type];
p->phy_id[type][idx] = id;
p->phy_port[type][idx] = phy_port;
p->cur[type] = idx + 1;
return 0;
}
static int port_has_10g(struct phy_probe_info *p, int port)
{
int i;
for (i = 0; i < p->cur[PHY_TYPE_PMA_PMD]; i++) {
if (p->phy_port[PHY_TYPE_PMA_PMD][i] == port)
return 1;
}
for (i = 0; i < p->cur[PHY_TYPE_PCS]; i++) {
if (p->phy_port[PHY_TYPE_PCS][i] == port)
return 1;
}
return 0;
}
static int count_10g_ports(struct phy_probe_info *p, int *lowest)
{
int port, cnt;
cnt = 0;
*lowest = 32;
for (port = 8; port < 32; port++) {
if (port_has_10g(p, port)) {
if (!cnt)
*lowest = port;
cnt++;
}
}
return cnt;
}
static int count_1g_ports(struct phy_probe_info *p, int *lowest)
{
*lowest = 32;
if (p->cur[PHY_TYPE_MII])
*lowest = p->phy_port[PHY_TYPE_MII][0];
return p->cur[PHY_TYPE_MII];
}
static void niu_n2_divide_channels(struct niu_parent *parent)
{
int num_ports = parent->num_ports;
int i;
for (i = 0; i < num_ports; i++) {
parent->rxchan_per_port[i] = (16 / num_ports);
parent->txchan_per_port[i] = (16 / num_ports);
pr_info("niu%d: Port %u [%u RX chans] [%u TX chans]\n",
parent->index, i,
parent->rxchan_per_port[i],
parent->txchan_per_port[i]);
}
}
static void niu_divide_channels(struct niu_parent *parent,
int num_10g, int num_1g)
{
int num_ports = parent->num_ports;
int rx_chans_per_10g, rx_chans_per_1g;
int tx_chans_per_10g, tx_chans_per_1g;
int i, tot_rx, tot_tx;
if (!num_10g || !num_1g) {
rx_chans_per_10g = rx_chans_per_1g =
(NIU_NUM_RXCHAN / num_ports);
tx_chans_per_10g = tx_chans_per_1g =
(NIU_NUM_TXCHAN / num_ports);
} else {
rx_chans_per_1g = NIU_NUM_RXCHAN / 8;
rx_chans_per_10g = (NIU_NUM_RXCHAN -
(rx_chans_per_1g * num_1g)) /
num_10g;
tx_chans_per_1g = NIU_NUM_TXCHAN / 6;
tx_chans_per_10g = (NIU_NUM_TXCHAN -
(tx_chans_per_1g * num_1g)) /
num_10g;
}
tot_rx = tot_tx = 0;
for (i = 0; i < num_ports; i++) {
int type = phy_decode(parent->port_phy, i);
if (type == PORT_TYPE_10G) {
parent->rxchan_per_port[i] = rx_chans_per_10g;
parent->txchan_per_port[i] = tx_chans_per_10g;
} else {
parent->rxchan_per_port[i] = rx_chans_per_1g;
parent->txchan_per_port[i] = tx_chans_per_1g;
}
pr_info("niu%d: Port %u [%u RX chans] [%u TX chans]\n",
parent->index, i,
parent->rxchan_per_port[i],
parent->txchan_per_port[i]);
tot_rx += parent->rxchan_per_port[i];
tot_tx += parent->txchan_per_port[i];
}
if (tot_rx > NIU_NUM_RXCHAN) {
pr_err("niu%d: Too many RX channels (%d), resetting to one per port\n",
parent->index, tot_rx);
for (i = 0; i < num_ports; i++)
parent->rxchan_per_port[i] = 1;
}
if (tot_tx > NIU_NUM_TXCHAN) {
pr_err("niu%d: Too many TX channels (%d), resetting to one per port\n",
parent->index, tot_tx);
for (i = 0; i < num_ports; i++)
parent->txchan_per_port[i] = 1;
}
if (tot_rx < NIU_NUM_RXCHAN || tot_tx < NIU_NUM_TXCHAN) {
pr_warn("niu%d: Driver bug, wasted channels, RX[%d] TX[%d]\n",
parent->index, tot_rx, tot_tx);
}
}
static void niu_divide_rdc_groups(struct niu_parent *parent,
int num_10g, int num_1g)
{
int i, num_ports = parent->num_ports;
int rdc_group, rdc_groups_per_port;
int rdc_channel_base;
rdc_group = 0;
rdc_groups_per_port = NIU_NUM_RDC_TABLES / num_ports;
rdc_channel_base = 0;
for (i = 0; i < num_ports; i++) {
struct niu_rdc_tables *tp = &parent->rdc_group_cfg[i];
int grp, num_channels = parent->rxchan_per_port[i];
int this_channel_offset;
tp->first_table_num = rdc_group;
tp->num_tables = rdc_groups_per_port;
this_channel_offset = 0;
for (grp = 0; grp < tp->num_tables; grp++) {
struct rdc_table *rt = &tp->tables[grp];
int slot;
pr_info("niu%d: Port %d RDC tbl(%d) [ ",
parent->index, i, tp->first_table_num + grp);
for (slot = 0; slot < NIU_RDC_TABLE_SLOTS; slot++) {
rt->rxdma_channel[slot] =
rdc_channel_base + this_channel_offset;
pr_cont("%d ", rt->rxdma_channel[slot]);
if (++this_channel_offset == num_channels)
this_channel_offset = 0;
}
pr_cont("]\n");
}
parent->rdc_default[i] = rdc_channel_base;
rdc_channel_base += num_channels;
rdc_group += rdc_groups_per_port;
}
}
static int fill_phy_probe_info(struct niu *np, struct niu_parent *parent,
struct phy_probe_info *info)
{
unsigned long flags;
int port, err;
memset(info, 0, sizeof(*info));
/* Port 0 to 7 are reserved for onboard Serdes, probe the rest. */
niu_lock_parent(np, flags);
err = 0;
for (port = 8; port < 32; port++) {
int dev_id_1, dev_id_2;
dev_id_1 = mdio_read(np, port,
NIU_PMA_PMD_DEV_ADDR, MII_PHYSID1);
dev_id_2 = mdio_read(np, port,
NIU_PMA_PMD_DEV_ADDR, MII_PHYSID2);
err = phy_record(parent, info, dev_id_1, dev_id_2, port,
PHY_TYPE_PMA_PMD);
if (err)
break;
dev_id_1 = mdio_read(np, port,
NIU_PCS_DEV_ADDR, MII_PHYSID1);
dev_id_2 = mdio_read(np, port,
NIU_PCS_DEV_ADDR, MII_PHYSID2);
err = phy_record(parent, info, dev_id_1, dev_id_2, port,
PHY_TYPE_PCS);
if (err)
break;
dev_id_1 = mii_read(np, port, MII_PHYSID1);
dev_id_2 = mii_read(np, port, MII_PHYSID2);
err = phy_record(parent, info, dev_id_1, dev_id_2, port,
PHY_TYPE_MII);
if (err)
break;
}
niu_unlock_parent(np, flags);
return err;
}
static int walk_phys(struct niu *np, struct niu_parent *parent)
{
struct phy_probe_info *info = &parent->phy_probe_info;
int lowest_10g, lowest_1g;
int num_10g, num_1g;
u32 val;
int err;
num_10g = num_1g = 0;
if (!strcmp(np->vpd.model, NIU_ALONSO_MDL_STR) ||
!strcmp(np->vpd.model, NIU_KIMI_MDL_STR)) {
num_10g = 0;
num_1g = 2;
parent->plat_type = PLAT_TYPE_ATCA_CP3220;
parent->num_ports = 4;
val = (phy_encode(PORT_TYPE_1G, 0) |
phy_encode(PORT_TYPE_1G, 1) |
phy_encode(PORT_TYPE_1G, 2) |
phy_encode(PORT_TYPE_1G, 3));
} else if (!strcmp(np->vpd.model, NIU_FOXXY_MDL_STR)) {
num_10g = 2;
num_1g = 0;
parent->num_ports = 2;
val = (phy_encode(PORT_TYPE_10G, 0) |
phy_encode(PORT_TYPE_10G, 1));
} else if ((np->flags & NIU_FLAGS_XCVR_SERDES) &&
(parent->plat_type == PLAT_TYPE_NIU)) {
/* this is the Monza case */
if (np->flags & NIU_FLAGS_10G) {
val = (phy_encode(PORT_TYPE_10G, 0) |
phy_encode(PORT_TYPE_10G, 1));
} else {
val = (phy_encode(PORT_TYPE_1G, 0) |
phy_encode(PORT_TYPE_1G, 1));
}
} else {
err = fill_phy_probe_info(np, parent, info);
if (err)
return err;
num_10g = count_10g_ports(info, &lowest_10g);
num_1g = count_1g_ports(info, &lowest_1g);
switch ((num_10g << 4) | num_1g) {
case 0x24:
if (lowest_1g == 10)
parent->plat_type = PLAT_TYPE_VF_P0;
else if (lowest_1g == 26)
parent->plat_type = PLAT_TYPE_VF_P1;
else
goto unknown_vg_1g_port;
/* fallthru */
case 0x22:
val = (phy_encode(PORT_TYPE_10G, 0) |
phy_encode(PORT_TYPE_10G, 1) |
phy_encode(PORT_TYPE_1G, 2) |
phy_encode(PORT_TYPE_1G, 3));
break;
case 0x20:
val = (phy_encode(PORT_TYPE_10G, 0) |
phy_encode(PORT_TYPE_10G, 1));
break;
case 0x10:
val = phy_encode(PORT_TYPE_10G, np->port);
break;
case 0x14:
if (lowest_1g == 10)
parent->plat_type = PLAT_TYPE_VF_P0;
else if (lowest_1g == 26)
parent->plat_type = PLAT_TYPE_VF_P1;
else
goto unknown_vg_1g_port;
/* fallthru */
case 0x13:
if ((lowest_10g & 0x7) == 0)
val = (phy_encode(PORT_TYPE_10G, 0) |
phy_encode(PORT_TYPE_1G, 1) |
phy_encode(PORT_TYPE_1G, 2) |
phy_encode(PORT_TYPE_1G, 3));
else
val = (phy_encode(PORT_TYPE_1G, 0) |
phy_encode(PORT_TYPE_10G, 1) |
phy_encode(PORT_TYPE_1G, 2) |
phy_encode(PORT_TYPE_1G, 3));
break;
case 0x04:
if (lowest_1g == 10)
parent->plat_type = PLAT_TYPE_VF_P0;
else if (lowest_1g == 26)
parent->plat_type = PLAT_TYPE_VF_P1;
else
goto unknown_vg_1g_port;
val = (phy_encode(PORT_TYPE_1G, 0) |
phy_encode(PORT_TYPE_1G, 1) |
phy_encode(PORT_TYPE_1G, 2) |
phy_encode(PORT_TYPE_1G, 3));
break;
default:
pr_err("Unsupported port config 10G[%d] 1G[%d]\n",
num_10g, num_1g);
return -EINVAL;
}
}
parent->port_phy = val;
if (parent->plat_type == PLAT_TYPE_NIU)
niu_n2_divide_channels(parent);
else
niu_divide_channels(parent, num_10g, num_1g);
niu_divide_rdc_groups(parent, num_10g, num_1g);
return 0;
unknown_vg_1g_port:
pr_err("Cannot identify platform type, 1gport=%d\n", lowest_1g);
return -EINVAL;
}
static int niu_probe_ports(struct niu *np)
{
struct niu_parent *parent = np->parent;
int err, i;
if (parent->port_phy == PORT_PHY_UNKNOWN) {
err = walk_phys(np, parent);
if (err)
return err;
niu_set_ldg_timer_res(np, 2);
for (i = 0; i <= LDN_MAX; i++)
niu_ldn_irq_enable(np, i, 0);
}
if (parent->port_phy == PORT_PHY_INVALID)
return -EINVAL;
return 0;
}
static int niu_classifier_swstate_init(struct niu *np)
{
struct niu_classifier *cp = &np->clas;
cp->tcam_top = (u16) np->port;
cp->tcam_sz = np->parent->tcam_num_entries / np->parent->num_ports;
cp->h1_init = 0xffffffff;
cp->h2_init = 0xffff;
return fflp_early_init(np);
}
static void niu_link_config_init(struct niu *np)
{
struct niu_link_config *lp = &np->link_config;
lp->advertising = (ADVERTISED_10baseT_Half |
ADVERTISED_10baseT_Full |
ADVERTISED_100baseT_Half |
ADVERTISED_100baseT_Full |
ADVERTISED_1000baseT_Half |
ADVERTISED_1000baseT_Full |
ADVERTISED_10000baseT_Full |
ADVERTISED_Autoneg);
lp->speed = lp->active_speed = SPEED_INVALID;
lp->duplex = DUPLEX_FULL;
lp->active_duplex = DUPLEX_INVALID;
lp->autoneg = 1;
#if 0
lp->loopback_mode = LOOPBACK_MAC;
lp->active_speed = SPEED_10000;
lp->active_duplex = DUPLEX_FULL;
#else
lp->loopback_mode = LOOPBACK_DISABLED;
#endif
}
static int niu_init_mac_ipp_pcs_base(struct niu *np)
{
switch (np->port) {
case 0:
np->mac_regs = np->regs + XMAC_PORT0_OFF;
np->ipp_off = 0x00000;
np->pcs_off = 0x04000;
np->xpcs_off = 0x02000;
break;
case 1:
np->mac_regs = np->regs + XMAC_PORT1_OFF;
np->ipp_off = 0x08000;
np->pcs_off = 0x0a000;
np->xpcs_off = 0x08000;
break;
case 2:
np->mac_regs = np->regs + BMAC_PORT2_OFF;
np->ipp_off = 0x04000;
np->pcs_off = 0x0e000;
np->xpcs_off = ~0UL;
break;
case 3:
np->mac_regs = np->regs + BMAC_PORT3_OFF;
np->ipp_off = 0x0c000;
np->pcs_off = 0x12000;
np->xpcs_off = ~0UL;
break;
default:
dev_err(np->device, "Port %u is invalid, cannot compute MAC block offset\n", np->port);
return -EINVAL;
}
return 0;
}
static void niu_try_msix(struct niu *np, u8 *ldg_num_map)
{
struct msix_entry msi_vec[NIU_NUM_LDG];
struct niu_parent *parent = np->parent;
struct pci_dev *pdev = np->pdev;
int i, num_irqs;
u8 first_ldg;
first_ldg = (NIU_NUM_LDG / parent->num_ports) * np->port;
for (i = 0; i < (NIU_NUM_LDG / parent->num_ports); i++)
ldg_num_map[i] = first_ldg + i;
num_irqs = (parent->rxchan_per_port[np->port] +
parent->txchan_per_port[np->port] +
(np->port == 0 ? 3 : 1));
BUG_ON(num_irqs > (NIU_NUM_LDG / parent->num_ports));
for (i = 0; i < num_irqs; i++) {
msi_vec[i].vector = 0;
msi_vec[i].entry = i;
}
num_irqs = pci_enable_msix_range(pdev, msi_vec, 1, num_irqs);
if (num_irqs < 0) {
np->flags &= ~NIU_FLAGS_MSIX;
return;
}
np->flags |= NIU_FLAGS_MSIX;
for (i = 0; i < num_irqs; i++)
np->ldg[i].irq = msi_vec[i].vector;
np->num_ldg = num_irqs;
}
static int niu_n2_irq_init(struct niu *np, u8 *ldg_num_map)
{
#ifdef CONFIG_SPARC64
struct platform_device *op = np->op;
const u32 *int_prop;
int i;
int_prop = of_get_property(op->dev.of_node, "interrupts", NULL);
if (!int_prop)
return -ENODEV;
for (i = 0; i < op->archdata.num_irqs; i++) {
ldg_num_map[i] = int_prop[i];
np->ldg[i].irq = op->archdata.irqs[i];
}
np->num_ldg = op->archdata.num_irqs;
return 0;
#else
return -EINVAL;
#endif
}
static int niu_ldg_init(struct niu *np)
{
struct niu_parent *parent = np->parent;
u8 ldg_num_map[NIU_NUM_LDG];
int first_chan, num_chan;
int i, err, ldg_rotor;
u8 port;
np->num_ldg = 1;
np->ldg[0].irq = np->dev->irq;
if (parent->plat_type == PLAT_TYPE_NIU) {
err = niu_n2_irq_init(np, ldg_num_map);
if (err)
return err;
} else
niu_try_msix(np, ldg_num_map);
port = np->port;
for (i = 0; i < np->num_ldg; i++) {
struct niu_ldg *lp = &np->ldg[i];
netif_napi_add(np->dev, &lp->napi, niu_poll, 64);
lp->np = np;
lp->ldg_num = ldg_num_map[i];
lp->timer = 2; /* XXX */
/* On N2 NIU the firmware has setup the SID mappings so they go
* to the correct values that will route the LDG to the proper
* interrupt in the NCU interrupt table.
*/
if (np->parent->plat_type != PLAT_TYPE_NIU) {
err = niu_set_ldg_sid(np, lp->ldg_num, port, i);
if (err)
return err;
}
}
/* We adopt the LDG assignment ordering used by the N2 NIU
* 'interrupt' properties because that simplifies a lot of
* things. This ordering is:
*
* MAC
* MIF (if port zero)
* SYSERR (if port zero)
* RX channels
* TX channels
*/
ldg_rotor = 0;
err = niu_ldg_assign_ldn(np, parent, ldg_num_map[ldg_rotor],
LDN_MAC(port));
if (err)
return err;
ldg_rotor++;
if (ldg_rotor == np->num_ldg)
ldg_rotor = 0;
if (port == 0) {
err = niu_ldg_assign_ldn(np, parent,
ldg_num_map[ldg_rotor],
LDN_MIF);
if (err)
return err;
ldg_rotor++;
if (ldg_rotor == np->num_ldg)
ldg_rotor = 0;
err = niu_ldg_assign_ldn(np, parent,
ldg_num_map[ldg_rotor],
LDN_DEVICE_ERROR);
if (err)
return err;
ldg_rotor++;
if (ldg_rotor == np->num_ldg)
ldg_rotor = 0;
}
first_chan = 0;
for (i = 0; i < port; i++)
first_chan += parent->rxchan_per_port[i];
num_chan = parent->rxchan_per_port[port];
for (i = first_chan; i < (first_chan + num_chan); i++) {
err = niu_ldg_assign_ldn(np, parent,
ldg_num_map[ldg_rotor],
LDN_RXDMA(i));
if (err)
return err;
ldg_rotor++;
if (ldg_rotor == np->num_ldg)
ldg_rotor = 0;
}
first_chan = 0;
for (i = 0; i < port; i++)
first_chan += parent->txchan_per_port[i];
num_chan = parent->txchan_per_port[port];
for (i = first_chan; i < (first_chan + num_chan); i++) {
err = niu_ldg_assign_ldn(np, parent,
ldg_num_map[ldg_rotor],
LDN_TXDMA(i));
if (err)
return err;
ldg_rotor++;
if (ldg_rotor == np->num_ldg)
ldg_rotor = 0;
}
return 0;
}
static void niu_ldg_free(struct niu *np)
{
if (np->flags & NIU_FLAGS_MSIX)
pci_disable_msix(np->pdev);
}
static int niu_get_of_props(struct niu *np)
{
#ifdef CONFIG_SPARC64
struct net_device *dev = np->dev;
struct device_node *dp;
const char *phy_type;
const u8 *mac_addr;
const char *model;
int prop_len;
if (np->parent->plat_type == PLAT_TYPE_NIU)
dp = np->op->dev.of_node;
else
dp = pci_device_to_OF_node(np->pdev);
phy_type = of_get_property(dp, "phy-type", &prop_len);
if (!phy_type) {
netdev_err(dev, "%pOF: OF node lacks phy-type property\n", dp);
return -EINVAL;
}
if (!strcmp(phy_type, "none"))
return -ENODEV;
strcpy(np->vpd.phy_type, phy_type);
if (niu_phy_type_prop_decode(np, np->vpd.phy_type)) {
netdev_err(dev, "%pOF: Illegal phy string [%s]\n",
dp, np->vpd.phy_type);
return -EINVAL;
}
mac_addr = of_get_property(dp, "local-mac-address", &prop_len);
if (!mac_addr) {
netdev_err(dev, "%pOF: OF node lacks local-mac-address property\n",
dp);
return -EINVAL;
}
if (prop_len != dev->addr_len) {
netdev_err(dev, "%pOF: OF MAC address prop len (%d) is wrong\n",
dp, prop_len);
}
memcpy(dev->dev_addr, mac_addr, dev->addr_len);
if (!is_valid_ether_addr(&dev->dev_addr[0])) {
netdev_err(dev, "%pOF: OF MAC address is invalid\n", dp);
netdev_err(dev, "%pOF: [ %pM ]\n", dp, dev->dev_addr);
return -EINVAL;
}
model = of_get_property(dp, "model", &prop_len);
if (model)
strcpy(np->vpd.model, model);
if (of_find_property(dp, "hot-swappable-phy", &prop_len)) {
np->flags |= (NIU_FLAGS_10G | NIU_FLAGS_FIBER |
NIU_FLAGS_HOTPLUG_PHY);
}
return 0;
#else
return -EINVAL;
#endif
}
static int niu_get_invariants(struct niu *np)
{
int err, have_props;
u32 offset;
err = niu_get_of_props(np);
if (err == -ENODEV)
return err;
have_props = !err;
err = niu_init_mac_ipp_pcs_base(np);
if (err)
return err;
if (have_props) {
err = niu_get_and_validate_port(np);
if (err)
return err;
} else {
if (np->parent->plat_type == PLAT_TYPE_NIU)
return -EINVAL;
nw64(ESPC_PIO_EN, ESPC_PIO_EN_ENABLE);
offset = niu_pci_vpd_offset(np);
netif_printk(np, probe, KERN_DEBUG, np->dev,
"%s() VPD offset [%08x]\n", __func__, offset);
if (offset)
niu_pci_vpd_fetch(np, offset);
nw64(ESPC_PIO_EN, 0);
if (np->flags & NIU_FLAGS_VPD_VALID) {
niu_pci_vpd_validate(np);
err = niu_get_and_validate_port(np);
if (err)
return err;
}
if (!(np->flags & NIU_FLAGS_VPD_VALID)) {
err = niu_get_and_validate_port(np);
if (err)
return err;
err = niu_pci_probe_sprom(np);
if (err)
return err;
}
}
err = niu_probe_ports(np);
if (err)
return err;
niu_ldg_init(np);
niu_classifier_swstate_init(np);
niu_link_config_init(np);
err = niu_determine_phy_disposition(np);
if (!err)
err = niu_init_link(np);
return err;
}
static LIST_HEAD(niu_parent_list);
static DEFINE_MUTEX(niu_parent_lock);
static int niu_parent_index;
static ssize_t show_port_phy(struct device *dev,
struct device_attribute *attr, char *buf)
{
struct platform_device *plat_dev = to_platform_device(dev);
struct niu_parent *p = dev_get_platdata(&plat_dev->dev);
u32 port_phy = p->port_phy;
char *orig_buf = buf;
int i;
if (port_phy == PORT_PHY_UNKNOWN ||
port_phy == PORT_PHY_INVALID)
return 0;
for (i = 0; i < p->num_ports; i++) {
const char *type_str;
int type;
type = phy_decode(port_phy, i);
if (type == PORT_TYPE_10G)
type_str = "10G";
else
type_str = "1G";
buf += sprintf(buf,
(i == 0) ? "%s" : " %s",
type_str);
}
buf += sprintf(buf, "\n");
return buf - orig_buf;
}
static ssize_t show_plat_type(struct device *dev,
struct device_attribute *attr, char *buf)
{
struct platform_device *plat_dev = to_platform_device(dev);
struct niu_parent *p = dev_get_platdata(&plat_dev->dev);
const char *type_str;
switch (p->plat_type) {
case PLAT_TYPE_ATLAS:
type_str = "atlas";
break;
case PLAT_TYPE_NIU:
type_str = "niu";
break;
case PLAT_TYPE_VF_P0:
type_str = "vf_p0";
break;
case PLAT_TYPE_VF_P1:
type_str = "vf_p1";
break;
default:
type_str = "unknown";
break;
}
return sprintf(buf, "%s\n", type_str);
}
static ssize_t __show_chan_per_port(struct device *dev,
struct device_attribute *attr, char *buf,
int rx)
{
struct platform_device *plat_dev = to_platform_device(dev);
struct niu_parent *p = dev_get_platdata(&plat_dev->dev);
char *orig_buf = buf;
u8 *arr;
int i;
arr = (rx ? p->rxchan_per_port : p->txchan_per_port);
for (i = 0; i < p->num_ports; i++) {
buf += sprintf(buf,
(i == 0) ? "%d" : " %d",
arr[i]);
}
buf += sprintf(buf, "\n");
return buf - orig_buf;
}
static ssize_t show_rxchan_per_port(struct device *dev,
struct device_attribute *attr, char *buf)
{
return __show_chan_per_port(dev, attr, buf, 1);
}
static ssize_t show_txchan_per_port(struct device *dev,
struct device_attribute *attr, char *buf)
{
return __show_chan_per_port(dev, attr, buf, 1);
}
static ssize_t show_num_ports(struct device *dev,
struct device_attribute *attr, char *buf)
{
struct platform_device *plat_dev = to_platform_device(dev);
struct niu_parent *p = dev_get_platdata(&plat_dev->dev);
return sprintf(buf, "%d\n", p->num_ports);
}
static struct device_attribute niu_parent_attributes[] = {
__ATTR(port_phy, 0444, show_port_phy, NULL),
__ATTR(plat_type, 0444, show_plat_type, NULL),
__ATTR(rxchan_per_port, 0444, show_rxchan_per_port, NULL),
__ATTR(txchan_per_port, 0444, show_txchan_per_port, NULL),
__ATTR(num_ports, 0444, show_num_ports, NULL),
{}
};
static struct niu_parent *niu_new_parent(struct niu *np,
union niu_parent_id *id, u8 ptype)
{
struct platform_device *plat_dev;
struct niu_parent *p;
int i;
plat_dev = platform_device_register_simple("niu-board", niu_parent_index,
NULL, 0);
if (IS_ERR(plat_dev))
return NULL;
for (i = 0; niu_parent_attributes[i].attr.name; i++) {
int err = device_create_file(&plat_dev->dev,
&niu_parent_attributes[i]);
if (err)
goto fail_unregister;
}
p = kzalloc(sizeof(*p), GFP_KERNEL);
if (!p)
goto fail_unregister;
p->index = niu_parent_index++;
plat_dev->dev.platform_data = p;
p->plat_dev = plat_dev;
memcpy(&p->id, id, sizeof(*id));
p->plat_type = ptype;
INIT_LIST_HEAD(&p->list);
atomic_set(&p->refcnt, 0);
list_add(&p->list, &niu_parent_list);
spin_lock_init(&p->lock);
p->rxdma_clock_divider = 7500;
p->tcam_num_entries = NIU_PCI_TCAM_ENTRIES;
if (p->plat_type == PLAT_TYPE_NIU)
p->tcam_num_entries = NIU_NONPCI_TCAM_ENTRIES;
for (i = CLASS_CODE_USER_PROG1; i <= CLASS_CODE_SCTP_IPV6; i++) {
int index = i - CLASS_CODE_USER_PROG1;
p->tcam_key[index] = TCAM_KEY_TSEL;
p->flow_key[index] = (FLOW_KEY_IPSA |
FLOW_KEY_IPDA |
FLOW_KEY_PROTO |
(FLOW_KEY_L4_BYTE12 <<
FLOW_KEY_L4_0_SHIFT) |
(FLOW_KEY_L4_BYTE12 <<
FLOW_KEY_L4_1_SHIFT));
}
for (i = 0; i < LDN_MAX + 1; i++)
p->ldg_map[i] = LDG_INVALID;
return p;
fail_unregister:
platform_device_unregister(plat_dev);
return NULL;
}
static struct niu_parent *niu_get_parent(struct niu *np,
union niu_parent_id *id, u8 ptype)
{
struct niu_parent *p, *tmp;
int port = np->port;
mutex_lock(&niu_parent_lock);
p = NULL;
list_for_each_entry(tmp, &niu_parent_list, list) {
if (!memcmp(id, &tmp->id, sizeof(*id))) {
p = tmp;
break;
}
}
if (!p)
p = niu_new_parent(np, id, ptype);
if (p) {
char port_name[8];
int err;
sprintf(port_name, "port%d", port);
err = sysfs_create_link(&p->plat_dev->dev.kobj,
&np->device->kobj,
port_name);
if (!err) {
p->ports[port] = np;
atomic_inc(&p->refcnt);
}
}
mutex_unlock(&niu_parent_lock);
return p;
}
static void niu_put_parent(struct niu *np)
{
struct niu_parent *p = np->parent;
u8 port = np->port;
char port_name[8];
BUG_ON(!p || p->ports[port] != np);
netif_printk(np, probe, KERN_DEBUG, np->dev,
"%s() port[%u]\n", __func__, port);
sprintf(port_name, "port%d", port);
mutex_lock(&niu_parent_lock);
sysfs_remove_link(&p->plat_dev->dev.kobj, port_name);
p->ports[port] = NULL;
np->parent = NULL;
if (atomic_dec_and_test(&p->refcnt)) {
list_del(&p->list);
platform_device_unregister(p->plat_dev);
}
mutex_unlock(&niu_parent_lock);
}
static void *niu_pci_alloc_coherent(struct device *dev, size_t size,
u64 *handle, gfp_t flag)
{
dma_addr_t dh;
void *ret;
ret = dma_alloc_coherent(dev, size, &dh, flag);
if (ret)
*handle = dh;
return ret;
}
static void niu_pci_free_coherent(struct device *dev, size_t size,
void *cpu_addr, u64 handle)
{
dma_free_coherent(dev, size, cpu_addr, handle);
}
static u64 niu_pci_map_page(struct device *dev, struct page *page,
unsigned long offset, size_t size,
enum dma_data_direction direction)
{
return dma_map_page(dev, page, offset, size, direction);
}
static void niu_pci_unmap_page(struct device *dev, u64 dma_address,
size_t size, enum dma_data_direction direction)
{
dma_unmap_page(dev, dma_address, size, direction);
}
static u64 niu_pci_map_single(struct device *dev, void *cpu_addr,
size_t size,
enum dma_data_direction direction)
{
return dma_map_single(dev, cpu_addr, size, direction);
}
static void niu_pci_unmap_single(struct device *dev, u64 dma_address,
size_t size,
enum dma_data_direction direction)
{
dma_unmap_single(dev, dma_address, size, direction);
}
static const struct niu_ops niu_pci_ops = {
.alloc_coherent = niu_pci_alloc_coherent,
.free_coherent = niu_pci_free_coherent,
.map_page = niu_pci_map_page,
.unmap_page = niu_pci_unmap_page,
.map_single = niu_pci_map_single,
.unmap_single = niu_pci_unmap_single,
};
static void niu_driver_version(void)
{
static int niu_version_printed;
if (niu_version_printed++ == 0)
pr_info("%s", version);
}
static struct net_device *niu_alloc_and_init(struct device *gen_dev,
struct pci_dev *pdev,
struct platform_device *op,
const struct niu_ops *ops, u8 port)
{
struct net_device *dev;
struct niu *np;
dev = alloc_etherdev_mq(sizeof(struct niu), NIU_NUM_TXCHAN);
if (!dev)
return NULL;
SET_NETDEV_DEV(dev, gen_dev);
np = netdev_priv(dev);
np->dev = dev;
np->pdev = pdev;
np->op = op;
np->device = gen_dev;
np->ops = ops;
np->msg_enable = niu_debug;
spin_lock_init(&np->lock);
INIT_WORK(&np->reset_task, niu_reset_task);
np->port = port;
return dev;
}
static const struct net_device_ops niu_netdev_ops = {
.ndo_open = niu_open,
.ndo_stop = niu_close,
.ndo_start_xmit = niu_start_xmit,
.ndo_get_stats64 = niu_get_stats,
.ndo_set_rx_mode = niu_set_rx_mode,
.ndo_validate_addr = eth_validate_addr,
.ndo_set_mac_address = niu_set_mac_addr,
.ndo_do_ioctl = niu_ioctl,
.ndo_tx_timeout = niu_tx_timeout,
.ndo_change_mtu = niu_change_mtu,
};
static void niu_assign_netdev_ops(struct net_device *dev)
{
dev->netdev_ops = &niu_netdev_ops;
dev->ethtool_ops = &niu_ethtool_ops;
dev->watchdog_timeo = NIU_TX_TIMEOUT;
}
static void niu_device_announce(struct niu *np)
{
struct net_device *dev = np->dev;
pr_info("%s: NIU Ethernet %pM\n", dev->name, dev->dev_addr);
if (np->parent->plat_type == PLAT_TYPE_ATCA_CP3220) {
pr_info("%s: Port type[%s] mode[%s:%s] XCVR[%s] phy[%s]\n",
dev->name,
(np->flags & NIU_FLAGS_XMAC ? "XMAC" : "BMAC"),
(np->flags & NIU_FLAGS_10G ? "10G" : "1G"),
(np->flags & NIU_FLAGS_FIBER ? "RGMII FIBER" : "SERDES"),
(np->mac_xcvr == MAC_XCVR_MII ? "MII" :
(np->mac_xcvr == MAC_XCVR_PCS ? "PCS" : "XPCS")),
np->vpd.phy_type);
} else {
pr_info("%s: Port type[%s] mode[%s:%s] XCVR[%s] phy[%s]\n",
dev->name,
(np->flags & NIU_FLAGS_XMAC ? "XMAC" : "BMAC"),
(np->flags & NIU_FLAGS_10G ? "10G" : "1G"),
(np->flags & NIU_FLAGS_FIBER ? "FIBER" :
(np->flags & NIU_FLAGS_XCVR_SERDES ? "SERDES" :
"COPPER")),
(np->mac_xcvr == MAC_XCVR_MII ? "MII" :
(np->mac_xcvr == MAC_XCVR_PCS ? "PCS" : "XPCS")),
np->vpd.phy_type);
}
}
static void niu_set_basic_features(struct net_device *dev)
{
dev->hw_features = NETIF_F_SG | NETIF_F_HW_CSUM | NETIF_F_RXHASH;
dev->features |= dev->hw_features | NETIF_F_RXCSUM;
}
static int niu_pci_init_one(struct pci_dev *pdev,
const struct pci_device_id *ent)
{
union niu_parent_id parent_id;
struct net_device *dev;
struct niu *np;
int err;
u64 dma_mask;
niu_driver_version();
err = pci_enable_device(pdev);
if (err) {
dev_err(&pdev->dev, "Cannot enable PCI device, aborting\n");
return err;
}
if (!(pci_resource_flags(pdev, 0) & IORESOURCE_MEM) ||
!(pci_resource_flags(pdev, 2) & IORESOURCE_MEM)) {
dev_err(&pdev->dev, "Cannot find proper PCI device base addresses, aborting\n");
err = -ENODEV;
goto err_out_disable_pdev;
}
err = pci_request_regions(pdev, DRV_MODULE_NAME);
if (err) {
dev_err(&pdev->dev, "Cannot obtain PCI resources, aborting\n");
goto err_out_disable_pdev;
}
if (!pci_is_pcie(pdev)) {
dev_err(&pdev->dev, "Cannot find PCI Express capability, aborting\n");
err = -ENODEV;
goto err_out_free_res;
}
dev = niu_alloc_and_init(&pdev->dev, pdev, NULL,
&niu_pci_ops, PCI_FUNC(pdev->devfn));
if (!dev) {
err = -ENOMEM;
goto err_out_free_res;
}
np = netdev_priv(dev);
memset(&parent_id, 0, sizeof(parent_id));
parent_id.pci.domain = pci_domain_nr(pdev->bus);
parent_id.pci.bus = pdev->bus->number;
parent_id.pci.device = PCI_SLOT(pdev->devfn);
np->parent = niu_get_parent(np, &parent_id,
PLAT_TYPE_ATLAS);
if (!np->parent) {
err = -ENOMEM;
goto err_out_free_dev;
}
pcie_capability_clear_and_set_word(pdev, PCI_EXP_DEVCTL,
PCI_EXP_DEVCTL_NOSNOOP_EN,
PCI_EXP_DEVCTL_CERE | PCI_EXP_DEVCTL_NFERE |
PCI_EXP_DEVCTL_FERE | PCI_EXP_DEVCTL_URRE |
PCI_EXP_DEVCTL_RELAX_EN);
dma_mask = DMA_BIT_MASK(44);
err = pci_set_dma_mask(pdev, dma_mask);
if (!err) {
dev->features |= NETIF_F_HIGHDMA;
err = pci_set_consistent_dma_mask(pdev, dma_mask);
if (err) {
dev_err(&pdev->dev, "Unable to obtain 44 bit DMA for consistent allocations, aborting\n");
goto err_out_release_parent;
}
}
if (err) {
err = pci_set_dma_mask(pdev, DMA_BIT_MASK(32));
if (err) {
dev_err(&pdev->dev, "No usable DMA configuration, aborting\n");
goto err_out_release_parent;
}
}
niu_set_basic_features(dev);
dev->priv_flags |= IFF_UNICAST_FLT;
np->regs = pci_ioremap_bar(pdev, 0);
if (!np->regs) {
dev_err(&pdev->dev, "Cannot map device registers, aborting\n");
err = -ENOMEM;
goto err_out_release_parent;
}
pci_set_master(pdev);
pci_save_state(pdev);
dev->irq = pdev->irq;
/* MTU range: 68 - 9216 */
dev->min_mtu = ETH_MIN_MTU;
dev->max_mtu = NIU_MAX_MTU;
niu_assign_netdev_ops(dev);
err = niu_get_invariants(np);
if (err) {
if (err != -ENODEV)
dev_err(&pdev->dev, "Problem fetching invariants of chip, aborting\n");
goto err_out_iounmap;
}
err = register_netdev(dev);
if (err) {
dev_err(&pdev->dev, "Cannot register net device, aborting\n");
goto err_out_iounmap;
}
pci_set_drvdata(pdev, dev);
niu_device_announce(np);
return 0;
err_out_iounmap:
if (np->regs) {
iounmap(np->regs);
np->regs = NULL;
}
err_out_release_parent:
niu_put_parent(np);
err_out_free_dev:
free_netdev(dev);
err_out_free_res:
pci_release_regions(pdev);
err_out_disable_pdev:
pci_disable_device(pdev);
return err;
}
static void niu_pci_remove_one(struct pci_dev *pdev)
{
struct net_device *dev = pci_get_drvdata(pdev);
if (dev) {
struct niu *np = netdev_priv(dev);
unregister_netdev(dev);
if (np->regs) {
iounmap(np->regs);
np->regs = NULL;
}
niu_ldg_free(np);
niu_put_parent(np);
free_netdev(dev);
pci_release_regions(pdev);
pci_disable_device(pdev);
}
}
static int niu_suspend(struct pci_dev *pdev, pm_message_t state)
{
struct net_device *dev = pci_get_drvdata(pdev);
struct niu *np = netdev_priv(dev);
unsigned long flags;
if (!netif_running(dev))
return 0;
flush_work(&np->reset_task);
niu_netif_stop(np);
del_timer_sync(&np->timer);
spin_lock_irqsave(&np->lock, flags);
niu_enable_interrupts(np, 0);
spin_unlock_irqrestore(&np->lock, flags);
netif_device_detach(dev);
spin_lock_irqsave(&np->lock, flags);
niu_stop_hw(np);
spin_unlock_irqrestore(&np->lock, flags);
pci_save_state(pdev);
return 0;
}
static int niu_resume(struct pci_dev *pdev)
{
struct net_device *dev = pci_get_drvdata(pdev);
struct niu *np = netdev_priv(dev);
unsigned long flags;
int err;
if (!netif_running(dev))
return 0;
pci_restore_state(pdev);
netif_device_attach(dev);
spin_lock_irqsave(&np->lock, flags);
err = niu_init_hw(np);
if (!err) {
np->timer.expires = jiffies + HZ;
add_timer(&np->timer);
niu_netif_start(np);
}
spin_unlock_irqrestore(&np->lock, flags);
return err;
}
static struct pci_driver niu_pci_driver = {
.name = DRV_MODULE_NAME,
.id_table = niu_pci_tbl,
.probe = niu_pci_init_one,
.remove = niu_pci_remove_one,
.suspend = niu_suspend,
.resume = niu_resume,
};
#ifdef CONFIG_SPARC64
static void *niu_phys_alloc_coherent(struct device *dev, size_t size,
u64 *dma_addr, gfp_t flag)
{
unsigned long order = get_order(size);
unsigned long page = __get_free_pages(flag, order);
if (page == 0UL)
return NULL;
memset((char *)page, 0, PAGE_SIZE << order);
*dma_addr = __pa(page);
return (void *) page;
}
static void niu_phys_free_coherent(struct device *dev, size_t size,
void *cpu_addr, u64 handle)
{
unsigned long order = get_order(size);
free_pages((unsigned long) cpu_addr, order);
}
static u64 niu_phys_map_page(struct device *dev, struct page *page,
unsigned long offset, size_t size,
enum dma_data_direction direction)
{
return page_to_phys(page) + offset;
}
static void niu_phys_unmap_page(struct device *dev, u64 dma_address,
size_t size, enum dma_data_direction direction)
{
/* Nothing to do. */
}
static u64 niu_phys_map_single(struct device *dev, void *cpu_addr,
size_t size,
enum dma_data_direction direction)
{
return __pa(cpu_addr);
}
static void niu_phys_unmap_single(struct device *dev, u64 dma_address,
size_t size,
enum dma_data_direction direction)
{
/* Nothing to do. */
}
static const struct niu_ops niu_phys_ops = {
.alloc_coherent = niu_phys_alloc_coherent,
.free_coherent = niu_phys_free_coherent,
.map_page = niu_phys_map_page,
.unmap_page = niu_phys_unmap_page,
.map_single = niu_phys_map_single,
.unmap_single = niu_phys_unmap_single,
};
static int niu_of_probe(struct platform_device *op)
{
union niu_parent_id parent_id;
struct net_device *dev;
struct niu *np;
const u32 *reg;
int err;
niu_driver_version();
reg = of_get_property(op->dev.of_node, "reg", NULL);
if (!reg) {
dev_err(&op->dev, "%pOF: No 'reg' property, aborting\n",
op->dev.of_node);
return -ENODEV;
}
dev = niu_alloc_and_init(&op->dev, NULL, op,
&niu_phys_ops, reg[0] & 0x1);
if (!dev) {
err = -ENOMEM;
goto err_out;
}
np = netdev_priv(dev);
memset(&parent_id, 0, sizeof(parent_id));
parent_id.of = of_get_parent(op->dev.of_node);
np->parent = niu_get_parent(np, &parent_id,
PLAT_TYPE_NIU);
if (!np->parent) {
err = -ENOMEM;
goto err_out_free_dev;
}
niu_set_basic_features(dev);
np->regs = of_ioremap(&op->resource[1], 0,
resource_size(&op->resource[1]),
"niu regs");
if (!np->regs) {
dev_err(&op->dev, "Cannot map device registers, aborting\n");
err = -ENOMEM;
goto err_out_release_parent;
}
np->vir_regs_1 = of_ioremap(&op->resource[2], 0,
resource_size(&op->resource[2]),
"niu vregs-1");
if (!np->vir_regs_1) {
dev_err(&op->dev, "Cannot map device vir registers 1, aborting\n");
err = -ENOMEM;
goto err_out_iounmap;
}
np->vir_regs_2 = of_ioremap(&op->resource[3], 0,
resource_size(&op->resource[3]),
"niu vregs-2");
if (!np->vir_regs_2) {
dev_err(&op->dev, "Cannot map device vir registers 2, aborting\n");
err = -ENOMEM;
goto err_out_iounmap;
}
niu_assign_netdev_ops(dev);
err = niu_get_invariants(np);
if (err) {
if (err != -ENODEV)
dev_err(&op->dev, "Problem fetching invariants of chip, aborting\n");
goto err_out_iounmap;
}
err = register_netdev(dev);
if (err) {
dev_err(&op->dev, "Cannot register net device, aborting\n");
goto err_out_iounmap;
}
platform_set_drvdata(op, dev);
niu_device_announce(np);
return 0;
err_out_iounmap:
if (np->vir_regs_1) {
of_iounmap(&op->resource[2], np->vir_regs_1,
resource_size(&op->resource[2]));
np->vir_regs_1 = NULL;
}
if (np->vir_regs_2) {
of_iounmap(&op->resource[3], np->vir_regs_2,
resource_size(&op->resource[3]));
np->vir_regs_2 = NULL;
}
if (np->regs) {
of_iounmap(&op->resource[1], np->regs,
resource_size(&op->resource[1]));
np->regs = NULL;
}
err_out_release_parent:
niu_put_parent(np);
err_out_free_dev:
free_netdev(dev);
err_out:
return err;
}
static int niu_of_remove(struct platform_device *op)
{
struct net_device *dev = platform_get_drvdata(op);
if (dev) {
struct niu *np = netdev_priv(dev);
unregister_netdev(dev);
if (np->vir_regs_1) {
of_iounmap(&op->resource[2], np->vir_regs_1,
resource_size(&op->resource[2]));
np->vir_regs_1 = NULL;
}
if (np->vir_regs_2) {
of_iounmap(&op->resource[3], np->vir_regs_2,
resource_size(&op->resource[3]));
np->vir_regs_2 = NULL;
}
if (np->regs) {
of_iounmap(&op->resource[1], np->regs,
resource_size(&op->resource[1]));
np->regs = NULL;
}
niu_ldg_free(np);
niu_put_parent(np);
free_netdev(dev);
}
return 0;
}
static const struct of_device_id niu_match[] = {
{
.name = "network",
.compatible = "SUNW,niusl",
},
{},
};
MODULE_DEVICE_TABLE(of, niu_match);
static struct platform_driver niu_of_driver = {
.driver = {
.name = "niu",
.of_match_table = niu_match,
},
.probe = niu_of_probe,
.remove = niu_of_remove,
};
#endif /* CONFIG_SPARC64 */
static int __init niu_init(void)
{
int err = 0;
BUILD_BUG_ON(PAGE_SIZE < 4 * 1024);
niu_debug = netif_msg_init(debug, NIU_MSG_DEFAULT);
#ifdef CONFIG_SPARC64
err = platform_driver_register(&niu_of_driver);
#endif
if (!err) {
err = pci_register_driver(&niu_pci_driver);
#ifdef CONFIG_SPARC64
if (err)
platform_driver_unregister(&niu_of_driver);
#endif
}
return err;
}
static void __exit niu_exit(void)
{
pci_unregister_driver(&niu_pci_driver);
#ifdef CONFIG_SPARC64
platform_driver_unregister(&niu_of_driver);
#endif
}
module_init(niu_init);
module_exit(niu_exit);
| 22.972854 | 96 | 0.677687 |
d63f35748c650fa59806d9fb81496e5f5805a8b0 | 346 | h | C | WTCategories/Category/MJRefresh/MJRefreshGifHeader+AJRefreshHeader.h | WynterW/WTCategories | ae4c28ad7b1e0a9f4124f149eaa16ed56057570f | [
"Apache-2.0"
] | null | null | null | WTCategories/Category/MJRefresh/MJRefreshGifHeader+AJRefreshHeader.h | WynterW/WTCategories | ae4c28ad7b1e0a9f4124f149eaa16ed56057570f | [
"Apache-2.0"
] | null | null | null | WTCategories/Category/MJRefresh/MJRefreshGifHeader+AJRefreshHeader.h | WynterW/WTCategories | ae4c28ad7b1e0a9f4124f149eaa16ed56057570f | [
"Apache-2.0"
] | null | null | null | //
// WTCategories
//
// Created by Wynter on 2018/9/7.
// Copyright © 2018年 Wynter. All rights reserved.
//
#import "MJRefresh.h"
@interface MJRefreshGifHeader (AJRefreshHeader)
+ (instancetype)ajHeaderWithRefreshingTarget:(id)target refreshingAction:(SEL)action;
+ (MJRefreshGifHeader*)prepareRefresh:(MJRefreshGifHeader *)header;
@end
| 20.352941 | 85 | 0.757225 |
d0db7d5d213d1b765a9b06928553eee6cb1088df | 8,809 | c | C | kernels/linux-2.4.0/drivers/sound/midibuf.c | liuhaozzu/linux | bdf9758cd23e34b5f53e8e6339d9b29348615e14 | [
"Apache-2.0"
] | 4 | 2020-01-01T20:26:42.000Z | 2021-10-17T21:51:58.000Z | kernels/linux-2.4.0/drivers/sound/midibuf.c | liuhaozzu/linux | bdf9758cd23e34b5f53e8e6339d9b29348615e14 | [
"Apache-2.0"
] | 4 | 2020-07-23T11:20:30.000Z | 2020-07-24T20:09:09.000Z | linux/drivers/sound/midibuf.c | CodeAsm/PS1Linux | 8c3c4d9ffccf446dd061a38186efc924da8a66be | [
"CC0-1.0"
] | null | null | null | /*
* sound/midibuf.c
*
* Device file manager for /dev/midi#
*/
/*
* Copyright (C) by Hannu Savolainen 1993-1997
*
* OSS/Free for Linux is distributed under the GNU GENERAL PUBLIC LICENSE (GPL)
* Version 2 (June 1991). See the "COPYING" file distributed with this software
* for more info.
*/
/*
* Thomas Sailer : ioctl code reworked (vmalloc/vfree removed)
*/
#include <linux/stddef.h>
#include <linux/kmod.h>
#define MIDIBUF_C
#include "sound_config.h"
/*
* Don't make MAX_QUEUE_SIZE larger than 4000
*/
#define MAX_QUEUE_SIZE 4000
static wait_queue_head_t midi_sleeper[MAX_MIDI_DEV];
static wait_queue_head_t input_sleeper[MAX_MIDI_DEV];
struct midi_buf
{
int len, head, tail;
unsigned char queue[MAX_QUEUE_SIZE];
};
struct midi_parms
{
long prech_timeout; /*
* Timeout before the first ch
*/
};
static struct midi_buf *midi_out_buf[MAX_MIDI_DEV] = {NULL};
static struct midi_buf *midi_in_buf[MAX_MIDI_DEV] = {NULL};
static struct midi_parms parms[MAX_MIDI_DEV];
static void midi_poll(unsigned long dummy);
static struct timer_list poll_timer = {
function: midi_poll
};
static volatile int open_devs = 0;
#define DATA_AVAIL(q) (q->len)
#define SPACE_AVAIL(q) (MAX_QUEUE_SIZE - q->len)
#define QUEUE_BYTE(q, data) \
if (SPACE_AVAIL(q)) \
{ \
unsigned long flags; \
save_flags( flags);cli(); \
q->queue[q->tail] = (data); \
q->len++; q->tail = (q->tail+1) % MAX_QUEUE_SIZE; \
restore_flags(flags); \
}
#define REMOVE_BYTE(q, data) \
if (DATA_AVAIL(q)) \
{ \
unsigned long flags; \
save_flags( flags);cli(); \
data = q->queue[q->head]; \
q->len--; q->head = (q->head+1) % MAX_QUEUE_SIZE; \
restore_flags(flags); \
}
static void drain_midi_queue(int dev)
{
/*
* Give the Midi driver time to drain its output queues
*/
if (midi_devs[dev]->buffer_status != NULL)
while (!signal_pending(current) && midi_devs[dev]->buffer_status(dev))
interruptible_sleep_on_timeout(&midi_sleeper[dev],
HZ/10);
}
static void midi_input_intr(int dev, unsigned char data)
{
if (midi_in_buf[dev] == NULL)
return;
if (data == 0xfe) /*
* Active sensing
*/
return; /*
* Ignore
*/
if (SPACE_AVAIL(midi_in_buf[dev])) {
QUEUE_BYTE(midi_in_buf[dev], data);
wake_up(&input_sleeper[dev]);
}
}
static void midi_output_intr(int dev)
{
/*
* Currently NOP
*/
}
static void midi_poll(unsigned long dummy)
{
unsigned long flags;
int dev;
save_flags(flags);
cli();
if (open_devs)
{
for (dev = 0; dev < num_midis; dev++)
if (midi_devs[dev] != NULL && midi_out_buf[dev] != NULL)
{
int ok = 1;
while (DATA_AVAIL(midi_out_buf[dev]) && ok)
{
int c = midi_out_buf[dev]->queue[midi_out_buf[dev]->head];
restore_flags(flags); /* Give some time to others */
ok = midi_devs[dev]->outputc(dev, c);
cli();
midi_out_buf[dev]->head = (midi_out_buf[dev]->head + 1) % MAX_QUEUE_SIZE;
midi_out_buf[dev]->len--;
}
if (DATA_AVAIL(midi_out_buf[dev]) < 100)
wake_up(&midi_sleeper[dev]);
}
poll_timer.expires = (1) + jiffies;
add_timer(&poll_timer);
/*
* Come back later
*/
}
restore_flags(flags);
}
int MIDIbuf_open(int dev, struct file *file)
{
int mode, err;
dev = dev >> 4;
mode = translate_mode(file);
if (num_midis > MAX_MIDI_DEV)
{
printk(KERN_ERR "midi: Too many midi interfaces\n");
num_midis = MAX_MIDI_DEV;
}
if (dev < 0 || dev >= num_midis || midi_devs[dev] == NULL)
return -ENXIO;
/*
* Interrupts disabled. Be careful
*/
if (midi_devs[dev]->owner)
__MOD_INC_USE_COUNT (midi_devs[dev]->owner);
if ((err = midi_devs[dev]->open(dev, mode,
midi_input_intr, midi_output_intr)) < 0)
return err;
parms[dev].prech_timeout = MAX_SCHEDULE_TIMEOUT;
midi_in_buf[dev] = (struct midi_buf *) vmalloc(sizeof(struct midi_buf));
if (midi_in_buf[dev] == NULL)
{
printk(KERN_WARNING "midi: Can't allocate buffer\n");
midi_devs[dev]->close(dev);
return -EIO;
}
midi_in_buf[dev]->len = midi_in_buf[dev]->head = midi_in_buf[dev]->tail = 0;
midi_out_buf[dev] = (struct midi_buf *) vmalloc(sizeof(struct midi_buf));
if (midi_out_buf[dev] == NULL)
{
printk(KERN_WARNING "midi: Can't allocate buffer\n");
midi_devs[dev]->close(dev);
vfree(midi_in_buf[dev]);
midi_in_buf[dev] = NULL;
return -EIO;
}
midi_out_buf[dev]->len = midi_out_buf[dev]->head = midi_out_buf[dev]->tail = 0;
open_devs++;
init_waitqueue_head(&midi_sleeper[dev]);
init_waitqueue_head(&input_sleeper[dev]);
if (open_devs < 2) /* This was first open */
{
poll_timer.expires = 1 + jiffies;
add_timer(&poll_timer); /* Start polling */
}
return err;
}
void MIDIbuf_release(int dev, struct file *file)
{
int mode;
unsigned long flags;
dev = dev >> 4;
mode = translate_mode(file);
if (dev < 0 || dev >= num_midis || midi_devs[dev] == NULL)
return;
save_flags(flags);
cli();
/*
* Wait until the queue is empty
*/
if (mode != OPEN_READ)
{
midi_devs[dev]->outputc(dev, 0xfe); /*
* Active sensing to shut the
* devices
*/
while (!signal_pending(current) && DATA_AVAIL(midi_out_buf[dev]))
interruptible_sleep_on(&midi_sleeper[dev]);
/*
* Sync
*/
drain_midi_queue(dev); /*
* Ensure the output queues are empty
*/
}
restore_flags(flags);
midi_devs[dev]->close(dev);
vfree(midi_in_buf[dev]);
vfree(midi_out_buf[dev]);
midi_in_buf[dev] = NULL;
midi_out_buf[dev] = NULL;
if (open_devs < 2)
del_timer(&poll_timer);;
open_devs--;
if (midi_devs[dev]->owner)
__MOD_DEC_USE_COUNT (midi_devs[dev]->owner);
}
int MIDIbuf_write(int dev, struct file *file, const char *buf, int count)
{
unsigned long flags;
int c, n, i;
unsigned char tmp_data;
dev = dev >> 4;
if (!count)
return 0;
save_flags(flags);
cli();
c = 0;
while (c < count)
{
n = SPACE_AVAIL(midi_out_buf[dev]);
if (n == 0) { /*
* No space just now.
*/
if (file->f_flags & O_NONBLOCK) {
restore_flags(flags);
return -EAGAIN;
}
interruptible_sleep_on(&midi_sleeper[dev]);
if (signal_pending(current))
{
restore_flags(flags);
return -EINTR;
}
n = SPACE_AVAIL(midi_out_buf[dev]);
}
if (n > (count - c))
n = count - c;
for (i = 0; i < n; i++)
{
/* BROKE BROKE BROKE - CANT DO THIS WITH CLI !! */
copy_from_user((char *) &tmp_data, &(buf)[c], 1);
QUEUE_BYTE(midi_out_buf[dev], tmp_data);
c++;
}
}
restore_flags(flags);
return c;
}
int MIDIbuf_read(int dev, struct file *file, char *buf, int count)
{
int n, c = 0;
unsigned long flags;
unsigned char tmp_data;
dev = dev >> 4;
save_flags(flags);
cli();
if (!DATA_AVAIL(midi_in_buf[dev])) { /*
* No data yet, wait
*/
if (file->f_flags & O_NONBLOCK) {
restore_flags(flags);
return -EAGAIN;
}
interruptible_sleep_on_timeout(&input_sleeper[dev],
parms[dev].prech_timeout);
if (signal_pending(current))
c = -EINTR; /* The user is getting restless */
}
if (c == 0 && DATA_AVAIL(midi_in_buf[dev])) /*
* Got some bytes
*/
{
n = DATA_AVAIL(midi_in_buf[dev]);
if (n > count)
n = count;
c = 0;
while (c < n)
{
char *fixit;
REMOVE_BYTE(midi_in_buf[dev], tmp_data);
fixit = (char *) &tmp_data;
/* BROKE BROKE BROKE */
copy_to_user(&(buf)[c], fixit, 1);
c++;
}
}
restore_flags(flags);
return c;
}
int MIDIbuf_ioctl(int dev, struct file *file,
unsigned int cmd, caddr_t arg)
{
int val;
dev = dev >> 4;
if (((cmd >> 8) & 0xff) == 'C')
{
if (midi_devs[dev]->coproc) /* Coprocessor ioctl */
return midi_devs[dev]->coproc->ioctl(midi_devs[dev]->coproc->devc, cmd, arg, 0);
/* printk("/dev/midi%d: No coprocessor for this device\n", dev);*/
return -ENXIO;
}
else
{
switch (cmd)
{
case SNDCTL_MIDI_PRETIME:
if (get_user(val, (int *)arg))
return -EFAULT;
if (val < 0)
val = 0;
val = (HZ * val) / 10;
parms[dev].prech_timeout = val;
return put_user(val, (int *)arg);
default:
if (!midi_devs[dev]->ioctl)
return -EINVAL;
return midi_devs[dev]->ioctl(dev, cmd, arg);
}
}
}
/* No kernel lock - fine */
unsigned int MIDIbuf_poll(int dev, struct file *file, poll_table * wait)
{
unsigned int mask = 0;
dev = dev >> 4;
/* input */
poll_wait(file, &input_sleeper[dev], wait);
if (DATA_AVAIL(midi_in_buf[dev]))
mask |= POLLIN | POLLRDNORM;
/* output */
poll_wait(file, &midi_sleeper[dev], wait);
if (!SPACE_AVAIL(midi_out_buf[dev]))
mask |= POLLOUT | POLLWRNORM;
return mask;
}
void MIDIbuf_init(void)
{
/* drag in midi_syms.o */
{
extern char midi_syms_symbol;
midi_syms_symbol = 0;
}
}
int MIDIbuf_avail(int dev)
{
if (midi_in_buf[dev])
return DATA_AVAIL (midi_in_buf[dev]);
return 0;
}
| 20.066059 | 83 | 0.637189 |
aab6da37d3dbd1f3430dc0b3fd77eb66b362dc2c | 2,349 | h | C | usr/lib/libacmobileshim.dylib/ACMPrincipalPreferences.h | lechium/tvOS144Headers | e22dcf52662ae03002e3a6d57273f54e74013cb0 | [
"MIT"
] | 2 | 2021-04-15T10:50:21.000Z | 2021-08-19T19:00:09.000Z | usr/lib/libacmobileshim.dylib/ACMPrincipalPreferences.h | lechium/tvOS144Headers | e22dcf52662ae03002e3a6d57273f54e74013cb0 | [
"MIT"
] | null | null | null | usr/lib/libacmobileshim.dylib/ACMPrincipalPreferences.h | lechium/tvOS144Headers | e22dcf52662ae03002e3a6d57273f54e74013cb0 | [
"MIT"
] | null | null | null | /*
* This header is generated by classdump-dyld 1.5
* on Wednesday, April 14, 2021 at 2:31:47 PM Mountain Standard Time
* Operating System: Version 14.4 (Build 18K802)
* Image Source: /usr/lib/libacmobileshim.dylib
* classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by Elias Limneos. Updated by Kevin Bradley.
*/
#import <libacmobileshim.dylib/ACMPreferences.h>
#import <libobjc.A.dylib/ACMPrincipalPreferences.h>
@class ACFPrincipal, NSString, NSNumber;
@protocol ACMPrincipalPreferences <ACMBasePreferences>
@property (retain,readonly) ACFPrincipal * principal;
@property (nonatomic,copy) NSString * clientSecret;
@property (nonatomic,copy) NSNumber * clientSecretCreateDate;
@property (nonatomic,copy) NSNumber * personID;
@required
+(id)preferencesForPrincipal:(id)arg1;
-(id)realm;
-(id)userName;
-(NSNumber *)personID;
-(void)setPersonID:(id)arg1;
-(ACFPrincipal *)principal;
-(id)initWithPrincipal:(id)arg1;
-(NSString *)clientSecret;
-(NSNumber *)clientSecretCreateDate;
-(void)setClientSecret:(id)arg1;
-(void)setClientSecretCreateDate:(id)arg1;
@end
@class ACFPrincipal, NSString, NSNumber;
@interface ACMPrincipalPreferences : ACMPreferences <ACMPrincipalPreferences> {
ACFPrincipal* _principal;
}
@property (retain) ACFPrincipal * principal; //@synthesize principal=_principal - In the implementation block
@property (nonatomic,copy) NSString * clientSecret;
@property (nonatomic,copy) NSNumber * clientSecretCreateDate;
@property (nonatomic,copy) NSNumber * personID;
@property (retain) id<ACMPreferencesStore> preferencesStore;
@property (readonly) unsigned long long hash;
@property (readonly) Class superclass;
@property (copy,readonly) NSString * description;
@property (copy,readonly) NSString * debugDescription;
+(id)preferencesForPrincipal:(id)arg1 ;
-(void)dealloc;
-(id)realm;
-(id)userName;
-(NSNumber *)personID;
-(void)setPersonID:(NSNumber *)arg1 ;
-(ACFPrincipal *)principal;
-(void)setPrincipal:(ACFPrincipal *)arg1 ;
-(id)initWithPrincipal:(id)arg1 ;
-(NSString *)clientSecret;
-(NSNumber *)clientSecretCreateDate;
-(void)setClientSecret:(NSString *)arg1 ;
-(void)setClientSecretCreateDate:(NSNumber *)arg1 ;
@end
| 35.059701 | 139 | 0.716901 |
c57d0f1109ecafbb17948f4a8037c1b09b065b6f | 17,304 | h | C | be/src/udf/uda-test-harness-impl.h | suifengzhuliu/impala | 611f4c6f3b18cfcddff3b2956cbb87c295a87655 | [
"Apache-2.0"
] | 1,523 | 2015-01-01T03:42:24.000Z | 2022-02-06T22:24:04.000Z | be/src/udf/uda-test-harness-impl.h | xwzbupt/impala | 97dda2b27da99367f4d07699aa046b16cda16dd4 | [
"Apache-2.0"
] | 10 | 2015-01-09T06:46:05.000Z | 2022-03-29T21:57:57.000Z | be/src/udf/uda-test-harness-impl.h | xwzbupt/impala | 97dda2b27da99367f4d07699aa046b16cda16dd4 | [
"Apache-2.0"
] | 647 | 2015-01-02T04:01:40.000Z | 2022-03-30T15:57:35.000Z | // Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.
#ifndef IMPALA_UDA_TEST_HARNESS_IMPL_H
#define IMPALA_UDA_TEST_HARNESS_IMPL_H
// THIS FILE IS USED BY THE STANDALONE IMPALA UDF DEVELOPMENT KIT.
// IT MUST BE BUILDABLE WITH C++98 AND WITHOUT ANY INTERNAL IMPALA HEADERS.
#include <string>
#include <sstream>
#include <vector>
// Use boost::shared_ptr instead of std::shared_ptr so it can be built with C++98
#include <boost/shared_ptr.hpp>
namespace impala_udf {
/// Utility class to help test UDAs. This can be used to test the correctness of the
/// UDA, simulating multiple possible distributed execution setups.
/// For example, the harness will run in the UDA in single node mode (so merge and
/// serialize are unused), single level merge and multi-level merge.
/// The test application is responsible for providing the data and expected result.
class UdaTestHarnessUtil {
public:
template<typename T>
static T CreateIntermediate(FunctionContext* context, int byte_size) {
return T();
}
template<typename T>
static void FreeIntermediate(FunctionContext* context, const T& v) {
/// No-op
return;
}
/// Copy src value into context, returning the new copy. This simulates
/// copying the bytes between nodes.
template<typename T>
static T CopyIntermediate(FunctionContext* context, int byte_size, const T& src) {
return src;
}
};
template<>
BufferVal UdaTestHarnessUtil::CreateIntermediate(
FunctionContext* context, int byte_size) {
return reinterpret_cast<BufferVal>(context->Allocate(byte_size));
}
template<>
void UdaTestHarnessUtil::FreeIntermediate(
FunctionContext* context, const BufferVal& v) {
context->Free(v);
}
template<>
BufferVal UdaTestHarnessUtil::CopyIntermediate(
FunctionContext* context, int byte_size, const BufferVal& src) {
BufferVal v = reinterpret_cast<BufferVal>(context->Allocate(byte_size));
memcpy(v, src, byte_size);
return v;
}
/// Returns false if there is an error set in the context.
template<typename RESULT, typename INTERMEDIATE>
bool UdaTestHarnessBase<RESULT, INTERMEDIATE>::CheckContext(FunctionContext* context) {
if (context->has_error()) {
std::stringstream ss;
ss << "UDA set error to: " << context->error_msg();
error_msg_ = ss.str();
return false;
}
return true;
}
template<typename RESULT, typename INTERMEDIATE>
bool UdaTestHarnessBase<RESULT, INTERMEDIATE>::CheckResult(
const RESULT& x, const RESULT& y) {
if (result_comparator_fn_ == NULL) return x == y;
return result_comparator_fn_(x, y);
}
/// Runs the UDA in all the modes, validating the result is 'expected' each time.
template<typename RESULT, typename INTERMEDIATE>
bool UdaTestHarnessBase<RESULT, INTERMEDIATE>::Execute(
const RESULT& expected, UdaExecutionMode mode) {
error_msg_ = "";
RESULT result;
FunctionContext::TypeDesc return_type;
std::vector<FunctionContext::TypeDesc> arg_types; // TODO
if (mode == ALL || mode == SINGLE_NODE) {
{
ScopedFunctionContext context(
UdfTestHarness::CreateTestContext(return_type, arg_types), this);
result = ExecuteSingleNode(&context);
if (error_msg_.empty() && !CheckResult(result, expected)) {
std::stringstream ss;
ss << "UDA failed running in single node execution." << std::endl
<< "Expected: " << DebugString(expected)
<< " Actual: " << DebugString(result);
error_msg_ = ss.str();
}
}
if (!error_msg_.empty()) return false;
}
const int num_nodes[] = { 1, 2, 10, 20, 100 };
if (mode == ALL || mode == ONE_LEVEL) {
for (int i = 0; i < sizeof(num_nodes) / sizeof(int); ++i) {
ScopedFunctionContext context(
UdfTestHarness::CreateTestContext(return_type, arg_types), this);
result = ExecuteOneLevel(num_nodes[i], &context);
if (error_msg_.empty() && !CheckResult(result, expected)) {
std::stringstream ss;
ss << "UDA failed running in one level distributed mode with "
<< num_nodes[i] << " nodes." << std::endl
<< "Expected: " << DebugString(expected)
<< " Actual: " << DebugString(result);
error_msg_ = ss.str();
return false;
}
}
if (!error_msg_.empty()) return false;
}
if (mode == ALL || mode == TWO_LEVEL) {
for (int i = 0; i < sizeof(num_nodes) / sizeof(int); ++i) {
for (int j = 0; j <= i; ++j) {
ScopedFunctionContext context(
UdfTestHarness::CreateTestContext(return_type, arg_types), this);
result = ExecuteTwoLevel(num_nodes[i], num_nodes[j], &context);
if (error_msg_.empty() && !CheckResult(result, expected)) {
std::stringstream ss;
ss << "UDA failed running in two level distributed mode with "
<< num_nodes[i] << " nodes in the first level and "
<< num_nodes[j] << " nodes in the second level." << std::endl
<< "Expected: " << DebugString(expected)
<< " Actual: " << DebugString(result);
error_msg_ = ss.str();
return false;
}
}
}
if (!error_msg_.empty()) return false;
}
return true;
}
template<typename RESULT, typename INTERMEDIATE>
RESULT UdaTestHarnessBase<RESULT, INTERMEDIATE>::ExecuteSingleNode(
ScopedFunctionContext* context) {
INTERMEDIATE intermediate =
UdaTestHarnessUtil::CreateIntermediate<INTERMEDIATE>(
context->get(), fixed_buffer_byte_size_);
init_fn_(context->get(), &intermediate);
if (!CheckContext(context->get())) return RESULT::null();
for (int i = 0; i < num_input_values_; ++i) {
Update(i, context->get(), &intermediate);
}
if (!CheckContext(context->get())) return RESULT::null();
// Single node doesn't need merge or serialize
RESULT result = finalize_fn_(context->get(), intermediate);
UdaTestHarnessUtil::FreeIntermediate<INTERMEDIATE>(context->get(), intermediate);
if (!CheckContext(context->get())) return RESULT::null();
return result;
}
template<typename RESULT, typename INTERMEDIATE>
RESULT UdaTestHarnessBase<RESULT, INTERMEDIATE>::ExecuteOneLevel(int num_nodes,
ScopedFunctionContext* result_context) {
std::vector<boost::shared_ptr<ScopedFunctionContext> > contexts;
std::vector<INTERMEDIATE> intermediates;
contexts.resize(num_nodes);
FunctionContext::TypeDesc return_type;
std::vector<FunctionContext::TypeDesc> arg_types; // TODO
for (int i = 0; i < num_nodes; ++i) {
FunctionContext* cxt = UdfTestHarness::CreateTestContext(return_type, arg_types);
contexts[i].reset(new ScopedFunctionContext(cxt, this));
intermediates.push_back(UdaTestHarnessUtil::CreateIntermediate<INTERMEDIATE>(
cxt, fixed_buffer_byte_size_));
init_fn_(cxt, &intermediates[i]);
if (!CheckContext(cxt)) return RESULT::null();
}
INTERMEDIATE merged =
UdaTestHarnessUtil::CreateIntermediate<INTERMEDIATE>(
result_context->get(), fixed_buffer_byte_size_);
init_fn_(result_context->get(), &merged);
if (!CheckContext(result_context->get())) return RESULT::null();
// Process all the values in the single level num_nodes contexts
for (int i = 0; i < num_input_values_; ++i) {
int target = i % num_nodes;
Update(i, contexts[target].get()->get(), &intermediates[target]);
}
// Merge them all into the final
for (int i = 0; i < num_nodes; ++i) {
if (!CheckContext(contexts[i].get()->get())) return RESULT::null();
INTERMEDIATE serialized = intermediates[i];
if (serialize_fn_ != NULL) {
serialized = serialize_fn_(contexts[i].get()->get(), intermediates[i]);
}
INTERMEDIATE copy =
UdaTestHarnessUtil::CopyIntermediate<INTERMEDIATE>(
result_context->get(), fixed_buffer_byte_size_, serialized);
UdaTestHarnessUtil::FreeIntermediate<INTERMEDIATE>(
contexts[i].get()->get(), intermediates[i]);
merge_fn_(result_context->get(), copy, &merged);
UdaTestHarnessUtil::FreeIntermediate<INTERMEDIATE>(result_context->get(), copy);
if (!CheckContext(contexts[i].get()->get())) return RESULT::null();
contexts[i].reset();
}
if (!CheckContext(result_context->get())) return RESULT::null();
RESULT result = finalize_fn_(result_context->get(), merged);
UdaTestHarnessUtil::FreeIntermediate<INTERMEDIATE>(result_context->get(), merged);
if (!CheckContext(result_context->get())) return RESULT::null();
return result;
}
template<typename RESULT, typename INTERMEDIATE>
RESULT UdaTestHarnessBase<RESULT, INTERMEDIATE>::ExecuteTwoLevel(
int num1, int num2, ScopedFunctionContext* result_context) {
std::vector<boost::shared_ptr<ScopedFunctionContext> > level1_contexts, level2_contexts;
std::vector<INTERMEDIATE> level1_intermediates, level2_intermediates;
level1_contexts.resize(num1);
level2_contexts.resize(num2);
FunctionContext::TypeDesc return_type;
std::vector<FunctionContext::TypeDesc> arg_types; // TODO
// Initialize the intermediate contexts and intermediate result buffers
for (int i = 0; i < num1; ++i) {
FunctionContext* cxt = UdfTestHarness::CreateTestContext(return_type, arg_types);
level1_contexts[i].reset(new ScopedFunctionContext(cxt, this));
level1_intermediates.push_back(
UdaTestHarnessUtil::CreateIntermediate<INTERMEDIATE>(
cxt, fixed_buffer_byte_size_));
init_fn_(cxt, &level1_intermediates[i]);
if (!CheckContext(cxt)) return RESULT::null();
}
for (int i = 0; i < num2; ++i) {
FunctionContext* cxt = UdfTestHarness::CreateTestContext(return_type, arg_types);
level2_contexts[i].reset(new ScopedFunctionContext(cxt, this));
level2_intermediates.push_back(
UdaTestHarnessUtil::CreateIntermediate<INTERMEDIATE>(
cxt, fixed_buffer_byte_size_));
init_fn_(cxt, &level2_intermediates[i]);
if (!CheckContext(cxt)) return RESULT::null();
}
// Initialize the final context and final intermediate buffer
INTERMEDIATE final_intermediate =
UdaTestHarnessUtil::CreateIntermediate<INTERMEDIATE>(
result_context->get(), fixed_buffer_byte_size_);
init_fn_(result_context->get(), &final_intermediate);
if (!CheckContext(result_context->get())) return RESULT::null();
// Assign all the input values to level 1 updates
for (int i = 0; i < num_input_values_; ++i) {
int target = i % num1;
Update(i, level1_contexts[target].get()->get(), &level1_intermediates[target]);
}
// Serialize the level 1 intermediates and merge them with a level 2 intermediate
for (int i = 0; i < num1; ++i) {
if (!CheckContext(level1_contexts[i].get()->get())) return RESULT::null();
int target = i % num2;
INTERMEDIATE serialized = level1_intermediates[i];
if (serialize_fn_ != NULL) {
serialized = serialize_fn_(level1_contexts[i].get()->get(), level1_intermediates[i]);
}
INTERMEDIATE copy =
UdaTestHarnessUtil::CopyIntermediate<INTERMEDIATE>(
level2_contexts[target].get()->get(), fixed_buffer_byte_size_, serialized);
UdaTestHarnessUtil::FreeIntermediate<INTERMEDIATE>(
level1_contexts[i].get()->get(), level1_intermediates[i]);
merge_fn_(level2_contexts[target].get()->get(),
copy, &level2_intermediates[target]);
UdaTestHarnessUtil::FreeIntermediate<INTERMEDIATE>(
level2_contexts[target].get()->get(), copy);
if (!CheckContext(level1_contexts[i].get()->get())) return RESULT::null();
level1_contexts[i].reset();
}
// Merge all the level twos into the final
for (int i = 0; i < num2; ++i) {
if (!CheckContext(level2_contexts[i].get()->get())) return RESULT::null();
INTERMEDIATE serialized = level2_intermediates[i];
if (serialize_fn_ != NULL) {
serialized = serialize_fn_(level2_contexts[i].get()->get(), level2_intermediates[i]);
}
INTERMEDIATE copy =
UdaTestHarnessUtil::CopyIntermediate<INTERMEDIATE>(
result_context->get(), fixed_buffer_byte_size_, serialized);
UdaTestHarnessUtil::FreeIntermediate<INTERMEDIATE>(
level2_contexts[i].get()->get(), level2_intermediates[i]);
merge_fn_(result_context->get(), copy, &final_intermediate);
UdaTestHarnessUtil::FreeIntermediate<INTERMEDIATE>(
result_context->get(), copy);
if (!CheckContext(level2_contexts[i].get()->get())) return RESULT::null();
level2_contexts[i].reset();
}
if (!CheckContext(result_context->get())) return RESULT::null();
RESULT result = finalize_fn_(result_context->get(), final_intermediate);
UdaTestHarnessUtil::FreeIntermediate<INTERMEDIATE>(
result_context->get(), final_intermediate);
if (!CheckContext(result_context->get())) return RESULT::null();
return result;
}
template<typename RESULT, typename INTERMEDIATE, typename INPUT>
bool UdaTestHarness<RESULT, INTERMEDIATE, INPUT>::Execute(
const std::vector<INPUT>& values, const RESULT& expected,
UdaExecutionMode mode) {
input_.resize(values.size());
BaseClass::num_input_values_ = values.size();
for (int i = 0; i < values.size(); ++i) {
input_[i] = &values[i];
}
return BaseClass::Execute(expected, mode);
}
template<typename RESULT, typename INTERMEDIATE, typename INPUT>
void UdaTestHarness<RESULT, INTERMEDIATE, INPUT>::Update(
int idx, FunctionContext* context, INTERMEDIATE* dst) {
update_fn_(context, *input_[idx], dst);
}
/// Runs the UDA in all the modes, validating the result is 'expected' each time.
template<typename RESULT, typename INTERMEDIATE, typename INPUT1, typename INPUT2>
bool UdaTestHarness2<RESULT, INTERMEDIATE, INPUT1, INPUT2>::Execute(
const std::vector<INPUT1>& values1, const std::vector<INPUT2>& values2,
const RESULT& expected, UdaExecutionMode mode) {
if (values1.size() != values2.size()) {
BaseClass::error_msg_ =
"UdaTestHarness::Execute: values1 and values2 must be the same size.";
return false;
}
input1_ = &values1;
input2_ = &values2;
BaseClass::num_input_values_ = input1_->size();
return BaseClass::Execute(expected, mode);
}
template<typename RESULT, typename INTERMEDIATE, typename INPUT1, typename INPUT2>
void UdaTestHarness2<RESULT, INTERMEDIATE, INPUT1, INPUT2>::Update(
int idx, FunctionContext* context, INTERMEDIATE* dst) {
update_fn_(context, (*input1_)[idx], (*input2_)[idx], dst);
}
template<typename RESULT, typename INTERMEDIATE, typename INPUT1, typename INPUT2,
typename INPUT3>
bool UdaTestHarness3<RESULT, INTERMEDIATE, INPUT1, INPUT2, INPUT3>::Execute(
const std::vector<INPUT1>& values1, const std::vector<INPUT2>& values2,
const std::vector<INPUT3>& values3, const RESULT& expected, UdaExecutionMode mode) {
if (values1.size() != values2.size() || values1.size() != values3.size()) {
BaseClass::error_msg_ =
"UdaTestHarness::Execute: input values vectors must be the same size.";
return false;
}
input1_ = &values1;
input2_ = &values2;
input3_ = &values3;
BaseClass::num_input_values_ = input1_->size();
return BaseClass::Execute(expected, mode);
}
template<typename RESULT, typename INTERMEDIATE, typename INPUT1, typename INPUT2,
typename INPUT3>
void UdaTestHarness3<RESULT, INTERMEDIATE, INPUT1, INPUT2, INPUT3>::Update(
int idx, FunctionContext* context, INTERMEDIATE* dst) {
update_fn_(context, (*input1_)[idx], (*input2_)[idx], (*input3_)[idx], dst);
}
template<typename RESULT, typename INTERMEDIATE, typename INPUT1, typename INPUT2,
typename INPUT3, typename INPUT4>
bool UdaTestHarness4<RESULT, INTERMEDIATE, INPUT1, INPUT2, INPUT3, INPUT4>::Execute(
const std::vector<INPUT1>& values1, const std::vector<INPUT2>& values2,
const std::vector<INPUT3>& values3, const std::vector<INPUT4>& values4,
const RESULT& expected, UdaExecutionMode mode) {
if (values1.size() != values2.size() || values1.size() != values3.size() ||
values1.size() != values4.size()) {
BaseClass::error_msg_ =
"UdaTestHarness::Execute: input values vectors must be the same size.";
return false;
}
input1_ = &values1;
input2_ = &values2;
input3_ = &values3;
input4_ = &values4;
BaseClass::num_input_values_ = input1_->size();
return BaseClass::Execute(expected, mode);
}
template<typename RESULT, typename INTERMEDIATE, typename INPUT1, typename INPUT2,
typename INPUT3, typename INPUT4>
void UdaTestHarness4<RESULT, INTERMEDIATE, INPUT1, INPUT2, INPUT3, INPUT4>::Update(
int idx, FunctionContext* context, INTERMEDIATE* dst) {
update_fn_(context, (*input1_)[idx], (*input2_)[idx], (*input3_)[idx], (*input4_)[idx],
dst);
}
}
#endif
| 40.055556 | 91 | 0.702208 |
d6acc03c21d1374eb1ddc0b2fc057d1ce6a54dc6 | 1,935 | h | C | lib/headers.h | vhn0912/curl | d79b1ead74377481de34ac543f2503b1b416e2f4 | [
"curl"
] | null | null | null | lib/headers.h | vhn0912/curl | d79b1ead74377481de34ac543f2503b1b416e2f4 | [
"curl"
] | null | null | null | lib/headers.h | vhn0912/curl | d79b1ead74377481de34ac543f2503b1b416e2f4 | [
"curl"
] | null | null | null | #ifndef HEADER_CURL_HEADER_H
#define HEADER_CURL_HEADER_H
/***************************************************************************
* _ _ ____ _
* Project ___| | | | _ \| |
* / __| | | | |_) | |
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
* Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
* are also available at https://curl.se/docs/copyright.html.
*
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
* copies of the Software, and permit persons to whom the Software is
* furnished to do so, under the terms of the COPYING file.
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
* KIND, either express or implied.
*
***************************************************************************/
#include "curl_setup.h"
#if !defined(CURL_DISABLE_HTTP) && defined(USE_HEADERS_API)
struct Curl_header_store {
struct Curl_llist_element node;
char *name; /* points into 'buffer' */
char *value; /* points into 'buffer */
int request; /* 0 is the first request, then 1.. 2.. */
unsigned char type; /* CURLH_* defines */
char buffer[1]; /* this is the raw header blob */
};
/*
* Curl_headers_push() gets passed a full header to store.
*/
CURLcode Curl_headers_push(struct Curl_easy *data, const char *header,
unsigned char type);
/*
* Curl_headers_cleanup(). Free all stored headers and associated memory.
*/
CURLcode Curl_headers_cleanup(struct Curl_easy *data);
#else
#define Curl_headers_push(x,y,z) CURLE_NOT_BUILT_IN
#define Curl_headers_cleanup(x) Curl_nop_stmt
#endif
#endif /* HEADER_CURL_HEADER_H */
| 35.833333 | 77 | 0.587597 |
6524bef97ed603edae08d9dd07489eaeedea284f | 4,117 | c | C | usr.bin/sortinfo/sortinfo.c | TheSledgeHammer/2.11BSD | fe61f0b9aaa273783cd027c7b5ec77e95ead2153 | [
"BSD-3-Clause"
] | 3 | 2021-05-04T17:09:06.000Z | 2021-10-04T07:19:26.000Z | usr.bin/sortinfo/sortinfo.c | TheSledgeHammer/2.11BSD | fe61f0b9aaa273783cd027c7b5ec77e95ead2153 | [
"BSD-3-Clause"
] | null | null | null | usr.bin/sortinfo/sortinfo.c | TheSledgeHammer/2.11BSD | fe61f0b9aaa273783cd027c7b5ec77e95ead2153 | [
"BSD-3-Clause"
] | null | null | null | /* $NetBSD: sortinfo.c,v 1.6 2017/04/30 13:45:06 abhinav Exp $ */
/*-
* Copyright (c) 2015 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by Christos Zoulas.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
* ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
#if HAVE_NBTOOL_CONFIG_H
#include "nbtool_config.h"
#endif
#include <sys/cdefs.h>
__RCSID("$NetBSD: sortinfo.c,v 1.6 2017/04/30 13:45:06 abhinav Exp $");
/*
* Sort a texinfo(1) directory file.
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <err.h>
#include <util.h>
struct section {
const char *name;
char **lines;
size_t nlines;
size_t maxlines;
};
static struct section *slist;
static size_t nsections, maxsections;
static struct section *
addsection(char *line)
{
if (nsections >= maxsections) {
maxsections += 20;
slist = erealloc(slist, maxsections * sizeof(*slist));
}
slist[nsections].name = line;
slist[nsections].nlines = 0;
slist[nsections].maxlines = 20;
slist[nsections].lines = ecalloc(slist[nsections].maxlines,
sizeof(*slist[nsections].lines));
return &slist[nsections++];
}
static void
addline(struct section *s, char *line)
{
if (s->nlines == s->maxlines) {
s->maxlines += 20;
s->lines = erealloc(s->lines, s->maxlines * sizeof(*s->lines));
}
s->lines[s->nlines++] = line;
}
static int
compsection(const void *a, const void *b)
{
const struct section *sa = a, *sb = b;
return strcmp(sa->name, sb->name);
}
static int
strptrcmp(const void *a, const void *b)
{
const char *sa = *(const char * const *)a;
const char *sb = *(const char * const *)b;
return strcmp(sa, sb);
}
static void
printsection(const struct section *s)
{
size_t i;
fputc('\n', stdout);
printf("%s", s->name);
for (i = 0; i < s->nlines; i++)
printf("%s", s->lines[i]);
}
int
main(int argc, char *argv[])
{
size_t i;
ssize_t ll;
char *line;
int needsection;
struct section *s;
s = NULL;
line = NULL;
i = 0;
while ((ll = getline(&line, &i, stdin)) != -1) {
fputs(line, stdout);
if (strcmp(line, "* Menu:\n") == 0)
break;
}
if (ll == -1)
errx(EXIT_FAILURE, "Did not find menu line");
needsection = 0;
while ((ll = getline(&line, &i, stdin)) != -1)
switch (*line) {
case '\n':
needsection = 1;
continue;
case '*':
if (s == NULL)
errx(EXIT_FAILURE, "No current section");
addline(s, line);
line = NULL;
i = 0;
continue;
default:
if (needsection == 0)
errx(EXIT_FAILURE, "Already in section");
s = addsection(line);
line = NULL;
i = 0;
needsection = 0;
continue;
}
free(line);
qsort(slist, nsections, sizeof(*slist), compsection);
for (i = 0; i < nsections; i++) {
s = &slist[i];
qsort(s->lines, s->nlines, sizeof(*s->lines), strptrcmp);
printsection(&slist[i]);
}
return EXIT_SUCCESS;
}
| 24.801205 | 78 | 0.677435 |
65561ff95660a2b56890fb12e11f74f0b42fb5af | 6,326 | h | C | third_party/include/Awesomium/WebCore.h | Simmesimme/swift2d | 147a862208dee56f972361b5325009e020124137 | [
"MIT"
] | null | null | null | third_party/include/Awesomium/WebCore.h | Simmesimme/swift2d | 147a862208dee56f972361b5325009e020124137 | [
"MIT"
] | null | null | null | third_party/include/Awesomium/WebCore.h | Simmesimme/swift2d | 147a862208dee56f972361b5325009e020124137 | [
"MIT"
] | null | null | null | ///
/// @file WebCore.h
///
/// @brief The main header for the Awesomium C++ API. This header includes most
/// of the common API functions you will need.
///
/// @author
///
/// This file is a part of Awesomium, a Web UI bridge for native apps.
///
/// Website: <http://www.awesomium.com>
///
/// Copyright (C) 2014 Awesomium Technologies LLC. All rights reserved.
/// Awesomium is a trademark of Awesomium Technologies LLC.
///
#ifndef AWESOMIUM_WEB_CORE_H_
#define AWESOMIUM_WEB_CORE_H_
#pragma once
#include <Awesomium/Platform.h>
#include <Awesomium/WebConfig.h>
#include <Awesomium/WebPreferences.h>
#include <Awesomium/WebSession.h>
#include <Awesomium/WebView.h>
#include <Awesomium/Surface.h>
#include <Awesomium/ResourceInterceptor.h>
namespace Awesomium {
///
/// The severity level for a log message. See WebCore::Log
///
enum LogSeverity {
kLogSeverity_Info = 0, ///< Info message
kLogSeverity_Warning, ///< Warning message
kLogSeverity_Error, ///< Error message
kLogSeverity_ErrorReport, ///< Error report message
kLogSeverity_Fatal ///< Fatal error message, terminates application
};
///
/// @brief The core of Awesomium. You should initialize it before doing
/// anything else.
///
/// This singleton class manages the lifetime of all WebViews (see WebView)
/// and maintains useful services like the network stack, inter-process
/// messaging, and Surface creation.
///
class OSM_EXPORT WebCore {
public:
///
/// Creates the WebCore with a certain configuration. You can access the
/// singleton via instance() later. You can only do this once per-process.
///
/// @param config Global configuration settings.
///
/// @return Returns a pointer to the singleton instance.
///
static WebCore* Initialize(const WebConfig& config);
///
/// Destroys the WebCore singleton and cleans up any active WebViews.
///
static void Shutdown();
///
/// Get a pointer to the WebCore singleton.
///
/// @note Will return 0 if the WebCore has not been initialized.
///
static WebCore* instance();
///
/// Create a WebSession which will be used to store all user-data (such as
/// cookies, cache, certificates, local databases, etc).
///
/// @param path The directory path to store the data (will create the path
/// if it doesn't exist, or load it if it already exists).
/// Specify an empty string to use an in-memory store.
///
/// @return Returns a new WebSession instance that you can use with
/// any number of WebViews. You are responsible for calling
/// WebSession::Release when you are done using the session.
///
virtual WebSession* CreateWebSession(const WebString& path,
const WebPreferences& prefs) = 0;
///
/// Creates a new WebView.
///
/// @param width The initial width, in pixels.
/// @param height The initial height, in pixels.
///
/// @param session The session to use for this WebView. Pass 0 to use
/// a default, global, in-memory session.
///
/// @param type The type of WebView to create. See WebViewType for more
/// information.
///
/// @return Returns a pointer to a new WebView instance. You should call
/// WebView::Destroy when you are done with the instance.
///
virtual WebView* CreateWebView(int width,
int height,
WebSession* session = 0,
WebViewType type = kWebViewType_Offscreen) = 0;
///
/// Set the SurfaceFactory to be used to create Surfaces for all offscreen
/// WebViews from this point forward. If you call this, you are responsible
/// for destroying the passed instance after you Shutdown the WebCore.
///
/// @param factory The factory to be used to create all Surfaces. You are
/// responsible for destroying this instance after you
/// call Shutdown.
///
/// @note: If you never call this, a default BitmapSurfaceFactory will be
/// used and all Surfaces will be of type 'BitmapSurface'.
///
virtual void set_surface_factory(SurfaceFactory* factory) = 0;
///
/// Get the current SurfaceFactory instance.
///
virtual SurfaceFactory* surface_factory() const = 0;
///
/// Set the ResourceInterceptor instance.
///
/// @param interceptor The instance that will be used to intercept all
/// resources. You are responsible for destroying this
/// instance after you call Shutdown.
///
virtual void set_resource_interceptor(ResourceInterceptor* interceptor) = 0;
///
/// Get the current ResourceInterceptor instance.
///
virtual ResourceInterceptor* resource_interceptor() const = 0;
///
/// Updates the WebCore, you must call this periodically within your
/// application's main update loop. This method allows the WebCore to
/// conduct operations such as updating the Surface of each WebView,
/// destroying any WebViews that are queued for destruction, and dispatching
/// any queued WebViewListener events.
///
virtual void Update() = 0;
///
/// Log a message to the log (print to the console and log file).
///
virtual void Log(const WebString& message,
LogSeverity severity,
const WebString& file,
int line) = 0;
///
/// Get the version for this build of Awesomium.
///
virtual const char* version_string() const = 0;
///
/// Get the number of bytes actually used by our allocator (TCMalloc).
///
/// @note: Only implemented on Windows.
///
static unsigned int used_memory();
///
/// Get the number of bytes cached by our allocator (TCMalloc).
///
/// @note: Only implemented on Windows.
///
static unsigned int allocated_memory();
///
/// Force TCMalloc to release as much unused memory as possible. Reducing
/// the size of the memory pool may cause a small performance hit.
///
/// @note: Only implemented on Windows.
///
static void release_memory();
protected:
virtual ~WebCore() {}
private:
static WebCore* instance_;
};
} // namespace Awesomium
#endif // AWESOMIUM_WEB_CORE_H_
| 32.608247 | 80 | 0.650648 |
10e8e9e431f581196dee081876b86c1992682092 | 12,638 | c | C | toys/lsb/mount.c | leonardo-dong/toybox | 8b97a1fb86b06e329c77c64cdbef29d7738f5840 | [
"0BSD"
] | null | null | null | toys/lsb/mount.c | leonardo-dong/toybox | 8b97a1fb86b06e329c77c64cdbef29d7738f5840 | [
"0BSD"
] | null | null | null | toys/lsb/mount.c | leonardo-dong/toybox | 8b97a1fb86b06e329c77c64cdbef29d7738f5840 | [
"0BSD"
] | null | null | null | /* mount.c - mount filesystems
*
* Copyright 2014 Rob Landley <rob@landley.net>
*
* See http://refspecs.linuxfoundation.org/LSB_4.1.0/LSB-Core-generic/LSB-Core-generic/mount.html
*
* Note: -hV is bad spec, haven't implemented -FsLU yet
* no mtab (/proc/mounts does it) so -n is NOP.
* TODO mount -o loop,autoclear (linux git 96c5865559ce)
USE_MOUNT(NEWTOY(mount, "?O:afnrvwt:o*[-rw]", TOYFLAG_BIN|TOYFLAG_STAYROOT))
//USE_NFSMOUNT(NEWTOY(nfsmount, "?<2>2", TOYFLAG_USR|TOYFLAG_BIN|TOYFLAG_STAYROOT))
config MOUNT
bool "mount"
default y
help
usage: mount [-afFrsvw] [-t TYPE] [-o OPTION,] [[DEVICE] DIR]
Mount new filesystem(s) on directories. With no arguments, display existing
mounts.
-a Mount all entries in /etc/fstab (with -t, only entries of that TYPE)
-O Only mount -a entries that have this option
-f Fake it (don't actually mount)
-r Read only (same as -o ro)
-w Read/write (default, same as -o rw)
-t Specify filesystem type
-v Verbose
OPTIONS is a comma separated list of options, which can also be supplied
as --longopts.
Autodetects loopback mounts (a file on a directory) and bind mounts (file
on file, directory on directory), so you don't need to say --bind or --loop.
You can also "mount -a /path" to mount everything in /etc/fstab under /path,
even if it's noauto. DEVICE starting with UUID= is identified by blkid -U.
#config SMBMOUNT
# bool "smbmount"
# default n
# helo
# usage: smbmount SHARE DIR
#
# Mount smb share with user/pasword prompt as necessary.
#
#config NFSMOUNT
# bool "nfsmount"
# default n
# help
# usage: nfsmount SHARE DIR
#
# Invoke an eldrich horror from the dawn of time.
*/
#define FOR_mount
#include "toys.h"
GLOBALS(
struct arg_list *optlist;
char *type;
char *bigO;
unsigned long flags;
char *opts;
int okuser;
)
// mount.tests should check for all of this:
// TODO detect existing identical mount (procfs with different dev name?)
// TODO user, users, owner, group, nofail
// TODO -p (passfd)
// TODO -a -t notype,type2
// TODO --subtree
// TODO --rbind, -R
// TODO make "mount --bind,ro old new" work (implicit -o remount)
// TODO mount -a
// TODO mount -o remount
// TODO fstab: lookup default options for mount
// TODO implement -v
// TODO "mount -a -o remount,ro" should detect overmounts
// TODO work out how that differs from "mount -ar"
// TODO what if you --bind mount a block device somewhere (file, dir, dev)
// TODO "touch servername; mount -t cifs servername path"
// TODO mount -o remount a user mount
// TODO mount image.img sub (auto-loopback) then umount image.img
// TODO mount UUID=blah
// Strip flags out of comma separated list of options, return flags,.
static long flag_opts(char *new, long flags, char **more)
{
struct {
char *name;
long flags;
} opts[] = {
// NOPs (we autodetect --loop and --bind)
{"loop", 0}, {"bind", 0}, {"defaults", 0}, {"quiet", 0},
{"user", 0}, {"nouser", 0}, // checked in fstab, ignored in -o
{"ro", MS_RDONLY}, {"rw", ~MS_RDONLY},
{"nosuid", MS_NOSUID}, {"suid", ~MS_NOSUID},
{"nodev", MS_NODEV}, {"dev", ~MS_NODEV},
{"noexec", MS_NOEXEC}, {"exec", ~MS_NOEXEC},
{"sync", MS_SYNCHRONOUS}, {"async", ~MS_SYNCHRONOUS},
{"noatime", MS_NOATIME}, {"atime", ~MS_NOATIME},
{"norelatime", ~MS_RELATIME}, {"relatime", MS_RELATIME},
{"nodiratime", MS_NODIRATIME}, {"diratime", ~MS_NODIRATIME},
{"loud", ~MS_SILENT},
{"shared", MS_SHARED}, {"rshared", MS_SHARED|MS_REC},
{"slave", MS_SLAVE}, {"rslave", MS_SLAVE|MS_REC},
{"private", MS_PRIVATE}, {"rprivate", MS_SLAVE|MS_REC},
{"unbindable", MS_UNBINDABLE}, {"runbindable", MS_UNBINDABLE|MS_REC},
{"remount", MS_REMOUNT}, {"move", MS_MOVE},
// mand dirsync rec iversion strictatime
};
if (new) for (;;) {
char *comma = strchr(new, ',');
int i;
if (comma) *comma = 0;
// If we recognize an option, apply flags
for (i = 0; i < ARRAY_LEN(opts); i++) if (!strcasecmp(opts[i].name, new)) {
long ll = opts[i].flags;
if (ll < 0) flags &= ll;
else flags |= ll;
break;
}
// If we didn't recognize it, keep string version
if (more && i == ARRAY_LEN(opts)) {
i = *more ? strlen(*more) : 0;
*more = xrealloc(*more, i + strlen(new) + 2);
if (i) (*more)[i++] = ',';
strcpy(i+*more, new);
}
if (!comma) break;
*comma = ',';
new = comma + 1;
}
return flags;
}
// Shell out to a program, returning the output string or NULL on error
static char *tortoise(int loud, char **cmd)
{
int rc, pipe, len;
pid_t pid;
pid = xpopen(cmd, &pipe, 1);
len = readall(pipe, toybuf, sizeof(toybuf)-1);
rc = xpclose(pid, pipe);
if (!rc && len > 1) {
if (toybuf[len-1] == '\n') --len;
toybuf[len] = 0;
return toybuf;
}
if (loud) error_msg("%s failed %d", *cmd, rc);
return 0;
}
static void mount_filesystem(char *dev, char *dir, char *type,
unsigned long flags, char *opts)
{
FILE *fp = 0;
int rc = EINVAL;
char *buf = 0;
if (FLAG(f)) return;
if (getuid()) {
if (TT.okuser) TT.okuser = 0;
else {
error_msg("'%s' not user mountable in fstab", dev);
return;
}
}
if (strstart(&dev, "UUID=")) {
char *s = tortoise(0, (char *[]){"blkid", "-U", dev, 0});
if (!s) return error_msg("No uuid %s", dev);
dev = s;
}
// Autodetect bind mount or filesystem type
if (type && !strcmp(type, "auto")) type = 0;
if (flags & MS_MOVE) {
if (type) error_exit("--move with -t");
} else if (!type) {
struct stat stdev, stdir;
// file on file or dir on dir is a --bind mount.
if (!stat(dev, &stdev) && !stat(dir, &stdir)
&& ((S_ISREG(stdev.st_mode) && S_ISREG(stdir.st_mode))
|| (S_ISDIR(stdev.st_mode) && S_ISDIR(stdir.st_mode))))
{
flags |= MS_BIND;
} else fp = xfopen("/proc/filesystems", "r");
} else if (!strcmp(type, "ignore")) return;
else if (!strcmp(type, "swap"))
toys.exitval |= xrun((char *[]){"swapon", "--", dev, 0});
for (;;) {
int fd = -1, ro = 0;
// If type wasn't specified, try all of them in order.
if (fp && !buf) {
size_t i;
if (getline(&buf, &i, fp)<1) {
error_msg("%s: need -t", dev);
break;
}
type = buf;
// skip nodev devices
if (!isspace(*type)) {
free(buf);
buf = 0;
continue;
}
// trim whitespace
while (isspace(*type)) type++;
i = strlen(type);
if (i) type[i-1] = 0;
}
if (FLAG(v)) printf("try '%s' type '%s' on '%s'\n", dev, type, dir);
for (;;) {
rc = mount(dev, dir, type, flags, opts);
// Did we succeed, fail unrecoverably, or already try read-only?
if (!rc || (errno != EACCES && errno != EROFS) || (flags&MS_RDONLY))
break;
// If we haven't already tried it, use the BLKROSET ioctl to ensure
// that the underlying device isn't read-only.
if (fd == -1) {
if (FLAG(v))
printf("trying BLKROSET ioctl on '%s'\n", dev);
if (-1 != (fd = open(dev, O_RDONLY))) {
rc = ioctl(fd, BLKROSET, &ro);
close(fd);
if (!rc) continue;
}
}
fprintf(stderr, "'%s' is read-only\n", dev);
flags |= MS_RDONLY;
}
// Trying to autodetect loop mounts like bind mounts above (file on dir)
// isn't good enough because "mount -t ext2 fs.img dir" is valid, but if
// you _do_ accept loop mounts with -t how do you tell "-t cifs" isn't
// looking for a block device if it's not in /proc/filesystems yet
// because the fs module won't be loaded until you try the mount, and
// if you can't then DEVICE existing as a file would cause a false
// positive loopback mount (so "touch servername" becomes a potential
// denial of service attack...)
//
// Solution: try the mount, let the kernel tell us it wanted a block
// device, then do the loopback setup and retry the mount.
if (rc && errno == ENOTBLK) {
dev = tortoise(1, (char *[]){"losetup",
(flags&MS_RDONLY) ? "-fsr" : "-fs", dev, 0});
if (!dev) break;
continue;
}
free(buf);
buf = 0;
if (!rc) break;
if (fp && (errno == EINVAL || errno == EBUSY)) continue;
perror_msg("'%s'->'%s'", dev, dir);
break;
}
if (fp) fclose(fp);
}
void mount_main(void)
{
char *opts = 0, *dev = 0, *dir = 0, **ss;
long flags = MS_SILENT;
struct arg_list *o;
struct mtab_list *mtl, *mtl2 = 0, *mm, *remount;
// TODO
// remount
// - overmounts
// shared subtree
// -o parsed after fstab options
// test if mountpoint already exists (-o noremount?)
// First pass; just accumulate string, don't parse flags yet. (This is so
// we can modify fstab entries with -a, or mtab with remount.)
for (o = TT.optlist; o; o = o->next) comma_collate(&opts, o->arg);
if (FLAG(r)) comma_collate(&opts, "ro");
if (FLAG(w)) comma_collate(&opts, "rw");
// Treat each --option as -o option
for (ss = toys.optargs; *ss; ss++) {
char *sss = *ss;
// If you realy, really want to mount a file named "--", we support it.
if (sss[0]=='-' && sss[1]=='-' && sss[2]) comma_collate(&opts, sss+2);
else if (!dev) dev = sss;
else if (!dir) dir = sss;
// same message as lib/args.c ">2" which we can't use because --opts count
else error_exit("Max 2 arguments\n");
}
if (FLAG(a) && dir) error_exit("-a with >1 arg");
// For remount we need _last_ match (in case of overmounts), so traverse
// in reverse order. (Yes I'm using remount as a boolean for a bit here,
// the double cast is to get gcc to shut up about it.)
remount = (void *)(long)comma_scan(opts, "remount", 0);
if ((FLAG(a) && !access("/proc/mounts", R_OK)) || remount) {
mm = dlist_terminate(mtl = mtl2 = xgetmountlist(0));
if (remount) remount = mm;
}
// Do we need to do an /etc/fstab trawl?
// This covers -a, -o remount, one argument, all user mounts
if (FLAG(a) || (dev && (!dir || getuid() || remount))) {
if (!remount) dlist_terminate(mtl = xgetmountlist("/etc/fstab"));
for (mm = remount ? remount : mtl; mm; mm = (remount ? mm->prev : mm->next))
{
char *aopts = 0;
struct mtab_list *mmm = 0;
int aflags, noauto, len;
// Check for noauto and get it out of the option list. (Unknown options
// that make it to the kernel give filesystem drivers indigestion.)
noauto = comma_scan(mm->opts, "noauto", 1);
if (FLAG(a)) {
// "mount -a /path" to mount all entries under /path
if (dev) {
len = strlen(dev);
if (strncmp(dev, mm->dir, len)
|| (mm->dir[len] && mm->dir[len] != '/')) continue;
} else if (noauto) continue; // never present in the remount case
if (!mountlist_istype(mm,TT.type) || !comma_scanall(mm->opts,TT.bigO))
continue;
} else {
if (dir && strcmp(dir, mm->dir)) continue;
if (strcmp(dev, mm->device) && (dir || strcmp(dev, mm->dir))) continue;
}
// Don't overmount the same dev on the same directory
// (Unless root explicitly says to in non -a mode.)
if (mtl2 && !remount)
for (mmm = mtl2; mmm; mmm = mmm->next)
if (!strcmp(mm->dir, mmm->dir) && !strcmp(mm->device, mmm->device))
break;
// user only counts from fstab, not opts.
if (!mmm) {
TT.okuser = comma_scan(mm->opts, "user", 1);
aflags = flag_opts(mm->opts, flags, &aopts);
aflags = flag_opts(opts, aflags, &aopts);
mount_filesystem(mm->device, mm->dir, mm->type, aflags, aopts);
} // TODO else if (getuid()) error_msg("already there") ?
free(aopts);
if (!FLAG(a)) break;
}
if (CFG_TOYBOX_FREE) {
llist_traverse(mtl, free);
llist_traverse(mtl2, free);
}
if (!mm && !FLAG(a))
error_exit("'%s' not in %s", dir ? dir : dev,
remount ? "/proc/mounts" : "fstab");
// show mounts from /proc/mounts
} else if (!dev) {
for (mtl = xgetmountlist(0); mtl && (mm = dlist_pop(&mtl)); free(mm)) {
char *s = 0;
if (TT.type && strcmp(TT.type, mm->type)) continue;
if (*mm->device == '/') s = xabspath(mm->device, 0);
xprintf("%s on %s type %s (%s)\n",
s ? s : mm->device, mm->dir, mm->type, mm->opts);
free(s);
}
// two arguments
} else {
char *more = 0;
flags = flag_opts(opts, flags, &more);
mount_filesystem(dev, dir, TT.type, flags, more);
if (CFG_TOYBOX_FREE) free(more);
}
}
| 31.051597 | 97 | 0.588226 |
e792beb9e19004988f5a526e9bd012304f012249 | 1,333 | h | C | core/common/id.h | plonk/peercast-0.1218 | 30fc2401dc798336429a979fe7aaca8883e63ed9 | [
"PSF-2.0",
"Apache-2.0",
"OpenSSL",
"MIT"
] | 28 | 2017-04-30T13:56:13.000Z | 2022-03-20T06:54:37.000Z | core/common/id.h | plonk/peercast-0.1218 | 30fc2401dc798336429a979fe7aaca8883e63ed9 | [
"PSF-2.0",
"Apache-2.0",
"OpenSSL",
"MIT"
] | 72 | 2017-04-25T03:42:58.000Z | 2021-12-04T06:35:28.000Z | core/common/id.h | plonk/peercast-0.1218 | 30fc2401dc798336429a979fe7aaca8883e63ed9 | [
"PSF-2.0",
"Apache-2.0",
"OpenSSL",
"MIT"
] | 12 | 2017-04-16T06:25:24.000Z | 2021-07-07T13:28:27.000Z | #ifndef _ID_H
#define _ID_H
// ---------------------------------------------------
class IDString
{
private:
enum
{
LENGTH = 31
};
char data[LENGTH+1];
public:
IDString(const char *id, int cnt)
{
if (cnt >= LENGTH)
cnt=LENGTH;
int i;
for (i=0; i<cnt; i++)
data[i]=id[i];
data[i]=0;
}
operator const char *()
{
return str();
}
const char *str() { return data; }
};
// ---------------------------------------------------
class ID4
{
private:
union
{
int iv;
char cv[4];
};
public:
ID4()
: iv( 0 )
{
}
ID4(int i)
:iv(i)
{
}
ID4(const char *id)
:iv(0)
{
if (id)
for (int i=0; i<4; i++)
if ((cv[i]=id[i])==0)
break;
}
void clear()
{
iv = 0;
}
operator int() const
{
return iv;
}
int operator == (ID4 id) const
{
return iv==id.iv;
}
int operator != (ID4 id) const
{
return iv!=id.iv;
}
bool isSet() const { return iv!=0; }
int getValue() const { return iv; }
IDString getString() const { return IDString(cv, 4); }
void *getData() { return cv; }
};
#endif
| 14.648352 | 61 | 0.381095 |
a29f58472040e0e289bacbf9736d7a1d08bf11f6 | 3,494 | c | C | lex/header.c | aslettemark/kencc-cross | 37dc0933c2adfa414d9b1612c43fd7f4791327d0 | [
"MIT"
] | 20 | 2015-03-02T14:33:41.000Z | 2022-03-20T03:29:21.000Z | lex/header.c | aslettemark/kencc-cross | 37dc0933c2adfa414d9b1612c43fd7f4791327d0 | [
"MIT"
] | 1 | 2020-09-02T13:03:52.000Z | 2020-09-02T13:03:52.000Z | lex/header.c | aslettemark/kencc-cross | 37dc0933c2adfa414d9b1612c43fd7f4791327d0 | [
"MIT"
] | 4 | 2020-08-28T10:21:35.000Z | 2021-09-23T20:42:24.000Z | # include "ldefs.h"
extern int nine;
void
phead1(void)
{
Bprint(&fout,"typedef unsigned char Uchar;\n");
if (nine) {
Bprint(&fout,"# include <u.h>\n");
Bprint(&fout,"# include <libc.h>\n");
}
else {
Bprint(&fout,"# include <lib9.h>\n");
}
Bprint(&fout,"# include <bio.h>\n");
Bprint(&fout, "# define U(x) x\n");
Bprint(&fout, "# define NLSTATE yyprevious=YYNEWLINE\n");
Bprint(&fout,"# define BEGIN yybgin = yysvec + 1 +\n");
Bprint(&fout,"# define INITIAL 0\n");
Bprint(&fout,"# define YYLERR yysvec\n");
Bprint(&fout,"# define YYSTATE (yyestate-yysvec-1)\n");
Bprint(&fout,"# define YYOPTIM 1\n");
# ifdef DEBUG
Bprint(&fout,"# define LEXDEBUG 1\n");
# endif
Bprint(&fout,"# define YYLMAX 200\n");
Bprint(&fout,
"# define unput(c) {yytchar= (c);if(yytchar=='\\n')yylineno--;*yysptr++=yytchar;}\n");
Bprint(&fout,"# define yymore() (yymorfg=1)\n");
Bprint(&fout,"# define ECHO fprintf(yyout, \"%%s\",yytext)\n");
Bprint(&fout,"# define REJECT { nstr = yyreject(); goto yyfussy;}\n");
Bprint(&fout,"int yyleng; extern char yytext[];\n");
Bprint(&fout,"int yymorfg;\n");
Bprint(&fout,"extern Uchar *yysptr, yysbuf[];\n");
Bprint(&fout,"int yytchar;\n");
/* Bprint(&fout,"FILE *yyin = stdin, *yyout = stdout;\n"); */
Bprint(&fout,"Biobuf *yyin, *yyout;\n");
Bprint(&fout,"extern int yylineno;\n");
Bprint(&fout,"struct yysvf { \n");
Bprint(&fout,"\tstruct yywork *yystoff;\n");
Bprint(&fout,"\tstruct yysvf *yyother;\n");
Bprint(&fout,"\tint *yystops;};\n");
Bprint(&fout,"struct yysvf *yyestate;\n");
Bprint(&fout,"extern struct yysvf yysvec[], *yybgin;\n");
Bprint(&fout,"int yylook(void), yywrap(void), yyback(int *, int);\n");
if(nine) {
Bprint(&fout,
"int infd, outfd;\n"
"\n"
"void\n"
"output(char c)\n"
"{\n"
" int rv;\n"
" if ((rv = write(outfd, &c, 1)) < 0)\n"
" sysfatal(\"output: %%r\");\n"
" if (rv == 0)\n"
" sysfatal(\"output: EOF?\");\n"
"}\n"
"\n"
"int\n"
"input(void)\n"
"{\n"
" if(yysptr > yysbuf)\n"
" yytchar = U(*--yysptr);\n"
" else {\n"
" int rv;\n"
" if ((rv = read(infd, &yytchar, 1)) < 0)\n"
" sysfatal(\"input: %%r\");\n"
" if (rv == 0)\n"
" return 0;\n"
" }\n"
" if (yytchar == '\\n')\n"
" yylineno++;\n"
" return yytchar;\n"
"}\n");
}
else {
Bprint(&fout,"# define output(c) Bputc(c,yyout)\n");
Bprint(&fout, "%s%d%s\n",
"# define input() (((yytchar=yysptr>yysbuf?U(*--yysptr):Bgetc(yyin))==",
'\n',
"?(yylineno++,yytchar):yytchar)==EOF?0:yytchar)");
}
}
void
phead2(void)
{
Bprint(&fout,"while((nstr = yylook()) >= 0){\n");
Bprint(&fout,"goto yyfussy; yyfussy: switch(nstr){\n");
Bprint(&fout,"case 0:\n");
Bprint(&fout,"if(yywrap()) return(0); break;\n");
}
void
ptail(void)
{
if(!pflag){
Bprint(&fout,"case -1:\nbreak;\n"); /* for reject */
Bprint(&fout,"default:\n");
Bprint(&fout,"fprintf(yyout,\"bad switch yylook %%d\",nstr);\n");
Bprint(&fout,"}} return(0); }\n");
Bprint(&fout,"/* end of yylex */\n");
}
pflag = 1;
}
void
statistics(void)
{
fprint(errorf,"%d/%d nodes(%%e), %d/%d positions(%%p), %d/%d (%%n), %ld transitions\n",
tptr, treesize, (int)(nxtpos-positions), maxpos, stnum+1, nstates, rcount);
fprint(errorf, ", %d/%d packed char classes(%%k)", (int)(pcptr-pchar), pchlen);
fprint(errorf,", %d/%d packed transitions(%%a)",nptr, ntrans);
fprint(errorf, ", %d/%d output slots(%%o)", yytop, outsize);
fprint(errorf,"\n");
}
| 29.116667 | 88 | 0.571551 |
315fec850a2629c3fd86c683bb718ac8565d5539 | 272 | h | C | HNReader iOS/HNLoadMoreTableViewCell.h | andyshep/HNReader | 0477abc9dce39b83310d06a442b66bcbfefc8d1d | [
"MIT"
] | 2 | 2015-12-01T03:27:07.000Z | 2019-03-17T08:23:56.000Z | HNReader iOS/HNLoadMoreTableViewCell.h | alex-ross/HNReader | 0477abc9dce39b83310d06a442b66bcbfefc8d1d | [
"MIT"
] | null | null | null | HNReader iOS/HNLoadMoreTableViewCell.h | alex-ross/HNReader | 0477abc9dce39b83310d06a442b66bcbfefc8d1d | [
"MIT"
] | 2 | 2015-11-07T09:13:35.000Z | 2018-04-07T23:29:47.000Z | //
// HNLoadMoreTableViewCell.h
// HNReader
//
// Created by Andrew Shepard on 10/4/11.
// Copyright 2011 Andrew Shepard. All rights reserved.
//
@interface HNLoadMoreTableViewCell : UITableViewCell
@property (nonatomic, weak) IBOutlet UILabel *loadMoreLabel;
@end
| 19.428571 | 60 | 0.746324 |
c8e91918a131c846e90d628ba8e152007a799c03 | 1,929 | c | C | src/runtime/cgo/linux_syscall.c | 3noch/go | c45d78013f92a29285cd81488eb7a16819f01e18 | [
"BSD-3-Clause"
] | 3 | 2018-10-23T09:42:32.000Z | 2021-04-13T08:34:49.000Z | src/runtime/cgo/linux_syscall.c | 3noch/go | c45d78013f92a29285cd81488eb7a16819f01e18 | [
"BSD-3-Clause"
] | 5 | 2020-11-06T22:12:06.000Z | 2022-01-12T14:36:07.000Z | src/runtime/cgo/linux_syscall.c | 3noch/go | c45d78013f92a29285cd81488eb7a16819f01e18 | [
"BSD-3-Clause"
] | 3 | 2021-12-29T12:13:05.000Z | 2022-01-11T22:22:06.000Z | // Copyright 2019 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build linux
#ifndef _GNU_SOURCE // setres[ug]id() API.
#define _GNU_SOURCE
#endif
#include <grp.h>
#include <sys/types.h>
#include <sys/unistd.h>
#include <errno.h>
#include "libcgo.h"
/*
* Assumed POSIX compliant libc system call wrappers. For linux, the
* glibc/nptl/setxid mechanism ensures that POSIX semantics are
* honored for all pthreads (by default), and this in turn with cgo
* ensures that all Go threads launched with cgo are kept in sync for
* these function calls.
*/
// argset_t matches runtime/cgocall.go:argset.
typedef struct {
uintptr_t* args;
uintptr_t retval;
} argset_t;
// libc backed posix-compliant syscalls.
#define SET_RETVAL(fn) \
uintptr_t ret = (uintptr_t) fn ; \
if (ret == -1) { \
x->retval = (uintptr_t) errno; \
} else \
x->retval = ret
void
_cgo_libc_setegid(argset_t* x) {
SET_RETVAL(setegid((gid_t) x->args[0]));
}
void
_cgo_libc_seteuid(argset_t* x) {
SET_RETVAL(seteuid((uid_t) x->args[0]));
}
void
_cgo_libc_setgid(argset_t* x) {
SET_RETVAL(setgid((gid_t) x->args[0]));
}
void
_cgo_libc_setgroups(argset_t* x) {
SET_RETVAL(setgroups((size_t) x->args[0], (const gid_t *) x->args[1]));
}
void
_cgo_libc_setregid(argset_t* x) {
SET_RETVAL(setregid((gid_t) x->args[0], (gid_t) x->args[1]));
}
void
_cgo_libc_setresgid(argset_t* x) {
SET_RETVAL(setresgid((gid_t) x->args[0], (gid_t) x->args[1],
(gid_t) x->args[2]));
}
void
_cgo_libc_setresuid(argset_t* x) {
SET_RETVAL(setresuid((uid_t) x->args[0], (uid_t) x->args[1],
(uid_t) x->args[2]));
}
void
_cgo_libc_setreuid(argset_t* x) {
SET_RETVAL(setreuid((uid_t) x->args[0], (uid_t) x->args[1]));
}
void
_cgo_libc_setuid(argset_t* x) {
SET_RETVAL(setuid((uid_t) x->args[0]));
}
| 22.430233 | 72 | 0.672369 |
bd4cd539fcf677dc48b795898dd0b5340b17ab0a | 2,466 | h | C | src/cborDecoder.h | TU-Darmstadt-APQ/Library-Arduino-Cbor | 548feacf0ff2fb0f6d43efd4d8b9ee8f8bd1ac27 | [
"Apache-2.0"
] | null | null | null | src/cborDecoder.h | TU-Darmstadt-APQ/Library-Arduino-Cbor | 548feacf0ff2fb0f6d43efd4d8b9ee8f8bd1ac27 | [
"Apache-2.0"
] | 4 | 2018-11-16T21:04:45.000Z | 2018-11-16T21:09:43.000Z | src/cborDecoder.h | TU-Darmstadt-APQ/Library-Arduino-Cbor | 548feacf0ff2fb0f6d43efd4d8b9ee8f8bd1ac27 | [
"Apache-2.0"
] | 2 | 2018-11-16T17:44:39.000Z | 2019-04-16T18:32:20.000Z | /*
Copyright 2014-2015 Stanislav Ovsyannikov
Copyright 2018 Patrick Baus
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
#ifndef CBORDECODER_H
#define CBORDECODER_H
#include <stdint.h> // uint8_t, etc.
#include <stdlib.h> // size_t
typedef enum {
STATE_TYPE,
STATE_PINT,
STATE_NINT,
STATE_BYTES_SIZE,
STATE_BYTES_DATA,
STATE_STRING_SIZE,
STATE_STRING_DATA,
STATE_ARRAY,
STATE_MAP,
STATE_TAG,
STATE_FLOAT,
STATE_ERROR
} CborReaderState;
class CborInput {
public:
CborInput(void *data, const size_t size);
bool hasBytes(const size_t count);
uint8_t getByte();
uint16_t getShort();
uint32_t getInt();
uint64_t getLong();
void getBytes(void *to, const size_t count);
private:
unsigned char *data;
size_t size;
size_t offset;
};
class CborListener {
public:
virtual void OnInteger(const int32_t value) = 0;
virtual void OnBoolean(const bool value) = 0;
virtual void OnByteString(unsigned char *data, const size_t size) = 0;
virtual void OnTextString(char *data, const size_t size) = 0;
virtual void OnArray(const size_t size) = 0;
virtual void OnMap(const size_t size) = 0;
virtual void OnHalf(const uint16_t /*value*/) {};
virtual void OnFloat(const float value) = 0;
virtual void OnDouble(const double value) = 0;
virtual void OnTag(const uint32_t /*tag*/) {};
virtual void OnExtraTag(const uint64_t /*tag*/) {}
virtual void OnNull() {};
virtual void OnUndefined() {};
virtual void OnExtraInteger(const uint64_t /*value*/, const int8_t /*sign*/) {}
virtual void OnError(const char *error) = 0;
};
class CborReader {
public:
CborReader(CborInput &input);
CborReader(CborInput &input, CborListener &listener);
void Run();
void SetListener(CborListener &listener);
private:
CborListener *listener;
CborInput *input;
CborReaderState state;
uint8_t currentLength;
};
#endif // CBORDECODER_H
| 27.4 | 83 | 0.70884 |
bd58f7a5838b5515da4871708542aa685ae0fb9d | 202 | h | C | include/data.h | infoforcefeed/OlegDB | 4291acb715b9f9eb41d0dcf5bf2e19b8ea882e62 | [
"MIT"
] | 103 | 2015-01-19T03:25:00.000Z | 2022-02-19T02:16:24.000Z | include/data.h | infoforcefeed/OlegDB | 4291acb715b9f9eb41d0dcf5bf2e19b8ea882e62 | [
"MIT"
] | 45 | 2015-01-12T01:38:55.000Z | 2020-04-24T07:59:13.000Z | include/data.h | infoforcefeed/OlegDB | 4291acb715b9f9eb41d0dcf5bf2e19b8ea882e62 | [
"MIT"
] | 17 | 2015-01-16T18:55:20.000Z | 2021-04-21T09:02:05.000Z | #pragma once
#include <stdlib.h>
/* Datatype used in the aol for storing string data. */
typedef struct ol_string {
char *data;
size_t dlen;
} ol_string;
void ol_string_free(ol_string** str); | 18.363636 | 55 | 0.707921 |
aebc372d2c91e26cfca2922f4466be3a5e4d4d7c | 2,593 | h | C | src/include/daos/drpc.h | Nasf-Fan/daos | cdc0786aefadebdd31a5b650d858f0a0391ca263 | [
"Apache-2.0"
] | null | null | null | src/include/daos/drpc.h | Nasf-Fan/daos | cdc0786aefadebdd31a5b650d858f0a0391ca263 | [
"Apache-2.0"
] | null | null | null | src/include/daos/drpc.h | Nasf-Fan/daos | cdc0786aefadebdd31a5b650d858f0a0391ca263 | [
"Apache-2.0"
] | null | null | null | /*
* (C) Copyright 2018-2019 Intel Corporation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* GOVERNMENT LICENSE RIGHTS-OPEN SOURCE SOFTWARE
* The Government's rights to use, modify, reproduce, release, perform, display,
* or disclose this software are subject to the terms of the Apache License as
* provided in Contract No. 8F-30005.
* Any reproduction of computer software, computer software documentation, or
* portions thereof marked with this legend must also reproduce the markings.
*/
#ifndef __DAOS_DRPC_H__
#define __DAOS_DRPC_H__
#include <daos/drpc.pb-c.h>
#include <daos/common.h>
/*
* Using a packetsocket over the unix domain socket means that we receive
* a whole message at a time without knowing its size. So for this reason
* we need to restrict the maximum message size so we can preallocate a
* buffer to put all of the information in. This value is also defined in
* the corresponding golang file domain_socket_server.go. If changed here
* it must be changed in that file as well
*/
#define UNIXCOMM_MAXMSGSIZE 16384
struct unixcomm {
int fd; /** File descriptor of the unix domain socket */
int flags; /** Flags set on unix domain socket */
};
typedef void (*drpc_handler_t)(Drpc__Call *, Drpc__Response **);
/**
* dRPC connection context. This includes all details needed to communicate
* on the dRPC channel.
*/
struct drpc {
struct unixcomm *comm; /** unix domain socket communication context */
int sequence; /** sequence number of latest message sent */
/**
* Handler for messages received by a listening drpc context.
* For client contexts, this is NULL.
*/
drpc_handler_t handler;
};
enum rpcflags {
R_SYNC = 1
};
int drpc_call(struct drpc *ctx, int flags, Drpc__Call *msg,
Drpc__Response **resp);
struct drpc *drpc_connect(char *sockaddr);
struct drpc *drpc_listen(char *sockaddr, drpc_handler_t handler);
bool drpc_is_valid_listener(struct drpc *ctx);
struct drpc *drpc_accept(struct drpc *listener_ctx);
int drpc_recv(struct drpc *ctx);
int drpc_close(struct drpc *ctx);
#endif /* __DAOS_DRPC_H__ */
| 34.118421 | 80 | 0.748168 |
834b2db6c45b5401dcaaccba298b8f5f47b86ec4 | 4,932 | h | C | PortableGraphicsToolkit/src/pgt/utils/containers/DArray.h | chris-b-h/PortableGraphicsToolkit | 85862a6c5444cf9689821ff23952b56a01ff5835 | [
"Zlib"
] | 3 | 2017-07-12T20:18:51.000Z | 2017-07-20T15:02:58.000Z | PortableGraphicsToolkit/src/pgt/utils/containers/DArray.h | chris-b-h/PortableGraphicsToolkit | 85862a6c5444cf9689821ff23952b56a01ff5835 | [
"Zlib"
] | null | null | null | PortableGraphicsToolkit/src/pgt/utils/containers/DArray.h | chris-b-h/PortableGraphicsToolkit | 85862a6c5444cf9689821ff23952b56a01ff5835 | [
"Zlib"
] | 1 | 2019-04-03T01:19:42.000Z | 2019-04-03T01:19:42.000Z | #pragma once
#include <pgt/io/logger/logger.h>
namespace pgt {
// A dynamically resizing Array of a templated type.
// It does NOT support const types.
// It does NOT have ACCESS_VIOLATION protection on pop operations for
// performance reason. Use with caution (as always :)) The number of elements it
// grows once the current capacity is reached can be customized by changing
// GROW_STEPS. when not changed, the array size will be doubled (pretty
// aggressive i know)
#define PGT_CARRAY_GROWTH_MULT_2 -1
#define PGT_CARRAY_GROWTH_MULT_1_5 -2
template <typename TYPE, int GROW_STEPS = PGT_CARRAY_GROWTH_MULT_2>
class DArray {
protected:
TYPE* _start;
TYPE* _last;
TYPE* _end;
private:
static const int START_CAPACITY = 4;
void resize(int size_new)
{
TYPE* new_array = (TYPE*)realloc(_start, size_new * sizeof(TYPE));
PGT_ASSERT(new_array != NULL, "MEMORY REALLOCATION FAILED");
_end = new_array + size_new - 1;
_last = _last - _start + new_array;
_start = new_array;
}
void grow()
{
switch (GROW_STEPS) {
case PGT_CARRAY_GROWTH_MULT_2:
resize(capacity() << 1);
break;
case PGT_CARRAY_GROWTH_MULT_1_5:
resize((int)(capacity() * 1.5));
break;
default:
resize(capacity() + GROW_STEPS);
break;
}
}
public:
DArray(int capacity = START_CAPACITY)
{
_start = (TYPE*)malloc(sizeof(TYPE) * capacity);
PGT_ASSERT(_start != NULL, "MEMORY ALLOCATION FAILED");
_end = _start + (capacity - 1);
_last = _start - 1;
}
~DArray()
{
free(_start);
}
public:
void reserve(int space_min)
{
if (capacity() < space_min) resize(space_min);
}
void push_back_unsafe(const TYPE& element)
{
_last++;
*_last = element;
}
void push_back(const TYPE& element)
{
if (_last == _end) grow();
_last++;
*_last = element;
}
void set_capacity(int capacity)
{
if (size() > capacity) {
_last = _start + capacity - 1;
}
resize(capacity);
}
// shrinks array to required capacity (min 1)
void shrink_to_fit()
{
int s_req = size();
if (s_req < 1) s_req = 1;
resize(s_req);
}
//!! this changes the order of the elements by simply inserting the last
//! element into the
//! free slot.
void remove_fast_at(int index, int count = 1)
{
memcpy(_start + index, _last - count, sizeof(TYPE) * count);
_last -= count;
}
void remove_at(int index, int count = 1)
{
memmove(_start + index, _start + index + count,
sizeof(TYPE) * (size() - index - count));
_last -= count;
}
void emplace_at(int index, TYPE element)
{
if (_last == _end) grow();
memmove(_start + index + 1, _start + index,
sizeof(TYPE) * (size() - index));
*(_start + index) = element;
_last++;
}
void emplace_at(int index, TYPE* element, int count)
{
if (size() + count > capacity()) resize(capacity() + count);
memmove(_start + index + count, _start + index,
sizeof(TYPE) * (size() - index));
memcpy(_start + index, element, count * sizeof(TYPE));
_last += count;
}
void swap(int i_left, int i_right)
{
TYPE& vl = get(i_left);
TYPE& vr = get(i_right);
TYPE temp = vl;
vl = vr;
vr = temp;
}
inline void clear()
{
_last = _start - 1;
}
inline void pop_back()
{
_last--;
}
inline void pop_back(int count)
{
_last -= count;
}
inline TYPE& get(int index) const
{
return *(_start + index);
}
inline TYPE& operator[](int index) const
{
return get(index);
}
inline TYPE& back() const
{
return *_last;
}
inline TYPE* begin() const
{
return _start;
}
inline TYPE* end() const
{
return _last + 1;
}
inline const int capacity() const
{
return _end - _start + 1;
};
inline const int size() const
{
return _last - _start + 1;
};
};
}
| 29.183432 | 80 | 0.486415 |
264fe5a5cd4bd74eabdb44f10d88bb57033b2878 | 528 | h | C | ucore_OS/kern/sync/sync_base.h | zrafa/MIPS32-Release-1-CPU-System-Emulator | 2daa49e3f24711bda74f2b8693c7dc1573e2cd2b | [
"MIT"
] | null | null | null | ucore_OS/kern/sync/sync_base.h | zrafa/MIPS32-Release-1-CPU-System-Emulator | 2daa49e3f24711bda74f2b8693c7dc1573e2cd2b | [
"MIT"
] | null | null | null | ucore_OS/kern/sync/sync_base.h | zrafa/MIPS32-Release-1-CPU-System-Emulator | 2daa49e3f24711bda74f2b8693c7dc1573e2cd2b | [
"MIT"
] | null | null | null | #ifndef __KERN_SYNC_SYNC_BASE_H__
#define __KERN_SYNC_SYNC_BASE_H__
#include <defs.h>
#include <mips32s.h>
#include <intr.h>
static inline bool
__intr_save(void) {
if (mfc0(CP0_Status) & 0x00000001) {
intr_disable();
return 1;
}
return 0;
}
static inline void
__intr_restore(bool flag) {
if (flag) {
intr_enable();
}
}
#define local_intr_save(x) do { x = __intr_save(); } while (0)
#define local_intr_restore(x) __intr_restore(x);
#endif /* !__KERN_SYNC_SYNC_BASE_H__ */
| 18.206897 | 67 | 0.664773 |
ebf4f09718f373790931b118e003375b62296553 | 8,694 | h | C | base_c/include/embb/base/c/atomic.h | bufferoverflow/embb | 1ff7f601d8e903355e83d766029a3e6164f31750 | [
"BSD-2-Clause"
] | 1 | 2020-08-17T11:06:50.000Z | 2020-08-17T11:06:50.000Z | base_c/include/embb/base/c/atomic.h | bufferoverflow/embb | 1ff7f601d8e903355e83d766029a3e6164f31750 | [
"BSD-2-Clause"
] | null | null | null | base_c/include/embb/base/c/atomic.h | bufferoverflow/embb | 1ff7f601d8e903355e83d766029a3e6164f31750 | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright (c) 2014, Siemens AG. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef EMBB_BASE_C_ATOMIC_H_
#define EMBB_BASE_C_ATOMIC_H_
/**
* \defgroup C_BASE_ATOMIC Atomic
*
* \ingroup C_BASE
*
* Atomic operations.
*
* \anchor general_desc_atomic_base
* Atomic operations are not directly applied to fundamental types. Instead,
* there is for each character and integer type an associated atomic type that
* has the same bit width (if the target CPU supports atomic operations on
* that type):
*
* Fundamental type | Atomic type
* :------------------| :----------------------------------
* char | embb_atomic_char
* short | embb_atomic_short
* unsigned short | embb_atomic_unsigned_short
* int | embb_atomic_int
* unsigned int | embb_atomic_unsigned_int
* long | embb_atomic_long
* unsigned long | embb_atomic_unsigned_long
* long long | embb_atomic_long_long
* unsigned long long | embb_atomic_unsigned_long_long
* intptr_t | embb_atomic_intptr_t
* uintptr_t | embb_atomic_uintptr_t
* size_t | embb_atomic_size_t
* ptrdiff_t | embb_atomic_ptrdiff_t
* uintmax_t | embb_atomic_uintmax_t
*
* Each of the atomic operations described in the following can be applied to
* the types listed above. However, to avoid unnecessary redundancy, we document
* them only once in a generic way. The keyword TYPE serves as a placeholder
* which has to be replaced by the concrete type (e.g., int). If the fundamental
* type contains spaces (e.g., unsigned int), "_" is used for concatenation
* (e.g. unsigned_int).
*
* Usage example:
* --------------
*
* Store the value \c 5 in an atomic \c "unsigned int" variable.
*
* Step 1 (declare atomic variable):
* \code
* embb_atomic_unsigned_int my_var;
* \endcode
* Step 2 (store the value):
* \code
* embb_atomic_store_unsigned_int( &my_var, 5 );
* \endcode
*
* The current implementation guarantees sequential consistency (full fences)
* for all atomic operations. Relaxed memory models may be added in the future.
*/
#ifdef DOXYGEN
/**
* Computes the logical "and" of the value stored in \p variable and \c value.
*
* The result is stored in \p variable.
*
* \see \ref general_desc_atomic_base "Detailed description" for general
* information and the meaning of \b TYPE.
*
* \ingroup C_BASE_ATOMIC
* \waitfree
*/
EMBB_INLINE void embb_atomic_and_assign_TYPE(
embb_atomic_TYPE* variable,
/**< [IN,OUT] Pointer to atomic variable which serves as left-hand side for
the "and" operation and is used to store the result. */
TYPE value
/** [IN] Right-hand side of "and" operation, passed by value */
);
/**
* Compares \p variable with \p expected and, if equivalent, swaps its value
* with \p desired.
*
* Stores \p desired in \p variable if the value of \p variable is equivalent
* to the value of \p expected. Otherwise, stores the value of \p variable in
* \p expected.
*
* \return != 0 if the values of \p variable and \p expected were equivalent \n
* 0 otherwise
*
* \see \ref general_desc_atomic_base "Detailed description" for general
* information and the meaning of \b TYPE.
*
* \ingroup C_BASE_ATOMIC
* \waitfree
*/
EMBB_INLINE int embb_atomic_compare_and_swap_TYPE(
embb_atomic_TYPE* variable,
/**< [IN,OUT] Pointer to atomic variable */
TYPE* expected,
/**< [IN,OUT] Pointer to expected value */
TYPE desired
/**< [IN] Value to be stored in \p variable */
);
/**
* Adds \p value to \p variable and returns its old value.
*
* \return The value before the operation
*
* \see \ref general_desc_atomic_base "Detailed description" for general
* information and the meaning of \b TYPE.
*
* \ingroup C_BASE_ATOMIC
* \waitfree
*/
EMBB_INLINE TYPE embb_atomic_fetch_and_add_TYPE(
embb_atomic_TYPE* variable,
/**< [IN,OUT] Pointer to atomic variable*/
TYPE value
/**< [IN] The value to be added to \p variable (can be negative) */
);
/**
* Loads the value of \p variable and returns it.
*
* \return The value of the atomic variable.
*
* \see \ref general_desc_atomic_base "Detailed description" for general
* information and the meaning of \b TYPE.
*
* \ingroup C_BASE_ATOMIC
* \waitfree
*/
EMBB_INLINE TYPE embb_atomic_load_TYPE(
const embb_atomic_TYPE* variable
/**< [IN] Pointer to atomic variable */
);
/**
* Enforces a memory barrier (full fence).
*
* \ingroup C_BASE_ATOMIC
* \waitfree
*/
EMBB_INLINE void embb_atomic_memory_barrier();
/**
* Computes the logical "or" of the value stored in \p variable and \c value.
*
* The result is stored in \p variable.
*
* \see \ref general_desc_atomic_base "Detailed description" for general
* information and the meaning of \b TYPE.
*
* \ingroup C_BASE_ATOMIC
* \waitfree
*/
EMBB_INLINE void embb_atomic_or_assign_TYPE(
embb_atomic_TYPE* variable,
/**< [IN,OUT] Pointer to atomic variable which serves as left-hand side for
the "or" operation and is used to store the result. */
TYPE value
/** [IN] Right-hand side of "or" operation, passed by value */
);
/**
* Stores \p value in \p variable.
*
* \see \ref general_desc_atomic_base "Detailed description" for general
* information and the meaning of \b TYPE.
*
* \ingroup C_BASE_ATOMIC
* \waitfree
*/
EMBB_INLINE void embb_atomic_store_TYPE(
embb_atomic_TYPE* variable,
/**< [IN,OUT] Pointer to atomic variable */
int value
/**< [IN] Value to be stored */
);
/**
* Swaps the current value of \p variable with \p value.
*
* \return The old value of \p variable
*
* \see \ref general_desc_atomic_base "Detailed description" for general
* information and the meaning of \b TYPE.
*
* \ingroup C_BASE_ATOMIC
* \waitfree
*/
EMBB_INLINE TYPE embb_atomic_swap_TYPE(
embb_atomic_TYPE* variable,
/**< [IN,OUT] Pointer to atomic variable whose value is swapped */
TYPE value
/** [IN] Value which will be stored in the atomic variable */
);
/**
* Computes the logical "xor" of the value stored in \p variable and \c value.
*
* The result is stored in \p variable.
*
* \see \ref general_desc_atomic_base "Detailed description" for general
* information and the meaning of \b TYPE.
*
* \ingroup C_BASE_ATOMIC
* \waitfree
*/
EMBB_INLINE void embb_atomic_xor_assign_TYPE(
embb_atomic_TYPE* variable,
/**< [IN,OUT] Pointer to atomic variable which serves as left-hand side for
the "xor" operation and is used to store the result. */
TYPE value
/** [IN] Right-hand side of "xor" operation, passed by value */
);
#endif
#ifdef __cplusplus
extern "C" {
#endif
#include <embb/base/c/internal/platform.h>
#include <embb/base/c/internal/atomic/atomic_sizes.h>
#include <embb/base/c/internal/atomic/atomic_variables.h>
#include <embb/base/c/internal/macro_helper.h>
#include <embb/base/c/internal/atomic/load.h>
#include <embb/base/c/internal/atomic/and_assign.h>
#include <embb/base/c/internal/atomic/store.h>
#include <embb/base/c/internal/atomic/or_assign.h>
#include <embb/base/c/internal/atomic/xor_assign.h>
#include <embb/base/c/internal/atomic/swap.h>
#include <embb/base/c/internal/atomic/fetch_and_add.h>
#include <embb/base/c/internal/atomic/compare_and_swap.h>
#include <embb/base/c/internal/atomic/memory_barrier.h>
#ifdef __cplusplus
}
#endif
#endif //EMBB_BASE_C_ATOMIC_H_
| 32.2 | 80 | 0.710605 |
03cbbc4d02e9513d5876837a255a14c44dce6cb7 | 6,074 | h | C | src/mineserver/world.h | Mineserver/mineserver2 | c9778daa0cbe72993f54c27e264664c489df2414 | [
"BSD-3-Clause"
] | 10 | 2015-03-25T18:13:04.000Z | 2021-07-01T03:30:51.000Z | src/mineserver/world.h | Mineserver/mineserver2 | c9778daa0cbe72993f54c27e264664c489df2414 | [
"BSD-3-Clause"
] | 1 | 2020-01-20T16:22:35.000Z | 2020-01-20T17:52:11.000Z | src/mineserver/world.h | Mineserver/mineserver2 | c9778daa0cbe72993f54c27e264664c489df2414 | [
"BSD-3-Clause"
] | 1 | 2016-08-02T00:57:26.000Z | 2016-08-02T00:57:26.000Z | /*
Copyright (c) 2011, The Mineserver Project
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of the The Mineserver Project 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 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 MINESERVER_WORLD_H
#define MINESERVER_WORLD_H
#include <utility>
#include <boost/shared_ptr.hpp>
#include <boost/make_shared.hpp>
#include <mineserver/world/chunk.h>
#include <mineserver/world/generator.h>
namespace Mineserver
{
struct WorldPosition
{
double x;
double y;
double z;
WorldPosition(double _x, double _y, double _z) : x(_x),y(_y),z(_z) {}
WorldPosition() : x(0),y(0),z(0) {}
WorldPosition(const WorldPosition& other) : x(other.x),y(other.y),z(other.z) {}
Mineserver::WorldPosition& operator=(const Mineserver::WorldPosition& other)
{
if (this != &other) {
x = other.x;
y = other.y;
z = other.z;
}
return *this;
}
};
struct WorldBlockPosition
{
int32_t x;
int16_t y;
int32_t z;
WorldBlockPosition(int32_t _x, int16_t _y, int32_t _z) : x(_x),y(_y),z(_z) {}
WorldBlockPosition() : x(0),y(0),z(0) {}
WorldBlockPosition(const WorldBlockPosition& other) : x(other.x),y(other.y),z(other.z) {}
Mineserver::WorldBlockPosition& operator=(const Mineserver::WorldBlockPosition& other)
{
if (this != &other) {
x = other.x;
y = other.y;
z = other.z;
}
return *this;
}
};
struct World
{
public:
typedef boost::shared_ptr<Mineserver::World> pointer_t;
typedef std::map<std::pair<uint32_t,uint32_t>, Mineserver::World_Chunk::pointer_t> chunkList_t;
typedef std::vector<Mineserver::World_Generator::pointer_t> generatorList_t;
// Jailout2000: Are enums okay to use here?
// If these enums stay, plugins will need access to them. (TODO)
enum GameMode
{
survival = 0, creative = 1
};
enum Dimension
{
nether = -1, overWorld = 0, theEnd = 1
};
enum Difficulty
{
peaceful = 0, easy = 1, normal = 2, hard = 3
};
static const GameMode defaultGameMode = survival;
static const Dimension defaultDimension = overWorld;
static const Difficulty defaultDifficulty = easy;
static const uint8_t defaultWorldHeight = 127;
private:
chunkList_t m_chunks;
generatorList_t m_generators;
long m_worldSeed;
GameMode m_gameMode;
Dimension m_dimension;
Difficulty m_difficulty;
uint8_t m_worldHeight;
Mineserver::WorldPosition m_spawnPosition;
public:
World()
{
// TODO: Randomize the seed, or change all of these to their configured equivalents.
//
m_worldSeed = 1337;
m_gameMode = defaultGameMode;
m_dimension = defaultDimension;
m_difficulty = defaultDifficulty;
m_worldHeight = defaultWorldHeight;
m_spawnPosition = Mineserver::WorldPosition(0,62,0);
}
bool hasChunk(uint32_t x, uint32_t z)
{
return m_chunks.find(std::make_pair(x,z)) != m_chunks.end();
}
Mineserver::World_Chunk::pointer_t getChunk(uint32_t x, uint32_t z)
{
return m_chunks[std::make_pair(x,z)];
}
void setChunk(uint32_t x, uint32_t z, Mineserver::World_Chunk::pointer_t chunk)
{
m_chunks[std::make_pair(x,z)] = chunk;
}
Mineserver::World_Chunk::pointer_t generateChunk(uint32_t x, uint32_t z)
{
if (!hasChunk(x, z)) {
Mineserver::World_Chunk::pointer_t chunk = boost::make_shared<Mineserver::World_Chunk>();
chunk->x = x;
chunk->z = z;
for (generatorList_t::const_iterator it = m_generators.begin(); it != m_generators.end(); ++it) {
(*it)->processChunk(chunk);
}
setChunk(x, z, chunk);
}
return getChunk(x, z);
}
void addGenerator(Mineserver::World_Generator::pointer_t generator)
{
m_generators.push_back(generator);
}
long getWorldSeed() { return m_worldSeed; }
void setWorldSeed(long worldSeed) { m_worldSeed = worldSeed; }
bool getGameMode() { return m_gameMode; }
void setGameMode(GameMode gameMode) { m_gameMode = gameMode; }
int getDimension() { return m_dimension; }
void setDimension(Dimension dimension) { m_dimension = dimension; }
int getDifficulty() { return m_difficulty; }
void setDifficulty(Difficulty difficulty) { m_difficulty = difficulty; }
uint8_t getWorldHeight() { return m_worldHeight; }
void setWorldHeight(uint8_t worldHeight) { m_worldHeight = worldHeight; }
void setSpawnPosition(const Mineserver::WorldPosition& position) { m_spawnPosition = position; }
const Mineserver::WorldPosition& getSpawnPosition() { return m_spawnPosition; }
};
}
#endif
| 31.148718 | 105 | 0.687521 |
c179bfd125b02582f0169df99aab1464df77c1f9 | 44,195 | c | C | src/observe_core.c | dextero/Anjay | 968bec079207315bba27bc59bd59f6d17a65d80d | [
"Apache-2.0"
] | null | null | null | src/observe_core.c | dextero/Anjay | 968bec079207315bba27bc59bd59f6d17a65d80d | [
"Apache-2.0"
] | null | null | null | src/observe_core.c | dextero/Anjay | 968bec079207315bba27bc59bd59f6d17a65d80d | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2017 AVSystem <avsystem@avsystem.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <config.h>
#include <math.h>
#include <avsystem/commons/stream_v_table.h>
#include <anjay_modules/time_defs.h>
#include "coap/content_format.h"
#include "anjay_core.h"
#include "dm/query.h"
#include "observe_core.h"
VISIBILITY_SOURCE_BEGIN
struct anjay_observe_entry_struct {
const anjay_observe_key_t key;
anjay_sched_handle_t notify_task;
avs_time_real_t last_confirmable;
// last_sent has ALWAYS EXACTLY one element,
// but is stored as a list to allow easy moving from unsent
AVS_LIST(anjay_observe_resource_value_t) last_sent;
// pointer to some element of the
// anjay_observe_connection_entry_t::unsent list
// may or may not be the same as
// anjay_observe_connection_entry_t::unsent_last
// (depending on whether the last unsent value in the server refers
// to this resource+format or not)
AVS_LIST(anjay_observe_resource_value_t) last_unsent;
};
struct anjay_observe_connection_entry_struct {
anjay_connection_key_t key;
AVS_RBTREE(anjay_observe_entry_t) entries;
anjay_sched_handle_t flush_task;
AVS_LIST(anjay_observe_resource_value_t) unsent;
// pointer to the last element of unsent
AVS_LIST(anjay_observe_resource_value_t) unsent_last;
};
static inline const anjay_observe_entry_t *
entry_query(const anjay_observe_key_t *key) {
return AVS_CONTAINER_OF(key, anjay_observe_entry_t, key);
}
static inline const anjay_observe_connection_entry_t *
connection_query(const anjay_connection_key_t *key) {
return AVS_CONTAINER_OF(key, anjay_observe_connection_entry_t, key);
}
static int connection_key_cmp(const anjay_connection_key_t *left,
const anjay_connection_key_t *right) {
int32_t tmp_diff = left->ssid - right->ssid;
if (!tmp_diff) {
tmp_diff = (int32_t) left->type - (int32_t) right->type;
}
return tmp_diff;
}
static int connection_state_cmp(const void *left, const void *right) {
return connection_key_cmp(
&((const anjay_observe_connection_entry_t *) left)->key,
&((const anjay_observe_connection_entry_t *) right)->key);
}
static int entry_key_cmp(const anjay_observe_key_t *left,
const anjay_observe_key_t *right) {
int32_t tmp_diff =
connection_key_cmp(&left->connection, &right->connection);
if (!tmp_diff) {
tmp_diff = left->oid - right->oid;
}
if (!tmp_diff) {
tmp_diff = left->iid - right->iid;
}
if (!tmp_diff) {
if (left->rid < right->rid) {
return -1;
} else if (left->rid > right->rid) {
return 1;
} else {
tmp_diff = left->format - right->format;
}
}
return tmp_diff < 0 ? -1 : (tmp_diff > 0 ? 1 : 0);
}
static int entry_cmp(const void *left, const void *right) {
return entry_key_cmp(&((const anjay_observe_entry_t *) left)->key,
&((const anjay_observe_entry_t *) right)->key);
}
int _anjay_observe_init(anjay_t *anjay, bool confirmable_notifications) {
if (!(anjay->observe.connection_entries =
AVS_RBTREE_NEW(anjay_observe_connection_entry_t,
connection_state_cmp))) {
anjay_log(ERROR, "Could not initialize Observe structures");
return -1;
}
anjay->observe.confirmable_notifications = confirmable_notifications;
return 0;
}
static void cleanup_connection(anjay_t *anjay,
anjay_observe_connection_entry_t *conn) {
AVS_RBTREE_DELETE(&conn->entries) {
_anjay_sched_del(anjay->sched, &(*conn->entries)->notify_task);
AVS_LIST_CLEAR(&(*conn->entries)->last_sent);
}
_anjay_sched_del(anjay->sched, &conn->flush_task);
AVS_LIST_CLEAR(&conn->unsent);
}
void _anjay_observe_cleanup(anjay_t *anjay) {
AVS_RBTREE_DELETE(&anjay->observe.connection_entries) {
cleanup_connection(anjay, *anjay->observe.connection_entries);
}
}
static int observe_setup_for_sending(avs_stream_abstract_t *stream,
const anjay_msg_details_t *details) {
assert(!details->uri_path);
assert(!details->uri_query);
*((anjay_observe_stream_t *) stream)->details = *details;
return 0;
}
const anjay_observe_stream_t *_anjay_observe_stream_initializer__(void) {
static volatile bool initialized = false;
static avs_stream_v_table_t vtable;
static const anjay_observe_stream_t initializer = {
.outbuf = { .vtable = &vtable }
};
static const anjay_coap_stream_ext_t coap_ext = {
.setup_response = observe_setup_for_sending
};
static const avs_stream_v_table_extension_t extensions[] = {
{ ANJAY_COAP_STREAM_EXTENSION, &coap_ext },
AVS_STREAM_V_TABLE_EXTENSION_NULL
};
if (!initialized) {
memcpy(&vtable, AVS_STREAM_OUTBUF_STATIC_INITIALIZER.vtable,
sizeof(avs_stream_v_table_t));
vtable.extension_list = extensions;
initialized = true;
}
return &initializer;
}
static void clear_entry(anjay_t *anjay,
anjay_observe_connection_entry_t *connection,
anjay_observe_entry_t *entry) {
_anjay_sched_del(anjay->sched, &entry->notify_task);
AVS_LIST_CLEAR(&entry->last_sent);
if (entry->last_unsent) {
anjay_observe_resource_value_t **unsent_ptr;
anjay_observe_resource_value_t *helper;
anjay_observe_resource_value_t *server_last_unsent = NULL;
AVS_LIST_DELETABLE_FOREACH_PTR(unsent_ptr, helper,
&connection->unsent) {
if ((*unsent_ptr)->ref != entry) {
server_last_unsent = *unsent_ptr;
} else {
AVS_LIST_DELETE(unsent_ptr);
}
}
connection->unsent_last = server_last_unsent;
entry->last_unsent = NULL;
}
}
static void delete_connection(
anjay_t *anjay,
AVS_RBTREE_ELEM(anjay_observe_connection_entry_t) *conn_ptr) {
cleanup_connection(anjay, *conn_ptr);
AVS_RBTREE_DELETE_ELEM(anjay->observe.connection_entries, conn_ptr);
}
static void delete_connection_if_empty(
anjay_t *anjay,
AVS_RBTREE_ELEM(anjay_observe_connection_entry_t) *conn_ptr) {
if (!AVS_RBTREE_FIRST((*conn_ptr)->entries)) {
assert(!(*conn_ptr)->unsent);
assert(!(*conn_ptr)->unsent_last);
delete_connection(anjay, conn_ptr);
}
}
static int trigger_observe(anjay_t *anjay, void *entry_);
static const anjay_observe_resource_value_t *
newest_value(const anjay_observe_entry_t *entry) {
if (entry->last_unsent) {
return entry->last_unsent;
} else {
assert(entry->last_sent);
return entry->last_sent;
}
}
static int schedule_trigger(anjay_t *anjay,
anjay_observe_entry_t *entry,
time_t period) {
if (period < 0) {
return 0;
}
avs_time_duration_t delay =
avs_time_real_diff(newest_value(entry)->timestamp,
avs_time_real_now());
delay = avs_time_duration_add(
delay, avs_time_duration_from_scalar(period, AVS_TIME_S));
if (avs_time_duration_less(delay, AVS_TIME_DURATION_ZERO)) {
delay = AVS_TIME_DURATION_ZERO;
}
_anjay_sched_del(anjay->sched, &entry->notify_task);
return _anjay_sched(anjay->sched, &entry->notify_task, delay,
trigger_observe, entry);
}
static AVS_LIST(anjay_observe_resource_value_t)
create_resource_value(const anjay_msg_details_t *details,
anjay_observe_entry_t *ref,
const avs_coap_msg_identity_t *identity,
double numeric,
const void *data, size_t size) {
AVS_LIST(anjay_observe_resource_value_t) result =
(anjay_observe_resource_value_t *) AVS_LIST_NEW_BUFFER(
offsetof(anjay_observe_resource_value_t, value) + size);
if (!result) {
anjay_log(ERROR, "Out of memory");
return NULL;
}
result->details = *details;
result->ref = ref;
result->identity = *identity;
result->numeric = numeric;
AVS_STATIC_ASSERT(sizeof(result->value_length) == sizeof(size),
length_size);
memcpy((void *) (intptr_t) &result->value_length, &size, sizeof(size));
assert(data || !size);
if (data) {
memcpy(result->value, data, size);
}
result->timestamp = avs_time_real_now();
return result;
}
static int insert_new_value(anjay_observe_connection_entry_t *conn_state,
anjay_observe_entry_t *entry,
const anjay_msg_details_t *details,
const avs_coap_msg_identity_t *identity,
double numeric,
const void *data,
size_t size) {
AVS_LIST(anjay_observe_resource_value_t) res_value =
create_resource_value(details, entry, identity,
numeric, data, size);
if (!res_value) {
return -1;
}
AVS_LIST_APPEND(&conn_state->unsent_last, res_value);
conn_state->unsent_last = res_value;
if (!conn_state->unsent) {
conn_state->unsent = res_value;
}
entry->last_unsent = res_value;
return 0;
}
static int insert_error(anjay_t *anjay,
anjay_observe_connection_entry_t *conn_state,
anjay_observe_entry_t *entry,
const avs_coap_msg_identity_t *identity,
int outer_result) {
_anjay_sched_del(anjay->sched, &entry->notify_task);
const anjay_msg_details_t details = {
.msg_type = anjay->observe.confirmable_notifications
? AVS_COAP_MSG_CONFIRMABLE : AVS_COAP_MSG_NON_CONFIRMABLE,
.msg_code = _anjay_make_error_response_code(outer_result),
.format = AVS_COAP_FORMAT_NONE
};
return insert_new_value(conn_state, entry, &details, identity,
NAN, NULL, 0);
}
static int get_effective_attrs(anjay_t *anjay,
anjay_dm_internal_res_attrs_t *out_attrs,
const anjay_dm_object_def_t *const *obj,
const anjay_observe_key_t *key) {
assert(!obj || !*obj || (*obj)->oid == key->oid);
anjay_dm_attrs_query_details_t details = {
.obj = obj,
.iid = key->iid,
.rid = key->rid,
.ssid = key->connection.ssid,
.with_server_level_attrs = true
};
// Some of the details above may be invalid, e.g. when the object, instance
// or resource are no longer valid. Here we sanitize the details so that if
// some component is invalid, all lower-level path components are also
// invalid. This is so that <c>_anjay_dm_effective_attrs()</c> will return
// the appropriate defaults.
if (!obj || !*obj) {
// if object is invalid, any instance is invalid
details.iid = ANJAY_IID_INVALID;
}
if (details.iid != ANJAY_IID_INVALID
&& _anjay_dm_map_present_result(_anjay_dm_instance_present(
anjay, obj, details.iid, NULL))) {
// instance is no longer present, use invalid instead
details.iid = ANJAY_IID_INVALID;
}
if (details.iid == ANJAY_IID_INVALID) {
// if instance is invalid, any resource is invalid
details.rid = -1;
}
if (details.rid >= 0
&& _anjay_dm_map_present_result(
_anjay_dm_resource_supported_and_present(
anjay, obj, key->iid, (anjay_rid_t) details.rid,
NULL))) {
// if resource is no longer present, use invalid instead
details.rid = -1;
}
return _anjay_dm_effective_attrs(anjay, &details, out_attrs);
}
static inline int get_attrs(anjay_t *anjay,
anjay_dm_internal_res_attrs_t *out_attrs,
const anjay_observe_key_t *key) {
const anjay_dm_object_def_t *const *obj =
_anjay_dm_find_object_by_oid(anjay, key->oid);
return get_effective_attrs(anjay, out_attrs, obj, key);
}
static int insert_initial_value(
anjay_t *anjay,
anjay_observe_connection_entry_t *conn_state,
anjay_observe_entry_t *entry,
const anjay_msg_details_t *details,
const avs_coap_msg_identity_t *identity,
double numeric,
const void *data,
size_t size) {
assert(!entry->last_sent);
assert(!entry->last_unsent);
avs_time_real_t now = avs_time_real_now();
int result;
anjay_dm_internal_res_attrs_t attrs;
// we assume that the initial value should be treated as sent,
// even though we haven't actually sent it ourselves
if (!(result = get_attrs(anjay, &attrs, &entry->key))
&& (entry->last_sent =
create_resource_value(details, entry, identity,
numeric, data, size))
&& !(result = schedule_trigger(anjay, entry,
attrs.standard.common.max_period))) {
entry->last_confirmable = now;
} else {
clear_entry(anjay, conn_state, entry);
}
return result;
}
static AVS_RBTREE_ELEM(anjay_observe_entry_t)
find_or_create_observe_entry(anjay_observe_connection_entry_t *connection,
const anjay_observe_key_t *key) {
AVS_RBTREE_ELEM(anjay_observe_entry_t) new_entry =
AVS_RBTREE_ELEM_NEW(anjay_observe_entry_t);
if (!new_entry) {
anjay_log(ERROR, "Out of memory");
return NULL;
}
memcpy((void *) (intptr_t) (const void *) &new_entry->key, key,
sizeof(*key));
AVS_RBTREE_ELEM(anjay_observe_entry_t) entry =
AVS_RBTREE_INSERT(connection->entries, new_entry);
if (entry != new_entry) {
AVS_RBTREE_ELEM_DELETE_DETACHED(&new_entry);
}
return entry;
}
static AVS_RBTREE_ELEM(anjay_observe_connection_entry_t)
find_or_create_connection_state(anjay_t *anjay,
const anjay_connection_key_t *key) {
AVS_RBTREE_ELEM(anjay_observe_connection_entry_t) conn =
AVS_RBTREE_FIND(anjay->observe.connection_entries,
connection_query(key));
if (!conn) {
conn = AVS_RBTREE_ELEM_NEW(anjay_observe_connection_entry_t);
if (!conn || !(conn->entries = AVS_RBTREE_NEW(anjay_observe_entry_t,
entry_cmp))) {
anjay_log(ERROR, "Out of memory");
AVS_RBTREE_ELEM_DELETE_DETACHED(&conn);
return NULL;
}
conn->key = *key;
AVS_RBTREE_INSERT(anjay->observe.connection_entries, conn);
}
return conn;
}
int _anjay_observe_put_entry(anjay_t *anjay,
const anjay_observe_key_t *key,
const anjay_msg_details_t *details,
const avs_coap_msg_identity_t *identity,
double numeric,
const void *data,
size_t size) {
assert(key->rid >= -1 && key->rid <= UINT16_MAX);
AVS_RBTREE_ELEM(anjay_observe_connection_entry_t) conn =
find_or_create_connection_state(anjay, &key->connection);
if (!conn) {
return -1;
}
AVS_RBTREE_ELEM(anjay_observe_entry_t) entry =
find_or_create_observe_entry(conn, key);
if (!entry) {
delete_connection_if_empty(anjay, &conn);
return -1;
}
clear_entry(anjay, conn, entry);
int result = insert_initial_value(anjay, conn, entry, details, identity,
numeric, data, size);
if (!result) {
return 0;
}
anjay_log(ERROR, "Could not put OBSERVE entry");
AVS_RBTREE_DELETE_ELEM(conn->entries, &entry);
delete_connection_if_empty(anjay, &conn);
return result;
}
static void
delete_entry(anjay_t *anjay,
AVS_RBTREE_ELEM(anjay_observe_connection_entry_t) *conn_ptr,
AVS_RBTREE_ELEM(anjay_observe_entry_t) *entry_ptr) {
clear_entry(anjay, *conn_ptr, *entry_ptr);
AVS_RBTREE_DELETE_ELEM((*conn_ptr)->entries, entry_ptr);
delete_connection_if_empty(anjay, conn_ptr);
}
void _anjay_observe_remove_entry(anjay_t *anjay,
const anjay_observe_key_t *key) {
AVS_RBTREE_ELEM(anjay_observe_connection_entry_t) conn =
AVS_RBTREE_FIND(anjay->observe.connection_entries,
connection_query(&key->connection));
if (conn) {
AVS_RBTREE_ELEM(anjay_observe_entry_t) entry =
AVS_RBTREE_FIND(conn->entries, entry_query(key));
if (entry) {
delete_entry(anjay, &conn, &entry);
}
}
}
void _anjay_observe_remove_by_msg_id(anjay_t *anjay,
uint16_t notify_id) {
AVS_RBTREE_ELEM(anjay_observe_connection_entry_t) conn;
AVS_RBTREE_FOREACH(conn, anjay->observe.connection_entries) {
AVS_RBTREE_ELEM(anjay_observe_entry_t) entry;
AVS_RBTREE_FOREACH(entry, conn->entries) {
uint16_t last_notify_id = newest_value(entry)->identity.msg_id;
if (last_notify_id == notify_id) {
delete_entry(anjay, &conn, &entry);
return;
}
}
}
}
typedef struct {
anjay_active_server_info_t *active_server;
anjay_inactive_server_info_t *inactive_server;
} ssid_iterator_t;
static ssid_iterator_t ssid_iterator_init(anjay_t *anjay) {
return (const ssid_iterator_t) {
anjay->servers.active, anjay->servers.inactive
};
}
static const anjay_ssid_t *ssid_iterator_next(ssid_iterator_t *it) {
const anjay_ssid_t *result = NULL;
if (it->active_server
&& (!it->inactive_server
|| it->active_server->ssid <= it->inactive_server->ssid)) {
result = &it->active_server->ssid;
it->active_server = AVS_LIST_NEXT(it->active_server);
} else if (it->inactive_server) {
result = &it->inactive_server->ssid;
it->inactive_server = AVS_LIST_NEXT(it->inactive_server);
}
return result;
}
void _anjay_observe_gc(anjay_t *anjay) {
AVS_RBTREE_ELEM(anjay_observe_connection_entry_t) conn =
AVS_RBTREE_FIRST(anjay->observe.connection_entries);
ssid_iterator_t it = ssid_iterator_init(anjay);
const anjay_ssid_t *ssid_ptr;
while (conn && (ssid_ptr = ssid_iterator_next(&it))) {
while (conn && conn->key.ssid < *ssid_ptr) {
AVS_RBTREE_ELEM(anjay_observe_connection_entry_t) to_remove = conn;
conn = AVS_RBTREE_ELEM_NEXT(conn);
delete_connection(anjay, &to_remove);
}
while (conn && conn->key.ssid == *ssid_ptr) {
conn = AVS_RBTREE_ELEM_NEXT(conn);
}
}
while (conn) {
AVS_RBTREE_ELEM(anjay_observe_connection_entry_t) to_remove = conn;
conn = AVS_RBTREE_ELEM_NEXT(conn);
delete_connection(anjay, &to_remove);
}
}
static bool has_pmax_expired(const anjay_observe_resource_value_t *value,
const anjay_dm_attributes_t *attrs) {
return attrs->max_period >= 0
&& avs_time_real_diff(avs_time_real_now(), value->timestamp).seconds
>= attrs->max_period;
}
static bool process_step(const anjay_observe_resource_value_t *previous,
const anjay_dm_resource_attributes_t *attrs,
double value) {
return !isnan(attrs->step)
&& fabs(value - previous->numeric) >= attrs->step;
}
static bool process_ltgt(const anjay_observe_resource_value_t *previous,
double threshold,
double value) {
return !isnan(threshold)
&& ((previous->numeric <= threshold && value > threshold)
|| (previous->numeric >= threshold && value < threshold));
}
static bool should_update(const anjay_observe_resource_value_t *previous,
const anjay_dm_resource_attributes_t *attrs,
const anjay_msg_details_t *details,
double numeric,
const char *data,
size_t length) {
if (details->format == previous->details.format
&& length == previous->value_length
&& memcmp(data, previous->value, length) == 0) {
return false;
}
if (isnan(numeric) || isnan(previous->numeric)
|| (isnan(attrs->greater_than) && isnan(attrs->less_than)
&& isnan(attrs->step))) {
// either previous or current value is not numeric, or none of lt/gt/st
// attributes are set - notifying each value change
return true;
}
return process_step(previous, attrs, numeric)
|| process_ltgt(previous, attrs->less_than, numeric)
|| process_ltgt(previous, attrs->greater_than, numeric);
}
static inline ssize_t read_new_value(anjay_t *anjay,
const anjay_dm_object_def_t *const *obj,
const anjay_observe_entry_t *entry,
anjay_msg_details_t *out_details,
double *out_numeric,
char *buffer,
size_t size) {
return _anjay_dm_read_for_observe(
anjay, obj,
&(const anjay_dm_read_args_t) {
.ssid = entry->key.connection.ssid,
.uri = {
.has_oid = true,
.oid = entry->key.oid,
.has_iid = (entry->key.iid != ANJAY_IID_INVALID),
.iid = entry->key.iid,
.has_rid = (entry->key.rid >= 0),
.rid = (anjay_rid_t) entry->key.rid,
},
.requested_format = entry->key.format,
.observe_serial = true
}, out_details, out_numeric, buffer, size);
}
static int bind_stream_by_ssid(anjay_t *anjay,
anjay_ssid_t ssid,
anjay_connection_type_t conn_type) {
anjay_connection_ref_t ref = {
.server = _anjay_servers_find_active(&anjay->servers, ssid),
.conn_type = conn_type
};
if (!ref.server) {
return -1;
}
return _anjay_bind_server_stream(anjay, ref);
}
static bool confirmable_required(const avs_time_real_t now,
const anjay_observe_entry_t *entry) {
return !avs_time_duration_less(
avs_time_real_diff(now, entry->last_confirmable),
avs_time_duration_from_scalar(1, AVS_TIME_DAY));
}
static anjay_observe_resource_value_t *
detach_first_unsent_value(anjay_observe_connection_entry_t *conn_state) {
assert(conn_state->unsent);
anjay_observe_entry_t *entry = conn_state->unsent->ref;
if (entry->last_unsent == conn_state->unsent) {
entry->last_unsent = NULL;
}
anjay_observe_resource_value_t *result =
AVS_LIST_DETACH(&conn_state->unsent);
if (conn_state->unsent_last == result) {
assert(!conn_state->unsent);
conn_state->unsent_last = NULL;
}
return result;
}
static void value_sent(anjay_observe_connection_entry_t *conn_state) {
anjay_observe_resource_value_t *sent =
detach_first_unsent_value(conn_state);
anjay_observe_entry_t *entry = sent->ref;
assert(AVS_LIST_SIZE(entry->last_sent) <= 1);
AVS_LIST_CLEAR(&entry->last_sent);
entry->last_sent = sent;
}
static int sched_flush_send_queue(anjay_t *anjay,
anjay_observe_connection_entry_t *conn);
static int send_entry(anjay_t *anjay,
anjay_observe_connection_entry_t *conn_state) {
if (bind_stream_by_ssid(anjay,
conn_state->key.ssid, conn_state->key.type)) {
return -1;
}
anjay_active_server_info_t *server = anjay->current_connection.server;
int result;
assert(conn_state->unsent);
anjay_observe_entry_t *entry = conn_state->unsent->ref;
const avs_coap_msg_identity_t *id = &conn_state->unsent->identity;
anjay_msg_details_t details = conn_state->unsent->details;
avs_coap_msg_identity_t notify_id;
avs_time_real_t now = avs_time_real_now();
if (details.msg_type != AVS_COAP_MSG_CONFIRMABLE
&& confirmable_required(now, entry)) {
details.msg_type = AVS_COAP_MSG_CONFIRMABLE;
}
(void) ((result = _anjay_coap_stream_setup_request(
anjay->comm_stream, &details, &id->token))
|| (result = avs_stream_write(anjay->comm_stream,
conn_state->unsent->value,
conn_state->unsent->value_length))
|| (result = _anjay_coap_stream_get_request_identity(
anjay->comm_stream, ¬ify_id))
|| (result = avs_stream_finish_message(anjay->comm_stream)));
avs_stream_reset(anjay->comm_stream);
_anjay_release_server_stream(anjay);
if (!result) {
if (details.msg_type == AVS_COAP_MSG_CONFIRMABLE) {
entry->last_confirmable = now;
}
value_sent(conn_state);
entry->last_sent->identity.msg_id = notify_id.msg_id;
} else if (result == AVS_COAP_CTX_ERR_NETWORK) {
anjay_log(ERROR, "network communication error while sending Observe");
_anjay_schedule_server_reconnect(anjay, server);
// reschedule notification
sched_flush_send_queue(anjay, conn_state);
}
return result;
}
typedef struct {
bool server_active : 1;
bool notification_storing_enabled : 1;
} observe_server_state_t;
static observe_server_state_t server_state(anjay_t *anjay, anjay_ssid_t ssid) {
observe_server_state_t result = {
.server_active = !!_anjay_servers_find_active(&anjay->servers, ssid),
.notification_storing_enabled = true
};
anjay_iid_t server_iid;
if (!_anjay_find_server_iid(anjay, ssid, &server_iid)) {
const anjay_uri_path_t path =
MAKE_RESOURCE_PATH(ANJAY_DM_OID_SERVER, server_iid,
ANJAY_DM_RID_SERVER_NOTIFICATION_STORING);
bool storing;
if (!_anjay_dm_res_read_bool(anjay, &path, &storing) && !storing) {
// default value is true, use false only if explicitly set
result.notification_storing_enabled = false;
}
}
anjay_log(TRACE, "observe state for SSID %u: active %d, notification "
"storing %d", ssid, result.server_active,
result.notification_storing_enabled);
return result;
}
static inline bool is_error_value(const anjay_observe_resource_value_t *value) {
return avs_coap_msg_code_get_class(value->details.msg_code) >= 4;
}
static void remove_all_unsent_values(anjay_observe_connection_entry_t *conn) {
while (conn->unsent) {
AVS_LIST(anjay_observe_resource_value_t) value =
detach_first_unsent_value(conn);
AVS_LIST_DELETE(&value);
}
}
static int handle_send_queue_entry(anjay_t *anjay,
anjay_observe_connection_entry_t *conn_state,
observe_server_state_t observe_state) {
assert(conn_state->unsent);
assert(observe_state.server_active);
bool is_error = is_error_value(conn_state->unsent);
int result = send_entry(anjay, conn_state);
if (result > 0) {
anjay_log(INFO, "Reset received as reply to notification, result == %d",
result);
} else if (result < 0) {
anjay_log(ERROR, "Could not send Observe notification, result == %d",
result);
if (result != AVS_COAP_CTX_ERR_NETWORK
&& !observe_state.notification_storing_enabled) {
remove_all_unsent_values(conn_state);
}
}
if (is_error
&& result != AVS_COAP_CTX_ERR_NETWORK
&& (result == 0 || !observe_state.notification_storing_enabled)) {
result = 1;
}
return result;
}
static void schedule_all_triggers(anjay_t *anjay,
anjay_observe_connection_entry_t *conn) {
anjay_observe_key_t observe_key;
memset(&observe_key, 0, sizeof(observe_key));
observe_key.connection = conn->key;
observe_key.rid = INT32_MIN;
AVS_RBTREE_ELEM(anjay_observe_entry_t) entry;
AVS_RBTREE_FOREACH(entry, conn->entries) {
if (!entry->notify_task) {
anjay_dm_internal_res_attrs_t attrs;
if (get_attrs(anjay, &attrs, &entry->key)
|| schedule_trigger(anjay, entry,
attrs.standard.common.max_period)) {
anjay_log(ERROR,
"Could not schedule automatic notification trigger");
}
}
}
}
static int flush_send_queue(anjay_t *anjay, void *conn_) {
anjay_observe_connection_entry_t *conn =
(anjay_observe_connection_entry_t *) conn_;
int result = 0;
observe_server_state_t observe_state;
bool observe_state_filled = false;
while (result >= 0 && conn && conn->unsent) {
anjay_observe_key_t key = conn->unsent->ref->key;
if (!observe_state_filled) {
observe_state = server_state(anjay, key.connection.ssid);
observe_state_filled = true;
if (!observe_state.server_active) {
break;
}
}
if ((result = handle_send_queue_entry(anjay, conn,
observe_state)) > 0) {
_anjay_observe_remove_entry(anjay, &key);
// the above might've deleted the connection entry,
// so we "re-find" it to check if it's still valid
conn = AVS_RBTREE_FIND(anjay->observe.connection_entries,
connection_query(&key.connection));
}
}
if (result >= 0 && conn && !conn->unsent) {
schedule_all_triggers(anjay, conn);
}
return result;
}
static int sched_flush_send_queue(anjay_t *anjay,
anjay_observe_connection_entry_t *conn) {
if (!conn || conn->flush_task) {
anjay_log(TRACE, "skipping notification flush scheduling: %s",
!conn ? "no appropriate connection found"
: "flush task already scheduled");
return 0;
}
if (_anjay_sched_now(anjay->sched, &conn->flush_task, flush_send_queue,
conn)) {
anjay_log(ERROR, "Could not schedule notification flush");
return -1;
}
return 0;
}
int _anjay_observe_sched_flush_current_connection(anjay_t *anjay) {
anjay_log(TRACE, "scheduling notifications flush for server SSID %u, "
"connection type %d", _anjay_dm_current_ssid(anjay),
anjay->current_connection.conn_type);
const anjay_connection_key_t query_key = {
.ssid = _anjay_dm_current_ssid(anjay),
.type = anjay->current_connection.conn_type
};
anjay_observe_connection_entry_t *conn =
AVS_RBTREE_FIND(anjay->observe.connection_entries,
connection_query(&query_key));
return sched_flush_send_queue(anjay, conn);
}
static int
update_notification_value(anjay_t *anjay,
anjay_observe_connection_entry_t *conn_state,
anjay_observe_entry_t *entry) {
if (is_error_value(newest_value(entry))) {
return 0;
}
const anjay_dm_object_def_t *const *obj =
_anjay_dm_find_object_by_oid(anjay, entry->key.oid);
if (!obj) {
return ANJAY_ERR_NOT_FOUND;
}
anjay_dm_internal_res_attrs_t attrs;
int result = get_effective_attrs(anjay, &attrs, obj, &entry->key);
if (result) {
return result;
}
bool pmax_expired = has_pmax_expired(newest_value(entry),
&attrs.standard.common);
char buf[ANJAY_MAX_OBSERVABLE_RESOURCE_SIZE];
anjay_msg_details_t observe_details;
double numeric = NAN;
ssize_t size = read_new_value(anjay, obj, entry, &observe_details, &numeric,
buf, sizeof(buf));
if (size < 0) {
return (int) size;
}
#ifdef WITH_CON_ATTR
if (attrs.custom.data.con >= 0) {
observe_details.msg_type = (attrs.custom.data.con > 0)
? AVS_COAP_MSG_CONFIRMABLE : AVS_COAP_MSG_NON_CONFIRMABLE;
} else
#endif // WITH_CON_ATTR
{
observe_details.msg_type = anjay->observe.confirmable_notifications
? AVS_COAP_MSG_CONFIRMABLE : AVS_COAP_MSG_NON_CONFIRMABLE;
}
if (pmax_expired || should_update(newest_value(entry), &attrs.standard,
&observe_details, numeric,
buf, (size_t) size)) {
result = insert_new_value(conn_state, entry, &observe_details,
&newest_value(entry)->identity, numeric,
buf, (size_t) size);
}
if (schedule_trigger(anjay, entry, attrs.standard.common.max_period)) {
anjay_log(ERROR, "Could not schedule automatic notification trigger");
}
return result;
}
static int trigger_observe(anjay_t *anjay, void *entry_) {
anjay_observe_entry_t *entry = (anjay_observe_entry_t *) entry_;
AVS_RBTREE_ELEM(anjay_observe_connection_entry_t) conn =
AVS_RBTREE_FIND(anjay->observe.connection_entries,
connection_query(&entry->key.connection));
assert(conn);
observe_server_state_t state =
server_state(anjay, entry->key.connection.ssid);
if (!state.server_active && !state.notification_storing_enabled) {
return 0;
}
int result = update_notification_value(anjay, conn, entry);
if (result) {
result = insert_error(anjay, conn, entry,
&newest_value(entry)->identity, result);
}
if (state.server_active) {
int flush_result = sched_flush_send_queue(anjay, conn);
if (!result) {
result = flush_result;
}
}
return result;
}
static inline int notify_entry(anjay_t *anjay,
const anjay_dm_object_def_t *const *obj,
anjay_observe_entry_t *entry) {
anjay_dm_internal_res_attrs_t attrs = ANJAY_DM_INTERNAL_RES_ATTRS_EMPTY;
time_t period = 0;
if (!get_effective_attrs(anjay, &attrs, obj, &entry->key)
&& attrs.standard.common.min_period > 0) {
period = attrs.standard.common.min_period;
}
return schedule_trigger(anjay, entry, period);
}
#ifdef ANJAY_TEST
#include "test/observe_mock.h"
#endif // ANJAY_TEST
static int observe_notify_bound(anjay_t *anjay,
anjay_observe_connection_entry_t *connection,
const anjay_observe_key_t *lower_bound,
const anjay_observe_key_t *upper_bound,
const anjay_dm_object_def_t *const *obj) {
int retval = 0;
AVS_RBTREE_ELEM(anjay_observe_entry_t) it =
AVS_RBTREE_LOWER_BOUND(connection->entries,
entry_query(lower_bound));
AVS_RBTREE_ELEM(anjay_observe_entry_t) end =
AVS_RBTREE_UPPER_BOUND(connection->entries,
entry_query(upper_bound));
// if it == NULL, end must also be NULL
assert(it || !end);
for (; it != end; it = AVS_RBTREE_ELEM_NEXT(it)) {
assert(it);
_anjay_update_ret(&retval, notify_entry(anjay, obj, it));
}
return retval;
}
static int
observe_notify_wildcard_impl(anjay_t *anjay,
anjay_observe_connection_entry_t *connection,
const anjay_observe_key_t *specimen_key,
const anjay_dm_object_def_t *const *obj,
bool iid_wildcard) {
anjay_observe_key_t lower_bound = *specimen_key;
anjay_observe_key_t upper_bound = *specimen_key;
lower_bound.format = 0;
upper_bound.format = UINT16_MAX;
if (iid_wildcard) {
lower_bound.iid = ANJAY_IID_INVALID;
upper_bound.iid = ANJAY_IID_INVALID;
}
lower_bound.rid = -1;
upper_bound.rid = -1;
return observe_notify_bound(anjay, connection,
&lower_bound, &upper_bound, obj);
}
static inline int
observe_notify_iid_wildcard(anjay_t *anjay,
anjay_observe_connection_entry_t *connection,
const anjay_observe_key_t *specimen_key,
const anjay_dm_object_def_t *const *obj) {
return observe_notify_wildcard_impl(anjay, connection,
specimen_key, obj, true);
}
static inline int
observe_notify_rid_wildcard(anjay_t *anjay,
anjay_observe_connection_entry_t *connection,
const anjay_observe_key_t *specimen_key,
const anjay_dm_object_def_t *const *obj) {
return observe_notify_wildcard_impl(anjay, connection,
specimen_key, obj, false);
}
/**
* Calls <c>notify_entry()</c> on all registered Observe entries that match
* <c>key</c>.
*
* This is harder than may seem at the first glance, because both <c>key</c>
* (the query) and keys of the registered Observe entries may contain wildcards.
*
* An observation may be registered for either of:
* - A whole object (OID)
* - A whole object instance (OID+IID)
* - A specific resource (OID+IID+RID)
* Each of those may also have either explicit or implicit Content-Format, so in
* the end, there are six types of observation entry keys:
* - OID
* - OID+format
* - OID+IID
* - OID+IID+format
* - OID+IID+RID
* - OID+IID+RID+format
*
* The query is guaranteed to never have an explicit Content-Format
* specification (and we <c>assert()</c> that), but still, we have three
* possible types of those:
* - OID
* - OID+IID
* - OID+IID+RID
*
* Each of these cases needs to be addressed in a slightly different manner.
*
* Wildcard representation
* -----------------------
* A wildcard for IID is represented as the number 65535. A wildcard for RID is
* represented as the number -1. The registered observation entries are stored
* in a sorted tree, with the sort key being (SSID, conn_type, OID, IID, RID,
* Content-Format) - in lexicographical order over all elements of that tuple -
* much like C++11's <c>std::tuple</c> comparison operators.
*
* Querying for just OID
* ---------------------
* It is sufficient to search for the whole range of possible keys that match
* (SSID, conn_type, OID). We will find all entries, including those registered
* for OID, OID+IID and OID+IID+RID.
*
* So the lower bound for search is (SSID, conn_type, OID, 0, I32_MIN, 0) and
* the upper bound is (SSID, conn_type, OID, U16_MAX, I32_MAX, U16_MAX). All
* entries within this inclusive range will be notified.
*
* Querying for OID+IID
* --------------------
* With the fixed IID, in a similar manner, we set the lower bound for search to
* (SSID, conn_type, OID, IID, I32_MIN, 0) and the upper bound to
* (SSID, conn_type, OID, IID, I32_MAX, U16_MAX). This covers entries registered
* for OID+IID and OID+IID+RID keys, but the entries registered on a wildcard
* IID will get omitted, as 65535 is not equal to the specified IID.
*
* Because of this, we need to call notification on an additional range with the
* lower bound set to (SSID, conn_type, OID, 65535, I32_MIN, 0) and the upper
* bound to (SSID, conn_type, OID, 65535, I32_MAX, U16_MAX).
*
* Querying for OID+IID+RID
* ------------------------
* Similarly, the natural query for OID+IID+RID, with the lower bound set to
* (SSID, conn_type, OID, IID, RID, 0) and the upper bound to
* (SSID, conn_type, OID, IID, RID, U16_MAX), will miss all the wildcards.
*
* We also need to notify the OID+IID entries (with wildcard RID), so we do
* another search, with the lower bound at (SSID, conn_type, OID, IID, -1, 0)
* and the upper bound at (SSID, conn_type, OID, IID, -1, U16_MAX).
*
* We also need to notify the OID entries (with wildcard IID and RID), so we do
* yet another search, with lower bound at (SSID, conn_type, OID, 65535, -1, 0)
* and the upper bound at (SSID, conn_type, OID, 65535, -1, U16_MAX).
*/
static int observe_notify(anjay_t *anjay,
anjay_observe_connection_entry_t *connection,
const anjay_observe_key_t *key,
const anjay_dm_object_def_t *const *obj) {
assert(key->format == AVS_COAP_FORMAT_NONE);
assert(!obj || !*obj || (*obj)->oid == key->oid);
assert(key->rid >= -1 && key->rid <= UINT16_MAX);
int retval = 0;
anjay_observe_key_t lower_bound = *key;
anjay_observe_key_t upper_bound = *key;
lower_bound.format = 0;
upper_bound.format = UINT16_MAX;
if (key->rid < 0) {
lower_bound.rid = INT32_MIN;
upper_bound.rid = INT32_MAX;
if (key->iid == ANJAY_IID_INVALID) {
lower_bound.iid = 0;
upper_bound.iid = ANJAY_IID_INVALID;
} else {
_anjay_update_ret(&retval,
observe_notify_iid_wildcard(anjay, connection,
key, obj));
}
} else {
_anjay_update_ret(&retval,
observe_notify_rid_wildcard(anjay, connection,
key, obj));
_anjay_update_ret(&retval,
observe_notify_iid_wildcard(anjay, connection,
key, obj));
}
_anjay_update_ret(&retval,
observe_notify_bound(anjay, connection, &lower_bound,
&upper_bound, obj));
return retval;
}
int _anjay_observe_notify(anjay_t *anjay,
const anjay_observe_key_t *key,
bool invert_server_match) {
assert(key->format == AVS_COAP_FORMAT_NONE);
const anjay_dm_object_def_t *const *obj =
_anjay_dm_find_object_by_oid(anjay, key->oid);
// iterate through all SSIDs we have
int result = 0;
anjay_observe_key_t modified_key = *key;
AVS_RBTREE_ELEM(anjay_observe_connection_entry_t) connection;
AVS_RBTREE_FOREACH(connection, anjay->observe.connection_entries) {
if ((connection->key.ssid == key->connection.ssid)
== invert_server_match) {
continue;
}
modified_key.connection = connection->key;
_anjay_update_ret(&result, observe_notify(anjay, connection,
&modified_key, obj));
}
return result;
}
#ifdef ANJAY_TEST
#include "test/observe.c"
#endif // ANJAY_TEST
| 37.903087 | 80 | 0.621609 |
1eb399cc2507a3c07c8aab1ba1fecf2eae9ff9da | 679 | h | C | AdvertDemo/include/Advert/NSString+MD5.h | TangYangCoder/AdvertTask | 33bb998a496fa93af1af5b4619ca4f9a534cf2df | [
"Apache-2.0"
] | 1 | 2017-03-13T07:01:50.000Z | 2017-03-13T07:01:50.000Z | AdvertDemo/include/Advert/NSString+MD5.h | TangYangCoder/AdvertTask | 33bb998a496fa93af1af5b4619ca4f9a534cf2df | [
"Apache-2.0"
] | null | null | null | AdvertDemo/include/Advert/NSString+MD5.h | TangYangCoder/AdvertTask | 33bb998a496fa93af1af5b4619ca4f9a534cf2df | [
"Apache-2.0"
] | null | null | null | /*---------------------------------------------------------------------------
Copyright © TangYang. 2017. All rights reserved.
File name: NSString+MD5
Author: TangYang ID: Version: General Framework
Description: 用于本地缓存数据URL绝对路径 MD5解密
Note:仅限用于图片,视屏缓存
History: 2017 - Later
----------------------------------------------------------------------------*/
#import <Foundation/Foundation.h>
@interface NSString (MD5)
@property (nonatomic, assign, readonly) BOOL isURLString;
@property (nonatomic, copy, readonly,nonnull) NSString *videoName;
@property (nonatomic, copy, readonly,nonnull) NSString *md5String;
-(BOOL)containsSubString:(nonnull NSString *)subString;
@end
| 33.95 | 79 | 0.594993 |
9b37e5329999df1fadad24215f9f5aed3149a3e9 | 2,257 | h | C | channel.h | napsy/cbot | 51749c3011a270951beda1fb6b5fb49e9b336504 | [
"BSD-3-Clause"
] | 1 | 2016-08-09T21:32:24.000Z | 2016-08-09T21:32:24.000Z | channel.h | napsy/cbot | 51749c3011a270951beda1fb6b5fb49e9b336504 | [
"BSD-3-Clause"
] | null | null | null | channel.h | napsy/cbot | 51749c3011a270951beda1fb6b5fb49e9b336504 | [
"BSD-3-Clause"
] | null | null | null | /*
Copyright (c) 2009, Luka Napotnik <luka.napotnik@gmx.com>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* 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 <organization> 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 <COPYRIGHT HOLDER> 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 __CHANNEL_H__
#define __CHANNEL_H__
#include <glib-2.0/glib.h>
#include "network.h"
#include "irc.h"
struct _channel {
char *name;
GList *users;
int flags;
/* Used for spam protection. */
/* XXX: move this to a filter function */
int message_count;
time_t message_time;
struct _cbot_irc_message *last_message;
};
int cbot_channel_join(struct _network *network, const char *channel);
int cbot_channel_part(struct _network *network, const char *channel);
int cbot_channel_send(struct _network *network, const char *channel,
const char *message);
int cbot_channel_antiflood(struct _network *network, const char *channel,
struct _cbot_irc_message *cur_msg);
#endif
| 38.254237 | 79 | 0.76739 |
15a0d88ad2b57e7305dac2906f293ab484718a03 | 212 | h | C | delegate/IComparable.h | vu-bui/cplusplus-delegate | d33efec0bdd29a7dc43d1442cc3d744af0f563d1 | [
"BSD-3-Clause"
] | null | null | null | delegate/IComparable.h | vu-bui/cplusplus-delegate | d33efec0bdd29a7dc43d1442cc3d744af0f563d1 | [
"BSD-3-Clause"
] | null | null | null | delegate/IComparable.h | vu-bui/cplusplus-delegate | d33efec0bdd29a7dc43d1442cc3d744af0f563d1 | [
"BSD-3-Clause"
] | null | null | null | #ifndef DELEGATE_ICOMPARABLE_H
#define DELEGATE_ICOMPARABLE_H
namespace delegate {
template<typename T>
struct IComparable {
virtual ~IComparable() {}
virtual bool operator==(const T&) const = 0;
};
}
#endif
| 16.307692 | 45 | 0.759434 |
1894012eebcfa4a8ab6e6025f55d5fdec4e19931 | 224 | h | C | Sources/MSWebActivityChrome.h | MaxseyLau/MSWebViewController | 4f78c1e0202c6e4f29da0632c15169d49576778e | [
"Apache-2.0"
] | 79 | 2017-05-09T12:25:45.000Z | 2018-02-19T08:13:14.000Z | Sources/MSWebActivityChrome.h | MaxseyLau/MSWebViewController | 4f78c1e0202c6e4f29da0632c15169d49576778e | [
"Apache-2.0"
] | null | null | null | Sources/MSWebActivityChrome.h | MaxseyLau/MSWebViewController | 4f78c1e0202c6e4f29da0632c15169d49576778e | [
"Apache-2.0"
] | 2 | 2017-05-20T04:55:55.000Z | 2017-06-09T02:28:55.000Z | //
// MSWebActivityChrome.h
// MSWebController
//
// Created by Maxwell on 2017/5/9.
// Copyright © 2017年 Maxwell. All rights reserved.
//
#import "MSWebActivity.h"
@interface MSWebActivityChrome : MSWebActivity
@end
| 16 | 51 | 0.71875 |
633b18435608da6e76c27450710ab7a3c50defdf | 850 | h | C | src/Win/DlgRegNum.h | dconnet/AgilityBook | 4804c79079d6109294a6d377fb6ebda70bcb30a1 | [
"MIT"
] | 1 | 2020-11-23T20:33:41.000Z | 2020-11-23T20:33:41.000Z | src/Win/DlgRegNum.h | dconnet/AgilityBook | 4804c79079d6109294a6d377fb6ebda70bcb30a1 | [
"MIT"
] | null | null | null | src/Win/DlgRegNum.h | dconnet/AgilityBook | 4804c79079d6109294a6d377fb6ebda70bcb30a1 | [
"MIT"
] | 3 | 2020-05-04T19:42:26.000Z | 2022-03-08T09:36:54.000Z | #pragma once
/*
* Copyright (c) David Connet. All Rights Reserved.
*
* License: See License.txt
*/
/**
* @file
* @brief interface of the CDlgRegNum class
* @author David Connet
*
* Revision History
* 2009-02-11 Ported to wxWidgets.
* 2006-02-16 Cleaned up memory usage with smart pointers.
* 2004-06-29 Added Note to regnum.
*/
#include "ARB/ARBTypes2.h"
class CVenueComboBox;
class CDlgRegNum : public wxDialog
{
public:
CDlgRegNum(
ARBConfig const& config,
ARBDogRegNumList& regnums,
ARBDogRegNumPtr const& inRegNum,
wxWindow* pParent = nullptr);
private:
ARBDogRegNumList& m_RegNums;
ARBDogRegNumPtr m_pRegNum;
CVenueComboBox* m_ctrlVenues;
wxString m_Venue;
wxString m_RegNum;
wxString m_Height;
bool m_bReceived;
wxString m_Note;
DECLARE_ON_INIT()
DECLARE_EVENT_TABLE()
void OnOk(wxCommandEvent& evt);
};
| 18.085106 | 58 | 0.737647 |
0ab8ba9579f1e55c300e0abed4f075bbdbe6cd0e | 4,561 | h | C | deps/uv/src/unix/internal.h | bpasero/node | 105d1787dc05e7f8785db1be7c84350bfde0bb98 | [
"MIT"
] | 2 | 2019-03-03T22:05:27.000Z | 2020-07-18T10:13:16.000Z | deps/uv/src/unix/internal.h | bpasero/node | 105d1787dc05e7f8785db1be7c84350bfde0bb98 | [
"MIT"
] | null | null | null | deps/uv/src/unix/internal.h | bpasero/node | 105d1787dc05e7f8785db1be7c84350bfde0bb98 | [
"MIT"
] | null | null | null | /* Copyright Joyent, Inc. and other Node contributors. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
#ifndef UV_UNIX_INTERNAL_H_
#define UV_UNIX_INTERNAL_H_
#include "uv-common.h"
#include "uv-eio.h"
#include <stddef.h> /* offsetof */
#if defined(__linux__)
#include <linux/version.h>
#include <features.h>
/* futimes() requires linux >= 2.6.22 and glib >= 2.6 */
#if LINUX_VERSION_CODE >= 0x20616 && __GLIBC_PREREQ(2, 6)
#define HAVE_FUTIMES 1
#endif
/* pipe2() requires linux >= 2.6.27 and glibc >= 2.9 */
#if LINUX_VERSION_CODE >= 0x2061B && __GLIBC_PREREQ(2, 9)
#define HAVE_PIPE2 1
#endif
/* accept4() requires linux >= 2.6.28 and glib >= 2.10 */
#if LINUX_VERSION_CODE >= 0x2061C && __GLIBC_PREREQ(2, 10)
#define HAVE_ACCEPT4 1
#endif
#endif /* __linux__ */
#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__sun)
# define HAVE_FUTIMES 1
#endif
/* FIXME exact copy of the #ifdef guard in uv-unix.h */
#if (defined(__MAC_OS_X_VERSION_MIN_REQUIRED) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1060) \
|| defined(__FreeBSD__) \
|| defined(__OpenBSD__) \
|| defined(__NetBSD__)
# define HAVE_KQUEUE 1
#endif
#define container_of(ptr, type, member) \
((type *) ((char *) (ptr) - offsetof(type, member)))
#define SAVE_ERRNO(block) \
do { \
int _saved_errno = errno; \
do { block; } while (0); \
errno = _saved_errno; \
} \
while (0);
/* flags */
enum {
UV_CLOSING = 0x01, /* uv_close() called but not finished. */
UV_CLOSED = 0x02, /* close(2) finished. */
UV_READING = 0x04, /* uv_read_start() called. */
UV_SHUTTING = 0x08, /* uv_shutdown() called but not complete. */
UV_SHUT = 0x10, /* Write side closed. */
UV_READABLE = 0x20, /* The stream is readable */
UV_WRITABLE = 0x40, /* The stream is writable */
UV_TCP_NODELAY = 0x080, /* Disable Nagle. */
UV_TCP_KEEPALIVE = 0x100 /* Turn on keep-alive. */
};
size_t uv__strlcpy(char* dst, const char* src, size_t size);
int uv__close(int fd);
void uv__req_init(uv_req_t*);
void uv__handle_init(uv_loop_t* loop, uv_handle_t* handle, uv_handle_type type);
int uv__nonblock(int fd, int set) __attribute__((unused));
int uv__cloexec(int fd, int set) __attribute__((unused));
int uv__socket(int domain, int type, int protocol);
/* error */
uv_err_code uv_translate_sys_error(int sys_errno);
void uv_fatal_error(const int errorno, const char* syscall);
/* stream */
void uv__stream_init(uv_loop_t* loop, uv_stream_t* stream,
uv_handle_type type);
int uv__stream_open(uv_stream_t*, int fd, int flags);
void uv__stream_destroy(uv_stream_t* stream);
void uv__stream_io(EV_P_ ev_io* watcher, int revents);
void uv__server_io(EV_P_ ev_io* watcher, int revents);
int uv__accept(int sockfd, struct sockaddr* saddr, socklen_t len);
int uv__connect(uv_connect_t* req, uv_stream_t* stream, struct sockaddr* addr,
socklen_t addrlen, uv_connect_cb cb);
/* tcp */
int uv_tcp_listen(uv_tcp_t* tcp, int backlog, uv_connection_cb cb);
int uv__tcp_nodelay(uv_tcp_t* handle, int enable);
int uv__tcp_keepalive(uv_tcp_t* handle, int enable, unsigned int delay);
/* pipe */
int uv_pipe_listen(uv_pipe_t* handle, int backlog, uv_connection_cb cb);
void uv__pipe_accept(EV_P_ ev_io* watcher, int revents);
int uv_pipe_cleanup(uv_pipe_t* handle);
/* udp */
void uv__udp_destroy(uv_udp_t* handle);
void uv__udp_watcher_stop(uv_udp_t* handle, ev_io* w);
/* fs */
void uv__fs_event_destroy(uv_fs_event_t* handle);
#endif /* UV_UNIX_INTERNAL_H_ */
| 34.55303 | 91 | 0.721991 |
5bb372ee07d4d58e562eae7e125d59bc792ddc20 | 1,752 | h | C | VTK/ThirdParty/vtkm/vtk-m/vtkm/worklet/colorconversion/Portals.h | brown-ccv/paraview-scalable | 64b221a540737d2ac94a120039bd8d1e661bdc8f | [
"Apache-2.0",
"BSD-3-Clause"
] | 1 | 2021-10-03T16:47:04.000Z | 2021-10-03T16:47:04.000Z | VTK/ThirdParty/vtkm/vtk-m/vtkm/worklet/colorconversion/Portals.h | brown-ccv/paraview-scalable | 64b221a540737d2ac94a120039bd8d1e661bdc8f | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | VTK/ThirdParty/vtkm/vtk-m/vtkm/worklet/colorconversion/Portals.h | brown-ccv/paraview-scalable | 64b221a540737d2ac94a120039bd8d1e661bdc8f | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | //=============================================================================
//
// Copyright (c) Kitware, Inc.
// All rights reserved.
// See LICENSE.txt for details.
//
// This software is distributed WITHOUT ANY WARRANTY; without even
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
// PURPOSE. See the above copyright notice for more information.
//
// Copyright 2015 National Technology & Engineering Solutions of Sandia, LLC (NTESS).
// Copyright 2015 UT-Battelle, LLC.
// Copyright 2015 Los Alamos National Security.
//
// Under the terms of Contract DE-NA0003525 with NTESS,
// the U.S. Government retains certain rights in this software.
// Under the terms of Contract DE-AC52-06NA25396 with Los Alamos National
// Laboratory (LANL), the U.S. Government retains certain rights in
// this software.
//
//=============================================================================
#ifndef vtk_m_worklet_colorconversion_Portals_h
#define vtk_m_worklet_colorconversion_Portals_h
#include <vtkm/VectorAnalysis.h>
namespace vtkm
{
namespace worklet
{
namespace colorconversion
{
struct MagnitudePortal
{
template <typename T, int N>
VTKM_EXEC auto operator()(const vtkm::Vec<T, N>& values) const
-> decltype(vtkm::Magnitude(values))
{ //Should we be using RMag?
return vtkm::Magnitude(values);
}
};
struct ComponentPortal
{
vtkm::IdComponent Component;
ComponentPortal()
: Component(0)
{
}
ComponentPortal(vtkm::IdComponent comp)
: Component(comp)
{
}
template <typename T>
VTKM_EXEC auto operator()(T&& value) const ->
typename std::remove_reference<decltype(value[vtkm::IdComponent{}])>::type
{
return value[this->Component];
}
};
}
}
}
#endif
| 25.391304 | 86 | 0.656393 |
a5b59ce6375dadb601b50d8709fbb2e1009b88d8 | 13,395 | c | C | lib/secure-streams/system/auth-sigv4/sign.c | suirless/libwebsockets | 763d5adc6e5a366f5ac6fde57c44c3f0130f239c | [
"MIT"
] | null | null | null | lib/secure-streams/system/auth-sigv4/sign.c | suirless/libwebsockets | 763d5adc6e5a366f5ac6fde57c44c3f0130f239c | [
"MIT"
] | null | null | null | lib/secure-streams/system/auth-sigv4/sign.c | suirless/libwebsockets | 763d5adc6e5a366f5ac6fde57c44c3f0130f239c | [
"MIT"
] | 1 | 2020-08-10T22:17:23.000Z | 2020-08-10T22:17:23.000Z | /*
* Sigv4 support for Secure Streams
*
* libwebsockets - small server side websockets and web server implementation
*
* Copyright (C) 2020 Andy Green <andy@warmcat.com>
* securestreams-dev@amazon.com
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
#include <private-lib-core.h>
struct sigv4_header {
const char * name;
const char * value;
};
#define MAX_HEADER_NUM 8
struct sigv4 {
struct sigv4_header headers[MAX_HEADER_NUM];
uint8_t hnum;
char ymd[10]; /*YYYYMMDD*/
const char *timestamp;
const char *payload_hash;
const char *region;
const char *service;
};
static const uint8_t blob_idx[] = {
LWS_SYSBLOB_TYPE_EXT_AUTH1,
LWS_SYSBLOB_TYPE_EXT_AUTH2,
LWS_SYSBLOB_TYPE_EXT_AUTH3,
LWS_SYSBLOB_TYPE_EXT_AUTH4,
};
enum {
LWS_SS_SIGV4_KEYID,
LWS_SS_SIGV4_KEY,
LWS_SS_SIGV4_BLOB_SLOTS
};
static inline int add_header(struct sigv4 *s, const char *name, const char *value)
{
if (s->hnum >= MAX_HEADER_NUM) {
lwsl_err("%s too many sigv4 headers\n", __func__);
return -1;
}
s->headers[s->hnum].name = name;
s->headers[s->hnum].value = value;
s->hnum++;
if (!strncmp(name, "x-amz-content-sha256", strlen("x-amz-content-sha256")))
s->payload_hash = value;
if (!strncmp(name, "x-amz-date", strlen("x-amz-date"))) {
s->timestamp = value;
strncpy(s->ymd, value, 8);
}
return 0;
}
static int
cmp_header(const void * a, const void * b)
{
return strcmp(((struct sigv4_header *)a)->name,
((struct sigv4_header *)b)->name);
}
static int
init_sigv4(struct lws *wsi, struct lws_ss_handle *h, struct sigv4 *s)
{
lws_ss_metadata_t *polmd = h->policy->metadata;
int m = 0;
add_header(s, "host:", lws_hdr_simple_ptr(wsi, _WSI_TOKEN_CLIENT_HOST));
while (polmd) {
if (polmd->value__may_own_heap &&
((uint8_t *)polmd->value__may_own_heap)[0] &&
h->metadata[m].value__may_own_heap) {
/* consider all headers start with "x-amz-" need to be signed */
if (!strncmp(polmd->value__may_own_heap, "x-amz-",
strlen("x-amz-"))) {
if (add_header(s, polmd->value__may_own_heap,
h->metadata[m].value__may_own_heap))
return -1;
}
}
if (!strcmp(h->metadata[m].name, h->policy->aws_region) &&
h->metadata[m].value__may_own_heap)
s->region = h->metadata[m].value__may_own_heap;
if (!strcmp(h->metadata[m].name, h->policy->aws_service) &&
h->metadata[m].value__may_own_heap)
s->service = h->metadata[m].value__may_own_heap;
m++;
polmd = polmd->next;
}
qsort(s->headers, s->hnum, sizeof(struct sigv4_header), cmp_header);
#if 0
do {
int i;
for (i= 0; i<s->hnum; i++)
lwsl_debug("%s hdr %s %s\n", __func__,
s->headers[i].name, s->headers[i].value);
lwsl_debug("%s service: %s region: %s\n", __func__,
s->service, s->region);
} while(0);
#endif
return 0;
}
static void
bin2hex(uint8_t *in, size_t len, char *out)
{
static const char *hex = "0123456789abcdef";
size_t n;
for (n = 0; n < len; n++) {
*out++ = hex[(in[n] >> 4) & 0xf];
*out++ = hex[in[n] & 15];
}
*out = '\0';
}
static int
sha256hash(uint8_t *data, size_t len, char *out)
{
struct lws_genhash_ctx hash_ctx;
uint8_t hash_bin[32];
if (lws_genhash_init(&hash_ctx, LWS_GENHASH_TYPE_SHA256) ||
lws_genhash_update(&hash_ctx, (void *)data, len) ||
lws_genhash_destroy(&hash_ctx, hash_bin))
{
lws_genhash_destroy(&hash_ctx, NULL);
lwsl_err("%s lws_genhash error \n", __func__);
return -1;
}
bin2hex(hash_bin, sizeof(hash_bin), out);
return 0;
}
static int
hmacsha256(const uint8_t *key, size_t keylen, const uint8_t *txt,
size_t txtlen, uint8_t *digest)
{
struct lws_genhmac_ctx hmacctx;
if (lws_genhmac_init(&hmacctx, LWS_GENHMAC_TYPE_SHA256,
key, keylen))
return -1;
if (lws_genhmac_update(&hmacctx, txt, txtlen)) {
lwsl_err("%s: hmac computation failed\n", __func__);
lws_genhmac_destroy(&hmacctx, NULL);
return -1;
}
if (lws_genhmac_destroy(&hmacctx, digest)) {
lwsl_err("%s: problem destroying hmac\n", __func__);
return -1;
}
return 0;
}
static int
build_sign_string(struct lws *wsi, char *buf, size_t bufsz,
struct lws_ss_handle *h, struct sigv4 *s)
{
char hash[65], *end = &buf[bufsz - 1], *start;
int i;
start = buf;
/*
* build canonical_request and hash it
*/
buf += lws_snprintf(buf, lws_ptr_diff_size_t(end, buf), "%s\n%s\n",
h->policy->u.http.method,
lws_hdr_simple_ptr(wsi, _WSI_TOKEN_CLIENT_URI));
/* TODO, append query string */
buf += lws_snprintf(buf, lws_ptr_diff_size_t(end, buf), "\n");
for (i = 0; i < s->hnum; i++) {
buf += lws_snprintf(buf, lws_ptr_diff_size_t(end, buf), "%s%s\n",
s->headers[i].name, s->headers[i].value);
}
buf += lws_snprintf(buf, lws_ptr_diff_size_t(end, buf), "\n");
for (i = 0; i < s->hnum; i++) {
buf += lws_snprintf(buf, lws_ptr_diff_size_t(end, buf), "%s",
s->headers[i].name);
buf--; /* remove ':' */
*buf++ = ';';
}
buf--; /* remove the trailing ';' */
buf += lws_snprintf(buf, lws_ptr_diff_size_t(end, buf), "\n%s",
s->payload_hash);
*buf++ = '\0';
assert(buf <= start + bufsz);
sha256hash((uint8_t *)start, strlen(start), hash);
/*
* build sign string like the following
*
* "AWS4-HMAC-SHA256" + "\n" +
* timeStampISO8601Format + "\n" +
* date.Format(<YYYYMMDD>) + "/" + <region> + "/" + <service> + "/aws4_request" + "\n" +
* Hex(SHA256Hash(<CanonicalRequest>))
*/
buf = start;
buf += lws_snprintf(buf, lws_ptr_diff_size_t(end, buf), "%s\n",
"AWS4-HMAC-SHA256");
buf += lws_snprintf(buf, lws_ptr_diff_size_t(end, buf), "%s\n",
s->timestamp);
buf += lws_snprintf(buf, lws_ptr_diff_size_t(end, buf), "%s/%s/%s/%s\n",
s->ymd, s->region, s->service, "aws4_request");
buf += lws_snprintf(buf, lws_ptr_diff_size_t(end, buf), "%s", hash);
*buf++ = '\0';
assert(buf <= start + bufsz);
return 0;
}
/*
* DateKey = HMAC-SHA256("AWS4"+"<SecretAccessKey>", "<YYYYMMDD>")
* DateRegionKey = HMAC-SHA256(<DateKey>, "<aws-region>")
* DateRegionServiceKey = HMAC-SHA256(<DateRegionKey>, "<aws-service>")
* SigningKey = HMAC-SHA256(<DateRegionServiceKey>, "aws4_request")
*/
static int
calc_signing_key(struct lws *wsi, struct lws_ss_handle *h,
struct sigv4 *s, uint8_t *sign_key)
{
uint8_t key[128], date_key[32], and_region_key[32],
and_service_key[32], *kb;
lws_system_blob_t *ab;
size_t keylen;
int n;
ab = lws_system_get_blob(wsi->a.context,
blob_idx[h->policy->auth->blob_index],
LWS_SS_SIGV4_KEY);
if (!ab)
return -1;
kb = key;
*kb++ = 'A';
*kb++ = 'W';
*kb++ = 'S';
*kb++ = '4';
keylen = sizeof(key) - 4;
if (lws_system_blob_get_size(ab) > keylen - 1)
return -1;
n = lws_system_blob_get(ab, kb, &keylen, 0);
if (n < 0)
return -1;
kb[keylen] = '\0';
hmacsha256((const uint8_t *)key, strlen((const char *)key),
(const uint8_t *)s->ymd, strlen(s->ymd), date_key);
hmacsha256(date_key, sizeof(date_key), (const uint8_t *)s->region,
strlen(s->region), and_region_key);
hmacsha256(and_region_key, sizeof(and_region_key),
(const uint8_t *)s->service,
strlen(s->service), and_service_key);
hmacsha256(and_service_key, sizeof(and_service_key),
(uint8_t *)"aws4_request",
strlen("aws4_request"), sign_key);
return 0;
}
/* Sample auth string:
*
* 'Authorization: AWS4-HMAC-SHA256 Credential=AKIAVHWASOFE7TJ7ZUQY/20200731/us-west-2/s3/aws4_request,
* SignedHeaders=host;x-amz-content-sha256;x-amz-date, \
* Signature=ad9fb75ff3b46c7990e3e8f090abfdd6c01fd67761a517111694377e20698377'
*/
static int
build_auth_string(struct lws *wsi, char * buf, size_t bufsz,
struct lws_ss_handle *h, struct sigv4 *s,
uint8_t *signature_bin)
{
char *start = buf, *end = &buf[bufsz - 1];
char *c;
lws_system_blob_t *ab;
size_t keyidlen = 128; // max keyid len is 128
int n;
buf += lws_snprintf(buf, lws_ptr_diff_size_t(end, buf), "%s",
"AWS4-HMAC-SHA256 ");
ab = lws_system_get_blob(wsi->a.context,
blob_idx[h->policy->auth->blob_index],
LWS_SS_SIGV4_KEYID);
if (!ab)
return -1;
buf += lws_snprintf(buf, lws_ptr_diff_size_t(end, buf), "%s",
"Credential=");
n = lws_system_blob_get(ab,(uint8_t *)buf, &keyidlen, 0);
if (n < 0)
return -1;
buf += keyidlen;
buf += lws_snprintf(buf, lws_ptr_diff_size_t(end, buf), "/%s/%s/%s/%s, ",
s->ymd, s->region, s->service, "aws4_request");
buf += lws_snprintf(buf, lws_ptr_diff_size_t(end, buf), "%s",
"SignedHeaders=");
for (n = 0; n < s->hnum; n++) {
buf += lws_snprintf(buf, lws_ptr_diff_size_t(end, buf),
"%s",s->headers[n].name);
buf--; /* remove ':' */
*buf++ = ';';
}
c = buf - 1;
*c = ','; /* overwrite ';' back to ',' */
buf += lws_snprintf(buf, lws_ptr_diff_size_t(end, buf),
"%s", " Signature=");
bin2hex(signature_bin, 32, buf);
assert(buf+65 <= start + bufsz);
lwsl_debug("%s %s\n", __func__, start);
return 0;
}
int
lws_ss_apply_sigv4(struct lws *wsi, struct lws_ss_handle *h,
unsigned char **p, unsigned char *end)
{
uint8_t buf[512], sign_key[32], signature_bin[32], *bp;
struct sigv4 s;
memset(&s, 0, sizeof(s));
bp = buf;
init_sigv4(wsi, h, &s);
if (!s.timestamp || !s.payload_hash) {
lwsl_err("%s missing headers\n", __func__);
return -1;
}
if (build_sign_string(wsi, (char *)bp, sizeof(buf), h, &s))
return -1;
if (calc_signing_key(wsi, h, &s, sign_key))
return -1;
hmacsha256(sign_key, sizeof(sign_key), (const uint8_t *)buf,
strlen((const char *)buf), signature_bin);
bp = buf; /* reuse for auth_str */
if (build_auth_string(wsi, (char *)bp, sizeof(buf), h, &s,
signature_bin))
return -1;
if (lws_add_http_header_by_name(wsi,
(const uint8_t *)"Authorization:", buf,
(int)strlen((const char*)buf), p, end))
return -1;
return 0;
}
int
lws_ss_sigv4_set_aws_key(struct lws_context* context, uint8_t idx,
const char * keyid, const char * key)
{
const char * s[] = { keyid, key };
lws_system_blob_t *ab;
int i;
if (idx > LWS_ARRAY_SIZE(blob_idx))
return -1;
for (i = 0; i < LWS_SS_SIGV4_BLOB_SLOTS; i++) {
ab = lws_system_get_blob(context, blob_idx[idx], i);
if (!ab)
return -1;
lws_system_blob_heap_empty(ab);
if (lws_system_blob_heap_append(ab, (const uint8_t *)s[i],
strlen(s[i]))) {
lwsl_err("%s: can't store %d \n", __func__, i);
return -1;
}
}
return 0;
}
#if defined(__linux__) || defined(__APPLE__) || defined(WIN32) || \
defined(__FreeBSD__) || defined(__NetBSD__) || defined(__ANDROID__)
/* ie, if we have filesystem ops */
int
lws_aws_filesystem_credentials_helper(const char *path, const char *kid,
const char *ak, char **aws_keyid,
char **aws_key)
{
char *str = NULL, *val = NULL, *line = NULL, sth[128];
size_t len = sizeof(sth);
const char *home = "";
int i, poff = 0;
ssize_t rd;
FILE *fp;
*aws_keyid = *aws_key = NULL;
if (path[0] == '~') {
home = getenv("HOME");
if (home && strlen(home) > sizeof(sth) - 1) /* coverity */
return -1;
else {
if (!home)
home = "";
poff = 1;
}
}
lws_snprintf(sth, sizeof(sth), "%s%s", home, path + poff);
fp = fopen(sth, "r");
if (!fp) {
lwsl_err("%s can't open '%s'\n", __func__, sth);
return -1;
}
while ((rd = getline(&line, &len, fp)) != -1) {
for (i = 0; i < 2; i++) {
size_t slen;
if (strncmp(line, i ? kid : ak, strlen(i ? kid : ak)))
continue;
str = strchr(line, '=');
if (!str)
continue;
str++;
/* only read the first key for each */
if (*(i ? aws_keyid : aws_key))
continue;
/*
* Trim whitespace from the start and end
*/
slen = (size_t)(rd - lws_ptr_diff(str, line));
while (slen && *str == ' ') {
str++;
slen--;
}
while (slen && (str[slen - 1] == '\r' ||
str[slen - 1] == '\n' ||
str[slen - 1] == ' '))
slen--;
val = malloc(slen + 1);
if (!val)
goto bail;
strncpy(val, str, slen);
val[slen] = '\0';
*(i ? aws_keyid : aws_key) = val;
}
}
bail:
fclose(fp);
if (line)
free(line);
if (!*aws_keyid || !*aws_key) {
if (*aws_keyid) {
free(*aws_keyid);
*aws_keyid = NULL;
}
if (*aws_key) {
free(*aws_key);
*aws_key = NULL;
}
lwsl_err("%s can't find aws credentials! \
please check %s\n", __func__, path);
return -1;
}
lwsl_info("%s: '%s' '%s'\n", __func__, *aws_keyid, *aws_key);
return 0;
}
#endif
| 24.443431 | 103 | 0.640538 |
8b45b4ae33b71aa406798684544588548c8d3cd6 | 266 | c | C | test/test_lstm_get_tfunc_id.c | jamesljlster/lstm | 9fe427551fae4fae6542196405f6c797a6ce31aa | [
"MIT"
] | null | null | null | test/test_lstm_get_tfunc_id.c | jamesljlster/lstm | 9fe427551fae4fae6542196405f6c797a6ce31aa | [
"MIT"
] | null | null | null | test/test_lstm_get_tfunc_id.c | jamesljlster/lstm | 9fe427551fae4fae6542196405f6c797a6ce31aa | [
"MIT"
] | null | null | null | #include <stdio.h>
#include "lstm.h"
#include "lstm_builtin_math.h"
int main()
{
int i;
const char* tmp;
for(i = 0; i < LSTM_TFUNC_AMOUNT; i++)
{
tmp = lstm_transfer_func_name[i];
printf("%s: %d\n", tmp, lstm_get_transfer_func_id(tmp));
}
return 0;
}
| 13.3 | 58 | 0.642857 |
53ce82547b864b2e349d223ba46453da6d9ef78c | 542 | h | C | examples/linking/dll_uses_dll/dll1.h | swils/verifast | b0bdb6b5bb49cb6a6ae5457e703ee3eea9f3463e | [
"MIT"
] | 272 | 2016-01-28T16:01:28.000Z | 2022-03-10T11:53:19.000Z | examples/linking/dll_uses_dll/dll1.h | swils/verifast | b0bdb6b5bb49cb6a6ae5457e703ee3eea9f3463e | [
"MIT"
] | 207 | 2016-01-28T16:03:17.000Z | 2022-03-11T14:38:58.000Z | examples/linking/dll_uses_dll/dll1.h | DriesVuylsteke/verifast | 79e814ad7236a7aa99424a03799d27b73b71c4ce | [
"MIT"
] | 59 | 2016-04-03T17:52:17.000Z | 2022-01-28T11:35:57.000Z | #ifndef DLL1_H
#define DLL1_H
#include "dll2.h"
struct struct_dll1;
//@ predicate predicate_dll1(struct struct_dll1* s);
struct struct_dll1* get_struct_dll1();
//@ requires true;
//@ ensures predicate_dll1(result);
void free_struct_dll1(struct struct_dll1 *s);
//@ requires predicate_dll1(s);
//@ ensures true;
struct struct_dll2* get_struct_dll2_stub();
//@ requires true;
//@ ensures predicate_dll2(result);
void free_struct_dll2_stub(struct struct_dll2 *s);
//@ requires predicate_dll2(s);
//@ ensures true;
#endif
| 20.074074 | 52 | 0.728782 |
3ecaf5db5d45112196f2117e567b8b0a33918dc8 | 1,865 | c | C | Queue/Queue.c | blentle/DataStructure | df43eeebb14e88997bbc848f9e754b50d3d9e113 | [
"MIT"
] | 5 | 2021-04-09T16:05:16.000Z | 2022-02-11T06:55:45.000Z | Queue/Queue.c | blentle/DataStructure | df43eeebb14e88997bbc848f9e754b50d3d9e113 | [
"MIT"
] | 1 | 2022-01-28T08:56:54.000Z | 2022-01-28T08:56:54.000Z | Queue/Queue.c | blentle/DataStructure | df43eeebb14e88997bbc848f9e754b50d3d9e113 | [
"MIT"
] | 5 | 2021-04-09T16:05:47.000Z | 2022-03-26T09:58:46.000Z | /**
* File Name: Queue.c
* Author: tyrantlucifer
* E-mail: tyrantlucifer@gmail.com
* Blog: https://tyrantlucifer.com
*/
#include <stdio.h>
#include <stdlib.h>
/**
* define the node of queue
*/
typedef struct Node {
int data;
struct Node* next;
struct Node* pre;
} Node;
/**
* init queue
* @return the head pointer of queue
*/
Node* initQueue() {
Node* Q = (Node*)malloc(sizeof(Node));
Q->data = 0;
Q->pre = Q;
Q->next = Q;
return Q;
}
/**
* enqueue
* @param Q the head pointer of queue
* @param data the data you want to enqueue
*/
void enQueue(Node* Q, int data) {
Node* node = (Node*)malloc(sizeof(Node));
node->data = data;
node->next = Q;
node->pre = Q->pre;
Q->pre->next = node;
Q->pre = node;
Q->data++;
}
/**
* judge queue is or not empty
* @param Q the head pointer of queue
* @return empty flag
*/
int isEmpty(Node* Q) {
if (Q->data == 0 || Q->next == Q) {
return 1;
} else {
return 0;
}
}
/**
* dequeue
* @param Q the head pointer of queue
* @return the data of dequeue
*/
int deQueue(Node* Q) {
if (isEmpty(Q)) {
return 0;
} else {
Node* node = Q->next;
Q->next = Q->next->next;
Q->next->pre = Q;
Q->data--;
return node->data;
}
}
/**
* print all item in queue
* @param Q the head pointer of queue
*/
void printQueue(Node* Q) {
Node* node = Q -> next;
while (node != Q) {
printf("%d -> ", node -> data);
node = node -> next;
}
printf("NULL\n");
}
/**
* main function
* @return null
*/
int main() {
Node* Q = initQueue();
enQueue(Q, 1);
enQueue(Q, 2);
enQueue(Q, 3);
enQueue(Q, 4);
printQueue(Q);
printf("dequeue = %d\n", deQueue(Q));
printf("dequeue = %d\n", deQueue(Q));
printQueue(Q);
return 0;
}
| 17.761905 | 45 | 0.534048 |
0edf09b936c09d439bbc14cbdfa65debdca3d98c | 1,032 | h | C | cds/os/timer.h | simple555a/libcds | d05a0909402369d4a79eb82aed1742a7b227548b | [
"BSD-2-Clause"
] | null | null | null | cds/os/timer.h | simple555a/libcds | d05a0909402369d4a79eb82aed1742a7b227548b | [
"BSD-2-Clause"
] | null | null | null | cds/os/timer.h | simple555a/libcds | d05a0909402369d4a79eb82aed1742a7b227548b | [
"BSD-2-Clause"
] | 1 | 2020-02-01T15:18:59.000Z | 2020-02-01T15:18:59.000Z | //$$CDS-header$$
#ifndef CDSLIB_OS_TIMER_H
#define CDSLIB_OS_TIMER_H
#include <cds/details/defs.h>
#if CDS_OS_TYPE == CDS_OS_WIN32 || CDS_OS_TYPE == CDS_OS_WIN64 || CDS_OS_TYPE == CDS_OS_MINGW
# include <cds/os/win/timer.h>
#elif CDS_OS_TYPE == CDS_OS_LINUX
# include <cds/os/linux/timer.h>
#elif CDS_OS_TYPE == CDS_OS_SUN_SOLARIS
# include <cds/os/sunos/timer.h>
#elif CDS_OS_TYPE == CDS_OS_HPUX
# include <cds/os/hpux/timer.h>
#elif CDS_OS_TYPE == CDS_OS_AIX
# include <cds/os/aix/timer.h>
#elif CDS_OS_TYPE == CDS_OS_FREE_BSD
# include <cds/os/free_bsd/timer.h>
#elif CDS_OS_TYPE == CDS_OS_OSX
# include <cds/os/osx/timer.h>
#elif CDS_OS_TYPE == CDS_OS_PTHREAD || CDS_OS_INTERFACE == CDS_OSI_UNIX
# include <cds/os/posix/timer.h>
#else
//************************************************************************
// Other OSes
//************************************************************************
# error Unknown operating system. Compilation aborted.
#endif
#endif // #ifndef CDSLIB_OS_TIMER_H
| 32.25 | 93 | 0.622093 |
856be1e51fdeba110b0310254e097affe1ab86b7 | 1,682 | h | C | src/Qt/TreeItem.h | DrScKAWAMOTO/FullereneViewer | 8ddbbf337610e85825735481ee7dd549357f4f02 | [
"Apache-2.0"
] | null | null | null | src/Qt/TreeItem.h | DrScKAWAMOTO/FullereneViewer | 8ddbbf337610e85825735481ee7dd549357f4f02 | [
"Apache-2.0"
] | 10 | 2015-01-01T02:56:26.000Z | 2015-09-18T19:10:55.000Z | src/Qt/TreeItem.h | DrScKAWAMOTO/FullereneViewer | 8ddbbf337610e85825735481ee7dd549357f4f02 | [
"Apache-2.0"
] | 1 | 2018-11-20T06:00:21.000Z | 2018-11-20T06:00:21.000Z | /*
* Project: FullereneViewer
* Version: 1.0
* Copyright: (C) 2011-15 Dr.Sc.KAWAMOTO,Takuji (Ext)
*/
#ifndef __TREEITEM_H__
#define __TREEITEM_H__
#include <QVariant>
class TreeItem {
// friend classes & functions
// members
private:
int p_row;
const TreeItem* p_parent;
int p_number_of_children;
const TreeItem* p_children;
const char* p_data;
// private tools
// constructors & the destructor
public:
TreeItem(int row, const TreeItem* parent,
int number_of_children, const TreeItem* children, const char* data)
: p_row(row), p_parent(parent),
p_number_of_children(number_of_children), p_children(children), p_data(data) { }
~TreeItem() { }
// type converters
// comparators
// math operators
// I/O
// class decision
static TreeItem* top_item();
// member accessing methods
const TreeItem* child(int row) const { return p_children + row; }
int number_of_children() const { return p_number_of_children; }
QVariant data() const { return p_data; }
const char* data_as_string() const { return p_data; }
int row() const { return p_row; }
const TreeItem* parent() const { return p_parent; }
};
extern TreeItem root_mtis[];
extern const TreeItem ring_mtis[];
extern const int number_of_ring_mtis_top;
extern const TreeItem carbon_mtis[];
extern const int number_of_carbon_mtis_top;
extern const TreeItem bond_mtis[];
extern const int number_of_bond_mtis_top;
extern const TreeItem tube_mtis[];
extern const int number_of_tube_mtis_top;
extern const TreeItem merged_mtis[];
extern const int number_of_merged_mtis_top;
#endif /* __TREEITEM_H__ */
/* Local Variables: */
/* mode: c++ */
/* End: */
| 23.690141 | 86 | 0.720571 |
8b6040d82cc300ef8fde44b1cbf5ae20bb82d369 | 17,640 | c | C | components/connectivity/qcloud-iot-hub-sdk/3rdparty/samples/mqtt/multi_thread_mqtt_sample.c | QingChuanWS/tencentos-tiny-with-tflitemicro-and-iot | e036d344b4729e70877f55026bb11841991f6650 | [
"Apache-2.0"
] | 4 | 2021-02-01T07:14:21.000Z | 2021-04-08T08:24:25.000Z | components/connectivity/qcloud-iot-hub-sdk/3rdparty/samples/mqtt/multi_thread_mqtt_sample.c | QingChuanWS/tencentos-tiny-with-tflitemicro-and-iot | e036d344b4729e70877f55026bb11841991f6650 | [
"Apache-2.0"
] | null | null | null | components/connectivity/qcloud-iot-hub-sdk/3rdparty/samples/mqtt/multi_thread_mqtt_sample.c | QingChuanWS/tencentos-tiny-with-tflitemicro-and-iot | e036d344b4729e70877f55026bb11841991f6650 | [
"Apache-2.0"
] | 3 | 2021-01-10T09:56:57.000Z | 2022-02-08T19:56:50.000Z | /*
* Tencent is pleased to support the open source community by making IoT Hub available.
* Copyright (C) 2018-2020 THL A29 Limited, a Tencent company. All rights reserved.
* Licensed under the MIT License (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://opensource.org/licenses/MIT
* Unless required by applicable law or agreed to in writing, software distributed under the License is
* distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
* either express or implied. See the License for the specific language governing permissions and
* limitations under the License.
*
*/
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "lite-utils.h"
#include "qcloud_iot_export.h"
#include "qcloud_iot_import.h"
/*
* Notes for using SDK in multi-thread programing
* 1. IOT_MQTT_Yield, IOT_MQTT_Construct and IOT_MQTT_Destroy are NOT thread-safe, only calling them in the same thread
* 2. IOT_MQTT_Publish, IOT_MQTT_Subscribe and IOT_MQTT_Unsubscribe are thread-safe, and be executed in multi-threads
* simultaneously
* 3. IOT_MQTT_Yield is the only entry to read from socket and should not be hand up for long
* 4. Using IOT_MQTT_StartLoop to start a default thread for IOT_MQTT_Yield is recommended
*/
/*
* This sample test MQTT multi-thread performance for one device.
*/
#define MAX_PUB_THREAD_COUNT 5
#define PUBLISH_COUNT 10
#define THREAD_SLEEP_INTERVAL_MS 1000
#define RX_RECEIVE_PERCENTAGE 99.0f
#define MAX_SIZE_OF_TOPIC_CONTENT 100
// device info
static DeviceInfo sg_device_info;
static bool sg_sub_unsub_thread_quit;
static unsigned int sg_rx_count_array[MAX_PUB_THREAD_COUNT]
[PUBLISH_COUNT]; // record the times when msg from subscribed topic is received
static unsigned int sg_rx_msg_buf_too_big_count; // record the times when msg is oversize
static unsigned int sg_rx_unexpected_count; // record the times when unexpected msg is received
static unsigned int sg_republish_count; // record the times of re-publish
static char sg_pub_sub_test_topic[MAX_SIZE_OF_TOPIC_CONTENT]; // topic for sub/pub
typedef struct AppThreadData {
void *client;
int thread_id;
int thread_status;
} AppThreadData;
void event_handler(void *pclient, void *handle_context, MQTTEventMsg *msg)
{
MQTTMessage *mqtt_messge = (MQTTMessage *)msg->msg;
uintptr_t packet_id = (uintptr_t)msg->msg;
switch (msg->event_type) {
case MQTT_EVENT_UNDEF:
Log_i("undefined event occur.");
break;
case MQTT_EVENT_DISCONNECT:
Log_i("MQTT disconnect.");
break;
case MQTT_EVENT_RECONNECT:
Log_i("MQTT reconnect.");
break;
case MQTT_EVENT_PUBLISH_RECVEIVED:
Log_i("topic message arrived but without any related handle: topic=%.*s, topic_msg=%.*s",
mqtt_messge->topic_len, mqtt_messge->ptopic, mqtt_messge->payload_len, mqtt_messge->payload);
break;
case MQTT_EVENT_SUBCRIBE_SUCCESS:
Log_i("subscribe success, packet-id=%u", (unsigned int)packet_id);
break;
case MQTT_EVENT_SUBCRIBE_TIMEOUT:
Log_i("subscribe wait ack timeout, packet-id=%u", (unsigned int)packet_id);
break;
case MQTT_EVENT_SUBCRIBE_NACK:
Log_i("subscribe nack, packet-id=%u", (unsigned int)packet_id);
break;
case MQTT_EVENT_UNSUBCRIBE_SUCCESS:
Log_i("unsubscribe success, packet-id=%u", (unsigned int)packet_id);
break;
case MQTT_EVENT_UNSUBCRIBE_TIMEOUT:
Log_i("unsubscribe timeout, packet-id=%u", (unsigned int)packet_id);
break;
case MQTT_EVENT_UNSUBCRIBE_NACK:
Log_i("unsubscribe nack, packet-id=%u", (unsigned int)packet_id);
break;
case MQTT_EVENT_PUBLISH_SUCCESS:
Log_i("publish success, packet-id=%u", (unsigned int)packet_id);
break;
case MQTT_EVENT_PUBLISH_TIMEOUT:
Log_i("publish timeout, packet-id=%u", (unsigned int)packet_id);
break;
case MQTT_EVENT_PUBLISH_NACK:
Log_i("publish nack, packet-id=%u", (unsigned int)packet_id);
break;
default:
Log_i("Should NOT arrive here.");
break;
}
}
static int _setup_connect_init_params(MQTTInitParams *initParams)
{
int ret;
ret = HAL_GetDevInfo((void *)&sg_device_info);
if (QCLOUD_RET_SUCCESS != ret) {
return ret;
}
initParams->device_name = sg_device_info.device_name;
initParams->product_id = sg_device_info.product_id;
#ifdef AUTH_MODE_CERT
char certs_dir[16] = "certs";
char current_path[128];
char *cwd = getcwd(current_path, sizeof(current_path));
if (cwd == NULL) {
Log_e("getcwd return NULL");
return QCLOUD_ERR_FAILURE;
}
HAL_Snprintf(initParams->cert_file, FILE_PATH_MAX_LEN, "%s/%s/%s", current_path, certs_dir,
sg_device_info.dev_cert_file_name);
HAL_Snprintf(initParams->key_file, FILE_PATH_MAX_LEN, "%s/%s/%s", current_path, certs_dir,
sg_device_info.dev_key_file_name);
#else
initParams->device_secret = sg_device_info.device_secret;
#endif
memset(sg_pub_sub_test_topic, 0, MAX_SIZE_OF_TOPIC_CONTENT);
HAL_Snprintf(sg_pub_sub_test_topic, MAX_SIZE_OF_TOPIC_CONTENT, "%s/%s/data", sg_device_info.product_id,
sg_device_info.device_name);
initParams->command_timeout = QCLOUD_IOT_MQTT_COMMAND_TIMEOUT;
initParams->keep_alive_interval_ms = QCLOUD_IOT_MQTT_KEEP_ALIVE_INTERNAL;
initParams->auto_connect_enable = 1;
initParams->event_handle.h_fp = event_handler;
return QCLOUD_RET_SUCCESS;
}
static void _mqtt_message_handler(void *pClient, MQTTMessage *message, void *userData)
{
if (message == NULL) {
return;
}
if (MAX_SIZE_OF_TOPIC_CONTENT >= message->payload_len) {
/* parsing payload */
char tempBuf[MAX_SIZE_OF_TOPIC_CONTENT + 1] = {0};
unsigned int tempRow = 0, tempCol = 0;
char * temp = NULL;
HAL_Snprintf(tempBuf, message->payload_len + 1, "%s", (char *)message->payload);
Log_d("Message received : %s", tempBuf);
char *count_value = LITE_json_value_of("count", tempBuf);
if (count_value != NULL) {
tempCol = atoi(count_value);
HAL_Free(count_value);
} else {
Log_e("count value not found!");
sg_rx_unexpected_count++;
return;
}
char *action_value = LITE_json_value_of("action", tempBuf);
if (action_value != NULL) {
temp = strstr(action_value, "-");
if (NULL != temp) {
tempRow = atoi(temp + 1);
HAL_Free(action_value);
} else {
HAL_Free(action_value);
Log_e("invalid action value: %s", action_value);
sg_rx_unexpected_count++;
return;
}
} else {
Log_e("action value not found!");
sg_rx_unexpected_count++;
return;
}
if (((tempRow - 1) < MAX_PUB_THREAD_COUNT) && (tempCol < PUBLISH_COUNT)) {
sg_rx_count_array[tempRow - 1][tempCol]++;
} else {
Log_e(" Unexpected Thread : %d, Message : %d ", tempRow, tempCol);
sg_rx_unexpected_count++;
}
} else {
sg_rx_msg_buf_too_big_count++;
}
}
/**
* subscribe/unsubscribe test thread runner
* subscribed and unsubscribe
*/
static void _mqtt_sub_unsub_thread_runner(void *ptr)
{
int rc = QCLOUD_RET_SUCCESS;
void *pClient = ptr;
char testTopic[128];
HAL_Snprintf(testTopic, 128, "%s/%s/control", sg_device_info.product_id, sg_device_info.device_name);
while (QCLOUD_RET_SUCCESS == rc && false == sg_sub_unsub_thread_quit) {
do {
HAL_SleepMs(THREAD_SLEEP_INTERVAL_MS);
SubscribeParams sub_params = DEFAULT_SUB_PARAMS;
sub_params.qos = QOS1;
sub_params.on_message_handler = _mqtt_message_handler;
rc = IOT_MQTT_Subscribe(pClient, testTopic, &sub_params);
} while (QCLOUD_ERR_MQTT_NO_CONN == rc || QCLOUD_ERR_MQTT_REQUEST_TIMEOUT == rc);
if (rc < 0) {
Log_e("Subscribe failed. Ret : %d ", rc);
}
HAL_SleepMs(1000);
do {
HAL_SleepMs(THREAD_SLEEP_INTERVAL_MS);
rc = IOT_MQTT_Unsubscribe(pClient, testTopic);
} while (QCLOUD_ERR_MQTT_NO_CONN == rc || QCLOUD_ERR_MQTT_REQUEST_TIMEOUT == rc);
if (rc < 0) {
Log_e("Unsubscribe failed. Returned : %d ", rc);
}
}
}
/**
* do subscribe in the thread
*/
static int _mqtt_subscribe_to_test_topic(void *pClient)
{
SubscribeParams sub_params = DEFAULT_SUB_PARAMS;
sub_params.on_message_handler = _mqtt_message_handler;
sub_params.qos = QOS1;
return IOT_MQTT_Subscribe(pClient, sg_pub_sub_test_topic, &sub_params);
}
/**
* do publish in the thread
* loop for PUBLISH_COUNT times
* If publish failed in 1st time, do it again
*/
static void _mqtt_publish_thread_runner(void *ptr)
{
int itr = 0;
char topic_content[MAX_SIZE_OF_TOPIC_CONTENT + 1] = {0};
PublishParams params;
int rc = QCLOUD_RET_SUCCESS;
AppThreadData *thread_data = (AppThreadData *)ptr;
void * pClient = thread_data->client;
int thread_id = thread_data->thread_id;
for (itr = 0; itr < PUBLISH_COUNT; itr++) {
int size = HAL_Snprintf(topic_content, sizeof(topic_content), "{\"action\": \"thread-%d\", \"count\": \"%d\"}",
thread_id, itr);
if (size < 0 || size > sizeof(topic_content) - 1) {
Log_e("payload content length not enough! content size:%d buf size:%d", size, (int)sizeof(topic_content));
}
params.payload = (void *)topic_content;
params.payload_len = strlen(topic_content);
params.qos = QOS1;
Log_d("Msg being published: %s", topic_content);
do {
rc = IOT_MQTT_Publish(pClient, sg_pub_sub_test_topic, ¶ms);
HAL_SleepMs(THREAD_SLEEP_INTERVAL_MS);
} while (QCLOUD_ERR_MQTT_NO_CONN == rc || QCLOUD_ERR_MQTT_REQUEST_TIMEOUT == rc);
// 1st publish failed, re-publish and update sg_republish_count
if (rc < 0) {
Log_e("Failed attempt 1 Publishing Thread : %d, Msg : %d, cs : %d ", thread_id, itr, rc);
do {
rc = IOT_MQTT_Publish(pClient, sg_pub_sub_test_topic, ¶ms);
HAL_SleepMs(THREAD_SLEEP_INTERVAL_MS);
} while (QCLOUD_ERR_MQTT_NO_CONN == rc);
sg_republish_count++;
if (rc < 0) {
Log_e("Failed attempt 2 Publishing Thread : %d, Msg : %d, cs : %d Second Attempt ", thread_id, itr, rc);
}
}
}
thread_data->thread_status = 1;
}
/**
* thread safety performance test
*/
static int _mqtt_multi_thread_test(void *client)
{
float percent_of_rx_msg = 0.0; // record the success percentage of every pub send and recv
int finished_thread_count = 0; // record the number of finished publish threads
int rx_msg_count = 0; // record the times of successfull subscribe
// thread data passed to publish thread
AppThreadData thread_data[MAX_PUB_THREAD_COUNT] = {0};
ThreadParams pub_thread_params[MAX_PUB_THREAD_COUNT] = {0};
int rc = QCLOUD_RET_SUCCESS;
int test_result = 0;
int i = 0, j = 0;
// init the global variables
sg_rx_msg_buf_too_big_count = 0;
sg_rx_unexpected_count = 0;
sg_republish_count = 0;
if (client == NULL) {
Log_e("MQTT client is invalid!");
return QCLOUD_ERR_FAILURE;
}
/* create a thread to test subscribe and unsubscribe another topic */
ThreadParams sub_thread_params = {0};
sub_thread_params.thread_func = _mqtt_sub_unsub_thread_runner;
sub_thread_params.user_arg = client;
rc = HAL_ThreadCreate(&sub_thread_params);
if (rc < 0) {
Log_e("Create Sub_unsub thread failed: %d", rc);
return rc;
}
/* subscribe the same test topic as publish threads */
rc = _mqtt_subscribe_to_test_topic(client);
if (rc < 0) {
Log_e("Client subscribe failed: %d", rc);
return rc;
}
/* setup the thread info for pub-threads */
for (j = 0; j < MAX_PUB_THREAD_COUNT; j++) {
thread_data[j].client = client;
// self defined thread ID: 1 - MAX_PUB_THREAD_COUNT
thread_data[j].thread_id = j + 1;
thread_data[j].thread_status = 0;
for (i = 0; i < PUBLISH_COUNT; i++) {
sg_rx_count_array[j][i] = 0;
}
}
/* create multi threads to test IOT_MQTT_Publish() */
for (i = 0; i < MAX_PUB_THREAD_COUNT; i++) {
pub_thread_params[i].thread_func = _mqtt_publish_thread_runner;
pub_thread_params[i].user_arg = (void *)&thread_data[i];
rc = HAL_ThreadCreate(&pub_thread_params[i]);
if (rc < 0) {
Log_e("Create publish thread(ID: %d) failed: %d", thread_data[i].thread_id, rc);
}
}
/* wait for all pub-threads to finish their jobs */
do {
finished_thread_count = 0;
for (i = 0; i < MAX_PUB_THREAD_COUNT; i++) {
finished_thread_count += thread_data[i].thread_status;
}
Log_i(">>>>>>>>Finished thread count : %d", finished_thread_count);
int exit_code;
if (!IOT_MQTT_GetLoopStatus(client, &exit_code))
Log_e("MQTT Loop thread quit with code: %d", exit_code);
HAL_SleepMs(1000);
} while (finished_thread_count < MAX_PUB_THREAD_COUNT);
Log_i("Publishing is finished");
sg_sub_unsub_thread_quit = true;
/* Allow time for sub_sunsub thread to exit */
HAL_SleepMs(1000);
/* all threads should have terminated gracefully at this point. If they haven't,
* which should not be possible, something below will fail. */
/* Calculating Test Results */
for (i = 0; i < PUBLISH_COUNT; i++) {
for (j = 0; j < MAX_PUB_THREAD_COUNT; j++) {
if (sg_rx_count_array[j][i] > 0) {
rx_msg_count++;
}
}
}
percent_of_rx_msg = (float)rx_msg_count * 100 / (PUBLISH_COUNT * MAX_PUB_THREAD_COUNT);
HAL_Printf("\n\nMQTT Multi-thread Test Result : \n");
HAL_Printf(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\n");
if (RX_RECEIVE_PERCENTAGE <= percent_of_rx_msg && 0 == sg_rx_msg_buf_too_big_count && 0 == sg_rx_unexpected_count) {
// test success
HAL_Printf("Success! PercentOfRxMsg: %f %%\n", percent_of_rx_msg);
HAL_Printf("Published Messages: %d , Received Messages: %d \n", PUBLISH_COUNT * MAX_PUB_THREAD_COUNT,
rx_msg_count);
HAL_Printf("QoS 1 re publish count %u\n", sg_republish_count);
test_result = 0;
} else {
// test fail
HAL_Printf("\nFailure! PercentOfRxMsg: %f %%\n", percent_of_rx_msg);
HAL_Printf("Published Messages: %d , Received Messages: %d \n", PUBLISH_COUNT * MAX_PUB_THREAD_COUNT,
rx_msg_count);
HAL_Printf("\"Received message was too big than anything sent\" count: %u\n", sg_rx_msg_buf_too_big_count);
HAL_Printf("\"The number received is out of the range\" count: %u\n", sg_rx_unexpected_count);
test_result = -1;
}
HAL_Printf("<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n\n");
return test_result;
}
int main(int argc, char **argv)
{
int rc;
// Init log level
IOT_Log_Set_Level(eLOG_DEBUG);
// Init connection
MQTTInitParams init_params = DEFAULT_MQTTINIT_PARAMS;
rc = _setup_connect_init_params(&init_params);
if (rc != QCLOUD_RET_SUCCESS) {
return rc;
}
// MQTT client create and connect
void *client = IOT_MQTT_Construct(&init_params);
if (client != NULL) {
Log_i("Cloud Device Construct Success");
} else {
Log_e("Cloud Device Construct Failed");
return QCLOUD_ERR_FAILURE;
}
// Start the default loop thread to read and handle MQTT packet
rc = IOT_MQTT_StartLoop(client);
if (rc) {
Log_e("MQTT start loop failed: %d", rc);
rc = IOT_MQTT_Destroy(&client);
return rc;
}
// Start application
rc = _mqtt_multi_thread_test(client);
if (0 != rc) {
Log_e("MQTT multi-thread test FAILED! RC: %d", rc);
} else {
Log_i("MQTT multi-thread test SUCCESS");
}
// Finish and destroy
IOT_MQTT_StopLoop(client);
rc = IOT_MQTT_Destroy(&client);
return rc;
}
| 36.07362 | 121 | 0.609184 |
e999c9dc4092288bc5328316c76969842bf69f8d | 4,316 | c | C | src/_ecdsa.c | shikuk/fastecdsa | dc9e8b083009a48d5c9ff02702c18aab35069cd9 | [
"Unlicense"
] | null | null | null | src/_ecdsa.c | shikuk/fastecdsa | dc9e8b083009a48d5c9ff02702c18aab35069cd9 | [
"Unlicense"
] | null | null | null | src/_ecdsa.c | shikuk/fastecdsa | dc9e8b083009a48d5c9ff02702c18aab35069cd9 | [
"Unlicense"
] | null | null | null | #include "_ecdsa.h"
#include <string.h>
#include <stdio.h>
void signZZ_p(Sig * sig, char * msg, mpz_t d, mpz_t k, const CurveZZ_p * curve) {
mpz_t e, kinv;
int orderBits, digestBits;
// R = k * G, r = R[x]
PointZZ_p R;
pointZZ_pMul(&R, curve->g, k, curve);
mpz_init_set(sig->r, R.x);
mpz_mod(sig->r, sig->r, curve->q);
// convert digest to integer (digest is computed as hex in ecdsa.py)
mpz_init_set_str(e, msg, 16);
orderBits = mpz_sizeinbase(curve->q, 2);
digestBits = strlen(msg) * 4;
if(digestBits > orderBits) {
mpz_fdiv_q_2exp(e, e, digestBits - orderBits);
}
// s = (k^-1 * (e + d * r)) mod n
mpz_inits(kinv, sig->s, NULL);
mpz_invert(kinv, k, curve->q);
mpz_mul(sig->s, d, sig->r);
mpz_add(sig->s, sig->s, e);
mpz_mul(sig->s, sig->s, kinv);
mpz_mod(sig->s, sig->s, curve->q);
mpz_clears(R.x, R.y, e, kinv, NULL);
}
int verifyZZ_p(Sig * sig, char * msg, PointZZ_p * Q, const CurveZZ_p * curve) {
mpz_t e, w, u1, u2;
PointZZ_p tmp;
int orderBits, digestBits, equal;
mpz_inits(w, u1, u2, tmp.x, tmp.y, NULL);
// convert digest to integer (digest is computed as hex in ecdsa.py)
mpz_init_set_str(e, msg, 16);
orderBits = mpz_sizeinbase(curve->q, 2);
digestBits = strlen(msg) * 4;
if(digestBits > orderBits) {
mpz_fdiv_q_2exp(e, e, digestBits - orderBits);
}
mpz_invert(w, sig->s, curve->q);
mpz_mul(u1, e, w);
mpz_mod(u1, u1, curve->q);
mpz_mul(u2, sig->r, w);
mpz_mod(u2, u2, curve->q);
pointZZ_pShamirsTrick(&tmp, curve->g, u1, Q, u2, curve);
mpz_mod(tmp.x, tmp.x, curve->q);
equal = (mpz_cmp(tmp.x, sig->r) == 0);
mpz_clears(e, w, u1, u2, tmp.x, tmp.y, NULL);
return equal;
}
/******************************************************************************
PYTHON BINDINGS
******************************************************************************/
static PyObject * _ecdsa_sign(PyObject *self, PyObject *args) {
char * msg, * d, * k, * p, * a, * b, * q, * gx, * gy;
char * resultR;
char * resultS;
mpz_t privKey, nonce;
Sig sig;
CurveZZ_p * curve;
PyObject * ret;
if (!PyArg_ParseTuple(args, "sssssssss", &msg, &d, &k, &p, &a, &b, &q, &gx, &gy)) {
return NULL;
}
curve = buildCurveZZ_p(p, a, b, q, gx, gy, 10);
mpz_init_set_str(privKey, d, 10);
mpz_init_set_str(nonce, k, 10);
signZZ_p(&sig, msg, privKey, nonce, curve);
destroyCurveZZ_p(curve);
resultR = mpz_get_str(NULL, 10, sig.r);
resultS = mpz_get_str(NULL, 10, sig.s);
mpz_clears(sig.r, sig.s, privKey, NULL);
ret = Py_BuildValue("ss", resultR, resultS);
free(resultR);
free(resultS);
return ret;
}
static PyObject * _ecdsa_verify(PyObject *self, PyObject *args) {
char * r, * s, * msg, * qx, * qy, * p, * a, * b, * q, * gx, * gy;
Sig sig;
CurveZZ_p * curve;
int valid = 0;
PointZZ_p * Q;
if (!PyArg_ParseTuple(args, "sssssssssss", &r, &s, &msg, &qx, &qy, &p, &a, &b, &q, &gx, &gy)) {
return NULL;
}
mpz_init_set_str(sig.r, r, 10);
mpz_init_set_str(sig.s, s, 10);
curve = buildCurveZZ_p(p, a, b, q, gx, gy, 10);
Q = buildPointZZ_p(qx, qy, 10);
valid = verifyZZ_p(&sig, msg, Q, curve);
destroyCurveZZ_p(curve);
destroyPointZZ_p(Q);
mpz_clears(sig.r, sig.s, NULL);
return Py_BuildValue("O", valid ? Py_True : Py_False);
}
static PyMethodDef _ecdsa__methods__[] = {
{"sign", _ecdsa_sign, METH_VARARGS, "Sign a message via ECDSA."},
{"verify", _ecdsa_verify, METH_VARARGS, "Verify a signature via ECDSA."},
{NULL, NULL, 0, NULL} /* Sentinel */
};
#if PY_MAJOR_VERSION >= 3
static struct PyModuleDef moduledef = {
PyModuleDef_HEAD_INIT,
"_ecdsa", /* m_name */
NULL, /* m_doc */
-1, /* m_size */
_ecdsa__methods__, /* m_methods */
NULL, /* m_reload */
NULL, /* m_traverse */
NULL, /* m_clear */
NULL, /* m_free */
};
PyMODINIT_FUNC PyInit__ecdsa(void) {
PyObject * m = PyModule_Create(&moduledef);
return m;
}
#else
PyMODINIT_FUNC init_ecdsa(void) {
Py_InitModule("_ecdsa", _ecdsa__methods__);
}
#endif
| 27.144654 | 99 | 0.556302 |
8f414786ea9aa5bc104c340e4b6523bc405f64d7 | 29,250 | h | C | platform/example/include/pdclib/_PDCLIB_config.h | dracc/nxdk-pdclib | d326c64808fb9027738f6430481ffefb59e09456 | [
"CC0-1.0"
] | 13 | 2019-04-10T05:11:03.000Z | 2021-04-14T06:41:04.000Z | platform/example/include/pdclib/_PDCLIB_config.h | dracc/nxdk-pdclib | d326c64808fb9027738f6430481ffefb59e09456 | [
"CC0-1.0"
] | 36 | 2019-04-05T12:57:50.000Z | 2022-02-14T22:54:18.000Z | platform/example/include/pdclib/_PDCLIB_config.h | dracc/nxdk-pdclib | d326c64808fb9027738f6430481ffefb59e09456 | [
"CC0-1.0"
] | 9 | 2019-03-28T16:04:49.000Z | 2021-10-03T05:12:20.000Z | /* Internal PDCLib configuration <_PDCLIB_config.h>
(Generic Template)
This file is part of the Public Domain C Library (PDCLib).
Permission is granted to use, modify, and / or redistribute at will.
*/
#ifndef _PDCLIB_CONFIG_H
#define _PDCLIB_CONFIG_H _PDCLIB_CONFIG_H
/* -------------------------------------------------------------------------- */
/* Misc */
/* -------------------------------------------------------------------------- */
/* The character (sequence) your platform uses as newline. */
#define _PDCLIB_endl "\n"
/* exit() can signal success to the host environment by the value of zero or */
/* the constant EXIT_SUCCESS. Failure is signaled by EXIT_FAILURE. Note that */
/* any other return value is "implementation-defined", i.e. your environment */
/* is not required to handle it gracefully. Set your definitions here. */
#define _PDCLIB_SUCCESS 0
#define _PDCLIB_FAILURE -1
/* qsort() in <stdlib.h> requires a function that swaps two memory areas. */
/* Below is a naive implementation that can be improved significantly for */
/* specific platforms, e.g. by swapping int instead of char. */
#define _PDCLIB_memswp( i, j, size ) char tmp; do { tmp = *i; *i++ = *j; *j++ = tmp; } while ( --size );
/* Define this to some compiler directive that can be written after the */
/* parameter list of a function declaration to indicate the function does */
/* never return. If your compiler does not support such a directive, define */
/* to nothing. (This is to avoid warnings with the exit functions under GCC.) */
#define _PDCLIB_NORETURN __attribute__(( noreturn ))
/* -------------------------------------------------------------------------- */
/* Symbol Visibility */
/* -------------------------------------------------------------------------- */
#ifdef _PDCLIB_STATIC_DEFINE
#define _PDCLIB_PUBLIC
#define _PDCLIB_LOCAL
#else
#if defined _WIN32 || defined __CYGWIN__
#ifdef _PDCLIB_BUILD
#ifdef __GNUC__
#define _PDCLIB_PUBLIC __attribute__ ((dllexport))
#else
#define _PDCLIB_PUBLIC __declspec(dllexport)
#endif
#else
#ifdef __GNUC__
#define _PDCLIB_PUBLIC __attribute__ ((dllimport))
#else
#define _PDCLIB_PUBLIC __declspec(dllimport)
#endif
#endif
#define _PDCLIB_LOCAL
#else
#if __GNUC__ >= 4
#define _PDCLIB_PUBLIC __attribute__ ((visibility ("default")))
#define _PDCLIB_LOCAL __attribute__ ((visibility ("hidden")))
#else
#define _PDCLIB_PUBLIC
#define _PDCLIB_LOCAL
#endif
#endif
#endif
/* -------------------------------------------------------------------------- */
/* Integers */
/* -------------------------------------------------------------------------- */
/* Assuming 8-bit char, two's-complement architecture here. 'short' being */
/* 16 bit, 'int' being either 16, 32 or 64 bit, 'long' being either 32 or 64 */
/* bit (but 64 bit only if 'int' is 32 bit), and 'long long' being 64 bit if */
/* 'long' is not, 64 or 128 bit otherwise. */
/* Author is quite willing to support other systems but would like to hear of */
/* interest in such support and details on the to-be-supported architecture */
/* first, before going to lengths about it. */
/* -------------------------------------------------------------------------- */
/* Set to 0 if your 'char' type is unsigned. */
#ifdef __CHAR_UNSIGNED__
#define _PDCLIB_CHAR_SIGNED 0
#else
#define _PDCLIB_CHAR_SIGNED 1
#endif
/* Width of the integer types short, int, long, and long long, in bytes. */
/* SHRT == 2, INT >= SHRT, LONG >= INT >= 4, LLONG >= LONG - check your */
/* compiler manuals. */
#define _PDCLIB_SHRT_BYTES 2
#define _PDCLIB_INT_BYTES 4
#ifdef __LP64__
#define _PDCLIB_LONG_BYTES 8
#else
#define _PDCLIB_LONG_BYTES 4
#endif
#define _PDCLIB_LLONG_BYTES 8
/* <stdlib.h> defines the div() function family that allows taking quotient */
/* and remainder of an integer division in one operation. Many platforms */
/* support this in hardware / opcode, and the standard permits ordering of */
/* the return structure in any way to fit the hardware. That is why those */
/* structs can be configured here. */
struct _PDCLIB_div_t
{
int quot;
int rem;
};
struct _PDCLIB_ldiv_t
{
long int quot;
long int rem;
};
struct _PDCLIB_lldiv_t
{
long long int quot;
long long int rem;
};
/* -------------------------------------------------------------------------- */
/* <stdint.h> defines a set of integer types that are of a minimum width, and */
/* "usually fastest" on the system. (If, for example, accessing a single char */
/* requires the CPU to access a complete int and then mask out the char, the */
/* "usually fastest" type of at least 8 bits would be int, not char.) */
/* If you do not have information on the relative performance of the types, */
/* the standard allows you to define any type that meets minimum width and */
/* signedness requirements. */
/* The defines below are just configuration for the real typedefs and limit */
/* definitions done in <_PDCLIB_int.h>. The uppercase define shall be either */
/* SHRT, INT, LONG, or LLONG (telling which values to use for the *_MIN and */
/* *_MAX limits); the lowercase define either short, int, long, or long long */
/* (telling the actual type to use). */
/* The third define is the length modifier used for the type in printf() and */
/* scanf() functions (used in <inttypes.h>). */
/* If you require a non-standard datatype to define the "usually fastest" */
/* types, PDCLib as-is doesn't support that. Please contact the author with */
/* details on your platform in that case, so support can be added. */
/* -------------------------------------------------------------------------- */
#define _PDCLIB_FAST8 INT
#define _PDCLIB_fast8 int
#define _PDCLIB_FAST8_CONV
#define _PDCLIB_FAST16 INT
#define _PDCLIB_fast16 int
#define _PDCLIB_FAST16_CONV
#define _PDCLIB_FAST32 INT
#define _PDCLIB_fast32 int
#define _PDCLIB_FAST32_CONV
#define _PDCLIB_FAST64 LONG
#define _PDCLIB_fast64 long
#define _PDCLIB_FAST64_CONV l
/* -------------------------------------------------------------------------- */
/* What follows are a couple of "special" typedefs and their limits. Again, */
/* the actual definition of the limits is done in <_PDCLIB_int.h>, and the */
/* defines here are merely "configuration". See above for details. */
/* -------------------------------------------------------------------------- */
/* The result type of substracting two pointers */
#define _PDCLIB_ptrdiff long
#define _PDCLIB_PTRDIFF LONG
#define _PDCLIB_PTR_CONV l
/* An integer type that can be accessed as atomic entity (think asynchronous */
/* interrupts). The type itself is not defined in a freestanding environment, */
/* but its limits are. (Don't ask.) */
#define _PDCLIB_sig_atomic int
#define _PDCLIB_SIG_ATOMIC INT
/* Result type of the 'sizeof' operator (must be unsigned) */
/* Note: In <stdint.h>, this is taken as the base for RSIZE_MAX, the limit */
/* for the bounds-checking interfaces of Annex K. The recommendation by the */
/* standard is to use ( SIZE_MAX >> 1 ) when "targeting machines with large */
/* addess spaces", whereas small address spaces should use SIZE_MAX directly. */
#define _PDCLIB_size unsigned long
#define _PDCLIB_SIZE ULONG
/* Large enough an integer to hold all character codes of the widest */
/* supported locale. */
#define _PDCLIB_wchar unsigned int
#define _PDCLIB_WCHAR UINT
/* Large enough an integer to hold all character codes of the widest */
/* supported locale plus WEOF (which needs not to be equal to EOF, nor needs */
/* to be of negative value). */
#define _PDCLIB_wint unsigned int
#define _PDCLIB_WINT UINT
/* (Signed) integer type capable of taking the (cast) value of a void *, and */
/* having the value cast back to void *, comparing equal to the original. */
#define _PDCLIB_intptr long
#define _PDCLIB_INTPTR LONG
/* Largest supported integer type. Implementation note: see _PDCLIB_atomax(). */
#define _PDCLIB_intmax long long int
#define _PDCLIB_INTMAX LLONG
/* The appropriate printf()/scanf() conversion specifier width for the type. */
#define _PDCLIB_INTMAX_CONV ll
/* The appropriate literal suffix for the type. */
#define _PDCLIB_INTMAX_LITERAL ll
/* <inttypes.h> defines imaxdiv(), which is equivalent to the div() function */
/* family (see further above) with intmax_t as basis. */
struct _PDCLIB_imaxdiv_t
{
_PDCLIB_intmax quot;
_PDCLIB_intmax rem;
};
/* -------------------------------------------------------------------------- */
/* Time types */
/* -------------------------------------------------------------------------- */
/* See <time.h> for a couple of comments on these types and their semantics. */
#define _PDCLIB_time long
#define _PDCLIB_clock long
#define _PDCLIB_CLOCKS_PER_SEC 1000000
#define _PDCLIB_TIME_UTC 1
/* -------------------------------------------------------------------------- */
/* Floating Point */
/* -------------------------------------------------------------------------- */
/* Whether the implementation rounds toward zero (0), to nearest (1), toward */
/* positive infinity (2), or toward negative infinity (3). (-1) signifies */
/* indeterminable rounding, any other value implementation-specific rounding. */
#define _PDCLIB_FLT_ROUNDS -1
/* Whether the implementation uses exact-width precision (0), promotes float */
/* to double (1), or promotes float and double to long double (2). */
/* (-1) signifies indeterminable behaviour, any other value implementation- */
/* specific behaviour. */
#define _PDCLIB_FLT_EVAL_METHOD -1
/* "Number of the decimal digits (n), such that any floating-point number in */
/* the widest supported floating type with p(max) radix (b) digits can be */
/* rounded to a floating-point number with (n) decimal digits and back again */
/* without change to the value p(max) log(10)b if (b) is a power of 10, */
/* [1 + p(max) log(10)b] otherwise." */
/* 64bit IEC 60559 double format (53bit mantissa) is DECIMAL_DIG 17. */
/* 80bit IEC 60559 double-extended format (64bit mantissa) is DECIMAL_DIG 21. */
#define _PDCLIB_DECIMAL_DIG 17
/* -------------------------------------------------------------------------- */
/* Platform-dependent macros defined by the standard headers. */
/* -------------------------------------------------------------------------- */
/* The offsetof macro */
/* Contract: Expand to an integer constant expression of type size_t, which */
/* represents the offset in bytes to the structure member from the beginning */
/* of the structure. If the specified member is a bitfield, behaviour is */
/* undefined. */
/* There is no standard-compliant way to do this. */
/* This implementation casts an integer zero to 'pointer to type', and then */
/* takes the address of member. This is undefined behaviour but should work */
/* on most compilers. */
#define _PDCLIB_offsetof( type, member ) ( (size_t) &( ( (type *) 0 )->member ) )
/* Variable Length Parameter List Handling (<stdarg.h>) */
/* The macros defined by <stdarg.h> are highly dependent on the calling */
/* conventions used, and you probably have to replace them with builtins of */
/* your compiler. */
#if defined( __i386 )
/* The following generic implementation works only for pure */
/* stack-based architectures, and only if arguments are aligned to pointer */
/* type. Credits to Michael Moody, who contributed this to the Public Domain. */
/* Internal helper macro. va_round is not part of <stdarg.h>. */
#define _PDCLIB_va_round( type ) ( (sizeof(type) + sizeof(void *) - 1) & ~(sizeof(void *) - 1) )
typedef char * _PDCLIB_va_list;
#define _PDCLIB_va_arg( ap, type ) ( (ap) += (_PDCLIB_va_round(type)), ( *(type*) ( (ap) - (_PDCLIB_va_round(type)) ) ) )
#define _PDCLIB_va_copy( dest, src ) ( (dest) = (src), (void)0 )
#define _PDCLIB_va_end( ap ) ( (ap) = (void *)0, (void)0 )
#define _PDCLIB_va_start( ap, parmN ) ( (ap) = (char *) &parmN + ( _PDCLIB_va_round(parmN) ), (void)0 )
#elif defined( __x86_64 ) || defined( __arm__ ) || defined( __ARM_NEON )
/* No way to cover x86_64 or arm with a generic implementation, as it uses */
/* register-based parameter passing. Using compiler builtins here. */
typedef __builtin_va_list _PDCLIB_va_list;
#define _PDCLIB_va_arg( ap, type ) ( __builtin_va_arg( ap, type ) )
#define _PDCLIB_va_copy( dest, src ) ( __builtin_va_copy( dest, src ) )
#define _PDCLIB_va_end( ap ) ( __builtin_va_end( ap ) )
#define _PDCLIB_va_start( ap, parmN ) ( __builtin_va_start( ap, parmN ) )
#else
#error Please create your own _PDCLIB_config.h. Using the existing one as-is will not work.
#endif
/* -------------------------------------------------------------------------- */
/* OS "glue", part 1 */
/* These are values and data type definitions that you would have to adapt to */
/* the capabilities and requirements of your OS. */
/* The actual *functions* of the OS interface are declared in _PDCLIB_glue.h. */
/* -------------------------------------------------------------------------- */
/* I/O ---------------------------------------------------------------------- */
/* The type of the file descriptor returned by _PDCLIB_open(), i.e. whatever */
/* the underlying kernel uses for stream identification. */
typedef int _PDCLIB_fd_t;
/* The value of type _PDCLIB_fd_t returned by _PDCLIB_open() if the operation */
/* failed. */
#define _PDCLIB_NOHANDLE ( (_PDCLIB_fd_t) -1 )
/* The default size for file buffers. Must be at least 256. */
#define _PDCLIB_BUFSIZ 1024
/* The minimum number of files the implementation guarantees can opened */
/* simultaneously. Must be at least 8. Depends largely on how the platform */
/* does the bookkeeping in whatever is called by _PDCLIB_open(). PDCLib puts */
/* no further limits on the number of open files other than available memory. */
#define _PDCLIB_FOPEN_MAX 8
/* Length of the longest filename the implementation guarantees to support. */
#define _PDCLIB_FILENAME_MAX 128
/* Maximum length of filenames generated by tmpnam(). (See tmpfile.c.) */
#define _PDCLIB_L_tmpnam 46
/* Number of distinct file names that can be generated by tmpnam(). */
#define _PDCLIB_TMP_MAX 50
/* The values of SEEK_SET, SEEK_CUR and SEEK_END, used by fseek(). */
/* Since at least one platform (POSIX) uses the same symbols for its own */
/* "seek" function, you should use whatever the host defines (if it does */
/* define them). */
#define _PDCLIB_SEEK_SET 0
#define _PDCLIB_SEEK_CUR 1
#define _PDCLIB_SEEK_END 2
/* The number of characters that can be buffered with ungetc(). The standard */
/* guarantees only one (1); PDCLib supports larger values, but applications */
/* relying on this would rely on implementation-defined behaviour (not good). */
#define _PDCLIB_UNGETCBUFSIZE 1
/* The number of functions that can be registered with atexit(). Needs to be */
/* at least 33 (32 guaranteed by the standard, plus _PDCLIB_closeall() which */
/* is used internally by PDCLib to close all open streams). */
/* TODO: Should expand dynamically. */
#define _PDCLIB_ATEXIT_SLOTS 40
/* errno -------------------------------------------------------------------- */
/* These are the values that _PDCLIB_errno can be set to by the library. */
/* */
/* By keeping PDCLib's errno in the _PDCLIB_* namespace, the library is */
/* capable of "translating" between errno values used by the hosting OS and */
/* those used and passed out by the library. */
/* */
/* Example: In the example platform, the remove() function uses the unlink() */
/* system call as backend. Linux sets its errno to EISDIR if you try to */
/* unlink() a directory, but POSIX demands EPERM. Within the remove() */
/* function, you can catch 'errno == EISDIR', and set '*_PDCLIB_errno_func() */
/* = _PDCLIB_EPERM'. Anyone using PDCLib's <errno.h> will "see" EPERM instead */
/* of EISDIR. */
/* */
/* If you do not want that kind of translation, you might want to "match" the */
/* values used by PDCLib with those used by the host OS, to avoid confusion. */
/* auxiliary/errno/errno_readout.c provides a convenience program to read */
/* those errno values mandated by the standard from a platform's <errno.h>, */
/* giving output that can readily be pasted here. */
/* Either way, note that the list below, the list in PDCLib's <errno.h>, and */
/* the list in _PDCLIB_stdinit.h, need to be kept in sync. */
/* */
/* The values below are read from a Linux system. */
/* Argument list too long */
#define _PDCLIB_E2BIG 7
/* Permission denied */
#define _PDCLIB_EACCES 13
/* Address in use */
#define _PDCLIB_EADDRINUSE 98
/* Address not available */
#define _PDCLIB_EADDRNOTAVAIL 99
/* Address family not supported */
#define _PDCLIB_EAFNOSUPPORT 97
/* Resource unavailable, try again */
#define _PDCLIB_EAGAIN 11
/* Connection already in progress */
#define _PDCLIB_EALREADY 114
/* Bad file descriptor */
#define _PDCLIB_EBADF 9
/* Bad message */
#define _PDCLIB_EBADMSG 74
/* Device or resource busy */
#define _PDCLIB_EBUSY 16
/* Operation canceled */
#define _PDCLIB_ECANCELED 125
/* No child processes */
#define _PDCLIB_ECHILD 10
/* Connection aborted */
#define _PDCLIB_ECONNABORTED 103
/* Connection refused */
#define _PDCLIB_ECONNREFUSED 111
/* Connection reset */
#define _PDCLIB_ECONNRESET 104
/* Resource deadlock would occur */
#define _PDCLIB_EDEADLK 35
/* Destination address required */
#define _PDCLIB_EDESTADDRREQ 89
/* Mathematics argument out of domain of function */
#define _PDCLIB_EDOM 33
/* File exists */
#define _PDCLIB_EEXIST 17
/* Bad address */
#define _PDCLIB_EFAULT 14
/* File too large */
#define _PDCLIB_EFBIG 27
/* Host is unreachable */
#define _PDCLIB_EHOSTUNREACH 113
/* Identifier removed */
#define _PDCLIB_EIDRM 43
/* Illegal byte sequence */
#define _PDCLIB_EILSEQ 84
/* Operation in progress */
#define _PDCLIB_EINPROGRESS 115
/* Interrupted function */
#define _PDCLIB_EINTR 4
/* Invalid argument */
#define _PDCLIB_EINVAL 22
/* I/O error */
#define _PDCLIB_EIO 5
/* Socket is connected */
#define _PDCLIB_EISCONN 106
/* Is a directory */
#define _PDCLIB_EISDIR 21
/* Too many levels of symbolic links */
#define _PDCLIB_ELOOP 40
/* File descriptor value too large */
#define _PDCLIB_EMFILE 24
/* Too many links */
#define _PDCLIB_EMLINK 31
/* Message too large */
#define _PDCLIB_EMSGSIZE 90
/* Filename too long */
#define _PDCLIB_ENAMETOOLONG 36
/* Network is down */
#define _PDCLIB_ENETDOWN 100
/* Connection aborted by network */
#define _PDCLIB_ENETRESET 102
/* Network unreachable */
#define _PDCLIB_ENETUNREACH 101
/* Too many files open in system */
#define _PDCLIB_ENFILE 23
/* No buffer space available */
#define _PDCLIB_ENOBUFS 105
/* No message is available on the STREAM head read queue */
#define _PDCLIB_ENODATA 61
/* No such device */
#define _PDCLIB_ENODEV 19
/* No such file or directory */
#define _PDCLIB_ENOENT 2
/* Executable file format error */
#define _PDCLIB_ENOEXEC 8
/* No locks available */
#define _PDCLIB_ENOLCK 37
/* Link has been severed */
#define _PDCLIB_ENOLINK 67
/* Not enough space */
#define _PDCLIB_ENOMEM 12
/* No message of the desired type */
#define _PDCLIB_ENOMSG 42
/* Protocol not available */
#define _PDCLIB_ENOPROTOOPT 92
/* No space left on device */
#define _PDCLIB_ENOSPC 28
/* No STREAM resources */
#define _PDCLIB_ENOSR 63
/* Not a STREAM */
#define _PDCLIB_ENOSTR 60
/* Function not supported */
#define _PDCLIB_ENOSYS 38
/* The socket is not connected */
#define _PDCLIB_ENOTCONN 107
/* Not a directory */
#define _PDCLIB_ENOTDIR 20
/* Directory not empty */
#define _PDCLIB_ENOTEMPTY 39
/* State not recoverable */
#define _PDCLIB_ENOTRECOVERABLE 131
/* Not a socket */
#define _PDCLIB_ENOTSOCK 88
/* Not supported */
#define _PDCLIB_ENOTSUP 95
/* Inappropriate I/O control operation */
#define _PDCLIB_ENOTTY 25
/* No such device or address */
#define _PDCLIB_ENXIO 6
/* Operation not supported on socket */
#define _PDCLIB_EOPNOTSUPP 95
/* Value too large to be stored in data type */
#define _PDCLIB_EOVERFLOW 75
/* Previous owner died */
#define _PDCLIB_EOWNERDEAD 130
/* Operation not permitted */
#define _PDCLIB_EPERM 1
/* Broken pipe */
#define _PDCLIB_EPIPE 32
/* Protocol error */
#define _PDCLIB_EPROTO 71
/* Protocol not supported */
#define _PDCLIB_EPROTONOSUPPORT 93
/* Protocol wrong type for socket */
#define _PDCLIB_EPROTOTYPE 91
/* Result too large */
#define _PDCLIB_ERANGE 34
/* Read-only file system */
#define _PDCLIB_EROFS 30
/* Invalid seek */
#define _PDCLIB_ESPIPE 29
/* No such process */
#define _PDCLIB_ESRCH 3
/* Stream ioctl() timeout */
#define _PDCLIB_ETIME 62
/* Connection timed out */
#define _PDCLIB_ETIMEDOUT 110
/* Text file busy */
#define _PDCLIB_ETXTBSY 26
/* Operation would block */
#define _PDCLIB_EWOULDBLOCK 11
/* Cross-device link */
#define _PDCLIB_EXDEV 18
/* The highest defined errno value, plus one. This is used to set the size */
/* of the array in struct _PDCLIB_lc_text_t holding error messages for the */
/* strerror() and perror() functions. (If you change this value because you */
/* are using additional errno values, you *HAVE* to provide appropriate error */
/* messages for *ALL* locales.) */
#define _PDCLIB_ERRNO_MAX 132
/* The error message used for unknown error codes (generated by errno_readout */
/* for consistency between the 'holes' in the list of defined error messages */
/* and the text generated by e.g. strerror() for out-of-range error values.) */
#define _PDCLIB_EUNKNOWN_TEXT (char*)"unknown error"
/* locale data -------------------------------------------------------------- */
/* The default path where PDCLib should look for its locale data. */
/* Must end with the appropriate separator character. */
#define _PDCLIB_LOCALE_PATH "/usr/share/pdclib/i18n"
/* The name of the environment variable that can be used to override that */
/* path setting. */
#define _PDCLIB_LOCALE_PATH_ENV PDCLIB_I18N
#ifdef __CYGWIN__
typedef unsigned int wint_t;
#endif
/* threads ------------------------------------------------------------------ */
/* This is relying on underlying <pthread.h> implementation to provide thread */
/* support. */
/* The problem here is we cannot just #include <pthread.h> and access the */
/* original definitions. The standard library must not drag identifiers into */
/* the user's namespace, so we have to set our own definitions. Which are, */
/* obviously, platform-specific. */
/* If you do NOT want to provide threads support, define __STDC_NO_THREADS__ */
/* to 1 and simply delete the threads.h header and the corresponding files in */
/* functions/threads/. This makes PDCLib not thread-safe (obviously), as all */
/* all the safeguards against race conditions (e.g. in <stdio.h>) will be */
/* omitted. */
/* auxiliary/pthread/pthread_readout.c provides a convenience program to read */
/* appropriate definitions from a platform's <pthread.h>, giving output that */
/* can readily be pasted here. */
typedef unsigned long int _PDCLIB_thrd_t;
typedef union { unsigned char _PDCLIB_cnd_t_data[ 48 ]; long long int _PDCLIB_cnd_t_align; } _PDCLIB_cnd_t;
#if defined( __arm__ ) || defined( __ARM_NEON )
typedef union { unsigned char _PDCLIB_mtx_t_data[ 24 ]; long int _PDCLIB_mtx_t_align; } _PDCLIB_mtx_t;
#else
typedef union { unsigned char _PDCLIB_mtx_t_data[ 40 ]; long int _PDCLIB_mtx_t_align; } _PDCLIB_mtx_t;
#endif
typedef unsigned int _PDCLIB_tss_t;
typedef int _PDCLIB_once_flag;
#define _PDCLIB_ONCE_FLAG_INIT 0
#define _PDCLIB_RECURSIVE_MUTEX_INIT PTHREAD_MUTEX_INITIALIZER
/* This one is actually hidden in <limits.h>, and only if __USE_POSIX is */
/* defined prior to #include <limits.h> (PTHREAD_DESTRUCTOR_ITERATIONS). */
#define _PDCLIB_TSS_DTOR_ITERATIONS 4
/* The following are not made public in any header, but used internally for */
/* interfacing with the pthread API. */
typedef union { unsigned char _PDCLIB_cnd_attr_t_data[ 4 ]; int _PDCLIB_cnd_attr_t_align; } _PDCLIB_cnd_attr_t;
typedef union { unsigned char _PDCLIB_mtx_attr_t_data[ 4 ]; int _PDCLIB_mtx_attr_t_align; } _PDCLIB_mtx_attr_t;
#if defined( __arm__ ) || defined( __ARM_NEON )
typedef union { unsigned char _PDCLIB_thrd_attr_t_data[ 36 ]; long int _PDCLIB_thrd_attr_t_align; } _PDCLIB_thrd_attr_t;
#else
typedef union { unsigned char _PDCLIB_thrd_attr_t_data[ 56 ]; long int _PDCLIB_thrd_attr_t_align; } _PDCLIB_thrd_attr_t;
#endif
/* Static initialization of recursive mutex. */
#if defined( __arm__ ) || defined( __ARM_NEON )
#define _PDCLIB_MTX_RECURSIVE_INIT { {\
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\
0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00,\
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } }
/* Static initialization of plain / timeout mutex (identical with pthread). */
#define _PDCLIB_MTX_PLAIN_INIT { {\
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } }
#else
#define _PDCLIB_MTX_RECURSIVE_INIT { {\
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\
0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } }
/* Static initialization of plain / timeout mutex (identical with pthread). */
#define _PDCLIB_MTX_PLAIN_INIT { {\
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } }
#endif
#endif
| 45.918367 | 121 | 0.594632 |
755d4dd4fc5a5ecd2f7e7e3a8a033511662e4181 | 620 | h | C | Frameworks/LinkGameOpenSDK.framework/Headers/LinkGameOpenSDK.h | Link-Game/example-ios | d8094a482d0abce29464dd10e2c42c10f3e30928 | [
"Apache-2.0"
] | null | null | null | Frameworks/LinkGameOpenSDK.framework/Headers/LinkGameOpenSDK.h | Link-Game/example-ios | d8094a482d0abce29464dd10e2c42c10f3e30928 | [
"Apache-2.0"
] | null | null | null | Frameworks/LinkGameOpenSDK.framework/Headers/LinkGameOpenSDK.h | Link-Game/example-ios | d8094a482d0abce29464dd10e2c42c10f3e30928 | [
"Apache-2.0"
] | null | null | null | //
// LinkGameOpenSDK.h
// LinkGameOpenSDK
//
// Created by 刘万林 on 2018/8/9.
// Copyright © 2018年 ChaungMiKeJi. All rights reserved.
//
#import <UIKit/UIKit.h>
//! Project version number for LinkGameOpenSDK.
FOUNDATION_EXPORT double LinkGameOpenSDKVersionNumber;
//! Project version string for LinkGameOpenSDK.
FOUNDATION_EXPORT const unsigned char LinkGameOpenSDKVersionString[];
// In this header, you should import all the public headers of your framework using statements like #import <LinkGameOpenSDK/PublicHeader.h>
#import <LinkGameOpenSDK/LGSDKBasePublicHeader.h>
#import <LinkGameOpenSDK/LGOpenSDK.h>
| 28.181818 | 140 | 0.787097 |
55dd59093be8cdf921385026fcf7e5d106f83e84 | 2,334 | h | C | src/parser/SparqlParser.h | niklas88/QLever | f2ece56a1503f59c9f52ba795f7d3e9150367cb1 | [
"Apache-2.0"
] | null | null | null | src/parser/SparqlParser.h | niklas88/QLever | f2ece56a1503f59c9f52ba795f7d3e9150367cb1 | [
"Apache-2.0"
] | null | null | null | src/parser/SparqlParser.h | niklas88/QLever | f2ece56a1503f59c9f52ba795f7d3e9150367cb1 | [
"Apache-2.0"
] | 1 | 2018-10-05T11:54:34.000Z | 2018-10-05T11:54:34.000Z | // Copyright 2014, University of Freiburg,
// Chair of Algorithms and Data Structures.
// Author: Björn Buchhold (buchhold@informatik.uni-freiburg.de)
#pragma once
#include <string>
#include "ParsedQuery.h"
#include "SparqlLexer.h"
using std::string;
// A simple parser of SPARQL.
// No supposed to feature the complete query language.
class SparqlParser {
public:
SparqlParser(const string& query);
ParsedQuery parse();
/**
* @brief This method looks for the first string literal it can find and
* parses it. During the parsing any escaped characters are resolved (e.g. \")
* If isEntireString is true an exception is thrown if the entire string
* is not a literal (apart from any leading and trailing whitespace).
**/
static string parseLiteral(const string& literal, bool isEntireString,
size_t off = 0);
private:
void parseQuery(ParsedQuery* query);
void parsePrologue(ParsedQuery* query);
void parseSelect(ParsedQuery* query);
void parseWhere(
ParsedQuery* query,
std::shared_ptr<ParsedQuery::GraphPattern> currentPattern = nullptr);
void parseSolutionModifiers(ParsedQuery* query);
void addPrefix(const string& key, const string& value, ParsedQuery* query);
void addWhereTriple(const string& str,
std::shared_ptr<ParsedQuery::GraphPattern> pattern);
// Returns true if it found a filter
bool parseFilter(
vector<SparqlFilter>* _filters, bool failOnNoFilter = true,
std::shared_ptr<ParsedQuery::GraphPattern> pattern = nullptr);
// Parses an expressiong of the form (?a) = "en"
void addLangFilter(const std::string& lhs, const std::string& rhs,
std::shared_ptr<ParsedQuery::GraphPattern> pattern);
// takes either DESC or ASC as the parameter
OrderKey parseOrderKey(const std::string& order, ParsedQuery* query);
ParsedQuery::Alias parseAlias();
// Reads the next element of a triple (an iri, a variable, a property path,
// etc.) out of s beginning at the current value of pos. Sets pos to the
// position after the read value, and returns a string view of the triple part
// in s.
std::string_view readTriplePart(const std::string& s, size_t* pos);
static string stripAndLowercaseKeywordLiteral(const string& lit);
SparqlLexer _lexer;
string _query;
};
| 37.645161 | 80 | 0.715938 |
1d108f5c28cdbb5c97b534e75b89d24e7f64f912 | 342 | h | C | DrawPane/View/ColorView.h | xiaojiezi/DrawPane | 04fa06332835c677aa1f1d829fe01eabd67c633d | [
"Apache-2.0"
] | null | null | null | DrawPane/View/ColorView.h | xiaojiezi/DrawPane | 04fa06332835c677aa1f1d829fe01eabd67c633d | [
"Apache-2.0"
] | null | null | null | DrawPane/View/ColorView.h | xiaojiezi/DrawPane | 04fa06332835c677aa1f1d829fe01eabd67c633d | [
"Apache-2.0"
] | null | null | null | //
// ColorView.h
// DrawPane
//
// Created by yangjie on 14-4-27.
// Copyright (c) 2014年 YJ. All rights reserved.
//
#import <UIKit/UIKit.h>
@protocol ColorViewDelegate <NSObject>
- (void)colorViewSelectedColor:(UIColor *)color;
@end
@interface ColorView : UIView
@property (weak, nonatomic) id <ColorViewDelegate> delegate;
@end
| 15.545455 | 60 | 0.704678 |
076a1816781cbdd0d4f80c4e5f2f8ee9e1254bf5 | 1,880 | h | C | fennel/tuple/TupleProjectionAccessor.h | alexavila150/luciddb | e3125564eb18238677e6efb384b630cab17bb472 | [
"Apache-2.0"
] | 14 | 2015-07-21T06:31:22.000Z | 2020-05-13T14:18:33.000Z | fennel/tuple/TupleProjectionAccessor.h | alexavila150/luciddb | e3125564eb18238677e6efb384b630cab17bb472 | [
"Apache-2.0"
] | 1 | 2020-05-04T23:08:51.000Z | 2020-05-04T23:08:51.000Z | fennel/tuple/TupleProjectionAccessor.h | alexavila150/luciddb | e3125564eb18238677e6efb384b630cab17bb472 | [
"Apache-2.0"
] | 22 | 2015-01-03T14:27:36.000Z | 2021-09-14T02:09:13.000Z | /*
// Licensed to DynamoBI Corporation (DynamoBI) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. DynamoBI licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.
*/
#ifndef Fennel_TupleProjectionAccessor_Included
#define Fennel_TupleProjectionAccessor_Included
#include "fennel/tuple/TupleData.h"
FENNEL_BEGIN_NAMESPACE
class TupleAccessor;
class AttributeAccessor;
class TupleProjection;
/**
* A TupleProjectionAccessor provides a way to efficiently unmarshal
* selected attributes of a tuple, as explained in
* the <a href="structTupleDesign.html#TupleProjection">design docs</a>.
*/
class FENNEL_TUPLE_EXPORT TupleProjectionAccessor
{
TupleAccessor const *pTupleAccessor;
std::vector<AttributeAccessor const *> ppAttributeAccessors;
public:
explicit TupleProjectionAccessor();
void bind(
TupleAccessor const &tupleAccessor,
TupleProjection const &tupleProjection);
virtual ~TupleProjectionAccessor();
void unmarshal(TupleData &tuple) const
{
unmarshal(tuple.begin());
}
void unmarshal(TupleData::iterator tupleIter) const;
uint size() const
{
return ppAttributeAccessors.size();
}
};
FENNEL_END_NAMESPACE
#endif
// End TupleProjectionAccessor.h
| 27.647059 | 72 | 0.754787 |
371bb18f88ba30f24a825b6f1efed369d1f2e2b1 | 532 | h | C | src/n4502.h | merlinblack/manualbind | 7609fc504f468285412a45f53c5a3adca62cd883 | [
"MIT"
] | 5 | 2018-07-06T04:55:10.000Z | 2021-11-07T02:59:55.000Z | src/n4502.h | merlinblack/manualbind | 7609fc504f468285412a45f53c5a3adca62cd883 | [
"MIT"
] | null | null | null | src/n4502.h | merlinblack/manualbind | 7609fc504f468285412a45f53c5a3adca62cd883 | [
"MIT"
] | null | null | null | #ifndef n4502_H
#define n4502_H
// See http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/n4502.pdf.
template <typename...>
using void_t = void;
// Primary template handles all types not supporting the operation.
template <typename, template <typename> class, typename = void_t<> >
struct detect : std::false_type {};
// Specialization recognizes/validates only types supporting the archetype.
template <typename T, template <typename> class Op>
struct detect<T, Op, void_t<Op<T> > > : std::true_type {};
#endif // n4502_H
| 31.294118 | 75 | 0.740602 |
354c364962cee52a166b664418cefd424ce89bc6 | 177 | h | C | CharacterLocationSeekerDemo/CharacterLocationSeekerDemo/ViewController.h | hjw6160602/CharacterLocationSeeker | 42bcdab817e5a8d191ac43710c74522ca0e2244c | [
"MIT"
] | null | null | null | CharacterLocationSeekerDemo/CharacterLocationSeekerDemo/ViewController.h | hjw6160602/CharacterLocationSeeker | 42bcdab817e5a8d191ac43710c74522ca0e2244c | [
"MIT"
] | null | null | null | CharacterLocationSeekerDemo/CharacterLocationSeekerDemo/ViewController.h | hjw6160602/CharacterLocationSeeker | 42bcdab817e5a8d191ac43710c74522ca0e2244c | [
"MIT"
] | null | null | null | //
// ViewController.h
// CharacterLocationSeekerDemo
//
// Created by 贺嘉炜 on 2017/7/25.
//
//
#import <UIKit/UIKit.h>
@interface ViewController : UIViewController
@end
| 11.0625 | 44 | 0.689266 |
3566c796c190db579ad8f3d9ae0f34c22ff30e3c | 998 | h | C | src/chrono_ogre/Graphics/ChOgreMeshBase.h | felixvd/chrono | 4c437fc1fc8964310d53206dda45e8ba9c734fa2 | [
"BSD-3-Clause"
] | 1 | 2015-03-19T16:48:13.000Z | 2015-03-19T16:48:13.000Z | src/chrono_ogre/Graphics/ChOgreMeshBase.h | felixvd/chrono | 4c437fc1fc8964310d53206dda45e8ba9c734fa2 | [
"BSD-3-Clause"
] | null | null | null | src/chrono_ogre/Graphics/ChOgreMeshBase.h | felixvd/chrono | 4c437fc1fc8964310d53206dda45e8ba9c734fa2 | [
"BSD-3-Clause"
] | 1 | 2018-10-25T07:05:40.000Z | 2018-10-25T07:05:40.000Z | #pragma once
#include "chrono_ogre/ChOgreApi.h"
#include <Ogre.h>
namespace ChOgre {
class CHOGRE_DLL_TAG ChOgreMeshBase {
public:
ChOgreMeshBase();
ChOgreMeshBase(Ogre::SceneManager* SceneManager);
ChOgreMeshBase(Ogre::SceneManager* SceneManager, const std::string& MeshPath);
ChOgreMeshBase(const ChOgreMeshBase& _other);
ChOgreMeshBase(ChOgreMeshBase&& _other);
~ChOgreMeshBase();
ChOgreMeshBase& operator=(const ChOgreMeshBase& _other);
ChOgreMeshBase& operator=(ChOgreMeshBase&& _other);
void assignSceneManager(Ogre::SceneManager* SceneManager);
void loadMesh(const std::string& MeshPath);
void setMesh(const Ogre::MeshPtr& pMesh);
Ogre::SceneManager* getSceneManager() { return m_pSceneManager; }
Ogre::Entity* getEntity() { return m_pEntity; }
protected:
// NOTE: Ogre hates it when you clean up for it, making it impossible to use shared pointers.
Ogre::SceneManager* m_pSceneManager;
Ogre::Entity* m_pEntity;
};
} | 31.1875 | 97 | 0.733467 |
a6c9459c23a6f43aeb84fe1c06a987b4f748717d | 2,415 | h | C | Code/Engine/Foundation/IO/SerializationContext.h | Tekh-ops/ezEngine | d6a5887d8709f267bf8f2943ef15054e29f6d3d5 | [
"MIT"
] | 703 | 2015-03-07T15:30:40.000Z | 2022-03-30T00:12:40.000Z | Code/Engine/Foundation/IO/SerializationContext.h | Tekh-ops/ezEngine | d6a5887d8709f267bf8f2943ef15054e29f6d3d5 | [
"MIT"
] | 233 | 2015-01-11T16:54:32.000Z | 2022-03-19T18:00:47.000Z | Code/Engine/Foundation/IO/SerializationContext.h | Tekh-ops/ezEngine | d6a5887d8709f267bf8f2943ef15054e29f6d3d5 | [
"MIT"
] | 101 | 2016-10-28T14:05:10.000Z | 2022-03-30T19:00:59.000Z |
#pragma once
/// \brief Base class for serialization contexts. A serialization context can be used to add high level logic to serialization, e.g.
/// de-duplicating objects.
///
/// Typically a context is created before any serialization happens and can then be accessed anywhere through the GetContext method.
template <typename Derived>
class ezSerializationContext
{
EZ_DISALLOW_COPY_AND_ASSIGN(ezSerializationContext);
public:
ezSerializationContext() { Derived::SetContext(this); }
~ezSerializationContext() { Derived::SetContext(nullptr); }
/// \brief Set the context as active which means it can be accessed via GetContext in serialization methods.
///
/// It can be useful to manually set a context as active if a serialization process is spread across multiple scopes
/// and other serialization can happen in between.
void SetActive(bool bActive) { Derived::SetContext(bActive ? this : nullptr); }
};
/// \brief Declares the necessary functions to access a serialization context
#define EZ_DECLARE_SERIALIZATION_CONTEXT(type) \
public: \
static type* GetContext(); \
\
protected: \
friend class ezSerializationContext<type>; \
static void SetContext(ezSerializationContext* pContext);
/// \brief Implements the necessary functions to access a serialization context through GetContext.
#define EZ_IMPLEMENT_SERIALIZATION_CONTEXT(type) \
thread_local type* EZ_CONCAT(s_pActiveContext, type); \
type* type::GetContext() { return EZ_CONCAT(s_pActiveContext, type); } \
void type::SetContext(ezSerializationContext* pContext) \
{ \
EZ_ASSERT_DEV(pContext == nullptr || EZ_CONCAT(s_pActiveContext, type) == nullptr, "Only one context can be active at a time."); \
EZ_CONCAT(s_pActiveContext, type) = static_cast<type*>(pContext); \
}
| 56.162791 | 134 | 0.563561 |
071e0c8cad975695a7ba94344432932d84bfa277 | 324 | h | C | Projector/Projector/User Interface/PROLogoLoadingView.h | planningcenter/projector | 5fc2b3baa752331e505228503fb4e6e82cdd0e0d | [
"MIT"
] | 9 | 2018-02-13T18:33:43.000Z | 2020-03-08T15:31:48.000Z | Projector/Projector/User Interface/PROLogoLoadingView.h | planningcenter/projector | 5fc2b3baa752331e505228503fb4e6e82cdd0e0d | [
"MIT"
] | 2 | 2018-04-30T10:28:56.000Z | 2019-02-23T16:31:10.000Z | Projector/Projector/User Interface/PROLogoLoadingView.h | planningcenter/projector | 5fc2b3baa752331e505228503fb4e6e82cdd0e0d | [
"MIT"
] | 11 | 2018-02-17T12:39:27.000Z | 2021-03-10T09:07:41.000Z | /*!
* PROLogoLoadingView.h
*
*
* Created by Skylar Schipper on 5/9/14
*/
#ifndef PROLogoLoadingView_h
#define PROLogoLoadingView_h
#import "PCOView.h"
@interface PROLogoLoadingView : PCOView
@property (nonatomic) CGFloat sizeIndex;
- (void)startAnimating;
- (void)stopAnimating;
- (BOOL)isAnimating;
@end
#endif
| 13.5 | 40 | 0.737654 |
c29b85088f4e0edf456a55dcc5c5a5c90ed0d7df | 5,881 | h | C | Code/Core/Network/TCPConnectionPool.h | qq573011406/FASTBuild_UnrealEngine | 29c49672f82173a903cb32f0e4656e2fd07ebef2 | [
"MIT"
] | 30 | 2020-07-15T06:16:55.000Z | 2022-02-10T21:37:52.000Z | Code/Core/Network/TCPConnectionPool.h | qq573011406/FASTBuild_UnrealEngine | 29c49672f82173a903cb32f0e4656e2fd07ebef2 | [
"MIT"
] | 1 | 2020-11-23T13:35:00.000Z | 2020-11-23T13:35:00.000Z | Code/Core/Network/TCPConnectionPool.h | qq573011406/FASTBuild_UnrealEngine | 29c49672f82173a903cb32f0e4656e2fd07ebef2 | [
"MIT"
] | 12 | 2020-09-16T17:39:34.000Z | 2021-08-17T11:32:37.000Z | // TCPConnectionPool
//------------------------------------------------------------------------------
#pragma once
// Includes
//------------------------------------------------------------------------------
#include "NetworkStartupHelper.h"
#include "Core/Containers/Array.h"
#include "Core/Env/Types.h"
#include "Core/Process/Mutex.h"
#include "Core/Process/Semaphore.h"
#include "Core/Process/Thread.h"
#include "Core/Strings/AString.h"
// Forward Declarations
//------------------------------------------------------------------------------
class TCPConnectionPool;
#if defined( __WINDOWS__ )
typedef uintptr_t TCPSocket;
#elif defined( __APPLE__ ) || defined( __LINUX__ )
typedef int TCPSocket;
#endif
// ConnectionInfo - one connection in the pool
//------------------------------------------------------------------------------
class ConnectionInfo
{
public:
explicit ConnectionInfo( TCPConnectionPool * ownerPool );
// users can store connection associate information
void SetUserData( void * userData ) const { m_UserData = userData; }
void * GetUserData() const { return m_UserData; }
// access to info about this connection
TCPConnectionPool & GetTCPConnectionPool() const { return *m_TCPConnectionPool; }
inline uint32_t GetRemoteAddress() const { return m_RemoteAddress; }
private:
friend class TCPConnectionPool;
TCPSocket m_Socket;
uint32_t m_RemoteAddress;
uint16_t m_RemotePort;
volatile mutable bool m_ThreadQuitNotification;
TCPConnectionPool * m_TCPConnectionPool; // back pointer to parent pool
mutable void * m_UserData;
#ifdef DEBUG
mutable bool m_InUse; // sanity check we aren't sending from multiple threads unsafely
#endif
};
// TCPConnectionPool
//------------------------------------------------------------------------------
class TCPConnectionPool
{
public:
TCPConnectionPool();
virtual ~TCPConnectionPool();
// Must be called explicitly before destruction
void ShutdownAllConnections();
// manage connections
bool Listen( uint16_t port );
void StopListening();
const ConnectionInfo * Connect( const AString & host, uint16_t port, uint32_t timeout = 2000, void * userData = nullptr );
const ConnectionInfo * Connect( uint32_t hostIP, uint16_t port, uint32_t timeout = 2000, void * userData = nullptr );
void Disconnect( const ConnectionInfo * ci );
void SetShuttingDown();
// query connection state
size_t GetNumConnections() const;
// transmit data
bool Send( const ConnectionInfo * connection, const void * data, size_t size, uint32_t timeoutMS = 30000 );
bool Send( const ConnectionInfo * connection, const void * data, size_t size, const void * payloadData, size_t payloadSize, uint32_t timeoutMS = 30000 );
bool Broadcast( const void * data, size_t size );
static void GetAddressAsString( uint32_t addr, AString & address );
protected:
// network events - NOTE: these happen in another thread! (but never at the same time)
virtual void OnReceive( const ConnectionInfo *, void * /*data*/, uint32_t /*size*/, bool & /*keepMemory*/ ) {}
virtual void OnConnected( const ConnectionInfo * ) {}
virtual void OnDisconnected( const ConnectionInfo * ) {}
// derived class can provide custom memory allocation if desired
virtual void * AllocBuffer( uint32_t size );
virtual void FreeBuffer( void * data );
private:
// helper functions
bool HandleRead( ConnectionInfo * ci );
// platform specific abstraction
int GetLastNetworkError() const;
bool WouldBlock() const;
int CloseSocket( TCPSocket socket ) const;
int Select( TCPSocket maxSocketPlusOne,
void * readSocketSet, // TODO: Using void * to avoid including header is ugly
void * writeSocketSet,
void * exceptionSocketSet,
struct timeval * timeOut ) const;
TCPSocket Accept( TCPSocket socket,
struct sockaddr * address,
int * addressSize ) const;
TCPSocket CreateSocket() const;
struct SendBuffer
{
uint32_t size;
const void * data;
};
bool SendInternal( const ConnectionInfo * connection, const SendBuffer * buffers, uint32_t numBuffers, uint32_t timeoutMS );
// thread management
void CreateListenThread( TCPSocket socket, uint32_t host, uint16_t port );
static uint32_t ListenThreadWrapperFunction( void * data );
void ListenThreadFunction( ConnectionInfo * ci );
ConnectionInfo * CreateConnectionThread( TCPSocket socket, uint32_t host, uint16_t port, void * userData = nullptr );
static uint32_t ConnectionThreadWrapperFunction( void * data );
void ConnectionThreadFunction( ConnectionInfo * ci );
// internal helpers
void AllowSocketReuse( TCPSocket socket ) const;
void DisableNagle( TCPSocket socket ) const;
void DisableSigPipe( TCPSocket socket ) const;
void SetLargeBufferSizes( TCPSocket socket ) const;
void SetNonBlocking( TCPSocket socket ) const;
// listen socket related info
ConnectionInfo * m_ListenConnection;
// remote connection related info
mutable Mutex m_ConnectionsMutex;
Array< ConnectionInfo * > m_Connections;
bool m_ShuttingDown;
Semaphore m_ShutdownSemaphore;
// object to manage network subsystem lifetime
protected:
NetworkStartupHelper m_EnsureNetworkStarted;
};
//------------------------------------------------------------------------------
| 38.94702 | 157 | 0.611461 |
b8219394636e37687d08cff0f7a6f6f10f5243b9 | 1,811 | h | C | Samples/_Common/Include/IGuiFrameModel.h | liliilli/SH-D3D11 | 1ffb4639d5d9dd06d08b2aa21ebc781ee22fb26c | [
"Unlicense",
"MIT"
] | null | null | null | Samples/_Common/Include/IGuiFrameModel.h | liliilli/SH-D3D11 | 1ffb4639d5d9dd06d08b2aa21ebc781ee22fb26c | [
"Unlicense",
"MIT"
] | null | null | null | Samples/_Common/Include/IGuiFrameModel.h | liliilli/SH-D3D11 | 1ffb4639d5d9dd06d08b2aa21ebc781ee22fb26c | [
"Unlicense",
"MIT"
] | null | null | null | #pragma once
///
/// MIT License
/// Copyright (c) 2018-2019 Jongmin Yun
///
/// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
/// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
/// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
/// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
/// SOFTWARE.
///
#include <variant>
#include <stdexcept>
#include <IGuiFrame.h>
#include <IGuiModel.h>
#include <DGuiNoneModel.h>
template <typename TType>
class IGuiFrameModel : public IGuiFrame
{
public:
virtual ~IGuiFrameModel() = default;
/// @brief Check frame has model instance.
[[nodiscard]] bool HasModel() const noexcept override final;
/// @brief Get model reference.
/// If not exist or model has not been initialized, just throw error.
IGuiModel& GetModel() override final;
/// @brief Destroy GUI instance.
void DestroySelf() override final;
protected:
/// @brief Model instance.
using TModel = std::variant<std::monostate, std::unique_ptr<IGuiModel>, IGuiModel*>;
TModel mModel;
/// @brief If false, mModel has std::unique_ptr<IGuiModel>.
/// If true, mModel has IGuiModel* that is from outside world.
bool mIsIndirect = false;
};
template <>
class IGuiFrameModel<void> : public IGuiFrame
{
public:
virtual ~IGuiFrameModel() = default;
/// @brief Check frame has model instance.
[[nodiscard]] bool HasModel() const noexcept override final;
/// @brief
IGuiModel& GetModel() override final;
/// @brief Destroy GUI instance.
void DestroySelf() override final;
};
#include <IGuiFrameModel.inl> | 29.209677 | 86 | 0.721701 |
110f4d4fd69f432b46f007543236a51ddd1b0a92 | 416 | h | C | protocols/SKUIProductPageChildViewController.h | shaojiankui/iOS10-Runtime-Headers | 6b0d842bed0c52c2a7c1464087b3081af7e10c43 | [
"MIT"
] | 36 | 2016-04-20T04:19:04.000Z | 2018-10-08T04:12:25.000Z | protocols/SKUIProductPageChildViewController.h | shaojiankui/iOS10-Runtime-Headers | 6b0d842bed0c52c2a7c1464087b3081af7e10c43 | [
"MIT"
] | null | null | null | protocols/SKUIProductPageChildViewController.h | shaojiankui/iOS10-Runtime-Headers | 6b0d842bed0c52c2a7c1464087b3081af7e10c43 | [
"MIT"
] | 10 | 2016-06-16T02:40:44.000Z | 2019-01-15T03:31:45.000Z | /* Generated by RuntimeBrowser.
*/
@protocol SKUIProductPageChildViewController <NSObject>
@required
- (<SKUIProductPageChildViewControllerDelegate> *)delegate;
- (SKUIProductPageHeaderViewController *)headerViewController;
- (UIScrollView *)scrollView;
- (void)setDelegate:(id <SKUIProductPageChildViewControllerDelegate>)arg1;
- (void)setHeaderViewController:(SKUIProductPageHeaderViewController *)arg1;
@end
| 27.733333 | 76 | 0.822115 |
7466e3a6dd3bca06ce61eb0a032bff8b0c27b89a | 312 | h | C | Beat/Level.h | MasakiMuto/Beat | d056b336f77a0d1f10c4602edc22782cbdef735e | [
"MIT"
] | null | null | null | Beat/Level.h | MasakiMuto/Beat | d056b336f77a0d1f10c4602edc22782cbdef735e | [
"MIT"
] | null | null | null | Beat/Level.h | MasakiMuto/Beat | d056b336f77a0d1f10c4602edc22782cbdef735e | [
"MIT"
] | null | null | null | #pragma once
#include <random>
#include <memory>
namespace dxshoot {
class Level
{
public:
Level();
~Level();
void update();
private:
int count;
int beatCount;
bool direction;
std::unique_ptr<std::mt19937> mt;
std::unique_ptr<std::uniform_int_distribution<> > dist;
int getNum();
int getBeat();
};
} | 13.565217 | 56 | 0.692308 |
fb081b6a198d38bacf9edf5f2f49c54e96de09e9 | 304 | h | C | OneDay/OneBase/controller/ContactUsViewController.h | 1box/onedayapp | 576255d230a4508fd8de2a0b14a8108b44479809 | [
"MIT"
] | 2 | 2016-04-20T06:57:18.000Z | 2017-09-18T08:16:23.000Z | OneDay/OneBase/controller/ContactUsViewController.h | 1box/onedayapp | 576255d230a4508fd8de2a0b14a8108b44479809 | [
"MIT"
] | null | null | null | OneDay/OneBase/controller/ContactUsViewController.h | 1box/onedayapp | 576255d230a4508fd8de2a0b14a8108b44479809 | [
"MIT"
] | null | null | null | //
// ContactUsViewController.h
// MedAlarm
//
// Created by Kimi on 12-10-16.
// Copyright (c) 2012年 Kimi Yu. All rights reserved.
//
#import <UIKit/UIKit.h>
@class KMTableView;
@interface ContactUsViewController : UITableViewController
@property (nonatomic) IBOutlet KMTableView *listView;
@end
| 19 | 58 | 0.736842 |
5993fb4917b49e2d127a995097596dcda21908b3 | 51,581 | h | C | kernel/tegra/drivers/net/wireless/sd8897/mlinux/mlan_ieee.h | alexunder/CellMatrix | bd21813ad8ab4ccd320bcac9aad7c61eb7f35df2 | [
"MIT"
] | null | null | null | kernel/tegra/drivers/net/wireless/sd8897/mlinux/mlan_ieee.h | alexunder/CellMatrix | bd21813ad8ab4ccd320bcac9aad7c61eb7f35df2 | [
"MIT"
] | null | null | null | kernel/tegra/drivers/net/wireless/sd8897/mlinux/mlan_ieee.h | alexunder/CellMatrix | bd21813ad8ab4ccd320bcac9aad7c61eb7f35df2 | [
"MIT"
] | null | null | null | /** @file mlan_ieee.h
*
* @brief This file contains IEEE information element related
* definitions used in MLAN and MOAL module.
*
* Copyright (C) 2008-2013, Marvell International Ltd.
*
* This software file (the "File") is distributed by Marvell International
* Ltd. under the terms of the GNU General Public License Version 2, June 1991
* (the "License"). You may use, redistribute and/or modify this File in
* accordance with the terms and conditions of the License, a copy of which
* is available by writing to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA or on the
* worldwide web at http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
*
* THE FILE IS DISTRIBUTED AS-IS, WITHOUT WARRANTY OF ANY KIND, AND THE
* IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE
* ARE EXPRESSLY DISCLAIMED. The License provides additional details about
* this warranty disclaimer.
*/
/******************************************************
Change log:
11/03/2008: initial version
******************************************************/
#ifndef _MLAN_IEEE_H_
#define _MLAN_IEEE_H_
/** FIX IES size in beacon buffer */
#define WLAN_802_11_FIXED_IE_SIZE 12
/** WLAN supported rates */
#define WLAN_SUPPORTED_RATES 14
/** WLAN supported rates extension */
#define WLAN_SUPPORTED_RATES_EXT 60
/** Enumeration definition*/
/** WLAN_802_11_NETWORK_TYPE */
typedef enum _WLAN_802_11_NETWORK_TYPE {
Wlan802_11FH,
Wlan802_11DS,
/* Defined as upper bound */
Wlan802_11NetworkTypeMax
} WLAN_802_11_NETWORK_TYPE;
#ifdef BIG_ENDIAN_SUPPORT
/** Frame control: Type Mgmt frame */
#define IEEE80211_FC_MGMT_FRAME_TYPE_MASK 0x3000
/** Frame control: SubType Mgmt frame */
#define IEEE80211_GET_FC_MGMT_FRAME_SUBTYPE(fc) (((fc) & 0xF000) >> 12)
#else
/** Frame control: Type Mgmt frame */
#define IEEE80211_FC_MGMT_FRAME_TYPE_MASK 0x000C
/** Frame control: SubType Mgmt frame */
#define IEEE80211_GET_FC_MGMT_FRAME_SUBTYPE(fc) (((fc) & 0x00F0) >> 4)
#endif
#ifdef PRAGMA_PACK
#pragma pack(push, 1)
#endif
/* Reason codes */
#define IEEE_80211_REASONCODE_UNSPECIFIED 1
/** IEEE Type definitions */
typedef MLAN_PACK_START enum _IEEEtypes_ElementId_e {
SSID = 0,
SUPPORTED_RATES = 1,
FH_PARAM_SET = 2,
DS_PARAM_SET = 3,
CF_PARAM_SET = 4,
IBSS_PARAM_SET = 6,
#ifdef STA_SUPPORT
COUNTRY_INFO = 7,
#endif /* STA_SUPPORT */
POWER_CONSTRAINT = 32,
POWER_CAPABILITY = 33,
TPC_REQUEST = 34,
TPC_REPORT = 35,
SUPPORTED_CHANNELS = 36,
CHANNEL_SWITCH_ANN = 37,
QUIET = 40,
IBSS_DFS = 41,
HT_CAPABILITY = 45,
QOS_INFO = 46,
HT_OPERATION = 61,
BSSCO_2040 = 72,
OVERLAPBSSSCANPARAM = 74,
EXT_CAPABILITY = 127,
VHT_CAPABILITY = 191,
VHT_OPERATION = 192,
EXT_BSS_LOAD = 193,
BW_CHANNEL_SWITCH = 194,
VHT_TX_POWER_ENV = 195,
EXT_POWER_CONSTR = 196,
AID_INFO = 197,
QUIET_CHAN = 198,
OPER_MODE_NTF = 199,
ERP_INFO = 42,
EXTENDED_SUPPORTED_RATES = 50,
VENDOR_SPECIFIC_221 = 221,
WMM_IE = VENDOR_SPECIFIC_221,
WPS_IE = VENDOR_SPECIFIC_221,
WPA_IE = VENDOR_SPECIFIC_221,
RSN_IE = 48,
VS_IE = VENDOR_SPECIFIC_221,
WAPI_IE = 68,
} MLAN_PACK_END IEEEtypes_ElementId_e;
/** IEEE IE header */
typedef MLAN_PACK_START struct _IEEEtypes_Header_t {
/** Element ID */
t_u8 element_id;
/** Length */
t_u8 len;
} MLAN_PACK_END IEEEtypes_Header_t, *pIEEEtypes_Header_t;
/** Vendor specific IE header */
typedef MLAN_PACK_START struct _IEEEtypes_VendorHeader_t {
/** Element ID */
t_u8 element_id;
/** Length */
t_u8 len;
/** OUI */
t_u8 oui[3];
/** OUI type */
t_u8 oui_type;
/** OUI subtype */
t_u8 oui_subtype;
/** Version */
t_u8 version;
} MLAN_PACK_END IEEEtypes_VendorHeader_t, *pIEEEtypes_VendorHeader_t;
/** Vendor specific IE */
typedef MLAN_PACK_START struct _IEEEtypes_VendorSpecific_t {
/** Vendor specific IE header */
IEEEtypes_VendorHeader_t vend_hdr;
/** IE Max - size of previous fields */
t_u8 data[IEEE_MAX_IE_SIZE - sizeof(IEEEtypes_VendorHeader_t)];
}
MLAN_PACK_END IEEEtypes_VendorSpecific_t, *pIEEEtypes_VendorSpecific_t;
/** IEEE IE */
typedef MLAN_PACK_START struct _IEEEtypes_Generic_t {
/** Generic IE header */
IEEEtypes_Header_t ieee_hdr;
/** IE Max - size of previous fields */
t_u8 data[IEEE_MAX_IE_SIZE - sizeof(IEEEtypes_Header_t)];
}
MLAN_PACK_END IEEEtypes_Generic_t, *pIEEEtypes_Generic_t;
/** TLV header */
typedef MLAN_PACK_START struct _TLV_Generic_t {
/** Type */
t_u16 type;
/** Length */
t_u16 len;
} MLAN_PACK_END TLV_Generic_t, *pTLV_Generic_t;
/** Capability information mask */
#define CAPINFO_MASK (~(MBIT(15) | MBIT(14) | \
MBIT(12) | MBIT(11) | MBIT(9)))
/** Capability Bit Map*/
#ifdef BIG_ENDIAN_SUPPORT
typedef MLAN_PACK_START struct _IEEEtypes_CapInfo_t {
t_u8 rsrvd1:2;
t_u8 dsss_ofdm:1;
t_u8 rsvrd2:2;
t_u8 short_slot_time:1;
t_u8 rsrvd3:1;
t_u8 spectrum_mgmt:1;
t_u8 chan_agility:1;
t_u8 pbcc:1;
t_u8 short_preamble:1;
t_u8 privacy:1;
t_u8 cf_poll_rqst:1;
t_u8 cf_pollable:1;
t_u8 ibss:1;
t_u8 ess:1;
} MLAN_PACK_END IEEEtypes_CapInfo_t, *pIEEEtypes_CapInfo_t;
#else
typedef MLAN_PACK_START struct _IEEEtypes_CapInfo_t {
/** Capability Bit Map : ESS */
t_u8 ess:1;
/** Capability Bit Map : IBSS */
t_u8 ibss:1;
/** Capability Bit Map : CF pollable */
t_u8 cf_pollable:1;
/** Capability Bit Map : CF poll request */
t_u8 cf_poll_rqst:1;
/** Capability Bit Map : privacy */
t_u8 privacy:1;
/** Capability Bit Map : Short preamble */
t_u8 short_preamble:1;
/** Capability Bit Map : PBCC */
t_u8 pbcc:1;
/** Capability Bit Map : Channel agility */
t_u8 chan_agility:1;
/** Capability Bit Map : Spectrum management */
t_u8 spectrum_mgmt:1;
/** Capability Bit Map : Reserved */
t_u8 rsrvd3:1;
/** Capability Bit Map : Short slot time */
t_u8 short_slot_time:1;
/** Capability Bit Map : APSD */
t_u8 Apsd:1;
/** Capability Bit Map : Reserved */
t_u8 rsvrd2:1;
/** Capability Bit Map : DSS OFDM */
t_u8 dsss_ofdm:1;
/** Capability Bit Map : Reserved */
t_u8 rsrvd1:2;
} MLAN_PACK_END IEEEtypes_CapInfo_t, *pIEEEtypes_CapInfo_t;
#endif /* BIG_ENDIAN_SUPPORT */
/** IEEEtypes_CfParamSet_t */
typedef MLAN_PACK_START struct _IEEEtypes_CfParamSet_t {
/** CF peremeter : Element ID */
t_u8 element_id;
/** CF peremeter : Length */
t_u8 len;
/** CF peremeter : Count */
t_u8 cfp_cnt;
/** CF peremeter : Period */
t_u8 cfp_period;
/** CF peremeter : Maximum duration */
t_u16 cfp_max_duration;
/** CF peremeter : Remaining duration */
t_u16 cfp_duration_remaining;
} MLAN_PACK_END IEEEtypes_CfParamSet_t, *pIEEEtypes_CfParamSet_t;
/** IEEEtypes_IbssParamSet_t */
typedef MLAN_PACK_START struct _IEEEtypes_IbssParamSet_t {
/** Element ID */
t_u8 element_id;
/** Length */
t_u8 len;
/** ATIM window value in milliseconds */
t_u16 atim_window;
} MLAN_PACK_END IEEEtypes_IbssParamSet_t, *pIEEEtypes_IbssParamSet_t;
/** IEEEtypes_SsParamSet_t */
typedef MLAN_PACK_START union _IEEEtypes_SsParamSet_t {
/** SS parameter : CF parameter set */
IEEEtypes_CfParamSet_t cf_param_set;
/** SS parameter : IBSS parameter set */
IEEEtypes_IbssParamSet_t ibss_param_set;
} MLAN_PACK_END IEEEtypes_SsParamSet_t, *pIEEEtypes_SsParamSet_t;
/** IEEEtypes_FhParamSet_t */
typedef MLAN_PACK_START struct _IEEEtypes_FhParamSet_t {
/** FH parameter : Element ID */
t_u8 element_id;
/** FH parameter : Length */
t_u8 len;
/** FH parameter : Dwell time in milliseconds */
t_u16 dwell_time;
/** FH parameter : Hop set */
t_u8 hop_set;
/** FH parameter : Hop pattern */
t_u8 hop_pattern;
/** FH parameter : Hop index */
t_u8 hop_index;
} MLAN_PACK_END IEEEtypes_FhParamSet_t, *pIEEEtypes_FhParamSet_t;
/** IEEEtypes_DsParamSet_t */
typedef MLAN_PACK_START struct _IEEEtypes_DsParamSet_t {
/** DS parameter : Element ID */
t_u8 element_id;
/** DS parameter : Length */
t_u8 len;
/** DS parameter : Current channel */
t_u8 current_chan;
} MLAN_PACK_END IEEEtypes_DsParamSet_t, *pIEEEtypes_DsParamSet_t;
/** IEEEtypes_PhyParamSet_t */
typedef MLAN_PACK_START union _IEEEtypes_PhyParamSet_t {
/** FH parameter set */
IEEEtypes_FhParamSet_t fh_param_set;
/** DS parameter set */
IEEEtypes_DsParamSet_t ds_param_set;
} MLAN_PACK_END IEEEtypes_PhyParamSet_t, *pIEEEtypes_PhyParamSet_t;
/** IEEEtypes_ERPInfo_t */
typedef MLAN_PACK_START struct _IEEEtypes_ERPInfo_t {
/** Element ID */
t_u8 element_id;
/** Length */
t_u8 len;
/** ERP flags */
t_u8 erp_flags;
} MLAN_PACK_END IEEEtypes_ERPInfo_t, *pIEEEtypes_ERPInfo_t;
/** IEEEtypes_AId_t */
typedef t_u16 IEEEtypes_AId_t;
/** IEEEtypes_StatusCode_t */
typedef t_u16 IEEEtypes_StatusCode_t;
/** Fixed size in assoc_resp */
#define ASSOC_RESP_FIXED_SIZE 6
/** IEEEtypes_AssocRsp_t */
typedef MLAN_PACK_START struct _IEEEtypes_AssocRsp_t {
/** Capability information */
IEEEtypes_CapInfo_t capability;
/** Association response status code */
IEEEtypes_StatusCode_t status_code;
/** Association ID */
IEEEtypes_AId_t a_id;
/** IE data buffer */
t_u8 ie_buffer[1];
} MLAN_PACK_END IEEEtypes_AssocRsp_t, *pIEEEtypes_AssocRsp_t;
/** 802.11 supported rates */
typedef t_u8 WLAN_802_11_RATES[WLAN_SUPPORTED_RATES];
/** cipher TKIP */
#define WPA_CIPHER_TKIP 2
/** cipher AES */
#define WPA_CIPHER_AES_CCM 4
/** AKM: 8021x */
#define RSN_AKM_8021X 1
/** AKM: PSK */
#define RSN_AKM_PSK 2
/** AKM: PSK SHA256 */
#define RSN_AKM_PSK_SHA256 6
#if defined(STA_SUPPORT)
/** Pairwise Cipher Suite length */
#define PAIRWISE_CIPHER_SUITE_LEN 4
/** AKM Suite length */
#define AKM_SUITE_LEN 4
/** MFPC bit in RSN capability */
#define MFPC_BIT 7
/** MFPR bit in RSN capability */
#define MFPR_BIT 6
/** PMF ORing mask */
#define PMF_MASK 0x00c0
#endif
/** wpa_suite_t */
typedef MLAN_PACK_START struct _wpa_suite_t {
/** OUI */
t_u8 oui[3];
/** tyep */
t_u8 type;
} MLAN_PACK_END wpa_suite, wpa_suite_mcast_t;
/** wpa_suite_ucast_t */
typedef MLAN_PACK_START struct {
/* count */
t_u16 count;
/** wpa_suite list */
wpa_suite list[1];
} MLAN_PACK_END wpa_suite_ucast_t, wpa_suite_auth_key_mgmt_t;
/** IEEEtypes_Rsn_t */
typedef MLAN_PACK_START struct _IEEEtypes_Rsn_t {
/** Rsn : Element ID */
t_u8 element_id;
/** Rsn : Length */
t_u8 len;
/** Rsn : version */
t_u16 version;
/** Rsn : group cipher */
wpa_suite_mcast_t group_cipher;
/** Rsn : pairwise cipher */
wpa_suite_ucast_t pairwise_cipher;
} MLAN_PACK_END IEEEtypes_Rsn_t, *pIEEEtypes_Rsn_t;
/** IEEEtypes_Wpa_t */
typedef MLAN_PACK_START struct _IEEEtypes_Wpa_t {
/** Wpa : Element ID */
t_u8 element_id;
/** Wpa : Length */
t_u8 len;
/** Wpa : oui */
t_u8 oui[4];
/** version */
t_u16 version;
/** Wpa : group cipher */
wpa_suite_mcast_t group_cipher;
/** Wpa : pairwise cipher */
wpa_suite_ucast_t pairwise_cipher;
} MLAN_PACK_END IEEEtypes_Wpa_t, *pIEEEtypes_Wpa_t;
/** Maximum number of AC QOS queues available in the driver/firmware */
#define MAX_AC_QUEUES 4
/** Data structure of WMM QoS information */
typedef MLAN_PACK_START struct _IEEEtypes_WmmQosInfo_t {
#ifdef BIG_ENDIAN_SUPPORT
/** QoS UAPSD */
t_u8 qos_uapsd:1;
/** Reserved */
t_u8 reserved:3;
/** Parameter set count */
t_u8 para_set_count:4;
#else
/** Parameter set count */
t_u8 para_set_count:4;
/** Reserved */
t_u8 reserved:3;
/** QoS UAPSD */
t_u8 qos_uapsd:1;
#endif /* BIG_ENDIAN_SUPPORT */
} MLAN_PACK_END IEEEtypes_WmmQosInfo_t, *pIEEEtypes_WmmQosInfo_t;
/** Data structure of WMM Aci/Aifsn */
typedef MLAN_PACK_START struct _IEEEtypes_WmmAciAifsn_t {
#ifdef BIG_ENDIAN_SUPPORT
/** Reserved */
t_u8 reserved:1;
/** Aci */
t_u8 aci:2;
/** Acm */
t_u8 acm:1;
/** Aifsn */
t_u8 aifsn:4;
#else
/** Aifsn */
t_u8 aifsn:4;
/** Acm */
t_u8 acm:1;
/** Aci */
t_u8 aci:2;
/** Reserved */
t_u8 reserved:1;
#endif /* BIG_ENDIAN_SUPPORT */
} MLAN_PACK_END IEEEtypes_WmmAciAifsn_t, *pIEEEtypes_WmmAciAifsn_t;
/** Data structure of WMM ECW */
typedef MLAN_PACK_START struct _IEEEtypes_WmmEcw_t {
#ifdef BIG_ENDIAN_SUPPORT
/** Maximum Ecw */
t_u8 ecw_max:4;
/** Minimum Ecw */
t_u8 ecw_min:4;
#else
/** Minimum Ecw */
t_u8 ecw_min:4;
/** Maximum Ecw */
t_u8 ecw_max:4;
#endif /* BIG_ENDIAN_SUPPORT */
} MLAN_PACK_END IEEEtypes_WmmEcw_t, *pIEEEtypes_WmmEcw_t;
/** Data structure of WMM AC parameters */
typedef MLAN_PACK_START struct _IEEEtypes_WmmAcParameters_t {
IEEEtypes_WmmAciAifsn_t aci_aifsn; /**< AciAifSn */
IEEEtypes_WmmEcw_t ecw; /**< Ecw */
t_u16 tx_op_limit; /**< Tx op limit */
} MLAN_PACK_END IEEEtypes_WmmAcParameters_t, *pIEEEtypes_WmmAcParameters_t;
/** Data structure of WMM Info IE */
typedef MLAN_PACK_START struct _IEEEtypes_WmmInfo_t {
/**
* WMM Info IE - Vendor Specific Header:
* element_id [221/0xdd]
* Len [7]
* Oui [00:50:f2]
* OuiType [2]
* OuiSubType [0]
* Version [1]
*/
IEEEtypes_VendorHeader_t vend_hdr;
/** QoS information */
IEEEtypes_WmmQosInfo_t qos_info;
} MLAN_PACK_END IEEEtypes_WmmInfo_t, *pIEEEtypes_WmmInfo_t;
/** Data structure of WMM parameter IE */
typedef MLAN_PACK_START struct _IEEEtypes_WmmParameter_t {
/**
* WMM Parameter IE - Vendor Specific Header:
* element_id [221/0xdd]
* Len [24]
* Oui [00:50:f2]
* OuiType [2]
* OuiSubType [1]
* Version [1]
*/
IEEEtypes_VendorHeader_t vend_hdr;
/** QoS information */
IEEEtypes_WmmQosInfo_t qos_info;
/** Reserved */
t_u8 reserved;
/** AC Parameters Record WMM_AC_BE, WMM_AC_BK, WMM_AC_VI, WMM_AC_VO */
IEEEtypes_WmmAcParameters_t ac_params[MAX_AC_QUEUES];
} MLAN_PACK_END IEEEtypes_WmmParameter_t, *pIEEEtypes_WmmParameter_t;
/** Enumerator for TSPEC direction */
typedef MLAN_PACK_START enum _IEEEtypes_WMM_TSPEC_TS_Info_Direction_e {
TSPEC_DIR_UPLINK = 0,
TSPEC_DIR_DOWNLINK = 1,
/* 2 is a reserved value */
TSPEC_DIR_BIDIRECT = 3,
} MLAN_PACK_END IEEEtypes_WMM_TSPEC_TS_Info_Direction_e;
/** Enumerator for TSPEC PSB */
typedef MLAN_PACK_START enum _IEEEtypes_WMM_TSPEC_TS_Info_PSB_e {
TSPEC_PSB_LEGACY = 0,
TSPEC_PSB_TRIG = 1,
} MLAN_PACK_END IEEEtypes_WMM_TSPEC_TS_Info_PSB_e;
/** Enumerator for TSPEC Ack Policy */
typedef MLAN_PACK_START enum _IEEEtypes_WMM_TSPEC_TS_Info_AckPolicy_e {
TSPEC_ACKPOLICY_NORMAL = 0,
TSPEC_ACKPOLICY_NOACK = 1,
/* 2 is reserved */
TSPEC_ACKPOLICY_BLOCKACK = 3,
} MLAN_PACK_END IEEEtypes_WMM_TSPEC_TS_Info_AckPolicy_e;
/** Enumerator for TSPEC Trafffice type */
typedef MLAN_PACK_START enum _IEEEtypes_WMM_TSPEC_TS_TRAFFIC_TYPE_e {
TSPEC_TRAFFIC_APERIODIC = 0,
TSPEC_TRAFFIC_PERIODIC = 1,
} MLAN_PACK_END IEEEtypes_WMM_TSPEC_TS_TRAFFIC_TYPE_e;
/** Data structure of WMM TSPEC information */
typedef MLAN_PACK_START struct {
#ifdef BIG_ENDIAN_SUPPORT
t_u8 Reserved17_23:7; /* ! Reserved */
t_u8 Schedule:1;
IEEEtypes_WMM_TSPEC_TS_Info_AckPolicy_e AckPolicy:2;
t_u8 UserPri:3; /* ! 802.1d User Priority */
IEEEtypes_WMM_TSPEC_TS_Info_PSB_e PowerSaveBehavior:1; /* !
Legacy/Trigg
*/
t_u8 Aggregation:1; /* ! Reserved */
t_u8 AccessPolicy2:1; /* ! */
t_u8 AccessPolicy1:1; /* ! */
IEEEtypes_WMM_TSPEC_TS_Info_Direction_e Direction:2;
t_u8 TID:4; /* ! Unique identifier */
IEEEtypes_WMM_TSPEC_TS_TRAFFIC_TYPE_e TrafficType:1;
#else
IEEEtypes_WMM_TSPEC_TS_TRAFFIC_TYPE_e TrafficType:1;
t_u8 TID:4; /* ! Unique identifier */
IEEEtypes_WMM_TSPEC_TS_Info_Direction_e Direction:2;
t_u8 AccessPolicy1:1; /* ! */
t_u8 AccessPolicy2:1; /* ! */
t_u8 Aggregation:1; /* ! Reserved */
IEEEtypes_WMM_TSPEC_TS_Info_PSB_e PowerSaveBehavior:1; /* !
Legacy/Trigg
*/
t_u8 UserPri:3; /* ! 802.1d User Priority */
IEEEtypes_WMM_TSPEC_TS_Info_AckPolicy_e AckPolicy:2;
t_u8 Schedule:1;
t_u8 Reserved17_23:7; /* ! Reserved */
#endif
} MLAN_PACK_END IEEEtypes_WMM_TSPEC_TS_Info_t;
/** Data structure of WMM TSPEC Nominal Size */
typedef MLAN_PACK_START struct {
#ifdef BIG_ENDIAN_SUPPORT
t_u16 Fixed:1; /* ! 1: Fixed size given in Size, 0: Var, size
is nominal */
t_u16 Size:15; /* ! Nominal size in octets */
#else
t_u16 Size:15; /* ! Nominal size in octets */
t_u16 Fixed:1; /* ! 1: Fixed size given in Size, 0: Var, size
is nominal */
#endif
} MLAN_PACK_END IEEEtypes_WMM_TSPEC_NomMSDUSize_t;
/** Data structure of WMM TSPEC SBWA */
typedef MLAN_PACK_START struct {
#ifdef BIG_ENDIAN_SUPPORT
t_u16 Whole:3; /* ! Whole portion */
t_u16 Fractional:13; /* ! Fractional portion */
#else
t_u16 Fractional:13; /* ! Fractional portion */
t_u16 Whole:3; /* ! Whole portion */
#endif
} MLAN_PACK_END IEEEtypes_WMM_TSPEC_SBWA;
/** Data structure of WMM TSPEC Body */
typedef MLAN_PACK_START struct {
IEEEtypes_WMM_TSPEC_TS_Info_t TSInfo;
IEEEtypes_WMM_TSPEC_NomMSDUSize_t NomMSDUSize;
t_u16 MaximumMSDUSize;
t_u32 MinServiceInterval;
t_u32 MaxServiceInterval;
t_u32 InactivityInterval;
t_u32 SuspensionInterval;
t_u32 ServiceStartTime;
t_u32 MinimumDataRate;
t_u32 MeanDataRate;
t_u32 PeakDataRate;
t_u32 MaxBurstSize;
t_u32 DelayBound;
t_u32 MinPHYRate;
IEEEtypes_WMM_TSPEC_SBWA SurplusBWAllowance;
t_u16 MediumTime;
} MLAN_PACK_END IEEEtypes_WMM_TSPEC_Body_t;
/** Data structure of WMM TSPEC all elements */
typedef MLAN_PACK_START struct {
t_u8 ElementId;
t_u8 Len;
t_u8 OuiType[4]; /* 00:50:f2:02 */
t_u8 OuiSubType; /* 01 */
t_u8 Version;
IEEEtypes_WMM_TSPEC_Body_t TspecBody;
} MLAN_PACK_END IEEEtypes_WMM_TSPEC_t;
/** WMM Action Category values */
typedef MLAN_PACK_START enum _IEEEtypes_ActionCategory_e {
IEEE_MGMT_ACTION_CATEGORY_SPECTRUM_MGMT = 0,
IEEE_MGMT_ACTION_CATEGORY_QOS = 1,
IEEE_MGMT_ACTION_CATEGORY_DLS = 2,
IEEE_MGMT_ACTION_CATEGORY_BLOCK_ACK = 3,
IEEE_MGMT_ACTION_CATEGORY_PUBLIC = 4,
IEEE_MGMT_ACTION_CATEGORY_RADIO_RSRC = 5,
IEEE_MGMT_ACTION_CATEGORY_FAST_BSS_TRANS = 6,
IEEE_MGMT_ACTION_CATEGORY_HT = 7,
IEEE_MGMT_ACTION_CATEGORY_WNM = 10,
IEEE_MGMT_ACTION_CATEGORY_UNPROTECT_WNM = 11,
IEEE_MGMT_ACTION_CATEGORY_WMM_TSPEC = 17
} MLAN_PACK_END IEEEtypes_ActionCategory_e;
/** WMM TSPEC operations */
typedef MLAN_PACK_START enum _IEEEtypes_WMM_Tspec_Action_e {
TSPEC_ACTION_CODE_ADDTS_REQ = 0,
TSPEC_ACTION_CODE_ADDTS_RSP = 1,
TSPEC_ACTION_CODE_DELTS = 2,
} MLAN_PACK_END IEEEtypes_WMM_Tspec_Action_e;
/** WMM TSPEC Category Action Base */
typedef MLAN_PACK_START struct {
IEEEtypes_ActionCategory_e category;
IEEEtypes_WMM_Tspec_Action_e action;
t_u8 dialogToken;
} MLAN_PACK_END IEEEtypes_WMM_Tspec_Action_Base_Tspec_t;
/** WMM TSPEC AddTS request structure */
typedef MLAN_PACK_START struct {
IEEEtypes_WMM_Tspec_Action_Base_Tspec_t tspecAct;
t_u8 statusCode;
IEEEtypes_WMM_TSPEC_t tspecIE;
/* Place holder for additional elements after the TSPEC */
t_u8 subElem[256];
} MLAN_PACK_END IEEEtypes_Action_WMM_AddTsReq_t;
/** WMM TSPEC AddTS response structure */
typedef MLAN_PACK_START struct {
IEEEtypes_WMM_Tspec_Action_Base_Tspec_t tspecAct;
t_u8 statusCode;
IEEEtypes_WMM_TSPEC_t tspecIE;
/* Place holder for additional elements after the TSPEC */
t_u8 subElem[256];
} MLAN_PACK_END IEEEtypes_Action_WMM_AddTsRsp_t;
/** WMM TSPEC DelTS structure */
typedef MLAN_PACK_START struct {
IEEEtypes_WMM_Tspec_Action_Base_Tspec_t tspecAct;
t_u8 reasonCode;
IEEEtypes_WMM_TSPEC_t tspecIE;
} MLAN_PACK_END IEEEtypes_Action_WMM_DelTs_t;
/** union of WMM TSPEC structures */
typedef MLAN_PACK_START union {
IEEEtypes_WMM_Tspec_Action_Base_Tspec_t tspecAct;
IEEEtypes_Action_WMM_AddTsReq_t addTsReq;
IEEEtypes_Action_WMM_AddTsRsp_t addTsRsp;
IEEEtypes_Action_WMM_DelTs_t delTs;
} MLAN_PACK_END IEEEtypes_Action_WMMAC_t;
/** union of WMM TSPEC & Action category */
typedef MLAN_PACK_START union {
IEEEtypes_ActionCategory_e category;
IEEEtypes_Action_WMMAC_t wmmAc;
} MLAN_PACK_END IEEEtypes_ActionFrame_t;
/** Data structure for subband set */
typedef MLAN_PACK_START struct _IEEEtypes_SubbandSet_t {
/** First channel */
t_u8 first_chan;
/** Number of channels */
t_u8 no_of_chan;
/** Maximum Tx power in dBm */
t_u8 max_tx_pwr;
} MLAN_PACK_END IEEEtypes_SubbandSet_t, *pIEEEtypes_SubbandSet_t;
#ifdef STA_SUPPORT
/** Data structure for Country IE */
typedef MLAN_PACK_START struct _IEEEtypes_CountryInfoSet_t {
/** Element ID */
t_u8 element_id;
/** Length */
t_u8 len;
/** Country code */
t_u8 country_code[COUNTRY_CODE_LEN];
/** Set of subbands */
IEEEtypes_SubbandSet_t sub_band[1];
} MLAN_PACK_END IEEEtypes_CountryInfoSet_t, *pIEEEtypes_CountryInfoSet_t;
/** Data structure for Country IE full set */
typedef MLAN_PACK_START struct _IEEEtypes_CountryInfoFullSet_t {
/** Element ID */
t_u8 element_id;
/** Length */
t_u8 len;
/** Country code */
t_u8 country_code[COUNTRY_CODE_LEN];
/** Set of subbands */
IEEEtypes_SubbandSet_t sub_band[MRVDRV_MAX_SUBBAND_802_11D];
} MLAN_PACK_END IEEEtypes_CountryInfoFullSet_t,
*pIEEEtypes_CountryInfoFullSet_t;
#endif /* STA_SUPPORT */
/** HT Capabilities Data */
typedef struct MLAN_PACK_START _HTCap_t {
/** HT Capabilities Info field */
t_u16 ht_cap_info;
/** A-MPDU Parameters field */
t_u8 ampdu_param;
/** Supported MCS Set field */
t_u8 supported_mcs_set[16];
/** HT Extended Capabilities field */
t_u16 ht_ext_cap;
/** Transmit Beamforming Capabilities field */
t_u32 tx_bf_cap;
/** Antenna Selection Capability field */
t_u8 asel;
} MLAN_PACK_END HTCap_t, *pHTCap_t;
/** HT Information Data */
typedef struct MLAN_PACK_START _HTInfo_t {
/** Primary channel */
t_u8 pri_chan;
/** Field 2 */
t_u8 field2;
/** Field 3 */
t_u16 field3;
/** Field 4 */
t_u16 field4;
/** Bitmap indicating MCSs supported by all HT STAs in the BSS */
t_u8 basic_mcs_set[16];
} MLAN_PACK_END HTInfo_t, *pHTInfo_t;
/** 20/40 BSS Coexistence Data */
typedef struct MLAN_PACK_START _BSSCo2040_t {
/** 20/40 BSS Coexistence value */
t_u8 bss_co_2040_value;
} MLAN_PACK_END BSSCo2040_t, *pBSSCo2040_t;
#ifdef BIG_ENDIAN_SUPPORT
/** Extended Capabilities Data */
typedef struct MLAN_PACK_START _ExtCap_t {
/** Extended Capabilities value */
t_u8 rsvdBit63:1; /* bit 63 */
t_u8 OperModeNtf:1; /* bit 62 */
t_u8 TDLSWildBandwidth:1; /* bit 61 */
t_u8 rsvdBit60:1; /* bit 60 */
t_u8 rsvdBit59:1; /* bit 59 */
t_u8 rsvdBit58:1; /* bit 58 */
t_u8 rsvdBit57:1; /* bit 57 */
t_u8 rsvdBit56:1; /* bit 56 */
t_u8 rsvdBit55:1; /* bit 55 */
t_u8 rsvdBit54:1; /* bit 54 */
t_u8 rsvdBit53:1; /* bit 53 */
t_u8 rsvdBit52:1; /* bit 52 */
t_u8 rsvdBit51:1; /* bit 51 */
t_u8 rsvdBit50:1; /* bit 50 */
t_u8 rsvdBit49:1; /* bit 49 */
t_u8 rsvdBit48:1; /* bit 48 */
t_u8 rsvdBit47:1; /* bit 47 */
t_u8 rsvdBit46:1; /* bit 46 */
t_u8 rsvdBit45:1; /* bit 45 */
t_u8 rsvdBit44:1; /* bit 44 */
t_u8 rsvdBit43:1; /* bit 43 */
t_u8 rsvdBit42:1; /* bit 42 */
t_u8 rsvdBit41:1; /* bit 41 */
t_u8 rsvdBit40:1; /* bit 40 */
t_u8 TDLSChlSwitchProhib:1; /* bit 39 */
t_u8 TDLSProhibited:1; /* bit 38 */
t_u8 TDLSSupport:1; /* bit 37 */
t_u8 MSGCF_Capa:1; /* bit 36 */
t_u8 Reserved35:1; /* bit 35 */
t_u8 SSPN_Interface:1; /* bit 34 */
t_u8 EBR:1; /* bit 33 */
t_u8 Qos_Map:1; /* bit 32 */
t_u8 Interworking:1; /* bit 31 */
t_u8 TDLSChannelSwitching:1; /* bit 30 */
t_u8 TDLSPeerPSMSupport:1; /* bit 29 */
t_u8 TDLSPeerUAPSDSupport:1; /* bit 28 */
t_u8 UTC:1; /* bit 27 */
t_u8 DMS:1; /* bit 26 */
t_u8 SSID_List:1; /* bit 25 */
t_u8 ChannelUsage:1; /* bit 24 */
t_u8 TimingMeasurement:1; /* bit 23 */
t_u8 MultipleBSSID:1; /* bit 22 */
t_u8 AC_StationCount:1; /* bit 21 */
t_u8 QoSTrafficCap:1; /* bit 20 */
t_u8 BSS_Transition:1; /* bit 19 */
t_u8 TIM_Broadcast:1; /* bit 18 */
t_u8 WNM_Sleep:1; /* bit 17 */
t_u8 TFS:1; /* bit 16 */
t_u8 GeospatialLocation:1; /* bit 15 */
t_u8 CivicLocation:1; /* bit 14 */
t_u8 CollocatedIntf:1; /* bit 13 */
t_u8 ProxyARPService:1; /* bit 12 */
t_u8 FMS:1; /* bit 11 */
t_u8 LocationTracking:1; /* bit 10 */
t_u8 MulticastDiagnostics:1; /* bit 9 */
t_u8 Diagnostics:1; /* bit 8 */
t_u8 Event:1; /* bit 7 */
t_u8 SPSMP_Support:1; /* bit 6 */
t_u8 Reserved5:1; /* bit 5 */
t_u8 PSMP_Capable:1; /* bit 4 */
t_u8 RejectUnadmFrame:1; /* bit 3 */
t_u8 ExtChanSwitching:1; /* bit 2 */
t_u8 Reserved1:1; /* bit 1 */
t_u8 BSS_CoexistSupport:1; /* bit 0 */
} MLAN_PACK_END ExtCap_t, *pExtCap_t;
#else
/** Extended Capabilities Data */
typedef struct MLAN_PACK_START _ExtCap_t {
/** Extended Capabilities value */
t_u8 BSS_CoexistSupport:1; /* bit 0 */
t_u8 Reserved1:1; /* bit 1 */
t_u8 ExtChanSwitching:1; /* bit 2 */
t_u8 RejectUnadmFrame:1; /* bit 3 */
t_u8 PSMP_Capable:1; /* bit 4 */
t_u8 Reserved5:1; /* bit 5 */
t_u8 SPSMP_Support:1; /* bit 6 */
t_u8 Event:1; /* bit 7 */
t_u8 Diagnostics:1; /* bit 8 */
t_u8 MulticastDiagnostics:1; /* bit 9 */
t_u8 LocationTracking:1; /* bit 10 */
t_u8 FMS:1; /* bit 11 */
t_u8 ProxyARPService:1; /* bit 12 */
t_u8 CollocatedIntf:1; /* bit 13 */
t_u8 CivicLocation:1; /* bit 14 */
t_u8 GeospatialLocation:1; /* bit 15 */
t_u8 TFS:1; /* bit 16 */
t_u8 WNM_Sleep:1; /* bit 17 */
t_u8 TIM_Broadcast:1; /* bit 18 */
t_u8 BSS_Transition:1; /* bit 19 */
t_u8 QoSTrafficCap:1; /* bit 20 */
t_u8 AC_StationCount:1; /* bit 21 */
t_u8 MultipleBSSID:1; /* bit 22 */
t_u8 TimingMeasurement:1; /* bit 23 */
t_u8 ChannelUsage:1; /* bit 24 */
t_u8 SSID_List:1; /* bit 25 */
t_u8 DMS:1; /* bit 26 */
t_u8 UTC:1; /* bit 27 */
t_u8 TDLSPeerUAPSDSupport:1; /* bit 28 */
t_u8 TDLSPeerPSMSupport:1; /* bit 29 */
t_u8 TDLSChannelSwitching:1; /* bit 30 */
t_u8 Interworking:1; /* bit 31 */
t_u8 Qos_Map:1; /* bit 32 */
t_u8 EBR:1; /* bit 33 */
t_u8 SSPN_Interface:1; /* bit 34 */
t_u8 Reserved35:1; /* bit 35 */
t_u8 MSGCF_Capa:1; /* bit 36 */
t_u8 TDLSSupport:1; /* bit 37 */
t_u8 TDLSProhibited:1; /* bit 38 */
t_u8 TDLSChlSwitchProhib:1; /* bit 39 */
t_u8 rsvdBit40:1; /* bit 40 */
t_u8 rsvdBit41:1; /* bit 41 */
t_u8 rsvdBit42:1; /* bit 42 */
t_u8 rsvdBit43:1; /* bit 43 */
t_u8 rsvdBit44:1; /* bit 44 */
t_u8 rsvdBit45:1; /* bit 45 */
t_u8 rsvdBit46:1; /* bit 46 */
t_u8 rsvdBit47:1; /* bit 47 */
t_u8 rsvdBit48:1; /* bit 48 */
t_u8 rsvdBit49:1; /* bit 49 */
t_u8 rsvdBit50:1; /* bit 50 */
t_u8 rsvdBit51:1; /* bit 51 */
t_u8 rsvdBit52:1; /* bit 52 */
t_u8 rsvdBit53:1; /* bit 53 */
t_u8 rsvdBit54:1; /* bit 54 */
t_u8 rsvdBit55:1; /* bit 55 */
t_u8 rsvdBit56:1; /* bit 56 */
t_u8 rsvdBit57:1; /* bit 57 */
t_u8 rsvdBit58:1; /* bit 58 */
t_u8 rsvdBit59:1; /* bit 59 */
t_u8 rsvdBit60:1; /* bit 60 */
t_u8 TDLSWildBandwidth:1; /* bit 61 */
t_u8 OperModeNtf:1; /* bit 62 */
t_u8 rsvdBit63:1; /* bit 63 */
} MLAN_PACK_END ExtCap_t, *pExtCap_t;
#endif
/** Overlapping BSS Scan Parameters Data */
typedef struct MLAN_PACK_START _OverlapBSSScanParam_t {
/** OBSS Scan Passive Dwell in milliseconds */
t_u16 obss_scan_passive_dwell;
/** OBSS Scan Active Dwell in milliseconds */
t_u16 obss_scan_active_dwell;
/** BSS Channel Width Trigger Scan Interval in seconds */
t_u16 bss_chan_width_trigger_scan_int;
/** OBSS Scan Passive Total Per Channel */
t_u16 obss_scan_passive_total;
/** OBSS Scan Active Total Per Channel */
t_u16 obss_scan_active_total;
/** BSS Width Channel Transition Delay Factor */
t_u16 bss_width_chan_trans_delay;
/** OBSS Scan Activity Threshold */
t_u16 obss_scan_active_threshold;
} MLAN_PACK_END OBSSScanParam_t, *pOBSSScanParam_t;
/** HT Capabilities IE */
typedef MLAN_PACK_START struct _IEEEtypes_HTCap_t {
/** Generic IE header */
IEEEtypes_Header_t ieee_hdr;
/** HTCap struct */
HTCap_t ht_cap;
} MLAN_PACK_END IEEEtypes_HTCap_t, *pIEEEtypes_HTCap_t;
/** HT Information IE */
typedef MLAN_PACK_START struct _IEEEtypes_HTInfo_t {
/** Generic IE header */
IEEEtypes_Header_t ieee_hdr;
/** HTInfo struct */
HTInfo_t ht_info;
} MLAN_PACK_END IEEEtypes_HTInfo_t, *pIEEEtypes_HTInfo_t;
/** 20/40 BSS Coexistence IE */
typedef MLAN_PACK_START struct _IEEEtypes_2040BSSCo_t {
/** Generic IE header */
IEEEtypes_Header_t ieee_hdr;
/** BSSCo2040_t struct */
BSSCo2040_t bss_co_2040;
} MLAN_PACK_END IEEEtypes_2040BSSCo_t, *pIEEEtypes_2040BSSCo_t;
/** Extended Capabilities IE */
typedef MLAN_PACK_START struct _IEEEtypes_ExtCap_t {
/** Generic IE header */
IEEEtypes_Header_t ieee_hdr;
/** ExtCap_t struct */
ExtCap_t ext_cap;
} MLAN_PACK_END IEEEtypes_ExtCap_t, *pIEEEtypes_ExtCap_t;
/** Overlapping BSS Scan Parameters IE */
typedef MLAN_PACK_START struct _IEEEtypes_OverlapBSSScanParam_t {
/** Generic IE header */
IEEEtypes_Header_t ieee_hdr;
/** OBSSScanParam_t struct */
OBSSScanParam_t obss_scan_param;
} MLAN_PACK_END IEEEtypes_OverlapBSSScanParam_t,
*pIEEEtypes_OverlapBSSScanParam_t;
/** VHT MCS rate set field, refer to 802.11ac */
typedef MLAN_PACK_START struct _VHT_MCS_set {
t_u16 rx_mcs_map;
t_u16 rx_max_rate; /* bit 29-31 reserved */
t_u16 tx_mcs_map;
t_u16 tx_max_rate; /* bit 61-63 reserved */
} MLAN_PACK_END VHT_MCS_set_t, *pVHT_MCS_set_t;
/** VHT Capabilities info field, reference 802.11ac D1.4 p89 */
typedef MLAN_PACK_START struct _VHT_capa {
#if 0
#ifdef BIG_ENDIAN_SUPPORT
t_u8 mpdu_max_len:2;
t_u8 chan_width:2;
t_u8 rx_LDPC:1;
t_u8 sgi_80:1;
t_u8 sgi_160:1;
t_u8 tx_STBC:1;
t_u8 rx_STBC:3;
t_u8 SU_beamformer_capa:1;
t_u8 SU_beamformee_capa:1;
t_u8 beamformer_ante_num:3;
t_u8 sounding_dim_num:3;
t_u8 MU_beamformer_capa:1;
t_u8 MU_beamformee_capa:1;
t_u8 VHT_TXOP_ps:1;
t_u8 HTC_VHT_capa:1;
t_u8 max_ampdu_len:3;
t_u8 link_apapt_capa:2;
t_u8 reserved_1:4;
#else
t_u8 reserved_1:4;
t_u8 link_apapt_capa:2;
t_u8 max_ampdu_len:3;
t_u8 HTC_VHT_capa:1;
t_u8 VHT_TXOP_ps:1;
t_u8 MU_beamformee_capa:1;
t_u8 MU_beamformer_capa:1;
t_u8 sounding_dim_num:3;
t_u8 beamformer_ante_num:3;
t_u8 SU_beamformee_capa:1;
t_u8 SU_beamformer_capa:1;
t_u8 rx_STBC:3;
t_u8 tx_STBC:1;
t_u8 sgi_160:1;
t_u8 sgi_80:1;
t_u8 rx_LDPC:1;
t_u8 chan_width:2;
t_u8 mpdu_max_len:2;
#endif /* BIG_ENDIAN_SUPPORT */
#endif
t_u32 vht_cap_info;
VHT_MCS_set_t mcs_sets;
} MLAN_PACK_END VHT_capa_t, *pVHT_capa_t;
/** VHT Capabilities IE */
typedef MLAN_PACK_START struct _IEEEtypes_VHTCap_t {
/** Generic IE header */
IEEEtypes_Header_t ieee_hdr;
VHT_capa_t vht_cap;
} MLAN_PACK_END IEEEtypes_VHTCap_t, *pIEEEtypes_VHTCap_t;
#define VHT_CAP_CHWD_80MHZ 0
#define VHT_CAP_CHWD_160MHZ 1
#define VHT_CAP_CHWD_80_80MHZ 2
/** VHT Operations IE */
typedef MLAN_PACK_START struct _IEEEtypes_VHTOprat_t {
/** Generic IE header */
IEEEtypes_Header_t ieee_hdr;
t_u8 chan_width;
t_u8 chan_center_freq_1;
t_u8 chan_center_freq_2;
/** Basic MCS set map, each 2 bits stands for a Nss */
t_u16 basic_MCS_map;
} MLAN_PACK_END IEEEtypes_VHTOprat_t, *pIEEEtypes_VHTOprat_t;
#define VHT_OPER_CHWD_20_40MHZ 0
#define VHT_OPER_CHWD_80MHZ 1
#define VHT_OPER_CHWD_160MHZ 2
#define VHT_OPER_CHWD_80_80MHZ 3
/** VHT Transmit Power Envelope IE */
typedef MLAN_PACK_START struct _IEEEtypes_VHTtxpower_t {
/** Generic IE header */
IEEEtypes_Header_t ieee_hdr;
t_u8 max_tx_power;
t_u8 chan_center_freq;
t_u8 chan_width;
} MLAN_PACK_END IEEEtypes_VHTtxpower_t, *pIEEEtypes_VHTtxpower_t;
/** Extended Power Constraint IE */
typedef MLAN_PACK_START struct _IEEEtypes_ExtPwerCons_t {
/** Generic IE header */
IEEEtypes_Header_t ieee_hdr;
/** channel width */
t_u8 chan_width;
/** local power constraint */
t_u8 local_power_cons;
} MLAN_PACK_END IEEEtypes_ExtPwerCons_t, *pIEEEtypes_ExtPwerCons_t;
/** Extended BSS Load IE */
typedef MLAN_PACK_START struct _IEEEtypes_ExtBSSload_t {
/** Generic IE header */
IEEEtypes_Header_t ieee_hdr;
t_u8 MU_MIMO_capa_count;
t_u8 stream_underutilization;
t_u8 VHT40_util;
t_u8 VHT80_util;
t_u8 VHT160_util;
} MLAN_PACK_END IEEEtypes_ExtBSSload_t, *pIEEEtypes_ExtBSSload_t;
/** Quiet Channel IE */
typedef MLAN_PACK_START struct _IEEEtypes_QuietChan_t {
/** Generic IE header */
IEEEtypes_Header_t ieee_hdr;
t_u8 AP_quiet_mode;
t_u8 quiet_count;
t_u8 quiet_period;
t_u16 quiet_dur;
t_u16 quiet_offset;
} MLAN_PACK_END IEEEtypes_QuietChan_t, *pIEEEtypes_QuietChan_t;
/** Wide Bandwidth Channel Switch IE */
typedef MLAN_PACK_START struct _IEEEtypes_BWSwitch_t {
/** Generic IE header */
IEEEtypes_Header_t ieee_hdr;
t_u8 new_chan_width;
t_u8 new_chan_center_freq_1;
t_u8 new_chan_center_freq_2;
} MLAN_PACK_END IEEEtypes_BWSwitch_t, *pIEEEtypes_BWSwitch_t;
/** AID IE */
typedef MLAN_PACK_START struct _IEEEtypes_AID_t {
/** Generic IE header */
IEEEtypes_Header_t ieee_hdr;
/** AID number */
t_u16 AID;
} MLAN_PACK_END IEEEtypes_AID_t, *pIEEEtypes_AID_t;
/** Operating Mode Notificaton IE */
typedef MLAN_PACK_START struct _IEEEtypes_OperModeNtf_t {
/** Generic IE header */
IEEEtypes_Header_t ieee_hdr;
/** Operating Mode */
t_u8 oper_mode;
} MLAN_PACK_END IEEEtypes_OperModeNtf_t, *pIEEEtypes_OperModeNtf_t;
/** Maximum number of subbands in the IEEEtypes_SupportedChannels_t structure */
#define WLAN_11H_MAX_SUBBANDS 5
/** Maximum number of DFS channels configured in IEEEtypes_IBSS_DFS_t */
#define WLAN_11H_MAX_IBSS_DFS_CHANNELS 25
/** IEEE Power Constraint element (7.3.2.15) */
typedef MLAN_PACK_START struct {
t_u8 element_id; /**< IEEE Element ID = 32 */
t_u8 len; /**< Element length after id and len */
t_u8 local_constraint;
/**< Local power constraint applied to 11d chan info */
} MLAN_PACK_END IEEEtypes_PowerConstraint_t;
/** IEEE Power Capability element (7.3.2.16) */
typedef MLAN_PACK_START struct {
t_u8 element_id; /**< IEEE Element ID = 33 */
t_u8 len; /**< Element length after id and len */
t_s8 min_tx_power_capability;
/**< Minimum Transmit power (dBm) */
t_s8 max_tx_power_capability;
/**< Maximum Transmit power (dBm) */
} MLAN_PACK_END IEEEtypes_PowerCapability_t;
/** IEEE TPC Report element (7.3.2.18) */
typedef MLAN_PACK_START struct {
t_u8 element_id;/**< IEEE Element ID = 35 */
t_u8 len; /**< Element length after id and len */
t_s8 tx_power; /**< Max power used to transmit the TPC Report frame (dBm) */
t_s8 link_margin;
/**< Link margin when TPC Request received (dB) */
} MLAN_PACK_END IEEEtypes_TPCReport_t;
/* IEEE Supported Channel sub-band description (7.3.2.19) */
/**
* Sub-band description used in the supported channels element.
*/
typedef MLAN_PACK_START struct {
t_u8 start_chan;/**< Starting channel in the subband */
t_u8 num_chans; /**< Number of channels in the subband */
} MLAN_PACK_END IEEEtypes_SupportChan_Subband_t;
/* IEEE Supported Channel element (7.3.2.19) */
/**
* Sent in association requests. Details the sub-bands and number
* of channels supported in each subband
*/
typedef MLAN_PACK_START struct {
t_u8 element_id;/**< IEEE Element ID = 36 */
t_u8 len; /**< Element length after id and len */
/** Configured sub-bands information in the element */
IEEEtypes_SupportChan_Subband_t subband[WLAN_11H_MAX_SUBBANDS];
} MLAN_PACK_END IEEEtypes_SupportedChannels_t;
/* IEEE Channel Switch Announcement Element (7.3.2.20) */
/**
* Provided in beacons and probe responses. Used to advertise when
* and to which channel it is changing to. Only starting STAs in
* an IBSS and APs are allowed to originate a chan switch element.
*/
typedef MLAN_PACK_START struct {
t_u8 element_id; /**< IEEE Element ID = 37 */
t_u8 len; /**< Element length after id and len */
t_u8 chan_switch_mode; /**< STA should not transmit any frames if 1 */
t_u8 new_channel_num; /**< Channel # that AP/IBSS is moving to */
t_u8 chan_switch_count; /**< # of TBTTs before channel switch */
} MLAN_PACK_END IEEEtypes_ChanSwitchAnn_t;
/* IEEE Wide Bandwidth Channel Switch Element */
/**
* Provided in beacons and probe responses. Used to advertise when
* and to which channel it is changing to. Only starting STAs in
* an IBSS and APs are allowed to originate a wide bandwidth chan switch element.
*/
typedef MLAN_PACK_START struct {
/** Generic IE header IEEE Element ID = 194*/
IEEEtypes_Header_t ieee_hdr;
t_u8 new_channel_width;
t_u8 new_channel_center_freq0;
t_u8 new_channel_center_freq1;
} MLAN_PACK_END IEEEtypes_WideBWChanSwitch_t;
/* IEEE VHT Transmit Power Envelope Element */
/**
* Provided in beacons and probe responses. Used to advertise the max
* TX power in sepeate bandwidth and as a sub element of Channel Switch
* Wrapper IE.
*/
typedef MLAN_PACK_START struct {
/** Generic IE header IEEE Element ID = 195*/
IEEEtypes_Header_t ieee_hdr;
t_u8 tpc_info; /**< Transmit Power Information>*/
t_u8 local_max_tp_20mhz;/**< Local Maximum Transmit Power for 20 MHZ>*/
t_u8 local_max_tp_40mhz;/**< Local Maximum Transmit Power for 40 MHZ>*/
t_u8 local_max_tp_80mhz;/**< Local Maximum Transmit Power for 80 MHZ>*/
} MLAN_PACK_END IEEEtypes_VhtTpcEnvelope_t;
/* IEEE Quiet Period Element (7.3.2.23) */
/**
* Provided in beacons and probe responses. Indicates times during
* which the STA should not be transmitting data. Only starting STAs in
* an IBSS and APs are allowed to originate a quiet element.
*/
typedef MLAN_PACK_START struct {
t_u8 element_id; /**< IEEE Element ID = 40 */
t_u8 len; /**< Element length after id and len */
t_u8 quiet_count; /**< Number of TBTTs until beacon with the quiet period */
t_u8 quiet_period; /**< Regular quiet period, # of TBTTS between periods */
t_u16 quiet_duration;
/**< Duration of the quiet period in TUs */
t_u16 quiet_offset; /**< Offset in TUs from the TBTT for the quiet period */
} MLAN_PACK_END IEEEtypes_Quiet_t;
/**
*** @brief Map octet of the basic measurement report (7.3.2.22.1)
**/
typedef MLAN_PACK_START struct {
#ifdef BIG_ENDIAN_SUPPORT
/**< Reserved */
t_u8 rsvd5_7:3;
/**< Channel is unmeasured */
t_u8 unmeasured:1;
/**< Radar detected on channel */
t_u8 radar:1;
/**< Unidentified signal found on channel */
t_u8 unidentified_sig:1;
/**< OFDM preamble detected on channel */
t_u8 ofdm_preamble:1;
/**< At least one valid MPDU received on channel */
t_u8 bss:1;
#else
/**< At least one valid MPDU received on channel */
t_u8 bss:1;
/**< OFDM preamble detected on channel */
t_u8 ofdm_preamble:1;
/**< Unidentified signal found on channel */
t_u8 unidentified_sig:1;
/**< Radar detected on channel */
t_u8 radar:1;
/**< Channel is unmeasured */
t_u8 unmeasured:1;
/**< Reserved */
t_u8 rsvd5_7:3;
#endif /* BIG_ENDIAN_SUPPORT */
} MLAN_PACK_END MeasRptBasicMap_t;
/* IEEE DFS Channel Map field (7.3.2.24) */
/**
* Used to list supported channels and provide a octet "map" field which
* contains a basic measurement report for that channel in the
* IEEEtypes_IBSS_DFS_t element
*/
typedef MLAN_PACK_START struct {
t_u8 channel_number; /**< Channel number */
MeasRptBasicMap_t rpt_map;
/**< Basic measurement report for the channel */
} MLAN_PACK_END IEEEtypes_ChannelMap_t;
/* IEEE IBSS DFS Element (7.3.2.24) */
/**
* IBSS DFS element included in ad hoc beacons and probe responses.
* Provides information regarding the IBSS DFS Owner as well as the
* originating STAs supported channels and basic measurement results.
*/
typedef MLAN_PACK_START struct {
t_u8 element_id; /**< IEEE Element ID = 41 */
t_u8 len; /**< Element length after id and len */
t_u8 dfs_owner[MLAN_MAC_ADDR_LENGTH];
/**< DFS Owner STA Address */
t_u8 dfs_recovery_interval; /**< DFS Recovery time in TBTTs */
/** Variable length map field, one Map entry for each supported channel */
IEEEtypes_ChannelMap_t channel_map[WLAN_11H_MAX_IBSS_DFS_CHANNELS];
} MLAN_PACK_END IEEEtypes_IBSS_DFS_t;
/* 802.11h BSS information kept for each BSSID received in scan results */
/**
* IEEE BSS information needed from scan results for later processing in
* join commands
*/
typedef struct {
t_u8 sensed_11h;
/**< Capability bit set or 11h IE found in this BSS */
IEEEtypes_PowerConstraint_t power_constraint;
/**< Power Constraint IE */
IEEEtypes_PowerCapability_t power_capability;
/**< Power Capability IE */
IEEEtypes_TPCReport_t tpc_report; /**< TPC Report IE */
IEEEtypes_ChanSwitchAnn_t chan_switch_ann;/**< Channel Switch Announcement IE */
IEEEtypes_Quiet_t quiet; /**< Quiet IE */
IEEEtypes_IBSS_DFS_t ibss_dfs; /**< IBSS DFS Element IE */
} wlan_11h_bss_info_t;
/** Ethernet packet type for TDLS */
#define MLAN_ETHER_PKT_TYPE_TDLS_ACTION (0x890D)
/*802.11z TDLS action frame type and strcuct */
typedef MLAN_PACK_START struct {
/* link indentifier ie =101 */
t_u8 element_id;
/* len = 18 */
t_u8 len;
/** bssid */
t_u8 bssid[MLAN_MAC_ADDR_LENGTH];
/** init sta mac address */
t_u8 init_sta[MLAN_MAC_ADDR_LENGTH];
/** resp sta mac address */
t_u8 resp_sta[MLAN_MAC_ADDR_LENGTH];
} MLAN_PACK_END IEEEtypes_tdls_linkie;
/** action code for tdls setup request */
#define TDLS_SETUP_REQUEST 0
/** action code for tdls setup response */
#define TDLS_SETUP_RESPONSE 1
/** action code for tdls setup confirm */
#define TDLS_SETUP_CONFIRM 2
/** action code for tdls tear down */
#define TDLS_TEARDOWN 3
/** action code for tdls traffic indication */
#define TDLS_PEER_TRAFFIC_INDICATION 4
/** action code for tdls channel switch request */
#define TDLS_CHANNEL_SWITCH_REQUEST 5
/** action code for tdls channel switch response */
#define TDLS_CHANNEL_SWITCH_RESPONSE 6
/** action code for tdls psm request */
#define TDLS_PEER_PSM_REQUEST 7
/** action code for tdls psm response */
#define TDLS_PEER_PSM_RESPONSE 8
/** action code for tdls traffic response */
#define TDLS_PEER_TRAFFIC_RESPONSE 9
/** action code for tdls discovery request */
#define TDLS_DISCOVERY_REQUEST 10
/** action code for TDLS discovery response */
#define TDLS_DISCOVERY_RESPONSE 14
#ifdef STA_SUPPORT
/** Macro for maximum size of scan response buffer */
#define MAX_SCAN_RSP_BUF (16 * 1024)
/** Maximum number of channels that can be sent in user scan config */
#define WLAN_USER_SCAN_CHAN_MAX 50
/** Maximum length of SSID list */
#define MRVDRV_MAX_SSID_LIST_LENGTH 10
/** Scan all the channels in specified band */
#define BAND_SPECIFIED 0x80
/**
* IOCTL SSID List sub-structure sent in wlan_ioctl_user_scan_cfg
*
* Used to specify SSID specific filters as well as SSID pattern matching
* filters for scan result processing in firmware.
*/
typedef MLAN_PACK_START struct _wlan_user_scan_ssid {
/** SSID */
t_u8 ssid[MLAN_MAX_SSID_LENGTH + 1];
/** Maximum length of SSID */
t_u8 max_len;
} MLAN_PACK_END wlan_user_scan_ssid;
/**
* @brief IOCTL channel sub-structure sent in wlan_ioctl_user_scan_cfg
*
* Multiple instances of this structure are included in the IOCTL command
* to configure a instance of a scan on the specific channel.
*/
typedef MLAN_PACK_START struct _wlan_user_scan_chan {
/** Channel Number to scan */
t_u8 chan_number;
/** Radio type: 'B/G' Band = 0, 'A' Band = 1 */
t_u8 radio_type;
/** Scan type: Active = 1, Passive = 2 */
t_u8 scan_type;
/** Reserved */
t_u8 reserved;
/** Scan duration in milliseconds; if 0 default used */
t_u32 scan_time;
} MLAN_PACK_END wlan_user_scan_chan;
/** channel statictics */
typedef MLAN_PACK_START struct _ChanStatistics_t {
/** channle number */
t_u8 chan_num;
/** band info */
t_u8 bandconfig;
/** flags */
t_u8 flags;
/** noise */
t_s8 noise;
/** total network */
t_u16 total_networks;
/** scan duration */
t_u16 cca_scan_duration;
/** busy duration */
t_u16 cca_busy_duration;
} MLAN_PACK_END ChanStatistics_t;
/**
* Input structure to configure an immediate scan cmd to firmware
*
* Specifies a number of parameters to be used in general for the scan
* as well as a channel list (wlan_user_scan_chan) for each scan period
* desired.
*/
typedef MLAN_PACK_START struct {
/**
* Flag set to keep the previous scan table intact
*
* If set, the scan results will accumulate, replacing any previous
* matched entries for a BSS with the new scan data
*/
t_u8 keep_previous_scan;
/**
* BSS mode to be sent in the firmware command
*
* Field can be used to restrict the types of networks returned in the
* scan. Valid settings are:
*
* - MLAN_SCAN_MODE_BSS (infrastructure)
* - MLAN_SCAN_MODE_IBSS (adhoc)
* - MLAN_SCAN_MODE_ANY (unrestricted, adhoc and infrastructure)
*/
t_u8 bss_mode;
/**
* Configure the number of probe requests for active chan scans
*/
t_u8 num_probes;
/**
* @brief Reserved
*/
t_u8 reserved;
/**
* @brief BSSID filter sent in the firmware command to limit the results
*/
t_u8 specific_bssid[MLAN_MAC_ADDR_LENGTH];
/**
* SSID filter list used in the to limit the scan results
*/
wlan_user_scan_ssid ssid_list[MRVDRV_MAX_SSID_LIST_LENGTH];
/**
* Variable number (fixed maximum) of channels to scan up
*/
wlan_user_scan_chan chan_list[WLAN_USER_SCAN_CHAN_MAX];
/** scan channel gap */
t_u16 scan_chan_gap;
} MLAN_PACK_END wlan_user_scan_cfg;
/** Default scan interval in millisecond*/
#define DEFAULT_BGSCAN_INTERVAL 30000
/** action get all, except pps/uapsd config */
#define BG_SCAN_ACT_GET 0x0000
/** action set all, except pps/uapsd config */
#define BG_SCAN_ACT_SET 0x0001
/** action get pps/uapsd config */
#define BG_SCAN_ACT_GET_PPS_UAPSD 0x0100
/** action set pps/uapsd config */
#define BG_SCAN_ACT_SET_PPS_UAPSD 0x0101
/** action set all */
#define BG_SCAN_ACT_SET_ALL 0xff01
/** ssid match */
#define BG_SCAN_SSID_MATCH 0x0001
/** ssid match and RSSI exceeded */
#define BG_SCAN_SSID_RSSI_MATCH 0x0004
/** Maximum number of channels that can be sent in bg scan config */
#define WLAN_BG_SCAN_CHAN_MAX 38
/**
* Input structure to configure bs scan cmd to firmware
*/
typedef MLAN_PACK_START struct {
/** action */
t_u16 action;
/** enable/disable */
t_u8 enable;
/** BSS type:
* MLAN_SCAN_MODE_BSS (infrastructure)
* MLAN_SCAN_MODE_IBSS (adhoc)
* MLAN_SCAN_MODE_ANY (unrestricted, adhoc and infrastructure)
*/
t_u8 bss_type;
/** number of channel scanned during each scan */
t_u8 chan_per_scan;
/** interval between consecutive scan */
t_u32 scan_interval;
/** bit 0: ssid match bit 1: ssid match and SNR exceeded
* bit 2: ssid match and RSSI exceeded
* bit 31: wait for all channel scan to complete to report scan result
*/
t_u32 report_condition;
/* Configure the number of probe requests for active chan scans */
t_u8 num_probes;
/** RSSI threshold */
t_u8 rssi_threshold;
/** SNR threshold */
t_u8 snr_threshold;
/** repeat count */
t_u16 repeat_count;
/** start later flag */
t_u16 start_later;
/** SSID filter list used in the to limit the scan results */
wlan_user_scan_ssid ssid_list[MRVDRV_MAX_SSID_LIST_LENGTH];
/** Variable number (fixed maximum) of channels to scan up */
wlan_user_scan_chan chan_list[WLAN_BG_SCAN_CHAN_MAX];
/** scan channel gap */
t_u16 scan_chan_gap;
} MLAN_PACK_END wlan_bgscan_cfg;
#endif /* STA_SUPPORT */
#ifdef PRAGMA_PACK
#pragma pack(pop)
#endif
/** BSSDescriptor_t
* Structure used to store information for beacon/probe response
*/
typedef struct _BSSDescriptor_t {
/** MAC address */
mlan_802_11_mac_addr mac_address;
/** SSID */
mlan_802_11_ssid ssid;
/** WEP encryption requirement */
t_u32 privacy;
/** Receive signal strength in dBm */
t_s32 rssi;
/** Channel */
t_u32 channel;
/** Freq */
t_u32 freq;
/** Beacon period */
t_u16 beacon_period;
/** ATIM window */
t_u32 atim_window;
/** ERP flags */
t_u8 erp_flags;
/** Type of network in use */
WLAN_802_11_NETWORK_TYPE network_type_use;
/** Network infrastructure mode */
t_u32 bss_mode;
/** Network supported rates */
WLAN_802_11_RATES supported_rates;
/** Supported data rates */
t_u8 data_rates[WLAN_SUPPORTED_RATES];
/** Network band.
* BAND_B(0x01): 'b' band
* BAND_G(0x02): 'g' band
* BAND_A(0X04): 'a' band
*/
t_u16 bss_band;
/** TSF timestamp from the current firmware TSF */
t_u64 network_tsf;
/** TSF value included in the beacon/probe response */
t_u8 time_stamp[8];
/** PHY parameter set */
IEEEtypes_PhyParamSet_t phy_param_set;
/** SS parameter set */
IEEEtypes_SsParamSet_t ss_param_set;
/** Capability information */
IEEEtypes_CapInfo_t cap_info;
/** WMM IE */
IEEEtypes_WmmParameter_t wmm_ie;
/** 802.11h BSS information */
wlan_11h_bss_info_t wlan_11h_bss_info;
/** Indicate disabling 11n when associate with AP */
t_u8 disable_11n;
/** 802.11n BSS information */
/** HT Capabilities IE */
IEEEtypes_HTCap_t *pht_cap;
/** HT Capabilities Offset */
t_u16 ht_cap_offset;
/** HT Information IE */
IEEEtypes_HTInfo_t *pht_info;
/** HT Information Offset */
t_u16 ht_info_offset;
/** 20/40 BSS Coexistence IE */
IEEEtypes_2040BSSCo_t *pbss_co_2040;
/** 20/40 BSS Coexistence Offset */
t_u16 bss_co_2040_offset;
/** Extended Capabilities IE */
IEEEtypes_ExtCap_t *pext_cap;
/** Extended Capabilities Offset */
t_u16 ext_cap_offset;
/** Overlapping BSS Scan Parameters IE */
IEEEtypes_OverlapBSSScanParam_t *poverlap_bss_scan_param;
/** Overlapping BSS Scan Parameters Offset */
t_u16 overlap_bss_offset;
/** VHT Capabilities IE */
IEEEtypes_VHTCap_t *pvht_cap;
/** VHT Capabilities IE offset */
t_u16 vht_cap_offset;
/** VHT Operations IE */
IEEEtypes_VHTOprat_t *pvht_oprat;
/** VHT Operations IE offset */
t_u16 vht_oprat_offset;
/** VHT Transmit Power Envelope IE */
IEEEtypes_VHTtxpower_t *pvht_txpower;
/** VHT Transmit Power Envelope IE offset */
t_u16 vht_txpower_offset;
/** Extended Power Constraint IE */
IEEEtypes_ExtPwerCons_t *pext_pwer;
/** Extended Power Constraint IE offset */
t_u16 ext_pwer_offset;
/** Extended BSS Load IE */
IEEEtypes_ExtBSSload_t *pext_bssload;
/** Extended BSS Load IE offset */
t_u16 ext_bssload_offset;
/** Quiet Channel IE */
IEEEtypes_QuietChan_t *pquiet_chan;
/** Quiet Channel IE offset */
t_u16 quiet_chan_offset;
/** Operating Mode Notification IE */
IEEEtypes_OperModeNtf_t *poper_mode;
/** Operating Mode Notification IE offset */
t_u16 oper_mode_offset;
#ifdef STA_SUPPORT
/** Country information set */
IEEEtypes_CountryInfoFullSet_t country_info;
#endif /* STA_SUPPORT */
/** WPA IE */
IEEEtypes_VendorSpecific_t *pwpa_ie;
/** WPA IE offset in the beacon buffer */
t_u16 wpa_offset;
/** RSN IE */
IEEEtypes_Generic_t *prsn_ie;
/** RSN IE offset in the beacon buffer */
t_u16 rsn_offset;
#ifdef STA_SUPPORT
/** WAPI IE */
IEEEtypes_Generic_t *pwapi_ie;
/** WAPI IE offset in the beacon buffer */
t_u16 wapi_offset;
#endif
/** Pointer to the returned scan response */
t_u8 *pbeacon_buf;
/** Length of the stored scan response */
t_u32 beacon_buf_size;
/** Max allocated size for updated scan response */
t_u32 beacon_buf_size_max;
} BSSDescriptor_t, *pBSSDescriptor_t;
#endif /* !_MLAN_IEEE_H_ */
| 30.058858 | 84 | 0.715806 |
20cd51df3fb2fb2d4fe9f44331355feaeb760eb7 | 4,738 | c | C | src/syntax.c | kaitou-ryaku/min-bnf-parser | 3c4bc44f88c18c7b2f1487fee164022afe631614 | [
"MIT"
] | null | null | null | src/syntax.c | kaitou-ryaku/min-bnf-parser | 3c4bc44f88c18c7b2f1487fee164022afe631614 | [
"MIT"
] | null | null | null | src/syntax.c | kaitou-ryaku/min-bnf-parser | 3c4bc44f88c18c7b2f1487fee164022afe631614 | [
"MIT"
] | null | null | null | #include "../include/common.h"
#include "../include/text.h"
#include "../include/bnf.h"
#include "../include/syntax.h"
#include "../min-regex/include/min-regex.h"
#include <stdio.h>
#include <string.h>
extern int create_syntax(/*{{{*/
const char* syntax_str
, BNF* bnf
, char* work
, const int work_max_size
, char* name
, const int name_max_size
, char* def
, const int def_max_size
, char* simple
, const int simple_max_size
, MIN_REGEX_NODE* node
, const int node_max_size
) {
const int syntax_size = read_bnf(syntax_str, bnf, name, name_max_size, def, def_max_size, PT_STATE_SYNTAX); // 3は(unused 0, meta 1, lex 2, syntax 3)の3
int simple_seek = 0;
int node_seek = 0;
int index = -1;
while (1) {
index = search_bnf_next_syntax(index, bnf);
if (index < 0) break;
bnf[index].node = &(node[node_seek]);
bnf[index].simple = &(simple[simple_seek]);
int seek = 0;
int work_seek = 0;
const int def_size = strlen(bnf[index].def);
while (seek < def_size) {
int begin, end;
get_next_word_index(bnf[index].def, seek, &begin, &end);
const char c = (bnf[index].def)[begin];
if ((c == '(') || (c == '|') || (c == ')') || (c == '*') || (c == '@')) work[work_seek] = c;
else {
int cmp_index = -1;
while (1) {
cmp_index = search_bnf_next_lex_or_syntax(cmp_index, bnf);
if (cmp_index < 0) break;
const char* name2 = bnf[cmp_index].name;
if (is_same_word(bnf[index].def, begin, end, name2, 0, strlen(name2))) {
work[work_seek] = bnf[cmp_index].alphabet;
break;
}
}
if (cmp_index < 0) {
fprintf(stderr, "ERROR: NO TOKEN OR ATTRIBUTE EXISTS IN LEFT SIDE OF BNF ... ");
fprintf(stderr, "[[[");
for (int i=begin; i<end; i++) fprintf(stderr, "%c", (bnf[index].def)[i]);
fprintf(stderr, "]]]\n");
}
}
seek = end;
work_seek++;
}
work[work_seek] = '\0';
simple_seek += simplify_regex_arbitary(
work
, 0
, strlen(work)
, &(simple[simple_seek])
, simple_max_size - simple_seek
);
node_seek += regex_to_all_node(
bnf[index].simple
, bnf[index].node
, node_max_size - node_seek
);
}
return syntax_size;
}/*}}}*/
extern void syntax_to_dot(/*{{{*/
FILE* fp
, BNF* bnf
, const char* fontsize
, const char* width
, const char* topic_color
, const char* boundary_color
, const char* normal_color
) {
fprintf( fp, "digraph graphname {\n");
fprintf( fp, " graph [rankdir = LR]\n");
int graph_id = -1;
while (1) {
graph_id = search_bnf_next_syntax(graph_id, bnf);
if (graph_id < 0) break;
const MIN_REGEX_NODE *node = bnf[graph_id].node;
fprintf( fp, "\n %05d%05d [ label=\"%s\", fontsize=%s, width=%s, shape=box, fontcolor=\"%s\", color=\"%s\"]\n"
, graph_id, 99999, bnf[graph_id].name, fontsize, width, boundary_color, boundary_color);
for (int i=node[0].total-1; i>=0;i--) {
MIN_REGEX_NODE n = node[i];
if ((n.in_fst < 0) && (n.in_snd < 0) && (n.out_fst < 0) && (n.out_snd < 0)) continue;
fprintf( fp, " ");
fprintf( fp, "%05d%05d [ ", graph_id, i);
if ((n.symbol == '(') || (n.symbol == '|') || (n.symbol == ')') || (n.symbol == '*') || (n.symbol == '@')) {
fprintf( fp, "label=\"\"");
} else if ((n.symbol == '^') || (n.symbol == '$')) {
fprintf( fp, "label=\"%c\", " , n.symbol);
} else {
fprintf( fp, "label=\"%s\", " , node_to_bnf(n, bnf).name);
if (is_lex(node_to_bnf(n, bnf))) fprintf( fp, "style=filled, fillcolor=\"#C0C0C0\", ");
}
fprintf( fp, "fontsize=%s, ", fontsize);
fprintf( fp, "width=%s, " , width);
if (n.is_magick) {
fprintf( fp, "shape=circle, ");
} else {
fprintf( fp, "shape=box, ");
}
if (i == 0 || i == 1){
fprintf( fp, "fontcolor=\"%s\", color=\"%s\"", boundary_color, boundary_color);
} else {
fprintf( fp, "fontcolor=\"%s\", color=\"%s\"", normal_color, normal_color);
}
fprintf( fp, "]\n");
}
fprintf( fp, "\n");
fprintf( fp, " %05d%05d -> %05d%05d [style=invisible]\n", graph_id, 99999, graph_id, 0);
for (int i=0; i<node[0].total; i++) {
MIN_REGEX_NODE n = node[i];
if (n.out_fst >= 0) fprintf( fp, " %05d%05d -> %05d%05d\n", graph_id, i, graph_id, n.out_fst);
if (n.out_snd >= 0) fprintf( fp, " %05d%05d -> %05d%05d\n", graph_id, i, graph_id, n.out_snd);
}
}
fprintf( fp, "}\n");
}/*}}}*/
| 29.428571 | 152 | 0.531659 |
2025848132b2564c1b0d11ceabca04ebdbb518ea | 13,017 | c | C | b tree/btree.c | sidbee/Data-Structures-and-Algorithms-Labs | f1c0edea76d89cf9989d9302e803ca7db2a860c7 | [
"MIT"
] | 1 | 2020-07-07T09:53:22.000Z | 2020-07-07T09:53:22.000Z | b tree/btree.c | sidbee/Data-Structures-and-Algorithms-Labs | f1c0edea76d89cf9989d9302e803ca7db2a860c7 | [
"MIT"
] | null | null | null | b tree/btree.c | sidbee/Data-Structures-and-Algorithms-Labs | f1c0edea76d89cf9989d9302e803ca7db2a860c7 | [
"MIT"
] | 1 | 2020-12-09T19:20:49.000Z | 2020-12-09T19:20:49.000Z | #include <stdio.h>
#include <stdlib.h>
#include "btree.h"
void traverse(btree T)
{
int i;
for(i=0;i<T->numkeys;i++) //n keys and n children. so first through n children
{
if(T->leaf==false)
traverse(T->child[i]); //if not leaf then traversing child
printf("%d ",T->keys[i]);
}
if(T->leaf==false) //printing subtree rooted with last child
traverse(T->child[i]);
}
btree search(btree T, int k)
{
int i=0;
while(i<T->numkeys && k>T->keys[i])
i++;
if(T->keys[i]==k)
return T;
if(T->leaf==true)
return NULL;
return search(T->child[i],k);
}
btree insert(btree T,int k,int t)
{
if(T==NULL)
{
T=malloc(sizeof(bnode));
T->t=t;
T->leaf=true;
T->keys=malloc(sizeof(int)*(2*t-1));
T->child=malloc(sizeof(bnode)*2*t);
T->keys[0]=k; //insert key
T->numkeys=1; //number of keys updated
return T;
}
else
{
if(T->numkeys==2*T->t-1) //full so height grows
{
bnode* temp= malloc(sizeof(bnode)); //new node
temp->t=t;
temp->leaf=false; //it is not leaf
temp->keys=malloc(sizeof(int)*(2*t-1));
temp->child=malloc(sizeof(bnode)*2*t);
temp->numkeys=0;
temp->child[0]=T; //make old node as child of new
//split the old node T because it is full and move 1 key to the new node temp
splitChild(temp,0,T);
int i=0;
if(temp->keys[0]<k) //decide which child of temp to go to insert
i++;
insertNonFull(temp->child[i],k,t);
T=temp;
return T;
}
else insertNonFull(T,k);
return T;
}
}
void insertNonFull(btree T, int k) //assuming node is non full when this function is called
{
// Initialize index as index of rightmost element
int i = T->numkeys-1;
// If this is a leaf node
if (T->leaf == true)
{
// The following loop does two things
// a) Finds the location of new key to be inserted
// b) Moves all greater keys to one place ahead
while (i >= 0 && T->keys[i] > k)
{
T->keys[i+1] = T->keys[i];
i--;
}
// Insert the new key at found location
T->keys[i+1] = k;
T->numkeys = T->numkeys+1;
}
else // If this node is not leaf
{
// Find the child which is going to have the new key
while (i >= 0 && T->keys[i] > k)
i--;
// See if the found child is full
if (T->child[i+1]->numkeys == (2* (T->t))-1)
{
// If the child is full, then split it
splitChild(T,i+1,T->child[i+1]);
// After split, the middle key of C[i] goes up and
// C[i] is splitted into two. See which of the two
// is going to have the new key
if (T->keys[i+1] < k)
i++;
}
insertNonFull(T->child[i+1],k);
}
return;
}
// A utility function to split the child y of this node
// Note that y must be full when this function is called
void splitChild(btree T, int i, btree y)
{
int j;
// Create a new node which is going to store (t-1) keys
// of y
bnode* z = malloc(sizeof(bnode));
z->keys=malloc(sizeof(int)*(2*T->t-1));
z->child=malloc(sizeof(bnode)*2*T->t);
z->t=y->t;
z->leaf=y->leaf;
z->numkeys = z->t - 1;
// Copy the last (t-1) keys of y to z
for ( j = 0; j < T->t-1; j++)
z->keys[j] = y->keys[j+T->t];
// Copy the last t children of y to z
if (y->leaf == false)
{
for ( j = 0; j < T->t; j++)
z->child[j] = y->child[j+T->t];
}
// Reduce the number of keys in y
y->numkeys = y->t - 1;
// Since this node is going to have a new child,
// create space of new child
for ( j = T->numkeys; j >= i+1; j--)
T->child[j+1] = T->child[j];
// Link the new child to this node
T->child[i+1] = z;
// A key of y will move to this node. Find location of
// new key and move all greater keys one space ahead
for (j = T->numkeys-1; j >= i; j--)
T->keys[j+1] = T->keys[j];
// Copy the middle key of y to this node
T->keys[i] = y->keys[T->t-1];
// Increment count of keys in this node
T->numkeys = T->numkeys + 1;
}
int findkey(btree T, int k)
{
int idx=0;
while (idx<T->numkeys && T->keys[idx] < k)
++idx;
return idx;
}
btree removemain(btree T, int k)
{
if (!T)
{
printf("Tree is empty\n");
return NULL;
}
// Call the remove function for root
removenode(T,k);
// If the root node has 0 keys, make its first child as the new root
// if it has a child, otherwise set root as NULL
if (T->numkeys==0)
{
bnode* tmp = malloc(sizeof(bnode));
tmp->keys=malloc(sizeof(int)*(2*T->t-1));
tmp->child=malloc(sizeof(bnode)*2*T->t);
tmp=T;
if (T->leaf)
T = NULL;
else
T = T->child[0];
// Free the old root
free(tmp);
}
return T;
}
// A function to remove the key k from the sub-tree rooted with this node
void removenode(btree T, int k)
{
int idx = findkey(T,k);
// The key to be removed is present in this node
if (idx < T->numkeys && T->keys[idx] == k)
{
// If the node is a leaf node - removeFromLeaf is called
// Otherwise, removeFromNonLeaf function is called
if (T->leaf)
removeFromLeaf(T,idx);
else
removeFromNonLeaf(T,idx);
}
else
{
// If this node is a leaf node, then the key is not present in tree
if (T->leaf)
{
printf("delete key not there\n");
return;
}
// The key to be removed is present in the sub-tree rooted with this node
// The flag indicates whether the key is present in the sub-tree rooted
// with the last child of this node
bool flag = ( (idx==T->numkeys)? true : false );
// If the child where the key is supposed to exist has less that t keys,
// we fill that child
if (T->child[idx]->numkeys < T->t)
fill(T,idx);
// If the last child has been merged, it must have merged with the previous
// child and so we recurse on the (idx-1)th child. Else, we recurse on the
// (idx)th child which now has atleast t keys
if (flag && idx > T->numkeys)
removenode(T->child[idx-1],k);
else
removenode(T->child[idx],k);
}
return;
}
// A function to remove the idx-th key from this node - which is a leaf node
void removeFromLeaf (btree T,int idx)
{
int i;
// Move all the keys after the idx-th pos one place backward
for (i=idx+1; i<T->numkeys; ++i)
T->keys[i-1] = T->keys[i];
// Reduce the count of keys
T->numkeys--;
return;
}
// A function to remove the idx-th key from this node - which is a non-leaf node
void removeFromNonLeaf(btree T,int idx)
{
int k = T->keys[idx];
// If the child that precedes k (C[idx]) has atleast t keys,
// find the predecessor 'pred' of k in the subtree rooted at
// C[idx]. Replace k by pred. Recursively delete pred
// in C[idx]
if (T->child[idx]->numkeys >= T->t)
{
int pred = getPred(T,idx);
T->keys[idx] = pred;
removenode(T->child[idx],pred);
}
// If the child C[idx] has less that t keys, examine C[idx+1].
// If C[idx+1] has atleast t keys, find the successor 'succ' of k in
// the subtree rooted at C[idx+1]
// Replace k by succ
// Recursively delete succ in C[idx+1]
else if (T->child[idx+1]->numkeys >= T->t)
{
int succ = getSucc(T,idx);
T->keys[idx] = succ;
removenode(T->child[idx+1],succ);
}
// If both C[idx] and C[idx+1] has less that t keys,merge k and all of C[idx+1]
// into C[idx]
// Now C[idx] contains 2t-1 keys
// Free C[idx+1] and recursively delete k from C[idx]
else
{
merge(T,idx);
removenode(T->child[idx],k);
}
return;
}
// A function to get predecessor of keys[idx]
int getPred(btree T,int idx)
{
// Keep moving to the right most node until we reach a leaf
bnode *cur=T->child[idx];
while (!cur->leaf)
cur = cur->child[cur->numkeys]; //n keys n+1 children
// Return the last key of the leaf
return cur->keys[cur->numkeys-1]; //last key is at position n-1 because n keys 0 to n-1
}
int getSucc(btree T,int idx)
{
// Keep moving the left most node starting from C[idx+1] until we reach a leaf
bnode *cur = T->child[idx+1];
while (!cur->leaf)
cur = cur->child[0];
// Return the first key of the leaf
return cur->keys[0];
}
// A function to fill child C[idx] which has less than t-1 keys
void fill(btree T,int idx)
{
// If the previous child(C[idx-1]) has more than t-1 keys, borrow a key
// from that child
if (idx!=0 && T->child[idx-1]->numkeys>=T->t)
borrowFromPrev(T,idx);
// If the next child(C[idx+1]) has more than t-1 keys, borrow a key
// from that child
else if (idx!=T->numkeys && T->child[idx+1]->numkeys>=T->t)
borrowFromNext(T,idx);
// Merge C[idx] with its sibling
// If C[idx] is the last child, merge it with with its previous sibling
// Otherwise merge it with its next sibling
else
{
if (idx != T->numkeys)
merge(T,idx);
else
merge(T,idx-1);
}
return;
}
// A function to borrow a key from C[idx-1] and insert it
// into C[idx]
void borrowFromPrev(btree T,int idx)
{
int i;
bnode *child=T->child[idx];
bnode *sibling=T->child[idx-1];
// The last key from C[idx-1] goes up to the parent and key[idx-1]
// from parent is inserted as the first key in C[idx]. Thus, the loses
// sibling one key and child gains one key
// Moving all key in C[idx] one step ahead
for (i=child->numkeys-1; i>=0; --i)
child->keys[i+1] = child->keys[i];
// If C[idx] is not a leaf, move all its child pointers one step ahead
if (!child->leaf)
{
for(i=child->numkeys; i>=0; --i)
child->child[i+1] = child->child[i];
}
// Setting child's first key equal to keys[idx-1] from the current node
child->keys[0] = T->keys[idx-1];
// Moving sibling's last child as C[idx]'s first child
if (!T->leaf)
child->child[0] = sibling->child[sibling->numkeys];
// Moving the key from the sibling to the parent
// This reduces the number of keys in the sibling
T->keys[idx-1] = sibling->keys[sibling->numkeys-1];
child->numkeys += 1;
sibling->numkeys -= 1;
return;
}
// A function to borrow a key from the C[idx+1] and place
// it in C[idx]
void borrowFromNext(btree T,int idx)
{
int i;
bnode *child=T->child[idx];
bnode *sibling=T->child[idx+1];
// keys[idx] is inserted as the last key in C[idx]
child->keys[(child->numkeys)] = T->keys[idx];
// Sibling's first child is inserted as the last child
// into C[idx]
if (!(child->leaf))
child->child[(child->numkeys)+1] = sibling->child[0];
//The first key from sibling is inserted into keys[idx]
T->keys[idx] = sibling->keys[0];
// Moving all keys in sibling one step behind
for (i=1; i<sibling->numkeys; ++i)
sibling->keys[i-1] = sibling->keys[i];
// Moving the child pointers one step behind
if (!sibling->leaf)
{
for( i=1; i<=sibling->numkeys; ++i)
sibling->child[i-1] = sibling->child[i];
}
// Increasing and decreasing the key count of C[idx] and C[idx+1]
// respectively
child->numkeys += 1;
sibling->numkeys -= 1;
return;
}
// A function to merge C[idx] with C[idx+1]
// C[idx+1] is freed after merging
void merge(btree T,int idx)
{
int i;
bnode *child = T->child[idx];
bnode *sibling = T->child[idx+1];
// Pulling a key from the current node and inserting it into (t-1)th
// position of C[idx]
child->keys[T->t-1] = T->keys[idx];
// Copying the keys from C[idx+1] to C[idx] at the end
for ( i=0; i<sibling->numkeys; ++i)
child->keys[i+T->t] = sibling->keys[i];
// Copying the child pointers from C[idx+1] to C[idx]
if (!child->leaf)
{
for( i=0; i<=sibling->numkeys; ++i)
child->child[i+T->t] = sibling->child[i];
}
// Moving all keys after idx in the current node one step before -
// to fill the gap created by moving keys[idx] to C[idx]
for ( i=idx+1; i<T->numkeys; ++i)
T->keys[i-1] = T->keys[i];
// Moving the child pointers after (idx+1) in the current node one
// step before
for ( i=idx+2; i<=T->numkeys; ++i)
T->child[i-1] = T->child[i];
// Updating the key count of child and the current node
child->numkeys += sibling->numkeys+1;
T->numkeys--;
// Freeing the memory occupied by sibling
free(sibling);
return;
}
| 24.606805 | 91 | 0.563494 |
ea712a5f37d8b95f9a0cdd973cd57d853aeb576e | 362 | h | C | operator_presence/IOperatorModelMediator.h | aesir84/operator_presence | e7e512d0a19a547ec21698ca66fed9094796a0cd | [
"MIT"
] | null | null | null | operator_presence/IOperatorModelMediator.h | aesir84/operator_presence | e7e512d0a19a547ec21698ca66fed9094796a0cd | [
"MIT"
] | null | null | null | operator_presence/IOperatorModelMediator.h | aesir84/operator_presence | e7e512d0a19a547ec21698ca66fed9094796a0cd | [
"MIT"
] | null | null | null | #pragma once
namespace operator_model
{
class IVision;
}
namespace operator_model
{
class IMediator
{
public:
virtual ~IMediator() { }
public:
virtual void registerVision(IVision * vision) = 0;
public:
virtual void notifyLeftEyeImageUpdated(EyeImage leftEyeImage) = 0;
virtual void notifyRightEyeImageUpdated(EyeImage rightEyeImage) = 0;
};
}
| 15.73913 | 70 | 0.748619 |
6e7c7f49d7a40dea2d70158a8f0f58f61b4b6651 | 3,735 | h | C | src/wasm/stacks.h | ammarfaizi2/v8-fork | a1c7bb44d16dc3baeb7dc92409fb40a8a927563f | [
"BSD-3-Clause"
] | null | null | null | src/wasm/stacks.h | ammarfaizi2/v8-fork | a1c7bb44d16dc3baeb7dc92409fb40a8a927563f | [
"BSD-3-Clause"
] | 1 | 2021-05-26T11:38:05.000Z | 2021-05-26T11:38:05.000Z | src/wasm/stacks.h | ammarfaizi2/v8-fork | a1c7bb44d16dc3baeb7dc92409fb40a8a927563f | [
"BSD-3-Clause"
] | 1 | 2021-05-25T13:48:16.000Z | 2021-05-25T13:48:16.000Z | // Copyright 2021 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_WASM_STACKS_H_
#define V8_WASM_STACKS_H_
#if !V8_ENABLE_WEBASSEMBLY
#error This header should only be included if WebAssembly is enabled.
#endif // !V8_ENABLE_WEBASSEMBLY
#include "src/base/build_config.h"
#include "src/common/globals.h"
#include "src/execution/isolate.h"
#include "src/utils/allocation.h"
namespace v8 {
namespace internal {
namespace wasm {
struct JumpBuffer {
Address sp;
Address fp;
void* stack_limit;
// TODO(thibaudm/fgm): Add general-purpose registers.
};
constexpr int kJmpBufSpOffset = offsetof(JumpBuffer, sp);
constexpr int kJmpBufFpOffset = offsetof(JumpBuffer, fp);
constexpr int kJmpBufStackLimitOffset = offsetof(JumpBuffer, stack_limit);
class StackMemory {
public:
static StackMemory* New(Isolate* isolate) { return new StackMemory(isolate); }
// Returns a non-owning view of the current stack.
static StackMemory* GetCurrentStackView(Isolate* isolate) {
byte* limit =
reinterpret_cast<byte*>(isolate->stack_guard()->real_jslimit());
return new StackMemory(isolate, limit);
}
~StackMemory() {
if (FLAG_trace_wasm_stack_switching) {
PrintF("Delete stack (sp: %p)\n", reinterpret_cast<void*>(jmpbuf_.sp));
}
PageAllocator* allocator = GetPlatformPageAllocator();
if (owned_) allocator->DecommitPages(limit_, size_);
// We don't need to handle removing the last stack from the list (next_ ==
// this). This only happens on isolate tear down, otherwise there is always
// at least one reachable stack (the active stack).
isolate_->wasm_stacks() = next_;
prev_->next_ = next_;
next_->prev_ = prev_;
}
void* jslimit() const { return limit_ + kJSLimitOffsetKB; }
Address base() const { return reinterpret_cast<Address>(limit_ + size_); }
JumpBuffer* jmpbuf() { return &jmpbuf_; }
// Insert a stack in the linked list after this stack.
void Add(StackMemory* stack) {
stack->next_ = this->next_;
stack->prev_ = this;
this->next_->prev_ = stack;
this->next_ = stack;
}
StackMemory* next() { return next_; }
// Track external memory usage for Managed<StackMemory> objects.
size_t owned_size() { return sizeof(StackMemory) + (owned_ ? size_ : 0); }
bool IsActive() {
byte* sp = reinterpret_cast<byte*>(GetCurrentStackPosition());
return limit_ < sp && sp <= limit_ + size_;
}
private:
static constexpr int kJSLimitOffsetKB = 40;
// This constructor allocates a new stack segment.
explicit StackMemory(Isolate* isolate) : isolate_(isolate), owned_(true) {
PageAllocator* allocator = GetPlatformPageAllocator();
int kJsStackSizeKB = 4;
size_ = (kJsStackSizeKB + kJSLimitOffsetKB) * KB;
size_ = RoundUp(size_, allocator->AllocatePageSize());
limit_ = static_cast<byte*>(
allocator->AllocatePages(nullptr, size_, allocator->AllocatePageSize(),
PageAllocator::kReadWrite));
if (FLAG_trace_wasm_stack_switching)
PrintF("Allocate stack (sp: %p, limit: %p)\n", limit_ + size_, limit_);
}
// Overload to represent a view of the libc stack.
StackMemory(Isolate* isolate, byte* limit)
: isolate_(isolate),
limit_(limit),
size_(reinterpret_cast<size_t>(limit)),
owned_(false) {}
Isolate* isolate_;
byte* limit_;
size_t size_;
bool owned_;
JumpBuffer jmpbuf_;
// Stacks form a circular doubly linked list per isolate.
StackMemory* next_ = this;
StackMemory* prev_ = this;
};
} // namespace wasm
} // namespace internal
} // namespace v8
#endif // V8_WASM_STACKS_H_
| 32.198276 | 80 | 0.699331 |
f5c93b7bdb2e765c9a73cea09e40f93ccf4f93ea | 2,125 | h | C | JaraffeEngine_ComponentSystem/Jaraffe/Engine/Source/Core/Object/Component/JFPointLight.h | Jaraffe-github/Old_Engines | 0586d383af99cfcf076b18dace49e779a55b88e8 | [
"BSD-3-Clause"
] | null | null | null | JaraffeEngine_ComponentSystem/Jaraffe/Engine/Source/Core/Object/Component/JFPointLight.h | Jaraffe-github/Old_Engines | 0586d383af99cfcf076b18dace49e779a55b88e8 | [
"BSD-3-Clause"
] | null | null | null | JaraffeEngine_ComponentSystem/Jaraffe/Engine/Source/Core/Object/Component/JFPointLight.h | Jaraffe-github/Old_Engines | 0586d383af99cfcf076b18dace49e779a55b88e8 | [
"BSD-3-Clause"
] | null | null | null | #pragma once
namespace JF
{
namespace Component
{
class JFPointLight : public BaseComponent
{
//=============================================================================
// Constructor/Destructor)
//=============================================================================
public:
JFPointLight() { m_pLight = new JF::Light::PointLight(); }
virtual ~JFPointLight() { SafeDelete(m_pLight); }
//=============================================================================
// Component IDENTIFIER)
//=============================================================================
public:
COMPONENT_IDENTIFIER(JFPointLight, BaseComponent, true);
//=============================================================================
// public Funtions)
//=============================================================================
public:
void SetAmbient (const XMFLOAT4& _ambient) { m_pLight->Ambient = _ambient; }
void SetDiffuse (const XMFLOAT4& _diffuse) { m_pLight->Diffuse = _diffuse; }
void SetSpecular (const XMFLOAT4& _specular) { m_pLight->Specular = _specular; }
void SetAmbient (float x, float y, float z, float w) { m_pLight->Ambient = XMFLOAT4(x, y, z, w); }
void SetDiffuse (float x, float y, float z, float w) { m_pLight->Diffuse = XMFLOAT4(x, y, z, w); }
void SetSpecular (float x, float y, float z, float w) { m_pLight->Specular = XMFLOAT4(x, y, z, w); }
void SetRange (float _range) { m_pLight->Range = _range; }
const XMFLOAT4& GetAmbient() const { return m_pLight->Ambient; }
const XMFLOAT4& GetDiffuse() const { return m_pLight->Diffuse; }
const XMFLOAT4& GetSpecular() const { return m_pLight->Specular; }
const float GetRange() const { return m_pLight->Range; }
const JF::Light::PointLight* GetPointLight() const { return m_pLight; }
//=============================================================================
// Private Members)
//=============================================================================
private:
JF::Light::PointLight* m_pLight;
};
}
} | 40.09434 | 102 | 0.461647 |
0b8f9e0df4cecbaeda13eb3a1d0e3f759b4a2a2e | 4,887 | c | C | blinky/blinky/asf-3.21.0/avr32/applications/evk1100-control-panel/utils/tracedump.c | femtoio/femtousb-blink-example | 5e166bdee500f67142d0ee83a1a169bab57fe142 | [
"MIT"
] | null | null | null | blinky/blinky/asf-3.21.0/avr32/applications/evk1100-control-panel/utils/tracedump.c | femtoio/femtousb-blink-example | 5e166bdee500f67142d0ee83a1a169bab57fe142 | [
"MIT"
] | null | null | null | blinky/blinky/asf-3.21.0/avr32/applications/evk1100-control-panel/utils/tracedump.c | femtoio/femtousb-blink-example | 5e166bdee500f67142d0ee83a1a169bab57fe142 | [
"MIT"
] | null | null | null | /*****************************************************************************
*
* \file
*
* \brief Control Panel trace dump module.
*
* This file defines a set of functions to dump trace.
*
* Copyright (c) 2014 Atmel Corporation. All rights reserved.
*
* \asf_license_start
*
* \page License
*
* 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 Atmel may not be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* 4. This software may only be redistributed and used in connection with an
* Atmel microcontroller product.
*
* THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
* EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL 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.
*
* \asf_license_stop
*
*****************************************************************************/
/* Scheduler include files. */
/**
* Support and FAQ: visit <a href="http://www.atmel.com/design-support/">Atmel Support</a>
*/
#include <stdlib.h>
#include <string.h>
#include "FreeRTOS.h"
#include "task.h"
#include "serial.h"
#include "tracedump.h"
//! Baud rate used by the serial port 2.
#define dumpCOM2_BAUDRATE ( ( unsigned portLONG ) 57600 )
//! COM Port2 buffer length.
#define dumpCOM2_BUFFER_LEN ( ( unsigned portLONG ) 64 )
//! Banner printed on the dump port.
// WARNING: its length must be smaller or equal to dumpCOM2_BUFFER_LEN.
#define TRACE_MSG_BANNER "\x0C\r\n---------- Traces Dump \r\n"
#define DUMPCOM2_NO_BLOCK ( ( portTickType ) 0 )
//! COM Port2 handle.
static xComPortHandle xComPort2Hndl = (xComPortHandle)NULL;
/*!
* This function initializes the dump port.
* \return DUMP_SUCCESS or DUMP_FAILURE
* \warning FreeRTOS must already be up & running when calling this function.
*/
int itracedump_Init( void )
{
int iStatus = DUMP_SUCCESS;
//**
//** Init the port.
//**
// Init the COM Port2.
xComPort2Hndl = xUsartInit(serCOM2, dumpCOM2_BAUDRATE, 0, dumpCOM2_BUFFER_LEN);
if(xComPort2Hndl == 0)
return(DUMP_FAILURE);
//**
//** Dump a banner to the port.
//**
vtracedump_PrintBlocking((const signed portCHAR * const)TRACE_MSG_BANNER);
return(iStatus);
}
/*!
* \brief Stop the tracedump module resources.
*/
void v_tracedump_stopResources( void )
{
vSerialClose( xComPort2Hndl );
}
/*!
* Send a string of characters to the dump port.
* \param pcString The string to dump
* \return The number of characters that could not be sent.
* \warning FreeRTOS must already be up & running when calling this function.
*/
unsigned portSHORT ustracedump_Print(const signed portCHAR * const pcString)
{
return( usUsartPutString( xComPort2Hndl, pcString, strlen( (const portCHAR * )pcString ) ) );
}
/*!
* Send a string of characters to the dump port.
* \param pcString The string to dump
* \warning FreeRTOS must already be up & running when calling this function.
*/
void vtracedump_PrintBlocking(const signed portCHAR * const pcString)
{
unsigned portSHORT usRemainChar = 0;
unsigned portSHORT usMsgLen = strlen((const portCHAR * )pcString);
usRemainChar = usMsgLen;
do{
usRemainChar = usUsartPutString( xComPort2Hndl,
(const signed portCHAR * const)(pcString + usMsgLen - usRemainChar),
usRemainChar );
}while( usRemainChar );
}
/*!
* \brief Put a char to the dump port.
*
* \param cByte The character to put
*/
void vtracedump_Putchar(signed portCHAR cByte )
{
xUsartPutChar( xComPort2Hndl, cByte, DUMPCOM2_NO_BLOCK );
}
/*!
* \brief Put a char to the dump port.
*
* \param cByte The character to put
*/
void vtracedump_Putchar_Block(signed portCHAR cByte )
{
xUsartPutChar( xComPort2Hndl, cByte, -1 );
}
| 31.127389 | 107 | 0.689585 |
73b7237c3a2569d0ad2c23a3b9167e985d8b6887 | 9,875 | h | C | dependencies/include/cgal/CGAL/intersections_d.h | rosecodym/space-boundary-tool | 300db4084cd19b092bdf2e8432da065daeaa7c55 | [
"FSFAP"
] | 6 | 2016-11-01T11:09:00.000Z | 2022-02-15T06:31:58.000Z | dependencies/include/cgal/CGAL/intersections_d.h | rosecodym/space-boundary-tool | 300db4084cd19b092bdf2e8432da065daeaa7c55 | [
"FSFAP"
] | null | null | null | dependencies/include/cgal/CGAL/intersections_d.h | rosecodym/space-boundary-tool | 300db4084cd19b092bdf2e8432da065daeaa7c55 | [
"FSFAP"
] | null | null | null | // Copyright (c) 2000,2001
// Utrecht University (The Netherlands),
// ETH Zurich (Switzerland),
// INRIA Sophia-Antipolis (France),
// Max-Planck-Institute Saarbruecken (Germany),
// and Tel-Aviv University (Israel). All rights reserved.
//
// This file is part of CGAL (www.cgal.org); you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public License as
// published by the Free Software Foundation; either version 3 of the License,
// or (at your option) any later version.
//
// Licensees holding a valid commercial license may use this file in
// accordance with the commercial license agreement provided with the software.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
//
// $URL: svn+ssh://scm.gforge.inria.fr/svn/cgal/branches/releases/CGAL-4.1-branch/Kernel_d/include/CGAL/intersections_d.h $
// $Id: intersections_d.h 67093 2012-01-13 11:22:39Z lrineau $
//
//
// Author(s) : Michael Seel
#ifndef CGAL_INTERSECTIONS_D_H
#define CGAL_INTERSECTIONS_D_H
#include <CGAL/basic.h>
namespace CGAL {
// Actually, we should better list the compilers which are inferior, i.e.
// the others, which need the additional useless code.
#if 1 // !defined(__PGI) // Try to see which compiler warn these days.
# define CGAL_REMOVE_FLOW_WARNING
#endif
template <class R>
Object intersection(const Line_d<R>& l1, const Line_d<R>& l2)
{ typedef typename R::Line_d_Line_d_pair ll_pair;
ll_pair LL(l1, l2);
switch (LL.intersection_type()) {
case ll_pair::NO_INTERSECTION:
default:
return Object();
case ll_pair::POINT: {
Point_d<R> pt;
LL.intersection(pt);
return make_object(pt);
}
case ll_pair::LINE:
return make_object(l1);
}
#ifdef CGAL_REMOVE_FLOW_WARNING
return Object(); // never reached
#endif
}
template <class R>
Object intersection(const Ray_d<R>& l1, const Ray_d<R>& l2)
{ typedef typename R::Ray_d_Ray_d_pair ll_pair;
ll_pair LL(l1,l2);
switch (LL.intersection_type()) {
case ll_pair::NO_INTERSECTION:
default:
return Object();
case ll_pair::POINT: {
Point_d<R> p;
LL.intersection(p);
return make_object(p);
}
case ll_pair::RAY: {
Ray_d<R> r;
LL.intersection(r);
return make_object(r);
}
case ll_pair::SEGMENT: {
Segment_d<R> s;
LL.intersection(s);
return make_object(s);
}
}
#ifdef CGAL_REMOVE_FLOW_WARNING
return Object(); // never reached
#endif
}
template <class R>
Object intersection(const Segment_d<R>& l1, const Segment_d<R>& l2)
{ typedef typename R::Segment_d_Segment_d_pair ll_pair;
ll_pair LL(l1,l2);
switch (LL.intersection_type()) {
case ll_pair::NO_INTERSECTION:
default:
return Object();
case ll_pair::POINT: {
Point_d<R> p;
LL.intersection(p);
return make_object(p);
}
case ll_pair::SEGMENT: {
Segment_d<R> s;
LL.intersection(s);
return make_object(s);
}
}
#ifdef CGAL_REMOVE_FLOW_WARNING
return Object(); // never reached
#endif
}
template <class R>
Object intersection(const Line_d<R>& l, const Ray_d<R>& r)
{ typedef typename R::Line_d_Ray_d_pair lr_pair;
lr_pair LR(l,r);
switch (LR.intersection_type()) {
case lr_pair::NO_INTERSECTION:
default:
return Object();
case lr_pair::POINT: {
Point_d<R> pt;
LR.intersection(pt);
return make_object(pt);
}
case lr_pair::RAY: {
return make_object(r);
}
}
#ifdef CGAL_REMOVE_FLOW_WARNING
return Object(); // never reached
#endif
}
template <class R>
Object intersection(const Ray_d<R>& r, const Line_d<R>& l)
{ return intersection(l,r); }
template <class R>
Object intersection(const Ray_d<R>& r, const Segment_d<R>& s)
{ typedef typename R::Ray_d_Segment_d_pair rs_pair;
rs_pair RS(r,s);
switch (RS.intersection_type()) {
case rs_pair::NO_INTERSECTION:
default:
return Object();
case rs_pair::POINT: {
Point_d<R> pt;
RS.intersection(pt);
return make_object(pt);
}
case rs_pair::SEGMENT: {
Segment_d<R> st;
RS.intersection(st);
return make_object(st);
}
}
#ifdef CGAL_REMOVE_FLOW_WARNING
return Object(); // never reached
#endif
}
template <class R>
Object intersection(const Segment_d<R>& s, const Ray_d<R>& r)
{ return intersection(r,s); }
template <class R>
Object intersection(const Line_d<R>& l, const Segment_d<R>& s)
{ typedef typename R::Line_d_Segment_d_pair rs_pair;
rs_pair RS(l,s);
switch (RS.intersection_type()) {
case rs_pair::NO_INTERSECTION:
default:
return Object();
case rs_pair::POINT: {
Point_d<R> pt;
RS.intersection(pt);
return make_object(pt);
}
case rs_pair::SEGMENT: {
Segment_d<R> st;
RS.intersection(st);
return make_object(st);
}
}
#ifdef CGAL_REMOVE_FLOW_WARNING
return Object(); // never reached
#endif
}
template <class R>
Object intersection(const Segment_d<R>& s, const Line_d<R>& l)
{ return intersection(l,s); }
template <class R>
Object intersection(const Line_d<R>& l, const Hyperplane_d<R>& h)
{
typedef typename R::Line_d_Hyperplane_d_pair lh_pair;
lh_pair LH(l,h);
switch (LH.intersection_type()) {
case lh_pair::NO_INTERSECTION:
default:
return Object();
case lh_pair::POINT: {
Point_d<R> pt;
LH.intersection(pt);
return make_object(pt);
}
case lh_pair::LINE:
return make_object(l);
}
#ifdef CGAL_REMOVE_FLOW_WARNING
return Object(); // never reached
#endif
}
template <class R>
Object intersection(const Hyperplane_d<R>& h, const Line_d<R>& l)
{ return intersection(l,h); }
template <class R>
Object intersection(const Ray_d<R>& r, const Hyperplane_d<R>& h)
{
typedef typename R::Ray_d_Hyperplane_d_pair rh_pair;
rh_pair RH(r,h);
switch (RH.intersection_type()) {
case rh_pair::NO_INTERSECTION:
default:
return Object();
case rh_pair::POINT: {
Point_d<R> pt;
RH.intersection(pt);
return make_object(pt);
}
case rh_pair::RAY:
return make_object(r);
}
#ifdef CGAL_REMOVE_FLOW_WARNING
return Object(); // never reached
#endif
}
template <class R>
Object intersection(const Hyperplane_d<R>& h, const Ray_d<R>& r)
{ return intersection(r,h); }
template <class R>
Object intersection(const Segment_d<R>& s, const Hyperplane_d<R>& h)
{ typedef typename R::Segment_d_Hyperplane_d_pair sh_pair;
sh_pair SH(s,h);
switch (SH.intersection_type()) {
case sh_pair::NO_INTERSECTION:
default:
return Object();
case sh_pair::POINT: {
Point_d<R> pt;
SH.intersection(pt);
return make_object(pt);
}
case sh_pair::SEGMENT:
return make_object(s);
}
#ifdef CGAL_REMOVE_FLOW_WARNING
return Object(); // never reached
#endif
}
template <class R>
Object intersection(const Hyperplane_d<R>& h, const Segment_d<R>& s)
{ return intersection(s,h); }
template <class R>
inline bool do_intersect(const Line_d<R> &l1, const Line_d<R> &l2)
{ typedef typename R::Line_d_Line_d_pair ll_pair;
ll_pair LL(l1,l2);
return LL.intersection_type() != ll_pair::NO_INTERSECTION;
}
template <class R>
inline bool do_intersect(const Ray_d<R> &l1, const Ray_d<R> &l2)
{ typedef typename R::Ray_d_Ray_d_pair ll_pair;
ll_pair LL(l1,l2);
return LL.intersection_type() != ll_pair::NO_INTERSECTION;
}
template <class R>
inline bool do_intersect(const Segment_d<R> &l1, const Segment_d<R> &l2)
{ typedef typename R::Segment_d_Segment_d_pair ll_pair;
ll_pair LL(l1,l2);
return LL.intersection_type() != ll_pair::NO_INTERSECTION;
}
template <class R>
inline bool do_intersect(const Line_d<R>& l, const Ray_d<R>& r)
{ typedef typename R::Line_d_Ray_d_pair lr_pair;
lr_pair LR(l,r);
return LR.intersection_type() != lr_pair::NO_INTERSECTION;
}
template <class R>
inline bool do_intersect(const Ray_d<R>& r, const Line_d<R>& l)
{ return do_intersect(l,r); }
template <class R>
inline bool do_intersect(const Line_d<R>& l, const Segment_d<R>& s)
{ typedef typename R::Line_d_Segment_d_pair ls_pair;
ls_pair LS(l,s);
return LS.intersection_type() != ls_pair::NO_INTERSECTION;
}
template <class R>
inline bool do_intersect(const Segment_d<R>& s, const Line_d<R>& l)
{ return do_intersect(l,s); }
template <class R>
inline bool do_intersect(const Ray_d<R>& r, const Segment_d<R>& s)
{ typedef typename R::Ray_d_Segment_d_pair rs_pair;
rs_pair RS(r,s);
return RS.intersection_type() != rs_pair::NO_INTERSECTION;
}
template <class R>
inline bool do_intersect(const Segment_d<R>& s, const Ray_d<R>& r)
{ return do_intersect(r,s); }
template <class R>
inline bool do_intersect(const Line_d<R>& l, const Hyperplane_d<R>& h)
{ typedef typename R::Line_d_Hyperplane_d_pair lh_pair;
lh_pair LH(l,h);
return LH.intersection_type() != lh_pair::NO_INTERSECTION;
}
template <class R>
inline bool do_intersect(const Hyperplane_d<R>& h, const Line_d<R>& l)
{ return do_intersect(l,h); }
template <class R>
inline bool do_intersect(const Ray_d<R>& r, const Hyperplane_d<R>& h)
{ typedef typename R::Ray_d_Hyperplane_d_pair rh_pair;
rh_pair RH(r,h);
return RH.intersection_type() != rh_pair::NO_INTERSECTION;
}
template <class R>
inline bool do_intersect(const Hyperplane_d<R>& h, const Ray_d<R>& r)
{ return do_intersect(r,h); }
template <class R>
inline bool do_intersect(const Segment_d<R>& s, const Hyperplane_d<R>& h)
{ typedef typename R::Segment_d_Hyperplane_d_pair sh_pair;
sh_pair SH(s,h);
return SH.intersection_type() != sh_pair::NO_INTERSECTION;
}
template <class R>
inline bool do_intersect(const Hyperplane_d<R>& h, const Segment_d<R>& s)
{ return do_intersect(s,h); }
} //namespace CGAL
#endif //CGAL_INTERSECTIONS_D_H
| 27.430556 | 123 | 0.692354 |
14d463799fad9a441ce92e45ec9915e64933fcda | 23,489 | c | C | Software/New_MG/Firmware/PCB_Test/CPU2/F2837xD_common/source/F2837xD_SysCtrl.c | moverlin/Kirtley_picogrid | 3bb52c55e9ed9cb5f91d36e366ab3978a417813a | [
"MIT"
] | 2 | 2018-12-15T01:46:51.000Z | 2018-12-15T01:46:58.000Z | Software/3_INV_DEMO_MIKE_DONT_TOUCH_new_CCS/Inveter_RS485/CPU1/F2837xD_common/source/F2837xD_SysCtrl.c | moverlin/Kirtley_picogrid | 3bb52c55e9ed9cb5f91d36e366ab3978a417813a | [
"MIT"
] | null | null | null | Software/3_INV_DEMO_MIKE_DONT_TOUCH_new_CCS/Inveter_RS485/CPU1/F2837xD_common/source/F2837xD_SysCtrl.c | moverlin/Kirtley_picogrid | 3bb52c55e9ed9cb5f91d36e366ab3978a417813a | [
"MIT"
] | 4 | 2020-06-03T12:51:37.000Z | 2021-01-02T14:49:34.000Z | //###########################################################################
//
// FILE: F2837xD_SysCtrl.c
//
// TITLE: F2837xD Device System Control Initialization & Support Functions.
//
// DESCRIPTION:
//
// Example initialization of system resources.
//
//###########################################################################
// $TI Release: F2837xD Support Library v190 $
// $Release Date: Mon Feb 1 16:51:57 CST 2016 $
// $Copyright: Copyright (C) 2013-2016 Texas Instruments Incorporated -
// http://www.ti.com/ ALL RIGHTS RESERVED $
//###########################################################################
#include "F2837xD_device.h" // Headerfile Include File
#include "F2837xD_Examples.h" // Examples Include File
// Functions that will be run from RAM need to be assigned to
// a different section. This section will then be mapped to a load and
// run address using the linker cmd file.
//
// *IMPORTANT*
// IF RUNNING FROM FLASH, PLEASE COPY OVER THE SECTION "ramfuncs" FROM FLASH
// TO RAM PRIOR TO CALLING InitSysCtrl(). THIS PREVENTS THE MCU FROM THROWING
// AN EXCEPTION WHEN A CALL TO DELAY_US() IS MADE.
//
#pragma CODE_SECTION(InitFlash, "ramfuncs");
#pragma CODE_SECTION(FlashOff, "ramfuncs");
void InitSysCtrl(void)
{
// Disable the watchdog
DisableDog();
#ifdef _FLASH
// Copy time critical code and Flash setup code to RAM
// This includes the following functions: InitFlash();
// The RamfuncsLoadStart, RamfuncsLoadSize, and RamfuncsRunStart
// symbols are created by the linker. Refer to the device .cmd file.
memcpy(&RamfuncsRunStart, &RamfuncsLoadStart, (size_t)&RamfuncsLoadSize);
// Call Flash Initialization to setup flash waitstates
// This function must reside in RAM
InitFlash();
#endif
// *IMPORTANT*
// The Device_cal function, which copies the ADC & oscillator calibration values
// from TI reserved OTP into the appropriate trim registers, occurs automatically
// in the Boot ROM. If the boot ROM code is bypassed during the debug process, the
// following function MUST be called for the ADC and oscillators to function according
// to specification. The clocks to the ADC MUST be enabled before calling this
// function.
// See the device data manual and/or the ADC Reference
// Manual for more information.
#ifdef CPU1
EALLOW;
//enable pull-ups on unbonded IOs as soon as possible to reduce power consumption.
GPIO_EnableUnbondedIOPullups();
CpuSysRegs.PCLKCR13.bit.ADC_A = 1;
CpuSysRegs.PCLKCR13.bit.ADC_B = 1;
CpuSysRegs.PCLKCR13.bit.ADC_C = 1;
CpuSysRegs.PCLKCR13.bit.ADC_D = 1;
//check if device is trimmed
if(*((Uint16 *)0x5D1B6) == 0x0000){
//device is not trimmed, apply static calibration values
AnalogSubsysRegs.ANAREFTRIMA.all = 31709;
AnalogSubsysRegs.ANAREFTRIMB.all = 31709;
AnalogSubsysRegs.ANAREFTRIMC.all = 31709;
AnalogSubsysRegs.ANAREFTRIMD.all = 31709;
}
CpuSysRegs.PCLKCR13.bit.ADC_A = 0;
CpuSysRegs.PCLKCR13.bit.ADC_B = 0;
CpuSysRegs.PCLKCR13.bit.ADC_C = 0;
CpuSysRegs.PCLKCR13.bit.ADC_D = 0;
EDIS;
// Initialize the PLL control: PLLCR and CLKINDIV
// F28_PLLCR and F28_CLKINDIV are defined in F2837xD_Examples.h
// Note: The internal oscillator CANNOT be used as the PLL source if the
// PLLSYSCLK is configured to frequencies above 194 MHz.
InitSysPll(XTAL_OSC,IMULT_20,FMULT_0,PLLCLK_BY_2); //PLLSYSCLK = (XTAL_OSC) * (IMULT + FMULT) / (PLLSYSCLKDIV)
#endif
//Turn on all peripherals
InitPeripheralClocks();
}
//---------------------------------------------------------------------------
// InitPeripheralClocks
//---------------------------------------------------------------------------
// This function initializes the clocks for the peripherals.
//
// Note: In order to reduce power consumption, turn off the clocks to any
// peripheral that is not specified for your part-number or is not used in the
// application
void InitPeripheralClocks()
{
EALLOW;
CpuSysRegs.PCLKCR0.bit.CLA1 = 1;
CpuSysRegs.PCLKCR0.bit.DMA = 1;
CpuSysRegs.PCLKCR0.bit.CPUTIMER0 = 1;
CpuSysRegs.PCLKCR0.bit.CPUTIMER1 = 1;
CpuSysRegs.PCLKCR0.bit.CPUTIMER2 = 1;
#ifdef CPU1
CpuSysRegs.PCLKCR0.bit.HRPWM = 1;
#endif
CpuSysRegs.PCLKCR0.bit.TBCLKSYNC = 1;
#ifdef CPU1
CpuSysRegs.PCLKCR1.bit.EMIF1 = 1;
CpuSysRegs.PCLKCR1.bit.EMIF2 = 1;
#endif
CpuSysRegs.PCLKCR2.bit.EPWM1 = 1;
CpuSysRegs.PCLKCR2.bit.EPWM2 = 1;
CpuSysRegs.PCLKCR2.bit.EPWM3 = 1;
CpuSysRegs.PCLKCR2.bit.EPWM4 = 1;
CpuSysRegs.PCLKCR2.bit.EPWM5 = 1;
CpuSysRegs.PCLKCR2.bit.EPWM6 = 1;
CpuSysRegs.PCLKCR2.bit.EPWM7 = 1;
CpuSysRegs.PCLKCR2.bit.EPWM8 = 1;
CpuSysRegs.PCLKCR2.bit.EPWM9 = 1;
CpuSysRegs.PCLKCR2.bit.EPWM10 = 1;
CpuSysRegs.PCLKCR2.bit.EPWM11 = 1;
CpuSysRegs.PCLKCR2.bit.EPWM12 = 1;
CpuSysRegs.PCLKCR3.bit.ECAP1 = 1;
CpuSysRegs.PCLKCR3.bit.ECAP2 = 1;
CpuSysRegs.PCLKCR3.bit.ECAP3 = 1;
CpuSysRegs.PCLKCR3.bit.ECAP4 = 1;
CpuSysRegs.PCLKCR3.bit.ECAP5 = 1;
CpuSysRegs.PCLKCR3.bit.ECAP6 = 1;
CpuSysRegs.PCLKCR4.bit.EQEP1 = 1;
CpuSysRegs.PCLKCR4.bit.EQEP2 = 1;
CpuSysRegs.PCLKCR4.bit.EQEP3 = 1;
CpuSysRegs.PCLKCR6.bit.SD1 = 1;
CpuSysRegs.PCLKCR6.bit.SD2 = 1;
CpuSysRegs.PCLKCR7.bit.SCI_A = 1;
CpuSysRegs.PCLKCR7.bit.SCI_B = 1;
CpuSysRegs.PCLKCR7.bit.SCI_C = 1;
CpuSysRegs.PCLKCR7.bit.SCI_D = 1;
CpuSysRegs.PCLKCR8.bit.SPI_A = 1;
CpuSysRegs.PCLKCR8.bit.SPI_B = 1;
CpuSysRegs.PCLKCR8.bit.SPI_C = 1;
CpuSysRegs.PCLKCR9.bit.I2C_A = 1;
CpuSysRegs.PCLKCR9.bit.I2C_B = 1;
CpuSysRegs.PCLKCR10.bit.CAN_A = 1;
CpuSysRegs.PCLKCR10.bit.CAN_B = 1;
CpuSysRegs.PCLKCR11.bit.McBSP_A = 1;
CpuSysRegs.PCLKCR11.bit.McBSP_B = 1;
#ifdef CPU1
CpuSysRegs.PCLKCR11.bit.USB_A = 1;
CpuSysRegs.PCLKCR12.bit.uPP_A = 1;
#endif
CpuSysRegs.PCLKCR13.bit.ADC_A = 1;
CpuSysRegs.PCLKCR13.bit.ADC_B = 1;
CpuSysRegs.PCLKCR13.bit.ADC_C = 1;
CpuSysRegs.PCLKCR13.bit.ADC_D = 1;
CpuSysRegs.PCLKCR14.bit.CMPSS1 = 1;
CpuSysRegs.PCLKCR14.bit.CMPSS2 = 1;
CpuSysRegs.PCLKCR14.bit.CMPSS3 = 1;
CpuSysRegs.PCLKCR14.bit.CMPSS4 = 1;
CpuSysRegs.PCLKCR14.bit.CMPSS5 = 1;
CpuSysRegs.PCLKCR14.bit.CMPSS6 = 1;
CpuSysRegs.PCLKCR14.bit.CMPSS7 = 1;
CpuSysRegs.PCLKCR14.bit.CMPSS8 = 1;
CpuSysRegs.PCLKCR16.bit.DAC_A = 1;
CpuSysRegs.PCLKCR16.bit.DAC_B = 1;
CpuSysRegs.PCLKCR16.bit.DAC_C = 1;
EDIS;
}
void DisablePeripheralClocks()
{
EALLOW;
CpuSysRegs.PCLKCR0.all = 0;
CpuSysRegs.PCLKCR1.all = 0;
CpuSysRegs.PCLKCR2.all = 0;
CpuSysRegs.PCLKCR3.all = 0;
CpuSysRegs.PCLKCR4.all = 0;
CpuSysRegs.PCLKCR6.all = 0;
CpuSysRegs.PCLKCR7.all = 0;
CpuSysRegs.PCLKCR8.all = 0;
CpuSysRegs.PCLKCR9.all = 0;
CpuSysRegs.PCLKCR10.all = 0;
CpuSysRegs.PCLKCR11.all = 0;
CpuSysRegs.PCLKCR12.all = 0;
CpuSysRegs.PCLKCR13.all = 0;
CpuSysRegs.PCLKCR14.all = 0;
CpuSysRegs.PCLKCR16.all = 0;
EDIS;
}
//---------------------------------------------------------------------------
// Example: InitFlash:
//---------------------------------------------------------------------------
// This function initializes the Flash Control registers
// CAUTION
// This function MUST be executed out of RAM. Executing it
// out of OTP/Flash will yield unpredictable results
void InitFlash(void)
{
EALLOW;
// set VREADST to the proper value for the
// flash banks to power up properly
// This sets the bank power up delay
Flash0CtrlRegs.FBAC.bit.VREADST = 0x14;
//At reset bank and pump are in sleep
//A Flash access will power up the bank and pump automatically
//After a Flash access, bank and pump go to low power mode (configurable in FBFALLBACK/FPAC1 registers)-
//if there is no further access to flash
//Power up Flash bank and pump and this also sets the fall back mode of flash and pump as active
Flash0CtrlRegs.FPAC1.bit.PMPPWR = 0x1;
Flash0CtrlRegs.FBFALLBACK.bit.BNKPWR0 = 0x3;
//Disable Cache and prefetch mechanism before changing wait states
Flash0CtrlRegs.FRD_INTF_CTRL.bit.DATA_CACHE_EN = 0;
Flash0CtrlRegs.FRD_INTF_CTRL.bit.PREFETCH_EN = 0;
//Set waitstates according to frequency
// CAUTION
//Minimum waitstates required for the flash operating
//at a given CPU rate must be characterized by TI.
//Refer to the datasheet for the latest information.
#if CPU_FRQ_200MHZ
Flash0CtrlRegs.FRDCNTL.bit.RWAIT = 0x3;
#endif
#if CPU_FRQ_150MHZ
Flash0CtrlRegs.FRDCNTL.bit.RWAIT = 0x2;
#endif
#if CPU_FRQ_120MHZ
Flash0CtrlRegs.FRDCNTL.bit.RWAIT = 0x2;
#endif
//Enable Cache and prefetch mechanism to improve performance
//of code executed from Flash.
Flash0CtrlRegs.FRD_INTF_CTRL.bit.DATA_CACHE_EN = 1;
Flash0CtrlRegs.FRD_INTF_CTRL.bit.PREFETCH_EN = 1;
//At reset, ECC is enabled
//If it is disabled by application software and if application again wants to enable ECC
Flash0EccRegs.ECC_ENABLE.bit.ENABLE = 0xA;
EDIS;
//Force a pipeline flush to ensure that the write to
//the last register configured occurs before returning.
__asm(" RPT #7 || NOP");
}
//---------------------------------------------------------------------------
// Example: FlashOff():
//---------------------------------------------------------------------------
// This function powers down the flash
// CAUTION
// This function MUST be executed out of RAM. Executing it
// out of OTP/Flash will yield unpredictable results.
// Also you must seize the flash pump in order to power it down.
void FlashOff(void)
{
EALLOW;
// set VREADST to the proper value for the
// flash banks to power up properly
Flash0CtrlRegs.FBAC.bit.VREADST = 0x14;
// power down bank
Flash0CtrlRegs.FBFALLBACK.bit.BNKPWR0 = 0;
// power down pump
Flash0CtrlRegs.FPAC1.bit.PMPPWR = 0;
EDIS;
}
//---------------------------------------------------------------------------
// Example: SeizeFlashPump():
//---------------------------------------------------------------------------
//Wait until the flash pump is available, then take control of it using
//the flash pump Semaphore.
void SeizeFlashPump()
{
EALLOW;
#ifdef CPU1
while (FlashPumpSemaphoreRegs.PUMPREQUEST.bit.PUMP_OWNERSHIP != 0x2)
{
FlashPumpSemaphoreRegs.PUMPREQUEST.all = IPC_PUMP_KEY | 0x2;
}
#elif defined(CPU2)
while (FlashPumpSemaphoreRegs.PUMPREQUEST.bit.PUMP_OWNERSHIP != 0x1)
{
FlashPumpSemaphoreRegs.PUMPREQUEST.all = IPC_PUMP_KEY | 0x1;
}
#endif
EDIS;
}
//---------------------------------------------------------------------------
// Example: ReleaseFlashPump():
//---------------------------------------------------------------------------
//Release control of the flash pump using the flash pump semaphore
void ReleaseFlashPump()
{
EALLOW;
FlashPumpSemaphoreRegs.PUMPREQUEST.all = IPC_PUMP_KEY | 0x0;
EDIS;
}
//---------------------------------------------------------------------------
// Example: ServiceDog:
//---------------------------------------------------------------------------
// This function resets the watchdog timer.
// Enable this function for using ServiceDog in the application
void ServiceDog(void)
{
EALLOW;
WdRegs.WDKEY.bit.WDKEY = 0x0055;
WdRegs.WDKEY.bit.WDKEY = 0x00AA;
EDIS;
}
//---------------------------------------------------------------------------
// Example: DisableDog:
//---------------------------------------------------------------------------
// This function disables the watchdog timer.
void DisableDog(void)
{
volatile Uint16 temp;
EALLOW;
//Grab the clock config so we don't clobber it
temp = WdRegs.WDCR.all & 0x0007;
WdRegs.WDCR.all = 0x0068 | temp;
EDIS;
}
//---------------------------------------------------------------------------
// Example: InitPll:
//---------------------------------------------------------------------------
// This function initializes the PLL registers.
//
// Note: The internal oscillator CANNOT be used as the PLL source if the
// PLLSYSCLK is configured to frequencies above 194 MHz.
void InitSysPll(Uint16 clock_source, Uint16 imult, Uint16 fmult, Uint16 divsel)
{
if((clock_source == ClkCfgRegs.CLKSRCCTL1.bit.OSCCLKSRCSEL) &&
(imult == ClkCfgRegs.SYSPLLMULT.bit.IMULT) &&
(fmult == ClkCfgRegs.SYSPLLMULT.bit.FMULT) &&
(divsel == ClkCfgRegs.SYSCLKDIVSEL.bit.PLLSYSCLKDIV))
{
//everything is set as required, so just return
return;
}
if(clock_source != ClkCfgRegs.CLKSRCCTL1.bit.OSCCLKSRCSEL)
{
switch (clock_source)
{
case INT_OSC1:
SysIntOsc1Sel();
break;
case INT_OSC2:
SysIntOsc2Sel();
break;
case XTAL_OSC:
SysXtalOscSel();
break;
}
}
EALLOW;
// first modify the PLL multipliers
if(imult != ClkCfgRegs.SYSPLLMULT.bit.IMULT || fmult != ClkCfgRegs.SYSPLLMULT.bit.FMULT)
{
// Bypass PLL and set dividers to /1
ClkCfgRegs.SYSPLLCTL1.bit.PLLCLKEN = 0;
ClkCfgRegs.SYSCLKDIVSEL.bit.PLLSYSCLKDIV = 0;
// Program PLL multipliers
Uint32 temp_syspllmult = ClkCfgRegs.SYSPLLMULT.all;
ClkCfgRegs.SYSPLLMULT.all = ((temp_syspllmult & ~(0x37FU)) |
((fmult << 8U) | imult));
ClkCfgRegs.SYSPLLCTL1.bit.PLLEN = 1; // Enable SYSPLL
// Wait for the SYSPLL lock
while(ClkCfgRegs.SYSPLLSTS.bit.LOCKS != 1)
{
// Uncomment to service the watchdog
// ServiceDog();
}
// Write a multiplier again to ensure proper PLL initialization
// This will force the PLL to lock a second time
ClkCfgRegs.SYSPLLMULT.bit.IMULT = imult; // Setting integer multiplier
// Wait for the SYSPLL re-lock
while(ClkCfgRegs.SYSPLLSTS.bit.LOCKS != 1)
{
// Uncomment to service the watchdog
// ServiceDog();
}
}
// Set divider to produce slower output frequency to limit current increase
if(divsel != PLLCLK_BY_126)
{
ClkCfgRegs.SYSCLKDIVSEL.bit.PLLSYSCLKDIV = divsel + 1;
}else
{
ClkCfgRegs.SYSCLKDIVSEL.bit.PLLSYSCLKDIV = divsel;
}
// Enable PLLSYSCLK is fed from system PLL clock
ClkCfgRegs.SYSPLLCTL1.bit.PLLCLKEN = 1;
// Small 100 cycle delay
asm(" RPT #100 || NOP");
// Set the divider to user value
ClkCfgRegs.SYSCLKDIVSEL.bit.PLLSYSCLKDIV = divsel;
EDIS;
}
//---------------------------------------------------------------------------
// Example: InitPll2:
//---------------------------------------------------------------------------
// This function initializes the PLL2 registers.
//
// Note: The internal oscillator CANNOT be used as the PLL source if the
// PLLSYSCLK is configured to frequencies above 194 MHz.
void InitAuxPll(Uint16 clock_source, Uint16 imult, Uint16 fmult, Uint16 divsel)
{
Uint16 temp_divsel;
if((clock_source == ClkCfgRegs.CLKSRCCTL2.bit.AUXOSCCLKSRCSEL) &&
(imult == ClkCfgRegs.AUXPLLMULT.bit.IMULT) &&
(fmult == ClkCfgRegs.AUXPLLMULT.bit.FMULT) &&
(divsel == ClkCfgRegs.AUXCLKDIVSEL.bit.AUXPLLDIV))
{
//everything is set as required, so just return
return;
}
switch (clock_source)
{
case INT_OSC2:
AuxIntOsc2Sel();
break;
case XTAL_OSC:
AuxXtalOscSel();
break;
case AUXCLKIN:
AuxAuxClkSel();
break;
}
// Change the SYSPLL Integer Multiplier (or) SYSPLL Fractional Multiplier
if(ClkCfgRegs.AUXPLLMULT.bit.IMULT != imult || ClkCfgRegs.AUXPLLMULT.bit.FMULT !=fmult)
{
EALLOW;
ClkCfgRegs.AUXCLKDIVSEL.bit.AUXPLLDIV = AUXPLLRAWCLK_BY_8;
//Set integer and fractional multiplier
Uint32 temp_auxpllmult = ClkCfgRegs.AUXPLLMULT.all;
ClkCfgRegs.AUXPLLMULT.all = ((temp_auxpllmult & ~(0x37FU)) |
((fmult << 8U) | imult));
ClkCfgRegs.AUXPLLCTL1.bit.PLLEN = 1; //Enable AUXPLL
EDIS;
//Wait for the AUXPLL lock
while(ClkCfgRegs.AUXPLLSTS.bit.LOCKS != 1)
{
// Uncomment to service the watchdog
// ServiceDog();
}
// Write a multiplier again to ensure proper PLL initialization
// This will force the PLL to lock a second time
EALLOW;
ClkCfgRegs.AUXPLLMULT.bit.IMULT = imult; // Setting integer multiplier
EDIS;
//Wait for the AUXPLL lock
while(ClkCfgRegs.AUXPLLSTS.bit.LOCKS != 1)
{
// Uncomment to service the watchdog
// ServiceDog();
}
}
//increase the freq. of operation in steps to avoid any VDD fluctuations
temp_divsel = AUXPLLRAWCLK_BY_8;
while(ClkCfgRegs.AUXCLKDIVSEL.bit.AUXPLLDIV != divsel)
{
EALLOW;
ClkCfgRegs.AUXCLKDIVSEL.bit.AUXPLLDIV = temp_divsel - 1;
EDIS;
temp_divsel = temp_divsel - 1;
if(ClkCfgRegs.AUXCLKDIVSEL.bit.AUXPLLDIV != divsel)
{
DELAY_US(15L);
}
}
EALLOW;
ClkCfgRegs.AUXPLLCTL1.bit.PLLCLKEN = 1; //Enable AUXPLLCLK is fed from AUX PLL
EDIS;
}
//---------------------------------------------------------------------------
// Example: CsmUnlock:
//---------------------------------------------------------------------------
// This function unlocks the CSM. User must replace 0xFFFF's with current
// password for the DSP. Returns 1 if unlock is successful.
#define STATUS_FAIL 0
#define STATUS_SUCCESS 1
Uint16 CsmUnlock()
{
volatile Uint16 temp;
// Load the key registers with the current password. The 0xFFFF's are dummy
// passwords. User should replace them with the correct password for the DSP.
EALLOW;
// CsmRegs.KEY0 = 0xFFFF;
// CsmRegs.KEY1 = 0xFFFF;
// CsmRegs.KEY2 = 0xFFFF;
// CsmRegs.KEY3 = 0xFFFF;
// CsmRegs.KEY4 = 0xFFFF;
// CsmRegs.KEY5 = 0xFFFF;
// CsmRegs.KEY6 = 0xFFFF;
// CsmRegs.KEY7 = 0xFFFF;
DcsmZ1Regs.Z1_CSMKEY0 = 0xFFFFFFFF;
DcsmZ1Regs.Z1_CSMKEY1 = 0xFFFFFFFF;
DcsmZ1Regs.Z1_CSMKEY2 = 0xFFFFFFFF;
DcsmZ1Regs.Z1_CSMKEY3 = 0xFFFFFFFF;
DcsmZ2Regs.Z2_CSMKEY0 = 0xFFFFFFFF;
DcsmZ2Regs.Z2_CSMKEY1 = 0xFFFFFFFF;
DcsmZ2Regs.Z2_CSMKEY2 = 0xFFFFFFFF;
DcsmZ2Regs.Z2_CSMKEY3 = 0xFFFFFFFF;
EDIS;
// Perform a dummy read of the password locations
// if they match the key values, the CSM will unlock
// temp = CsmPwl.PSWD0;
// temp = CsmPwl.PSWD1;
// temp = CsmPwl.PSWD2;
// temp = CsmPwl.PSWD3;
// temp = CsmPwl.PSWD4;
// temp = CsmPwl.PSWD5;
// temp = CsmPwl.PSWD6;
// temp = CsmPwl.PSWD7;
// If the CSM unlocked, return success, otherwise return
// failure.
// if (CsmRegs.CSMSCR.bit.SECURE == 0) return STATUS_SUCCESS;
// else return STATUS_FAIL;
return 0;
}
//---------------------------------------------------------------------------
// Example: SysIntOsc1Sel:
//---------------------------------------------------------------------------
// This function switches to Internal Oscillator 1 and turns off all other clock
// sources to minimize power consumption
void SysIntOsc1Sel (void) {
EALLOW;
ClkCfgRegs.CLKSRCCTL1.bit.OSCCLKSRCSEL = 2; // Clk Src = INTOSC1
EDIS;
}
//---------------------------------------------------------------------------
// Example: SysIntOsc2Sel:
//---------------------------------------------------------------------------
// This function switches to Internal oscillator 2 from External Oscillator
// and turns off all other clock sources to minimize power consumption
// NOTE: If there is no external clock connection, when switching from
// INTOSC1 to INTOSC2, EXTOSC and XLCKIN must be turned OFF prior
// to switching to internal oscillator 1
void SysIntOsc2Sel (void) {
EALLOW;
ClkCfgRegs.CLKSRCCTL1.bit.INTOSC2OFF=0; // Turn on INTOSC2
ClkCfgRegs.CLKSRCCTL1.bit.OSCCLKSRCSEL = 0; // Clk Src = INTOSC2
EDIS;
}
//---------------------------------------------------------------------------
// Example: SysXtalOscSel:
//---------------------------------------------------------------------------
// This function switches to External CRYSTAL oscillator and turns off all other clock
// sources to minimize power consumption. This option may not be available on all
// device packages
void SysXtalOscSel (void) {
EALLOW;
ClkCfgRegs.CLKSRCCTL1.bit.XTALOFF=0; // Turn on XTALOSC
ClkCfgRegs.CLKSRCCTL1.bit.OSCCLKSRCSEL = 1; // Clk Src = XTAL
EDIS;
}
//---------------------------------------------------------------------------
// Example: AuxIntOsc2Sel:
//---------------------------------------------------------------------------
// This function switches to Internal oscillator 2 from External Oscillator
// and turns off all other clock sources to minimize power consumption
// NOTE: If there is no external clock connection, when switching from
// INTOSC1 to INTOSC2, EXTOSC and XLCKIN must be turned OFF prior
// to switching to internal oscillator 1
void AuxIntOsc2Sel (void) {
EALLOW;
ClkCfgRegs.CLKSRCCTL1.bit.INTOSC2OFF=0; // Turn on INTOSC2
ClkCfgRegs.CLKSRCCTL2.bit.AUXOSCCLKSRCSEL = 0; // Clk Src = INTOSC2
EDIS;
}
//---------------------------------------------------------------------------
// Example: AuxXtalOscSel:
//---------------------------------------------------------------------------
// This function switches to External CRYSTAL oscillator and turns off all other clock
// sources to minimize power consumption. This option may not be available on all
// device packages
void AuxXtalOscSel (void) {
EALLOW;
ClkCfgRegs.CLKSRCCTL1.bit.XTALOFF=0; // Turn on XTALOSC
ClkCfgRegs.CLKSRCCTL2.bit.AUXOSCCLKSRCSEL = 1; // Clk Src = XTAL
EDIS;
}
//---------------------------------------------------------------------------
// Example: AuxAUXCLKOscSel:
//---------------------------------------------------------------------------
// This function switches to External CRYSTAL oscillator and turns off all other clock
// sources to minimize power consumption. This option may not be available on all
// device packages
void AuxAuxClkSel (void) {
EALLOW;
ClkCfgRegs.CLKSRCCTL2.bit.AUXOSCCLKSRCSEL = 2; // Clk Src = XTAL
EDIS;
}
//Enter IDLE mode (single CPU)
void IDLE()
{
EALLOW;
CpuSysRegs.LPMCR.bit.LPM = LPM_IDLE;
EDIS;
asm(" IDLE");
}
//Enter STANDBY mode (single CPU)
void STANDBY()
{
EALLOW;
CpuSysRegs.LPMCR.bit.LPM = LPM_STANDBY;
EDIS;
asm(" IDLE");
}
//Enter HALT mode (dual CPU). Puts CPU2 in IDLE mode first.
void HALT()
{
#if defined(CPU2)
IDLE();
#elif defined(CPU1)
EALLOW;
CpuSysRegs.LPMCR.bit.LPM = LPM_HALT;
EDIS;
while (DevCfgRegs.LPMSTAT.bit.CPU2LPMSTAT != 0x1 ) {;}
EALLOW;
ClkCfgRegs.SYSPLLCTL1.bit.PLLCLKEN = 0;
ClkCfgRegs.SYSPLLCTL1.bit.PLLEN = 0;
EDIS;
asm(" IDLE");
#endif
}
//Enter HIB mode (dual CPU). Puts CPU2 in STANDBY first. Alternately,
//CPU2 may be in reset.
void HIB()
{
#if defined(CPU2)
STANDBY();
#elif defined(CPU1)
EALLOW;
CpuSysRegs.LPMCR.bit.LPM = LPM_HIB;
EDIS;
while (DevCfgRegs.LPMSTAT.bit.CPU2LPMSTAT == 0x0 && DevCfgRegs.RSTSTAT.bit.CPU2RES == 1) {;}
DisablePeripheralClocks();
EALLOW;
ClkCfgRegs.SYSPLLCTL1.bit.PLLCLKEN = 0;
ClkCfgRegs.SYSPLLCTL1.bit.PLLEN = 0;
EDIS;
asm(" IDLE");
#endif
}
| 30.544863 | 116 | 0.60722 |
42709c3ce73389e16ee26ef72493b5ed518bf528 | 408 | c | C | stsdas/pkg/hst_calib/stis/calstis/lib/initreftab.c | iraf-community/stsdas | 043c173fd5497c18c2b1bfe8bcff65180bca3996 | [
"BSD-3-Clause"
] | 1 | 2020-12-20T10:06:48.000Z | 2020-12-20T10:06:48.000Z | stsdas/pkg/hst_calib/stis/calstis/lib/initreftab.c | spacetelescope/stsdas_stripped | 043c173fd5497c18c2b1bfe8bcff65180bca3996 | [
"BSD-3-Clause"
] | null | null | null | stsdas/pkg/hst_calib/stis/calstis/lib/initreftab.c | spacetelescope/stsdas_stripped | 043c173fd5497c18c2b1bfe8bcff65180bca3996 | [
"BSD-3-Clause"
] | 2 | 2019-10-12T20:01:16.000Z | 2020-11-19T08:04:30.000Z | # include "../stis.h"
/* Initialize the elements of a RefTab structure.
Phil Hodge, 2004 Dec 27:
Duplicate code extracted from several functions to this one.
*/
void InitRefTab (RefTab *table) {
table->name[0] = '\0';
table->pedigree[0] = '\0';
table->descrip[0] = '\0';
table->descrip2[0] = '\0';
table->exists = EXISTS_UNKNOWN;
table->goodPedigree = PEDIGREE_UNKNOWN;
}
| 22.666667 | 68 | 0.632353 |
f651e4565bc5931199307defb1beff1c34676e51 | 950 | h | C | EVENTS/GeoClawOpenFOAM/bathymetry.h | claudioperez/HydroUQ | 89447d50524057f7e30d9d31e04f074a94095aad | [
"BSD-2-Clause"
] | 2 | 2021-03-03T06:37:21.000Z | 2021-03-29T20:46:37.000Z | EVENTS/GeoClawOpenFOAM/bathymetry.h | claudioperez/HydroUQ | 89447d50524057f7e30d9d31e04f074a94095aad | [
"BSD-2-Clause"
] | 10 | 2021-07-22T04:22:28.000Z | 2021-07-29T02:16:52.000Z | EVENTS/GeoClawOpenFOAM/bathymetry.h | claudioperez/HydroUQ | 89447d50524057f7e30d9d31e04f074a94095aad | [
"BSD-2-Clause"
] | 9 | 2020-05-18T18:37:44.000Z | 2021-08-02T18:12:49.000Z | #ifndef BATHYMETRY_H
#define BATHYMETRY_H
//#include "mainwindow.h"
#include <QFrame>
#include <QFileDialog>
#include <QDir>
#include <QDebug>
#include <QMessageBox>
#include <QFileInfo>
#include <QJsonObject>
#include "hydroerror.h"
namespace Ui {
class bathymetry;
}
class bathymetry : public QFrame
{
Q_OBJECT
public:
explicit bathymetry(int, QWidget *parent = nullptr);
~bathymetry();
bool getData(QMap<QString, QString>&, int);
bool putData(QJsonObject &,int,QString);
void refreshData(int);
bool copyFiles(QString dirName, int);
private slots:
void on_Btn_UploadFiles_clicked();
void on_Btn_UploadSolution_clicked();
void on_Btn_AddSeg_clicked();
void on_Btn_RemSeg_clicked();
void on_CmB_FlumeGeoType_currentIndexChanged(int index);
private:
void hideshowelems(int);
Ui::bathymetry *ui;
QStringList bathfilenames,solfilenames;
Hydroerror error;
};
#endif // BATHYMETRY_H
| 20.652174 | 60 | 0.730526 |
5154e975ec7c45a1b4bae36c0e4b8da71d3545ba | 1,618 | h | C | adium/UnitTests/TestRichTextCoercion.h | sin-ivan/AdiumPipeEvent | 1f3b215a07729868d25197c40200e181e06f6de5 | [
"BSD-3-Clause"
] | null | null | null | adium/UnitTests/TestRichTextCoercion.h | sin-ivan/AdiumPipeEvent | 1f3b215a07729868d25197c40200e181e06f6de5 | [
"BSD-3-Clause"
] | null | null | null | adium/UnitTests/TestRichTextCoercion.h | sin-ivan/AdiumPipeEvent | 1f3b215a07729868d25197c40200e181e06f6de5 | [
"BSD-3-Clause"
] | null | null | null | /*
* Adium is the legal property of its developers, whose names are listed in the copyright file included
* with this source distribution.
*
* This program is free software; you can redistribute it and/or modify it under the terms of the GNU
* General Public License as published by the Free Software Foundation; either version 2 of the License,
* or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
* Public License for more details.
*
* You should have received a copy of the GNU General Public License along with this program; if not,
* write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
//All test-case methods here use NSScriptCoercionHandler, which should delegate to AIRichTextCoercer.
@interface TestRichTextCoercion : SenTestCase
{}
/*
- (void)testAttributedStringToPlainText;
- (void)testMutableAttributedStringToPlainText;
*/
- (void)testTextStorageToPlainText;
/*
- (void)testPlainTextToAttributedString;
- (void)testPlainTextToMutableAttributedString;
*/
- (void)testPlainTextToTextStorage;
//Coerce the string, then mutate the original.
/*
- (void)testMutableAttributedStringToPlainTextWithMutations;
*/
- (void)testTextStorageToPlainTextWithMutations;
//Run the AppleScript “x as y”, where x is an AS object and y is an AS class.
- (void)testRichTextToPlainTextInAppleScript;
- (void)testPlainTextToRichTextInAppleScript;
@end
| 36.772727 | 105 | 0.777503 |
51738766a10f8f66dcafdc328c0867e08941883a | 320 | h | C | src/core_lib/include/core/type_utils.h | grishavanika/mix | 6a4b465debfd16a6cdc4b76cb730a17ee631b062 | [
"MIT"
] | 3 | 2018-01-25T01:14:37.000Z | 2021-08-31T15:22:21.000Z | src/core_lib/include/core/type_utils.h | grishavanika/mix | 6a4b465debfd16a6cdc4b76cb730a17ee631b062 | [
"MIT"
] | null | null | null | src/core_lib/include/core/type_utils.h | grishavanika/mix | 6a4b465debfd16a6cdc4b76cb730a17ee631b062 | [
"MIT"
] | 3 | 2020-03-07T06:35:23.000Z | 2020-12-04T04:15:35.000Z | #pragma once
#include <type_traits>
namespace type_utils {
// "Transformation Trait uncvref": http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2017/p0550r0.pdf
template<typename T>
using uncvref =
typename std::remove_cv<
typename std::remove_reference<T>::type>::type;
} // namespace type_utils
| 21.333333 | 103 | 0.71875 |
518e7e3b37a21e36c01b21fbecf24098f6d65a1f | 1,604 | h | C | src/paintown-engine/object/enemy.h | marstau/shinsango | d9468787ae8e18fa478f936770d88e9bf93c11c0 | [
"BSD-3-Clause"
] | 1 | 2021-06-16T15:25:47.000Z | 2021-06-16T15:25:47.000Z | src/paintown-engine/object/enemy.h | marstau/shinsango | d9468787ae8e18fa478f936770d88e9bf93c11c0 | [
"BSD-3-Clause"
] | null | null | null | src/paintown-engine/object/enemy.h | marstau/shinsango | d9468787ae8e18fa478f936770d88e9bf93c11c0 | [
"BSD-3-Clause"
] | null | null | null | #ifndef _paintown_enemy_guy_h
#define _paintown_enemy_guy_h
#include "character.h"
#include "util/file-system.h"
#include <string>
#include <vector>
class World;
namespace Paintown{
class Object;
class Enemy: public Character{
public:
Enemy( );
Enemy( const char * filename );
Enemy( const Filesystem::AbsolutePath & filename );
Enemy( const Enemy & chr );
Enemy( const Character & chr );
virtual Object * copy();
virtual void act( std::vector< Object * > * others, World * world, std::vector< Object * > * add );
using Character::drawLifeBar;
virtual void drawLifeBar( int x, int y, Graphics::Bitmap * work );
virtual void drawFront( Graphics::Bitmap * work, int rel_x );
virtual void died(const Util::ReferenceCount<Scene> & scene, std::vector< Object * > & objects);
virtual void hurt( int x );
virtual inline void setMaxHealth( int h ){
Character::setMaxHealth( h );
show_life = h;
}
virtual void created(Scene & scene);
/*
virtual inline Heart * getHeart() const{
return heart;
}
*/
virtual ~Enemy();
/* the chances this enemy will try to attack */
virtual int getAggression() const {
return aggression;
}
virtual void setAggression( const int a ){
aggression = a;
}
protected:
// void filterEnemies( vector< Object * > * mine, vector< Object * > * all );
void constructSelf();
const Object * findClosest( const std::vector< Object * > & enemies );
protected:
// Heart * heart;
int want_x, want_z;
bool want_path;
int show_name_time;
int id;
int show_life;
int aggression;
};
}
#endif
| 19.325301 | 104 | 0.669576 |
4e80642ec35806e9366005970cce0058518bb79a | 206 | h | C | DemoApp/ios/Pods/AppCenter/AppCenter-SDK-Apple/iOS/AppCenterAuth.framework/Headers/AppCenterAuth.h | vaagn-avanesyan/rn-test | 32de9030ec3e33c705a6f6e2e906f94c06bc2eda | [
"MIT"
] | 7 | 2019-06-19T11:37:46.000Z | 2021-06-24T06:12:31.000Z | DemoApp/ios/Pods/AppCenter/AppCenter-SDK-Apple/iOS/AppCenterAuth.framework/Headers/AppCenterAuth.h | vaagn-avanesyan/rn-test | 32de9030ec3e33c705a6f6e2e906f94c06bc2eda | [
"MIT"
] | 3 | 2020-02-28T02:26:34.000Z | 2020-03-01T01:40:16.000Z | DemoApp/ios/Pods/AppCenter/AppCenter-SDK-Apple/iOS/AppCenterAuth.framework/Headers/AppCenterAuth.h | vaagn-avanesyan/rn-test | 32de9030ec3e33c705a6f6e2e906f94c06bc2eda | [
"MIT"
] | 4 | 2019-06-20T07:33:21.000Z | 2020-10-08T19:21:17.000Z | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#import <Foundation/Foundation.h>
#import "MSAuth.h"
#import "MSAuthErrors.h"
#import "MSUserInformation.h"
| 22.888889 | 60 | 0.757282 |
8699533c6c5e06be0ad299166f894e6b50dddf54 | 3,552 | c | C | NuttX/nuttx/arch/arm/src/calypso/calypso_armio.c | shening/PX4-1.34-Vision-Fix | 1e696bc1c2dae71ba7b277d40106a5b6c0a1a050 | [
"BSD-3-Clause"
] | 24 | 2019-08-13T02:39:01.000Z | 2022-03-03T15:44:54.000Z | NuttX/nuttx/arch/arm/src/calypso/calypso_armio.c | shening/PX4-1.34-Vision-Fix | 1e696bc1c2dae71ba7b277d40106a5b6c0a1a050 | [
"BSD-3-Clause"
] | 11 | 2017-10-22T09:45:51.000Z | 2019-05-28T23:25:29.000Z | NuttX/nuttx/arch/arm/src/calypso/calypso_armio.c | shening/PX4-1.34-Vision-Fix | 1e696bc1c2dae71ba7b277d40106a5b6c0a1a050 | [
"BSD-3-Clause"
] | 11 | 2019-07-28T09:11:40.000Z | 2022-03-17T08:08:27.000Z | /****************************************************************************
* Driver for shared features of ARMIO modules
*
* Copyright (C) 2011 Stefan Richter. All rights reserved.
* Author: Stefan Richter <ichgeh@l--putt.de>
*
* 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 NuttX 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 <nuttx/config.h>
#include <nuttx/arch.h>
#include <nuttx/irq.h>
#include <arch/calypso/memory.h>
#include <arch/calypso/armio.h>
#include "up_arch.h"
/****************************************************************************
* HW access
****************************************************************************/
#define BASE_ADDR_ARMIO 0xfffe4800
#define ARMIO_REG(x) (BASE_ADDR_ARMIO + (x))
enum armio_reg {
LATCH_IN = 0x00,
LATCH_OUT = 0x02,
IO_CNTL = 0x04,
CNTL_REG = 0x06,
LOAD_TIM = 0x08,
KBR_LATCH_REG = 0x0a,
KBC_REG = 0x0c,
BUZZ_LIGHT_REG = 0x0e,
LIGHT_LEVEL = 0x10,
BUZZER_LEVEL = 0x12,
GPIO_EVENT_MODE = 0x14,
KBD_GPIO_INT = 0x16,
KBD_GPIO_MASKIT = 0x18,
GPIO_DEBOUNCING = 0x1a,
GPIO_LATCH = 0x1c,
};
#define KBD_INT (1 << 0)
#define GPIO_INT (1 << 1)
/****************************************************************************
* ARMIO interrupt handler
* forward keypad events
* forward GPIO events
****************************************************************************/
static int kbd_gpio_irq(int irq, uint32_t *regs)
{
return calypso_kbd_irq(irq, regs);
}
/****************************************************************************
* Initialize ARMIO
****************************************************************************/
void calypso_armio(void)
{
/* Enable ARMIO clock */
putreg16(1<<5, ARMIO_REG(CNTL_REG));
/* Mask GPIO interrupt and keypad interrupt */
putreg16(KBD_INT|GPIO_INT, ARMIO_REG(KBD_GPIO_MASKIT));
/* Attach and enable the interrupt */
irq_attach(IRQ_KEYPAD_GPIO, (xcpt_t)kbd_gpio_irq);
up_enable_irq(IRQ_KEYPAD_GPIO);
}
| 34.153846 | 78 | 0.592624 |
fbd1f1522ebfd471fde5e30f8c4e3633cf47c32c | 475 | h | C | src/renderer.h | fabian-rump/larry-screweater | 86e1ee54581e5c0ee39cef424879e5109ce8e5a1 | [
"Zlib"
] | null | null | null | src/renderer.h | fabian-rump/larry-screweater | 86e1ee54581e5c0ee39cef424879e5109ce8e5a1 | [
"Zlib"
] | null | null | null | src/renderer.h | fabian-rump/larry-screweater | 86e1ee54581e5c0ee39cef424879e5109ce8e5a1 | [
"Zlib"
] | null | null | null | #ifndef RENDERER_H
#define RENDERER_H
#include <SFML/Graphics.hpp>
#include <vector>
#include <string>
#include <iostream>
#include <sstream>
#include "game_state.h"
class Renderer
{
public:
Renderer(sf::RenderWindow *window, GameState *state);
void drawGame();
private:
sf::RenderWindow *m_wnd;
GameState *m_gst;
sf::Texture m_texture_background;
sf::Texture m_texture_player;
sf::Texture m_texture_screws;
sf::Font m_normal_font;
sf::Font m_bold_font;
};
#endif | 18.269231 | 54 | 0.757895 |
791fc57b37a0b96a07918832ce64b353ca4d3e63 | 538 | h | C | instagrambyme/Models/PostViewCell.h | nihaljemal/Instagrambyme | 571470af52e1c39c91ce7c7dcf4fe58e5f561001 | [
"Apache-2.0"
] | null | null | null | instagrambyme/Models/PostViewCell.h | nihaljemal/Instagrambyme | 571470af52e1c39c91ce7c7dcf4fe58e5f561001 | [
"Apache-2.0"
] | 1 | 2018-07-14T09:48:59.000Z | 2018-07-14T09:48:59.000Z | instagrambyme/Models/PostViewCell.h | nihaljemal/Instagrambyme | 571470af52e1c39c91ce7c7dcf4fe58e5f561001 | [
"Apache-2.0"
] | null | null | null | //
// PostViewCell.h
// instagrambyme
//
// Created by Nihal Riyadh Jemal on 7/9/18.
// Copyright © 2018 Facebook. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "Post.h"
#import <ParseUI/ParseUI.h>
@interface PostViewCell : UITableViewCell
@property (weak, nonatomic) IBOutlet PFImageView *postedPicture;
@property (weak, nonatomic) IBOutlet UILabel *postNameTag;
-(void)configureCell:(Post *)post;
@property (weak, nonatomic) IBOutlet UILabel *descriptionLabel;
@property (strong, nonatomic) NSString* identity;
@end
| 22.416667 | 64 | 0.741636 |
193e54ff8612762013b264ace8c0fbe9decd5135 | 417,945 | c | C | external/curl-7.21.6/src/hugehelp.c | framos-gemini/giapi-glue-cc | f59e1ce572494b57aad6985f3233f0e51167bb42 | [
"BSD-3-Clause"
] | null | null | null | external/curl-7.21.6/src/hugehelp.c | framos-gemini/giapi-glue-cc | f59e1ce572494b57aad6985f3233f0e51167bb42 | [
"BSD-3-Clause"
] | 3 | 2017-06-14T15:21:50.000Z | 2020-08-03T19:51:57.000Z | external/curl-7.21.6/src/hugehelp.c | framos-gemini/giapi-glue-cc | f59e1ce572494b57aad6985f3233f0e51167bb42 | [
"BSD-3-Clause"
] | 3 | 2017-06-13T13:59:36.000Z | 2021-02-09T02:01:14.000Z | #include "setup.h"
#ifndef HAVE_LIBZ
/*
* NEVER EVER edit this manually, fix the mkhelp.pl script instead!
* Generation time: Fri Apr 22 19:02:51 2011
*/
#include "setup.h"
#ifdef USE_MANUAL
#include "hugehelp.h"
#include <stdio.h>
void hugehelp(void)
{
fputs(
" _ _ ____ _\n"
" Project ___| | | | _ \\| |\n"
" / __| | | | |_) | |\n"
" | (__| |_| | _ <| |___\n"
" \\___|\\___/|_| \\_\\_____|\n"
"\n"
"NAME\n"
" curl - transfer a URL\n"
"\n"
"SYNOPSIS\n"
" curl [options] [URL...]\n"
"\n"
"DESCRIPTION\n"
" curl is a tool to transfer data from or to a server, using one of the\n"
" supported protocols (DICT, FILE, FTP, FTPS, GOPHER, HTTP, HTTPS, IMAP,\n"
, stdout);
fputs(
" IMAPS, LDAP, LDAPS, POP3, POP3S, RTMP, RTSP, SCP, SFTP, SMTP, SMTPS,\n"
" TELNET and TFTP). The command is designed to work without user inter-\n"
" action.\n"
"\n"
" curl offers a busload of useful tricks like proxy support, user authen-\n"
" tication, FTP upload, HTTP post, SSL connections, cookies, file trans-\n"
" fer resume and more. As you will see below, the number of features will\n"
" make your head spin!\n"
"\n"
, stdout);
fputs(
" curl is powered by libcurl for all transfer-related features. See\n"
" libcurl(3) for details.\n"
"\n"
"URL\n"
" The URL syntax is protocol-dependent. You'll find a detailed descrip-\n"
" tion in RFC 3986.\n"
"\n"
" You can specify multiple URLs or parts of URLs by writing part sets\n"
" within braces as in:\n"
"\n"
" http://site.{one,two,three}.com\n"
"\n"
" or you can get sequences of alphanumeric series by using [] as in:\n"
"\n"
" ftp://ftp.numericals.com/file[1-100].txt\n"
, stdout);
fputs(
" ftp://ftp.numericals.com/file[001-100].txt (with leading zeros)\n"
" ftp://ftp.letters.com/file[a-z].txt\n"
"\n"
" Nested sequences are not supported, but you can use several ones next\n"
" to each other:\n"
"\n"
" http://any.org/archive[1996-1999]/vol[1-4]/part{a,b,c}.html\n"
"\n"
" You can specify any amount of URLs on the command line. They will be\n"
" fetched in a sequential manner in the specified order.\n"
"\n"
, stdout);
fputs(
" You can specify a step counter for the ranges to get every Nth number\n"
" or letter:\n"
"\n"
" http://www.numericals.com/file[1-100:10].txt\n"
" http://www.letters.com/file[a-z:2].txt\n"
"\n"
" If you specify URL without protocol:// prefix, curl will attempt to\n"
" guess what protocol you might want. It will then default to HTTP but\n"
" try other protocols based on often-used host name prefixes. For exam-\n"
, stdout);
fputs(
" ple, for host names starting with \"ftp.\" curl will assume you want to\n"
" speak FTP.\n"
"\n"
" curl will do its best to use what you pass to it as a URL. It is not\n"
" trying to validate it as a syntactically correct URL by any means but\n"
" is instead very liberal with what it accepts.\n"
"\n"
" Curl will attempt to re-use connections for multiple file transfers, so\n"
" that getting many files from the same server will not do multiple con-\n"
, stdout);
fputs(
" nects / handshakes. This improves speed. Of course this is only done on\n"
" files specified on a single command line and cannot be used between\n"
" separate curl invokes.\n"
"\n"
"PROGRESS METER\n"
" curl normally displays a progress meter during operations, indicating\n"
" the amount of transferred data, transfer speeds and estimated time\n"
" left, etc.\n"
"\n"
" curl displays this data to the terminal by default, so if you invoke\n"
, stdout);
fputs(
" curl to do an operation and it is about to write data to the terminal,\n"
" it disables the progress meter as otherwise it would mess up the output\n"
" mixing progress meter and response data.\n"
"\n"
" If you want a progress meter for HTTP POST or PUT requests, you need to\n"
" redirect the response output to a file, using shell redirect (>), -o\n"
" [file] or similar.\n"
"\n"
" It is not the same case for FTP upload as that operation does not spit\n"
, stdout);
fputs(
" out any response data to the terminal.\n"
"\n"
" If you prefer a progress \"bar\" instead of the regular meter, -# is your\n"
" friend.\n"
"OPTIONS\n"
" In general, all boolean options are enabled with --option and yet again\n"
" disabled with --no-option. That is, you use the exact same option name\n"
" but prefix it with \"no-\". However, in this list we mostly only list and\n"
" show the --option version of them. (This concept with --no options was\n"
, stdout);
fputs(
" added in 7.19.0. Previously most options were toggled on/off on\n"
" repeated use of the same command line option.)\n"
"\n"
" -a/--append\n"
" (FTP/SFTP) When used in an upload, this will tell curl to append\n"
" to the target file instead of overwriting it. If the file\n"
" doesn't exist, it will be created. Note that this flag is\n"
" ignored by some SSH servers (including OpenSSH).\n"
"\n"
" -A/--user-agent <agent string>\n"
, stdout);
fputs(
" (HTTP) Specify the User-Agent string to send to the HTTP server.\n"
" Some badly done CGIs fail if this field isn't set to\n"
" \"Mozilla/4.0\". To encode blanks in the string, surround the\n"
" string with single quote marks. This can also be set with the\n"
" -H/--header option of course.\n"
"\n"
" If this option is set more than once, the last one will be the\n"
" one that's used.\n"
"\n"
" --anyauth\n"
, stdout);
fputs(
" (HTTP) Tells curl to figure out authentication method by itself,\n"
" and use the most secure one the remote site claims to support.\n"
" This is done by first doing a request and checking the response-\n"
" headers, thus possibly inducing an extra network round-trip.\n"
" This is used instead of setting a specific authentication\n"
" method, which you can do with --basic, --digest, --ntlm, and\n"
, stdout);
fputs(
" --negotiate.\n"
"\n"
" Note that using --anyauth is not recommended if you do uploads\n"
" from stdin, since it may require data to be sent twice and then\n"
" the client must be able to rewind. If the need should arise when\n"
" uploading from stdin, the upload operation will fail.\n"
"\n"
" -b/--cookie <name=data>\n"
" (HTTP) Pass the data to the HTTP server as a cookie. It is sup-\n"
, stdout);
fputs(
" posedly the data previously received from the server in a \"Set-\n"
" Cookie:\" line. The data should be in the format \"NAME1=VALUE1;\n"
" NAME2=VALUE2\".\n"
"\n"
" If no '=' symbol is used in the line, it is treated as a file-\n"
" name to use to read previously stored cookie lines from, which\n"
" should be used in this session if they match. Using this method\n"
, stdout);
fputs(
" also activates the \"cookie parser\" which will make curl record\n"
" incoming cookies too, which may be handy if you're using this in\n"
" combination with the -L/--location option. The file format of\n"
" the file to read cookies from should be plain HTTP headers or\n"
" the Netscape/Mozilla cookie file format.\n"
"\n"
" NOTE that the file specified with -b/--cookie is only used as\n"
, stdout);
fputs(
" input. No cookies will be stored in the file. To store cookies,\n"
" use the -c/--cookie-jar option or you could even save the HTTP\n"
" headers to a file using -D/--dump-header!\n"
"\n"
" If this option is set more than once, the last one will be the\n"
" one that's used.\n"
"\n"
" -B/--use-ascii\n"
" Enable ASCII transfer when using FTP or LDAP. For FTP, this can\n"
, stdout);
fputs(
" also be enforced by using an URL that ends with \";type=A\". This\n"
" option causes data sent to stdout to be in text mode for win32\n"
" systems.\n"
"\n"
" --basic\n"
" (HTTP) Tells curl to use HTTP Basic authentication. This is the\n"
" default and this option is usually pointless, unless you use it\n"
" to override a previously set option that sets a different\n"
, stdout);
fputs(
" authentication method (such as --ntlm, --digest, or --negoti-\n"
" ate).\n"
"\n"
" --ciphers <list of ciphers>\n"
" (SSL) Specifies which ciphers to use in the connection. The list\n"
" of ciphers must specify valid ciphers. Read up on SSL cipher\n"
" list details on this URL:\n"
" http://www.openssl.org/docs/apps/ciphers.html\n"
"\n"
, stdout);
fputs(
" NSS ciphers are done differently than OpenSSL and GnuTLS. The\n"
" full list of NSS ciphers is in the NSSCipherSuite entry at this\n"
" URL: http://directory.fedora.redhat.com/docs/mod_nss.html#Direc-\n"
" tives\n"
"\n"
" If this option is used several times, the last one will override\n"
" the others.\n"
"\n"
" --compressed\n"
" (HTTP) Request a compressed response using one of the algorithms\n"
, stdout);
fputs(
" libcurl supports, and save the uncompressed document. If this\n"
" option is used and the server sends an unsupported encoding,\n"
" curl will report an error.\n"
"\n"
" --connect-timeout <seconds>\n"
" Maximum time in seconds that you allow the connection to the\n"
" server to take. This only limits the connection phase, once\n"
" curl has connected this option is of no more use. See also the\n"
, stdout);
fputs(
" -m/--max-time option.\n"
"\n"
" If this option is used several times, the last one will be used.\n"
"\n"
" -c/--cookie-jar <file name>\n"
" Specify to which file you want curl to write all cookies after a\n"
" completed operation. Curl writes all cookies previously read\n"
" from a specified file as well as all cookies received from\n"
" remote server(s). If no cookies are known, no file will be writ-\n"
, stdout);
fputs(
" ten. The file will be written using the Netscape cookie file\n"
" format. If you set the file name to a single dash, \"-\", the\n"
" cookies will be written to stdout.\n"
"\n"
" NOTE If the cookie jar can't be created or written to, the whole\n"
" curl operation won't fail or even report an error clearly. Using\n"
" -v will get a warning displayed, but that is the only visible\n"
, stdout);
fputs(
" feedback you get about this possibly lethal situation.\n"
"\n"
" If this option is used several times, the last specified file\n"
" name will be used.\n"
"\n"
" -C/--continue-at <offset>\n"
" Continue/Resume a previous file transfer at the given offset.\n"
" The given offset is the exact number of bytes that will be\n"
" skipped, counting from the beginning of the source file before\n"
, stdout);
fputs(
" it is transferred to the destination. If used with uploads, the\n"
" FTP server command SIZE will not be used by curl.\n"
"\n"
" Use \"-C -\" to tell curl to automatically find out where/how to\n"
" resume the transfer. It then uses the given output/input files\n"
" to figure that out.\n"
"\n"
" If this option is used several times, the last one will be used.\n"
"\n"
" --create-dirs\n"
, stdout);
fputs(
" When used in conjunction with the -o option, curl will create\n"
" the necessary local directory hierarchy as needed. This option\n"
" creates the dirs mentioned with the -o option, nothing else. If\n"
" the -o file name uses no dir or if the dirs it mentions already\n"
" exist, no dir will be created.\n"
"\n"
" To create remote directories when using FTP or SFTP, try --ftp-\n"
" create-dirs.\n"
"\n"
, stdout);
fputs(
" --crlf (FTP) Convert LF to CRLF in upload. Useful for MVS (OS/390).\n"
"\n"
" --crlfile <file>\n"
" (HTTPS/FTPS) Provide a file using PEM format with a Certificate\n"
" Revocation List that may specify peer certificates that are to\n"
" be considered revoked.\n"
"\n"
" If this option is used several times, the last one will be used.\n"
"\n"
" (Added in 7.19.7)\n"
"\n"
" -d/--data <data>\n"
, stdout);
fputs(
" (HTTP) Sends the specified data in a POST request to the HTTP\n"
" server, in the same way that a browser does when a user has\n"
" filled in an HTML form and presses the submit button. This will\n"
" cause curl to pass the data to the server using the content-type\n"
" application/x-www-form-urlencoded. Compare to -F/--form.\n"
"\n"
" -d/--data is the same as --data-ascii. To post data purely\n"
, stdout);
fputs(
" binary, you should instead use the --data-binary option. To URL-\n"
" encode the value of a form field you may use --data-urlencode.\n"
"\n"
" If any of these options is used more than once on the same com-\n"
" mand line, the data pieces specified will be merged together\n"
" with a separating &-symbol. Thus, using '-d name=daniel -d\n"
" skill=lousy' would generate a post chunk that looks like\n"
, stdout);
fputs(
" 'name=daniel&skill=lousy'.\n"
"\n"
" If you start the data with the letter @, the rest should be a\n"
" file name to read the data from, or - if you want curl to read\n"
" the data from stdin. The contents of the file must already be\n"
" URL-encoded. Multiple files can also be specified. Posting data\n"
" from a file named 'foobar' would thus be done with --data @foo-\n"
" bar.\n"
"\n"
" --data-binary <data>\n"
, stdout);
fputs(
" (HTTP) This posts data exactly as specified with no extra pro-\n"
" cessing whatsoever.\n"
"\n"
" If you start the data with the letter @, the rest should be a\n"
" filename. Data is posted in a similar manner as --data-ascii\n"
" does, except that newlines are preserved and conversions are\n"
" never done.\n"
"\n"
" If this option is used several times, the ones following the\n"
, stdout);
fputs(
" first will append data as described in -d/--data.\n"
"\n"
" --data-urlencode <data>\n"
" (HTTP) This posts data, similar to the other --data options with\n"
" the exception that this performs URL-encoding. (Added in 7.18.0)\n"
" To be CGI-compliant, the <data> part should begin with a name\n"
" followed by a separator and a content specification. The <data>\n"
" part can be passed to curl using one of the following syntaxes:\n"
"\n"
, stdout);
fputs(
" content\n"
" This will make curl URL-encode the content and pass that\n"
" on. Just be careful so that the content doesn't contain\n"
" any = or @ symbols, as that will then make the syntax\n"
" match one of the other cases below!\n"
"\n"
" =content\n"
" This will make curl URL-encode the content and pass that\n"
" on. The preceding = symbol is not included in the data.\n"
"\n"
, stdout);
fputs(
" name=content\n"
" This will make curl URL-encode the content part and pass\n"
" that on. Note that the name part is expected to be URL-\n"
" encoded already.\n"
"\n"
" @filename\n"
" This will make curl load data from the given file\n"
" (including any newlines), URL-encode that data and pass\n"
" it on in the POST.\n"
"\n"
" name@filename\n"
, stdout);
fputs(
" This will make curl load data from the given file\n"
" (including any newlines), URL-encode that data and pass\n"
" it on in the POST. The name part gets an equal sign\n"
" appended, resulting in name=urlencoded-file-content. Note\n"
" that the name is expected to be URL-encoded already.\n"
"\n"
" --digest\n"
" (HTTP) Enables HTTP Digest authentication. This is a authentica-\n"
, stdout);
fputs(
" tion that prevents the password from being sent over the wire in\n"
" clear text. Use this in combination with the normal -u/--user\n"
" option to set user name and password. See also --ntlm, --negoti-\n"
" ate and --anyauth for related options.\n"
"\n"
" If this option is used several times, the following occurrences\n"
" make no difference.\n"
"\n"
" --disable-eprt\n"
, stdout);
fputs(
" (FTP) Tell curl to disable the use of the EPRT and LPRT commands\n"
" when doing active FTP transfers. Curl will normally always first\n"
" attempt to use EPRT, then LPRT before using PORT, but with this\n"
" option, it will use PORT right away. EPRT and LPRT are exten-\n"
" sions to the original FTP protocol, and may not work on all\n"
" servers, but they enable more functionality in a better way than\n"
, stdout);
fputs(
" the traditional PORT command.\n"
"\n"
" --eprt can be used to explicitly enable EPRT again and --no-eprt\n"
" is an alias for --disable-eprt.\n"
"\n"
" Disabling EPRT only changes the active behavior. If you want to\n"
" switch to passive mode you need to not use -P/--ftp-port or\n"
" force it with --ftp-pasv.\n"
"\n"
" --disable-epsv\n"
" (FTP) Tell curl to disable the use of the EPSV command when\n"
, stdout);
fputs(
" doing passive FTP transfers. Curl will normally always first\n"
" attempt to use EPSV before PASV, but with this option, it will\n"
" not try using EPSV.\n"
"\n"
" --epsv can be used to explicitly enable EPRT again and --no-epsv\n"
" is an alias for --disable-epsv.\n"
"\n"
" Disabling EPSV only changes the passive behavior. If you want to\n"
" switch to active mode you need to use -P/--ftp-port.\n"
"\n"
" -D/--dump-header <file>\n"
, stdout);
fputs(
" Write the protocol headers to the specified file.\n"
"\n"
" This option is handy to use when you want to store the headers\n"
" that a HTTP site sends to you. Cookies from the headers could\n"
" then be read in a second curl invocation by using the\n"
" -b/--cookie option! The -c/--cookie-jar option is however a bet-\n"
" ter way to store cookies.\n"
"\n"
, stdout);
fputs(
" When used in FTP, the FTP server response lines are considered\n"
" being \"headers\" and thus are saved there.\n"
"\n"
" If this option is used several times, the last one will be used.\n"
"\n"
" -e/--referer <URL>\n"
" (HTTP) Sends the \"Referer Page\" information to the HTTP server.\n"
" This can also be set with the -H/--header flag of course. When\n"
" used with -L/--location you can append \";auto\" to the --referer\n"
, stdout);
fputs(
" URL to make curl automatically set the previous URL when it fol-\n"
" lows a Location: header. The \";auto\" string can be used alone,\n"
" even if you don't set an initial --referer.\n"
"\n"
" If this option is used several times, the last one will be used.\n"
"\n"
" --engine <name>\n"
" Select the OpenSSL crypto engine to use for cipher operations.\n"
" Use --engine list to print a list of build-time supported\n"
, stdout);
fputs(
" engines. Note that not all (or none) of the engines may be\n"
" available at run-time.\n"
"\n"
" --environment\n"
" (RISC OS ONLY) Sets a range of environment variables, using the\n"
" names the -w option supports, to allow easier extraction of use-\n"
" ful information after having run curl.\n"
"\n"
" --egd-file <file>\n"
" (SSL) Specify the path name to the Entropy Gathering Daemon\n"
, stdout);
fputs(
" socket. The socket is used to seed the random engine for SSL\n"
" connections. See also the --random-file option.\n"
"\n"
" -E/--cert <certificate[:password]>\n"
" (SSL) Tells curl to use the specified client certificate file\n"
" when getting a file with HTTPS, FTPS or another SSL-based proto-\n"
" col. The certificate must be in PEM format. If the optional\n"
" password isn't specified, it will be queried for on the termi-\n"
, stdout);
fputs(
" nal. Note that this option assumes a \"certificate\" file that is\n"
" the private key and the private certificate concatenated! See\n"
" --cert and --key to specify them independently.\n"
"\n"
" If curl is built against the NSS SSL library then this option\n"
" can tell curl the nickname of the certificate to use within the\n"
" NSS database defined by the environment variable SSL_DIR (or by\n"
, stdout);
fputs(
" default /etc/pki/nssdb). If the NSS PEM PKCS#11 module (lib-\n"
" nsspem.so) is available then PEM files may be loaded. If you\n"
" want to use a file from the current directory, please precede it\n"
" with \"./\" prefix, in order to avoid confusion with a nickname.\n"
"\n"
" If this option is used several times, the last one will be used.\n"
"\n"
" --cert-type <type>\n"
" (SSL) Tells curl what certificate type the provided certificate\n"
, stdout);
fputs(
" is in. PEM, DER and ENG are recognized types. If not specified,\n"
" PEM is assumed.\n"
"\n"
" If this option is used several times, the last one will be used.\n"
"\n"
" --cacert <CA certificate>\n"
" (SSL) Tells curl to use the specified certificate file to verify\n"
" the peer. The file may contain multiple CA certificates. The\n"
" certificate(s) must be in PEM format. Normally curl is built to\n"
, stdout);
fputs(
" use a default file for this, so this option is typically used to\n"
" alter that default file.\n"
"\n"
" curl recognizes the environment variable named 'CURL_CA_BUNDLE'\n"
" if it is set, and uses the given path as a path to a CA cert\n"
" bundle. This option overrides that variable.\n"
"\n"
" The windows version of curl will automatically look for a CA\n"
" certs file named 'curl-ca-bundle.crt', either in the same direc-\n"
, stdout);
fputs(
" tory as curl.exe, or in the Current Working Directory, or in any\n"
" folder along your PATH.\n"
"\n"
" If curl is built against the NSS SSL library then this option\n"
" tells curl the nickname of the CA certificate to use within the\n"
" NSS database defined by the environment variable SSL_DIR (or by\n"
" default /etc/pki/nssdb). If the NSS PEM PKCS#11 module (lib-\n"
, stdout);
fputs(
" nsspem.so) is available then PEM files may be loaded.\n"
"\n"
" If this option is used several times, the last one will be used.\n"
"\n"
" --capath <CA certificate directory>\n"
" (SSL) Tells curl to use the specified certificate directory to\n"
" verify the peer. The certificates must be in PEM format, and if\n"
" curl is built against OpenSSL, the directory must have been pro-\n"
, stdout);
fputs(
" cessed using the c_rehash utility supplied with OpenSSL. Using\n"
" --capath can allow OpenSSL-powered curl to make SSL-connections\n"
" much more efficiently than using --cacert if the --cacert file\n"
" contains many CA certificates.\n"
"\n"
" If this option is used several times, the last one will be used.\n"
"\n"
" -f/--fail\n"
" (HTTP) Fail silently (no output at all) on server errors. This\n"
, stdout);
fputs(
" is mostly done to better enable scripts etc to better deal with\n"
" failed attempts. In normal cases when a HTTP server fails to\n"
" deliver a document, it returns an HTML document stating so\n"
" (which often also describes why and more). This flag will pre-\n"
" vent curl from outputting that and return error 22.\n"
"\n"
" This method is not fail-safe and there are occasions where non-\n"
, stdout);
fputs(
" successful response codes will slip through, especially when\n"
" authentication is involved (response codes 401 and 407).\n"
"\n"
" --ftp-account [data]\n"
" (FTP) When an FTP server asks for \"account data\" after user name\n"
" and password has been provided, this data is sent off using the\n"
" ACCT command. (Added in 7.13.0)\n"
"\n"
" If this option is used twice, the second will override the pre-\n"
" vious use.\n"
"\n"
, stdout);
fputs(
" --ftp-create-dirs\n"
" (FTP/SFTP) When an FTP or SFTP URL/operation uses a path that\n"
" doesn't currently exist on the server, the standard behavior of\n"
" curl is to fail. Using this option, curl will instead attempt to\n"
" create missing directories.\n"
"\n"
" --ftp-method [method]\n"
" (FTP) Control what method curl should use to reach a file on a\n"
" FTP(S) server. The method argument should be one of the follow-\n"
, stdout);
fputs(
" ing alternatives:\n"
"\n"
" multicwd\n"
" curl does a single CWD operation for each path part in\n"
" the given URL. For deep hierarchies this means very many\n"
" commands. This is how RFC 1738 says it should be done.\n"
" This is the default but the slowest behavior.\n"
"\n"
" nocwd curl does no CWD at all. curl will do SIZE, RETR, STOR\n"
, stdout);
fputs(
" etc and give a full path to the server for all these com-\n"
" mands. This is the fastest behavior.\n"
"\n"
" singlecwd\n"
" curl does one CWD with the full target directory and then\n"
" operates on the file \"normally\" (like in the multicwd\n"
" case). This is somewhat more standards compliant than\n"
" 'nocwd' but without the full penalty of 'multicwd'.\n"
" (Added in 7.15.1)\n"
"\n"
, stdout);
fputs(
" --ftp-pasv\n"
" (FTP) Use passive mode for the data connection. Passive is the\n"
" internal default behavior, but using this option can be used to\n"
" override a previous -P/-ftp-port option. (Added in 7.11.0)\n"
"\n"
" If this option is used several times, the following occurrences\n"
" make no difference. Undoing an enforced passive really isn't\n"
" doable but you must then instead enforce the correct -P/--ftp-\n"
, stdout);
fputs(
" port again.\n"
"\n"
" Passive mode means that curl will try the EPSV command first and\n"
" then PASV, unless --disable-epsv is used.\n"
"\n"
" --ftp-alternative-to-user <command>\n"
" (FTP) If authenticating with the USER and PASS commands fails,\n"
" send this command. When connecting to Tumbleweed's Secure\n"
" Transport server over FTPS using a client certificate, using\n"
, stdout);
fputs(
" \"SITE AUTH\" will tell the server to retrieve the username from\n"
" the certificate. (Added in 7.15.5)\n"
"\n"
" --ftp-skip-pasv-ip\n"
" (FTP) Tell curl to not use the IP address the server suggests in\n"
" its response to curl's PASV command when curl connects the data\n"
" connection. Instead curl will re-use the same IP address it\n"
" already uses for the control connection. (Added in 7.14.2)\n"
"\n"
, stdout);
fputs(
" This option has no effect if PORT, EPRT or EPSV is used instead\n"
" of PASV.\n"
"\n"
" --ftp-pret\n"
" (FTP) Tell curl to send a PRET command before PASV (and EPSV).\n"
" Certain FTP servers, mainly drftpd, require this non-standard\n"
" command for directory listings as well as up and downloads in\n"
" PASV mode. (Added in 7.20.x)\n"
"\n"
" --ssl (FTP, POP3, IMAP, SMTP) Try to use SSL/TLS for the connection.\n"
, stdout);
fputs(
" Reverts to a non-secure connection if the server doesn't support\n"
" SSL/TLS. See also --ftp-ssl-control and --ssl-reqd for differ-\n"
" ent levels of encryption required. (Added in 7.20.0)\n"
"\n"
" This option was formerly known as --ftp-ssl (Added in 7.11.0)\n"
" and that can still be used but will be removed in a future ver-\n"
" sion.\n"
"\n"
" --ftp-ssl-control\n"
, stdout);
fputs(
" (FTP) Require SSL/TLS for the FTP login, clear for transfer.\n"
" Allows secure authentication, but non-encrypted data transfers\n"
" for efficiency. Fails the transfer if the server doesn't sup-\n"
" port SSL/TLS. (Added in 7.16.0)\n"
"\n"
" --ssl-reqd\n"
" (FTP, POP3, IMAP, SMTP) Require SSL/TLS for the connection.\n"
" Terminates the connection if the server doesn't support SSL/TLS.\n"
" (Added in 7.20.0)\n"
"\n"
, stdout);
fputs(
" This option was formerly known as --ftp-ssl-reqd (added in\n"
" 7.15.5) and that can still be used but will be removed in a\n"
" future version.\n"
"\n"
" --ftp-ssl-ccc\n"
" (FTP) Use CCC (Clear Command Channel) Shuts down the SSL/TLS\n"
" layer after authenticating. The rest of the control channel com-\n"
" munication will be unencrypted. This allows NAT routers to fol-\n"
, stdout);
fputs(
" low the FTP transaction. The default mode is passive. See --ftp-\n"
" ssl-ccc-mode for other modes. (Added in 7.16.1)\n"
"\n"
" --ftp-ssl-ccc-mode [active/passive]\n"
" (FTP) Use CCC (Clear Command Channel) Sets the CCC mode. The\n"
" passive mode will not initiate the shutdown, but instead wait\n"
" for the server to do it, and will not reply to the shutdown from\n"
, stdout);
fputs(
" the server. The active mode initiates the shutdown and waits for\n"
" a reply from the server. (Added in 7.16.2)\n"
"\n"
" -F/--form <name=content>\n"
" (HTTP) This lets curl emulate a filled-in form in which a user\n"
" has pressed the submit button. This causes curl to POST data\n"
" using the Content-Type multipart/form-data according to RFC\n"
" 2388. This enables uploading of binary files etc. To force the\n"
, stdout);
fputs(
" 'content' part to be a file, prefix the file name with an @\n"
" sign. To just get the content part from a file, prefix the file\n"
" name with the symbol <. The difference between @ and < is then\n"
" that @ makes a file get attached in the post as a file upload,\n"
" while the < makes a text field and just get the contents for\n"
" that text field from a file.\n"
"\n"
, stdout);
fputs(
" Example, to send your password file to the server, where 'pass-\n"
" word' is the name of the form-field to which /etc/passwd will be\n"
" the input:\n"
"\n"
" curl -F password=@/etc/passwd www.mypasswords.com\n"
"\n"
" To read content from stdin instead of a file, use - as the file-\n"
" name. This goes for both @ and < constructs.\n"
"\n"
" You can also tell curl what Content-Type to use by using\n"
, stdout);
fputs(
" 'type=', in a manner similar to:\n"
"\n"
" curl -F \"web=@index.html;type=text/html\" url.com\n"
"\n"
" or\n"
"\n"
" curl -F \"name=daniel;type=text/foo\" url.com\n"
"\n"
" You can also explicitly change the name field of a file upload\n"
" part by setting filename=, like this:\n"
"\n"
" curl -F \"file=@localfile;filename=nameinpost\" url.com\n"
"\n"
" See further examples and details in the MANUAL.\n"
"\n"
, stdout);
fputs(
" This option can be used multiple times.\n"
"\n"
" --form-string <name=string>\n"
" (HTTP) Similar to --form except that the value string for the\n"
" named parameter is used literally. Leading '@' and '<' charac-\n"
" ters, and the ';type=' string in the value have no special mean-\n"
" ing. Use this in preference to --form if there's any possibility\n"
" that the string value may accidentally trigger the '@' or '<'\n"
, stdout);
fputs(
" features of --form.\n"
"\n"
" -g/--globoff\n"
" This option switches off the \"URL globbing parser\". When you set\n"
" this option, you can specify URLs that contain the letters {}[]\n"
" without having them being interpreted by curl itself. Note that\n"
" these letters are not normal legal URL contents but they should\n"
" be encoded according to the URI standard.\n"
"\n"
" -G/--get\n"
, stdout);
fputs(
" When used, this option will make all data specified with\n"
" -d/--data or --data-binary to be used in a HTTP GET request\n"
" instead of the POST request that otherwise would be used. The\n"
" data will be appended to the URL with a '?' separator.\n"
"\n"
" If used in combination with -I, the POST data will instead be\n"
" appended to the URL with a HEAD request.\n"
"\n"
, stdout);
fputs(
" If this option is used several times, the following occurrences\n"
" make no difference. This is because undoing a GET doesn't make\n"
" sense, but you should then instead enforce the alternative\n"
" method you prefer.\n"
"\n"
" -h/--help\n"
" Usage help.\n"
"\n"
" -H/--header <header>\n"
" (HTTP) Extra header to use when getting a web page. You may\n"
, stdout);
fputs(
" specify any number of extra headers. Note that if you should add\n"
" a custom header that has the same name as one of the internal\n"
" ones curl would use, your externally set header will be used\n"
" instead of the internal one. This allows you to make even trick-\n"
" ier stuff than curl would normally do. You should not replace\n"
" internally set headers without knowing perfectly well what\n"
, stdout);
fputs(
" you're doing. Remove an internal header by giving a replacement\n"
" without content on the right side of the colon, as in: -H\n"
" \"Host:\".\n"
"\n"
" curl will make sure that each header you add/replace is sent\n"
" with the proper end-of-line marker, you should thus not add that\n"
" as a part of the header content: do not add newlines or carriage\n"
" returns, they will only mess things up for you.\n"
"\n"
, stdout);
fputs(
" See also the -A/--user-agent and -e/--referer options.\n"
"\n"
" This option can be used multiple times to add/replace/remove\n"
" multiple headers.\n"
"\n"
" --hostpubmd5 <md5>\n"
" Pass a string containing 32 hexadecimal digits. The string\n"
" should be the 128 bit MD5 checksum of the remote host's public\n"
" key, curl will refuse the connection with the host unless the\n"
, stdout);
fputs(
" md5sums match. This option is only for SCP and SFTP transfers.\n"
" (Added in 7.17.1)\n"
"\n"
" --ignore-content-length\n"
" (HTTP) Ignore the Content-Length header. This is particularly\n"
" useful for servers running Apache 1.x, which will report incor-\n"
" rect Content-Length for files larger than 2 gigabytes.\n"
"\n"
" -i/--include\n"
" (HTTP) Include the HTTP-header in the output. The HTTP-header\n"
, stdout);
fputs(
" includes things like server-name, date of the document, HTTP-\n"
" version and more...\n"
"\n"
" --interface <name>\n"
" Perform an operation using a specified interface. You can enter\n"
" interface name, IP address or host name. An example could look\n"
" like:\n"
"\n"
" curl --interface eth0:1 http://www.netscape.com/\n"
"\n"
" If this option is used several times, the last one will be used.\n"
"\n"
" -I/--head\n"
, stdout);
fputs(
" (HTTP/FTP/FILE) Fetch the HTTP-header only! HTTP-servers feature\n"
" the command HEAD which this uses to get nothing but the header\n"
" of a document. When used on a FTP or FILE file, curl displays\n"
" the file size and last modification time only.\n"
"\n"
" -j/--junk-session-cookies\n"
" (HTTP) When curl is told to read cookies from a given file, this\n"
" option will make it discard all \"session cookies\". This will\n"
, stdout);
fputs(
" basically have the same effect as if a new session is started.\n"
" Typical browsers always discard session cookies when they're\n"
" closed down.\n"
"\n"
" -J/--remote-header-name\n"
" (HTTP) This option tells the -O/--remote-name option to use the\n"
" server-specified Content-Disposition filename instead of\n"
" extracting a filename from the URL.\n"
"\n"
" -k/--insecure\n"
, stdout);
fputs(
" (SSL) This option explicitly allows curl to perform \"insecure\"\n"
" SSL connections and transfers. All SSL connections are attempted\n"
" to be made secure by using the CA certificate bundle installed\n"
" by default. This makes all connections considered \"insecure\"\n"
" fail unless -k/--insecure is used.\n"
"\n"
" See this online resource for further details:\n"
" http://curl.haxx.se/docs/sslcerts.html\n"
, stdout);
fputs(
"\n"
" --keepalive-time <seconds>\n"
" This option sets the time a connection needs to remain idle\n"
" before sending keepalive probes and the time between individual\n"
" keepalive probes. It is currently effective on operating systems\n"
" offering the TCP_KEEPIDLE and TCP_KEEPINTVL socket options\n"
" (meaning Linux, recent AIX, HP-UX and more). This option has no\n"
" effect if --no-keepalive is used. (Added in 7.18.0)\n"
"\n"
, stdout);
fputs(
" If this option is used multiple times, the last occurrence sets\n"
" the amount.\n"
" --key <key>\n"
" (SSL/SSH) Private key file name. Allows you to provide your pri-\n"
" vate key in this separate file.\n"
"\n"
" If this option is used several times, the last one will be used.\n"
"\n"
" --key-type <type>\n"
" (SSL) Private key file type. Specify which type your --key pro-\n"
, stdout);
fputs(
" vided private key is. DER, PEM, and ENG are supported. If not\n"
" specified, PEM is assumed.\n"
"\n"
" If this option is used several times, the last one will be used.\n"
"\n"
" --krb <level>\n"
" (FTP) Enable Kerberos authentication and use. The level must be\n"
" entered and should be one of 'clear', 'safe', 'confidential', or\n"
" 'private'. Should you use a level that is not one of these,\n"
, stdout);
fputs(
" 'private' will instead be used.\n"
"\n"
" This option requires a library built with kerberos4 or GSSAPI\n"
" (GSS-Negotiate) support. This is not very common. Use -V/--ver-\n"
" sion to see if your curl supports it.\n"
"\n"
" If this option is used several times, the last one will be used.\n"
"\n"
" -K/--config <config file>\n"
" Specify which config file to read curl arguments from. The con-\n"
, stdout);
fputs(
" fig file is a text file in which command line arguments can be\n"
" written which then will be used as if they were written on the\n"
" actual command line. Options and their parameters must be speci-\n"
" fied on the same config file line, separated by whitespace,\n"
" colon, the equals sign or any combination thereof (however, the\n"
" preferred separator is the equals sign). If the parameter is to\n"
, stdout);
fputs(
" contain whitespace, the parameter must be enclosed within\n"
" quotes. Within double quotes, the following escape sequences are\n"
" available: \\\\, \\\", \\t, \\n, \\r and \\v. A backslash preceding any\n"
" other letter is ignored. If the first column of a config line is\n"
" a '#' character, the rest of the line will be treated as a com-\n"
" ment. Only write one option per physical line in the config\n"
" file.\n"
"\n"
, stdout);
fputs(
" Specify the filename to -K/--config as '-' to make curl read the\n"
" file from stdin.\n"
"\n"
" Note that to be able to specify a URL in the config file, you\n"
" need to specify it using the --url option, and not by simply\n"
" writing the URL on its own line. So, it could look similar to\n"
" this:\n"
"\n"
" url = \"http://curl.haxx.se/docs/\"\n"
"\n"
" Long option names can optionally be given in the config file\n"
, stdout);
fputs(
" without the initial double dashes.\n"
"\n"
" When curl is invoked, it always (unless -q is used) checks for a\n"
" default config file and uses it if found. The default config\n"
" file is checked for in the following places in this order:\n"
"\n"
" 1) curl tries to find the \"home dir\": It first checks for the\n"
" CURL_HOME and then the HOME environment variables. Failing that,\n"
, stdout);
fputs(
" it uses getpwuid() on UNIX-like systems (which returns the home\n"
" dir given the current user in your system). On Windows, it then\n"
" checks for the APPDATA variable, or as a last resort the '%USER-\n"
" PROFILE%\\Application Data'.\n"
"\n"
" 2) On windows, if there is no _curlrc file in the home dir, it\n"
" checks for one in the same dir the curl executable is placed. On\n"
, stdout);
fputs(
" UNIX-like systems, it will simply try to load .curlrc from the\n"
" determined home dir.\n"
"\n"
" # --- Example file ---\n"
" # this is a comment\n"
" url = \"curl.haxx.se\"\n"
" output = \"curlhere.html\"\n"
" user-agent = \"superagent/1.0\"\n"
"\n"
" # and fetch another URL too\n"
" url = \"curl.haxx.se/docs/manpage.html\"\n"
" -O\n"
" referer = \"http://nowhereatall.com/\"\n"
, stdout);
fputs(
" # --- End of example file ---\n"
"\n"
" This option can be used multiple times to load multiple config\n"
" files.\n"
"\n"
" --libcurl <file>\n"
" Append this option to any ordinary curl command line, and you\n"
" will get a libcurl-using source code written to the file that\n"
" does the equivalent of what your command-line operation does!\n"
"\n"
" NOTE: this does not properly support -F and the sending of mul-\n"
, stdout);
fputs(
" tipart formposts, so in those cases the output program will be\n"
" missing necessary calls to curl_formadd(3), and possibly more.\n"
"\n"
" If this option is used several times, the last given file name\n"
" will be used. (Added in 7.16.1)\n"
"\n"
" --limit-rate <speed>\n"
" Specify the maximum transfer rate you want curl to use. This\n"
" feature is useful if you have a limited pipe and you'd like your\n"
, stdout);
fputs(
" transfer not to use your entire bandwidth.\n"
"\n"
" The given speed is measured in bytes/second, unless a suffix is\n"
" appended. Appending 'k' or 'K' will count the number as kilo-\n"
" bytes, 'm' or M' makes it megabytes, while 'g' or 'G' makes it\n"
" gigabytes. Examples: 200K, 3m and 1G.\n"
"\n"
" The given rate is the average speed counted during the entire\n"
, stdout);
fputs(
" transfer. It means that curl might use higher transfer speeds in\n"
" short bursts, but over time it uses no more than the given rate.\n"
" If you also use the -Y/--speed-limit option, that option will\n"
" take precedence and might cripple the rate-limiting slightly, to\n"
" help keeping the speed-limit logic working.\n"
"\n"
" If this option is used several times, the last one will be used.\n"
"\n"
" -l/--list-only\n"
, stdout);
fputs(
" (FTP) When listing an FTP directory, this switch forces a name-\n"
" only view. Especially useful if you want to machine-parse the\n"
" contents of an FTP directory since the normal directory view\n"
" doesn't use a standard look or format.\n"
"\n"
" This option causes an FTP NLST command to be sent. Some FTP\n"
" servers list only files in their response to NLST; they do not\n"
, stdout);
fputs(
" include subdirectories and symbolic links.\n"
"\n"
" --local-port <num>[-num]\n"
" Set a preferred number or range of local port numbers to use for\n"
" the connection(s). Note that port numbers by nature are a\n"
" scarce resource that will be busy at times so setting this range\n"
" to something too narrow might cause unnecessary connection setup\n"
" failures. (Added in 7.15.2)\n"
"\n"
" -L/--location\n"
, stdout);
fputs(
" (HTTP/HTTPS) If the server reports that the requested page has\n"
" moved to a different location (indicated with a Location: header\n"
" and a 3XX response code), this option will make curl redo the\n"
" request on the new place. If used together with -i/--include or\n"
" -I/--head, headers from all requested pages will be shown. When\n"
" authentication is used, curl only sends its credentials to the\n"
, stdout);
fputs(
" initial host. If a redirect takes curl to a different host, it\n"
" won't be able to intercept the user+password. See also --loca-\n"
" tion-trusted on how to change this. You can limit the amount of\n"
" redirects to follow by using the --max-redirs option.\n"
"\n"
" When curl follows a redirect and the request is not a plain GET\n"
" (for example POST or PUT), it will do the following request with\n"
, stdout);
fputs(
" a GET if the HTTP response was 301, 302, or 303. If the response\n"
" code was any other 3xx code, curl will re-send the following\n"
" request using the same unmodified method.\n"
"\n"
" --location-trusted\n"
" (HTTP/HTTPS) Like -L/--location, but will allow sending the name\n"
" + password to all hosts that the site may redirect to. This may\n"
" or may not introduce a security breach if the site redirects you\n"
, stdout);
fputs(
" to a site to which you'll send your authentication info (which\n"
" is plaintext in the case of HTTP Basic authentication).\n"
"\n"
" --mail-rcpt <address>\n"
" (SMTP) Specify a single address that the given mail should get\n"
" sent to. This option can be used multiple times to specify many\n"
" recipients.\n"
"\n"
" (Added in 7.20.0)\n"
"\n"
" --mail-from <address>\n"
, stdout);
fputs(
" (SMTP) Specify a single address that the given mail should get\n"
" sent from.\n"
"\n"
" (Added in 7.20.0)\n"
"\n"
" --max-filesize <bytes>\n"
" Specify the maximum size (in bytes) of a file to download. If\n"
" the file requested is larger than this value, the transfer will\n"
" not start and curl will return with exit code 63.\n"
"\n"
" NOTE: The file size is not always known prior to download, and\n"
, stdout);
fputs(
" for such files this option has no effect even if the file trans-\n"
" fer ends up being larger than this given limit. This concerns\n"
" both FTP and HTTP transfers.\n"
"\n"
" -m/--max-time <seconds>\n"
" Maximum time in seconds that you allow the whole operation to\n"
" take. This is useful for preventing your batch jobs from hang-\n"
" ing for hours due to slow networks or links going down. See\n"
, stdout);
fputs(
" also the --connect-timeout option.\n"
"\n"
" If this option is used several times, the last one will be used.\n"
"\n"
" -M/--manual\n"
" Manual. Display the huge help text.\n"
"\n"
" -n/--netrc\n"
" Makes curl scan the .netrc (_netrc on Windows) file in the\n"
" user's home directory for login name and password. This is typi-\n"
" cally used for FTP on UNIX. If used with HTTP, curl will enable\n"
, stdout);
fputs(
" user authentication. See netrc(4) or ftp(1) for details on the\n"
" file format. Curl will not complain if that file doesn't have\n"
" the right permissions (it should not be either world- or group-\n"
" readable). The environment variable \"HOME\" is used to find the\n"
" home directory.\n"
"\n"
" A quick and very simple example of how to setup a .netrc to\n"
, stdout);
fputs(
" allow curl to FTP to the machine host.domain.com with user name\n"
" 'myself' and password 'secret' should look similar to:\n"
"\n"
" machine host.domain.com login myself password secret\n"
"\n"
" --netrc-optional\n"
" Very similar to --netrc, but this option makes the .netrc usage\n"
" optional and not mandatory as the --netrc option does.\n"
"\n"
" --netrc-file\n"
" This option is similar to --netrc, except that you provide the\n"
, stdout);
fputs(
" path (absolute or relative) to the netrc file that Curl should\n"
" use. You can only specify one netrc file per invocation. If\n"
" several --netrc-file options are provided, only the last one\n"
" will be used. (Added in 7.21.5)\n"
"\n"
" This option overrides any use of --netrc as they are mutually\n"
" exclusive. It will also abide by --netrc-optional if specified.\n"
"\n"
" --negotiate\n"
, stdout);
fputs(
" (HTTP) Enables GSS-Negotiate authentication. The GSS-Negotiate\n"
" method was designed by Microsoft and is used in their web appli-\n"
" cations. It is primarily meant as a support for Kerberos5\n"
" authentication but may be also used along with another authenti-\n"
" cation method. For more information see IETF draft draft-brezak-\n"
" spnego-http-04.txt.\n"
"\n"
, stdout);
fputs(
" If you want to enable Negotiate for your proxy authentication,\n"
" then use --proxy-negotiate.\n"
"\n"
" This option requires a library built with GSSAPI support. This\n"
" is not very common. Use -V/--version to see if your version sup-\n"
" ports GSS-Negotiate.\n"
"\n"
" When using this option, you must also provide a fake -u/--user\n"
" option to activate the authentication code properly. Sending a\n"
, stdout);
fputs(
" '-u :' is enough as the user name and password from the -u\n"
" option aren't actually used.\n"
"\n"
" If this option is used several times, the following occurrences\n"
" make no difference.\n"
"\n"
" -N/--no-buffer\n"
" Disables the buffering of the output stream. In normal work sit-\n"
" uations, curl will use a standard buffered output stream that\n"
" will have the effect that it will output the data in chunks, not\n"
, stdout);
fputs(
" necessarily exactly when the data arrives. Using this option\n"
" will disable that buffering.\n"
"\n"
" Note that this is the negated option name documented. You can\n"
" thus use --buffer to enforce the buffering.\n"
"\n"
" --no-keepalive\n"
" Disables the use of keepalive messages on the TCP connection, as\n"
" by default curl enables them.\n"
"\n"
" Note that this is the negated option name documented. You can\n"
, stdout);
fputs(
" thus use --keepalive to enforce keepalive.\n"
"\n"
" --no-sessionid\n"
" (SSL) Disable curl's use of SSL session-ID caching. By default\n"
" all transfers are done using the cache. Note that while nothing\n"
" should ever get hurt by attempting to reuse SSL session-IDs,\n"
" there seem to be broken SSL implementations in the wild that may\n"
" require you to disable this in order for you to succeed. (Added\n"
" in 7.16.0)\n"
, stdout);
fputs(
"\n"
" Note that this is the negated option name documented. You can\n"
" thus use --sessionid to enforce session-ID caching.\n"
"\n"
" --noproxy <no-proxy-list>\n"
" Comma-separated list of hosts which do not use a proxy, if one\n"
" is specified. The only wildcard is a single * character, which\n"
" matches all hosts, and effectively disables the proxy. Each name\n"
" in this list is matched as either a domain which contains the\n"
, stdout);
fputs(
" hostname, or the hostname itself. For example, local.com would\n"
" match local.com, local.com:80, and www.local.com, but not\n"
" www.notlocal.com. (Added in 7.19.4).\n"
"\n"
" --ntlm (HTTP) Enables NTLM authentication. The NTLM authentication\n"
" method was designed by Microsoft and is used by IIS web servers.\n"
" It is a proprietary protocol, reverse-engineered by clever peo-\n"
, stdout);
fputs(
" ple and implemented in curl based on their efforts. This kind of\n"
" behavior should not be endorsed, you should encourage everyone\n"
" who uses NTLM to switch to a public and documented authentica-\n"
" tion method instead, such as Digest.\n"
"\n"
" If you want to enable NTLM for your proxy authentication, then\n"
" use --proxy-ntlm.\n"
"\n"
" This option requires a library built with SSL support. Use\n"
, stdout);
fputs(
" -V/--version to see if your curl supports NTLM.\n"
"\n"
" If this option is used several times, the following occurrences\n"
" make no difference.\n"
"\n"
" -o/--output <file>\n"
" Write output to <file> instead of stdout. If you are using {} or\n"
" [] to fetch multiple documents, you can use '#' followed by a\n"
" number in the <file> specifier. That variable will be replaced\n"
, stdout);
fputs(
" with the current string for the URL being fetched. Like in:\n"
"\n"
" curl http://{one,two}.site.com -o \"file_#1.txt\"\n"
"\n"
" or use several variables like:\n"
"\n"
" curl http://{site,host}.host[1-5].com -o \"#1_#2\"\n"
"\n"
" You may use this option as many times as the number of URLs you\n"
" have.\n"
"\n"
" See also the --create-dirs option to create the local directo-\n"
, stdout);
fputs(
" ries dynamically. Specifying the output as '-' (a single dash)\n"
" will force the output to be done to stdout.\n"
"\n"
" -O/--remote-name\n"
" Write output to a local file named like the remote file we get.\n"
" (Only the file part of the remote file is used, the path is cut\n"
" off.)\n"
"\n"
" The remote file name to use for saving is extracted from the\n"
" given URL, nothing else.\n"
"\n"
, stdout);
fputs(
" Consequentially, the file will be saved in the current working\n"
" directory. If you want the file saved in a different directory,\n"
" make sure you change current working directory before you invoke\n"
" curl with the -O/--remote-name flag!\n"
"\n"
" You may use this option as many times as the number of URLs you\n"
" have.\n"
"\n"
" --remote-name-all\n"
" This option changes the default action for all given URLs to be\n"
, stdout);
fputs(
" dealt with as if -O/--remote-name were used for each one. So if\n"
" you want to disable that for a specific URL after --remote-name-\n"
" all has been used, you must use \"-o -\" or --no-remote-name.\n"
" (Added in 7.19.0)\n"
"\n"
" --pass <phrase>\n"
" (SSL/SSH) Passphrase for the private key\n"
"\n"
" If this option is used several times, the last one will be used.\n"
"\n"
" --post301\n"
, stdout);
fputs(
" Tells curl to respect RFC 2616/10.3.2 and not convert POST\n"
" requests into GET requests when following a 301 redirection. The\n"
" non-RFC behaviour is ubiquitous in web browsers, so curl does\n"
" the conversion by default to maintain consistency. However, a\n"
" server may require a POST to remain a POST after such a redi-\n"
" rection. This option is meaningful only when using -L/--location\n"
, stdout);
fputs(
" (Added in 7.17.1)\n"
"\n"
" --post302\n"
" Tells curl to respect RFC 2616/10.3.2 and not convert POST\n"
" requests into GET requests when following a 302 redirection. The\n"
" non-RFC behaviour is ubiquitous in web browsers, so curl does\n"
" the conversion by default to maintain consistency. However, a\n"
" server may require a POST to remain a POST after such a redi-\n"
, stdout);
fputs(
" rection. This option is meaningful only when using -L/--location\n"
" (Added in 7.19.1)\n"
"\n"
" --proto <protocols>\n"
" Tells curl to use the listed protocols for its initial\n"
" retrieval. Protocols are evaluated left to right, are comma sep-\n"
" arated, and are each a protocol name or 'all', optionally pre-\n"
" fixed by zero or more modifiers. Available modifiers are:\n"
"\n"
, stdout);
fputs(
" + Permit this protocol in addition to protocols already permit-\n"
" ted (this is the default if no modifier is used).\n"
"\n"
" - Deny this protocol, removing it from the list of protocols\n"
" already permitted.\n"
"\n"
" = Permit only this protocol (ignoring the list already permit-\n"
" ted), though subject to later modification by subsequent\n"
" entries in the comma separated list.\n"
"\n"
, stdout);
fputs(
" For example:\n"
"\n"
" --proto -ftps uses the default protocols, but disables ftps\n"
"\n"
" --proto -all,https,+http\n"
" only enables http and https\n"
"\n"
" --proto =http,https\n"
" also only enables http and https\n"
"\n"
" Unknown protocols produce a warning. This allows scripts to\n"
" safely rely on being able to disable potentially dangerous pro-\n"
, stdout);
fputs(
" tocols, without relying upon support for that protocol being\n"
" built into curl to avoid an error.\n"
"\n"
" This option can be used multiple times, in which case the effect\n"
" is the same as concatenating the protocols into one instance of\n"
" the option.\n"
"\n"
" (Added in 7.20.2)\n"
"\n"
" --proto-redir <protocols>\n"
" Tells curl to use the listed protocols after a redirect. See\n"
, stdout);
fputs(
" --proto for how protocols are represented.\n"
"\n"
" (Added in 7.20.2)\n"
"\n"
" --proxy-anyauth\n"
" Tells curl to pick a suitable authentication method when commu-\n"
" nicating with the given proxy. This might cause an extra\n"
" request/response round-trip. (Added in 7.13.2)\n"
"\n"
" --proxy-basic\n"
" Tells curl to use HTTP Basic authentication when communicating\n"
, stdout);
fputs(
" with the given proxy. Use --basic for enabling HTTP Basic with a\n"
" remote host. Basic is the default authentication method curl\n"
" uses with proxies.\n"
"\n"
" --proxy-digest\n"
" Tells curl to use HTTP Digest authentication when communicating\n"
" with the given proxy. Use --digest for enabling HTTP Digest with\n"
" a remote host.\n"
"\n"
" --proxy-negotiate\n"
, stdout);
fputs(
" Tells curl to use HTTP Negotiate authentication when communicat-\n"
" ing with the given proxy. Use --negotiate for enabling HTTP\n"
" Negotiate with a remote host. (Added in 7.17.1)\n"
"\n"
" --proxy-ntlm\n"
" Tells curl to use HTTP NTLM authentication when communicating\n"
" with the given proxy. Use --ntlm for enabling NTLM with a remote\n"
" host.\n"
"\n"
" --proxy1.0 <proxyhost[:port]>\n"
, stdout);
fputs(
" Use the specified HTTP 1.0 proxy. If the port number is not\n"
" specified, it is assumed at port 1080.\n"
"\n"
" The only difference between this and the HTTP proxy option\n"
" (-x/--proxy), is that attempts to use CONNECT through the proxy\n"
" will specify an HTTP 1.0 protocol instead of the default HTTP\n"
" 1.1.\n"
"\n"
" -p/--proxytunnel\n"
" When an HTTP proxy is used (-x/--proxy), this option will cause\n"
, stdout);
fputs(
" non-HTTP protocols to attempt to tunnel through the proxy\n"
" instead of merely using it to do HTTP-like operations. The tun-\n"
" nel approach is made with the HTTP proxy CONNECT request and\n"
" requires that the proxy allows direct connect to the remote port\n"
" number curl wants to tunnel through to.\n"
"\n"
" --pubkey <key>\n"
" (SSH) Public key file name. Allows you to provide your public\n"
, stdout);
fputs(
" key in this separate file.\n"
"\n"
" If this option is used several times, the last one will be used.\n"
"\n"
" -P/--ftp-port <address>\n"
" (FTP) Reverses the default initiator/listener roles when con-\n"
" necting with FTP. This switch makes curl use active mode. In\n"
" practice, curl then tells the server to connect back to the\n"
" client's specified address and port, while passive mode asks the\n"
, stdout);
fputs(
" server to setup an IP address and port for it to connect to.\n"
" <address> should be one of:\n"
"\n"
" interface\n"
" i.e \"eth0\" to specify which interface's IP address you\n"
" want to use (Unix only)\n"
"\n"
" IP address\n"
" i.e \"192.168.10.1\" to specify the exact IP address\n"
"\n"
" host name\n"
" i.e \"my.host.domain\" to specify the machine\n"
"\n"
, stdout);
fputs(
" - make curl pick the same IP address that is already used\n"
" for the control connection\n"
"\n"
" If this option is used several times, the last one will be used. Dis-\n"
" able the use of PORT with --ftp-pasv. Disable the attempt to use the\n"
" EPRT command instead of PORT by using --disable-eprt. EPRT is really\n"
" PORT++.\n"
"\n"
" Starting in 7.19.5, you can append \":[start]-[end]\" to the right of the\n"
, stdout);
fputs(
" address, to tell curl what TCP port range to use. That means you spec-\n"
" ify a port range, from a lower to a higher number. A single number\n"
" works as well, but do note that it increases the risk of failure since\n"
" the port may not be available.\n"
"\n"
" -q If used as the first parameter on the command line, the curlrc\n"
" config file will not be read and used. See the -K/--config for\n"
" details on the default config file search path.\n"
"\n"
, stdout);
fputs(
" -Q/--quote <command>\n"
" (FTP/SFTP) Send an arbitrary command to the remote FTP or SFTP\n"
" server. Quote commands are sent BEFORE the transfer takes place\n"
" (just after the initial PWD command in an FTP transfer, to be\n"
" exact). To make commands take place after a successful transfer,\n"
" prefix them with a dash '-'. To make commands be sent after\n"
, stdout);
fputs(
" libcurl has changed the working directory, just before the\n"
" transfer command(s), prefix the command with a '+' (this is only\n"
" supported for FTP). You may specify any number of commands. If\n"
" the server returns failure for one of the commands, the entire\n"
" operation will be aborted. You must send syntactically correct\n"
" FTP commands as RFC 959 defines to FTP servers, or one of the\n"
, stdout);
fputs(
" commands listed below to SFTP servers. This option can be used\n"
" multiple times.\n"
"\n"
" SFTP is a binary protocol. Unlike for FTP, libcurl interprets\n"
" SFTP quote commands itself before sending them to the server.\n"
" File names may be quoted shell-style to embed spaces or special\n"
" characters. Following is the list of all supported SFTP quote\n"
" commands:\n"
"\n"
" chgrp group file\n"
, stdout);
fputs(
" The chgrp command sets the group ID of the file named by\n"
" the file operand to the group ID specified by the group\n"
" operand. The group operand is a decimal integer group ID.\n"
"\n"
" chmod mode file\n"
" The chmod command modifies the file mode bits of the\n"
" specified file. The mode operand is an octal integer mode\n"
" number.\n"
"\n"
" chown user file\n"
, stdout);
fputs(
" The chown command sets the owner of the file named by the\n"
" file operand to the user ID specified by the user oper-\n"
" and. The user operand is a decimal integer user ID.\n"
"\n"
" ln source_file target_file\n"
" The ln and symlink commands create a symbolic link at the\n"
" target_file location pointing to the source_file loca-\n"
" tion.\n"
"\n"
" mkdir directory_name\n"
, stdout);
fputs(
" The mkdir command creates the directory named by the\n"
" directory_name operand.\n"
"\n"
" pwd The pwd command returns the absolute pathname of the cur-\n"
" rent working directory.\n"
"\n"
" rename source target\n"
" The rename command renames the file or directory named by\n"
" the source operand to the destination path named by the\n"
" target operand.\n"
"\n"
, stdout);
fputs(
" rm file\n"
" The rm command removes the file specified by the file op-\n"
" erand.\n"
"\n"
" rmdir directory\n"
" The rmdir command removes the directory entry specified\n"
" by the directory operand, provided it is empty.\n"
"\n"
" symlink source_file target_file\n"
" See ln.\n"
"\n"
" --random-file <file>\n"
" (SSL) Specify the path name to file containing what will be con-\n"
, stdout);
fputs(
" sidered as random data. The data is used to seed the random\n"
" engine for SSL connections. See also the --egd-file option.\n"
"\n"
" -r/--range <range>\n"
" (HTTP/FTP/SFTP/FILE) Retrieve a byte range (i.e a partial docu-\n"
" ment) from a HTTP/1.1, FTP or SFTP server or a local FILE.\n"
" Ranges can be specified in a number of ways.\n"
"\n"
" 0-499 specifies the first 500 bytes\n"
"\n"
, stdout);
fputs(
" 500-999 specifies the second 500 bytes\n"
"\n"
" -500 specifies the last 500 bytes\n"
"\n"
" 9500- specifies the bytes from offset 9500 and forward\n"
"\n"
" 0-0,-1 specifies the first and last byte only(*)(H)\n"
"\n"
" 500-700,600-799\n"
" specifies 300 bytes from offset 500(H)\n"
"\n"
" 100-199,500-599\n"
" specifies two separate 100-byte ranges(*)(H)\n"
"\n"
, stdout);
fputs(
" (*) = NOTE that this will cause the server to reply with a multipart\n"
" response!\n"
"\n"
" Only digit characters (0-9) are valid in the 'start' and 'stop' fields\n"
" of the 'start-stop' range syntax. If a non-digit character is given in\n"
" the range, the server's response will be unspecified, depending on the\n"
" server's configuration.\n"
"\n"
" You should also be aware that many HTTP/1.1 servers do not have this\n"
, stdout);
fputs(
" feature enabled, so that when you attempt to get a range, you'll\n"
" instead get the whole document.\n"
"\n"
" FTP and SFTP range downloads only support the simple 'start-stop' syn-\n"
" tax (optionally with one of the numbers omitted). FTP use depends on\n"
" the extended FTP command SIZE.\n"
"\n"
" If this option is used several times, the last one will be used.\n"
"\n"
" --raw When used, it disables all internal HTTP decoding of content or\n"
, stdout);
fputs(
" transfer encodings and instead makes them passed on unaltered,\n"
" raw. (Added in 7.16.2)\n"
"\n"
" -R/--remote-time\n"
" When used, this will make libcurl attempt to figure out the\n"
" timestamp of the remote file, and if that is available make the\n"
" local file get that same timestamp.\n"
"\n"
" --resolve <host:port:address>\n"
" Provide a custom address for a specific host and port pair.\n"
, stdout);
fputs(
" Using this, you can make the curl requests(s) use a specified\n"
" address and prevent the otherwise normally resolved address to\n"
" be used. Consider it a sort of /etc/hosts alternative provided\n"
" on the command line. The port number should be the number used\n"
" for the specific protocol the host will be used for. It means\n"
" you need several entries if you want to provide address for the\n"
, stdout);
fputs(
" same host but different ports.\n"
"\n"
" This option can be used many times to add many host names to\n"
" resolve.\n"
"\n"
" (Added in 7.21.3)\n"
"\n"
" --retry <num>\n"
" If a transient error is returned when curl tries to perform a\n"
" transfer, it will retry this number of times before giving up.\n"
" Setting the number to 0 makes curl do no retries (which is the\n"
, stdout);
fputs(
" default). Transient error means either: a timeout, an FTP 4xx\n"
" response code or an HTTP 5xx response code.\n"
"\n"
" When curl is about to retry a transfer, it will first wait one\n"
" second and then for all forthcoming retries it will double the\n"
" waiting time until it reaches 10 minutes which then will be the\n"
" delay between the rest of the retries. By using --retry-delay\n"
, stdout);
fputs(
" you disable this exponential backoff algorithm. See also\n"
" --retry-max-time to limit the total time allowed for retries.\n"
" (Added in 7.12.3)\n"
"\n"
" If this option is used multiple times, the last occurrence\n"
" decide the amount.\n"
"\n"
" --retry-delay <seconds>\n"
" Make curl sleep this amount of time before each retry when a\n"
" transfer has failed with a transient error (it changes the\n"
, stdout);
fputs(
" default backoff time algorithm between retries). This option is\n"
" only interesting if --retry is also used. Setting this delay to\n"
" zero will make curl use the default backoff time. (Added in\n"
" 7.12.3)\n"
"\n"
" If this option is used multiple times, the last occurrence\n"
" determines the amount.\n"
"\n"
" --retry-max-time <seconds>\n"
" The retry timer is reset before the first transfer attempt.\n"
, stdout);
fputs(
" Retries will be done as usual (see --retry) as long as the timer\n"
" hasn't reached this given limit. Notice that if the timer hasn't\n"
" reached the limit, the request will be made and while perform-\n"
" ing, it may take longer than this given time period. To limit a\n"
" single request's maximum time, use -m/--max-time. Set this\n"
" option to zero to not timeout retries. (Added in 7.12.3)\n"
"\n"
, stdout);
fputs(
" If this option is used multiple times, the last occurrence\n"
" determines the amount.\n"
"\n"
" -s/--silent\n"
" Silent or quiet mode. Don't show progress meter or error mes-\n"
" sages. Makes Curl mute.\n"
"\n"
" -S/--show-error\n"
" When used with -s it makes curl show an error message if it\n"
" fails.\n"
"\n"
" --socks4 <host[:port]>\n"
" Use the specified SOCKS4 proxy. If the port number is not speci-\n"
, stdout);
fputs(
" fied, it is assumed at port 1080. (Added in 7.15.2)\n"
"\n"
" This option overrides any previous use of -x/--proxy, as they\n"
" are mutually exclusive.\n"
"\n"
" If this option is used several times, the last one will be used.\n"
"\n"
" --socks4a <host[:port]>\n"
" Use the specified SOCKS4a proxy. If the port number is not spec-\n"
" ified, it is assumed at port 1080. (Added in 7.18.0)\n"
"\n"
, stdout);
fputs(
" This option overrides any previous use of -x/--proxy, as they\n"
" are mutually exclusive.\n"
"\n"
" If this option is used several times, the last one will be used.\n"
"\n"
" --socks5-hostname <host[:port]>\n"
" Use the specified SOCKS5 proxy (and let the proxy resolve the\n"
" host name). If the port number is not specified, it is assumed\n"
" at port 1080. (Added in 7.18.0)\n"
"\n"
, stdout);
fputs(
" This option overrides any previous use of -x/--proxy, as they\n"
" are mutually exclusive.\n"
"\n"
" If this option is used several times, the last one will be used.\n"
" (This option was previously wrongly documented and used as\n"
" --socks without the number appended.)\n"
"\n"
" --socks5 <host[:port]>\n"
" Use the specified SOCKS5 proxy - but resolve the host name\n"
, stdout);
fputs(
" locally. If the port number is not specified, it is assumed at\n"
" port 1080.\n"
"\n"
" This option overrides any previous use of -x/--proxy, as they\n"
" are mutually exclusive.\n"
"\n"
" If this option is used several times, the last one will be used.\n"
" (This option was previously wrongly documented and used as\n"
" --socks without the number appended.)\n"
"\n"
, stdout);
fputs(
" This option (as well as --socks4) does not work with IPV6, FTPS\n"
" or LDAP.\n"
"\n"
" --socks5-gssapi-service <servicename>\n"
" The default service name for a socks server is rcmd/server-fqdn.\n"
" This option allows you to change it.\n"
"\n"
" Examples: --socks5 proxy-name --socks5-gssapi-service sockd\n"
" would use sockd/proxy-name --socks5 proxy-name --socks5-gssapi-\n"
, stdout);
fputs(
" service sockd/real-name would use sockd/real-name for cases\n"
" where the proxy-name does not match the principal name. (Added\n"
" in 7.19.4).\n"
"\n"
" --socks5-gssapi-nec\n"
" As part of the gssapi negotiation a protection mode is negoti-\n"
" ated. RFC 1961 says in section 4.3/4.4 it should be protected,\n"
" but the NEC reference implementation does not. The option\n"
, stdout);
fputs(
" --socks5-gssapi-nec allows the unprotected exchange of the pro-\n"
" tection mode negotiation. (Added in 7.19.4).\n"
"\n"
" --stderr <file>\n"
" Redirect all writes to stderr to the specified file instead. If\n"
" the file name is a plain '-', it is instead written to stdout.\n"
" This option has no point when you're using a shell with decent\n"
" redirecting capabilities.\n"
"\n"
, stdout);
fputs(
" If this option is used several times, the last one will be used.\n"
"\n"
" --tcp-nodelay\n"
" Turn on the TCP_NODELAY option. See the curl_easy_setopt(3) man\n"
" page for details about this option. (Added in 7.11.2)\n"
"\n"
" -t/--telnet-option <OPT=val>\n"
" Pass options to the telnet protocol. Supported options are:\n"
"\n"
" TTYPE=<term> Sets the terminal type.\n"
"\n"
" XDISPLOC=<X display> Sets the X display location.\n"
"\n"
, stdout);
fputs(
" NEW_ENV=<var,val> Sets an environment variable.\n"
"\n"
" --tftp-blksize <value>\n"
" (TFTP) Set TFTP BLKSIZE option (must be >512). This is the block\n"
" size that curl will try to use when transferring data to or from\n"
" a TFTP server. By default 512 bytes will be used.\n"
"\n"
" If this option is used several times, the last one will be used.\n"
"\n"
" (Added in 7.20.0)\n"
"\n"
" --tlsauthtype <authtype>\n"
, stdout);
fputs(
" Set TLS authentication type. Currently, the only supported\n"
" option is \"SRP\", for TLS-SRP (RFC 5054). If --tlsuser and\n"
" --tlspassword are specified but --tlsauthtype is not, then this\n"
" option defaults to \"SRP\". (Added in 7.21.4)\n"
"\n"
" --tlsuser <user>\n"
" Set username for use with the TLS authentication method speci-\n"
" fied with --tlsauthtype. Requires that --tlspassword also be\n"
, stdout);
fputs(
" set. (Added in 7.21.4)\n"
"\n"
" --tlspassword <password>\n"
" Set password for use with the TLS authentication method speci-\n"
" fied with --tlsauthtype. Requires that --tlsuser also be set.\n"
" (Added in 7.21.4)\n"
"\n"
" -T/--upload-file <file>\n"
" This transfers the specified local file to the remote URL. If\n"
" there is no file part in the specified URL, Curl will append the\n"
, stdout);
fputs(
" local file name. NOTE that you must use a trailing / on the last\n"
" directory to really prove to Curl that there is no file name or\n"
" curl will think that your last directory name is the remote file\n"
" name to use. That will most likely cause the upload operation to\n"
" fail. If this is used on a HTTP(S) server, the PUT command will\n"
" be used.\n"
"\n"
" Use the file name \"-\" (a single dash) to use stdin instead of a\n"
, stdout);
fputs(
" given file. Alternately, the file name \".\" (a single period)\n"
" may be specified instead of \"-\" to use stdin in non-blocking\n"
" mode to allow reading server output while stdin is being\n"
" uploaded.\n"
"\n"
" You can specify one -T for each URL on the command line. Each -T\n"
" + URL pair specifies what to upload and to where. curl also sup-\n"
, stdout);
fputs(
" ports \"globbing\" of the -T argument, meaning that you can upload\n"
" multiple files to a single URL by using the same URL globbing\n"
" style supported in the URL, like this:\n"
"\n"
" curl -T \"{file1,file2}\" http://www.uploadtothissite.com\n"
"\n"
" or even\n"
"\n"
" curl -T \"img[1-1000].png\" ftp://ftp.picturemania.com/upload/\n"
"\n"
" --trace <file>\n"
" Enables a full trace dump of all incoming and outgoing data,\n"
, stdout);
fputs(
" including descriptive information, to the given output file. Use\n"
" \"-\" as filename to have the output sent to stdout.\n"
"\n"
" This option overrides previous uses of -v/--verbose or --trace-\n"
" ascii.\n"
"\n"
" If this option is used several times, the last one will be used.\n"
"\n"
" --trace-ascii <file>\n"
" Enables a full trace dump of all incoming and outgoing data,\n"
, stdout);
fputs(
" including descriptive information, to the given output file. Use\n"
" \"-\" as filename to have the output sent to stdout.\n"
"\n"
" This is very similar to --trace, but leaves out the hex part and\n"
" only shows the ASCII part of the dump. It makes smaller output\n"
" that might be easier to read for untrained humans.\n"
"\n"
" This option overrides previous uses of -v/--verbose or --trace.\n"
"\n"
, stdout);
fputs(
" If this option is used several times, the last one will be used.\n"
"\n"
" --trace-time\n"
" Prepends a time stamp to each trace or verbose line that curl\n"
" displays. (Added in 7.14.0)\n"
"\n"
" --tr-encoding\n"
" (HTTP) Request a compressed Transfer-Encoding response using one\n"
" of the algorithms libcurl supports, and uncompress the data\n"
" while receiving it.\n"
"\n"
" (Added in 7.21.6)\n"
"\n"
, stdout);
fputs(
" -u/--user <user:password>\n"
" Specify the user name and password to use for server authentica-\n"
" tion. Overrides -n/--netrc and --netrc-optional.\n"
"\n"
" If you just give the user name (without entering a colon) curl\n"
" will prompt for a password.\n"
"\n"
" If you use an SSPI-enabled curl binary and do NTLM authentica-\n"
" tion, you can force curl to pick up the user name and password\n"
, stdout);
fputs(
" from your environment by simply specifying a single colon with\n"
" this option: \"-u :\".\n"
"\n"
" If this option is used several times, the last one will be used.\n"
"\n"
" -U/--proxy-user <user:password>\n"
" Specify the user name and password to use for proxy authentica-\n"
" tion.\n"
"\n"
" If you use an SSPI-enabled curl binary and do NTLM authentica-\n"
" tion, you can force curl to pick up the user name and password\n"
, stdout);
fputs(
" from your environment by simply specifying a single colon with\n"
" this option: \"-U :\".\n"
"\n"
" If this option is used several times, the last one will be used.\n"
"\n"
" --url <URL>\n"
" Specify a URL to fetch. This option is mostly handy when you\n"
" want to specify URL(s) in a config file.\n"
"\n"
" This option may be used any number of times. To control where\n"
, stdout);
fputs(
" this URL is written, use the -o/--output or the -O/--remote-name\n"
" options.\n"
"\n"
" -v/--verbose\n"
" Makes the fetching more verbose/talkative. Mostly useful for\n"
" debugging. A line starting with '>' means \"header data\" sent by\n"
" curl, '<' means \"header data\" received by curl that is hidden in\n"
" normal cases, and a line starting with '*' means additional info\n"
" provided by curl.\n"
"\n"
, stdout);
fputs(
" Note that if you only want HTTP headers in the output,\n"
" -i/--include might be the option you're looking for.\n"
"\n"
" If you think this option still doesn't give you enough details,\n"
" consider using --trace or --trace-ascii instead.\n"
"\n"
" This option overrides previous uses of --trace-ascii or --trace.\n"
"\n"
" Use -s/--silent to make curl quiet.\n"
"\n"
" -V/--version\n"
, stdout);
fputs(
" Displays information about curl and the libcurl version it uses.\n"
" The first line includes the full version of curl, libcurl and\n"
" other 3rd party libraries linked with the executable.\n"
"\n"
" The second line (starts with \"Protocols:\") shows all protocols\n"
" that libcurl reports to support.\n"
"\n"
" The third line (starts with \"Features:\") shows specific features\n"
, stdout);
fputs(
" libcurl reports to offer. Available features include:\n"
"\n"
" IPv6 You can use IPv6 with this.\n"
"\n"
" krb4 Krb4 for FTP is supported.\n"
"\n"
" SSL HTTPS and FTPS are supported.\n"
"\n"
" libz Automatic decompression of compressed files over HTTP is\n"
" supported.\n"
"\n"
" NTLM NTLM authentication is supported.\n"
"\n"
" GSS-Negotiate\n"
" Negotiate authentication and krb5 for FTP is supported.\n"
"\n"
, stdout);
fputs(
" Debug This curl uses a libcurl built with Debug. This enables\n"
" more error-tracking and memory debugging etc. For curl-\n"
" developers only!\n"
"\n"
" AsynchDNS\n"
" This curl uses asynchronous name resolves.\n"
"\n"
" SPNEGO SPNEGO Negotiate authentication is supported.\n"
"\n"
" Largefile\n"
" This curl supports transfers of large files, files larger\n"
" than 2GB.\n"
"\n"
, stdout);
fputs(
" IDN This curl supports IDN - international domain names.\n"
"\n"
" SSPI SSPI is supported. If you use NTLM and set a blank user\n"
" name, curl will authenticate with your current user and\n"
" password.\n"
"\n"
" TLS-SRP\n"
" SRP (Secure Remote Password) authentication is supported\n"
" for TLS.\n"
"\n"
" -w/--write-out <format>\n"
, stdout);
fputs(
" Defines what to display on stdout after a completed and success-\n"
" ful operation. The format is a string that may contain plain\n"
" text mixed with any number of variables. The string can be spec-\n"
" ified as \"string\", to get read from a particular file you spec-\n"
" ify it \"@filename\" and to tell curl to read the format from\n"
" stdin you write \"@-\".\n"
"\n"
, stdout);
fputs(
" The variables present in the output format will be substituted\n"
" by the value or text that curl thinks fit, as described below.\n"
" All variables are specified as %{variable_name} and to output a\n"
" normal % you just write them as %%. You can output a newline by\n"
" using \\n, a carriage return with \\r and a tab space with \\t.\n"
"\n"
" NOTE: The %-symbol is a special symbol in the win32-environment,\n"
, stdout);
fputs(
" where all occurrences of % must be doubled when using this\n"
" option.\n"
"\n"
" The variables available at this point are:\n"
"\n"
" url_effective The URL that was fetched last. This is most mean-\n"
" ingful if you've told curl to follow location:\n"
" headers.\n"
"\n"
" http_code The numerical response code that was found in the\n"
, stdout);
fputs(
" last retrieved HTTP(S) or FTP(s) transfer. In\n"
" 7.18.2 the alias response_code was added to show\n"
" the same info.\n"
"\n"
" http_connect The numerical code that was found in the last\n"
" response (from a proxy) to a curl CONNECT\n"
" request. (Added in 7.12.4)\n"
"\n"
" time_total The total time, in seconds, that the full opera-\n"
, stdout);
fputs(
" tion lasted. The time will be displayed with mil-\n"
" lisecond resolution.\n"
"\n"
" time_namelookup\n"
" The time, in seconds, it took from the start\n"
" until the name resolving was completed.\n"
"\n"
" time_connect The time, in seconds, it took from the start\n"
" until the TCP connect to the remote host (or\n"
, stdout);
fputs(
" proxy) was completed.\n"
"\n"
" time_appconnect\n"
" The time, in seconds, it took from the start\n"
" until the SSL/SSH/etc connect/handshake to the\n"
" remote host was completed. (Added in 7.19.0)\n"
"\n"
" time_pretransfer\n"
" The time, in seconds, it took from the start\n"
, stdout);
fputs(
" until the file transfer was just about to begin.\n"
" This includes all pre-transfer commands and nego-\n"
" tiations that are specific to the particular pro-\n"
" tocol(s) involved.\n"
"\n"
" time_redirect The time, in seconds, it took for all redirection\n"
" steps include name lookup, connect, pretransfer\n"
, stdout);
fputs(
" and transfer before the final transaction was\n"
" started. time_redirect shows the complete execu-\n"
" tion time for multiple redirections. (Added in\n"
" 7.12.3)\n"
"\n"
" time_starttransfer\n"
" The time, in seconds, it took from the start\n"
" until the first byte was just about to be trans-\n"
, stdout);
fputs(
" ferred. This includes time_pretransfer and also\n"
" the time the server needed to calculate the\n"
" result.\n"
"\n"
" size_download The total amount of bytes that were downloaded.\n"
"\n"
" size_upload The total amount of bytes that were uploaded.\n"
"\n"
" size_header The total amount of bytes of the downloaded head-\n"
" ers.\n"
"\n"
, stdout);
fputs(
" size_request The total amount of bytes that were sent in the\n"
" HTTP request.\n"
"\n"
" speed_download The average download speed that curl measured for\n"
" the complete download. Bytes per second.\n"
"\n"
" speed_upload The average upload speed that curl measured for\n"
" the complete upload. Bytes per second.\n"
"\n"
" content_type The Content-Type of the requested document, if\n"
, stdout);
fputs(
" there was any.\n"
"\n"
" num_connects Number of new connects made in the recent trans-\n"
" fer. (Added in 7.12.3)\n"
"\n"
" num_redirects Number of redirects that were followed in the\n"
" request. (Added in 7.12.3)\n"
"\n"
" redirect_url When a HTTP request was made without -L to follow\n"
" redirects, this variable will show the actual URL\n"
, stdout);
fputs(
" a redirect would take you to. (Added in 7.18.2)\n"
"\n"
" ftp_entry_path The initial path libcurl ended up in when logging\n"
" on to the remote FTP server. (Added in 7.15.4)\n"
"\n"
" ssl_verify_result\n"
" The result of the SSL peer certificate verifica-\n"
" tion that was requested. 0 means the verification\n"
" was successful. (Added in 7.19.0)\n"
"\n"
, stdout);
fputs(
" If this option is used several times, the last one will be used.\n"
"\n"
" -x/--proxy <proxyhost[:port]>\n"
" Use the specified HTTP proxy. If the port number is not speci-\n"
" fied, it is assumed at port 1080.\n"
"\n"
" This option overrides existing environment variables that set\n"
" the proxy to use. If there's an environment variable setting a\n"
" proxy, you can set proxy to \"\" to override it.\n"
"\n"
, stdout);
fputs(
" Note that all operations that are performed over a HTTP proxy\n"
" will transparently be converted to HTTP. It means that certain\n"
" protocol specific operations might not be available. This is not\n"
" the case if you can tunnel through the proxy, as done with the\n"
" -p/--proxytunnel option.\n"
"\n"
" Starting with 7.14.1, the proxy host can be specified the exact\n"
, stdout);
fputs(
" same way as the proxy environment variables, including the pro-\n"
" tocol prefix (http://) and the embedded user + password.\n"
"\n"
" If this option is used several times, the last one will be used.\n"
"\n"
" -X/--request <command>\n"
" (HTTP) Specifies a custom request method to use when communicat-\n"
" ing with the HTTP server. The specified request will be used\n"
" instead of the method otherwise used (which defaults to GET).\n"
, stdout);
fputs(
" Read the HTTP 1.1 specification for details and explanations.\n"
" Common additional HTTP requests include PUT and DELETE, but\n"
" related technologies like WebDAV offers PROPFIND, COPY, MOVE and\n"
" more.\n"
"\n"
" (FTP) Specifies a custom FTP command to use instead of LIST when\n"
" doing file lists with FTP.\n"
"\n"
" If this option is used several times, the last one will be used.\n"
"\n"
" -y/--speed-time <time>\n"
, stdout);
fputs(
" If a download is slower than speed-limit bytes per second during\n"
" a speed-time period, the download gets aborted. If speed-time is\n"
" used, the default speed-limit will be 1 unless set with -Y.\n"
"\n"
" This option controls transfers and thus will not affect slow\n"
" connects etc. If this is a concern for you, try the --connect-\n"
" timeout option.\n"
"\n"
, stdout);
fputs(
" If this option is used several times, the last one will be used.\n"
"\n"
" -Y/--speed-limit <speed>\n"
" If a download is slower than this given speed (in bytes per sec-\n"
" ond) for speed-time seconds it gets aborted. speed-time is set\n"
" with -y and is 30 if not set.\n"
"\n"
" If this option is used several times, the last one will be used.\n"
"\n"
" -z/--time-cond <date expression>\n"
, stdout);
fputs(
" (HTTP/FTP/FILE) Request a file that has been modified later than\n"
" the given time and date, or one that has been modified before\n"
" that time. The date expression can be all sorts of date strings\n"
" or if it doesn't match any internal ones, it tries to get the\n"
" time from a given file name instead! See the curl_getdate(3) man\n"
" pages for date expression details.\n"
"\n"
, stdout);
fputs(
" Start the date expression with a dash (-) to make it request for\n"
" a document that is older than the given date/time, default is a\n"
" document that is newer than the specified date/time.\n"
"\n"
" If this option is used several times, the last one will be used.\n"
"\n"
" --max-redirs <num>\n"
" Set maximum number of redirection-followings allowed. If\n"
" -L/--location is used, this option can be used to prevent curl\n"
, stdout);
fputs(
" from following redirections \"in absurdum\". By default, the limit\n"
" is set to 50 redirections. Set this option to -1 to make it lim-\n"
" itless.\n"
"\n"
" If this option is used several times, the last one will be used.\n"
"\n"
" -0/--http1.0\n"
" (HTTP) Forces curl to issue its requests using HTTP 1.0 instead\n"
" of using its internally preferred: HTTP 1.1.\n"
"\n"
" -1/--tlsv1\n"
, stdout);
fputs(
" (SSL) Forces curl to use TLS version 1 when negotiating with a\n"
" remote TLS server.\n"
"\n"
" -2/--sslv2\n"
" (SSL) Forces curl to use SSL version 2 when negotiating with a\n"
" remote SSL server.\n"
"\n"
" -3/--sslv3\n"
" (SSL) Forces curl to use SSL version 3 when negotiating with a\n"
" remote SSL server.\n"
"\n"
" -4/--ipv4\n"
" If libcurl is capable of resolving an address to multiple IP\n"
, stdout);
fputs(
" versions (which it is if it is IPv6-capable), this option tells\n"
" libcurl to resolve names to IPv4 addresses only.\n"
"\n"
" -6/--ipv6\n"
" If libcurl is capable of resolving an address to multiple IP\n"
" versions (which it is if it is IPv6-capable), this option tells\n"
" libcurl to resolve names to IPv6 addresses only.\n"
"\n"
" -#/--progress-bar\n"
" Make curl display progress information as a progress bar instead\n"
, stdout);
fputs(
" of the default statistics.\n"
"\n"
"FILES\n"
" ~/.curlrc\n"
" Default config file, see -K/--config for details.\n"
"\n"
"ENVIRONMENT\n"
" The environment variables can be specified in lower case or upper case.\n"
" The lower case version has precedence. http_proxy is an exception as it\n"
" is only available in lower case.\n"
"\n"
" http_proxy [protocol://]<host>[:port]\n"
" Sets the proxy server to use for HTTP.\n"
" HTTPS_PROXY [protocol://]<host>[:port]\n"
, stdout);
fputs(
" Sets the proxy server to use for HTTPS.\n"
"\n"
" FTP_PROXY [protocol://]<host>[:port]\n"
" Sets the proxy server to use for FTP.\n"
"\n"
" ALL_PROXY [protocol://]<host>[:port]\n"
" Sets the proxy server to use if no protocol-specific proxy is\n"
" set.\n"
"\n"
" NO_PROXY <comma-separated list of hosts>\n"
" list of host names that shouldn't go through any proxy. If set\n"
" to a asterisk '*' only, it matches all hosts.\n"
"\n"
"EXIT CODES\n"
, stdout);
fputs(
" There are a bunch of different error codes and their corresponding\n"
" error messages that may appear during bad conditions. At the time of\n"
" this writing, the exit codes are:\n"
"\n"
" 1 Unsupported protocol. This build of curl has no support for this\n"
" protocol.\n"
"\n"
" 2 Failed to initialize.\n"
"\n"
" 3 URL malformed. The syntax was not correct.\n"
"\n"
" 4 A feature or option that was needed to perform the desired\n"
, stdout);
fputs(
" request was not enabled or was explicitly disabled at build-\n"
" time. To make curl able to do this, you probably need another\n"
" build of libcurl!\n"
"\n"
" 5 Couldn't resolve proxy. The given proxy host could not be\n"
" resolved.\n"
"\n"
" 6 Couldn't resolve host. The given remote host was not resolved.\n"
"\n"
" 7 Failed to connect to host.\n"
"\n"
" 8 FTP weird server reply. The server sent data curl couldn't\n"
, stdout);
fputs(
" parse.\n"
"\n"
" 9 FTP access denied. The server denied login or denied access to\n"
" the particular resource or directory you wanted to reach. Most\n"
" often you tried to change to a directory that doesn't exist on\n"
" the server.\n"
"\n"
" 11 FTP weird PASS reply. Curl couldn't parse the reply sent to the\n"
" PASS request.\n"
"\n"
" 13 FTP weird PASV reply, Curl couldn't parse the reply sent to the\n"
, stdout);
fputs(
" PASV request.\n"
"\n"
" 14 FTP weird 227 format. Curl couldn't parse the 227-line the\n"
" server sent.\n"
"\n"
" 15 FTP can't get host. Couldn't resolve the host IP we got in the\n"
" 227-line.\n"
"\n"
" 17 FTP couldn't set binary. Couldn't change transfer method to\n"
" binary.\n"
"\n"
" 18 Partial file. Only a part of the file was transferred.\n"
"\n"
" 19 FTP couldn't download/access the given file, the RETR (or simi-\n"
, stdout);
fputs(
" lar) command failed.\n"
"\n"
" 21 FTP quote error. A quote command returned error from the server.\n"
" 22 HTTP page not retrieved. The requested url was not found or\n"
" returned another error with the HTTP error code being 400 or\n"
" above. This return code only appears if -f/--fail is used.\n"
"\n"
" 23 Write error. Curl couldn't write data to a local filesystem or\n"
" similar.\n"
"\n"
, stdout);
fputs(
" 25 FTP couldn't STOR file. The server denied the STOR operation,\n"
" used for FTP uploading.\n"
"\n"
" 26 Read error. Various reading problems.\n"
"\n"
" 27 Out of memory. A memory allocation request failed.\n"
"\n"
" 28 Operation timeout. The specified time-out period was reached\n"
" according to the conditions.\n"
"\n"
" 30 FTP PORT failed. The PORT command failed. Not all FTP servers\n"
, stdout);
fputs(
" support the PORT command, try doing a transfer using PASV\n"
" instead!\n"
"\n"
" 31 FTP couldn't use REST. The REST command failed. This command is\n"
" used for resumed FTP transfers.\n"
"\n"
" 33 HTTP range error. The range \"command\" didn't work.\n"
"\n"
" 34 HTTP post error. Internal post-request generation error.\n"
"\n"
" 35 SSL connect error. The SSL handshaking failed.\n"
"\n"
, stdout);
fputs(
" 36 FTP bad download resume. Couldn't continue an earlier aborted\n"
" download.\n"
"\n"
" 37 FILE couldn't read file. Failed to open the file. Permissions?\n"
"\n"
" 38 LDAP cannot bind. LDAP bind operation failed.\n"
"\n"
" 39 LDAP search failed.\n"
"\n"
" 41 Function not found. A required LDAP function was not found.\n"
"\n"
" 42 Aborted by callback. An application told curl to abort the oper-\n"
" ation.\n"
"\n"
, stdout);
fputs(
" 43 Internal error. A function was called with a bad parameter.\n"
"\n"
" 45 Interface error. A specified outgoing interface could not be\n"
" used.\n"
"\n"
" 47 Too many redirects. When following redirects, curl hit the maxi-\n"
" mum amount.\n"
"\n"
" 48 Unknown option specified to libcurl. This indicates that you\n"
" passed a weird option to curl that was passed on to libcurl and\n"
" rejected. Read up in the manual!\n"
"\n"
, stdout);
fputs(
" 49 Malformed telnet option.\n"
"\n"
" 51 The peer's SSL certificate or SSH MD5 fingerprint was not OK.\n"
"\n"
" 52 The server didn't reply anything, which here is considered an\n"
" error.\n"
"\n"
" 53 SSL crypto engine not found.\n"
"\n"
" 54 Cannot set SSL crypto engine as default.\n"
"\n"
" 55 Failed sending network data.\n"
"\n"
" 56 Failure in receiving network data.\n"
"\n"
" 58 Problem with the local certificate.\n"
"\n"
, stdout);
fputs(
" 59 Couldn't use specified SSL cipher.\n"
"\n"
" 60 Peer certificate cannot be authenticated with known CA certifi-\n"
" cates.\n"
"\n"
" 61 Unrecognized transfer encoding.\n"
"\n"
" 62 Invalid LDAP URL.\n"
"\n"
" 63 Maximum file size exceeded.\n"
"\n"
" 64 Requested FTP SSL level failed.\n"
"\n"
" 65 Sending the data requires a rewind that failed.\n"
"\n"
" 66 Failed to initialise SSL Engine.\n"
"\n"
, stdout);
fputs(
" 67 The user name, password, or similar was not accepted and curl\n"
" failed to log in.\n"
"\n"
" 68 File not found on TFTP server.\n"
"\n"
" 69 Permission problem on TFTP server.\n"
"\n"
" 70 Out of disk space on TFTP server.\n"
"\n"
" 71 Illegal TFTP operation.\n"
"\n"
" 72 Unknown TFTP transfer ID.\n"
"\n"
" 73 File already exists (TFTP).\n"
"\n"
" 74 No such user (TFTP).\n"
"\n"
" 75 Character conversion failed.\n"
"\n"
, stdout);
fputs(
" 76 Character conversion functions required.\n"
"\n"
" 77 Problem with reading the SSL CA cert (path? access rights?).\n"
"\n"
" 78 The resource referenced in the URL does not exist.\n"
"\n"
" 79 An unspecified error occurred during the SSH session.\n"
"\n"
" 80 Failed to shut down the SSL connection.\n"
"\n"
" 82 Could not load CRL file, missing or wrong format (added in\n"
" 7.19.0).\n"
"\n"
" 83 Issuer check failed (added in 7.19.0).\n"
"\n"
, stdout);
fputs(
" 84 The FTP PRET command failed\n"
"\n"
" 85 RTSP: mismatch of CSeq numbers\n"
"\n"
" 86 RTSP: mismatch of Session Identifiers\n"
"\n"
" 87 unable to parse FTP file list\n"
"\n"
" 88 FTP chunk callback reported error\n"
"\n"
" XX More error codes will appear here in future releases. The exist-\n"
" ing ones are meant to never change.\n"
"\n"
"AUTHORS / CONTRIBUTORS\n"
" Daniel Stenberg is the main author, but the whole list of contributors\n"
, stdout);
fputs(
" is found in the separate THANKS file.\n"
"\n"
"WWW\n"
" http://curl.haxx.se\n"
"\n"
"FTP\n"
" ftp://ftp.sunet.se/pub/www/utilities/curl/\n"
"\n"
"SEE ALSO\n"
" ftp(1), wget(1)\n"
"\n"
"LATEST VERSION\n"
"\n"
" You always find news about what's going on as well as the latest versions\n"
" from the curl web pages, located at:\n"
"\n"
" http://curl.haxx.se\n"
"\n"
"SIMPLE USAGE\n"
"\n"
" Get the main page from Netscape's web-server:\n"
"\n"
" curl http://www.netscape.com/\n"
"\n"
" Get the README file the user's home directory at funet's ftp-server:\n"
, stdout);
fputs(
"\n"
" curl ftp://ftp.funet.fi/README\n"
"\n"
" Get a web page from a server using port 8000:\n"
"\n"
" curl http://www.weirdserver.com:8000/\n"
"\n"
" Get a list of a directory of an FTP site:\n"
"\n"
" curl ftp://cool.haxx.se/\n"
"\n"
" Get the definition of curl from a dictionary:\n"
"\n"
" curl dict://dict.org/m:curl\n"
"\n"
" Fetch two documents at once:\n"
"\n"
" curl ftp://cool.haxx.se/ http://www.weirdserver.com:8000/\n"
"\n"
" Get a file off an FTPS server:\n"
"\n"
" curl ftps://files.are.secure.com/secrets.txt\n"
"\n"
, stdout);
fputs(
" or use the more appropriate FTPS way to get the same file:\n"
"\n"
" curl --ftp-ssl ftp://files.are.secure.com/secrets.txt\n"
"\n"
" Get a file from an SSH server using SFTP:\n"
"\n"
" curl -u username sftp://shell.example.com/etc/issue\n"
"\n"
" Get a file from an SSH server using SCP using a private key to authenticate:\n"
"\n"
" curl -u username: --key ~/.ssh/id_dsa --pubkey ~/.ssh/id_dsa.pub \\\n"
" scp://shell.example.com/~/personal.txt\n"
"\n"
" Get the main page from an IPv6 web server:\n"
"\n"
, stdout);
fputs(
" curl -g \"http://[2001:1890:1112:1::20]/\"\n"
"\n"
"DOWNLOAD TO A FILE\n"
"\n"
" Get a web page and store in a local file:\n"
"\n"
" curl -o thatpage.html http://www.netscape.com/\n"
"\n"
" Get a web page and store in a local file, make the local file get the name\n"
" of the remote document (if no file name part is specified in the URL, this\n"
" will fail):\n"
"\n"
" curl -O http://www.netscape.com/index.html\n"
"\n"
" Fetch two files and store them with their remote names:\n"
"\n"
, stdout);
fputs(
" curl -O www.haxx.se/index.html -O curl.haxx.se/download.html\n"
"\n"
"USING PASSWORDS\n"
"\n"
" FTP\n"
"\n"
" To ftp files using name+passwd, include them in the URL like:\n"
"\n"
" curl ftp://name:passwd@machine.domain:port/full/path/to/file\n"
"\n"
" or specify them with the -u flag like\n"
"\n"
" curl -u name:passwd ftp://machine.domain:port/full/path/to/file\n"
"\n"
" FTPS\n"
"\n"
" It is just like for FTP, but you may also want to specify and use\n"
" SSL-specific options for certificates etc.\n"
"\n"
, stdout);
fputs(
" Note that using FTPS:// as prefix is the \"implicit\" way as described in the\n"
" standards while the recommended \"explicit\" way is done by using FTP:// and\n"
" the --ftp-ssl option.\n"
"\n"
" SFTP / SCP\n"
"\n"
" This is similar to FTP, but you can specify a private key to use instead of\n"
" a password. Note that the private key may itself be protected by a password\n"
" that is unrelated to the login password of the remote system. If you\n"
" provide a private key file you must also provide a public key file.\n"
, stdout);
fputs(
"\n"
" HTTP\n"
"\n"
" Curl also supports user and password in HTTP URLs, thus you can pick a file\n"
" like:\n"
"\n"
" curl http://name:passwd@machine.domain/full/path/to/file\n"
"\n"
" or specify user and password separately like in\n"
"\n"
" curl -u name:passwd http://machine.domain/full/path/to/file\n"
"\n"
" HTTP offers many different methods of authentication and curl supports\n"
" several: Basic, Digest, NTLM and Negotiate. Without telling which method to\n"
, stdout);
fputs(
" use, curl defaults to Basic. You can also ask curl to pick the most secure\n"
" ones out of the ones that the server accepts for the given URL, by using\n"
" --anyauth.\n"
"\n"
" NOTE! Since HTTP URLs don't support user and password, you can't use that\n"
" style when using Curl via a proxy. You _must_ use the -u style fetch\n"
" during such circumstances.\n"
"\n"
" HTTPS\n"
"\n"
" Probably most commonly used with private certificates, as explained below.\n"
"\n"
"PROXY\n"
"\n"
, stdout);
fputs(
" curl supports both HTTP and SOCKS proxy servers, with optional authentication.\n"
" It does not have special support for FTP proxy servers since there are no\n"
" standards for those, but it can still be made to work with many of them. You\n"
" can also use both HTTP and SOCKS proxies to transfer files to and from FTP\n"
" servers.\n"
"\n"
" Get an ftp file using an HTTP proxy named my-proxy that uses port 888:\n"
"\n"
" curl -x my-proxy:888 ftp://ftp.leachsite.com/README\n"
"\n"
, stdout);
fputs(
" Get a file from a HTTP server that requires user and password, using the\n"
" same proxy as above:\n"
"\n"
" curl -u user:passwd -x my-proxy:888 http://www.get.this/\n"
"\n"
" Some proxies require special authentication. Specify by using -U as above:\n"
"\n"
" curl -U user:passwd -x my-proxy:888 http://www.get.this/\n"
"\n"
" A comma-separated list of hosts and domains which do not use the proxy can\n"
" be specified as:\n"
"\n"
" curl --noproxy localhost,get.this -x my-proxy:888 http://www.get.this/\n"
"\n"
, stdout);
fputs(
" If the proxy is specified with --proxy1.0 instead of --proxy or -x, then\n"
" curl will use HTTP/1.0 instead of HTTP/1.1 for any CONNECT attempts.\n"
"\n"
" curl also supports SOCKS4 and SOCKS5 proxies with --socks4 and --socks5.\n"
"\n"
" See also the environment variables Curl supports that offer further proxy\n"
" control.\n"
"\n"
" Most FTP proxy servers are set up to appear as a normal FTP server from the\n"
" client's perspective, with special commands to select the remote FTP server.\n"
, stdout);
fputs(
" curl supports the -u, -Q and --ftp-account options that can be used to\n"
" set up transfers through many FTP proxies. For example, a file can be\n"
" uploaded to a remote FTP server using a Blue Coat FTP proxy with the\n"
" options:\n"
"\n"
" curl -u \"Remote-FTP-Username@remote.ftp.server Proxy-Username:Remote-Pass\" \\\n"
" --ftp-account Proxy-Password --upload-file local-file \\\n"
" ftp://my-ftp.proxy.server:21/remote/upload/path/\n"
"\n"
" See the manual for your FTP proxy to determine the form it expects to set up\n"
, stdout);
fputs(
" transfers, and curl's -v option to see exactly what curl is sending.\n"
"\n"
"RANGES\n"
"\n"
" With HTTP 1.1 byte-ranges were introduced. Using this, a client can request\n"
" to get only one or more subparts of a specified document. Curl supports\n"
" this with the -r flag.\n"
"\n"
" Get the first 100 bytes of a document:\n"
"\n"
" curl -r 0-99 http://www.get.this/\n"
"\n"
" Get the last 500 bytes of a document:\n"
"\n"
" curl -r -500 http://www.get.this/\n"
"\n"
, stdout);
fputs(
" Curl also supports simple ranges for FTP files as well. Then you can only\n"
" specify start and stop position.\n"
"\n"
" Get the first 100 bytes of a document using FTP:\n"
"\n"
" curl -r 0-99 ftp://www.get.this/README\n"
"\n"
"UPLOADING\n"
"\n"
" FTP / FTPS / SFTP / SCP\n"
"\n"
" Upload all data on stdin to a specified server:\n"
"\n"
" curl -T - ftp://ftp.upload.com/myfile\n"
"\n"
" Upload data from a specified file, login with user and password:\n"
"\n"
" curl -T uploadfile -u user:passwd ftp://ftp.upload.com/myfile\n"
"\n"
, stdout);
fputs(
" Upload a local file to the remote site, and use the local file name remote\n"
" too:\n"
"\n"
" curl -T uploadfile -u user:passwd ftp://ftp.upload.com/\n"
"\n"
" Upload a local file to get appended to the remote file:\n"
"\n"
" curl -T localfile -a ftp://ftp.upload.com/remotefile\n"
"\n"
" Curl also supports ftp upload through a proxy, but only if the proxy is\n"
" configured to allow that kind of tunneling. If it does, you can run curl in\n"
" a fashion similar to:\n"
"\n"
, stdout);
fputs(
" curl --proxytunnel -x proxy:port -T localfile ftp.upload.com\n"
"\n"
" HTTP\n"
"\n"
" Upload all data on stdin to a specified http site:\n"
"\n"
" curl -T - http://www.upload.com/myfile\n"
"\n"
" Note that the http server must have been configured to accept PUT before\n"
" this can be done successfully.\n"
"\n"
" For other ways to do http data upload, see the POST section below.\n"
"\n"
"VERBOSE / DEBUG\n"
"\n"
" If curl fails where it isn't supposed to, if the servers don't let you in,\n"
, stdout);
fputs(
" if you can't understand the responses: use the -v flag to get verbose\n"
" fetching. Curl will output lots of info and what it sends and receives in\n"
" order to let the user see all client-server interaction (but it won't show\n"
" you the actual data).\n"
"\n"
" curl -v ftp://ftp.upload.com/\n"
"\n"
" To get even more details and information on what curl does, try using the\n"
" --trace or --trace-ascii options with a given file name to log to, like\n"
" this:\n"
"\n"
" curl --trace trace.txt www.haxx.se\n"
"\n"
"\n"
, stdout);
fputs(
"DETAILED INFORMATION\n"
"\n"
" Different protocols provide different ways of getting detailed information\n"
" about specific files/documents. To get curl to show detailed information\n"
" about a single file, you should use -I/--head option. It displays all\n"
" available info on a single file for HTTP and FTP. The HTTP information is a\n"
" lot more extensive.\n"
"\n"
" For HTTP, you can get the header information (the same as -I would show)\n"
" shown before the data by using -i/--include. Curl understands the\n"
, stdout);
fputs(
" -D/--dump-header option when getting files from both FTP and HTTP, and it\n"
" will then store the headers in the specified file.\n"
"\n"
" Store the HTTP headers in a separate file (headers.txt in the example):\n"
"\n"
" curl --dump-header headers.txt curl.haxx.se\n"
"\n"
" Note that headers stored in a separate file can be very useful at a later\n"
" time if you want curl to use cookies sent by the server. More about that in\n"
" the cookies section.\n"
"\n"
"POST (HTTP)\n"
"\n"
, stdout);
fputs(
" It's easy to post data using curl. This is done using the -d <data>\n"
" option. The post data must be urlencoded.\n"
"\n"
" Post a simple \"name\" and \"phone\" guestbook.\n"
"\n"
" curl -d \"name=Rafael%20Sagula&phone=3320780\" \\\n"
" http://www.where.com/guest.cgi\n"
"\n"
" How to post a form with curl, lesson #1:\n"
"\n"
" Dig out all the <input> tags in the form that you want to fill in. (There's\n"
" a perl program called formfind.pl on the curl site that helps with this).\n"
"\n"
, stdout);
fputs(
" If there's a \"normal\" post, you use -d to post. -d takes a full \"post\n"
" string\", which is in the format\n"
"\n"
" <variable1>=<data1>&<variable2>=<data2>&...\n"
"\n"
" The 'variable' names are the names set with \"name=\" in the <input> tags, and\n"
" the data is the contents you want to fill in for the inputs. The data *must*\n"
" be properly URL encoded. That means you replace space with + and that you\n"
" write weird letters with %XX where XX is the hexadecimal representation of\n"
, stdout);
fputs(
" the letter's ASCII code.\n"
"\n"
" Example:\n"
"\n"
" (page located at http://www.formpost.com/getthis/\n"
"\n"
" <form action=\"post.cgi\" method=\"post\">\n"
" <input name=user size=10>\n"
" <input name=pass type=password size=10>\n"
" <input name=id type=hidden value=\"blablabla\">\n"
" <input name=ding value=\"submit\">\n"
" </form>\n"
"\n"
" We want to enter user 'foobar' with password '12345'.\n"
"\n"
" To post to this, you enter a curl command line like:\n"
"\n"
, stdout);
fputs(
" curl -d \"user=foobar&pass=12345&id=blablabla&ding=submit\" (continues)\n"
" http://www.formpost.com/getthis/post.cgi\n"
"\n"
"\n"
" While -d uses the application/x-www-form-urlencoded mime-type, generally\n"
" understood by CGI's and similar, curl also supports the more capable\n"
" multipart/form-data type. This latter type supports things like file upload.\n"
"\n"
" -F accepts parameters like -F \"name=contents\". If you want the contents to\n"
, stdout);
fputs(
" be read from a file, use <@filename> as contents. When specifying a file,\n"
" you can also specify the file content type by appending ';type=<mime type>'\n"
" to the file name. You can also post the contents of several files in one\n"
" field. For example, the field name 'coolfiles' is used to send three files,\n"
" with different content types using the following syntax:\n"
"\n"
" curl -F \"coolfiles=@fil1.gif;type=image/gif,fil2.txt,fil3.html\" \\\n"
" http://www.post.com/postit.cgi\n"
"\n"
, stdout);
fputs(
" If the content-type is not specified, curl will try to guess from the file\n"
" extension (it only knows a few), or use the previously specified type (from\n"
" an earlier file if several files are specified in a list) or else it will\n"
" using the default type 'text/plain'.\n"
"\n"
" Emulate a fill-in form with -F. Let's say you fill in three fields in a\n"
" form. One field is a file name which to post, one field is your name and one\n"
, stdout);
fputs(
" field is a file description. We want to post the file we have written named\n"
" \"cooltext.txt\". To let curl do the posting of this data instead of your\n"
" favourite browser, you have to read the HTML source of the form page and\n"
" find the names of the input fields. In our example, the input field names\n"
" are 'file', 'yourname' and 'filedescription'.\n"
"\n"
" curl -F \"file=@cooltext.txt\" -F \"yourname=Daniel\" \\\n"
" -F \"filedescription=Cool text file with cool text inside\" \\\n"
, stdout);
fputs(
" http://www.post.com/postit.cgi\n"
"\n"
" To send two files in one post you can do it in two ways:\n"
"\n"
" 1. Send multiple files in a single \"field\" with a single field name:\n"
"\n"
" curl -F \"pictures=@dog.gif,cat.gif\"\n"
"\n"
" 2. Send two fields with two field names:\n"
"\n"
" curl -F \"docpicture=@dog.gif\" -F \"catpicture=@cat.gif\"\n"
"\n"
" To send a field value literally without interpreting a leading '@'\n"
" or '<', or an embedded ';type=', use --form-string instead of\n"
, stdout);
fputs(
" -F. This is recommended when the value is obtained from a user or\n"
" some other unpredictable source. Under these circumstances, using\n"
" -F instead of --form-string would allow a user to trick curl into\n"
" uploading a file.\n"
"\n"
"REFERRER\n"
"\n"
" A HTTP request has the option to include information about which address\n"
" that referred to actual page. Curl allows you to specify the\n"
" referrer to be used on the command line. It is especially useful to\n"
, stdout);
fputs(
" fool or trick stupid servers or CGI scripts that rely on that information\n"
" being available or contain certain data.\n"
"\n"
" curl -e www.coolsite.com http://www.showme.com/\n"
"\n"
" NOTE: The Referer: [sic] field is defined in the HTTP spec to be a full URL.\n"
"\n"
"USER AGENT\n"
"\n"
" A HTTP request has the option to include information about the browser\n"
" that generated the request. Curl allows it to be specified on the command\n"
" line. It is especially useful to fool or trick stupid servers or CGI\n"
, stdout);
fputs(
" scripts that only accept certain browsers.\n"
"\n"
" Example:\n"
"\n"
" curl -A 'Mozilla/3.0 (Win95; I)' http://www.nationsbank.com/\n"
"\n"
" Other common strings:\n"
" 'Mozilla/3.0 (Win95; I)' Netscape Version 3 for Windows 95\n"
" 'Mozilla/3.04 (Win95; U)' Netscape Version 3 for Windows 95\n"
" 'Mozilla/2.02 (OS/2; U)' Netscape Version 2 for OS/2\n"
" 'Mozilla/4.04 [en] (X11; U; AIX 4.2; Nav)' NS for AIX\n"
" 'Mozilla/4.05 [en] (X11; U; Linux 2.0.32 i586)' NS for Linux\n"
"\n"
, stdout);
fputs(
" Note that Internet Explorer tries hard to be compatible in every way:\n"
" 'Mozilla/4.0 (compatible; MSIE 4.01; Windows 95)' MSIE for W95\n"
"\n"
" Mozilla is not the only possible User-Agent name:\n"
" 'Konqueror/1.0' KDE File Manager desktop client\n"
" 'Lynx/2.7.1 libwww-FM/2.14' Lynx command line browser\n"
"\n"
"COOKIES\n"
"\n"
" Cookies are generally used by web servers to keep state information at the\n"
" client's side. The server sets cookies by sending a response line in the\n"
, stdout);
fputs(
" headers that looks like 'Set-Cookie: <data>' where the data part then\n"
" typically contains a set of NAME=VALUE pairs (separated by semicolons ';'\n"
" like \"NAME1=VALUE1; NAME2=VALUE2;\"). The server can also specify for what\n"
" path the \"cookie\" should be used for (by specifying \"path=value\"), when the\n"
" cookie should expire (\"expire=DATE\"), for what domain to use it\n"
" (\"domain=NAME\") and if it should be used on secure connections only\n"
" (\"secure\").\n"
"\n"
, stdout);
fputs(
" If you've received a page from a server that contains a header like:\n"
" Set-Cookie: sessionid=boo123; path=\"/foo\";\n"
"\n"
" it means the server wants that first pair passed on when we get anything in\n"
" a path beginning with \"/foo\".\n"
"\n"
" Example, get a page that wants my name passed in a cookie:\n"
"\n"
" curl -b \"name=Daniel\" www.sillypage.com\n"
"\n"
" Curl also has the ability to use previously received cookies in following\n"
" sessions. If you get cookies from a server and store them in a file in a\n"
, stdout);
fputs(
" manner similar to:\n"
"\n"
" curl --dump-header headers www.example.com\n"
"\n"
" ... you can then in a second connect to that (or another) site, use the\n"
" cookies from the 'headers' file like:\n"
"\n"
" curl -b headers www.example.com\n"
"\n"
" While saving headers to a file is a working way to store cookies, it is\n"
" however error-prone and not the preferred way to do this. Instead, make curl\n"
" save the incoming cookies using the well-known netscape cookie format like\n"
" this:\n"
"\n"
, stdout);
fputs(
" curl -c cookies.txt www.example.com\n"
"\n"
" Note that by specifying -b you enable the \"cookie awareness\" and with -L\n"
" you can make curl follow a location: (which often is used in combination\n"
" with cookies). So that if a site sends cookies and a location, you can\n"
" use a non-existing file to trigger the cookie awareness like:\n"
"\n"
" curl -L -b empty.txt www.example.com\n"
"\n"
" The file to read cookies from must be formatted using plain HTTP headers OR\n"
, stdout);
fputs(
" as netscape's cookie file. Curl will determine what kind it is based on the\n"
" file contents. In the above command, curl will parse the header and store\n"
" the cookies received from www.example.com. curl will send to the server the\n"
" stored cookies which match the request as it follows the location. The\n"
" file \"empty.txt\" may be a nonexistent file.\n"
"\n"
" Alas, to both read and write cookies from a netscape cookie file, you can\n"
" set both -b and -c to use the same file:\n"
"\n"
, stdout);
fputs(
" curl -b cookies.txt -c cookies.txt www.example.com\n"
"\n"
"PROGRESS METER\n"
"\n"
" The progress meter exists to show a user that something actually is\n"
" happening. The different fields in the output have the following meaning:\n"
"\n"
" % Total % Received % Xferd Average Speed Time Curr.\n"
" Dload Upload Total Current Left Speed\n"
" 0 151M 0 38608 0 0 9406 0 4:41:43 0:00:04 4:41:39 9287\n"
"\n"
" From left-to-right:\n"
, stdout);
fputs(
" % - percentage completed of the whole transfer\n"
" Total - total size of the whole expected transfer\n"
" % - percentage completed of the download\n"
" Received - currently downloaded amount of bytes\n"
" % - percentage completed of the upload\n"
" Xferd - currently uploaded amount of bytes\n"
" Average Speed\n"
" Dload - the average transfer speed of the download\n"
" Average Speed\n"
" Upload - the average transfer speed of the upload\n"
, stdout);
fputs(
" Time Total - expected time to complete the operation\n"
" Time Current - time passed since the invoke\n"
" Time Left - expected time left to completion\n"
" Curr.Speed - the average transfer speed the last 5 seconds (the first\n"
" 5 seconds of a transfer is based on less time of course.)\n"
"\n"
" The -# option will display a totally different progress bar that doesn't\n"
" need much explanation!\n"
"\n"
"SPEED LIMIT\n"
"\n"
, stdout);
fputs(
" Curl allows the user to set the transfer speed conditions that must be met\n"
" to let the transfer keep going. By using the switch -y and -Y you\n"
" can make curl abort transfers if the transfer speed is below the specified\n"
" lowest limit for a specified time.\n"
"\n"
" To have curl abort the download if the speed is slower than 3000 bytes per\n"
" second for 1 minute, run:\n"
"\n"
" curl -Y 3000 -y 60 www.far-away-site.com\n"
"\n"
" This can very well be used in combination with the overall time limit, so\n"
, stdout);
fputs(
" that the above operation must be completed in whole within 30 minutes:\n"
"\n"
" curl -m 1800 -Y 3000 -y 60 www.far-away-site.com\n"
"\n"
" Forcing curl not to transfer data faster than a given rate is also possible,\n"
" which might be useful if you're using a limited bandwidth connection and you\n"
" don't want your transfer to use all of it (sometimes referred to as\n"
" \"bandwidth throttle\").\n"
"\n"
" Make curl transfer data no faster than 10 kilobytes per second:\n"
"\n"
, stdout);
fputs(
" curl --limit-rate 10K www.far-away-site.com\n"
"\n"
" or\n"
"\n"
" curl --limit-rate 10240 www.far-away-site.com\n"
"\n"
" Or prevent curl from uploading data faster than 1 megabyte per second:\n"
"\n"
" curl -T upload --limit-rate 1M ftp://uploadshereplease.com\n"
"\n"
" When using the --limit-rate option, the transfer rate is regulated on a\n"
" per-second basis, which will cause the total transfer speed to become lower\n"
" than the given number. Sometimes of course substantially lower, if your\n"
, stdout);
fputs(
" transfer stalls during periods.\n"
"\n"
"CONFIG FILE\n"
"\n"
" Curl automatically tries to read the .curlrc file (or _curlrc file on win32\n"
" systems) from the user's home dir on startup.\n"
"\n"
" The config file could be made up with normal command line switches, but you\n"
" can also specify the long options without the dashes to make it more\n"
" readable. You can separate the options and the parameter with spaces, or\n"
" with = or :. Comments can be used within the file. If the first letter on a\n"
, stdout);
fputs(
" line is a '#'-symbol the rest of the line is treated as a comment.\n"
"\n"
" If you want the parameter to contain spaces, you must enclose the entire\n"
" parameter within double quotes (\"). Within those quotes, you specify a\n"
" quote as \\\".\n"
"\n"
" NOTE: You must specify options and their arguments on the same line.\n"
"\n"
" Example, set default time out and proxy in a config file:\n"
"\n"
" # We want a 30 minute timeout:\n"
" -m 1800\n"
" # ... and we use a proxy for all accesses:\n"
, stdout);
fputs(
" proxy = proxy.our.domain.com:8080\n"
"\n"
" White spaces ARE significant at the end of lines, but all white spaces\n"
" leading up to the first characters of each line are ignored.\n"
"\n"
" Prevent curl from reading the default file by using -q as the first command\n"
" line parameter, like:\n"
"\n"
" curl -q www.thatsite.com\n"
"\n"
" Force curl to get and display a local help page in case it is invoked\n"
" without URL by making a config file similar to:\n"
"\n"
" # default url to get\n"
, stdout);
fputs(
" url = \"http://help.with.curl.com/curlhelp.html\"\n"
"\n"
" You can specify another config file to be read by using the -K/--config\n"
" flag. If you set config file name to \"-\" it'll read the config from stdin,\n"
" which can be handy if you want to hide options from being visible in process\n"
" tables etc:\n"
"\n"
" echo \"user = user:passwd\" | curl -K - http://that.secret.site.com\n"
"\n"
"EXTRA HEADERS\n"
"\n"
" When using curl in your own very special programs, you may end up needing\n"
, stdout);
fputs(
" to pass on your own custom headers when getting a web page. You can do\n"
" this by using the -H flag.\n"
"\n"
" Example, send the header \"X-you-and-me: yes\" to the server when getting a\n"
" page:\n"
"\n"
" curl -H \"X-you-and-me: yes\" www.love.com\n"
"\n"
" This can also be useful in case you want curl to send a different text in a\n"
" header than it normally does. The -H header you specify then replaces the\n"
" header curl would normally send. If you replace an internal header with an\n"
, stdout);
fputs(
" empty one, you prevent that header from being sent. To prevent the Host:\n"
" header from being used:\n"
"\n"
" curl -H \"Host:\" www.server.com\n"
"\n"
"FTP and PATH NAMES\n"
"\n"
" Do note that when getting files with the ftp:// URL, the given path is\n"
" relative the directory you enter. To get the file 'README' from your home\n"
" directory at your ftp site, do:\n"
"\n"
" curl ftp://user:passwd@my.site.com/README\n"
"\n"
" But if you want the README file from the root directory of that very same\n"
, stdout);
fputs(
" site, you need to specify the absolute file name:\n"
"\n"
" curl ftp://user:passwd@my.site.com//README\n"
"\n"
" (I.e with an extra slash in front of the file name.)\n"
"\n"
"SFTP and SCP and PATH NAMES\n"
"\n"
" With sftp: and scp: URLs, the path name given is the absolute name on the\n"
" server. To access a file relative to the remote user's home directory,\n"
" prefix the file with /~/ , such as:\n"
"\n"
" curl -u $USER sftp://home.example.com/~/.bashrc\n"
"\n"
"FTP and firewalls\n"
"\n"
, stdout);
fputs(
" The FTP protocol requires one of the involved parties to open a second\n"
" connection as soon as data is about to get transfered. There are two ways to\n"
" do this.\n"
"\n"
" The default way for curl is to issue the PASV command which causes the\n"
" server to open another port and await another connection performed by the\n"
" client. This is good if the client is behind a firewall that don't allow\n"
" incoming connections.\n"
"\n"
" curl ftp.download.com\n"
"\n"
, stdout);
fputs(
" If the server for example, is behind a firewall that don't allow connections\n"
" on other ports than 21 (or if it just doesn't support the PASV command), the\n"
" other way to do it is to use the PORT command and instruct the server to\n"
" connect to the client on the given (as parameters to the PORT command) IP\n"
" number and port.\n"
"\n"
" The -P flag to curl supports a few different options. Your machine may have\n"
" several IP-addresses and/or network interfaces and curl allows you to select\n"
, stdout);
fputs(
" which of them to use. Default address can also be used:\n"
"\n"
" curl -P - ftp.download.com\n"
"\n"
" Download with PORT but use the IP address of our 'le0' interface (this does\n"
" not work on windows):\n"
"\n"
" curl -P le0 ftp.download.com\n"
"\n"
" Download with PORT but use 192.168.0.10 as our IP address to use:\n"
"\n"
" curl -P 192.168.0.10 ftp.download.com\n"
"\n"
"NETWORK INTERFACE\n"
"\n"
" Get a web page from a server using a specified port for the interface:\n"
"\n"
, stdout);
fputs(
" curl --interface eth0:1 http://www.netscape.com/\n"
"\n"
" or\n"
"\n"
" curl --interface 192.168.1.10 http://www.netscape.com/\n"
"\n"
"HTTPS\n"
"\n"
" Secure HTTP requires SSL libraries to be installed and used when curl is\n"
" built. If that is done, curl is capable of retrieving and posting documents\n"
" using the HTTPS protocol.\n"
"\n"
" Example:\n"
"\n"
" curl https://www.secure-site.com\n"
"\n"
" Curl is also capable of using your personal certificates to get/post files\n"
, stdout);
fputs(
" from sites that require valid certificates. The only drawback is that the\n"
" certificate needs to be in PEM-format. PEM is a standard and open format to\n"
" store certificates with, but it is not used by the most commonly used\n"
" browsers (Netscape and MSIE both use the so called PKCS#12 format). If you\n"
" want curl to use the certificates you use with your (favourite) browser, you\n"
" may need to download/compile a converter that can convert your browser's\n"
, stdout);
fputs(
" formatted certificates to PEM formatted ones. This kind of converter is\n"
" included in recent versions of OpenSSL, and for older versions Dr Stephen\n"
" N. Henson has written a patch for SSLeay that adds this functionality. You\n"
" can get his patch (that requires an SSLeay installation) from his site at:\n"
" http://www.drh-consultancy.demon.co.uk/\n"
"\n"
" Example on how to automatically retrieve a document using a certificate with\n"
" a personal password:\n"
"\n"
, stdout);
fputs(
" curl -E /path/to/cert.pem:password https://secure.site.com/\n"
"\n"
" If you neglect to specify the password on the command line, you will be\n"
" prompted for the correct password before any data can be received.\n"
"\n"
" Many older SSL-servers have problems with SSLv3 or TLS, that newer versions\n"
" of OpenSSL etc is using, therefore it is sometimes useful to specify what\n"
" SSL-version curl should use. Use -3, -2 or -1 to specify that exact SSL\n"
" version to use (for SSLv3, SSLv2 or TLSv1 respectively):\n"
, stdout);
fputs(
"\n"
" curl -2 https://secure.site.com/\n"
"\n"
" Otherwise, curl will first attempt to use v3 and then v2.\n"
"\n"
" To use OpenSSL to convert your favourite browser's certificate into a PEM\n"
" formatted one that curl can use, do something like this (assuming netscape,\n"
" but IE is likely to work similarly):\n"
"\n"
" You start with hitting the 'security' menu button in netscape.\n"
"\n"
" Select 'certificates->yours' and then pick a certificate in the list\n"
"\n"
" Press the 'export' button\n"
"\n"
, stdout);
fputs(
" enter your PIN code for the certs\n"
"\n"
" select a proper place to save it\n"
"\n"
" Run the 'openssl' application to convert the certificate. If you cd to the\n"
" openssl installation, you can do it like:\n"
"\n"
" # ./apps/openssl pkcs12 -in [file you saved] -clcerts -out [PEMfile]\n"
"\n"
"\n"
"RESUMING FILE TRANSFERS\n"
"\n"
" To continue a file transfer where it was previously aborted, curl supports\n"
" resume on http(s) downloads as well as ftp uploads and downloads.\n"
"\n"
" Continue downloading a document:\n"
"\n"
, stdout);
fputs(
" curl -C - -o file ftp://ftp.server.com/path/file\n"
"\n"
" Continue uploading a document(*1):\n"
"\n"
" curl -C - -T file ftp://ftp.server.com/path/file\n"
"\n"
" Continue downloading a document from a web server(*2):\n"
"\n"
" curl -C - -o file http://www.server.com/\n"
"\n"
" (*1) = This requires that the ftp server supports the non-standard command\n"
" SIZE. If it doesn't, curl will say so.\n"
"\n"
" (*2) = This requires that the web server supports at least HTTP/1.1. If it\n"
" doesn't, curl will say so.\n"
"\n"
, stdout);
fputs(
"TIME CONDITIONS\n"
"\n"
" HTTP allows a client to specify a time condition for the document it\n"
" requests. It is If-Modified-Since or If-Unmodified-Since. Curl allow you to\n"
" specify them with the -z/--time-cond flag.\n"
"\n"
" For example, you can easily make a download that only gets performed if the\n"
" remote file is newer than a local copy. It would be made like:\n"
"\n"
" curl -z local.html http://remote.server.com/remote.html\n"
"\n"
" Or you can download a file only if the local file is newer than the remote\n"
, stdout);
fputs(
" one. Do this by prepending the date string with a '-', as in:\n"
"\n"
" curl -z -local.html http://remote.server.com/remote.html\n"
"\n"
" You can specify a \"free text\" date as condition. Tell curl to only download\n"
" the file if it was updated since January 12, 2012:\n"
"\n"
" curl -z \"Jan 12 2012\" http://remote.server.com/remote.html\n"
"\n"
" Curl will then accept a wide range of date formats. You always make the date\n"
" check the other way around by prepending it with a dash '-'.\n"
"\n"
"DICT\n"
"\n"
" For fun try\n"
"\n"
, stdout);
fputs(
" curl dict://dict.org/m:curl\n"
" curl dict://dict.org/d:heisenbug:jargon\n"
" curl dict://dict.org/d:daniel:web1913\n"
"\n"
" Aliases for 'm' are 'match' and 'find', and aliases for 'd' are 'define'\n"
" and 'lookup'. For example,\n"
"\n"
" curl dict://dict.org/find:curl\n"
"\n"
" Commands that break the URL description of the RFC (but not the DICT\n"
" protocol) are\n"
"\n"
" curl dict://dict.org/show:db\n"
" curl dict://dict.org/show:strat\n"
"\n"
, stdout);
fputs(
" Authentication is still missing (but this is not required by the RFC)\n"
"\n"
"LDAP\n"
"\n"
" If you have installed the OpenLDAP library, curl can take advantage of it\n"
" and offer ldap:// support.\n"
"\n"
" LDAP is a complex thing and writing an LDAP query is not an easy task. I do\n"
" advice you to dig up the syntax description for that elsewhere. Two places\n"
" that might suit you are:\n"
"\n"
" Netscape's \"Netscape Directory SDK 3.0 for C Programmer's Guide Chapter 10:\n"
" Working with LDAP URLs\":\n"
, stdout);
fputs(
" http://developer.netscape.com/docs/manuals/dirsdk/csdk30/url.htm\n"
"\n"
" RFC 2255, \"The LDAP URL Format\" http://curl.haxx.se/rfc/rfc2255.txt\n"
"\n"
" To show you an example, this is now I can get all people from my local LDAP\n"
" server that has a certain sub-domain in their email address:\n"
"\n"
" curl -B \"ldap://ldap.frontec.se/o=frontec??sub?mail=*sth.frontec.se\"\n"
"\n"
" If I want the same info in HTML format, I can get it by not using the -B\n"
" (enforce ASCII) flag.\n"
"\n"
"ENVIRONMENT VARIABLES\n"
"\n"
, stdout);
fputs(
" Curl reads and understands the following environment variables:\n"
"\n"
" http_proxy, HTTPS_PROXY, FTP_PROXY\n"
"\n"
" They should be set for protocol-specific proxies. General proxy should be\n"
" set with\n"
"\n"
" ALL_PROXY\n"
"\n"
" A comma-separated list of host names that shouldn't go through any proxy is\n"
" set in (only an asterisk, '*' matches all hosts)\n"
"\n"
" NO_PROXY\n"
"\n"
" If the host name matches one of these strings, or the host is within the\n"
, stdout);
fputs(
" domain of one of these strings, transactions with that node will not be\n"
" proxied.\n"
"\n"
"\n"
" The usage of the -x/--proxy flag overrides the environment variables.\n"
"\n"
"NETRC\n"
"\n"
" Unix introduced the .netrc concept a long time ago. It is a way for a user\n"
" to specify name and password for commonly visited ftp sites in a file so\n"
" that you don't have to type them in each time you visit those sites. You\n"
" realize this is a big security risk if someone else gets hold of your\n"
, stdout);
fputs(
" passwords, so therefore most unix programs won't read this file unless it is\n"
" only readable by yourself (curl doesn't care though).\n"
"\n"
" Curl supports .netrc files if told so (using the -n/--netrc and\n"
" --netrc-optional options). This is not restricted to only ftp,\n"
" but curl can use it for all protocols where authentication is used.\n"
"\n"
" A very simple .netrc file could look something like:\n"
"\n"
" machine curl.haxx.se login iamdaniel password mysecret\n"
"\n"
"CUSTOM OUTPUT\n"
"\n"
, stdout);
fputs(
" To better allow script programmers to get to know about the progress of\n"
" curl, the -w/--write-out option was introduced. Using this, you can specify\n"
" what information from the previous transfer you want to extract.\n"
"\n"
" To display the amount of bytes downloaded together with some text and an\n"
" ending newline:\n"
"\n"
" curl -w 'We downloaded %{size_download} bytes\\n' www.download.com\n"
"\n"
"KERBEROS FTP TRANSFER\n"
"\n"
" Curl supports kerberos4 and kerberos5/GSSAPI for FTP transfers. You need\n"
, stdout);
fputs(
" the kerberos package installed and used at curl build time for it to be\n"
" used.\n"
"\n"
" First, get the krb-ticket the normal way, like with the kinit/kauth tool.\n"
" Then use curl in way similar to:\n"
"\n"
" curl --krb private ftp://krb4site.com -u username:fakepwd\n"
"\n"
" There's no use for a password on the -u switch, but a blank one will make\n"
" curl ask for one and you already entered the real password to kinit/kauth.\n"
"\n"
"TELNET\n"
"\n"
, stdout);
fputs(
" The curl telnet support is basic and very easy to use. Curl passes all data\n"
" passed to it on stdin to the remote server. Connect to a remote telnet\n"
" server using a command line similar to:\n"
"\n"
" curl telnet://remote.server.com\n"
"\n"
" And enter the data to pass to the server on stdin. The result will be sent\n"
" to stdout or to the file you specify with -o.\n"
"\n"
" You might want the -N/--no-buffer option to switch off the buffered output\n"
" for slow connections or similar.\n"
"\n"
, stdout);
fputs(
" Pass options to the telnet protocol negotiation, by using the -t option. To\n"
" tell the server we use a vt100 terminal, try something like:\n"
"\n"
" curl -tTTYPE=vt100 telnet://remote.server.com\n"
"\n"
" Other interesting options for it -t include:\n"
"\n"
" - XDISPLOC=<X display> Sets the X display location.\n"
"\n"
" - NEW_ENV=<var,val> Sets an environment variable.\n"
"\n"
" NOTE: the telnet protocol does not specify any way to login with a specified\n"
, stdout);
fputs(
" user and password so curl can't do that automatically. To do that, you need\n"
" to track when the login prompt is received and send the username and\n"
" password accordingly.\n"
"\n"
"PERSISTENT CONNECTIONS\n"
"\n"
" Specifying multiple files on a single command line will make curl transfer\n"
" all of them, one after the other in the specified order.\n"
"\n"
" libcurl will attempt to use persistent connections for the transfers so that\n"
" the second transfer to the same host can use the same connection that was\n"
, stdout);
fputs(
" already initiated and was left open in the previous transfer. This greatly\n"
" decreases connection time for all but the first transfer and it makes a far\n"
" better use of the network.\n"
"\n"
" Note that curl cannot use persistent connections for transfers that are used\n"
" in subsequence curl invokes. Try to stuff as many URLs as possible on the\n"
" same command line if they are using the same host, as that'll make the\n"
" transfers faster. If you use a http proxy for file transfers, practically\n"
, stdout);
fputs(
" all transfers will be persistent.\n"
"\n"
"MULTIPLE TRANSFERS WITH A SINGLE COMMAND LINE\n"
"\n"
" As is mentioned above, you can download multiple files with one command line\n"
" by simply adding more URLs. If you want those to get saved to a local file\n"
" instead of just printed to stdout, you need to add one save option for each\n"
" URL you specify. Note that this also goes for the -O option (but not\n"
" --remote-name-all).\n"
"\n"
" For example: get two files and use -O for the first and a custom file\n"
, stdout);
fputs(
" name for the second:\n"
"\n"
" curl -O http://url.com/file.txt ftp://ftp.com/moo.exe -o moo.jpg\n"
"\n"
" You can also upload multiple files in a similar fashion:\n"
"\n"
" curl -T local1 ftp://ftp.com/moo.exe -T local2 ftp://ftp.com/moo2.txt\n"
"\n"
"IPv6\n"
"\n"
" curl will connect to a server with IPv6 when a host lookup returns an IPv6\n"
" address and fall back to IPv4 if the connection fails. The --ipv4 and --ipv6\n"
" options can specify which address to use when both are available. IPv6\n"
, stdout);
fputs(
" addresses can also be specified directly in URLs using the syntax:\n"
"\n"
" http://[2001:1890:1112:1::20]/overview.html\n"
"\n"
" When this style is used, the -g option must be given to stop curl from\n"
" interpreting the square brackets as special globbing characters. Link local\n"
" and site local addresses including a scope identifier, such as fe80::1234%1,\n"
" may also be used, but the scope portion must be numeric and the percent\n"
" character must be URL escaped. The previous example in an SFTP URL might\n"
, stdout);
fputs(
" look like:\n"
"\n"
" sftp://[fe80::1234%251]/\n"
"\n"
" IPv6 addresses provided other than in URLs (e.g. to the --proxy, --interface\n"
" or --ftp-port options) should not be URL encoded.\n"
"\n"
"\n"
"MAILING LISTS\n"
"\n"
" For your convenience, we have several open mailing lists to discuss curl,\n"
" its development and things relevant to this. Get all info at\n"
" http://curl.haxx.se/mail/. Some of the lists available are:\n"
"\n"
" curl-users\n"
"\n"
" Users of the command line tool. How to use it, what doesn't work, new\n"
, stdout);
fputs(
" features, related tools, questions, news, installations, compilations,\n"
" running, porting etc.\n"
"\n"
" curl-library\n"
"\n"
" Developers using or developing libcurl. Bugs, extensions, improvements.\n"
"\n"
" curl-announce\n"
"\n"
" Low-traffic. Only receives announcements of new public versions. At worst,\n"
" that makes something like one or two mails per month, but usually only one\n"
" mail every second month.\n"
"\n"
" curl-and-php\n"
"\n"
" Using the curl functions in PHP. Everything curl with a PHP angle. Or PHP\n"
, stdout);
fputs(
" with a curl angle.\n"
"\n"
" curl-and-python\n"
"\n"
" Python hackers using curl with or without the python binding pycurl.\n"
"\n"
" Please direct curl questions, feature requests and trouble reports to one of\n"
" these mailing lists instead of mailing any individual.\n"
, stdout) ;
}
#endif /* USE_MANUAL */
#else
/*
* NEVER EVER edit this manually, fix the mkhelp.pl script instead!
* Generation time: Fri Apr 22 19:02:51 2011
*/
#include "setup.h"
#ifdef USE_MANUAL
#include "hugehelp.h"
#include <stdio.h>
#include <stdlib.h>
#include <zlib.h>
static const unsigned char hugehelpgz[] = {
/* This mumbo-jumbo is the huge help text compressed with gzip.
Thanks to this operation, the size of this data shrunk from 137383
to 42235 bytes. You can disable the use of compressed help
texts by NOT passing -c to the mkhelp.pl tool. */
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x03, 0xed, 0xbd,
0x69, 0x7b, 0x1b, 0x47, 0x92, 0x2e, 0xfa, 0x9d, 0xbf, 0xa2, 0x1a, 0xbe,
0xdd, 0x24, 0xbb, 0x01, 0x70, 0xd1, 0x62, 0x8b, 0x2d, 0x79, 0x4c, 0x93,
0x94, 0xcd, 0x31, 0x25, 0xf2, 0x10, 0x94, 0x97, 0xe3, 0xf6, 0xa3, 0xa7,
0x00, 0x14, 0xc9, 0x6a, 0x02, 0x55, 0x70, 0x55, 0x81, 0x8b, 0x67, 0x7a,
0x7e, 0xfb, 0x8d, 0x78, 0x23, 0x22, 0x33, 0x6b, 0x01, 0x25, 0x77, 0xdb,
0x33, 0xf7, 0x9c, 0xe7, 0xf6, 0x8c, 0x29, 0x12, 0xa8, 0xca, 0x35, 0x32,
0x32, 0xd6, 0x37, 0xa2, 0xe8, 0x43, 0xff, 0x7b, 0x8f, 0xff, 0xde, 0xd3,
0xff, 0xe8, 0xdf, 0xb5, 0x28, 0x3a, 0x2b, 0xf2, 0xbf, 0x27, 0x93, 0xaa,
0xfb, 0xd9, 0xf7, 0xef, 0xff, 0x33, 0x92, 0xff, 0xa3, 0x77, 0xfe, 0x46,
0xff, 0xae, 0x3d, 0xda, 0xf6, 0x56, 0xe4, 0x5f, 0xf8, 0xcf, 0xf7, 0x9b,
0xd1, 0x87, 0x5e, 0xf8, 0xcf, 0x68, 0x03, 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xaf, 0xff, 0x58, 0x15, 0xa3, 0x50,
0x78, 0x60, 0x27, 0x00, 0x4d, 0x6e, 0xc2, 0x11, 0xc7, 0xac, 0x23, 0xf6,
0xac, 0x22, 0xa4, 0x36, 0xdd, 0x1b, 0x7a, 0x00, 0xc9, 0x16, 0x2e, 0x6f,
0xa9, 0x39, 0x69, 0xd7, 0x56, 0x57, 0x09, 0x02, 0xac, 0x06, 0x8e, 0x90,
0x28, 0x90, 0xb2, 0x51, 0x8c, 0xae, 0x79, 0x57, 0x66, 0x12, 0x76, 0x6c,
0xc0, 0xe4, 0x32, 0x29, 0x35, 0xae, 0x59, 0xc9, 0x16, 0x8c, 0x0c, 0xde,
0xbc, 0xf4, 0xa0, 0x46, 0x36, 0xc0, 0xa8, 0x31, 0x38, 0x11, 0xe8, 0x59,
0x36, 0x58, 0x6f, 0x11, 0xce, 0x64, 0x96, 0x4b, 0x71, 0xa7, 0xbb, 0xd0,
0x65, 0xf9, 0xef, 0xb8, 0xef, 0xf9, 0x32, 0x53, 0x4a, 0x1c, 0x74, 0x44,
0xbf, 0x87, 0xee, 0x17, 0x03, 0x92, 0x43, 0x4a, 0x12, 0xc4, 0x88, 0x53,
0xdf, 0x44, 0x16, 0xd4, 0x35, 0x57, 0x15, 0x63, 0x65, 0x45, 0xa5, 0x41,
0x50, 0xb2, 0xc4, 0x71, 0xea, 0x43, 0x22, 0xab, 0xbc, 0x4c, 0x65, 0x5b,
0x9c, 0x51, 0x30, 0xd4, 0x9b, 0xdb, 0xd1, 0xdf, 0x86, 0xe0, 0xe0, 0x32,
0xff, 0xc5, 0x0a, 0x69, 0x5e, 0x28, 0x8e, 0x27, 0xf6, 0xf3, 0xbd, 0x01,
0x5f, 0x2f, 0xbb, 0x62, 0xc2, 0x34, 0xd7, 0x2a, 0x98, 0x64, 0x60, 0xe4,
0x54, 0x31, 0xdf, 0x5c, 0x41, 0x86, 0x61, 0x4b, 0x62, 0xa9, 0xb5, 0xd6,
0x6b, 0x07, 0x84,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0x68, 0x69, 0xb4, 0xc7, 0x87, 0x34, 0x1a, 0x16, 0x7e, 0xaf, 0x68, 0x70,
0x5f, 0xba, 0x15, 0x68, 0x0b, 0xed, 0xde, 0x9e, 0x00, 0x41, 0x04, 0x45,
0xbb, 0xbc, 0x29, 0x97, 0xdb, 0x48, 0x42, 0x54, 0x17, 0x89, 0x2a, 0xb0,
0x24, 0xe3, 0x6e, 0x18, 0x05, 0xb6, 0x94, 0x14, 0x1a, 0x39, 0x74, 0xbd,
0x2c, 0x24, 0x04, 0x57, 0xd3, 0x1b, 0x15, 0xdc, 0xa9, 0x48, 0x14, 0xb5,
0x3b, 0x18, 0x70, 0xd9, 0x71, 0x3b, 0x21, 0x65, 0x2e, 0x99, 0xab, 0xd7,
0x73, 0x5c, 0xe4, 0x37, 0x74, 0x3e, 0xf8, 0x35, 0xe8, 0x2a, 0xbc, 0xfa,
0x72, 0xc8, 0xcd, 0xd2, 0x49, 0xc7, 0x40, 0xb1, 0xaa, 0xdb, 0x76, 0x5b,
0x07, 0x76, 0xae, 0x89, 0x56, 0xfe, 0xb4, 0x08, 0x10, 0x99, 0x54, 0xa4,
0xd5, 0xfb, 0x13, 0x77, 0x0f, 0x57, 0xbf, 0xf2, 0x41, 0x32, 0x2d, 0x83,
0x45, 0x0b, 0x95, 0xf9, 0x77, 0xa7, 0x21, 0x47, 0x16, 0x21, 0x0d, 0x75,
0x6c, 0x79, 0x8d, 0x98, 0x44, 0x10, 0x78, 0x49, 0x54, 0x25, 0x77, 0x3c,
0x7b, 0x85, 0x9b, 0xb6, 0x21, 0x20, 0xdd, 0x0e, 0x7c, 0x46, 0x83, 0x2f,
0x28, 0x2f, 0x96, 0x72, 0xb1, 0x4a, 0x4f, 0x7d, 0x09, 0x81, 0x58, 0xe4,
0x0b, 0x44, 0x60, 0xb6, 0xc5, 0x66, 0x56, 0x32, 0x9c, 0x10, 0x2a, 0x52,
0x23, 0x84, 0x6d, 0xde, 0x1e, 0xe4, 0x2f, 0x23, 0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x1a, 0x86, 0x94, 0xab, 0x03,
0x43, 0xf4, 0x8d, 0x32, 0x69, 0x1c, 0xd7, 0x40, 0xbc, 0xb2, 0x2f, 0x58,
0x28, 0xe6, 0xb1, 0x10, 0x13, 0xa2, 0x2d, 0x18, 0xae, 0xfd, 0xbf, 0xc7,
0xdb, 0x86, 0x93, 0xa7, 0x18, 0x02, 0x00,
};
#define BUF_SIZE 0x10000
/* Decompress and send to stdout a gzip-compressed buffer */
void hugehelp(void)
{
unsigned char* buf;
int status,headerlen;
z_stream z;
/* Make sure no gzip options are set */
if (hugehelpgz[3] & 0xfe)
return;
headerlen = 10;
z.avail_in = (unsigned int)(sizeof(hugehelpgz) - headerlen);
z.next_in = (unsigned char *)hugehelpgz + headerlen;
z.zalloc = (alloc_func)Z_NULL;
z.zfree = (free_func)Z_NULL;
z.opaque = 0;
if (inflateInit2(&z, -MAX_WBITS) != Z_OK)
return;
buf = malloc(BUF_SIZE);
if (buf) {
while(1) {
z.avail_out = BUF_SIZE;
z.next_out = buf;
status = inflate(&z, Z_SYNC_FLUSH);
if (status == Z_OK || status == Z_STREAM_END) {
fwrite(buf, BUF_SIZE - z.avail_out, 1, stdout);
if (status == Z_STREAM_END)
break;
}
else
break; /* Error */
}
free(buf);
}
inflateEnd(&z);
}
#endif /* USE_MANUAL */
#endif /* HAVE_LIBZ */
| 57.315551 | 90 | 0.627992 |
58ae914701bfcfb337ba8216803cf187f16ce6da | 1,399 | h | C | MoravaEngine/src/Core/AABB.h | imgui-works/MoravaEngine_opengl_vulkan_2d_3d_game_engine | b8e6ee3c3c890e9b8cf5de7bcb564b32f6767b6b | [
"Apache-2.0"
] | 168 | 2020-07-18T04:20:27.000Z | 2022-03-31T23:39:38.000Z | MoravaEngine/src/Core/AABB.h | imgui-works/MoravaEngine_opengl_vulkan_2d_3d_game_engine | b8e6ee3c3c890e9b8cf5de7bcb564b32f6767b6b | [
"Apache-2.0"
] | 5 | 2020-11-23T12:33:06.000Z | 2022-01-05T15:15:30.000Z | MoravaEngine/src/Core/AABB.h | dtrajko/MoravaEngine | dab8a9e84bde6bdb5e979596c29cabccb566b9d4 | [
"Apache-2.0"
] | 8 | 2020-09-07T03:04:18.000Z | 2022-03-25T13:47:16.000Z | #ifndef _AABB_H
#define _AABB_H
#include "Shader/MoravaShader.h"
#include <glm/glm.hpp>
#include <glm/ext/quaternion_float.hpp>
#include <iostream>
/**
* Taken from the strifeEngine project
*/
class AABB
{
public:
AABB();
AABB(glm::vec3 positionOrigin, glm::quat rotationOrigin, glm::vec3 scaleOrigin);
bool Contains(glm::vec3 position, glm::vec3 scale);
bool TestAABBOverlap(AABB* a, AABB* b);
void UpdatePosition(glm::vec3 positionOrigin);
void Update(glm::vec3 positionObject, glm::quat rotationObject, glm::vec3 scaleObject);
void TransformBounds(glm::vec3 positionObject, glm::quat rotationObject, glm::vec3 scaleObject);
void Draw();
glm::vec3 GetMin() const;
glm::vec3 GetMax() const;
virtual ~AABB();
static bool IntersectRayAab(glm::vec3 origin, glm::vec3 dir, glm::vec3 min, glm::vec3 max, glm::vec2 result);
public:
glm::vec3 m_Position = glm::vec3(0.0f);
glm::quat m_Rotation = glm::vec3(0.0f);
glm::vec3 m_Scale = glm::vec3(1.0f);
glm::vec4 m_Color = glm::vec4(0.0f, 1.0f, 0.0f, 1.0f);
glm::vec3 m_ScaleOrigin = glm::vec3(1.0f);
glm::vec3 m_PositionOrigin = glm::vec3(0.0f);
glm::vec3 m_BoundMin;
glm::vec3 m_BoundMax;
bool m_IsColliding;
private:
std::vector<float> m_Vertices;
std::vector<float> m_VerticesInitial;
std::vector<unsigned int> m_Indices;
float m_UnitSize = 0.5f;
float m_Offset = 0.02f;
size_t m_VertexStride = 3 + 4;
};
#endif
| 24.54386 | 110 | 0.71837 |
8418819caffa607e7908b080889dc99067fb65ad | 1,765 | h | C | dependencies/skse64/src/skse64/CommonLibSSE/include/RE/NiControllerSequence.h | clayne/papyrus-debug-server | f5c3878cd485ba68aaadf39bb830ca88bf53bfff | [
"MIT"
] | 10 | 2019-06-01T20:24:04.000Z | 2021-08-16T19:32:24.000Z | dependencies/skse64/src/skse64/CommonLibSSE/include/RE/NiControllerSequence.h | clayne/papyrus-debug-server | f5c3878cd485ba68aaadf39bb830ca88bf53bfff | [
"MIT"
] | null | null | null | dependencies/skse64/src/skse64/CommonLibSSE/include/RE/NiControllerSequence.h | clayne/papyrus-debug-server | f5c3878cd485ba68aaadf39bb830ca88bf53bfff | [
"MIT"
] | 4 | 2019-06-09T05:00:55.000Z | 2022-01-27T16:30:31.000Z | #pragma once
#include "skse64/GameRTTI.h" // RTTI_NiControllerSequence
#include "skse64/NiRTTI.h" // NiRTTI_NiControllerSequence
#include "RE/BSFixedString.h" // BSFixedString
#include "RE/NiObject.h" // NiObject
namespace RE
{
class NiControllerSequence : public NiObject
{
public:
inline static const void* RTTI = RTTI_NiControllerSequence;
inline static const void* Ni_RTTI = NiRTTI_NiControllerSequence;
virtual ~NiControllerSequence(); // 00
// override (NiObject)
virtual const NiRTTI* GetRTTI() const override; // 02
virtual NiObject* CreateClone(NiCloningProcess& a_cloning) override; // 17
virtual void LoadBinary(NiStream& a_stream) override; // 18
virtual void LinkObject(NiStream& a_stream) override; // 19
virtual bool RegisterStreamables(NiStream& a_stream) override; // 1A
virtual void SaveBinary(NiStream& a_stream) override; // 1B
virtual bool IsEqual(NiObject* a_object) override; // 1C
virtual void ProcessClone(NiCloningProcess& a_cloning) override; // 1D
virtual void PostLinkObject(NiStream& a_stream) override; // 1E
// add
virtual void Unk_25(void); // 25
// members
BSFixedString name; // 10
UInt64 unk18; // 18
UInt64 unk20; // 20
UInt64 unk28; // 28
UInt64 unk30; // 30
UInt64 unk38; // 38
UInt64 unk40; // 40
UInt64 unk48; // 48
UInt64 unk50; // 50
UInt64 unk58; // 58
UInt64 unk60; // 60
UInt64 unk68; // 68
UInt64 unk70; // 70
UInt64 unk78; // 78
UInt64 unk80; // 80
BSFixedString unk88; // 88
UInt64 unk90; // 90
UInt64 unk98; // 98
UInt64 unkA0; // A0
UInt64 unkA8; // A8
UInt64 unkB0; // B0
};
STATIC_ASSERT(sizeof(NiControllerSequence) == 0xB8);
}
| 28.934426 | 77 | 0.671388 |
84d3ed7f934731a8044f8b12f63b6833bf005b9c | 186 | c | C | src/9pm/port/strecpy.c | kaveman-/9pm | c5a560d936a46ec64b05f302fbe811b11a341285 | [
"LPL-1.02"
] | null | null | null | src/9pm/port/strecpy.c | kaveman-/9pm | c5a560d936a46ec64b05f302fbe811b11a341285 | [
"LPL-1.02"
] | null | null | null | src/9pm/port/strecpy.c | kaveman-/9pm | c5a560d936a46ec64b05f302fbe811b11a341285 | [
"LPL-1.02"
] | null | null | null | #include <u.h>
#include <9pm/libc.h>
char*
strecpy(char *s1, char *s2, char *e)
{
assert(s1<e);
while(s1<e && *s2)
*s1++ = *s2++;
if(s1 == e)
s1--;
*s1 = 0;
return s1;
}
| 9.789474 | 36 | 0.5 |
572fa1eb424b7513421f53af00bcaca643a3c033 | 402 | h | C | Parcial 2/2016/Ejercicio 2/lista.h | DBFritz/IB_ICOM | e505f62be2a33d4a6004ffdbf82a6a7ebef907d7 | [
"MIT"
] | null | null | null | Parcial 2/2016/Ejercicio 2/lista.h | DBFritz/IB_ICOM | e505f62be2a33d4a6004ffdbf82a6a7ebef907d7 | [
"MIT"
] | null | null | null | Parcial 2/2016/Ejercicio 2/lista.h | DBFritz/IB_ICOM | e505f62be2a33d4a6004ffdbf82a6a7ebef907d7 | [
"MIT"
] | null | null | null | #ifndef LISTA_H_INCLUDED
#define LISTA_H_INCLUDED
#include <stdlib.h>
typedef struct Node {
int cont;
struct Node * pNext;
} *List_t;
#define LIST_EMPTY NULL
#define LIST_CONT(lst) ((lst)->cont)
#define LIST_TAIL(lst) ((lst)->pNext)
int ListNumNodes(List_t lst);
List_t ListNodeCreate(int e, List_t tail);
void ListPrint(List_t lst);
void ListDestroy(List_t lst);
#endif // LISTA_H_INCLUDED
| 21.157895 | 42 | 0.743781 |
3b22498c3106c85e78c55cdf1f0c4b2d011576e9 | 265 | h | C | winml/lib/Api.Ort/pch.h | dennyac/onnxruntime | d5175795d2b7f2db18b0390f394a49238f814668 | [
"MIT"
] | 6,036 | 2019-05-07T06:03:57.000Z | 2022-03-31T17:59:54.000Z | winml/lib/Api.Ort/pch.h | dennyac/onnxruntime | d5175795d2b7f2db18b0390f394a49238f814668 | [
"MIT"
] | 5,730 | 2019-05-06T23:04:55.000Z | 2022-03-31T23:55:56.000Z | winml/lib/Api.Ort/pch.h | dennyac/onnxruntime | d5175795d2b7f2db18b0390f394a49238f814668 | [
"MIT"
] | 1,566 | 2019-05-07T01:30:07.000Z | 2022-03-31T17:06:50.000Z | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#pragma once
#include "winrt_headers.h"
#include "core/providers/winml/winml_provider_factory.h"
#include "adapter/winml_adapter_c_api.h"
#include "UniqueOrtPtr.h"
| 22.083333 | 61 | 0.777358 |
2a41d7d5fd640fcf0ece819933b477f719fe26d4 | 641 | h | C | src/Lazer.h | GabeTobias/Diode | 6e2bd3ec249c0aa731d74f00f868d920c6bd99f3 | [
"MIT"
] | null | null | null | src/Lazer.h | GabeTobias/Diode | 6e2bd3ec249c0aa731d74f00f868d920c6bd99f3 | [
"MIT"
] | null | null | null | src/Lazer.h | GabeTobias/Diode | 6e2bd3ec249c0aa731d74f00f868d920c6bd99f3 | [
"MIT"
] | null | null | null | #pragma once
#include <glm/glm.hpp>
#include <glm/gtc/quaternion.hpp>
#include "nlohmann.hpp"
#include "World.h"
#include "Time.h"
class Collidable;
class Destructable;
class Lazer : public World::Entity
{
public:
Collidable* collider;
Destructable* destruct;
glm::vec2 beamTarget;
float flipInterval = 1;
float damageInterval = 0.5f;
int damage = 1;
bool active = false;
Time::Timer flipTimer;
Time::Timer damageTimer;
public:
Lazer();
void Awake();
void Update();
void Draw();
void Editor();
nlohmann::json Save();
void Load(nlohmann::json data);
static World::Entity* Construct() { return new Lazer(); }
}; | 14.244444 | 58 | 0.695788 |
4a0729dd2385cc84423fcbc4cdf22dfb652345ab | 219 | h | C | proj/EF3R2build/RepoDesk/StatusBar.h | eirTony/EIRC2 | e8cb7239cff9c0ddce72e63d41b352ec1b4d1eb5 | [
"BSD-3-Clause"
] | null | null | null | proj/EF3R2build/RepoDesk/StatusBar.h | eirTony/EIRC2 | e8cb7239cff9c0ddce72e63d41b352ec1b4d1eb5 | [
"BSD-3-Clause"
] | 6 | 2016-04-12T02:41:00.000Z | 2016-06-01T09:28:02.000Z | proj/EF3R2build/RepoDesk/StatusBar.h | eirTony/EIRC2 | e8cb7239cff9c0ddce72e63d41b352ec1b4d1eb5 | [
"BSD-3-Clause"
] | null | null | null | #ifndef STATUSBAR_H
#define STATUSBAR_H
#include <QStatusBar>
class StatusBar : public QStatusBar
{
Q_OBJECT
public:
explicit StatusBar(QWidget * parent=0);
signals:
public slots:
};
#endif // STATUSBAR_H
| 11.526316 | 43 | 0.730594 |
044bae4a25cd8023eae3c001a04c09f2982df32f | 228 | h | C | HockeyPlayoffs/Constants/Images.h | pmairoldi/hockey-playoffs | f29a2cf29c143d0ff97314324e718e0e3a9c2db2 | [
"MIT"
] | null | null | null | HockeyPlayoffs/Constants/Images.h | pmairoldi/hockey-playoffs | f29a2cf29c143d0ff97314324e718e0e3a9c2db2 | [
"MIT"
] | null | null | null | HockeyPlayoffs/Constants/Images.h | pmairoldi/hockey-playoffs | f29a2cf29c143d0ff97314324e718e0e3a9c2db2 | [
"MIT"
] | null | null | null | //
// Images.h
// Hockey Playoffs
//
// Created by Pierre-Marc Airoldi on 2014-03-07.
// Copyright (c) 2015 Pierre-Marc Airoldi. All rights reserved.
//
#define BRACKET_TAB_ICON @"Bracket"
#define RECENT_TAB_ICON @"Recent"
| 20.727273 | 64 | 0.70614 |
a8909c8bce9359e2126151449978994bea4c0b07 | 4,507 | h | C | protorpc/src/protorpc/rpc_service.h | chai2010/protorpc3-cxx | eb384a6296817e0352b6febde5190b1f7947edeb | [
"BSD-3-Clause"
] | 4 | 2016-02-29T08:57:54.000Z | 2019-06-30T17:36:31.000Z | protorpc/src/protorpc/rpc_service.h | chai2010/protorpc3-cxx | eb384a6296817e0352b6febde5190b1f7947edeb | [
"BSD-3-Clause"
] | null | null | null | protorpc/src/protorpc/rpc_service.h | chai2010/protorpc3-cxx | eb384a6296817e0352b6febde5190b1f7947edeb | [
"BSD-3-Clause"
] | 2 | 2017-07-16T09:52:53.000Z | 2021-12-22T01:32:42.000Z | // Copyright 2013 <chaishushan{AT}gmail.com>. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
#pragma once
#ifndef PROTORPC_SERVICE_H__
#define PROTORPC_SERVICE_H__
#include "protorpc/wire.pb/wire.pb.h"
#include <google/protobuf/descriptor.h>
#include <google/protobuf/stubs/common.h>
namespace protorpc {
// Error
class LIBPROTOBUF_EXPORT Error {
public:
Error(){}
Error(const std::string& err): err_text_(err) {}
Error(const Error& err): err_text_(err.err_text_) {}
~Error(){}
static Error Nil() { return Error(); }
static Error New(const std::string& err) { return Error(err); }
bool IsNil()const { return err_text_.empty(); }
const std::string& String()const { return err_text_; }
private:
std::string err_text_;
};
// Abstract base interface for protocol-buffer-based RPC services caller.
class LIBPROTOBUF_EXPORT Caller {
public:
Caller() {}
virtual ~Caller() {}
// Call a method of the service specified by MethodDescriptor. This is
// normally implemented as a simple switch() that calls the standard
// definitions of the service's methods.
//
// Preconditions:
// * method->service() == GetDescriptor()
// * request and response are of the exact same classes as the objects
// returned by GetRequestPrototype(method) and
// GetResponsePrototype(method).
//
// Postconditions:
// * "done" will be called when the method is complete. This may be
// before CallMethod() returns or it may be at some point in the future.
// * If the RPC succeeded, "response" contains the response returned by
// the server.
// * If the RPC failed, "response"'s contents are undefined.
virtual const ::protorpc::Error CallMethod(
const ::google::protobuf::MethodDescriptor* method,
const ::google::protobuf::Message* request,
::google::protobuf::Message* response
) = 0;
private:
GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(Caller);
};
// Abstract base interface for protocol-buffer-based RPC services. Services
// themselves are abstract interfaces (implemented either by servers or as
// stubs), but they subclass this base interface. The methods of this
// interface can be used to call the methods of the Service without knowing
// its exact type at compile time (analogous to Reflection).
class LIBPROTOBUF_EXPORT Service: public Caller {
public:
Service() {}
virtual ~Service() {}
// CamelCase returns the CamelCased name.
// If there is an interior underscore followed by a lower case letter,
// drop the underscore and convert the letter to upper case.
// There is a remote possibility of this rewrite causing a name collision,
// but it's so remote we're prepared to pretend it's nonexistent - since the
// C++ generator lowercases names, it's extremely unlikely to have two fields
// with different capitalizations.
// In short, _my_field_name_2 becomes XMyFieldName2.
static std::string CamelCase(const std::string& s);
// Get Service Name with CamelCase
static std::string GetServiceName(const ::google::protobuf::ServiceDescriptor* service);
// Get ServiceMethod Name with CamelCase
// e.g. file_service.get_file_list => FileService.GetFileList
static std::string GetServiceMethodName(const ::google::protobuf::MethodDescriptor* method);
// Get the ServiceDescriptor describing this service and its methods.
virtual const ::google::protobuf::ServiceDescriptor* GetDescriptor() = 0;
// CallMethod() requires that the request and response passed in are of a
// particular subclass of Message. GetRequestPrototype() and
// GetResponsePrototype() get the default instances of these required types.
// You can then call Message::New() on these instances to construct mutable
// objects which you can then pass to CallMethod().
//
// Example:
// const MethodDescriptor* method = service->GetDescriptor()->FindMethodByName("Foo");
// Message* request = stub->GetRequestPrototype (method)->New();
// Message* response = stub->GetResponsePrototype(method)->New();
// request->ParseFromString(input);
// service->CallMethod(method, *request, response, callback);
virtual const ::google::protobuf::Message& GetRequestPrototype(
const ::google::protobuf::MethodDescriptor* method
) const = 0;
virtual const ::google::protobuf::Message& GetResponsePrototype(
const ::google::protobuf::MethodDescriptor* method
) const = 0;
private:
GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(Service);
};
} // namespace protorpc
#endif // PROTORPC_SERVICE_H__
| 36.942623 | 93 | 0.742179 |
78b9e4ad886b718d6722f652de8a1d1126893d23 | 1,984 | h | C | boards/M5STICKC/st77xx/st77xx.h | nexus166/micropython-esp | 533d5cf1ba4c99e64621a8e3b1805598e66a61f0 | [
"MIT"
] | 1 | 2021-09-07T12:35:37.000Z | 2021-09-07T12:35:37.000Z | boards/M5STICKC/st77xx/st77xx.h | nexus166/micropython-esp | 533d5cf1ba4c99e64621a8e3b1805598e66a61f0 | [
"MIT"
] | null | null | null | boards/M5STICKC/st77xx/st77xx.h | nexus166/micropython-esp | 533d5cf1ba4c99e64621a8e3b1805598e66a61f0 | [
"MIT"
] | null | null | null | #ifndef __ST77XX_H__
#define __ST77XX_H__
#ifdef __cplusplus
extern "C" {
#endif
#define ST77XX_80x160_XSTART 25
#define ST77XX_80x160_YSTART 0
#define ST77XX_135x240_XSTART 52
#define ST77XX_135x240_YSTART 40
#define ST77XX_240x240_XSTART 0
#define ST77XX_240x240_YSTART 0
// color modes
#define COLOR_MODE_65K 0x50
#define COLOR_MODE_262K 0x60
#define COLOR_MODE_12BIT 0x03
#define COLOR_MODE_16BIT 0x05
#define COLOR_MODE_18BIT 0x06
#define COLOR_MODE_16M 0x07
// commands
#define ST77XX_NOP 0x00
#define ST77XX_SWRESET 0x01
#define ST77XX_RDDID 0x04
#define ST77XX_RDDST 0x09
#define ST77XX_SLPIN 0x10
#define ST77XX_SLPOUT 0x11
#define ST77XX_PTLON 0x12
#define ST77XX_NORON 0x13
#define ST77XX_INVOFF 0x20
#define ST77XX_INVON 0x21
#define ST77XX_DISPOFF 0x28
#define ST77XX_DISPON 0x29
#define ST77XX_CASET 0x2A
#define ST77XX_RASET 0x2B
#define ST77XX_RAMWR 0x2C
#define ST77XX_RAMRD 0x2E
#define ST77XX_PTLAR 0x30
#define ST77XX_COLMOD 0x3A
#define ST77XX_MADCTL 0x36
#define ST77XX_MADCTL_MY 0x80 // Page Address Order
#define ST77XX_MADCTL_MX 0x40 // Column Address Order
#define ST77XX_MADCTL_MV 0x20 // Page/Column Order
#define ST77XX_MADCTL_ML 0x10 // Line Address Order
#define ST77XX_MADCTL_MH 0x04 // Display Data Latch Order
#define ST77XX_MADCTL_RGB 0x00
#define ST77XX_MADCTL_BGR 0x08
#define ST77XX_MADCTL_R0 0x00
#define ST77XX_MADCTL_R90 0x60
#define ST77XX_MADCTL_R180 0xC0
#define ST77XX_MADCTL_R270 0xA0
extern const uint8_t ST77XX_MADCTL_ROT[4];
#define ST77XX_RDID1 0xDA
#define ST77XX_RDID2 0xDB
#define ST77XX_RDID3 0xDC
#define ST77XX_RDID4 0xDD
// Color definitions
#define BLACK 0x0000
#define BLUE 0x001F
#define RED 0xF800
#define GREEN 0x07E0
#define CYAN 0x07FF
#define MAGENTA 0xF81F
#define YELLOW 0xFFE0
#define WHITE 0xFFFF
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* __ST77XX_H__ */
| 24.493827 | 61 | 0.771169 |
28989002a7330dfe56e38a10377aa9f09c4d9fca | 10,510 | h | C | sm3600.h | meichholz/sm3600 | d3954bb1c3a9420009e612677da6c1439d1ecfbf | [
"MIT"
] | null | null | null | sm3600.h | meichholz/sm3600 | d3954bb1c3a9420009e612677da6c1439d1ecfbf | [
"MIT"
] | null | null | null | sm3600.h | meichholz/sm3600 | d3954bb1c3a9420009e612677da6c1439d1ecfbf | [
"MIT"
] | null | null | null | /* sane - Scanner Access Now Easy.
Copyright (C) Marian Matthias Eichholz 2001
This file is part of the SANE package.
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.
As a special exception, the authors of SANE give permission for
additional uses of the libraries contained in this release of SANE.
The exception is that, if you link a SANE library with other files
to produce an executable, this does not by itself cause the
resulting executable to be covered by the GNU General Public
License. Your use of that executable is in no way restricted on
account of linking the SANE library code into it.
This exception does not, however, invalidate any other reasons why
the executable file might be covered by the GNU General Public
License.
If you submit changes to SANE to the maintainers to be included in
a subsequent release, you agree by submitting the changes that
those changes may be distributed with this exception intact.
If you write modifications of your own for SANE, it is your choice
whether to permit this exception to apply to your modifications.
If you do not wish that, delete this exception notice.
*/
#ifndef _H_SM3600
#define _H_SM3600
/* ======================================================================
sm3600.h
SANE backend master module.
Definitions ported from "scantool.h" 5.4.2001.
(C) Marian Matthias Eichholz 2001
Start: 2.4.2001
====================================================================== */
#define DEBUG_SCAN 0x0001
#define DEBUG_COMM 0x0002
#define DEBUG_ORIG 0x0004
#define DEBUG_BASE 0x0011
#define DEBUG_DEVSCAN 0x0012
#define DEBUG_REPLAY 0x0014
#define DEBUG_BUFFER 0x0018
#define DEBUG_SIGNALS 0x0020
#define DEBUG_CALIB 0x0040
#define DEBUG_CRITICAL 1
#define DEBUG_VERBOSE 2
#define DEBUG_INFO 3
#define DEBUG_JUNK 5
#define USB_TIMEOUT_JIFFIES 2000
#define SCANNER_VENDOR 0x05DA
#define MAX_PIXEL_PER_SCANLINE 5300
/* ====================================================================== */
typedef enum { false, true } TBool;
typedef SANE_Status TState;
typedef enum { unknown, sm3600, sm3700, sm3750 } TModel;
typedef struct {
TBool bCalibrated;
int xMargin; /* in 1/600 inch */
int yMargin; /* in 1/600 inch */
unsigned char nHoleGray;
unsigned char nBarGray;
long rgbBias;
unsigned char *achStripeY;
unsigned char *achStripeR;
unsigned char *achStripeG;
unsigned char *achStripeB;
} TCalibration;
typedef struct {
int x;
int y;
int cx;
int cy;
int res; /* like all parameters in 1/1200 inch */
int nBrightness; /* -255 ... 255 */
int nContrast; /* -128 ... 127 */
} TScanParam;
typedef enum { fast, high, best } TQuality;
typedef enum { color, gray, line, halftone } TMode;
#define INST_ASSERT() { if (this->nErrorState) return this->nErrorState; }
#define CHECK_ASSERTION(a) if (!(a)) return SetError(this,SANE_STATUS_INVAL,"assertion failed in %s %d",__FILE__,__LINE__)
#define CHECK_POINTER(p) \
if (!(p)) return SetError(this,SANE_STATUS_NO_MEM,"memory failed in %s %d",__FILE__,__LINE__)
#define dprintf debug_printf
typedef struct TInstance *PTInstance;
typedef TState (*TReadLineCB)(PTInstance);
typedef struct TScanState {
TBool bEOF; /* EOF marker for sane_read */
TBool bCanceled;
TBool bScanning; /* block is active? */
TBool bLastBulk; /* EOF announced */
int iReadPos; /* read() interface */
int iBulkReadPos; /* bulk read pos */
int iLine; /* log no. line */
int cchBulk; /* available bytes in bulk buffer */
int cchLineOut; /* buffer size */
int cxPixel,cyPixel; /* real pixel */
int cxMax; /* uninterpolated in real pixels */
int cxWindow; /* Window with in 600 DPI */
int cyWindow; /* Path length in 600 DPI */
int cyTotalPath; /* from bed start to window end in 600 dpi */
int nFixAspect; /* aspect ratio in percent, 75-100 */
int cBacklog; /* depth of ppchLines */
int ySensorSkew; /* distance in pixel between sensors */
char *szOrder; /* 123 or 231 or whatever */
unsigned char *pchBuf; /* bulk transfer buffer */
short **ppchLines; /* for error diffusion and color corr. */
unsigned char *pchLineOut; /* read() interface */
TReadLineCB ReadProc; /* line getter callback */
} TScanState;
#ifndef INSANE_VERSION
#ifdef SM3600_SUPPORT_EXPOSURE
#define NUM_OPTIONS 18
#else
#define NUM_OPTIONS 16
#endif
typedef struct TDevice {
struct TDevice *pNext;
struct usb_device *pdev;
TModel model;
SANE_Device sane;
char *szSaneName;
} TDevice;
#endif
typedef struct TInstance {
#ifndef INSANE_VERSION
struct TInstance *pNext;
SANE_Option_Descriptor aoptDesc[NUM_OPTIONS];
Option_Value aoptVal[NUM_OPTIONS];
#endif
SANE_Int agammaY[4096];
SANE_Int agammaR[4096];
SANE_Int agammaG[4096];
SANE_Int agammaB[4096];
TScanState state;
TCalibration calibration;
TState nErrorState;
char *szErrorReason;
TBool bSANE;
TScanParam param;
TBool bWriteRaw;
TBool bVerbose;
TBool bOptSkipOriginate;
TQuality quality;
TMode mode;
TModel model;
usb_dev_handle *hScanner;
FILE *fhLog;
FILE *fhScan;
int ichPageBuffer; /* write position in full page buffer */
int cchPageBuffer; /* total size of '' */
unsigned char *pchPageBuffer; /* the humble buffer */
} TInstance;
#define TRUE 1
#define FALSE 0
/* ====================================================================== */
#define ERR_FAILED -1
#define OK 0
#define NUM_SCANREGS 74
/* ====================================================================== */
/* note: The first register has address 0x01 */
#define R_ALL 0x01
/* have to become an enumeration */
typedef enum { none, hpos, hposH, hres } TRegIndex;
/* WORD */
#define R_SPOS 0x01
#define R_XRES 0x03
/* WORD */
#define R_SWID 0x04
/* WORD */
#define R_STPS 0x06
/* WORD */
#define R_YRES 0x08
/* WORD */
#define R_SLEN 0x0A
/* WORD*/
#define R_INIT 0x12
#define RVAL_INIT 0x1540
/* RGB */
#define R_CCAL 0x2F
/* WORD */
#define R_CSTAT 0x42
#define R_CTL 0x46
/* WORD */
#define R_POS 0x52
/* WORD */
#define R_LMP 0x44
#define R_QLTY 0x4A
#define R_STAT 0x54
#define LEN_MAGIC 0x24EA
/* ====================================================================== */
#define USB_CHUNK_SIZE 0x8000
/* sm3600-scanutil.c */
__SM3600EXPORT__ int SetError(TInstance *this, int nError, const char *szFormat, ...);
__SM3600EXPORT__ void debug_printf(unsigned long ulType, const char *szFormat, ...);
__SM3600EXPORT__ TState FreeState(TInstance *this, TState nReturn);
__SM3600EXPORT__ TState EndScan(TInstance *this);
__SM3600EXPORT__ TState ReadChunk(TInstance *this, unsigned char *achOut,
int cchMax, int *pcchRead);
#ifdef INSANE_VERSION
__SM3600EXPORT__ void DumpBuffer(FILE *fh, const char *pch, int cch);
__SM3600EXPORT__ TState DoScanFile(TInstance *this);
#endif
__SM3600EXPORT__ void GetAreaSize(TInstance *this);
__SM3600EXPORT__ void ResetCalibration(TInstance *this);
__SM3600EXPORT__ TState InitGammaTables(TInstance *this,
int nBrightness,
int nContrast);
__SM3600EXPORT__ TState CancelScan(TInstance *this);
/* sm3600-scanmtek.c */
extern unsigned short aidProduct[];
__SM3600EXPORT__ TState DoInit(TInstance *this);
__SM3600EXPORT__ TState DoReset(TInstance *this);
__SM3600EXPORT__ TState WaitWhileBusy(TInstance *this,int cSecs);
__SM3600EXPORT__ TState WaitWhileScanning(TInstance *this,int cSecs);
__SM3600EXPORT__ TState GetScannerModel(unsigned short idVendor, unsigned short idProduct);
#ifdef INSANE_VERSION
__SM3600EXPORT__ TState DoLampSwitch(TInstance *this,int nPattern);
#endif
__SM3600EXPORT__ TState DoCalibration(TInstance *this);
__SM3600EXPORT__ TState UploadGammaTable(TInstance *this, int iByteAddress, SANE_Int *pnGamma);
__SM3600EXPORT__ TState UploadGainCorrection(TInstance *this, int iTableOffset);
/* sm3600-scanusb.c */
__SM3600EXPORT__ TState RegWrite(TInstance *this,int iRegister, int cb, unsigned long ulValue);
__SM3600EXPORT__ TState RegWriteArray(TInstance *this,int iRegister, int cb, unsigned char *pchBuffer);
#ifdef INSANE_VERSIONx
__SM3600EXPORT__ TState RegCheck(TInstance *this,int iRegister, int cch, unsigned long ulValue);
__SM3600EXPORT__ int BulkRead(TInstance *this,FILE *fhOut, unsigned int cchBulk);
__SM3600EXPORT__ TState MemReadArray(TInstance *this, int iAddress, int cb, unsigned char *pchBuffer);
#endif
__SM3600EXPORT__ int BulkReadBuffer(TInstance *this,unsigned char *puchBufferOut, unsigned int cchBulk); /* gives count */
__SM3600EXPORT__ unsigned int RegRead(TInstance *this,int iRegister, int cch);
__SM3600EXPORT__ TState MemWriteArray(TInstance *this, int iAddress, int cb, unsigned char *pchBuffer);
/* sm3600-gray.c */
__SM3600EXPORT__ TState StartScanGray(TInstance *this);
/* sm3600-color.c */
__SM3600EXPORT__ TState StartScanColor(TInstance *this);
/* sm3600-homerun.c */
#ifdef INSANE_VERSION
__SM3600EXPORT__ TState FakeCalibration(TInstance *this);
#endif
__SM3600EXPORT__ TState DoOriginate(TInstance *this, TBool bStepOut);
__SM3600EXPORT__ TState DoJog(TInstance *this,int nDistance);
/* ====================================================================== */
#endif
| 33.259494 | 122 | 0.6647 |
28a64e703eb222ea45f89fc59220c14bcc48b97b | 3,197 | h | C | AppDemo/AppDemo/NYSKit/Utils/Tools/NYSRegularCheck.h | niyongsheng/AppDemo | a863e2a868d14806bed5effddf09b92265a1cf34 | [
"MIT"
] | 25 | 2018-10-26T12:54:07.000Z | 2022-02-08T08:16:29.000Z | AppDemo/AppDemo/NYSKit/Utils/Tools/NYSRegularCheck.h | niyongsheng/AppDemo | a863e2a868d14806bed5effddf09b92265a1cf34 | [
"MIT"
] | null | null | null | AppDemo/AppDemo/NYSKit/Utils/Tools/NYSRegularCheck.h | niyongsheng/AppDemo | a863e2a868d14806bed5effddf09b92265a1cf34 | [
"MIT"
] | 5 | 2018-11-19T06:09:52.000Z | 2021-12-17T01:58:46.000Z | //
// NYSRegularCheck.h
// NYS
//
// Created by niyongsheng on 2021/8/18.
// Copyright © 2021 niyongsheng. All rights reserved.
// ⚠️建议后端做校验,降低多端开发调试成本
/**
* 正则表达式简单说明
* 语法:
. 匹配除换行符以外的任意字符
\w 匹配字母或数字或下划线或汉字
\s 匹配任意的空白符
\d 匹配数字
\b 匹配单词的开始或结束
^ 匹配字符串的开始
$ 匹配字符串的结束
* 重复零次或更多次
+ 重复一次或更多次
? 重复零次或一次
{n} 重复n次
{n,} 重复n次或更多次
{n,m} 重复n到m次
\W 匹配任意不是字母,数字,下划线,汉字的字符
\S 匹配任意不是空白符的字符
\D 匹配任意非数字的字符
\B 匹配不是单词开头或结束的位置
[^x] 匹配除了x以外的任意字符
[^aeiou]匹配除了aeiou这几个字母以外的任意字符
*? 重复任意次,但尽可能少重复
+? 重复1次或更多次,但尽可能少重复
?? 重复0次或1次,但尽可能少重复
{n,m}? 重复n到m次,但尽可能少重复
{n,}? 重复n次以上,但尽可能少重复
\a 报警字符(打印它的效果是电脑嘀一声)
\b 通常是单词分界位置,但如果在字符类里使用代表退格
\t 制表符,Tab
\r 回车
\v 竖向制表符
\f 换页符
\n 换行符
\e Escape
\0nn ASCII代码中八进制代码为nn的字符
\xnn ASCII代码中十六进制代码为nn的字符
\unnnn Unicode代码中十六进制代码为nnnn的字符
\cN ASCII控制字符。比如\cC代表Ctrl+C
\A 字符串开头(类似^,但不受处理多行选项的影响)
\Z 字符串结尾或行尾(不受处理多行选项的影响)
\z 字符串结尾(类似$,但不受处理多行选项的影响)
\G 当前搜索的开头
\p{name} Unicode中命名为name的字符类,例如\p{IsGreek}
(?>exp) 贪婪子表达式
(?<x>-<y>exp) 平衡组
(?im-nsx:exp) 在子表达式exp中改变处理选项
(?im-nsx) 为表达式后面的部分改变处理选项
(?(exp)yes|no) 把exp当作零宽正向先行断言,如果在这个位置能匹配,使用yes作为此组的表达式;否则使用no
(?(exp)yes) 同上,只是使用空表达式作为no
(?(name)yes|no) 如果命名为name的组捕获到了内容,使用yes作为表达式;否则使用no
(?(name)yes) 同上,只是使用空表达式作为no
捕获
(exp) 匹配exp,并捕获文本到自动命名的组里
(?<name>exp) 匹配exp,并捕获文本到名称为name的组里,也可以写成(?'name'exp)
(?:exp) 匹配exp,不捕获匹配的文本,也不给此分组分配组号
零宽断言
(?=exp) 匹配exp前面的位置
(?<=exp) 匹配exp后面的位置
(?!exp) 匹配后面跟的不是exp的位置
(?<!exp) 匹配前面不是exp的位置
注释
(?#comment) 这种类型的分组不对正则表达式的处理产生任何影响,用于提供注释让人阅读
* 表达式:\(?0\d{2}[) -]?\d{8}
* 这个表达式可以匹配几种格式的电话号码,像(010)88886666,或022-22334455,或02912345678等。
* 我们对它进行一些分析吧:
* 首先是一个转义字符\(,它能出现0次或1次(?),然后是一个0,后面跟着2个数字(\d{2}),然后是)或-或空格中的一个,它出现1次或不出现(?),
* 最后是8个数字(\d{8})
*/
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface NYSRegularCheck : NSObject
#pragma 正则校验邮箱号
+ (BOOL)checkMailInput:(NSString *)mail;
#pragma 正则校验AouthCode
+ (BOOL)checkAouthCode:(NSString *)auth;
#pragma 正则校验手机号
+ (BOOL)checkTelNumber:(NSString *) telNumber;
#pragma 车牌号验证
+ (BOOL)checkCarNumber:(NSString *) CarNumber;
#pragma 正则校验昵称
+ (BOOL)checkNickname:(NSString *) nickname;
#pragma 正则校验用户密码6-18位数字和字母组合
+ (BOOL)checkPassword:(NSString *) password;
#pragma 正则校验用户身份证号
+ (BOOL)checkUserIcyard: (NSString *) icyard;
#pragma 正则校验员工号,12位的数字
+ (BOOL)checkEmployeeNumber : (NSString *) number;
#pragma 正则校验URL
+ (BOOL)checkURL : (NSString *) url;
#pragma 正则校验以C开头的18位字符
+ (BOOL)checkCtooNumberTo18:(NSString *) nickNumber;
#pragma 正则校验以C开头字符
+ (BOOL)checkCtooNumber:(NSString *) nickNumber;
#pragma 正则校验银行卡号是否正确
+ (BOOL)checkBankNumber:(NSString *) bankNumber;
#pragma 正则只能输入数字和字母
+ (BOOL)checkTeshuZifuNumber:(NSString *) CheJiaNumber;
#pragma 正则只能输入汉字
+ (BOOL)checkChineseCharacters:(NSString *) name;
#pragma 正则验证金额数字
+ (BOOL)checkFloatMoney:(NSString *) money;
#pragma 正则验证精确到小数点后三位
+ (BOOL)checkThreeDecimalPlaces:(NSString *) value;
@end
NS_ASSUME_NONNULL_END
| 25.782258 | 79 | 0.661558 |
f3c1c28fd864787cbb06d27fba95fdf3c8f4af7e | 1,934 | h | C | CoreGraphics/include/CoreGraphics/CGPDFArray.h | waleedmashaqbeh/freequartz | 64cd65bb76aac6608ed6e3de07c58c131d0dc5bc | [
"Apache-2.0"
] | 12 | 2016-03-24T22:26:38.000Z | 2022-02-01T19:40:02.000Z | CoreGraphics/include/CoreGraphics/CGPDFArray.h | stan6/freequartz | 64cd65bb76aac6608ed6e3de07c58c131d0dc5bc | [
"Apache-2.0"
] | null | null | null | CoreGraphics/include/CoreGraphics/CGPDFArray.h | stan6/freequartz | 64cd65bb76aac6608ed6e3de07c58c131d0dc5bc | [
"Apache-2.0"
] | 4 | 2015-10-27T19:55:54.000Z | 2020-03-09T23:04:56.000Z | /* Copyright 2010 Smartmobili SARL
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef CGPDFARRAY_H_
#define CGPDFARRAY_H_
typedef struct CGPDFArray *CGPDFArrayRef;
#include <CoreGraphics/CGPDFDictionary.h>
#include <CoreGraphics/CGPDFObject.h>
#include <CoreGraphics/CGPDFStream.h>
#include <CoreGraphics/CGPDFString.h>
CG_EXTERN size_t CGPDFArrayGetCount(CGPDFArrayRef array);
CG_EXTERN bool CGPDFArrayGetObject(CGPDFArrayRef array, size_t index,
CGPDFArrayRef *value);
CG_EXTERN bool CGPDFArrayGetNull(CGPDFArrayRef array, size_t index);
CG_EXTERN bool CGPDFArrayGetBoolean(CGPDFArrayRef array, size_t index,
CGPDFBoolean *value);
CG_EXTERN bool CGPDFArrayGetInteger(CGPDFArrayRef array, size_t index,
CGPDFInteger *value);
CG_EXTERN bool CGPDFArrayGetNumber(CGPDFArrayRef array, size_t index,
CGPDFReal *value);
CG_EXTERN bool CGPDFArrayGetName(CGPDFArrayRef array, size_t index,
const char **value);
CG_EXTERN bool CGPDFArrayGetString(CGPDFArrayRef array, size_t index,
CGPDFStringRef *value);
CG_EXTERN bool CGPDFArrayGetArray(CGPDFArrayRef array, size_t index,
CGPDFArrayRef *value);
CG_EXTERN bool CGPDFArrayGetDictionary(CGPDFArrayRef array, size_t index,
CGPDFDictionaryRef *value);
CG_EXTERN bool CGPDFArrayGetStream(CGPDFArrayRef array, size_t index,
CGPDFStreamRef *value);
#endif /* CGPDFARRAY_H_ */
| 33.929825 | 76 | 0.767839 |
f3d42d563ce27f6bcc0ced728aa0e80c8987c80e | 349 | h | C | mappedmemoryio.h | avinfinity/UnmanagedCodeSnippets | 2bd848db88d7b271209ad30017c8f62307319be3 | [
"MIT"
] | null | null | null | mappedmemoryio.h | avinfinity/UnmanagedCodeSnippets | 2bd848db88d7b271209ad30017c8f62307319be3 | [
"MIT"
] | null | null | null | mappedmemoryio.h | avinfinity/UnmanagedCodeSnippets | 2bd848db88d7b271209ad30017c8f62307319be3 | [
"MIT"
] | null | null | null | #ifndef __IMT_MAPPEDMEMORYIO_H__
#define __IMT_MAPPEDMEMORYIO_H__
#include "iostream"
#include "string"
namespace imt{
namespace volume{
class MappedMemoryIO
{
public:
MappedMemoryIO();
void setFileName( std::string fileName );
protected:
std::string _FileName;
};
}
}
#endif | 8.948718 | 43 | 0.624642 |
ffe487c3aad234a2b5e844da941d305f88f0b1b1 | 711 | h | C | Visual Studio 6/Kapitel 4/OLEDBChart/resource.h | gisfromscratch/windowsappsamples | 594badf5dd3f5272a4aae36b3d35257c91c29135 | [
"Apache-2.0"
] | 1 | 2021-08-03T23:13:53.000Z | 2021-08-03T23:13:53.000Z | Visual Studio 6/Kapitel 4/OLEDBChart/resource.h | gisfromscratch/windowsappsamples | 594badf5dd3f5272a4aae36b3d35257c91c29135 | [
"Apache-2.0"
] | null | null | null | Visual Studio 6/Kapitel 4/OLEDBChart/resource.h | gisfromscratch/windowsappsamples | 594badf5dd3f5272a4aae36b3d35257c91c29135 | [
"Apache-2.0"
] | 1 | 2015-12-25T11:15:10.000Z | 2015-12-25T11:15:10.000Z | //{{NO_DEPENDENCIES}}
// Microsoft Developer Studio generated include file.
// Used by OLEDBChart.rc
//
#define IDD_ABOUTBOX 100
#define IDR_OLEDBCHART 102
#define IDR_MAINFRAME 128
#define IDR_OLEDBCTYPE 129
#define IDD_STOCKCHOOSER 130
#define IDC_LIST1 1000
// Next default values for new objects
//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_3D_CONTROLS 1
#define _APS_NEXT_RESOURCE_VALUE 130
#define _APS_NEXT_COMMAND_VALUE 32771
#define _APS_NEXT_CONTROL_VALUE 1000
#define _APS_NEXT_SYMED_VALUE 103
#endif
#endif
| 30.913043 | 53 | 0.639944 |
d8d776d2e422b1045f056c9e24b9f6579d4f0d3f | 3,550 | c | C | src/spawn.c | kotovalexarian/bloatwm | e674a2da7e56fe4b23fee2229d8c12379f640133 | [
"MIT"
] | null | null | null | src/spawn.c | kotovalexarian/bloatwm | e674a2da7e56fe4b23fee2229d8c12379f640133 | [
"MIT"
] | 4 | 2021-11-14T18:53:07.000Z | 2021-11-18T18:32:38.000Z | src/spawn.c | kotovalexarian/bloatwm | e674a2da7e56fe4b23fee2229d8c12379f640133 | [
"MIT"
] | null | null | null | #include "spawn.h"
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#define MAX_ARGS_COUNT 25
#define ARGS_SIZE (MAX_ARGS_COUNT + 1)
#define MON_ARG_SIZE 2
#ifdef WITH_LOCKER_I3LOCK_COLOR
#define COLOR_BLANK "#00000000"
#define COLOR_CLEAR "#ffffff22"
#define COLOR_DEFAULT "#ff00ffcc"
#define COLOR_TEXT "#ee00eeee"
#define COLOR_WRONG "#880000bb"
#define COLOR_VERIFYING "#bb00bbbb"
#endif // WITH_LOCKER_I3LOCK_COLOR
struct Command {
const char *name;
size_t monitor_arg_index;
const char *args[ARGS_SIZE];
};
static struct Command commands[] = {
#ifdef WITH_LOCKER
{
.name = "lock",
.monitor_arg_index = 0,
#ifdef WITH_LOCKER_I3LOCK
.args = { "i3lock", NULL },
#endif // WITH_LOCKER_I3LOCK
#ifdef WITH_LOCKER_I3LOCK_COLOR
.args = {
"i3lock",
"--insidever-color="COLOR_CLEAR,
"--ringver-color="COLOR_VERIFYING,
"--insidewrong-color="COLOR_CLEAR,
"--ringwrong-color="COLOR_WRONG,
"--inside-color="COLOR_BLANK,
"--ring-color="COLOR_DEFAULT,
"--line-color="COLOR_BLANK,
"--separator-color="COLOR_DEFAULT,
"--verif-color="COLOR_TEXT,
"--wrong-color="COLOR_TEXT,
"--time-color="COLOR_TEXT,
"--date-color="COLOR_TEXT,
"--layout-color="COLOR_TEXT,
"--keyhl-color="COLOR_WRONG,
"--bshl-color="COLOR_WRONG,
"--screen=1",
"--blur=5",
"--clock",
"--indicator",
"--time-str=%H:%M:%S",
"--date-str=%a, %e %b %Y",
"--keylayout=1",
NULL,
},
#endif // WITH_LOCKER_I3LOCK_COLOR
},
#endif // WITH_LOCKER
{
.name = "menu",
.monitor_arg_index = 6,
.args = {
"rofi",
"-modi",
"drun",
"-show",
"drun",
"-monitor",
"-1",
"-show-icons",
NULL,
},
},
#ifdef WITH_TERMINAL
{
.name = "term",
.monitor_arg_index = 0,
#ifdef WITH_TERMINAL_ALACRITTY
.args = { "alacritty", NULL },
#endif // WITH_TERMINAL_ALACRITTY
#ifdef WITH_TERMINAL_GNOME
.args = { "gnome-terminal", "--wait", NULL },
#endif // WITH_TERMINAL_GNOME
#ifdef WITH_TERMINAL_ST
.args = { "st", NULL },
#endif // WITH_TERMINAL_ST
#ifdef WITH_TERMINAL_XTERM
.args = { "xterm", NULL },
#endif // WITH_TERMINAL_XTERM
},
#endif // WITH_TERMINAL
{
.name = "firefox",
.monitor_arg_index = 0,
.args = { "firefox", NULL },
},
};
void spawn_command(
const char *const name,
void (*const callback)(),
const int monitor
) {
// TODO: maybe we should assert here
if (name == NULL || monitor < 0 || monitor > 9) return;
for (
size_t command_index = 0;
command_index < sizeof(commands) / sizeof(struct Command);
++command_index
) {
const struct Command *const command = &commands[command_index];
if (strcmp(name, command->name) != 0) continue;
// We discard const modifier
// because we will only change newly allocated version.
char **args = (char**)command->args;
char monitor_buffer[2] = { '0' + monitor, '\0' };
if (command->monitor_arg_index != 0) {
args = malloc(sizeof(char*) * ARGS_SIZE);
if (args == NULL) return;
for (size_t arg_index = 0;; ++arg_index) {
// We discard const modifier
// because we will only change newly allocated version.
args[arg_index] = (char*)command->args[arg_index];
if (args[arg_index] == NULL) break;
}
args[command->monitor_arg_index] = monitor_buffer;
}
if (fork() == 0) {
callback();
setsid();
execvp(args[0], args);
fprintf(stderr, "polytreewm: execvp %s", args[0]);
perror(" failed");
exit(EXIT_SUCCESS);
}
if (command->monitor_arg_index != 0) free(args);
return;
}
}
| 22.327044 | 65 | 0.647606 |
946e14d812a089cec9294d67f268bd07ca426c26 | 2,538 | h | C | PrivateFrameworks/GeoServices/GEOPOIEvent.h | phatblat/macOSPrivateFrameworks | 9047371eb80f925642c8a7c4f1e00095aec66044 | [
"MIT"
] | 17 | 2018-11-13T04:02:58.000Z | 2022-01-20T09:27:13.000Z | PrivateFrameworks/GeoServices/GEOPOIEvent.h | phatblat/macOSPrivateFrameworks | 9047371eb80f925642c8a7c4f1e00095aec66044 | [
"MIT"
] | 3 | 2018-04-06T02:02:27.000Z | 2018-10-02T01:12:10.000Z | PrivateFrameworks/GeoServices/GEOPOIEvent.h | phatblat/macOSPrivateFrameworks | 9047371eb80f925642c8a7c4f1e00095aec66044 | [
"MIT"
] | 1 | 2018-09-28T13:54:23.000Z | 2018-09-28T13:54:23.000Z | //
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
//
#import "NSObject.h"
#import "NSSecureCoding.h"
@class GEOCacheInvalidationData, GEOMapItemIdentifier, NSArray, NSDateInterval, NSString, NSTimeZone;
@interface GEOPOIEvent : NSObject <NSSecureCoding>
{
GEOCacheInvalidationData *_invalidationData;
BOOL _updateRequired;
GEOMapItemIdentifier *_identifier;
NSString *_localizedName;
CDStruct_2c43369c _centerCoordinate;
long long _expectedAttendance;
NSArray *_categories;
NSArray *_relatedPOIIdentifiers;
NSDateInterval *_dateInterval;
NSTimeZone *_timeZone;
NSArray *_hours;
NSArray *_performers;
}
+ (BOOL)supportsSecureCoding;
+ (BOOL)isUpdateRequiredForInvalidationToken:(id)arg1 error:(id *)arg2;
+ (BOOL)isUpdateRequiredForInvalidationData:(id)arg1;
@property(retain, nonatomic) NSArray *performers; // @synthesize performers=_performers;
@property(retain, nonatomic) NSArray *hours; // @synthesize hours=_hours;
@property(retain, nonatomic) NSTimeZone *timeZone; // @synthesize timeZone=_timeZone;
@property(retain, nonatomic) NSDateInterval *dateInterval; // @synthesize dateInterval=_dateInterval;
@property(retain, nonatomic) NSArray *relatedPOIIdentifiers; // @synthesize relatedPOIIdentifiers=_relatedPOIIdentifiers;
@property(retain, nonatomic) NSArray *categories; // @synthesize categories=_categories;
@property(nonatomic) long long expectedAttendance; // @synthesize expectedAttendance=_expectedAttendance;
@property(nonatomic) CDStruct_c3b9c2ee centerCoordinate; // @synthesize centerCoordinate=_centerCoordinate;
@property(retain, nonatomic) NSString *localizedName; // @synthesize localizedName=_localizedName;
@property(retain, nonatomic) GEOMapItemIdentifier *identifier; // @synthesize identifier=_identifier;
@property(retain, nonatomic) GEOCacheInvalidationData *invalidationData; // @synthesize invalidationData=_invalidationData;
- (void).cxx_destruct;
- (id)invalidationToken;
@property(readonly, nonatomic, getter=isUpdateRequired) BOOL updateRequired; // @synthesize updateRequired=_updateRequired;
- (void)encodeWithCoder:(id)arg1;
- (id)initWithCoder:(id)arg1;
- (BOOL)configureWithPlaceInfoComponent:(id)arg1;
- (id)dateIntervalFromDateTimeRanges:(id)arg1;
- (BOOL)configureWithPOIComponent:(id)arg1;
- (BOOL)configureWithComponents:(id)arg1;
- (id)initWithPlace:(id)arg1;
- (id)initWithMapItemIdentifier:(id)arg1;
- (id)init;
- (void)geoPOIEventCommonInit;
@end
| 43.016949 | 123 | 0.789204 |
94d04c42a42f19684844065ee391f40eef0586ce | 1,198 | c | C | ext/digest/murmurhash/2.c | ksss/digest-murmurhash | e79f43165c5f38c04f84e5560cba4e268723fe16 | [
"MIT"
] | 33 | 2015-02-17T21:24:27.000Z | 2021-03-26T23:37:07.000Z | ext/digest/murmurhash/2.c | ksss/digest-murmurhash | e79f43165c5f38c04f84e5560cba4e268723fe16 | [
"MIT"
] | 1 | 2016-12-30T11:43:00.000Z | 2016-12-30T14:29:12.000Z | ext/digest/murmurhash/2.c | ksss/digest-murmurhash | e79f43165c5f38c04f84e5560cba4e268723fe16 | [
"MIT"
] | 7 | 2015-07-02T12:05:34.000Z | 2021-06-04T07:30:44.000Z | /*
* MurmurHash2 (C) Austin Appleby
*/
#include "init.h"
static uint32_t
murmur_hash_process2(const char *data, uint32_t length, uint32_t seed)
{
const uint32_t m = MURMURHASH_MAGIC;
const uint8_t r = 24;
uint32_t h, k;
h = seed ^ length;
while (4 <= length) {
k = *(uint32_t*)data;
k *= m;
k ^= k >> r;
k *= m;
h *= m;
h ^= k;
data += 4;
length -= 4;
}
switch (length) {
case 3: h ^= data[2] << 16;
case 2: h ^= data[1] << 8;
case 1: h ^= data[0];
h *= m;
}
h ^= h >> 13;
h *= m;
h ^= h >> 15;
return h;
}
VALUE
murmur2_finish(VALUE self)
{
uint8_t digest[4];
uint32_t h;
h = _murmur_finish32(self, murmur_hash_process2);
assign_by_endian_32(digest, h);
return rb_str_new((const char*) digest, 4);
}
VALUE
murmur2_s_digest(int argc, VALUE *argv, VALUE klass)
{
uint8_t digest[4];
uint32_t h;
h = _murmur_s_digest32(argc, argv, klass, murmur_hash_process2);
assign_by_endian_32(digest, h);
return rb_str_new((const char*) digest, 4);
}
VALUE
murmur2_s_rawdigest(int argc, VALUE *argv, VALUE klass)
{
return ULONG2NUM(_murmur_s_digest32(argc, argv, klass, murmur_hash_process2));
}
| 17.362319 | 80 | 0.615192 |
9ea75b8f73d2ca71717d8bbdb9757fc3273ae3cb | 322 | h | C | vowpalwabbit/explore_eval.h | Debjoy10/vowpal_wabbit | 21b1e4cb46e9bc21dd773013a79785f1d032ab97 | [
"BSD-3-Clause"
] | 2 | 2021-02-16T14:20:34.000Z | 2021-02-16T16:37:43.000Z | vowpalwabbit/explore_eval.h | KonstantinKlepikov/vowpal_wabbit | d24912fb51a838e2034fe897865ce29963f90e65 | [
"BSD-3-Clause"
] | null | null | null | vowpalwabbit/explore_eval.h | KonstantinKlepikov/vowpal_wabbit | d24912fb51a838e2034fe897865ce29963f90e65 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) by respective owners including Yahoo!, Microsoft, and
// individual contributors. All rights reserved. Released under a BSD (revised)
// license as described in the file LICENSE.
#pragma once
#include "reductions_fwd.h"
LEARNER::base_learner* explore_eval_setup(VW::config::options_i& options, vw& all);
| 40.25 | 83 | 0.773292 |
d2257df583164dc73e976041ed49039ded2d638a | 2,063 | h | C | platform_bionic-android-vts-12.0_r2/libc/malloc_debug/debug_log.h | webos21/xbionic | ffb3965e86ae4a921d0cffbfdc44cbdfe6acf67a | [
"Apache-2.0"
] | 1 | 2019-05-04T02:30:08.000Z | 2019-05-04T02:30:08.000Z | platform_bionic-android-vts-12.0_r2/libc/malloc_debug/debug_log.h | webos21/xbionic | ffb3965e86ae4a921d0cffbfdc44cbdfe6acf67a | [
"Apache-2.0"
] | null | null | null | platform_bionic-android-vts-12.0_r2/libc/malloc_debug/debug_log.h | webos21/xbionic | ffb3965e86ae4a921d0cffbfdc44cbdfe6acf67a | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2009 The Android Open Source Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/
#pragma once
#include <async_safe/log.h>
// =============================================================================
// log functions
// =============================================================================
#define debug_log(format, ...) \
async_safe_format_log(ANDROID_LOG_DEBUG, "malloc_debug", (format), ##__VA_ARGS__)
#define error_log(format, ...) \
async_safe_format_log(ANDROID_LOG_ERROR, "malloc_debug", (format), ##__VA_ARGS__)
#define error_log_string(str) async_safe_write_log(ANDROID_LOG_ERROR, "malloc_debug", (str))
#define info_log(format, ...) \
async_safe_format_log(ANDROID_LOG_INFO, "malloc_debug", (format), ##__VA_ARGS__)
| 47.976744 | 92 | 0.702375 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.