Changeset f9d0a86 in mainline for uspace/drv/intctl/obio/obio.h


Ignore:
Timestamp:
2017-11-14T12:24:42Z (6 years ago)
Author:
Aearsis <Hlavaty.Ondrej@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6cad776
Parents:
887c9de (diff), d2d142a (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.
git-author:
Aearsis <Hlavaty.Ondrej@…> (2017-11-14 01:04:19)
git-committer:
Aearsis <Hlavaty.Ondrej@…> (2017-11-14 12:24:42)
Message:

Merge tag '0.7.1'

The merge wasn't clean, because of changes in build system. The most
significant change was partial revert of usbhc callback refactoring,
which now does not take usb transfer batch, but few named fields again.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • uspace/drv/intctl/obio/obio.h

    r887c9de rf9d0a86  
    11/*
    2  * Copyright (c) 2005 Martin Decky
     2 * Copyright (c) 2017 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    2727 */
    2828
    29 /** @addtogroup libcia32
     29/** @addtogroup genarch
    3030 * @{
    3131 */
     
    3333 */
    3434
    35 #ifndef LIBC_ia32_TYPES_H_
    36 #define LIBC_ia32_TYPES_H_
     35#ifndef OBIO_H_
     36#define OBIO_H_
    3737
    38 #include <libarch/common.h>
    39 #include <libarch/stddef.h>
    40 #include <libarch/stdint.h>
     38#include <ddf/driver.h>
     39#include <ddi.h>
     40#include <loc.h>
     41#include <stdint.h>
    4142
    42 #define __32_BITS__
     43typedef struct {
     44        uintptr_t base;
     45} obio_res_t;
    4346
    44 #define SSIZE_MIN  INT32_MIN
    45 #define SSIZE_MAX  INT32_MAX
     47/** OBIO */
     48typedef struct {
     49        ioport64_t *regs;
     50        uintptr_t phys_base;
     51        ddf_dev_t *dev;
     52} obio_t;
    4653
    47 typedef uint32_t sysarg_t;
    48 typedef int32_t native_t;
    49 
    50 typedef uint32_t atomic_count_t;
    51 typedef int32_t atomic_signed_t;
     54extern int obio_add(obio_t *, obio_res_t *);
     55extern int obio_remove(obio_t *);
     56extern int obio_gone(obio_t *);
    5257
    5358#endif
Note: See TracChangeset for help on using the changeset viewer.