/* * Mausezahn - A fast versatile traffic generator * Copyright (C) 2008-2010 Herbert Haas * * This program is free software; you can redistribute it and/or modify it under * the terms of the GNU General Public License version 2 as published by the * Free Software Foundation. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more * details. * * You should have received a copy of the GNU General Public License along with * this program; if not, see http://www.gnu.org/licenses/gpl-2.0.html * */ #include "mz.h" // Returns a nice string with default and current value of a given variable // // EXAMPLE: // // char mystring[256]; // mz_def16 ("20 seconds", pd->max_age, mystring) // int mz_def16 (char *def, u_int16_t val, char *str256) { str256[0]=0x00; sprintf(str256, "The default value is %s. The current value is %u (0x%04x).", def, val, val); return 0; } er' selected='selected'>master net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomasz Nowicki <tn@semihalf.com>2016-05-11 17:34:51 -0500
committerBjorn Helgaas <bhelgaas@google.com>2016-05-12 07:07:42 -0500
commitc5076cfe768998e9d395bc8486b29b18b0f99fd9 (patch)
tree94eaff672e0871147c33abf16edcbf0843078e25
parent1958e7173df14ff50d75ed2fbd24b349d25caf80 (diff)
PCI, of: Move PCI I/O space management to PCI core code
No functional changes in this patch. PCI I/O space mapping code does not depend on OF; therefore it can be moved to PCI core code. This way we will be able to use it, e.g., in ACPI PCI code. Suggested-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Signed-off-by: Tomasz Nowicki <tn@semihalf.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> CC: Arnd Bergmann <arnd@arndb.de> CC: Liviu Dudau <Liviu.Dudau@arm.com>
Diffstat