Changeset 5828554 in mainline for kernel/generic/include/log.h


Ignore:
Timestamp:
2014-01-19T14:37:22Z (10 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
cf982ff
Parents:
2f591127 (diff), 476f62c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

merge mainline changes

File:
1 moved

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/log.h

    r2f591127 r5828554  
    11/*
    2  * Copyright (c) 2012 Petr Jerman
     2 * Copyright (c) 2013 Martin Sucha
    33 * All rights reserved.
    44 *
     
    2727 */
    2828
    29 /** @addtogroup libc
     29/** @addtogroup genericlog
    3030 * @{
    3131 */
    3232/** @file
    33  * @brief AHCI interface definition.
    3433 */
    3534
    36 #ifndef LIBC_DEVICE_AHCI_H_
    37 #define LIBC_DEVICE_AHCI_H_
     35#ifndef KERN_LOG_H_
     36#define KERN_LOG_H_
    3837
    39 #include <async.h>
    40 #include <devman.h>
     38#include <typedefs.h>
     39#include <stdarg.h>
     40#include <printf/verify.h>
     41#include <abi/log.h>
     42#include <abi/klog.h>
    4143
    42 extern async_sess_t* ahci_get_sess(devman_handle_t, char **);
     44extern void log_init(void);
     45extern void log_begin(log_facility_t, log_level_t);
     46extern void log_end(void);
     47extern int log_vprintf(const char *, va_list);
     48extern int log_printf(const char *, ...)
     49    PRINTF_ATTRIBUTE(1, 2);
     50extern int log(log_facility_t, log_level_t, const char *, ...)
     51    PRINTF_ATTRIBUTE(3, 4);
    4352
    44 extern int ahci_get_sata_device_name(async_sess_t *, size_t, char *);
    45 extern int ahci_get_num_blocks(async_sess_t *, uint64_t *);
    46 extern int ahci_get_block_size(async_sess_t *, size_t *);
    47 extern int ahci_read_blocks(async_sess_t *, uint64_t, size_t, void *);
    48 extern int ahci_write_blocks(async_sess_t *, uint64_t, size_t, void *);
     53extern sysarg_t sys_klog(sysarg_t, void *buf, size_t size,
     54    sysarg_t level);
    4955
    50 #endif
     56#endif /* KERN_LOG_H_ */
    5157
    5258/** @}
Note: See TracChangeset for help on using the changeset viewer.