~ubuntu-branches/ubuntu/vivid/openipmi/vivid

« back to all changes in this revision

Viewing changes to include/OpenIPMI/internal/ipmi_domain.h

  • Committer: Bazaar Package Importer
  • Author(s): Noèl Köthe
  • Date: 2006-09-15 17:56:24 UTC
  • mfrom: (1.1.2 upstream) (2.1.1 etch)
  • Revision ID: james.westby@ubuntu.com-20060915175624-ljk0mg3xtcm65tvm
Tags: 2.0.7-1
* new upstream release from 2006-06-08
  Thanks to John Wright <john.wright hp.com> for initial work
  (closes: Bug#380149)
* updated Standards Version
* new binaries openipmicmd, openipmish, rmcp_ping

Show diffs side-by-side

added added

removed removed

Lines of Context:
125
125
int _ipmi_domain_check_oem_handlers(ipmi_domain_t *domain, ipmi_mc_t *mc);
126
126
 
127
127
/* Scan a system interface address for an MC. */
128
 
void ipmi_start_si_scan(ipmi_domain_t *domain,
129
 
                        int            si_num,
130
 
                        ipmi_domain_cb done_handler,
131
 
                        void           *cb_data);
 
128
int ipmi_start_si_scan(ipmi_domain_t *domain,
 
129
                       int            si_num,
 
130
                       ipmi_domain_cb done_handler,
 
131
                       void           *cb_data);
132
132
 
133
133
/* Add an IPMB address to a list of addresses to not scan.  This way,
134
134
   if you have weak puny devices in IPMB that will break if you do
135
135
   normal IPMB operations, you can have them be ignored. */
136
136
int ipmi_domain_add_ipmb_ignore(ipmi_domain_t *domain,
 
137
                                unsigned char channel,
137
138
                                unsigned char ipmb_addr);
138
139
int ipmi_domain_add_ipmb_ignore_range(ipmi_domain_t *domain,
 
140
                                      unsigned char channel,
139
141
                                      unsigned char first_ipmb_addr,
140
142
                                      unsigned char last_ipmb_addr);
141
143
 
208
210
/* Set the domain type for a domain. */
209
211
void ipmi_domain_set_type(ipmi_domain_t *domain, enum ipmi_domain_type dtype);
210
212
 
211
 
/* OEM code can call then when it know that an MC scan is complete, to
212
 
   speed things up. */
213
 
void _ipmi_mc_scan_done(ipmi_domain_t *domain);
 
213
/* OEM code can call this to do its own bus scanning to speed things
 
214
   up. Must be holding the domain MC lock (_ipmi_domain_mc_lock()) to
 
215
   call this. */
 
216
void _ipmi_start_mc_scan_one(ipmi_domain_t *domain, int chan,
 
217
                             int first, int last);
214
218
 
215
219
/* Can be used to generate unique numbers for a domain. */
216
220
unsigned int ipmi_domain_get_unique_num(ipmi_domain_t *domain);
221
225
/* Clean up the global domain memory. */
222
226
void _ipmi_domain_shutdown(void);
223
227
 
 
228
/* Is the domain currently in shutdown? */
 
229
int _ipmi_domain_in_shutdown(ipmi_domain_t *domain);
224
230
 
225
231
/* Used as a refcount to know when the domain is completely
226
232
   operational. */
227
 
void _ipmi_get_domain_fully_up(ipmi_domain_t *domain);
228
 
void _ipmi_put_domain_fully_up(ipmi_domain_t *domain);
 
233
void _ipmi_get_domain_fully_up(ipmi_domain_t *domain, char *name);
 
234
void _ipmi_put_domain_fully_up(ipmi_domain_t *domain, char *name);
229
235
 
 
236
/* Return connections for a domain. */
 
237
int _ipmi_domain_get_connection(ipmi_domain_t *domain,
 
238
                                int           con_num,
 
239
                                ipmi_con_t    **con);
230
240
 
231
241
/* Option settings. */
232
242
int ipmi_option_SDRs(ipmi_domain_t *domain);
237
247
int ipmi_option_set_event_rcvr(ipmi_domain_t *domain);
238
248
int ipmi_option_set_sel_time(ipmi_domain_t *domain);
239
249
int ipmi_option_activate_if_possible(ipmi_domain_t *domain);
 
250
int ipmi_option_local_only(ipmi_domain_t *domain);
 
251
 
 
252
void _ipmi_option_set_local_only_if_not_specified(ipmi_domain_t *domain,
 
253
                                                  int           val);
240
254
 
241
255
/*
242
256
 * Domain attribute handling.