1 #
   2 # CDDL HEADER START
   3 #
   4 # The contents of this file are subject to the terms of the
   5 # Common Development and Distribution License (the "License").
   6 # You may not use this file except in compliance with the License.
   7 #
   8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9 # or http://www.opensolaris.org/os/licensing.
  10 # See the License for the specific language governing permissions
  11 # and limitations under the License.
  12 #
  13 # When distributing Covered Code, include this CDDL HEADER in each
  14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15 # If applicable, add the following below this CDDL HEADER, with the
  16 # fields enclosed by brackets "[]" replaced with your own identifying
  17 # information: Portions Copyright [yyyy] [name of copyright owner]
  18 #
  19 # CDDL HEADER END
  20 #
  21 #
  22 # Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
  23 # Copyright 2014, Joyent, Inc. All rights reserved.
  24 # Copyright 2013 Garrett D'Amore <garrett@damore.org>
  25 # Copyright 2013 Saso Kiselkov. All rights reserved.
  26 # Copyright 2015 Nexenta Systems, Inc. All rights reserved.
  27 # Copyright 2015 Igor Kozhukhov <ikozhukhov@gmail.com>
  28 #
  29 
  30 include $(SRC)/uts/Makefile.uts
  31 
  32 FILEMODE=644
  33 
  34 #
  35 #       Note that the following headers are present in the kernel but
  36 #       neither installed or shipped as part of the product:
  37 #               cpuid_drv.h:            Private interface for cpuid consumers
  38 #               unix_bb_info.h:         Private interface to kcov
  39 #
  40 
  41 i386_HDRS=                      \
  42         agp/agpamd64gart_io.h   \
  43         agp/agpdefs.h           \
  44         agp/agpgart_impl.h      \
  45         agp/agpmaster_io.h      \
  46         agp/agptarget_io.h      \
  47         agpgart.h               \
  48         asy.h                   \
  49         fd_debug.h              \
  50         fdc.h                   \
  51         fdmedia.h               \
  52         mouse.h                 \
  53         ucode.h
  54 
  55 sparc_HDRS=                     \
  56         mouse.h                 \
  57         scsi/targets/ssddef.h   \
  58         $(MDESCHDRS)
  59 
  60 # Generated headers
  61 GENHDRS=                        \
  62         priv_const.h            \
  63         priv_names.h            \
  64         usb/usbdevs.h
  65 
  66 CHKHDRS=                        \
  67         acpi_drv.h              \
  68         acct.h                  \
  69         acctctl.h               \
  70         acl.h                   \
  71         acl_impl.h              \
  72         aggr.h                  \
  73         aggr_impl.h             \
  74         aio.h                   \
  75         aio_impl.h              \
  76         aio_req.h               \
  77         aiocb.h                 \
  78         ascii.h                 \
  79         asynch.h                \
  80         atomic.h                \
  81         attr.h                  \
  82         audio.h                 \
  83         audioio.h               \
  84         autoconf.h              \
  85         auxv.h                  \
  86         auxv_386.h              \
  87         auxv_SPARC.h            \
  88         avl.h                   \
  89         avl_impl.h              \
  90         bitmap.h                \
  91         bitset.h                \
  92         bl.h                    \
  93         blkdev.h                \
  94         bofi.h                  \
  95         bofi_impl.h             \
  96         bpp_io.h                \
  97         bootstat.h              \
  98         brand.h                 \
  99         buf.h                   \
 100         bufmod.h                \
 101         bustypes.h              \
 102         byteorder.h             \
 103         callb.h                 \
 104         callo.h                 \
 105         cap_util.h              \
 106         cpucaps.h               \
 107         cpucaps_impl.h          \
 108         ccompile.h              \
 109         cdio.h                  \
 110         cladm.h                 \
 111         class.h                 \
 112         clconf.h                \
 113         clock_impl.h            \
 114         cmlb.h                  \
 115         cmn_err.h               \
 116         compress.h              \
 117         condvar.h               \
 118         condvar_impl.h          \
 119         conf.h                  \
 120         consdev.h               \
 121         console.h               \
 122         consplat.h              \
 123         vt.h                    \
 124         vtdaemon.h              \
 125         kd.h                    \
 126         contract.h              \
 127         contract_impl.h         \
 128         copyops.h               \
 129         core.h                  \
 130         corectl.h               \
 131         cpc_impl.h              \
 132         cpc_pcbe.h              \
 133         cpr.h                   \
 134         cpupart.h               \
 135         cpuvar.h                \
 136         crc32.h                 \
 137         cred.h                  \
 138         cred_impl.h             \
 139         pidnode.h               \
 140         crtctl.h                \
 141         cryptmod.h              \
 142         csiioctl.h              \
 143         ctf.h                   \
 144         ctfs.h                  \
 145         ctfs_impl.h             \
 146         ctf_api.h               \
 147         ctype.h                 \
 148         cyclic.h                \
 149         cyclic_impl.h           \
 150         dacf.h                  \
 151         dacf_impl.h             \
 152         damap.h                 \
 153         damap_impl.h            \
 154         dc_ki.h                 \
 155         ddi.h                   \
 156         ddifm.h                 \
 157         ddifm_impl.h            \
 158         ddi_hp.h                \
 159         ddi_hp_impl.h           \
 160         ddi_intr.h              \
 161         ddi_intr_impl.h         \
 162         ddi_impldefs.h          \
 163         ddi_implfuncs.h         \
 164         ddi_obsolete.h          \
 165         ddi_periodic.h          \
 166         ddidevmap.h             \
 167         ddidmareq.h             \
 168         ddimapreq.h             \
 169         ddipropdefs.h           \
 170         dditypes.h              \
 171         debug.h                 \
 172         des.h                   \
 173         devctl.h                \
 174         devcache.h              \
 175         devcache_impl.h         \
 176         devfm.h                 \
 177         devid_cache.h           \
 178         devinfo_impl.h          \
 179         devops.h                \
 180         devpolicy.h             \
 181         devpoll.h               \
 182         dirent.h                \
 183         disp.h                  \
 184         dkbad.h                 \
 185         dkio.h                  \
 186         dklabel.h               \
 187         dl.h                    \
 188         dlpi.h                  \
 189         dld.h                   \
 190         dld_impl.h              \
 191         dld_ioc.h               \
 192         dls.h                   \
 193         dls_mgmt.h              \
 194         dls_impl.h              \
 195         dma_i8237A.h            \
 196         dnlc.h                  \
 197         door.h                  \
 198         door_data.h             \
 199         door_impl.h             \
 200         dtrace.h                \
 201         dtrace_impl.h           \
 202         dumpadm.h               \
 203         dumphdr.h               \
 204         ecppsys.h               \
 205         ecppio.h                \
 206         ecppreg.h               \
 207         ecppvar.h               \
 208         edonr.h                 \
 209         efi_partition.h         \
 210         elf.h                   \
 211         elf_386.h               \
 212         elf_SPARC.h             \
 213         elf_notes.h             \
 214         elf_amd64.h             \
 215         elftypes.h              \
 216         emul64.h                \
 217         emul64cmd.h             \
 218         emul64var.h             \
 219         epm.h                   \
 220         epoll.h                 \
 221         errno.h                 \
 222         errorq.h                \
 223         errorq_impl.h           \
 224         esunddi.h               \
 225         ethernet.h              \
 226         euc.h                   \
 227         eucioctl.h              \
 228         eventfd.h               \
 229         exacct.h                \
 230         exacct_catalog.h        \
 231         exacct_impl.h           \
 232         exec.h                  \
 233         exechdr.h               \
 234         extdirent.h             \
 235         fault.h                 \
 236         fasttrap.h              \
 237         fasttrap_impl.h         \
 238         fbio.h                  \
 239         fbuf.h                  \
 240         fcntl.h                 \
 241         fct.h                   \
 242         fct_defines.h           \
 243         fctio.h                 \
 244         fdbuffer.h              \
 245         fdio.h                  \
 246         feature_tests.h         \
 247         fem.h                   \
 248         file.h                  \
 249         filio.h                 \
 250         flock.h                 \
 251         flock_impl.h            \
 252         fork.h                  \
 253         fss.h                   \
 254         fsspriocntl.h           \
 255         fsid.h                  \
 256         fssnap.h                \
 257         fssnap_if.h             \
 258         fstyp.h                 \
 259         ftrace.h                \
 260         fx.h                    \
 261         fxpriocntl.h            \
 262         gfs.h                   \
 263         gld.h                   \
 264         gldpriv.h               \
 265         group.h                 \
 266         hdio.h                  \
 267         hook.h                  \
 268         hook_event.h            \
 269         hook_impl.h             \
 270         hwconf.h                \
 271         ia.h                    \
 272         iapriocntl.h            \
 273         ibpart.h                \
 274         id32.h                  \
 275         idmap.h                 \
 276         ieeefp.h                \
 277         id_space.h              \
 278         instance.h              \
 279         int_const.h             \
 280         int_fmtio.h             \
 281         int_limits.h            \
 282         int_types.h             \
 283         inttypes.h              \
 284         ioccom.h                \
 285         ioctl.h                 \
 286         ipc.h                   \
 287         ipc_impl.h              \
 288         ipc_rctl.h              \
 289         ipd.h                   \
 290         ipmi.h                  \
 291         isa_defs.h              \
 292         iscsi_authclient.h      \
 293         iscsi_authclientglue.h  \
 294         iscsi_protocol.h        \
 295         jioctl.h                \
 296         kbd.h                   \
 297         kbdreg.h                \
 298         kbio.h                  \
 299         kcpc.h                  \
 300         kdi.h                   \
 301         kdi_impl.h              \
 302         kiconv.h                \
 303         kiconv_big5_utf8.h      \
 304         kiconv_cck_common.h     \
 305         kiconv_cp950hkscs_utf8.h        \
 306         kiconv_emea1.h          \
 307         kiconv_emea2.h          \
 308         kiconv_euckr_utf8.h     \
 309         kiconv_euctw_utf8.h     \
 310         kiconv_gb18030_utf8.h   \
 311         kiconv_gb2312_utf8.h    \
 312         kiconv_hkscs_utf8.h     \
 313         kiconv_ja.h             \
 314         kiconv_ja_jis_to_unicode.h      \
 315         kiconv_ja_unicode_to_jis.h      \
 316         kiconv_ko.h             \
 317         kiconv_latin1.h         \
 318         kiconv_sc.h             \
 319         kiconv_tc.h             \
 320         kiconv_uhc_utf8.h       \
 321         kiconv_utf8_big5.h      \
 322         kiconv_utf8_cp950hkscs.h        \
 323         kiconv_utf8_euckr.h     \
 324         kiconv_utf8_euctw.h     \
 325         kiconv_utf8_gb18030.h   \
 326         kiconv_utf8_gb2312.h    \
 327         kiconv_utf8_hkscs.h     \
 328         kiconv_utf8_uhc.h       \
 329         kidmap.h                \
 330         klpd.h                  \
 331         klwp.h                  \
 332         kmdb.h                  \
 333         kmem.h                  \
 334         kmem_impl.h             \
 335         kobj.h                  \
 336         kobj_impl.h             \
 337         ksocket.h               \
 338         kstat.h                 \
 339         kstr.h                  \
 340         ksyms.h                 \
 341         ksynch.h                \
 342         ldterm.h                \
 343         lgrp.h                  \
 344         lgrp_user.h             \
 345         libc_kernel.h           \
 346         link.h                  \
 347         list.h                  \
 348         list_impl.h             \
 349         llc1.h                  \
 350         loadavg.h               \
 351         lock.h                  \
 352         lockfs.h                \
 353         lockstat.h              \
 354         lofi.h                  \
 355         log.h                   \
 356         logindmux.h             \
 357         logindmux_impl.h        \
 358         lwp.h                   \
 359         lwp_timer_impl.h        \
 360         lwp_upimutex_impl.h     \
 361         lpif.h                  \
 362         mac.h                   \
 363         mac_client.h            \
 364         mac_client_impl.h       \
 365         mac_ether.h             \
 366         mac_flow.h              \
 367         mac_flow_impl.h         \
 368         mac_impl.h              \
 369         mac_provider.h          \
 370         mac_soft_ring.h         \
 371         mac_stat.h              \
 372         machelf.h               \
 373         map.h                   \
 374         md4.h                   \
 375         md5.h                   \
 376         md5_consts.h            \
 377         mdi_impldefs.h          \
 378         mem.h                   \
 379         mem_config.h            \
 380         memlist.h               \
 381         mkdev.h                 \
 382         mhd.h                   \
 383         mii.h                   \
 384         miiregs.h               \
 385         mixer.h                 \
 386         mman.h                  \
 387         mmapobj.h               \
 388         mntent.h                \
 389         mntio.h                 \
 390         mnttab.h                \
 391         modctl.h                \
 392         mode.h                  \
 393         model.h                 \
 394         modhash.h               \
 395         modhash_impl.h          \
 396         mount.h                 \
 397         mouse.h                 \
 398         msacct.h                \
 399         msg.h                   \
 400         msg_impl.h              \
 401         msio.h                  \
 402         msreg.h                 \
 403         mtio.h                  \
 404         multidata.h             \
 405         multidata_impl.h        \
 406         mutex.h                 \
 407         nbmlock.h               \
 408         ndifm.h                 \
 409         ndi_impldefs.h          \
 410         net80211.h              \
 411         net80211_crypto.h       \
 412         net80211_ht.h           \
 413         net80211_proto.h        \
 414         netconfig.h             \
 415         neti.h                  \
 416         netstack.h              \
 417         nexusdefs.h             \
 418         note.h                  \
 419         nvpair.h                \
 420         nvpair_impl.h           \
 421         objfs.h                 \
 422         objfs_impl.h            \
 423         ontrap.h                \
 424         open.h                  \
 425         openpromio.h            \
 426         panic.h                 \
 427         param.h                 \
 428         pathconf.h              \
 429         pathname.h              \
 430         pattr.h                 \
 431         queue.h                 \
 432         serializer.h            \
 433         pbio.h                  \
 434         pccard.h                \
 435         pci.h                   \
 436         pcie.h                  \
 437         pci_impl.h              \
 438         pci_tools.h             \
 439         pcmcia.h                \
 440         pctypes.h               \
 441         pfmod.h                 \
 442         pg.h                    \
 443         pghw.h                  \
 444         physmem.h               \
 445         pkp_hash.h              \
 446         pm.h                    \
 447         policy.h                \
 448         poll.h                  \
 449         poll_impl.h             \
 450         pool.h                  \
 451         pool_impl.h             \
 452         pool_pset.h             \
 453         port.h                  \
 454         port_impl.h             \
 455         port_kernel.h           \
 456         portif.h                \
 457         ppmio.h                 \
 458         pppt_ic_if.h            \
 459         pppt_ioctl.h            \
 460         priocntl.h              \
 461         priv.h                  \
 462         priv_impl.h             \
 463         prnio.h                 \
 464         proc.h                  \
 465         processor.h             \
 466         procfs.h                \
 467         procset.h               \
 468         project.h               \
 469         protosw.h               \
 470         prsystm.h               \
 471         pset.h                  \
 472         pshot.h                 \
 473         ptem.h                  \
 474         ptms.h                  \
 475         ptyvar.h                \
 476         raidioctl.h             \
 477         ramdisk.h               \
 478         random.h                \
 479         rctl.h                  \
 480         rctl_impl.h             \
 481         rds.h                   \
 482         reboot.h                \
 483         refstr.h                \
 484         refstr_impl.h           \
 485         resource.h              \
 486         rlioctl.h               \
 487         rt.h                    \
 488         rtpriocntl.h            \
 489         rwlock.h                \
 490         rwlock_impl.h           \
 491         rwstlock.h              \
 492         sad.h                   \
 493         schedctl.h              \
 494         sdt.h                   \
 495         select.h                \
 496         sem.h                   \
 497         sem_impl.h              \
 498         sema_impl.h             \
 499         semaphore.h             \
 500         sendfile.h              \
 501         ser_sync.h              \
 502         session.h               \
 503         sha1.h                  \
 504         sha1_consts.h           \
 505         sha2.h                  \
 506         sha2_consts.h           \
 507         share.h                 \
 508         shm.h                   \
 509         shm_impl.h              \
 510         sid.h                   \
 511         siginfo.h               \
 512         signal.h                \
 513         signalfd.h              \
 514         skein.h                 \
 515         sleepq.h                \
 516         smbios.h                \
 517         smbios_impl.h           \
 518         sobject.h               \
 519         socket.h                \
 520         socket_impl.h           \
 521         socket_proto.h          \
 522         socketvar.h             \
 523         sockfilter.h            \
 524         sockio.h                \
 525         soundcard.h             \
 526         squeue.h                \
 527         squeue_impl.h           \
 528         srn.h                   \
 529         sservice.h              \
 530         stat.h                  \
 531         statfs.h                \
 532         statvfs.h               \
 533         stdbool.h               \
 534         stdint.h                \
 535         stermio.h               \
 536         stmf.h                  \
 537         stmf_defines.h          \
 538         stmf_ioctl.h            \
 539         stmf_sbd_ioctl.h        \
 540         stream.h                \
 541         strft.h                 \
 542         strlog.h                \
 543         strmdep.h               \
 544         stropts.h               \
 545         strredir.h              \
 546         strstat.h               \
 547         strsubr.h               \
 548         strsun.h                \
 549         strtty.h                \
 550         sunddi.h                \
 551         sunldi.h                \
 552         sunldi_impl.h           \
 553         sunmdi.h                \
 554         sunndi.h                \
 555         sunos_dhcp_class.h      \
 556         sunpm.h                 \
 557         suntpi.h                \
 558         suntty.h                \
 559         swap.h                  \
 560         synch.h                 \
 561         sysdc.h                 \
 562         sysdc_impl.h            \
 563         syscall.h               \
 564         sysconf.h               \
 565         sysconfig.h             \
 566         sysevent.h              \
 567         sysevent_impl.h         \
 568         sysinfo.h               \
 569         syslog.h                \
 570         sysmacros.h             \
 571         sysmsg_impl.h           \
 572         systeminfo.h            \
 573         systm.h                 \
 574         task.h                  \
 575         taskq.h                 \
 576         taskq_impl.h            \
 577         t_kuser.h               \
 578         t_lock.h                \
 579         telioctl.h              \
 580         termio.h                \
 581         termios.h               \
 582         termiox.h               \
 583         thread.h                \
 584         ticlts.h                \
 585         ticots.h                \
 586         ticotsord.h             \
 587         tihdr.h                 \
 588         time.h                  \
 589         time_impl.h             \
 590         time_std_impl.h         \
 591         timeb.h                 \
 592         timer.h                 \
 593         timerfd.h               \
 594         times.h                 \
 595         timex.h                 \
 596         timod.h                 \
 597         tirdwr.h                \
 598         tiuser.h                \
 599         tl.h                    \
 600         tnf.h                   \
 601         tnf_com.h               \
 602         tnf_probe.h             \
 603         tnf_writer.h            \
 604         todio.h                 \
 605         tpicommon.h             \
 606         ts.h                    \
 607         tspriocntl.h            \
 608         ttcompat.h              \
 609         ttold.h                 \
 610         tty.h                   \
 611         ttychars.h              \
 612         ttydev.h                \
 613         tuneable.h              \
 614         turnstile.h             \
 615         types.h                 \
 616         types32.h               \
 617         tzfile.h                \
 618         u8_textprep.h           \
 619         u8_textprep_data.h      \
 620         uadmin.h                \
 621         ucred.h                 \
 622         uio.h                   \
 623         ulimit.h                \
 624         un.h                    \
 625         unistd.h                \
 626         user.h                  \
 627         ustat.h                 \
 628         utime.h                 \
 629         utsname.h               \
 630         utssys.h                \
 631         uuid.h                  \
 632         va_impl.h               \
 633         va_list.h               \
 634         var.h                   \
 635         varargs.h               \
 636         vfs.h                   \
 637         vfs_opreg.h             \
 638         vfstab.h                \
 639         vgareg.h                \
 640         videodev2.h             \
 641         visual_io.h             \
 642         vlan.h                  \
 643         vm.h                    \
 644         vm_usage.h              \
 645         vmem.h                  \
 646         vmem_impl.h             \
 647         vmsystm.h               \
 648         vnic.h                  \
 649         vnic_impl.h             \
 650         vnode.h                 \
 651         vscan.h                 \
 652         vtoc.h                  \
 653         vtrace.h                \
 654         vuid_event.h            \
 655         vuid_wheel.h            \
 656         vuid_queue.h            \
 657         vuid_state.h            \
 658         vuid_store.h            \
 659         wait.h                  \
 660         waitq.h                 \
 661         wanboot_impl.h          \
 662         watchpoint.h            \
 663         winlockio.h             \
 664         zcons.h                 \
 665         zone.h                  \
 666         xti_inet.h              \
 667         xti_osi.h               \
 668         xti_xtiopt.h            \
 669         zmod.h
 670 
 671 HDRS=                           \
 672         $(GENHDRS)              \
 673         $(CHKHDRS)
 674 
 675 AUDIOHDRS=                      \
 676         ac97.h                  \
 677         audio_common.h          \
 678         audio_driver.h          \
 679         audio_oss.h             \
 680         g711.h
 681 
 682 AVHDRS=                         \
 683         iec61883.h
 684 
 685 BSCHDRS=                        \
 686         bscbus.h                \
 687         bscv_impl.h             \
 688         lom_ebuscodes.h         \
 689         lom_io.h                \
 690         lom_priv.h              \
 691         lombus.h
 692 
 693 MDESCHDRS=                      \
 694         mdesc.h                 \
 695         mdesc_impl.h            
 696 
 697 CPUDRVHDRS=                     \
 698         cpudrv.h
 699 
 700 CRYPTOHDRS=                     \
 701         elfsign.h               \
 702         ioctl.h                 \
 703         ioctladmin.h            \
 704         common.h                \
 705         impl.h                  \
 706         spi.h                   \
 707         api.h                   \
 708         ops_impl.h              \
 709         sched_impl.h
 710 
 711 DCAMHDRS=                       \
 712         dcam1394_io.h
 713 
 714 IBHDRS=                 \
 715         ib_types.h      \
 716         ib_pkt_hdrs.h
 717 
 718 IBTLHDRS=               \
 719         ibtl_types.h    \
 720         ibtl_status.h   \
 721         ibti.h          \
 722         ibti_cm.h       \
 723         ibci.h          \
 724         ibti_common.h   \
 725         ibvti.h         \
 726         ibtl_ci_types.h
 727 
 728 IBTLIMPLHDRS=           \
 729         ibtl_util.h
 730 
 731 IBNEXHDRS=              \
 732         ibnex_devctl.h
 733 
 734 IBMFHDRS=               \
 735         ibmf.h          \
 736         ibmf_msg.h      \
 737         ibmf_saa.h      \
 738         ibmf_utils.h
 739 
 740 IBMGTHDRS=              \
 741         ib_dm_attr.h    \
 742         ib_mad.h        \
 743         sm_attr.h       \
 744         sa_recs.h
 745 
 746 IBDHDRS=                \
 747         ibd.h
 748 
 749 OFHDRS=                 \
 750         ofa_solaris.h   \
 751         ofed_kernel.h
 752 
 753 RDMAHDRS=               \
 754         ib_addr.h       \
 755         ib_user_mad.h   \
 756         ib_user_sa.h    \
 757         ib_user_verbs.h \
 758         ib_verbs.h      \
 759         rdma_cm.h       \
 760         rdma_user_cm.h
 761 
 762 SOL_UVERBSHDRS=         \
 763         sol_uverbs.h    \
 764         sol_uverbs2ucma.h       \
 765         sol_uverbs_comp.h       \
 766         sol_uverbs_hca.h        \
 767         sol_uverbs_qp.h         \
 768         sol_uverbs_event.h
 769 
 770 SOL_UMADHDRS=           \
 771         sol_umad.h
 772 
 773 SOL_UCMAHDRS=           \
 774         sol_ucma.h      \
 775         sol_rdma_user_cm.h
 776 
 777 SOL_OFSHDRS=            \
 778         sol_cma.h       \
 779         sol_ib_cma.h    \
 780         sol_ofs_common.h        \
 781         sol_kverb_impl.h
 782 
 783 TAVORHDRS=              \
 784         tavor_ioctl.h
 785 
 786 HERMONHDRS=             \
 787         hermon_ioctl.h
 788 
 789 MLNXHDRS=               \
 790         mlnx_umap.h
 791 
 792 IDMHDRS=                \
 793         idm.h           \
 794         idm_impl.h      \
 795         idm_so.h        \
 796         idm_text.h      \
 797         idm_transport.h \
 798         idm_conn_sm.h
 799 
 800 ISCSITHDRS=             \
 801         radius_packet.h         \
 802         radius_protocol.h       \
 803         chap.h                  \
 804         isns_protocol.h         \
 805         iscsi_if.h              \
 806         iscsit_common.h
 807 
 808 ISOHDRS=                        \
 809         signal_iso.h
 810 
 811 DERIVED_LVMHDRS=        \
 812         md_mdiox.h              \
 813         md_basic.h              \
 814         mdmed.h                 \
 815         md_mhdx.h               \
 816         mdmn_commd.h
 817 
 818 LVMHDRS=                        \
 819         md_convert.h            \
 820         md_crc.h                \
 821         md_hotspares.h          \
 822         md_mddb.h               \
 823         md_mirror.h             \
 824         md_mirror_shared.h      \
 825         md_names.h              \
 826         md_notify.h             \
 827         md_raid.h               \
 828         md_rename.h             \
 829         md_sp.h                 \
 830         md_stripe.h             \
 831         md_trans.h              \
 832         mdio.h                  \
 833         mdvar.h                 
 834 
 835 ALL_LVMHDRS=                    \
 836         $(LVMHDRS)              \
 837         $(DERIVED_LVMHDRS)
 838 
 839 FMHDRS=                         \
 840         protocol.h              \
 841         util.h
 842 
 843 FMFSHDRS=                       \
 844         zfs.h
 845 
 846 FMIOHDRS=                       \
 847         ddi.h                   \
 848         disk.h                  \
 849         pci.h                   \
 850         scsi.h                  \
 851         sun4upci.h              \
 852         opl_mc_fm.h
 853 
 854 FSHDRS=                         \
 855         autofs.h                \
 856         decomp.h                \
 857         dv_node.h               \
 858         sdev_impl.h             \
 859         fifonode.h              \
 860         hsfs_isospec.h          \
 861         hsfs_node.h             \
 862         hsfs_rrip.h             \
 863         hsfs_spec.h             \
 864         hsfs_susp.h             \
 865         lofs_info.h             \
 866         lofs_node.h             \
 867         mntdata.h               \
 868         namenode.h              \
 869         pc_dir.h                \
 870         pc_fs.h                 \
 871         pc_label.h              \
 872         pc_node.h               \
 873         pxfs_ki.h               \
 874         snode.h                 \
 875         swapnode.h              \
 876         tmp.h                   \
 877         tmpnode.h               \
 878         udf_inode.h             \
 879         udf_volume.h            \
 880         ufs_acl.h               \
 881         ufs_bio.h               \
 882         ufs_filio.h             \
 883         ufs_fs.h                \
 884         ufs_fsdir.h             \
 885         ufs_inode.h             \
 886         ufs_lockfs.h            \
 887         ufs_log.h               \
 888         ufs_mount.h             \
 889         ufs_panic.h             \
 890         ufs_prot.h              \
 891         ufs_quota.h             \
 892         ufs_snap.h              \
 893         ufs_trans.h             \
 894         zfs.h                   \
 895         zut.h
 896 
 897 SCSIHDRS=               \
 898         scsi.h          \
 899         scsi_address.h  \
 900         scsi_ctl.h      \
 901         scsi_fm.h       \
 902         scsi_params.h   \
 903         scsi_pkt.h      \
 904         scsi_resource.h \
 905         scsi_types.h    \
 906         scsi_watch.h
 907 
 908 SCSICONFHDRS=           \
 909         autoconf.h      \
 910         device.h
 911 
 912 SCSIGENHDRS=            \
 913         commands.h      \
 914         dad_mode.h      \
 915         inquiry.h       \
 916         message.h       \
 917         mode.h          \
 918         persist.h       \
 919         sense.h         \
 920         sff_frames.h    \
 921         smp_frames.h    \
 922         status.h
 923 
 924 SCSIIMPLHDRS=           \
 925         commands.h      \
 926         inquiry.h       \
 927         mode.h          \
 928         scsi_reset_notify.h \
 929         scsi_sas.h      \
 930         sense.h         \
 931         services.h      \
 932         smp_transport.h \
 933         spc3_types.h    \
 934         status.h        \
 935         transport.h     \
 936         types.h         \
 937         uscsi.h         \
 938         usmp.h
 939 
 940 SCSITARGETSHDRS=        \
 941         ses.h           \
 942         sesio.h         \
 943         sgendef.h       \
 944         stdef.h         \
 945         sddef.h         \
 946         smp.h
 947 
 948 SCSIADHDRS=
 949 
 950 SCSICADHDRS=
 951 
 952 SCSIISCSIHDRS=          \
 953         iscsi_door.h    \
 954         iscsi_if.h
 955 
 956 SCSIVHCIHDRS=           \
 957         scsi_vhci.h     \
 958         mpapi_impl.h    \
 959         mpapi_scsi_vhci.h
 960 
 961 SDCARDHDRS=             \
 962         sda.h           \
 963         sda_impl.h      \
 964         sda_ioctl.h
 965 
 966 FC4HDRS=                        \
 967         fc_transport.h  \
 968         linkapp.h       \
 969         fc.h            \
 970         fcp.h           \
 971         fcal_transport.h \
 972         fcal.h          \
 973         fcal_linkapp.h  \
 974         fcio.h
 975 
 976 FCHDRS=                 \
 977         fc.h            \
 978         fcio.h          \
 979         fc_types.h      \
 980         fc_appif.h
 981 
 982 FCIMPLHDRS=             \
 983         fc_error.h      \
 984         fcph.h
 985 
 986 FCULPHDRS=              \
 987         fcp_util.h      \
 988         fcsm.h
 989 
 990 SATAGENHDRS=            \
 991         sata_hba.h      \
 992         sata_defs.h     \
 993         sata_cfgadm.h
 994 
 995 SYSEVENTHDRS=           \
 996         ap_driver.h     \
 997         dev.h           \
 998         domain.h        \
 999         dr.h            \
