/* <:copyright-BRCM:2014:DUAL/GPL:standard Copyright (c) 2014 Broadcom All Rights Reserved This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2, as published by the Free Software Foundation (the "GPL"). 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. A copy of the GPL is available at http://www.broadcom.com/licenses/GPLv2.php, or by writing to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. :> */ #include #include #include "bcm_OS_Deps.h" #include #include "chal_types.h" #include "chal_simio.h" #include #include "simio.h" #include "simio_board.h" #include "sim_export_defs.h" #include "shared_utils.h" static int sim_card_proc_handler(struct ctl_table *ctl, int write, void __user *buffer, size_t *res, loff_t *ppos); char sim_card_str[30]; static ctl_table sim_card_child_table[] = { { .procname = "bcm_sim_card", .data = &sim_card_str, .maxlen = sizeof(sim_card_str), .mode = 0644, .proc_handler = &sim_card_proc_handler, }, { } }; static ctl_table sim_card_root_table[] = { { .procname = "sim_card", .mode = 0644, .child = sim_card_child_table }, { .procname = NULL } }; int read_option; struct ctl_table_header *sim_card_sysctl_header; static void print_byte_array(UInt8 *data, UInt16 len) { int i; for (i=0; i