/* SPDX-License-Identifier: GPL-2.0-only */ /* * FSI master definitions. These comprise the core <--> master interface, * to allow the core to interact with the (hardware-specific) masters. * * Copyright (C) IBM Corporation 2016
*/
/* * Protocol definitions * * These are used by low level masters that bit-bang out the protocol
*/
/* Various protocol delays */ #define FSI_ECHO_DELAY_CLOCKS 16 /* Number clocks for echo delay */ #define FSI_SEND_DELAY_CLOCKS 16 /* Number clocks for send delay */ #define FSI_PRE_BREAK_CLOCKS 50 /* Number clocks to prep for break */ #define FSI_BREAK_CLOCKS 256 /* Number of clocks to issue break */ #define FSI_POST_BREAK_CLOCKS 16000 /* Number clocks to set up cfam */ #define FSI_INIT_CLOCKS 5000 /* Clock out any old data */ #define FSI_MASTER_DPOLL_CLOCKS 50 /* < 21 will cause slave to hang */ #define FSI_MASTER_EPOLL_CLOCKS 50 /* Number of clocks for E_POLL retry */
/** * fsi_master registration & lifetime: the fsi_master_register() and * fsi_master_unregister() functions will take ownership of the master, and * ->dev in particular. The registration path performs a get_device(), which * takes the first reference on the device. Similarly, the unregistration path * performs a put_device(), which may well drop the last reference. * * This means that master implementations *may* need to hold their own * reference (via get_device()) on master->dev. In particular, if the device's * ->release callback frees the fsi_master, then fsi_master_unregister will * invoke this free if no other reference is held. * * The same applies for the error path of fsi_master_register; if the call * fails, dev->release will have been invoked.
*/ externint fsi_master_register(struct fsi_master *master); externvoid fsi_master_unregister(struct fsi_master *master);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.