1000         env.h           \
1001         eventdefs.h     \
1002         ipmp.h          \
1003         pwrctl.h        \
1004         svm.h           \
1005         vrrp.h
1006 
1007 CONTRACTHDRS=           \
1008         process.h       \
1009         process_impl.h  \
1010         device.h        \
1011         device_impl.h
1012 
1013 USBHDRS=        \
1014         usba.h  \
1015         usbai.h
1016 
1017 USBAUDHDRS=           \
1018         usb_audio.h
1019 
1020 USBHUBDHDRS=            \
1021         hub.h           \
1022         hubd_impl.h
1023 
1024 USBHIDHDRS=             \
1025         hid.h
1026 
1027 USBMSHDRS=              \
1028         usb_bulkonly.h  \
1029         usb_cbi.h
1030 
1031 USBPRNHDRS=           \
1032         usb_printer.h
1033 
1034 USBCDCHDRS=             \
1035         usb_cdc.h
1036 
1037 USBVIDHDRS=           \
1038         usbvc.h
1039 
1040 USBWCMHDRS=             \
1041         usbwcm.h
1042 
1043 UGENHDRS=           \
1044         usb_ugen.h
1045 
1046 HOTPLUGHDRS=    \
1047         hpcsvc.h        \
1048         hpctrl.h
1049 
1050 HOTPLUGPCIHDRS= \
1051         pcicfg.h        \
1052         pcihp.h
1053 
1054 RSMHDRS= \
1055         rsm.h   \
1056         rsm_common.h    \
1057         rsmapi_common.h \
1058         rsmpi.h \
1059         rsmpi_driver.h  \
1060         rsmka_path_int.h
1061 
1062 TSOLHDRS=               \
1063         label.h         \
1064         label_macro.h   \
1065         priv.h          \
1066         tndb.h          \
1067         tsyscall.h
1068 
1069 I1394HDRS=              \
1070         cmd1394.h       \
1071         id1394.h        \
1072         ieee1212.h      \
1073         ieee1394.h      \
1074         ixl1394.h       \
1075         s1394_impl.h    \
1076         t1394.h
1077 
1078 # "cmdk" headers used on sparc
1079 SDKTPHDRS=              \
1080         dadkio.h        \
1081         fdisk.h
1082 
1083 # "cmdk" headers used on i386
1084 DKTPHDRS=               \
1085         altsctr.h       \
1086         bbh.h           \
1087         cm.h            \
1088         cmdev.h         \
1089         cmdk.h          \
1090         cmpkt.h         \
1091         controller.h    \
1092         dadev.h         \
1093         dadk.h          \
1094         dadkio.h        \
1095         fctypes.h       \
1096         fdisk.h         \
1097         flowctrl.h      \
1098         gda.h           \
1099         quetypes.h      \
1100         queue.h         \
1101         tgcom.h         \
1102         tgdk.h
1103 
1104 # "pc" header files used on i386
1105 PCHDRS=                 \
1106         avintr.h        \
1107         dma_engine.h    \
1108         i8272A.h        \
1109         pcic_reg.h      \
1110         pcic_var.h      \
1111         pic.h           \
1112         pit.h           \
1113         rtc.h
1114 
1115 NXGEHDRS=                       \
1116         nxge.h                  \
1117         nxge_common.h           \
1118         nxge_common_impl.h      \
1119         nxge_defs.h             \
1120         nxge_hw.h               \
1121         nxge_impl.h             \
1122         nxge_ipp.h              \
1123         nxge_ipp_hw.h           \
1124         nxge_mac.h              \
1125         nxge_mac_hw.h           \
1126         nxge_fflp.h             \
1127         nxge_fflp_hw.h          \
1128         nxge_mii.h              \
1129         nxge_rxdma.h            \
1130         nxge_rxdma_hw.h         \
1131         nxge_txc.h              \
1132         nxge_txc_hw.h           \
1133         nxge_txdma.h            \
1134         nxge_txdma_hw.h         \
1135         nxge_virtual.h          \
1136         nxge_espc.h
1137 
1138 include Makefile.syshdrs
1139 
1140 dcam/%.check:   dcam/%.h
1141         $(DOT_H_CHECK)
1142 
1143 CHECKHDRS=                                              \
1144         $($(MACH)_HDRS:%.h=%.check)                     \
1145         $(AUDIOHDRS:%.h=audio/%.check)                  \
1146         $(AVHDRS:%.h=av/%.check)                        \
1147         $(BSCHDRS:%.h=%.check)                          \
1148         $(CHKHDRS:%.h=%.check)                          \
1149         $(CPUDRVHDRS:%.h=%.check)                       \
1150         $(CRYPTOHDRS:%.h=crypto/%.check)                \
1151         $(DCAMHDRS:%.h=dcam/%.check)                    \
1152         $(FC4HDRS:%.h=fc4/%.check)                      \
1153         $(FCHDRS:%.h=fibre-channel/%.check)             \
1154         $(FCIMPLHDRS:%.h=fibre-channel/impl/%.check)    \
1155         $(FCULPHDRS:%.h=fibre-channel/ulp/%.check)      \
1156         $(IBHDRS:%.h=ib/%.check)                        \
1157         $(IBDHDRS:%.h=ib/clients/ibd/%.check)           \
1158         $(IBTLHDRS:%.h=ib/ibtl/%.check)                 \
1159         $(IBTLIMPLHDRS:%.h=ib/ibtl/impl/%.check)        \
1160         $(IBNEXHDRS:%.h=ib/ibnex/%.check)       \
1161         $(IBMGTHDRS:%.h=ib/mgt/%.check)                 \
1162         $(IBMFHDRS:%.h=ib/mgt/ibmf/%.check)             \
1163         $(OFHDRS:%.h=ib/clients/of/%.check)                     \
1164         $(RDMAHDRS:%.h=ib/clients/of/rdma/%.check)              \
1165         $(SOL_UVERBSHDRS:%.h=ib/clients/of/sol_uverbs/%.check)  \
1166         $(SOL_UCMAHDRS:%.h=ib/clients/of/sol_ucma/%.check)      \
1167         $(SOL_OFSHDRS:%.h=ib/clients/of/sol_ofs/%.check)        \
1168         $(TAVORHDRS:%.h=ib/adapters/tavor/%.check)      \
1169         $(HERMONHDRS:%.h=ib/adapters/hermon/%.check)    \
1170         $(MLNXHDRS:%.h=ib/adapters/%.check)             \
1171         $(IDMHDRS:%.h=idm/%.check)                      \
1172         $(ISCSIHDRS:%.h=iscsi/%.check)                  \
1173         $(ISCSITHDRS:%.h=iscsit/%.check)                        \
1174         $(ISOHDRS:%.h=iso/%.check)                      \
1175         $(FMHDRS:%.h=fm/%.check)                        \
1176         $(FMFSHDRS:%.h=fm/fs/%.check)                   \
1177         $(FMIOHDRS:%.h=fm/io/%.check)                   \
1178         $(FSHDRS:%.h=fs/%.check)                        \
1179         $(LVMHDRS:%.h=lvm/%.check)                      \
1180         $(SCSIHDRS:%.h=scsi/%.check)                    \
1181         $(SCSIADHDRS:%.h=scsi/adapters/%.check)         \
1182         $(SCSICONFHDRS:%.h=scsi/conf/%.check)           \
1183         $(SCSIIMPLHDRS:%.h=scsi/impl/%.check)           \
1184         $(SCSIISCSIHDRS:%.h=scsi/adapters/%.check)      \
1185         $(SCSIGENHDRS:%.h=scsi/generic/%.check)         \
1186         $(SCSITARGETSHDRS:%.h=scsi/targets/%.check)     \
1187         $(SCSIVHCIHDRS:%.h=scsi/adapters/%.check)       \
1188         $(SATAGENHDRS:%.h=sata/%.check)                 \
1189         $(SDCARDHDRS:%.h=sdcard/%.check)                \
1190         $(SYSEVENTHDRS:%.h=sysevent/%.check)            \
1191         $(CONTRACTHDRS:%.h=contract/%.check)            \
1192         $(USBAUDHDRS:%.h=usb/clients/audio/%.check)   \
1193         $(USBHUBDHDRS:%.h=usb/hubd/%.check)             \
1194         $(USBHIDHDRS:%.h=usb/clients/hid/%.check)       \
1195         $(USBMSHDRS:%.h=usb/clients/mass_storage/%.check)       \
1196         $(USBPRNHDRS:%.h=usb/clients/printer/%.check)   \
1197         $(USBCDCHDRS:%.h=usb/clients/usbcdc/%.check)    \
1198         $(USBVIDHDRS:%.h=usb/clients/video/usbvc/%.check)   \
1199         $(USBWCMHDRS:%.h=usb/clients/usbinput/usbwcm/%.check)   \
1200         $(UGENHDRS:%.h=usb/clients/ugen/%.check)   \
1201         $(USBHDRS:%.h=usb/%.check)                      \
1202         $(I1394HDRS:%.h=1394/%.check)                   \
1203         $(RSMHDRS:%.h=rsm/%.check)                      \
1204         $(TSOLHDRS:%.h=tsol/%.check)                    \
1205         $(NXGEHDRS:%.h=nxge/%.check)
1206 
1207 
1208 .KEEP_STATE:
1209 
1210 .PARALLEL:                      \
1211         $(CHECKHDRS)            \
1212         $(ROOTHDRS)             \
1213         $(ROOTAUDHDRS)          \
1214         $(ROOTAVHDRS)           \
1215         $(ROOTCRYPTOHDRS)       \
1216         $(ROOTDCAMHDRS)         \
1217         $(ROOTISOHDRS)          \
1218         $(ROOTIDMHDRS)          \
1219         $(ROOTISCSIHDRS)        \
1220         $(ROOTISCSITHDRS)       \
1221         $(ROOTFC4HDRS)          \
1222         $(ROOTFCHDRS)           \
1223         $(ROOTFCIMPLHDRS)       \
1224         $(ROOTFCULPHDRS)        \
1225         $(ROOTFMHDRS)           \
1226         $(ROOTFMIOHDRS)         \
1227         $(ROOTFMFSHDRS)         \
1228         $(ROOTFSHDRS)           \
1229         $(ROOTIBDHDRS)          \
1230         $(ROOTIBHDRS)           \
1231         $(ROOTIBTLHDRS)         \
1232         $(ROOTIBTLIMPLHDRS)     \
1233         $(ROOTIBNEXHDRS)        \
1234         $(ROOTIBMGTHDRS)        \
1235         $(ROOTIBMFHDRS)         \
1236         $(ROOTOFHDRS)           \
1237         $(ROOTRDMAHDRS)         \
1238         $(ROOTSOL_OFSHDRS)      \
1239         $(ROOTSOL_UMADHDRS)     \
1240         $(ROOTSOL_UVERBSHDRS)   \
1241         $(ROOTSOL_UCMAHDRS)     \
1242         $(ROOTTAVORHDRS)        \
1243         $(ROOTHERMONHDRS)       \
1244         $(ROOTMLNXHDRS)         \
1245         $(ROOTLVMHDRS)          \
1246         $(ROOTSCSIHDRS)         \
1247         $(ROOTSCSIADHDRS)       \
1248         $(ROOTSCSICONFHDRS)     \
1249         $(ROOTSCSIISCSIHDRS)    \
1250         $(ROOTSCSIGENHDRS)      \
1251         $(ROOTSCSIIMPLHDRS)     \
1252         $(ROOTSCSIVHCIHDRS)     \
1253         $(ROOTSDCARDHDRS)       \
1254         $(ROOTSYSEVENTHDRS)     \
1255         $(ROOTCONTRACTHDRS)     \
1256         $(ROOTUSBHDRS)          \
1257         $(ROOTUWBHDRS)          \
1258         $(ROOTUWBAHDRS)         \
1259         $(ROOTUSBAUDHDRS)       \
1260         $(ROOTUSBHUBDHDRS)      \
1261         $(ROOTUSBHIDHDRS)       \
1262         $(ROOTUSBHRCHDRS)       \
1263         $(ROOTUSBMSHDRS)        \
1264         $(ROOTUSBPRNHDRS)       \
1265         $(ROOTUSBCDCHDRS)       \
1266         $(ROOTUSBVIDHDRS)       \
1267         $(ROOTUSBWCMHDRS)       \
1268         $(ROOTUGENHDRS)         \
1269         $(ROOT1394HDRS)         \
1270         $(ROOTHOTPLUGHDRS)      \
1271         $(ROOTHOTPLUGPCIHDRS)   \
1272         $(ROOTRSMHDRS)          \
1273         $(ROOTTSOLHDRS)         \
1274         $($(MACH)_ROOTHDRS)
1275 
1276 
1277 install_h:                      \
1278         $(ROOTDIRS)             \
1279         LVMDERIVED_H            \
1280         .WAIT                   \
1281         $(ROOTHDRS)             \
1282         $(ROOTAUDHDRS)          \
1283         $(ROOTAVHDRS)           \
1284         $(ROOTCRYPTOHDRS)       \
1285         $(ROOTDCAMHDRS)         \
1286         $(ROOTISOHDRS)          \
1287         $(ROOTIDMHDRS)          \
1288         $(ROOTISCSIHDRS)        \
1289         $(ROOTISCSITHDRS)       \
1290         $(ROOTFC4HDRS)          \
1291         $(ROOTFCHDRS)           \
1292         $(ROOTFCIMPLHDRS)       \
1293         $(ROOTFCULPHDRS)        \
1294         $(ROOTFMHDRS)           \
1295         $(ROOTFMFSHDRS)         \
1296         $(ROOTFMIOHDRS)         \
1297         $(ROOTFSHDRS)           \
1298         $(ROOTIBDHDRS)          \
1299         $(ROOTIBHDRS)           \
1300         $(ROOTIBTLHDRS)         \
1301         $(ROOTIBTLIMPLHDRS)     \
1302         $(ROOTIBNEXHDRS)        \
1303         $(ROOTIBMGTHDRS)        \
1304         $(ROOTIBMFHDRS)         \
1305         $(ROOTOFHDRS)           \
1306         $(ROOTRDMAHDRS)         \
1307         $(ROOTSOL_OFSHDRS)      \
1308         $(ROOTSOL_UMADHDRS)     \
1309         $(ROOTSOL_UVERBSHDRS)   \
1310         $(ROOTSOL_UCMAHDRS)     \
1311         $(ROOTTAVORHDRS)        \
1312         $(ROOTHERMONHDRS)       \
1313         $(ROOTMLNXHDRS)         \
1314         $(ROOTLVMHDRS)          \
1315         $(ROOTSCSIHDRS)         \
1316         $(ROOTSCSIADHDRS)       \
1317         $(ROOTSCSIISCSIHDRS)    \
1318         $(ROOTSCSICONFHDRS)     \
1319         $(ROOTSCSIGENHDRS)      \
1320         $(ROOTSCSIIMPLHDRS)     \
1321         $(ROOTSCSIVHCIHDRS)     \
1322         $(ROOTSDCARDHDRS)       \
1323         $(ROOTSYSEVENTHDRS)     \
1324         $(ROOTCONTRACTHDRS)     \
1325         $(ROOTUWBHDRS)          \
1326         $(ROOTUWBAHDRS)         \
1327         $(ROOTUSBHDRS)          \
1328         $(ROOTUSBAUDHDRS)       \
1329         $(ROOTUSBHUBDHDRS)      \
1330         $(ROOTUSBHIDHDRS)       \
1331         $(ROOTUSBHRCHDRS)       \
1332         $(ROOTUSBMSHDRS)        \
1333         $(ROOTUSBPRNHDRS)       \
1334         $(ROOTUSBCDCHDRS)       \
1335         $(ROOTUSBVIDHDRS)       \
1336         $(ROOTUSBWCMHDRS)       \
1337         $(ROOTUGENHDRS)         \
1338         $(ROOT1394HDRS)         \
1339         $(ROOTHOTPLUGHDRS)      \
1340         $(ROOTHOTPLUGPCIHDRS)   \
1341         $(ROOTRSMHDRS)          \
1342         $(ROOTTSOLHDRS)         \
1343         $($(MACH)_ROOTHDRS)
1344 
1345 all_h: $(GENHDRS)
1346 
1347 priv_const.h: $(PRIVS_AWK) $(PRIVS_DEF)
1348         $(AWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v privhfile=$@
1349 
1350 priv_names.h: $(PRIVS_AWK) $(PRIVS_DEF)
1351         $(AWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v pubhfile=$@
1352 
1353 usb/usbdevs.h: $(USBDEVS_AWK) $(USBDEVS_DATA)
1354         $(AWK) -f $(USBDEVS_AWK) $(USBDEVS_DATA) -H > $@
1355 
1356 LVMDERIVED_H:
1357         cd $(SRC)/uts/common/sys/lvm; pwd; $(MAKE) all_h
1358 
1359 clean:
1360         $(RM) $(GENHDRS)
1361 
1362 clobber: clean
1363         cd $(SRC)/uts/common/sys/lvm; pwd; $(MAKE) clobber
1364 
1365 check:  $(CHECKHDRS)
1366 
1367 FRC: