~ubuntu-branches/debian/wheezy/linux-2.6/wheezy

« back to all changes in this revision

Viewing changes to drivers/staging/tidspbridge/rmgr/dbdcd.c

  • Committer: Bazaar Package Importer
  • Author(s): Ben Hutchings, Ben Hutchings, Aurelien Jarno
  • Date: 2011-06-07 12:14:05 UTC
  • mfrom: (43.1.9 sid)
  • Revision ID: james.westby@ubuntu.com-20110607121405-i3h1rd7nrnd2b73h
Tags: 2.6.39-2
[ Ben Hutchings ]
* [x86] Enable BACKLIGHT_APPLE, replacing BACKLIGHT_MBP_NVIDIA
  (Closes: #627492)
* cgroups: Disable memory resource controller by default. Allow it
  to be enabled using kernel parameter 'cgroup_enable=memory'.
* rt2800usb: Enable support for more USB devices including
  Linksys WUSB600N (Closes: #596626) (this change was accidentally
  omitted from 2.6.39-1)
* [x86] Remove Celeron from list of processors supporting PAE. Most
  'Celeron M' models do not.
* Update debconf template translations:
  - Swedish (Martin Bagge) (Closes: #628932)
  - French (David Prévot) (Closes: #628191)
* aufs: Update for 2.6.39 (Closes: #627837)
* Add stable 2.6.39.1, including:
  - ext4: dont set PageUptodate in ext4_end_bio()
  - pata_cmd64x: fix boot crash on parisc (Closes: #622997, #622745)
  - ext3: Fix fs corruption when make_indexed_dir() fails
  - netfilter: nf_ct_sip: validate Content-Length in TCP SIP messages
  - sctp: fix race between sctp_bind_addr_free() and
    sctp_bind_addr_conflict()
  - sctp: fix memory leak of the ASCONF queue when free asoc
  - md/bitmap: fix saving of events_cleared and other state
  - cdc_acm: Fix oops when Droids MuIn LCD is connected
  - cx88: Fix conversion from BKL to fine-grained locks (Closes: #619827)
  - keys: Set cred->user_ns in key_replace_session_keyring (CVE-2011-2184)
  - tmpfs: fix race between truncate and writepage
  - nfs41: Correct offset for LAYOUTCOMMIT
  - xen/mmu: fix a race window causing leave_mm BUG()
  - ext4: fix possible use-after-free in ext4_remove_li_request()
  For the complete list of changes, see:
   http://www.kernel.org/pub/linux/kernel/v2.6/ChangeLog-2.6.39.1
* Bump ABI to 2
* netfilter: Enable IP_SET, IP_SET_BITMAP_IP, IP_SET_BITMAP_IPMAC,
  IP_SET_BITMAP_PORT, IP_SET_HASH_IP, IP_SET_HASH_IPPORT,
  IP_SET_HASH_IPPORTIP, IP_SET_HASH_IPPORTNET, IP_SET_HASH_NET,
  IP_SET_HASH_NETPORT, IP_SET_LIST_SET, NETFILTER_XT_SET as modules
  (Closes: #629401)

[ Aurelien Jarno ]
* [mipsel/loongson-2f] Disable_SCSI_LPFC to workaround GCC ICE.

Show diffs side-by-side

added added

removed removed

Lines of Context:
134
134
        DBC_REQUIRE(refs >= 0);
135
135
        DBC_REQUIRE(dcd_mgr);
136
136
 
137
 
        status = cod_create(&cod_mgr, sz_zl_dll_name, NULL);
 
137
        status = cod_create(&cod_mgr, sz_zl_dll_name);
138
138
        if (status)
139
139
                goto func_end;
140
140
 
1020
1020
{
1021
1021
        char *pch = psz_buf;
1022
1022
        s32 base = 0;
1023
 
        unsigned long res;
1024
 
        int ret_val;
1025
1023
 
1026
1024
        while (isspace(*pch))
1027
1025
                pch++;
1033
1031
                base = 16;
1034
1032
        }
1035
1033
 
1036
 
        ret_val = strict_strtoul(pch, base, &res);
1037
 
 
1038
 
        return ret_val ? : res;
 
1034
        return simple_strtoul(pch, NULL, base);
1039
1035
}
1040
1036
 
1041
1037
/*
1116
1112
                    dsp_resource_reqmts.program_mem_size = atoi(token);
1117
1113
                token = strsep(&psz_cur, seps);
1118
1114
                gen_obj->obj_data.node_obj.ndb_props.
1119
 
                    dsp_resource_reqmts.uwc_execution_time = atoi(token);
 
1115
                    dsp_resource_reqmts.wc_execution_time = atoi(token);
1120
1116
                token = strsep(&psz_cur, seps);
1121
1117
                gen_obj->obj_data.node_obj.ndb_props.
1122
 
                    dsp_resource_reqmts.uwc_period = atoi(token);
 
1118
                    dsp_resource_reqmts.wc_period = atoi(token);
1123
1119
                token = strsep(&psz_cur, seps);
1124
1120
 
1125
1121
                gen_obj->obj_data.node_obj.ndb_props.
1126
 
                    dsp_resource_reqmts.uwc_deadline = atoi(token);
 
1122
                    dsp_resource_reqmts.wc_deadline = atoi(token);
1127
1123
                token = strsep(&psz_cur, seps);
1128
1124
 
1129
1125
                gen_obj->obj_data.node_obj.ndb_props.
1166
1162
                    atoi(token);
1167
1163
                token = strsep(&psz_cur, seps);
1168
1164
 
1169
 
                /* u32 utimeout */
1170
 
                gen_obj->obj_data.node_obj.ndb_props.utimeout = atoi(token);
1171
 
                token = strsep(&psz_cur, seps);
1172
 
 
1173
 
                /* char *pstr_create_phase_fxn */
1174
 
                DBC_REQUIRE(token);
1175
 
                token_len = strlen(token);
1176
 
                gen_obj->obj_data.node_obj.pstr_create_phase_fxn =
1177
 
                                        kzalloc(token_len + 1, GFP_KERNEL);
1178
 
                strncpy(gen_obj->obj_data.node_obj.pstr_create_phase_fxn,
1179
 
                        token, token_len);
1180
 
                gen_obj->obj_data.node_obj.pstr_create_phase_fxn[token_len] =
1181
 
                    '\0';
1182
 
                token = strsep(&psz_cur, seps);
1183
 
 
1184
 
                /* char *pstr_execute_phase_fxn */
1185
 
                DBC_REQUIRE(token);
1186
 
                token_len = strlen(token);
1187
 
                gen_obj->obj_data.node_obj.pstr_execute_phase_fxn =
1188
 
                                        kzalloc(token_len + 1, GFP_KERNEL);
1189
 
                strncpy(gen_obj->obj_data.node_obj.pstr_execute_phase_fxn,
1190
 
                        token, token_len);
1191
 
                gen_obj->obj_data.node_obj.pstr_execute_phase_fxn[token_len] =
1192
 
                    '\0';
1193
 
                token = strsep(&psz_cur, seps);
1194
 
 
1195
 
                /* char *pstr_delete_phase_fxn */
1196
 
                DBC_REQUIRE(token);
1197
 
                token_len = strlen(token);
1198
 
                gen_obj->obj_data.node_obj.pstr_delete_phase_fxn =
1199
 
                                        kzalloc(token_len + 1, GFP_KERNEL);
1200
 
                strncpy(gen_obj->obj_data.node_obj.pstr_delete_phase_fxn,
1201
 
                        token, token_len);
1202
 
                gen_obj->obj_data.node_obj.pstr_delete_phase_fxn[token_len] =
 
1165
                /* u32 timeout */
 
1166
                gen_obj->obj_data.node_obj.ndb_props.timeout = atoi(token);
 
1167
                token = strsep(&psz_cur, seps);
 
1168
 
 
1169
                /* char *str_create_phase_fxn */
 
1170
                DBC_REQUIRE(token);
 
1171
                token_len = strlen(token);
 
1172
                gen_obj->obj_data.node_obj.str_create_phase_fxn =
 
1173
                                        kzalloc(token_len + 1, GFP_KERNEL);
 
1174
                strncpy(gen_obj->obj_data.node_obj.str_create_phase_fxn,
 
1175
                        token, token_len);
 
1176
                gen_obj->obj_data.node_obj.str_create_phase_fxn[token_len] =
 
1177
                    '\0';
 
1178
                token = strsep(&psz_cur, seps);
 
1179
 
 
1180
                /* char *str_execute_phase_fxn */
 
1181
                DBC_REQUIRE(token);
 
1182
                token_len = strlen(token);
 
1183
                gen_obj->obj_data.node_obj.str_execute_phase_fxn =
 
1184
                                        kzalloc(token_len + 1, GFP_KERNEL);
 
1185
                strncpy(gen_obj->obj_data.node_obj.str_execute_phase_fxn,
 
1186
                        token, token_len);
 
1187
                gen_obj->obj_data.node_obj.str_execute_phase_fxn[token_len] =
 
1188
                    '\0';
 
1189
                token = strsep(&psz_cur, seps);
 
1190
 
 
1191
                /* char *str_delete_phase_fxn */
 
1192
                DBC_REQUIRE(token);
 
1193
                token_len = strlen(token);
 
1194
                gen_obj->obj_data.node_obj.str_delete_phase_fxn =
 
1195
                                        kzalloc(token_len + 1, GFP_KERNEL);
 
1196
                strncpy(gen_obj->obj_data.node_obj.str_delete_phase_fxn,
 
1197
                        token, token_len);
 
1198
                gen_obj->obj_data.node_obj.str_delete_phase_fxn[token_len] =
1203
1199
                    '\0';
1204
1200
                token = strsep(&psz_cur, seps);
1205
1201
 
1211
1207
                gen_obj->obj_data.node_obj.msg_notify_type = atoi(token);
1212
1208
                token = strsep(&psz_cur, seps);
1213
1209
 
1214
 
                /* char *pstr_i_alg_name */
 
1210
                /* char *str_i_alg_name */
1215
1211
                if (token) {
1216
1212
                        token_len = strlen(token);
1217
 
                        gen_obj->obj_data.node_obj.pstr_i_alg_name =
 
1213
                        gen_obj->obj_data.node_obj.str_i_alg_name =
1218
1214
                                        kzalloc(token_len + 1, GFP_KERNEL);
1219
 
                        strncpy(gen_obj->obj_data.node_obj.pstr_i_alg_name,
 
1215
                        strncpy(gen_obj->obj_data.node_obj.str_i_alg_name,
1220
1216
                                token, token_len);
1221
 
                        gen_obj->obj_data.node_obj.pstr_i_alg_name[token_len] =
 
1217
                        gen_obj->obj_data.node_obj.str_i_alg_name[token_len] =
1222
1218
                            '\0';
1223
1219
                        token = strsep(&psz_cur, seps);
1224
1220
                }
1225
1221
 
1226
1222
                /* Load type (static, dynamic, or overlay) */
1227
1223
                if (token) {
1228
 
                        gen_obj->obj_data.node_obj.us_load_type = atoi(token);
 
1224
                        gen_obj->obj_data.node_obj.load_type = atoi(token);
1229
1225
                        token = strsep(&psz_cur, seps);
1230
1226
                }
1231
1227
 
1232
1228
                /* Dynamic load data requirements */
1233
1229
                if (token) {
1234
 
                        gen_obj->obj_data.node_obj.ul_data_mem_seg_mask =
 
1230
                        gen_obj->obj_data.node_obj.data_mem_seg_mask =
1235
1231
                            atoi(token);
1236
1232
                        token = strsep(&psz_cur, seps);
1237
1233
                }
1238
1234
 
1239
1235
                /* Dynamic load code requirements */
1240
1236
                if (token) {
1241
 
                        gen_obj->obj_data.node_obj.ul_code_mem_seg_mask =
 
1237
                        gen_obj->obj_data.node_obj.code_mem_seg_mask =
1242
1238
                            atoi(token);
1243
1239
                        token = strsep(&psz_cur, seps);
1244
1240
                }
1257
1253
                                        /* Heap Size for the node */
1258
1254
                                        gen_obj->obj_data.node_obj.
1259
1255
                                            ndb_props.node_profiles[i].
1260
 
                                            ul_heap_size = atoi(token);
 
1256
                                            heap_size = atoi(token);
1261
1257
                                }
1262
1258
                        }
1263
1259
                }
1289
1285
                gen_obj->obj_data.proc_info.clock_rate = atoi(token);
1290
1286
                token = strsep(&psz_cur, seps);
1291
1287
 
1292
 
                gen_obj->obj_data.proc_info.ul_internal_mem_size = atoi(token);
 
1288
                gen_obj->obj_data.proc_info.internal_mem_size = atoi(token);
1293
1289
                token = strsep(&psz_cur, seps);
1294
1290
 
1295
 
                gen_obj->obj_data.proc_info.ul_external_mem_size = atoi(token);
 
1291
                gen_obj->obj_data.proc_info.external_mem_size = atoi(token);
1296
1292
                token = strsep(&psz_cur, seps);
1297
1293
 
1298
1294
                gen_obj->obj_data.proc_info.processor_id = atoi(token);
1312
1308
                for (entry_id = 0; entry_id < 7; entry_id++) {
1313
1309
                        token = strsep(&psz_cur, seps);
1314
1310
                        gen_obj->obj_data.ext_proc_obj.ty_tlb[entry_id].
1315
 
                            ul_gpp_phys = atoi(token);
 
1311
                            gpp_phys = atoi(token);
1316
1312
 
1317
1313
                        token = strsep(&psz_cur, seps);
1318
1314
                        gen_obj->obj_data.ext_proc_obj.ty_tlb[entry_id].
1319
 
                            ul_dsp_virt = atoi(token);
 
1315
                            dsp_virt = atoi(token);
1320
1316
                }
1321
1317
#endif
1322
1318